Files
personal-hub/.obsidian/plugins/full-calendar-remastered/main.js
T
2026-07-17 14:47:12 +02:00

2 lines
7.3 MiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"use strict";var G8t=Object.create,fN=Object.defineProperty,X8t=Object.getOwnPropertyDescriptor,Y8t=Object.getOwnPropertyNames,Z8t=Object.getPrototypeOf,$8t=Object.prototype.hasOwnProperty,kr=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},Ee=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}},Zs=(e,t)=>{for(var n in t)fN(e,n,{get:t[n],enumerable:!0})},k3e=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of Y8t(t))!$8t.call(e,a)&&a!==n&&fN(e,a,{get:()=>t[a],enumerable:!(r=X8t(t,a))||r.enumerable});return e},H7=(e,t,n)=>(n=null!=e?G8t(Z8t(e)):{},k3e(!t&&e&&e.__esModule?n:fN(n,"default",{value:e,enumerable:!0}),e)),E_=e=>k3e(fN({},"__esModule",{value:!0}),e);function Na(e,t){return void 0===t?new UQ.Notice(e):new UQ.Notice(e,t)}var UQ,Fc=kr(()=>{UQ=require("obsidian")});function C3e(){let e=F6?.updateSources;W6&&e&&e.call(F6,W6.calendarSources)}var hN,W6,pN,F6,mN,vN,gN,yN,bN,MN,xN,_N,zN,Qe,Wo=kr(()=>{hN=null,W6=null,pN=null,F6=null,mN=null,vN=null,gN=null,yN=null,bN=null,MN=null,xN=null,_N=null,zN=null,Qe={getPlugin(){if(!hN)throw new Error("PluginState: Plugin not initialized");return hN},setPlugin(e){hN=e},getSettings(){if(!W6)throw new Error("PluginState: Settings not initialized");return W6},setSettings(e){W6=e,C3e()},getCache(){if(!pN)throw new Error("PluginState: EventCache not initialized");return pN},setCache(e){pN=e},getProviderRegistry(){if(!F6)throw new Error("PluginState: ProviderRegistry not initialized");return F6},setProviderRegistry(e){F6=e,C3e()},getInternalAPI(){if(!mN)throw new Error("PluginState: InternalAPI not initialized");return mN},setInternalAPI(e){mN=e},saveSettings(){if(!vN)throw new Error("PluginState: saveSettings not initialized");return vN()},setSaveSettings(e){vN=e},persistData(){if(!gN)throw new Error("PluginState: persistData not initialized");return gN()},setPersistData(e){gN=e},loadSettings(){if(!yN)throw new Error("PluginState: loadSettings not initialized");return yN()},setLoadSettings(e){yN=e},nonBlockingProcess(e,t,n){if(!bN)throw new Error("PluginState: nonBlockingProcess not initialized");return bN(e,t,n)},setNonBlockingProcess(e){bN=e},displaySettingsTab(){if(!MN)throw new Error("PluginState: settings tab not initialized");MN()},setDisplaySettingsTab(e){MN=e},showChangelog(){if(!xN)throw new Error("PluginState: changelog view not initialized");xN()},setShowChangelog(e){xN=e},showMilestones(){if(!_N)throw new Error("PluginState: milestones view not initialized");_N()},setShowMilestones(e){_N=e},isMobile(){if(!zN)throw new Error("PluginState: mobile detector not initialized");return zN()},setIsMobile(e){zN=e},clear(){hN=null,W6=null,pN=null,F6=null,mN=null,vN=null,gN=null,yN=null,bN=null,MN=null,xN=null,_N=null,zN=null}}});function Q8t(e){let t=tee.get(e);return void 0===t&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),tee.set(e,t)),t}function tSt(e,t){let n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,a,i,o,s,l,c,u]=r;return[o,a,i,s,l,c,u]}function rSt(e,t){let n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){let{type:t,value:a}=n[e],i=eSt[t];"era"===t?r[i]=a:_l(i)||(r[i]=parseInt(a,10))}return r}function nSt(e,t={}){let n=JSON.stringify([e,t]),r=E3e[n];return r||(r=new Intl.ListFormat(e,t),E3e[n]=r),r}function nee(e,t={}){let n=JSON.stringify([e,t]),r=ree.get(n);return void 0===r&&(r=new Intl.DateTimeFormat(e,t),ree.set(n,r)),r}function aSt(e,t={}){let n=JSON.stringify([e,t]),r=aee.get(n);return void 0===r&&(r=new Intl.NumberFormat(e,t),aee.set(n,r)),r}function iSt(e,t={}){let{base:n,...r}=t,a=JSON.stringify([e,r]),i=iee.get(a);return void 0===i&&(i=new Intl.RelativeTimeFormat(e,t),iee.set(a,i)),i}function oSt(){return j7||(j7=(new Intl.DateTimeFormat).resolvedOptions().locale)}function OMe(e){let t=oee.get(e);return void 0===t&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),oee.set(e,t)),t}function sSt(e){let t=see.get(e);if(!t){let n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...TMe,...t}),see.set(e,t)}return t}function lSt(e){let t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));let n=e.indexOf("-u-");if(-1===n)return[e];{let t,r;try{t=nee(e).resolvedOptions(),r=e}catch{let a=e.substring(0,n);t=nee(a).resolvedOptions(),r=a}let{numberingSystem:a,calendar:i}=t;return[r,a,i]}}function cSt(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function uSt(e){let t=[];for(let n=1;n<=12;n++){let r=Fn.utc(2009,n,1);t.push(e(r))}return t}function dSt(e){let t=[];for(let n=1;n<=7;n++){let r=Fn.utc(2016,11,13+n);t.push(e(r))}return t}function AN(e,t,n,r){let a=e.listingMode();return"error"===a?null:"en"===a?n(t):r(t)}function fSt(e){return(!e.numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===OMe(e.locale).numberingSystem)}function D_(e,t){if(_l(e)||null===e)return t;if(e instanceof W5)return e;if(ySt(e)){let n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?DN.instance:"utc"===n||"gmt"===n?cg.utcInstance:cg.parseSpecifier(n)||P_.create(e)}return L_(e)?cg.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new dee(e)}function pSt(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(-1!==e[n].search(vee.hanidec))t+=hSt.indexOf(e[n]);else for(let e in q3e){let[n,a]=q3e[e];r>=n&&r<=a&&(t+=r-n)}}return parseInt(t,10)}return t}function mSt(){fee.clear()}function wy({numberingSystem:e},t=""){let n=e||"latn",r=fee.get(n);void 0===r&&(r=new Map,fee.set(n,r));let a=r.get(t);return void 0===a&&(a=new RegExp(`${vee[n]}${t}`),r.set(t,a)),a}function sg(e,t){return new yv("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function gee(e,t,n){let r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);let a=r.getUTCDay();return 0===a?7:a}function CMe(e,t,n){return n+($7(e)?kMe:SMe)[t-1]}function EMe(e,t){let n=$7(e)?kMe:SMe,r=n.findIndex(e=>e<t);return{month:r+1,day:t-n[r]}}function yee(e,t){return(e-t+7)%7+1}function RN(e,t=4,n=1){let r,{year:a,month:i,day:o}=e,s=CMe(a,i,o),l=yee(gee(a,i,o),n),c=Math.floor((s-l+14-t)/7);return c<1?(r=a-1,c=Z7(r,t,n)):c>Z7(a,t,n)?(r=a+1,c=1):r=a,{weekYear:r,weekNumber:c,weekday:l,...BN(e)}}function B3e(e,t=4,n=1){let r,{weekYear:a,weekNumber:i,weekday:o}=e,s=yee(gee(a,1,t),n),l=j6(a),c=7*i+o-s-7+t;c<1?(r=a-1,c+=j6(r)):c>l?(r=a+1,c-=j6(a)):r=a;let{month:u,day:d}=EMe(r,c);return{year:r,month:u,day:d,...BN(e)}}function GQ(e){let{year:t,month:n,day:r}=e;return{year:t,ordinal:CMe(t,n,r),...BN(e)}}function U3e(e){let{year:t,ordinal:n}=e,{month:r,day:a}=EMe(t,n);return{year:t,month:r,day:a,...BN(e)}}function H3e(e,t){if(_l(e.localWeekday)&&_l(e.localWeekNumber)&&_l(e.localWeekYear))return{minDaysInFirstWeek:4,startOfWeek:1};if(!_l(e.weekday)||!_l(e.weekNumber)||!_l(e.weekYear))throw new R_("Cannot mix locale-based week fields with ISO-based week fields");return _l(e.localWeekday)||(e.weekday=e.localWeekday),_l(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),_l(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}function vSt(e,t=4,n=1){let r=NN(e.weekYear),a=lg(e.weekNumber,1,Z7(e.weekYear,t,n)),i=lg(e.weekday,1,7);return r?a?!i&&sg("weekday",e.weekday):sg("week",e.weekNumber):sg("weekYear",e.weekYear)}function gSt(e){let t=NN(e.year),n=lg(e.ordinal,1,j6(e.year));return t?!n&&sg("ordinal",e.ordinal):sg("year",e.year)}function qMe(e){let t=NN(e.year),n=lg(e.month,1,12),r=lg(e.day,1,LN(e.year,e.month));return t?n?!r&&sg("day",e.day):sg("month",e.month):sg("year",e.year)}function DMe(e){let{hour:t,minute:n,second:r,millisecond:a}=e,i=lg(t,0,23)||24===t&&0===n&&0===r&&0===a,o=lg(n,0,59),s=lg(r,0,59),l=lg(a,0,999);return i?o?s?!l&&sg("millisecond",a):sg("second",r):sg("minute",n):sg("hour",t)}function _l(e){return typeof e>"u"}function L_(e){return"number"==typeof e}function NN(e){return"number"==typeof e&&e%1==0}function ySt(e){return"string"==typeof e}function bSt(e){return"[object Date]"===Object.prototype.toString.call(e)}function RMe(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function LMe(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function MSt(e){return Array.isArray(e)?e:[e]}function V3e(e,t,n){if(0!==e.length)return e.reduce((e,r)=>{let a=[t(r),r];return e&&n(e[0],a[0])===e[0]?e:a},null)[1]}function xSt(e,t){return t.reduce((t,n)=>(t[n]=e[n],t),{})}function Y6(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function hee(e){if(null==e)return null;if("object"!=typeof e)throw new Ep("Week settings must be an object");if(!lg(e.firstDay,1,7)||!lg(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!lg(e,1,7)))throw new Ep("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function lg(e,t,n){return NN(e)&&e>=t&&e<=n}function _St(e,t){return e-t*Math.floor(e/t)}function Ih(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function q_(e){if(!_l(e)&&null!==e&&""!==e)return parseInt(e,10)}function P5(e){if(!_l(e)&&null!==e&&""!==e)return parseFloat(e)}function bee(e){if(!_l(e)&&null!==e&&""!==e){let t=1e3*parseFloat("0."+e);return Math.floor(t)}}function Mee(e,t,n="round"){let r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function $7(e){return e%4==0&&(e%100!=0||e%400==0)}function j6(e){return $7(e)?366:365}function LN(e,t){let n=_St(t-1,12)+1;return 2===n?$7(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function WN(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function j3e(e,t,n){return-yee(gee(e,1,t),n)+t-1}function Z7(e,t=4,n=1){let r=j3e(e,t,n),a=j3e(e+1,t,n);return(j6(e)-r+a)/7}function pee(e){return e>99?e:e>yf.twoDigitCutoffYear?1900+e:2e3+e}function PMe(e,t,n,r=null){let a=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);let o={timeZoneName:t,...i},s=new Intl.DateTimeFormat(n,o).formatToParts(a).find(e=>"timezonename"===e.type.toLowerCase());return s?s.value:null}function FN(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);let r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function IMe(e){let t=Number(e);if("boolean"==typeof e||""===e||!Number.isFinite(t))throw new Ep(`Invalid unit value ${e}`);return t}function PN(e,t){let n={};for(let r in e)if(Y6(e,r)){let a=e[r];if(null==a)continue;n[t(r)]=IMe(a)}return n}function Y7(e,t){let n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),a=e>=0?"+":"-";switch(t){case"short":return`${a}${Ih(n,2)}:${Ih(r,2)}`;case"narrow":return`${a}${n}${r>0?`:${r}`:""}`;case"techie":return`${a}${Ih(n,2)}${Ih(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function BN(e){return xSt(e,["hour","minute","second","millisecond"])}function WMe(e){switch(e){case"narrow":return[...ASt];case"short":return[...NMe];case"long":return[...zSt];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}function UMe(e){switch(e){case"narrow":return[...wSt];case"short":return[...BMe];case"long":return[...FMe];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function VMe(e){switch(e){case"narrow":return[...SSt];case"short":return[...TSt];case"long":return[...OSt];default:return null}}function kSt(e){return HMe[e.hour<12?0:1]}function CSt(e,t){return UMe(t)[e.weekday-1]}function ESt(e,t){return WMe(t)[e.month-1]}function qSt(e,t){return VMe(t)[e.year<0?0:1]}function DSt(e,t,n="always",r=!1){let a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&i){let n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${a[e][0]}`;case-1:return n?"yesterday":`last ${a[e][0]}`;case 0:return n?"today":`this ${a[e][0]}`}}let o=Object.is(t,-0)||t<0,s=Math.abs(t),l=1===s,c=a[e],u=r?l?c[1]:c[2]||c[1]:l?a[e][0]:e;return o?`${s} ${u} ago`:`in ${s} ${u}`}function G3e(e,t){let n="";for(let r of e)r.literal?n+=r.val:n+=t(r.val);return n}function Z6(...e){let t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function $6(...e){return t=>e.reduce(([e,n,r],a)=>{let[i,o,s]=a(t,r);return[{...e,...i},o||n,s]},[{},null,1]).slice(0,2)}function K6(e,...t){if(null==e)return[null,null];for(let[n,r]of t){let t=n.exec(e);if(t)return r(t)}return[null,null]}function GMe(...e){return(t,n)=>{let r,a={};for(r=0;r<e.length;r++)a[e[r]]=q_(t[n+r]);return[a,null,n+r]}}function G6(e,t,n){let r=e[t];return _l(r)?n:q_(r)}function HSt(e,t){return[{year:G6(e,t),month:G6(e,t+1,1),day:G6(e,t+2,1)},null,t+3]}function J6(e,t){return[{hours:G6(e,t,0),minutes:G6(e,t+1,0),seconds:G6(e,t+2,0),milliseconds:bee(e[t+3])},null,t+4]}function K7(e,t){let n=!e[t]&&!e[t+1],r=FN(e[t+1],e[t+2]);return[{},n?null:cg.instance(r),t+3]}function J7(e,t){return[{},e[t]?P_.create(e[t]):null,t+1]}function GSt(e){let[t,n,r,a,i,o,s,l,c]=e,u="-"===t[0],d=l&&"-"===l[0],p=(e,t=!1)=>void 0!==e&&(t||e&&u)?-e:e;return[{years:p(P5(n)),months:p(P5(r)),weeks:p(P5(a)),days:p(P5(i)),hours:p(P5(o)),minutes:p(P5(s)),seconds:p(P5(l),"-0"===l),milliseconds:p(bee(c),d)}]}function zee(e,t,n,r,a,i,o){let s={year:2===t.length?pee(q_(t)):q_(t),month:NMe.indexOf(n)+1,day:q_(r),hour:q_(a),minute:q_(i)};return o&&(s.second=q_(o)),e&&(s.weekday=e.length>3?FMe.indexOf(e)+1:BMe.indexOf(e)+1),s}function ZSt(e){let t,[,n,r,a,i,o,s,l,c,u,d,p]=e,h=zee(n,i,a,r,o,s,l);return t=c?XSt[c]:u?0:FN(d,p),[h,new cg(t)]}function $St(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function X3e(e){let[,t,n,r,a,i,o,s]=e;return[zee(t,a,r,n,i,o,s),cg.utcInstance]}function ekt(e){let[,t,n,r,a,i,o,s]=e;return[zee(t,s,n,r,a,i,o),cg.utcInstance]}function lkt(e){return K6(e,[tkt,$Me],[rkt,ikt],[nkt,okt],[akt,skt])}function ckt(e){return K6($St(e),[YSt,ZSt])}function ukt(e){return K6(e,[KSt,X3e],[JSt,X3e],[QSt,ekt])}function dkt(e){return K6(e,[jSt,GSt])}function hkt(e){return K6(e,[VSt,fkt])}function gkt(e){return K6(e,[pkt,$Me],[mkt,vkt])}function hM(e,t,n=!1){let r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Qf(r)}function JMe(e,t){let n=t.milliseconds??0;for(let r of Mkt.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function Z3e(e,t){let n=JMe(e,t)<0?-1:1;N5.reduceRight((r,a)=>{if(_l(t[a]))return r;if(r){let i=t[r]*n,o=e[a][r],s=Math.floor(i/o);t[a]+=s*n,t[r]-=s*o*n}return a},null),N5.reduce((n,r)=>{if(_l(t[r]))return n;if(n){let a=t[n]%1;t[n]-=a,t[r]+=a*e[n][r]}return r},null)}function $3e(e){let t={};for(let[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}function xkt(e,t){return e&&e.isValid?t&&t.isValid?t<e?X6.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:X6.invalid("missing or invalid end"):X6.invalid("missing or invalid start")}function K3e(e,t){let n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Qf.fromMillis(r).as("days"))}function _kt(e,t,n){let r,a,i=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{let n=K3e(e,t);return(n-n%7)/7}],["days",K3e]],o={},s=e;for(let[l,c]of i)n.indexOf(l)>=0&&(r=l,o[l]=c(e,t),a=s.plus(o),a>t?(o[l]--,(e=s.plus(o))>t&&(a=e,o[l]--,e=s.plus(o))):e=a);return[e,o,a,r]}function zkt(e,t,n,r){let[a,i,o,s]=_kt(e,t,n),l=t-a,c=n.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===c.length&&(o<t&&(o=a.plus({[s]:1})),o!==a&&(i[s]=(i[s]||0)+l/(o-a)));let u=Qf.fromObject(i,r);return c.length>0?Qf.fromMillis(l,r).shiftTo(...c).plus(u):u}function Ru(e,t=e=>e){return{regex:e,deser:([e])=>t(pSt(e))}}function Okt(e){return e.replace(/\./g,"\\.?").replace(exe,QMe)}function J3e(e){return e.replace(/\./g,"").replace(exe," ").toLowerCase()}function Oy(e,t){return null===e?null:{regex:RegExp(e.map(Okt).join("|")),deser:([n])=>e.findIndex(e=>J3e(n)===J3e(e))+t}}function Q3e(e,t){return{regex:e,deser:([,e,t])=>FN(e,t),groups:t}}function wN(e){return{regex:e,deser:([e])=>e}}function Tkt(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Skt(e,t){let n=wy(t),r=wy(t,"{2}"),a=wy(t,"{3}"),i=wy(t,"{4}"),o=wy(t,"{6}"),s=wy(t,"{1,2}"),l=wy(t,"{1,3}"),c=wy(t,"{1,6}"),u=wy(t,"{1,9}"),d=wy(t,"{2,4}"),p=wy(t,"{4,6}"),h=e=>({regex:RegExp(Tkt(e.val)),deser:([e])=>e,literal:!0}),f=(f=>{if(e.literal)return h(f);switch(f.val){case"G":return Oy(t.eras("short"),0);case"GG":return Oy(t.eras("long"),0);case"y":return Ru(c);case"yy":case"kk":return Ru(d,pee);case"yyyy":case"kkkk":return Ru(i);case"yyyyy":return Ru(p);case"yyyyyy":return Ru(o);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Ru(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Ru(r);case"MMM":return Oy(t.months("short",!0),1);case"MMMM":return Oy(t.months("long",!0),1);case"LLL":return Oy(t.months("short",!1),1);case"LLLL":return Oy(t.months("long",!1),1);case"o":case"S":return Ru(l);case"ooo":case"SSS":return Ru(a);case"u":return wN(u);case"uu":return wN(s);case"uuu":case"E":case"c":return Ru(n);case"a":return Oy(t.meridiems(),0);case"EEE":return Oy(t.weekdays("short",!1),1);case"EEEE":return Oy(t.weekdays("long",!1),1);case"ccc":return Oy(t.weekdays("short",!0),1);case"cccc":return Oy(t.weekdays("long",!0),1);case"Z":case"ZZ":return Q3e(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return Q3e(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return wN(/[a-z_+-/]{1,256}?/i);case" ":return wN(/[^\S\n\r]/);default:return h(f)}})(e)||{invalidReason:Akt};return f.token=e,f}function Ckt(e,t,n){let{type:r,value:a}=e;if("literal"===r){let e=/^\s+$/.test(a);return{literal:!e,val:e?" ":a}}let i=t[r],o=r;"hour"===r&&(o=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let s=kkt[o];if("object"==typeof s&&(s=s[i]),s)return{literal:!1,val:s}}function Ekt(e){return[`^${e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"")}$`,e]}function qkt(e,t,n){let r=e.match(t);if(r){let e={},t=1;for(let a in n)if(Y6(n,a)){let i=n[a],o=i.groups?i.groups+1:1;!i.literal&&i.token&&(e[i.token.val[0]]=i.deser(r.slice(t,t+o))),t+=o}return[r,e]}return[r,{}]}function Dkt(e){let t,n=null;return _l(e.z)||(n=P_.create(e.z)),_l(e.Z)||(n||(n=new cg(e.Z)),t=e.Z),_l(e.q)||(e.M=3*(e.q-1)+1),_l(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),_l(e.u)||(e.S=bee(e.u)),[Object.keys(e).reduce((t,n)=>{let r=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(t[r]=e[n]),t},{}),n,t]}function Rkt(){return XQ||(XQ=Fn.fromMillis(1555555555555)),XQ}function Lkt(e,t){if(e.literal)return e;let n=nxe(gv.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}function txe(e,t){return Array.prototype.concat(...e.map(e=>Lkt(e,t)))}function rxe(e,t,n){return new IN(e,n).explainFromTokens(t)}function Pkt(e,t,n){let{result:r,zone:a,specificOffset:i,invalidReason:o}=rxe(e,t,n);return[r,a,i,o]}function nxe(e,t){if(!e)return null;let n=gv.create(t,e).dtFormatter(Rkt()),r=n.formatToParts(),a=n.resolvedOptions();return r.map(t=>Ckt(t,e,a))}function G7(e){return new yv("unsupported zone",`the zone "${e.name}" is not supported`)}function ZQ(e){return null===e.weekData&&(e.weekData=RN(e.c)),e.weekData}function $Q(e){return null===e.localWeekData&&(e.localWeekData=RN(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function I5(e,t){let n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Fn({...n,...t,old:n})}function axe(e,t,n){let r=e-60*t*1e3,a=n.offset(r);if(t===a)return[r,t];r-=60*(a-t)*1e3;let i=n.offset(r);return a===i?[r,a]:[e-60*Math.min(a,i)*1e3,Math.max(a,i)]}function ON(e,t){let n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function SN(e,t,n){return axe(WN(e),t,n)}function tMe(e,t){let n=e.o,r=e.c.year+Math.trunc(t.years),a=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),i={...e.c,year:r,month:a,day:Math.min(e.c.day,LN(r,a))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},o=Qf.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=WN(i),[l,c]=axe(s,n,e.zone);return 0!==o&&(l+=o,c=e.zone.offset(l)),{ts:l,o:c}}function H6(e,t,n,r,a,i){let{setZone:o,zone:s}=n;if(e&&0!==Object.keys(e).length||t){let r=t||s,a=Fn.fromObject(e,{...n,zone:r,specificOffset:i});return o?a:a.setZone(s)}return Fn.invalid(new yv("unparsable",`the input "${a}" can't be parsed as ${r}`))}function TN(e,t,n=!0){return e.isValid?gv.create(Dd.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function KQ(e,t,n){let r=e.c.year>9999||e.c.year<0,a="";if(r&&e.c.year>=0&&(a+="+"),a+=Ih(e.c.year,r?6:4),"year"===n)return a;if(t){if(a+="-",a+=Ih(e.c.month),"month"===n)return a;a+="-"}else if(a+=Ih(e.c.month),"month"===n)return a;return a+=Ih(e.c.day),a}function rMe(e,t,n,r,a,i,o){let s=!n||0!==e.c.millisecond||0!==e.c.second,l="";switch(o){case"day":case"month":case"year":break;default:if(l+=Ih(e.c.hour),"hour"===o)break;if(t){if(l+=":",l+=Ih(e.c.minute),"minute"===o)break;s&&(l+=":",l+=Ih(e.c.second))}else{if(l+=Ih(e.c.minute),"minute"===o)break;s&&(l+=Ih(e.c.second))}if("second"===o)break;s&&(!r||0!==e.c.millisecond)&&(l+=".",l+=Ih(e.c.millisecond,3))}return a&&(e.isOffsetFixed&&0===e.offset&&!i?l+="Z":e.o<0?(l+="-",l+=Ih(Math.trunc(-e.o/60)),l+=":",l+=Ih(Math.trunc(-e.o%60))):(l+="+",l+=Ih(Math.trunc(e.o/60)),l+=":",l+=Ih(Math.trunc(e.o%60)))),i&&(l+="["+e.zone.ianaName+"]"),l}function CN(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new EN(e);return t}function nMe(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return CN(e)}}function Bkt(e){if(void 0===X7&&(X7=yf.now()),"iana"!==e.type)return e.offset(X7);let t=e.name,n=mee.get(t);return void 0===n&&(n=e.offset(X7),mee.set(t,n)),n}function aMe(e,t){let n=D_(t.zone,yf.defaultZone);if(!n.isValid)return Fn.invalid(G7(n));let r,a,i=Dd.fromObject(t);if(_l(e.year))r=yf.now();else{for(let t of kN)_l(e[t])&&(e[t]=ixe[t]);let t=qMe(e)||DMe(e);if(t)return Fn.invalid(t);let i=Bkt(n);[r,a]=SN(e,i,n)}return new Fn({ts:r,zone:n,loc:i,o:a})}function iMe(e,t,n){let r=!!_l(n.round)||n.round,a=_l(n.rounding)?"trunc":n.rounding,i=(e,i)=>(e=Mee(e,r||n.calendary?0:2,n.calendary?"round":a),t.loc.clone(n).relFormatter(n).format(e,i)),o=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return i(o(n.unit),n.unit);for(let e of n.units){let t=o(e);if(Math.abs(t)>=1)return i(t,e)}return i(e>t?-0:0,n.units[n.units.length-1])}function oMe(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}function V7(e){if(Fn.isDateTime(e))return e;if(e&&e.valueOf&&L_(e.valueOf()))return Fn.fromJSDate(e);if(e&&"object"==typeof e)return Fn.fromObject(e);throw new Ep(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var pM,JQ,QQ,eee,R_,EN,Ep,Db,hs,Ty,bv,qN,sMe,K8t,lMe,cMe,uMe,dMe,fMe,hMe,pMe,mMe,vMe,gMe,yMe,bMe,MMe,xMe,J8t,_Me,zMe,AMe,wMe,W5,HQ,DN,tee,eSt,VQ,P_,E3e,ree,aee,iee,j7,oee,see,lee,cee,uee,TMe,Dd,jQ,cg,dee,vee,q3e,hSt,fee,D3e,R3e,L3e,P3e,I3e,N3e,W3e,F3e,yf,yv,SMe,kMe,zSt,NMe,ASt,FMe,BMe,wSt,HMe,OSt,TSt,SSt,RSt,gv,jMe,XMe,LSt,xee,YMe,_ee,PSt,ISt,NSt,WSt,FSt,BSt,ZMe,USt,VSt,jSt,XSt,YSt,KSt,JSt,QSt,tkt,rkt,nkt,akt,$Me,ikt,okt,skt,fkt,pkt,mkt,vkt,Y3e,KMe,ykt,og,B6,bkt,N5,Mkt,Qf,U6,X6,V6,Akt,wkt,QMe,exe,kkt,XQ,IN,YQ,eMe,ixe,Ikt,Nkt,kN,Wkt,Fkt,X7,mee,Fn,Lu=kr(()=>{pM=class extends Error{},JQ=class extends pM{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},QQ=class extends pM{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},eee=class extends pM{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},R_=class extends pM{},EN=class extends pM{constructor(e){super(`Invalid unit ${e}`)}},Ep=class extends pM{},Db=class extends pM{constructor(){super("Zone is an abstract class")}},qN={year:hs="numeric",month:hs,day:hs},sMe={year:hs,month:Ty="short",day:hs},K8t={year:hs,month:Ty,day:hs,weekday:Ty},lMe={year:hs,month:bv="long",day:hs},cMe={year:hs,month:bv,day:hs,weekday:bv},uMe={hour:hs,minute:hs},dMe={hour:hs,minute:hs,second:hs},fMe={hour:hs,minute:hs,second:hs,timeZoneName:Ty},hMe={hour:hs,minute:hs,second:hs,timeZoneName:bv},pMe={hour:hs,minute:hs,hourCycle:"h23"},mMe={hour:hs,minute:hs,second:hs,hourCycle:"h23"},vMe={hour:hs,minute:hs,second:hs,hourCycle:"h23",timeZoneName:Ty},gMe={hour:hs,minute:hs,second:hs,hourCycle:"h23",timeZoneName:bv},yMe={year:hs,month:hs,day:hs,hour:hs,minute:hs},bMe={year:hs,month:hs,day:hs,hour:hs,minute:hs,second:hs},MMe={year:hs,month:Ty,day:hs,hour:hs,minute:hs},xMe={year:hs,month:Ty,day:hs,hour:hs,minute:hs,second:hs},J8t={year:hs,month:Ty,day:hs,weekday:Ty,hour:hs,minute:hs},_Me={year:hs,month:bv,day:hs,hour:hs,minute:hs,timeZoneName:Ty},zMe={year:hs,month:bv,day:hs,hour:hs,minute:hs,second:hs,timeZoneName:Ty},AMe={year:hs,month:bv,day:hs,weekday:bv,hour:hs,minute:hs,timeZoneName:bv},wMe={year:hs,month:bv,day:hs,weekday:bv,hour:hs,minute:hs,second:hs,timeZoneName:bv},W5=class{get type(){throw new Db}get name(){throw new Db}get ianaName(){return this.name}get isUniversal(){throw new Db}offsetName(e,t){throw new Db}formatOffset(e,t){throw new Db}offset(e){throw new Db}equals(e){throw new Db}get isValid(){throw new Db}},HQ=null,DN=class e extends W5{static get instance(){return null===HQ&&(HQ=new e),HQ}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return PMe(e,t,n)}formatOffset(e,t){return Y7(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}},tee=new Map,eSt={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},VQ=new Map,P_=class e extends W5{static create(t){let n=VQ.get(t);return void 0===n&&VQ.set(t,n=new e(t)),n}static resetCache(){VQ.clear(),tee.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return PMe(e,t,n,this.name)}formatOffset(e,t){return Y7(this.offset(e),t)}offset(e){if(!this.valid)return NaN;let t=new Date(e);if(isNaN(t))return NaN;let n=Q8t(this.name),[r,a,i,o,s,l,c]=n.formatToParts?rSt(n,t):tSt(n,t);"BC"===o&&(r=1-Math.abs(r));let u=+t,d=u%1e3;return u-=d>=0?d:1e3+d,(WN({year:r,month:a,day:i,hour:24===s?0:s,minute:l,second:c,millisecond:0})-u)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}},E3e={},ree=new Map,aee=new Map,iee=new Map,j7=null,oee=new Map,see=new Map,lee=class{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:r,floor:a,...i}=n;if(!t||Object.keys(i).length>0){let t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=aSt(e,t)}}format(e){if(this.inf){let t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Ih(this.floor?Math.floor(e):Mee(e,3),this.padTo)}},cee=class{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){let t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&P_.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let a={...this.opts};a.timeZone=a.timeZone||r,this.dtf=nee(t,a)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"===e.type){let t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},uee=class{constructor(e,t,n){this.opts={style:"long",...n},!t&&RMe()&&(this.rtf=iSt(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):DSt(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}},TMe={firstDay:1,minimalDays:4,weekend:[6,7]},Dd=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,a,i=!1){let o=t||yf.defaultLocale,s=o||(i?"en-US":oSt()),l=n||yf.defaultNumberingSystem,c=r||yf.defaultOutputCalendar,u=hee(a)||yf.defaultWeekSettings;return new e(s,l,c,u,o)}static resetCache(){j7=null,ree.clear(),aee.clear(),iee.clear(),oee.clear(),see.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:a}={}){return e.create(t,n,r,a)}constructor(e,t,n,r,a){let[i,o,s]=lSt(e);this.locale=i,this.numberingSystem=t||o||null,this.outputCalendar=n||s||null,this.weekSettings=r,this.intl=cSt(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=fSt(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,hee(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return AN(this,e,WMe,()=>{let n="ja"===this.intl||this.intl.startsWith("ja-"),r=(t&=!n)?{month:e,day:"numeric"}:{month:e},a=t?"format":"standalone";if(!this.monthsCache[a][e]){let t=n?e=>this.dtFormatter(e,r).format():e=>this.extract(e,r,"month");this.monthsCache[a][e]=uSt(t)}return this.monthsCache[a][e]})}weekdays(e,t=!1){return AN(this,e,UMe,()=>{let n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=dSt(e=>this.extract(e,n,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return AN(this,void 0,()=>HMe,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Fn.utc(2016,11,13,9),Fn.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return AN(this,e,VMe,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[Fn.utc(-40,1,1),Fn.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]})}extract(e,t,n){let r=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===n);return r?r.value:null}numberFormatter(e={}){return new lee(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new cee(e,this.intl,t)}relFormatter(e={}){return new uee(this.intl,this.isEnglish(),e)}listFormatter(e={}){return nSt(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||OMe(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:LMe()?sSt(this.locale):TMe}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},jQ=null,cg=class e extends W5{static get utcInstance(){return null===jQ&&(jQ=new e(0)),jQ}static instance(t){return 0===t?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new e(FN(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Y7(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Y7(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Y7(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}},dee=class extends W5{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}},q3e={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hSt=(vee={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[-৯]",deva:"[-९]",fullwide:"[-]",gujr:"[-૯]",hanidec:"[|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[-೯]",laoo:"[-໙]",limb:"[᥆-᥏]",mlym:"[-൯]",mong:"[᠐-᠙]",mymr:"[-၉]",orya:"[-୯]",tamldec:"[-௯]",telu:"[-౯]",thai:"[-๙]",tibt:"[༠-༩]",latn:"\\d"}).hanidec.replace(/[\[|\]]/g,"").split(""),fee=new Map,D3e=()=>Date.now(),R3e="system",L3e=null,P3e=null,I3e=null,N3e=60,F3e=null,yf=class{static get now(){return D3e}static set now(e){D3e=e}static set defaultZone(e){R3e=e}static get defaultZone(){return D_(R3e,DN.instance)}static get defaultLocale(){return L3e}static set defaultLocale(e){L3e=e}static get defaultNumberingSystem(){return P3e}static set defaultNumberingSystem(e){P3e=e}static get defaultOutputCalendar(){return I3e}static set defaultOutputCalendar(e){I3e=e}static get defaultWeekSettings(){return F3e}static set defaultWeekSettings(e){F3e=hee(e)}static get twoDigitCutoffYear(){return N3e}static set twoDigitCutoffYear(e){N3e=e%100}static get throwOnInvalid(){return W3e}static set throwOnInvalid(e){W3e=e}static resetCaches(){Dd.resetCache(),P_.resetCache(),Fn.resetCache(),mSt()}},yv=class{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},SMe=[0,31,59,90,120,151,181,212,243,273,304,334],kMe=[0,31,60,91,121,152,182,213,244,274,305,335],zSt=["January","February","March","April","May","June","July","August","September","October","November","December"],NMe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ASt=["J","F","M","A","M","J","J","A","S","O","N","D"],FMe=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],BMe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],wSt=["M","T","W","T","F","S","S"],HMe=["AM","PM"],OSt=["Before Christ","Anno Domini"],TSt=["BC","AD"],SSt=["B","A"],RSt={D:qN,DD:sMe,DDD:lMe,DDDD:cMe,t:uMe,tt:dMe,ttt:fMe,tttt:hMe,T:pMe,TT:mMe,TTT:vMe,TTTT:gMe,f:yMe,ff:MMe,fff:_Me,ffff:AMe,F:bMe,FF:xMe,FFF:zMe,FFFF:wMe},gv=class e{static create(t,n={}){return new e(t,n)}static parseFormat(e){let t=null,n="",r=!1,a=[];for(let i=0;i<e.length;i++){let o=e.charAt(i);"'"===o?((n.length>0||r)&&a.push({literal:r||/^\s+$/.test(n),val:""===n?"'":n}),t=null,n="",r=!r):r||o===t?n+=o:(n.length>0&&a.push({literal:/^\s+$/.test(n),val:n}),n=o,t=o)}return n.length>0&&a.push({literal:r||/^\s+$/.test(n),val:n}),a}static macroTokenToFormatOpts(e){return RSt[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,n=void 0){if(this.opts.forceSimple)return Ih(e,t);let r={...this.opts};return t>0&&(r.padTo=t),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(t,n){let r="en"===this.loc.listingMode(),a=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,i=(e,n)=>this.loc.extract(t,e,n),o=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",s=(e,n)=>r?ESt(t,e):i(n?{month:e}:{month:e,day:"numeric"},"month"),l=(e,n)=>r?CSt(t,e):i(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),c=n=>{let r=e.macroTokenToFormatOpts(n);return r?this.formatWithSystemDefault(t,r):n},u=e=>r?qSt(t,e):i({era:e},"era");return G3e(e.parseFormat(n),e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return r?kSt(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return a?i({day:"numeric"},"day"):this.num(t.day);case"dd":return a?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return a?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return a?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return a?i({month:"numeric"},"month"):this.num(t.month);case"MM":return a?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return a?i({year:"numeric"},"year"):this.num(t.year);case"yy":return a?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return a?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return a?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(e)}})}formatDurationFromString(t,n){let r="negativeLargestOnly"===this.opts.signMode?-1:1,a=e=>{switch(e[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},i=e.parseFormat(n),o=i.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]),s=t.shiftTo(...o.map(a).filter(e=>e));return G3e(i,((e,t)=>n=>{let i=a(n);if(i){let a,o=t.isNegativeDuration&&i!==t.largestUnit?r:1;return a="negativeLargestOnly"===this.opts.signMode&&i!==t.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(e.get(i)*o,n.length,a)}return n})(s,{isNegativeDuration:s<0,largestUnit:Object.keys(s.values)[0]}))}},LSt=`(?:${(XMe=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/).source}?(?:\\[(${(jMe=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/).source})\\])?)?`,xee=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,YMe=RegExp(`${xee.source}${LSt}`),_ee=RegExp(`(?:[Tt]${YMe.source})?`),PSt=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ISt=/(\d{4})-?W(\d\d)(?:-?(\d))?/,NSt=/(\d{4})-?(\d{3})/,WSt=GMe("weekYear","weekNumber","weekDay"),FSt=GMe("year","ordinal"),BSt=/(\d{4})-(\d\d)-(\d\d)/,ZMe=RegExp(`${xee.source} ?(?:${XMe.source}|(${jMe.source}))?`),USt=RegExp(`(?: ${ZMe.source})?`),VSt=RegExp(`^T?${xee.source}$`),jSt=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/,XSt={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},YSt=/^(?:(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\d)(\d\d)))$/,KSt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,JSt=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,QSt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/,tkt=Z6(PSt,_ee),rkt=Z6(ISt,_ee),nkt=Z6(NSt,_ee),akt=Z6(YMe),$Me=$6(HSt,J6,K7,J7),ikt=$6(WSt,J6,K7,J7),okt=$6(FSt,J6,K7,J7),skt=$6(J6,K7,J7),fkt=$6(J6),pkt=Z6(BSt,USt),mkt=Z6(ZMe),vkt=$6(J6,K7,J7),Y3e="Invalid Duration",KMe={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},ykt={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...KMe},bkt={years:{quarters:4,months:12,weeks:(og=365.2425)/7,days:og,hours:24*og,minutes:24*og*60,seconds:24*og*60*60,milliseconds:24*og*60*60*1e3},quarters:{months:3,weeks:og/28,days:og/4,hours:24*og/4,minutes:24*og*60/4,seconds:24*og*60*60/4,milliseconds:24*og*60*60*1e3/4},months:{weeks:(B6=30.436875)/7,days:B6,hours:24*B6,minutes:24*B6*60,seconds:24*B6*60*60,milliseconds:24*B6*60*60*1e3},...KMe},Mkt=(N5=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"]).slice(0).reverse(),Qf=class e{constructor(e){let t="longterm"===e.conversionAccuracy||!1,n=t?bkt:ykt;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||Dd.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,n){return e.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(null==t||"object"!=typeof t)throw new Ep("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:PN(t,e.normalizeUnit),loc:Dd.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(L_(t))return e.fromMillis(t);if(e.isDuration(t))return t;if("object"==typeof t)return e.fromObject(t);throw new Ep(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){let[r]=dkt(t);return r?e.fromObject(r,n):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){let[r]=hkt(t);return r?e.fromObject(r,n):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new Ep("need to specify a reason the Duration is invalid");let r=t instanceof yv?t:new yv(t,n);if(yf.throwOnInvalid)throw new eee(r);return new e({invalid:r})}static normalizeUnit(e){let t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!t)throw new EN(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){let n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?gv.create(this.loc,n).formatDurationFromString(this,e):Y3e}toHuman(e={}){if(!this.isValid)return Y3e;let t=!1!==e.showZeros,n=N5.map(n=>{let r=this.values[n];return _l(r)||0===r&&!t?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(r)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(e+=Mee(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Fn.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?JMe(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let n=e.fromDurationLike(t),r={};for(let e of N5)(Y6(n.values,e)||Y6(this.values,e))&&(r[e]=n.get(e)+this.get(e));return hM(this,{values:r},!0)}minus(t){if(!this.isValid)return this;let n=e.fromDurationLike(t);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let n of Object.keys(this.values))t[n]=IMe(e(this.values[n],n));return hM(this,{values:t},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;return hM(this,{values:{...this.values,...PN(t,e.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){return hM(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return Z3e(this.matrix,e),hM(this,{values:e},!0)}rescale(){if(!this.isValid)return this;return hM(this,{values:$3e(this.normalize().shiftToAll().toObject())},!0)}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map(t=>e.normalizeUnit(t));let n,r={},a={},i=this.toObject();for(let e of N5)if(t.indexOf(e)>=0){n=e;let t=0;for(let n in a)t+=this.matrix[n][e]*a[n],a[n]=0;L_(i[e])&&(t+=i[e]);let o=Math.trunc(t);r[e]=o,a[e]=(1e3*t-1e3*o)/1e3}else L_(i[e])&&(a[e]=i[e]);for(let e in a)0!==a[e]&&(r[n]+=e===n?a[e]:a[e]/this.matrix[n][e]);return Z3e(this.matrix,r),hM(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return hM(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;return hM(this,{values:$3e(this.values)},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(e,t){return void 0===e||0===e?void 0===t||0===t:e===t}for(let n of N5)if(!t(this.values[n],e.values[n]))return!1;return!0}},U6="Invalid Interval",X6=class e{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new Ep("need to specify a reason the Interval is invalid");let r=t instanceof yv?t:new yv(t,n);if(yf.throwOnInvalid)throw new QQ(r);return new e({invalid:r})}static fromDateTimes(t,n){let r=V7(t),a=V7(n);return xkt(r,a)??new e({start:r,end:a})}static after(t,n){let r=Qf.fromDurationLike(n),a=V7(t);return e.fromDateTimes(a,a.plus(r))}static before(t,n){let r=Qf.fromDurationLike(n),a=V7(t);return e.fromDateTimes(a.minus(r),a)}static fromISO(t,n){let[r,a]=(t||"").split("/",2);if(r&&a){let t,i,o,s;try{t=Fn.fromISO(r,n),i=t.isValid}catch{i=!1}try{o=Fn.fromISO(a,n),s=o.isValid}catch{s=!1}if(i&&s)return e.fromDateTimes(t,o);if(i){let r=Qf.fromISO(a,n);if(r.isValid)return e.after(t,r)}else if(s){let t=Qf.fromISO(r,n);if(t.isValid)return e.before(o,t)}}return e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;let n,r=this.start.startOf(e,t);return n=t?.useLocaleWeeks?this.end.reconfigure({locale:r.locale}):this.end,n=n.startOf(e,t),Math.floor(n.diff(r,e).get(e))+(n.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:t,end:n}={}){return this.isValid?e.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];let n=t.map(V7).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),r=[],{s:a}=this,i=0;for(;a<this.e;){let t=n[i]||this.e,o=+t>+this.e?this.e:t;r.push(e.fromDateTimes(a,o)),a=o,i+=1}return r}splitBy(t){let n=Qf.fromDurationLike(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];let r,{s:a}=this,i=1,o=[];for(;a<this.e;){let t=this.start.plus(n.mapUnits(e=>e*i));r=+t>+this.e?this.e:t,o.push(e.fromDateTimes(a,r)),a=r,i+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(t){if(!this.isValid)return this;let n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:e.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;let n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return e.fromDateTimes(n,r)}static merge(e){let[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(t){let n=null,r=0,a=[],i=t.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]),o=Array.prototype.concat(...i).sort((e,t)=>e.time-t.time);for(let t of o)r+="s"===t.type?1:-1,1===r?n=t.time:(n&&+n!=+t.time&&a.push(e.fromDateTimes(n,t.time)),n=null);return e.merge(a)}difference(...t){return e.xor([this].concat(t)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} ${this.e.toISO()})`:U6}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=qN,t={}){return this.isValid?gv.create(this.s.loc.clone(t),e).formatInterval(this):U6}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:U6}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:U6}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:U6}toFormat(e,{separator:t=" "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:U6}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Qf.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}},V6=class{static hasDST(e=yf.defaultZone){let t=Fn.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return P_.isValidZone(e)}static normalizeZone(e){return D_(e,yf.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Dd.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Dd.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Dd.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:a="gregory"}={}){return(r||Dd.create(t,n,a)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:a="gregory"}={}){return(r||Dd.create(t,n,a)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Dd.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Dd.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Dd.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Dd.create(t,null,"gregory").eras(e)}static features(){return{relative:RMe(),localeWeek:LMe()}}},Akt="missing Intl.DateTimeFormat.formatToParts support",QMe=`[ ${wkt=" "}]`,exe=new RegExp(QMe,"g"),kkt={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}},XQ=null,IN=class{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=txe(gv.parseFormat(t),e),this.units=this.tokens.map(t=>Skt(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){let[e,t]=Ekt(this.units);this.regex=RegExp(e,"i"),this.handlers=t}}explainFromTokens(e){if(this.isValid){let[t,n]=qkt(e,this.regex,this.handlers),[r,a,i]=n?Dkt(n):[null,null,void 0];if(Y6(n,"a")&&Y6(n,"H"))throw new R_("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:r,zone:a,specificOffset:i}}return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}},YQ="Invalid DateTime",eMe=864e13,ixe={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ikt={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Nkt={ordinal:1,hour:0,minute:0,second:0,millisecond:0},kN=["year","month","day","hour","minute","second","millisecond"],Wkt=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Fkt=["year","ordinal","hour","minute","second","millisecond"],mee=new Map,Fn=class e{constructor(e){let t=e.zone||yf.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new yv("invalid input"):null)||(t.isValid?null:G7(t));this.ts=_l(e.ts)?yf.now():e.ts;let r=null,a=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,a]=[e.old.c,e.old.o];else{let i=L_(e.o)&&!e.old?e.o:t.offset(this.ts);r=ON(this.ts,i),n=Number.isNaN(r.year)?new yv("invalid input"):null,r=n?null:r,a=n?null:i}this._zone=t,this.loc=e.loc||Dd.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=a,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[e,t]=oMe(arguments),[n,r,a,i,o,s,l]=t;return aMe({year:n,month:r,day:a,hour:i,minute:o,second:s,millisecond:l},e)}static utc(){let[e,t]=oMe(arguments),[n,r,a,i,o,s,l]=t;return e.zone=cg.utcInstance,aMe({year:n,month:r,day:a,hour:i,minute:o,second:s,millisecond:l},e)}static fromJSDate(t,n={}){let r=bSt(t)?t.valueOf():NaN;if(Number.isNaN(r))return e.invalid("invalid input");let a=D_(n.zone,yf.defaultZone);return a.isValid?new e({ts:r,zone:a,loc:Dd.fromObject(n)}):e.invalid(G7(a))}static fromMillis(t,n={}){if(L_(t))return t<-eMe||t>eMe?e.invalid("Timestamp out of range"):new e({ts:t,zone:D_(n.zone,yf.defaultZone),loc:Dd.fromObject(n)});throw new Ep(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(L_(t))return new e({ts:1e3*t,zone:D_(n.zone,yf.defaultZone),loc:Dd.fromObject(n)});throw new Ep("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};let r=D_(n.zone,yf.defaultZone);if(!r.isValid)return e.invalid(G7(r));let a=Dd.fromObject(n),i=PN(t,nMe),{minDaysInFirstWeek:o,startOfWeek:s}=H3e(i,a),l=yf.now(),c=_l(n.specificOffset)?r.offset(l):n.specificOffset,u=!_l(i.ordinal),d=!_l(i.year),p=!_l(i.month)||!_l(i.day),h=d||p,f=i.weekYear||i.weekNumber;if((h||u)&&f)throw new R_("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(p&&u)throw new R_("Can't mix ordinal dates with month/day");let m,g,y=f||i.weekday&&!h,b=ON(l,c);y?(m=Wkt,g=Ikt,b=RN(b,o,s)):u?(m=Fkt,g=Nkt,b=GQ(b)):(m=kN,g=ixe);let v=!1;for(let e of m){_l(i[e])?i[e]=v?g[e]:b[e]:v=!0}let M=(y?vSt(i,o,s):u?gSt(i):qMe(i))||DMe(i);if(M)return e.invalid(M);let x=y?B3e(i,o,s):u?U3e(i):i,[z,_]=SN(x,c,r),A=new e({ts:z,zone:r,o:_,loc:a});return i.weekday&&h&&t.weekday!==A.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${A.toISO()}`):A.isValid?A:e.invalid(A.invalid)}static fromISO(e,t={}){let[n,r]=lkt(e);return H6(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){let[n,r]=ckt(e);return H6(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){let[n,r]=ukt(e);return H6(n,r,t,"HTTP",t)}static fromFormat(t,n,r={}){if(_l(t)||_l(n))throw new Ep("fromFormat requires an input string and a format");let{locale:a=null,numberingSystem:i=null}=r,o=Dd.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0}),[s,l,c,u]=Pkt(o,t,n);return u?e.invalid(u):H6(s,l,r,`format ${n}`,t,c)}static fromString(t,n,r={}){return e.fromFormat(t,n,r)}static fromSQL(e,t={}){let[n,r]=gkt(e);return H6(n,r,t,"SQL",e)}static invalid(t,n=null){if(!t)throw new Ep("need to specify a reason the DateTime is invalid");let r=t instanceof yv?t:new yv(t,n);if(yf.throwOnInvalid)throw new JQ(r);return new e({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let n=nxe(e,Dd.fromObject(t));return n?n.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){return txe(gv.parseFormat(e),Dd.fromObject(t)).map(e=>e.val).join("")}static resetCache(){X7=void 0,mee.clear()}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?ZQ(this).weekYear:NaN}get weekNumber(){return this.isValid?ZQ(this).weekNumber:NaN}get weekday(){return this.isValid?ZQ(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?$Q(this).weekday:NaN}get localWeekNumber(){return this.isValid?$Q(this).weekNumber:NaN}get localWeekYear(){return this.isValid?$Q(this).weekYear:NaN}get ordinal(){return this.isValid?GQ(this.c).ordinal:NaN}get monthShort(){return this.isValid?V6.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?V6.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?V6.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?V6.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,t=6e4,n=WN(this.c),r=this.zone.offset(n-e),a=this.zone.offset(n+e),i=this.zone.offset(n-r*t),o=this.zone.offset(n-a*t);if(i===o)return[this];let s=n-i*t,l=n-o*t,c=ON(s,i),u=ON(l,o);return c.hour===u.hour&&c.minute===u.minute&&c.second===u.second&&c.millisecond===u.millisecond?[I5(this,{ts:s}),I5(this,{ts:l})]:[this]}get isInLeapYear(){return $7(this.year)}get daysInMonth(){return LN(this.year,this.month)}get daysInYear(){return this.isValid?j6(this.year):NaN}get weeksInWeekYear(){return this.isValid?Z7(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Z7(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:n,calendar:r}=gv.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(cg.instance(e),t)}toLocal(){return this.setZone(yf.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if((t=D_(t,yf.defaultZone)).equals(this.zone))return this;if(t.isValid){let e=this.ts;if(n||r){let n=t.offset(this.ts),r=this.toObject();[e]=SN(r,n,t)}return I5(this,{ts:e,zone:t})}return e.invalid(G7(t))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return I5(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let t,n=PN(e,nMe),{minDaysInFirstWeek:r,startOfWeek:a}=H3e(n,this.loc),i=!_l(n.weekYear)||!_l(n.weekNumber)||!_l(n.weekday),o=!_l(n.ordinal),s=!_l(n.year),l=!_l(n.month)||!_l(n.day),c=s||l,u=n.weekYear||n.weekNumber;if((c||o)&&u)throw new R_("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new R_("Can't mix ordinal dates with month/day");i?t=B3e({...RN(this.c,r,a),...n},r,a):_l(n.ordinal)?(t={...this.toObject(),...n},_l(n.day)&&(t.day=Math.min(LN(t.year,t.month),t.day))):t=U3e({...GQ(this.c),...n});let[d,p]=SN(t,this.o,this.zone);return I5(this,{ts:d,o:p})}plus(e){if(!this.isValid)return this;return I5(this,tMe(this,Qf.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return I5(this,tMe(this,Qf.fromDurationLike(e).negate()))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;let n={},r=Qf.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===r)if(t){let e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===r){let e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?gv.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):YQ}toLocaleString(e=qN,t={}){return this.isValid?gv.create(this.loc.clone(t),e).formatDateTime(this):YQ}toLocaleParts(e={}){return this.isValid?gv.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:a=!1,precision:i="milliseconds"}={}){if(!this.isValid)return null;let o="extended"===e,s=KQ(this,o,i=CN(i));return kN.indexOf(i)>=3&&(s+="T"),s+=rMe(this,o,t,n,r,a,i),s}toISODate({format:e="extended",precision:t="day"}={}){return this.isValid?KQ(this,"extended"===e,CN(t)):null}toISOWeekDate(){return TN(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:a=!1,format:i="extended",precision:o="milliseconds"}={}){return this.isValid?(o=CN(o),(r&&kN.indexOf(o)>=3?"T":"")+rMe(this,"extended"===i,t,e,n,a,o)):null}toRFC2822(){return TN(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return TN(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?KQ(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),TN(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():YQ}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return Qf.invalid("created by diffing an invalid DateTime");let r={locale:this.locale,numberingSystem:this.numberingSystem,...n},a=MSt(t).map(Qf.normalizeUnit),i=e.valueOf()>this.valueOf(),o=zkt(i?this:e,i?e:this,a,r);return i?o.negate():o}diffNow(t="milliseconds",n={}){return this.diff(e.now(),t,n)}until(e){return this.isValid?X6.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;let r=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(t,n)<=r&&r<=a.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(t={}){if(!this.isValid)return null;let n=t.base||e.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0,a=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(a=t.unit,i=void 0),iMe(n,this.plus(r),{...t,numeric:"always",units:a,unit:i})}toRelativeCalendar(t={}){return this.isValid?iMe(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new Ep("min requires all arguments be DateTimes");return V3e(t,e=>e.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new Ep("max requires all arguments be DateTimes");return V3e(t,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){let{locale:r=null,numberingSystem:a=null}=n;return rxe(Dd.fromOpts({locale:r,numberingSystem:a,defaultToEN:!0}),e,t)}static fromStringExplain(t,n,r={}){return e.fromFormatExplain(t,n,r)}static buildFormatParser(e,t={}){let{locale:n=null,numberingSystem:r=null}=t,a=Dd.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0});return new IN(a,e)}static fromFormatParser(t,n,r={}){if(_l(t)||_l(n))throw new Ep("fromFormatParser requires an input string and a format parser");let{locale:a=null,numberingSystem:i=null}=r,o=Dd.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});if(!o.equals(n.locale))throw new Ep(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`);let{result:s,zone:l,specificOffset:c,invalidReason:u}=n.explainFromTokens(t);return u?e.invalid(u):H6(s,l,r,`format ${n.format}`,t,c)}static get DATE_SHORT(){return qN}static get DATE_MED(){return sMe}static get DATE_MED_WITH_WEEKDAY(){return K8t}static get DATE_FULL(){return lMe}static get DATE_HUGE(){return cMe}static get TIME_SIMPLE(){return uMe}static get TIME_WITH_SECONDS(){return dMe}static get TIME_WITH_SHORT_OFFSET(){return fMe}static get TIME_WITH_LONG_OFFSET(){return hMe}static get TIME_24_SIMPLE(){return pMe}static get TIME_24_WITH_SECONDS(){return mMe}static get TIME_24_WITH_SHORT_OFFSET(){return vMe}static get TIME_24_WITH_LONG_OFFSET(){return gMe}static get DATETIME_SHORT(){return yMe}static get DATETIME_SHORT_WITH_SECONDS(){return bMe}static get DATETIME_MED(){return MMe}static get DATETIME_MED_WITH_SECONDS(){return xMe}static get DATETIME_MED_WITH_WEEKDAY(){return J8t}static get DATETIME_FULL(){return _Me}static get DATETIME_FULL_WITH_SECONDS(){return zMe}static get DATETIME_HUGE(){return AMe}static get DATETIME_HUGE_WITH_SECONDS(){return wMe}}});function Jkt(){let e,t=[],n=Object.create(null);return n.get=(r,a)=>(e?.revoke?.(),a===gxe?t:(t.push(a),e=Proxy.revocable(r,n),e.proxy)),Proxy.revocable(Object.create(null),n).proxy}function Q6(e,t){let{[gxe]:n}=e(Jkt()),r=t?.keySeparator??".",a=t?.nsSeparator??":",i="strict"===t?.enableSelector;if(n.length>1&&a){let e=t?.ns,o=i?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(i?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${a}${n.slice(1).join(r)}`}return n.join(r)}var zl,Q7,oxe,Ukt,Hkt,sxe,lxe,eC,cxe,Vkt,HN,jkt,mxe,mM,Gkt,Xkt,Tee,Ykt,Zkt,$kt,See,tC,Kkt,kee,Rb,eT,VN,vxe,gxe,Aee,jN,GN,uxe,dxe,Cee,fxe,wee,XN,Qkt,hxe,e9t,Eee,t9t,qee,Oee,pxe,UN,r9t,Dee,sp,bWr,MWr,xWr,_Wr,zWr,AWr,wWr,OWr,TWr,SWr,kWr,CWr,EWr,qWr,Mxe,yxe=kr(()=>{zl=e=>"string"==typeof e,Q7=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},oxe=e=>null==e?"":String(e),Ukt=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Hkt=/###/g,sxe=e=>e&&e.includes("###")?e.replace(Hkt,"."):e,lxe=e=>!e||zl(e),eC=(e,t,n)=>{let r=zl(t)?t.split("."):t,a=0;for(;a<r.length-1;){if(lxe(e))return{};let t=sxe(r[a]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++a}return lxe(e)?{}:{obj:e,k:sxe(r[a])}},cxe=(e,t,n)=>{let{obj:r,k:a}=eC(e,t,Object);if(void 0!==r||1===t.length)return void(r[a]=n);let i=t[t.length-1],o=t.slice(0,t.length-1),s=eC(e,o,Object);for(;void 0===s.obj&&o.length;)i=`${o[o.length-1]}.${i}`,o=o.slice(0,o.length-1),s=eC(e,o,Object),s?.obj&&typeof s.obj[`${s.k}.${i}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},Vkt=(e,t,n,r)=>{let{obj:a,k:i}=eC(e,t,Object);a[i]=a[i]||[],a[i].push(n)},HN=(e,t)=>{let{obj:n,k:r}=eC(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},jkt=(e,t,n)=>{let r=HN(e,n);return void 0!==r?r:HN(t,n)},mxe=(e,t,n)=>{for(let r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?zl(e[r])||e[r]instanceof String||zl(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):mxe(e[r],t[r],n):e[r]=t[r]);return e},mM=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),Gkt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},Xkt=e=>zl(e)?e.replace(/[&<>"'\/]/g,e=>Gkt[e]):e,Ykt=[" ",",","?","!",";"],Zkt=new(Tee=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}})(20),$kt=(e,t,n)=>{t=t||"",n=n||"";let r=Ykt.filter(e=>!t.includes(e)&&!n.includes(e));if(0===r.length)return!0;let a=Zkt.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`),i=!a.test(e);if(!i){let t=e.indexOf(n);t>0&&!a.test(e.substring(0,t))&&(i=!0)}return i},See=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),a=e;for(let e=0;e<r.length;){if(!a||"object"!=typeof a)return;let t,i="";for(let o=e;o<r.length;++o)if(o!==e&&(i+=n),i+=r[o],t=a[i],void 0!==t){if(["string","number","boolean"].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}a=t}return a},tC=e=>e?.replace(/_/g,"-"),Kkt={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}},Rb=new(kee=class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||Kkt,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>zl(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),zl(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}),eT=class{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let a=0;a<r;a++)n(e,...t)})}},VN=class extends eT{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let a,i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):zl(n)&&i?a.push(...n.split(i)):a.push(n)));let s=HN(this.data,a);return!s&&!t&&!n&&e.includes(".")&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&o&&zl(n)?See(this.data?.[e]?.[t],n,i):s}addResource(e,t,n,r,a={silent:!1}){let i=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,o=[e,t];n&&(o=o.concat(i?n.split(i):n)),e.includes(".")&&(o=e.split("."),r=t,t=o[1]),this.addNamespaces(t),cxe(this.data,o,r),a.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(zl(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,a,i={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(".")&&(o=e.split("."),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=HN(this.data,o)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?mxe(s,n,a):s={...s,...n},cxe(this.data,o,s),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},vxe={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,a)??t}),t}},gxe=Symbol("i18next/PATH_KEY"),Aee=e=>!zl(e)&&"boolean"!=typeof e&&"number"!=typeof e,jN=class e extends eT{constructor(e,t={}){super(),Ukt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Rb.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(null==e)return!1;let r=this.resolve(e,n);if(void 0===r?.res)return!1;let a=Aee(r.res);return!(!1===n.returnObjects&&a)}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS||[],i=n&&e.includes(n),o=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||$kt(e,n,r));if(i&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:zl(a)?[a]:a};let i=e.split(n);(n!==r||n===r&&this.options.ns.includes(i[0]))&&(a=i.shift()),e=i.join(r)}return{key:e,namespaces:zl(a)?[a]:a}}translate(t,n,r){let a="object"==typeof n?{...n}:n;if("object"!=typeof a&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof a&&(a={...a}),a||(a={}),null==t)return"";"function"==typeof t&&(t=Q6(t,{...this.options,...a})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>"function"==typeof e?Q6(e,{...this.options,...a}):String(e));let i=void 0!==a.returnDetails?a.returnDetails:this.options.returnDetails,o=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],a),c=l[l.length-1],u=void 0!==a.nsSeparator?a.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");let d=a.lng||this.language,p=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===d?.toLowerCase())return p?i?{res:`${c}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(a)}:`${c}${u}${s}`:i?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(a)}:s;let h=this.resolve(t,a),f=h?.res,m=h?.usedKey||s,g=h?.exactUsedKey||s,y=void 0!==a.joinArrays?a.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==a.count&&!zl(a.count),M=e.hasDefaultValue(a),x=v?this.pluralResolver.getSuffix(d,a.count,a):"",z=a.ordinal&&v?this.pluralResolver.getSuffix(d,a.count,{ordinal:!1}):"",_=v&&!a.ordinal&&0===a.count,A=_&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${x}`]||a[`defaultValue${z}`]||a.defaultValue,O=f;b&&!f&&M&&(O=A);let w=Aee(O),k=Object.prototype.toString.apply(O);if(!(b&&O&&w)||["[object Number]","[object Function]","[object RegExp]"].includes(k)||zl(y)&&Array.isArray(O))if(b&&zl(y)&&Array.isArray(f))f=f.join(y),f&&(f=this.extendTranslation(f,t,a,r));else{let e=!1,n=!1;!this.isValidLookup(f)&&M&&(e=!0,f=A),this.isValidLookup(f)||(n=!0,f=s);let i=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:f,l=M&&A!==f&&this.options.updateMissing;if(n||e||l){if(this.logger.log(l?"updateKey":"missingKey",d,c,v&&!l?`${s}${this.pluralResolver.getSuffix(d,a.count,a)}`:s,l?A:f),o){let e=this.resolve(s,{...a,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(a.lng||this.language):e.push(a.lng||this.language);let n=(e,t,n)=>{let r=M&&n!==f?n:i;this.options.missingKeyHandler?this.options.missingKeyHandler(e,c,t,r,l,a):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,c,t,r,l,a),this.emit("missingKey",e,c,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,a);_&&a[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,a[`defaultValue${t}`]||A)})}):n(e,s,A))}f=this.extendTranslation(f,t,a,h,r),n&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${c}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${u}${s}`:s,e?f:void 0,a))}else{if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,O,{...a,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(h.res=e,h.usedParams=this.getUsedParamsDetails(a),h):e}if(o){let e=Array.isArray(O),t=e?[]:{},n=e?g:m;for(let e in O)if(Object.prototype.hasOwnProperty.call(O,e)){let r=`${n}${o}${e}`;t[e]=M&&!f?this.translate(r,{...a,defaultValue:Aee(A)?A[e]:void 0,joinArrays:!1,ns:l}):this.translate(r,{...a,joinArrays:!1,ns:l}),t[e]===r&&(t[e]=O[e])}f=t}}return i?(h.res=f,h.usedParams=this.getUsedParamsDetails(a),h):f}extendTranslation(e,t,n,r,a){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let i,o=zl(e)&&(void 0!==n?.interpolation?.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(o){let t=e.match(this.interpolator.nestingRegexp);i=t&&t.length}let s=n.replace&&!zl(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),o){let t=e.match(this.interpolator.nestingRegexp);i<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>a?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}let i=n.postProcess||this.options.postProcess,o=zl(i)?[i]:i;return null!=e&&o?.length&&!1!==n.applyPostProcessor&&(e=vxe.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,a,i,o;return zl(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?Q6(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),l=s.key;r=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let u=void 0!==t.count&&!zl(t.count),d=u&&!t.ordinal&&0===t.count,p=void 0!==t.context&&(zl(t.context)||"number"==typeof t.context)&&""!==t.context,h=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${h[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${h.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(r=>{if(this.isValidLookup(n))return;i=r;let o,s=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(s,l,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,a=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(a)&&s.push(l+e.replace(a,this.options.pluralSeparator)),s.push(l+e),d&&s.push(l+n)),p){let r=`${l}${this.options.contextSeparator||"_"}${t.context}`;s.push(r),u&&(t.ordinal&&e.startsWith(a)&&s.push(r+e.replace(a,this.options.pluralSeparator)),s.push(r+e),d&&s.push(r+n))}}for(;o=s.pop();)this.isValidLookup(n)||(a=o,n=this.getResource(r,e,o,t))}))})}),{res:n,usedKey:r,exactUsedKey:a,usedLng:i,usedNS:o}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!zl(e.replace),r=n?e.replace:e;if(n&&typeof e.count<"u"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}},GN=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Rb.create("languageUtils")}getScriptPartFromCode(e){if(!(e=tC(e))||!e.includes("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=tC(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(zl(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r||!(!e.includes("-")&&!r.includes("-"))&&!!(e.includes("-")&&!r.includes("-")&&e.slice(0,e.indexOf("-"))===r||e.startsWith(r)&&r.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),zl(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],a=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return zl(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):zl(e)&&a(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||a(this.formatLanguageCode(e))}),r}},uxe={zero:0,one:1,two:2,few:3,many:4,other:5},dxe={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},Cee=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=Rb.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n,r=tC("dev"===e?"en":e),a=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:a});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];try{n=new Intl.PluralRules(r,{type:a})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),dxe;if(!e.match(/-|_/))return dxe;let r=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(r,t)}return this.pluralRulesCache[i]=n,n}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>uxe[e]-uxe[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}},fxe=(e,t,n,r=".",a=!0)=>{let i=jkt(e,t,n);return!i&&a&&zl(n)&&(i=See(e,n,r),void 0===i&&(i=See(t,n,r))),i},wee=e=>e.replace(/\$/g,"$$$$"),XN=class{constructor(e={}){this.logger=Rb.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:a,prefixEscaped:i,suffix:o,suffixEscaped:s,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:p,nestingSuffix:h,nestingSuffixEscaped:f,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:y}=e.interpolation;this.escape=void 0!==t?t:Xkt,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=a?mM(a):i||"{{",this.suffix=o?mM(o):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u?mM(u):"-",this.unescapeSuffix=this.unescapePrefix?"":c?mM(c):"",this.nestingPrefix=d?mM(d):p||mM("$t("),this.nestingSuffix=h?mM(h):f||mM(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let a,i,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(!e.includes(this.formatSeparator)){let a=fxe(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(a,void 0,n,{...r,...t,interpolationkey:e}):a}let a=e.split(this.formatSeparator),i=a.shift().trim(),o=a.join(this.formatSeparator).trim();return this.format(fxe(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:i})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let c=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>wee(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?wee(this.escape(e)):wee(e)}].forEach(t=>{for(o=0;a=t.regex.exec(e);){let n=a[1].trim();if(i=l(n),void 0===i)if("function"==typeof c){let t=c(e,a,r);i=zl(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(u){i=a[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else!zl(i)&&!this.useRawValueToEscape&&(i=oxe(i));let s=t.safeValue(i);if(e=e.replace(a[0],s),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,a,i,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(new RegExp(`${mM(n)}[ ]*{`)),a=`{${r[1]}`;e=r[0],a=this.interpolate(a,i);let o=a.match(/'/g),s=a.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(a=a.replace(/'/g,'"'));try{i=JSON.parse(a),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${a}`}return i.defaultValue&&i.defaultValue.includes(this.prefix)&&delete i.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];i={...n},i=i.replace&&!zl(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let l=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==l&&(s=r[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,l)),a=t(o.call(this,r[1].trim(),i),i),a&&r[0]===e&&!zl(a))return a;zl(a)||(a=oxe(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),a=""),s.length&&(a=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),a.trim())),e=e.replace(r[0],a),this.regexp.lastIndex=0}return e}},Qkt=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes("(")){let r=e.split("(");t=r[0].toLowerCase().trim();let a=r[1].slice(0,-1);"currency"!==t||a.includes(":")?"relativetime"!==t||a.includes(":")?a.split(";").forEach(e=>{if(e){let[t,...r]=e.split(":"),a=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=a),"false"===a&&(n[i]=!1),"true"===a&&(n[i]=!0),isNaN(a)||(n[i]=parseInt(a,10))}}):n.range||(n.range=a.trim()):n.currency||(n.currency=a.trim())}return{formatName:t,formatOptions:n}},hxe=e=>{let t={};return(n,r,a)=>{let i=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(i={...i,[a.interpolationkey]:void 0});let o=r+JSON.stringify(i),s=t[o];return s||(s=e(tC(r),a),t[o]=s),s(n)}},e9t=e=>(t,n,r)=>e(tC(n),r)(t),Eee=class{constructor(e={}){this.logger=Rb.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let n=t.cacheInBuiltFormats?hxe:e9t;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=hxe(t)}format(e,t,n,r={}){if(!t||null==e)return e;let a=t.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&!a[0].includes(")")&&a.find(e=>e.includes(")"))){let e=a.findIndex(e=>e.includes(")"));a[0]=[a[0],...a.splice(1,e)].join(this.formatSeparator)}return a.reduce((e,t)=>{let{formatName:a,formatOptions:i}=Qkt(t);if(this.formats[a]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[a](e,s,{...i,...r,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${a}`),e},e)}},t9t=(e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)},qee=class extends eT{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Rb.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let a={},i={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===i[o]&&(i[o]=!0):(this.state[o]=1,r=!1,void 0===i[o]&&(i[o]=!0),void 0===a[o]&&(a[o]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split("|"),a=r[0],i=r[1];t&&this.emit("failedLoading",a,i,t),!t&&n&&this.store.addResourceBundle(a,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{Vkt(n.loaded,[a],i),t9t(n,e),t&&n.errors.push(t),0===n.pendingCount&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===o[e][t]&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,a=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:a,callback:i});this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}o&&s&&r<this.maxRetries?setTimeout(()=>{this.read(e,t,n,r+1,2*a,i)},a):i(o,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,o);try{let n=s(e,t);n&&"function"==typeof n.then?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();zl(e)&&(e=this.languageUtils.toResolveHierarchy(e)),zl(t)&&(t=[t]);let a=this.queueLoad(e,t,n,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){let n=e.split("|"),r=n[0],a=n[1];this.read(r,a,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${a} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${a} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,a,i={},o=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=n&&""!==n){if(this.backend?.create){let s={...i,isUpdate:a},l=this.backend.create.bind(this.backend);if(l.length<6)try{let a;a=5===l.length?l(e,t,n,r,s):l(e,t,n,r),a&&"function"==typeof a.then?a.then(e=>o(null,e)).catch(o):o(null,a)}catch(e){o(e)}else l(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}},Oee=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),zl(e[1])&&(t.defaultValue=e[1]),zl(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),pxe=e=>(zl(e.ns)&&(e.ns=[e.ns]),zl(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),zl(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),UN=()=>{},r9t=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})},sp=(Dee=class e extends eT{constructor(e={},t){if(super(),this.options=pxe(e),this.services={},this.logger=Rb,this.modules={external:[]},r9t(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(zl(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let n=Oee();this.options={...n,...this.options,...pxe(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?Rb.init(r(this.modules.logger),this.options):Rb.init(null,this.options),e=this.modules.formatter?this.modules.formatter:Eee;let t=new GN(this.options);this.store=new VN(this.options.resources,this.options);let n=this.services;n.logger=Rb,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new Cee(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new XN(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new qee(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new jN(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=UN),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let a=Q7(),i=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?i():setTimeout(i,0),a}loadResources(e,t=UN){let n=t,r=zl(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===r?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=Q7();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=UN),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&vxe.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=Q7();this.emit("languageChanging",e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(a,i)=>{i?this.isLanguageChangingTo===e&&(r(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(a,(...e)=>this.t(...e))},i=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=zl(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(zl(t)?[t]:t);i&&(this.language||r(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{a(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}getFixedT(e,t,n,r){let a=r?.scopeNs,i=(e,t,...r)=>{let o;o="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(r)):{...t},o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs;let s=void 0!==o.ns&&null!==o.ns;o.ns=o.ns||i.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||n||i.keyPrefix);let l={...this.options,...o};Array.isArray(a)&&!s&&(l.ns=a),"function"==typeof o.keyPrefix&&(o.keyPrefix=Q6(o.keyPrefix,l));let c,u=this.options.keySeparator||".";return o.keyPrefix&&Array.isArray(e)?c=e.map(e=>("function"==typeof e&&(e=Q6(e,l)),`${o.keyPrefix}${u}${e}`)):("function"==typeof e&&(e=Q6(e,l)),c=o.keyPrefix?`${o.keyPrefix}${u}${e}`:e),this.t(c,o)};return zl(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let i=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){let e=t.precheck(this,i);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,e)&&(!r||i(a,e)))}loadNamespaces(e,t){let n=Q7();return this.options.ns?(zl(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=Q7();zl(e)&&(e=[e]);let r=this.options.preload||[],a=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return a.length?(this.options.preload=r.concat(a),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=this.services?.languageUtils||new GN(Oee());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=UN){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let a={...this.options,...t,isClone:!0},i=new e(a);if((void 0!==t.debug||void 0!==t.prefix)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){let e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{});i.store=new VN(e,a),i.services.resourceStore=i.store}if(t.interpolation){let e={...Oee().interpolation,...this.options.interpolation,...t.interpolation},n={...a,interpolation:e};i.services.interpolator=new XN(n)}return i.translator=new jN(i.services,a),i.translator.on("*",(e,...t)=>{i.emit(e,...t)}),i.init(a,n),i.translator.options=a,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}).createInstance(),bWr=sp.createInstance,MWr=sp.dir,xWr=sp.init,_Wr=sp.loadResources,zWr=sp.reloadResources,AWr=sp.use,wWr=sp.changeLanguage,OWr=sp.getFixedT,TWr=sp.t,SWr=sp.exists,kWr=sp.setDefaultNamespace,CWr=sp.hasLoadedNamespace,EWr=sp.loadNamespaces,qWr=sp.loadLanguages}),bxe=kr(()=>{Mxe={global:{learnMore:"Learn more: ",learnMoreLink:"Learn more",settingsHeader:"Switch between focused setting groups to keep configuration lighter and easier to scan."},chrono:{ui:{title:"Configure Insight Groups",description:"Create groups to categorize your activities. The engine will use these rules to generate personalized insights.",save:"Save Configuration",cancel:"Cancel",addGroup:"Add New Insight Group",groupName:"Group Name",groupNamePlaceholder:"e.g., Work",deleteGroup:"Delete this group",persona:{name:"Analyze as Persona",desc:"Choose the analytical model to apply to this group.",productivity:"🎯 Productivity",wellness:"❤️ Wellness & Routine",none:"⚪ (Ignore in Dashboard)"},hierarchies:{name:"Matching Hierarchies",desc:"e.g., Work Calendar, Personal Calendar",add:"Add hierarchy..."},projects:{name:"Matching Projects",desc:"e.g., Project Phoenix, Q4 Report",add:"Add project..."},mutedProjects:{name:"Muted Projects",desc:"Mute specific projects (case-sensitive, exact match) to exclude them from Habit Consistency checks.",add:"Add muted project..."},subprojectKeywords:{name:"Matching Sub-project Keywords",desc:"Add keywords that will match if found anywhere in a sub-project.",placeholder:"eg., design\nresearch\nmeeting"},mutedSubprojectKeywords:{name:"Muted Sub-project Keywords",desc:"Mute activities by keyword. If a sub-project contains any of these (case-insensitive) keywords, it will be excluded from Habit Consistency checks.",placeholder:"e.g., completed\narchive\nold"},unsavedChanges:{title:"Unsaved Changes",message:"You have unsaved changes. Would you like to save them before closing?",saveAndClose:"Save and Close",discard:"Discard Changes"},folderSelectPlaceholder:"Select a folder with your time tracking files...",docs:{configurationGuide:"Configuration guide",matchingRules:"Matching rules",faq:"FAQ",personaGuide:"Persona guide",insightsGuide:"Insight reference",ruleParameters:"Rule parameters",terminology:"Terminology",filtersGuide:"Filter syntax"},errors:{groupExists:'Group name "{{name}}" already exists.'}},analyser:{header:"📊 ChronoAnalyser",subtitle:"Interactive analysis of your time tracking data",demo:{title:"DEMO MODE",description:"You are exploring sample ChronoAnalyser data. Configure your own insight groups to switch permanently to live data.",turnOff:"Turn off demo"},proTip:"Pro tip",clickNextTip:"Click to see the next tip",insights:{title:"💡 Insights",generate:"Generate insights",configure:"Configure insights",placeholder:'Click "Generate Insights" to analyze your data.'},filters:{hierarchy:"📂 Filter by hierarchy (calendar source)",hierarchyPlaceholder:"All hierarchies (type to filter...)",project:"📋 Filter by project",projectPlaceholder:"All projects (type to filter...)",category:"🔍 Filter by category (e.g., keyword -exclude)",categoryPlaceholder:"E.g., task.* -review",dateRange:"📅 Date range",dateRangePlaceholder:"Select date range (yyyy-mm-dd to yyyy-mm-dd)",today:"Today",yesterday:"Yesterday",thisWeek:"This week",thisMonth:"This month",clearDates:"🗑️ Clear dates",clearDatesTooltip:"Clear date filters"},config:{metric:"📏 Metric",duration:"Duration (hours)",count:"Event count",analysisType:"🎯 Analysis type",pie:"Categorywise (pie)",sunburst:"Categorywise (sunburst)",timeSeries:"Time-series trend",activity:"Activity patterns",breakdownLevel:"📈 Breakdown level",hierarchy:"Hierarchy",project:"Project",subproject:"Sub-project",projectsByHierarchy:"Projects by hierarchy",subprojectsByProject:"Sub-projects by project",granularity:"🕒 Granularity",daily:"Daily",weekly:"Weekly",monthly:"Monthly",chartType:"📊 Chart type",overallTrend:"Overall trend",stackedByCategory:"Stacked by category",stackBy:"📚 Stack by",analyzeBy:"📅 Analyze by",dayOfWeek:"Day of week",hourOfDay:"Hour of day (task start)",heatmap:"Heatmap (day vs hour)",tooltips:{categorywise:"Visualize how time is distributed across different categories.",timeSeries:"Visualize how time spent changes over a period.",activity:"Identify patterns in when tasks are typically performed.",dayOfWeek:"Displays a bar chart showing the total hours spent on each day of the week.",hourOfDay:"Displays a bar chart showing the total hours associated with tasks that start in each hour of the day.",heatmap:"Displays a heatmap where rows are days of the week, columns are hours of the day, and the color intensity of each cell represents the total hours for tasks starting at that specific day/hour combination."}},stats:{totalHours:"Total Hours (Filtered)",filesInFilter:"Files in Filter",activeAnalysis:"Active Analysis"},log:{title:"📋 Processing log & issues",noIssues:"No issues found."},details:{title:"Category details",close:"Close",project:"Project",subproject:"Sub-project (full)",duration:"Duration (hrs)",date:"Date",filePath:"File path"}}},commands:{newEvent:"New Event",resetCache:"Reset Event Cache",revalidateRemote:"Revalidate remote calendars",openCalendar:"Open Calendar",openChronoAnalyser:"Open ChronoAnalyser (Desktop Only)",openSidebar:"Open in sidebar",syncActivityWatch:"Sync ActivityWatch",nlpQuickAdd:"FCR Command",syncFcrReminder:"Sync FCR Reminder Companion"},notices:{settingsUpdated:"Full Calendar has updated your calendar settings to a new format.",cacheReset:"Full Calendar has been reset.",chronoAnalyserMobileDisabled:"The ChronoAnalyser feature is only available on the desktop version of Obsidian.",chronoAnalyserInitializing:"ChronoAnalyser: Initializing event cache...",chronoAnalyserLoadFailed:"Failed to load ChronoAnalyser. Please check the console.",chronoAnalyserChartLoadFailed:"Failed to load charting library. Please check your internet connection.",chronoAnalyserConfigureFirst:"Please configure your Insight Groups first using the ⚙️ icon.",chronoAnalyserGeneratingInsights:"Generating insights (this may take a moment)...",chronoAnalyserInsightsFailed:"Failed to generate insights. Check the developer console for errors.",chronoAnalyserInsightsSaved:"Insights configuration saved!",chronoAnalyserDemoLoaded:"ChronoAnalyser demo loaded.",chronoAnalyserDemoLoadedFromCache:"ChronoAnalyser demo loaded from cache.",chronoAnalyserDemoLoadFailed:"Could not load the ChronoAnalyser demo. Falling back to live data.",googleAuthFailed:"Google authentication failed. Please try again.",bulkUpdateError:"Error during bulk update. Check console for details.",providerNotRegistered:"{{providerType}} provider is not registered.",timezoneChanged:"System timezone changed to {{timezone}}. Full Calendar view updated to match.",revalidatingRemotes:"Revalidating remote calendars...",revalidationFailed:"One or more remote calendars failed to load. Check the console for details.",revalidationSuccess:"Remote calendars revalidated.",fcrReminderSynced:"FCR Reminder Companion synchronized successfully.",fcrReminderCompanionOfflineBold:"WARNING: The FCR Reminder Companion daemon is offline. You will NOT receive native desktop notifications until it is started.",cannotOpenRemote:"Cannot open note for a remote event.",configureLinkedNotesDirFirst:"Please configure a Linked Notes Directory in settings first.",failedToCreateLinkedNote:"Failed to create linked note.",bulkCategorization:{noNotesFound:"No local event notes found to categorize.",complete:"Bulk categorization complete."},bulkDecategorization:{noNotesFound:"No local event notes found to de-categorize.",complete:"Bulk de-categorization complete."},tasks:{createViaPlugin:"Use the Tasks plugin interface to create new tasks.",defaultValidation:"This task cannot be scheduled on this date.",scheduledNoModal:"Task scheduled, but could not open Tasks edit modal.",apiUnavailable:"Obsidian Tasks plugin API not available."},tasknotes:{addSourceFirst:"Add a TaskNotes calendar source first, then return here to configure integration.",handoffSingleOnly:"TaskNotes NLP handoff currently supports single events only.",handoffTitleRequired:"TaskNotes NLP handoff requires a title.",handoffStartTimeRequired:"TaskNotes NLP handoff requires a valid start time for timed events.",invalidSourceId:"TaskNotes provider source ID must follow tasknotes_[n] pattern (received: {{sourceId}}).",createModalUnavailable:"TaskNotes plugin is unavailable or does not expose create modal integration.",selectorUnavailable:"TaskNotes plugin is unavailable or does not expose selector integration."},milestones:{sponsorDesc:"If FCR added value, please consider supporting the work:",sponsorBtn:"Support Development",goalBtn:"See Financial Goal"}},eventCache:{calendarNotFound:"Cannot add event: calendar with ID {{calendarId}} not found.",providerNotFound:"Cannot add event: provider for type {{type}} not found.",readOnly:"Cannot add event to a read-only calendar.",createFailed:"Failed to create event. Change has been reverted.",deleteFailed:"Failed to delete event. Change has been reverted.",updateFailed:"Failed to update event. Change has been reverted.",movePartialSuccess:"Event moved successfully, but some children may not have been moved."},recurEvents:{promotingChildren:"Promoting {{count}} child event(s).",deletedAndPromoted:"Recurring event deleted and children promoted.",deletingWithChildren:"Deleting recurring event and its {{count}} child override(s)...",deletedAll:"Successfully deleted recurring event and all children.",preservingTiming:"Preserving modified event timing and uncompleting task.",revertingControl:"Reverting control to Main Recurring event sequence.",updatingChildren:"Updating {{count}} child event(s) to match new parent title.",updateError:"Error updating recurring event. Some children may not have been updated.",movingChildren:"Moving {{count}} child event(s) to the new calendar."},ribbon:{openCalendar:"Open Full Calendar"},settings:{categories:{general:{label:"General",description:"General behavior, reminders, and recent updates."},appearance:{label:"Appearance",description:"Customize calendar appearance, time formats, and visibility."},calendars:{label:"Calendars",description:"Manage calendar sources and provider-specific configuration."},organization:{label:"Organization",description:"Organize views with workspaces and event categorization."},integrations:{label:"Integrations",description:"Connect external services like Google, Outlook, and ActivityWatch."}},general:{desktopInitialView:{label:"Desktop initial view",description:"Choose the initial view range on desktop devices."},mobileInitialView:{label:"Mobile initial view",description:"Choose the initial view range on mobile devices."},displayTimezone:{label:"Display timezone",description:"Choose the timezone for displaying events. Defaults to your system timezone. Changing this will reload the calendar."},clickToCreateEvent:{label:"Click on a day in month view to create event",description:"Switch off to open day view on click instead."},linkedNotesDirectory:{label:"Linked notes directory",description:"Choose the folder path where event linked notes will be created.",vaultRoot:"/ (Vault Root)"},linkedNoteLinkStrategy:{label:"Linked note link strategy",description:"Choose whether recurring event occurrences share one title-based note or use separate date-specific notes.",deadline:"Deadline-based (one note per occurrence)",name:"Name-based (one note per event series)"},linkedNoteTemplate:{label:"Linked note template",description:"Define the template used for creating new linked notes. Supports: {{title}}, {{description}}, {{date}}, {{timeString}}, {{location}}, {{calendarName}}, {{url}}",placeholder:"Enter note Markdown template..."}},reminders:{title:"Reminders",enableDefault:{label:"Enable default reminder",description:"Automatically add a reminder to new events."},defaultTime:{label:"Default reminder time",description:"Minutes before event to remind (default: 10)"}},weather:{label:"Weather forecast",description:"Configure weather geocoding and display settings to show forecasts in your calendar views.",configTooltip:"Configure Weather Settings",status:{hidden:"Weather forecast is hidden.",enabled:"Enabled: {{mode}} (Lat {{latitude}}, Lng {{longitude}})",noLocation:"Enabled: No location set.",cityFallback:"City"},modal:{title:"Weather Integration Settings",hideToggle:{label:"Hide weather forecast in calendar UI",description:"Turn this on to completely hide weather forecasts from daily, weekly, and monthly calendar views."},unit:{label:"Temperature unit",description:"Choose whether to display temperatures in Celsius or Fahrenheit.",celsius:"Celsius (°C)",fahrenheit:"Fahrenheit (°F)"},inputMode:{label:"Location input mode",description:"Choose whether to enter a city/region name (resolved via Open-Meteo) or specify exact coordinates directly.",city:"City / Region name",coords:"Coordinates (Latitude / Longitude)"},latitude:{label:"Latitude",description:"Specify the exact latitude of your location (e.g. 50.0880).",placeholder:"E.g. 50.0880"},longitude:{label:"Longitude",description:"Specify the exact longitude of your location (e.g. 14.4208).",placeholder:"E.g. 14.4208"},city:{label:"Weather city / region",description:"Enter your city or region name (e.g. Prague) to get weather forecasts in your calendar views.",placeholder:"E.g. Prague",status:{resolved:"Resolved: Lat {{latitude}}, Lng {{longitude}}",unresolved:"Could not resolve coordinates.",empty:"No location set.",resolving:"Resolving location..."}}},detailModal:{title:"Detailed Weather - {{date}}",hourlyHeader:"Hourly Forecast",apparentTemp:"Apparent: {{temp}}°C",noHourly:"No hourly forecast data available."},conditions:{unknown:"Unknown",clearSky:"Clear sky",mainlyClear:"Mainly clear",partlyCloudy:"Partly cloudy",overcast:"Overcast",fog:"Fog",depositingRimeFog:"Depositing rime fog",lightDrizzle:"Light drizzle",moderateDrizzle:"Moderate drizzle",denseDrizzle:"Dense drizzle",lightFreezingDrizzle:"Light freezing drizzle",denseFreezingDrizzle:"Dense freezing drizzle",slightRain:"Slight rain",moderateRain:"Moderate rain",heavyRain:"Heavy rain",lightFreezingRain:"Light freezing rain",heavyFreezingRain:"Heavy freezing rain",slightSnowFall:"Slight snow fall",moderateSnowFall:"Moderate snow fall",heavySnowFall:"Heavy snow fall",snowGrains:"Snow grains",slightRainShowers:"Slight rain showers",moderateRainShowers:"Moderate rain showers",violentRainShowers:"Violent rain showers",slightSnowShowers:"Slight snow showers",heavySnowShowers:"Heavy snow showers",thunderstorm:"Thunderstorm",thunderstormWithSlightHail:"Thunderstorm with slight hail",thunderstormWithHeavyHail:"Thunderstorm with heavy hail"}},appearance:{title:"Appearance",highlightCurrentOrNextEvent:"Highlight current or next event",highlightCurrentOrNextEventDesc:"Highlights the current timed event, or the immediate next timed event if none is active.",firstDay:{label:"Starting day of the week",description:"Choose what day of the week to start."},timeFormat24h:{label:"24-hour format",description:"Display the time in a 24-hour format."},businessHours:{enable:{label:"Enable business hours",description:"Highlight your working hours in time-grid views to distinguish work time from personal time."},days:{label:"Business days",description:"Select which days of the week are business days."},startTime:{label:"Business hours start time",description:"When your working day begins (format: HH:mm)"},endTime:{label:"Business hours end time",description:"When your working day ends (format: HH:mm)"},options:{mondayFriday:"Monday - Friday",everyDay:"Every day",mondayThursday:"Monday - Thursday",tuesdaySaturday:"Tuesday - Saturday"}},viewTimeRange:{title:"View Time Range",slotMinTime:{label:"Earliest time to display",description:"Set the earliest time visible in time grid views (format: HH:mm)"},slotMaxTime:{label:"Latest time to display",description:"Set the latest time visible in time grid views (format: HH:mm)"},allDaySlot:{label:"Show all-day row (week/day views)",description:"Toggle the all-day row at the top of week and day time-grid views."},timeGridDayHeaderFormat:{label:"Week/day header date format",description:"Choose how day labels are displayed in week and day views.",options:{ddmmDay:"DD/MM day",mmddDay:"MM/DD day",dayDdmm:"day DD/MM",dayMmdd:"day MM/DD",ddmmyyyyDay:"DD/MM/YYYY day",mmddyyyyDay:"MM/DD/YYYY day"}}},dayVisibility:{title:"Day Visibility",weekends:{label:"Show weekends",description:"Whether to display weekend days (Saturday and Sunday) in the calendar"},hiddenDays:{label:"Hidden days",description:"Select days of the week to hide from the calendar",options:{showAll:"Show all days",hideWeekends:"Hide weekends (Sun, Sat)",hideSunday:"Hide Sunday only",hideSaturday:"Hide Saturday only",hideMonday:"Hide Monday",hideTuesday:"Hide Tuesday",hideWednesday:"Hide Wednesday",hideThursday:"Hide Thursday",hideFriday:"Hide Friday"}}},dayMaxEvents:{label:"Max events per day (month view)",description:"Limit the number of events shown per day in month view",options:{default:"Use default limit",unlimited:"No limit (show all)",one:"1 event maximum",two:"2 events maximum",three:"3 events maximum",four:"4 events maximum",five:"5 events maximum",ten:"10 events maximum"}},enableBackgroundEvents:{label:"Enable background events",description:"Allow events to be displayed as background elements for things like vacations, focus time, or class schedules."},showEventInStatusBar:{label:"Show current event in status bar",description:"Display the title of the currently running event in the Obsidian status bar."},milestones:{label:"Milestones",description:"Read-only local milestones that track successful event activity across calendars.",openButton:"Open milestones",modal:{title:"Milestones",description:"Milestones are anonymous, local, and read-only. They unlock as successful actions are completed.",completed:"Completed",inProgress:"In progress",progress:"{{current}} done"},definitions:{createdCentury:{title:"Century Maker",description:"Successfully create 100 events.",target:"Target: 100 created events"},createdMaster:{title:"Event Architect",description:"Successfully create 500 events.",target:"Target: 500 created events"},createdLegend:{title:"Calendar Titan",description:"Successfully create 5,000 events.",target:"Target: 5,000 created events"},deletedCentury:{title:"Pruning Apprentice",description:"Successfully delete 100 events.",target:"Target: 100 deleted events"},deletedMaster:{title:"Vault Gardener",description:"Successfully delete 500 events.",target:"Target: 500 deleted events"},updatedMaster:{title:"Refinement Engine",description:"Successfully update 500 events.",target:"Target: 500 updated events"},updatedLegend:{title:"Precision Rewriter",description:"Successfully update 5,000 events.",target:"Target: 5,000 updated events"},movedMaster:{title:"Timeline Choreographer",description:"Successfully move 500 events between calendars.",target:"Target: 500 moved events"},remoteArchitect:{title:"Remote Architect",description:"Create 500 events across ICS, CalDAV, and Google providers.",target:"Target: 500 remote created events"},taskOrchestrator:{title:"Task Orchestrator",description:"Create 1,000 events through Tasks + TaskNotes integrations.",target:"Target: 1,000 task-integration created events"},polyglotBuilder:{title:"Polyglot Builder",description:"Reach 500 created events in 3 different provider types.",target:"Target: 3 providers at 500 created each"},cycleMaster:{title:"Cycle Master",description:"Reach both 500 created and 500 deleted events.",target:"Target: 500 create/delete balance"},opsLegend:{title:"Operations Legend",description:"Reach 10,000 total successful operations (create/delete/update/move).",target:"Target: 10,000 successful operations"},habitualPlanner:{title:"Habitual Planner",description:"Perform calendar actions on 20 consecutive days.",target:"Target: 20-day action streak"},dedicated:{title:"The Dedicated",description:"Maintain at least 3 months between first and latest recorded action.",target:"Target: 90-day history span"},marathoner:{title:"Marathoner",description:"Reach 100,000 total successful operations.",target:"Target: 100,000 operations"},nlpSavant:{title:"NLP Savant",description:"Create 1,000 events using NLP input.",target:"Target: 1,000 NLP-created events"},globalCitizen:{title:"Global Citizen",description:"Create events in 3 or more different time zones.",target:"Target: 3 distinct time zones"},syncSpecialist:{title:"Sync Specialist",description:"Maintain 5 or more active remote calendars (Google/ICS/CalDAV).",target:"Target: 5 active remote calendars"},recurringMaster:{title:"Recurring Master",description:"Create 30 recurring event series.",target:"Target: 30 recurring series"},greatMigration:{title:"The Great Migration",description:"Move 200 events between different calendars.",target:"Target: 200 moved events"},perfectionist:{title:"The Perfectionist",description:"Have a perfect week with at least 3 created events every day Monday-Sunday.",target:"Target: 7/7 days with 3+ events"},digitalLibrarian:{title:"Digital Librarian",description:"Maintain over 10,000 non-deleted events across local calendars.",target:"Target: 10,000 live local events"},nightOwl:{title:"Night Owl",description:"Successfully perform 15 calendar operations during late-night hours (10 PM to 4 AM).",target:"Target: 15 late-night actions"},earlyBird:{title:"Early Bird",description:"Successfully perform 15 calendar operations during early-morning hours (5 AM to 8 AM).",target:"Target: 15 early-morning actions"},weekendWarrior:{title:"Weekend Warrior",description:"Perform 40 successful calendar operations on Saturdays and Sundays.",target:"Target: 40 weekend actions"},timezoneNomad:{title:"Nomadic Scheduler",description:"Maintain events spanning 5 or more distinct time zones.",target:"Target: 5 distinct time zones"},superOrganizer:{title:"Super Organizer",description:"Maintain 5 or more active workspace configurations.",target:"Target: 5 workspaces"},nlpWhisperer:{title:"NLP Whisperer",description:"Create 50 events using FCR NLP quick-add commands.",target:"Target: 50 NLP creations"},powerPlanner:{title:"Power Planner",description:"Keep at least 3 distinct calendar provider types concurrently configured and active.",target:"Target: 3 active provider types"},devMilestone:{title:"Developer Milestone",description:"A developer testing milestone triggered immediately via dev: 1 in settings.",target:"Target: Dev Mode Active"},nightOwl100:{title:"Midnight Dynamo",description:"Successfully perform 100 calendar operations during late-night hours (10 PM to 4 AM).",target:"Target: 100 late-night actions"},earlyBird100:{title:"Dawn Ascendant",description:"Successfully perform 100 calendar operations during early-morning hours (5 AM to 8 AM).",target:"Target: 100 early-morning actions"},weekendWarrior250:{title:"Sabbath Champion",description:"Perform 250 successful calendar operations on Saturdays and Sundays.",target:"Target: 250 weekend actions"},nlpWhisperer200:{title:"NLP Conjurer",description:"Create 200 events using FCR NLP quick-add commands.",target:"Target: 200 NLP creations"},superOrganizer10:{title:"Director General",description:"Maintain 10 or more active workspace configurations.",target:"Target: 10 workspaces"},syncSpecialist8:{title:"Universal Connector",description:"Maintain 8 or more active remote calendars (Google/ICS/CalDAV).",target:"Target: 8 active remote calendars"},createdTotal25000:{title:"Calendar Emperor",description:"Successfully create 25,000 events.",target:"Target: 25,000 created events"},createdTotal100000:{title:"Time Overlord",description:"Successfully create 100,000 events.",target:"Target: 100,000 created events"},habitualPlanner100:{title:"The Eternal Planner",description:"Perform calendar actions on 100 consecutive days.",target:"Target: 100-day action streak"},dedicated365:{title:"Chronicle Sovereign",description:"Maintain at least 1 year (365 days) between first and latest recorded action.",target:"Target: 365-day history span"},totalOps250000:{title:"Operations Sovereign",description:"Reach 250,000 total successful operations (create/delete/update/move).",target:"Target: 250,000 successful operations"},totalOps1000000:{title:"Time-Space Continuum",description:"Reach 1,000,000 total successful operations.",target:"Target: 1,000,000 successful operations"}}}},calendars:{title:"Manage calendars",addCalendar:"Add calendar",addCalendarTooltip:"Add Calendar",linkedNotes:{title:"Linked Note Settings",description:"Configure settings for creating local Obsidian notes linked to remote calendar events.",learnMore:"Linked Notes Guide"},defaults:{iCloud:"iCloud Calendar",new:"New {{type}} Calendar"},types:{local:"Full note",dailynote:"Daily Note",icloud:"iCloud",caldav:"CalDAV",ical:"ICS",google:"Google Calendar",outlook:"Outlook Calendar",tasks:"Obsidian Tasks",tasknotes:"TaskNotes",bases:"Obsidian Bases",holidays:"Holidays"},fullNote:{directory:{label:"Directory",description:"Directory to store event notes"},template:{label:"Custom template",description:"Define the template used for creating new events in this calendar. Supports: {{title}}, {{description}}, {{date}}, {{timeString}}, {{location}}, {{calendarName}}, {{url}}"},taskCompletionStyle:{label:"Completion style",description:"Choose how completed tasks are marked in the frontmatter. ISO Date/Time string preserves completion time; Boolean writes true/false.",options:{datetime:"ISO Date/Time String",boolean:"Boolean (true/false)"}}},dailyNote:{heading:{label:"Heading",description:"Heading to store events under in the daily note."},format:{label:"Format",description:"Choose how timed events are written in daily notes.",options:{default:"Default",dayPlanner:"DayPlanner Format"}}},ics:{url:{label:"URL",description:"URL of the .ics file"}},caldav:{url:{label:"Collection URL",description:"Paste your calendar collection URL (e.g. https://calendar.zoho.in/caldav/<id>/events/)"},username:{label:"Username",description:"Username for the account"},password:{label:"Password",description:"Password for the account"},importButton:"Import Calendars",importing:"Importing...",importFailed:"Failed to import calendar"},tasks:{zeroConfig:{label:"Zero Configuration Required",description:"This provider automatically reads your existing Obsidian Tasks plugin settings. All tasks with due dates will be displayed on the calendar as read-only events."},calendarName:{label:"Calendar Name",description:"Display name for this calendar"},readOnly:{label:"Events",description:"Event Edits happen directly in the Tasks Model and not the Full Calendar Edit Modal."},adding:"Adding...",cancel:"Cancel"},tasknotes:{zeroConfig:{label:"Zero Configuration Required",description:"This provider reads TaskNotes tasks directly from your vault and maps scheduled tasks to calendar events."},calendarName:{label:"Calendar Name",description:"Display name for this calendar",placeholder:"TaskNotes"},dispatchMode:{label:"NLP Dispatch Endpoint",description:"Choose where Full Calendar forwards TaskNotes-targeted NLP requests.",options:{search:"Search + Create (selector modal)",create:"Direct Create (task creation modal NLP)"}},readOnly:{label:"Events",description:"Event edits open the TaskNotes editor. Drag-and-drop updates scheduled date and duration without showing a modal."},adding:"Adding...",cancel:"Cancel"},holidays:{calendarName:{label:"Calendar Name",description:"Display name shown in the calendar list"},country:{label:"Country",description:"ISO 3166-1 alpha-2 country code, e.g. US, GB, DE, CA."},state:{label:"State / Province",description:"State or province code for regional holidays, e.g. ca, ny, on, by. Leave empty for national holidays only."},region:{label:"Region",description:"Sub-state region code for city or district level holidays. Leave empty if not needed."},holidayTypes:{label:"Holiday Types",description:"Which tiers of holidays to display.",options:{public:"Public holidays only",public_bank:"Public + Bank holidays",public_bank_observance:"Public + Bank + Observance",all_except_optional:"All except optional",all:"All types"}},display:{label:"Display Style",description:"How holiday events are rendered on the calendar.",options:{block:"Normal event (block)",background:"Background event",inverseBackground:"Inverse background",auto:"Auto",none:"Hidden"}},adding:"Adding..."},docs:{providerGuides:"Provider guides: ",fullNote:"Full Note calendar",dailyNote:"Daily Note calendar",ics:"ICS calendars",caldav:"CalDAV calendars",google:"Google calendar",outlook:"Outlook calendar",tasks:"Tasks integration",bases:"Bases calendar",taskNotes:"TaskNote integration"}},categorization:{title:"Advanced categorization and Timeline",learnMoreLink:"here",enable:{label:"Enable advanced categorization (Title-based)",description:"Enable category-based coloring and unlock timeline views. This will modify event note titles and allow timeline visualization by category."},disable:{modalTitle:"⚠️ Disable advanced categorization",modalDescription:"Choose how to disable this feature. You can disable without cleanup to preserve event titles and saved category settings, or disable and clean up to remove known category prefixes and saved category colors.",buttonDisableWithoutCleanup:"Disable without cleanup",buttonDisable:"Disable and clean up notes",buttonCancel:"Cancel"}},workspaces:{title:"Workspaces",description:"Create and manage calendar workspaces. Each workspace can have its own view settings, visible calendars, and filters.",addNew:{label:"Add new workspace",description:"Create a new calendar workspace"},buttons:{new:"New Workspace",edit:"Edit",duplicate:"Duplicate",activate:"Activate",active:"Active",delete:"Delete"},defaultName:"New Workspace",copyName:"{{name}} Copy"},quickStart:{description:'To begin, add a calendar source using the "+" button in the "Manage calendars" section.'},viewOptions:{day:"Day",week:"Week",month:"Month",list:"List",threeDays:"3 Days",timelineWeek:"Timeline Week",timelineDay:"Timeline Day"},weekdays:{sunday:"Sunday",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday"},changelog:{title:"Changelog",versionWithNumber:"Version {{version}}",modal:{title:"What's New in FCR",seeAllButton:"See all changelogs",donationMessage:"FCR is built at high velocity with AI-augmented engineering. If this has provided value to you, consider contributing to $25/month subsidy to help keep this pace sustainable.",donationButton:"Transparency Report & Donation"},whatsNew:"What's New",viewFull:"View full changelog",whatsNewPageLink:"What's New page",changelogPageLink:"Changelog",loadOlder:{button:"Load older versions",loading:"Loading...",errorOffline:"Failed to load older versions. You may be offline."}},utils:{timelineDisabled:'Timeline view is disabled. Resetting default desktop view to "Week".'},warnings:{oneDailyNote:"Only one daily note is allowed."},activityWatch:{title:"ActivityWatch Integration",enable:{label:"Enable ActivityWatch Sync",description:"Periodically pull data from your local ActivityWatch instance."},configButton:"⚙️ Configure ActivityWatch",sync:{targetNotSet:"Activitywatch sync: target calendar not set. Please configure in settings.",targetNotFoundOrReadOnly:"Activitywatch sync: target calendar ({{calendarId}}) not found or read-only.",fetchingData:"Activitywatch sync: fetching data...",failedFetchBuckets:"Failed to fetch buckets. Status: {{status}}",addedEvents:"ActivityWatch sync: added {{count}} events!",failedWithError:"ActivityWatch sync failed: {{message}}",failed:"ActivityWatch sync failed.",enabledPrompt:"Activitywatch enabled. Please configure the target calendar by clicking the gear icon."}},taskBacklog:{title:"Task backlog",addUnscheduledTask:"Add unscheduled task",sourceLabel:"Task backlog source",placeholder:"Task title...",newTitleLabel:"New task name",addBtnLabel:"Add task",missingDateLabel:"Missing date",searchPlaceholder:"Filter by task title, source, or location",searchAriaLabel:"Filter task backlog by task title, source, or location",clearSearchAriaLabel:"Clear backlog search",showAdvancedFiltersAriaLabel:"Show advanced filters",hideAdvancedFiltersAriaLabel:"Hide advanced filters",countFiltered:"{{shown}} of {{total}} unscheduled tasks",countUnscheduledSingular:"{{count}} unscheduled task",countUnscheduledPlural:"{{count}} unscheduled tasks",noProvidersTitle:"No task backlog providers configured.",noProvidersHelp:"Add a Tasks or CalDAV calendar source to use the backlog view.",emptyNoMatchesTitle:'No tasks matched "{{query}}".',emptyNoMatchesHelp:"Try fewer keywords or search by part of the task title, source, or location.",emptyUnscheduledTitle:"No unscheduled tasks.",emptyUnscheduledHelp:"Tasks missing their scheduling date will appear here.",openNoteAriaLabel:"Open note for {{title}}",paginationPrevious:"Previous",paginationNext:"Next",paginationPage:"Page {{current}} of {{total}}",loadMore:"Load more ({{count}})",helpText:"Creates an unscheduled task in your selected provider. ",learnMore:"Tasks Backlog Guide"},tasksIntegration:{title:"Obsidian Tasks Integration",description:"Configure how Full Calendar schedules tasks from the Tasks backlog.",configButton:"Configure Tasks integration",modal:{title:"Tasks Integration"},backlogDateTarget:{label:"Backlog filter date field",description:"Choose which Tasks date marker the backlog tracks. The backlog shows tasks missing this selected date marker.",scheduled:"Scheduled date",start:"Start date",due:"Due date"},calendarDisplayDateTarget:{label:"Calendar display date field",description:"Choose which Tasks date marker Full Calendar uses to display Tasks events. There is no fallback to other date markers. Restart Obsidian or reload the plugin for this change to fully take effect."},openEditModalAfterBacklogDrop:{label:"Open Tasks edit modal after backlog drop",description:"Open the Obsidian Tasks edit modal immediately after dragging a task from the backlog onto the calendar."},includeGlobalQueryInBacklog:{label:"Include global query in the backlog",description:"Apply the Obsidian Tasks global query filters to the backlog view."},backlogQuery:{label:"Backlog query",description:"Apply this Tasks query only to the Full Calendar backlog. Each supported line must match for a task to appear.",placeholder:"path does not include Templates\nfolder includes Projects\ntags do not include someday"},taskDisplayFormat:{label:"Task time format",description:"Choose how Full Calendar writes time into Tasks lines.",standard:"Standard format",dayPlanner:"Day Planner Format"}},tasknotesIntegration:{title:"TaskNotes Integration",descriptionConfigured:"Configure how NLP dispatches to TaskNotes.",descriptionMissingSource:"TaskNotes integration is available. Add a TaskNotes calendar source to configure it.",docsLink:"TaskNotes integration",configButton:"Configure TaskNotes integration",noSource:"Add a TaskNotes calendar source first before configuring TaskNotes integration.",modal:{title:"TaskNotes Integration"},source:{label:"TaskNotes Calendar Source",description:"Select which TaskNotes calendar source to configure."},dispatchMode:{label:"NLP Dispatch Endpoint",description:"Choose whether Full Calendar should open TaskNotes search NLP or create NLP.",options:{search:"Search + Create (selector modal)",create:"Direct Create (task creation modal NLP)"}}},fcrReminder:{title:"FCR Reminder Companion",description:"Sync your upcoming calendar events with the persistent FCR Reminder background companion daemon to receive native system-level toast notifications even when Obsidian is completely closed.",learnMore:"FCR Reminder Guide",enable:{label:"Enable companion integration",description:"Synchronize upcoming event alarms to the background companion daemon."},apiUrl:{label:"Companion server url",description:"The loopback address of the FCR Reminder daemon.",placeholder:"http://127.0.0.1:45677"},offlineBanner:{title:"⚠️ Companion app offline",message:"FCR Reminder is not running. Please start the companion app to enable native, offline notifications."}},footer:{message:"Do you like what you see?",buyMeACoffee:"☕ Buy me a coffee",suggestFeature:"💡 Suggest a new feature",raiseIssue:"🐛 Raise an issue"},credentials:{legacyToggle:{name:"Store credentials in plaintext (sync compatibility)",desc:"Enable this if you sync your Obsidian vault across devices and want to avoid logging in again on every device. Keep disabled for maximum local security (uses OS keychain)."},keychainMissing:"Keychain credentials missing on this device"}},modals:{reminder:{snoozeFor:"Snooze for",dismiss:"Dismiss",openNote:"Open Note",snooze:"Snooze",snoozeWarningTitle:"⚠️ Snoozing Moves Event",snoozeWarningBody:"This is a default reminder. Snoozing will move the event start time forward.",presets:{"5m":"5 minutes","10m":"10 minutes","15m":"15 minutes","30m":"30 minutes","1h":"1 hour"}},editEvent:{title:{new:"New Event",edit:"Edit Event"},advancedOptions:"Advanced Options",buttons:{openNote:"Open Note",delete:"Delete",save:"Save Event"},errors:{createNoCalendars:"Cannot create event: No writable calendars are available.",createError:"Error when creating event: {{message}}",eventNotFound:"Event not found.",detailsNotFound:"Event details not found.",parentNotFound:"Could not find the parent recurring event.",updateError:"Error when updating event: {{message}}",deleteError:"Error when deleting event: {{message}}"},confirmations:{editParentTitle:"Edit Parent Event?",editParentMessage:"This property is inherited from the parent recurring event. Would you like to open the parent to make changes?"},misc:{unknownCalendar:"Unknown Calendar"},fields:{title:{placeholder:"Event Title"},category:{placeholder:"Category (optional)"},location:{placeholder:"Add location..."},description:{placeholder:"Add description..."},display:{label:"Display",tooltip:"Choose how this event appears on the calendar",options:{auto:"Normal event",background:"Background event",none:"Hidden"}},inCalendar:{label:"In Calendar"},date:{label:"Date"},time:{label:"Time"},options:{label:"Options",allDay:"All day",isTask:"Is a Task",completed:"Completed"},notification:{label:"Notify",presets:{"30m":"30 minutes","1h":"1 hour","6h":"6 hours","12h":"12 hours","24h":"24 hours"}},repeats:{label:"Repeats",options:{none:"None",weekly:"Weekly",monthly:"Monthly",yearly:"Yearly"},repeatEvery:"Repeat every",week:"week",weeks:"weeks",month:"month",months:"months",year:"year",years:"years",repeatOn:"Repeat on",onDay:"On day {{day}}",onThe:"On the",ordinal:{first:"first",second:"second",third:"third",fourth:"fourth",last:"last"},yearlyText:"Repeats every year on {{date}}.",endRepeat:"End Repeat"}},tooltips:{recurringTaskCompletion:"Completion for recurring tasks can be toggled on individual instances in the calendar view.",dailyNoteRecurring:"Recurring events are not supported in Daily Notes. Please use a 'Full Note' calendar instead.",inheritedProperty:"This property is inherited. Click to edit the parent recurring event."}},deleteRecurring:{title:"Delete Recurring Event",description:'This is a recurring event. What would you like to do with all of its future "override" instances (i.e., events that you have dragged or modified)?',deleteInstance:{name:"Delete only this instance",description:"Delete only the instance on {{date}}. This will skip this date in the recurrence.",button:"Delete This Instance"},promoteChildren:{name:"Promote child events",description:"Turn all overriden events (if any) into standalone, single events. They will no longer be linked to this recurring series.",button:"Promote Children"},deleteAll:{name:"Delete entire sequence",description:"Delete the recurring event and every override associated with this recurring series. This cannot be undone.",button:"Delete Sequence"},cancel:"Cancel"},rescheduleRecurring:{title:"Reschedule Recurring Event",description:"This is a recurring event. Choose whether to reschedule only this occurrence or the entire recurring sequence.",rescheduleInstance:{name:"Reschedule only this instance",description:"Move only the instance on {{date}}. The rest of the sequence will keep its current schedule.",descriptionNoDate:"Move only this instance. The rest of the sequence will keep its current schedule.",button:"Move This Instance"},rescheduleSequence:{name:"Reschedule entire sequence",description:"Update the recurring event itself so every occurrence follows the new schedule.",button:"Move Sequence"},cancel:"Cancel"},workspace:{title:{create:"Create Workspace",edit:"Edit Workspace"},sections:{general:"General",viewConfiguration:"View Configuration",calendarFilters:"Calendar Filters",categoryFilters:"Category Filters",advancedBases:"Advanced Bases Filtering",appearanceOverrides:"Appearance Overrides",viewClipping:"View Clipping & Time Range"},fields:{name:{label:"Name",description:"A unique name for this workspace",placeholder:"e.g., Work Focus, Family Planning"},desktopView:{label:"Desktop view",description:"Default view for desktop devices"},mobileView:{label:"Mobile view",description:"Default view for mobile devices"},defaultDate:{label:"Default date (optional)",description:'Date to jump to when activating workspace (e.g., "today", "2024-01-01")',placeholder:"today, next-week, 2024-01-01"},basisQueryPath:{label:"Bases query file path",description:"Optional path to a .base file containing filter rules to apply on top of this workspace (e.g., queries/work.base)"},visibleCalendars:{label:"Visible calendars",description:"Select which calendars to show (leave empty to show all)",noCalendars:"No calendars configured. Configure calendars in the main settings first."},categoryFilterMode:{label:"Category filter mode",description:"Choose how to filter categories",options:{showOnly:"Show only selected categories",hide:"Hide selected categories"}},categories:{label:"Categories",description:"Select categories to include/exclude (leave empty to show all)",noCategories:"No categories configured. Configure categories in the Categorization settings.",requiresAdvanced:"Category filtering requires Advanced Categorization to be enabled in the main settings."},notices:{enableBases:"Please enable the Obsidian Bases plugin first."},overrideBusinessHours:{label:"Override business hours",description:"Enable custom business hours for this workspace"},enableBusinessHours:{label:"Enable business hours",description:"Show business hours highlighting in this workspace"},businessDays:{label:"Business days",description:"Select which days of the week are business days"},businessHoursStart:{label:"Business hours start time",description:"When your working day begins (format: HH:mm)"},businessHoursEnd:{label:"Business hours end time",description:"When your working day ends (format: HH:mm)"},timelineCategories:{label:"Timeline categories",description:"Default state for timeline category groups",options:{useDefault:"Use default setting",expanded:"Expanded by default",collapsed:"Collapsed by default"}},slotMinTime:{label:"Earliest time to display",description:"Override the earliest time visible in time grid views (format: HH:mm)",placeholder:"Use global default"},slotMaxTime:{label:"Latest time to display",description:"Override the latest time visible in time grid views (format: HH:mm)"},weekendDisplay:{label:"Weekend display",description:"Override whether to show weekends in the calendar",options:{show:"Show weekends",hide:"Hide weekends"}},hiddenDays:{label:"Hidden days",description:"Override which days to hide from the calendar",options:{showAll:"Show all days",hideWeekends:"Hide weekends (Sun, Sat)",hideSunday:"Hide Sunday",hideSaturday:"Hide Saturday",hideMonday:"Hide Monday",hideFriday:"Hide Friday"}},dayMaxEvents:{label:"Max events per day (month view)",description:"Override the maximum number of events to show per day in month view",options:{useDefault:"Use default limit",noLimit:"No limit",one:"1 event",two:"2 events",three:"3 events",four:"4 events",five:"5 events",ten:"10 events"}}},calendarTypes:{local:"Local:",dailyNotes:"Daily Notes:",ics:"ICS:",caldav:"CalDAV:",google:"Google:",outlook:"Outlook:"},buttons:{save:"Save",create:"Create",cancel:"Cancel"}},bulkCategorize:{title:"Choose a Bulk-Update Method",description:"How would you like to automatically categorize existing events in your local calendars? Note that this is a one time operation that will modify your event notes to match the required formatting.",smartFolder:{name:"Use Parent Folder (Smart)",description:"Use parent folder names as the category for UN-categorized events. Events that already look like 'Category - Title' will be skipped.",button:"Run Smart Update"},forcedFolder:{name:"Use Parent Folder (Forced)",description:"PREPENDS the parent folder name to ALL event titles, even if they already have a category. Warning: This creates nested categories.",button:"Run Forced Update"},forcedDefault:{name:"Forced Default Update",description:"Prepends a category you provide to ALL event titles. If a category already exists, the new one will be added in front (e.g., New - Old - Title).",placeholder:"Enter default category",button:"Set Default",errorEmpty:"Please enter a category name."}},activityWatchSetup:{saved:"Activitywatch configuration saved",apiUrl:"API URL",targetCalendar:"Target Calendar",unselected:"Unselected",strategy:{title:"Sync Strategy",auto:"Sync from Last Checked",custom:"Custom Date Range",datePlaceholder:"Select Start and End Date",lastSynced:"Last checked",neverSynced:"Never checked",autoSyncEnabled:"Enable automatic sync",autoSyncIntervalMins:"Auto-sync interval (minutes)",autoDescription:"Manual and automatic syncs update the last checked time.",customDescription:"Debug-only manual range. It never updates the last checked time and cannot run automatically."},profiles:{title:"Context Profiles (Best-Fit FSM)",config:"Profile Configuration",btnDelete:"Delete",name:"Profile Name",category:"Category (Color tag)",activationThreshold:"Activation Threshold (Mins)",softBreakLimit:"Soft Break Limit (Mins)",titleTemplate:"Title Template",titleTemplatePlaceholder:"e.g. Work - {app}",primaryEvidenceRules:"Primary Evidence Rules (Can start and sustain sessions)",supportingEvidenceRules:"Supporting Evidence Rules (Can sustain, but cannot start)",hardBreakRules:"Hard Break Rules (Instantly end the session)",btnAddProfile:"+ Add Context Profile"},rules:{bucketPlaceholder:"Bucket (e.g. window)",fieldPlaceholder:"Field (e.g. app)",matchPatternPlaceholder:"Match Pattern",regex:"Regex",btnAdd:"+ Add Rule"},buttons:{save:"Save",cancel:"Cancel"}}},google:{auth:{expired:"Google authentication expired. Please reconnect your account.",authFailed:"Could not authenticate calendar. Please try re-adding it in settings.",popupBlocked:"Popup blocked. Please allow popups for Obsidian.",customCredsMissing:"Custom Google Client ID and Secret must be set in the plugin settings.",stateMismatch:"Google authentication failed. State mismatch.",success:"Successfully connected Google Account!",failed:"Failed to connect Google Account. Check the developer console for details.",copyModalTitle:"Google Authorization Link",copyModalDesc:"Please copy the link below, paste it into your browser of choice, complete the authorization, and then return to Obsidian.",copyModalCopyButton:"Copy Link",copyModalCopiedButton:"Copied!",copyModalCloseButton:"Close",waitingModalTitle:"Waiting for Authentication",waitingModalDesc:"Obsidian is waiting for you to complete the authentication in your browser. Once completed, this window will close automatically.",waitingModalCancel:"Cancel"},title:"Google Accounts",copyPasteAuth:{enable:{label:"Copy-paste authorization",description:"Show a popup with the authorization URL to manually copy and paste into a browser of your choice, instead of automatically opening the system default browser."}},customCredentials:{enable:{label:"Use custom Google Cloud credentials",description:"Use your own OAuth Client ID and Secret instead of the default. Plugin currently stands verified by Google, but you may still use this option."},clientId:{label:"Client ID",description:"Your Google OAuth 2.0 Client ID"},clientSecret:{label:"Client Secret",description:"Your Google OAuth 2.0 Client Secret"}},noAccounts:"No Google accounts connected. Add Google calendar In Calendars section to connect an account.",accountDescription:"Connected account. ID: {{id}}",buttons:{disconnect:"Disconnect",selectCalendars:"Select Calendars",connectAccount:"Connect Google Account",backToAccounts:"Back to Accounts",addCalendars:"Add {{count}} Calendar",addCalendarsPlural:"Add {{count}} Calendars",selectTaskLists:"Select task lists",addTaskList:"Add Google Task List"},selectAccount:{title:"Connect a Google Account"},selectCalendars:{title:"Select Calendars from {{email}}",noCalendars:"No new calendars found, or all calendars from this account have been added.",description:"Choose which calendars you would like to add to Obsidian."},selectTasks:{title:"Select Google Task Lists for {{email}}",noTaskLists:"No remaining task lists found on this account.",description:"Select the Google Task lists you want to add."},errors:{tokenRefreshFailed:"Failed to refresh token for {{email}}. Please try connecting the account again.",fetchTaskListsFailed:"Failed to fetch task lists for {{email}}. {{message}}"},loading:"Loading..."},outlook:{auth:{expired:"Outlook authentication expired. Please reconnect your account.",authFailed:"Could not authenticate Outlook calendar. Please re-add it in settings.",desktopOnly:"Outlook sign-in is currently available on desktop only.",clientIdMissing:"Microsoft Client ID is required. Configure it in Integrations > Outlook.",proxyMissing:"Microsoft proxy URL is required. Configure it in Integrations > Outlook.",stateMismatch:"Outlook authentication failed. State mismatch.",success:"Successfully connected Outlook account!",failed:"Failed to connect Outlook account. Check the developer console for details.",callbackSuccess:"Authentication successful! Please return to Obsidian.",callbackFailed:"Authentication failed. Check Obsidian console and try again."},title:"Outlook Accounts",docs:{setupGuide:"Outlook calendar setup"},customCredentials:{enable:{label:"Use custom Microsoft credentials",description:"Use your own Microsoft Client ID and proxy URL instead of the built-in defaults."}},config:{clientId:{label:"Microsoft Client ID",description:"OAuth app Client ID used for Microsoft login."},proxyUrl:{label:"Vercel proxy URL",description:"Base URL for your Microsoft token proxy (for example: https://your-app.vercel.app).",placeholder:"https://your-app.vercel.app"},clientIdPlaceholder:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},misc:{settingsSourcesLink:"Calendar sources settings"},noAccounts:"No Outlook accounts connected. Add an Outlook calendar in Calendars to connect one.",accountDescription:"Connected account. ID: {{id}}",buttons:{disconnect:"Disconnect",selectCalendars:"Select Calendars",connectAccount:"Connect Outlook Account",backToAccounts:"Back to Accounts",addCalendars:"Add {{count}} Calendar",addCalendarsPlural:"Add {{count}} Calendars"},selectAccount:{title:"Connect an Outlook Account"},selectCalendars:{title:"Select Calendars from {{email}}",noCalendars:"No new calendars found, or all calendars from this account have already been added.",description:"Choose which Outlook calendars you would like to add to Obsidian."},errors:{fetchCalendars:"Failed to fetch Outlook calendars for {{email}}. {{message}}",unknown:"Unknown error"},loading:"Loading..."},ui:{view:{errors:{cacheNotLoaded:"Full Calendar event cache not loaded.",chronoAnalyserDesktopOnly:"The ChronoAnalyser is only available on desktop.",chronoAnalyserFailed:"Failed to open ChronoAnalyser. Please check the console.",modifyEventFailed:"Failed to modify event.",taskScheduleFailed:"Failed to schedule task: {{message}}"},success:{taskScheduled:"Task scheduled successfully"},workspace:{switcherLabel:"Workspace"},buttons:{analysis:"Analysis",defaultView:"Default View"},contextMenu:{turnIntoTask:"Turn into task",removeCheckbox:"Remove checkbox",goToNote:"Go to note",delete:"Delete",noActions:"No actions available on remote events"}},buttons:{addCalendar:"Add Calendar"},navigation:{thisMonth:"This Month",thisWeek:"This Week",customDate:"Custom Date...",viewMonth:"View Month",viewWeek:"View Week",viewDay:"View Day"}},notifications:{eventStarting:{title:"Event Starting Soon"},allDaySuffix:"(All-day)",inMinutes:"(In {{mins}} minutes)",failed:"Full Calendar: Failed to create desktop notification.",errorBody:"Full Calendar: Could not show desktop notification. Check console for errors."},api:{authorization:{title:"Authorization request",requestingPluginMessage:'The plugin "{{pluginId}}" is requesting access to Full Calendar.',reasonLabel:"Reason: {{reason}}",permissionsLabel:"Select which permissions to grant. You can change these later in settings.",approve:"Approve",deny:"Deny"},settings:{title:"API access",managePermissions:'Manage permissions for "{{pluginId}}".',noAuthorizedPlugins:"No external plugins are authorized.",editAccess:"Edit access",revoke:"Revoke",cancel:"Cancel",save:"Save",serverTitle:"Local REST Server",serverEnable:"Enable REST Server",serverEnableDesc:"Starts a local HTTP server inside Obsidian, enabling programmatic integrations from the command-line (CLI), scripts, or third-party web apps via REST API. Listening on localhost (127.0.0.1) only.",serverPort:"REST Server Port",serverPortDesc:"The port number the local REST API server should listen on. Requires enabling the REST server.",patTitle:"Personal Access Tokens (PATs)",patGenerate:"Generate Token",patNone:"No Personal Access Tokens generated yet.",patScopes:"Scopes: {{scopes}}",patCreated:"Created: {{date}}",patLastUsed:"Last Used: {{date}}",patNeverUsed:"Never",patModalTitle:"Generate Personal Access Token",patModalDesc:"Personal Access Tokens allow you to query, create, or modify events in Full Calendar from DataviewJS, Templater, or command-line (CLI) scripts without showing authorization popups.",patModalName:"Token Name",patModalNameDesc:"Describe what this token is for (e.g., 'PythonSyncScript').",patModalPermissions:"Permissions / Scopes",patModalCancel:"Cancel",patModalGenerate:"Generate Token",patSuccessTitle:"Token Generated Successfully",patSuccessDesc:"Your new Personal Access Token '{{name}}' has been created. Copy this token now. You will not be able to see it again!",patSuccessCopy:"Copy",patSuccessCopied:"Copied!",patSuccessClose:"I have copied the token"}},nlp:{modalTitle:"FCR Command",placeholder:"e.g., tomorrow at 4pm Team standup, open settings, go to next tuesday",submit:"Run",cancel:"Cancel",previewHint:"Type a command — create events, navigate views, open settings, and more.",noCalendars:"No writable calendars available. Please add a calendar first.",parseSuccess:"Command executed.",navigating:"Navigating to {{view}} view.",intents:{CREATE_EVENT:"📅 Create Event",NEW_EVENT:"📅 New Event (blank)",NAVIGATE_DAY:"🧭 Navigate → Day View",NAVIGATE_WEEK:"🧭 Navigate → Week View",NAVIGATE_MONTH:"🧭 Navigate → Month View",OPEN_CALENDAR:"📖 Open Calendar",OPEN_SIDEBAR:"📖 Open Sidebar",OPEN_SETTINGS:"⚙️ Open Settings",OPEN_CHRONO:"📊 Open ChronoAnalyser",SHOW_CHANGELOG:"📋 Show Changelog",SHOW_MILESTONES:"🏅 Show Milestones",RESET_CACHE:"🗑️ Reset Event Cache",REVALIDATE_REMOTE:"🔄 Revalidate Remote Calendars",SYNC_ACTIVITYWATCH:"⏱️ Sync ActivityWatch",GOTO_DATE:"📆 Go to Date"},descriptions:{OPEN_SETTINGS:"Opens the Full Calendar settings tab.",OPEN_CHRONO:"Launches the ChronoAnalyser dashboard.",SHOW_CHANGELOG:"Displays the latest release notes.",SHOW_MILESTONES:"Opens the milestones page in settings.",RESET_CACHE:"Clears and rebuilds the event cache.",REVALIDATE_REMOTE:"Forces a fresh sync of all remote calendars.",SYNC_ACTIVITYWATCH:"Pulls latest data from ActivityWatch."},preview:{target:"Target",title:"Title",date:"Date",time:"Time",allDay:"All day",calendar:"Calendar",recurrence:"Recurrence",every:"Every",patternsMatched:"✓ {{count}} pattern matched"},notices:{cacheReset:"Event cache has been reset.",awNotEnabled:"ActivityWatch is not enabled. Enable it in settings first.",fcrCompanionNotEnabled:"FCR Reminder Companion is not enabled. Enable it in settings first."}},linkedNotes:{untitledNote:"Untitled Linked Note"}}});function Ree(e,t){xxe[e]={translation:t},sp.isInitialized&&sp.addResourceBundle(e,"translation",t,!0,!0)}function _xe(e){try{let e=(0,F5.getLanguage)();return"string"==typeof e&&e.length>0?e:"en"}catch{return"en"}}function zxe(e){return i9t.includes(e)}function Axe(e,t,n){let r=(0,F5.normalizePath)(`${e.vault.configDir}/plugins/${t}/locales`);return{localesFolder:r,localeFile:(0,F5.normalizePath)(`${r}/${n}.json`)}}async function wxe(e,t,n){let{localesFolder:r,localeFile:a}=Axe(e,t,n),i=`${a9t}/${n}.json`,o=(await(0,F5.requestUrl)(i)).text,s=JSON.parse(o);return await e.vault.adapter.exists(r)||await e.vault.adapter.mkdir(r),await e.vault.adapter.write(a,o),s}async function Oxe(e,t){let n=_xe(e);return!(!zxe(n)||"en"===n)&&(Ree(n,await wxe(e,t,n)),!0)}async function Txe(e,t){let n=_xe(e),r="en";if(zxe(n)&&"en"!==n)try{let{localeFile:a}=Axe(e,t,n),i="";if(await e.vault.adapter.exists(a))i=await e.vault.adapter.read(a);else{Ree(n,await wxe(e,t,n)),r=n,i=""}if(i){Ree(n,JSON.parse(i)),r=n}}catch{}await sp.init({lng:r,fallbackLng:"en",resources:xxe,interpolation:{escapeValue:!1},returnNull:!1,returnEmptyString:!1})}var F5,a9t,xxe,i9t,Ce,Zo=kr(()=>{yxe(),F5=require("obsidian"),bxe(),a9t="https://fcr-cdn.plugin-fcr.workers.dev/assets/i18n",xxe={en:{translation:Mxe}},i9t=["en","de","fr","it","es","zh"],Ce=(e,t)=>sp.t(e,t)});function Lb(e,t){for(var n in t)e[n]=t[n];return e}function Bee(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function io(e,t,n){var r,a,i,o={};for(i in t)"key"==i?r=t[i]:"ref"==i?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?aC.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===o[i]&&(o[i]=e.defaultProps[i]);return nC(e,o,r,a,null)}function nC(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:a??++Exe,__i:-1,__u:0};return null==a&&null!=Al.vnode&&Al.vnode(i),i}function oC(){return{current:null}}function Pu(e){return e.children}function Em(e,t){this.props=e,this.context=t}function tT(e,t){if(null==t)return e.__?tT(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?tT(e):null}function l9t(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],a=[],i=Lb({},t);i.__v=t.__v+1,Al.vnode&&Al.vnode(i),Uee(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??tT(t),!!(32&t.__u),a),i.__v=t.__v,i.__.__k[i.__i]=i,Wxe(r,i,a),t.__e=t.__=null,i.__e!=n&&Pxe(i)}}function Pxe(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),Pxe(e)}function Nee(e){(!e.__d&&(e.__d=!0)&&I_.push(e)&&!JN.__r++||Sxe!=Al.debounceRendering)&&((Sxe=Al.debounceRendering)||qxe)(JN)}function JN(){try{for(var e,t=1;I_.length;)I_.length>t&&I_.sort(Dxe),e=I_.shift(),t=I_.length,l9t(e)}finally{I_.length=JN.__r=0}}function Ixe(e,t,n,r,a,i,o,s,l,c,u){var d,p,h,f,m,g,y,b=r&&r.__k||KN,v=t.length;for(l=c9t(n,t,b,l,v),d=0;d<v;d++)null!=(h=n.__k[d])&&(p=-1!=h.__i&&b[h.__i]||$N,h.__i=d,g=Uee(e,h,p,a,i,o,s,l,c,u),f=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&Hee(p.ref,null,h),u.push(h.ref,h.__c||f,h)),null==m&&null!=f&&(m=f),(y=!!(4&h.__u))||p.__k===h.__k?(l=Nxe(h,l,e,y),y&&p.__e&&(p.__e=null)):"function"==typeof h.type&&void 0!==g?l=g:f&&(l=f.nextSibling),h.__u&=-7);return n.__e=m,l}function c9t(e,t,n,r,a){var i,o,s,l,c,u=n.length,d=u,p=0;for(e.__k=new Array(a),i=0;i<a;i++)null!=(o=t[i])&&"boolean"!=typeof o&&"function"!=typeof o?("string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?o=e.__k[i]=nC(null,o,null,null,null):iC(o)?o=e.__k[i]=nC(Pu,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?o=e.__k[i]=nC(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):e.__k[i]=o,l=i+p,o.__=e,o.__b=e.__b+1,s=null,-1!=(c=o.__i=u9t(o,n,l,d))&&(d--,(s=n[c])&&(s.__u|=2)),null==s||null==s.__v?(-1==c&&(a>u?p--:a<u&&p++),"function"!=typeof o.type&&(o.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?p--:p++,o.__u|=4))):e.__k[i]=null;if(d)for(i=0;i<u;i++)null!=(s=n[i])&&!(2&s.__u)&&(s.__e==r&&(r=tT(s)),Bxe(s,s));return r}function Nxe(e,t,n,r){var a,i;if("function"==typeof e.type){for(a=e.__k,i=0;a&&i<a.length;i++)a[i]&&(a[i].__=e,t=Nxe(a[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=tT(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function Pb(e,t){return t=t||[],null==e||"boolean"==typeof e||(iC(e)?e.some(function(e){Pb(e,t)}):t.push(e)),t}function u9t(e,t,n,r){var a,i,o,s=e.key,l=e.type,c=t[n],u=null!=c&&!(2&c.__u);if(null===c&&null==s||u&&s==c.key&&l==c.type)return n;if(r>(u?1:0))for(a=n-1,i=n+1;a>=0||i<t.length;)if(null!=(c=t[o=a>=0?a--:i++])&&!(2&c.__u)&&s==c.key&&l==c.type)return o;return-1}function kxe(e,t,n){"-"==t[0]?e.setProperty(t,n??""):e[t]=null==n?"":"number"!=typeof n||s9t.test(t)?n:n+"px"}function YN(e,t,n,r,a){var i,o;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||kxe(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||kxe(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(Rxe,"$1")),o=t.toLowerCase(),t=o in e||"onFocusOut"==t||"onFocusIn"==t?o.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n[rC]=r[rC]:(n[rC]=Fee,e.addEventListener(t,i?Iee:Pee,i)):e.removeEventListener(t,i?Iee:Pee,i);else{if("http://www.w3.org/2000/svg"==a)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=n??"";break e}catch{}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function Cxe(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t[ZN])t[ZN]=Fee++;else if(t[ZN]<n[rC])return;return n(Al.event?Al.event(t):t)}}}function Uee(e,t,n,r,a,i,o,s,l,c){var u,d,p,h,f,m,g,y,b,v,M,x,z,_,A,O=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),i=[s=t.__e=n.__e]),(u=Al.__b)&&u(t);e:if("function"==typeof O)try{if(y=t.props,b=O.prototype&&O.prototype.render,v=(u=O.contextType)&&r[u.__c],M=u?v?v.props.value:u.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:(b?t.__c=d=new O(y,M):(t.__c=d=new Em(y,M),d.constructor=O,d.render=f9t),v&&v.sub(d),d.state||(d.state={}),d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),b&&null==d.__s&&(d.__s=d.state),b&&null!=O.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Lb({},d.__s)),Lb(d.__s,O.getDerivedStateFromProps(y,d.__s))),h=d.props,f=d.state,d.__v=t,p)b&&null==O.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),b&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(b&&null==O.getDerivedStateFromProps&&y!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,M),t.__v==n.__v||!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,M)){t.__v!=n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),KN.push.apply(d.__h,d._sb),d._sb=[],d.__h.length&&o.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,M),b&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(h,f,m)})}if(d.context=M,d.props=y,d.__P=e,d.__e=!1,x=Al.__r,z=0,b)d.state=d.__s,d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),KN.push.apply(d.__h,d._sb),d._sb=[];else do{d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++z<25);d.state=d.__s,null!=d.getChildContext&&(r=Lb(Lb({},r),d.getChildContext())),b&&!p&&null!=d.getSnapshotBeforeUpdate&&(m=d.getSnapshotBeforeUpdate(h,f)),_=null!=u&&u.type===Pu&&null==u.key?Fxe(u.props.children):u,s=Ixe(e,iC(_)?_:[_],t,n,r,a,i,o,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),g&&(d.__E=d.__=null)}catch(e){if(t.__v=null,l||null!=i)if(e.then){for(t.__u|=l?160:128;s&&8==s.nodeType&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else{for(A=i.length;A--;)Bee(i[A]);Wee(t)}else t.__e=n.__e,t.__k=n.__k,e.then||Wee(t);Al.__e(e,t,n)}else null==i&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=d9t(n.__e,t,n,r,a,i,o,l,c);return(u=Al.diffed)&&u(t),128&t.__u?void 0:s}function Wee(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Wee))}function Wxe(e,t,n){for(var r=0;r<n.length;r++)Hee(n[r],n[++r],n[++r]);Al.__c&&Al.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){Al.__e(e,t.__v)}})}function Fxe(e){return"object"!=typeof e||null==e||e.__b>0?e:iC(e)?e.map(Fxe):void 0!==e.constructor?null:Lb({},e)}function d9t(e,t,n,r,a,i,o,s,l){var c,u,d,p,h,f,m,g=n.props||$N,y=t.props,b=t.type;if("svg"==b?a="http://www.w3.org/2000/svg":"math"==b?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=i)for(c=0;c<i.length;c++)if((h=i[c])&&"setAttribute"in h==!!b&&(b?h.localName==b:3==h.nodeType)){e=h,i[c]=null;break}if(null==e){if(null==b)return document.createTextNode(y);e=document.createElementNS(a,b,y.is&&y),s&&(Al.__m&&Al.__m(t,i),s=!1),i=null}if(null==b)g===y||s&&e.data==y||(e.data=y);else{if(i="textarea"==b&&null!=y.defaultValue?null:i&&aC.call(e.childNodes),!s&&null!=i)for(g={},c=0;c<e.attributes.length;c++)g[(h=e.attributes[c]).name]=h.value;for(c in g)h=g[c],"dangerouslySetInnerHTML"==c?d=h:"children"==c||c in y||"value"==c&&"defaultValue"in y||"checked"==c&&"defaultChecked"in y||YN(e,c,null,h,a);for(c in y)h=y[c],"children"==c?p=h:"dangerouslySetInnerHTML"==c?u=h:"value"==c?f=h:"checked"==c?m=h:s&&"function"!=typeof h||g[c]===h||YN(e,c,h,g[c],a);if(u)s||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),Ixe("template"==t.type?e.content:e,iC(p)?p:[p],t,n,r,"foreignObject"==b?"http://www.w3.org/1999/xhtml":a,i,o,i?i[0]:n.__k&&tT(n,0),s,l),null!=i)for(c=i.length;c--;)Bee(i[c]);s&&"textarea"!=b||(c="value","progress"==b&&null==f?e.removeAttribute("value"):null!=f&&(f!==e[c]||"progress"==b&&!f||"option"==b&&f!=g[c])&&YN(e,c,f,g[c],a),c="checked",null!=m&&m!=e[c]&&YN(e,c,m,g[c],a))}return e}function Hee(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){Al.__e(e,n)}}function Bxe(e,t,n){var r,a;if(Al.unmount&&Al.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Hee(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Al.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(a=0;a<r.length;a++)r[a]&&Bxe(r[a],t,n||"function"!=typeof e.type);n||Bee(e.__e),e.__c=e.__=e.__e=void 0}function f9t(e,t,n){return this.constructor(e,n)}function rT(e,t,n){var r,a,i,o;t==document&&(t=document.documentElement),Al.__&&Al.__(e,t),a=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],o=[],Uee(t,e=(!r&&n||t).__k=io(Pu,null,[e]),a||$N,$N,t.namespaceURI,!r&&n?[n]:a?null:t.firstChild?aC.call(t.childNodes):null,i,!r&&n?n:a?a.__e:t.firstChild,r,o),Wxe(i,e,o)}function Vee(e,t){rT(e,t,Vee)}function Uxe(e,t,n){var r,a,i,o,s=Lb({},e.props);for(i in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)"key"==i?r=t[i]:"ref"==i?a=t[i]:s[i]=void 0===t[i]&&null!=o?o[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?aC.call(arguments,2):n),nC(e.type,s,r||e.key,a||e.ref,null)}function jee(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__e=!0,Nee(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+Lxe++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}var aC,Al,Exe,o9t,I_,Sxe,qxe,Dxe,Lee,ZN,rC,Rxe,Fee,Pee,Iee,Lxe,$N,KN,s9t,iC,nT=kr(()=>{$N={},KN=[],s9t=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,iC=Array.isArray,aC=KN.slice,Al={__e:function(e,t,n,r){for(var a,i,o;t=t.__;)if((a=t.__c)&&!a.__)try{if((i=a.constructor)&&null!=i.getDerivedStateFromError&&(a.setState(i.getDerivedStateFromError(e)),o=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(e,r||{}),o=a.__d),o)return a.__E=a}catch(t){e=t}throw e}},Exe=0,o9t=function(e){return null!=e&&void 0===e.constructor},Em.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=Lb({},this.state),"function"==typeof e&&(e=e(Lb({},n),this.props)),e&&Lb(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),Nee(this))},Em.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Nee(this))},Em.prototype.render=Pu,I_=[],qxe="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Dxe=function(e,t){return e.__v.__b-t.__v.__b},JN.__r=0,Lee=Math.random().toString(8),ZN="__d"+Lee,rC="__a"+Lee,Rxe=/(PointerCapture)$|Capture$/i,Fee=0,Pee=Cxe(!1),Iee=Cxe(!0),Lxe=0});function iT(e,t){Ef.__h&&Ef.__h(of,e,aT||t),aT=0;var n=of.__H||(of.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Li(e){return aT=1,eW(Jxe,e)}function eW(e,t,n){var r=iT(N_++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Jxe(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=of,!of.__f)){var a=function(e,t,n){if(!r.__c.__H)return!0;var a=r.__c.__H.__.filter(function(e){return e.__c});if(a.every(function(e){return!e.__N}))return!i||i.call(this,e,t,n);var o=r.__c.props!==e;return a.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),i&&i.call(this,e,t,n)||o};of.__f=!0;var i=of.shouldComponentUpdate,o=of.componentWillUpdate;of.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,a(e,t,n),i=r}o&&o.call(this,e,t,n)},of.shouldComponentUpdate=a}return r.__N||r.__}function vu(e,t){var n=iT(N_++,3);!Ef.__s&&Jee(n.__H,t)&&(n.__=e,n.u=t,of.__H.__h.push(n))}function oT(e,t){var n=iT(N_++,4);!Ef.__s&&Jee(n.__H,t)&&(n.__=e,n.u=t,of.__h.push(n))}function qf(e){return aT=5,Sy(function(){return{current:e}},[])}function Yee(e,t,n){aT=6,oT(function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}},null==n?n:n.concat(e))}function Sy(e,t){var n=iT(N_++,7);return Jee(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function vM(e,t){return aT=8,Sy(function(){return e},t)}function Zee(e){var t=of.context[e.__c],n=iT(N_++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(of)),t.props.value):e.__}function $ee(e,t){Ef.useDebugValue&&Ef.useDebugValue(t?t(e):e)}function Kee(){var e=iT(N_++,11);if(!e.__){for(var t=of.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function h9t(){for(var e;e=Kxe.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(QN),t.__h.some(Xee),t.__h=[]}catch(n){t.__h=[],Ef.__e(n,e.__v)}}}function p9t(e){var t,n=function(){clearTimeout(r),$xe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);$xe&&(t=requestAnimationFrame(n))}function QN(e){var t=of,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),of=t}function Xee(e){var t=of;e.__c=e.__(),of=t}function Jee(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Jxe(e,t){return"function"==typeof t?t(e):t}var N_,of,Gee,Hxe,aT,Kxe,Ef,Vxe,jxe,Gxe,Xxe,Yxe,Zxe,$xe,Qee=kr(()=>{nT(),aT=0,Kxe=[],Vxe=(Ef=Al).__b,jxe=Ef.__r,Gxe=Ef.diffed,Xxe=Ef.__c,Yxe=Ef.unmount,Zxe=Ef.__,Ef.__b=function(e){of=null,Vxe&&Vxe(e)},Ef.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Zxe&&Zxe(e,t)},Ef.__r=function(e){jxe&&jxe(e),N_=0;var t=(of=e.__c).__H;t&&(Gee===of?(t.__h=[],of.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(QN),t.__h.some(Xee),t.__h=[],N_=0)),Gee=of},Ef.diffed=function(e){Gxe&&Gxe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Kxe.push(t)&&Hxe===Ef.requestAnimationFrame||((Hxe=Ef.requestAnimationFrame)||p9t)(h9t)),t.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),Gee=of=null},Ef.__c=function(e,t){t.some(function(e){try{e.__h.some(QN),e.__h=e.__h.filter(function(e){return!e.__||Xee(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],Ef.__e(n,e.__v)}}),Xxe&&Xxe(e,t)},Ef.unmount=function(e){Yxe&&Yxe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{QN(e)}catch(e){t=e}}),n.__H=void 0,t&&Ef.__e(t,n.__v))},$xe="function"==typeof requestAnimationFrame});function s_e(e,t){for(var n in t)e[n]=t[n];return e}function tte(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function l_e(e,t){var n=t(),r=Li({t:{__:n,u:t}}),a=r[0].t,i=r[1];return oT(function(){a.__=n,a.u=t,ete(a)&&i({t:a})},[e,n,t]),vu(function(){return ete(a)&&i({t:a}),e(function(){ete(a)&&i({t:a})})},[e]),n}function ete(e){try{return!((t=e.__)===(n=e.u())&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch{return!0}var t,n}function c_e(e){e()}function u_e(e){return e}function d_e(){return[!1,c_e]}function rte(e,t){this.props=e,this.context=t}function m9t(e,t){function n(e){var n=this.props.ref;return n!=e.ref&&n&&("function"==typeof n?n(null):n.current=null),t?!t(this.props,e)||n!=e.ref:tte(this.props,e)}function r(t){return this.shouldComponentUpdate=n,io(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.__f=r.prototype.isReactComponent=!0,r.type=e,r}function g9t(e){function t(t){var n=s_e({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=v9t,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function h_e(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=s_e({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return h_e(e,t,n)})),e}function p_e(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return p_e(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function tW(){this.__u=0,this.o=null,this.__b=null}function m_e(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function M9t(e){var t,n,r,a=null;function i(i){if(t||(t=e()).then(function(e){e&&(a=e.default||e),r=!0},function(e){n=e,r=!0}),n)throw n;if(!r)throw t;return a?io(a,i):null}return i.displayName="Lazy",i.__f=!0,i}function sC(){this.i=null,this.l=null}function x9t(e){return this.getChildContext=function(){return e.context},e.children}function _9t(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){rT(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;null!==r&&!r.__m&&null!==r.__;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:n.namespaceURI,insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}rT(io(x9t,{context:t.context},e.__v),t.v)}function z9t(e,t){var n=io(_9t,{__v:e,h:t});return n.containerInfo=t,n}function nte(e,t,n){return null==t.__k&&(t.textContent=""),rT(e,t),"function"==typeof n&&n(),e?e.__c:null}function ate(e,t,n){return Vee(e,t),"function"==typeof n&&n(),e?e.__c:null}function E9t(e){return io.bind(null,e)}function rW(e){return!!e&&e.$$typeof===v_e}function q9t(e){return rW(e)&&e.type===Pu}function D9t(e){return!!e&&"string"==typeof e.displayName&&0==e.displayName.indexOf("Memo(")}function R9t(e){return rW(e)?Uxe.apply(null,arguments):e}function ote(e){return!!e.__k&&(rT(null,e),!0)}function L9t(e){return e&&(e.base||1===e.nodeType&&e)||null}var f_e,Qxe,v9t,e_e,y9t,b9t,t_e,r_e,v_e,A9t,w9t,O9t,T9t,S9t,n_e,ite,k9t,a_e,i_e,o_e,C9t,P9t,I9t,N9t,sT,h1=kr(()=>{nT(),nT(),Qee(),Qee(),f_e=oT,(rte.prototype=new Em).isPureReactComponent=!0,rte.prototype.shouldComponentUpdate=function(e,t){return tte(this.props,e)||tte(this.state,t)},Qxe=Al.__b,Al.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Qxe&&Qxe(e)},v9t=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,y9t={map:e_e=function(e,t){return null==e?null:Pb(Pb(e).map(t))},forEach:e_e,count:function(e){return e?Pb(e).length:0},only:function(e){var t=Pb(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:Pb},b9t=Al.__e,Al.__e=function(e,t,n,r){if(e.then)for(var a,i=t;i=i.__;)if((a=i.__c)&&a.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),a.__c(e,t);b9t(e,t,n,r)},t_e=Al.unmount,Al.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),t_e&&t_e(e)},(tW.prototype=new Em).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var a=m_e(r.__v),i=!1,o=function(){i||r.__z||(i=!0,n.__R=null,a?a(l):l())};n.__R=o;var s=n.__P;n.__P=null;var l=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=p_e(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.__P=s,t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},tW.prototype.componentWillUnmount=function(){this.o=[]},tW.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=h_e(this.__b,n,r.__O=r.__P)}this.__b=null}var a=t.__a&&io(Pu,null,e.fallback);return a&&(a.__u&=-33),[io(Pu,null,t.__a?null:e.children),a]},r_e=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}},(sC.prototype=new Em).__a=function(e){var t=this,n=m_e(t.__v),r=t.l.get(e);return r[0]++,function(a){var i=function(){t.props.revealOrder?(r.push(a),r_e(t,e,r)):a()};n?n(i):i()}},sC.prototype.render=function(e){this.i=null,this.l=new Map;var t=Pb(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},sC.prototype.componentDidUpdate=sC.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){r_e(e,n,t)})},v_e=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,A9t=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,w9t=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,O9t=/[A-Z0-9]/g,T9t=typeof document<"u",S9t=function(e){return(typeof Symbol<"u"&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)},Em.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Em.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}),n_e=Al.event,Al.event=function(e){return n_e&&(e=n_e(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e},k9t={configurable:!0,get:function(){return this.class}},a_e=Al.vnode,Al.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},a=-1==n.indexOf("-");for(var i in t){var o=t[i];if(!("value"===i&&"defaultValue"in t&&null==o||T9t&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var s=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===o?o="":"translate"===s&&"no"===o?o=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?i="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||S9t(t.type)?"onfocus"===s?i="onfocusin":"onblur"===s?i="onfocusout":w9t.test(i)&&(i=s):s=i="oninput":a&&A9t.test(i)?i=i.replace(O9t,"-$&").toLowerCase():null===o&&(o=void 0),"oninput"===s&&r[i=s]&&(i="oninputCapture"),r[i]=o}}"select"==n&&(r.multiple&&Array.isArray(r.value)&&(r.value=Pb(t.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),null!=r.defaultValue&&(r.value=Pb(t.children).forEach(function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",k9t)):t.className&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=v_e,a_e&&a_e(e)},i_e=Al.__r,Al.__r=function(e){i_e&&i_e(e),ite=e.__c},o_e=Al.diffed,Al.diffed=function(e){o_e&&o_e(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),ite=null},sT={useState:Li,useId:Kee,useReducer:eW,useEffect:vu,useLayoutEffect:oT,useInsertionEffect:f_e,useTransition:d_e,useDeferredValue:u_e,useSyncExternalStore:l_e,startTransition:c_e,useRef:qf,useImperativeHandle:Yee,useMemo:Sy,useCallback:vM,useContext:Zee,useDebugValue:$ee,version:"18.3.1",Children:y9t,render:nte,hydrate:ate,unmountComponentAtNode:ote,createPortal:z9t,createElement:io,createContext:jee,createFactory:E9t,cloneElement:R9t,createRef:oC,Fragment:Pu,isValidElement:rW,isElement:N9t=rW,isFragment:q9t,isMemo:D9t,findDOMNode:L9t,Component:Em,PureComponent:rte,memo:m9t,forwardRef:g9t,flushSync:I9t=function(e,t){var n=Al.debounceRendering;Al.debounceRendering=function(e){return e()};var r=e(t);return Al.debounceRendering=n,r},unstable_batchedUpdates:P9t=function(e,t){return e(t)},StrictMode:Pu,Suspense:tW,SuspenseList:sC,lazy:M9t,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:C9t={ReactCurrentDispatcher:{current:{readContext:function(e){return ite.__n[e.__c].props.value},useCallback:vM,useContext:Zee,useDebugValue:$ee,useDeferredValue:u_e,useEffect:vu,useId:Kee,useImperativeHandle:Yee,useInsertionEffect:f_e,useLayoutEffect:oT,useMemo:Sy,useReducer:eW,useRef:qf,useState:Li,useSyncExternalStore:l_e,useTransition:d_e}}}}});function ug(e){return{render:function(t){nte(t,e)},unmount:function(){ote(e)}}}function W9t(e,t){return ate(t,e),ug(e)}var g_e,y_e,Mv,B5=kr(()=>{h1(),g_e={createRoot:ug,hydrateRoot:W9t}}),cC=kr(()=>{B5(),y_e=require("obsidian"),Mv=class extends y_e.Modal{constructor(e,t){super(e),this.reactRoot=null,this.onOpenCallback=t}onOpen(){let{contentEl:e}=this;this.reactRoot=g_e.createRoot(e),(async()=>{let e=await this.onOpenCallback(()=>this.close());this.reactRoot?.render(e)})()}onClose(){this.reactRoot&&(this.reactRoot.unmount(),this.reactRoot=null),this.contentEl.empty()}}});function Rt(e,t,n,r,a,i){t||(t={});var o,s,l=t;if("ref"in l)for(s in l={},t)"ref"==s?o=t[s]:l[s]=t[s];var c={type:e,props:l,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--F9t,__i:-1,__u:0,__source:a,__self:i};if("function"==typeof e&&(o=e.defaultProps))for(s in o)void 0===l[s]&&(l[s]=o[s]);return Al.vnode&&Al.vnode(c),c}var F9t,gM,x_e,U5,uC,Nh,b_e=kr(()=>{nT(),nT(),F9t=0}),Z0=kr(()=>{h1(),b_e()}),nW=kr(()=>{Lu(),gM=class{static get DEFAULT_TEMPLATE(){return"# {{title}}\n\n**Date**: {{date}}\n**Time**: {{timeString}}\n**Location**: {{location}}\n**Calendar**: {{calendarName}}\n\n## Description\n{{description}}\n\n## Notes\n- "}static render(e,t,n="",r){let a=e=>e?Fn.fromFormat(e,"HH:mm").toLocaleString(Fn.TIME_SIMPLE):"",i=r||("single"===t.type?t.date:"recurring"===t.type&&t.startRecur?t.startRecur:"rrule"===t.type?t.startDate:""),o=(u=i)?Fn.fromISO(u).toLocaleString(Fn.DATE_HUGE):"",s=t.allDay?"All Day":`${t.startTime?a(t.startTime):""} - ${t.endTime?a(t.endTime):""}`,l={title:t.title||"",description:t.description||"",date:o,timeString:s,location:t.location||"",calendarName:n,url:t.url||""},c=e;var u;for(let[e,t]of Object.entries(l)){let n=new RegExp(`\\{\\{\\s*${e}\\s*\\}\\}`,"gi");c=c.replace(n,t)}return c}}}),ste=kr(()=>{x_e=require("obsidian"),U5=class{constructor(e,t=!0){this.vault=e.vault,this.metadataCache=e.metadataCache,this.fileManager=e.fileManager,this.systemTrash=t}delete(e){return this.fileManager.trashFile(e)}rename(e,t){return this.fileManager.renameFile(e,t)}async rewrite(e,t){let n=t(await this.vault.read(e));if(n instanceof Promise&&(n=await n),Array.isArray(n))return await this.vault.modify(e,n[0]),n[1];await this.vault.modify(e,n)}create(e,t){return this.vault.create(e,t)}getAbstractFileByPath(e){return this.vault.getAbstractFileByPath(e)}getFileByPath(e){let t=this.vault.getAbstractFileByPath(e);return t&&t instanceof x_e.TFile?t:null}getMetadata(e){return this.metadataCache.getFileCache(e)}waitForMetadata(e){return new Promise((t,n)=>{let r=this.metadataCache.getFileCache(e),a=null;r?t(r):a=this.metadataCache.on("changed",(n,r,i)=>{n.path===e.path&&(t(i),a?this.metadataCache.offref(a):console.warn("No ref was found after cache loaded."))})})}read(e){return this.vault.cachedRead(e)}async process(e,t){return t(await this.read(e))}}}),H5=kr(()=>{uC=["MO","TU","WE","TH","FR","SA","SU"],Nh=function(){function e(e,t){if(0===t)throw new Error("Can't create weekday with n == 0");this.weekday=e,this.n=t}return e.fromStr=function(t){return new e(uC.indexOf(t))},e.prototype.nth=function(t){return this.n===t?this:new e(this.weekday,t)},e.prototype.equals=function(e){return this.weekday===e.weekday&&this.n===e.n},e.prototype.toString=function(){var e=uC[this.weekday];return this.n&&(e=(this.n>0?"+":"")+String(this.n)+e),e},e.prototype.getJsWeekday=function(){return 6===this.weekday?0:this.weekday+1},e}()});function V5(e,t,n){void 0===n&&(n=" ");var r=String(e);return t|=0,r.length>t?String(r):((t-=r.length)>n.length&&(n+=hc(n,t/n.length)),n.slice(0,t)+String(r))}var Zd,xv,lte,e2,dg,hc,__e,z_e,C2,aW,_v,wh,wc,Ib,B9t,w_e,iW,O_e,U9t,lT,cte,j5,H9t,dC,oW,V9t,yM,ute,sW,lW,dte,bM,cT,fC,A_e,T_e,j9t,MM,lm=kr(()=>{H5(),Zd=function(e){return null!=e},xv=function(e){return"number"==typeof e},lte=function(e){return"string"==typeof e&&uC.includes(e)},e2=Array.isArray,dg=function(e,t){void 0===t&&(t=e),1===arguments.length&&(t=e,e=0);for(var n=[],r=e;r<t;r++)n.push(r);return n},hc=function(e,t){var n=0,r=[];if(e2(e))for(;n<t;n++)r[n]=[].concat(e);else for(;n<t;n++)r[n]=e;return r},__e=function(e){return e2(e)?e:[e]},z_e=function(e,t,n){var r=e.split(t);return n?r.slice(0,n).concat([r.slice(n).join(t)]):r},C2=function(e,t){var n=e%t;return n*t<0?n+t:n},aW=function(e,t){return{div:Math.floor(e/t),mod:C2(e,t)}},_v=function(e){return!Zd(e)||0===e.length},wh=function(e){return!_v(e)},wc=function(e,t){return wh(e)&&-1!==e.indexOf(t)}}),E2=kr(()=>{lm(),B9t=[31,28,31,30,31,30,31,31,30,31,30,31],w_e=864e5,iW=9999,O_e=(Ib=function(e,t,n,r,a,i){return void 0===r&&(r=0),void 0===a&&(a=0),void 0===i&&(i=0),new Date(Date.UTC(e,t-1,n,r,a,i))})(1970,1,1),U9t=[6,0,1,2,3,4,5],lT=function(e){return e%4==0&&e%100!=0||e%400==0},cte=function(e){return e instanceof Date},j5=function(e){return cte(e)&&!isNaN(e.getTime())},H9t=function(e,t){var n=e.getTime()-t.getTime();return Math.round(n/w_e)},dC=function(e){return H9t(e,O_e)},oW=function(e){return new Date(O_e.getTime()+e*w_e)},V9t=function(e){var t=e.getUTCMonth();return 1===t&&lT(e.getUTCFullYear())?29:B9t[t]},yM=function(e){return U9t[e.getUTCDay()]},ute=function(e,t){var n=Ib(e,t+1,1);return[yM(n),V9t(n)]},sW=function(e,t){return t=t||e,new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},lW=function(e){return new Date(e.getTime())},dte=function(e){for(var t=[],n=0;n<e.length;n++)t.push(lW(e[n]));return t},bM=function(e){e.sort(function(e,t){return e.getTime()-t.getTime()})},cT=function(e,t){void 0===t&&(t=!0);var n=new Date(e);return[V5(n.getUTCFullYear().toString(),4,"0"),V5(n.getUTCMonth()+1,2,"0"),V5(n.getUTCDate(),2,"0"),"T",V5(n.getUTCHours(),2,"0"),V5(n.getUTCMinutes(),2,"0"),V5(n.getUTCSeconds(),2,"0"),t?"Z":""].join("")},fC=function(e){var t=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(e);if(!t)throw new Error("Invalid UNTIL value: ".concat(e));return new Date(Date.UTC(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10),parseInt(t[5],10)||0,parseInt(t[6],10)||0,parseInt(t[7],10)||0))},A_e=function(e,t){return e.toLocaleString("sv-SE",{timeZone:t}).replace(" ","T")+"Z"},T_e=function(e,t){var n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=new Date(A_e(e,n)),a=new Date(A_e(e,t??"UTC")).getTime()-r.getTime();return new Date(e.getTime()-a)}}),cW=kr(()=>{j9t=function(){function e(e,t){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=e,this.args=t,"between"===e?(this.maxDate=t.inc?t.before:new Date(t.before.getTime()-1),this.minDate=t.inc?t.after:new Date(t.after.getTime()+1)):"before"===e?this.maxDate=t.inc?t.dt:new Date(t.dt.getTime()-1):"after"===e&&(this.minDate=t.inc?t.dt:new Date(t.dt.getTime()+1))}return e.prototype.accept=function(e){++this.total;var t=this.minDate&&e<this.minDate,n=this.maxDate&&e>this.maxDate;if("between"===this.method){if(t)return!0;if(n)return!1}else if("before"===this.method){if(n)return!1}else if("after"===this.method)return!!t||(this.add(e),!1);return this.add(e)},e.prototype.add=function(e){return this._result.push(e),!0},e.prototype.getValue=function(){var e=this._result;switch(this.method){case"all":case"between":return e;default:return e.length?e[e.length-1]:null}},e.prototype.clone=function(){return new e(this.method,this.args)},e}(),MM=j9t});function uT(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}fte(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function $o(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a<i;a++)(r||!(a in t))&&(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var fte,t2,G9t,hte,X9t,G5,k_e,Y9t,Z9t,$9t,Nb,xM=kr(()=>{fte=function(e,t){return(fte=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},t2=function(){return t2=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},t2.apply(this,arguments)}}),S_e=kr(()=>{xM(),cW(),G9t=function(e){function t(t,n,r){var a=e.call(this,t,n)||this;return a.iterator=r,a}return uT(t,e),t.prototype.add=function(e){return!!this.iterator(e,this._result.length)&&(this._result.push(e),!0)},t}(MM),hte=G9t}),uW=kr(()=>{G5=X9t={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}}}),C_e=kr(()=>{uW(),fg(),lm(),k_e=function(e,t){return-1!==e.indexOf(t)},Y9t=function(e){return e.toString()},Z9t=function(e,t,n){return"".concat(t," ").concat(n,", ").concat(e)},$9t=function(){function e(e,t,n,r){if(void 0===t&&(t=Y9t),void 0===n&&(n=G5),void 0===r&&(r=Z9t),this.text=[],this.language=n||G5,this.gettext=t,this.dateFormatter=r,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var a=[].concat(this.options.bymonthday),i=[].concat(this.options.bynmonthday);a.sort(function(e,t){return e-t}),i.sort(function(e,t){return t-e}),this.bymonthday=a.concat(i),this.bymonthday.length||(this.bymonthday=null)}if(Zd(this.origOptions.byweekday)){var o=e2(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],s=String(o);this.byweekday={allWeeks:o.filter(function(e){return!e.n}),someWeeks:o.filter(function(e){return!!e.n}),isWeekdays:-1!==s.indexOf("MO")&&-1!==s.indexOf("TU")&&-1!==s.indexOf("WE")&&-1!==s.indexOf("TH")&&-1!==s.indexOf("FR")&&-1===s.indexOf("SA")&&-1===s.indexOf("SU"),isEveryDay:-1!==s.indexOf("MO")&&-1!==s.indexOf("TU")&&-1!==s.indexOf("WE")&&-1!==s.indexOf("TH")&&-1!==s.indexOf("FR")&&-1!==s.indexOf("SA")&&-1!==s.indexOf("SU")};var l=function(e,t){return e.weekday-t.weekday};this.byweekday.allWeeks.sort(l),this.byweekday.someWeeks.sort(l),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return e.isFullyConvertible=function(t){if(!(t.options.freq in e.IMPLEMENTED)||t.origOptions.until&&t.origOptions.count)return!1;for(var n in t.origOptions){if(k_e(["dtstart","tzid","wkst","freq"],n))return!0;if(!k_e(e.IMPLEMENTED[t.options.freq],n))return!1}return!0},e.prototype.isFullyConvertible=function(){return e.isFullyConvertible(this.rrule)},e.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in e.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[zs.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("until"));var n=this.options.until;this.add(this.dateFormatter(n.getUTCFullYear(),this.language.monthNames[n.getUTCMonth()],n.getUTCDate()))}else this.options.count&&this.add(t("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?t("times"):t("time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},e.prototype.HOURLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("hours"):e("hour"))},e.prototype.MINUTELY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("minutes"):e("minute"))},e.prototype.DAILY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(this.plural(this.options.interval)?e("days"):e("day")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},e.prototype.WEEKLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?e("weeks"):e("week")),this.byweekday&&this.byweekday.isWeekdays?1===this.options.interval?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(e("on")).add(e("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?e("days"):e("day")):(1===this.options.interval&&this.add(e("week")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.origOptions.byhour&&this._byhour())},e.prototype.MONTHLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()).add(e("months")),this.plural(this.options.interval)&&this.add(e("in"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("months"):e("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(e("on")).add(e("weekdays")):this.byweekday&&this._byweekday()},e.prototype.YEARLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()),this.add(e("years"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("years"):e("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(e("on the")).add(this.list(this.options.byyearday,this.nth,e("and"))).add(e("day")),this.options.byweekno&&this.add(e("in")).add(this.plural(this.options.byweekno.length)?e("weeks"):e("week")).add(this.list(this.options.byweekno,void 0,e("and")))},e.prototype._bymonthday=function(){var e=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,e("or"))).add(e("the")).add(this.list(this.bymonthday,this.nth,e("or"))):this.add(e("on the")).add(this.list(this.bymonthday,this.nth,e("and")))},e.prototype._byweekday=function(){var e=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(e("and")),this.add(e("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,e("and"))))},e.prototype._byhour=function(){var e=this.gettext;this.add(e("at")).add(this.list(this.origOptions.byhour,void 0,e("and")))},e.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},e.prototype.nth=function(e){e=parseInt(e.toString(),10);var t,n=this.gettext;if(-1===e)return n("last");var r=Math.abs(e);switch(r){case 1:case 21:case 31:t=r+n("st");break;case 2:case 22:t=r+n("nd");break;case 3:case 23:t=r+n("rd");break;default:t=r+n("th")}return e<0?t+" "+n("last"):t},e.prototype.monthtext=function(e){return this.language.monthNames[e-1]},e.prototype.weekdaytext=function(e){var t=xv(e)?(e+1)%7:e.getJsWeekday();return(e.n?this.nth(e.n)+" ":"")+this.language.dayNames[t]},e.prototype.plural=function(e){return e%100!=1},e.prototype.add=function(e){return this.text.push(" "),this.text.push(e),this},e.prototype.list=function(e,t,n,r){var a=this;void 0===r&&(r=","),e2(e)||(e=[e]);t=t||function(e){return e.toString()};var i=function(e){return t&&t.call(a,e)};return n?function(e,t,n){for(var r="",a=0;a<e.length;a++)0!==a&&(a===e.length-1?r+=" "+n+" ":r+=t+" "),r+=e[a];return r}(e.map(i),r,n):e.map(i).join(r+" ")},e}(),Nb=$9t});function hC(e,t){void 0===t&&(t=G5);var n={},r=new K9t(t.tokens);return r.start(e)?(function(){r.expect("every");var e=r.acceptNumber();if(e&&(n.interval=parseInt(e[0],10)),r.isDone())throw new Error("Unexpected end");switch(r.symbol){case"day(s)":n.freq=zs.DAILY,r.nextSymbol()&&(i(),c());break;case"weekday(s)":n.freq=zs.WEEKLY,n.byweekday=[zs.MO,zs.TU,zs.WE,zs.TH,zs.FR],r.nextSymbol(),i(),c();break;case"week(s)":n.freq=zs.WEEKLY,r.nextSymbol()&&(a(),i(),c());break;case"hour(s)":n.freq=zs.HOURLY,r.nextSymbol()&&(a(),c());break;case"minute(s)":n.freq=zs.MINUTELY,r.nextSymbol()&&(a(),c());break;case"month(s)":n.freq=zs.MONTHLY,r.nextSymbol()&&(a(),c());break;case"year(s)":n.freq=zs.YEARLY,r.nextSymbol()&&(a(),c());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":n.freq=zs.WEEKLY;var t=r.symbol.substr(0,2).toUpperCase();if(n.byweekday=[zs[t]],!r.nextSymbol())return;for(;r.accept("comma");){if(r.isDone())throw new Error("Unexpected end");var u=s();if(!u)throw new Error("Unexpected symbol "+r.symbol+", expected weekday");n.byweekday.push(zs[u]),r.nextSymbol()}i(),function(){r.accept("on"),r.accept("the");var e=l();if(e)for(n.bymonthday=[e],r.nextSymbol();r.accept("comma");){if(!(e=l()))throw new Error("Unexpected symbol "+r.symbol+"; expected monthday");n.bymonthday.push(e),r.nextSymbol()}}(),c();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(n.freq=zs.YEARLY,n.bymonth=[o()],!r.nextSymbol())return;for(;r.accept("comma");){if(r.isDone())throw new Error("Unexpected end");var d=o();if(!d)throw new Error("Unexpected symbol "+r.symbol+", expected month");n.bymonth.push(d),r.nextSymbol()}a(),c();break;default:throw new Error("Unknown symbol")}}(),n):null;function a(){var e=r.accept("on"),t=r.accept("the");if(e||t)do{var a=l(),i=s(),c=o();if(a)i?(r.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(zs[i].nth(a))):(n.bymonthday||(n.bymonthday=[]),n.bymonthday.push(a),r.accept("day(s)"));else if(i)r.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(zs[i]);else if("weekday(s)"===r.symbol)r.nextSymbol(),n.byweekday||(n.byweekday=[zs.MO,zs.TU,zs.WE,zs.TH,zs.FR]);else if("week(s)"===r.symbol){r.nextSymbol();var u=r.acceptNumber();if(!u)throw new Error("Unexpected symbol "+r.symbol+", expected week number");for(n.byweekno=[parseInt(u[0],10)];r.accept("comma");){if(!(u=r.acceptNumber()))throw new Error("Unexpected symbol "+r.symbol+"; expected monthday");n.byweekno.push(parseInt(u[0],10))}}else{if(!c)return;r.nextSymbol(),n.bymonth||(n.bymonth=[]),n.bymonth.push(c)}}while(r.accept("comma")||r.accept("the")||r.accept("on"))}function i(){if(r.accept("at"))do{var e=r.acceptNumber();if(!e)throw new Error("Unexpected symbol "+r.symbol+", expected hour");for(n.byhour=[parseInt(e[0],10)];r.accept("comma");){if(!(e=r.acceptNumber()))throw new Error("Unexpected symbol "+r.symbol+"; expected hour");n.byhour.push(parseInt(e[0],10))}}while(r.accept("comma")||r.accept("at"))}function o(){switch(r.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function s(){switch(r.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return r.symbol.substr(0,2).toUpperCase();default:return!1}}function l(){switch(r.symbol){case"last":return r.nextSymbol(),-1;case"first":return r.nextSymbol(),1;case"second":return r.nextSymbol(),r.accept("last")?-2:2;case"third":return r.nextSymbol(),r.accept("last")?-3:3;case"nth":var e=parseInt(r.value[1],10);if(e<-366||e>366)throw new Error("Nth out of range: "+e);return r.nextSymbol(),r.accept("last")?-e:e;default:return!1}}function c(){if("until"===r.symbol){var e=Date.parse(r.text);if(!e)throw new Error("Cannot parse until date:"+r.text);n.until=new Date(e)}else r.accept("for")&&(n.count=parseInt(r.value[0],10),r.expect("number"))}}var K9t,E_e=kr(()=>{uW(),fg(),K9t=function(){function e(e){this.done=!0,this.rules=e}return e.prototype.start=function(e){return this.text=e,this.done=!1,this.nextSymbol()},e.prototype.isDone=function(){return this.done&&null===this.symbol},e.prototype.nextSymbol=function(){var e,t;this.symbol=null,this.value=null;do{if(this.done)return!1;for(var n in e=null,this.rules){var r=this.rules[n].exec(this.text);r&&(null===e||r[0].length>e[0].length)&&(e=r,t=n)}if(null!=e&&(this.text=this.text.substr(e[0].length),""===this.text&&(this.done=!0)),null==e)return this.done=!0,this.symbol=null,void(this.value=null)}while("SKIP"===t);return this.symbol=t,this.value=e,!0},e.prototype.accept=function(e){if(this.symbol===e){if(this.value){var t=this.value;return this.nextSymbol(),t}return this.nextSymbol(),!0}return!1},e.prototype.acceptNumber=function(){return this.accept("number")},e.prototype.expect=function(e){if(this.accept(e))return!0;throw new Error("expected "+e+" but found "+this.symbol)},e}()});function pC(e){return e<U1.HOURLY}var U1,q_e,dT,D_e,R_e,fT,P_e,_M=kr(()=>{var e;(e=U1||(U1={}))[e.YEARLY=0]="YEARLY",e[e.MONTHLY=1]="MONTHLY",e[e.WEEKLY=2]="WEEKLY",e[e.DAILY=3]="DAILY",e[e.HOURLY=4]="HOURLY",e[e.MINUTELY=5]="MINUTELY",e[e.SECONDLY=6]="SECONDLY"}),L_e=kr(()=>{C_e(),E_e(),fg(),_M(),uW(),q_e=function(e,t){return void 0===t&&(t=G5),new zs(hC(e,t)||void 0)},dT=["count","until","interval","byweekday","bymonthday","bymonth"],Nb.IMPLEMENTED=[],Nb.IMPLEMENTED[U1.HOURLY]=dT,Nb.IMPLEMENTED[U1.MINUTELY]=dT,Nb.IMPLEMENTED[U1.DAILY]=["byhour"].concat(dT),Nb.IMPLEMENTED[U1.WEEKLY]=dT,Nb.IMPLEMENTED[U1.MONTHLY]=dT,Nb.IMPLEMENTED[U1.YEARLY]=["byweekno","byyearday"].concat(dT),D_e=function(e,t,n,r){return new Nb(e,t,n,r).toString()},R_e=Nb.isFullyConvertible}),dW=kr(()=>{xM(),_M(),lm(),E2(),fT=function(){function e(e,t,n,r){this.hour=e,this.minute=t,this.second=n,this.millisecond=r||0}return e.prototype.getHours=function(){return this.hour},e.prototype.getMinutes=function(){return this.minute},e.prototype.getSeconds=function(){return this.second},e.prototype.getMilliseconds=function(){return this.millisecond},e.prototype.getTime=function(){return 1e3*(60*this.hour*60+60*this.minute+this.second)+this.millisecond},e}(),P_e=function(e){function t(t,n,r,a,i,o,s){var l=e.call(this,a,i,o,s)||this;return l.year=t,l.month=n,l.day=r,l}return uT(t,e),t.fromDate=function(e){return new this(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.valueOf()%1e3)},t.prototype.getWeekday=function(){return yM(new Date(this.getTime()))},t.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},t.prototype.getDay=function(){return this.day},t.prototype.getMonth=function(){return this.month},t.prototype.getYear=function(){return this.year},t.prototype.addYears=function(e){this.year+=e},t.prototype.addMonths=function(e){if(this.month+=e,this.month>12){var t=Math.floor(this.month/12),n=C2(this.month,12);this.month=n,this.year+=t,0===this.month&&(this.month=12,--this.year)}},t.prototype.addWeekly=function(e,t){t>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-t))+7*e:this.day+=-(this.getWeekday()-t)+7*e,this.fixDay()},t.prototype.addDaily=function(e){this.day+=e,this.fixDay()},t.prototype.addHours=function(e,t,n){for(t&&(this.hour+=Math.floor((23-this.hour)/e)*e);;){this.hour+=e;var r=aW(this.hour,24),a=r.div,i=r.mod;if(a&&(this.hour=i,this.addDaily(a)),_v(n)||wc(n,this.hour))break}},t.prototype.addMinutes=function(e,t,n,r){for(t&&(this.minute+=Math.floor((1439-(60*this.hour+this.minute))/e)*e);;){this.minute+=e;var a=aW(this.minute,60),i=a.div,o=a.mod;if(i&&(this.minute=o,this.addHours(i,!1,n)),(_v(n)||wc(n,this.hour))&&(_v(r)||wc(r,this.minute)))break}},t.prototype.addSeconds=function(e,t,n,r,a){for(t&&(this.second+=Math.floor((86399-(3600*this.hour+60*this.minute+this.second))/e)*e);;){this.second+=e;var i=aW(this.second,60),o=i.div,s=i.mod;if(o&&(this.second=s,this.addMinutes(o,!1,n,r)),(_v(n)||wc(n,this.hour))&&(_v(r)||wc(r,this.minute))&&(_v(a)||wc(a,this.second)))break}},t.prototype.fixDay=function(){if(!(this.day<=28)){var e=ute(this.year,this.month-1)[1];if(!(this.day<=e))for(;this.day>e;){if(this.day-=e,++this.month,13===this.month&&(this.month=1,++this.year,this.year>iW))return;e=ute(this.year,this.month-1)[1]}}},t.prototype.add=function(e,t){var n=e.freq,r=e.interval,a=e.wkst,i=e.byhour,o=e.byminute,s=e.bysecond;switch(n){case U1.YEARLY:return this.addYears(r);case U1.MONTHLY:return this.addMonths(r);case U1.WEEKLY:return this.addWeekly(r,a);case U1.DAILY:return this.addDaily(r);case U1.HOURLY:return this.addHours(r,t,i);case U1.MINUTELY:return this.addMinutes(r,t,i,o);case U1.SECONDLY:return this.addSeconds(r,t,i,o,s)}},t}(fT)});function pte(e){for(var t=[],n=0,r=Object.keys(e);n<r.length;n++){var a=r[n];wc(W_e,a)||t.push(a),cte(e[a])&&!j5(e[a])&&t.push(a)}if(t.length)throw new Error("Invalid options: "+t.join(", "));return t2({},e)}function I_e(e){var t=t2(t2({},mC),pte(e));if(Zd(t.byeaster)&&(t.freq=zs.YEARLY),!Zd(t.freq)||!zs.FREQUENCIES[t.freq])throw new Error("Invalid frequency: ".concat(t.freq," ").concat(e.freq));if(t.dtstart||(t.dtstart=new Date((new Date).setMilliseconds(0))),Zd(t.wkst)?xv(t.wkst)||(t.wkst=t.wkst.weekday):t.wkst=zs.MO.weekday,Zd(t.bysetpos)){xv(t.bysetpos)&&(t.bysetpos=[t.bysetpos]);for(var n=0;n<t.bysetpos.length;n++){if(0===(i=t.bysetpos[n])||!(i>=-366&&i<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(t.byweekno||wh(t.byweekno)||wh(t.byyearday)||t.bymonthday||wh(t.bymonthday)||Zd(t.byweekday)||Zd(t.byeaster)))switch(t.freq){case zs.YEARLY:t.bymonth||(t.bymonth=t.dtstart.getUTCMonth()+1),t.bymonthday=t.dtstart.getUTCDate();break;case zs.MONTHLY:t.bymonthday=t.dtstart.getUTCDate();break;case zs.WEEKLY:t.byweekday=[yM(t.dtstart)]}if(Zd(t.bymonth)&&!e2(t.bymonth)&&(t.bymonth=[t.bymonth]),Zd(t.byyearday)&&!e2(t.byyearday)&&xv(t.byyearday)&&(t.byyearday=[t.byyearday]),Zd(t.bymonthday))if(e2(t.bymonthday)){var r=[],a=[];for(n=0;n<t.bymonthday.length;n++){var i;(i=t.bymonthday[n])>0?r.push(i):i<0&&a.push(i)}t.bymonthday=r,t.bynmonthday=a}else t.bymonthday<0?(t.bynmonthday=[t.bymonthday],t.bymonthday=[]):(t.bynmonthday=[],t.bymonthday=[t.bymonthday]);else t.bymonthday=[],t.bynmonthday=[];if(Zd(t.byweekno)&&!e2(t.byweekno)&&(t.byweekno=[t.byweekno]),Zd(t.byweekday))if(xv(t.byweekday))t.byweekday=[t.byweekday],t.bynweekday=null;else if(lte(t.byweekday))t.byweekday=[Nh.fromStr(t.byweekday).weekday],t.bynweekday=null;else if(t.byweekday instanceof Nh)!t.byweekday.n||t.freq>zs.MONTHLY?(t.byweekday=[t.byweekday.weekday],t.bynweekday=null):(t.bynweekday=[[t.byweekday.weekday,t.byweekday.n]],t.byweekday=null);else{var o=[],s=[];for(n=0;n<t.byweekday.length;n++){var l=t.byweekday[n];xv(l)?o.push(l):lte(l)?o.push(Nh.fromStr(l).weekday):!l.n||t.freq>zs.MONTHLY?o.push(l.weekday):s.push([l.weekday,l.n])}t.byweekday=wh(o)?o:null,t.bynweekday=wh(s)?s:null}else t.bynweekday=null;return Zd(t.byhour)?xv(t.byhour)&&(t.byhour=[t.byhour]):t.byhour=t.freq<zs.HOURLY?[t.dtstart.getUTCHours()]:null,Zd(t.byminute)?xv(t.byminute)&&(t.byminute=[t.byminute]):t.byminute=t.freq<zs.MINUTELY?[t.dtstart.getUTCMinutes()]:null,Zd(t.bysecond)?xv(t.bysecond)&&(t.bysecond=[t.bysecond]):t.bysecond=t.freq<zs.SECONDLY?[t.dtstart.getUTCSeconds()]:null,{parsedOptions:t}}function N_e(e){var t=e.dtstart.getTime()%1e3;if(!pC(e.freq))return[];var n=[];return e.byhour.forEach(function(r){e.byminute.forEach(function(a){e.bysecond.forEach(function(e){n.push(new fT(r,a,e,t))})})}),n}var mte=kr(()=>{xM(),_M(),lm(),fg(),E2(),H5(),dW()});function gC(e){var t=e.split("\n").map(J9t).filter(function(e){return null!==e});return t2(t2({},t[0]),t[1])}function vC(e){var t={},n=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);if(!n)return t;var r=n[1],a=n[2];return r&&(t.tzid=r),t.dtstart=fC(a),t}function J9t(e){if(!(e=e.replace(/^\s+|\s+$/,"")).length)return null;var t=/^([A-Z]+?)[:;]/.exec(e.toUpperCase());if(!t)return F_e(e);var n=t[1];switch(n.toUpperCase()){case"RRULE":case"EXRULE":return F_e(e);case"DTSTART":return vC(e);default:throw new Error("Unsupported RFC prop ".concat(n," in ").concat(e))}}function F_e(e){var t=vC(e.replace(/^RRULE:/i,""));return e.replace(/^(?:RRULE|EXRULE):/i,"").split(";").forEach(function(n){var r=n.split("="),a=r[0],i=r[1];switch(a.toUpperCase()){case"FREQ":t.freq=U1[i.toUpperCase()];break;case"WKST":t.wkst=hg[i.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var o=Q9t(i),s=a.toLowerCase();t[s]=o;break;case"BYWEEKDAY":case"BYDAY":t.byweekday=e7t(i);break;case"DTSTART":case"TZID":var l=vC(e);t.tzid=l.tzid,t.dtstart=l.dtstart;break;case"UNTIL":t.until=fC(i);break;case"BYEASTER":t.byeaster=Number(i);break;default:throw new Error("Unknown RRULE property '"+a+"'")}}),t}function Q9t(e){return-1!==e.indexOf(",")?e.split(",").map(B_e):B_e(e)}function B_e(e){return/^[+-]?\d+$/.test(e)?Number(e):e}function e7t(e){return e.split(",").map(function(e){if(2===e.length)return hg[e];var t=e.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!t||t.length<3)throw new SyntaxError("Invalid weekday string: ".concat(e));var n=Number(t[1]),r=t[2],a=hg[r].weekday;return new Nh(a,n)})}var X5,vte=kr(()=>{xM(),_M(),H5(),E2(),fg()}),fW=kr(()=>{E2(),X5=function(){function e(e,t){if(isNaN(e.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=e,this.tzid=t}return Object.defineProperty(e.prototype,"isUTC",{get:function(){return!this.tzid||"UTC"===this.tzid.toUpperCase()},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var e=cT(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(e):";TZID=".concat(this.tzid,":").concat(e)},e.prototype.getTime=function(){return this.date.getTime()},e.prototype.rezonedDate=function(){return this.isUTC?this.date:T_e(this.date,this.tzid)},e}()});function yC(e){for(var t=[],n="",r=Object.keys(e),a=Object.keys(mC),i=0;i<r.length;i++)if("tzid"!==r[i]&&wc(a,r[i])){var o=r[i].toUpperCase(),s=e[r[i]],l="";if(Zd(s)&&(!e2(s)||s.length)){switch(o){case"FREQ":l=zs.FREQUENCIES[e.freq];break;case"WKST":l=xv(s)?new Nh(s).toString():s.toString();break;case"BYWEEKDAY":o="BYDAY",l=__e(s).map(function(e){return e instanceof Nh?e:e2(e)?new Nh(e[0],e[1]):new Nh(e)}).toString();break;case"DTSTART":n=t7t(s,e.tzid);break;case"UNTIL":l=cT(s,!e.tzid);break;default:if(e2(s)){for(var c=[],u=0;u<s.length;u++)c[u]=String(s[u]);l=c.toString()}else l=String(s)}l&&t.push([o,l])}}var d=t.map(function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n.toString())}).join(";"),p="";return""!==d&&(p="RRULE:".concat(d)),[n,p].filter(function(e){return!!e}).join("\n")}function t7t(e,t){return e?"DTSTART"+new X5(new Date(e),t).toString():""}var gte=kr(()=>{fg(),lm(),H5(),E2(),fW()});function r7t(e,t){return Array.isArray(e)?!(!Array.isArray(t)||e.length!==t.length)&&e.every(function(e,n){return e.getTime()===t[n].getTime()}):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():e===t}var U_e,V_e,j_e,n7t,a7t,W_,q2,G_e,X_e,i7t,o7t,F_,D2,Y_e,Z_e,$_e,K_e,yte,H_e=kr(()=>{cW(),E2(),lm(),U_e=function(){function e(){this.all=!1,this.before=[],this.after=[],this.between=[]}return e.prototype._cacheAdd=function(e,t,n){t&&(t=t instanceof Date?lW(t):dte(t)),"all"===e?this.all=t:(n._value=t,this[e].push(n))},e.prototype._cacheGet=function(e,t){var n=!1,r=t?Object.keys(t):[],a=function(e){for(var n=0;n<r.length;n++){var a=r[n];if(!r7t(t[a],e[a]))return!0}return!1},i=this[e];if("all"===e)n=this.all;else if(e2(i))for(var o=0;o<i.length;o++){var s=i[o];if(!r.length||!a(s)){n=s._value;break}}if(!n&&this.all){var l=new MM(e,t);for(o=0;o<this.all.length&&l.accept(this.all[o]);o++);n=l.getValue(),this._cacheAdd(e,n,t)}return e2(n)?dte(n):n instanceof Date?lW(n):n},e}()}),J_e=kr(()=>{xM(),lm(),V_e=$o($o($o($o($o($o($o($o($o($o($o($o($o([],hc(1,31),!0),hc(2,28),!0),hc(3,31),!0),hc(4,30),!0),hc(5,31),!0),hc(6,30),!0),hc(7,31),!0),hc(8,31),!0),hc(9,30),!0),hc(10,31),!0),hc(11,30),!0),hc(12,31),!0),hc(1,7),!0),j_e=$o($o($o($o($o($o($o($o($o($o($o($o($o([],hc(1,31),!0),hc(2,29),!0),hc(3,31),!0),hc(4,30),!0),hc(5,31),!0),hc(6,30),!0),hc(7,31),!0),hc(8,31),!0),hc(9,30),!0),hc(10,31),!0),hc(11,30),!0),hc(12,31),!0),hc(1,7),!0),n7t=dg(1,29),a7t=dg(1,30),W_=dg(1,31),q2=dg(1,32),G_e=$o($o($o($o($o($o($o($o($o($o($o($o($o([],q2,!0),a7t,!0),q2,!0),W_,!0),q2,!0),W_,!0),q2,!0),q2,!0),W_,!0),q2,!0),W_,!0),q2,!0),q2.slice(0,7),!0),X_e=$o($o($o($o($o($o($o($o($o($o($o($o($o([],q2,!0),n7t,!0),q2,!0),W_,!0),q2,!0),W_,!0),q2,!0),q2,!0),W_,!0),q2,!0),W_,!0),q2,!0),q2.slice(0,7),!0),i7t=dg(-28,0),o7t=dg(-29,0),F_=dg(-30,0),D2=dg(-31,0),Y_e=$o($o($o($o($o($o($o($o($o($o($o($o($o([],D2,!0),o7t,!0),D2,!0),F_,!0),D2,!0),F_,!0),D2,!0),D2,!0),F_,!0),D2,!0),F_,!0),D2,!0),D2.slice(0,7),!0),Z_e=$o($o($o($o($o($o($o($o($o($o($o($o($o([],D2,!0),i7t,!0),D2,!0),F_,!0),D2,!0),F_,!0),D2,!0),D2,!0),F_,!0),D2,!0),F_,!0),D2,!0),D2.slice(0,7),!0),$_e=[0,31,60,91,121,152,182,213,244,274,305,335,366],K_e=[0,31,59,90,120,151,181,212,243,273,304,334,365],yte=function(){for(var e=[],t=0;t<55;t++)e=e.concat(dg(7));return e}()});function Q_e(e,t){var n=Ib(e,1,1),r=lT(e)?366:365,a=lT(e+1)?366:365,i=dC(n),o=yM(n),s=t2(t2({yearlen:r,nextyearlen:a,yearordinal:i,yearweekday:o},s7t(e)),{wnomask:null});if(_v(t.byweekno))return s;s.wnomask=hc(0,r+7);var l,c,u=l=C2(7-o+t.wkst,7);u>=4?(u=0,c=s.yearlen+C2(o-t.wkst,7)):c=r-u;for(var d=Math.floor(c/7),p=C2(c,7),h=Math.floor(d+p/4),f=0;f<t.byweekno.length;f++){var m=t.byweekno[f];if(m<0&&(m+=h+1),m>0&&m<=h){var g=void 0;m>1?(g=u+7*(m-1),u!==l&&(g-=7-l)):g=u;for(var y=0;y<7&&(s.wnomask[g]=1,g++,s.wdaymask[g]!==t.wkst);y++);}}if(wc(t.byweekno,1)){g=u+7*h;if(u!==l&&(g-=7-l),g<r)for(f=0;f<7&&(s.wnomask[g]=1,g+=1,s.wdaymask[g]!==t.wkst);f++);}if(u){var b=void 0;if(wc(t.byweekno,-1))b=-1;else{var v=yM(Ib(e-1,1,1)),M=C2(7-v.valueOf()+t.wkst,7),x=lT(e-1)?366:365,z=void 0;M>=4?(M=0,z=x+C2(v-t.wkst,7)):z=r-u,b=Math.floor(52+C2(z,7)/4)}if(wc(t.byweekno,b))for(g=0;g<u;g++)s.wnomask[g]=1}return s}function s7t(e){var t=lT(e)?366:365,n=Ib(e,1,1),r=yM(n);return 365===t?{mmask:V_e,mdaymask:X_e,nmdaymask:Z_e,wdaymask:yte.slice(r),mrange:K_e}:{mmask:j_e,mdaymask:G_e,nmdaymask:Y_e,wdaymask:yte.slice(r),mrange:$_e}}var eze=kr(()=>{xM(),E2(),lm(),J_e()});function tze(e,t,n,r,a,i){var o={lastyear:e,lastmonth:t,nwdaymask:[]},s=[];if(i.freq===zs.YEARLY)if(_v(i.bymonth))s=[[0,n]];else for(var l=0;l<i.bymonth.length;l++)t=i.bymonth[l],s.push(r.slice(t-1,t+1));else i.freq===zs.MONTHLY&&(s=[r.slice(t-1,t+1)]);if(_v(s))return o;o.nwdaymask=hc(0,n);for(l=0;l<s.length;l++)for(var c=s[l],u=c[0],d=c[1]-1,p=0;p<i.bynweekday.length;p++){var h=void 0,f=i.bynweekday[p],m=f[0],g=f[1];g<0?(h=d+7*(g+1),h-=C2(a[h]-m,7)):(h=u+7*(g-1),h+=C2(7-a[h]+m,7)),u<=h&&h<=d&&(o.nwdaymask[h]=1)}return o}var rze=kr(()=>{fg(),lm()});function nze(e,t){void 0===t&&(t=0);var n=e%19,r=Math.floor(e/100),a=e%100,i=Math.floor(r/4),o=r%4,s=Math.floor((r+8)/25),l=Math.floor((r-s+1)/3),c=Math.floor(19*n+r-i-l+15)%30,u=Math.floor(a/4),d=a%4,p=Math.floor(32+2*o+2*u-c-d)%7,h=Math.floor((n+11*c+22*p)/451),f=Math.floor((c+p-7*h+114)/31),m=(c+p-7*h+114)%31+1,g=Date.UTC(e,f-1,m+t),y=Date.UTC(e,0,1);return[Math.ceil((g-y)/864e5)]}var l7t,ize,aze=kr(()=>{}),oze=kr(()=>{lm(),_M(),eze(),rze(),aze(),dW(),E2(),l7t=function(){function e(e){this.options=e}return e.prototype.rebuild=function(e,t){var n=this.options;if(e!==this.lastyear&&(this.yearinfo=Q_e(e,n)),wh(n.bynweekday)&&(t!==this.lastmonth||e!==this.lastyear)){var r=this.yearinfo,a=r.yearlen,i=r.mrange,o=r.wdaymask;this.monthinfo=tze(e,t,a,i,o,n)}Zd(n.byeaster)&&(this.eastermask=nze(e,n.byeaster))},Object.defineProperty(e.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),e.prototype.ydayset=function(){return[dg(this.yearlen),0,this.yearlen]},e.prototype.mdayset=function(e,t){for(var n=this.mrange[t-1],r=this.mrange[t],a=hc(null,this.yearlen),i=n;i<r;i++)a[i]=i;return[a,n,r]},e.prototype.wdayset=function(e,t,n){for(var r=hc(null,this.yearlen+7),a=dC(Ib(e,t,n))-this.yearordinal,i=a,o=0;o<7&&(r[a]=a,++a,this.wdaymask[a]!==this.options.wkst);o++);return[r,i,a]},e.prototype.ddayset=function(e,t,n){var r=hc(null,this.yearlen),a=dC(Ib(e,t,n))-this.yearordinal;return r[a]=a,[r,a,a+1]},e.prototype.htimeset=function(e,t,n,r){var a=this,i=[];return this.options.byminute.forEach(function(t){i=i.concat(a.mtimeset(e,t,n,r))}),bM(i),i},e.prototype.mtimeset=function(e,t,n,r){var a=this.options.bysecond.map(function(n){return new fT(e,t,n,r)});return bM(a),a},e.prototype.stimeset=function(e,t,n,r){return[new fT(e,t,n,r)]},e.prototype.getdayset=function(e){switch(e){case U1.YEARLY:return this.ydayset.bind(this);case U1.MONTHLY:return this.mdayset.bind(this);case U1.WEEKLY:return this.wdayset.bind(this);case U1.DAILY:default:return this.ddayset.bind(this)}},e.prototype.gettimeset=function(e){switch(e){case U1.HOURLY:return this.htimeset.bind(this);case U1.MINUTELY:return this.mtimeset.bind(this);case U1.SECONDLY:return this.stimeset.bind(this)}},e}(),ize=l7t});function sze(e,t,n,r,a,i){for(var o=[],s=0;s<e.length;s++){var l=void 0,c=void 0,u=e[s];u<0?(l=Math.floor(u/t.length),c=C2(u,t.length)):(l=Math.floor((u-1)/t.length),c=C2(u-1,t.length));for(var d=[],p=n;p<r;p++){var h=i[p];Zd(h)&&d.push(h)}var f=void 0;f=l<0?d.slice(l)[0]:d[l];var m=t[c],g=oW(a.yearordinal+f),y=sW(g,m);wc(o,y)||o.push(y)}return bM(o),o}var lze=kr(()=>{E2(),lm()});function hW(e,t){var n=t.dtstart,r=t.freq,a=t.interval,i=t.until,o=t.bysetpos,s=t.count;if(0===s||0===a)return zM(e);var l=P_e.fromDate(n),c=new ize(t);c.rebuild(l.year,l.month);for(var u=d7t(c,l,t);;){var d=c.getdayset(r)(l.year,l.month,l.day),p=d[0],h=d[1],f=d[2],m=u7t(p,h,f,c,t);if(wh(o))for(var g=sze(o,u,h,f,c,p),y=0;y<g.length;y++){var b=g[y];if(i&&b>i)return zM(e);if(b>=n){var v=cze(b,t);if(!e.accept(v)||s&&! --s)return zM(e)}}else for(y=h;y<f;y++){var M=p[y];if(Zd(M))for(var x=oW(c.yearordinal+M),z=0;z<u.length;z++){var _=u[z];b=sW(x,_);if(i&&b>i)return zM(e);if(b>=n){v=cze(b,t);if(!e.accept(v)||s&&! --s)return zM(e)}}}if(0===t.interval||(l.add(t,m),l.year>iW))return zM(e);pC(r)||(u=c.gettimeset(r)(l.hour,l.minute,l.second,0)),c.rebuild(l.year,l.month)}}function c7t(e,t,n){var r=n.bymonth,a=n.byweekno,i=n.byweekday,o=n.byeaster,s=n.bymonthday,l=n.bynmonthday,c=n.byyearday;return wh(r)&&!wc(r,e.mmask[t])||wh(a)&&!e.wnomask[t]||wh(i)&&!wc(i,e.wdaymask[t])||wh(e.nwdaymask)&&!e.nwdaymask[t]||null!==o&&!wc(e.eastermask,t)||(wh(s)||wh(l))&&!wc(s,e.mdaymask[t])&&!wc(l,e.nmdaymask[t])||wh(c)&&(t<e.yearlen&&!wc(c,t+1)&&!wc(c,-e.yearlen+t)||t>=e.yearlen&&!wc(c,t+1-e.yearlen)&&!wc(c,-e.nextyearlen+t-e.yearlen))}function cze(e,t){return new X5(e,t.tzid).rezonedDate()}function zM(e){return e.getValue()}function u7t(e,t,n,r,a){for(var i=!1,o=t;o<n;o++){var s=e[o];(i=c7t(r,s,a))&&(e[s]=null)}return i}function d7t(e,t,n){var r=n.freq,a=n.byhour,i=n.byminute,o=n.bysecond;return pC(r)?N_e(n):r>=zs.HOURLY&&wh(a)&&!wc(a,t.hour)||r>=zs.MINUTELY&&wh(i)&&!wc(i,t.minute)||r>=zs.SECONDLY&&wh(o)&&!wc(o,t.second)?[]:e.gettimeset(r)(t.hour,t.minute,t.second,t.millisecond)}var hg,mC,W_e,zs,bte=kr(()=>{_M(),E2(),oze(),fg(),mte(),lm(),fW(),lze(),dW()}),fg=kr(()=>{E2(),cW(),S_e(),L_e(),_M(),mte(),vte(),gte(),H_e(),H5(),bte(),hg={MO:new Nh(0),TU:new Nh(1),WE:new Nh(2),TH:new Nh(3),FR:new Nh(4),SA:new Nh(5),SU:new Nh(6)},mC={freq:U1.YEARLY,dtstart:null,interval:1,wkst:hg.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},W_e=Object.keys(mC),zs=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t=!1),this._cache=t?null:new U_e,this.origOptions=pte(e);var n=I_e(e).parsedOptions;this.options=n}return e.parseText=function(e,t){return hC(e,t)},e.fromText=function(e,t){return q_e(e,t)},e.fromString=function(t){return new e(e.parseString(t)||void 0)},e.prototype._iter=function(e){return hW(e,this.options)},e.prototype._cacheGet=function(e,t){return!!this._cache&&this._cache._cacheGet(e,t)},e.prototype._cacheAdd=function(e,t,n){if(this._cache)return this._cache._cacheAdd(e,t,n)},e.prototype.all=function(e){if(e)return this._iter(new hte("all",{},e));var t=this._cacheGet("all");return!1===t&&(t=this._iter(new MM("all",{})),this._cacheAdd("all",t)),t},e.prototype.between=function(e,t,n,r){if(void 0===n&&(n=!1),!j5(e)||!j5(t))throw new Error("Invalid date passed in to RRule.between");var a={before:t,after:e,inc:n};if(r)return this._iter(new hte("between",a,r));var i=this._cacheGet("between",a);return!1===i&&(i=this._iter(new MM("between",a)),this._cacheAdd("between",i,a)),i},e.prototype.before=function(e,t){if(void 0===t&&(t=!1),!j5(e))throw new Error("Invalid date passed in to RRule.before");var n={dt:e,inc:t},r=this._cacheGet("before",n);return!1===r&&(r=this._iter(new MM("before",n)),this._cacheAdd("before",r,n)),r},e.prototype.after=function(e,t){if(void 0===t&&(t=!1),!j5(e))throw new Error("Invalid date passed in to RRule.after");var n={dt:e,inc:t},r=this._cacheGet("after",n);return!1===r&&(r=this._iter(new MM("after",n)),this._cacheAdd("after",r,n)),r},e.prototype.count=function(){return this.all().length},e.prototype.toString=function(){return yC(this.origOptions)},e.prototype.toText=function(e,t,n){return D_e(this,e,t,n)},e.prototype.isFullyConvertibleToText=function(){return R_e(this)},e.prototype.clone=function(){return new e(this.origOptions)},e.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],e.YEARLY=U1.YEARLY,e.MONTHLY=U1.MONTHLY,e.WEEKLY=U1.WEEKLY,e.DAILY=U1.DAILY,e.HOURLY=U1.HOURLY,e.MINUTELY=U1.MINUTELY,e.SECONDLY=U1.SECONDLY,e.MO=hg.MO,e.TU=hg.TU,e.WE=hg.WE,e.TH=hg.TH,e.FR=hg.FR,e.SA=hg.SA,e.SU=hg.SU,e.parseString=gC,e.optionsToString=yC,e}()});function uze(e,t,n,r,a,i){var o={},s=e.accept;function l(e,t){n.forEach(function(n){n.between(e,t,!0).forEach(function(e){o[Number(e)]=!0})})}a.forEach(function(e){var t=new X5(e,i).rezonedDate();o[Number(t)]=!0}),e.accept=function(e){var t=Number(e);return isNaN(t)?s.call(this,e):!(!o[t]&&(l(new Date(t-1),new Date(t+1)),!o[t]))||(o[t]=!0,s.call(this,e))},"between"===e.method&&(l(e.args.after,e.args.before),e.accept=function(e){var t=Number(e);return!!o[t]||(o[t]=!0,s.call(this,e))});for(var c=0;c<r.length;c++){var u=new X5(r[c],i).rezonedDate();if(!e.accept(new Date(u.getTime())))break}t.forEach(function(t){hW(e,t.options)});var d=e._result;switch(bM(d),e.method){case"all":case"between":return d;case"before":return d.length&&d[d.length-1]||null;default:return d.length&&d[0]||null}}var dze=kr(()=>{fW(),bte(),E2()});function f7t(e,t){var n=[],r=[],a=[],i=[],o=vC(e),s=o.dtstart,l=o.tzid;return g7t(e,t.unfold).forEach(function(e){var t;if(e){var o=v7t(e),s=o.name,c=o.parms,u=o.value;switch(s.toUpperCase()){case"RRULE":if(c.length)throw new Error("unsupported RRULE parm: ".concat(c.join(",")));n.push(gC(e));break;case"RDATE":var d=(null!==(t=/RDATE(?:;TZID=([^:=]+))?/i.exec(e))&&void 0!==t?t:[])[1];d&&!l&&(l=d),r=r.concat(hze(u,c));break;case"EXRULE":if(c.length)throw new Error("unsupported EXRULE parm: ".concat(c.join(",")));a.push(gC(u));break;case"EXDATE":i=i.concat(hze(u,c));break;case"DTSTART":break;default:throw new Error("unsupported property: "+s)}}}),{dtstart:s,tzid:l,rrulevals:n,rdatevals:r,exrulevals:a,exdatevals:i}}function h7t(e,t){var n=f7t(e,t),r=n.rrulevals,a=n.rdatevals,i=n.exrulevals,o=n.exdatevals,s=n.dtstart,l=n.tzid,c=!1===t.cache;if(t.compatible&&(t.forceset=!0,t.unfold=!0),t.forceset||r.length>1||a.length||i.length||o.length){var u=new bC(c);return u.dtstart(s),u.tzid(l||void 0),r.forEach(function(e){u.rrule(new zs(Mte(e,s,l),c))}),a.forEach(function(e){u.rdate(e)}),i.forEach(function(e){u.exrule(new zs(Mte(e,s,l),c))}),o.forEach(function(e){u.exdate(e)}),t.compatible&&t.dtstart&&u.rdate(s),u}var d=r[0]||{};return new zs(Mte(d,d.dtstart||t.dtstart||s,d.tzid||t.tzid||l),c)}function th(e,t){return void 0===t&&(t={}),h7t(e,p7t(t))}function Mte(e,t,n){return t2(t2({},e),{dtstart:t,tzid:n})}function p7t(e){var t=[],n=Object.keys(e),r=Object.keys(fze);if(n.forEach(function(e){wc(r,e)||t.push(e)}),t.length)throw new Error("Invalid options: "+t.join(", "));return t2(t2({},fze),e)}function m7t(e){if(-1===e.indexOf(":"))return{name:"RRULE",value:e};var t=z_e(e,":",1);return{name:t[0],value:t[1]}}function v7t(e){var t=m7t(e),n=t.name,r=t.value,a=n.split(";");if(!a)throw new Error("empty property name");return{name:a[0].toUpperCase(),parms:a.slice(1),value:r}}function g7t(e,t){if(void 0===t&&(t=!1),!(e=e&&e.trim()))throw new Error("Invalid empty string");if(!t)return e.split(/\s/);for(var n=e.split("\n"),r=0;r<n.length;){var a=n[r]=n[r].replace(/\s+$/g,"");a?r>0&&" "===a[0]?(n[r-1]+=a.slice(1),n.splice(r,1)):r+=1:n.splice(r,1)}return n}function y7t(e){e.forEach(function(e){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))throw new Error("unsupported RDATE/EXDATE parm: "+e)})}function hze(e,t){return y7t(t),e.split(",").map(function(e){return fC(e)})}var fze,xte=kr(()=>{xM(),fg(),_te(),E2(),lm(),vte(),fze={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null}});function pze(e){var t=this;return function(n){if(void 0!==n&&(t["_".concat(e)]=n),void 0!==t["_".concat(e)])return t["_".concat(e)];for(var r=0;r<t._rrule.length;r++){var a=t._rrule[r].origOptions[e];if(a)return a}}}function mze(e,t){if(!(e instanceof zs))throw new TypeError(String(e)+" is not RRule instance");wc(t.map(String),String(e))||t.push(e)}function vze(e,t){if(!(e instanceof Date))throw new TypeError(String(e)+" is not Date instance");wc(t.map(Number),Number(e))||(t.push(e),bM(t))}function gze(e,t,n){var r=!n||"UTC"===n.toUpperCase(),a=r?"".concat(e,":"):"".concat(e,";TZID=").concat(n,":"),i=t.map(function(e){return cT(e.valueOf(),r)}).join(",");return"".concat(a).concat(i)}var bC,_te=kr(()=>{xM(),fg(),E2(),lm(),dze(),xte(),gte(),bC=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this,{},t)||this;return n.dtstart=pze.apply(n,["dtstart"]),n.tzid=pze.apply(n,["tzid"]),n._rrule=[],n._rdate=[],n._exrule=[],n._exdate=[],n}return uT(t,e),t.prototype._iter=function(e){return uze(e,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(e){mze(e,this._rrule)},t.prototype.exrule=function(e){mze(e,this._exrule)},t.prototype.rdate=function(e){vze(e,this._rdate)},t.prototype.exdate=function(e){vze(e,this._exdate)},t.prototype.rrules=function(){return this._rrule.map(function(e){return th(e.toString())})},t.prototype.exrules=function(){return this._exrule.map(function(e){return th(e.toString())})},t.prototype.rdates=function(){return this._rdate.map(function(e){return new Date(e.getTime())})},t.prototype.exdates=function(){return this._exdate.map(function(e){return new Date(e.getTime())})},t.prototype.valueOf=function(){var e=[];return!this._rrule.length&&this._dtstart&&(e=e.concat(yC({dtstart:this._dtstart}))),this._rrule.forEach(function(t){e=e.concat(t.toString().split("\n"))}),this._exrule.forEach(function(t){e=e.concat(t.toString().split("\n").map(function(e){return e.replace(/^RRULE:/,"EXRULE:")}).filter(function(e){return!/^DTSTART/.test(e)}))}),this._rdate.length&&e.push(gze("RDATE",this._rdate,this.tzid())),this._exdate.length&&e.push(gze("EXDATE",this._exdate,this.tzid())),e},t.prototype.toString=function(){return this.valueOf().join("\n")},t.prototype.clone=function(){var e=new t(!!this._cache);return this._rrule.forEach(function(t){return e.rrule(t.clone())}),this._exrule.forEach(function(t){return e.exrule(t.clone())}),this._rdate.forEach(function(t){return e.rdate(new Date(t.getTime()))}),this._exdate.forEach(function(t){return e.exdate(new Date(t.getTime()))}),e},t}(zs)}),AM=kr(()=>{fg(),_te(),xte(),_M(),H5(),E2()});function wM(e,t){let n=e.split(" - ");if(n.length>=3){let r=n[0].trim(),a=n[1].trim(),i=n.slice(2).join(" - ").trim();if(r&&a&&i)return!t||t.has(r)?{category:r,subCategory:a,title:i}:{category:void 0,subCategory:void 0,title:e}}if(2===n.length){let r=n[0].trim(),a=n[1].trim();if(r&&a)return!t||t.has(r)?{category:r,subCategory:void 0,title:a}:{category:void 0,subCategory:void 0,title:e}}return{category:void 0,subCategory:void 0,title:e}}function yze(e){let t=e.split(" - ");if(t.length>=2){let e=t[0].trim(),n=t.slice(1).join(" - ").trim();if(e&&n)return{subCategory:e,title:n}}return{subCategory:void 0,title:e}}function R2(e,t,n){return e&&t?`${e} - ${t} - ${n}`:e?`${e} - ${n}`:t?`${t} - ${n}`:n}var Wb=kr(()=>{});function MC(e){return e.replace(/[\\/:"*?<>|]/g," ").replace(/\s+/g," ").trim()}function _C(e,t,n){let r=(0,zte.normalizePath)(`${t}/${n}.md`);if(!e.getAbstractFileByPath(r))return r;let a=1;for(;;){let i=`${M7t}${a}`;if(r=(0,zte.normalizePath)(`${t}/${n}${i}.md`),!e.getAbstractFileByPath(r))return r;a++}}function z7t(e){return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function A7t(e,t){return null===t?`${e}:`:Array.isArray(t)?`${e}: [${t.join(",")}]`:"object"==typeof t?`${e}: ${JSON.stringify(t)}`:"string"==typeof t?`${e}: ${z7t(t)}`:`${e}: ${t}`}function xze(e){return Object.entries(e).filter(([e,t])=>null!=t).map(([e,t])=>A7t(e,t)).join("\n")}var zte,xC,Ate,M7t,x7t,_7t,bze,Mze,wte=kr(()=>{Lu(),AM(),zte=require("obsidian"),Wb(),xC=(e,t)=>{let n=MC(t.enableAdvancedCategorization?R2(e.category,e.subCategory,e.title):e.title);switch(e.type){case void 0:case"single":return`${e.date} ${n}`;case"recurring":return e.daysOfWeek&&e.daysOfWeek.length>0?`(Every ${e.daysOfWeek.join(",")}) ${n}`:e.month&&e.dayOfMonth?`(Every year on ${Fn.fromObject({month:e.month}).toFormat("MMM")} ${e.dayOfMonth}) ${n}`:e.dayOfMonth?`(Every month on the ${e.dayOfMonth}) ${n}`:`(Recurring) ${n}`;case"rrule":return`(${th(e.rrule).toText()}) ${n}`}},Ate=(e,t)=>`${xC(e,t)}.md`,M7t="-_-_-",x7t=e=>new Promise(t=>window.setTimeout(t,e)),_7t=1500,bze=async(e,t,n=20,r=25)=>{for(let a=0;a<n;a++){let n=e.getFileByPath(t);if(n&&n.path===t)return n;await x7t(r)}return null},Mze=async(e,t,n=_7t)=>{let r=e.getMetadata(t);if(r)return r;try{return await Promise.race([e.waitForMetadata(t),new Promise(e=>window.setTimeout(()=>e(null),n))])}catch(e){return console.warn(`Full Calendar: Failed while waiting for metadata for note file "${t.path}".`,e),null}}});function _ze(e){return e.startsWith(zC)&&-1!==e.slice(3).indexOf(zC)}function w7t(e){return _ze(e)?e.split(zC)[1]:null}function O7t(e){return _ze(e)?e.split(zC).slice(2).join(zC):e}function AC(e,t){let n=O7t(e).replace(/^\n+/,"");return t&&""!==t.trim()?`---\n${t.trim()}\n---\n${n}`:n}function zze(e,t){return null===t?`${e}:`:Array.isArray(t)?`${e}: [${t.join(",")}]`:"object"==typeof t?`${e}: ${JSON.stringify(t)}`:`${e}: ${t}`}function Aze(e){let t={...e};return"single"===t.type&&delete t.type,t.allDay||delete t.allDay,delete t.uid,Object.entries(t).filter(([e,t])=>void 0!==t).map(([e,t])=>zze(e,t)).join("\n")}function OM(e,t){let n=w7t(e),r=n?n.split("\n"):[];""===r[0]&&r.shift(),""===r[r.length-1]&&r.pop();let a=[...r],i=/^[^\s#][^:]*:\s*(.*)?$/,o=e=>{let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`^${t}:\\s*(.*)?$`);for(let e=0;e<a.length;e++){if(!n.test(a[e]))continue;let t=e+1;for(;t<a.length;){let e=a[t];if(i.test(e)||""===e.trim()||e.startsWith("#"))break;t++}return{start:e,end:t}}return null};for(let[e,n]of Object.entries(t)){let t=n,r=o(e);if(null==t){r&&a.splice(r.start,r.end-r.start);continue}let i=zze(e,t);r?a.splice(r.start,r.end-r.start,i):a.push(i)}return AC(e,a.join("\n"))}var zC,wC=kr(()=>{zC="---"});function Tze(e){return"name"===Qe.getSettings().linkedNoteLinkStrategy?void 0:e}function pW(){return"name"===Qe.getSettings().linkedNoteLinkStrategy}function Sze(e,t){let n=MC(t.title||Ce("linkedNotes.untitledNote"));return(0,Oze.normalizePath)(`${e}/${n}.md`)}function wze(e){return JSON.stringify(e)}async function kze(e,t,n,r){let a=e.vault.getFileByPath(Sze(r,t)),i=t.uid||t.id;if(!a||!i)return a;let o=await e.vault.read(a),s=OM(o,{"fc-event-uid":wze(i),"fc-calendar-id":wze(n),"fc-event-recurrence-id":null});return s!==o&&await e.vault.modify(a,s),a}function T7t(e,t,n){return pW()?`${e}::name::${MC(t.title||Ce("linkedNotes.untitledNote"))}`:`${e}::${t.uid||t.id||""}::${n||""}`}async function pg({app:e,event:t,calendarId:n,calendarName:r,linkedNoteIndex:a,instanceDate:i}){let o=Tze(i),s=Qe.getSettings().linkedNotesDirectory;if(pW()&&s){let r=await kze(e,t,n,s);if(r)return r}let l=await a.getFileForEventAfterHydration(t.uid||t.id||"",o);if(l)return l;let c=T7t(n,t,o),u=Ote.get(c);if(u)return u;let d=S7t({app:e,event:t,calendarId:n,calendarName:r,instanceDate:i,identityInstanceDate:o}).finally(()=>{Ote.delete(c)});return Ote.set(c,d),d}async function S7t({app:e,event:t,calendarId:n,calendarName:r,instanceDate:a,identityInstanceDate:i}){let o=Qe.getSettings(),s=o.linkedNotesDirectory;if(!s)return Na(Ce("notices.configureLinkedNotesDirFirst")),null;let l=o.linkedNoteTemplate||gM.DEFAULT_TEMPLATE,c=gM.render(l,t,r,a),u={"fc-event-uid":t.uid||t.id,"fc-calendar-id":n};i&&(u["fc-event-recurrence-id"]=i);let d=AC(c,xze(u)),p=MC(t.title||Ce("linkedNotes.untitledNote"));i&&(p=`${p} ${i}`);let h=new U5(e),f=pW()?Sze(s,t):_C(h,s,p);return await h.create(f,d)}async function Y5(e,t,n,r,a){let i=Qe.getProviderRegistry().getInstance(t);if(!i)return void Na(Ce("notices.cannotOpenRemote"));let o=Qe.getSettings();if(o.linkedNotesDirectory){if(pW()){let a=await kze(e.app,n,t,o.linkedNotesDirectory);if(a)return void await e.app.workspace.getLeaf(r).openFile(a)}if(i.linkedNoteIndex){let t=Tze(a),o=await i.linkedNoteIndex.getFileForEventAfterHydration(n.uid||n.id||"",t);if(o)return void await e.app.workspace.getLeaf(r).openFile(o)}if("function"==typeof i.createLinkedNote)try{let t=await i.createLinkedNote(n,a);t&&await e.app.workspace.getLeaf(r).openFile(t)}catch(e){console.error(e),Na(Ce("notices.failedToCreateLinkedNote"))}else Na(Ce("notices.cannotOpenRemote"))}else Na(Ce("notices.configureLinkedNotesDirFirst"))}var Oze,Ote,B_=kr(()=>{Oze=require("obsidian"),Wo(),nW(),ste(),Fc(),Zo(),wte(),wC(),Ote=new Map}),Tte={};async function hT(e,{workspace:t,vault:n},r){let a=e.store.getEventDetails(r);if(!a||!a.location)return void Na(Ce("notices.cannotOpenRemote"));let{location:{path:i,lineNumber:o}}=a,s=n.getAbstractFileByPath(i);if(!(s instanceof mW.TFile))return;let l=t.getLeaf(!0);await l.openFile(s),o&&l.view instanceof mW.MarkdownView&&l.view.editor.setCursor({line:o,ch:0})}Zs(Tte,{openFileForEvent:()=>hT,openOrCreateLinkedNote:()=>Y5});var mW,pT=kr(()=>{Fc(),mW=require("obsidian"),Zo(),B_()});function qm(e){return"string"==typeof e?e:""}function OC(e){return!!window.app.plugins.getPlugin("periodic-notes")?.settings?.[e]?.enabled}function Fb(){try{let{internalPlugins:e,plugins:t}=window.app;if(OC("daily")){let{format:e,folder:n,template:r}=t.getPlugin("periodic-notes")?.settings?.daily||{};return{format:e||"YYYY-MM-DD",folder:qm(n).trim(),template:qm(r).trim()}}let{folder:n,format:r,template:a}=e.getPluginById("daily-notes")?.instance?.options||{};return{format:r||"YYYY-MM-DD",folder:qm(n).trim(),template:qm(a).trim()}}catch(e){console.info("No custom daily note settings found!",e)}}function C7t(){try{let e=window.app.plugins,t=e.getPlugin("calendar")?.options,n=e.getPlugin("periodic-notes")?.settings?.weekly;if(OC("weekly")&&n)return{format:n.format||"gggg-[W]ww",folder:qm(n.folder).trim(),template:qm(n.template).trim()};let r=t||{};return{format:r.weeklyNoteFormat||"gggg-[W]ww",folder:qm(r.weeklyNoteFolder).trim(),template:qm(r.weeklyNoteTemplate).trim()}}catch(e){console.info("No custom weekly note settings found!",e)}}function E7t(){let e=window.app.plugins;try{let t=OC("monthly")&&e.getPlugin("periodic-notes")?.settings?.monthly||{};return{format:t.format||"YYYY-MM",folder:qm(t.folder).trim(),template:qm(t.template).trim()}}catch(e){console.info("No custom monthly note settings found!",e)}}function q7t(){let e=window.app.plugins;try{let t=OC("quarterly")&&e.getPlugin("periodic-notes")?.settings?.quarterly||{};return{format:t.format||"YYYY-[Q]Q",folder:qm(t.folder).trim(),template:qm(t.template).trim()}}catch(e){console.info("No custom quarterly note settings found!",e)}}function D7t(){let e=window.app.plugins;try{let t=OC("yearly")&&e.getPlugin("periodic-notes")?.settings?.yearly||{};return{format:t.format||"YYYY",folder:qm(t.folder).trim(),template:qm(t.template).trim()}}catch(e){console.info("No custom yearly note settings found!",e)}}function Dze(...e){let t=[];for(let n=0,r=e.length;n<r;n++)t=t.concat(e[n].split("/"));let n=[];for(let e=0,r=t.length;e<r;e++){let r=t[e];!r||"."===r||n.push(r)}return""===t[0]&&n.unshift(""),n.join("/")}async function R7t(e){let t=e.replace(/\\/g,"/").split("/");if(t.pop(),t.length){let e=Dze(...t);window.app.vault.getAbstractFileByPath(e)||await window.app.vault.createFolder(e)}}async function L7t(e,t){t.endsWith(".md")||(t+=".md");let n=(0,zv.normalizePath)(Dze(e,t));return await R7t(n),n}async function P7t(e){let{metadataCache:t,vault:n}=window.app,r=(0,zv.normalizePath)(e);if("/"===r)return["",null];try{let e=t.getFirstLinkpathDest(r,"");return[await n.cachedRead(e),window.app.foldManager.load(e)]}catch(e){return console.error(`Failed to read the daily note template '${r}'`,e),new zv.Notice("Failed to read the daily note template"),["",null]}}function Rze(e,t="day"){return`${t}-${e.clone().startOf(t).format()}`}function Lze(e){return e.replace(/\[[^\]]*\]/g,"")}function I7t(e,t){if("week"===t){let t=Lze(e);return/w{1,2}/i.test(t)&&(/M{1,4}/.test(t)||/D{1,4}/.test(t))}return!1}function ky(e,t){return N7t(e.basename,t)}function N7t(e,t){let n={day:Fb,week:C7t,month:E7t,quarter:q7t,year:D7t}[t]().format.split("/").pop(),r=window.moment(e,n,!0);if(!r.isValid())return null;if(I7t(n,t)&&"week"===t){let t=Lze(n);if(/w{1,2}/i.test(t))return window.moment(e,n.replace(/M{1,4}/g,"").replace(/D{1,4}/g,""),!1)}return r}async function TC(e){let{app:t}=window,{vault:n}=t,r=window.moment,{template:a="",format:i="",folder:o=""}=Fb()??{},[s,l]=await P7t(a),c=e.format(i),u=await L7t(o,c);try{let a=await n.create(u,s.replace(/{{\s*date\s*}}/gi,c).replace(/{{\s*time\s*}}/gi,r().format("HH:mm")).replace(/{{\s*title\s*}}/gi,c).replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(t,n,a,o,s,l)=>{let c=r(),u=e.clone().set({hour:c.get("hour"),minute:c.get("minute"),second:c.get("second")});return a&&u.add(parseInt(o,10),s),l?u.format(l.substring(1).trim()):u.format(i)}).replace(/{{\s*yesterday\s*}}/gi,e.clone().subtract(1,"day").format(i)).replace(/{{\s*tomorrow\s*}}/gi,e.clone().add(1,"d").format(i)));return t.foldManager.save(a,l),a}catch(e){console.error(`Failed to create file: '${u}'`,e),new zv.Notice("Unable to create new file.")}}function mT(e,t){return t[Rze(e,"day")]??null}function Z5(){let{vault:e}=window.app,{folder:t=""}=Fb(),n=e.getAbstractFileByPath((0,zv.normalizePath)(t));if(!(n instanceof zv.TFolder))throw new W7t("Failed to find daily notes folder");let r={};return zv.Vault.recurseChildren(n,e=>{if(e instanceof zv.TFile){let t=ky(e,"day");if(t){let n=Rze(t,"day");r[n]=e}}}),r}function bW(){let{app:e}=window,t=e.internalPlugins.plugins["daily-notes"];return!(!t||!t.enabled)||!!e.plugins.getPlugin("periodic-notes")?.settings?.daily?.enabled}var zv,W7t,J1,kte,ws,Bb,lo,F7t,r2,B7t,TM,$5=kr(()=>{zv=require("obsidian"),W7t=class extends Error{}}),SC=kr(()=>{var e;(e=J1||(J1={})).assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(kte||(kte={})).mergeShapes=(e,t)=>({...e,...t}),ws=J1.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Bb=e=>{switch(typeof e){case"undefined":return ws.undefined;case"string":return ws.string;case"number":return Number.isNaN(e)?ws.nan:ws.number;case"boolean":return ws.boolean;case"function":return ws.function;case"bigint":return ws.bigint;case"symbol":return ws.symbol;case"object":return Array.isArray(e)?ws.array:null===e?ws.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?ws.promise:typeof Map<"u"&&e instanceof Map?ws.map:typeof Set<"u"&&e instanceof Set?ws.set:typeof Date<"u"&&e instanceof Date?ws.date:ws.object;default:return ws.unknown}}}),MW=kr(()=>{SC(),lo=J1.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),F7t=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),(r2=class e extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let a of e.issues)if("invalid_union"===a.code)a.unionErrors.map(r);else if("invalid_return_type"===a.code)r(a.returnTypeError);else if("invalid_arguments"===a.code)r(a.argumentsError);else if(0===a.path.length)n._errors.push(t(a));else{let e=n,r=0;for(;r<a.path.length;){let n=a.path[r];r===a.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(a))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,J1.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}).create=e=>new r2(e)}),Cte=kr(()=>{MW(),SC(),TM=B7t=(e,t)=>{let n;switch(e.code){case lo.invalid_type:n=e.received===ws.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case lo.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,J1.jsonStringifyReplacer)}`;break;case lo.unrecognized_keys:n=`Unrecognized key(s) in object: ${J1.joinValues(e.keys,", ")}`;break;case lo.invalid_union:n="Invalid input";break;case lo.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${J1.joinValues(e.options)}`;break;case lo.invalid_enum_value:n=`Invalid enum value. Expected ${J1.joinValues(e.options)}, received '${e.received}'`;break;case lo.invalid_arguments:n="Invalid function arguments";break;case lo.invalid_return_type:n="Invalid function return type";break;case lo.invalid_date:n="Invalid date";break;case lo.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:J1.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case lo.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case lo.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case lo.custom:n="Invalid input";break;case lo.invalid_intersection_types:n="Intersection results could not be merged";break;case lo.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case lo.not_finite:n="Number must be finite";break;default:n=t.defaultError,J1.assertNever(e)}return{message:n}}});function U7t(e){Pze=e}function vT(){return Pze}var Pze,xW=kr(()=>{Cte(),Pze=TM});function ss(e,t){let n=vT(),r=kC({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===TM?void 0:TM].filter(e=>!!e)});e.common.issues.push(r)}var kC,H7t,n2,$0,K5,L2,_W,zW,U_,gT,t0,Ete=kr(()=>{xW(),Cte(),kC=e=>{let{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],o={...a,path:i};if(void 0!==a.message)return{...a,path:i,message:a.message};let s="",l=r.filter(e=>!!e).slice().reverse();for(let e of l)s=e(o,{data:t,defaultError:s}).message;return{...a,path:i,message:s}},H7t=[],n2=class e{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return $0;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:a}=r;if("aborted"===t.status||"aborted"===a.status)return $0;"dirty"===t.status&&e.dirty(),"dirty"===a.status&&e.dirty(),"__proto__"!==t.value&&(typeof a.value<"u"||r.alwaysSet)&&(n[t.value]=a.value)}return{status:e.value,value:n}}},$0=Object.freeze({status:"aborted"}),K5=e=>({status:"dirty",value:e}),L2=e=>({status:"valid",value:e}),_W=e=>"aborted"===e.status,zW=e=>"dirty"===e.status,U_=e=>"valid"===e.status,gT=e=>typeof Promise<"u"&&e instanceof Promise}),Ize=kr(()=>{}),Nze=kr(()=>{var e;(e=t0||(t0={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message});function r1(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:a}:{errorMap:(t,a)=>{let{message:i}=e;return"invalid_enum_value"===t.code?{message:i??a.defaultError}:typeof a.data>"u"?{message:i??r??a.defaultError}:"invalid_type"!==t.code?{message:a.defaultError}:{message:i??n??a.defaultError}},description:a}}function Uze(e){let t="[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),`([01]\\d|2[0-3]):[0-5]\\d(:${t})${e.precision?"+":"?"}`}function oCt(e){return new RegExp(`^${Uze(e)}$`)}function Hze(e){let t=`${Bze}T${Uze(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function sCt(e,t){return!(("v4"!==t&&t||!Q7t.test(e))&&("v6"!==t&&t||!tCt.test(e)))}function lCt(e,t){if(!Z7t.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!("object"!=typeof a||null===a||"typ"in a&&"JWT"!==a?.typ||!a.alg||t&&a.alg!==t)}catch{return!1}}function cCt(e,t){return!(("v4"!==t&&t||!eCt.test(e))&&("v6"!==t&&t||!rCt.test(e)))}function uCt(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r;return Number.parseInt(e.toFixed(a).replace(".",""))%Number.parseInt(t.toFixed(a).replace(".",""))/10**a}function yT(e){if(e instanceof Dm){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=mg.create(yT(r))}return new Dm({...e._def,shape:()=>t})}return e instanceof CM?new CM({...e._def,type:yT(e.element)}):e instanceof mg?mg.create(yT(e.unwrap())):e instanceof Hb?Hb.create(yT(e.unwrap())):e instanceof Ub?Ub.create(e.items.map(e=>yT(e))):e}function Dte(e,t){let n=Bb(e),r=Bb(t);if(e===t)return{valid:!0,data:e};if(n===ws.object&&r===ws.object){let n=J1.objectKeys(t),r=J1.objectKeys(e).filter(e=>-1!==n.indexOf(e)),a={...e,...t};for(let n of r){let r=Dte(e[n],t[n]);if(!r.valid)return{valid:!1};a[n]=r.data}return{valid:!0,data:a}}if(n===ws.array&&r===ws.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r<e.length;r++){let a=Dte(e[r],t[r]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}return n===ws.date&&r===ws.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}function Vze(e,t){return new lA({values:e,typeName:ul.ZodEnum,...r1(t)})}function Fze(e,t){let n="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof n?{message:n}:n}function jze(e,t={},n){return e?V_.create().superRefine((r,a)=>{let i=e(r);if(i instanceof Promise)return i.then(e=>{if(!e){let e=Fze(t,r),i=e.fatal??n??!0;a.addIssue({code:"custom",...e,fatal:i})}});if(!i){let e=Fze(t,r),i=e.fatal??n??!0;a.addIssue({code:"custom",...e,fatal:i})}}):V_.create()}var vg,Wze,T1,V7t,j7t,G7t,X7t,Y7t,Z7t,$7t,K7t,J7t,qte,Q7t,eCt,tCt,rCt,nCt,aCt,Bze,iCt,H_,J5,Q5,eA,tA,bT,rA,nA,V_,kM,Cy,MT,CM,Dm,aA,SM,AW,iA,Ub,wW,xT,_T,OW,oA,sA,lA,cA,j_,gg,mg,Hb,uA,dA,zT,dCt,CC,EC,fA,fCt,ul,hCt,Gze,Xze,pCt,mCt,Yze,vCt,gCt,yCt,bCt,MCt,xCt,_Ct,zCt,ACt,wCt,OCt,TCt,SCt,kCt,CCt,ECt,qCt,DCt,RCt,LCt,PCt,ICt,NCt,WCt,FCt,BCt,UCt,HCt,VCt,jCt,GCt,XCt,YCt,ZCt,Zze=kr(()=>{var e;MW(),xW(),Nze(),Ete(),SC(),vg=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Wze=(e,t)=>{if(U_(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new r2(e.common.issues);return this._error=t,this._error}}},T1=class{get description(){return this._def.description}_getType(e){return Bb(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Bb(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new n2,ctx:{common:e.parent.common,data:e.data,parsedType:Bb(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(gT(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Bb(e)},r=this._parseSync({data:e,path:n.path,parent:n});return Wze(n,r)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Bb(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:t});return U_(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>U_(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Bb(e)},r=this._parse({data:e,path:n.path,parent:n}),a=await(gT(r)?r:Promise.resolve(r));return Wze(n,a)}refine(e,t){let n=e=>"string"==typeof t||typeof t>"u"?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let a=e(t),i=()=>r.addIssue({code:lo.custom,...n(t)});return typeof Promise<"u"&&a instanceof Promise?a.then(e=>!!e||(i(),!1)):!!a||(i(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new gg({schema:this,typeName:ul.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return mg.create(this,this._def)}nullable(){return Hb.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return CM.create(this)}promise(){return j_.create(this,this._def)}or(e){return aA.create([this,e],this._def)}and(e){return iA.create(this,e,this._def)}transform(e){return new gg({...r1(this._def),schema:this,typeName:ul.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t="function"==typeof e?e:()=>e;return new uA({...r1(this._def),innerType:this,defaultValue:t,typeName:ul.ZodDefault})}brand(){return new CC({typeName:ul.ZodBranded,type:this,...r1(this._def)})}catch(e){let t="function"==typeof e?e:()=>e;return new dA({...r1(this._def),innerType:this,catchValue:t,typeName:ul.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return EC.create(this,e)}readonly(){return fA.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},V7t=/^c[^\s-]{8,}$/i,j7t=/^[0-9a-z]+$/,G7t=/^[0-9A-HJKMNP-TV-Z]{26}$/i,X7t=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Y7t=/^[a-z0-9_-]{21}$/i,Z7t=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,$7t=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,K7t=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,J7t="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Q7t=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,eCt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,tCt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,rCt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,nCt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,aCt=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Bze="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",iCt=new RegExp(`^${Bze}$`),H_=class e extends T1{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ws.string){let t=this._getOrReturnCtx(e);return ss(t,{code:lo.invalid_type,expected:ws.string,received:t.parsedType}),$0}let t,n=new n2;for(let r of this._def.checks)if("min"===r.kind)e.data.length<r.value&&(t=this._getOrReturnCtx(e,t),ss(t,{code:lo.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),n.dirty());else if("max"===r.kind)e.data.length>r.value&&(t=this._getOrReturnCtx(e,t),ss(t,{code:lo.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),n.dirty());else if("length"===r.kind){let a=e.data.length>r.value,i=e.data.length<r.value;(a||i)&&(t=this._getOrReturnCtx(e,t),a?ss(t,{code:lo.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):i&&ss(t,{code:lo.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),n.dirty())}else if("email"===r.kind)K7t.test(e.data)||(t=this._getOrReturnCtx(e,t),ss(t,{validation:"email",code:lo.invalid_string,message:r.message}),n.dirty());else if("emoji"===r.kind)qte||(qte=new RegExp(J7t,"u")),qte.test(e.data)||(t=this._getOrReturnCtx(e,t),ss(t,{validation:"emoji",code:lo.invalid_string,message:r.message}),n.dirty());else if("uuid"===r.kind)X7t.test(e.data)||(t=this._getOrReturnCtx(e,t),ss(t,{validation:"uuid",code:lo.invalid_string,message:r.message}),n.dirty());else if("nanoid"===r.kind)Y7t.test(e.data)||(t=this._getOrReturnCtx(e,t),ss(t,{validation:"nanoid",code:lo.invalid_string,message:r.message}),n.dirty());else if("cuid"===r.kind)V7t.test(e.data)||(t=this._getOrReturnCtx(e,t),ss(t,{validation:"cuid",code:lo.invalid_string,message:r.message}),n.dirty());else if("cuid2"===r.kind)j7t.test(e.data)||(t=this._getOrReturnCtx(e,t),ss(t,{validation:"cuid2",code:lo.invalid_string,message:r.message}),n.dirty());else if("ulid"===r.kind)G7t.test(e.data)||(t=this._getOrReturnCtx(e,t),ss(t,{validation:"ulid",code:lo.invalid_string,message:r.message}),n.dirty());else if("url"===r.kind)try{new URL(e.data)}catch{t=this._getOrReturnCtx(e,t),ss(t,{validation:"url",code:lo.invalid_string,message:r.message}),n.dirty()}else"regex"===r.kind?(r.regex.lastIndex=0,r.regex.test(e.data)||(t=this._getOrReturnCtx(e,t),ss(t,{validation:"regex",code:lo.invalid_string,message:r.message}),n.dirty())):"trim"===r.kind?e.data=e.data.trim():"includes"===r.kind?e.data.includes(r.value,r.position)||(t=this._getOrReturnCtx(e,t),ss(t,{code:lo.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),n.dirty()):"toLowerCase"===r.kind?e.data=e.data.toLowerCase():"toUpperCase"===r.kind?e.data=e.data.toUpperCase():"startsWith"===r.kind?e.data.startsWith(r.value)||(t=this._getOrReturnCtx(e,t),ss(t,{code:lo.invalid_string,validation:{startsWith:r.value},message:r.message}),n.dirty()):"endsWith"===r.kind?e.data.endsWith(r.value)||(t=this._getOrReturnCtx(e,t),ss(t,{code:lo.invalid_string,validation:{endsWith:r.value},message:r.message}),n.dirty()):"datetime"===r.kind?Hze(r).test(e.data)||(t=this._getOrReturnCtx(e,t),ss(t,{code:lo.invalid_string,validation:"datetime",message:r.message}),n.dirty()):"date"===r.kind?iCt.test(e.data)||(t=this._getOrReturnCtx(e,t),ss(t,{code:lo.invalid_string,validation:"date",message:r.message}),n.dirty()):"time"===r.kind?oCt(r).test(e.data)||(t=this._getOrReturnCtx(e,t),ss(t,{code:lo.invalid_string,validation:"time",message:r.message}),n.dirty()):"duration"===r.kind?$7t.test(e.data)||(t=this._getOrReturnCtx(e,t),ss(t,{validation:"duration",code:lo.invalid_string,message:r.message}),n.dirty()):"ip"===r.kind?sCt(e.data,r.version)||(t=this._getOrReturnCtx(e,t),ss(t,{validation:"ip",code:lo.invalid_string,message:r.message}),n.dirty()):"jwt"===r.kind?lCt(e.data,r.alg)||(t=this._getOrReturnCtx(e,t),ss(t,{validation:"jwt",code:lo.invalid_string,message:r.message}),n.dirty()):"cidr"===r.kind?cCt(e.data,r.version)||(t=this._getOrReturnCtx(e,t),ss(t,{validation:"cidr",code:lo.invalid_string,message:r.message}),n.dirty()):"base64"===r.kind?nCt.test(e.data)||(t=this._getOrReturnCtx(e,t),ss(t,{validation:"base64",code:lo.invalid_string,message:r.message}),n.dirty()):"base64url"===r.kind?aCt.test(e.data)||(t=this._getOrReturnCtx(e,t),ss(t,{validation:"base64url",code:lo.invalid_string,message:r.message}),n.dirty()):J1.assertNever(r);return{status:n.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:lo.invalid_string,...t0.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:"email",...t0.errToObj(e)})}url(e){return this._addCheck({kind:"url",...t0.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...t0.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...t0.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...t0.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...t0.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...t0.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...t0.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...t0.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...t0.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...t0.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...t0.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...t0.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...t0.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...t0.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...t0.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...t0.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...t0.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...t0.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...t0.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...t0.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...t0.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...t0.errToObj(t)})}nonempty(e){return this.min(1,t0.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}},H_.create=e=>new H_({checks:[],typeName:ul.ZodString,coerce:e?.coerce??!1,...r1(e)}),J5=class e extends T1{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ws.number){let t=this._getOrReturnCtx(e);return ss(t,{code:lo.invalid_type,expected:ws.number,received:t.parsedType}),$0}let t,n=new n2;for(let r of this._def.checks)"int"===r.kind?J1.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),ss(t,{code:lo.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),ss(t,{code:lo.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),ss(t,{code:lo.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==uCt(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),ss(t,{code:lo.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),ss(t,{code:lo.not_finite,message:r.message}),n.dirty()):J1.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,t0.toString(t))}gt(e,t){return this.setLimit("min",e,!1,t0.toString(t))}lte(e,t){return this.setLimit("max",e,!0,t0.toString(t))}lt(e,t){return this.setLimit("max",e,!1,t0.toString(t))}setLimit(t,n,r,a){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:t0.toString(a)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:"int",message:t0.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:t0.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:t0.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:t0.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:t0.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:t0.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:t0.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:t0.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:t0.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&J1.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}},J5.create=e=>new J5({checks:[],typeName:ul.ZodNumber,coerce:e?.coerce||!1,...r1(e)}),Q5=class e extends T1{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==ws.bigint)return this._getInvalidInput(e);let t,n=new n2;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),ss(t,{code:lo.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),ss(t,{code:lo.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),ss(t,{code:lo.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):J1.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return ss(t,{code:lo.invalid_type,expected:ws.bigint,received:t.parsedType}),$0}gte(e,t){return this.setLimit("min",e,!0,t0.toString(t))}gt(e,t){return this.setLimit("min",e,!1,t0.toString(t))}lte(e,t){return this.setLimit("max",e,!0,t0.toString(t))}lt(e,t){return this.setLimit("max",e,!1,t0.toString(t))}setLimit(t,n,r,a){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:t0.toString(a)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:t0.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:t0.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:t0.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:t0.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:t0.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}},Q5.create=e=>new Q5({checks:[],typeName:ul.ZodBigInt,coerce:e?.coerce??!1,...r1(e)}),(eA=class extends T1{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ws.boolean){let t=this._getOrReturnCtx(e);return ss(t,{code:lo.invalid_type,expected:ws.boolean,received:t.parsedType}),$0}return L2(e.data)}}).create=e=>new eA({typeName:ul.ZodBoolean,coerce:e?.coerce||!1,...r1(e)}),tA=class e extends T1{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ws.date){let t=this._getOrReturnCtx(e);return ss(t,{code:lo.invalid_type,expected:ws.date,received:t.parsedType}),$0}if(Number.isNaN(e.data.getTime())){return ss(this._getOrReturnCtx(e),{code:lo.invalid_date}),$0}let t,n=new n2;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(t=this._getOrReturnCtx(e,t),ss(t,{code:lo.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),n.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(t=this._getOrReturnCtx(e,t),ss(t,{code:lo.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):J1.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:t0.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:t0.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}},tA.create=e=>new tA({checks:[],coerce:e?.coerce||!1,typeName:ul.ZodDate,...r1(e)}),(bT=class extends T1{_parse(e){if(this._getType(e)!==ws.symbol){let t=this._getOrReturnCtx(e);return ss(t,{code:lo.invalid_type,expected:ws.symbol,received:t.parsedType}),$0}return L2(e.data)}}).create=e=>new bT({typeName:ul.ZodSymbol,...r1(e)}),(rA=class extends T1{_parse(e){if(this._getType(e)!==ws.undefined){let t=this._getOrReturnCtx(e);return ss(t,{code:lo.invalid_type,expected:ws.undefined,received:t.parsedType}),$0}return L2(e.data)}}).create=e=>new rA({typeName:ul.ZodUndefined,...r1(e)}),(nA=class extends T1{_parse(e){if(this._getType(e)!==ws.null){let t=this._getOrReturnCtx(e);return ss(t,{code:lo.invalid_type,expected:ws.null,received:t.parsedType}),$0}return L2(e.data)}}).create=e=>new nA({typeName:ul.ZodNull,...r1(e)}),(V_=class extends T1{constructor(){super(...arguments),this._any=!0}_parse(e){return L2(e.data)}}).create=e=>new V_({typeName:ul.ZodAny,...r1(e)}),(kM=class extends T1{constructor(){super(...arguments),this._unknown=!0}_parse(e){return L2(e.data)}}).create=e=>new kM({typeName:ul.ZodUnknown,...r1(e)}),(Cy=class extends T1{_parse(e){let t=this._getOrReturnCtx(e);return ss(t,{code:lo.invalid_type,expected:ws.never,received:t.parsedType}),$0}}).create=e=>new Cy({typeName:ul.ZodNever,...r1(e)}),(MT=class extends T1{_parse(e){if(this._getType(e)!==ws.undefined){let t=this._getOrReturnCtx(e);return ss(t,{code:lo.invalid_type,expected:ws.void,received:t.parsedType}),$0}return L2(e.data)}}).create=e=>new MT({typeName:ul.ZodVoid,...r1(e)}),CM=class e extends T1{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==ws.array)return ss(t,{code:lo.invalid_type,expected:ws.array,received:t.parsedType}),$0;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,a=t.data.length<r.exactLength.value;(e||a)&&(ss(t,{code:e?lo.too_big:lo.too_small,minimum:a?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(ss(t,{code:lo.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(ss(t,{code:lo.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new vg(t,e,t.path,n)))).then(e=>n2.mergeArray(n,e));let a=[...t.data].map((e,n)=>r.type._parseSync(new vg(t,e,t.path,n)));return n2.mergeArray(n,a)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:t0.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:t0.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:t0.toString(n)}})}nonempty(e){return this.min(1,e)}},CM.create=(e,t)=>new CM({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ul.ZodArray,...r1(t)}),Dm=class e extends T1{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=J1.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==ws.object){let t=this._getOrReturnCtx(e);return ss(t,{code:lo.invalid_type,expected:ws.object,received:t.parsedType}),$0}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:a}=this._getCached(),i=[];if(!(this._def.catchall instanceof Cy&&"strip"===this._def.unknownKeys))for(let e in n.data)a.includes(e)||i.push(e);let o=[];for(let e of a){let t=r[e],a=n.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new vg(n,a,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof Cy){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of i)o.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)i.length>0&&(ss(n,{code:lo.unrecognized_keys,keys:i}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of i){let r=n.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new vg(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>n2.mergeObjectSync(t,e)):n2.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return t0.errToObj,new e({...this._def,unknownKeys:"strict",...void 0!==t?{errorMap:(e,n)=>{let r=this._def.errorMap?.(e,n).message??n.defaultError;return"unrecognized_keys"===e.code?{message:t0.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ul.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let e of J1.objectKeys(t))t[e]&&this.shape[e]&&(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let e of J1.objectKeys(this.shape))t[e]||(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}deepPartial(){return yT(this)}partial(t){let n={};for(let e of J1.objectKeys(this.shape)){let r=this.shape[e];t&&!t[e]?n[e]=r:n[e]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let e of J1.objectKeys(this.shape))if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof mg;)t=t._def.innerType;n[e]=t}return new e({...this._def,shape:()=>n})}keyof(){return Vze(J1.objectKeys(this.shape))}},Dm.create=(e,t)=>new Dm({shape:()=>e,unknownKeys:"strip",catchall:Cy.create(),typeName:ul.ZodObject,...r1(t)}),Dm.strictCreate=(e,t)=>new Dm({shape:()=>e,unknownKeys:"strict",catchall:Cy.create(),typeName:ul.ZodObject,...r1(t)}),Dm.lazycreate=(e,t)=>new Dm({shape:e,unknownKeys:"strip",catchall:Cy.create(),typeName:ul.ZodObject,...r1(t)}),(aA=class extends T1{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new r2(e.ctx.common.issues));return ss(t,{code:lo.invalid_union,unionErrors:n}),$0});{let e,r=[];for(let a of n){let n={...t,common:{...t.common,issues:[]},parent:null},i=a._parseSync({data:t.data,path:t.path,parent:n});if("valid"===i.status)return i;"dirty"===i.status&&!e&&(e={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let a=r.map(e=>new r2(e));return ss(t,{code:lo.invalid_union,unionErrors:a}),$0}}get options(){return this._def.options}}).create=(e,t)=>new aA({options:e,typeName:ul.ZodUnion,...r1(t)}),SM=e=>e instanceof oA?SM(e.schema):e instanceof gg?SM(e.innerType()):e instanceof sA?[e.value]:e instanceof lA?e.options:e instanceof cA?J1.objectValues(e.enum):e instanceof uA?SM(e._def.innerType):e instanceof rA?[void 0]:e instanceof nA?[null]:e instanceof mg?[void 0,...SM(e.unwrap())]:e instanceof Hb?[null,...SM(e.unwrap())]:e instanceof CC||e instanceof fA?SM(e.unwrap()):e instanceof dA?SM(e._def.innerType):[],AW=class e extends T1{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==ws.object)return ss(t,{code:lo.invalid_type,expected:ws.object,received:t.parsedType}),$0;let n=this.discriminator,r=t.data[n],a=this.optionsMap.get(r);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(ss(t,{code:lo.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),$0)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let a=new Map;for(let e of n){let n=SM(e.shape[t]);if(!n.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(a.has(r))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);a.set(r,e)}}return new e({typeName:ul.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...r1(r)})}},(iA=class extends T1{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(_W(e)||_W(r))return $0;let a=Dte(e.value,r.value);return a.valid?((zW(e)||zW(r))&&t.dirty(),{status:t.value,value:a.data}):(ss(n,{code:lo.invalid_intersection_types}),$0)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}).create=(e,t,n)=>new iA({left:e,right:t,typeName:ul.ZodIntersection,...r1(n)}),Ub=class e extends T1{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==ws.array)return ss(n,{code:lo.invalid_type,expected:ws.array,received:n.parsedType}),$0;if(n.data.length<this._def.items.length)return ss(n,{code:lo.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),$0;!this._def.rest&&n.data.length>this._def.items.length&&(ss(n,{code:lo.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new vg(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>n2.mergeArray(t,e)):n2.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}},Ub.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ub({items:e,typeName:ul.ZodTuple,rest:null,...r1(t)})},wW=class e extends T1{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==ws.object)return ss(n,{code:lo.invalid_type,expected:ws.object,received:n.parsedType}),$0;let r=[],a=this._def.keyType,i=this._def.valueType;for(let e in n.data)r.push({key:a._parse(new vg(n,e,n.path,e)),value:i._parse(new vg(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?n2.mergeObjectAsync(t,r):n2.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return new e(n instanceof T1?{keyType:t,valueType:n,typeName:ul.ZodRecord,...r1(r)}:{keyType:H_.create(),valueType:t,typeName:ul.ZodRecord,...r1(n)})}},(xT=class extends T1{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==ws.map)return ss(n,{code:lo.invalid_type,expected:ws.map,received:n.parsedType}),$0;let r=this._def.keyType,a=this._def.valueType,i=[...n.data.entries()].map(([e,t],i)=>({key:r._parse(new vg(n,e,n.path,[i,"key"])),value:a._parse(new vg(n,t,n.path,[i,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of i){let r=await n.key,a=await n.value;if("aborted"===r.status||"aborted"===a.status)return $0;("dirty"===r.status||"dirty"===a.status)&&t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of i){let r=n.key,a=n.value;if("aborted"===r.status||"aborted"===a.status)return $0;("dirty"===r.status||"dirty"===a.status)&&t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}}}}).create=(e,t,n)=>new xT({valueType:t,keyType:e,typeName:ul.ZodMap,...r1(n)}),_T=class e extends T1{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==ws.set)return ss(n,{code:lo.invalid_type,expected:ws.set,received:n.parsedType}),$0;let r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(ss(n,{code:lo.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(ss(n,{code:lo.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let a=this._def.valueType;function i(e){let n=new Set;for(let r of e){if("aborted"===r.status)return $0;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>a._parse(new vg(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>i(e)):i(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:t0.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:t0.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}},_T.create=(e,t)=>new _T({valueType:e,minSize:null,maxSize:null,typeName:ul.ZodSet,...r1(t)}),OW=class e extends T1{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==ws.function)return ss(t,{code:lo.invalid_type,expected:ws.function,received:t.parsedType}),$0;function n(e,n){return kC({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,vT(),TM].filter(e=>!!e),issueData:{code:lo.invalid_arguments,argumentsError:n}})}function r(e,n){return kC({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,vT(),TM].filter(e=>!!e),issueData:{code:lo.invalid_return_type,returnTypeError:n}})}let a={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof j_){let e=this;return L2(async function(...t){let o=new r2([]),s=await e._def.args.parseAsync(t,a).catch(e=>{throw o.addIssue(n(t,e)),o}),l=await Reflect.apply(i,this,s);return await e._def.returns._def.type.parseAsync(l,a).catch(e=>{throw o.addIssue(r(l,e)),o})})}{let e=this;return L2(function(...t){let o=e._def.args.safeParse(t,a);if(!o.success)throw new r2([n(t,o.error)]);let s=Reflect.apply(i,this,o.data),l=e._def.returns.safeParse(s,a);if(!l.success)throw new r2([r(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Ub.create(t).rest(kM.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||Ub.create([]).rest(kM.create()),returns:n||kM.create(),typeName:ul.ZodFunction,...r1(r)})}},(oA=class extends T1{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}).create=(e,t)=>new oA({getter:e,typeName:ul.ZodLazy,...r1(t)}),(sA=class extends T1{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return ss(t,{received:t.data,code:lo.invalid_literal,expected:this._def.value}),$0}return{status:"valid",value:e.data}}get value(){return this._def.value}}).create=(e,t)=>new sA({value:e,typeName:ul.ZodLiteral,...r1(t)}),lA=class e extends T1{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return ss(t,{expected:J1.joinValues(n),received:t.parsedType,code:lo.invalid_type}),$0}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return ss(t,{received:t.data,code:lo.invalid_enum_value,options:n}),$0}return L2(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}},lA.create=Vze,(cA=class extends T1{_parse(e){let t=J1.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==ws.string&&n.parsedType!==ws.number){let e=J1.objectValues(t);return ss(n,{expected:J1.joinValues(e),received:n.parsedType,code:lo.invalid_type}),$0}if(this._cache||(this._cache=new Set(J1.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=J1.objectValues(t);return ss(n,{received:n.data,code:lo.invalid_enum_value,options:e}),$0}return L2(e.data)}get enum(){return this._def.values}}).create=(e,t)=>new cA({values:e,typeName:ul.ZodNativeEnum,...r1(t)}),(j_=class extends T1{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==ws.promise&&!1===t.common.async)return ss(t,{code:lo.invalid_type,expected:ws.promise,received:t.parsedType}),$0;let n=t.parsedType===ws.promise?t.data:Promise.resolve(t.data);return L2(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}).create=(e,t)=>new j_({type:e,typeName:ul.ZodPromise,...r1(t)}),(gg=class extends T1{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ul.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,a={addIssue:e=>{ss(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),"preprocess"===r.type){let e=r.transform(n.data,a);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return $0;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?$0:"dirty"===r.status||"dirty"===t.value?K5(r.value):r});{if("aborted"===t.value)return $0;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?$0:"dirty"===r.status||"dirty"===t.value?K5(r.value):r}}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,a);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?$0:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?$0:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if("transform"===r.type){if(!1===n.common.async){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!U_(e))return $0;let i=r.transform(e.value,a);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>U_(e)?Promise.resolve(r.transform(e.value,a)).then(e=>({status:t.value,value:e})):$0)}J1.assertNever(r)}}).create=(e,t,n)=>new gg({schema:e,typeName:ul.ZodEffects,effect:t,...r1(n)}),gg.createWithPreprocess=(e,t,n)=>new gg({schema:t,effect:{type:"preprocess",transform:e},typeName:ul.ZodEffects,...r1(n)}),(mg=class extends T1{_parse(e){return this._getType(e)===ws.undefined?L2(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}).create=(e,t)=>new mg({innerType:e,typeName:ul.ZodOptional,...r1(t)}),(Hb=class extends T1{_parse(e){return this._getType(e)===ws.null?L2(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}).create=(e,t)=>new Hb({innerType:e,typeName:ul.ZodNullable,...r1(t)}),(uA=class extends T1{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===ws.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}).create=(e,t)=>new uA({innerType:e,typeName:ul.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...r1(t)}),(dA=class extends T1{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return gT(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new r2(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new r2(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}).create=(e,t)=>new dA({innerType:e,typeName:ul.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...r1(t)}),(zT=class extends T1{_parse(e){if(this._getType(e)!==ws.nan){let t=this._getOrReturnCtx(e);return ss(t,{code:lo.invalid_type,expected:ws.nan,received:t.parsedType}),$0}return{status:"valid",value:e.data}}}).create=e=>new zT({typeName:ul.ZodNaN,...r1(e)}),dCt=Symbol("zod_brand"),CC=class extends T1{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},EC=class e extends T1{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?$0:"dirty"===e.status?(t.dirty(),K5(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?$0:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:ul.ZodPipeline})}},(fA=class extends T1{_parse(e){let t=this._def.innerType._parse(e),n=e=>(U_(e)&&(e.value=Object.freeze(e.value)),e);return gT(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}).create=(e,t)=>new fA({innerType:e,typeName:ul.ZodReadonly,...r1(t)}),fCt={object:Dm.lazycreate},(e=ul||(ul={})).ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly",hCt=(e,t={message:`Input not instance of ${e.name}`})=>jze(t=>t instanceof e,t),Gze=H_.create,Xze=J5.create,pCt=zT.create,mCt=Q5.create,Yze=eA.create,vCt=tA.create,gCt=bT.create,yCt=rA.create,bCt=nA.create,MCt=V_.create,xCt=kM.create,_Ct=Cy.create,zCt=MT.create,ACt=CM.create,wCt=Dm.create,OCt=Dm.strictCreate,TCt=aA.create,SCt=AW.create,kCt=iA.create,CCt=Ub.create,ECt=wW.create,qCt=xT.create,DCt=_T.create,RCt=OW.create,LCt=oA.create,PCt=sA.create,ICt=lA.create,NCt=cA.create,WCt=j_.create,FCt=gg.create,BCt=mg.create,UCt=Hb.create,HCt=gg.createWithPreprocess,VCt=EC.create,jCt=()=>Gze().optional(),GCt=()=>Xze().optional(),XCt=()=>Yze().optional(),YCt={string:e=>H_.create({...e,coerce:!0}),number:e=>J5.create({...e,coerce:!0}),boolean:e=>eA.create({...e,coerce:!0}),bigint:e=>Q5.create({...e,coerce:!0}),date:e=>tA.create({...e,coerce:!0})},ZCt=$0}),gi={};Zs(gi,{BRAND:()=>dCt,DIRTY:()=>K5,EMPTY_PATH:()=>H7t,INVALID:()=>$0,NEVER:()=>ZCt,OK:()=>L2,ParseStatus:()=>n2,Schema:()=>T1,ZodAny:()=>V_,ZodArray:()=>CM,ZodBigInt:()=>Q5,ZodBoolean:()=>eA,ZodBranded:()=>CC,ZodCatch:()=>dA,ZodDate:()=>tA,ZodDefault:()=>uA,ZodDiscriminatedUnion:()=>AW,ZodEffects:()=>gg,ZodEnum:()=>lA,ZodError:()=>r2,ZodFirstPartyTypeKind:()=>ul,ZodFunction:()=>OW,ZodIntersection:()=>iA,ZodIssueCode:()=>lo,ZodLazy:()=>oA,ZodLiteral:()=>sA,ZodMap:()=>xT,ZodNaN:()=>zT,ZodNativeEnum:()=>cA,ZodNever:()=>Cy,ZodNull:()=>nA,ZodNullable:()=>Hb,ZodNumber:()=>J5,ZodObject:()=>Dm,ZodOptional:()=>mg,ZodParsedType:()=>ws,ZodPipeline:()=>EC,ZodPromise:()=>j_,ZodReadonly:()=>fA,ZodRecord:()=>wW,ZodSchema:()=>T1,ZodSet:()=>_T,ZodString:()=>H_,ZodSymbol:()=>bT,ZodTransformer:()=>gg,ZodTuple:()=>Ub,ZodType:()=>T1,ZodUndefined:()=>rA,ZodUnion:()=>aA,ZodUnknown:()=>kM,ZodVoid:()=>MT,addIssueToContext:()=>ss,any:()=>MCt,array:()=>ACt,bigint:()=>mCt,boolean:()=>Yze,coerce:()=>YCt,custom:()=>jze,date:()=>vCt,datetimeRegex:()=>Hze,defaultErrorMap:()=>TM,discriminatedUnion:()=>SCt,effect:()=>FCt,enum:()=>ICt,function:()=>RCt,getErrorMap:()=>vT,getParsedType:()=>Bb,instanceof:()=>hCt,intersection:()=>kCt,isAborted:()=>_W,isAsync:()=>gT,isDirty:()=>zW,isValid:()=>U_,late:()=>fCt,lazy:()=>LCt,literal:()=>PCt,makeIssue:()=>kC,map:()=>qCt,nan:()=>pCt,nativeEnum:()=>NCt,never:()=>_Ct,null:()=>bCt,nullable:()=>UCt,number:()=>Xze,object:()=>wCt,objectUtil:()=>kte,oboolean:()=>XCt,onumber:()=>GCt,optional:()=>BCt,ostring:()=>jCt,pipeline:()=>VCt,preprocess:()=>HCt,promise:()=>WCt,quotelessJson:()=>F7t,record:()=>ECt,set:()=>DCt,setErrorMap:()=>U7t,strictObject:()=>OCt,string:()=>Gze,symbol:()=>gCt,transformer:()=>FCt,tuple:()=>CCt,undefined:()=>yCt,union:()=>TCt,unknown:()=>xCt,util:()=>J1,void:()=>zCt});var Rte=kr(()=>{xW(),Ete(),Ize(),SC(),Zze(),MW()}),Lte=kr(()=>{Rte(),Rte()});function TW(e){let t=Pte.find(t=>!e.includes(t));if(t)return t;let n=new Map;for(let t of e)n.set(t,(n.get(t)||0)+1);let r=1/0,a=Pte[0];for(let e of Pte){let t=n.get(e)||0;t<r&&(r=t,a=e)}return a}var Pte,Ite=kr(()=>{Pte=["#3b82f6","#22c55e","#ef4444","#eab308","#8b5cf6","#f97316","#14b8a6","#ec4899","#6366f1","#84cc16","#0ea5e9","#d946ef","#f43f5e","#10b981","#a855f7"]});function AT(e){return e?.format??Nte}var $ze,Nte,qC=kr(()=>{$ze=["default","dayPlanner"],Nte="default"});function wT(e,t){let n=t.filter(t=>t.startsWith(`${e}_`)),r=1;return n.length>0&&(r=n.map(e=>{let t=e.split("_");return 2===t.length?parseInt(t[1],10):NaN}).filter(e=>!isNaN(e)).reduce((e,t)=>Math.max(e,t),0)+1),`${e}_${r}`}function Kze(e,t=[]){let n=TW(t);if("icloud"===e)return{type:"caldav",name:Ce("settings.calendars.defaults.iCloud"),color:n,url:"https://caldav.icloud.com"};let r=e.charAt(0).toUpperCase()+e.slice(1);return{type:e,name:Ce("settings.calendars.defaults.new",{type:r}),color:n}}var oVr,sVr,DC=kr(()=>{Lte(),Ite(),Zo(),qC(),oVr=gi.discriminatedUnion("type",[gi.object({type:gi.literal("local"),id:gi.string(),name:gi.string(),directory:gi.string(),template:gi.string().optional()}),gi.object({type:gi.literal("dailynote"),id:gi.string(),name:gi.string(),heading:gi.string(),format:gi.enum($ze).default(Nte)}),gi.object({type:gi.literal("ical"),id:gi.string(),name:gi.string(),url:gi.string().url()}),gi.object({type:gi.literal("caldav"),id:gi.string(),name:gi.string(),url:gi.string().url(),homeUrl:gi.string().url(),username:gi.string(),password:gi.string()}),gi.object({type:gi.literal("google"),id:gi.string(),name:gi.string(),calendarId:gi.string(),googleAccountId:gi.string().optional()}),gi.object({type:gi.literal("googletasks"),id:gi.string(),name:gi.string(),listId:gi.string(),googleAccountId:gi.string().optional()}),gi.object({type:gi.literal("outlook"),id:gi.string(),name:gi.string(),calendarId:gi.string(),microsoftAccountId:gi.string().optional()}),gi.object({type:gi.literal("tasks"),id:gi.string(),name:gi.string()}),gi.object({type:gi.literal("tasknotes"),id:gi.string(),name:gi.string(),dispatchMode:gi.enum(["search","create"]).optional()}),gi.object({type:gi.literal("bases"),id:gi.string(),name:gi.string(),basePath:gi.string()}),gi.object({type:gi.literal("holidays"),id:gi.string(),name:gi.string(),country:gi.string(),state:gi.string().optional(),region:gi.string().optional(),holidayTypes:gi.enum(["public","public_bank","public_bank_observance","all_except_optional","all"]).default("public"),display:gi.enum(["auto","block","list-item","background","inverse-background","none"]).optional()})]),sVr=gi.object({color:gi.string()})});function Wte(e){let t,n=[],r=0;for(;null!==(t=$Ct.exec(e));){let[a,i,o]=t;t.index>r&&n.push({kind:"text",text:e.substring(r,t.index)}),n.push({kind:"link",text:i,href:o}),r=t.index+a.length}return r<e.length&&n.push({kind:"text",text:e.substring(r)}),n}function Fte(e){return Bte(Wte(e))}function Bte(e,t){let n=SW.activeDocument??SW.activeWindow?.document??window.document;if(!n)return new DocumentFragment;let r=n.createDocumentFragment(),a=t?.betweenLinksText,i=!1;return e.forEach(e=>{if(a&&i&&"link"===e.kind&&r.append(a),"text"===e.kind)return r.append(e.text),void(i=!1);let t=n.createElement("a");t.textContent=e.text,t.href=e.href,r.append(t),i=!0}),r}function Jze(e){return e.map(e=>({kind:"link",text:e.text,href:e.href}))}var SW,$Ct,Ute=kr(()=>{SW=require("obsidian"),$Ct=/\[([^\]]+)\]\(([^)]+)\)/g});function kW(e){return`${KCt}${e.replace(/^\/+/,"")}`}function Wh(e,t=Ce("global.learnMore")){let n=OT.activeDocument??OT.activeWindow?.document??window.document;if(!n)return new DocumentFragment;if(0===e.length)return n.createDocumentFragment();let r=n.createDocumentFragment();r.append(t," ");let a=e.map(e=>({text:e.text,href:kW(e.path)}));return r.append(Bte(Jze(a),{betweenLinksText:" | "})),r}function Zl(e,t){let n=OT.activeDocument??OT.activeWindow?.document??window.document;if(!n)return Fte(e);let r=n.createDocumentFragment();return r.append(Fte(e)),t.length>0&&(r.append(" "),r.append(Wh(t))),r}var OT,KCt,qp=kr(()=>{Zo(),OT=require("obsidian"),Ute(),KCt="https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/"});function jte(){let e=Qe.getSettings();return e.milestones||(e.milestones={counters:{},unlockedAt:{},shown:{}}),e.milestones.counters||={},e.milestones.unlockedAt||={},e.milestones.shown||={},e.milestones}function Hte(e,t){return`${e}.${t}`}function Rm(e,t){return e.counters[t]??0}function lp(e,t,n){return Rm(e,Hte(t,n))}function Vte(e,t,n){e.counters[t]=n}function EM(e,t,n=1){let r=(e.counters[t]??0)+n;return e.counters[t]=r,r}function eEt(){let e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function EW(e){let[t,n,r]=e.split("-").map(Number);return Date.UTC(t,n-1,r)}function o4e(e,t){return Math.floor(Math.abs(t-e)/864e5)}function s4e(e,t){let n=new Map,r=`${t}.`;for(let[t,a]of Object.entries(e.counters)){if(!t.startsWith(r))continue;let e=t.slice(r.length);n.set(e,a)}return n}function Qze(e){let t=s4e(e,"day.action");if(0===t.size)return 0;let n=Array.from(t.keys()).sort(),r=1,a=1;for(let e=1;e<n.length;e+=1){1===o4e(EW(n[e-1]),EW(n[e]))?a+=1:a=1,a>r&&(r=a)}return r}function e4e(e){let t=Rm(e,"meta.firstActionAt"),n=Rm(e,"meta.lastActionAt");return!t||!n||n<t?0:o4e(t,n)}function CW(e){return lp(e,"created","total")+lp(e,"deleted","total")+lp(e,"updated","total")+lp(e,"moved","total")}function t4e(){return Qe.getSettings().calendarSources.filter(e=>i4e.includes(e.type)).length}function r4e(e){let t=0;for(let n of Object.keys(e.counters))n.startsWith("tz.")&&(t+=1);return t}function n4e(e,t,n){return n.reduce((n,r)=>n+lp(e,t,r),0)}function tEt(e,t,n){return QCt.filter(r=>lp(e,t,r)>=n).length}function rEt(e){return!!e&&("recurring"===e.type||"rrule"===e.type)}function nEt(e){if(!e||e.allDay)return null;if(e.timezone&&e.timezone.trim().length>0)return e.timezone.trim();let t=Qe.getSettings().displayTimezone;return t&&t.trim().length>0?t.trim():Intl.DateTimeFormat().resolvedOptions().timeZone||null}function aEt(e){let t=s4e(e,"day.created");if(0===t.size)return{current:0,target:7};let n=Array.from(t.keys()).sort(),r=EW(n[0]),a=EW(n[n.length-1]),i=864e5,o=0;for(let e=r;e<=a;e+=i){if(1!==new Date(e).getUTCDay())continue;let n=0;for(let r=0;r<7;r+=1){let a=new Date(e+r*i),o=`${a.getUTCFullYear()}-${String(a.getUTCMonth()+1).padStart(2,"0")}-${String(a.getUTCDate()).padStart(2,"0")}`;(t.get(o)??0)>=3&&(n+=1)}if(n>o&&(o=n),o>=7)break}return{current:o,target:7}}function iEt(){let e=Qe.getProviderRegistry(),t=Qe.getCache().getAllEvents(),n=0;for(let r of t){let t=e.getSource(r.id);t&&JCt.includes(t.type)&&(n+=r.events.length)}return n}function l4e(e,t){let n=220*t;window.setTimeout(()=>{let t=(typeof activeDocument<"u"?activeDocument:void 0)??(typeof window<"u"?window.document:void 0);if(!t)return void console.warn("Full Calendar: activeDocument / window.document is undefined!");let n=t.getElementById("ofc-milestone-toast-root"),r=n??t.createElement("div");n||(r.id="ofc-milestone-toast-root",t.body.appendChild(r));let a=t.createElement("div");a.className="ofc-milestone-toast";let i=t.createElement("button");i.className="ofc-milestone-toast-close",i.setAttribute("aria-label","Close notification"),(0,a4e.setIcon)(i,"x");let o=t.createElement("div");o.className="ofc-milestone-toast-title",o.textContent=e.title;let s=t.createElement("div");s.className="ofc-milestone-toast-body",s.textContent=e.description,a.appendChild(i),a.appendChild(o),a.appendChild(s);let l=t.createElement("div");l.className="ofc-milestone-toast-footer";let c=t.createElement("div");c.className="ofc-milestone-toast-footer-desc",c.textContent=Ce("notices.milestones.sponsorDesc");let u=t.createElement("div");u.className="ofc-milestone-toast-footer-buttons";let d=t.createElement("a");d.className="ofc-milestone-toast-btn btn-primary",d.textContent=Ce("notices.milestones.sponsorBtn"),d.setAttribute("href","https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/donation/ko-fi"),d.setAttribute("target","_blank"),d.setAttribute("rel","noopener noreferrer");let p=t.createElement("a");p.className="ofc-milestone-toast-btn btn-secondary",p.textContent=Ce("notices.milestones.goalBtn"),p.setAttribute("href","https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/SustainabilityEthics/"),p.setAttribute("target","_blank"),p.setAttribute("rel","noopener noreferrer"),u.appendChild(d),u.appendChild(p),l.appendChild(c),l.appendChild(u),a.appendChild(l),r.appendChild(a);let h=Qe.getSettings().milestoneNotifierDuration??8e3,f=null,m=null,g=!1,y=()=>{g||(g=!0,v(),a.classList.add("ofc-milestone-toast-hide"),m=window.setTimeout(()=>{a.remove(),r.hasChildNodes()||r.remove()},280))},b=()=>{g||(f=window.setTimeout(()=>{y()},h))},v=()=>{null!==f&&(window.clearTimeout(f),f=null),null!==m&&!g&&(window.clearTimeout(m),m=null),g||a.classList.remove("ofc-milestone-toast-hide")};b(),a.addEventListener("mouseenter",()=>{g||v()}),a.addEventListener("mouseleave",()=>{g||b()}),i.addEventListener("click",e=>{e.stopPropagation(),y()})},n)}function oEt(e){let t=Date.now();Rm(e,"meta.firstActionAt")||Vte(e,"meta.firstActionAt",t),Vte(e,"meta.lastActionAt",t)}function sEt(e,t){let n=eEt();EM(e,`day.action.${n}`),"created"===t&&EM(e,`day.created.${n}`);let r=(new Date).getHours();(r>=22||r<4)&&EM(e,"meta.nightOwlOps"),r>=5&&r<8&&EM(e,"meta.earlyBirdOps");let a=(new Date).getDay();(0===a||6===a)&&EM(e,"meta.weekendWarriorOps")}function lEt(e,t){let n=t?.milestoneMeta?.event;t?.milestoneMeta?.viaNlp&&EM(e,"meta.createdViaNlp"),rEt(n)&&EM(e,"meta.recurringSeriesCreated");let r=nEt(n);r&&Vte(e,`tz.${r}`,1)}function cEt(e){let t=[];for(let n of Gte){if(e.unlockedAt[n.id])continue;let r=n.compute(e);r.current<r.target||(e.unlockedAt[n.id]=Date.now(),t.push({id:n.id,title:Ce(n.titleKey),description:Ce(n.descriptionKey)}))}return t}async function Vb(e,t,n){if(n?.trackMilestone??(!n?.silent&&!n?.force))try{let r=jte(),a=Qe.getProviderRegistry().getSource(t)?.type;EM(r,Hte(e,"total")),a&&"FOR_TEST_ONLY"!==a&&EM(r,Hte(e,a)),oEt(r),sEt(r,e),"created"===e&&lEt(r,n);let i=cEt(r).filter(e=>1!==r.shown[e.id]);for(let e of i)r.shown[e.id]=1;await Qe.persistData(),i.forEach((e,t)=>l4e(e,t))}catch(e){console.warn("Full Calendar: milestone tracking failed.",e)}}function c4e(){let e=jte(),t=[];for(let n of Gte){let r=n.compute(e),a=!!e.unlockedAt[n.id]||r.current>=r.target,i=Math.min(r.current,r.target),o=Math.max(0,Math.min(100,i/r.target*100));t.push({id:n.id,title:Ce(n.titleKey),description:Ce(n.descriptionKey),targetLabel:Ce(n.targetKey),current:r.current,percent:o,unlocked:a})}return t.sort((e,t)=>e.unlocked!==t.unlocked?e.unlocked?-1:1:e.title.localeCompare(t.title)),t}async function u4e(){try{let e=Qe.getSettings();if(1===e.dev||"1"===e.dev){let e=jte();if(e.unlockedAt.devMilestone=Date.now(),1!==e.shown.devMilestone){e.shown.devMilestone=1,await Qe.persistData();let t=Gte.find(e=>"devMilestone"===e.id);t?l4e({id:"devMilestone",title:Ce(t.titleKey),description:Ce(t.descriptionKey)},0):console.warn("Full Calendar: definition for devMilestone not found!")}else await Qe.persistData()}}catch(e){console.warn("Full Calendar: failed to trigger developer milestone.",e)}}var a4e,i4e,JCt,QCt,Gte,hA,RC=kr(()=>{a4e=require("obsidian"),Wo(),Zo(),i4e=["ical","caldav","google","outlook"],JCt=["local","dailynote","tasks","tasknotes","bases"],QCt=["local","dailynote","ical","caldav","google","outlook","tasks","tasknotes","bases"],Gte=[{id:"created.total.100",titleKey:"settings.appearance.milestones.definitions.createdCentury.title",descriptionKey:"settings.appearance.milestones.definitions.createdCentury.description",targetKey:"settings.appearance.milestones.definitions.createdCentury.target",compute:e=>({current:lp(e,"created","total"),target:100})},{id:"created.total.500",titleKey:"settings.appearance.milestones.definitions.createdMaster.title",descriptionKey:"settings.appearance.milestones.definitions.createdMaster.description",targetKey:"settings.appearance.milestones.definitions.createdMaster.target",compute:e=>({current:lp(e,"created","total"),target:500})},{id:"created.total.5000",titleKey:"settings.appearance.milestones.definitions.createdLegend.title",descriptionKey:"settings.appearance.milestones.definitions.createdLegend.description",targetKey:"settings.appearance.milestones.definitions.createdLegend.target",compute:e=>({current:lp(e,"created","total"),target:5e3})},{id:"deleted.total.100",titleKey:"settings.appearance.milestones.definitions.deletedCentury.title",descriptionKey:"settings.appearance.milestones.definitions.deletedCentury.description",targetKey:"settings.appearance.milestones.definitions.deletedCentury.target",compute:e=>({current:lp(e,"deleted","total"),target:100})},{id:"deleted.total.500",titleKey:"settings.appearance.milestones.definitions.deletedMaster.title",descriptionKey:"settings.appearance.milestones.definitions.deletedMaster.description",targetKey:"settings.appearance.milestones.definitions.deletedMaster.target",compute:e=>({current:lp(e,"deleted","total"),target:500})},{id:"updated.total.500",titleKey:"settings.appearance.milestones.definitions.updatedMaster.title",descriptionKey:"settings.appearance.milestones.definitions.updatedMaster.description",targetKey:"settings.appearance.milestones.definitions.updatedMaster.target",compute:e=>({current:lp(e,"updated","total"),target:500})},{id:"updated.total.5000",titleKey:"settings.appearance.milestones.definitions.updatedLegend.title",descriptionKey:"settings.appearance.milestones.definitions.updatedLegend.description",targetKey:"settings.appearance.milestones.definitions.updatedLegend.target",compute:e=>({current:lp(e,"updated","total"),target:5e3})},{id:"moved.total.500",titleKey:"settings.appearance.milestones.definitions.movedMaster.title",descriptionKey:"settings.appearance.milestones.definitions.movedMaster.description",targetKey:"settings.appearance.milestones.definitions.movedMaster.target",compute:e=>({current:lp(e,"moved","total"),target:500})},{id:"created.remote.500",titleKey:"settings.appearance.milestones.definitions.remoteArchitect.title",descriptionKey:"settings.appearance.milestones.definitions.remoteArchitect.description",targetKey:"settings.appearance.milestones.definitions.remoteArchitect.target",compute:e=>({current:n4e(e,"created",i4e),target:500})},{id:"created.tasks.1000",titleKey:"settings.appearance.milestones.definitions.taskOrchestrator.title",descriptionKey:"settings.appearance.milestones.definitions.taskOrchestrator.description",targetKey:"settings.appearance.milestones.definitions.taskOrchestrator.target",compute:e=>({current:n4e(e,"created",["tasks","tasknotes"]),target:1e3})},{id:"created.providers.3x500",titleKey:"settings.appearance.milestones.definitions.polyglotBuilder.title",descriptionKey:"settings.appearance.milestones.definitions.polyglotBuilder.description",targetKey:"settings.appearance.milestones.definitions.polyglotBuilder.target",compute:e=>({current:tEt(e,"created",500),target:3})},{id:"cycle.500x500",titleKey:"settings.appearance.milestones.definitions.cycleMaster.title",descriptionKey:"settings.appearance.milestones.definitions.cycleMaster.description",targetKey:"settings.appearance.milestones.definitions.cycleMaster.target",compute:e=>({current:Math.min(lp(e,"created","total"),lp(e,"deleted","total")),target:500})},{id:"totalOps.10000",titleKey:"settings.appearance.milestones.definitions.opsLegend.title",descriptionKey:"settings.appearance.milestones.definitions.opsLegend.description",targetKey:"settings.appearance.milestones.definitions.opsLegend.target",compute:e=>({current:CW(e),target:1e4})},{id:"habitualPlanner.20",titleKey:"settings.appearance.milestones.definitions.habitualPlanner.title",descriptionKey:"settings.appearance.milestones.definitions.habitualPlanner.description",targetKey:"settings.appearance.milestones.definitions.habitualPlanner.target",compute:e=>({current:Qze(e),target:20})},{id:"dedicated.90days",titleKey:"settings.appearance.milestones.definitions.dedicated.title",descriptionKey:"settings.appearance.milestones.definitions.dedicated.description",targetKey:"settings.appearance.milestones.definitions.dedicated.target",compute:e=>({current:e4e(e),target:90})},{id:"marathoner.100000",titleKey:"settings.appearance.milestones.definitions.marathoner.title",descriptionKey:"settings.appearance.milestones.definitions.marathoner.description",targetKey:"settings.appearance.milestones.definitions.marathoner.target",compute:e=>({current:CW(e),target:1e5})},{id:"nlpSavant.1000",titleKey:"settings.appearance.milestones.definitions.nlpSavant.title",descriptionKey:"settings.appearance.milestones.definitions.nlpSavant.description",targetKey:"settings.appearance.milestones.definitions.nlpSavant.target",compute:e=>({current:Rm(e,"meta.createdViaNlp"),target:1e3})},{id:"globalCitizen.3",titleKey:"settings.appearance.milestones.definitions.globalCitizen.title",descriptionKey:"settings.appearance.milestones.definitions.globalCitizen.description",targetKey:"settings.appearance.milestones.definitions.globalCitizen.target",compute:e=>({current:r4e(e),target:3})},{id:"syncSpecialist.5",titleKey:"settings.appearance.milestones.definitions.syncSpecialist.title",descriptionKey:"settings.appearance.milestones.definitions.syncSpecialist.description",targetKey:"settings.appearance.milestones.definitions.syncSpecialist.target",compute:e=>({current:t4e(),target:5})},{id:"recurringMaster.30",titleKey:"settings.appearance.milestones.definitions.recurringMaster.title",descriptionKey:"settings.appearance.milestones.definitions.recurringMaster.description",targetKey:"settings.appearance.milestones.definitions.recurringMaster.target",compute:e=>({current:Rm(e,"meta.recurringSeriesCreated"),target:30})},{id:"greatMigration.200",titleKey:"settings.appearance.milestones.definitions.greatMigration.title",descriptionKey:"settings.appearance.milestones.definitions.greatMigration.description",targetKey:"settings.appearance.milestones.definitions.greatMigration.target",compute:e=>({current:lp(e,"moved","total"),target:200})},{id:"perfectionist.week",titleKey:"settings.appearance.milestones.definitions.perfectionist.title",descriptionKey:"settings.appearance.milestones.definitions.perfectionist.description",targetKey:"settings.appearance.milestones.definitions.perfectionist.target",compute:e=>aEt(e)},{id:"digitalLibrarian.10000",titleKey:"settings.appearance.milestones.definitions.digitalLibrarian.title",descriptionKey:"settings.appearance.milestones.definitions.digitalLibrarian.description",targetKey:"settings.appearance.milestones.definitions.digitalLibrarian.target",compute:e=>({current:iEt(),target:1e4})},{id:"nightOwl",titleKey:"settings.appearance.milestones.definitions.nightOwl.title",descriptionKey:"settings.appearance.milestones.definitions.nightOwl.description",targetKey:"settings.appearance.milestones.definitions.nightOwl.target",compute:e=>({current:Rm(e,"meta.nightOwlOps"),target:15})},{id:"earlyBird",titleKey:"settings.appearance.milestones.definitions.earlyBird.title",descriptionKey:"settings.appearance.milestones.definitions.earlyBird.description",targetKey:"settings.appearance.milestones.definitions.earlyBird.target",compute:e=>({current:Rm(e,"meta.earlyBirdOps"),target:15})},{id:"weekendWarrior",titleKey:"settings.appearance.milestones.definitions.weekendWarrior.title",descriptionKey:"settings.appearance.milestones.definitions.weekendWarrior.description",targetKey:"settings.appearance.milestones.definitions.weekendWarrior.target",compute:e=>({current:Rm(e,"meta.weekendWarriorOps"),target:40})},{id:"timezoneNomad",titleKey:"settings.appearance.milestones.definitions.timezoneNomad.title",descriptionKey:"settings.appearance.milestones.definitions.timezoneNomad.description",targetKey:"settings.appearance.milestones.definitions.timezoneNomad.target",compute:e=>({current:r4e(e),target:5})},{id:"superOrganizer",titleKey:"settings.appearance.milestones.definitions.superOrganizer.title",descriptionKey:"settings.appearance.milestones.definitions.superOrganizer.description",targetKey:"settings.appearance.milestones.definitions.superOrganizer.target",compute:e=>({current:(Qe.getSettings().workspaces??[]).length,target:5})},{id:"nlpWhisperer",titleKey:"settings.appearance.milestones.definitions.nlpWhisperer.title",descriptionKey:"settings.appearance.milestones.definitions.nlpWhisperer.description",targetKey:"settings.appearance.milestones.definitions.nlpWhisperer.target",compute:e=>({current:Rm(e,"meta.createdViaNlp"),target:50})},{id:"powerPlanner",titleKey:"settings.appearance.milestones.definitions.powerPlanner.title",descriptionKey:"settings.appearance.milestones.definitions.powerPlanner.description",targetKey:"settings.appearance.milestones.definitions.powerPlanner.target",compute:e=>{let t=Qe.getSettings().calendarSources??[];return{current:new Set(t.map(e=>e.type)).size,target:3}}},{id:"nightOwl.100",titleKey:"settings.appearance.milestones.definitions.nightOwl100.title",descriptionKey:"settings.appearance.milestones.definitions.nightOwl100.description",targetKey:"settings.appearance.milestones.definitions.nightOwl100.target",compute:e=>({current:Rm(e,"meta.nightOwlOps"),target:100})},{id:"earlyBird.100",titleKey:"settings.appearance.milestones.definitions.earlyBird100.title",descriptionKey:"settings.appearance.milestones.definitions.earlyBird100.description",targetKey:"settings.appearance.milestones.definitions.earlyBird100.target",compute:e=>({current:Rm(e,"meta.earlyBirdOps"),target:100})},{id:"weekendWarrior.250",titleKey:"settings.appearance.milestones.definitions.weekendWarrior250.title",descriptionKey:"settings.appearance.milestones.definitions.weekendWarrior250.description",targetKey:"settings.appearance.milestones.definitions.weekendWarrior250.target",compute:e=>({current:Rm(e,"meta.weekendWarriorOps"),target:250})},{id:"nlpWhisperer.200",titleKey:"settings.appearance.milestones.definitions.nlpWhisperer200.title",descriptionKey:"settings.appearance.milestones.definitions.nlpWhisperer200.description",targetKey:"settings.appearance.milestones.definitions.nlpWhisperer200.target",compute:e=>({current:Rm(e,"meta.createdViaNlp"),target:200})},{id:"superOrganizer.10",titleKey:"settings.appearance.milestones.definitions.superOrganizer10.title",descriptionKey:"settings.appearance.milestones.definitions.superOrganizer10.description",targetKey:"settings.appearance.milestones.definitions.superOrganizer10.target",compute:e=>({current:(Qe.getSettings().workspaces??[]).length,target:10})},{id:"syncSpecialist.8",titleKey:"settings.appearance.milestones.definitions.syncSpecialist8.title",descriptionKey:"settings.appearance.milestones.definitions.syncSpecialist8.description",targetKey:"settings.appearance.milestones.definitions.syncSpecialist8.target",compute:e=>({current:t4e(),target:8})},{id:"created.total.25000",titleKey:"settings.appearance.milestones.definitions.createdTotal25000.title",descriptionKey:"settings.appearance.milestones.definitions.createdTotal25000.description",targetKey:"settings.appearance.milestones.definitions.createdTotal25000.target",compute:e=>({current:lp(e,"created","total"),target:25e3})},{id:"created.total.100000",titleKey:"settings.appearance.milestones.definitions.createdTotal100000.title",descriptionKey:"settings.appearance.milestones.definitions.createdTotal100000.description",targetKey:"settings.appearance.milestones.definitions.createdTotal100000.target",compute:e=>({current:lp(e,"created","total"),target:1e5})},{id:"habitualPlanner.100",titleKey:"settings.appearance.milestones.definitions.habitualPlanner100.title",descriptionKey:"settings.appearance.milestones.definitions.habitualPlanner100.description",targetKey:"settings.appearance.milestones.definitions.habitualPlanner100.target",compute:e=>({current:Qze(e),target:100})},{id:"dedicated.365days",titleKey:"settings.appearance.milestones.definitions.dedicated365.title",descriptionKey:"settings.appearance.milestones.definitions.dedicated365.description",targetKey:"settings.appearance.milestones.definitions.dedicated365.target",compute:e=>({current:e4e(e),target:365})},{id:"totalOps.250000",titleKey:"settings.appearance.milestones.definitions.totalOps250000.title",descriptionKey:"settings.appearance.milestones.definitions.totalOps250000.description",targetKey:"settings.appearance.milestones.definitions.totalOps250000.target",compute:e=>({current:CW(e),target:25e4})},{id:"totalOps.1000000",titleKey:"settings.appearance.milestones.definitions.totalOps1000000.title",descriptionKey:"settings.appearance.milestones.definitions.totalOps1000000.description",targetKey:"settings.appearance.milestones.definitions.totalOps1000000.target",compute:e=>({current:CW(e),target:1e6})},{id:"devMilestone",titleKey:"settings.appearance.milestones.definitions.devMilestone.title",descriptionKey:"settings.appearance.milestones.definitions.devMilestone.description",targetKey:"settings.appearance.milestones.definitions.devMilestone.target",compute:e=>({current:e.unlockedAt.devMilestone?1:0,target:1})}]}),LC=kr(()=>{}),qW=kr(()=>{hA=[{version:"0.13.4",changes:[{type:"new",title:"HOT: Unified Task Backlog across Tasks, CalDAV, and Google Tasks",description:"Backlog is now provider-agnostic with better drag scheduling/unscheduling and improved sync consistency across [Tasks](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/calendars/tasks-plugin-integration/), [CalDAV](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/calendars/caldav/), and [Google Tasks](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/calendars/gtasks/)."},{type:"new",title:"Google Tasks Two-Way Sync",description:"Added first-class [Google Tasks](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/calendars/gtasks/) provider support, including task scheduling, completion sync, and backlog integration."},{type:"new",title:"Holidays Calendar Provider",description:"Introduced configurable [Holidays calendar](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/calendars/holidays/) support for regional holiday overlays in your views."},{type:"new",title:"Embedded Widgets + Dashboard Showcases",description:"Added unified [embedded widget](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/embeds/index/) architecture for weather/backlog/analytics-style calendar codeblocks and dashboards."},{type:"new",title:"Weather Forecast UX and Reliability",description:"Expanded [weather forecasts](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/features/weather/) with richer display and stronger caching/offline behavior."},{type:"improvement",title:"Recurring Overrides on External Calendars",description:"Improved [recurring event override](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/events/recurring/) behavior for remote providers with safer instance mutation and reminder sync."},{type:"improvement",title:"Developer API and Local Server Enhancements",description:"Enhanced [API & CLI](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/features/api/) workflows with stronger local-server and credential handling foundations."},{type:"fix",title:"Task Placement, Linked Notes, and VTODO Stability",description:"Fixed backlog/task placement edge cases, linked-note duplication/race conditions, and improved CalDAV VTODO synchronization reliability."}]},{version:"0.13.2",changes:[{type:"new",title:"HOT: Link unique notes to Remote events with templates, metadata, and UI controls",description:"Added automatic [linked note](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/features/event-linked-notes/) creation for events with templates, metadata linking, and seamless integration across providers with UI controls. Supports [CalDAV](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/calendars/caldav/), [Google](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/calendars/gcal/), [Outlook](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/calendars/outlook/)"},{type:"new",title:"HOT-beta: Unified Reminders & FCR Companion for OS native notifications",description:"Introducing [centralized reminder engine](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/features/reminders/) with [FCR Reminder Companion App](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/features/fcr-reminder/) integration, including background sync, manual sync command, and improved reliability even when obsidian is not running."},{type:"new",title:"ChronoAnalyser Demo for easy onboarding",description:"Introduced [ChronoAnalyser](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/chrono_analyser/introduction/) demo and added dynamic [i18n](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/features/i18n/)/[NLP](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/features/nlp/) asset loading with remote synchronization and automatic version-based refresh."},{type:"new",title:"Tasks Global Query Filtering",description:"Added support for [Obsidian Tasks](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/calendars/tasks-plugin-integration/#supported-global-query-syntax) global query in backlog, enabling advanced filtering (tags, folders, priority, regex) via new setting."},{type:"new",title:"[CalDAV](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/calendars/caldav/) VTODO Support",description:"Extended [CalDAV](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/calendars/caldav/) to support tasks (VTODO) with improved fetching and consistency."},{type:"improvement",title:"[Timezone](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/architecture/system/features/timezone-architecture/) Handling (ICS/[CalDAV](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/calendars/caldav/))",description:"Improved [timezone](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/architecture/system/features/timezone-architecture/) accuracy for events with correct TZID handling and consistent UTC/local serialization."},{type:"improvement",title:"[Event Cache](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/architecture/system/eventcache/) & UI Refresh",description:"Optimized calendar refresh behavior to avoid full reloads, improving performance and visual stability during updates."},{type:"fix",title:"[Google](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/calendars/gcal/) & [Outlook](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/calendars/outlook/) Settings Issues",description:"Fixed provider settings state inconsistencies affecting calendar configuration and updates."},{type:"fix",title:"[Daily Note](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/calendars/dailynote/) Notify Serialization",description:"Resolved issue where reminder metadata was incorrectly stored as object strings."},{type:"fix",title:"Instance Initialization & Sync",description:"Fixed issues where [calendar instances](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/architecture/calendars/architecture/) and sources were not updating correctly during initialization."}]},{version:"0.13.1",changes:[{type:"improvement",title:"Provider Lifecycle & Cleanup",description:"Added optional `teardown` method for CalendarProvider and ensured proper cleanup before registry reinitialization and shutdown to improve lifecycle stability."},{type:"improvement",title:"Obsidian Community Lint & Document Handling",description:"Resolved lint issues and improved document handling in `getCalendarColors` and `renderCalendar` for more robust rendering behavior."},{type:"fix",title:"Cache & Update Queue Stability",description:"Fixed `clearUpdateQueue` and improved update flush logic in CacheSubscriptionManager, ensuring correct handling of recurring child event deletions and burst update consistency."},{type:"fix",title:"CalDAV Recurring Sync Collisions",description:"Resolved recurring sync-key collisions by using recurring event IDs instead of UID for RRULE events, preventing conflicts between series parents and RECURRENCE-ID exceptions. Includes regression test for yearly RRULE + exception scenarios. ([#260](https://github.com/obsidian-full-calendar-remastered/plugin-full-calendar/issues/260))"},{type:"fix",title:"TaskNotes Sync & Stability",description:"Stabilized provider-driven updates and drag/toggle sync. Improvements include: ignoring unclaimed file watcher updates, recovering missing provider-session mappings from cache, normalizing persistent IDs, coalescing burst updates, ignoring stale payloads, preferring canonical cache state, and ensuring scheduled changes remain authoritative even if time estimate persistence fails."}]},{version:"0.13.0",changes:[{type:"new",title:"Natural language processing (NLP)",description:"RECOMMENDED: Introducing [NLP](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/features/nlp/) for keyboard free orchestration."},{type:"new",title:"Outlook Integration",description:"Added Outlook integration with full recurrence support and improved frontmatter/metadata handling. ([#259](https://github.com/obsidian-full-calendar-remastered/plugin-full-calendar/issues/259))"},{type:"new",title:"Major Feature Expansions",description:"Introduced a new [Milestones](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/features/milestones/) system, [TaskNotes integration](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/calendars/tasknotes/), and comprehensive Calendar [API](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/settings/api/) & Cache refactoring"},{type:"improvement",title:"i18n and Documentation",description:"Added Chinese (zh) localization and restructured the documentation suite for better navigation. ([#246](https://github.com/obsidian-full-calendar-remastered/plugin-full-calendar/issues/246))"},{type:"improvement",title:"Tasks Plugin Enhancements",description:"Added Day Planner format support, 24h time prefix serialization, deduplication for mirrored tasks, and fuzzy search in the tasks backlog."},{type:"fix",title:"CalDAV & Event fixes",description:"Hardened mobile CalDAV authentication, improved import UX diagnostics, and resolved DailyNote UID collisions on move. Converting all-day to timed events now defaults to 1-hour duration."}]},{version:"0.12.9",changes:[{type:"new",title:"ActivityWatch sync",description:"Added a dedicated ActivityWatch sync engine with continuity-aware ingestion, auto-sync scheduling, and title templating."},{type:"improvement",title:"Tasks integrations",description:"Checkout [Tasks Integration docs](https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/user/calendars/tasks-plugin-integration/). Expanded Tasks backlog and display settings, plus payload handling and workflow improvements. ([#142](https://github.com/obsidian-full-calendar-remastered/plugin-full-calendar/issues/142), [#166](https://github.com/obsidian-full-calendar-remastered/plugin-full-calendar/issues/166), [#175](https://github.com/obsidian-full-calendar-remastered/plugin-full-calendar/issues/175))"},{type:"improvement",title:"Core sync identity",description:"Switched sync handling to keyed identity diffs with reverse lookup maps and safer continuity replacement to reduce churn and duplicate blocks."},{type:"improvement",title:"Settings and calendar UX",description:"Updated settings navigation, calendar interactions, search behavior, and mobile responsiveness."},{type:"fix",title:"Build, docs, and i18n",description:"Reduced startup and bundle overhead, refreshed locale loading, and added ActivityWatch architecture documentation."}]}]}),Xte={};function PC(e){let t=e.createDiv({cls:"full-calendar-settings-footer"});t.createEl("p",{text:Ce("settings.footer.message"),cls:"full-calendar-settings-footer-text"});let n=t.createDiv({cls:"full-calendar-settings-footer-links"});n.createEl("a",{text:Ce("settings.footer.buyMeACoffee"),attr:{href:"https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/donation/ko-fi"},cls:"full-calendar-settings-footer-link"}),n.createEl("a",{text:Ce("settings.footer.suggestFeature"),attr:{href:"https://github.com/obsidian-full-calendar-remastered/plugin-full-calendar/discussions/"},cls:"full-calendar-settings-footer-link"}),n.createEl("a",{text:Ce("settings.footer.raiseIssue"),attr:{href:"https://github.com/obsidian-full-calendar-remastered/plugin-full-calendar/issues/new?template=bug_report.yaml"},cls:"full-calendar-settings-footer-link"})}Zs(Xte,{renderFooter:()=>PC});var IC=kr(()=>{Zo()}),f4e={};Zs(f4e,{Changelog:()=>uEt,VersionSection:()=>TT});var DW,d4e,TT,uEt,RW=kr(()=>{h1(),qW(),Ute(),DW=require("obsidian"),LC(),Zo(),IC(),qp(),Z0(),d4e=e=>Wte(e).map((e,t)=>"text"===e.kind?e.text:Rt("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),children:e.text},`md-link-${t}`)),TT=({version:e,isInitiallyOpen:t,embedded:n=!1})=>{let[r,a]=Li(t);return Rt("div",{className:"full-calendar-version-container "+(n?"embedded":""),children:[Rt("div",{className:"full-calendar-version-header "+(r?"is-open":""),onClick:()=>a(!r),children:Rt("h3",{children:Ce("settings.changelog.versionWithNumber",{version:e.version})})}),Rt("div",{className:"full-calendar-version-content "+(r?"":"is-collapsed"),children:e.changes.map((e,t)=>Rt("div",{className:`full-calendar-change-item full-calendar-change-type-${e.type}`,children:[Rt("div",{className:"full-calendar-change-icon",children:["new"===e.type&&"✨","improvement"===e.type&&"🔧","fix"===e.type&&"🐛"]}),Rt("div",{className:"change-content",children:[Rt("div",{className:"full-calendar-change-title",children:d4e(e.title)}),Rt("div",{className:"full-calendar-change-description",children:d4e(e.description)})]})]},t))})]})},uEt=({onBack:e})=>{let t=qf(null),n=qf(null),[r,a]=Li(hA),[i,o]=Li(!1),[s,l]=Li(!1),[c,u]=Li(!1);vu(()=>{t.current&&(t.current.empty(),new DW.Setting(t.current).setName(Ce("settings.changelog.title")).setHeading().setDesc(Wh([{text:Ce("settings.changelog.whatsNewPageLink"),path:"whats_new"},{text:Ce("settings.changelog.changelogPageLink"),path:"changelog"}]))),n.current&&(n.current.empty(),PC(n.current))},[]);return Rt("div",{className:"full-calendar-changelog-wrapper",children:[Rt("div",{className:"full-calendar-changelog-header",children:[Rt("button",{onClick:e,children:"<"}),Rt("div",{className:"u-flex-grow-1",ref:t})]}),r.map((e,t)=>Rt(TT,{version:e,isInitiallyOpen:0===t},e.version)),!s&&Rt("div",{style:{textAlign:"center",margin:"20px 0"},children:[c&&Rt("div",{style:{color:"var(--text-error)",marginBottom:"10px"},children:Ce("settings.changelog.loadOlder.errorOffline")}),Rt("button",{onClick:()=>{(async()=>{o(!0),u(!1);try{let e=await(0,DW.requestUrl)("https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/changelogs.json");if(200===e.status){let t=e.json;a([...hA,...t]),l(!0)}else u(!0)}catch(e){console.error("Failed to load older changelogs",e),u(!0)}finally{o(!1)}})()},disabled:i,children:Ce(i?"settings.changelog.loadOlder.loading":"settings.changelog.loadOlder.button")})]}),Rt("div",{ref:n})]})}});function yg(e,t){return`${Math.round("F"===t?9*e/5+32:e)}°${t}`}function pA(e,t,n){return`${Math.round("F"===n?9*e/5+32:e)}-${Math.round("F"===n?9*t/5+32:t)}°${n}`}async function NC(e,t,n,r){let a=`${e.toFixed(4)},${t.toFixed(4)},${n},${r}`;if(Yte.has(a))return Yte.get(a)||null;try{let i=`https://api.open-meteo.com/v1/forecast?latitude=${e}&longitude=${t}&daily=weather_code,temperature_2m_max,temperature_2m_min&hourly=temperature_2m,relative_humidity_2m,apparent_temperature,precipitation_probability,weather_code,wind_speed_10m&timezone=auto&start_date=${n}&end_date=${r}`,o=(await(0,Zte.requestUrl)(i)).json,s=o?.daily;if(!s||!s.time)return null;let l={};if(o.hourly&&o.hourly.time){let e=o.hourly;for(let t=0;t<e.time.length;t++){let n=e.time[t];if(!n)continue;let r=n.substring(0,10),a=n.substring(11,16),i=e.temperature_2m[t],o=e.apparent_temperature[t],s=e.relative_humidity_2m[t],c=e.precipitation_probability[t],u=e.weather_code[t],d=e.wind_speed_10m[t];if(void 0===i||void 0===o||void 0===s||void 0===c||void 0===u||void 0===d)continue;let p=h4e[u],h=Ce(p?p.i18nKey:"settings.weather.conditions.unknown"),f=p?.emoji||"❓";l[r]||(l[r]=[]),l[r].push({time:a,temp:i,apparentTemp:o,humidity:s,precipProb:c,windSpeed:d,emoji:f,desc:h})}}let c={};for(let e=0;e<s.time.length;e++){let t=s.time[e],n=s.weather_code[e],r=s.temperature_2m_max[e],a=s.temperature_2m_min[e];if(void 0===t||void 0===n||void 0===r||void 0===a)continue;let i=h4e[n],o=Ce(i?i.i18nKey:"settings.weather.conditions.unknown"),u=i?.emoji||"❓";c[t]={emoji:u,desc:o,maxTemp:r,minTemp:a,hourly:l[t]}}return Yte.set(a,c),c}catch(e){return console.error("Failed to fetch weather forecast",e),null}}async function p4e(e){if(!e||!e.trim())return null;try{let t=`https://geocoding-api.open-meteo.com/v1/search?name=${encodeURIComponent(e)}&count=1&format=json`,n=(await(0,Zte.requestUrl)(t)).json?.results;if(n&&n.length>0&&n[0]){let{latitude:e,longitude:t}=n[0];return{latitude:e,longitude:t}}}catch(e){console.error("Weather geocoding failed",e)}return null}var Zte,h4e,Yte,G_,LW,WC=kr(()=>{Zte=require("obsidian"),Zo(),h4e={0:{emoji:"☀️",i18nKey:"settings.weather.conditions.clearSky"},1:{emoji:"🌤️",i18nKey:"settings.weather.conditions.mainlyClear"},2:{emoji:"⛅",i18nKey:"settings.weather.conditions.partlyCloudy"},3:{emoji:"☁️",i18nKey:"settings.weather.conditions.overcast"},45:{emoji:"🌫️",i18nKey:"settings.weather.conditions.fog"},48:{emoji:"🌫️",i18nKey:"settings.weather.conditions.depositingRimeFog"},51:{emoji:"🌧️",i18nKey:"settings.weather.conditions.lightDrizzle"},53:{emoji:"🌧️",i18nKey:"settings.weather.conditions.moderateDrizzle"},55:{emoji:"🌧️",i18nKey:"settings.weather.conditions.denseDrizzle"},56:{emoji:"🌧️",i18nKey:"settings.weather.conditions.lightFreezingDrizzle"},57:{emoji:"🌧️",i18nKey:"settings.weather.conditions.denseFreezingDrizzle"},61:{emoji:"🌧️",i18nKey:"settings.weather.conditions.slightRain"},63:{emoji:"🌧️",i18nKey:"settings.weather.conditions.moderateRain"},65:{emoji:"🌧️",i18nKey:"settings.weather.conditions.heavyRain"},66:{emoji:"🌧️",i18nKey:"settings.weather.conditions.lightFreezingRain"},67:{emoji:"🌧️",i18nKey:"settings.weather.conditions.heavyFreezingRain"},71:{emoji:"❄️",i18nKey:"settings.weather.conditions.slightSnowFall"},73:{emoji:"❄️",i18nKey:"settings.weather.conditions.moderateSnowFall"},75:{emoji:"❄️",i18nKey:"settings.weather.conditions.heavySnowFall"},77:{emoji:"❄️",i18nKey:"settings.weather.conditions.snowGrains"},80:{emoji:"🌧️",i18nKey:"settings.weather.conditions.slightRainShowers"},81:{emoji:"🌧️",i18nKey:"settings.weather.conditions.moderateRainShowers"},82:{emoji:"🌧️",i18nKey:"settings.weather.conditions.violentRainShowers"},85:{emoji:"❄️",i18nKey:"settings.weather.conditions.slightSnowShowers"},86:{emoji:"❄️",i18nKey:"settings.weather.conditions.heavySnowShowers"},95:{emoji:"⛈️",i18nKey:"settings.weather.conditions.thunderstorm"},96:{emoji:"⛈️",i18nKey:"settings.weather.conditions.thunderstormWithSlightHail"},99:{emoji:"⛈️",i18nKey:"settings.weather.conditions.thunderstormWithHeavyHail"}},Yte=new Map}),m4e=kr(()=>{G_=require("obsidian"),Wo(),WC(),Zo(),LW=class extends G_.Modal{constructor(e,t){super(e.app),this.plugin=e,this.onChange=t,this.debounceTimeout=null}onOpen(){this.contentEl.empty(),this.titleEl.setText(Ce("settings.weather.modal.title")),new G_.Setting(this.contentEl).setName(Ce("settings.weather.modal.hideToggle.label")).setDesc(Ce("settings.weather.modal.hideToggle.description")).addToggle(e=>{e.setValue(Qe.getSettings().weatherHide??!1).onChange(async e=>{Qe.getSettings().weatherHide=e,await Qe.saveSettings(),this.onChange()})}),new G_.Setting(this.contentEl).setName(Ce("settings.weather.modal.unit.label")).setDesc(Ce("settings.weather.modal.unit.description")).addDropdown(e=>{e.addOption("C",Ce("settings.weather.modal.unit.celsius")).addOption("F",Ce("settings.weather.modal.unit.fahrenheit")).setValue(Qe.getSettings().weatherUnit||"C").onChange(async e=>{Qe.getSettings().weatherUnit=e,await Qe.saveSettings(),this.onChange()})}),new G_.Setting(this.contentEl).setName(Ce("settings.weather.modal.inputMode.label")).setDesc(Ce("settings.weather.modal.inputMode.description")).addDropdown(e=>{e.addOption("city",Ce("settings.weather.modal.inputMode.city")).addOption("coords",Ce("settings.weather.modal.inputMode.coords")).setValue(Qe.getSettings().weatherInputMode||"city").onChange(async e=>{this.debounceTimeout&&(window.clearTimeout(this.debounceTimeout),this.debounceTimeout=null),Qe.getSettings().weatherInputMode=e,await Qe.saveSettings(),this.renderDynamicSettings(),this.onChange()})}),this.dynamicContainer=this.contentEl.createDiv(),this.renderDynamicSettings()}renderDynamicSettings(){if(this.dynamicContainer.empty(),"coords"===(Qe.getSettings().weatherInputMode||"city"))this.createCoordinateSetting(this.dynamicContainer,"settings.weather.modal.latitude.label","settings.weather.modal.latitude.description","settings.weather.modal.latitude.placeholder","weatherLatitude"),this.createCoordinateSetting(this.dynamicContainer,"settings.weather.modal.longitude.label","settings.weather.modal.longitude.description","settings.weather.modal.longitude.placeholder","weatherLongitude");else{let e=new G_.Setting(this.dynamicContainer).setName(Ce("settings.weather.modal.city.label")).setDesc(Ce("settings.weather.modal.city.description")),t=(e.descEl||e.settingEl).createDiv({cls:"ofc-weather-status"}),n=()=>{let e=Qe.getSettings();e&&(null!==e.weatherLatitude&&void 0!==e.weatherLatitude&&null!==e.weatherLongitude&&void 0!==e.weatherLongitude&&"number"==typeof e.weatherLatitude&&"number"==typeof e.weatherLongitude?(t.setText(Ce("settings.weather.modal.city.status.resolved",{latitude:e.weatherLatitude.toFixed(4),longitude:e.weatherLongitude.toFixed(4)})),t.className="ofc-weather-status is-success"):e.weatherCity?(t.setText(Ce("settings.weather.modal.city.status.unresolved")),t.className="ofc-weather-status is-warning"):(t.setText(Ce("settings.weather.modal.city.status.empty")),t.className="ofc-weather-status is-muted"))};n(),e.addText(e=>{e.setPlaceholder(Ce("settings.weather.modal.city.placeholder")).setValue(Qe.getSettings().weatherCity||"").onChange(e=>{if(Qe.getSettings().weatherCity=e,Qe.saveSettings(),this.debounceTimeout&&window.clearTimeout(this.debounceTimeout),!e.trim())return Qe.getSettings().weatherLatitude=null,Qe.getSettings().weatherLongitude=null,n(),Qe.saveSettings(),void this.onChange();t.setText(Ce("settings.weather.modal.city.status.resolving")),t.className="ofc-weather-status is-accent",this.debounceTimeout=window.setTimeout(()=>{this.resolveCityCoordinates(e,n)},1e3)}),e.inputEl.addEventListener("blur",()=>{let t=e.getValue();this.debounceTimeout&&(window.clearTimeout(this.debounceTimeout),this.debounceTimeout=null),this.resolveCityCoordinates(t,n)})})}}createCoordinateSetting(e,t,n,r,a){new G_.Setting(e).setName(Ce(t)).setDesc(Ce(n)).addText(e=>{let t=Qe.getSettings()[a];e.setPlaceholder(Ce(r)).setValue(null!=t?String(t):"").onChange(e=>{let t=Qe.getSettings(),n=parseFloat(e);isNaN(n)?e.trim()||(t[a]=null):t[a]=n}),e.inputEl.addEventListener("blur",()=>{(async()=>{await Qe.saveSettings(),this.onChange()})()})})}async resolveCityCoordinates(e,t){try{let n=e.trim()?await p4e(e):null,r=Qe.getSettings();r&&"city"===r.weatherInputMode&&r.weatherCity===e&&(n?(r.weatherLatitude=n.latitude,r.weatherLongitude=n.longitude):(r.weatherLatitude=null,r.weatherLongitude=null),t(),await Qe.saveSettings(),this.onChange())}catch(n){console.error("Weather geocoding failed",n);let r=Qe.getSettings();r&&"city"===r.weatherInputMode&&r.weatherCity===e&&(r.weatherLatitude=null,r.weatherLongitude=null,t(),await Qe.saveSettings(),this.onChange())}}onClose(){this.debounceTimeout&&window.clearTimeout(this.debounceTimeout),this.dynamicContainer.empty(),this.contentEl.empty()}}});function g4e(e,t,n){let r=new v4e.Setting(e).setName(Ce("settings.weather.label")).setDesc(Ce("settings.weather.description")).addExtraButton(e=>{e.setIcon("gear").setTooltip(Ce("settings.weather.configTooltip")).onClick(()=>{new LW(t,()=>{i(),n()}).open()})}),a=(r.descEl||r.settingEl).createDiv({cls:"ofc-weather-status"}),i=()=>{let e=Qe.getSettings();if(e)if(e.weatherHide)a.setText(Ce("settings.weather.status.hidden")),a.className="ofc-weather-status is-muted";else if(null!==e.weatherLatitude&&void 0!==e.weatherLatitude&&null!==e.weatherLongitude&&void 0!==e.weatherLongitude&&"number"==typeof e.weatherLatitude&&"number"==typeof e.weatherLongitude){let t="coords"===e.weatherInputMode?Ce("settings.weather.modal.inputMode.coords"):e.weatherCity||Ce("settings.weather.status.cityFallback");a.setText(Ce("settings.weather.status.enabled",{mode:t,latitude:e.weatherLatitude.toFixed(4),longitude:e.weatherLongitude.toFixed(4)})),a.className="ofc-weather-status is-success"}else a.setText(Ce("settings.weather.status.noLocation")),a.className="ofc-weather-status is-warning"};i()}var v4e,y4e=kr(()=>{v4e=require("obsidian"),Wo(),m4e(),Zo()}),M4e={};function dEt(e,t,n){let r={...b4e.DESKTOP};Qe.getSettings().enableAdvancedCategorization&&(r.resourceTimelineWeek="settings.viewOptions.timelineWeek",r.resourceTimelineDay="settings.viewOptions.timelineDay"),new FC.Setting(e).setName(Ce("settings.general.desktopInitialView.label")).setDesc(Zl(Ce("settings.general.desktopInitialView.description"),[{text:"Display and behavior",path:"user/settings/fc_config"},{text:"Views guide",path:"user/views/"}])).addDropdown(e=>{Object.entries(r).forEach(([t,n])=>{e.addOption(t,Ce(n))}),e.setValue(Qe.getSettings().initialView.desktop),e.onChange(async e=>{Qe.getSettings().initialView.desktop=e,await Qe.saveSettings()})}),new FC.Setting(e).setName(Ce("settings.general.mobileInitialView.label")).setDesc(Zl(Ce("settings.general.mobileInitialView.description"),[{text:"Display and behavior",path:"user/settings/fc_config"},{text:"Views guide",path:"user/views/"}])).addDropdown(e=>{Object.entries(b4e.MOBILE).forEach(([t,n])=>{e.addOption(t,Ce(n))}),e.setValue(Qe.getSettings().initialView.mobile),e.onChange(async e=>{Qe.getSettings().initialView.mobile=e,await Qe.saveSettings()})}),new FC.Setting(e).setName(Ce("settings.general.displayTimezone.label")).setDesc(Zl(Ce("settings.general.displayTimezone.description"),[{text:"Timezone support",path:"user/events/timezones"}])).addDropdown(e=>{Intl.supportedValuesOf("timeZone").forEach(t=>{e.addOption(t,t)}),e.setValue(Qe.getSettings().displayTimezone||Intl.DateTimeFormat().resolvedOptions().timeZone),e.onChange(async e=>{Qe.getSettings().displayTimezone=e,await Qe.saveSettings()})}),new FC.Setting(e).setName(Ce("settings.general.clickToCreateEvent.label")).setDesc(Zl(Ce("settings.general.clickToCreateEvent.description"),[{text:"Interactions and gestures",path:"user/features/interactions"},{text:"Event management",path:"user/events/manage"}])).addToggle(e=>{e.setValue(Qe.getSettings().clickToCreateEventFromMonthView),e.onChange(async e=>{Qe.getSettings().clickToCreateEventFromMonthView=e,await Qe.saveSettings()})}),g4e(e,t,n)}Zs(M4e,{renderGeneralSettings:()=>dEt});var FC,b4e,x4e=kr(()=>{Wo(),FC=require("obsidian"),Zo(),qp(),y4e(),b4e={DESKTOP:{timeGridDay:"settings.viewOptions.day",timeGridWeek:"settings.viewOptions.week",dayGridMonth:"settings.viewOptions.month",listWeek:"settings.viewOptions.list"},MOBILE:{dayGridMonth:"settings.viewOptions.month",timeGrid3Days:"settings.viewOptions.threeDays",timeGridDay:"settings.viewOptions.day",listWeek:"settings.viewOptions.list"}}}),_4e={};function fEt(e,t,n){new PW.Setting(e).setName(Ce("settings.reminders.title")).setHeading().setDesc(Wh([{text:"Reminders and notifications",path:"user/features/reminders"},{text:"Troubleshooting",path:"user/guides/troubleshooting"}])),new PW.Setting(e).setName(Ce("settings.reminders.enableDefault.label")).setDesc(Zl(Ce("settings.reminders.enableDefault.description"),[{text:"Reminders and notifications",path:"user/features/reminders"}])).addToggle(e=>{e.setValue(Qe.getSettings().enableDefaultReminder),e.onChange(async e=>{Qe.getSettings().enableDefaultReminder=e,await Qe.saveSettings(),n()})}),Qe.getSettings().enableDefaultReminder&&new PW.Setting(e).setName(Ce("settings.reminders.defaultTime.label")).setDesc(Ce("settings.reminders.defaultTime.description")).addText(e=>{e.inputEl.type="number",e.setValue(String(Qe.getSettings().defaultReminderMinutes)),e.onChange(async e=>{let t=parseInt(e,10);!isNaN(t)&&t>=0&&(Qe.getSettings().defaultReminderMinutes=t,await Qe.saveSettings())})})}Zs(_4e,{renderRemindersSettings:()=>fEt});var PW,BC,IW,$te,z4e=kr(()=>{Wo(),PW=require("obsidian"),Zo(),qp()}),A4e=kr(()=>{BC=require("obsidian"),B5(),h1(),qW(),RW(),LC(),Wo(),Zo(),IW=class extends BC.Modal{constructor(e,t){super(e),this.reactRoot=null,this.plugin=t}onOpen(){(()=>{let{contentEl:e}=this;e.empty(),e.addClass("full-calendar-whats-new-modal");let t=e.createDiv("full-calendar-whats-new-body"),n=t.createDiv("full-calendar-whats-new-value"),r=n.createDiv("full-calendar-whats-new-header-row");r.createEl("h2",{text:Ce("settings.changelog.modal.title")});let a=r.createDiv("full-calendar-whats-new-header-actions");new BC.ButtonComponent(a).setButtonText(Ce("settings.changelog.modal.seeAllButton")).onClick(()=>{this.close(),Qe.showChangelog();let e=this.plugin.app.setting;e.open(),e.openTabById(this.plugin.manifest.id)});let i=n.createDiv("full-calendar-whats-new-content").createDiv("full-calendar-whats-new-react-root");this.reactRoot=ug(i);let o=hA[0];this.reactRoot.render(io("div",{},io(TT,{version:o,isInitiallyOpen:!0,embedded:!0})));let s=t.createDiv("full-calendar-whats-new-donation-footer");s.createEl("p",{text:Ce("settings.changelog.modal.donationMessage"),cls:"full-calendar-whats-new-donation-message"});let l=s.createDiv("full-calendar-whats-new-donation-actions");new BC.ButtonComponent(l).setButtonText(Ce("settings.changelog.modal.donationButton")).setCta().onClick(()=>{window.open("https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/SustainabilityEthics/","_blank")})})()}onClose(){this.reactRoot?.unmount(),this.reactRoot=null;let{contentEl:e}=this;e.empty()}}}),w4e=kr(()=>{$te={version:3,locale:"en",categoryParsing:{spokenDelimiterRegex:"\\s+(?:dash|hyphen)\\s+",spokenDelimiterFlags:"gi",explicitCategoryRegex:"\\bcategory\\s+(.+)$",explicitCategoryFlags:"i"},rules:[{name:"navigate_week",regex:"^(?:open|view|show)\\s+(?:the\\s+)?(?:weekly|week)\\s+view\\b",flags:"i",actions:["SET_INTENT(NAVIGATE_WEEK)"]},{name:"navigate_month",regex:"^(?:open|view|show)\\s+(?:the\\s+)?(?:monthly|month)\\s+view\\b",flags:"i",actions:["SET_INTENT(NAVIGATE_MONTH)"]},{name:"navigate_day",regex:"^(?:open|view|show)\\s+(?:the\\s+)?(?:daily|day)\\s+view\\b",flags:"i",actions:["SET_INTENT(NAVIGATE_DAY)"]},{name:"navigate_calendar",regex:"^(?:open|show)\\s+(?:the\\s+)?calendars?\\b",flags:"i",actions:["SET_INTENT(OPEN_CALENDAR)"]},{name:"navigate_sidebar",regex:"^(?:open|show)\\s+(?:the\\s+)?sidebars?\\b",flags:"i",actions:["SET_INTENT(OPEN_SIDEBAR)"]},{name:"open_settings",regex:"^(?:open|show)\\s+(?:the\\s+)?settings?\\b",flags:"i",actions:["SET_INTENT(OPEN_SETTINGS)"]},{name:"open_chrono",regex:"^(?:open|show|launch)\\s+(?:the\\s+)?(?:chrono|analyser|analyzer|analysis|insights)\\b",flags:"i",actions:["SET_INTENT(OPEN_CHRONO)"]},{name:"show_changelog",regex:"^(?:show|open|view)\\s+(?:the\\s+)?(?:changelog|what'?s\\s+new|release\\s+notes)\\b",flags:"i",actions:["SET_INTENT(SHOW_CHANGELOG)"]},{name:"show_milestones",regex:"^(?:show|open|view)\\s+(?:the\\s+)?(?:milestones?|achievements?)\\b",flags:"i",actions:["SET_INTENT(SHOW_MILESTONES)"]},{name:"reset_cache",regex:"^(?:reset|clear|flush)\\s+(?:the\\s+)?(?:event\\s+)?cache\\b",flags:"i",actions:["SET_INTENT(RESET_CACHE)"]},{name:"revalidate_remote",regex:"^(?:revalidate|refresh|reload|re-sync)\\s+(?:the\\s+)?(?:remote\\s+)?calendars?\\b",flags:"i",actions:["SET_INTENT(REVALIDATE_REMOTE)"]},{name:"sync_activitywatch",regex:"^(?:sync|run)\\s+(?:activitywatch|activity\\s+watch|aw)\\b",flags:"i",actions:["SET_INTENT(SYNC_ACTIVITYWATCH)"]},{name:"sync_fcr_reminder",regex:"^(?:sync|run|update)\\s+(?:fcr\\s+)?(?:reminder\\s+)?companion\\b",flags:"i",actions:["SET_INTENT(SYNC_FCR_REMINDER)"]},{name:"goto_date",regex:"^(?:go\\s+to|goto|jump\\s+to|navigate\\s+to)\\b",flags:"i",actions:["SET_INTENT(GOTO_DATE)"]},{name:"new_event",regex:"^(?:new|create|add)\\s+(?:an?\\s+)?event\\b",flags:"i",actions:[]},{name:"next_weekday",regex:"\\bnext\\s+(monday|tuesday|wednesday|thursday|friday|saturday|sunday)\\b",flags:"i",actions:["NEXT_WEEKDAY($1)"]},{name:"next_occurring_day",regex:"\\bon\\s+(\\d{1,2})(?:st|nd|rd|th)?\\b",flags:"i",actions:["SET_NEXT_OCCURRING_DAY($1)"]},{name:"duration_last_hrs",regex:"\\bfor\\s+(?:the\\s+)?last\\s+(\\d+)\\s+(?:hours?|hrs?)\\b",flags:"i",actions:["SUBTRACT_HOURS($1)","ADD_DURATION($1,0)"]},{name:"duration_last_mins",regex:"\\bfor\\s+(?:the\\s+)?last\\s+(\\d+)\\s+(?:minutes?|mins?)\\b",flags:"i",actions:["SUBTRACT_MINUTES($1)","ADD_DURATION(0,$1)"]},{name:"duration_next_hrs",regex:"\\bfor\\s+(?:the\\s+)?next\\s+(\\d+)\\s+(?:hours?|hrs?)\\b",flags:"i",actions:["ADD_DURATION($1,0)"]},{name:"duration_next_mins",regex:"\\bfor\\s+(?:the\\s+)?next\\s+(\\d+)\\s+(?:minutes?|mins?)\\b",flags:"i",actions:["ADD_DURATION(0,$1)"]},{name:"duration_hrs",regex:"\\bfor\\s+(\\d+)\\s+(?:hrs?|hours?)\\b",flags:"i",actions:["ADD_DURATION($1,0)"]},{name:"duration_mins",regex:"\\bfor\\s+(\\d+)\\s+(?:minutes?|mins?)\\b",flags:"i",actions:["ADD_DURATION(0,$1)"]},{name:"time_noon",regex:"\\bat\\s+noon\\b",flags:"i",actions:['SET_TIME(12,0,"")']},{name:"time_midnight",regex:"\\bat\\s+midnight\\b",flags:"i",actions:['SET_TIME(0,0,"")']},{name:"in_minutes",regex:"\\bin\\s+(\\d+)\\s+(?:minutes?|mins?)\\b",flags:"i",actions:["ADD_MINUTES($1)"]},{name:"in_hours",regex:"\\bin\\s+(\\d+)\\s+(?:hours?|hrs?)\\b",flags:"i",actions:["ADD_HOURS($1)"]},{name:"in_days",regex:"\\bin\\s+(\\d+)\\s+days?\\b",flags:"i",actions:["ADD_DAYS($1)"]},{name:"in_weeks",regex:"\\bin\\s+(\\d+)\\s+weeks?\\b",flags:"i",actions:["ADD_WEEKS($1)"]},{name:"time_range_ampm",regex:"\\bfrom\\s+(\\d{1,2}(?::\\d{2})?|\\d{3,4})\\s*(am|pm)\\s+to\\s+(\\d{1,2}(?::\\d{2})?|\\d{3,4})\\s*(am|pm)\\b",flags:"i",actions:["SET_TIME_RANGE($1,$2,$3,$4)"]},{name:"time_exact_ampm",regex:"\\b(?:at|from)\\s+(\\d{1,2}(?::\\d{2})?|\\d{3,4})\\s*(am|pm)\\b",flags:"i",actions:["SET_TIME_TOKEN($1,$2)"]},{name:"next_week",regex:"\\bnext\\s+week\\b",flags:"i",actions:["ADD_DAYS(7)"]},{name:"next_month",regex:"\\bnext\\s+month\\b",flags:"i",actions:["ADD_DAYS(30)"]},{name:"day_after_tomorrow",regex:"\\bday\\s+after\\s+tomorrow\\b",flags:"i",actions:["ADD_DAYS(2)"]},{name:"tomorrow",regex:"\\b(tomorrow)\\b",flags:"i",actions:["ADD_DAYS(1)"]},{name:"today",regex:"\\b(today)\\b",flags:"i",actions:["ADD_DAYS(0)"]},{name:"yesterday",regex:"\\b(yesterday)\\b",flags:"i",actions:["SUBTRACT_DAYS(1)"]},{name:"target_calendar",regex:"\\bin\\s+([\\w\\-\\/ ]{2,50})\\s+calendar\\b",flags:"i",actions:["SET_TARGET($1)"]},{name:"recur_daily",regex:"\\b(?:every\\s+day|daily)\\b",flags:"i",actions:["SET_RECURRENCE(DAILY,1)"]},{name:"recur_weekly_weekday",regex:"\\bevery\\s+(monday|tuesday|wednesday|thursday|friday|saturday|sunday)\\b",flags:"i",actions:["SET_RECURRENCE(WEEKLY,1,$1)"]}]}});function O4e(e){try{let e=(0,mA.getLanguage)();return"string"==typeof e&&e.length>0?e:"en"}catch{return"en"}}function T4e(e){return pEt.includes(e)}function Jte(e,t,n){let r=(0,mA.normalizePath)(`${e.vault.configDir}/plugins/${t}/nlp/locales`);return{payloadFolder:r,payloadFile:(0,mA.normalizePath)(`${r}/${n}.json`)}}async function S4e(e,t,n){let{payloadFolder:r,payloadFile:a}=Jte(e,t,n),i=`${mEt}/${n}.json`,o=(await(0,mA.requestUrl)(i)).text,s=JSON.parse(o);return await e.vault.adapter.exists(r)||await e.vault.adapter.mkdir(r),await e.vault.adapter.write(a,o),Kte.set(n,s),s}async function k4e(e,t){let n=O4e(e);if(!T4e(n)||"en"===n)return!1;let{payloadFile:r}=Jte(e,t,n);return!!await e.vault.adapter.exists(r)&&(await S4e(e,t,n),!0)}async function C4e(e,t){let n=O4e(e),r=T4e(n)?n:"en",a=Kte.get(r);if(a)return a;let{payloadFile:i}=Jte(e,t,r);try{let n="";if(!await e.vault.adapter.exists(i))return await S4e(e,t,r);n=await e.vault.adapter.read(i);let a=JSON.parse(n);return Kte.set(r,a),a}catch{return $te}}var mA,pEt,mEt,Kte,Qte=kr(()=>{mA=require("obsidian"),w4e(),pEt=["en","de","fr","it","es"],mEt="https://fcr-cdn.plugin-fcr.workers.dev/assets/nlp",Kte=new Map([["en",$te]])}),q4e={};async function E4e(e){let t=[];for(let n of e)try{let e=await n.refresh();t.push({id:n.id,status:e?"refreshed":"skipped"})}catch(e){console.warn(`[Full Calendar] Versioned asset refresh failed for "${n.id}".`,e),t.push({id:n.id,status:"failed",error:e})}return t}async function vEt(e,t){return E4e([{id:"i18n-current-locale",refresh:()=>Oxe(e,t)},{id:"nlp-current-locale",refresh:()=>k4e(e,t)}])}Zs(q4e,{refreshRemoteAssetsForVersionUpdate:()=>vEt,runVersionedAssetRefreshTasks:()=>E4e});var D4e=kr(()=>{Zo(),Qte()}),tre={};function gEt(e){let t=e.manifest.version;e.app.workspace.onLayoutReady(async()=>{if(null===Qe.getSettings().currentVersion||Qe.getSettings().currentVersion!==t){new IW(e.app,e).open();let{refreshRemoteAssetsForVersionUpdate:n}=await Promise.resolve().then(()=>(D4e(),q4e));await n(e.app,e.manifest.id),Qe.getSettings().currentVersion=t,await Qe.saveSettings()}})}function yEt(e,t,n){let r=e.createDiv("full-calendar-whats-new-container"),a=hA[0],i=r.createDiv("full-calendar-whats-new-header");new ere.Setting(i).setName(Ce("settings.changelog.whatsNew")).setHeading().setDesc(Ce("settings.changelog.versionWithNumber",{version:a.version})),new ere.Setting(i).addExtraButton(e=>{e.setIcon("ellipsis").setTooltip(Ce("settings.changelog.viewFull")).onClick(n)}),r.createEl("hr",{cls:"settings-view-new-divider"});let o=ug(r.createDiv("full-calendar-whats-new-list"));t.registerReactRoot(o),o.render(io(TT,{version:a,isInitiallyOpen:!0,embedded:!0}))}Zs(tre,{checkAndShowWhatsNew:()=>gEt,renderWhatsNew:()=>yEt});var ere,rre=kr(()=>{Wo(),ere=require("obsidian"),qW(),LC(),Zo(),A4e(),B5(),h1(),RW()}),R4e={};function MEt(e,t,n){new Oh.Setting(e).setName(Ce("settings.appearance.title")).setHeading().setDesc(Wh([{text:"Display and behavior",path:"user/settings/fc_config"},{text:"Views guide",path:"user/views/"}])),new Oh.Setting(e).setName(Ce("settings.appearance.firstDay.label")).setDesc(Zl(Ce("settings.appearance.firstDay.description"),[{text:"Display and behavior",path:"user/settings/fc_config"}])).addDropdown(e=>{bEt.forEach((t,n)=>{e.addOption(n.toString(),Ce(t))}),e.setValue(Qe.getSettings().firstDay.toString()),e.onChange(async e=>{Qe.getSettings().firstDay=Number(e),await Qe.saveSettings()})}),new Oh.Setting(e).setName(Ce("settings.appearance.timeFormat24h.label")).setDesc(Zl(Ce("settings.appearance.timeFormat24h.description"),[{text:"Display and behavior",path:"user/settings/fc_config"}])).addToggle(e=>{e.setValue(Qe.getSettings().timeFormat24h),e.onChange(async e=>{Qe.getSettings().timeFormat24h=e,await Qe.saveSettings()})}),new Oh.Setting(e).setName(Ce("settings.appearance.milestones.label")).setDesc(Zl(Ce("settings.appearance.milestones.description"),[{text:"Milestones guide",path:"user/features/milestones/"}])).addExtraButton(e=>{e.setIcon("gear").setTooltip(Ce("settings.appearance.milestones.openButton")).onClick(()=>{Qe.showMilestones()})}),new Oh.Setting(e).setName(Ce("settings.appearance.businessHours.enable.label")).setDesc(Zl(Ce("settings.appearance.businessHours.enable.description"),[{text:"Display and behavior",path:"user/settings/fc_config"}])).addToggle(e=>{e.setValue(Qe.getSettings().businessHours.enabled),e.onChange(async e=>{Qe.getSettings().businessHours.enabled=e,await Qe.saveSettings(),n()})}),Qe.getSettings().businessHours.enabled&&(new Oh.Setting(e).setName(Ce("settings.appearance.businessHours.days.label")).setDesc(Ce("settings.appearance.businessHours.days.description")).addDropdown(e=>{e.addOption("1,2,3,4,5",Ce("settings.appearance.businessHours.options.mondayFriday")).addOption("0,1,2,3,4,5,6",Ce("settings.appearance.businessHours.options.everyDay")).addOption("1,2,3,4",Ce("settings.appearance.businessHours.options.mondayThursday")).addOption("2,3,4,5,6",Ce("settings.appearance.businessHours.options.tuesdaySaturday"));let t=Qe.getSettings().businessHours.daysOfWeek.join(",");e.setValue(t),e.onChange(async e=>{Qe.getSettings().businessHours.daysOfWeek=e.split(",").map(Number),await Qe.saveSettings()})}).settingEl.addClass("ofc-indented-setting"),new Oh.Setting(e).setName(Ce("settings.appearance.businessHours.startTime.label")).setDesc(Ce("settings.appearance.businessHours.startTime.description")).addText(e=>{e.setValue(Qe.getSettings().businessHours.startTime),e.onChange(async e=>{/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/.test(e)&&(Qe.getSettings().businessHours.startTime=e,await Qe.saveSettings())})}).settingEl.addClass("ofc-indented-setting"),new Oh.Setting(e).setName(Ce("settings.appearance.businessHours.endTime.label")).setDesc(Ce("settings.appearance.businessHours.endTime.description")).addText(e=>{e.setValue(Qe.getSettings().businessHours.endTime),e.onChange(async e=>{/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/.test(e)&&(Qe.getSettings().businessHours.endTime=e,await Qe.saveSettings())})}).settingEl.addClass("ofc-indented-setting")),new Oh.Setting(e).setName(Ce("settings.appearance.viewTimeRange.title")).setHeading().setDesc(Wh([{text:"Display and behavior",path:"user/settings/fc_config"}])),new Oh.Setting(e).setName(Ce("settings.appearance.viewTimeRange.slotMinTime.label")).setDesc(Ce("settings.appearance.viewTimeRange.slotMinTime.description")).addText(e=>{e.setValue(Qe.getSettings().slotMinTime||"00:00"),e.onChange(async e=>{/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/.test(e)&&(Qe.getSettings().slotMinTime=e,await Qe.saveSettings())})}),new Oh.Setting(e).setName(Ce("settings.appearance.viewTimeRange.slotMaxTime.label")).setDesc(Ce("settings.appearance.viewTimeRange.slotMaxTime.description")).addText(e=>{e.setValue(Qe.getSettings().slotMaxTime||"24:00"),e.onChange(async e=>{/^([01]?[0-9]|2[0-4]):[0-5][0-9]$/.test(e)&&(Qe.getSettings().slotMaxTime=e,await Qe.saveSettings())})}),new Oh.Setting(e).setName(Ce("settings.appearance.viewTimeRange.allDaySlot.label")).setDesc(Ce("settings.appearance.viewTimeRange.allDaySlot.description")).addToggle(e=>{e.setValue(Qe.getSettings().allDaySlot??!0),e.onChange(async e=>{Qe.getSettings().allDaySlot=e,await Qe.saveSettings(),n()})}),new Oh.Setting(e).setName(Ce("settings.appearance.viewTimeRange.timeGridDayHeaderFormat.label")).setDesc(Ce("settings.appearance.viewTimeRange.timeGridDayHeaderFormat.description")).addDropdown(e=>{e.addOption("ddmm-day",Ce("settings.appearance.viewTimeRange.timeGridDayHeaderFormat.options.ddmmDay")),e.addOption("mmdd-day",Ce("settings.appearance.viewTimeRange.timeGridDayHeaderFormat.options.mmddDay")),e.addOption("day-ddmm",Ce("settings.appearance.viewTimeRange.timeGridDayHeaderFormat.options.dayDdmm")),e.addOption("day-mmdd",Ce("settings.appearance.viewTimeRange.timeGridDayHeaderFormat.options.dayMmdd")),e.addOption("ddmmyyyy-day",Ce("settings.appearance.viewTimeRange.timeGridDayHeaderFormat.options.ddmmyyyyDay")),e.addOption("mmddyyyy-day",Ce("settings.appearance.viewTimeRange.timeGridDayHeaderFormat.options.mmddyyyyDay")),e.setValue(Qe.getSettings().timeGridDayHeaderFormat||"day-mmdd"),e.onChange(async e=>{Qe.getSettings().timeGridDayHeaderFormat=e,await Qe.saveSettings(),n()})}),new Oh.Setting(e).setName(Ce("settings.appearance.dayVisibility.title")).setHeading().setDesc(Wh([{text:"Display and behavior",path:"user/settings/fc_config"}])),new Oh.Setting(e).setName(Ce("settings.appearance.dayVisibility.weekends.label")).setDesc(Ce("settings.appearance.dayVisibility.weekends.description")).addToggle(e=>{e.setValue(Qe.getSettings().weekends??!0),e.onChange(async e=>{Qe.getSettings().weekends=e,await Qe.saveSettings()})}),new Oh.Setting(e).setName(Ce("settings.appearance.dayVisibility.hiddenDays.label")).setDesc(Ce("settings.appearance.dayVisibility.hiddenDays.description")).addDropdown(e=>{e.addOption("[]",Ce("settings.appearance.dayVisibility.hiddenDays.options.showAll")),e.addOption("[0,6]",Ce("settings.appearance.dayVisibility.hiddenDays.options.hideWeekends")),e.addOption("[0]",Ce("settings.appearance.dayVisibility.hiddenDays.options.hideSunday")),e.addOption("[6]",Ce("settings.appearance.dayVisibility.hiddenDays.options.hideSaturday")),e.addOption("[1]",Ce("settings.appearance.dayVisibility.hiddenDays.options.hideMonday")),e.addOption("[2]",Ce("settings.appearance.dayVisibility.hiddenDays.options.hideTuesday")),e.addOption("[3]",Ce("settings.appearance.dayVisibility.hiddenDays.options.hideWednesday")),e.addOption("[4]",Ce("settings.appearance.dayVisibility.hiddenDays.options.hideThursday")),e.addOption("[5]",Ce("settings.appearance.dayVisibility.hiddenDays.options.hideFriday"));let t=JSON.stringify(Qe.getSettings().hiddenDays||[]);e.setValue(t),e.onChange(async e=>{try{Qe.getSettings().hiddenDays=JSON.parse(e),await Qe.saveSettings()}catch{}})}),new Oh.Setting(e).setName(Ce("settings.appearance.dayMaxEvents.label")).setDesc(Zl(Ce("settings.appearance.dayMaxEvents.description"),[{text:"Display and behavior",path:"user/settings/fc_config"}])).addDropdown(e=>{e.addOption("false",Ce("settings.appearance.dayMaxEvents.options.default")),e.addOption("true",Ce("settings.appearance.dayMaxEvents.options.unlimited")),e.addOption("1",Ce("settings.appearance.dayMaxEvents.options.one")),e.addOption("2",Ce("settings.appearance.dayMaxEvents.options.two")),e.addOption("3",Ce("settings.appearance.dayMaxEvents.options.three")),e.addOption("4",Ce("settings.appearance.dayMaxEvents.options.four")),e.addOption("5",Ce("settings.appearance.dayMaxEvents.options.five")),e.addOption("10",Ce("settings.appearance.dayMaxEvents.options.ten"));let t=(Qe.getSettings().dayMaxEvents??!1).toString();e.setValue(t),e.onChange(async e=>{Qe.getSettings().dayMaxEvents="true"===e||"false"!==e&&parseInt(e),await Qe.saveSettings()})}),new Oh.Setting(e).setName(Ce("settings.appearance.enableBackgroundEvents.label")).setDesc(Zl(Ce("settings.appearance.enableBackgroundEvents.description"),[{text:"Display and behavior",path:"user/settings/fc_config"}])).addToggle(e=>{e.setValue(Qe.getSettings().enableBackgroundEvents),e.onChange(async e=>{Qe.getSettings().enableBackgroundEvents=e,await Qe.saveSettings()})}),new Oh.Setting(e).setName(Ce("settings.appearance.showEventInStatusBar.label")).setDesc(Zl(Ce("settings.appearance.showEventInStatusBar.description"),[{text:"Display and behavior",path:"user/settings/fc_config"}])).addToggle(e=>{e.setValue(Qe.getSettings().showEventInStatusBar),e.onChange(async e=>{Qe.getSettings().showEventInStatusBar=e,await Qe.saveSettings()})}),new Oh.Setting(e).setName(Ce("settings.appearance.highlightCurrentOrNextEvent")).setDesc(Zl(Ce("settings.appearance.highlightCurrentOrNextEventDesc"),[{text:"Display and behavior",path:"user/settings/fc_config"}])).addToggle(e=>{e.setValue(Qe.getSettings().highlightCurrentOrNextEvent??!0),e.onChange(async e=>{Qe.getSettings().highlightCurrentOrNextEvent=e,await Qe.saveSettings(),n()})})}Zs(R4e,{renderAppearanceSettings:()=>MEt});var Oh,bEt,nre,NW,xEt,L4e=kr(()=>{Wo(),Oh=require("obsidian"),Zo(),qp(),bEt=["settings.weekdays.sunday","settings.weekdays.monday","settings.weekdays.tuesday","settings.weekdays.wednesday","settings.weekdays.thursday","settings.weekdays.friday","settings.weekdays.saturday"]}),P4e=kr(()=>{h1(),Wo(),Z0(),nre=({children:e,setting:t,onColorChange:n,onNameChange:r,deleteCalendar:a})=>Rt("div",{className:"setting-item",children:[Rt("button",{type:"button",onClick:a,className:"ofc-setting-delete-btn",children:"✕"}),Rt("div",{className:"setting-item-control u-flex-1",children:Rt("input",{type:"text",value:t.name||"",className:"ofc-setting-input",onChange:e=>r(e.target.value)})}),e,Rt("input",{type:"color",value:t.color,className:"ofc-setting-color-input",onChange:e=>n(e.target.value)})]}),NW=class e extends Em{constructor(e){super(e),this.debounceTimer=null,this.instancesListener=()=>{this.setState({sources:[...Qe.getProviderRegistry().getAllSources()]})},this.addSource=e=>{let t=this.state.sources.some(t=>t.id===e.id)?this.state.sources:[...this.state.sources,e];this.setState({sources:t},()=>this.saveImmediate(t))},this.getUsedDirectories=()=>this.state.sources.map(e=>"local"===e.type&&e.directory).filter(e=>!!e),this.updateSourceName=(e,t)=>{let n=[...this.state.sources];n[e]={...n[e],name:t},this.setState({sources:n},()=>this.saveDebounced(n))},this.state={sources:[...e.sources]}}static{this.DEBOUNCE_MS=500}componentDidMount(){this.props.plugin.app.workspace.on("full-calendar:instances-initialized",this.instancesListener)}componentDidUpdate(e){e.sources!==this.props.sources&&this.setState({sources:[...this.props.sources]})}componentWillUnmount(){this.props.plugin.app.workspace.off("full-calendar:instances-initialized",this.instancesListener),null!==this.debounceTimer&&(window.clearTimeout(this.debounceTimer),this.debounceTimer=null,this.props.submit(this.state.sources))}saveImmediate(e){null!==this.debounceTimer&&(window.clearTimeout(this.debounceTimer),this.debounceTimer=null),this.props.submit(e)}saveDebounced(t){null!==this.debounceTimer&&window.clearTimeout(this.debounceTimer),this.debounceTimer=window.setTimeout(()=>{this.debounceTimer=null,this.props.submit(t)},e.DEBOUNCE_MS)}render(){return Rt("div",{className:"u-w-full",children:this.state.sources.map((e,t)=>Rt(xEt,{setting:e,plugin:this.props.plugin,onNameChange:e=>this.updateSourceName(t,e),onColorChange:e=>{let n=[...this.state.sources.slice(0,t),{...this.state.sources[t],color:e},...this.state.sources.slice(t+1)];this.setState({sources:n},()=>this.saveDebounced(n))},deleteCalendar:()=>{let e=[...this.state.sources.slice(0,t),...this.state.sources.slice(t+1)];this.setState({sources:e},()=>this.saveImmediate(e))}},t))})}},xEt=({setting:e,onColorChange:t,onNameChange:n,deleteCalendar:r,plugin:a})=>{let i=Qe.getProviderRegistry(),o=e.id?i.getInstance(e.id):null,s={setting:e,onColorChange:t,onNameChange:n,deleteCalendar:r};if(o){if("function"!=typeof o.getSettingsRowComponent){console.warn("Full Calendar: Provider instance missing getSettingsRowComponent method. Using fallback display. Please reload the plugin.");let t=e.name||e.type||"Unknown";return Rt(nre,{...s,children:Rt("div",{className:"setting-item-control",children:Rt("span",{children:[t," calendar"]})})})}let t=o.getSettingsRowComponent();return Rt(nre,{...s,children:Rt(t,{source:e})})}return Rt(nre,{...s,children:Rt("div",{className:"setting-item-control",children:Rt("span",{children:"Provider not found"})})})}}),I4e={};function _Et(e,t,n){let r=t.plugin;new qM.Setting(e).setName(Ce("settings.calendars.linkedNotes.title")).setHeading().setDesc(Zl(Ce("settings.calendars.linkedNotes.description"),[{text:Ce("settings.calendars.linkedNotes.learnMore"),path:"user/features/event-linked-notes"}])),new qM.Setting(e).setName(Ce("settings.general.linkedNotesDirectory.label")).setDesc(Ce("settings.general.linkedNotesDirectory.description")).addDropdown(e=>{let t=r.app.vault.getAllLoadedFiles().filter(e=>e instanceof qM.TFolder).map(e=>e.path);e.addOption("",Ce("settings.general.linkedNotesDirectory.vaultRoot")),t.sort((e,t)=>e.toLowerCase().localeCompare(t.toLowerCase())).forEach(t=>{e.addOption(t,t)}),e.setValue(Qe.getSettings().linkedNotesDirectory||""),e.onChange(async e=>{Qe.getSettings().linkedNotesDirectory=e,await Qe.saveSettings()})}),new qM.Setting(e).setName(Ce("settings.general.linkedNoteLinkStrategy.label")).setDesc(Ce("settings.general.linkedNoteLinkStrategy.description")).addDropdown(e=>{e.addOption("deadline",Ce("settings.general.linkedNoteLinkStrategy.deadline")).addOption("name",Ce("settings.general.linkedNoteLinkStrategy.name")).setValue(Qe.getSettings().linkedNoteLinkStrategy||"deadline").onChange(async e=>{Qe.getSettings().linkedNoteLinkStrategy=e,await Qe.saveSettings()})}),new qM.Setting(e).setName(Ce("settings.general.linkedNoteTemplate.label")).setDesc(Ce("settings.general.linkedNoteTemplate.description")).addTextArea(e=>{e.setPlaceholder(Ce("settings.general.linkedNoteTemplate.placeholder")).setValue(Qe.getSettings().linkedNoteTemplate||"").onChange(async e=>{Qe.getSettings().linkedNoteTemplate=e,await Qe.saveSettings()}),e.inputEl.rows=8,e.inputEl.cols=50,e.inputEl.setCssProps({width:"100%"})}),e.createEl("hr",{cls:"settings-view-new-divider"}),new qM.Setting(e).setName(Ce("settings.calendars.title")).setHeading().setDesc(Wh([{text:"Calendar sources settings",path:"user/settings/sources"},{text:"Calendar types",path:"user/calendars/"}])),e.createEl("hr",{cls:"settings-view-new-divider"});let a=ug(e.createDiv());t.registerReactRoot(a),a.render(io(NW,{ref:n,sources:Qe.getProviderRegistry().getAllSources(),plugin:r,submit:e=>{(async()=>{Qe.getSettings().calendarSources=e,await Qe.saveSettings()})()}})),UC(r,e,e=>{n.current?.addSource(e)},()=>n.current?.getUsedDirectories()??[]),new qM.Setting(e).setDesc(Wh([{text:Ce("settings.calendars.docs.fullNote"),path:"user/calendars/local"},{text:Ce("settings.calendars.docs.dailyNote"),path:"user/calendars/dailynote"},{text:Ce("settings.calendars.docs.ics"),path:"user/calendars/ics"},{text:Ce("settings.calendars.docs.caldav"),path:"user/calendars/caldav"},{text:Ce("settings.calendars.docs.google"),path:"user/calendars/gcal"},{text:Ce("settings.calendars.docs.outlook"),path:"user/calendars/outlook"},{text:Ce("settings.calendars.docs.tasks"),path:"user/calendars/tasks-plugin-integration"},{text:Ce("settings.calendars.docs.bases"),path:"user/calendars/bases"},{text:Ce("settings.calendars.docs.taskNotes"),path:"user/calendars/tasknotes"}],Ce("settings.calendars.docs.providerGuides")))}Zs(I4e,{renderCalendarManagement:()=>_Et});var qM,N4e=kr(()=>{Wo(),qM=require("obsidian"),B5(),h1(),WW(),P4e(),Zo(),qp()});function are(){return`workspace_${Math.random().toString(36).slice(2,11)}`}function ire(e){return{id:are(),name:e,defaultView:void 0,defaultDate:void 0,visibleCalendars:void 0,categoryFilter:void 0,basisQueryPath:void 0,businessHours:void 0,timelineExpanded:void 0}}var rh,bf,ST,HC=kr(()=>{rh={useLegacyPlaintextCredentials:!1,calendarSources:[],defaultCalendar:0,firstDay:0,initialView:{desktop:"timeGridWeek",mobile:"timeGrid3Days"},timeFormat24h:!1,clickToCreateEventFromMonthView:!0,displayTimezone:null,lastSystemTimezone:null,enableAdvancedCategorization:!1,chrono_analyser_config:null,categorySettings:[],useCustomGoogleClient:!1,googleClientId:"",googleClientSecret:"",googleUseCopyPasteAuth:!1,googleAccounts:[],useCustomMicrosoftClient:!1,microsoftClientId:"",microsoftProxyBaseUrl:"",microsoftAccounts:[],businessHours:{enabled:!1,daysOfWeek:[1,2,3,4,5],startTime:"09:00",endTime:"17:00"},enableBackgroundEvents:!0,enableReminders:!0,workspaces:[],activeWorkspace:null,showEventInStatusBar:!1,highlightCurrentOrNextEvent:!0,slotMinTime:"00:00",slotMaxTime:"24:00",allDaySlot:!0,timeGridDayHeaderFormat:"day-mmdd",weekends:!0,hiddenDays:[],dayMaxEvents:!1,activityWatch:{enabled:!1,apiUrl:"http://127.0.0.1:5600",lastSyncTime:0,autoSyncEnabled:!1,autoSyncIntervalMins:10,targetCalendarId:"",syncStrategy:"auto",customDateStart:"",customDateEnd:"",profiles:[]},tasksIntegration:{backlogDateTarget:"scheduledDate",calendarDisplayDateTarget:"scheduledDate",openEditModalAfterBacklogDrop:!1,taskDisplayFormat:"dayPlanner",includeGlobalQueryInBacklog:!1,backlogQuery:""},milestones:{counters:{},unlockedAt:{},shown:{}},enableMonthlyStatsReport:!1,lastMonthlyMilestonesGeneratedMonth:null,lastMonthlyMilestonesCheckDate:null,fcrReminderCompanion:{enabled:!1,apiUrl:"http://127.0.0.1:45677"},apiTokens:{},authorizedTokens:{},enableLocalServer:!1,localServerPort:8540,milestoneNotifierDuration:8e3,enableDefaultReminder:!0,defaultReminderMinutes:10,currentVersion:null,linkedNotesDirectory:"",linkedNoteLinkStrategy:"deadline",taskBacklogLastProviderId:"",caldavTaskInboxLastCalendarId:"",weatherCity:"",weatherLatitude:null,weatherLongitude:null,weatherHide:!1,weatherInputMode:"city",weatherUnit:"C",linkedNoteTemplate:"# {{title}}\n\n**Date**: {{date}}\n**Time**: {{timeString}}\n**Location**: {{location}}\n**Calendar**: {{calendarName}}\n\n## Description\n{{description}}\n\n## Notes\n- "}}),W4e=kr(()=>{Wo(),bf=require("obsidian"),HC(),Zo(),ST=class extends bf.Modal{constructor(e,t,n,r){super(e.app),this.plugin=e,this.workspace={...t},this.isNew=n,this.onSave=r}onOpen(){let{contentEl:e}=this;e.empty(),e.parentElement?.addClass("ofc-settings-modal-wide"),e.parentElement?.addClass("ofc-workspace-settings-modal");let t=e.createDiv({cls:"ofc-settings-modal-shell ofc-workspace-settings-shell"}),n=t.createDiv({cls:"ofc-settings-modal-body ofc-workspace-settings-body"});n.createEl("h2",{text:this.isNew?Ce("modals.workspace.title.create"):Ce("modals.workspace.title.edit")}),this.renderGeneralSection(n),this.renderViewSection(n),this.renderCalendarFilterSection(n),this.renderCategoryFilterSection(n),this.renderAdvancedBasesSection(n),this.renderAppearanceSection(n);let r=t.createEl("footer",{cls:"ofc-settings-modal-footer ofc-workspace-settings-footer"});this.renderButtons(r)}onClose(){let{contentEl:e}=this;e.parentElement?.removeClass("ofc-settings-modal-wide"),e.parentElement?.removeClass("ofc-workspace-settings-modal"),e.empty()}renderGeneralSection(e){let t=e.createDiv({cls:"ofc-workspace-modal-section"});t.createEl("h3",{text:Ce("modals.workspace.sections.general")}),new bf.Setting(t).setName(Ce("modals.workspace.fields.name.label")).setDesc(Ce("modals.workspace.fields.name.description")).addText(e=>{this.nameInput=e,e.setPlaceholder(Ce("modals.workspace.fields.name.placeholder")).setValue(this.workspace.name||"").onChange(e=>{this.workspace.name=e})})}renderViewSection(e){let t=e.createDiv({cls:"ofc-workspace-modal-section"});t.createEl("h3",{text:Ce("modals.workspace.sections.viewConfiguration")});let n={"":Ce("modals.workspace.fields.desktopView.label"),timeGridDay:Ce("settings.viewOptions.day"),timeGridWeek:Ce("settings.viewOptions.week"),dayGridMonth:Ce("settings.viewOptions.month"),listWeek:Ce("settings.viewOptions.list")};Qe.getSettings().enableAdvancedCategorization&&(n.resourceTimelineWeek=Ce("settings.viewOptions.timelineWeek"),n.resourceTimelineDay=Ce("settings.viewOptions.timelineDay")),new bf.Setting(t).setName(Ce("modals.workspace.fields.desktopView.label")).setDesc(Ce("modals.workspace.fields.desktopView.description")).addDropdown(e=>{this.desktopViewDropdown=e,Object.entries(n).forEach(([t,n])=>{e.addOption(t,n)}),e.setValue(this.workspace.defaultView?.desktop||""),e.onChange(e=>{this.workspace.defaultView||(this.workspace.defaultView={}),this.workspace.defaultView.desktop=e||void 0})});let r={"":Ce("modals.workspace.fields.desktopView.label"),dayGridMonth:Ce("settings.viewOptions.month"),timeGrid3Days:Ce("settings.viewOptions.threeDays"),timeGridDay:Ce("settings.viewOptions.day"),listWeek:Ce("settings.viewOptions.list")};new bf.Setting(t).setName(Ce("modals.workspace.fields.mobileView.label")).setDesc(Ce("modals.workspace.fields.mobileView.description")).addDropdown(e=>{this.mobileViewDropdown=e,Object.entries(r).forEach(([t,n])=>{e.addOption(t,n)}),e.setValue(this.workspace.defaultView?.mobile||""),e.onChange(e=>{this.workspace.defaultView||(this.workspace.defaultView={}),this.workspace.defaultView.mobile=e||void 0})}),new bf.Setting(t).setName(Ce("modals.workspace.fields.defaultDate.label")).setDesc(Ce("modals.workspace.fields.defaultDate.description")).addText(e=>{this.defaultDateInput=e,e.setPlaceholder(Ce("modals.workspace.fields.defaultDate.placeholder")).setValue(this.workspace.defaultDate||"").onChange(e=>{this.workspace.defaultDate=e||void 0})})}renderCalendarFilterSection(e){let t=e.createDiv({cls:"ofc-workspace-modal-section"});t.createEl("h3",{text:Ce("modals.workspace.sections.calendarFilters")});let n=Qe.getProviderRegistry().getAllSources();0!==n.length?(new bf.Setting(t).setName(Ce("modals.workspace.fields.visibleCalendars.label")).setDesc(Ce("modals.workspace.fields.visibleCalendars.description")).setClass("ofc-workspace-calendar-filter"),this.visibleCalendarsContainer=t.createDiv({cls:"ofc-workspace-calendar-checkboxes"}),this.renderCalendarCheckboxes(this.visibleCalendarsContainer,n)):t.createEl("p",{text:Ce("modals.workspace.fields.visibleCalendars.noCalendars")})}renderCalendarCheckboxes(e,t){let n=new Set((this.workspace.visibleCalendars||[]).map(String));t.forEach(t=>{let r,a=e.createDiv({cls:"ofc-workspace-checkbox-item"});switch(t.type){case"local":r=`${Ce("modals.workspace.calendarTypes.local")} ${t.name}`;break;case"dailynote":r=`${Ce("modals.workspace.calendarTypes.dailyNotes")} ${t.name}`;break;case"ical":r=`${Ce("modals.workspace.calendarTypes.ics")} ${t.name}`;break;case"caldav":r=`${Ce("modals.workspace.calendarTypes.caldav")} ${t.name}`;break;case"google":r=`${Ce("modals.workspace.calendarTypes.google")} ${t.name}`;break;case"outlook":r=`${Ce("modals.workspace.calendarTypes.outlook")} ${t.name}`;break;default:r=`${t.type}: ${t.name||t.id}`}new bf.Setting(a).setName(r).addToggle(e=>{let r=String(t.id);e.setValue(n.has(r)),e.onChange(e=>{let t=new Set((this.workspace.visibleCalendars||[]).map(String));e?t.add(r):t.delete(r);let n=Array.from(t);this.workspace.visibleCalendars=n.length>0?n:void 0})})})}renderCategoryFilterSection(e){let t=e.createDiv({cls:"ofc-workspace-modal-section"});t.createEl("h3",{text:Ce("modals.workspace.sections.categoryFilters")}),Qe.getSettings().enableAdvancedCategorization?(this.workspace.categoryFilter||(this.workspace.categoryFilter={mode:"show-only",categories:[]}),new bf.Setting(t).setName(Ce("modals.workspace.fields.categoryFilterMode.label")).setDesc(Ce("modals.workspace.fields.categoryFilterMode.description")).addDropdown(e=>{e.addOption("show-only",Ce("modals.workspace.fields.categoryFilterMode.options.showOnly")),e.addOption("hide",Ce("modals.workspace.fields.categoryFilterMode.options.hide")),e.setValue(this.workspace.categoryFilter?.mode??"show-only"),e.onChange(e=>{this.workspace.categoryFilter=this.workspace.categoryFilter||{mode:"show-only",categories:[]},this.workspace.categoryFilter.mode=e,this.renderCategoryCheckboxes()})}),new bf.Setting(t).setName(Ce("modals.workspace.fields.categories.label")).setDesc(Ce("modals.workspace.fields.categories.description")),this.categoryFilterContainer=t.createDiv({cls:"ofc-workspace-category-checkboxes"}),this.renderCategoryCheckboxes()):t.createEl("p",{text:Ce("modals.workspace.fields.categories.requiresAdvanced")})}renderCategoryCheckboxes(){this.categoryFilterContainer.empty(),this.workspace.categoryFilter||(this.workspace.categoryFilter={mode:"show-only",categories:[]});let e=Qe.getSettings().categorySettings;0!==e.length?e.forEach(e=>{let t=this.categoryFilterContainer.createDiv({cls:"ofc-workspace-checkbox-item"});new bf.Setting(t).setName(e.name).addToggle(t=>{t.setValue((this.workspace.categoryFilter?.categories||[]).includes(e.name)),t.onChange(t=>{if(!this.workspace.categoryFilter)return;let n=this.workspace.categoryFilter.categories||[];t?n.includes(e.name)||(this.workspace.categoryFilter.categories=[...n,e.name]):this.workspace.categoryFilter.categories=n.filter(t=>t!==e.name)})})}):this.categoryFilterContainer.createEl("p",{text:Ce("modals.workspace.fields.categories.noCategories")})}renderAdvancedBasesSection(e){let t=e.createDiv({cls:"ofc-workspace-modal-section"});t.createEl("h3",{text:Ce("modals.workspace.sections.advancedBases")}),new bf.Setting(t).setName(Ce("modals.workspace.fields.basisQueryPath.label")).setDesc(Ce("modals.workspace.fields.basisQueryPath.description")).addText(e=>{e.setPlaceholder("e.g., queries/work.base").setValue(this.workspace.basisQueryPath||"").onChange(e=>{this.workspace.basisQueryPath=e.trim()||void 0})})}renderAppearanceSection(e){let t=e.createDiv({cls:"ofc-workspace-modal-section"});t.createEl("h3",{text:Ce("modals.workspace.sections.appearanceOverrides")}),new bf.Setting(t).setName(Ce("modals.workspace.fields.overrideBusinessHours.label")).setDesc(Ce("modals.workspace.fields.overrideBusinessHours.description")).addToggle(e=>{this.businessHoursToggle=e;let t=!!this.workspace.businessHours;e.setValue(t),e.onChange(e=>{this.workspace.businessHours=e?{enabled:!0,daysOfWeek:[1,2,3,4,5],startTime:"09:00",endTime:"17:00"}:void 0,this.renderBusinessHoursDetails()})}),this.businessHoursContainer=t.createDiv({cls:"ofc-workspace-business-hours-details"}),this.renderBusinessHoursDetails(),Qe.getSettings().enableAdvancedCategorization&&new bf.Setting(t).setName(Ce("modals.workspace.fields.timelineCategories.label")).setDesc(Ce("modals.workspace.fields.timelineCategories.description")).addDropdown(e=>{e.addOption("",Ce("modals.workspace.fields.timelineCategories.options.useDefault")),e.addOption("true",Ce("modals.workspace.fields.timelineCategories.options.expanded")),e.addOption("false",Ce("modals.workspace.fields.timelineCategories.options.collapsed"));let t=this.workspace.timelineExpanded;e.setValue(void 0===t?"":t.toString()),e.onChange(e=>{this.workspace.timelineExpanded=""===e?void 0:"true"===e})}),t.createEl("hr",{cls:"ofc-workspace-modal-separator"}),t.createEl("h4",{text:Ce("modals.workspace.sections.viewClipping")}),new bf.Setting(t).setName(Ce("modals.workspace.fields.slotMinTime.label")).setDesc(Ce("modals.workspace.fields.slotMinTime.description")).addText(e=>{e.setPlaceholder(Ce("modals.workspace.fields.slotMinTime.placeholder")).setValue(this.workspace.slotMinTime||"").onChange(e=>{this.workspace.slotMinTime=e.trim()||void 0})}),new bf.Setting(t).setName(Ce("modals.workspace.fields.slotMaxTime.label")).setDesc(Ce("modals.workspace.fields.slotMaxTime.description")).addText(e=>{e.setPlaceholder(Ce("modals.workspace.fields.slotMinTime.placeholder")).setValue(this.workspace.slotMaxTime||"").onChange(e=>{this.workspace.slotMaxTime=e.trim()||void 0})}),new bf.Setting(t).setName(Ce("modals.workspace.fields.weekendDisplay.label")).setDesc(Ce("modals.workspace.fields.weekendDisplay.description")).addDropdown(e=>{e.addOption("",Ce("modals.workspace.fields.slotMinTime.placeholder")),e.addOption("true",Ce("modals.workspace.fields.weekendDisplay.options.show")),e.addOption("false",Ce("modals.workspace.fields.weekendDisplay.options.hide"));let t=this.workspace.weekends;e.setValue(void 0===t?"":t.toString()),e.onChange(e=>{this.workspace.weekends=""===e?void 0:"true"===e})}),new bf.Setting(t).setName(Ce("modals.workspace.fields.hiddenDays.label")).setDesc(Ce("modals.workspace.fields.hiddenDays.description")).addDropdown(e=>{e.addOption("",Ce("modals.workspace.fields.slotMinTime.placeholder")),e.addOption("[]",Ce("modals.workspace.fields.hiddenDays.options.showAll")),e.addOption("[0,6]",Ce("modals.workspace.fields.hiddenDays.options.hideWeekends")),e.addOption("[0]",Ce("modals.workspace.fields.hiddenDays.options.hideSunday")),e.addOption("[6]",Ce("modals.workspace.fields.hiddenDays.options.hideSaturday")),e.addOption("[1]",Ce("modals.workspace.fields.hiddenDays.options.hideMonday")),e.addOption("[5]",Ce("modals.workspace.fields.hiddenDays.options.hideFriday"));let t=this.workspace.hiddenDays,n=void 0===t?"":JSON.stringify(t);e.setValue(n),e.onChange(e=>{if(""===e)this.workspace.hiddenDays=void 0;else try{this.workspace.hiddenDays=JSON.parse(e)}catch{}})}),new bf.Setting(t).setName(Ce("modals.workspace.fields.dayMaxEvents.label")).setDesc(Ce("modals.workspace.fields.dayMaxEvents.description")).addDropdown(e=>{e.addOption("",Ce("modals.workspace.fields.slotMinTime.placeholder")),e.addOption("false",Ce("modals.workspace.fields.dayMaxEvents.options.useDefault")),e.addOption("true",Ce("modals.workspace.fields.dayMaxEvents.options.noLimit")),e.addOption("1",Ce("modals.workspace.fields.dayMaxEvents.options.one")),e.addOption("2",Ce("modals.workspace.fields.dayMaxEvents.options.two")),e.addOption("3",Ce("modals.workspace.fields.dayMaxEvents.options.three")),e.addOption("4",Ce("modals.workspace.fields.dayMaxEvents.options.four")),e.addOption("5",Ce("modals.workspace.fields.dayMaxEvents.options.five")),e.addOption("10",Ce("modals.workspace.fields.dayMaxEvents.options.ten"));let t=this.workspace.dayMaxEvents,n=void 0===t?"":t.toString();e.setValue(n),e.onChange(e=>{this.workspace.dayMaxEvents=""===e?void 0:"true"===e||"false"!==e&&parseInt(e)})})}renderBusinessHoursDetails(){this.businessHoursContainer.empty(),this.workspace.businessHours&&(new bf.Setting(this.businessHoursContainer).setName(Ce("modals.workspace.fields.enableBusinessHours.label")).setDesc(Ce("modals.workspace.fields.enableBusinessHours.description")).addToggle(e=>{e.setValue(this.workspace.businessHours?.enabled||!1),e.onChange(e=>{this.workspace.businessHours&&(this.workspace.businessHours.enabled=e,this.renderBusinessHoursDetails())})}).settingEl.addClass("ofc-indented-setting"),this.workspace.businessHours.enabled&&(new bf.Setting(this.businessHoursContainer).setName(Ce("modals.workspace.fields.businessDays.label")).setDesc(Ce("modals.workspace.fields.businessDays.description")).addDropdown(e=>{e.addOption("1,2,3,4,5",Ce("settings.appearance.businessHours.options.mondayFriday")).addOption("0,1,2,3,4,5,6",Ce("settings.appearance.businessHours.options.everyDay")).addOption("1,2,3,4",Ce("settings.appearance.businessHours.options.mondayThursday")).addOption("2,3,4,5,6",Ce("settings.appearance.businessHours.options.tuesdaySaturday"));let t=this.workspace.businessHours?.daysOfWeek.join(",")||"1,2,3,4,5";e.setValue(t),e.onChange(e=>{this.workspace.businessHours&&(this.workspace.businessHours.daysOfWeek=e.split(",").map(Number))})}).settingEl.addClass("ofc-indented-setting"),new bf.Setting(this.businessHoursContainer).setName(Ce("modals.workspace.fields.businessHoursStart.label")).setDesc(Ce("modals.workspace.fields.businessHoursStart.description")).addText(e=>{e.setValue(this.workspace.businessHours?.startTime||"09:00"),e.onChange(e=>{/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/.test(e)&&this.workspace.businessHours&&(this.workspace.businessHours.startTime=e)})}).settingEl.addClass("ofc-indented-setting"),new bf.Setting(this.businessHoursContainer).setName(Ce("modals.workspace.fields.businessHoursEnd.label")).setDesc(Ce("modals.workspace.fields.businessHoursEnd.description")).addText(e=>{e.setValue(this.workspace.businessHours?.endTime||"17:00"),e.onChange(e=>{/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/.test(e)&&this.workspace.businessHours&&(this.workspace.businessHours.endTime=e)})}).settingEl.addClass("ofc-indented-setting")))}renderButtons(e){let t=e.createDiv({cls:"ofc-workspace-modal-buttons"});t.createEl("button",{text:Ce("modals.workspace.buttons.cancel")},e=>{e.addEventListener("click",()=>{this.close()})}),t.createEl("button",{text:this.isNew?Ce("modals.workspace.buttons.create"):Ce("modals.workspace.buttons.save"),cls:"mod-cta"},e=>{e.addEventListener("click",()=>{if(this.validateWorkspace()){if(this.workspace.categoryFilter){let e=Array.from(new Set(this.workspace.categoryFilter.categories||[]));this.workspace.categoryFilter.categories=e}this.onSave(this.workspace),this.close()}})})}validateWorkspace(){return this.workspace.name&&""!==this.workspace.name.trim()?(this.workspace.id||(this.workspace.id=are()),!0):(this.nameInput.inputEl.focus(),!1)}}}),F4e={};function zEt(e,t,n){let r=e.createDiv();if(new FW.Setting(r).setName(Ce("settings.workspaces.title")).setDesc(Zl(Ce("settings.workspaces.description"),[{text:"Workspaces guide",path:"user/views/workspaces"},{text:"Views guide",path:"user/views/"}])).setHeading(),new FW.Setting(r).setName(Ce("settings.workspaces.addNew.label")).setDesc(Zl(Ce("settings.workspaces.addNew.description"),[{text:"Workspaces guide",path:"user/views/workspaces"}])).addButton(e=>{e.setButtonText(Ce("settings.workspaces.buttons.new")).setIcon("plus").onClick(()=>{let e=ire(Ce("settings.workspaces.defaultName"));new ST(t,e,!0,e=>{Qe.getSettings().workspaces.push(e),Qe.saveSettings(),n()}).open()})}),Qe.getSettings().workspaces.length>0){let e=r.createDiv({cls:"ofc-workspace-list"});Qe.getSettings().workspaces.forEach((r,a)=>{let i=e.createDiv({cls:"ofc-workspace-item"});new FW.Setting(i).setName(r.name).setDesc(AEt(r)).addButton(e=>{e.setButtonText(Ce("settings.workspaces.buttons.edit")).setIcon("pencil").onClick(()=>{new ST(t,r,!1,e=>{Qe.getSettings().workspaces[a]=e,Qe.saveSettings(),n()}).open()})}).addButton(e=>{e.setButtonText(Ce("settings.workspaces.buttons.duplicate")).setIcon("copy").onClick(()=>{let e=ire(Ce("settings.workspaces.copyName",{name:r.name}));Object.assign(e,{...r,id:e.id,name:e.name}),new ST(t,e,!0,e=>{Qe.getSettings().workspaces.push(e),Qe.saveSettings(),n()}).open()})}).addButton(e=>{let t=Qe.getSettings().activeWorkspace===r.id;e.setButtonText(Ce(t?"settings.workspaces.buttons.active":"settings.workspaces.buttons.activate")).setIcon(t?"check":"play").setDisabled(t).onClick(async()=>{Qe.getSettings().activeWorkspace=r.id,await Qe.saveSettings(),n()})}).addButton(e=>{e.setButtonText(Ce("settings.workspaces.buttons.delete")).setIcon("trash-2").setWarning().onClick(async()=>{Qe.getSettings().activeWorkspace===r.id&&(Qe.getSettings().activeWorkspace=null),Qe.getSettings().workspaces.splice(a,1),await Qe.saveSettings(),n()})})})}}function AEt(e){let t=[];if(e.defaultView?.desktop||e.defaultView?.mobile){let n=[];e.defaultView.desktop&&n.push(`Desktop: ${e.defaultView.desktop}`),e.defaultView.mobile&&n.push(`Mobile: ${e.defaultView.mobile}`),t.push(n.join(", "))}if(e.visibleCalendars?.length&&t.push(`Shows ${e.visibleCalendars.length} calendar(s)`),e.categoryFilter?.categories.length){let n="show-only"===e.categoryFilter.mode?"Shows":"Hides";t.push(`${n} ${e.categoryFilter.categories.length} categor${1===e.categoryFilter.categories.length?"y":"ies"}`)}return t.length>0?t.join(" • "):"Default settings"}Zs(F4e,{renderWorkspaceSettings:()=>zEt});var FW,BW,U4e,B4e=kr(()=>{Wo(),FW=require("obsidian"),HC(),W4e(),Zo(),qp()}),ore=kr(()=>{Z0(),BW=({value:e,onChange:t,suggestions:n,id:r,placeholder:a,disabled:i,readOnly:o})=>Rt(Pu,{children:[Rt("input",{type:"text",list:r,value:e,placeholder:a,onChange:e=>t(e.target.value),disabled:i,readOnly:o}),Rt("datalist",{id:r,children:n.map(e=>Rt("option",{value:e},e))})]})}),H4e=kr(()=>{h1(),ore(),Ite(),Z0(),U4e=({settings:e,suggestions:t,onSave:n})=>{let[r,a]=Li(e),[i,o]=Li(""),[s,l]=Li(!1);return Rt("div",{className:"u-w-full",children:[r.map((e,t)=>Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-control u-flex-1",children:Rt("input",{type:"text",value:e.name,onChange:e=>((e,t)=>{let n=[...r];n[e].name=t,a(n),l(!0)})(t,e.target.value),placeholder:"Category Name"})}),Rt("div",{className:"setting-item-control",children:Rt("input",{type:"color",value:e.color,onChange:e=>((e,t)=>{let n=[...r];n[e].color=t,a(n),l(!0)})(t,e.target.value),className:"u-min-w-3rem"})}),Rt("div",{className:"setting-item-control",children:Rt("button",{onClick:()=>(e=>{let t=[...r];t.splice(e,1),a(t),l(!0)})(t),children:"Delete"})})]},t)),Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-control u-flex-1",children:Rt(BW,{id:"category-settings-autocomplete",value:i,onChange:o,suggestions:t,placeholder:"Add a new category..."})}),Rt("div",{className:"setting-item-control",children:Rt("button",{onClick:()=>{if(""===i.trim()||r.find(e=>e.name===i))return;let e=TW(r.map(e=>e.color)),t={name:i,color:e};a([...r,t]),o(""),l(!0)},className:"mod-cta",children:"Add"})})]}),s&&Rt("div",{className:"setting-item",children:Rt("div",{className:"setting-item-control",children:Rt("button",{onClick:()=>{(async()=>{await n(r),l(!1)})()},className:"mod-cta",children:"Save Category Settings"})})})]})}});function SEt(e){if("object"!=typeof e||null===e)throw new Error("value for parsing was not an object.");let t={type:"single",allDay:!("startTime"in e&&e.startTime),...e};return{...OEt.parse(t),...wEt.parse(t),...TEt.parse(t)}}function a2(e){try{return SEt(e)}catch(e){return null}}var jb,V4e,wEt,OEt,TEt,UW,sre=kr(()=>{Lte(),jb=gi.string(),V4e=gi.string(),wEt=gi.discriminatedUnion("allDay",[gi.object({allDay:gi.literal(!0)}),gi.object({allDay:gi.literal(!1),startTime:V4e,endTime:V4e.nullable().default(null)})]),OEt=gi.object({title:gi.string(),id:gi.string().optional(),uid:gi.string().optional(),caldavHref:gi.string().optional(),recurrenceId:gi.string().optional(),timezone:gi.string().optional(),etag:gi.string().optional(),category:gi.string().optional(),subCategory:gi.string().optional(),recurringEventId:gi.string().optional(),endReminder:gi.boolean().optional(),display:gi.enum(["auto","block","list-item","background","inverse-background","none"]).optional(),description:gi.string().optional(),url:gi.string().optional(),location:gi.string().optional(),notify:gi.object({value:gi.number().min(0).max(1440)}).optional(),alarms:gi.array(gi.object({minutesBefore:gi.number().int().min(0).max(10080),action:gi.enum(["DISPLAY","AUDIO","EMAIL"]).default("DISPLAY")})).optional()}),TEt=gi.discriminatedUnion("type",[gi.object({type:gi.literal("single"),date:jb,endDate:jb.nullable().default(null),completed:jb.or(gi.literal(!0)).or(gi.literal(!1)).or(gi.literal(null)).optional()}),gi.object({type:gi.literal("recurring"),endDate:jb.nullable().default(null),daysOfWeek:gi.array(gi.enum(["U","M","T","W","R","F","S"])).optional(),month:gi.number().int().min(1).max(12).optional(),dayOfMonth:gi.number().int().min(1).max(31).optional(),repeatInterval:gi.number().int().min(1).optional(),repeatOn:gi.object({week:gi.number().int().min(-1).max(4),weekday:gi.number().int().min(0).max(6)}).optional(),startRecur:jb.optional(),endRecur:jb.optional(),isTask:gi.boolean().optional(),skipDates:gi.array(jb).default([])}),gi.object({type:gi.literal("rrule"),startDate:jb,endDate:jb.nullable().default(null),rrule:gi.string(),skipDates:gi.array(jb).default([]),isTask:gi.boolean().optional()})]).superRefine((e,t)=>{if("recurring"!==e.type)return;let n=void 0!==e.daysOfWeek&&e.daysOfWeek.length>0,r=void 0!==e.dayOfMonth,a=void 0!==e.repeatOn;n&&r&&t.addIssue({code:gi.ZodIssueCode.custom,message:"A recurring event cannot be both weekly (daysOfWeek) and monthly/yearly (dayOfMonth).",path:["daysOfWeek"]}),!n&&!r&&!a&&t.addIssue({code:gi.ZodIssueCode.custom,message:"A recurring event must define a recurrence rule (either daysOfWeek, dayOfMonth, or repeatOn)."}),void 0!==e.month&&void 0===e.dayOfMonth&&t.addIssue({code:gi.ZodIssueCode.custom,message:"A yearly recurring event (with month) must also have a dayOfMonth.",path:["month"]}),void 0!==e.dayOfMonth&&void 0!==e.repeatOn&&t.addIssue({code:gi.ZodIssueCode.custom,message:"A monthly recurring event can repeat on a specific day of the month OR on a numbered weekday, but not both.",path:["repeatOn"]})})}),Gb=kr(()=>{sre(),UW="full-calendar-plugin"});function WEt(e){return Object.fromEntries(Array.from(e.matchAll(EEt)).map(e=>[e[1],DEt(e[2])]))}function X4e(e,t,n){return t.map(t=>{let r=t.position.start.line,a=e.split("\n")[r],i=vA(a,n);return i?{event:i,lineNumber:r}:null}).flatMap(e=>e?[e]:[])}var kEt,j4e,CEt,EEt,qEt,DEt,REt,LEt,PEt,IEt,VC,NEt,G4e,vA,jC,lre,cre=kr(()=>{Lu(),Gb(),qC(),kEt=/\s*\[.*?\]\s*/g,j4e=/^(\s*)-\s+(\[(.)\]\s+)?/,CEt=/^\s*-\s+\[(.)\]\s+/,EEt=/\[([^\]]+):: ?([^\]]+)\]/g,qEt=/^(\d{2}:\d{2}) - (\d{2}:\d{2}) (.+)$/,DEt=e=>"true"===e||"false"!==e&&e,REt=e=>{let t=e.match(CEt);return t&&t[1]?" "!==t[1]&&t[1]:null},LEt=e=>{let t=e.match(qEt);return t?{startTime:t[1],endTime:t[2],title:t[3]}:null},PEt=(e,t,n)=>{if(!t.headings)return null;let r=null,a=null,i=null;for(let n of t.headings)if(r||n.heading!==e){if(r&&n.level<=r){i=n.position;break}}else r=n.level,a=n.position;return r&&a?{start:a.end,end:i?.start||n}:null},IEt=e=>{if("object"==typeof e&&null!==e&&"value"in e){let t=e.value;if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return String(t)}return String(e)},VC=(e,t)=>{if(!t.listItems)return[];let n=t.sections?.last()?.position.end;if(!n)return[];let r=PEt(e,t,n);return r?t.listItems?.filter(e=>r.start.offset<e.position.start.offset&&e.position.end.offset<=r.end.offset):[]},NEt=e=>Object.entries(e).map(([e,t])=>`[${e}:: ${IEt(t)}]`).join(" "),G4e=(e,t="",n)=>{if("single"!==e.type)throw new Error("Can only pass in single event.");let{completed:r,title:a}=e,i=null!=r?`[${r?"x":" "}]`:null,o="dayPlanner"===AT(n)&&!e.allDay&&"string"==typeof e.startTime&&"string"==typeof e.endTime,s=o?`${e.startTime} - ${e.endTime} ${a}`:a,l={...e};l.endDate&&l.date===l.endDate&&(l.endDate=null),delete l.completed,delete l.title,delete l.type,delete l.date,delete l.category,delete l.subCategory,o&&(delete l.startTime,delete l.endTime);for(let e of Object.keys(l))(void 0===l[e]||null===l[e])&&delete l[e];return l.allDay||delete l.allDay,`${t}- ${i||""} ${s} ${NEt(l)}`},vA=(e,t)=>{let n=WEt(e),r=Object.keys(n).length>0;if(!r)return null;let a=e.replace(j4e,"").replace(kEt,"").replace(/\s+/g," ").trim(),i="string"==typeof n.startTime||"string"==typeof n.endTime?null:LEt(a),o=i?{...n,startTime:i.startTime,endTime:i.endTime}:n,s=i?i.title:a;if(!s&&!r)return null;let l={title:s},c=!("startTime"in o&&o.startTime),u={...l,completed:REt(e),...t,...o,allDay:c},d=u.startTime,p=u.endTime;if(!u.endDate&&!c&&"string"==typeof d&&"string"==typeof p&&p<d){let e=u.date;e&&(u.endDate=Fn.fromISO(e).plus({days:1}).toISODate())}return"date"in u||(u.date="1970-01-01"),a2(u)},jC=(e,t,n)=>{let r=e.match(j4e);return r?G4e(t,r[1],n):(console.warn("Tried modifying a list item with a position that wasn't a list item",{line:e}),null)},lre=(e,{heading:t,item:n,headingText:r},a)=>{let i=e.split("\n"),o=G4e(n,"",a);if(t){let e=t.position.start.line+1;return i.splice(e,0,o),{page:i.join("\n"),lineNumber:e}}return i.push(`## ${r}`),i.push(o),{page:i.join("\n"),lineNumber:i.length-1}}});function FEt(e){let{category:t}=wM(e);return!!t}function ure(e,t){return"smart"===t&&(!(!e.category&&!e.subCategory)||FEt(e.title))}var Y4e=kr(()=>{Wb()});function Z4e(e){let t=new Set,n=Qe.getSettings().calendarSources.filter(e=>"local"===e.type);for(let r of n){let n=e.app.vault.getAbstractFileByPath(r.directory);if(n instanceof gA.TFolder){let e=n=>{for(let r of n.children)r instanceof gA.TFile?t.add(r):r instanceof gA.TFolder&&e(r)};e(n)}}if(Qe.getSettings().calendarSources.filter(e=>"dailynote"===e.type).length>0){let{folder:n}=Fb();if(n){let r=e.app.vault.getAbstractFileByPath(n);if(r instanceof gA.TFolder)for(let e of r.children)e instanceof gA.TFile&&t.add(e)}}return Array.from(t)}async function $4e(e,t,n){let r=e=>"force_default"===t?n:e.parent&&!e.parent.isRoot()?e.parent.name:void 0,a="smart"!==t,i=Z4e(e);if(0===i.length)return void Na(Ce("notices.bulkCategorization.noNotesFound"));await Qe.nonBlockingProcess(i,async n=>{await(async n=>{await e.app.fileManager.processFrontMatter(n,e=>{let i=a2(e);if(!i||!i.title||ure(i,t))return;let{title:o}=wM(i.title),s=r(n);if(!s)return;let l=a?i.title:o;e.title=R2(s,void 0,l)})})(n),await(async n=>{let i=Qe.getSettings().calendarSources.filter(e=>"dailynote"===e.type);await e.app.vault.process(n,o=>{let s=e.app.metadataCache.getFileCache(n);if(!s)return o;let l=o.split("\n"),c=!1;for(let e of i){let i=VC(e.heading,s);if(0!==i.length)for(let o of i){let i=o.position.start.line,s=l[i];if("string"!=typeof s)continue;let u=vA(s,{});if(!u||"string"!=typeof u.title||ure(u,t))continue;let{title:d}=wM(u.title),p=r(n);if(!p)continue;let h=s.replace(/^(\s*)-\s+(\[(.)\]\s+)?/,"").replace(/\s*\[.*?\]\s*/g,"").trim(),f=R2(p,void 0,a?h:d),m={...u,title:f,category:void 0,subCategory:void 0},g=jC(s,m,e);g&&(l[i]=g,c=!0)}}return c?l.join("\n"):o})})(n)},"Categorizing event notes"),Na(Ce("notices.bulkCategorization.complete"))}async function K4e(e){let t=new Set(Qe.getSettings().categorySettings.map(e=>e.name)),n=Z4e(e);if(0===n.length)return void Na(Ce("notices.bulkDecategorization.noNotesFound"));await Qe.nonBlockingProcess(n,async n=>{await(async n=>{let r=n.parent?.name;r&&t.add(r),await e.app.fileManager.processFrontMatter(n,e=>{if(!e.title||"string"!=typeof e.title)return;let{category:n,title:r}=wM(e.title,t);n&&t.has(n)&&(e.title=r)})})(n),await(async n=>{let{folder:r}=Fb(),a=r?.split("/").filter(e=>e).pop();a&&t.add(a);let i=Qe.getSettings().calendarSources.filter(e=>"dailynote"===e.type);await e.app.vault.process(n,r=>{let a=e.app.metadataCache.getFileCache(n);if(!a)return r;let o=r.split("\n"),s=!1;for(let e of i){let n=VC(e.heading,a);if(0!==n.length)for(let r of n){let n=r.position.start.line,a=o[n];if("string"!=typeof a)continue;let i=vA(a,{});if(!i||"string"!=typeof i.title)continue;let{category:l,title:c}=wM(i.title,t);if(!l||!t.has(l))continue;let u={...i,title:c,category:void 0},d=jC(a,u,e);d&&d!==a&&(o[n]=d,s=!0)}}return s?o.join("\n"):r})})(n)},"De-categorizing event notes"),Na(Ce("notices.bulkDecategorization.complete"))}var gA,J4e=kr(()=>{Fc(),Wo(),gA=require("obsidian"),$5(),cre(),Wb(),Y4e(),sre(),Zo()}),Q4e={};Zs(Q4e,{BulkCategorizeModal:()=>dre});var kT,dre,e5e=kr(()=>{Fc(),kT=require("obsidian"),Zo(),dre=class extends kT.Modal{constructor(e,t){super(e),this.onSubmit=t}onOpen(){let e,{contentEl:t}=this;t.empty(),t.createEl("h2",{text:Ce("modals.bulkCategorize.title")}),t.createEl("p",{text:Ce("modals.bulkCategorize.description")}),new kT.Setting(t).setName(Ce("modals.bulkCategorize.smartFolder.name")).setDesc(Ce("modals.bulkCategorize.smartFolder.description")).addButton(e=>e.setButtonText(Ce("modals.bulkCategorize.smartFolder.button")).setCta().onClick(()=>{this.onSubmit("smart"),this.close()})),new kT.Setting(t).setName(Ce("modals.bulkCategorize.forcedFolder.name")).setDesc(Ce("modals.bulkCategorize.forcedFolder.description")).addButton(e=>e.setButtonText(Ce("modals.bulkCategorize.forcedFolder.button")).setWarning().onClick(()=>{this.onSubmit("force_folder"),this.close()})),new kT.Setting(t).setName(Ce("modals.bulkCategorize.forcedDefault.name")).setDesc(Ce("modals.bulkCategorize.forcedDefault.description")).addText(t=>{e=t,t.setPlaceholder(Ce("modals.bulkCategorize.forcedDefault.placeholder"))}).addButton(t=>t.setButtonText(Ce("modals.bulkCategorize.forcedDefault.button")).setWarning().onClick(()=>{let t=e.getValue().trim();""!==t?(this.onSubmit("force_default",t),this.close()):Na(Ce("modals.bulkCategorize.forcedDefault.errorEmpty"))}))}onClose(){this.contentEl.empty()}}}),t5e={};function BEt(e,t,n){let r=t.plugin;if(new CT.Setting(e).setName(Ce("settings.categorization.title")).setHeading().setDesc(Zl(Ce("global.learnMore"),[{text:Ce("settings.categorization.learnMoreLink"),path:"user/events/categories"},{text:"Event management",path:"user/events/manage"},{text:"Tasks and categories",path:"user/events/tasks"}])),new CT.Setting(e).setName(Ce("settings.categorization.enable.label")).setDesc(Ce("settings.categorization.enable.description")).addToggle(e=>{e.setValue(Qe.getSettings().enableAdvancedCategorization).onChange(async t=>{if(t){let{BulkCategorizeModal:e}=await Promise.resolve().then(()=>(e5e(),Q4e));new e(r.app,(e,t)=>{(async()=>{Qe.getSettings().enableAdvancedCategorization=!0,await Qe.saveSettings(),await $4e(r,e,t),n()})()}).open()}else{let t=new CT.Modal(r.app);t.modalEl.addClass("full-calendar-confirm-modal");let{contentEl:a}=t;a.createEl("h2",{text:Ce("settings.categorization.disable.modalTitle")}),a.createEl("p",{text:Ce("settings.categorization.disable.modalDescription")}),new CT.Setting(a).addButton(e=>e.setButtonText(Ce("settings.categorization.disable.buttonDisableWithoutCleanup")).setCta().onClick(async()=>{Qe.getSettings().enableAdvancedCategorization=!1,await Qe.saveSettings(),t.close(),n()})).addButton(e=>e.setButtonText(Ce("settings.categorization.disable.buttonDisable")).onClick(async()=>{Qe.getSettings().enableAdvancedCategorization=!1,Qe.getSettings().categorySettings=[],await Qe.saveSettings(),await K4e(r),t.close(),n()})).addButton(n=>n.setButtonText(Ce("settings.categorization.disable.buttonCancel")).onClick(()=>{e.setValue(!0),t.close()})),t.open()}})}),Qe.getSettings().enableAdvancedCategorization){let n=ug(e.createDiv());t.registerReactRoot(n);let r=Qe.getCache().getAllCategories(),a=new Set(Qe.getSettings().categorySettings.map(e=>e.name)),i=r.filter(e=>!a.has(e));n.render(io(U4e,{settings:Qe.getSettings().categorySettings,suggestions:i,onSave:async e=>{Qe.getSettings().categorySettings=e,await Qe.saveSettings()}}))}}Zs(t5e,{renderCategorizationSettings:()=>BEt});var CT,HW,X_,VW,jW,r5e=kr(()=>{Wo(),h1(),CT=require("obsidian"),B5(),H4e(),J4e(),Zo(),qp()}),fre=kr(()=>{HW=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],X_={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return typeof console<"u"&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1}}),hre=kr(()=>{jW=VW={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1}});function pre(e,t){var n;return function(){var r=this,a=arguments;clearTimeout(n),n=setTimeout(function(){return e.apply(r,a)},t)}}var P2,Lm,GW,mre=kr(()=>{P2=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},Lm=function(e){return!0===e?1:0},GW=function(e){return e instanceof Array?e:[e]}});function I2(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function gu(e,t,n){var r=window.document.createElement(e);return t=t||"",n=n||"",r.className=t,void 0!==n&&(r.textContent=n),r}function GC(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function vre(e,t){return t(e)?e:e.parentNode?vre(e.parentNode,t):void 0}function XC(e,t){var n=gu("div","numInputWrapper"),r=gu("input","numInput "+e),a=gu("span","arrowUp"),i=gu("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),void 0!==t)for(var o in t)r.setAttribute(o,t[o]);return n.appendChild(r),n.appendChild(a),n.appendChild(i),n}function Pm(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch{return e.target}}var gre,YC,a5e,DM,ET,n5e=kr(()=>{}),yre=kr(()=>{mre(),YC=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},a5e={D:gre=function(){},F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*Lm(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var r=parseInt(t),a=new Date(e.getFullYear(),0,2+7*(r-1),0,0,0,0);return a.setDate(a.getDate()-a.getDay()+n.firstDayOfWeek),a},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:gre,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:gre,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},DM={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},ET={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[ET.w(e,t,n)]},F:function(e,t,n){return YC(ET.n(e,t,n)-1,!1,t)},G:function(e,t,n){return P2(ET.h(e,t,n))},H:function(e){return P2(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[Lm(e.getHours()>11)]},M:function(e,t){return YC(e.getMonth(),!0,t)},S:function(e){return P2(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return P2(e.getFullYear(),4)},d:function(e){return P2(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return P2(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return P2(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}}});function Im(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}function ZW(e){var t=e.defaultHour,n=e.defaultMinute,r=e.defaultSeconds;if(void 0!==e.minDate){var a=e.minDate.getHours(),i=e.minDate.getMinutes(),o=e.minDate.getSeconds();t<a&&(t=a),t===a&&n<i&&(n=i),t===a&&n===i&&r<o&&(r=e.minDate.getSeconds())}if(void 0!==e.maxDate){var s=e.maxDate.getHours(),l=e.maxDate.getMinutes();(t=Math.min(t,s))===s&&(n=Math.min(l,n)),t===s&&n===l&&(r=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:r}}var bre,XW,i5e,YW,o5e,s5e,l5e=kr(()=>{yre(),fre(),hre(),bre=function(e){var t=e.config,n=void 0===t?X_:t,r=e.l10n,a=void 0===r?VW:r,i=e.isMobile,o=void 0!==i&&i;return function(e,t,r){var i=r||a;return void 0===n.formatDate||o?t.split("").map(function(t,r,a){return ET[t]&&"\\"!==a[r-1]?ET[t](e,i,n):"\\"!==t?t:""}).join(""):n.formatDate(e,t,i)}},XW=function(e){var t=e.config,n=void 0===t?X_:t,r=e.l10n,a=void 0===r?VW:r;return function(e,t,r,i){if(0===e||e){var o,s=i||a,l=e;if(e instanceof Date)o=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)o=new Date(e);else if("string"==typeof e){var c=t||(n||X_).dateFormat,u=String(e).trim();if("today"===u)o=new Date,r=!0;else if(n&&n.parseDate)o=n.parseDate(e,c);else if(/Z$/.test(u)||/GMT$/.test(u))o=new Date(e);else{for(var d=void 0,p=[],h=0,f=0,m="";h<c.length;h++){var g=c[h],y="\\"===g,b="\\"===c[h-1]||y;if(DM[g]&&!b){m+=DM[g];var v=new RegExp(m).exec(e);v&&(d=!0)&&p["Y"!==g?"push":"unshift"]({fn:a5e[g],val:v[++f]})}else y||(m+=".")}o=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),p.forEach(function(e){var t=e.fn,n=e.val;return o=t(o,n,s)||o}),o=d?o:void 0}}return o instanceof Date&&!isNaN(o.getTime())?(!0===r&&o.setHours(0,0,0,0),o):void n.errorHandler(new Error("Invalid date provided: "+l))}}},i5e=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)},YW=function(e,t,n){return 3600*e+60*t+n},o5e=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]},s5e={DAY:864e5}}),c5e=kr(()=>{"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var r=function(t){t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})},a=0,i=t;a<i.length;a++){r(i[a])}return e})});function HEt(e,t){var n={config:N2(N2({},X_),Fh.defaultConfig),l10n:jW};function r(){var e;return(null===(e=n.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function a(e){return e.bind(n)}function i(){var e=n.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==n.calendarContainer&&(n.calendarContainer.style.visibility="hidden",n.calendarContainer.style.display="block"),void 0!==n.daysContainer){var t=(n.days.offsetWidth+1)*e.showMonths;n.daysContainer.style.width=t+"px",n.calendarContainer.style.width=t+(void 0!==n.weekWrapper?n.weekWrapper.offsetWidth:0)+"px",n.calendarContainer.style.removeProperty("visibility"),n.calendarContainer.style.removeProperty("display")}})}function o(e){if(0===n.selectedDates.length){var t=void 0===n.config.minDate||Im(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),r=ZW(n.config);t.setHours(r.hours,r.minutes,r.seconds,t.getMilliseconds()),n.selectedDates=[t],n.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,r=Pm(e),a=r;void 0!==n.amPM&&r===n.amPM&&(n.amPM.textContent=n.l10n.amPM[Lm(n.amPM.textContent===n.l10n.amPM[0])]);var i=parseFloat(a.getAttribute("min")),o=parseFloat(a.getAttribute("max")),s=parseFloat(a.getAttribute("step")),l=parseInt(a.value,10),c=e.delta||(t?38===e.which?1:-1:0),u=l+s*c;if(typeof a.value<"u"&&2===a.value.length){var d=a===n.hourElement,p=a===n.minuteElement;u<i?(u=o+u+Lm(!d)+(Lm(d)&&Lm(!n.amPM)),p&&m(void 0,-1,n.hourElement)):u>o&&(u=a===n.hourElement?u-o-Lm(!n.amPM):i,p&&m(void 0,1,n.hourElement)),n.amPM&&d&&(1===s?u+l===23:Math.abs(u-l)>s)&&(n.amPM.textContent=n.l10n.amPM[Lm(n.amPM.textContent===n.l10n.amPM[0])]),a.value=P2(u)}}(e);var a=n._input.value;s(),K(),n._input.value!==a&&n._debouncedChange()}function s(){if(void 0!==n.hourElement&&void 0!==n.minuteElement){var e=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,t=(parseInt(n.minuteElement.value,10)||0)%60,r=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;void 0!==n.amPM&&(e=function(e,t){return e%12+12*Lm(t===n.l10n.amPM[1])}(e,n.amPM.textContent));var a=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===Im(n.latestSelectedDateObj,n.config.minDate,!0),i=void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===Im(n.latestSelectedDateObj,n.config.maxDate,!0);if(void 0!==n.config.maxTime&&void 0!==n.config.minTime&&n.config.minTime>n.config.maxTime){var o=YW(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),s=YW(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),l=YW(e,t,r);if(l>s&&l<o){var u=o5e(o);e=u[0],t=u[1],r=u[2]}}else{if(i){var d=void 0!==n.config.maxTime?n.config.maxTime:n.config.maxDate;(e=Math.min(e,d.getHours()))===d.getHours()&&(t=Math.min(t,d.getMinutes())),t===d.getMinutes()&&(r=Math.min(r,d.getSeconds()))}if(a){var p=void 0!==n.config.minTime?n.config.minTime:n.config.minDate;(e=Math.max(e,p.getHours()))===p.getHours()&&t<p.getMinutes()&&(t=p.getMinutes()),t===p.getMinutes()&&(r=Math.max(r,p.getSeconds()))}}c(e,t,r)}}function l(e){var t=e||n.latestSelectedDateObj;t&&t instanceof Date&&c(t.getHours(),t.getMinutes(),t.getSeconds())}function c(e,t,r){void 0!==n.latestSelectedDateObj&&n.latestSelectedDateObj.setHours(e%24,t,r||0,0),n.hourElement&&n.minuteElement&&!n.isMobile&&(n.hourElement.value=P2(n.config.time_24hr?e:(12+e)%12+12*Lm(e%12==0)),n.minuteElement.value=P2(t),void 0!==n.amPM&&(n.amPM.textContent=n.l10n.amPM[Lm(e>=12)]),void 0!==n.secondElement&&(n.secondElement.value=P2(r)))}function u(e){var t=Pm(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&C(n)}function d(e,t,r,a){return t instanceof Array?t.forEach(function(t){return d(e,t,r,a)}):e instanceof Array?e.forEach(function(e){return d(e,t,r,a)}):(e.addEventListener(t,r,a),void n._handlers.push({remove:function(){return e.removeEventListener(t,r,a)}}))}function p(){Y("onChange")}function h(e,t){var r=void 0!==e?n.parseDate(e):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),a=n.currentYear,i=n.currentMonth;try{void 0!==r&&(n.currentYear=r.getFullYear(),n.currentMonth=r.getMonth())}catch(e){e.message="Invalid date supplied: "+r,n.config.errorHandler(e)}t&&n.currentYear!==a&&(Y("onYearChange"),z()),t&&(n.currentYear!==a||n.currentMonth!==i)&&Y("onMonthChange"),n.redraw()}function f(e){var t=Pm(e);~t.className.indexOf("arrow")&&m(e,t.classList.contains("arrowUp")?1:-1)}function m(e,t,n){var r=e&&Pm(e),a=n||r&&r.parentNode&&r.parentNode.firstChild,i=Z("increment");i.delta=t,a&&a.dispatchEvent(i)}function g(e,t,r,a){var i=E(t,!0),o=gu("span",e,t.getDate().toString());return o.dateObj=t,o.$i=a,o.setAttribute("aria-label",n.formatDate(t,n.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===Im(t,n.now)&&(n.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,$(t)&&(o.classList.add("selected"),n.selectedDateElem=o,"range"===n.config.mode&&(I2(o,"startRange",n.selectedDates[0]&&0===Im(t,n.selectedDates[0],!0)),I2(o,"endRange",n.selectedDates[1]&&0===Im(t,n.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===n.config.mode&&function(e){return!("range"!==n.config.mode||n.selectedDates.length<2)&&(Im(e,n.selectedDates[0])>=0&&Im(e,n.selectedDates[1])<=0)}(t)&&!$(t)&&o.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==e&&a%7==6&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(t)+"</span>"),Y("onDayCreate",o),o}function y(e){e.focus(),"range"===n.config.mode&&L(e)}function b(e){for(var t=e>0?0:n.config.showMonths-1,r=e>0?n.config.showMonths:-1,a=t;a!=r;a+=e)for(var i=n.daysContainer.children[a],o=e>0?0:i.children.length-1,s=e>0?i.children.length:-1,l=o;l!=s;l+=e){var c=i.children[l];if(-1===c.className.indexOf("hidden")&&E(c.dateObj))return c}}function v(e,t){var a=r(),i=q(a||document.body),o=void 0!==e?e:i?a:void 0!==n.selectedDateElem&&q(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&q(n.todayDateElem)?n.todayDateElem:b(t>0?1:-1);void 0===o?n._input.focus():i?function(e,t){for(var r=-1===e.className.indexOf("Month")?e.dateObj.getMonth():n.currentMonth,a=t>0?n.config.showMonths:-1,i=t>0?1:-1,o=r-n.currentMonth;o!=a;o+=i)for(var s=n.daysContainer.children[o],l=r-n.currentMonth===o?e.$i+t:t<0?s.children.length-1:0,c=s.children.length,u=l;u>=0&&u<c&&u!=(t>0?c:-1);u+=i){var d=s.children[u];if(-1===d.className.indexOf("hidden")&&E(d.dateObj)&&Math.abs(e.$i-u)>=Math.abs(t))return y(d)}n.changeMonth(i),v(b(i),0)}(o,t):y(o)}function M(e,t){for(var r=(new Date(e,t,1).getDay()-n.l10n.firstDayOfWeek+7)%7,a=n.utils.getDaysInMonth((t-1+12)%12,e),i=n.utils.getDaysInMonth(t,e),o=window.document.createDocumentFragment(),s=n.config.showMonths>1,l=s?"prevMonthDay hidden":"prevMonthDay",c=s?"nextMonthDay hidden":"nextMonthDay",u=a+1-r,d=0;u<=a;u++,d++)o.appendChild(g("flatpickr-day "+l,new Date(e,t-1,u),0,d));for(u=1;u<=i;u++,d++)o.appendChild(g("flatpickr-day",new Date(e,t,u),0,d));for(var p=i+1;p<=42-r&&(1===n.config.showMonths||d%7!=0);p++,d++)o.appendChild(g("flatpickr-day "+c,new Date(e,t+1,p%i),0,d));var h=gu("div","dayContainer");return h.appendChild(o),h}function x(){if(void 0!==n.daysContainer){GC(n.daysContainer),n.weekNumbers&&GC(n.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<n.config.showMonths;t++){var r=new Date(n.currentYear,n.currentMonth,1);r.setMonth(n.currentMonth+t),e.appendChild(M(r.getFullYear(),r.getMonth()))}n.daysContainer.appendChild(e),n.days=n.daysContainer.firstChild,"range"===n.config.mode&&1===n.selectedDates.length&&L()}}function z(){if(!(n.config.showMonths>1||"dropdown"!==n.config.monthSelectorType)){var e=function(e){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&e<n.config.minDate.getMonth())&&!(void 0!==n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()&&e>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var r=gu("option","flatpickr-monthDropdown-month");r.value=new Date(n.currentYear,t).getMonth().toString(),r.textContent=YC(t,n.config.shorthandCurrentMonth,n.l10n),r.tabIndex=-1,n.currentMonth===t&&(r.selected=!0),n.monthsDropdownContainer.appendChild(r)}}}function _(){var e,t=gu("div","flatpickr-month"),r=window.document.createDocumentFragment();n.config.showMonths>1||"static"===n.config.monthSelectorType?e=gu("span","cur-month"):(n.monthsDropdownContainer=gu("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),d(n.monthsDropdownContainer,"change",function(e){var t=Pm(e),r=parseInt(t.value,10);n.changeMonth(r-n.currentMonth),Y("onMonthChange")}),z(),e=n.monthsDropdownContainer);var a=XC("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&i.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(i.setAttribute("max",n.config.maxDate.getFullYear().toString()),i.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var o=gu("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(a),r.appendChild(o),t.appendChild(r),{container:t,yearElement:i,monthElement:e}}function A(){GC(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var e=n.config.showMonths;e--;){var t=_();n.yearElements.push(t.yearElement),n.monthElements.push(t.monthElement),n.monthNav.appendChild(t.container)}n.monthNav.appendChild(n.nextMonthNav)}function O(){n.weekdayContainer?GC(n.weekdayContainer):n.weekdayContainer=gu("div","flatpickr-weekdays");for(var e=n.config.showMonths;e--;){var t=gu("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(t)}return w(),n.weekdayContainer}function w(){if(n.weekdayContainer){var e=n.l10n.firstDayOfWeek,t=u5e(n.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=u5e(t.splice(e,t.length),t.splice(0,e)));for(var r=n.config.showMonths;r--;)n.weekdayContainer.children[r].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function k(e,t){void 0===t&&(t=!0);var r=t?e:e-n.currentMonth;r<0&&!0===n._hidePrevMonthArrow||r>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=r,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,Y("onYearChange"),z()),x(),Y("onMonthChange"),J())}function T(e){return n.calendarContainer.contains(e)}function S(e){if(n.isOpen&&!n.config.inline){var t=Pm(e),r=T(t),a=!(t===n.input||t===n.altInput||n.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(n.input)||~e.path.indexOf(n.altInput)))&&!r&&!T(e.relatedTarget),i=!n.config.ignoredFocusElements.some(function(e){return e.contains(t)});a&&i&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&""!==n.input.value&&void 0!==n.input.value&&o(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&n.clear(!1))}}function C(e){if(!(!e||n.config.minDate&&e<n.config.minDate.getFullYear()||n.config.maxDate&&e>n.config.maxDate.getFullYear())){var t=e,r=n.currentYear!==t;n.currentYear=t||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),r&&(n.redraw(),Y("onYearChange"),z())}}function E(e,t){var r;void 0===t&&(t=!0);var a=n.parseDate(e,void 0,t);if(n.config.minDate&&a&&Im(a,n.config.minDate,void 0!==t?t:!n.minDateHasTime)<0||n.config.maxDate&&a&&Im(a,n.config.maxDate,void 0!==t?t:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===a)return!1;for(var i=!!n.config.enable,o=null!==(r=n.config.enable)&&void 0!==r?r:n.config.disable,s=0,l=void 0;s<o.length;s++){if("function"==typeof(l=o[s])&&l(a))return i;if(l instanceof Date&&void 0!==a&&l.getTime()===a.getTime())return i;if("string"==typeof l){var c=n.parseDate(l,void 0,!0);return c&&c.getTime()===a.getTime()?i:!i}if("object"==typeof l&&void 0!==a&&l.from&&l.to&&a.getTime()>=l.from.getTime()&&a.getTime()<=l.to.getTime())return i}return!i}function q(e){return void 0!==n.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(e))}function D(e){var t=e.target===n._input,r=n._input.value.trimEnd()!==Q();t&&r&&(!e.relatedTarget||!T(e.relatedTarget))&&n.setDate(n._input.value,!0,e.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function R(t){var a=Pm(t),i=n.config.wrap?e.contains(a):a===n._input,l=n.config.allowInput,c=n.isOpen&&(!l||!i),u=n.config.inline&&i&&!l;if(13===t.keyCode&&i){if(l)return n.setDate(n._input.value,!0,a===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),a.blur();n.open()}else if(T(a)||c||u){var d=!!n.timeContainer&&n.timeContainer.contains(a);switch(t.keyCode){case 13:d?(t.preventDefault(),o(),j()):U(t);break;case 27:t.preventDefault(),j();break;case 8:case 46:i&&!n.config.allowInput&&(t.preventDefault(),n.clear());break;case 37:case 39:if(d||i)n.hourElement&&n.hourElement.focus();else{t.preventDefault();var p=r();if(void 0!==n.daysContainer&&(!1===l||p&&q(p))){var h=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),k(h),v(b(1),0)):v(void 0,h)}}break;case 38:case 40:t.preventDefault();var f=40===t.keyCode?1:-1;n.daysContainer&&void 0!==a.$i||a===n.input||a===n.altInput?t.ctrlKey?(t.stopPropagation(),C(n.currentYear-f),v(b(1),0)):d||v(void 0,7*f):a===n.currentYearElement?C(n.currentYear-f):n.config.enableTime&&(!d&&n.hourElement&&n.hourElement.focus(),o(t),n._debouncedChange());break;case 9:if(d){var m=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter(function(e){return e}),g=m.indexOf(a);if(-1!==g){var y=m[g+(t.shiftKey?-1:1)];t.preventDefault(),(y||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(a)&&t.shiftKey&&(t.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&a===n.amPM)switch(t.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],s(),K();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],s(),K()}(i||T(a))&&Y("onKeyDown",t)}function L(e,t){if(void 0===t&&(t="flatpickr-day"),1===n.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var r=e?e.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),a=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),i=Math.min(r,n.selectedDates[0].getTime()),o=Math.max(r,n.selectedDates[0].getTime()),s=!1,l=0,c=0,u=i;u<o;u+=s5e.DAY)E(new Date(u),!0)||(s=s||u>i&&u<o,u<a&&(!l||u>l)?l=u:u>a&&(!c||u<c)&&(c=u));Array.from(n.rContainer.querySelectorAll("*:nth-child(-n+"+n.config.showMonths+") > ."+t)).forEach(function(t){var i=t.dateObj.getTime(),o=l>0&&i<l||c>0&&i>c;if(o)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach(function(e){t.classList.remove(e)});s&&!o||(["startRange","inRange","endRange","notAllowed"].forEach(function(e){t.classList.remove(e)}),void 0!==e&&(e.classList.add(r<=n.selectedDates[0].getTime()?"startRange":"endRange"),a<r&&i===a?t.classList.add("startRange"):a>r&&i===a&&t.classList.add("endRange"),i>=l&&(0===c||i<=c)&&i5e(i,a,r)&&t.classList.add("inRange")))})}}function I(){n.isOpen&&!n.config.static&&!n.config.inline&&B()}function W(e){return function(t){var r=n.config["_"+e+"Date"]=n.parseDate(t,n.config.dateFormat),a=n.config["_"+("min"===e?"max":"min")+"Date"];void 0!==r&&(n["min"===e?"minDateHasTime":"maxDateHasTime"]=r.getHours()>0||r.getMinutes()>0||r.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter(function(e){return E(e)}),!n.selectedDates.length&&"min"===e&&l(r),K()),n.daysContainer&&(F(),void 0!==r?n.currentYearElement[e]=r.getFullYear().toString():n.currentYearElement.removeAttribute(e),n.currentYearElement.disabled=!!a&&void 0!==r&&a.getFullYear()===r.getFullYear())}}function N(){return n.config.wrap?e.querySelector("[data-input]"):e}function P(){"object"!=typeof n.config.locale&&typeof Fh.l10ns[n.config.locale]>"u"&&n.config.errorHandler(new Error("flatpickr: invalid locale "+n.config.locale)),n.l10n=N2(N2({},Fh.l10ns.default),"object"==typeof n.config.locale?n.config.locale:"default"!==n.config.locale?Fh.l10ns[n.config.locale]:void 0),DM.D="("+n.l10n.weekdays.shorthand.join("|")+")",DM.l="("+n.l10n.weekdays.longhand.join("|")+")",DM.M="("+n.l10n.months.shorthand.join("|")+")",DM.F="("+n.l10n.months.longhand.join("|")+")",DM.K="("+n.l10n.amPM[0]+"|"+n.l10n.amPM[1]+"|"+n.l10n.amPM[0].toLowerCase()+"|"+n.l10n.amPM[1].toLowerCase()+")",void 0===N2(N2({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===Fh.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=bre(n),n.parseDate=XW({config:n.config,l10n:n.l10n})}function B(e){if("function"!=typeof n.config.position){if(void 0!==n.calendarContainer){Y("onPreCalendarPosition");var t=e||n._positionElement,r=Array.prototype.reduce.call(n.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),a=n.calendarContainer.offsetWidth,i=n.config.position.split(" "),o=i[0],s=i.length>1?i[1]:null,l=t.getBoundingClientRect(),c=window.innerHeight-l.bottom,u="above"===o||"below"!==o&&c<r&&l.top>r,d=window.pageYOffset+l.top+(u?-r-2:t.offsetHeight+2);if(I2(n.calendarContainer,"arrowTop",!u),I2(n.calendarContainer,"arrowBottom",u),!n.config.inline){var p=window.pageXOffset+l.left,h=!1,f=!1;"center"===s?(p-=(a-l.width)/2,h=!0):"right"===s&&(p-=a-l.width,f=!0),I2(n.calendarContainer,"arrowLeft",!h&&!f),I2(n.calendarContainer,"arrowCenter",h),I2(n.calendarContainer,"arrowRight",f);var m=window.document.body.offsetWidth-(window.pageXOffset+l.right),g=p+a>window.document.body.offsetWidth,y=m+a>window.document.body.offsetWidth;if(I2(n.calendarContainer,"rightMost",g),!n.config.static)if(n.calendarContainer.style.top=d+"px",g)if(y){var b=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(n.cssRules){try{n.cssRules}catch{continue}e=n;break}}return e??function(){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}()}();if(void 0===b)return;var v=window.document.body.offsetWidth,M=Math.max(0,v/2-a/2),x=b.cssRules.length,z="{left:"+l.left+"px;right:auto;}";I2(n.calendarContainer,"rightMost",!1),I2(n.calendarContainer,"centerMost",!0),b.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+z,x),n.calendarContainer.style.left=M+"px",n.calendarContainer.style.right="auto"}else n.calendarContainer.style.left="auto",n.calendarContainer.style.right=m+"px";else n.calendarContainer.style.left=p+"px",n.calendarContainer.style.right="auto"}}}else n.config.position(n,e)}function F(){n.config.noCalendar||n.isMobile||(z(),J(),x())}function j(){n._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(n.close,0):n.close()}function U(e){e.preventDefault(),e.stopPropagation();var t=vre(Pm(e),function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var r=t,a=n.latestSelectedDateObj=new Date(r.dateObj.getTime()),i=(a.getMonth()<n.currentMonth||a.getMonth()>n.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=r,"single"===n.config.mode)n.selectedDates=[a];else if("multiple"===n.config.mode){var o=$(a);o?n.selectedDates.splice(parseInt(o),1):n.selectedDates.push(a)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=a,n.selectedDates.push(a),0!==Im(a,n.selectedDates[0],!0)&&n.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(s(),i){var l=n.currentYear!==a.getFullYear();n.currentYear=a.getFullYear(),n.currentMonth=a.getMonth(),l&&(Y("onYearChange"),z()),Y("onMonthChange")}if(J(),x(),K(),i||"range"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():y(r),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){var c="single"===n.config.mode&&!n.config.enableTime,u="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(c||u)&&j()}p()}}n.parseDate=XW({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=d,n._setHoursFromDate=l,n._positionCalendar=B,n.changeMonth=k,n.changeYear=C,n.clear=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=!0),n.input.value="",void 0!==n.altInput&&(n.altInput.value=""),void 0!==n.mobileInput&&(n.mobileInput.value=""),n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===t&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth()),!0===n.config.enableTime){var r=ZW(n.config);c(r.hours,r.minutes,r.seconds)}n.redraw(),e&&Y("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove("open"),void 0!==n._input&&n._input.classList.remove("active")),Y("onClose")},n.onMouseOver=L,n._createElement=gu,n.createDay=g,n.destroy=function(){void 0!==n.config&&Y("onDestroy");for(var e=n._handlers.length;e--;)n._handlers[e].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var t=n.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput),n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete n[e]}catch{}})},n.isEnabled=E,n.jumpToDate=h,n.updateValue=K,n.open=function(e,t){if(void 0===t&&(t=n._positionElement),!0===n.isMobile){if(e){e.preventDefault();var r=Pm(e);r&&r.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void Y("onOpen")}if(n._input.disabled||n.config.inline)return;var a=n.isOpen;n.isOpen=!0,a||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),Y("onOpen"),B(t)),!0===n.config.enableTime&&!0===n.config.noCalendar&&!1===n.config.allowInput&&(void 0===e||!n.timeContainer.contains(e.relatedTarget))&&setTimeout(function(){return n.hourElement.select()},50)},n.redraw=F,n.set=function(e,t){if(null!==e&&"object"==typeof e)for(var r in Object.assign(n.config,e),e)void 0!==V[r]&&V[r].forEach(function(e){return e()});else n.config[e]=t,void 0!==V[e]?V[e].forEach(function(e){return e()}):HW.indexOf(e)>-1&&(n.config[e]=GW(t));n.redraw(),K(!0)},n.setDate=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=n.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return n.clear(t);H(e,r),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),h(void 0,t),l(),0===n.selectedDates.length&&n.clear(!1),K(t),t&&Y("onChange")},n.toggle=function(e){if(!0===n.isOpen)return n.close();n.open(e)};var V={locale:[P,w],showMonths:[A,i,O],minDate:[h],maxDate:[h],positionElement:[G],clickOpens:[function(){!0===n.config.clickOpens?(d(n._input,"focus",n.open),d(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function H(e,t){var r=[];if(e instanceof Array)r=e.map(function(e){return n.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)r=[n.parseDate(e,t)];else if("string"==typeof e)switch(n.config.mode){case"single":case"time":r=[n.parseDate(e,t)];break;case"multiple":r=e.split(n.config.conjunction).map(function(e){return n.parseDate(e,t)});break;case"range":r=e.split(n.l10n.rangeSeparator).map(function(e){return n.parseDate(e,t)})}else n.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));n.selectedDates=n.config.allowInvalidPreload?r:r.filter(function(e){return e instanceof Date&&E(e,!1)}),"range"===n.config.mode&&n.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function X(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?n.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:n.parseDate(e.from,void 0),to:n.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function G(){n._positionElement=n.config.positionElement||n._input}function Y(e,t){if(void 0!==n.config){var r=n.config[e];if(void 0!==r&&r.length>0)for(var a=0;r[a]&&a<r.length;a++)r[a](n.selectedDates,n.input.value,n,t);"onChange"===e&&(n.input.dispatchEvent(Z("change")),n.input.dispatchEvent(Z("input")))}}function Z(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function $(e){for(var t=0;t<n.selectedDates.length;t++){var r=n.selectedDates[t];if(r instanceof Date&&0===Im(r,e))return""+t}return!1}function J(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach(function(e,t){var r=new Date(n.currentYear,n.currentMonth,1);r.setMonth(n.currentMonth+t),n.config.showMonths>1||"static"===n.config.monthSelectorType?n.monthElements[t].textContent=YC(r.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=r.getMonth().toString(),e.value=r.getFullYear().toString()}),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=void 0!==n.config.maxDate&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function Q(e){var t=e||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map(function(e){return n.formatDate(e,t)}).filter(function(e,t,r){return"range"!==n.config.mode||n.config.enableTime||r.indexOf(e)===t}).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function K(e){void 0===e&&(e=!0),void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=Q(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=Q(n.config.altFormat)),!1!==e&&Y("onValueUpdate")}function ee(e){var t=Pm(e),r=n.prevMonthNav.contains(t),a=n.nextMonthNav.contains(t);r||a?k(r?-1:1):n.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):t.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=e,n.isOpen=!1,function(){var r=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=N2(N2({},JSON.parse(JSON.stringify(e.dataset||{}))),t),o={};n.config.parseDate=i.parseDate,n.config.formatDate=i.formatDate,Object.defineProperty(n.config,"enable",{get:function(){return n.config._enable},set:function(e){n.config._enable=X(e)}}),Object.defineProperty(n.config,"disable",{get:function(){return n.config._disable},set:function(e){n.config._disable=X(e)}});var s="time"===i.mode;if(!i.dateFormat&&(i.enableTime||s)){var l=Fh.defaultConfig.dateFormat||X_.dateFormat;o.dateFormat=i.noCalendar||s?"H:i"+(i.enableSeconds?":S":""):l+" H:i"+(i.enableSeconds?":S":"")}if(i.altInput&&(i.enableTime||s)&&!i.altFormat){var c=Fh.defaultConfig.altFormat||X_.altFormat;o.altFormat=i.noCalendar||s?"h:i"+(i.enableSeconds?":S K":" K"):c+" h:i"+(i.enableSeconds?":S":"")+" K"}Object.defineProperty(n.config,"minDate",{get:function(){return n.config._minDate},set:W("min")}),Object.defineProperty(n.config,"maxDate",{get:function(){return n.config._maxDate},set:W("max")});var u=function(e){return function(t){n.config["min"===e?"_minTime":"_maxTime"]=n.parseDate(t,"H:i:S")}};Object.defineProperty(n.config,"minTime",{get:function(){return n.config._minTime},set:u("min")}),Object.defineProperty(n.config,"maxTime",{get:function(){return n.config._maxTime},set:u("max")}),"time"===i.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0),Object.assign(n.config,o,i);for(var d=0;d<r.length;d++)n.config[r[d]]=!0===n.config[r[d]]||"true"===n.config[r[d]];HW.filter(function(e){return void 0!==n.config[e]}).forEach(function(e){n.config[e]=GW(n.config[e]||[]).map(a)}),n.isMobile=!n.config.disableMobile&&!n.config.inline&&"single"===n.config.mode&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(d=0;d<n.config.plugins.length;d++){var p=n.config.plugins[d](n)||{};for(var h in p)HW.indexOf(h)>-1?n.config[h]=GW(p[h]).map(a).concat(n.config[h]):typeof i[h]>"u"&&(n.config[h]=p[h])}i.altInputClass||(n.config.altInputClass=N().className+" "+n.config.altInputClass),Y("onParseConfig")}(),P(),function(){if(n.input=N(),!n.input)return void n.config.errorHandler(new Error("Invalid input element specified"));n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=gu(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling)),n.config.allowInput||n._input.setAttribute("readonly","readonly"),G()}(),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var e=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);e&&H(e,n.config.dateFormat),n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]),void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i")),void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i")),n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=n.currentMonth),void 0===t&&(t=n.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:n.l10n.daysInMonth[e]}},n.isMobile||function(){var e=window.document.createDocumentFragment();if(n.calendarContainer=gu("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(e.appendChild((n.monthNav=gu("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=gu("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=gu("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,A(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:function(){return n.__hidePrevMonthArrow},set:function(e){n.__hidePrevMonthArrow!==e&&(I2(n.prevMonthNav,"flatpickr-disabled",e),n.__hidePrevMonthArrow=e)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:function(){return n.__hideNextMonthArrow},set:function(e){n.__hideNextMonthArrow!==e&&(I2(n.nextMonthNav,"flatpickr-disabled",e),n.__hideNextMonthArrow=e)}}),n.currentYearElement=n.yearElements[0],J(),n.monthNav)),n.innerContainer=gu("div","flatpickr-innerContainer"),n.config.weekNumbers){var t=function(){n.calendarContainer.classList.add("hasWeeks");var e=gu("div","flatpickr-weekwrapper");e.appendChild(gu("span","flatpickr-weekday",n.l10n.weekAbbreviation));var t=gu("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),r=t.weekWrapper,a=t.weekNumbers;n.innerContainer.appendChild(r),n.weekNumbers=a,n.weekWrapper=r}n.rContainer=gu("div","flatpickr-rContainer"),n.rContainer.appendChild(O()),n.daysContainer||(n.daysContainer=gu("div","flatpickr-days"),n.daysContainer.tabIndex=-1),x(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),e.appendChild(n.innerContainer)}n.config.enableTime&&e.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");var e=ZW(n.config);n.timeContainer=gu("div","flatpickr-time"),n.timeContainer.tabIndex=-1;var t=gu("span","flatpickr-time-separator",":"),r=XC("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=r.getElementsByTagName("input")[0];var a=XC("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});if(n.minuteElement=a.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=P2(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),n.minuteElement.value=P2(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():e.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(r),n.timeContainer.appendChild(t),n.timeContainer.appendChild(a),n.config.time_24hr&&n.timeContainer.classList.add("time24hr"),n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");var i=XC("flatpickr-second");n.secondElement=i.getElementsByTagName("input")[0],n.secondElement.value=P2(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():e.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(gu("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(i)}return n.config.time_24hr||(n.amPM=gu("span","flatpickr-am-pm",n.l10n.amPM[Lm((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM)),n.timeContainer}()),I2(n.calendarContainer,"rangeMode","range"===n.config.mode),I2(n.calendarContainer,"animate",!0===n.config.animate),I2(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(e);var i=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!i&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var o=gu("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(o,n.element),o.appendChild(n.element),n.altInput&&o.appendChild(n.altInput),o.appendChild(n.calendarContainer)}!n.config.static&&!n.config.inline&&(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){if(n.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(n.element.querySelectorAll("[data-"+e+"]"),function(t){return d(t,"click",n[e])})}),n.isMobile)return void function(){var e=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=gu("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=e,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr)),n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d")),n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d")),n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step"))),n.input.type="hidden",void 0!==n.altInput&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch{}d(n.mobileInput,"change",function(e){n.setDate(Pm(e).value,!1,n.mobileFormatStr),Y("onChange"),Y("onClose")})}();var e=pre(I,50);if(n._debouncedChange=pre(p,UEt),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&d(n.daysContainer,"mouseover",function(e){"range"===n.config.mode&&L(Pm(e))}),d(n._input,"keydown",R),void 0!==n.calendarContainer&&d(n.calendarContainer,"keydown",R),!n.config.inline&&!n.config.static&&d(window,"resize",e),void 0!==window.ontouchstart?d(window.document,"touchstart",S):d(window.document,"mousedown",S),d(window.document,"focus",S,{capture:!0}),!0===n.config.clickOpens&&(d(n._input,"focus",n.open),d(n._input,"click",n.open)),void 0!==n.daysContainer&&(d(n.monthNav,"click",ee),d(n.monthNav,["keyup","increment"],u),d(n.daysContainer,"click",U)),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement){var t=function(e){return Pm(e).select()};d(n.timeContainer,["increment"],o),d(n.timeContainer,"blur",o,{capture:!0}),d(n.timeContainer,"click",f),d([n.hourElement,n.minuteElement],["focus","click"],t),void 0!==n.secondElement&&d(n.secondElement,"focus",function(){return n.secondElement&&n.secondElement.select()}),void 0!==n.amPM&&d(n.amPM,"click",function(e){o(e)})}n.config.allowInput&&d(n._input,"blur",D)}(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&l(n.config.noCalendar?n.latestSelectedDateObj:void 0),K(!1)),i();var r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&r&&B(),Y("onReady")}(),n}function qT(e,t){for(var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),r=[],a=0;a<n.length;a++){var i=n[a];try{if(null!==i.getAttribute("data-fp-omit"))continue;void 0!==i._flatpickr&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=HEt(i,t||{}),r.push(i._flatpickr)}catch(e){console.error(e)}}return 1===r.length?r[0]:r}var N2,u5e,UEt,Fh,$W,Mre=kr(()=>{fre(),hre(),mre(),n5e(),l5e(),yre(),c5e(),N2=function(){return N2=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},N2.apply(this,arguments)},u5e=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),a=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)r[a]=i[o];return r},UEt=300,typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return qT(this,e)},HTMLElement.prototype.flatpickr=function(e){return qT([this],e)}),(Fh=function(e,t){return"string"==typeof e?qT(window.document.querySelectorAll(e),t):e instanceof Node?qT([e],t):qT(e,t)}).defaultConfig={},Fh.l10ns={en:N2({},jW),default:N2({},jW)},Fh.localize=function(e){Fh.l10ns.default=N2(N2({},Fh.l10ns.default),e)},Fh.setDefaults=function(e){Fh.defaultConfig=N2(N2({},Fh.defaultConfig),e)},Fh.parseDate=XW({}),Fh.formatDate=bre({}),Fh.compareDates=Im,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(e){return qT(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},typeof window<"u"&&(window.flatpickr=Fh),$W=Fh});function d5e(e,t={}){return new KW(e,t)}function f5e(e,t={}){let n=e.createEl("input",{cls:"hidden-date-picker-input",attr:{type:"text"}});return VEt(n,{display:"none"}),new KW(n,t)}var VEt,KW,h5e,JW,xre=kr(()=>{Mre(),VEt=(e,t)=>{Object.entries(t).forEach(([t,n])=>{e.style.setProperty(t,n)})},KW=class{constructor(e,t={}){this.instance=null,this.element=e,this.options={mode:"single",dateFormat:"Y-m-d",altInput:!0,altFormat:"M j, Y",enableTime:!1,...t},this.initialize()}initialize(){this.instance=$W(this.element,{mode:this.options.mode,dateFormat:this.options.dateFormat,altInput:this.options.altInput,altFormat:this.options.altFormat,enableTime:this.options.enableTime,defaultDate:this.options.defaultDate,onChange:this.options.onChange}),this.options.placeholder&&(this.element.placeholder=this.options.placeholder)}setDate(e,t=!0){this.instance&&this.instance.setDate(e,t)}getSelectedDates(){return this.instance?.selectedDates||[]}clear(e=!0){this.instance&&this.instance.clear(e)}open(){this.instance&&this.instance.open()}close(){this.instance&&this.instance.close()}destroy(){this.instance&&(this.instance.destroy(),this.instance=null)}isOpen(){return this.instance?.isOpen||!1}updateOptions(e){this.options={...this.options,...e},this.instance&&(this.destroy(),this.initialize())}}}),p5e=kr(()=>{Fc(),Wo(),h1(),h1(),Zo(),xre(),qp(),Z0(),h5e=({plugin:e,onClose:t})=>{let n=Qe.getSettings().activityWatch,r=(n.profiles||[]).map(e=>({...e,supportingEvidenceRules:e.supportingEvidenceRules||[]})),[a,i]=Li(n.apiUrl),[o,s]=Li(n.targetCalendarId),[l,c]=Li(n.syncStrategy),[u,d]=Li(n.autoSyncEnabled),[p,h]=Li(Math.max(1,n.autoSyncIntervalMins||10)),f=qf(null),[m,g]=Li(()=>n.customDateStart&&n.customDateEnd?[new Date(n.customDateStart),new Date(n.customDateEnd)]:[]),[y,b]=Li(r);vu(()=>{if("custom"===l&&f.current){let e=d5e(f.current,{mode:"range",defaultDate:m,onChange:e=>g(e)});return()=>e.destroy()}},[l,m]);let v=(e,t)=>{b(y.map(n=>n.id===e?{...n,...t}:n))},M=Qe.getProviderRegistry().getAllSources().map(e=>{let t=Qe.getProviderRegistry().getInstance(e.id);return{id:e.id,name:e.name||e.type,canCreate:t?.getCapabilities()?.canCreate}}).filter(e=>e.canCreate),x=n.lastSyncTime?new Date(n.lastSyncTime).toLocaleString():Ce("modals.activityWatchSetup.strategy.neverSynced"),z=(e,t)=>{let n=e[t]||[],r=n=>v(e.id,{[t]:n});return Rt("div",{className:"activitywatch-rule-list",children:[n.map(e=>Rt("div",{className:"activitywatch-rule-row",children:[Rt("input",{list:`buckets-${e.id}`,type:"text",value:e.bucketType,onChange:t=>r(n.map(n=>n.id===e.id?{...n,bucketType:t.target.value}:n)),placeholder:Ce("modals.activityWatchSetup.rules.bucketPlaceholder")}),Rt("datalist",{id:`buckets-${e.id}`,children:[Rt("option",{value:"web"}),Rt("option",{value:"window"}),Rt("option",{value:"afk"})]}),Rt("input",{list:`fields-${e.id}`,type:"text",value:e.matchField||"",onChange:t=>r(n.map(n=>n.id===e.id?{...n,matchField:t.target.value}:n)),placeholder:Ce("modals.activityWatchSetup.rules.fieldPlaceholder")}),Rt("datalist",{id:`fields-${e.id}`,children:["web"===e.bucketType&&Rt(Pu,{children:[Rt("option",{value:"url"}),Rt("option",{value:"title"}),Rt("option",{value:"audible"}),Rt("option",{value:"incognito"}),Rt("option",{value:"tabCount"})]}),"window"===e.bucketType&&Rt(Pu,{children:[Rt("option",{value:"app"}),Rt("option",{value:"title"})]}),"afk"===e.bucketType&&Rt("option",{value:"status"})]}),Rt("input",{type:"text",value:e.matchPattern,onChange:t=>r(n.map(n=>n.id===e.id?{...n,matchPattern:t.target.value}:n)),placeholder:Ce("modals.activityWatchSetup.rules.matchPatternPlaceholder")}),Rt("label",{className:"activitywatch-rule-checkbox",children:[Rt("input",{type:"checkbox",checked:e.useRegex,onChange:t=>r(n.map(n=>n.id===e.id?{...n,useRegex:t.target.checked}:n))})," ",Ce("modals.activityWatchSetup.rules.regex")]}),Rt("button",{type:"button",onClick:()=>r(n.filter(t=>t.id!==e.id)),className:"mod-warning",children:"x"})]},e.id)),Rt("button",{type:"button",className:"activitywatch-inline-button",onClick:()=>r([...n,{id:Math.random().toString(36).substring(2,11),bucketType:"window",matchField:"app",matchPattern:"",useRegex:!1}]),children:Ce("modals.activityWatchSetup.rules.btnAdd")})]})};return Rt("div",{className:"ofc-settings-modal-shell activitywatch-settings-shell",children:[Rt("div",{className:"ofc-settings-modal-body activitywatch-settings-body",children:[Rt("section",{className:"activitywatch-settings-heading setting-item",children:Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("settings.activityWatch.title")}),Rt("div",{className:"setting-item-description",children:[Ce("settings.activityWatch.enable.description")," Learn more:"," ",Rt("a",{href:kW("user/features/activitywatch"),children:"ActivityWatch integration"})," | ",Rt("a",{href:kW("user/guides/troubleshooting"),children:"Troubleshooting"})]})]})}),Rt("section",{className:"activitywatch-settings-section",children:[Rt("h3",{children:Ce("modals.activityWatchSetup.strategy.title")}),Rt("div",{className:"activitywatch-segmented-row",children:[Rt("label",{children:[Rt("input",{type:"radio",name:"syncStrategy",checked:"auto"===l,onChange:()=>c("auto")}),Ce("modals.activityWatchSetup.strategy.auto")]}),Rt("label",{children:[Rt("input",{type:"radio",name:"syncStrategy",checked:"custom"===l,onChange:()=>c("custom")}),Ce("modals.activityWatchSetup.strategy.custom")]})]}),"auto"===l&&Rt("div",{className:"activitywatch-muted-block",children:[Ce("modals.activityWatchSetup.strategy.lastSynced"),": ",x,Rt("div",{children:Ce("modals.activityWatchSetup.strategy.autoDescription")})]}),"custom"===l&&Rt("div",{className:"activitywatch-custom-range",children:[Rt("input",{ref:f,type:"text",placeholder:Ce("modals.activityWatchSetup.strategy.datePlaceholder")}),Rt("div",{className:"activitywatch-muted-block",children:Ce("modals.activityWatchSetup.strategy.customDescription")})]}),"auto"===l&&Rt("div",{className:"activitywatch-auto-sync-controls",children:[Rt("label",{className:"activitywatch-checkbox-row",children:[Rt("input",{type:"checkbox",checked:u,onChange:e=>d(e.target.checked)}),Ce("modals.activityWatchSetup.strategy.autoSyncEnabled")]}),Rt("label",{className:"activitywatch-field-stack",children:[Rt("span",{children:Ce("modals.activityWatchSetup.strategy.autoSyncIntervalMins")}),Rt("input",{type:"number",min:"1",step:"1",value:p,onChange:e=>h(Math.max(1,parseInt(e.target.value)||1)),disabled:!u})]})]})]}),Rt("section",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:Rt("div",{className:"setting-item-name",children:Ce("modals.activityWatchSetup.apiUrl")})}),Rt("div",{className:"setting-item-control",children:Rt("input",{type:"text",value:a,onChange:e=>i(e.target.value),spellCheck:!1})})]}),Rt("section",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:Rt("div",{className:"setting-item-name",children:Ce("modals.activityWatchSetup.targetCalendar")})}),Rt("div",{className:"setting-item-control",children:Rt("select",{value:o,onChange:e=>s(e.target.value),children:[Rt("option",{value:"",children:Ce("modals.activityWatchSetup.unselected")}),M.map(e=>Rt("option",{value:e.id,children:e.name},e.id))]})})]}),Rt("section",{className:"activitywatch-settings-section",children:[Rt("h3",{children:Ce("modals.activityWatchSetup.profiles.title")}),Rt("div",{className:"activitywatch-profile-list",children:[y.map(e=>Rt("div",{className:"activitywatch-profile",children:[Rt("div",{className:"activitywatch-profile-header",children:[Rt("strong",{children:Ce("modals.activityWatchSetup.profiles.config")}),Rt("button",{type:"button",onClick:()=>(e=>{b(y.filter(t=>t.id!==e))})(e.id),className:"mod-warning",children:Ce("modals.activityWatchSetup.profiles.btnDelete")})]}),Rt("div",{className:"activitywatch-profile-grid",children:[Rt("label",{children:[Ce("modals.activityWatchSetup.profiles.name"),Rt("input",{type:"text",value:e.name,onChange:t=>v(e.id,{name:t.target.value})})]}),Rt("label",{children:[Ce("modals.activityWatchSetup.profiles.category"),Rt("input",{type:"text",value:e.color,onChange:t=>v(e.id,{color:t.target.value})})]})]}),Rt("div",{className:"activitywatch-profile-grid",children:[Rt("label",{children:[Ce("modals.activityWatchSetup.profiles.activationThreshold"),Rt("input",{type:"number",min:"0",value:e.activationThresholdMins,onChange:t=>v(e.id,{activationThresholdMins:parseInt(t.target.value)||0})})]}),Rt("label",{children:[Ce("modals.activityWatchSetup.profiles.softBreakLimit"),Rt("input",{type:"number",min:"0",value:e.softBreakLimitMins,onChange:t=>v(e.id,{softBreakLimitMins:parseInt(t.target.value)||0})})]})]}),Rt("label",{className:"activitywatch-field-stack",children:[Rt("span",{children:Ce("modals.activityWatchSetup.profiles.titleTemplate")}),Rt("input",{type:"text",value:e.titleTemplate,onChange:t=>v(e.id,{titleTemplate:t.target.value}),placeholder:Ce("modals.activityWatchSetup.profiles.titleTemplatePlaceholder")})]}),Rt("div",{children:[Rt("strong",{children:Ce("modals.activityWatchSetup.profiles.primaryEvidenceRules")}),z(e,"primaryEvidenceRules")]}),Rt("div",{children:[Rt("strong",{children:Ce("modals.activityWatchSetup.profiles.supportingEvidenceRules")}),z(e,"supportingEvidenceRules")]}),Rt("div",{children:[Rt("strong",{children:Ce("modals.activityWatchSetup.profiles.hardBreakRules")}),z(e,"hardBreakRules")]})]},e.id)),Rt("button",{type:"button",className:"activitywatch-inline-button",onClick:()=>{b([...y,{id:Math.random().toString(36).substring(2,11),name:"New Profile",activationThresholdMins:5,softBreakLimitMins:3,primaryEvidenceRules:[],supportingEvidenceRules:[],hardBreakRules:[],titleTemplate:"{app} - {title}",color:"Work"}])},children:Ce("modals.activityWatchSetup.profiles.btnAddProfile")})]})]})]}),Rt("footer",{className:"ofc-settings-modal-footer activitywatch-settings-footer",children:[Rt("button",{type:"button",onClick:t,children:Ce("modals.activityWatchSetup.buttons.cancel")}),Rt("button",{type:"button",className:"mod-cta",onClick:()=>{(async()=>{Qe.getSettings().activityWatch.apiUrl=a,Qe.getSettings().activityWatch.targetCalendarId=o,Qe.getSettings().activityWatch.syncStrategy=l,Qe.getSettings().activityWatch.autoSyncEnabled="auto"===l&&u,Qe.getSettings().activityWatch.autoSyncIntervalMins=Math.max(1,p||10),Qe.getSettings().activityWatch.customDateStart=m[0]?m[0].toISOString():"",Qe.getSettings().activityWatch.customDateEnd=m[1]?m[1].toISOString():"",Qe.getSettings().activityWatch.profiles=y,await Qe.saveSettings(),Na(Ce("modals.activityWatchSetup.saved")),t()})()},children:Ce("modals.activityWatchSetup.buttons.save")})]})]})}}),m5e=kr(()=>{h1(),cC(),p5e(),JW=class extends Mv{constructor(e,t){super(e.app,n=>Promise.resolve(io(h5e,{plugin:e,onClose:()=>{n(),t()}}))),this.plugin=e,this.onChange=t}onOpen(){this.contentEl.parentElement?.addClass("ofc-settings-modal-wide"),this.contentEl.parentElement?.addClass("activitywatch-settings-modal"),super.onOpen()}onClose(){this.contentEl.parentElement?.removeClass("ofc-settings-modal-wide"),this.contentEl.parentElement?.removeClass("activitywatch-settings-modal"),super.onClose()}}}),g5e={};function jEt(e,t,n){let r=Qe.getSettings().activityWatch;new v5e.Setting(e).setName(Ce("settings.activityWatch.enable.label")).setDesc(Zl(Ce("settings.activityWatch.enable.description"),[{text:"ActivityWatch integration",path:"user/features/activitywatch"},{text:"Troubleshooting",path:"user/guides/troubleshooting"}])).setHeading().addToggle(e=>{e.setValue(r.enabled).onChange(async e=>{r.enabled=e,await Qe.saveSettings(),n(),e&&(!r.targetCalendarId||""===r.targetCalendarId)&&Na(Ce("settings.activityWatch.sync.enabledPrompt"))})}).addExtraButton(e=>{e.setIcon("gear").setTooltip(Ce("settings.activityWatch.configButton")).onClick(()=>{new JW(t,n).open()})})}Zs(g5e,{renderActivityWatchSettings:()=>jEt});var v5e,bg,Bc,_re,GEt,XEt,YEt,ZEt,Nm,y5e=kr(()=>{Fc(),Wo(),v5e=require("obsidian"),Zo(),m5e(),qp()}),RM=kr(()=>{Wo(),bg={googleRefreshToken:e=>`fcr-gcal-ref-${e.toLowerCase().replace(/[^a-z0-9]/g,"-")}`,googleAccessToken:e=>`fcr-gcal-acc-${e.toLowerCase().replace(/[^a-z0-9]/g,"-")}`,googleClientSecret:()=>"fcr-gcal-custom-secret",microsoftRefreshToken:e=>`fcr-ms-ref-${e.toLowerCase().replace(/[^a-z0-9]/g,"-")}`,microsoftAccessToken:e=>`fcr-ms-acc-${e.toLowerCase().replace(/[^a-z0-9]/g,"-")}`,caldavPassword:e=>`fcr-caldav-pwd-${e.toLowerCase().replace(/[^a-z0-9]/g,"-")}`},Bc=class{static isSecretStorageSupported(){return typeof app<"u"&&!!app.secretStorage}static useLegacy(){try{return Qe.getSettings().useLegacyPlaintextCredentials}catch{return!1}}static getGoogleRefreshToken(e){if(this.useLegacy()||!this.isSecretStorageSupported())try{return Qe.getSettings().googleAccounts.find(t=>t.id===e)?.refreshToken??null}catch{return null}let t=app.secretStorage?.getSecret(bg.googleRefreshToken(e));return t&&""!==t?t:null}static setGoogleRefreshToken(e,t){if(this.useLegacy()||!this.isSecretStorageSupported())try{let n=Qe.getSettings().googleAccounts.find(t=>t.id===e);n&&(n.refreshToken=t)}catch{}else{app.secretStorage?.setSecret(bg.googleRefreshToken(e),t??"");try{let t=Qe.getSettings().googleAccounts.find(t=>t.id===e);t&&(t.refreshToken=null)}catch{}}}static hasGoogleRefreshToken(e){return!!this.getGoogleRefreshToken(e)}static getGoogleAccessToken(e){if(this.useLegacy()||!this.isSecretStorageSupported())try{return Qe.getSettings().googleAccounts.find(t=>t.id===e)?.accessToken??null}catch{return null}let t=app.secretStorage?.getSecret(bg.googleAccessToken(e));return t&&""!==t?t:null}static setGoogleAccessToken(e,t){if(this.useLegacy()||!this.isSecretStorageSupported())try{let n=Qe.getSettings().googleAccounts.find(t=>t.id===e);n&&(n.accessToken=t)}catch{}else{app.secretStorage?.setSecret(bg.googleAccessToken(e),t??"");try{let t=Qe.getSettings().googleAccounts.find(t=>t.id===e);t&&(t.accessToken=null)}catch{}}}static getGoogleClientSecret(){if(this.useLegacy()||!this.isSecretStorageSupported())try{return Qe.getSettings().googleClientSecret||""}catch{return""}return app.secretStorage?.getSecret(bg.googleClientSecret())||""}static setGoogleClientSecret(e){if(this.useLegacy()||!this.isSecretStorageSupported())try{Qe.getSettings().googleClientSecret=e}catch{}else{app.secretStorage?.setSecret(bg.googleClientSecret(),e);try{Qe.getSettings().googleClientSecret=""}catch{}}}static getMicrosoftRefreshToken(e){if(this.useLegacy()||!this.isSecretStorageSupported())try{return Qe.getSettings().microsoftAccounts.find(t=>t.id===e)?.refreshToken??null}catch{return null}let t=app.secretStorage?.getSecret(bg.microsoftRefreshToken(e));return t&&""!==t?t:null}static setMicrosoftRefreshToken(e,t){if(this.useLegacy()||!this.isSecretStorageSupported())try{let n=Qe.getSettings().microsoftAccounts.find(t=>t.id===e);n&&(n.refreshToken=t)}catch{}else{app.secretStorage?.setSecret(bg.microsoftRefreshToken(e),t??"");try{let t=Qe.getSettings().microsoftAccounts.find(t=>t.id===e);t&&(t.refreshToken=null)}catch{}}}static hasMicrosoftRefreshToken(e){return!!this.getMicrosoftRefreshToken(e)}static getMicrosoftAccessToken(e){if(this.useLegacy()||!this.isSecretStorageSupported())try{return Qe.getSettings().microsoftAccounts.find(t=>t.id===e)?.accessToken??null}catch{return null}let t=app.secretStorage?.getSecret(bg.microsoftAccessToken(e));return t&&""!==t?t:null}static setMicrosoftAccessToken(e,t){if(this.useLegacy()||!this.isSecretStorageSupported())try{let n=Qe.getSettings().microsoftAccounts.find(t=>t.id===e);n&&(n.accessToken=t)}catch{}else{app.secretStorage?.setSecret(bg.microsoftAccessToken(e),t??"");try{let t=Qe.getSettings().microsoftAccounts.find(t=>t.id===e);t&&(t.accessToken=null)}catch{}}}static getCalDAVPassword(e){if(this.useLegacy()||!this.isSecretStorageSupported()){try{let t=Qe.getSettings().calendarSources.find(t=>t.id===e);if(t&&"caldav"===t.type)return t.password??null}catch{}return null}let t=app.secretStorage?.getSecret(bg.caldavPassword(e));return t&&""!==t?t:null}static setCalDAVPassword(e,t){if(this.useLegacy()||!this.isSecretStorageSupported())try{let n=Qe.getSettings().calendarSources.find(t=>t.id===e);n&&"caldav"===n.type&&(n.password=t??"")}catch{}else{app.secretStorage?.setSecret(bg.caldavPassword(e),t??"");try{let t=Qe.getSettings().calendarSources.find(t=>t.id===e);t&&"caldav"===t.type&&(t.password="")}catch{}}}}}),yA=kr(()=>{Fc(),Wo(),_re=require("obsidian"),Zo(),RM(),GEt="https://oauth2.googleapis.com/token",XEt="https://gcal-proxy-server.vercel.app/api/google/refresh",YEt="272284435724-ltjbog78np5lnbjhgecudaqhsfba9voi.apps.googleusercontent.com",ZEt="https://openidconnect.googleapis.com/v1/userinfo",Nm=class{constructor(e){this.plugin=e}async refreshAccessToken(e,t){let n=Qe.getSettings(),r="id"in e?e.id:null,a=r?Bc.getGoogleRefreshToken(r):e.refreshToken;if(!a){let t="email"in e?e.email:"unknown";return console.error(`No refresh token available. Account: ${t} (ID: ${r||"unknown"})`),null}let i,o,s,l=n.useCustomGoogleClient?n.googleClientId:YEt,c=n.useCustomGoogleClient?Bc.getGoogleClientSecret():"";n.useCustomGoogleClient?(i=GEt,o=new URLSearchParams({grant_type:"refresh_token",client_id:l,refresh_token:a,client_secret:c}).toString(),s={"Content-Type":"application/x-www-form-urlencoded"}):(i=XEt,o=JSON.stringify({client_id:l,refresh_token:a}),s={"Content-Type":"application/json"});try{let n=await(0,_re.requestUrl)({method:"POST",url:i,headers:s,body:o,throw:!1});if(n.status>=200&&n.status<300){let t=n.json;return r?(Bc.setGoogleAccessToken(r,t.access_token),t.refresh_token&&Bc.setGoogleRefreshToken(r,t.refresh_token)):(e.accessToken=t.access_token,t.refresh_token&&(e.refreshToken=t.refresh_token)),e.expiryDate=Date.now()+1e3*t.expires_in,await Qe.saveSettings(),t.access_token}if(console.error(`Failed to refresh Google access token. Status: ${n.status} Body: ${n.text}`),400===n.status||401===n.status){if(!t&&r){let e=Qe.getSettings().googleAccounts.find(e=>e.id===r);e&&(Bc.setGoogleAccessToken(r,null),Bc.setGoogleRefreshToken(r,null),e.expiryDate=null)}await Qe.saveSettings(),Na(Ce("google.auth.expired"))}return null}catch(e){return console.error("Network error during Google token refresh:",e),null}}async getTokenForSource(e){if(!e.googleAccountId)return console.error("Google source is missing a googleAccountId. It may need to be re-added.",e),Na(Ce("google.auth.authFailed")),null;let t=Qe.getSettings().googleAccounts.find(t=>t.id===e.googleAccountId);if(!t)return console.error(`Could not find Google account with ID: ${e.googleAccountId}`),null;let n=Bc.getGoogleAccessToken(t.id);return n&&t.expiryDate&&Date.now()<t.expiryDate-6e4?n:this.refreshAccessToken(t,!1)}async getUserEmail(e){return(await(0,_re.requestUrl)({url:ZEt,headers:{Authorization:`Bearer ${e}`}})).json.email}async addAccount(e){let t=await this.getUserEmail(e.accessToken),n={id:`gcal_${t}`,email:t,refreshToken:null,accessToken:null,expiryDate:e.expiryDate},r=Qe.getSettings().googleAccounts||[],a=r.findIndex(e=>e.id===n.id);return-1!==a?r[a]=n:r.push(n),Qe.getSettings().googleAccounts=r,Bc.setGoogleRefreshToken(n.id,e.refreshToken),Bc.setGoogleAccessToken(n.id,e.accessToken),await Qe.saveSettings(),this.plugin.app.workspace.trigger("full-calendar:google-account-added"),n}async removeAccount(e){Qe.getSettings().googleAccounts=(Qe.getSettings().googleAccounts||[]).filter(t=>t.id!==e),Qe.getSettings().calendarSources=Qe.getSettings().calendarSources.filter(t=>!("google"===t.type&&t.googleAccountId===e)),await Qe.saveSettings()}}}),b5e={};function $Et(e,t,n){let r=new Nm(t);new bA.Setting(e).setName(Ce("google.title")).setHeading().setDesc(Wh([{text:"Google calendar setup",path:"user/calendars/gcal"},{text:"Calendar sources settings",path:"user/settings/sources"},{text:"Troubleshooting",path:"user/guides/troubleshooting"}])),new bA.Setting(e).setName(Ce("google.copyPasteAuth.enable.label")).setDesc(Ce("google.copyPasteAuth.enable.description")).addToggle(e=>{e.setValue(Qe.getSettings().googleUseCopyPasteAuth).onChange(async e=>{Qe.getSettings().googleUseCopyPasteAuth=e,await Qe.saveSettings(),n()})}),new bA.Setting(e).setName(Ce("google.customCredentials.enable.label")).setDesc(Zl(Ce("google.customCredentials.enable.description"),[{text:"Google calendar setup",path:"user/calendars/gcal"}])).addToggle(e=>{e.setValue(Qe.getSettings().useCustomGoogleClient).onChange(async e=>{Qe.getSettings().useCustomGoogleClient=e,await Qe.saveSettings(),n()})}),Qe.getSettings().useCustomGoogleClient&&(new bA.Setting(e).setName(Ce("google.customCredentials.clientId.label")).setDesc(Ce("google.customCredentials.clientId.description")).addText(e=>{e.setValue(Qe.getSettings().googleClientId).onChange(async e=>{Qe.getSettings().googleClientId=e,await Qe.saveSettings()})}),new bA.Setting(e).setName(Ce("google.customCredentials.clientSecret.label")).setDesc(Ce("google.customCredentials.clientSecret.description")).addText(e=>{e.inputEl.type="password",e.setValue(Qe.getSettings().googleClientSecret).onChange(async e=>{Qe.getSettings().googleClientSecret=e,await Qe.saveSettings()})}));let a=Qe.getSettings().googleAccounts||[];0===a.length&&e.createEl("p",{text:Ce("google.noAccounts")}),a.forEach(t=>{new bA.Setting(e).setName(t.email).setDesc(Ce("google.accountDescription",{id:t.id})).addButton(e=>{e.setButtonText(Ce("google.buttons.disconnect")).setWarning().onClick(async()=>{await r.removeAccount(t.id),n()})})})}Zs(b5e,{renderGoogleSettings:()=>$Et});var bA,M5e=kr(()=>{Wo(),bA=require("obsidian"),yA(),Zo(),qp()});function QEt(e){return e.trim().replace(/\/$/,"")}function ZC(e){let t=!!e.useCustomMicrosoftClient;return{clientId:t?e.microsoftClientId.trim():KEt,proxyBaseUrl:t?QEt(e.microsoftProxyBaseUrl):JEt,isCustom:t}}var KEt,JEt,Are,eqt,Xb,zre=kr(()=>{KEt="611089cd-328a-4eff-8884-8b941c9e8860",JEt="https://gcal-proxy-server.vercel.app"}),$C=kr(()=>{Fc(),Are=require("obsidian"),Wo(),Zo(),zre(),RM(),eqt="https://graph.microsoft.com/v1.0/me",Xb=class{constructor(e){this.plugin=e}async refreshAccessToken(e){let t=Bc.getMicrosoftRefreshToken(e.id);if(!t)return console.error("No refresh token available for Outlook account:",e.id),null;let{proxyBaseUrl:n,isCustom:r}=ZC(Qe.getSettings());if(r&&!n)return Na(Ce("outlook.auth.proxyMissing")),null;try{let r=await(0,Are.requestUrl)({method:"POST",url:`${n}/api/microsoft/refresh`,headers:{"Content-Type":"application/json"},body:JSON.stringify({refresh_token:t}),throw:!1});if(r.status>=200&&r.status<300){let t=r.json;return Bc.setMicrosoftAccessToken(e.id,t.access_token),e.expiryDate=Date.now()+1e3*t.expires_in,t.refresh_token&&Bc.setMicrosoftRefreshToken(e.id,t.refresh_token),await Qe.saveSettings(),t.access_token}return console.error("Failed to refresh Outlook access token:",r.status,r.text),(400===r.status||401===r.status)&&(Bc.setMicrosoftAccessToken(e.id,null),Bc.setMicrosoftRefreshToken(e.id,null),e.expiryDate=null,await Qe.saveSettings(),Na(Ce("outlook.auth.expired"))),null}catch(e){return console.error("Network error during Outlook token refresh:",e),null}}async getTokenForSource(e){if(!e.microsoftAccountId)return Na(Ce("outlook.auth.authFailed")),null;let t=Qe.getSettings().microsoftAccounts.find(t=>t.id===e.microsoftAccountId);if(!t)return console.error("Could not find Outlook account with ID:",e.microsoftAccountId),null;let n=Bc.getMicrosoftAccessToken(t.id);return n&&t.expiryDate&&Date.now()<t.expiryDate-6e4?n:this.refreshAccessToken(t)}async getUserIdentity(e){let t=(await(0,Are.requestUrl)({url:eqt,headers:{Authorization:`Bearer ${e}`}})).json;return{email:t.mail||t.userPrincipalName||t.displayName||t.id,id:t.id}}async addAccount(e){let t=await this.getUserIdentity(e.accessToken),n={id:`ms_${t.id}`,email:t.email,refreshToken:null,accessToken:null,expiryDate:e.expiryDate},r=Qe.getSettings().microsoftAccounts||[],a=r.findIndex(e=>e.id===n.id);return a>=0?r[a]=n:r.push(n),Qe.getSettings().microsoftAccounts=r,Bc.setMicrosoftRefreshToken(n.id,e.refreshToken),Bc.setMicrosoftAccessToken(n.id,e.accessToken),await Qe.saveSettings(),this.plugin.app.workspace.trigger("full-calendar:outlook-account-added"),n}async removeAccount(e){Qe.getSettings().microsoftAccounts=(Qe.getSettings().microsoftAccounts||[]).filter(t=>t.id!==e),Qe.getSettings().calendarSources=Qe.getSettings().calendarSources.filter(t=>!("outlook"===t.type&&t.microsoftAccountId===e)),await Qe.saveSettings()}}}),x5e={};function tqt(e,t,n){let r=new Xb(t);new DT.Setting(e).setName(Ce("outlook.title")).setHeading().setDesc(Wh([{text:Ce("outlook.docs.setupGuide"),path:"user/calendars/outlook"},{text:Ce("outlook.misc.settingsSourcesLink"),path:"user/settings/sources"}])),new DT.Setting(e).setName(Ce("outlook.customCredentials.enable.label")).setDesc(Ce("outlook.customCredentials.enable.description")).addToggle(e=>{e.setValue(Qe.getSettings().useCustomMicrosoftClient).onChange(async e=>{Qe.getSettings().useCustomMicrosoftClient=e,await Qe.saveSettings(),n()})}),Qe.getSettings().useCustomMicrosoftClient&&(new DT.Setting(e).setName(Ce("outlook.config.clientId.label")).setDesc(Ce("outlook.config.clientId.description")).addText(e=>{e.setPlaceholder(Ce("outlook.config.clientIdPlaceholder")),e.setValue(Qe.getSettings().microsoftClientId||"").onChange(async e=>{Qe.getSettings().microsoftClientId=e,await Qe.saveSettings()})}),new DT.Setting(e).setName(Ce("outlook.config.proxyUrl.label")).setDesc(Ce("outlook.config.proxyUrl.description")).addText(e=>{e.setPlaceholder(Ce("outlook.config.proxyUrl.placeholder")),e.setValue(Qe.getSettings().microsoftProxyBaseUrl||"").onChange(async e=>{Qe.getSettings().microsoftProxyBaseUrl=e,await Qe.saveSettings()})}));let a=Qe.getSettings().microsoftAccounts||[];0===a.length&&e.createEl("p",{text:Ce("outlook.noAccounts")}),a.forEach(t=>{new DT.Setting(e).setName(t.email).setDesc(Ce("outlook.accountDescription",{id:t.id})).addButton(e=>{e.setButtonText(Ce("outlook.buttons.disconnect")).setWarning().onClick(async()=>{await r.removeAccount(t.id),n()})})})}Zs(x5e,{renderOutlookSettings:()=>tqt});var DT,LM,QW,_5e=kr(()=>{DT=require("obsidian"),Wo(),$C(),Zo(),qp()}),z5e=kr(()=>{Wo(),LM=require("obsidian"),Zo(),QW=class extends LM.Modal{constructor(e,t){super(e.app),this.plugin=e,this.onChange=t}onOpen(){this.contentEl.empty(),this.titleEl.setText(Ce("settings.tasksIntegration.modal.title"));let e=Qe.getSettings().tasksIntegration;new LM.Setting(this.contentEl).setName(Ce("settings.tasksIntegration.backlogDateTarget.label")).setDesc(Ce("settings.tasksIntegration.backlogDateTarget.description")).addDropdown(t=>{t.addOption("scheduledDate",Ce("settings.tasksIntegration.backlogDateTarget.scheduled")).addOption("startDate",Ce("settings.tasksIntegration.backlogDateTarget.start")).addOption("dueDate",Ce("settings.tasksIntegration.backlogDateTarget.due")).setValue(e.backlogDateTarget).onChange(async t=>{e.backlogDateTarget=t,await Qe.saveSettings(),Qe.getProviderRegistry().refreshBacklogViews(),this.onChange()})}),new LM.Setting(this.contentEl).setName(Ce("settings.tasksIntegration.calendarDisplayDateTarget.label")).setDesc(Ce("settings.tasksIntegration.calendarDisplayDateTarget.description")).addDropdown(t=>{t.addOption("scheduledDate",Ce("settings.tasksIntegration.backlogDateTarget.scheduled")).addOption("startDate",Ce("settings.tasksIntegration.backlogDateTarget.start")).addOption("dueDate",Ce("settings.tasksIntegration.backlogDateTarget.due")).setValue(e.calendarDisplayDateTarget).onChange(async t=>{e.calendarDisplayDateTarget=t,await Qe.saveSettings(),this.onChange()})}),new LM.Setting(this.contentEl).setName(Ce("settings.tasksIntegration.openEditModalAfterBacklogDrop.label")).setDesc(Ce("settings.tasksIntegration.openEditModalAfterBacklogDrop.description")).addToggle(t=>{t.setValue(e.openEditModalAfterBacklogDrop).onChange(async t=>{e.openEditModalAfterBacklogDrop=t,await Qe.saveSettings(),this.onChange()})}),new LM.Setting(this.contentEl).setName(Ce("settings.tasksIntegration.includeGlobalQueryInBacklog.label")).setDesc(Ce("settings.tasksIntegration.includeGlobalQueryInBacklog.description")).addToggle(t=>{t.setValue(e.includeGlobalQueryInBacklog??!1).onChange(async t=>{e.includeGlobalQueryInBacklog=t,await Qe.saveSettings(),Qe.getProviderRegistry().refreshBacklogViews(),this.onChange()})}),new LM.Setting(this.contentEl).setName(Ce("settings.tasksIntegration.backlogQuery.label")).setDesc(Ce("settings.tasksIntegration.backlogQuery.description")).addTextArea(t=>{t.setPlaceholder(Ce("settings.tasksIntegration.backlogQuery.placeholder")).setValue(e.backlogQuery??"").onChange(async t=>{e.backlogQuery=t,await Qe.saveSettings(),Qe.getProviderRegistry().refreshBacklogViews(),this.onChange()}),t.inputEl.rows=6,t.inputEl.cols=50,t.inputEl.setCssProps({width:"100%"})}),new LM.Setting(this.contentEl).setName(Ce("settings.tasksIntegration.taskDisplayFormat.label")).setDesc(Ce("settings.tasksIntegration.taskDisplayFormat.description")).addDropdown(t=>{t.addOption("standard",Ce("settings.tasksIntegration.taskDisplayFormat.standard")).addOption("dayPlanner",Ce("settings.tasksIntegration.taskDisplayFormat.dayPlanner")).setValue(e.taskDisplayFormat??"dayPlanner").onChange(async t=>{e.taskDisplayFormat=t,await Qe.saveSettings(),this.onChange()})})}onClose(){this.contentEl.empty()}}}),w5e={};function rqt(e,t,n){Qe.getSettings().calendarSources.some(e=>"tasks"===e.type)&&new A5e.Setting(e).setName(Ce("settings.tasksIntegration.title")).setDesc(Zl(Ce("settings.tasksIntegration.description"),[{text:"Tasks integration",path:"user/calendars/tasks-plugin-integration"}])).setHeading().addExtraButton(e=>{e.setIcon("gear").setTooltip(Ce("settings.tasksIntegration.configButton")).onClick(()=>{new QW(t,n).open()})})}Zs(w5e,{renderTasksIntegrationSettings:()=>rqt});var A5e,KC,eF,O5e=kr(()=>{Wo(),A5e=require("obsidian"),Zo(),qp(),z5e()}),T5e=kr(()=>{Wo(),KC=require("obsidian"),Zo(),eF=class extends KC.Modal{constructor(e,t){super(e.app),this.plugin=e,this.onChange=t,this.selectedSourceId=null}onOpen(){this.contentEl.empty(),this.titleEl.setText(Ce("settings.tasknotesIntegration.modal.title")),this.render()}render(){this.contentEl.empty();let e=Qe.getSettings().calendarSources.filter(e=>"tasknotes"===e.type);if(0===e.length)return void this.contentEl.createEl("p",{text:Ce("settings.tasknotesIntegration.noSource")});(!this.selectedSourceId||!e.some(e=>e.id===this.selectedSourceId))&&(this.selectedSourceId=e[0].id),e.length>1&&new KC.Setting(this.contentEl).setName(Ce("settings.tasknotesIntegration.source.label")).setDesc(Ce("settings.tasknotesIntegration.source.description")).addDropdown(t=>{e.forEach(e=>{t.addOption(e.id,e.name||e.id)}),t.setValue(this.selectedSourceId||e[0].id).onChange(e=>{this.selectedSourceId=e,this.render()})});let t=e.find(e=>e.id===this.selectedSourceId);if(!t||"tasknotes"!==t.type)return;let n=t.dispatchMode||"search";new KC.Setting(this.contentEl).setName(Ce("settings.tasknotesIntegration.dispatchMode.label")).setDesc(Ce("settings.tasknotesIntegration.dispatchMode.description")).addDropdown(e=>{e.addOption("search",Ce("settings.tasknotesIntegration.dispatchMode.options.search")).addOption("create",Ce("settings.tasknotesIntegration.dispatchMode.options.create")).setValue(n).onChange(async e=>{let n=e,r=Qe.getSettings().calendarSources.find(e=>e.id===t.id);!r||"tasknotes"!==r.type||(r.dispatchMode=n,await Qe.saveSettings(),this.onChange())})})}onClose(){this.contentEl.empty()}}}),k5e={};function nqt(e,t,n){let r=Qe.getSettings().calendarSources.some(e=>"tasknotes"===e.type);new S5e.Setting(e).setName(Ce("settings.tasknotesIntegration.title")).setDesc(Zl(Ce(r?"settings.tasknotesIntegration.descriptionConfigured":"settings.tasknotesIntegration.descriptionMissingSource"),[{text:Ce("settings.tasknotesIntegration.docsLink"),path:"user/calendars/tasknotes"}])).setHeading().addExtraButton(e=>{e.setIcon("gear").setTooltip(Ce("settings.tasknotesIntegration.configButton")).onClick(()=>{r?new eF(t,n).open():Na(Ce("notices.tasknotes.addSourceFirst"))})})}Zs(k5e,{renderTaskNotesIntegrationSettings:()=>nqt});var S5e,C5e=kr(()=>{Fc(),Wo(),S5e=require("obsidian"),qp(),T5e(),Zo()});function E5e(e){let t=e&&e.length>0?e:["events:read"],n=new Set;return t.forEach(e=>{aqt.has(e)&&n.add(e)}),Array.from(n)}function q5e(e,t){let n=new Set(e);return n.has(Yb)||n.has(t)}function D5e(e){return JC.find(t=>t.id===e)}var Yb,JC,aqt,wre=kr(()=>{JC=[{id:"ui:open-calendar",label:"Open calendar",description:"Open or focus the main calendar view."},{id:"ui:open-sidebar",label:"Open sidebar",description:"Open or focus the calendar sidebar view."},{id:"ui:change-view",label:"Change view",description:"Switch between day, week, month, and timeline views."},{id:"ui:modals",label:"Open modals",description:"Open the create/edit event modals."},{id:"events:read",label:"Read events",description:"Read cached events and event details."},{id:"events:write",label:"Write events",description:"Create, update, move, and delete events."},{id:"providers:read",label:"Read providers",description:"List calendar sources and provider capabilities."},{id:"providers:write",label:"Control providers",description:"Trigger provider refresh or remote revalidation."},{id:"settings:read",label:"Read settings",description:"Read plugin settings and configuration."},{id:"settings:write",label:"Write settings",description:"Update and persist plugin settings."},{id:Yb="system:full-access",label:"Full control (unsafe)",description:"Unrestricted access to internal state and APIs.",risky:!0}],aqt=new Set(JC.map(e=>e.id))}),P5e={};function R5e(e){return e.includes(Yb)?"Full control":0===e.length?"No permissions":e.join(", ")}function iqt(e){let t=new Map;return e.forEach(e=>{let n=e[1].pluginId;t.has(n)||t.set(n,[]),t.get(n)?.push(e)}),t}function L5e(e){return e.includes(Yb)?[Yb]:Array.from(new Set(e))}function oqt(e,t,n){let r=Qe.getSettings();new Av.Setting(e).setName(Ce("api.settings.serverTitle")).setHeading(),new Av.Setting(e).setName(Ce("api.settings.serverEnable")).setDesc(Ce("api.settings.serverEnableDesc")).addToggle(e=>{e.setValue(r.enableLocalServer).onChange(e=>{(async()=>{r.enableLocalServer=e,await Qe.saveSettings(),n()})()})}),new Av.Setting(e).setName(Ce("api.settings.serverPort")).setDesc(Ce("api.settings.serverPortDesc")).addText(e=>{e.setValue(String(r.localServerPort)).setPlaceholder("8540").onChange(e=>{(async()=>{let t=parseInt(e,10);!isNaN(t)&&t>=1024&&t<=65535&&(r.localServerPort=t,await Qe.saveSettings())})()})});let a=new Av.Setting(e).setName(Ce("api.settings.patTitle")).setHeading(),i=r.apiTokens||{},o=Object.entries(i),s=o.filter(e=>"personal"!==e[1].pluginId),l=o.filter(e=>"personal"===e[1].pluginId);a.addButton(e=>{e.setButtonText(Ce("api.settings.patGenerate")).setCta().onClick(()=>{new Tre(t.app,(e,a)=>{(async()=>{let o=`ofc_pat_${crypto.randomUUID()}`;i[o]={pluginId:"personal",reason:e,requestedScopes:a,grantedScopes:a,grantedAt:Date.now()},r.apiTokens=i,await Qe.saveSettings(),n(),new Sre(t.app,e,o).open()})()}).open()})}),0===l.length?e.createEl("p",{text:Ce("api.settings.patNone"),cls:"setting-item-description"}):l.forEach(([t,a])=>{let o=R5e(a.grantedScopes),s=new Date(a.grantedAt).toLocaleDateString(),l=a.lastUsedAt?new Date(a.lastUsedAt).toLocaleString():Ce("api.settings.patNeverUsed"),c=[Ce("api.settings.patScopes",{scopes:o}),Ce("api.settings.patCreated",{date:s}),Ce("api.settings.patLastUsed",{date:l})].join(" · ");new Av.Setting(e).setName(a.reason).setDesc(c).addButton(e=>{e.setButtonText(Ce("api.settings.revoke")).setWarning().onClick(()=>{(async()=>{delete i[t],r.apiTokens=i,await Qe.saveSettings(),n()})()})})}),new Av.Setting(e).setName(Ce("api.settings.title")).setHeading(),0!==s.length?iqt(s).forEach((a,o)=>{let s=L5e(a.flatMap(e=>e[1].grantedScopes||[])),l=Array.from(new Set(a.map(e=>e[1].reason).filter(Boolean))),c=l.length>0?`Reason: ${l.join("; ")}`:"",u=R5e(s);new Av.Setting(e).setName(o).setDesc([u,c].filter(Boolean).join(" · ")).addButton(e=>{e.setButtonText(Ce("api.settings.editAccess")).onClick(()=>{new Ore(t.app,o,s,e=>{a.forEach(([t,n])=>{i[t]={...n,grantedScopes:e}}),r.apiTokens=i,Qe.saveSettings(),n()}).open()})}).addButton(e=>{e.setButtonText(Ce("api.settings.revoke")).setWarning().onClick(()=>{(async()=>{a.forEach(([e])=>{delete i[e]}),r.apiTokens=i,await Qe.saveSettings(),n()})()})})}):e.createEl("p",{text:Ce("api.settings.noAuthorizedPlugins")})}Zs(P5e,{renderApiAccessSettings:()=>oqt});var Av,Ore,Tre,Sre,I5e=kr(()=>{Av=require("obsidian"),Wo(),wre(),Zo(),Ore=class extends Av.Modal{constructor(e,t,n,r){super(e),this.pluginId=t,this.grantedScopes=new Set(n),this.onSave=r}onOpen(){let{contentEl:e,titleEl:t}=this;t.setText(Ce("api.settings.title")),e.createEl("p",{text:Ce("api.settings.managePermissions",{pluginId:this.pluginId})});let n=e.createDiv({cls:"ofc-auth-scopes"});JC.forEach(e=>{let t=n.createDiv({cls:"ofc-auth-scope-row"});e.risky&&t.addClass("is-risky");let r=t.createEl("label",{cls:"ofc-auth-scope-label"}),a=r.createEl("input");a.setAttribute("type","checkbox"),a.checked=this.grantedScopes.has(e.id),a.onchange=()=>{a.checked?this.grantedScopes.add(e.id):this.grantedScopes.delete(e.id),i()},r.createSpan({text:e.label}),t.createDiv({cls:"ofc-auth-scope-desc",text:e.description})});let r=e.createDiv({cls:"ofc-auth-buttons"});r.createEl("button",{text:Ce("api.settings.cancel")}).onclick=()=>this.close();let a=r.createEl("button",{text:Ce("api.settings.save"),cls:"mod-cta"}),i=()=>{a.disabled=0===this.grantedScopes.size};i(),a.onclick=()=>{let e=L5e(Array.from(this.grantedScopes));0!==e.length&&(this.onSave(e),this.close())}}onClose(){this.contentEl.empty()}},Tre=class extends Av.Modal{constructor(e,t){super(e),this.tokenName="",this.selectedScopes=new Set,this.onGenerate=t}onOpen(){let{contentEl:e,titleEl:t}=this;t.setText(Ce("api.settings.patModalTitle")),e.createEl("p",{text:Ce("api.settings.patModalDesc")}),new Av.Setting(e).setName(Ce("api.settings.patModalName")).setDesc(Ce("api.settings.patModalNameDesc")).addText(e=>{e.onChange(e=>{this.tokenName=e,i()})}),e.createEl("h3",{text:Ce("api.settings.patModalPermissions")});let n=e.createDiv({cls:"ofc-auth-scopes"});JC.forEach(e=>{let t=n.createDiv({cls:"ofc-auth-scope-row"});e.risky&&t.addClass("is-risky");let r=t.createEl("label",{cls:"ofc-auth-scope-label"}),a=r.createEl("input");a.setAttribute("type","checkbox"),a.checked=!1,a.onchange=()=>{a.checked?this.selectedScopes.add(e.id):this.selectedScopes.delete(e.id),i()},r.createSpan({text:e.label}),t.createDiv({cls:"ofc-auth-scope-desc",text:e.description})});let r=e.createDiv({cls:"ofc-auth-buttons"});r.createEl("button",{text:Ce("api.settings.patModalCancel")}).onclick=()=>this.close();let a=r.createEl("button",{text:Ce("api.settings.patModalGenerate"),cls:"mod-cta"});a.disabled=!0;let i=()=>{a.disabled=!this.tokenName.trim()||0===this.selectedScopes.size};a.onclick=()=>{let e=this.tokenName.trim(),t=Array.from(this.selectedScopes);this.close(),this.onGenerate(e,t)}}onClose(){this.contentEl.empty()}},Sre=class extends Av.Modal{constructor(e,t,n){super(e),this.name=t,this.token=n}onOpen(){let{contentEl:e,titleEl:t}=this;t.setText(Ce("api.settings.patSuccessTitle")),e.createEl("p",{text:Ce("api.settings.patSuccessDesc",{name:this.name}),cls:"mod-warning"});let n=e.createDiv({cls:"ofc-generated-token-container"}),r=n.createEl("input",{cls:"ofc-token-display-input"});r.value=this.token,r.setAttribute("readonly","true");let a=n.createEl("button",{text:Ce("api.settings.patSuccessCopy")});a.onclick=()=>{(async()=>{await navigator.clipboard.writeText(this.token),a.setText(Ce("api.settings.patSuccessCopied")),window.setTimeout(()=>a.setText(Ce("api.settings.patSuccessCopy")),2e3)})()},e.createEl("button",{text:Ce("api.settings.patSuccessClose"),cls:"mod-cta"}).onclick=()=>this.close()}onClose(){this.contentEl.empty()}}}),N5e={};function sqt(e,t,n){new tF.Setting(e).setName(Ce("settings.fcrReminder.title")).setHeading().setDesc(Zl(Ce("settings.fcrReminder.description"),[{text:Ce("settings.fcrReminder.learnMore"),path:"user/features/fcr-reminder"}]));let r=t.fcrReminderManager;if(!r)return;let a=r.getCompanionSettings();if(new tF.Setting(e).setName(Ce("settings.fcrReminder.enable.label")).setDesc(Ce("settings.fcrReminder.enable.description")).addToggle(e=>{e.setValue(a.enabled),e.onChange(async e=>{a.enabled=e,await Qe.saveSettings(),n()})}),a.enabled){new tF.Setting(e).setName(Ce("settings.fcrReminder.apiUrl.label")).setDesc(Ce("settings.fcrReminder.apiUrl.description")).addText(e=>{e.inputEl.type="text",e.setPlaceholder(Ce("settings.fcrReminder.apiUrl.placeholder")),e.setValue(a.apiUrl||Ce("settings.fcrReminder.apiUrl.placeholder")),e.onChange(async e=>{a.apiUrl=e.trim(),await Qe.saveSettings()})});let t=e.createDiv("full-calendar-companion-offline-banner");t.setCssProps({backgroundColor:"rgba(224, 86, 86, 0.08)",border:"1px solid var(--background-modifier-error)",color:"var(--text-normal)",padding:"12px 16px",borderRadius:"6px",marginTop:"12px",marginBottom:"12px",fontSize:"13px",lineHeight:"1.4",display:"none"}),t.createEl("strong",{text:Ce("settings.fcrReminder.offlineBanner.title")}).setCssProps({display:"block",marginBottom:"4px"}),t.createSpan({text:Ce("settings.fcrReminder.offlineBanner.message")}),(async()=>{await r.checkDaemonStatus()?t.setCssProps({display:"none"}):t.setCssProps({display:"block"})})()}}Zs(N5e,{renderFcrReminderSettings:()=>sqt});var tF,W5e=kr(()=>{Wo(),tF=require("obsidian"),Zo(),qp()}),B5e={};function lqt(e,t){new F5e.Setting(e).setName(Ce("settings.credentials.legacyToggle.name")).setDesc(Ce("settings.credentials.legacyToggle.desc")).addToggle(e=>{e.setValue(Qe.getSettings().useLegacyPlaintextCredentials).onChange(async e=>{Qe.getSettings().useLegacyPlaintextCredentials=e,await Qe.saveSettings(),t()})})}Zs(B5e,{renderCredentialsSettings:()=>lqt});var F5e,U5e=kr(()=>{F5e=require("obsidian"),Wo(),Zo()}),j5e={};function H5e(e){switch(e){case"general":return Ce("settings.categories.general.label");case"appearance":return Ce("settings.categories.appearance.label");case"calendars":return Ce("settings.categories.calendars.label");case"organization":return Ce("settings.categories.organization.label");case"integrations":return Ce("settings.categories.integrations.label")}}function V5e(e){switch(e){case"general":return Ce("settings.categories.general.description");case"appearance":return Ce("settings.categories.appearance.description");case"calendars":return Ce("settings.categories.calendars.description");case"organization":return Ce("settings.categories.organization.description");case"integrations":return Ce("settings.categories.integrations.description")}}function dqt(e,t){let n=t?cqt:uqt;return n[Array.from(e).reduce((e,t)=>e+t.charCodeAt(0),0)%n.length]}function UC(e,t,n,r){let a;return new W2.Setting(t).setName(Ce("settings.calendars.title")).setDesc(Ce("settings.calendars.addCalendar")).addDropdown(e=>a=e.addOptions({local:Ce("settings.calendars.types.local"),dailynote:Ce("settings.calendars.types.dailynote"),icloud:Ce("settings.calendars.types.icloud"),caldav:Ce("settings.calendars.types.caldav"),ical:Ce("settings.calendars.types.ical"),google:Ce("settings.calendars.types.google"),googletasks:"Google Tasks",outlook:Ce("settings.calendars.types.outlook"),tasks:Ce("settings.calendars.types.tasks"),tasknotes:Ce("settings.calendars.types.tasknotes"),bases:Ce("settings.calendars.types.bases"),holidays:Ce("settings.calendars.types.holidays")})).addExtraButton(t=>{t.setTooltip(Ce("settings.calendars.addCalendarTooltip")),t.setIcon("plus-with-circle"),t.onClick(async()=>{let t=a.getValue();if("bases"===t){let t=e.app;if(!t.internalPlugins?.getPluginById("bases")&&!t.plugins?.getPlugin("bases"))return void Na(Ce("modals.workspace.fields.notices.enableBases"))}let i="icloud"===t?"caldav":t,o=await Qe.getProviderRegistry().getProviderForType(i);if(!o)return void Na(Ce("notices.providerNotRegistered",{providerType:i}));let s=o.getConfigurationComponent(),l=new Mv(e.app,async()=>{await Qe.loadSettings();let a=r?r():[],o=e.app.vault.getAllLoadedFiles().filter(e=>e instanceof W2.TFolder).map(e=>e.path),c=[],{template:u}=Fb();if(u){u.endsWith(".md")||(u+=".md");let t=e.app.vault.getAbstractFileByPath(u);t instanceof W2.TFile&&(c=e.app.metadataCache.getFileCache(t)?.headings?.map(e=>e.heading)||[])}let d=Qe.getSettings().calendarSources.map(e=>e.color),p={plugin:e,config:"icloud"===t?{url:"https://caldav.icloud.com"}:{},context:{allDirectories:o.filter(e=>-1===a.indexOf(e)),usedDirectories:a,headings:c},onClose:()=>l.close(),onConfigChange:()=>{},onSave:(e,t)=>{(async()=>{let r=Array.isArray(e)?e:[e];if("dailynote"===i&&Qe.getSettings().calendarSources.filter(e=>"dailynote"===e.type).length>=1)return Na(Ce("settings.warnings.oneDailyNote")),void l.close();let a=Qe.getSettings().calendarSources.map(e=>e.id),o=Qe.getProviderRegistry().getAllSources().map(e=>e.id),s=Array.from(new Set([...a,...o]));for(let e of r){let r=wT(i,s);s.push(r);let a={...Kze(i,d),...e,id:r,..."google"===i&&t&&{googleAccountId:t},..."googletasks"===i&&t&&{googleAccountId:t},..."outlook"===i&&t&&{microsoftAccountId:t},...("google"===i||"outlook"===i)&&{calendarId:e.id},..."googletasks"===i&&{listId:e.id}};await Qe.getProviderRegistry().addInstance(a),n(a),d.push(a.color)}l.close()})()}};return io(s,p)});l.open()})})}Zs(j5e,{FullCalendarSettingTab:()=>Cre,addCalendarButton:()=>UC});var W2,kre,cqt,uqt,Cre,WW=kr(()=>{Fc(),Wo(),W2=require("obsidian"),cC(),B5(),h1(),$5(),DC(),DC(),Zo(),qp(),RC(),LC(),kre=[{id:"general"},{id:"appearance"},{id:"calendars"},{id:"organization"},{id:"integrations"}],cqt=["🏆","✨","🚀","🌟","🎉","🥇"],uqt=["🎯","🧩","📌","📈","🛠️","🗓️"],Cre=class extends W2.PluginSettingTab{constructor(e,t,n){super(e,t),this.showFullChangelog=!1,this.showMilestonesPage=!1,this.activeCategory="general",this.searchQuery="",this.searchExpanded=!1,this.searchDebounceId=null,this.calendarSettingsRef=oC(),this.reactRoots=[],this.plugin=t,this.registry=n}registerReactRoot(e){this.reactRoots.push(e)}unmountReactRoots(){this.reactRoots.forEach(e=>{try{e.unmount()}catch(e){console.warn("Full Calendar: Failed to unmount React root",e)}}),this.reactRoots=[]}display(){this.renderSettings()}renderSettings(){this.unmountReactRoots(),(async()=>{this.containerEl.empty(),this.showFullChangelog?await this._renderFullChangelog():this.showMilestonesPage?await this._renderMilestonesPage():await this._renderMainSettings()})()}showChangelog(){this.showFullChangelog=!0,this.showMilestonesPage=!1,this.renderSettings()}showMilestones(){this.showMilestonesPage=!0,this.showFullChangelog=!1,this.renderSettings()}async _renderFullChangelog(){let e=ug(this.containerEl);this.registerReactRoot(e);let{Changelog:t}=await Promise.resolve().then(()=>(RW(),f4e));e.render(io(t,{onBack:()=>{this.showFullChangelog=!1,this.renderSettings()}}))}async _renderMainSettings(){let e=this.containerEl.createDiv("full-calendar-settings-shell");e.createDiv("full-calendar-settings-header").createEl("p",{text:Ce("global.settingsHeader")});let t=e.createDiv("full-calendar-settings-tabs-row");t.addClass("full-calendar-settings-tabs-row");let n=t.createDiv("full-calendar-settings-tabs");kre.forEach(e=>{let t=e.id===this.activeCategory,r=n.createEl("button",{cls:"full-calendar-settings-tab"+(t?" is-active":""),text:H5e(e.id)});r.type="button",r.setAttribute("aria-pressed",t?"true":"false"),r.addEventListener("click",()=>{this.activeCategory!==e.id&&(this.activeCategory=e.id,this.renderSettings())})});let r=e.createDiv("full-calendar-settings-content"),a=t.createDiv("full-calendar-settings-search-wrap");a.addClass("full-calendar-settings-search-wrap-style");let i=a.createEl("button",{cls:"clickable-icon full-calendar-settings-search-trigger"});i.type="button",i.ariaLabel="Search settings",i.addClass("full-calendar-settings-search-button-style"),(0,W2.setIcon)(i,"search");let o=a.createDiv("full-calendar-settings-search-input-wrap");o.setCssProps({position:"relative",width:this.searchExpanded||this.searchQuery?"170px":"0px",overflow:"hidden",transition:"width 140ms ease"});let s=o.createEl("input",{cls:"full-calendar-settings-search-input"});s.type="text",s.placeholder="Search settings...",s.value=this.searchQuery,s.addClass("full-calendar-settings-search-input-style");let l=o.createEl("button",{cls:"clickable-icon full-calendar-settings-search-clear"});l.type="button",l.ariaLabel="Clear search",l.setCssProps({position:"absolute",right:"6px",top:"50%",transform:"translateY(-50%)",display:this.searchQuery?"inline-flex":"none"}),(0,W2.setIcon)(l,"x");let c=()=>{this._renderSettingsContent(r),l.setCssProps({display:this.searchQuery?"inline-flex":"none"}),i.setCssProps({display:this.searchExpanded||this.searchQuery?"none":"inline-flex"}),i.toggleClass("is-active",this.searchExpanded||!!this.searchQuery),o.toggleClass("is-active-query",!!this.searchQuery)};i.addEventListener("click",()=>{this.searchExpanded=!0,o.setCssProps({width:"170px"}),i.setCssProps({display:"none"}),s.focus(),i.toggleClass("is-active",!0)}),s.addEventListener("blur",()=>{this.searchQuery||(this.searchExpanded=!1,o.setCssProps({width:"0px"}),i.setCssProps({display:"inline-flex"}),i.toggleClass("is-active",!1))}),s.addEventListener("input",()=>{this.searchQuery=s.value,null!==this.searchDebounceId&&window.clearTimeout(this.searchDebounceId),this.searchDebounceId=window.setTimeout(c,80)}),l.addEventListener("mousedown",e=>{e.preventDefault(),this.searchQuery="",s.value="",c(),s.focus()}),await this._renderSettingsContent(r);let{renderFooter:u}=await Promise.resolve().then(()=>(IC(),Xte));u(e)}async _renderMilestonesPage(){let e=this.containerEl.createDiv("full-calendar-changelog-wrapper"),t=e.createDiv("full-calendar-changelog-header"),n=t.createEl("button",{text:"<"});n.type="button",n.addEventListener("click",()=>{this.showMilestonesPage=!1,this.renderSettings()}),new W2.Setting(t).setName(Ce("settings.appearance.milestones.modal.title")).setHeading().setDesc(Zl(Ce("settings.appearance.milestones.modal.description"),[{text:"Milestones guide",path:"user/features/milestones/"}]));let r=c4e(),a=e.createDiv({cls:"full-calendar-version-content"});for(let e of r){let t=a.createDiv({cls:`full-calendar-change-item ${e.unlocked?"full-calendar-change-type-new":"full-calendar-change-type-improvement"} ofc-milestone-card ${e.unlocked?"is-unlocked":"is-locked"}`});t.createDiv({text:dqt(e.id,e.unlocked),cls:"full-calendar-change-icon"});let n=t.createDiv({cls:"change-content u-flex-grow-1"}),r=n.createDiv({cls:"full-calendar-whats-new-header"});r.createDiv({text:e.title,cls:"setting-item-name"}),r.createSpan({text:e.unlocked?Ce("settings.appearance.milestones.modal.completed"):Ce("settings.appearance.milestones.modal.inProgress"),cls:"ofc-milestone-badge "+(e.unlocked?"is-unlocked":"is-locked")}),n.createDiv({text:`${e.targetLabel} • ${e.description}`,cls:"full-calendar-change-description"}),n.createDiv({cls:"ofc-milestone-progress-track"}).createDiv({cls:"ofc-milestone-progress-fill",attr:{style:`width: ${e.percent.toFixed(1)}%`}}),n.createDiv({text:Ce("settings.appearance.milestones.modal.progress",{current:e.current}),cls:"ofc-milestone-progress-label"})}let{renderFooter:i}=await Promise.resolve().then(()=>(IC(),Xte));i(e)}async _renderSettingsContent(e){e.empty();let t=this.searchQuery.trim();if(!t){let t=kre.find(e=>e.id===this.activeCategory),n=e.createDiv("full-calendar-settings-category-intro");t&&n.createEl("p",{text:V5e(t.id)});let r=e.createDiv("full-calendar-settings-panel");return void await this._renderActiveCategory(r,this.activeCategory)}let n=!1;for(let r of kre){let a=e.createDiv("full-calendar-settings-search-section"),i=a.createDiv("full-calendar-settings-category-intro");new W2.Setting(i).setName(H5e(r.id)).setHeading(),i.createEl("p",{text:V5e(r.id)});let o=a.createDiv("full-calendar-settings-panel");await this._renderActiveCategory(o,r.id),this._applySearchFilter(o,t)?n=!0:a.remove()}n||e.createDiv("full-calendar-settings-search-empty").createEl("p",{text:`No settings match "${t}".`})}_applySearchFilter(e,t){let n=t.toLowerCase().split(/\s+/).filter(Boolean),r=Array.from(e.querySelectorAll(".setting-item")),a=0;return r.forEach(e=>{let t=e.querySelector(".setting-item-name"),r=e.querySelector(".setting-item-description"),i=`${t?.textContent??""} ${r?.textContent??""}`.toLowerCase(),o=n.every(e=>i.includes(e));e.setCssProps({display:o?"":"none"}),o&&(this._highlightSearchTokens(t,n),this._highlightSearchTokens(r,n),a+=1)}),a>0}_highlightSearchTokens(e,t){if(!e)return;let n=e.textContent??"";if(!n||0===t.length)return;let r=t.filter(Boolean).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));if(0===r.length)return;let a=new RegExp(`(${r.join("|")})`,"gi"),i=W2.activeDocument,o=i.createDocumentFragment(),s=0;for(let e of n.matchAll(a)){let t=e[0],r=e.index??-1;if(r<0)continue;r>s&&o.append(n.slice(s,r));let a=i.createElement("mark");a.textContent=t,o.append(a),s=r+t.length}s<n.length&&o.append(n.slice(s)),e.empty(),e.append(o)}async _renderActiveCategory(e,t){switch(t){case"general":{let[{renderGeneralSettings:t},{renderRemindersSettings:n},{renderWhatsNew:r}]=await Promise.all([Promise.resolve().then(()=>(x4e(),M4e)),Promise.resolve().then(()=>(z4e(),_4e)),Promise.resolve().then(()=>(rre(),tre))]);this._renderInitialSetupNotice(e),t(e,this.plugin,()=>{this.renderSettings()}),n(e,this.plugin,()=>{this.renderSettings()}),r(e,this,()=>{this.showFullChangelog=!0,this.renderSettings()});break}case"appearance":{let[{renderAppearanceSettings:t}]=await Promise.all([Promise.resolve().then(()=>(L4e(),R4e))]);t(e,this.plugin,()=>{this.renderSettings()});break}case"calendars":{let[{renderCalendarManagement:t}]=await Promise.all([Promise.resolve().then(()=>(N4e(),I4e))]);t(e,this,this.calendarSettingsRef);break}case"organization":{let[{renderWorkspaceSettings:t},{renderCategorizationSettings:n}]=await Promise.all([Promise.resolve().then(()=>(B4e(),F4e)),Promise.resolve().then(()=>(r5e(),t5e))]);t(e,this.plugin,()=>{this.renderSettings()}),n(e,this,()=>{this.renderSettings()});break}case"integrations":{let[{renderActivityWatchSettings:t},{renderGoogleSettings:n},{renderOutlookSettings:r},{renderTasksIntegrationSettings:a},{renderTaskNotesIntegrationSettings:i},{renderApiAccessSettings:o},{renderFcrReminderSettings:s},{renderCredentialsSettings:l}]=await Promise.all([Promise.resolve().then(()=>(y5e(),g5e)),Promise.resolve().then(()=>(M5e(),b5e)),Promise.resolve().then(()=>(_5e(),x5e)),Promise.resolve().then(()=>(O5e(),w5e)),Promise.resolve().then(()=>(C5e(),k5e)),Promise.resolve().then(()=>(I5e(),P5e)),Promise.resolve().then(()=>(W5e(),N5e)),Promise.resolve().then(()=>(U5e(),B5e))]);l(e,()=>{this.renderSettings()}),t(e,this.plugin,()=>{this.renderSettings()}),a(e,this.plugin,()=>{this.renderSettings()}),i(e,this.plugin,()=>{this.renderSettings()}),s(e,this.plugin,()=>{this.renderSettings()}),n(e,this.plugin,()=>{this.renderSettings()}),r(e,this.plugin,()=>{this.renderSettings()}),o(e,this.plugin,()=>{this.renderSettings()});break}}}_renderInitialSetupNotice(e){if(0===Qe.getSettings().calendarSources.length){let t=e.createDiv("full-calendar-initial-setup-notice");new W2.Setting(t).setName("").setHeading(),t.createEl("p",{text:Ce("settings.quickStart.description")}),t.createEl("p").append(Wh([{text:"Onboarding and daily use",path:"user/guides/"},{text:"Calendar types",path:"user/calendars/"},{text:"Troubleshooting",path:"user/guides/troubleshooting"}]))}}}});function iF(e,t,n){let r=t?`${e}T${t}`:e;if(!n){let e=Fn.fromISO(r);return e.isValid?e.toMillis():new Date(r).getTime()}let a="Z"===n||"utc"===n.toLowerCase()?"utc":n,i=Fn.fromISO(r,{zone:a});if(i.isValid)return i.toMillis();let o=Fn.fromISO(r);return o.isValid?o.toMillis():new Date(r).getTime()}var Dp,IT,NT,PT=kr(()=>{Lu(),Wo(),Dp=class{static fromStoredEvent(e,t){let n,r,a,i,o,{event:s,location:l,calendarId:c,id:u}=e,d=!1;return"single"===s.type?(a=s.date,i=s.endDate||void 0,o=null!==s.completed&&!1!==s.completed?s.completed:void 0,d=void 0!==s.completed,s.allDay?(n=iF(s.date),r=iF(s.endDate||s.date)):(n=iF(s.date,s.startTime,s.timezone),r=s.endTime?iF(s.endDate||s.date,s.endTime,s.timezone):n+36e5)):("recurring"===s.type||"rrule"===s.type)&&(d=!!s.isTask,"rrule"===s.type&&(a=s.startDate,i=s.endDate||void 0)),{id:u,uid:s.uid,title:s.title||"",category:s.category,subCategory:s.subCategory,description:s.description,filePath:l?.path,calendarId:c,calendarName:t?t(c):void 0,startMillis:n,endMillis:r,date:a,endDate:i,allDay:s.allDay,completed:o,isTask:d,rawEvent:e}}static fromEnrichedEvent(e,t){let n,r,a,i,{event:o,location:s,start:l,end:c,id:u}=e,d=!1;"single"===o.type?(n=o.date,r=o.endDate||void 0,a=null!==o.completed&&!1!==o.completed?o.completed:void 0,d=void 0!==o.completed):("recurring"===o.type||"rrule"===o.type)&&(d=!!o.isTask,"rrule"===o.type&&(n=o.startDate,r=o.endDate||void 0));try{let e=Qe.getCache();e&&e.store&&(i=e.store.getEventDetails(u)?.calendarId)}catch{}return!i&&"calendarId"in o&&(i=o.calendarId),{id:u,uid:o.uid,title:o.title||"",category:o.category,subCategory:o.subCategory,description:o.description,filePath:s?.file?.path,calendarId:i,calendarName:t&&i?t(i):void 0,startMillis:l.toMillis(),endMillis:c.toMillis(),date:n,endDate:r,allDay:o.allDay,completed:a,isTask:d,rawEvent:e}}static fromBacklogItem(e,t,n){let r=e.title||"",a=e.subtitle||"",i=e.completed??!1,o=a.split(":")[0]||"";return{id:e.id,title:r,description:"",filePath:o,calendarId:n??e.sourceId??e.providerInfo?.id,calendarName:t??e.providerInfo?.name,completed:i,isTask:!0,rawEvent:e}}static isFuzzySubsequence(e,t){if(!e)return!0;let n=0,r=0;for(;n<e.length&&r<t.length;)e[n]===t[r]&&n++,r++;return n===e.length}static isEditDistanceAtMostOne(e,t){if(e===t)return!0;let n=e.length,r=t.length;if(Math.abs(n-r)>1)return!1;if(n===r){let r=0;for(let a=0;a<n;a++)if(e[a]!==t[a]&&(r+=1,r>1))return!1;return!0}let a=n>r?e:t,i=n>r?t:e,o=0,s=0,l=0;for(;o<a.length&&s<i.length;)if(a[o]!==i[s]){if(l+=1,l>1)return!1;o+=1}else o+=1,s+=1;return!0}static matchEvent(e,t){if(t.calendarIds&&t.calendarIds.length>0&&(!e.calendarId||!t.calendarIds.includes(e.calendarId)))return!1;if(t.categories&&t.categories.length>0){if(!e.category)return!1;let n=e.category.toLowerCase();if(!t.categories.some(e=>n.includes(e.toLowerCase())))return!1}if(t.subCategories&&t.subCategories.length>0){if(!e.subCategory)return!1;let n=e.subCategory.toLowerCase();if(!t.subCategories.some(e=>n.includes(e.toLowerCase())))return!1}if(t.filePathSubstring&&(!e.filePath||!e.filePath.toLowerCase().includes(t.filePathSubstring.toLowerCase()))||void 0!==t.isCompleted&&!!e.completed!==t.isCompleted||void 0!==t.isTask&&!!e.isTask!==t.isTask)return!1;if(t.excludeAllDayTasks){let t=!!e.isTask;if(e.allDay&&t)return!1}if(t.dateRange){let{startMillis:n,endMillis:r}=t.dateRange;if(void 0!==n&&void 0!==e.endMillis&&e.endMillis<n||void 0!==r&&void 0!==e.startMillis&&e.startMillis>r)return!1}if(t.tags&&t.tags.length>0){let n=(e.title||"").toLowerCase(),r=(e.category||"").toLowerCase(),a=(e.subCategory||"").toLowerCase(),i=(e.description||"").toLowerCase();for(let e of t.tags){let t=e.toLowerCase();if(!(n.includes(t)||i.includes(t)||r.includes(t)||a.includes(t)))return!1}}if(t.textSearch){let{query:n,mode:r}=t.textSearch,a=n.trim().toLowerCase();if(a){let t=a.split(/\s+/).filter(Boolean);if("backlog"===r){let n=(e.title||"").toLowerCase(),r=(e.rawEvent?.subtitle||"").toLowerCase(),a=[n,r,(e.calendarName||"").toLowerCase()],i=r.split(/[/\\]/).pop()?.split(":")[0]?.trim()||"";return i&&i!==r&&a.push(i),t.every(e=>a.some(t=>t.includes(e)||this.isFuzzySubsequence(e,t)))}if("embedded"===r){let t=a,n=(e.description||"").toLowerCase(),r=(e.category||"").toLowerCase(),i=(e.subCategory||"").toLowerCase();return(e.title||"").toLowerCase().includes(t)||n.includes(t)||r.includes(t)||i.includes(t)}let n=`${(e.title||"").toLowerCase()} ${(e.category||"").toLowerCase()} ${(e.subCategory||"").toLowerCase()} ${(e.description||"").toLowerCase()} ${(e.filePath||"").toLowerCase()}`.toLowerCase(),i=n.match(/[a-z0-9]+/g)||[];return t.every(e=>{if(!e||n.includes(e))return!0;if(e.length<4)return!1;for(let t of i)if(!(t.length<3)&&this.isEditDistanceAtMostOne(e,t))return!0;return!1})}}return!0}static filterEvents(e,t){return e.filter(e=>this.matchEvent(e,t))}static compareEvents(e,t,n){let{field:r,order:a="asc"}=n,i="asc"===a?1:-1;if("start"===r){return((e.startMillis??0)-(t.startMillis??0))*i}if("end"===r){return((e.endMillis??0)-(t.endMillis??0))*i}if("title"===r)return(e.title||"").localeCompare(t.title||"")*i;if("category"===r)return(e.category||"").localeCompare(t.category||"")*i;if("priority"===r){if(e.allDay!==t.allDay)return(e.allDay?1:-1)*i;let n=e.endMillis??0,r=t.endMillis??0;return n!==r?(n-r)*i:((e.startMillis??0)-(t.startMillis??0))*i}return 0}static sortEvents(e,t){return t&&0!==t.length?[...e].sort((e,n)=>{for(let r of t){let t=this.compareEvents(e,n,r);if(0!==t)return t}return 0}):e}static query(e,t,n){let r=this.filterEvents(e,t);return n&&n.length>0?this.sortEvents(r,n):r}}}),cF=kr(()=>{IT=class extends Error{constructor(e){super(e),this.name="RecoverableProviderLoadError"}},NT=class extends Error{constructor(e){super(e),this.name="DelegatedProviderActionError"}}}),Dre={};Zs(Dre,{isTask:()=>PM,toggleTask:()=>eE,unmakeTask:()=>Mqt});var PM,Mqt,eE,WT=kr(()=>{Lu(),PM=e=>"single"===e.type?void 0!==e.completed&&null!==e.completed:("recurring"===e.type||"rrule"===e.type)&&!!e.isTask,Mqt=e=>"single"===e.type?{...e,completed:null}:"recurring"===e.type||"rrule"===e.type?{...e,isTask:!1}:e,eE=(e,t)=>"single"===e.type?t?{...e,completed:Fn.now().toISO()}:{...e,completed:!1}:"recurring"===e.type||"rrule"===e.type?{...e,isTask:!0}:e}),Y5e={};Zs(Y5e,{DeleteRecurringModal:()=>Rre});var MA,Rre,Z5e=kr(()=>{MA=require("obsidian"),Zo(),Rre=class extends MA.Modal{constructor(e,t,n,r,a,i=!1){super(e),this.onPromote=t,this.onDeleteAll=n,this.onDeleteInstance=r,this.instanceDate=a,this.isGoogle=i}onOpen(){this.modalEl.addClass("full-calendar-confirm-modal");let{contentEl:e}=this;e.createEl("h2",{text:Ce("modals.deleteRecurring.title")}),e.createEl("p",{text:Ce("modals.deleteRecurring.description")}),this.onDeleteInstance&&this.instanceDate&&new MA.Setting(e).setName(Ce("modals.deleteRecurring.deleteInstance.name")).setDesc(Ce("modals.deleteRecurring.deleteInstance.description",{date:this.instanceDate})).addButton(e=>e.setButtonText(Ce("modals.deleteRecurring.deleteInstance.button")).setCta().onClick(()=>{this.close(),this.onDeleteInstance&&this.onDeleteInstance()})),this.isGoogle||new MA.Setting(e).setName(Ce("modals.deleteRecurring.promoteChildren.name")).setDesc(Ce("modals.deleteRecurring.promoteChildren.description")).addButton(e=>e.setButtonText(Ce("modals.deleteRecurring.promoteChildren.button")).setCta().onClick(()=>{this.close(),this.onPromote()})),new MA.Setting(e).setName(Ce("modals.deleteRecurring.deleteAll.name")).setDesc(Ce("modals.deleteRecurring.deleteAll.description")).addButton(e=>e.setButtonText(Ce("modals.deleteRecurring.deleteAll.button")).setCta().onClick(()=>{this.close(),this.onDeleteAll()})),new MA.Setting(e).addButton(e=>e.setButtonText(Ce("modals.deleteRecurring.cancel")).onClick(()=>this.close()))}onClose(){this.contentEl.empty()}}}),$5e={};Zs($5e,{RecurringEventManager:()=>Lre});var Lre,K5e=kr(()=>{Fc(),Wo(),WT(),Zo(),RC(),Lre=class{_sanitizeTitleForFilename(e){return e.replace(/[\\/:"*?<>|]/g," ").replace(/\s+/g," ").trim()}constructor(e,t){this.cache=e,this.plugin=t}getProviderAndConfig(e){let t=Qe.getProviderRegistry().getSource(e);if(!t)return null;let n=Qe.getProviderRegistry().getInstance(e);return n?{provider:n,config:t}:null}hasModifiedTiming(e,t,n){if("single"!==e.type||"recurring"!==t.type&&"rrule"!==t.type)return!1;if(e.allDay!==t.allDay||e.endDate&&e.endDate!==e.date)return!0;if(!t.allDay&&"startTime"in t&&"endTime"in t){let n=t.startTime,r=t.endTime;if(!e.allDay&&"startTime"in e&&"endTime"in e){let t=e.startTime,a=e.endTime;if(t!==n||a!==r)return!0}}return!1}findRecurringChildren(e){let t=this.cache.store.getEventDetails(e);if(!t)return[];let{calendarId:n,event:r}=t,a=this.cache.getGlobalIdentifier(r,n);if(!a)return[];let i=a.split("::").pop()?.split("/").pop();return i?this.cache.store.getAllEvents().filter(e=>e.calendarId===n&&"single"===e.event.type&&(!!(e.event.recurringEventId===i||r.uid&&e.event.recurringEventId===r.uid||r.id&&e.event.recurringEventId===r.id)||!(!r.uid||e.event.uid!==r.uid||!e.event.recurrenceId))):[]}findRecurringMasterId(e,t,n){if("recurring"===t.type||"rrule"===t.type)return e;if("single"!==t.type||!t.recurringEventId&&!t.recurrenceId)return null;let r=t.recurringEventId||t.uid;if(!r)return null;let a=r.split("/").pop();return this.cache.store.getAllEvents().find(e=>{if(e.calendarId!==n||"recurring"!==e.event.type&&"rrule"!==e.event.type)return!1;if(e.event.uid&&e.event.uid===r||e.event.id&&e.event.id===r)return!0;let t=e.location?.path.split("/").pop();return!(!t||t!==a)})?.id??null}async deleteSingleRecurringInstance(e,t,n,r){if("single"===t.type&&t.recurrenceId&&!t.recurringEventId)return await this.cache.deleteEvent(e,{silent:!0,force:!0}),void this.cache.flushUpdateQueue([],[]);if("single"===t.type&&t.recurringEventId){let r=t.recurringEventId,a=this.getProviderAndConfig(n);if(!a)return console.warn(`Could not find provider for calendar ID ${n}. Deleting orphan override.`),await this.cache.deleteEvent(e,{silent:!0,force:!0}),void this.cache.flushUpdateQueue([],[]);let{config:i}=a;if("local"!==i.type)return await this.cache.deleteEvent(e,{silent:!0,force:!0}),void this.cache.flushUpdateQueue([],[]);let o=`${n}::${`${i.directory}/${r}`}`,s=await this.cache.getSessionId(o);return s?await this.cache.processEvent(s,e=>{if("recurring"!==e.type&&"rrule"!==e.type)return e;let n=t.date;return{...e,skipDates:e.skipDates.filter(e=>e!==n)}},{silent:!0}):console.warn(`Master recurring event with identifier "${o}" not found. Deleting orphan override.`),await this.cache.deleteEvent(e,{silent:!0,force:!0}),void this.cache.flushUpdateQueue([],[])}if("recurring"===t.type||"rrule"===t.type){let t=r;if(!t)return;if(await this.cache.processEvent(e,e=>{if("recurring"!==e.type&&"rrule"!==e.type)return e;let n=e.skipDates?.includes(t)?e.skipDates:[...e.skipDates||[],t];return{...e,skipDates:n}})){let t=this.cache.store.getEventDetails(e);if(t){let e=this.cache.getAllEvents().find(e=>e.id===t.calendarId);e&&this.cache.updateCalendar(e)}}}}async promoteRecurringChildren(e){let t=this.findRecurringChildren(e);if(0!==t.length){Na(Ce("recurEvents.promotingChildren",{count:t.length}));for(let e of t)await this.cache.processEvent(e.id,e=>({...e,recurringEventId:void 0}),{silent:!0});await this.cache.deleteEvent(e,{force:!0,silent:!0}),this.cache.flushUpdateQueue([],[]),Na(Ce("recurEvents.deletedAndPromoted"))}else await this.cache.deleteEvent(e,{force:!0})}async deleteAllRecurring(e){let t=this.findRecurringChildren(e);Na(Ce("recurEvents.deletingWithChildren",{count:t.length}));for(let e of t)await this.cache.deleteEvent(e.id,{force:!0,silent:!0});await this.cache.deleteEvent(e,{force:!0,silent:!0}),this.cache.flushUpdateQueue([],[]),Na(Ce("recurEvents.deletedAll"))}async handleDelete(e,t,n){let r=this.cache.store.getEventDetails(e);if(!r)return!1;let{calendarId:a}=r,i=this.findRecurringMasterId(e,t,a);if(!i)return!1;let o=this.getProviderAndConfig(a);if(!o)return!1;let s="google"===o.provider.type,l=n?.instanceDate||("single"===t.type?t.recurrenceId||t.date:void 0),{DeleteRecurringModal:c}=await Promise.resolve().then(()=>(Z5e(),Y5e));return new c(this.cache.plugin.app,()=>{this.promoteRecurringChildren(i)},()=>{this.deleteAllRecurring(i)},l?()=>{this.deleteSingleRecurringInstance(e,t,a,l)}:void 0,l,s).open(),!0}async _createRecurringOverride(e,t,n){let r=this.cache.store.getEventDetails(e);if(!r)throw new Error("Master event not found");let{calendarId:a,event:i}=r,o=Qe.getProviderRegistry().getSource(a);if(!o)throw new Error(`Could not find calendar info for ${a}`);let s=this.cache.getGlobalIdentifier(i,a);if(!s)throw new Error("Could not generate global identifier for master event.");let l=s.substring(a.length+2),c=l.split("/").pop();if(!c)throw new Error(`Could not extract filename from master event path: ${l}`);let u={...n,recurringEventId:c};await this.cache.addEvent(o.id,u,{silent:!0}),await this.cache.processEvent(e,e=>{if("recurring"!==e.type&&"rrule"!==e.type)return e;let n=e.skipDates.includes(t)?e.skipDates:[...e.skipDates,t];return{...e,skipDates:n}},{silent:!0})}updateMasterSkipDateInCache(e,t){let n=this.cache.store.getEventDetails(e);if(!n)throw new Error("Master event not found for cache update.");let{calendarId:r,event:a,location:i}=n;if("recurring"!==a.type&&"rrule"!==a.type)return;let o={...a,skipDates:a.skipDates.includes(t)?a.skipDates:[...a.skipDates,t]};this.cache.store.delete(e),this.cache.store.add({calendarId:r,location:i?{file:{path:i.path},lineNumber:i.lineNumber}:null,id:e,event:o}),this.cache.updateQueue.toRemove.add(e),this.cache.updateQueue.toAdd.set(e,{id:e,calendarId:r,event:o})}providerOwnsRecurringInstanceOverrides(e){return!!e?.provider.getCapabilities().ownsRecurringInstanceOverrides}inheritReminderFields(e,t){return{...e,notify:void 0!==e.notify?e.notify:t.notify,alarms:void 0!==e.alarms?e.alarms:t.alarms}}async modifyRecurringInstance(e,t,n){if("single"!==n.type)throw new Error("Cannot create a recurring override from a non-single event.");let r=this.cache.store.getEventDetails(e);if(!r)throw new Error("Master event not found for instance modification.");let{calendarId:a,event:i}=r,o=this.getProviderAndConfig(a);if(!o)throw new Error(`Provider for calendar ${a} not found.`);let s=this.inheritReminderFields(n,i),[l,c]=await Qe.getProviderRegistry().createInstanceOverrideInProvider(a,i,t,s),u=this.cache.enhancer.enhance(l),d=this.cache.generateId();this.cache.store.add({calendarId:a,location:c,id:d,event:u}),this.cache.updateQueue.toAdd.set(d,{id:d,calendarId:a,event:u}),this.cache.isBulkUpdating=!0,this.providerOwnsRecurringInstanceOverrides(o)?this.updateMasterSkipDateInCache(e,t):await this.cache.processEvent(e,e=>{if("recurring"!==e.type&&"rrule"!==e.type)return e;let n=e.skipDates.includes(t)?e.skipDates:[...e.skipDates,t];return{...e,skipDates:n}},{silent:!0})}async toggleRecurringInstance(e,t,n){let r=this.cache.store.getEventDetails(e);if(!r)return;let{event:a,calendarId:i}=r;if(n)if("single"===a.type)await this.cache.updateEventWithId(e,eE(a,!0));else{let n;n=!1===a.allDay?{title:a.title,category:a.category,subCategory:a.subCategory,timezone:a.timezone,allDay:!1,startTime:a.startTime,endTime:a.endTime,type:"single",date:t,endDate:null,completed:null}:{title:a.title,category:a.category,subCategory:a.subCategory,timezone:a.timezone,allDay:!0,type:"single",date:t,endDate:null,completed:null};let r=eE(n,!0);await this._createRecurringOverride(e,t,r)}else{if("single"===a.type&&a.recurringEventId){let n=a.recurringEventId,o=this.getProviderAndConfig(i);if(!o)return console.warn(`Could not find provider for calendar ID ${i}. Deleting orphan override.`),void await this.cache.deleteEvent(e);let{config:s}=o,l=`${i}::${"local"===s.type&&"directory"in s?`${s.directory}/${n}`:n}`,c=await this.cache.getSessionId(l);if(c){let n=this.cache.getEventById(c);if(n&&this.hasModifiedTiming(r.event,n,t))return Na(Ce("recurEvents.preservingTiming")),void await this.cache.updateEventWithId(e,eE(r.event,!1))}}Na(Ce("recurEvents.revertingControl")),await this.cache.deleteEvent(e)}}async updateRecurringChildren(e,t,n,r){if("recurring"!==n.type&&"rrule"!==n.type)return;let a=this.getProviderAndConfig(e);if(!a)return;let{provider:i,config:o}=a;if("local"!==o.type)return;let s=o.directory;if(!s)return;let l=Qe.getCache().enhancer.prepareForStorage(r).title,c=this._sanitizeTitleForFilename(l),u=(n.skipDates||[]).flatMap(e=>{let t=`${s}/${`${e} ${c}.md`}`;return this.cache.store.getEventsInFile({path:t})});if(0!==u.length){Na(Ce("recurEvents.updatingChildren",{count:u.length}));for(let e of u){let r=this.cache.store.getEventDetails(e.id);if(!r)continue;let{calendarId:a,event:o}=r,s={...o,title:this.cache.enhancer.prepareForStorage(n).title,recurringEventId:t};delete s.category,delete s.subCategory;let l={...o,title:n.title,category:n.category,subCategory:n.subCategory,recurringEventId:t},c=i.getEventHandle(o);if(!c)continue;let u=await i.updateEvent(c,o,s);this.cache.store.delete(e.id),this.cache.store.add({calendarId:a,location:u,id:e.id,event:l}),this.cache.isBulkUpdating=!0,this.cache.updateQueue.toRemove.add(e.id),this.cache.updateQueue.toAdd.set(e.id,{id:e.id,calendarId:a,event:l})}}}async handleUpdate(e,t,n){if("recurring"!==e.type&&"rrule"!==e.type)return!1;let r=this.getProviderAndConfig(n);if(!r)return!1;let{provider:a}=r,i=a.getEventHandle(e),o=a.getEventHandle(t),s=i?.persistentId,l=o?.persistentId;return!(!s||!l||s===l)&&(await this._handleRecurringRename(e,t,n,i,o),!0)}async _handleRecurringRename(e,t,n,r,a){this.cache.isBulkUpdating=!0;try{let i=this.getProviderAndConfig(n);if(!i)throw new Error(`Provider for calendar ${n} not found during rename.`);let{provider:o}=i,s=this.cache.getGlobalIdentifier(e,n),l=s?await this.cache.getSessionId(s):null;if(!l)throw new Error("Could not find original parent event in cache to update.");let c=r.persistentId.split("/").pop(),u=a.persistentId.split("/").pop();c&&u&&await this.updateRecurringChildren(n,u,t,e);let d=this.cache.enhancer.prepareForStorage(e),p=this.cache.enhancer.prepareForStorage(t);await o.updateEvent(r,d,p),this.cache.store.delete(l),this.cache.store.add({calendarId:n,location:{file:{path:a.persistentId},lineNumber:void 0},id:l,event:t}),this.cache.updateQueue.toRemove.add(l),this.cache.updateQueue.toAdd.set(l,{id:l,calendarId:n,event:t})}catch(e){console.error("Error during recurring parent rename operation:",e),Na(Ce("recurEvents.updateError"))}finally{this.cache.isBulkUpdating=!1,this.cache.flushUpdateQueue([],[])}}async moveRecurringEvent(e,t,n){let r=this.cache.store.getEventDetails(e);if(!r)return!1;let{event:a}=r,i=n||a;if("single"===a.type&&a.recurringEventId){let n={...i};return delete n.recurringEventId,await this.cache.addEvent(t,n,{trackMilestone:!1}),await this.cache.deleteEvent(e,{silent:!0}),await Vb("moved",t),!0}if("recurring"===a.type||"rrule"===a.type){let n=this.findRecurringChildren(e);if(!await this.cache.addEvent(t,i,{trackMilestone:!1}))throw new Error("Failed to create new master event in destination.");let[r,a]=await Qe.getProviderRegistry().createEventInProvider(t,i),o=this.cache.generateId(),s=this.cache.enhancer.enhance(r);this.cache.store.add({calendarId:t,location:a,id:o,event:s}),this.cache.flushUpdateQueue([],[{id:o,event:s,calendarId:t}]);let l,c=Qe.getProviderRegistry().getSource(t);if(l=c&&"local"===c.type&&a&&a.file?a.file.path.split("/").pop():r.id,n.length>0&&l){Na(Ce("recurEvents.movingChildren",{count:n.length}));for(let e of n){let n={...e.event,recurringEventId:l};await this.cache.addEvent(t,n,{trackMilestone:!1})}}return await this.deleteAllRecurring(e),await Vb("moved",t),!0}return!1}}});async function J5e(e){let t=Intl.DateTimeFormat().resolvedOptions().timeZone,n=Qe.getSettings();n.lastSystemTimezone&&null!==n.displayTimezone?n.lastSystemTimezone!==t&&(n.displayTimezone=t,n.lastSystemTimezone=t,await Qe.saveSettings(),Na(Ce("notices.timezoneChanged",{timezone:t}),1e4)):(n.lastSystemTimezone=t,n.displayTimezone=t,await Qe.saveSettings())}function xqt(e){return{"W. Europe Standard Time":"Europe/Berlin","Central Europe Standard Time":"Europe/Budapest","E. Europe Standard Time":"Europe/Bucharest","Russian Standard Time":"Europe/Moscow","GMT Standard Time":"Europe/London","Greenwich Standard Time":"Europe/London","Eastern Standard Time":"America/New_York","Central Standard Time":"America/Chicago","Mountain Standard Time":"America/Denver","Pacific Standard Time":"America/Los_Angeles","Alaskan Standard Time":"America/Anchorage","Hawaiian Standard Time":"Pacific/Honolulu","Atlantic Standard Time":"America/Halifax","Central America Standard Time":"America/Guatemala","Mexico Standard Time":"America/Mexico_City","SA Pacific Standard Time":"America/Bogota","SA Western Standard Time":"America/Caracas","SA Eastern Standard Time":"America/Sao_Paulo","Pacific SA Standard Time":"America/Santiago","Tokyo Standard Time":"Asia/Tokyo","Korea Standard Time":"Asia/Seoul","China Standard Time":"Asia/Shanghai","India Standard Time":"Asia/Kolkata","Singapore Standard Time":"Asia/Singapore","W. Australia Standard Time":"Australia/Perth","AUS Eastern Standard Time":"Australia/Sydney","New Zealand Standard Time":"Pacific/Auckland","Arab Standard Time":"Asia/Riyadh","Israel Standard Time":"Asia/Jerusalem","Turkey Standard Time":"Europe/Istanbul","South Africa Standard Time":"Africa/Johannesburg","Egypt Standard Time":"Africa/Cairo"}[e]||null}function _qt(e){if(!e||""===e.trim()||"Z"===e||"utc"===e.toLowerCase())return"utc";try{if(Fn.now().setZone(e).isValid)return e}catch{}return xqt(e)||e}function zqt(e,t=!1){if(8===e.length&&/^\d{8}$/.test(e)){return`${e.substring(0,4)}-${e.substring(4,6)}-${e.substring(6,8)}`}if(16===e.length&&e.endsWith("Z")&&/^\d{8}T\d{6}Z$/.test(e)){return`${e.substring(0,4)}-${e.substring(4,6)}-${e.substring(6,8)}T${e.substring(9,11)}:${e.substring(11,13)}:${e.substring(13,15)}Z`}if(15===e.length&&/^\d{8}T\d{6}$/.test(e)){return`${e.substring(0,4)}-${e.substring(4,6)}-${e.substring(6,8)}T${e.substring(9,11)}:${e.substring(11,13)}:${e.substring(13,15)}`}return null}function F2(e){if(e.isDate)return Fn.fromObject({year:e.year,month:e.month,day:e.day},{zone:"utc"});let t=_qt("Z"===e.timezone?"utc":e.timezone||(e.zone&&e.zone.tzid&&"floating"!==e.zone.tzid?e.zone.tzid:void 0)),n=Fn.fromObject({year:e.year,month:e.month,day:e.day,hour:e.hour,minute:e.minute,second:e.second||0},{zone:t});if(!n.isValid&&(n=Fn.fromObject({year:e.year,month:e.month,day:e.day,hour:e.hour,minute:e.minute,second:e.second||0},{zone:"utc"}),!n.isValid)){let t=e.toString();if(t){let n=zqt(t,e.isDate);if(n){let e=Fn.fromISO(n,{zone:"utc"});if(e.isValid)return e}}return Fn.invalid("Invalid date after timezone conversion and fallback")}return n}function Q5e(e,t){Pre||(Pre=e.recurringTypes[0].expand);let n=Pre;e.recurringTypes[0].expand=function(e,r,a){let i=e.rruleSet.tzid();if(i&&t){let t=e.rruleSet,o=new Date(r.start),s=new Date(r.end),l=864e5,c=new Date(o.getTime()-l),u=new Date(s.getTime()+l),d="function"==typeof t.between?t.between(c,u):null;return d?d.map(e=>{let n=t._dtstart?t._dtstart.getUTCHours():e.getUTCHours(),r=t._dtstart?t._dtstart.getUTCMinutes():e.getUTCMinutes(),o=t._dtstart?t._dtstart.getUTCSeconds():e.getUTCSeconds(),s=Fn.fromObject({year:e.getUTCFullYear(),month:e.getUTCMonth()+1,day:e.getUTCDate(),hour:n,minute:r,second:o},{zone:i}).toMillis();return a.createMarker(new Date(s))}):n.call(this,e,r,a)}return n.call(this,e,r,a)}}var Pre,rE=kr(()=>{Fc(),Wo(),Lu(),Zo(),Pre=null});function Z_(e,t){for(var n in t)e[n]=t[n];return e}function dAe(e){var t=e.parentNode;t&&t.removeChild(e)}function Cr(e,t,n){var r,a,i,o={};for(i in t)"key"==i?r=t[i]:"ref"==i?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?vF.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===o[i]&&(o[i]=e.defaultProps[i]);return fF(e,o,r,a,null)}function fF(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++sAe};return null==a&&null!=O0.vnode&&O0.vnode(i),i}function Q1(){return{current:null}}function x0(e){return e.children}function Sqt(e,t,n,r,a){var i;for(i in n)"children"===i||"key"===i||i in t||pF(e,i,null,n[i],r);for(i in t)a&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||pF(e,i,t[i],n[i],r)}function aAe(e,t,n){"-"===t[0]?e.setProperty(t,n??""):e[t]=null==n?"":"number"!=typeof n||Tqt.test(t)?n:n+"px"}function pF(e,t,n,r,a){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||aAe(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||aAe(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?oAe:iAe,i):e.removeEventListener(t,i?oAe:iAe,i);else if("dangerouslySetInnerHTML"!==t){if(a)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=n??"";break e}catch{}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function iAe(e){FT=!0;try{return this.l[e.type+!1](O0.event?O0.event(e):e)}finally{FT=!1}}function oAe(e){FT=!0;try{return this.l[e.type+!0](O0.event?O0.event(e):e)}finally{FT=!1}}function i2(e,t){this.props=e,this.context=t}function nE(e,t){if(null==t)return e.__?nE(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?nE(e):null}function fAe(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return fAe(e)}}function kqt(e){FT?setTimeout(e):lAe(e)}function Fre(e){(!e.__d&&(e.__d=!0)&&xA.push(e)&&!mF.__r++||nAe!==O0.debounceRendering)&&((nAe=O0.debounceRendering)||kqt)(mF)}function mF(){var e,t,n,r,a,i,o,s;for(xA.sort(function(e,t){return e.__v.__b-t.__v.__b});e=xA.shift();)e.__d&&(t=xA.length,r=void 0,a=void 0,o=(i=(n=e).__v).__e,(s=n.__P)&&(r=[],(a=Z_({},i)).__v=i.__v+1,Ure(s,i,a,n.__n,void 0!==s.ownerSVGElement,null!=i.__h?[o]:null,r,o??nE(i),i.__h),gAe(r,i),i.__e!=o&&fAe(i)),xA.length>t&&xA.sort(function(e,t){return e.__v.__b-t.__v.__b}));mF.__r=0}function hAe(e,t,n,r,a,i,o,s,l,c){var u,d,p,h,f,m,g,y=r&&r.__k||uAe,b=y.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(h=n.__k[u]=null==(h=t[u])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?fF(null,h,null,null,h):Array.isArray(h)?fF(x0,{children:h},null,null,null):h.__b>0?fF(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(p=y[u])||p&&h.key==p.key&&h.type===p.type)y[u]=void 0;else for(d=0;d<b;d++){if((p=y[d])&&h.key==p.key&&h.type===p.type){y[d]=void 0;break}p=null}Ure(e,h,p=p||hF,a,i,o,s,l,c),f=h.__e,(d=h.ref)&&p.ref!=d&&(g||(g=[]),p.ref&&g.push(p.ref,null,h),g.push(d,h.__c||f,h)),null!=f?(null==m&&(m=f),"function"==typeof h.type&&h.__k===p.__k?h.__d=l=pAe(h,l,e):l=mAe(e,h,p,y,f,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=nE(p))}for(n.__e=m,u=b;u--;)null!=y[u]&&("function"==typeof n.type&&null!=y[u].__e&&y[u].__e==n.__d&&(n.__d=vAe(r).nextSibling),bAe(y[u],y[u]));if(g)for(u=0;u<g.length;u++)yAe(g[u],g[++u],g[++u])}function pAe(e,t,n){for(var r,a=e.__k,i=0;a&&i<a.length;i++)(r=a[i])&&(r.__=e,t="function"==typeof r.type?pAe(r,t,n):mAe(n,r,r,a,r.__e,t));return t}function aE(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){aE(e,t)}):t.push(e)),t}function mAe(e,t,n,r,a,i){var o,s,l;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==n||a!=i||null==a.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(a),o=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==a)break e;e.insertBefore(a,i),o=i}return void 0!==o?o:a.nextSibling}function vAe(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=vAe(n)))return r;return null}function Ure(e,t,n,r,a,i,o,s,l){var c,u,d,p,h,f,m,g,y,b,v,M,x,z,_,A=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(c=O0.__b)&&c(t);try{e:if("function"==typeof A){if(g=t.props,y=(c=A.contextType)&&r[c.__c],b=c?y?y.props.value:c.__:r,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in A&&A.prototype.render?t.__c=u=new A(g,b):(t.__c=u=new i2(g,b),u.constructor=A,u.render=Eqt),y&&y.sub(u),u.props=g,u.state||(u.state={}),u.context=b,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=A.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=Z_({},u.__s)),Z_(u.__s,A.getDerivedStateFromProps(g,u.__s))),p=u.props,h=u.state,u.__v=t,d)null==A.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==A.getDerivedStateFromProps&&g!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(g,b),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(g,u.__s,b)||t.__v===n.__v){for(t.__v!==n.__v&&(u.props=g,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),v=0;v<u._sb.length;v++)u.__h.push(u._sb[v]);u._sb=[],u.__h.length&&o.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(g,u.__s,b),null!=u.componentDidUpdate&&u.__h.push(function(){u.componentDidUpdate(p,h,f)})}if(u.context=b,u.props=g,u.__P=e,M=O0.__r,x=0,"prototype"in A&&A.prototype.render){for(u.state=u.__s,u.__d=!1,M&&M(t),c=u.render(u.props,u.state,u.context),z=0;z<u._sb.length;z++)u.__h.push(u._sb[z]);u._sb=[]}else do{u.__d=!1,M&&M(t),c=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++x<25);u.state=u.__s,null!=u.getChildContext&&(r=Z_(Z_({},r),u.getChildContext())),d||null==u.getSnapshotBeforeUpdate||(f=u.getSnapshotBeforeUpdate(p,h)),_=null!=c&&c.type===x0&&null==c.key?c.props.children:c,hAe(e,Array.isArray(_)?_:[_],t,n,r,a,i,o,s,l),u.base=t.__e,t.__h=null,u.__h.length&&o.push(u),m&&(u.__E=u.__=null),u.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Cqt(n.__e,t,n,r,a,i,o,l);(c=O0.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=i)&&(t.__e=s,t.__h=!!l,i[i.indexOf(s)]=null),O0.__e(e,t,n)}}function gAe(e,t){O0.__c&&O0.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){O0.__e(e,t.__v)}})}function Cqt(e,t,n,r,a,i,o,s){var l,c,u,d=n.props,p=t.props,h=t.type,f=0;if("svg"===h&&(a=!0),null!=i)for(;f<i.length;f++)if((l=i[f])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,i[f]=null;break}if(null==e){if(null===h)return document.createTextNode(p);e=a?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),i=null,s=!1}if(null===h)d===p||s&&e.data===p||(e.data=p);else{if(i=i&&vF.call(e.childNodes),c=(d=n.props||hF).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!s){if(null!=i)for(d={},f=0;f<e.attributes.length;f++)d[e.attributes[f].name]=e.attributes[f].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(Sqt(e,p,d,a,s),u)t.__k=[];else if(f=t.props.children,hAe(e,Array.isArray(f)?f:[f],t,n,r,a&&"foreignObject"!==h,i,o,i?i[0]:n.__k&&nE(n,0),s),null!=i)for(f=i.length;f--;)null!=i[f]&&dAe(i[f]);s||("value"in p&&void 0!==(f=p.value)&&(f!==e.value||"progress"===h&&!f||"option"===h&&f!==d.value)&&pF(e,"value",f,d.value,!1),"checked"in p&&void 0!==(f=p.checked)&&f!==e.checked&&pF(e,"checked",f,d.checked,!1))}return e}function yAe(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){O0.__e(e,n)}}function bAe(e,t,n){var r,a;if(O0.unmount&&O0.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||yAe(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){O0.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(a=0;a<r.length;a++)r[a]&&bAe(r[a],t,n||"function"!=typeof e.type);n||null==e.__e||dAe(e.__e),e.__=e.__e=e.__d=void 0}function Eqt(e,t,n){return this.constructor(e,n)}function $_(e,t,n){var r,a,i;O0.__&&O0.__(e,t),a=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],Ure(t,e=(!r&&n||t).__k=Cr(x0,null,[e]),a||hF,hF,void 0!==t.ownerSVGElement,!r&&n?[n]:a?null:t.firstChild?vF.call(t.childNodes):null,i,!r&&n?n:a?a.__e:t.firstChild,r),gAe(i,e)}function gF(e,t){var n={__c:t="__cC"+cAe++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(function(e){e.__e=!0,Fre(e)})},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}var vF,O0,sAe,Bre,FT,xA,nAe,lAe,cAe,hF,uAe,Tqt,IM=kr(()=>{hF={},Tqt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,vF=(uAe=[]).slice,O0={__e:function(e,t,n,r){for(var a,i,o;t=t.__;)if((a=t.__c)&&!a.__)try{if((i=a.constructor)&&null!=i.getDerivedStateFromError&&(a.setState(i.getDerivedStateFromError(e)),o=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(e,r||{}),o=a.__d),o)return a.__E=a}catch(t){e=t}throw e}},sAe=0,Bre=function(e){return null!=e&&void 0===e.constructor},FT=!1,i2.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Z_({},this.state),"function"==typeof e&&(e=e(Z_({},n),this.props)),e&&Z_(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),Fre(this))},i2.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Fre(this))},i2.prototype.render=x0,xA=[],lAe="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,mF.__r=0,cAe=0});function Rqt(){for(var e;e=TAe.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(yF),e.__H.__h.forEach(jre),e.__H.__h=[]}catch(t){e.__H.__h=[],O0.__e(t,e.__v)}}function Lqt(e){var t,n=function(){clearTimeout(r),OAe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);OAe&&(t=requestAnimationFrame(n))}function yF(e){var t=$b,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),$b=t}function jre(e){var t=$b;e.__c=e.__(),$b=t}var Dqt,$b,Hre,MAe,TAe,Vre,xAe,_Ae,zAe,AAe,wAe,OAe,Gre=kr(()=>{IM(),TAe=[],Vre=[],xAe=O0.__b,_Ae=O0.__r,zAe=O0.diffed,AAe=O0.__c,wAe=O0.unmount,O0.__b=function(e){$b=null,xAe&&xAe(e)},O0.__r=function(e){_Ae&&_Ae(e),Dqt=0;var t=($b=e.__c).__H;t&&(Hre===$b?(t.__h=[],$b.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=Vre,e.__N=e.i=void 0})):(t.__h.forEach(yF),t.__h.forEach(jre),t.__h=[])),Hre=$b},O0.diffed=function(e){zAe&&zAe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==TAe.push(t)&&MAe===O0.requestAnimationFrame||((MAe=O0.requestAnimationFrame)||Lqt)(Rqt)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==Vre&&(e.__=e.__V),e.i=void 0,e.__V=Vre})),Hre=$b=null},O0.__c=function(e,t){t.some(function(e){try{e.__h.forEach(yF),e.__h=e.__h.filter(function(e){return!e.__||jre(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],O0.__e(n,e.__v)}}),AAe&&AAe(e,t)},O0.unmount=function(e){wAe&&wAe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{yF(e)}catch(e){t=e}}),n.__H=void 0,t&&O0.__e(t,n.__v))},OAe="function"==typeof requestAnimationFrame});function Pqt(e,t){for(var n in t)e[n]=t[n];return e}function SAe(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function kAe(e){this.props=e}function IAe(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=Pqt({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return IAe(e,t,n)})),e}function NAe(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return NAe(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Xre(){this.__u=0,this.t=null,this.__b=null}function WAe(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function bF(){this.u=null,this.o=null}function Nqt(e){return this.getChildContext=function(){return e.context},e.children}function Wqt(e){var t=this,n=e.i;t.componentWillUnmount=function(){$_(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),$_(Cr(Nqt,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Yre(e,t){var n=Cr(Wqt,{__v:e,i:t});return n.containerInfo=t,n}function Vqt(){}function jqt(){return this.cancelBubble}function Gqt(){return this.defaultPrevented}var CAe,JZr,Iqt,EAe,qAe,Fqt,Bqt,Uqt,Hqt,DAe,Xqt,RAe,LAe,PAe,iE=kr(()=>{IM(),IM(),Gre(),Gre(),(kAe.prototype=new i2).isPureReactComponent=!0,kAe.prototype.shouldComponentUpdate=function(e,t){return SAe(this.props,e)||SAe(this.state,t)},CAe=O0.__b,O0.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),CAe&&CAe(e)},JZr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Iqt=O0.__e,O0.__e=function(e,t,n,r){if(e.then)for(var a,i=t;i=i.__;)if((a=i.__c)&&a.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),a.__c(e,t);Iqt(e,t,n,r)},EAe=O0.unmount,O0.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),EAe&&EAe(e)},(Xre.prototype=new i2).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var a=WAe(r.__v),i=!1,o=function(){i||(i=!0,n.__R=null,a?a(s):s())};n.__R=o;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=NAe(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},Xre.prototype.componentWillUnmount=function(){this.t=[]},Xre.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=IAe(this.__b,n,r.__O=r.__P)}this.__b=null}var a=t.__a&&Cr(x0,null,e.fallback);return a&&(a.__h=null),[Cr(x0,null,t.__a?null:e.children),a]},qAe=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}},(bF.prototype=new i2).__a=function(e){var t=this,n=WAe(t.__v),r=t.o.get(e);return r[0]++,function(a){var i=function(){t.props.revealOrder?(r.push(a),qAe(t,e,r)):a()};n?n(i):i()}},bF.prototype.render=function(e){this.u=null,this.o=new Map;var t=aE(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},bF.prototype.componentDidUpdate=bF.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){qAe(e,n,t)})},Fqt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Bqt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Uqt=typeof document<"u",Hqt=function(e){return(typeof Symbol<"u"&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)},i2.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(i2.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}),DAe=O0.event,O0.event=function(e){return DAe&&(e=DAe(e)),e.persist=Vqt,e.isPropagationStopped=jqt,e.isDefaultPrevented=Gqt,e.nativeEvent=e},RAe={configurable:!0,get:function(){return this.class}},LAe=O0.vnode,O0.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var a=-1===t.indexOf("-");for(var i in r={},n){var o=n[i];Uqt&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==o||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===o?o="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Hqt(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():a&&Bqt.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===o&&(o=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=o)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=aE(n.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),"select"==t&&null!=r.defaultValue&&(r.value=aE(n.children).forEach(function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value})),e.props=r,n.class!=n.className&&(RAe.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",RAe))}e.$$typeof=Fqt,LAe&&LAe(e)},PAe=O0.__r,O0.__r=function(e){PAe&&PAe(e),Xqt=e.__c}});function zg(e){QAe.push(e),ine.forEach(t=>{rwe(t,e)})}function ewe(e){e.isConnected&&e.getRootNode&&twe(e.getRootNode())}function twe(e){let t=ine.get(e);if(!t||!t.isConnected){if(t=e.querySelector("style[data-fullcalendar]"),!t){t=document.createElement("style"),t.setAttribute("data-fullcalendar","");let n=Zqt();n&&(t.nonce=n);let r=e===document?document.head:e,a=e===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(t,a)}ine.set(e,t),Yqt(t)}}function Yqt(e){for(let t of QAe)rwe(e,t)}function rwe(e,t){let{sheet:n}=e,r=n.cssRules.length;t.split("}").forEach((e,t)=>{(e=e.trim())&&n.insertRule(e+"}",r+t)})}function Zqt(){return void 0===Zre&&(Zre=$qt()),Zre}function $qt(){let e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");let t=document.querySelector("script[nonce]");return t&&t.nonce||""}function qA(e){e.parentNode&&e.parentNode.removeChild(e)}function nh(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(bE(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function bE(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function t3(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let a=n[e].querySelectorAll(t);for(let e=0;e<a.length;e+=1)r.push(a[e])}return r}function pne(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let a=n[e].children;for(let e=0;e<a.length;e+=1){let n=a[e];(!t||bE(n,t))&&r.push(n)}}return r}function jM(e,t){for(let n in t)mne(e,n,t[n])}function mne(e,t,n){null==n?e.style[t]="":"number"==typeof n&&Jqt.test(t)?e.style[t]=`${n}px`:e.style[t]=n}function qF(e){var t,n;return null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:e.target}function Ag(){return"fc-dom-"+(FAe+=1)}function ME(e){e.preventDefault()}function Qqt(e,t){return n=>{let r=nh(n.target,e);r&&t.call(r,n,r)}}function vne(e,t,n,r){let a=Qqt(n,r);return e.addEventListener(t,a),()=>{e.removeEventListener(t,a)}}function nwe(e,t,n,r){let a;return vne(e,"mouseover",t,(e,t)=>{if(t!==a){a=t,n(e,t);let i=e=>{a=null,r(e,t),t.removeEventListener("mouseleave",i)};t.addEventListener("mouseleave",i)}})}function gne(e,t){let n=r=>{t(r),BAe.forEach(t=>{e.removeEventListener(t,n)})};BAe.forEach(t=>{e.addEventListener(t,n)})}function awe(e){return Object.assign({onClick:e},iwe(e))}function iwe(e){return{tabIndex:0,onKeyDown(t){("Enter"===t.key||" "===t.key)&&(e(t),t.preventDefault())}}}function Um(){return UAe+=1,String(UAe)}function XT(){document.body.classList.add("fc-not-allowed")}function YT(){document.body.classList.remove("fc-not-allowed")}function yne(e){e.style.userSelect="none",e.style.webkitUserSelect="none",e.addEventListener("selectstart",ME)}function bne(e){e.style.userSelect="",e.style.webkitUserSelect="",e.removeEventListener("selectstart",ME)}function Mne(e){e.addEventListener("contextmenu",ME)}function xne(e){e.removeEventListener("contextmenu",ME)}function ZT(e){let t,n,r=[],a=[];for("string"==typeof e?a=e.split(/\s*,\s*/):"function"==typeof e?a=[e]:Array.isArray(e)&&(a=e),t=0;t<a.length;t+=1)n=a[t],"string"==typeof n?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}function DF(e,t,n){let r,a;for(r=0;r<n.length;r+=1)if(a=eDt(e,t,n[r]),a)return a;return 0}function eDt(e,t,n){return n.func?n.func(e,t):RF(e[n.field],t[n.field])*(n.order||1)}function RF(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}function qy(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function $T(e,t,n){return"function"==typeof e?e(...t):"string"==typeof e?t.reduce((e,t,n)=>e.replace("$"+n,t||""),e):n}function _ne(e,t){return e-t}function NM(e){return e%1==0}function tDt(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}function bl(e,t){return"string"==typeof e?nDt(e):"object"==typeof e&&e?VAe(e):"number"==typeof e?VAe({[t||"milliseconds"]:e}):null}function nDt(e){let t=rDt.exec(e);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}function VAe(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function aDt(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function LF(e){return e.years||e.months||e.milliseconds?0:e.days}function xE(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function owe(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function _E(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function iDt(e){return BT(e)/365}function oDt(e){return BT(e)/30}function BT(e){return cp(e)/864e5}function zne(e){return cp(e)/6e4}function Ane(e){return cp(e)/1e3}function cp(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function Ly(e,t){let n=null;for(let r=0;r<HAe.length;r+=1){let a=HAe[r];if(t[a]){let r=e[a]/t[a];if(!NM(r)||null!==n&&n!==r)return null;n=r}else if(e[a])return null}return n}function Mg(e){let t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:"millisecond",value:t};if(t%6e4!=0)return{unit:"second",value:t/1e3};if(t%36e5!=0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function o2(e,t,n){if(e===t)return!0;let r,a=e.length;if(a!==t.length)return!1;for(r=0;r<a;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}function PF(e,t){let n=J_(e);return n[2]+=7*t,Wm(n)}function Iu(e,t){let n=J_(e);return n[2]+=t,Wm(n)}function xg(e,t){let n=J_(e);return n[6]+=t,Wm(n)}function wne(e,t){return r3(e,t)/7}function r3(e,t){return(t.valueOf()-e.valueOf())/864e5}function sDt(e,t){return(t.valueOf()-e.valueOf())/36e5}function lDt(e,t){return(t.valueOf()-e.valueOf())/6e4}function cDt(e,t){return(t.valueOf()-e.valueOf())/1e3}function lwe(e,t){let n=mc(e),r=mc(t);return{years:0,months:0,days:Math.round(r3(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function cwe(e,t){let n=tz(e,t);return null!==n&&n%7==0?n/7:null}function tz(e,t){return Q_(e)===Q_(t)?Math.round(r3(e,t)):null}function mc(e){return Wm([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function uDt(e){return Wm([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function dDt(e){return Wm([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function fDt(e){return Wm([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function hDt(e,t,n){let r=e.getUTCFullYear(),a=$re(e,r,t,n);if(a<1)return $re(e,r-1,t,n);let i=$re(e,r+1,t,n);return i>=1?Math.min(a,i):a}function $re(e,t,n,r){let a=Wm([t,0,1+pDt(t,n,r)]),i=mc(e),o=Math.round(r3(a,i));return Math.floor(o/7)+1}function pDt(e,t,n){let r=7+t-n;return-(7+Wm([e,0,r]).getUTCDay()-t)%7+r-1}function jAe(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function GAe(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function J_(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function Wm(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function zE(e){return!isNaN(e.valueOf())}function Q_(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function DA(e,t,n=!1){let r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",Sne(t,!0)))),r}function GM(e){return e.toISOString().replace(/T.*$/,"")}function One(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function Tne(e){return qy(e.getUTCHours(),2)+":"+qy(e.getUTCMinutes(),2)+":"+qy(e.getUTCSeconds(),2)}function Sne(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),i=Math.round(r%60);return t?`${n+qy(a,2)}:${qy(i,2)}`:`GMT${n}${a}${i?`:${qy(i,2)}`:""}`}function ps(e,t,n){let r,a;return function(...i){if(r){if(!o2(r,i)){n&&n(a);let r=e.apply(this,i);(!t||!t(r,a))&&(a=r)}}else a=e.apply(this,i);return r=i,a}}function wg(e,t,n){let r,a;return i=>{if(r){if(!Df(r,i)){n&&n(a);let r=e.call(this,i);(!t||!t(r,a))&&(a=r)}}else a=e.call(this,i);return r=i,a}}function AE(e,t,n){let r=[],a=[];return i=>{let o=r.length,s=i.length,l=0;for(;l<o;l+=1)if(i[l]){if(!o2(r[l],i[l])){n&&n(a[l]);let r=e.apply(this,i[l]);(!t||!t(r,a[l]))&&(a[l]=r)}}else n&&n(a[l]);for(;l<s;l+=1)a[l]=e.apply(this,i[l]);return r=i,a.splice(s),a}}function IF(e,t,n){let r={},a={};return i=>{let o={};for(let s in i)if(a[s])if(o2(r[s],i[s]))o[s]=a[s];else{n&&n(a[s]);let r=e.apply(this,i[s]);o[s]=t&&t(r,a[s])?a[s]:r}else o[s]=e.apply(this,i[s]);return r=i,a=o,o}}function XAe(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>Sne(e.timeZoneOffset):0===r&&t.week?e=>zDt(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week):bDt(e,t,n)}function bDt(e,t,n){e=Object.assign({},e),t=Object.assign({},t),MDt(e,t),e.timeZone="UTC";let r,a=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,r=new Intl.DateTimeFormat(n.locale.codes,t)}return i=>{let o,{marker:s}=i;return o=r&&!s.getUTCMinutes()?r:a,xDt(o.format(s),i,e,t,n)}}function MDt(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),"long"===e.timeZoneName&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}function xDt(e,t,n,r,a){return e=e.replace(gDt,""),"short"===n.timeZoneName&&(e=_Dt(e,"UTC"===a.timeZone||null==t.timeZoneOffset?"UTC":Sne(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(mDt,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),!1===r.meridiem?e=e.replace(MF,"").trim():"narrow"===r.meridiem?e=e.replace(MF,(e,t)=>t.toLocaleLowerCase()):"short"===r.meridiem?e=e.replace(MF,(e,t)=>`${t.toLocaleLowerCase()}m`):"lowercase"===r.meridiem&&(e=e.replace(MF,e=>e.toLocaleLowerCase())),e=(e=e.replace(vDt," ")).trim()}function _Dt(e,t){let n=!1;return e=e.replace(yDt,()=>(n=!0,t)),n||(e+=` ${t}`),e}function zDt(e,t,n,r,a){let i=[];return"long"===a?i.push(n):("short"===a||"narrow"===a)&&i.push(t),("long"===a||"short"===a)&&i.push(" "),i.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&i.reverse(),i.join("")}function ADt(e,t,n){return n.getMarkerYear(e)!==n.getMarkerYear(t)?5:n.getMarkerMonth(e)!==n.getMarkerMonth(t)?4:n.getMarkerDay(e)!==n.getMarkerDay(t)?2:Q_(e)!==Q_(t)?1:0}function wDt(e,t){let n={};for(let r in e)(!(r in OF)||OF[r]<=t)&&(n[r]=e[r]);return n}function ODt(e,t,n,r){let a=0;for(;a<e.length;){let i=e.indexOf(t,a);if(-1===i)break;let o=e.substr(0,i);a=i+t.length;let s=e.substr(a),l=0;for(;l<n.length;){let e=n.indexOf(r,l);if(-1===e)break;let t=n.substr(0,e);l=e+r.length;let a=n.substr(l);if(o===t&&s===a)return{before:o,after:s}}}return null}function YAe(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function TF(e,t,n,r){let a=YAe(e,n.calendarSystem);return{date:a,start:a,end:t?YAe(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}function pc(e){return"object"==typeof e&&e?new one(e):"string"==typeof e?new sne(e):"function"==typeof e?new lne(e):null}function _A(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?Df(e,t):e===t}function xF(e,t){return Array.isArray(e)&&Array.isArray(t)?o2(e,t):e===t}function NF(e){return WF(e,iz)}function XM(e,t){let n={},r={};for(let r in t)r in e&&(n[r]=t[r](e[r]));for(let n in e)n in t||(r[n]=e[n]);return{refined:n,extra:r}}function da(e){return e}function WF(e,t){let n={};if(t)for(let r in t)if(t[r]===_A){let t=[];for(let a=e.length-1;a>=0;a-=1){let i=e[a][r];if("object"==typeof i&&i)t.unshift(i);else if(void 0!==i){n[r]=i;break}}t.length&&(n[r]=WF(t))}for(let t=e.length-1;t>=0;t-=1){let r=e[t];for(let e in r)e in n||(n[e]=r[e])}return n}function _g(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function ah(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function qne(e){let t={};for(let n of e)t[n]=!0;return t}function FF(e){let t=[];for(let n in e)t.push(e[n]);return t}function Df(e,t){if(e===t)return!0;for(let n in e)if(SF.call(e,n)&&!(n in t))return!1;for(let n in t)if(SF.call(t,n)&&e[n]!==t[n])return!1;return!0}function SDt(e,t){let n=kDt(e,t);for(let e of n)if(!TDt.test(e))return!1;return!0}function kDt(e,t){let n=[];for(let r in e)SF.call(e,r)&&(r in t||n.push(r));for(let r in t)SF.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function UT(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e)||!CDt(e[r],t[r],n[r]))return!1;for(let n in e)if(!(n in t))return!1;return!0}function CDt(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function BF(e,t=0,n,r=1){let a=[];null==n&&(n=Object.keys(e).length);for(let i=t;i<n;i+=r){let t=e[i];void 0!==t&&a.push(t)}return a}function EDt(e,t){dwe[e]=t}function qDt(e){return new dwe[e]}function KT(e){let t=DDt.exec(e);if(t){let e=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*+`0.${t[12]}`:0));if(zE(e)){let n=null;return t[13]&&(n=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}function oE(e){e();let t=O0.debounceRendering,n=[];for(O0.debounceRendering=function(e){n.push(e)},$_(Cr(une,{}),document.createElement("div"));n.length;)n.shift()();O0.debounceRendering=t}function fwe(e){let t=gF(e),n=t.Provider;return t.Provider=function(){let e=!this.getChildContext,t=n.apply(this,arguments);if(e){let e=[];this.shouldComponentUpdate=t=>{this.props.value!==t.value&&e.forEach(e=>{e.context=t.value,e.forceUpdate()})},this.sub=t=>{e.push(t);let n=t.componentWillUnmount;t.componentWillUnmount=()=>{e.splice(e.indexOf(t),1),n&&n.call(t)}}}return t},t}function hwe(e,t,n,r,a,i,o,s,l,c,u,d,p,h){return{dateEnv:a,nowManager:i,options:n,pluginHooks:s,emitter:u,dispatch:l,getCurrentData:c,calendarApi:d,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:o,isRtl:"rtl"===n.direction,addResizeHandler(e){u.on("_resize",e)},removeResizeHandler(e){u.off("_resize",e)},createScrollResponder:e=>new kF(e,u,bl(n.scrollTime),n.scrollTimeReset),registerInteractiveComponent:p,unregisterInteractiveComponent:h}}function RDt(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t}function LDt(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t}function s2(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function dne(e,t){var n;return!!(t.handleCustomRendering&&e&&null!==(n=t.customRenderingMetaMap)&&void 0!==n&&n[e])}function Dne(e,t,n){let r=Object.assign(Object.assign({},e.elAttrs),{ref:n});return(e.elClasses||t)&&(r.className=(e.elClasses||[]).concat(t||[]).concat(r.className||[]).filter(Boolean).join(" ")),e.elStyle&&(r.style=e.elStyle),r}function PDt(e){return!!e}function IDt(e,t){let n=e.props;return Cr(sE,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}function NDt(e,t){let n="function"==typeof e?e(t):e||[];return"string"==typeof n?[n]:n}function Lne(e){return[`fc-${e.type}-view`,"fc-view"]}function WDt(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function ZAe(e,t){let n,r,a=[],{start:i}=t;for(e.sort(FDt),n=0;n<e.length;n+=1)r=e[n],r.start>i&&a.push({start:i,end:r.start}),r.end>i&&(i=r.end);return i<t.end&&a.push({start:i,end:t.end}),a}function FDt(e,t){return e.start.valueOf()-t.start.valueOf()}function um(e,t){let{start:n,end:r}=e,a=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(a={start:n,end:r}),a}function UF(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function JT(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function QT(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Fm(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function BDt(e,t){return null!=t.start&&e<t.start?t.start:null!=t.end&&e>=t.end?new Date(t.end.valueOf()-1):e}function pwe(e){let t=Math.floor(r3(e.start,e.end))||1,n=mc(e.start);return{start:n,end:Iu(n,t)}}function e8(e,t=bl(0)){let n=null,r=null;if(e.end){r=mc(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=cp(t)&&(r=Iu(r,1))}return e.start&&(n=mc(e.start),r&&r<=n&&(r=Iu(n,1))),{start:n,end:r}}function Pne(e){let t=e8(e);return r3(t.start,t.end)>1}function ez(e,t,n,r){return"year"===r?bl(n.diffWholeYears(e,t),"year"):"month"===r?bl(n.diffWholeMonths(e,t),"month"):lwe(e,t)}function t8(e,t,n,r){return{instanceId:Um(),defId:e,range:t,forcedStartTzo:n??null,forcedEndTzo:r??null}}function UDt(e,t,n,r){for(let a=0;a<r.length;a+=1){let i=r[a].parse(e,n);if(i){let{allDay:n}=e;return null==n&&(n=t,null==n&&(n=i.allDayGuess,null==n&&(n=!1))),{allDay:n,duration:i.duration,typeData:i.typeData,typeId:a}}}return null}function AA(e,t,n){let{dateEnv:r,pluginHooks:a,options:i}=n,{defs:o,instances:s}=e;s=_g(s,e=>!o[e.defId].recurringDef);for(let e in o){let n=o[e];if(n.recurringDef){let{duration:o}=n.recurringDef;o||(o=n.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);let l=HDt(n,o,t,r,a.recurringTypes);for(let t of l){let n=t8(e,{start:t,end:r.add(t,o)});s[n.instanceId]=n}}}return{defs:o,instances:s}}function HDt(e,t,n,r,a){let i=a[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(i=i.map(mc)),i}function vwe(e,t,n,r,a=Ine(n),i,o){let{refined:s,extra:l}=wE(e,n,a),c=GDt(t,n),u=UDt(s,c,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let e=VT(s,l,t?t.sourceId:"",u.allDay,!!u.duration,n,i);return e.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:e,instance:null}}let d=jDt(s,c,n,r);if(d){let e=VT(s,l,t?t.sourceId:"",d.allDay,d.hasEnd,n,i),r=t8(e.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return o&&e.publicId&&o[e.publicId]&&(r.instanceId=o[e.publicId]),{def:e,instance:r}}return null}function wE(e,t,n=Ine(t)){return XM(e,n)}function Ine(e){return Object.assign(Object.assign(Object.assign({},CF),VDt),e.pluginHooks.eventRefiners)}function VT(e,t,n,r,a,i,o){let s={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(o&&e.id?o[e.id]:"")||Um(),sourceId:n,allDay:r,hasEnd:a,interactive:e.interactive,ui:oz(e,i),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of i.pluginHooks.eventDefMemberAdders)Object.assign(s,t(e));return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function jDt(e,t,n,r){let a,i,{allDay:o}=e,s=null,l=!1,c=null,u=null!=e.start?e.start:e.date;if(a=n.dateEnv.createMarkerMeta(u),a)s=a.marker;else if(!r)return null;return null!=e.end&&(i=n.dateEnv.createMarkerMeta(e.end)),null==o&&(o=null!=t?t:(!a||a.isTimeUnspecified)&&(!i||i.isTimeUnspecified)),o&&s&&(s=mc(s)),i&&(c=i.marker,o&&(c=mc(c)),s&&c<=s&&(c=null)),c?l=!0:r||(l=n.options.forceEventDuration||!1,c=n.dateEnv.add(s,o?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:o,hasEnd:l,range:{start:s,end:c},forcedStartTzo:a?a.forcedTzo:null,forcedEndTzo:i?i.forcedTzo:null}}function GDt(e,t){let n=null;return e&&(n=e.defaultAllDay),null==n&&(n=t.options.defaultAllDay),n}function lE(e,t,n,r,a,i){let o=up(),s=Ine(n);for(let l of e){let e=vwe(l,t,n,r,s,a,i);e&&wA(e,o)}return o}function wA(e,t=up()){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function OE(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=HF(e,e=>XDt(t,e));return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return up()}function XDt(e,t){return!(!e.groupId||e.groupId!==t.groupId)}function up(){return{defs:{},instances:{}}}function r8(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function HF(e,t){let n=_g(e.defs,t),r=_g(e.instances,e=>n[e.defId]);return{defs:n,instances:r}}function YDt(e,t){let{defs:n,instances:r}=e,a={},i={};for(let e in n)t.defs[e]||(a[e]=n[e]);for(let e in r)!t.instances[e]&&a[r[e].defId]&&(i[e]=r[e]);return{defs:a,instances:i}}function ZDt(e,t){return Array.isArray(e)?lE(e,null,t,!0):"object"==typeof e&&e?lE([e],null,t,!0):null!=e?String(e):null}function cE(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}function oz(e,t){let n=ZDt(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function TE(e){return e.reduce(KDt,$Dt)}function KDt(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}function Nne(e,t,n=Wne(t)){let r;if("string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){let{refined:a,extra:i}=XM(r,n),o=QDt(a,t);if(o)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:a.defaultAllDay,eventDataTransform:a.eventDataTransform,success:a.success,failure:a.failure,publicId:a.id||"",sourceId:Um(),sourceDefId:o.sourceDefId,meta:o.meta,ui:oz(a,t),extendedProps:i}}return null}function Wne(e){return Object.assign(Object.assign(Object.assign({},CF),JDt),e.pluginHooks.eventSourceRefiners)}function QDt(e,t){let n=t.pluginHooks.eventSourceDefs;for(let t=n.length-1;t>=0;t-=1){let r=n[t].parseMeta(e);if(r)return{sourceDefId:t,meta:r}}return null}function gwe(e,t,n,r,a){switch(t.type){case"RECEIVE_EVENTS":return eRt(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,a);case"RESET_RAW_EVENTS":return tRt(e,n[t.sourceId],t.rawEvents,r.activeRange,a);case"ADD_EVENTS":return rRt(e,t.eventStore,r?r.activeRange:null,a);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return r8(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?AA(e,r.activeRange,a):e;case"REMOVE_EVENTS":return YDt(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return bwe(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return HF(e,e=>!e.sourceId);case"REMOVE_ALL_EVENTS":return up();default:return e}}function eRt(e,t,n,r,a,i){if(t&&n===t.latestFetchId){let n=lE(ywe(a,t,i),t,i);return r&&(n=AA(n,r,i)),r8(bwe(e,t.sourceId),n)}return e}function tRt(e,t,n,r,a){let{defIdMap:i,instanceIdMap:o}=aRt(e);return AA(lE(ywe(n,t,a),t,a,!1,i,o),r,a)}function ywe(e,t,n){let r=n.options.eventDataTransform,a=t?t.eventDataTransform:null;return a&&(e=$Ae(e,a)),r&&(e=$Ae(e,r)),e}function $Ae(e,t){let n;if(t){n=[];for(let r of e){let e=t(r);e?n.push(e):null==e&&n.push(r)}}else n=e;return n}function rRt(e,t,n,r){return n&&(t=AA(t,n,r)),r8(e,t)}function Fne(e,t,n){let{defs:r}=e,a=ah(e.instances,e=>r[e.defId].allDay?e:Object.assign(Object.assign({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo}));return{defs:r,instances:a}}function bwe(e,t){return HF(e,e=>e.sourceId!==t)}function nRt(e,t){return{defs:e.defs,instances:_g(e.instances,e=>!t[e.instanceId])}}function aRt(e){let{defs:t,instances:n}=e,r={},a={};for(let e in t){let n=t[e],{publicId:a}=n;a&&(r[a]=e)}for(let e in n){let r=t[n[e].defId],{publicId:i}=r;i&&(a[i]=e)}return{defIdMap:r,instanceIdMap:a}}function iRt(e,t,n){(e[t]||(e[t]=[])).push(n)}function oRt(e,t,n){n?e[t]&&(e[t]=e[t].filter(e=>e!==n)):delete e[t]}function SE(e,t){return lE(lRt(e),null,t)}function lRt(e){let t;return t=!0===e?[{}]:Array.isArray(e)?e.filter(e=>e.daysOfWeek):"object"==typeof e&&e?[e]:[],t=t.map(e=>Object.assign(Object.assign({},sRt),e)),t}function VF(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},Bne(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function cRt(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function Bne(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));return Object.assign(n,xRt(e,t.dateEnv)),n}function uE(e,t,n){let{dateEnv:r,options:a}=n,i=t;return e?(i=mc(i),i=r.add(i,a.defaultAllDayEventDuration)):i=r.add(i,a.defaultTimedEventDuration),i}function kE(e,t,n,r){let a=EF(e.defs,t),i=up();for(let t in e.defs){let o=e.defs[t];i.defs[t]=uRt(o,a[t],n,r)}for(let t in e.instances){let o=e.instances[t],s=i.defs[o.defId];i.instances[t]=dRt(o,s,a[o.defId],n,r)}return i}function uRt(e,t,n,r){let a=n.standardProps||{};null==a.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(a.hasEnd=!0);let i=Object.assign(Object.assign(Object.assign({},e),a),{ui:Object.assign(Object.assign({},e.ui),a.ui)});n.extendedProps&&(i.extendedProps=Object.assign(Object.assign({},i.extendedProps),n.extendedProps));for(let e of r.pluginHooks.eventDefMutationAppliers)e(i,n,r);return!i.hasEnd&&r.options.forceEventDuration&&(i.hasEnd=!0),i}function dRt(e,t,n,r,a){let{dateEnv:i}=a,o=r.standardProps&&!0===r.standardProps.allDay,s=r.standardProps&&!1===r.standardProps.hasEnd,l=Object.assign({},e);return o&&(l.range=pwe(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:i.add(l.range.start,r.datesDelta),end:i.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:i.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:i.add(l.range.end,r.endDelta)}),s&&(l.range={start:l.range.start,end:uE(t.allDay,l.range.start,a)}),t.allDay&&(l.range={start:mc(l.range.start),end:mc(l.range.end)}),l.range.end<l.range.start&&(l.range.end=uE(t.allDay,l.range.start,a)),l}function Mwe(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function n3(e,t,n){let{defs:r,instances:a}=e,i=[],o=n?n.instanceId:"";for(let e in a){let n=a[e],s=r[n.defId];n.instanceId!==o&&i.push(new eu(t,s,n))}return i}function OA(e,t,n,r){let a={},i={},o={},s=[],l=[],c=EF(e.defs,t);for(let t in e.defs){let n=e.defs[t];"inverse-background"===c[n.defId].display&&(n.groupId?(a[n.groupId]=[],o[n.groupId]||(o[n.groupId]=n)):i[t]=[])}for(let t in e.instances){let o=e.instances[t],u=e.defs[o.defId],d=c[u.defId],p=o.range,h=!u.allDay&&r?e8(p,r):p,f=um(h,n);f&&("inverse-background"===d.display?u.groupId?a[u.groupId].push(f):i[o.defId].push(f):"none"!==d.display&&("background"===d.display?s:l).push({def:u,ui:d,instance:o,range:f,isStart:h.start&&h.start.valueOf()===f.start.valueOf(),isEnd:h.end&&h.end.valueOf()===f.end.valueOf()}))}for(let e in a){let t=ZAe(a[e],n);for(let n of t){let t=o[e],r=c[t.defId];s.push({def:t,ui:r,instance:null,range:n,isStart:!1,isEnd:!1})}}for(let t in i){let r=ZAe(i[t],n);for(let n of r)s.push({def:e.defs[t],ui:c[t],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:s,fg:l}}function Une(e){return"background"===e.ui.display||"inverse-background"===e.ui.display}function KAe(e,t){e.fcSeg=t}function YM(e){return e.fcSeg||e.parentNode.fcSeg||null}function EF(e,t){return ah(e,e=>xwe(e,t))}function xwe(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),TE(n)}function ZM(e,t){let n=e.map(fRt);return n.sort((e,n)=>DF(e,n,t)),n.map(e=>e._seg)}function fRt(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,a=r.start?r.start.valueOf():0,i=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:a,end:i,duration:i-a,allDay:Number(n.allDay),_seg:e})}function hRt(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:a,ui:i}=e.eventRange,o=i.startEditable;for(let e of r)o=e(o,a,i,t);return o}function pRt(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function mRt(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function sz(e,t,n,r,a,i,o){let{dateEnv:s,options:l}=n,{displayEventTime:c,displayEventEnd:u}=l,d=e.eventRange.def,p=e.eventRange.instance;null==c&&(c=!1!==r),null==u&&(u=!1!==a);let h=p.range.start,f=p.range.end,m=i||e.start||e.eventRange.range.start,g=o||e.end||e.eventRange.range.end,y=mc(h).valueOf()===mc(m).valueOf(),b=mc(xg(f,-1)).valueOf()===mc(xg(g,-1)).valueOf();return c&&!d.allDay&&(y||b)?(m=y?h:m,g=b?f:g,u&&d.hasEnd?s.formatRange(m,g,t,{forcedStartTzo:i?null:p.forcedStartTzo,forcedEndTzo:o?null:p.forcedEndTzo}):s.format(m,t,{forcedTzo:i?null:p.forcedStartTzo})):""}function l2(e,t,n){let r=e.eventRange.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Fm(t,r.start)}}function vRt(e){let t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function RA(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function n8(e,t){let{def:n,instance:r}=e.eventRange,{url:a}=n;if(a)return{href:a};let{emitter:i,options:o}=t,{eventInteractive:s}=o;return null==s&&(s=n.interactive,null==s&&(s=!!i.hasHandlers("eventClick"))),s?iwe(e=>{i.trigger("eventClick",{el:e.target,event:new eu(t,n,r),jsEvent:e,view:t.viewApi})}):{}}function yRt(e,t,n){let r=bRt(e,t),{range:a}=r;if(!a.start)return null;if(!a.end){if(null==n)return null;a.end=t.add(a.start,n)}return r}function bRt(e,t){let{refined:n,extra:r}=XM(e,gRt),a=n.start?t.createMarkerMeta(n.start):null,i=n.end?t.createMarkerMeta(n.end):null,{allDay:o}=n;return null==o&&(o=a&&a.isTimeUnspecified&&(!i||i.isTimeUnspecified)),Object.assign({range:{start:a?a.marker:null,end:i?i.marker:null},allDay:o},r)}function Hne(e,t){return UF(e.range,t.range)&&e.allDay===t.allDay&&MRt(e,t)}function MRt(e,t){for(let n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}function xRt(e,t){return Object.assign(Object.assign({},_we(e.range,t,e.allDay)),{allDay:e.allDay})}function Vne(e,t,n){return Object.assign(Object.assign({},_we(e,t,n)),{timeZone:t.timeZone})}function _we(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function _Rt(e,t,n){let r=wE({editable:!1},n),a=VT(r.refined,r.extra,"",e.allDay,!0,n);return{def:a,ui:xwe(a,t),instance:t8(a.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function CE(e,t,n){let r=!1,a=function(e){r||(r=!0,t(e))},i=function(e){r||(r=!0,n(e))},o=e(a,i);o&&"function"==typeof o.then&&o.then(a,i)}function EE(e,t,n){let r={method:e=e.toUpperCase()};return"GET"===e?t+=(-1===t.indexOf("?")?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then(e=>{if(e.ok)return e.json().then(t=>[t,e],()=>{throw new jT("Failure parsing JSON",e)});throw new jT("Request failed",e)})}function qE(){return null==Jre&&(Jre=zRt()),Jre}function zRt(){if(typeof document>"u")return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}function zwe(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}function DE(e){return{[e.component.uid]:e}}function ARt(e){let t=mc(e);return{start:t,end:Iu(t,1)}}function jne(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function jF(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function GF(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}}function Gne(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function Xne(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function Yne(e,t){return{left:e.left-t.left,top:e.top-t.top}}function wRt(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let a={"":TE(r)};return n&&Object.assign(a,n),a}function lz(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:!(!r||r.activeRange&&Fm(r.activeRange,e)),isOther:!(!r||Fm(r.currentRange,e)),isToday:!(!t||!Fm(t,e)),isPast:!!(n?e<n:t&&e<t.start),isFuture:!!(n?e>n:t&&e>=t.end)}}function $M(e,t){let n=["fc-day",`fc-day-${swe[e.dow]}`];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}function XF(e,t){let n=["fc-slot",`fc-slot-${swe[e.dow]}`];return e.isDisabled?n.push("fc-slot-disabled"):(e.isToday&&(n.push("fc-slot-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-slot-past"),e.isFuture&&n.push("fc-slot-future")),n}function Tg(e,t,n="day",r=!0){let{dateEnv:a,options:i,calendarApi:o}=e,s=a.format(t,"week"===n?TRt:ORt);if(i.navLinks){let e=a.toDate(t),l=e=>{let r="day"===n?i.navLinkDayClick:"week"===n?i.navLinkWeekClick:null;"function"==typeof r?r.call(o,a.toDate(t),e):("string"==typeof r&&(n=r),o.zoomTo(t,n))};return Object.assign({title:$T(i.navLinkHint,[s,e],s),"data-navlink":""},r?awe(l):{onClick:l})}return{"aria-label":s}}function a8(){return null===ene&&(ene=SRt()),ene}function SRt(){let e=document.createElement("div");jM(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);let t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return qA(e),t}function YF(){return tne||(tne=kRt()),tne}function kRt(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=Awe(e);return document.body.removeChild(e),t}function Awe(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function ZF(e,t=!1){let n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,a=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderBottomWidth,10)||0,s=Awe(e),l=s.y-r-a,c={borderLeft:r,borderRight:a,borderTop:i,borderBottom:o,scrollbarBottom:s.x-i-o,scrollbarLeft:0,scrollbarRight:0};return a8()&&"rtl"===n.direction?c.scrollbarLeft=l:c.scrollbarRight=l,t&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function RE(e,t=!1,n){let r=n?e.getBoundingClientRect():LE(e),a=ZF(e,t),i={left:r.left+a.borderLeft+a.scrollbarLeft,right:r.right-a.borderRight-a.scrollbarRight,top:r.top+a.borderTop,bottom:r.bottom-a.borderBottom-a.scrollbarBottom};return t&&(i.left+=a.paddingLeft,i.right-=a.paddingRight,i.top+=a.paddingTop,i.bottom-=a.paddingBottom),i}function LE(e){let t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY,right:t.right+window.scrollX,bottom:t.bottom+window.scrollY}}function CRt(e){let t=$F(e),n=e.getBoundingClientRect();for(let e of t){let t=jF(n,e.getBoundingClientRect());if(!t)return null;n=t}return n}function $F(e){let t=[];for(;e instanceof HTMLElement;){let n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function _F(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}function mE(e){return e.span.end}function Qb(e){return e.index+":"+e.span.start}function PE(e){let t=[];for(let n of e){let e=[],r={span:n.span,entries:[n]};for(let n of t)IE(n.span,r.span)?r={entries:n.entries.concat(r.entries),span:ERt(n.span,r.span)}:e.push(n);e.push(r),t=e}return t}function ERt(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function IE(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function rne(e,t,n){e.splice(t,0,n)}function vE(e,t,n){let r=0,a=e.length;if(!a||t<n(e[r]))return[0,0];if(t>n(e[a-1]))return[a,0];for(;r<a;){let i=Math.floor(r+(a-r)/2),o=n(e[i]);if(t<o)a=i;else{if(!(t>o))return[i,1];r=i+1}}return[r,0]}function NE(e){let{refined:t,extra:n}=XM(e,qRt);return{startTime:t.startTime||null,duration:t.duration||null,create:null==t.create||t.create,sourceId:t.sourceId,leftoverProps:n}}function Zne(e,t){return pc(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}function Owe(e){return e.text}function RRt(e,t,n){return e||Zne(t,n)}function zF(e,t){let n=e.activeRange;return t?n:{start:xg(n.start,e.slotMinTime.milliseconds),end:xg(n.end,e.slotMaxTime.milliseconds-864e5)}}function WE(e,t,n){let{instances:r}=e.mutatedEvents;for(let e in r)if(!QT(t.validRange,r[e].range))return!1;return Twe({eventDrag:e},n)}function $ne(e,t,n){return!!QT(t.validRange,e.range)&&Twe({dateSelection:e},n)}function Twe(e,t){let n=t.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||KF)(r,t)}function KF(e,t,n={},r){return!(e.eventDrag&&!LRt(e,t,n,r)||e.dateSelection&&!PRt(e,t,n,r))}function LRt(e,t,n,r){let a=t.getCurrentData(),i=e.eventDrag,o=i.mutatedEvents,s=o.defs,l=o.instances,c=EF(s,i.isEvent?e.eventUiBases:{"":a.selectionConfig});r&&(c=ah(c,r));let u=nRt(e.eventStore,i.affectedEvents.instances),d=u.defs,p=u.instances,h=EF(d,e.eventUiBases);for(let r in l){let o=l[r],f=o.range,m=c[o.defId],g=s[o.defId];if(!Swe(m.constraints,f,u,e.businessHours,t))return!1;let{eventOverlap:y}=t.options,b="function"==typeof y?y:null;for(let e in p){let n=p[e];if(JT(f,n.range)&&(!1===h[n.defId].overlap&&i.isEvent||!1===m.overlap||b&&!b(new eu(t,d[n.defId],n),new eu(t,g,o))))return!1}let v=a.eventStore;for(let e of m.allows){let a,i=Object.assign(Object.assign({},n),{range:o.range,allDay:g.allDay}),s=v.defs[g.defId],l=v.instances[r];if(a=s?new eu(t,s,l):new eu(t,g),!e(Bne(i,t),a))return!1}}return!0}function PRt(e,t,n,r){let a=e.eventStore,i=a.defs,o=a.instances,s=e.dateSelection,l=s.range,{selectionConfig:c}=t.getCurrentData();if(r&&(c=r(c)),!Swe(c.constraints,l,a,e.businessHours,t))return!1;let{selectOverlap:u}=t.options,d="function"==typeof u?u:null;for(let e in o){let n=o[e];if(JT(l,n.range)&&(!1===c.overlap||d&&!d(new eu(t,i[n.defId],n),null)))return!1}for(let e of c.allows){if(!e(Bne(Object.assign(Object.assign({},n),s),t),null))return!1}return!0}function Swe(e,t,n,r,a){for(let i of e)if(!NRt(IRt(i,t,n,r,a),t))return!1;return!0}function IRt(e,t,n,r,a){return"businessHours"===e?nne(AA(r,t,a)):"string"==typeof e?nne(HF(n,t=>t.groupId===e)):"object"==typeof e&&e?nne(AA(e,t,a)):[]}function nne(e){let{instances:t}=e,n=[];for(let e in t)n.push(t[e].range);return n}function NRt(e,t){for(let n of e)if(QT(n,t))return!0;return!1}function JF(e){let t=t3(e,".fc-scrollgrid-shrink"),n=0;for(let e of t)n=Math.max(n,tDt(e));return Math.ceil(n)}function FE(e,t){return e.liquid&&t.liquid}function QF(e,t){return null!=t.maxHeight||FE(e,t)}function eB(e,t,n,r){let{expandRows:a}=n;return"function"==typeof t.content?t.content(n):Cr("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:a?n.clientHeight:""}},n.tableColGroupNode,Cr(r?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}function tB(e,t){return o2(e,t,Df)}function rB(e,t){let n=[];for(let r of e){let e=r.span||1;for(let a=0;a<e;a+=1)n.push(Cr("col",{style:{width:"shrink"===r.width?nB(t):r.width||"",minWidth:r.minWidth||""}}))}return Cr("colgroup",{},...n)}function nB(e){return e??4}function aB(e){for(let t of e)if("shrink"===t.width)return!0;return!1}function iB(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function oB(e,t){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${e.type}`,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function Py(e){return Cr("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function Iy(e){let{stickyHeaderDates:t}=e;return(null==t||"auto"===t)&&(t="auto"===e.height||"auto"===e.viewHeight),t}function KM(e){let{stickyFooterScrollbar:t}=e;return(null==t||"auto"===t)&&(t="auto"===e.height||"auto"===e.viewHeight),t}function WRt(e,t){for(let n of e)if(n.key===t)return n;return null}function FRt(e){return Cr("div",{className:"fc-event-main-frame"},e.timeText&&Cr("div",{className:"fc-event-time"},e.timeText),Cr("div",{className:"fc-event-title-container"},Cr("div",{className:"fc-event-title fc-sticky"},e.event.title||Cr(x0,null," "))))}function i8(e){return!(!e.dayCellContent&&!dne("dayCellContent",e))}function URt(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:a}=e,i=lz(t,e.todayRange,null,r),o=e.showDayNumber?n.format(t,a?e.monthStartFormat:BRt):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},i),{isMonthStart:a,dayNumberText:o}),e.extraRenderProps)}function HRt(e){let{title:t}=e.event;return t&&Cr("div",{className:"fc-event-title"},e.event.title)}function PA(e){return Cr("div",{className:`fc-${e}`})}function VRt(e){return e.text}function jRt(e){return e.text}function JAe(e){if(e.allDayDate)return{start:e.allDayDate,end:Iu(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:IA(t),end:XRt(t)}}function IA(e){return e.reduce(GRt).eventRange.range.start}function GRt(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function XRt(e){return e.reduce(YRt).eventRange.range.end}function YRt(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}var QAe,ine,Zre,Kqt,Kb,Jqt,FAe,BAe,UAe,HAe,rDt,swe,Kre,OF,MF,mDt,vDt,gDt,yDt,one,sne,lne,kne,Og,Cne,Ene,iz,uwe,SF,TDt,dwe,cne,DDt,HT,WM,une,kF,wv,Jb,Ps,sE,Rne,Uc,cm,zA,wF,mwe,VDt,CF,$Dt,JDt,Dy,sRt,K_,eu,gRt,jT,Jre,dE,Ry,LA,Bh,Bm,Qre,TA,ORt,TRt,ene,tne,B2,SA,fE,hE,ih,pE,FM,GT,c2,qRt,wwe,gE,DRt,yE,kA,CA,EA,BM,AF,rz,sf,nz,UM,e3,a3,BRt,az,HM,BE,ane,fne,hne,VM,sB=kr(()=>{IM(),IM(),iE(),QAe=[],ine=new Map,typeof document<"u"&&twe(document),zg(Kqt=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}'),Kb=class{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e="",t){let{pauseDepths:n}=this;e in n&&(t?delete n[e]:(n[e]-=1,n[e]<=0&&delete n[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}},Jqt=/(top|left|right|bottom|width|height)$/i,FAe=0,BAe=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"],UAe=0,HAe=["years","months","days","milliseconds"],rDt=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/,swe=["sun","mon","tue","wed","thu","fri","sat"],Kre={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},OF={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},MF=/\s*([ap])\.?m\.?/i,mDt=/,/g,vDt=/\s+/g,gDt=/\u200e/g,yDt=/UTC|GMT/,one=class{constructor(e){let t={},n={},r=9;for(let a in e)a in Kre?(n[a]=e[a],Kre[a]<9&&(r=Math.min(Kre[a],r))):(t[a]=e[a],a in OF&&(r=Math.min(OF[a],r)));this.standardDateProps=t,this.extendedSettings=n,this.smallestUnitNum=r,this.buildFormattingFunc=ps(XAe)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:a,extendedSettings:i}=this,o=ADt(e.marker,t.marker,n.calendarSystem);if(!o)return this.format(e,n);let s=o;s>1&&("numeric"===a.year||"2-digit"===a.year)&&("numeric"===a.month||"2-digit"===a.month)&&("numeric"===a.day||"2-digit"===a.day)&&(s=1);let l=this.format(e,n),c=this.format(t,n);if(l===c)return l;let u=XAe(wDt(a,s),i,n),d=u(e),p=u(t),h=ODt(l,d,c,p),f=i.separator||r||n.defaultSeparator||"";return h?h.before+d+f+p+h.after:l+f+c}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}},sne=class{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,TF(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,TF(e,t,n,r))}},lne=class{constructor(e){this.func=e}format(e,t,n){return this.func(TF(e,null,t,n))}formatRange(e,t,n,r){return this.func(TF(e,t,n,r))}},kne={navLinkDayClick:da,navLinkWeekClick:da,duration:bl,bootstrapFontAwesome:da,buttonIcons:da,customButtons:da,defaultAllDayEventDuration:bl,defaultTimedEventDuration:bl,nextDayThreshold:bl,scrollTime:bl,scrollTimeReset:Boolean,slotMinTime:bl,slotMaxTime:bl,dayPopoverFormat:pc,slotDuration:bl,snapDuration:bl,headerToolbar:da,footerToolbar:da,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:pc,dayHeaderClassNames:da,dayHeaderContent:da,dayHeaderDidMount:da,dayHeaderWillUnmount:da,dayCellClassNames:da,dayCellContent:da,dayCellDidMount:da,dayCellWillUnmount:da,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:da,weekNumbers:Boolean,weekNumberClassNames:da,weekNumberContent:da,weekNumberDidMount:da,weekNumberWillUnmount:da,editable:Boolean,viewClassNames:da,viewDidMount:da,viewWillUnmount:da,nowIndicator:Boolean,nowIndicatorSnap:da,nowIndicatorClassNames:da,nowIndicatorContent:da,nowIndicatorDidMount:da,nowIndicatorWillUnmount:da,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:da,locale:da,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:da,eventOrder:ZT,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:da,contentHeight:da,direction:String,weekNumberFormat:pc,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:da,initialDate:da,now:da,eventDataTransform:da,stickyHeaderDates:da,stickyFooterScrollbar:da,viewHeight:da,defaultAllDay:Boolean,eventSourceFailure:da,eventSourceSuccess:da,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:da,eventConstraint:da,eventAllow:da,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:da,eventContent:da,eventDidMount:da,eventWillUnmount:da,selectConstraint:da,selectOverlap:da,selectAllow:da,droppable:Boolean,unselectCancel:String,slotLabelFormat:da,slotLaneClassNames:da,slotLaneContent:da,slotLaneDidMount:da,slotLaneWillUnmount:da,slotLabelClassNames:da,slotLabelContent:da,slotLabelDidMount:da,slotLabelWillUnmount:da,dayMaxEvents:da,dayMaxEventRows:da,dayMinWidth:Number,slotLabelInterval:bl,allDayText:String,allDayClassNames:da,allDayContent:da,allDayDidMount:da,allDayWillUnmount:da,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:pc,rerenderDelay:Number,moreLinkText:da,moreLinkHint:da,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:da,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:bl,hiddenDays:da,fixedWeekCount:Boolean,validRange:da,visibleRange:da,titleFormat:da,eventInteractive:Boolean,noEventsText:String,viewHint:da,navLinkHint:da,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:da,moreLinkClassNames:da,moreLinkContent:da,moreLinkDidMount:da,moreLinkWillUnmount:da,monthStartFormat:pc,handleCustomRendering:da,customRenderingMetaMap:da,customRenderingReplaces:Boolean},Og={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"},nowIndicatorSnap:"auto"},Cne={datesSet:da,eventsSet:da,eventAdd:da,eventChange:da,eventRemove:da,windowResize:da,eventClick:da,eventMouseEnter:da,eventMouseLeave:da,select:da,unselect:da,loading:da,_unmount:da,_beforeprint:da,_afterprint:da,_noEventDrop:da,_noEventResize:da,_resize:da,_scrollRequest:da},Ene={buttonText:da,buttonHints:da,views:da,plugins:da,initialEvents:da,events:da,eventSources:da},iz={headerToolbar:_A,footerToolbar:_A,buttonText:_A,buttonHints:_A,buttonIcons:_A,dateIncrement:_A,plugins:xF,events:xF,eventSources:xF,resources:xF},uwe={type:String,component:da,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:da,usesMinMaxTime:Boolean,classNames:da,content:da,didMount:da,willUnmount:da},({hasOwnProperty:SF}=Object.prototype),TDt=/^on[A-Z]/,dwe={},EDt("gregory",cne=class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Wm(e)}markerToArray(e){return J_(e)}}),DDt=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/,HT=class{constructor(e){let t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=!(n&&!this.namedTimeZoneImpl),this.calendarSystem=qDt(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);return null===t?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):Wm(jAe(new Date))}createMarkerMeta(e){if("string"==typeof e)return this.parse(e);let t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=Wm(e)),null!==t&&zE(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=KT(e);if(null===t)return null;let{marker:n}=t,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return Q_(e)===Q_(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:n}=this;return Q_(e)===Q_(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),null!==n?{unit:"month",value:n}:(n=cwe(e,t),null!==n?{unit:"week",value:n}:(n=tz(e,t),null!==n?{unit:"day",value:n}:(n=sDt(e,t),NM(n)?{unit:"hour",value:n}:(n=lDt(e,t),NM(n)?{unit:"minute",value:n}:(n=cDt(e,t),NM(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,n){let r;return n.years&&(r=this.diffWholeYears(e,t),null!==r)?r/iDt(n):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/oDt(n):n.days&&(r=tz(e,t),null!==r)?r/BT(n):(t.valueOf()-e.valueOf())/cp(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?mc(e):"hour"===t?uDt(e):"minute"===t?dDt(e):"second"===t?fDt(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):hDt(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,r={}){return r.isEndExclusive&&(t=xg(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),DA(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?Wm(jAe(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Wm(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-GAe(J_(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(J_(e)):null}toDate(e,t){return"local"===this.timeZone?GAe(J_(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(J_(e))*60):new Date(e.valueOf()-(t||0))}},(WM=class{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if("object"==typeof e&&e){for(n in t=Object.assign({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;return n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}).prototype.classes={},WM.prototype.iconClasses={},WM.prototype.baseIconClass="",WM.prototype.iconOverridePrefix="",une=class extends i2{render(){return Cr("div",{})}componentDidMount(){this.setState({})}},kF=class{constructor(e,t,n,r){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}},wv=fwe({}),(Jb=class extends i2{shouldComponentUpdate(e,t){return!UT(this.props,e,this.propEquality)||!UT(this.state,t,this.stateEquality)}safeSetState(e){UT(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}).addPropsEquality=RDt,Jb.addStateEquality=LDt,Jb.contextType=wv,Jb.prototype.propEquality={},Jb.prototype.stateEquality={},(Ps=class extends Jb{}).contextType=wv,(sE=class extends Ps{constructor(){super(...arguments),this.id=Um(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{let{options:t}=this.context,{generatorName:n}=this.props;(!t.customRenderingReplaces||!dne(n,t))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&s2(this.props.elRef,e)}}render(){let e,t,{props:n,context:r}=this,{options:a}=r,{customGenerator:i,defaultGenerator:o,renderProps:s}=n,l=Dne(n,[],this.handleEl),c=!1,u=[];if(null!=i){let n="function"==typeof i?i(s,Cr):i;if(!0===n)c=!0;else{let r=n&&"object"==typeof n;r&&"html"in n?l.dangerouslySetInnerHTML={__html:n.html}:r&&"domNodes"in n?u=Array.prototype.slice.call(n.domNodes):(r?Bre(n):"function"!=typeof n)?e=n:t=n}}else c=!dne(n.generatorName,a);return c&&o&&(e=o(s)),this.queuedDomNodes=u,this.currentGeneratorMeta=t,Cr(n.elTag,l,e)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;let{props:n,context:r}=this,{handleCustomRendering:a,customRenderingMetaMap:i}=r.options;if(a){let r=null!==(t=this.currentGeneratorMeta)&&void 0!==t?t:i?.[n.generatorName];r&&a(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:r},n),{elClasses:(n.elClasses||[]).filter(PDt)}))}}applyQueueudDomNodes(){let{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!o2(e,t)){t.forEach(qA);for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}).addPropsEquality({elClasses:o2,elStyle:Df,elAttrs:SDt,renderProps:Df}),Rne=fwe(0),(Uc=class extends i2{constructor(){super(...arguments),this.InnerContent=IDt.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(s2(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){let{props:e}=this,t=NDt(e.classNameGenerator,e.renderProps);if(e.children){let n=Dne(e,t,this.handleEl),r=e.children(this.InnerContent,e.renderProps,n);return e.elTag?Cr(e.elTag,n,r):r}return Cr(sE,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;this.el?null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,t;null===(t=(e=this.props).willUnmount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}).contextType=Rne,cm=class extends Ps{render(){let{props:e,context:t}=this,{options:n}=t,r={view:t.viewApi};return Cr(Uc,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:[...Lne(e.viewSpec),...e.elClasses||[]],elStyle:e.elStyle,renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount},()=>e.children)}},zA=class{constructor(e){this.props=e,this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,a=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(a,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,a=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(a,1,n)}build(e,t,n=!0){let r,a,i,o,s,l,{props:c}=this;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=BDt(e,r)),a=this.buildCurrentRangeInfo(e,t),i=/^(year|month|week|day)$/.test(a.unit),o=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,i),o=this.trimHiddenDays(o),s=o,c.showNonCurrentDates||(s=um(s,a.range)),s=this.adjustActiveRange(s),s=um(s,r),l=JT(a.range,r),Fm(o,e)||(e=o.start),{currentDate:e,validRange:r,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:i,activeRange:s,renderRange:o,slotMinTime:c.slotMinTime,slotMaxTime:c.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(a.duration)}}buildValidRange(){let e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let n,{props:r}=this,a=null,i=null,o=null;return r.duration?(a=r.duration,i=r.durationUnit,o=this.buildRangeFromDuration(e,t,a,i)):(n=this.props.dayCount)?(i="day",o=this.buildRangeFromDayCount(e,t,n)):(o=this.buildCustomVisibleRange(e))?i=r.dateEnv.greatestWholeUnit(o.start,o.end).unit:(a=this.getFallbackDuration(),i=Mg(a).unit,o=this.buildRangeFromDuration(e,t,a,i)),{duration:a,unit:i,range:o}}getFallbackDuration(){return bl({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:a}=this.props,{start:i,end:o}=e;return n&&(BT(r)<0&&(i=mc(i),i=t.add(i,r)),BT(a)>1&&(o=mc(o),o=Iu(o,-1),o=t.add(o,a))),{start:i,end:o}}buildRangeFromDuration(e,t,n,r){let a,i,o,{dateEnv:s,dateAlignment:l}=this.props;if(!l){let{dateIncrement:e}=this.props;l=e&&cp(e)<cp(n)?Mg(e).unit:r}function c(){a=s.startOf(e,l),i=s.add(a,n),o={start:a,end:i}}return BT(n)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,t),a=mc(a)),c(),this.trimHiddenDays(o)||(e=this.skipHiddenDays(e,t),c()),o}buildRangeFromDayCount(e,t,n){let r,{dateEnv:a,dateAlignment:i}=this.props,o=0,s=e;i&&(s=a.startOf(s,i)),s=mc(s),s=this.skipHiddenDays(s,t),r=s;do{r=Iu(r,1),this.isHiddenDay(r)||(o+=1)}while(o<n);return{start:s,end:r}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,a=this.refineRange(r);return!a||null!=a.start&&null!=a.end?a:null}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let t,{dateIncrement:n}=this.props;return n||((t=this.props.dateAlignment)?bl(1,t):e||bl({days:1}))}refineRange(e){if(e){let t=WDt(e,this.props.dateEnv);return t&&(t=e8(t)),t}return null}initHiddenDays(){let e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:t,end:n}=e;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=Iu(e,t);return e}},wF={id:String,groupId:String,title:String,url:String,interactive:Boolean},mwe={start:da,end:da,date:da,allDay:Boolean},VDt=Object.assign(Object.assign(Object.assign({},wF),mwe),{extendedProps:da}),CF={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:da,overlap:da,allow:da,className:cE,classNames:cE,color:String,backgroundColor:String,borderColor:String,textColor:String},$Dt={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]},JDt={id:String,defaultAllDay:Boolean,url:String,format:String,events:da,eventDataTransform:da,success:da,failure:da},Dy=class{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){iRt(this.handlers,e,t)}off(e,t){oRt(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],a=[].concat(r||[],n);for(let e of a)e.apply(this.thisContext,t)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}},sRt={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"},K_=class{constructor(e,t){this.context=e,this.internalEventSource=t}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}},eu=class e{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in mwe)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=wF[e](t),this.mutate({standardProps:{publicId:t}});else if(e in wF)t=wF[e](t),this.mutate({standardProps:{[e]:t}});else if(e in CF){let n=CF[e](t);n="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:{[e]:t},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,r=n.createMarker(e);if(r&&this._instance){let e=ez(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:e}):this.mutate({startDelta:e})}}setEnd(e,t={}){let n,{dateEnv:r}=this._context;if((null==e||(n=r.createMarker(e),n))&&this._instance)if(n){let e=ez(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:e})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let r,{dateEnv:a}=this._context,i={allDay:n.allDay},o=a.createMarker(e);if(o&&(null==t||(r=a.createMarker(t),r))&&this._instance){let e=this._instance.range;!0===n.allDay&&(e=pwe(e));let t=ez(e.start,o,a,n.granularity);if(r){let o=ez(e.end,r,a,n.granularity);aDt(t,o)?this.mutate({datesDelta:t,standardProps:i}):this.mutate({startDelta:t,endDelta:o,standardProps:i})}else i.hasEnd=!1,this.mutate({datesDelta:t,standardProps:i})}}moveStart(e){let t=bl(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=bl(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=bl(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let n={allDay:e},{maintainDuration:r}=t;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context,n=this._instance,r=pc(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})}mutate(t){let n=this._instance;if(n){let r=this._def,a=this._context,{eventStore:i}=a.getCurrentData(),o=OE(i,n.instanceId);o=kE(o,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,a);let s=new e(a,r,n);this._def=o.defs[r.defId],this._instance=o.instances[n.instanceId],a.dispatch({type:"MERGE_EVENTS",eventStore:o}),a.emitter.trigger("eventChange",{oldEvent:s,event:this,relatedEvents:n3(o,a,n),revert(){a.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let e=this._context,t=Mwe(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}get source(){let{sourceId:e}=this._def;return e?new K_(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:n}=t,{startStr:r,endStr:a}=this,i={allDay:t.allDay};return t.title&&(i.title=t.title),r&&(i.start=r),a&&(i.end=a),t.publicId&&(i.id=t.publicId),t.groupId&&(i.groupId=t.groupId),t.url&&(i.url=t.url),n.display&&"auto"!==n.display&&(i.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?i.color=n.backgroundColor:(n.backgroundColor&&(i.backgroundColor=n.backgroundColor),n.borderColor&&(i.borderColor=n.borderColor)),n.textColor&&(i.textColor=n.textColor),n.classNames.length&&(i.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(i,t.extendedProps):i.extendedProps=t.extendedProps),i}toJSON(){return this.toPlainObject()}},gRt={start:da,end:da,allDay:Boolean},jT=class extends Error{constructor(e,t){super(e),this.response=t}},dE=class extends Ps{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{oE(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{oE(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,r=n||"auto"===t.height||"auto"===t.contentHeight,a=r||null==t.height?"":t.height,i=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];return qE()||i.push("fc-liquid-hack"),e.children(i,a,r,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}},Ry=class{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}},LA={},(Bh=class extends i2{constructor(e,t){super(e,t),this.handleRefresh=()=>{let e=this.computeTiming();e.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(e.state),this.clearTimeout(),this.setTimeout(e.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let e,t,{props:n,context:r}=this,a=r.nowManager.getDateMarker(),{nowIndicatorSnap:i}=r.options;return"auto"===i&&(i=/year|month|week|day/.test(n.unit)||1===(n.unitValue||1)),i?(e=r.dateEnv.startOf(a,n.unit),t=r.dateEnv.add(e,bl(1,n.unit)).valueOf()-a.valueOf()):(e=a,t=6e4),t=Math.min(864e5,t),{state:{nowDate:e,todayRange:ARt(e)},waitMs:t}}setTimeout(e=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{let e=this.computeTiming();this.setState(e.state,()=>{this.setTimeout(e.waitMs)})},e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}).contextType=wv,Bm=class{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering(()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,t){let n;t=t||"day",n=this.getCurrentData().viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let t,n,{viewSpecs:r,toolbarConfig:a}=this.getCurrentData(),i=[].concat(a.header?a.header.viewsWithButtons:[],a.footer?a.footer.viewsWithButtons:[]);for(let e in r)i.push(e);for(t=0;t<i.length;t+=1)if(n=r[i[t]],n&&n.singleUnit===e)return n;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.nowManager.getDateMarker()})}gotoDate(e){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),n=bl(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),pc(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),pc(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};let r=this.getCurrentData(),a=yRt(n,r.dateEnv,bl({days:1}));a&&(this.dispatch({type:"SELECT_DATES",selection:a}),VF(a,null,r))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),cRt(e,t))}addEvent(e,t){if(e instanceof eu){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:wA({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n,r=this.getCurrentData();if(t instanceof K_)n=t.internalEventSource;else if("boolean"==typeof t)t&&([n]=FF(r.eventSources));else if(null!=t){let e=this.getEventSourceById(t);if(!e)return console.warn(`Could not find an event source with ID "${t}"`),null;n=e.internalEventSource}let a=vwe(e,n,r,!1);if(a){let e=new eu(r,a.def,a.def.recurringDef?null:a.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:wA(a)}),this.triggerEventAdd(e),e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:Mwe(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let a in n){let i=n[a];if(i.publicId===e){if(i.recurringDef)return new eu(t,i,null);for(let e in r){let n=r[e];if(n.defId===i.defId)return new eu(t,i,n)}}}return null}getEvents(){let e=this.getCurrentData();return n3(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let r in t)n.push(new K_(e,t[r]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;e=String(e);for(let r in n)if(n[r].publicId===e)return new K_(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof K_)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=Nne(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new K_(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=bl(e);t&&this.trigger("_scrollRequest",{time:t})}},Qre=up(),TA=class{constructor(){this.getKeysForEventDefs=ps(this._getKeysForEventDefs),this.splitDateSelection=ps(this._splitDateSpan),this.splitEventStore=ps(this._splitEventStore),this.splitIndividualUi=ps(this._splitIndividualUi),this.splitEventDrag=ps(this._splitInteraction),this.splitEventResize=ps(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),a=this.splitIndividualUi(e.eventUiBases,n),i=this.splitEventStore(e.eventStore,n),o=this.splitEventDrag(e.eventDrag),s=this.splitEventResize(e.eventResize),l={};this.eventUiBuilders=ah(t,(e,t)=>this.eventUiBuilders[t]||ps(wRt));for(let n in t){let c=t[n],u=i[n]||Qre,d=this.eventUiBuilders[n];l[n]={businessHours:c.businessHours||e.businessHours,dateSelection:r[n]||null,eventStore:u,eventUiBases:d(e.eventUiBases[""],c.ui,a[n]),eventSelection:u.instances[e.eventSelection]?e.eventSelection:"",eventDrag:o[n]||null,eventResize:s[n]||null}}return l}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let r of n)t[r]=e}return t}_getKeysForEventDefs(e){return ah(e.defs,e=>this.getKeysForEventDef(e))}_splitEventStore(e,t){let{defs:n,instances:r}=e,a={};for(let e in n)for(let r of t[e])a[r]||(a[r]=up()),a[r].defs[e]=n[e];for(let e in r){let n=r[e];for(let r of t[n.defId])a[r]&&(a[r].instances[e]=n)}return a}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let a of t[r])n[a]||(n[a]={}),n[a][r]=e[r];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),a=this._splitEventStore(e.mutatedEvents,r),i=r=>{t[r]||(t[r]={affectedEvents:n[r]||Qre,mutatedEvents:a[r]||Qre,isEvent:e.isEvent})};for(let e in n)i(e);for(let e in a)i(e)}return t}},ORt=pc({year:"numeric",month:"long",day:"numeric"}),TRt=pc({week:"long"}),ene=null,B2=class{constructor(e,t,n,r){this.els=t;let a=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(a.left),r&&this.buildElVerticals(a.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let a=r.getBoundingClientRect();t.push(a.left-e),n.push(a.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let a=r.getBoundingClientRect();t.push(a.top-e),n.push(a.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let t,{lefts:n,rights:r}=this,a=n.length;for(t=0;t<a;t+=1)if(e>=n[t]&&e<r[t])return t}topToIndex(e){let t,{tops:n,bottoms:r}=this,a=n.length;for(t=0;t<a;t+=1)if(e>=n[t]&&e<r[t])return t}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return _F(this.tops||[],e.tops||[])&&_F(this.bottoms||[],e.bottoms||[])&&_F(this.lefts||[],e.lefts||[])&&_F(this.rights||[],e.rights||[])}},SA=class{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}},fE=class extends SA{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}},hE=class extends SA{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}},ih=class extends Ps{constructor(){super(...arguments),this.uid=Um()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!nh(e,".fc-event-mirror")}isValidDateDownEl(e){return!(nh(e,".fc-event:not(.fc-bg-event)")||nh(e,".fc-more-link")||nh(e,"a[data-navlink]")||nh(e,".fc-popover"))}},pE=class{constructor(e){this.timeZoneName=e}},FM=class{constructor(e=e=>e.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.findInsertion(e);this.isInsertionValid(n,e)?this.insertEntryAt(e,n):this.handleInvalidInsertion(n,e,t)}isInsertionValid(e,t){return(-1===this.maxCoord||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){if(this.allowReslicing&&e.touchingEntry){let r=Object.assign(Object.assign({},t),{span:IE(t.span,e.touchingEntry.span)});n.push(r),this.splitEntry(t,e.touchingEntry,n)}else n.push(t)}splitEntry(e,t,n){let r=e.span,a=t.span;r.start<a.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:r.start,end:a.start}},n),r.end>a.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.end,end:r.end}},n)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;-1===t.lateral?(rne(r,t.level,t.levelCoord),rne(n,t.level,[e])):rne(n[t.level],t.lateral,e),this.stackCnts[Qb(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:a}=this,i=t.length,o=0,s=-1,l=-1,c=null,u=0;for(let d=0;d<i;d+=1){let i=t[d];if(!r&&i>=o+this.getEntryThickness(e))break;let p,h=n[d],f=vE(h,e.span.start,mE),m=f[0]+f[1];for(;(p=h[m])&&p.span.start<e.span.end;){let e=i+this.getEntryThickness(p);e>o&&(o=e,c=p,s=d,l=m),e===o&&(u=Math.max(u,a[Qb(p)]+1)),m+=1}}let d=0;if(c)for(d=s+1;d<i&&t[d]<o;)d+=1;let p=-1;return d<i&&t[d]===o&&(p=vE(n[d],e.span.end,mE)[0]),{touchingLevel:s,touchingLateral:l,touchingEntry:c,stackCnt:u,levelCoord:o,level:d,lateral:p}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,r=[];for(let a=0;a<n;a+=1){let n=e[a],i=t[a];for(let e of n)r.push(Object.assign(Object.assign({},e),{thickness:this.getEntryThickness(e),levelCoord:i}))}return r}},GT=class{constructor(e,t){this.emitter=new Dy}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}},c2={},qRt={startTime:bl,duration:bl,create:Boolean,sourceId:String},wwe="fc-col-header-cell",gE=class extends Ps{render(){let{dateEnv:e,options:t,theme:n,viewApi:r}=this.context,{props:a}=this,{date:i,dateProfile:o}=a,s=lz(i,a.todayRange,null,o),l=[wwe].concat($M(s,n)),c=e.format(i,a.dayHeaderFormat),u=!s.isDisabled&&a.colCnt>1?Tg(this.context,i):{},d=e.toDate(i);e.namedTimeZoneImpl&&(d=xg(d,36e5));let p=Object.assign(Object.assign(Object.assign({date:d,view:r},a.extraRenderProps),{text:c}),s);return Cr(Uc,{elTag:"th",elClasses:l,elAttrs:Object.assign({role:"columnheader",colSpan:a.colSpan,"data-date":s.isDisabled?void 0:GM(i)},a.extraDataAttrs),renderProps:p,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:Owe,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},e=>Cr("div",{className:"fc-scrollgrid-sync-inner"},!s.isDisabled&&Cr(e,{elTag:"a",elAttrs:u,elClasses:["fc-col-header-cell-cushion",a.isSticky&&"fc-sticky"]})))}},DRt=pc({weekday:"long"}),yE=class extends Ps{render(){let{props:e}=this,{dateEnv:t,theme:n,viewApi:r,options:a}=this.context,i=Iu(new Date(2592e5),e.dow),o={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},s=t.format(i,e.dayHeaderFormat),l=Object.assign(Object.assign(Object.assign(Object.assign({date:i},o),{view:r}),e.extraRenderProps),{text:s});return Cr(Uc,{elTag:"th",elClasses:[wwe,...$M(o,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:l,generatorName:"dayHeaderContent",customGenerator:a.dayHeaderContent,defaultGenerator:Owe,classNameGenerator:a.dayHeaderClassNames,didMount:a.dayHeaderDidMount,willUnmount:a.dayHeaderWillUnmount},n=>Cr("div",{className:"fc-scrollgrid-sync-inner"},Cr(n,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(i,DRt)}})))}},kA=class extends Ps{constructor(){super(...arguments),this.createDayHeaderFormatter=ps(RRt)}render(){let{context:e}=this,{dates:t,dateProfile:n,datesRepDistinctDays:r,renderIntro:a}=this.props,i=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,t.length);return Cr(Bh,{unit:"day"},(e,o)=>Cr("tr",{role:"row"},a&&a("day"),t.map(e=>r?Cr(gE,{key:e.toISOString(),date:e,dateProfile:n,todayRange:o,colCnt:t.length,dayHeaderFormat:i}):Cr(yE,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:i}))))}},CA=class{constructor(e,t){let n=e.start,{end:r}=e,a=[],i=[],o=-1;for(;n<r;)t.isHiddenDay(n)?a.push(o+.5):(o+=1,a.push(o),i.push(n)),n=Iu(n,1);this.dates=i,this.indices=a,this.cnt=i.length}sliceRange(e){let t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(Iu(e.end,-1)),r=Math.max(0,t),a=Math.min(this.cnt-1,n);return r=Math.ceil(r),a=Math.floor(a),r<=a?{firstIndex:r,lastIndex:a,isStart:t===r,isEnd:n===a}:null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(r3(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}},EA=class{constructor(e,t){let n,r,a,{dates:i}=e;if(t){for(r=i[0].getUTCDay(),n=1;n<i.length&&i[n].getUTCDay()!==r;n+=1);a=Math.ceil(i.length/n)}else a=1,n=i.length;this.rowCnt=a,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let n=[];for(let e=0;e<this.colCnt;e+=1)n.push(this.buildCell(t,e));e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}}buildHeaderDates(){let e=[];for(let t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e}sliceRange(e){let{colCnt:t}=this,n=this.daySeries.sliceRange(e),r=[];if(n){let{firstIndex:e,lastIndex:a}=n,i=e;for(;i<=a;){let o=Math.floor(i/t),s=Math.min((o+1)*t,a+1);r.push({row:o,firstCol:i%t,lastCol:(s-1)%t,isStart:n.isStart&&i===e,isEnd:n.isEnd&&s-1===a}),i=s}}return r}},BM=class{constructor(){this.sliceBusinessHours=ps(this._sliceBusinessHours),this.sliceDateSelection=ps(this._sliceDateSpan),this.sliceEventStore=ps(this._sliceEventStore),this.sliceEventDrag=ps(this._sliceInteraction),this.sliceEventResize=ps(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...a){let{eventUiBases:i}=e,o=this.sliceEventStore(e.eventStore,i,t,n,...a);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,i,r,...a),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...a),fgEventSegs:o.fg,bgEventSegs:o.bg,eventDrag:this.sliceEventDrag(e.eventDrag,i,t,n,...a),eventResize:this.sliceEventResize(e.eventResize,i,t,n,...a),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,r,...a){return this._sliceDateSpan({range:{start:e,end:xg(e,1)},allDay:!1},t,n,{},r,...a)}_sliceBusinessHours(e,t,n,r,...a){return e?this._sliceEventStore(AA(e,zF(t,!!n),r),{},t,n,...a).bg:[]}_sliceEventStore(e,t,n,r,...a){if(e){let i=OA(e,t,zF(n,!!r),r);return{bg:this.sliceEventRanges(i.bg,a),fg:this.sliceEventRanges(i.fg,a)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...a){if(!e)return null;let i=OA(e.mutatedEvents,t,zF(n,!!r),r);return{segs:this.sliceEventRanges(i.fg,a),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,a,...i){if(!e)return[];let o=zF(t,!!n),s=um(e.range,o);if(s){let t=_Rt(e=Object.assign(Object.assign({},e),{range:s}),r,a),n=this.sliceRange(e.range,...i);for(let e of n)e.eventRange=t;return n}return[]}sliceEventRanges(e,t){let n=[];for(let r of e)n.push(...this.sliceEventRange(r,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:Iu(n.start,1)});let r=this.sliceRange(n,...t);for(let t of r)t.eventRange=e,t.isStart=e.isStart&&t.isStart,t.isEnd=e.isEnd&&t.isEnd;return r}},AF=/^(visible|hidden)$/,rz=class extends Ps{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,s2(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,r=t&&n,a=["fc-scroller"];return t&&(n?a.push("fc-scroller-liquid-absolute"):a.push("fc-scroller-liquid")),Cr("div",{ref:this.handleEl,className:a.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(AF.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1)if(n[e].getBoundingClientRect().width>t)return!0;return!1}needsYScrolling(){if(AF.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1)if(n[e].getBoundingClientRect().height>t)return!0;return!1}getXScrollbarWidth(){return AF.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return AF.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}},sf=class{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,t)=>{let{depths:n,currentMap:r}=this,a=!1,i=!1;null!==e?(a=t in r,r[t]=e,n[t]=(n[t]||0)+1,i=!0):(n[t]-=1,n[t]||(delete r[t],delete this.callbackMap[t],a=!0)),this.masterCallback&&(a&&this.masterCallback(null,String(t)),i&&this.masterCallback(e,String(t)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=t=>{this.handleValue(t,String(e))}),t}collect(e,t,n){return BF(this.currentMap,e,t,n)}getAll(){return FF(this.currentMap)}},(nz=class extends Ps{constructor(){super(...arguments),this.processCols=ps(e=>e,tB),this.renderMicroColGroup=ps(rB),this.scrollerRefs=new sf,this.scrollerElRefs=new sf(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this,r=e.sections||[],a=this.processCols(e.cols),i=this.renderMicroColGroup(a,t.shrinkWidth),o=iB(e.liquid,n);e.collapsibleWidth&&o.push("fc-scrollgrid-collapsible");let s,l=r.length,c=0,u=[],d=[],p=[];for(;c<l&&"header"===(s=r[c]).type;)u.push(this.renderSection(s,i,!0)),c+=1;for(;c<l&&"body"===(s=r[c]).type;)d.push(this.renderSection(s,i,!1)),c+=1;for(;c<l&&"footer"===(s=r[c]).type;)p.push(this.renderSection(s,i,!0)),c+=1;let h=!qE(),f={role:"rowgroup"};return Cr("table",{role:"grid",className:o.join(" "),style:{height:e.height}},!(h||!u.length)&&Cr("thead",f,...u),!(h||!d.length)&&Cr("tbody",f,...d),!(h||!p.length)&&Cr("tfoot",f,...p),h&&Cr("tbody",f,...u,...d,...p))}renderSection(e,t,n){return"outerContent"in e?Cr(x0,{key:e.key},e.outerContent):Cr("tr",{key:e.key,role:"presentation",className:oB(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,r){if("outerContent"in n)return n.outerContent;let{props:a}=this,{forceYScrollbars:i,scrollerClientWidths:o,scrollerClientHeights:s}=this.state,l=QF(a,e),c=FE(a,e),u=a.liquid?i?"scroll":l?"auto":"hidden":"visible",d=e.key,p=eB(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:a.collapsibleWidth||void 0===o[d]?null:o[d],clientHeight:void 0!==s[d]?s[d]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},r);return Cr(r?"th":"td",{ref:n.elRef,role:"presentation"},Cr("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},Cr(rz,{ref:this.scrollerRefs.createRef(d),elRef:this.scrollerElRefs.createRef(d),overflowY:u,overflowX:a.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},p)))}_handleScrollerEl(e,t){let n=WRt(this.props.sections,t);n&&s2(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return aB(this.props.cols)?JF(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=YF(),{scrollerRefs:t,scrollerElRefs:n}=this,r=!1,a={},i={};for(let e in t.currentMap){let n=t.currentMap[e];if(n&&n.needsYScrolling()){r=!0;break}}for(let t of this.props.sections){let o=t.key,s=n.currentMap[o];if(s){let t=s.parentNode;a[o]=Math.floor(t.getBoundingClientRect().width-(r?e.y:0)),i[o]=Math.floor(t.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:a,scrollerClientHeights:i}}}).addStateEquality({scrollerClientWidths:Df,scrollerClientHeights:Df}),UM=class extends Ps{constructor(){super(...arguments),this.buildPublicEvent=ps((e,t,n)=>new eu(e,t,n)),this.handleEl=e=>{this.el=e,s2(this.props.elRef,e),e&&KAe(e,this.props.seg)}}render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{eventRange:a}=r,{ui:i}=a,o={event:this.buildPublicEvent(t,a.def,a.instance),view:t.viewApi,timeText:e.timeText,textColor:i.textColor,backgroundColor:i.backgroundColor,borderColor:i.borderColor,isDraggable:!e.disableDragging&&hRt(r,t),isStartResizable:!e.disableResizing&&pRt(r,t),isEndResizable:!e.disableResizing&&mRt(r),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!r.isStart,isEnd:!!r.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return Cr(Uc,{elRef:this.handleEl,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:[...vRt(o),...r.eventRange.ui.classNames,...e.elClasses||[]],elStyle:e.elStyle,renderProps:o,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount},e.children)}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&KAe(this.el,this.props.seg)}},(e3=class extends Ps{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{ui:a}=r.eventRange,i=sz(r,n.eventTimeFormat||e.defaultTimeFormat,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return Cr(UM,Object.assign({},e,{elTag:"a",elStyle:{borderColor:a.borderColor,backgroundColor:a.backgroundColor},elAttrs:n8(r,t),defaultGenerator:FRt,timeText:i}),(e,t)=>Cr(x0,null,Cr(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:t.textColor}}),!!t.isStartResizable&&Cr("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!t.isEndResizable&&Cr("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}).addPropsEquality({seg:Df}),a3=e=>Cr(wv.Consumer,null,t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return Cr(Uc,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:e.elClasses,elStyle:e.elStyle,renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)}),BRt=pc({day:"numeric"}),az=class extends Ps{constructor(){super(...arguments),this.refineRenderProps=wg(URt)}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return Cr(Uc,{elRef:e.elRef,elTag:e.elTag,elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":GM(e.date)}),elClasses:[...$M(r,t.theme),...e.elClasses||[]],elStyle:e.elStyle,renderProps:r,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount},e.children)}},HM=class extends Ps{render(){let{props:e}=this,{seg:t}=e;return Cr(UM,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:HRt,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}},BE=e=>Cr(wv.Consumer,null,t=>{let{dateEnv:n,options:r}=t,{date:a}=e,i=r.weekNumberFormat||e.defaultFormat,o={num:n.computeWeekNumber(a),text:n.format(a,i),date:a};return Cr(Uc,{elRef:e.elRef,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:e.elClasses,elStyle:e.elStyle,renderProps:o,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:VRt,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},e.children)}),ane=10,fne=class extends Ps{constructor(){super(...arguments),this.state={titleId:Ag()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&s2(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{let t=qF(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:r}=this,a=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return Yre(Cr("div",Object.assign({},n.extraAttrs,{id:n.id,className:a.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),Cr("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},Cr("span",{className:"fc-popover-title",id:r.titleId},n.title),Cr("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),Cr("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,a=CRt(t);if(a){let i=r.getBoundingClientRect(),o=n?nh(t,".fc-scrollgrid").getBoundingClientRect().top:a.top,s=e?a.right-i.width:a.left;o=Math.max(o,ane),s=Math.min(s,document.documentElement.clientWidth-ane-i.width),s=Math.max(s,ane);let l=r.offsetParent.getBoundingClientRect();jM(r,{top:o-l.top,left:s-l.left})}}},hne=class extends ih{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:r,todayRange:a,dateProfile:i}=n,o=t.format(r,e.dayPopoverFormat);return Cr(az,{elRef:this.handleRootEl,date:r,dateProfile:i,todayRange:a},(t,r,a)=>Cr(fne,{elRef:a.ref,id:n.id,title:o,extraClassNames:["fc-more-popover"].concat(a.className||[]),extraAttrs:a,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},i8(e)&&Cr(t,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children))}queryHit(e,t,n,r){let{rootEl:a,props:i}=this;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:i.dateProfile,dateSpan:Object.assign({allDay:!i.forceTimed,range:{start:i.startDate,end:i.endDate}},i.extraDateSpan),dayEl:a,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null}},VM=class extends Ps{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Ag()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&s2(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,a=JAe(t).start;function i(e){let{def:t,instance:r,range:a}=e.eventRange;return{event:new eu(n,t,r),start:n.dateEnv.toDate(a.start),end:n.dateEnv.toDate(a.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof r&&(r=r({date:a,allDay:!!t.allDayDate,allSegs:t.allSegs.map(i),hiddenSegs:t.hiddenSegs.map(i),jsEvent:e,view:n.viewApi})),r&&"popover"!==r?"string"==typeof r&&n.calendarApi.zoomTo(a,r):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return Cr(wv.Consumer,null,n=>{let{viewApi:r,options:a,calendarApi:i}=n,{moreLinkText:o}=a,{moreCnt:s}=e,l=JAe(e),c="function"==typeof o?o.call(i,s):`+${s} ${o}`,u=$T(a.moreLinkHint,[s],c),d={num:s,shortText:`+${s}`,text:c,view:r};return Cr(x0,null,!!e.moreCnt&&Cr(Uc,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),awe(this.handleClick)),{title:u,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:d,generatorName:"moreLinkContent",customGenerator:a.moreLinkContent,defaultGenerator:e.defaultGenerator||jRt,classNameGenerator:a.moreLinkClassNames,didMount:a.moreLinkDidMount,willUnmount:a.moreLinkWillUnmount},e.children),t.isPopoverOpen&&Cr(hne,{id:t.popoverId,startDate:l.start,endDate:l.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=nh(this.linkEl,".fc-view-harness"))}}}),Xwe={};function Nwe(e){let t=e.length>0?e[0].code:"en",n=Lwe.concat(e),r={en:Iwe};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function lae(e,t){return"object"!=typeof e||Array.isArray(e)?ZRt(e,t):Wwe(e.code,[e.code],e)}function ZRt(e,t){let n=[].concat(e||[]);return Wwe(e,n,$Rt(n,t)||Iwe)}function $Rt(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let e=r.length;e>0;e-=1){let n=r.slice(0,e).join("-");if(t[n])return t[n]}}return null}function Wwe(e,t,n){let r=WF([Pwe,n],["buttonText"]);delete r.code;let{week:a}=r;return delete r.week,{codeArg:e,codes:t,week:a,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function Rd(e){return{id:Um(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function KRt(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function a(e){for(let t of e){let e=t.name,i=n[e];void 0===i?(n[e]=t.id,a(t.deps),r=QRt(r,t)):i!==t.id&&console.warn(`Duplicate plugin '${e}'`)}}return e&&a(e),a(t),r}function JRt(){let e,t=[],n=[];return(r,a)=>((!e||!o2(r,t)||!o2(a,n))&&(e=KRt(r,a)),t=r,n=a,e)}function QRt(e,t){return{premiumReleaseDate:eLt(e.premiumReleaseDate,t.premiumReleaseDate),reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object.assign(Object.assign({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object.assign(Object.assign({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:Object.assign(Object.assign({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object.assign(Object.assign({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object.assign(Object.assign({},e.propSetHandlers),t.propSetHandlers)}}function eLt(e,t){return void 0===e?t:void 0===t?e:new Date(Math.max(e.valueOf(),t.valueOf()))}function tLt(e,t){let n,r={};for(n in e)Jne(n,r,e,t);for(n in t)Jne(n,r,e,t);return r}function Jne(e,t,n,r){if(t[e])return t[e];let a=rLt(e,t,n,r);return a&&(t[e]=a),a}function rLt(e,t,n,r){let a=n[e],i=r[e],o=e=>a&&null!==a[e]?a[e]:i&&null!==i[e]?i[e]:null,s=o("component"),l=o("superType"),c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=Jne(l,t,n,r)}return!s&&c&&(s=c.component),s?{type:e,component:s,defaults:Object.assign(Object.assign({},c?c.defaults:{}),a?a.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),i?i.rawOptions:{})}:null}function kwe(e){return ah(e,nLt)}function nLt(e){let t="function"==typeof e?{component:e}:e,{component:n}=t;return t.content?n=Cwe(t):n&&!(n.prototype instanceof Ps)&&(n=Cwe(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function Cwe(e){return t=>Cr(wv.Consumer,null,n=>Cr(Uc,{elTag:"div",elClasses:Lne(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount}))}function aLt(e,t,n,r){let a=kwe(e),i=kwe(t.views);return ah(tLt(a,i),e=>iLt(e,i,t,n,r))}function iLt(e,t,n,r,a){let i=e.overrides.duration||e.defaults.duration||r.duration||n.duration,o=null,s="",l="",c={};if(i&&(o=oLt(i),o)){let e=Mg(o);s=e.unit,1===e.value&&(l=s,c=t[s]?t[s].rawOptions:{})}let u=t=>{let n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null},d=t=>{let n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null};return{type:e.type,component:e.component,duration:o,durationUnit:s,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},c),e.overrides),buttonTextOverride:u(r)||u(n)||e.overrides.buttonText,buttonTextDefault:u(a)||e.defaults.buttonText||u(Og)||e.type,buttonTitleOverride:d(r)||d(n)||e.overrides.buttonHint,buttonTitleDefault:d(a)||e.defaults.buttonHint||d(Og)}}function oLt(e){let t=JSON.stringify(e),n=Ewe[t];return void 0===n&&(n=bl(e),Ewe[t]=n),n}function sLt(e,t){return"CHANGE_VIEW_TYPE"===t.type&&(e=t.viewType),e}function lLt(e,t){return"CHANGE_DATE"===t.type?t.dateMarker:e}function cLt(e,t,n){let r=e.initialDate;return null!=r?t.createMarker(r):n.getDateMarker()}function uLt(e,t){return"SET_OPTION"===t.type?Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue}):e}function dLt(e,t,n,r){let a;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(a=r.buildPrev(e,n),a.isValid)return a;break;case"NEXT":if(a=r.buildNext(e,n),a.isValid)return a}return e}function fLt(e,t,n){let r=t?t.activeRange:null;return Bwe({},bLt(e,n),r,n)}function hLt(e,t,n,r){let a=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Bwe(e,t.sources,a,r);case"REMOVE_EVENT_SOURCE":return mLt(e,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Uwe(e,a,r):e;case"FETCH_EVENT_SOURCES":return cae(e,t.sourceIds?qne(t.sourceIds):Hwe(e,r),a,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return yLt(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function pLt(e,t,n){let r=t?t.activeRange:null;return cae(e,Hwe(e,n),r,!0,n)}function Fwe(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function Bwe(e,t,n,r){let a={};for(let e of t)a[e.sourceId]=e;return n&&(a=Uwe(a,n,r)),Object.assign(Object.assign({},e),a)}function mLt(e,t){return _g(e,e=>e.sourceId!==t)}function Uwe(e,t,n){return cae(e,_g(e,e=>vLt(e,t,n)),t,!1,n)}function vLt(e,t,n){return Vwe(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}function cae(e,t,n,r,a){let i={};for(let o in e){let s=e[o];t[o]?i[o]=gLt(s,n,r,a):i[o]=s}return i}function gLt(e,t,n,r){let{options:a,calendarApi:i}=r,o=r.pluginHooks.eventSourceDefs[e.sourceDefId],s=Um();return o.fetch({eventSource:e,range:t,isRefetch:n,context:r},n=>{let{rawEvents:o}=n;a.eventSourceSuccess&&(o=a.eventSourceSuccess.call(i,o,n.response)||o),e.success&&(o=e.success.call(i,o,n.response)||o),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:s,fetchRange:t,rawEvents:o})},n=>{let o=!1;a.eventSourceFailure&&(a.eventSourceFailure.call(i,n),o=!0),e.failure&&(e.failure(n),o=!0),o||console.warn(n.message,n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:s,fetchRange:t,error:n})}),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:s})}function yLt(e,t,n,r){let a=e[t];return a&&n===a.latestFetchId?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},a),{isFetching:!1,fetchRange:r})}):e}function Hwe(e,t){return _g(e,e=>Vwe(e,t))}function bLt(e,t){let n=Wne(t),r=[].concat(e.eventSources||[]),a=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(let e of r){let r=Nne(e,t,n);r&&a.push(r)}return a}function Vwe(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function MLt(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function xLt(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function _Lt(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function zLt(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function ALt(e,t,n,r,a){return{header:e.headerToolbar?qwe(e.headerToolbar,e,t,n,r,a):null,footer:e.footerToolbar?qwe(e.footerToolbar,e,t,n,r,a):null}}function qwe(e,t,n,r,a,i){let o={},s=[],l=!1;for(let c in e){let u=wLt(e[c],t,n,r,a,i);o[c]=u.widgets,s.push(...u.viewsWithButtons),l=l||u.hasTitle}return{sectionWidgets:o,viewsWithButtons:s,hasTitle:l}}function wLt(e,t,n,r,a,i){let o="rtl"===t.direction,s=t.customButtons||{},l=n.buttonText||{},c=t.buttonText||{},u=n.buttonHints||{},d=t.buttonHints||{},p=e?e.split(" "):[],h=[],f=!1;return{widgets:p.map(e=>e.split(",").map(e=>{if("title"===e)return f=!0,{buttonName:e};let n,p,m,g,y,b;if(n=s[e])m=e=>{n.click&&n.click.call(e.target,e,e.target)},(g=r.getCustomButtonIconClass(n))||(g=r.getIconClass(e,o))||(y=n.text),b=n.hint||n.text;else if(p=a[e]){h.push(e),m=()=>{i.changeView(e)},(y=p.buttonTextOverride)||(g=r.getIconClass(e,o))||(y=p.buttonTextDefault);let n=p.buttonTextOverride||p.buttonTextDefault;b=$T(p.buttonTitleOverride||p.buttonTitleDefault||t.viewHint,[n,e],n)}else if(i[e])if(m=()=>{i[e]()},(y=l[e])||(g=r.getIconClass(e,o))||(y=c[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";b=$T(u[t]||d[t],[c.year||"year","year"],c[e])}else b=t=>$T(u[e]||d[e],[c[t]||t,t],c[e]);return{buttonName:e,buttonClick:m,buttonIcon:g,buttonText:y,buttonHint:b}})),viewsWithButtons:h,hasTitle:f}}function DLt(e,t,n){let r,a,i,o,{dateEnv:s,options:l}=n,c={};return r=e.startParam,null==r&&(r=l.startParam),a=e.endParam,null==a&&(a=l.endParam),i=e.timeZoneParam,null==i&&(i=l.timeZoneParam),o="function"==typeof e.extraParams?e.extraParams():e.extraParams||{},Object.assign(c,o),c[r]=s.formatIso(t.start),c[a]=s.formatIso(t.end),"local"!==s.timeZone&&(c[i]=s.timeZone),c}function ILt(e,t,n,r,a){let i=e?qne(e):null,o=mc(a.start),s=a.end,l=[];for(t&&(t.milliseconds<0?s=Iu(s,1):t.milliseconds>=864e5&&(o=Iu(o,-1)));o<s;){let e;(!i||i[o.getUTCDay()])&&(e=t?r.add(o,t):o,l.push(r.createMarker(n.toDate(e)))),o=Iu(o,1)}return l}function Dwe(e,t){let n=FF(t.getCurrentData().eventSources);if(1===n.length&&1===e.length&&Array.isArray(n[0]._raw)&&Array.isArray(e[0]))return void t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let r=[];for(let t of e){let e=!1;for(let r=0;r<n.length;r+=1)if(n[r]._raw===t){n.splice(r,1),e=!0;break}e||r.push(t)}for(let e of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:e.sourceId});for(let e of r)t.calendarApi.addEventSource(e)}function WLt(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},Vne(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function FLt(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",n3(e,t))}function BLt(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,pc(t.titleFormat||ULt(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function ULt(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=tz(e.currentRange.start,e.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}function HLt(e,t,n,r,a,i,o,s){let l=lae(t||o.defaultCode,o.map);return new HT({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:i.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:a,cmdFormatter:i.cmdFormatter,defaultSeparator:s})}function VLt(e,t){return new(t.themeClasses[e.themeSystem]||i3)(e)}function jLt(e){return new(e.dateProfileGeneratorClass||zA)(e)}function GLt(e,t,n){return new Qne(e,t,n)}function XLt(e){return ah(e,e=>e.ui)}function YLt(e,t,n){let r={"":t};for(let t in e){let a=e[t];a.sourceId&&n[a.sourceId]&&(r[t]=n[a.sourceId])}return r}function ZLt(e){let{options:t}=e;return{eventUiSingleBase:oz({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:oz({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function Kne(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function $Lt(e){return SE(e.options.businessHours,e)}function Rwe(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}function KLt(e,t,n,r,a,i){let o=n.build(a,void 0,!1),s=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:i,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:o.isValid&&!Fm(t.currentRange,a),isPrevEnabled:s.isValid,isNextEnabled:l.isValid}}function JLt(e){return e.map(e=>new e)}function QLt(e,t={}){let n=Gwe(t),r=pc(t),a=n.createMarkerMeta(e);return a?n.format(a.marker,r,{forcedTzo:a.forcedTzo}):""}function ePt(e,t,n){let r=Gwe("object"==typeof n&&n?n:{}),a=pc(n),i=r.createMarkerMeta(e),o=r.createMarkerMeta(t);return i&&o?r.formatRange(i.marker,o.marker,a,{forcedStartTzo:i.forcedTzo,forcedEndTzo:o.forcedTzo,isEndExclusive:n.isEndExclusive,defaultSeparator:Og.defaultRangeSeparator}):""}function Gwe(e){let t=lae(e.locale||"en",Nwe([]).map);return new HT(Object.assign(Object.assign({timeZone:Og.timeZone,calendarSystem:"gregory"},e),{locale:t}))}function tPt(e,t){return OA(e.eventStore,e.eventUiBases,e.dateProfile.activeRange,t?e.nextDayThreshold:null).fg}Zs(Xwe,{Calendar:()=>sae,JsonRequestError:()=>jT,createPlugin:()=>Rd,formatDate:()=>QLt,formatRange:()=>ePt,globalLocales:()=>Lwe,globalPlugins:()=>jwe,sliceEvents:()=>tPt,version:()=>rPt});var Lwe,Pwe,Iwe,i3,Ewe,Qne,OLt,TLt,SLt,kLt,CLt,ELt,qLt,RLt,LLt,PLt,NLt,jwe,eae,lB,tae,rae,cB,nae,aae,iae,oae,sae,rPt,Sg=kr(()=>{sB(),sB(),IM(),iE(),Lwe=[],Pwe={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},Iwe=Object.assign(Object.assign({},Pwe),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(e,t)=>"day"===t?"Today":`This ${e}`},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`}),(i3=class extends WM{}).prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},i3.prototype.baseIconClass="fc-icon",i3.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},i3.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},i3.prototype.iconOverrideOption="buttonIcons",i3.prototype.iconOverrideCustomButtonOption="icon",i3.prototype.iconOverridePrefix="fc-icon-",Ewe={},Qne=class{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}},TLt=Rd({name:"array-event-source",eventSourceDefs:[OLt={ignoreRange:!0,parseMeta:e=>Array.isArray(e.events)?e.events:null,fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),kLt=Rd({name:"func-event-source",eventSourceDefs:[SLt={parseMeta:e=>"function"==typeof e.events?e.events:null,fetch(e,t,n){let{dateEnv:r}=e.context;CE(e.eventSource.meta.bind(null,Vne(e.range,r)),e=>t({rawEvents:e}),n)}}]}),qLt=Rd({name:"json-event-source",eventSourceRefiners:CLt={method:String,extraParams:da,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[ELt={parseMeta:e=>!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam},fetch(e,t,n){let{meta:r}=e.eventSource,a=DLt(r,e.range,e.context);EE(r.method,r.url,a).then(([e,n])=>{t({rawEvents:e,response:n})},n)}}]}),RLt={daysOfWeek:da,startTime:bl,endTime:bl,duration:bl,startRecur:da,endRecur:da},PLt=Rd({name:"simple-recurring-event",recurringTypes:[LLt={parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let n,r={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null,dateEnv:t};return e.duration&&(n=e.duration),!n&&e.startTime&&e.endTime&&(n=owe(e.endTime,e.startTime)),{allDayGuess:!e.startTime&&!e.endTime,duration:n,typeData:r}}return null},expand(e,t,n){let r=um(t,{start:e.startRecur,end:e.endRecur});return r?ILt(e.daysOfWeek,e.startTime,e.dateEnv,n,r):[]}}],eventRefiners:RLt}),NLt=Rd({name:"change-handler",optionChangeHandlers:{events(e,t){Dwe([e],t)},eventSources:Dwe}}),jwe=[TLt,kLt,qLt,PLt,NLt,Rd({name:"misc",isLoadingFuncs:[e=>Fwe(e.eventSources)],propSetHandlers:{dateProfile:WLt,eventStore:FLt}})],eae=class{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Kb(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t,n=[];for(;t=e.shift();)this.runTask(t),n.push(t);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}},lB=class{constructor(){this.resetListeners=new Set}handleInput(e,t){let n=this.dateEnv;if(e!==n&&("function"==typeof t?this.nowFn=t:n||(this.nowAnchorDate=e.toDate(t?e.createMarker(t):e.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=e,n))for(let e of this.resetListeners.values())e()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(e){this.resetListeners.add(e)}removeResetListener(e){this.resetListeners.delete(e)}},tae=class{constructor(e){this.computeCurrentViewData=ps(this._computeCurrentViewData),this.organizeRawLocales=ps(Nwe),this.buildLocale=ps(lae),this.buildPluginHooks=JRt(),this.buildDateEnv=ps(HLt),this.buildTheme=ps(VLt),this.parseToolbars=ps(ALt),this.buildViewSpecs=ps(aLt),this.buildDateProfileGenerator=wg(jLt),this.buildViewApi=ps(GLt),this.buildViewUiProps=wg(ZLt),this.buildEventUiBySource=ps(XLt,Df),this.buildEventUiBases=ps(YLt),this.parseContextBusinessHours=wg($Lt),this.buildTitle=ps(BLt),this.nowManager=new lB,this.emitter=new Dy,this.actionRunner=new eae(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause(),this.nowManager=new lB;let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),r=n.calendarOptions.initialView||n.pluginHooks.initialView,a=this.computeCurrentViewData(r,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(a.options);let i={nowManager:this.nowManager,dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},o=cLt(n.calendarOptions,n.dateEnv,this.nowManager),s=a.dateProfileGenerator.build(o);Fm(s.activeRange,o)||(o=s.currentRange.start);for(let e of n.pluginHooks.contextInit)e(i);let l=fLt(n.calendarOptions,s,i),c={dynamicOptionOverrides:t,currentViewType:r,currentDate:o,dateProfile:s,businessHours:this.parseContextBusinessHours(i),eventSources:l,eventUiBases:{},eventStore:up(),renderableEventStore:up(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(i).selectionConfig},u=Object.assign(Object.assign({},i),c);for(let e of n.pluginHooks.reducers)Object.assign(c,e(null,null,u));Kne(c,i)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;void 0===t?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(void 0===t||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:r}=this,a=uLt(n.dynamicOptionOverrides,e),i=this.computeOptionsData(t.optionOverrides,a,t.calendarApi),o=sLt(n.currentViewType,e),s=this.computeCurrentViewData(o,i,t.optionOverrides,a);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(s.options);let l={nowManager:this.nowManager,dateEnv:i.dateEnv,options:i.calendarOptions,pluginHooks:i.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:u}=n;this.data&&this.data.dateProfileGenerator!==s.dateProfileGenerator&&(u=s.dateProfileGenerator.build(c)),c=lLt(c,e),u=dLt(u,e,c,s.dateProfileGenerator),("PREV"===e.type||"NEXT"===e.type||!Fm(u.currentRange,c))&&(c=u.currentRange.start);let d=hLt(n.eventSources,e,u,l),p=gwe(n.eventStore,e,d,u,l),h=Fwe(d)&&!s.options.progressiveEventRendering&&n.renderableEventStore||p,{eventUiSingleBase:f,selectionConfig:m}=this.buildViewUiProps(l),g=this.buildEventUiBySource(d),y={dynamicOptionOverrides:a,currentViewType:o,currentDate:c,dateProfile:u,eventSources:d,eventStore:p,renderableEventStore:h,selectionConfig:m,eventUiBases:this.buildEventUiBases(h.defs,f,g),businessHours:this.parseContextBusinessHours(l),dateSelection:MLt(n.dateSelection,e),eventSelection:xLt(n.eventSelection,e),eventDrag:_Lt(n.eventDrag,e),eventResize:zLt(n.eventResize,e)},b=Object.assign(Object.assign({},l),y);for(let t of i.pluginHooks.reducers)Object.assign(y,t(n,e,b));let v=Kne(n,l),M=Kne(y,l);!v&&M?r.trigger("loading",!0):v&&!M&&r.trigger("loading",!1),this.state=y,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),a=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),i=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(t.dateProfile,a.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),a),t),o=r.pluginHooks.optionChangeHandlers,s=n&&n.calendarOptions,l=r.calendarOptions;if(s&&s!==l){s.timeZone!==l.timeZone&&(t.eventSources=i.eventSources=pLt(i.eventSources,t.dateProfile,i),t.eventStore=i.eventStore=Fne(i.eventStore,n.dateEnv,i.dateEnv),t.renderableEventStore=i.renderableEventStore=Fne(i.renderableEventStore,n.dateEnv,i.dateEnv));for(let e in o)(-1!==this.optionsForHandling.indexOf(e)||s[e]!==l[e])&&o[e](l[e],i)}this.optionsForHandling=[],e.onData&&e.onData(i)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:a,localeDefaults:i,availableLocaleData:o,extra:s}=this.processRawCalendarOptions(e,t);Rwe(s);let l=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,a,o,r.defaultRangeSeparator),c=this.buildViewSpecs(a.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,i),u=this.buildTheme(r,a),d=this.parseToolbars(r,this.stableOptionOverrides,u,c,n);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:a,dateEnv:l,viewSpecs:c,theme:u,toolbarConfig:d,localeDefaults:i,availableRawLocales:o.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=NF([Og,e,t]),a=this.organizeRawLocales(n),i=a.map,o=this.buildLocale(r||a.defaultCode,i).options,s=this.buildPluginHooks(e.plugins||[],jwe),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kne),Cne),Ene),s.listenerRefiners),s.optionRefiners),c={},u=NF([Og,o,e,t]),d={},p=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,f=!1;for(let e in u)-1===this.optionsForRefining.indexOf(e)&&(u[e]===p[e]||iz[e]&&e in p&&iz[e](p[e],u[e]))?d[e]=h[e]:l[e]?(d[e]=l[e](u[e]),f=!0):c[e]=p[e];return f&&(this.currentCalendarOptionsInput=u,this.currentCalendarOptionsRefined=d,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:s,availableLocaleData:a,localeDefaults:o,extra:c}}_computeCurrentViewData(e,t,n,r){let a=t.viewSpecs[e];if(!a)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:i,extra:o}=this.processRawViewOptions(a,t.pluginHooks,t.localeDefaults,n,r);return Rwe(o),this.nowManager.handleInput(t.dateEnv,i.now),{viewSpec:a,options:i,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:a.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:a.duration,durationUnit:a.durationUnit,usesMinMaxTime:a.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,showNonCurrentDates:i.showNonCurrentDates,dayCount:i.dayCount,dateAlignment:i.dateAlignment,dateIncrement:i.dateIncrement,hiddenDays:i.hiddenDays,weekends:i.weekends,validRangeInput:i.validRange,visibleRangeInput:i.visibleRange,fixedWeekCount:i.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,r,a){let i=NF([Og,e.optionDefaults,n,r,e.optionOverrides,a]),o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kne),Cne),Ene),uwe),t.listenerRefiners),t.optionRefiners),s={},l=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,u=!1,d={};for(let e in i)i[e]===l[e]||iz[e]&&iz[e](i[e],l[e])?s[e]=c[e]:(i[e]===this.currentCalendarOptionsInput[e]||iz[e]&&iz[e](i[e],this.currentCalendarOptionsInput[e])?e in this.currentCalendarOptionsRefined&&(s[e]=this.currentCalendarOptionsRefined[e]):o[e]?s[e]=o[e](i[e]):d[e]=i[e],u=!0);return u&&(this.currentViewOptionsInput=i,this.currentViewOptionsRefined=s),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}}},rae=class extends Ps{render(){return Cr("div",{className:"fc-toolbar-chunk"},...this.props.widgetGroups.map(e=>this.renderWidgetGroup(e)))}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],a=!0;for(let i of e){let{buttonName:e,buttonClick:o,buttonText:s,buttonIcon:l,buttonHint:c}=i;if("title"===e)a=!1,r.push(Cr("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let a=e===t.activeButton,i=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e,u=[`fc-${e}-button`,n.getClass("button")];a&&u.push(n.getClass("buttonActive")),r.push(Cr("button",{type:"button",title:"function"==typeof c?c(t.navUnit):c,disabled:i,"aria-pressed":a,className:u.join(" "),onClick:o},s||(l?Cr("span",{className:l,role:"img"}):"")))}}if(r.length>1){return Cr("div",{className:a&&n.getClass("buttonGroup")||""},...r)}return r[0]}},cB=class extends Ps{render(){let e,t,{model:n,extraClassName:r}=this.props,a=!1,i=n.sectionWidgets,o=i.center;return i.left?(a=!0,e=i.left):e=i.start,i.right?(a=!0,t=i.right):t=i.end,Cr("div",{className:[r||"","fc-toolbar",a?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",o||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return Cr(rae,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}},nae=class extends Ps{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,s2(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],a="",i="";return n?null!==t.availableWidth?a=t.availableWidth/n:i=1/n*100+"%":a=e.height||"",Cr("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:a,paddingBottom:i}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}},aae=class extends Ry{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,a=YM(t);if(a&&n.isValidSegDownEl(e.target)){let i=nh(e.target,".fc-event-forced-url"),o=i?i.querySelector("a[href]").href:"";r.emitter.trigger("eventClick",{el:t,event:new eu(n.context,a.eventRange.def,a.eventRange.instance),jsEvent:e,view:r.viewApi}),o&&!e.defaultPrevented&&(window.location.href=o)}},this.destroy=vne(e.el,"click",".fc-event",this.handleSegClick)}},iae=class extends Ry{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{YM(t)&&(this.currentSegEl=t,this.triggerEvent("eventMouseEnter",e,t))},this.handleSegLeave=(e,t)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",e,t))},this.removeHoverListeners=nwe(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:a}=r,i=YM(n);(!t||r.isValidSegDownEl(t.target))&&a.emitter.trigger(e,{el:n,event:new eu(a,i.eventRange.def,i.eventRange.instance),jsEvent:t,view:a.viewApi})}},oae=class extends Jb{constructor(){super(...arguments),this.buildViewContext=ps(hwe),this.buildViewPropTransformers=ps(JLt),this.buildToolbarProps=ps(KLt),this.headerRef=Q1(),this.footerRef=Q1(),this.interactionsStore={},this.state={viewLabelId:Ag()},this.registerInteractiveComponent=(e,t)=>{let n=zwe(e,t),r=[aae,iae].concat(this.props.pluginHooks.componentInteractions).map(e=>new e(n));this.interactionsStore[e.uid]=r,LA[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete LA[e.uid]},this.resizeRunner=new Kb(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let e,{props:t}=this,{toolbarConfig:n,options:r}=t,a=!1,i="";t.isHeightAuto||t.forPrint?i="":null!=r.height?a=!0:null!=r.contentHeight?i=r.contentHeight:e=Math.max(r.aspectRatio,.5);let o=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.nowManager,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),s=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return Cr(wv.Provider,{value:o},Cr(Bh,{unit:"day"},r=>{let o=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,r,t.viewTitle);return Cr(x0,null,n.header&&Cr(cB,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:s},o)),Cr(nae,{liquid:a,height:i,aspectRatio:e,labeledById:s},this.renderView(t),this.buildAppendContent()),n.footer&&Cr(cB,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},o)))}))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(t=>new t(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this;return Cr(x0,{},...e.pluginHooks.viewContainerAppends.map(t=>t(e)))}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},a=this.buildViewPropTransformers(t.viewPropsTransformers);for(let t of a)Object.assign(r,t.transform(r,e));return Cr(n.component,Object.assign({},r))}},sae=class extends Bm{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;oE(()=>{$_(Cr(dE,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(t,n,r,a)=>(this.setClassNames(t),this.setHeight(n),Cr(Rne.Provider,{value:this.customContentRenderId},Cr(oae,Object.assign({isHeightAuto:r,forPrint:a},e))))),this.el)})}else this.isRendered&&(this.isRendered=!1,$_(null,this.el),this.setClassNames([]),this.setHeight(""))},ewe(e),this.el=e,this.renderRunner=new Kb(this.handleRenderRequest),new tae({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){oE(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!o2(e,this.currentClassNames)){let{classList:t}=this.el;for(let e of this.currentClassNames)t.remove(e);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){mne(this.el,"height",e)}},rPt="6.1.20"}),Hm=kr(()=>{sB(),IM(),iE()}),$we={};function nPt(e){return 0===e.button&&!e.ctrlKey}function aPt(){uae+=1,setTimeout(()=>{uae-=1},c2.touchMouseIgnoreWait)}function iPt(){1===(uB+=1)&&window.addEventListener("touchmove",Zwe,{passive:!1})}function oPt(){(uB-=1)||window.removeEventListener("touchmove",Zwe,{passive:!1})}function Zwe(e){dae&&e.preventDefault()}function sPt(e){let t=e.tagName;return"HTML"===t||"BODY"===t}function pB(e,t){return!e&&!t||!!e==!!t&&Hne(e.dateSpan,t.dateSpan)}function _ae(e,t){let n={};for(let r of t.pluginHooks.datePointTransforms)Object.assign(n,r(e,t));return Object.assign(n,lPt(e,t.dateEnv)),n}function lPt(e,t){return{date:t.toDate(e.range.start),dateStr:t.formatIso(e.range.start,{omitTime:e.allDay}),allDay:e.allDay}}function cPt(e){let{options:t}=e.context,n=t.selectLongPressDelay;return null==n&&(n=t.longPressDelay),n}function uPt(e,t,n){let r=e.dateSpan,a=t.dateSpan,i=[r.range.start,r.range.end,a.range.start,a.range.end];i.sort(_ne);let o={};for(let r of n){let n=r(e,t);if(!1===n)return null;n&&Object.assign(o,n)}return o.range={start:i[0],end:i[3]},o.allDay=r.allDay,o}function dPt(e,t,n,r){let a=e.dateSpan,i=t.dateSpan,o=a.range.start,s=i.range.start,l={};a.allDay!==i.allDay&&(l.allDay=i.allDay,l.hasEnd=t.context.options.allDayMaintainDuration,o=i.allDay?mc(n):n);let c=ez(o,s,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);c.milliseconds&&(l.allDay=!1);let u={datesDelta:c,standardProps:l};for(let n of r)n(u,e,t);return u}function fPt(e){let{options:t}=e.context,n=t.eventLongPressDelay;return null==n&&(n=t.longPressDelay),n}function hPt(e,t,n,r){let a=e.context.dateEnv,i=ez(e.dateSpan.range.start,t.dateSpan.range.start,a,e.largeUnit);if(n){if(a.add(r.start,i)<r.end)return{startDelta:i}}else if(a.add(r.end,i)>r.start)return{endDelta:i};return null}function vPt(e,t,n){let r=Object.assign({},t.leftoverProps);for(let a of n.pluginHooks.externalDefTransforms)Object.assign(r,a(e,t));let{refined:a,extra:i}=wE(r,n),o=VT(a,i,t.sourceId,e.allDay,n.options.forceEventDuration||!!t.duration,n),s=e.range.start;e.allDay&&t.startTime&&(s=n.dateEnv.add(s,t.startTime));let l=t.duration?n.dateEnv.add(s,t.duration):uE(e.allDay,s,n);return{def:o,instance:t8(o.defId,{start:s,end:l})}}function gPt(e){let t=yPt(e,"event");return NE(t?JSON.parse(t):{create:!1})}function yPt(e,t){let n=c2.dataAttrPrefix,r=(n?n+"-":"")+t;return e.getAttribute("data-"+r)||""}Zs($we,{Draggable:()=>VE,ThirdPartyDraggable:()=>xae,default:()=>bPt});var uae,uB,dae,UE,fae,dB,fB,hae,Ywe,pae,cz,mae,NA,vae,gae,HE,yae,bae,pPt,mPt,hB,VE,Mae,xae,bPt,JM,o8,zae=kr(()=>{Sg(),Hm(),c2.touchMouseIgnoreWait=500,uae=0,uB=0,dae=!1,UE=class{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=e=>{if(!this.shouldIgnoreMouse()&&nPt(e)&&this.tryStart(e)){let t=this.createEventFromMouse(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=e=>{let t=this.createEventFromMouse(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleMouseUp=e=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(e)),this.cleanup()},this.handleTouchStart=e=>{if(this.tryStart(e)){this.isTouchDragging=!0;let t=this.createEventFromTouch(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t);let n=e.target;this.shouldIgnoreMove||n.addEventListener("touchmove",this.handleTouchMove),n.addEventListener("touchend",this.handleTouchEnd),n.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=e=>{let t=this.createEventFromTouch(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleTouchEnd=e=>{if(this.isDragging){let t=e.target;t.removeEventListener("touchmove",this.handleTouchMove),t.removeEventListener("touchend",this.handleTouchEnd),t.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(e)),this.cleanup(),this.isTouchDragging=!1,aPt()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=e=>{if(!this.shouldIgnoreMove){let t=window.scrollX-this.prevScrollX+this.prevPageX,n=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:e,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:t,pageY:n,deltaX:t-this.origPageX,deltaY:n-this.origPageY})}},this.containerEl=e,this.emitter=new Dy,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),iPt()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),oPt()}tryStart(e){let t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!nh(n,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)}cleanup(){dae=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?nh(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return uae||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(dae=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,t){let n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}}createEventFromTouch(e,t){let n,r,a=e.touches,i=0,o=0;return a&&a.length?(n=a[0].pageX,r=a[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(i=n-this.origPageX,o=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:i,deltaY:o}}},fae=class{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.scrollX,this.origScreenY=n-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=t-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,t){let n=()=>{this.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(n,this.revertDuration):setTimeout(n,0)}doRevertAnimation(e,t){let n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",jM(n,{left:r.left,top:r.top}),gne(n,()=>{n.style.transition="",e()})}cleanup(){this.mirrorEl&&(qA(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&jM(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.style.userSelect="none",t.style.webkitUserSelect="none",t.style.pointerEvents="none",t.classList.add("fc-event-dragging"),jM(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t}},dB=class extends SA{constructor(e,t){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=t,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}},fB=class extends dB{constructor(e,t){super(new fE(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return RE(this.scrollController.el)}},hae=class extends dB{constructor(e){super(new hE,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}},Ywe="function"==typeof performance?performance.now:Date.now,pae=class{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let t=Ywe();this.handleSide(e,(t-this.msSinceRequest)/1e3),this.requestAnimation(t)}else this.isAnimating=!1}}}start(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))}handleMove(e,t){if(this.isEnabled){let n=e-window.scrollX,r=t-window.scrollY,a=null===this.pointerScreenY?0:r-this.pointerScreenY,i=null===this.pointerScreenX?0:n-this.pointerScreenX;a<0?this.everMovedUp=!0:a>0&&(this.everMovedDown=!0),i<0?this.everMovedLeft=!0:i>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Ywe()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,t){let{scrollCache:n}=e,{edgeThreshold:r}=this,a=r-e.distance,i=a*a/(r*r)*this.maxVelocity*t,o=1;switch(e.name){case"left":o=-1;case"right":n.setScrollLeft(n.getScrollLeft()+i*o);break;case"top":o=-1;case"bottom":n.setScrollTop(n.getScrollTop()+i*o)}}computeBestEdge(e,t){let{edgeThreshold:n}=this,r=null,a=this.scrollCaches||[];for(let i of a){let a=i.clientRect,o=e-a.left,s=a.right-e,l=t-a.top,c=a.bottom-t;o>=0&&s>=0&&l>=0&&c>=0&&(l<=n&&this.everMovedUp&&i.canScrollUp()&&(!r||r.distance>l)&&(r={scrollCache:i,name:"top",distance:l}),c<=n&&this.everMovedDown&&i.canScrollDown()&&(!r||r.distance>c)&&(r={scrollCache:i,name:"bottom",distance:c}),o<=n&&this.everMovedLeft&&i.canScrollLeft()&&(!r||r.distance>o)&&(r={scrollCache:i,name:"left",distance:o}),s<=n&&this.everMovedRight&&i.canScrollRight()&&(!r||r.distance>s)&&(r={scrollCache:i,name:"right",distance:s}))}return r}buildCaches(e){return this.queryScrollEls(e).map(e=>e===window?new hae(!1):new fB(e,!1))}queryScrollEls(e){let t=[];for(let n of this.scrollQuery)"object"==typeof n?t.push(n):t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(n)));return t}},cz=class extends GT{constructor(e,t){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=e=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,yne(document.body),Mne(document.body),e.isTouch||e.origEvent.preventDefault(),this.emitter.trigger("pointerdown",e),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(e.subjectEl,e.pageX,e.pageY),this.startDelay(e),this.minDistance||this.handleDistanceSurpassed(e)))},this.onPointerMove=e=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",e),!this.isDistanceSurpassed){let t,n=this.minDistance,{deltaX:r,deltaY:a}=e;t=r*r+a*a,t>=n*n&&this.handleDistanceSurpassed(e)}this.isDragging&&("scroll"!==e.origEvent.type&&(this.mirror.handleMove(e.pageX,e.pageY),this.autoScroller.handleMove(e.pageX,e.pageY)),this.emitter.trigger("dragmove",e))}},this.onPointerUp=e=>{this.isInteracting&&(this.isInteracting=!1,bne(document.body),xne(document.body),this.emitter.trigger("pointerup",e),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(e)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let n=this.pointer=new UE(e);n.emitter.on("pointerdown",this.onPointerDown),n.emitter.on("pointermove",this.onPointerMove),n.emitter.on("pointerup",this.onPointerUp),t&&(n.selector=t),this.mirror=new fae,this.autoScroller=new pae}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){"number"==typeof this.delay?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}},mae=class{constructor(e){this.el=e,this.origRect=LE(e),this.scrollCaches=$F(e).map(e=>new fB(e,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let t of this.scrollCaches)e+=t.origScrollLeft-t.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let t of this.scrollCaches)e+=t.origScrollTop-t.getScrollTop();return e}isWithinClipping(e,t){let n={left:e,top:t};for(let e of this.scrollCaches)if(!sPt(e.getEventTarget())&&!jne(n,e.clientRect))return!1;return!0}},NA=class{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=e=>{let{dragging:t}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(e),this.initialHit||!this.requireInitial?(t.setIgnoreMove(!1),this.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=e=>{this.emitter.trigger("dragstart",e),this.handleMove(e,!0)},this.handleDragMove=e=>{this.emitter.trigger("dragmove",e),this.handleMove(e)},this.handlePointerUp=e=>{this.releaseHits(),this.emitter.trigger("pointerup",e)},this.handleDragEnd=e=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,e),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new Dy}processFirstCoord(e){let t,n={left:e.pageX,top:e.pageY},r=n,a=e.subjectEl;a instanceof HTMLElement&&(t=LE(a),r=Gne(r,t));let i=this.initialHit=this.queryHitForOffset(r.left,r.top);if(i){if(this.useSubjectCenter&&t){let e=jF(t,i.rect);e&&(r=Xne(e))}this.coordAdjust=Yne(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,t){let n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(t||!pB(this.movingHit,n))&&(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))}prepareHits(){this.offsetTrackers=ah(this.droppableStore,e=>(e.component.prepareHits(),new mae(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e)e[t].destroy();this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:n,offsetTrackers:r}=this,a=null;for(let i in n){let o=n[i].component,s=r[i];if(s&&s.isWithinClipping(e,t)){let n=s.computeLeft(),r=s.computeTop(),l=e-n,c=t-r,{origRect:u}=s,d=u.right-u.left,p=u.bottom-u.top;if(l>=0&&l<d&&c>=0&&c<p){let e=o.queryHit(l,c,d,p);e&&QT(e.dateProfile.activeRange,e.dateSpan.range)&&(this.disablePointCheck||s.el.contains(s.el.getRootNode().elementFromPoint(l+n-window.scrollX,c+r-window.scrollY)))&&(!a||e.layer>a.layer)&&(e.componentId=i,e.context=o.context,e.rect.left+=n,e.rect.right+=n,e.rect.top+=r,e.rect.bottom+=r,a=e)}}}return a}},vae=class extends Ry{constructor(e){super(e),this.handlePointerDown=e=>{let{dragging:t}=this,n=e.origEvent.target;t.setIgnoreMove(!this.component.isValidDateDownEl(n))},this.handleDragEnd=e=>{let{component:t}=this,{pointer:n}=this.dragging;if(!n.wasTouchScroll){let{initialHit:n,finalHit:r}=this.hitDragging;if(n&&r&&pB(n,r)){let{context:r}=t,a=Object.assign(Object.assign({},_ae(n.dateSpan,r)),{dayEl:n.dayEl,jsEvent:e.origEvent,view:r.viewApi||r.calendarApi.view});r.emitter.trigger("dateClick",a)}}},this.dragging=new cz(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new NA(this.dragging,DE(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}},gae=class extends Ry{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=e=>{let{component:t,dragging:n}=this,{options:r}=t.context,a=r.selectable&&t.isValidDateDownEl(e.origEvent.target);n.setIgnoreMove(!a),n.delay=e.isTouch?cPt(t):null},this.handleDragStart=e=>{this.component.context.calendarApi.unselect(e)},this.handleHitUpdate=(e,t)=>{let{context:n}=this.component,r=null,a=!1;if(e){let t=this.hitDragging.initialHit;e.componentId===t.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(t,e)||(r=uPt(t,e,n.pluginHooks.dateSelectionTransformers)),(!r||!$ne(r,e.dateProfile,n))&&(a=!0,r=null)}r?n.dispatch({type:"SELECT_DATES",selection:r}):t||n.dispatch({type:"UNSELECT_DATES"}),a?XT():YT(),t||(this.dragSelection=r)},this.handlePointerUp=e=>{this.dragSelection&&(VF(this.dragSelection,e,this.component.context),this.dragSelection=null)};let{component:t}=e,{options:n}=t.context,r=this.dragging=new cz(e.el);r.touchScrollAllowed=!1,r.minDistance=n.selectMinDistance||0,r.autoScroller.isEnabled=n.dragScroll;let a=this.hitDragging=new NA(this.dragging,DE(e));a.emitter.on("pointerdown",this.handlePointerDown),a.emitter.on("dragstart",this.handleDragStart),a.emitter.on("hitupdate",this.handleHitUpdate),a.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}},(HE=class e extends Ry{constructor(t){super(t),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let t=e.origEvent.target,{component:n,dragging:r}=this,{mirror:a}=r,{options:i}=n.context,o=n.context;this.subjectEl=e.subjectEl;let s=this.subjectSeg=YM(e.subjectEl),l=(this.eventRange=s.eventRange).instance.instanceId;this.relevantEvents=OE(o.getCurrentData().eventStore,l),r.minDistance=e.isTouch?0:i.eventDragMinDistance,r.delay=e.isTouch&&l!==n.props.eventSelection?fPt(n):null,i.fixedMirrorParent?a.parentNode=i.fixedMirrorParent:a.parentNode=nh(t,".fc"),a.revertDuration=i.dragRevertDuration;let c=n.isValidSegDownEl(t)&&!nh(t,".fc-event-resizer");r.setIgnoreMove(!c),this.isDragging=c&&e.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=e=>{let t=this.component.context,n=this.eventRange,r=n.instance.instanceId;e.isTouch?r!==this.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:r}):t.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new eu(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},this.handleHitUpdate=(e,t)=>{if(!this.isDragging)return;let n=this.relevantEvents,r=this.hitDragging.initialHit,a=this.component.context,i=null,o=null,s=null,l=!1,c={affectedEvents:n,mutatedEvents:up(),isEvent:!0};if(e){i=e.context;let t=i.options;a===i||t.editable&&t.droppable?(o=dPt(r,e,this.eventRange.instance.range.start,i.getCurrentData().pluginHooks.eventDragMutationMassagers),o&&(s=kE(n,i.getCurrentData().eventUiBases,o,i),c.mutatedEvents=s,WE(c,e.dateProfile,i)||(l=!0,o=null,s=null,c.mutatedEvents=up()))):i=null}this.displayDrag(i,c),l?XT():YT(),t||(a===i&&pB(r,e)&&(o=null),this.dragging.setMirrorNeedsRevert(!o),this.dragging.setMirrorIsVisible(!e||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=i,this.validMutation=o,this.mutatedRelevantEvents=s)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=e=>{if(this.isDragging){let t=this.component.context,n=t.viewApi,{receivingContext:r,validMutation:a}=this,i=this.eventRange.def,o=this.eventRange.instance,s=new eu(t,i,o),l=this.relevantEvents,c=this.mutatedRelevantEvents,{finalHit:u}=this.hitDragging;if(this.clearDrag(),t.emitter.trigger("eventDragStop",{el:this.subjectEl,event:s,jsEvent:e.origEvent,view:n}),a){if(r===t){let r=new eu(t,c.defs[i.defId],o?c.instances[o.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:c});let u={oldEvent:s,event:r,relatedEvents:n3(c,t,o),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}},d={};for(let e of t.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(d,e(a,t));t.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},u),d),{el:e.subjectEl,delta:a.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",u)}else if(r){let a={event:s,relatedEvents:n3(l,t,o),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})}};t.emitter.trigger("eventLeave",Object.assign(Object.assign({},a),{draggedEl:e.subjectEl,view:n})),t.dispatch({type:"REMOVE_EVENTS",eventStore:l}),t.emitter.trigger("eventRemove",a);let d=c.defs[i.defId],p=c.instances[o.instanceId],h=new eu(r,d,p);r.dispatch({type:"MERGE_EVENTS",eventStore:c});let f={event:h,relatedEvents:n3(c,r,p),revert(){r.dispatch({type:"REMOVE_EVENTS",eventStore:c})}};r.emitter.trigger("eventAdd",f),e.isTouch&&r.dispatch({type:"SELECT_EVENT",eventInstanceId:o.instanceId}),r.emitter.trigger("drop",Object.assign(Object.assign({},_ae(u.dateSpan,r)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:u.context.viewApi})),r.emitter.trigger("eventReceive",Object.assign(Object.assign({},f),{draggedEl:e.subjectEl,view:u.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:r}=n.context,a=this.dragging=new cz(t.el);a.pointer.selector=e.SELECTOR,a.touchScrollAllowed=!1,a.autoScroller.isEnabled=r.dragScroll;let i=this.hitDragging=new NA(this.dragging,LA);i.useSubjectCenter=t.useEventCenter,i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("pointerup",this.handlePointerUp),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,t){let n=this.component.context,r=this.receivingContext;r&&r!==e&&(r===n?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:up(),isEvent:!0}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){let e=this.component.context,{receivingContext:t}=this;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}).SELECTOR=".fc-event-draggable, .fc-event-resizable",yae=class extends Ry{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let{component:t}=this,n=YM(this.querySegEl(e)),r=this.eventRange=n.eventRange;this.dragging.minDistance=t.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&this.component.props.eventSelection!==r.instance.instanceId)},this.handleDragStart=e=>{let{context:t}=this.component,n=this.eventRange;this.relevantEvents=OE(t.getCurrentData().eventStore,this.eventRange.instance.instanceId);let r=this.querySegEl(e);this.draggingSegEl=r,this.draggingSeg=YM(r),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:r,event:new eu(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})},this.handleHitUpdate=(e,t,n)=>{let{context:r}=this.component,a=this.relevantEvents,i=this.hitDragging.initialHit,o=this.eventRange.instance,s=null,l=null,c=!1,u={affectedEvents:a,mutatedEvents:up(),isEvent:!0};e&&(e.componentId===i.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(i,e)||(s=hPt(i,e,n.subjectEl.classList.contains("fc-event-resizer-start"),o.range))),s&&(l=kE(a,r.getCurrentData().eventUiBases,s,r),u.mutatedEvents=l,WE(u,e.dateProfile,r)||(c=!0,s=null,l=null,u.mutatedEvents=null)),l?r.dispatch({type:"SET_EVENT_RESIZE",state:u}):r.dispatch({type:"UNSET_EVENT_RESIZE"}),c?XT():YT(),t||(s&&pB(i,e)&&(s=null),this.validMutation=s,this.mutatedRelevantEvents=l)},this.handleDragEnd=e=>{let{context:t}=this.component,n=this.eventRange.def,r=this.eventRange.instance,a=new eu(t,n,r),i=this.relevantEvents,o=this.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:a,jsEvent:e.origEvent,view:t.viewApi}),this.validMutation){let s=new eu(t,o.defs[n.defId],r?o.instances[r.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:o});let l={oldEvent:a,event:s,relatedEvents:n3(o,t,r),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:i})}};t.emitter.trigger("eventResize",Object.assign(Object.assign({},l),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||bl(0),endDelta:this.validMutation.endDelta||bl(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",l)}else t.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,n=this.dragging=new cz(e.el);n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;let r=this.hitDragging=new NA(this.dragging,DE(e));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return nh(e.subjectEl,".fc-event")}},bae=class{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=e=>{e.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=e=>{let t=this.context.options.unselectCancel,n=qF(e.origEvent);this.matchesCancel=!!nh(n,t),this.matchesEvent=!!nh(n,HE.SELECTOR)},this.onDocumentPointerUp=e=>{let{context:t}=this,{documentPointer:n}=this,r=t.getCurrentData();if(!n.wasTouchScroll){if(r.dateSelection&&!this.isRecentPointerDateSelect){let n=t.options.unselectAuto;n&&(!n||!this.matchesCancel)&&t.calendarApi.unselect(e)}r.eventSelection&&!this.matchesEvent&&t.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let t=this.documentPointer=new UE(document);t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on("pointerdown",this.onDocumentPointerDown),t.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}},pPt={fixedMirrorParent:da},mPt={dateClick:da,eventDragStart:da,eventDragStop:da,eventDrop:da,eventResizeStart:da,eventResizeStop:da,eventResize:da,drop:da,eventReceive:da,eventLeave:da},hB=class{constructor(e,t){this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=e=>{this.dragMeta=this.buildDragMeta(e.subjectEl)},this.handleHitUpdate=(e,t,n)=>{let{dragging:r}=this.hitDragging,a=null,i=null,o=!1,s={affectedEvents:up(),mutatedEvents:up(),isEvent:this.dragMeta.create};e&&(a=e.context,this.canDropElOnCalendar(n.subjectEl,a)&&(i=vPt(e.dateSpan,this.dragMeta,a),s.mutatedEvents=wA(i),o=!WE(s,e.dateProfile,a),o&&(s.mutatedEvents=up(),i=null))),this.displayDrag(a,s),r.setMirrorIsVisible(t||!i||!document.querySelector(".fc-event-mirror")),o?XT():YT(),t||(r.setMirrorNeedsRevert(!i),this.receivingContext=a,this.droppableEvent=i)},this.handleDragEnd=e=>{let{receivingContext:t,droppableEvent:n}=this;if(this.clearDrag(),t&&n){let r=this.hitDragging.finalHit,a=r.context.viewApi,i=this.dragMeta;if(t.emitter.trigger("drop",Object.assign(Object.assign({},_ae(r.dateSpan,t)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:a})),i.create){let r=wA(n);t.dispatch({type:"MERGE_EVENTS",eventStore:r}),e.isTouch&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:n.instance.instanceId}),t.emitter.trigger("eventReceive",{event:new eu(t,n.def,n.instance),relatedEvents:[],revert(){t.dispatch({type:"REMOVE_EVENTS",eventStore:r})},draggedEl:e.subjectEl,view:a})}}this.receivingContext=null,this.droppableEvent=null};let n=this.hitDragging=new NA(e,LA);n.requireInitial=!1,n.emitter.on("dragstart",this.handleDragStart),n.emitter.on("hitupdate",this.handleHitUpdate),n.emitter.on("dragend",this.handleDragEnd),this.suppliedDragMeta=t}buildDragMeta(e){return"object"==typeof this.suppliedDragMeta?NE(this.suppliedDragMeta):"function"==typeof this.suppliedDragMeta?NE(this.suppliedDragMeta(e)):gPt(e)}displayDrag(e,t){let n=this.receivingContext;n&&n!==e&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){this.receivingContext&&this.receivingContext.dispatch({type:"UNSET_EVENT_DRAG"})}canDropElOnCalendar(e,t){let n=t.options.dropAccept;return"function"==typeof n?n.call(t.calendarApi,e):"string"!=typeof n||!n||!!bE(e,n)}},c2.dataAttrPrefix="",VE=class{constructor(e,t={}){this.handlePointerDown=e=>{let{dragging:t}=this,{minDistance:n,longPressDelay:r}=this.settings;t.minDistance=n??(e.isTouch?0:Og.eventDragMinDistance),t.delay=e.isTouch?r??Og.longPressDelay:0},this.handleDragStart=e=>{e.isTouch&&this.dragging.delay&&e.subjectEl.classList.contains("fc-event")&&this.dragging.mirror.getMirrorEl().classList.add("fc-event-selected")},this.settings=t;let n=this.dragging=new cz(e);n.touchScrollAllowed=!1,null!=t.itemSelector&&(n.pointer.selector=t.itemSelector),null!=t.appendTo&&(n.mirror.parentNode=t.appendTo),n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragstart",this.handleDragStart),new hB(n,t.eventData)}destroy(){this.dragging.destroy()}},Mae=class extends GT{constructor(e){super(e),this.shouldIgnoreMove=!1,this.mirrorSelector="",this.currentMirrorEl=null,this.handlePointerDown=e=>{this.emitter.trigger("pointerdown",e),this.shouldIgnoreMove||this.emitter.trigger("dragstart",e)},this.handlePointerMove=e=>{this.shouldIgnoreMove||this.emitter.trigger("dragmove",e)},this.handlePointerUp=e=>{this.emitter.trigger("pointerup",e),this.shouldIgnoreMove||this.emitter.trigger("dragend",e)};let t=this.pointer=new UE(e);t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("pointermove",this.handlePointerMove),t.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.pointer.destroy()}setIgnoreMove(e){this.shouldIgnoreMove=e}setMirrorIsVisible(e){if(e)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{let e=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;e&&(this.currentMirrorEl=e,e.style.visibility="hidden")}}},xae=class{constructor(e,t){let n=document;e===document||e instanceof Element?(n=e,t=t||{}):t=e||{};let r=this.dragging=new Mae(n);"string"==typeof t.itemSelector?r.pointer.selector=t.itemSelector:n===document&&(r.pointer.selector="[data-event]"),"string"==typeof t.mirrorSelector&&(r.mirrorSelector=t.mirrorSelector),new hB(r,t.eventData).hitDragging.disablePointCheck=!0}destroy(){this.dragging.destroy()}},bPt=Rd({name:"@fullcalendar/interaction",componentInteractions:[vae,gae,HE,yae],calendarInteractions:[bae],elementDraggingImpl:cz,optionRefiners:pPt,listenerRefiners:mPt})}),Kwe=kr(()=>{}),Aae=kr(()=>{JM=require("obsidian"),zae(),Wo(),PT(),Zo(),qp(),Kwe(),o8=class extends JM.Component{constructor(e,t,n,r){super(),this.plugin=e,this.containerEl=t,this.config=n,this.onUpdateCallback=r,this.tasks=[],this.filteredTasks=[],this.displayedTasks=[],this.TASKS_PER_PAGE=200,this.currentPage=1,this.searchQuery="",this.shouldRestoreSearchFocus=!1,this.searchSelectionStart=null,this.searchSelectionEnd=null,this.draggable=null,this.newTaskTitle="",this.selectedProviderId="",this.isCreatingTask=!1,this.showAdvancedFilters=!1,this.app=e.app,this.searchQuery=n.searchQuery||""}onload(){this.backlogWrapper=this.containerEl.createDiv({cls:"fcr-task-backlog tasks-backlog-view"}),this.refresh(),this.onUpdateCallback(()=>{this.refresh()})}onunload(){this.draggable?.destroy(),this.draggable=null,this.backlogWrapper.remove()}async refresh(){await this.loadTasks(),this.render()}getBacklogProviders(){let e=Qe.getProviderRegistry().getTaskBacklogProviders(),t=this.config.calendars;return t&&t.length>0?e.filter(e=>{let n=e.getTaskBacklogInfo();return t.includes(n.id)||t.includes(n.name)}):e}async loadTasks(){let e=this.getBacklogProviders(),t=await Promise.allSettled(e.map(async e=>{let t=e.getTaskBacklogInfo();return(await e.getTaskBacklogItems()).map(n=>({...n,sourceId:n.sourceId??t.id,provider:e,providerInfo:t}))}));this.tasks=t.flatMap(e=>"fulfilled"===e.status?e.value:[]),this.ensureSelectedProvider(e),this.updateDisplayedTasks()}ensureSelectedProvider(e=this.getBacklogProviders()){let t=e.filter(e=>e.getTaskBacklogInfo().supportsCreate&&"function"==typeof e.createTaskBacklogItem),n=Qe.getSettings(),r=n.taskBacklogLastProviderId||n.caldavTaskInboxLastCalendarId;if(!this.selectedProviderId||!t.some(e=>e.getTaskBacklogInfo().id===this.selectedProviderId)){if(r&&t.some(e=>e.getTaskBacklogInfo().id===r))return void(this.selectedProviderId=r);this.selectedProviderId=t[0]?.getTaskBacklogInfo().id||""}}persistSelectedProvider(e){let t=Qe.getSettings();t.taskBacklogLastProviderId!==e&&(t.taskBacklogLastProviderId=e,t.caldavTaskInboxLastCalendarId=e,Qe.saveSettings().catch(e=>console.warn("[EmbeddedTaskBacklog] Failed to save selected task backlog provider.",e)))}updateDisplayedTasks(){this.filteredTasks=this.filterTasks(this.getOpenTasks(),this.searchQuery);let e=Math.max(1,Math.ceil(this.filteredTasks.length/this.TASKS_PER_PAGE));this.currentPage=Math.min(this.currentPage,e);let t=(this.currentPage-1)*this.TASKS_PER_PAGE,n=t+this.TASKS_PER_PAGE;this.displayedTasks=this.filteredTasks.slice(t,n)}getOpenTasks(){return this.tasks.filter(e=>!e.completed)}filterTasks(e,t){return t.trim()?e.filter(e=>{let n=Dp.fromBacklogItem(e,e.providerInfo.name,e.providerInfo.id);return Dp.matchEvent(n,{textSearch:{query:t,mode:"backlog"}})}):e}render(){this.draggable?.destroy(),this.draggable=null,this.backlogWrapper.empty();let e=this.getBacklogProviders(),t=this.backlogWrapper.createDiv({cls:"tasks-backlog-content"});if(0===e.length)return void this.renderNoProviders(t);let n=!1!==this.config.showSearch,r=!1!==this.config.showDateSelector,a=!1!==this.config.showFooter,i=r&&e.some(e=>"tasks"===e.type),o=this.getOpenTasks().length;if(n||i){let e=t.createDiv({cls:"tasks-backlog-header"});if(e.createDiv({cls:"tasks-backlog-title-row"}).createEl("h3",{text:Ce("settings.taskBacklog.title")}),n)this.renderSearchBar(e,i);else if(i){let t=e.createDiv({cls:"tasks-backlog-controls-row"});this.renderAdvancedFiltersToggle(t)}if(i&&this.showAdvancedFilters){let t=e.createDiv({cls:"tasks-backlog-advanced-panel"});this.renderDateTargetSelector(t)}}let s=this.searchQuery.trim()?Ce("settings.taskBacklog.countFiltered",{shown:this.filteredTasks.length,total:o}):Ce(1===o?"settings.taskBacklog.countUnscheduledSingular":"settings.taskBacklog.countUnscheduledPlural",{count:o});t.createDiv({text:s,cls:"tasks-backlog-count"}),0===this.displayedTasks.length?this.renderEmptyState(t):(this.renderTasksList(t),this.renderPaginationControls(t)),a&&this.renderFooterIfNeeded(this.backlogWrapper,e),this.restoreSearchFocusIfNeeded()}renderNoProviders(e){e.createDiv({text:Ce("settings.taskBacklog.noProvidersTitle"),attr:{class:"tasks-backlog-empty"}}),e.createDiv({text:Ce("settings.taskBacklog.noProvidersHelp"),attr:{class:"tasks-backlog-help"}})}renderFooterIfNeeded(e,t=this.getBacklogProviders()){let n=t.filter(e=>e.getTaskBacklogInfo().supportsCreate&&"function"==typeof e.createTaskBacklogItem);if(0===n.length)return;this.ensureSelectedProvider(t);let r=e.createDiv({cls:"tasks-backlog-footer"});r.createEl("h4",{text:Ce("settings.taskBacklog.addUnscheduledTask"),cls:"tasks-backlog-footer-heading"});let a=r.createEl("form",{cls:"tasks-backlog-create-form"});a.addEventListener("submit",e=>{e.preventDefault(),this.createTask()});let i=a.createEl("select",{cls:"tasks-backlog-create-source",attr:{"aria-label":Ce("settings.taskBacklog.sourceLabel")}});i.disabled=0===n.length||this.isCreatingTask;for(let e of n){let t=e.getTaskBacklogInfo();i.createEl("option",{text:t.name,attr:{value:t.id}}).selected=t.id===this.selectedProviderId}i.addEventListener("change",()=>{this.selectedProviderId=i.value,this.persistSelectedProvider(i.value)});let o=a.createEl("input",{cls:"tasks-backlog-new-title",attr:{type:"text",placeholder:Ce("settings.taskBacklog.placeholder"),"aria-label":Ce("settings.taskBacklog.newTitleLabel")}}),s=a.createEl("button",{cls:"tasks-backlog-add",attr:{type:"submit","aria-label":Ce("settings.taskBacklog.addBtnLabel")}});(0,JM.setIcon)(s,"plus"),s.disabled=0===n.length||this.isCreatingTask||0===this.newTaskTitle.trim().length,o.value=this.newTaskTitle,o.disabled=0===n.length||this.isCreatingTask,o.addEventListener("input",()=>{this.newTaskTitle=o.value,s.disabled=0===n.length||this.isCreatingTask||0===this.newTaskTitle.trim().length});let l=r.createDiv({cls:"tasks-backlog-footer-help"});l.createSpan({text:Ce("settings.taskBacklog.helpText")}),l.appendChild(Wh([{text:Ce("settings.taskBacklog.learnMore"),path:"user/features/tasks-backlog/"}]))}renderEmptyState(e){let t=e.createDiv({cls:"tasks-backlog-empty"});if(this.tasks.length>0&&this.searchQuery.trim())return t.createDiv({text:Ce("settings.taskBacklog.emptyNoMatchesTitle",{query:this.searchQuery})}),void t.createDiv({text:Ce("settings.taskBacklog.emptyNoMatchesHelp"),cls:"tasks-backlog-help"});t.createDiv({text:Ce("settings.taskBacklog.emptyUnscheduledTitle")}),t.createDiv({text:Ce("settings.taskBacklog.emptyUnscheduledHelp"),cls:"tasks-backlog-help"})}renderSearchBar(e,t){let n=e.createDiv({cls:"tasks-backlog-search-row"}),r=n.createDiv({cls:"tasks-backlog-search-shell"}),a=r.createSpan({cls:"tasks-backlog-search-icon"});(0,JM.setIcon)(a,"search");let i=r.createEl("input",{cls:"tasks-backlog-search-input",attr:{type:"search",placeholder:Ce("settings.taskBacklog.searchPlaceholder"),"aria-label":Ce("settings.taskBacklog.searchAriaLabel")}}),o=r.createEl("button",{cls:"tasks-backlog-search-clear",attr:{type:"button","aria-label":Ce("settings.taskBacklog.clearSearchAriaLabel")}});(0,JM.setIcon)(o,"x"),i.value=this.searchQuery,o.disabled=0===this.searchQuery.trim().length,o.addEventListener("click",()=>{this.searchQuery.trim()&&(this.searchQuery="",this.searchSelectionStart=0,this.searchSelectionEnd=0,this.shouldRestoreSearchFocus=!0,this.currentPage=1,this.updateDisplayedTasks(),this.render())}),i.addEventListener("input",()=>{this.searchQuery=i.value,this.searchSelectionStart=i.selectionStart,this.searchSelectionEnd=i.selectionEnd,this.shouldRestoreSearchFocus=!0,this.currentPage=1,this.updateDisplayedTasks(),this.render()}),i.addEventListener("keydown",e=>{"Escape"!==e.key||!this.searchQuery.trim()||(e.preventDefault(),this.searchQuery="",this.searchSelectionStart=0,this.searchSelectionEnd=0,this.shouldRestoreSearchFocus=!0,this.currentPage=1,this.updateDisplayedTasks(),this.render())}),t&&this.renderAdvancedFiltersToggle(n)}renderAdvancedFiltersToggle(e){e.createEl("button",{cls:"tasks-backlog-advanced-toggle",text:"...",attr:{type:"button","aria-label":this.showAdvancedFilters?Ce("settings.taskBacklog.hideAdvancedFiltersAriaLabel"):Ce("settings.taskBacklog.showAdvancedFiltersAriaLabel"),"aria-expanded":this.showAdvancedFilters?"true":"false"}}).addEventListener("click",()=>{this.showAdvancedFilters=!this.showAdvancedFilters,this.render()})}restoreSearchFocusIfNeeded(){if(!this.shouldRestoreSearchFocus)return;let e=this.backlogWrapper.querySelector(".tasks-backlog-search-input");e?(e.focus(),null!==this.searchSelectionStart&&null!==this.searchSelectionEnd&&e.setSelectionRange(this.searchSelectionStart,this.searchSelectionEnd),this.shouldRestoreSearchFocus=!1,this.searchSelectionStart=null,this.searchSelectionEnd=null):this.shouldRestoreSearchFocus=!1}renderDateTargetSelector(e){let t=e.createEl("label",{cls:"tasks-backlog-target"});t.createSpan({text:Ce("settings.taskBacklog.missingDateLabel")});let n=t.createEl("select",{cls:"tasks-backlog-target-select",attr:{"aria-label":Ce("settings.tasksIntegration.backlogDateTarget.label")}});this.addDateTargetOption(n,"scheduledDate",Ce("settings.tasksIntegration.backlogDateTarget.scheduled")),this.addDateTargetOption(n,"startDate",Ce("settings.tasksIntegration.backlogDateTarget.start")),this.addDateTargetOption(n,"dueDate",Ce("settings.tasksIntegration.backlogDateTarget.due")),n.value=Qe.getSettings().tasksIntegration.backlogDateTarget,n.addEventListener("change",()=>{Qe.getSettings().tasksIntegration.backlogDateTarget=n.value,this.currentPage=1,Qe.saveSettings().then(()=>{Qe.getProviderRegistry().refreshBacklogViews()})})}addDateTargetOption(e,t,n){e.createEl("option",{text:n,attr:{value:t}})}renderTasksList(e){let t=e.createDiv({cls:"tasks-backlog-list"});for(let e of this.displayedTasks){let n=t.createDiv({cls:"tasks-backlog-item",attr:{draggable:"true","data-task-id":e.id}});n.addEventListener("contextmenu",t=>{this.showTaskContextMenu(t,e)});let r=n.createDiv({cls:"tasks-backlog-title-row"}),a=r.createEl("input",{cls:"tasks-backlog-checkbox",attr:{type:"checkbox"}});if(a.checked=e.completed,a.disabled="function"!=typeof e.provider.setTaskBacklogItemComplete,a.addEventListener("click",e=>{e.stopPropagation()}),a.addEventListener("change",t=>{t.stopPropagation(),this.setTaskCompleted(e,a)}),r.createSpan({text:e.title,cls:e.completed?"tasks-backlog-title tasks-backlog-done":"tasks-backlog-title",attr:{title:e.title}}),e.provider.openTaskBacklogItem){let t=r.createDiv({cls:"tasks-backlog-actions"}).createEl("button",{cls:"tasks-backlog-action",attr:{type:"button","aria-label":Ce("settings.taskBacklog.openNoteAriaLabel",{title:e.title})}});(0,JM.setIcon)(t,"file-text"),t.addEventListener("click",t=>{t.stopPropagation(),e.provider.openTaskBacklogItem?.(e.id)})}let i=n.createDiv({cls:"tasks-backlog-meta-row"});i.createSpan({text:e.providerInfo.name,cls:"tasks-backlog-source-badge",attr:{title:e.providerInfo.name}}),e.subtitle&&i.createSpan({text:e.subtitle,cls:"tasks-backlog-location",attr:{title:e.subtitle}})}this.draggable=new VE(t,{itemSelector:".tasks-backlog-item"})}showTaskContextMenu(e,t){e.preventDefault();let n=new JM.Menu,r=!1;t.provider.openTaskBacklogItem&&(n.addItem(e=>{e.setTitle(Ce("ui.view.contextMenu.goToNote")).setIcon("file-text").onClick(()=>{t.provider.openTaskBacklogItem?.(t.id)})}),r=!0),t.provider.deleteTaskBacklogItem&&(n.addItem(e=>{e.setTitle(Ce("ui.view.contextMenu.delete")).setIcon("trash-2").onClick(()=>{this.deleteTask(t)})}),r=!0),r||n.addItem(e=>{e.setTitle(Ce("ui.view.contextMenu.noActions")).setIcon("info").setDisabled(!0)}),n.showAtMouseEvent(e)}async deleteTask(e){if(e.provider.deleteTaskBacklogItem)try{await e.provider.deleteTaskBacklogItem(e.id),await this.loadTasks(),this.render(),this.app.workspace.trigger("full-calendar:backlog-changed")}catch(e){console.warn("[EmbeddedTaskBacklog] Failed to delete task.",e)}}async setTaskCompleted(e,t){if(!e.provider.setTaskBacklogItemComplete)return void(t.checked=e.completed);t.disabled=!0;let n=t.checked,r=e.completed;try{if(!await e.provider.setTaskBacklogItemComplete(e.id,n))return t.checked=r,void(t.disabled=!1);e.completed=n,await this.loadTasks(),this.render(),this.app.workspace.trigger("full-calendar:backlog-changed")}catch(e){console.warn("[EmbeddedTaskBacklog] Failed to update task completion.",e),t.checked=r,t.disabled=!1}}renderPaginationControls(e){let t=Math.ceil(this.filteredTasks.length/this.TASKS_PER_PAGE);if(t<=1)return;let n=e.createDiv({cls:"tasks-backlog-pagination"}),r=n.createEl("button",{text:Ce("settings.taskBacklog.paginationPrevious"),cls:"tasks-backlog-nav-btn"});r.disabled=1===this.currentPage,r.addEventListener("click",()=>this.goToPreviousPage()),n.createSpan({text:Ce("settings.taskBacklog.paginationPage",{current:this.currentPage,total:t}),cls:"tasks-backlog-page-info"});let a=n.createEl("button",{text:Ce("settings.taskBacklog.paginationNext"),cls:"tasks-backlog-nav-btn"});a.disabled=this.currentPage===t,a.addEventListener("click",()=>this.goToNextPage()),this.currentPage<t&&n.createEl("button",{text:Ce("settings.taskBacklog.loadMore",{count:Math.min(this.TASKS_PER_PAGE,this.filteredTasks.length-this.currentPage*this.TASKS_PER_PAGE)}),cls:"tasks-backlog-load-more"}).addEventListener("click",()=>this.loadMore())}goToPreviousPage(){this.currentPage>1&&(this.currentPage--,this.updateDisplayedTasks(),this.render())}goToNextPage(){let e=Math.ceil(this.filteredTasks.length/this.TASKS_PER_PAGE);this.currentPage<e&&(this.currentPage++,this.updateDisplayedTasks(),this.render())}loadMore(){let e=this.currentPage*this.TASKS_PER_PAGE+this.TASKS_PER_PAGE;this.displayedTasks=this.filteredTasks.slice(0,e),this.render()}async createTask(){let e=this.newTaskTitle.trim();if(!e||this.isCreatingTask)return;let t=this.getBacklogProviders().find(e=>e.getTaskBacklogInfo().id===this.selectedProviderId);if(t?.createTaskBacklogItem){this.isCreatingTask=!0,this.render();try{await t.createTaskBacklogItem(e),this.newTaskTitle="",await this.loadTasks(),this.app.workspace.trigger("full-calendar:backlog-changed")}catch(e){console.warn("[EmbeddedTaskBacklog] Failed to create task.",e)}finally{this.isCreatingTask=!1,this.render(),this.backlogWrapper.querySelector(".tasks-backlog-new-title")?.focus()}}}}});function jE({value:e,onChange:t,readOnly:n,placeholder:r,required:a}){return Rt("input",{type:"text",value:e||"",onChange:e=>t(e.target.value),readOnly:n,placeholder:r,required:a})}var wae=kr(()=>{Z0()});function Qwe({value:e,onChange:t,directories:n,readOnly:r}){if(r)return Rt(jE,{value:e||"",onChange:()=>{},readOnly:!0});let a=[...n];return a.sort(),Rt("select",{required:!0,value:e||"",onChange:e=>t(e.target.value),children:[Rt("option",{value:"",disabled:!0,hidden:!0,children:"Choose a directory"}),a.map((e,t)=>Rt("option",{value:e,children:e},t))]})}var tOe,eOe=kr(()=>{wae(),Z0()}),rOe=kr(()=>{h1(),eOe(),Zo(),nW(),Z0(),tOe=({config:e,onConfigChange:t,context:n,onSave:r,onClose:a})=>{let[i,o]=Li(e.directory||""),[s,l]=Li(e.template||""),[c,u]=Li(e.taskCompletionStyle||"datetime"),[d,p]=Li(!1);return Rt("form",{onSubmit:t=>{t.preventDefault(),i&&(p(!0),r({...e,id:e.id||"",directory:i,template:s,taskCompletionStyle:c}))},children:[Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("settings.calendars.fullNote.directory.label")}),Rt("div",{className:"setting-item-description",children:Ce("settings.calendars.fullNote.directory.description")})]}),Rt("div",{className:"setting-item-control",children:Rt(Qwe,{value:i,onChange:n=>{o(n),t({...e,directory:n})},directories:n.allDirectories})})]}),Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("settings.calendars.fullNote.template.label")}),Rt("div",{className:"setting-item-description",children:Ce("settings.calendars.fullNote.template.description")})]}),Rt("div",{className:"setting-item-control",children:Rt("textarea",{value:s,placeholder:gM.DEFAULT_TEMPLATE,onChange:n=>{let r=n.target.value;l(r),t({...e,template:r})},rows:8,cols:50,style:{width:"100%"}})})]}),Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("settings.calendars.fullNote.taskCompletionStyle.label")}),Rt("div",{className:"setting-item-description",children:Ce("settings.calendars.fullNote.taskCompletionStyle.description")})]}),Rt("div",{className:"setting-item-control",children:Rt("select",{className:"dropdown",value:c,onChange:n=>{let r=n.target.value;u(r),t({...e,taskCompletionStyle:r})},children:[Rt("option",{value:"datetime",children:Ce("settings.calendars.fullNote.taskCompletionStyle.options.datetime")}),Rt("option",{value:"boolean",children:Ce("settings.calendars.fullNote.taskCompletionStyle.options.boolean")})]})})]}),Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info"}),Rt("div",{className:"setting-item-control",children:Rt("button",{className:"mod-cta",type:"submit",disabled:d||!i,children:Ce("ui.buttons.addCalendar")})})]})]})}});function zPt(e){return"recurring"!==e?.type?"none":e.daysOfWeek&&e.daysOfWeek.length>0?"weekly":e.month?"yearly":e.dayOfMonth?"monthly":"none"}var nOe,Oae,MPt,xPt,_Pt,Tae,iOe,s8,oOe,bB,yB,aOe=kr(()=>{Lu(),h1(),h1(),ore(),Wb(),Zo(),nOe=require("obsidian"),Wo(),Z0(),Oae=({name:e})=>{let t=qf(null);return vu(()=>{t.current&&(0,nOe.setIcon)(t.current,e)},[e]),Rt("div",{ref:t,className:"edit-event-icon"})},MPt=({code:e,label:t,isSelected:n,onClick:r})=>Rt("button",{type:"button",className:"ofc-day-choice-button "+(n?"is-selected":""),onClick:()=>r(e),children:Rt("b",{children:t[0]})}),xPt=()=>({U:Ce("settings.weekdays.sunday"),M:Ce("settings.weekdays.monday"),T:Ce("settings.weekdays.tuesday"),W:Ce("settings.weekdays.wednesday"),R:Ce("settings.weekdays.thursday"),F:Ce("settings.weekdays.friday"),S:Ce("settings.weekdays.saturday")}),_Pt=({value:e,onChange:t})=>{let n=xPt();return Rt("div",{children:Object.entries(n).map(([n,r])=>Rt(MPt,{code:n,label:r,isSelected:e.includes(n),onClick:()=>e.includes(n)?t(e.filter(e=>e!==n)):t([n,...e])},n))})},Tae=({initialEvent:e,submit:t,open:n,deleteEvent:r,calendars:a,defaultCalendarIndex:i,availableCategories:o=[],enableCategory:s,enableBackgroundEvents:l=!1,enableReminders:c,onAttemptEditInherited:u,mode:d})=>{let p=!!e?.recurringEventId,h=Ce("modals.editEvent.tooltips.inheritedProperty"),[f,m]=Li(e?"single"===e.type?e.date:"recurring"===e.type?e.startRecur:"rrule"===e.type?e.startDate:"":""),[g]=Li(e&&"single"===e.type?e.endDate:void 0),[y,b]=Li(!1===e?.allDay&&e.startTime||""),[v,M]=Li(!1===e?.allDay&&e.endTime||""),[x,z]=Li(e?.title||""),[_,A]=Li(e?.category||""),[O,w]=Li(e?.location||""),[k,T]=Li(e?.description||""),[S,C]=Li(zPt(e)),E="none"!==S,[q,D]=Li(e?.allDay||!1),[R,L]=Li(i),[I,W]=Li("single"===e?.type&&void 0!==e.completed&&null!==e.completed||"recurring"===e?.type&&e.isTask||"rrule"===e?.type&&e.isTask||!1),[N,P]=Li("single"===e?.type&&e.completed),[B,F]=Li("recurring"===e?.type&&e.daysOfWeek||[]),[j,U]=Li("recurring"===e?.type?e.endRecur:void 0),[V,H]=Li("recurring"===e?.type&&e.repeatInterval||1),[X,G]=Li(void 0!==e?.notify?.value?e.notify.value:""),[Y,Z]=Li(void 0!==e?.alarms?.[0]?.minutesBefore?e.alarms[0].minutesBefore:void 0!==e?.notify?.value?e.notify.value:""),[$,J]=Li("recurring"===e?.type&&e.repeatOn?"onThe":"dayOfMonth"),[Q,K]=Li("recurring"===e?.type&&e.repeatOn?.week||1),[ee,te]=Li("recurring"===e?.type&&e.repeatOn?.weekday||0),ne="inverse-background"===e?.display?"auto":e?.display??"auto",[re,ae]=Li(ne),ie=qf(null);vu(()=>{ie.current&&ie.current.focus()},[ie]);let oe=a[R],se="dailynote"===oe.type,le=Qe.getProviderRegistry().getInstance(oe.id),ce=!(!le||!("taskCompletionStyle"in le)||"boolean"!==le.taskCompletionStyle),ue=!!Qe.getProviderRegistry().getInstance(oe.id)?.getCapabilities().supportsAlarms,de=se?Ce("modals.editEvent.tooltips.dailyNoteRecurring"):"";vu(()=>{se&&C("none")},[se]);return Rt("div",{className:"full-calendar-edit-modal",children:Rt("form",{onSubmit:n=>{(async n=>{n.preventDefault();let r=null;I&&(r=N||!1);let a,i,o,l=q?{allDay:!0}:{allDay:!1,startTime:y||"",endTime:v||null};if("none"===S)a={type:"single",date:f||"",endDate:g||null,completed:r};else{let t={type:"recurring",startRecur:f||void 0,endRecur:j,isTask:I,skipDates:"recurring"===e?.type?e.skipDates:[],repeatInterval:V>1?V:void 0};if("weekly"===S)t.daysOfWeek=B;else if("monthly"===S&&f)"onThe"===$?(t.repeatOn={week:Q,weekday:ee},t.dayOfMonth=void 0):(t.dayOfMonth=Fn.fromISO(f).day,t.repeatOn=void 0);else if("yearly"===S&&f){let e=Fn.fromISO(f);t.month=e.month,t.dayOfMonth=e.day}a=t}if(s){let e=yze(x);i=e.subCategory,o=e.title}else i=void 0,o=x;let c={title:o,category:_||void 0,display:"auto"!==re?re:void 0,subCategory:i,location:O||void 0,description:k||void 0,notify:""!==X?{value:Number(X)}:void 0,alarms:ue&&""!==Y?[{minutesBefore:Number(Y),action:"DISPLAY"}]:void 0,...l,...a};await t(c,R)})(n)},children:[Rt("div",{className:"modal-header",children:[Rt("h2",{children:Ce("edit"===d?"modals.editEvent.title.edit":"modals.editEvent.title.new")}),n&&Rt("button",{type:"button",className:"mod-subtle",onClick:()=>{n()},children:Ce("modals.editEvent.buttons.openNote")})]}),Rt("div",{className:"premium-title-item",children:Rt("div",{className:"ofc-premium-title-wrap "+(p?"is-override-disabled":""),onClick:p?u:void 0,title:p?h:"",children:Rt("input",{ref:ie,type:"text",value:x,placeholder:Ce("modals.editEvent.fields.title.placeholder")||"Event Title",required:!0,onChange:e=>z(e.target.value),readOnly:p,className:"ofc-premium-title-input"})})}),Rt("div",{className:"ofc-premium-fields-row",children:[s&&Rt("div",{className:"premium-field-col",children:Rt("div",{className:"ofc-premium-input-wrap "+(p?"is-override-disabled":""),onClick:p?u:void 0,title:p?h:"",children:[Rt(Oae,{name:"tag"}),Rt(BW,{id:"category-autocomplete",value:_,onChange:A,suggestions:o,placeholder:Ce("modals.editEvent.fields.category.placeholder")||"Category (optional)",readOnly:p})]})}),Rt("div",{className:"premium-field-col",children:Rt("div",{className:"ofc-premium-input-wrap",children:[Rt(Oae,{name:"map-pin"}),Rt("input",{type:"text",value:O,placeholder:Ce("modals.editEvent.fields.location.placeholder")||"Add location...",onChange:e=>w(e.target.value)})]})})]}),Rt("div",{className:"premium-field-full",children:Rt("div",{className:"ofc-premium-input-wrap ofc-premium-textarea-wrap",children:[Rt(Oae,{name:"align-left"}),Rt("textarea",{value:k,placeholder:Ce("modals.editEvent.fields.description.placeholder")||"Add description...",onChange:e=>T(e.target.value),rows:3})]})}),Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:Rt("div",{className:"setting-item-name",children:Ce("modals.editEvent.fields.inCalendar.label")})}),Rt("div",{className:"setting-item-control",children:Rt("select",{value:R,onChange:e=>L(parseInt(e.target.value)),children:a.map((e,t)=>Rt("option",{value:t,children:e.name},t))})})]}),Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:Rt("div",{className:"setting-item-name",children:Ce("modals.editEvent.fields.date.label")})}),Rt("div",{className:"setting-item-control",children:Rt("input",{type:"date",value:f,required:!0,onChange:e=>m(e.target.value)})})]}),Rt("div",{className:"setting-item time-setting-item "+(q?"is-disabled":""),children:[Rt("div",{className:"setting-item-info",children:Rt("div",{className:"setting-item-name",children:Ce("modals.editEvent.fields.time.label")})}),Rt("div",{className:"setting-item-control time-group",children:[Rt("div",{className:"ofc-time-inputs-wrap",children:[Rt("input",{type:"time",value:y,required:!q,disabled:q,onChange:e=>b(e.target.value)}),Rt("span",{children:"➔"}),Rt("input",{type:"time",value:v,disabled:q,onChange:e=>M(e.target.value)})]}),Rt("label",{className:"all-day-toggle-label "+(q?"is-checked":""),title:p?h:"",children:[Rt("input",{type:"checkbox",checked:q,onChange:e=>D(e.target.checked),disabled:p}),Rt("span",{children:Ce("modals.editEvent.fields.options.allDay")})]})]})]}),Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:Rt("div",{className:"setting-item-name",children:Ce("modals.editEvent.fields.options.label")})}),Rt("div",{className:"setting-item-control options-group",children:[Rt("label",{children:[Rt("input",{type:"checkbox",checked:I,onChange:e=>W(e.target.checked)}),Rt("span",{children:[" ",Ce("modals.editEvent.fields.options.isTask")]})]}),I&&Rt("label",{title:E?Ce("modals.editEvent.tooltips.recurringTaskCompletion"):"",children:[Rt("input",{type:"checkbox",checked:!E&&!!N,onChange:e=>!E&&P(!!e.target.checked&&(!!ce||Fn.now().toISO())),disabled:E}),Rt("span",{children:[" ",Ce("modals.editEvent.fields.options.completed")]})]})]})]}),c&&Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:Rt("div",{className:"setting-item-name",children:Ce("modals.editEvent.fields.notification.label")})}),Rt("div",{className:"setting-item-control ofc-notify-group",children:[Rt("label",{className:"ofc-notify-field",children:[Rt("span",{children:"Obsidian reminder"}),Rt("input",{type:"number",min:"0",max:"1440",placeholder:"Minutes before start",value:X,onChange:e=>G(e.target.value),title:"Minutes before the event starts"})]}),ue&&Rt("label",{className:"ofc-notify-field",children:[Rt("span",{children:"Calendar provider reminder"}),Rt("input",{type:"number",min:"0",max:"10080",placeholder:"Minutes before start",value:Y,onChange:e=>Z(e.target.value),title:"Minutes before the event starts"})]}),Rt("select",{onChange:e=>{let t=e.target.value;t&&(G(t),ue&&Z(t))},value:"",title:"Reminder time preset",children:[Rt("option",{value:"",disabled:!0,children:"Preset"}),Rt("option",{value:"30",children:Ce("modals.editEvent.fields.notification.presets.30m")}),Rt("option",{value:"60",children:Ce("modals.editEvent.fields.notification.presets.1h")}),Rt("option",{value:"360",children:Ce("modals.editEvent.fields.notification.presets.6h")}),Rt("option",{value:"720",children:Ce("modals.editEvent.fields.notification.presets.12h")}),Rt("option",{value:"1440",children:Ce("modals.editEvent.fields.notification.presets.24h")})]})]})]}),Rt("details",{className:"ofc-advanced-options-details",children:[Rt("summary",{children:Ce("modals.editEvent.advancedOptions")||"Advanced Options"}),Rt("div",{className:"ofc-advanced-options-content",children:[l&&Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",title:Ce("modals.editEvent.fields.display.tooltip")||"Choose how this event appears on the calendar",children:Rt("div",{className:"setting-item-name",children:Ce("modals.editEvent.fields.display.label")})}),Rt("div",{className:"setting-item-control "+(p?"is-override-disabled":""),onClick:p?u:void 0,title:p?h:"",children:Rt("select",{value:re,onChange:e=>ae(e.target.value),disabled:p,children:[Rt("option",{value:"auto",children:Ce("modals.editEvent.fields.display.options.auto")}),Rt("option",{value:"background",children:Ce("modals.editEvent.fields.display.options.background")}),Rt("option",{value:"none",children:Ce("modals.editEvent.fields.display.options.none")})]})})]}),Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:Rt("div",{className:"setting-item-name",children:Ce("modals.editEvent.fields.repeats.label")})}),Rt("div",{className:"setting-item-control",children:Rt("select",{value:S,onChange:e=>C(e.target.value),disabled:se,title:de,children:[Rt("option",{value:"none",children:Ce("modals.editEvent.fields.repeats.options.none")}),Rt("option",{value:"weekly",children:Ce("modals.editEvent.fields.repeats.options.weekly")}),Rt("option",{value:"monthly",children:Ce("modals.editEvent.fields.repeats.options.monthly")}),Rt("option",{value:"yearly",children:Ce("modals.editEvent.fields.repeats.options.yearly")})]})})]}),E&&Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info"}),Rt("div",{className:"setting-item-control u-flex-align-center u-gap-8px",children:[Rt("span",{children:Ce("modals.editEvent.fields.repeats.repeatEvery")}),Rt("input",{type:"number",min:"1",value:V,onChange:e=>H(parseInt(e.target.value,10)||1),className:"u-w-60px"}),Rt("span",{children:["weekly"===S&&Ce(V>1?"modals.editEvent.fields.repeats.weeks":"modals.editEvent.fields.repeats.week"),"monthly"===S&&Ce(V>1?"modals.editEvent.fields.repeats.months":"modals.editEvent.fields.repeats.month"),"yearly"===S&&Ce(V>1?"modals.editEvent.fields.repeats.years":"modals.editEvent.fields.repeats.year")]})]})]}),E&&Rt(Pu,{children:["weekly"===S&&Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:Rt("div",{className:"setting-item-name",children:Ce("modals.editEvent.fields.repeats.repeatOn")})}),Rt("div",{className:"setting-item-control",children:Rt(_Pt,{value:B,onChange:F})})]}),"monthly"===S&&f&&Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info"}),Rt("div",{className:"setting-item-control u-display-block",children:[Rt("div",{children:[Rt("input",{type:"radio",id:"monthly-day-of-month",name:"monthly-mode",value:"dayOfMonth",checked:"dayOfMonth"===$,onChange:()=>J("dayOfMonth")}),Rt("label",{htmlFor:"monthly-day-of-month",children:[" ",Ce("modals.editEvent.fields.repeats.onDay",{day:Fn.fromISO(f).day})]})]}),Rt("div",{className:"u-flex-align-center u-gap-8px u-mt-8px",children:[Rt("input",{type:"radio",id:"monthly-on-the",name:"monthly-mode",value:"onThe",checked:"onThe"===$,onChange:()=>J("onThe")}),Rt("label",{htmlFor:"monthly-on-the",children:Ce("modals.editEvent.fields.repeats.onThe")}),Rt("select",{value:Q,onChange:e=>K(parseInt(e.target.value,10)),disabled:"onThe"!==$,children:[Rt("option",{value:"1",children:Ce("modals.editEvent.fields.repeats.ordinal.first")}),Rt("option",{value:"2",children:Ce("modals.editEvent.fields.repeats.ordinal.second")}),Rt("option",{value:"3",children:Ce("modals.editEvent.fields.repeats.ordinal.third")}),Rt("option",{value:"4",children:Ce("modals.editEvent.fields.repeats.ordinal.fourth")}),Rt("option",{value:"-1",children:Ce("modals.editEvent.fields.repeats.ordinal.last")})]}),Rt("select",{value:ee,onChange:e=>te(parseInt(e.target.value,10)),disabled:"onThe"!==$,children:[Ce("settings.weekdays.sunday"),Ce("settings.weekdays.monday"),Ce("settings.weekdays.tuesday"),Ce("settings.weekdays.wednesday"),Ce("settings.weekdays.thursday"),Ce("settings.weekdays.friday"),Ce("settings.weekdays.saturday")].map((e,t)=>Rt("option",{value:t,children:e},t))})]})]})]}),"yearly"===S&&f&&Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info"}),Rt("div",{className:"setting-item-control",children:Ce("modals.editEvent.fields.repeats.yearlyText",{date:Fn.fromISO(f).toFormat("MMMM d")})})]}),Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:Rt("div",{className:"setting-item-name",children:Ce("modals.editEvent.fields.repeats.endRepeat")})}),Rt("div",{className:"setting-item-control",children:Rt("input",{type:"date",value:j||"",onChange:e=>U(e.target.value||void 0)})})]})]})]})]}),Rt("div",{className:"modal-footer",children:[Rt("div",{className:"footer-actions-left",children:r&&Rt("button",{type:"button",className:"mod-warning",onClick:()=>{r()},children:Ce("modals.editEvent.buttons.delete")||"Delete"})}),Rt("div",{className:"footer-actions-right",children:Rt("button",{type:"submit",className:"mod-cta",children:Ce("modals.editEvent.buttons.save")||"Save Event"})})]})]})})}}),sOe=kr(()=>{h1(),Zo(),Lu(),iOe=require("obsidian"),AM(),Z0(),s8=({name:e})=>{let t=qf(null);return vu(()=>{t.current&&(0,iOe.setIcon)(t.current,e)},[e]),Rt("div",{ref:t,className:"event-details-icon"})},oOe=({event:e,calendarName:t,location:n,onClose:r,onOpenNote:a})=>{let[i,o]=Li(!1),[s,l]=Li([]);vu(()=>{if(i&&"rrule"===e.type&&e.rrule)try{let t=th(e.rrule).between(new Date,new Date(Date.now()+63072e6),!0,(e,t)=>t<5);l(t)}catch(e){console.error("Failed to parse RRULE",e)}},[i,e]);let c=e=>Fn.fromISO(e).toLocaleString({weekday:"short",year:"numeric",month:"2-digit",day:"2-digit"}),u=e=>Fn.fromJSDate(e).toLocaleString({weekday:"short",year:"numeric",month:"2-digit",day:"2-digit"}),d=e=>Fn.fromFormat(e,"HH:mm").toLocaleString(Fn.TIME_SIMPLE),p="single"===e.type?c(e.date):"recurring"===e.type&&e.startRecur?c(e.startRecur):"rrule"===e.type?c(e.startDate):"",h=e.allDay?Ce("modals.editEvent.fields.options.allDay"):`${e.startTime?d(e.startTime):""} - ${e.endTime?d(e.endTime):""}`,f="rrule"===e.type||"recurring"===e.type;return Rt("div",{className:"full-calendar-event-details",children:[Rt("div",{className:"modal-header event-details-header",children:[Rt("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[Rt("div",{className:"event-details-icon-box",children:Rt(s8,{name:"calendar"})}),Rt("h2",{className:"event-details-title",children:e.title||Ce("modals.editEvent.title.edit")})]}),a&&Rt("button",{type:"button",className:"mod-subtle fc-open-note-btn",onClick:a,children:Ce("modals.editEvent.buttons.openNote")})]}),Rt("div",{className:"event-details-row",children:[Rt(s8,{name:"clock"}),Rt("div",{className:"event-details-content",children:[Rt("span",{children:[p," ",h]}),f&&Rt("span",{className:"event-details-action",onClick:()=>o(!i),children:[Rt(s8,{name:"refresh-ccw"}),i?"Hide series":"View series"]})]})]}),i&&s.length>0&&Rt("div",{className:"event-details-row",children:[Rt("div",{className:"event-details-icon"})," ",Rt("div",{className:"event-details-content",children:Rt("div",{className:"ofc-upcoming-instances",children:[Rt("strong",{children:"Upcoming Instances:"}),Rt("ul",{children:s.map((e,t)=>Rt("li",{children:u(e)},t))})]})})]}),(e.url||n&&n.path)&&Rt("div",{className:"event-details-row",children:[Rt(s8,{name:"map-pin"}),Rt("div",{className:"event-details-content",children:[e.url&&Rt("div",{style:{marginBottom:n&&n.path?"8px":"0px"},children:Rt("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"event-link",children:e.url})}),n&&n.path&&Rt("span",{className:"u-selectable u-clickable-accent",onClick:a,children:n.path})]})]}),e.description&&Rt("div",{className:"event-details-row",children:[Rt(s8,{name:"align-left"}),Rt("div",{className:"event-details-content description",children:e.description.split("\n").map((e,t)=>Rt(Pu,{children:[e,Rt("br",{})]},t))})]}),Rt("div",{className:"event-details-row",children:[Rt(s8,{name:"calendar-days"}),Rt("div",{className:"event-details-content",children:Rt("span",{className:"ofc-u-muted",children:t})})]}),Rt("hr",{className:"modal-hr"}),Rt("div",{className:"modal-footer",children:Rt("div",{className:"footer-actions-right",style:{marginLeft:"auto"},children:Rt("button",{type:"button",className:"mod-cta",onClick:r,children:"Close"})})})]})}}),lOe=kr(()=>{bB=require("obsidian"),yB=class extends bB.Modal{constructor(e,t,n,r){super(e),this.titleText=t,this.bodyText=n,this.onConfirm=r}onOpen(){this.modalEl.addClass("full-calendar-confirm-modal");let{contentEl:e}=this;e.createEl("h2",{text:this.titleText}),e.createEl("p",{text:this.bodyText}),new bB.Setting(e).addButton(e=>e.setButtonText("Yes, open parent").setCta().onClick(()=>{this.close(),this.onConfirm()})).addButton(e=>e.setButtonText("Cancel").onClick(()=>this.close()))}onClose(){this.contentEl.empty()}}}),GE={};function kae(e,t,n){let r=Qe.getProviderRegistry().getAllSources().filter(e=>"FOR_TEST_ONLY"!==e.type).map(e=>{let t=Qe.getProviderRegistry().getInstance(e.id);return t&&t.getCapabilities().canCreate?{id:e.id,type:e.type,name:e.name||""}:null}).filter(e=>!!e);if(0===r.length)return void Na(Ce("modals.editEvent.errors.createNoCalendars"));let a=n?r.findIndex(({id:e})=>e===n):0,i=-1===a?0:a,o=Qe.getCache().getAllCategories();new Mv(e.app,e=>Promise.resolve(io(Tae,{initialEvent:t,calendars:r,defaultCalendarIndex:i,availableCategories:o,enableCategory:Qe.getSettings().enableAdvancedCategorization,enableBackgroundEvents:Qe.getSettings().enableBackgroundEvents,enableReminders:Qe.getSettings().enableReminders,submit:async(t,n)=>{let a=r[n].id;try{await Qe.getCache().addEvent(a,t)}catch(e){e instanceof Error&&(Na(Ce("modals.editEvent.errors.createError",{message:e.message})),console.error(e))}e()},mode:"create"}))).open()}function l8(e,t,n){let r=Qe.getCache().getEventById(t);if(!r)throw new Error("Cannot edit event that doesn't exist.");let a=Qe.getCache().store.getEventDetails(t);if(!a)throw new Error(`Cannot edit event with ID ${t} that doesn't exist in the store.`);let i=a.calendarId,o=a.location,s=Qe.getProviderRegistry().getInstance(i);if(s&&"linkedNoteIndex"in s&&s.linkedNoteIndex){let e=s.linkedNoteIndex.getFileForEvent(r.uid||"",n);e?o={path:e.path,lineNumber:void 0}:n&&(o=null)}let l=Qe.getProviderRegistry().getAllSources().filter(e=>"FOR_TEST_ONLY"!==e.type).map(e=>{let t=Qe.getProviderRegistry().getInstance(e.id);if(!t)return null;let n=t.getCapabilities();return n.canEdit||n.canCreate?{id:e.id,type:e.type,name:e.name||""}:null}).filter(e=>!!e),c=l.findIndex(({id:e})=>e===i),u=Qe.getCache().getAllCategories();new Mv(e.app,s=>Promise.resolve(io(Tae,{initialEvent:r,calendars:l,defaultCalendarIndex:c,availableCategories:u,enableCategory:Qe.getSettings().enableAdvancedCategorization,enableBackgroundEvents:Qe.getSettings().enableBackgroundEvents,enableReminders:Qe.getSettings().enableReminders,submit:async(e,n)=>{try{let r=l[n].id;r!==a.calendarId?await Qe.getCache().moveEventToCalendar(t,r,e):await Qe.getCache().updateEventWithId(t,e)}catch(e){e instanceof Error&&(Na(Ce("modals.editEvent.errors.updateError",{message:e.message})),console.error(e))}s()},open:async()=>{if(o){let t=e.app.vault.getAbstractFileByPath(o.path);t instanceof Sae.TFile&&await e.app.workspace.getLeaf(!0).openFile(t)}else await Y5(e,i,r,!0,n);s()},deleteEvent:async()=>{try{await Qe.getCache().deleteEvent(t,{instanceDate:n}),s()}catch(e){e instanceof Error&&(Na(Ce("modals.editEvent.errors.deleteError",{message:e.message})),console.error(e))}},onAttemptEditInherited:()=>{new yB(e.app,Ce("modals.editEvent.confirmations.editParentTitle"),Ce("modals.editEvent.confirmations.editParentMessage"),()=>{(async()=>{if("single"===r.type&&r.recurringEventId){let t=r.recurringEventId,n=`${i}::${t}`,a=await Qe.getCache().getSessionId(n);a?(s(),l8(e,a)):Na(Ce("modals.editEvent.errors.parentNotFound"))}})()}).open()},mode:"edit"}))).open()}function APt(e,t,n){let r=Qe.getCache().getEventById(t);if(!r)return void Na(Ce("modals.editEvent.errors.eventNotFound"));let a=Qe.getCache().store.getEventDetails(t);if(!a)return void Na(Ce("modals.editEvent.errors.detailsNotFound"));let i=a.calendarId,o=Qe.getProviderRegistry().getSource(i),s=o&&o.name?o.name:Ce("modals.editEvent.misc.unknownCalendar"),l=a.location,c=Qe.getProviderRegistry().getInstance(i);if(c&&"linkedNoteIndex"in c&&c.linkedNoteIndex){let e=c.linkedNoteIndex.getFileForEvent(r.uid||r.id||"",n);e?l={path:e.path,lineNumber:void 0}:n&&(l=null)}new Mv(e.app,t=>{let a=c&&"function"==typeof c.createLinkedNote,o=a||l?()=>{(async()=>{if(t(),l){let t=e.app.vault.getAbstractFileByPath(l.path);t instanceof Sae.TFile&&await e.app.workspace.getLeaf(!0).openFile(t)}else a&&await Y5(e,i,r,!1,n)})()}:void 0;return Promise.resolve(io(oOe,{event:r,calendarName:s,location:l,onClose:()=>t(),onOpenNote:o}))}).open()}Zs(GE,{launchCreateModal:()=>kae,launchEditModal:()=>l8,launchEventDetailsModal:()=>APt});var Sae,uz=kr(()=>{Fc(),Wo(),h1(),cC(),Sae=require("obsidian"),aOe(),sOe(),lOe(),pT(),Zo()});function MB(e){let t=activeDocument.createElement("span");return t.addClass("fc-lp-color-dot"),t.style.backgroundColor=e,t}function XE(e,t){let n=activeDocument.createElement("span");return n.addClass("fc-lp-category-pill"),n.setText(e),t&&(n.style.borderColor=t,n.style.color=t),n}function YE(e,t,n){let r=activeDocument.createElement("button");return r.addClass("fc-lp-icon-button"),r.setAttribute("aria-label",t),(0,cOe.setIcon)(r,e),r.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),n(e)}),r}function uOe(e,t){let n=activeDocument.createElement("input");return n.type="checkbox",n.checked=e,n.addClass("task-list-item-checkbox"),n.addEventListener("click",e=>{e.stopPropagation(),t(e)}),n}var cOe,_B,dOe,Eae,xB,Cae=kr(()=>{cOe=require("obsidian")}),fOe=kr(()=>{_B=require("@codemirror/view"),dOe=require("@codemirror/state"),Wo(),uz(),Cae(),Eae=class extends _B.WidgetType{constructor(e,t,n,r,a,i,o,s,l,c,u){super(),this.eventId=e,this.color=t,this.calendarName=n,this.title=r,this.date=a,this.startTime=i,this.endTime=o,this.category=s,this.subCategory=l,this.onEdit=c,this.onDelete=u}toDOM(e){let t=activeDocument.createElement("div");t.addClass("fc-lp-header-card"),t.style.setProperty("--calendar-color",this.color);let n=activeDocument.createElement("div");n.addClass("fc-lp-header-card-banner");let r=MB(this.color);n.appendChild(r);let a=activeDocument.createElement("span");a.addClass("fc-lp-header-card-cal-label"),a.setText(this.calendarName),n.appendChild(a),t.appendChild(n);let i=activeDocument.createElement("h1");i.addClass("fc-lp-header-card-title"),i.setText(this.title),t.appendChild(i);let o=activeDocument.createElement("div");o.addClass("fc-lp-header-card-details");let s=activeDocument.createElement("div");s.addClass("fc-lp-header-card-datetime");let l=this.date;this.startTime?(l+=` • ${this.startTime}`,this.endTime&&(l+=` - ${this.endTime}`)):l+=" • All Day",s.setText(l),o.appendChild(s);let c=activeDocument.createElement("div");c.addClass("fc-lp-header-card-badges"),this.category&&c.appendChild(XE(this.category,this.color)),this.subCategory&&c.appendChild(XE(this.subCategory)),o.appendChild(c),t.appendChild(o);let u=activeDocument.createElement("div");u.addClass("fc-lp-header-card-controls");let d=YE("pencil","Edit details",()=>this.onEdit());u.appendChild(d);let p=YE("trash","Delete event",()=>this.onDelete());return u.appendChild(p),t.appendChild(u),t}eq(e){return this.eventId===e.eventId&&this.color===e.color&&this.calendarName===e.calendarName&&this.title===e.title&&this.date===e.date&&this.startTime===e.startTime&&this.endTime===e.endTime&&this.category===e.category&&this.subCategory===e.subCategory}},xB=class{getDecorations(e,t){let n=new dOe.RangeSetBuilder,r=Qe.getCache();if(!r||!r.store)return n.finish();let a=r.store.getEventsInFile(t);if(0===a.length)return n.finish();let i=a[0];if(!i||!i.event)return n.finish();let o=i.calendarId;if(!o||0===e.doc.length)return n.finish();let s,l,c=Qe.getProviderRegistry().getSource(o),u=c?.name||"Local Notes",d=c?.color||"var(--interactive-accent)",p=i.event,h="";"single"===p.type&&(h=p.date||""),!1===p.allDay&&(s=p.startTime,l=p.endTime||void 0);let f=p.title||t.basename||"Untitled Event",m=_B.Decoration.widget({widget:new Eae(i.id,d,u,f,h,s,l,p.category,p.subCategory,()=>{l8(Qe.getPlugin(),i.id)},()=>{r.deleteEvent(i.id)}),side:-1,block:!0}),g=0;try{let t=e.doc;if(t.length>0&&"---"===t.line(1).text.trim()){let e=Math.min(t.lines,100);for(let n=2;n<=e;n++)if("---"===t.line(n).text.trim()){g=n<t.lines?t.line(n+1).from:t.line(n).to;break}}}catch{}try{let t=e.doc.length;g<0&&(g=0),g>t&&(g=t),n.add(g,g,m)}catch{}return n.finish()}}}),pOe={};Zs(pOe,{FullNoteProvider:()=>qae});var BA,wPt,OPt,TPt,hOe,qae,mOe=kr(()=>{Wo(),BA=require("obsidian"),h1(),Lu(),Gb(),wC(),rOe(),wte(),fOe(),nW(),wPt=({source:e})=>io("div",{className:"setting-item-control"},io("input",{disabled:!0,type:"text",value:(()=>{let t=e.directory,n=e.config?.directory;return"string"==typeof t?t:"string"==typeof n?n:""})(),className:"ofc-setting-input"})),OPt=(e,t)=>{if(e===t)return!0;if(null===e||null===t||void 0===e||void 0===t)return!1;if("object"==typeof e&&"object"==typeof t)try{return JSON.stringify(e)===JSON.stringify(t)}catch{return!1}return!1},TPt=(e,t)=>{let n={};return new Set([...Object.keys(e),...Object.keys(t)]).forEach(r=>{if("uid"===r)return;let a=e[r],i=t[r];OPt(a,i)||(n[r]=i)}),n},hOe=e=>{let{onSave:t,...n}=e;return io(tOe,{...n,onSave:e=>t(e)})},qae=class{constructor(e,t,n){if(this.type="local",this.displayName="Local Notes",this.isRemote=!1,this.loadPriority=10,this.#e=null,!n)throw new Error("FullNoteProvider requires an Obsidian app interface.");this.app=n,this.plugin=t,this.source=e}static{this.type="local"}static{this.displayName="Local Notes"}static getConfigurationComponent(){return hOe}get taskCompletionStyle(){return this.source.taskCompletionStyle||"datetime"}async toggleComplete(e,t){let n,r=Qe.getCache().getEventById(e);if(!r||"single"!==r.type)return!1;n=!!t&&("boolean"===this.taskCompletionStyle||(Fn.now().toISO()??""));let a={...r,completed:n};return await Qe.getCache().updateEventWithId(e,a),!0}getCapabilities(){return{canCreate:!0,canEdit:!0,canDelete:!0}}getEventHandle(e){if(e.uid)return{persistentId:e.uid};let t=Ate(e,Qe.getSettings());return{persistentId:(0,BA.normalizePath)(`${this.source.directory}/${t}`)}}computeSyncKey(e){if(e.uid)return e.uid;let t=Ate(e,Qe.getSettings());return(0,BA.normalizePath)(`${this.source.directory}/${t}`)}isFileRelevant(e){let t=this.source.directory;return!!t&&e.path.startsWith(`${t}/`)}async getEventsInFile(e){let t=await Mze(this.app,e);if(!t?.frontmatter)return[];let n=a2({...t.frontmatter,title:t.frontmatter.title||e.basename});return n?(n.uid=e.path,[[n,{file:e,lineNumber:void 0}]]):[]}async getEvents(e){let t=this.app.getAbstractFileByPath(this.source.directory);if(!(t&&t instanceof BA.TFolder))throw new Error(`${this.source.directory} is not a valid directory.`);let n=[];for(let e of t.children)if(e instanceof BA.TFile){let t=await this.getEventsInFile(e);n.push(...t)}return n}async createEvent(e){let t=xC(e,Qe.getSettings()),n=_C(this.app,this.source.directory,t),r=this.source.template||"",a=AC(r?gM.render(r,e,this.source.name||this.displayName):"",Aze(e)),i=await this.app.create(n,a);return[{...e,uid:i.path},{file:i,lineNumber:void 0}]}async updateEvent(e,t,n){let r=e.persistentId,a=this.app.getFileByPath(r);if(!a)throw new Error(`File ${r} not found.`);let i=xC(t,Qe.getSettings()),o=xC(n,Qe.getSettings()),s=r,l=a;if(i!==o){s=_C(this.app,this.source.directory,o),await this.app.rename(a,s);let e=await bze(this.app,s);if(!e)throw new Error(`File ${s} not found after rename.`);l=e}let c=TPt(t,n);return Object.keys(c).length>0&&await this.app.rewrite(l,e=>OM(e,c)),{file:{path:s},lineNumber:void 0}}async deleteEvent(e){let t=e.persistentId,n=this.app.getFileByPath(t);if(!n)throw new Error(`File ${t} not found.`);return this.app.delete(n)}createInstanceOverride(e,t,n){let r=this.getEventHandle(e)?.persistentId;if(!r)throw new Error("Could not get persistent ID for master event.");let a=r.split("/").pop();if(!a)throw new Error(`Could not extract filename from master event path: ${r}`);let i={...n,recurringEventId:a};return this.createEvent(i)}getConfigurationComponent(){return hOe}getSettingsRowComponent(){return wPt}#e;getEditorDecorator(){return this.#e||(this.#e=new xB),this.#e}}});function vOe({value:e,onChange:t,headings:n,readOnly:r}){return r?Rt("div",{className:"ofc-heading-setting-control",children:[Rt("span",{children:"Under heading"}),Rt(jE,{value:e||"",onChange:()=>{},readOnly:!0}),Rt("span",{className:"ofc-heading-setting-suffix",children:"in daily notes"})]}):n.length>0?Rt("select",{required:!0,value:e||"",onChange:e=>t(e.target.value),children:[Rt("option",{value:"",disabled:!0,hidden:!0,children:"Choose a heading"}),n.map((e,t)=>Rt("option",{value:e,children:e},t))]}):Rt(jE,{value:e||"",onChange:t,placeholder:"Enter heading name"})}var yOe,c8,MOe,Dae,zB,gOe=kr(()=>{wae(),Z0()}),bOe=kr(()=>{h1(),gOe(),qC(),Zo(),Z0(),yOe=({config:e,onConfigChange:t,context:n,onSave:r,onClose:a})=>{let[i,o]=Li(e.heading||""),[s,l]=Li(AT(e)),[c,u]=Li(!1);return Rt("form",{onSubmit:t=>{t.preventDefault(),i&&(u(!0),r({...e,id:e.id||"",heading:i,format:s}))},children:[Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("settings.calendars.dailyNote.heading.label")}),Rt("div",{className:"setting-item-description",children:Ce("settings.calendars.dailyNote.heading.description")})]}),Rt("div",{className:"setting-item-control",children:Rt(vOe,{value:i,onChange:n=>{o(n),t({...e,heading:n})},headings:n.headings})})]}),Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("settings.calendars.dailyNote.format.label")}),Rt("div",{className:"setting-item-description",children:Ce("settings.calendars.dailyNote.format.description")})]}),Rt("div",{className:"setting-item-control",children:Rt("select",{className:"dropdown",value:s,onChange:n=>{let r=n.target.value;l(r),t({...e,heading:i,format:r})},children:[Rt("option",{value:"default",children:Ce("settings.calendars.dailyNote.format.options.default")}),Rt("option",{value:"dayPlanner",children:Ce("settings.calendars.dailyNote.format.options.dayPlanner")})]})})]}),Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info"}),Rt("div",{className:"setting-item-control",children:Rt("button",{className:"mod-cta",type:"submit",disabled:c||!i,children:Ce("ui.buttons.addCalendar")})})]})]})}}),xOe=kr(()=>{c8=require("@codemirror/view"),MOe=require("@codemirror/state"),Wo(),uz(),Cae(),Dae=class extends c8.WidgetType{constructor(e,t,n,r,a,i,o,s,l,c){super(),this.text=e,this.eventId=t,this.color=n,this.title=r,this.startTime=a,this.endTime=i,this.category=o,this.completed=s,this.onToggleCheckbox=l,this.onEdit=c}toDOM(e){let t=activeDocument.createElement("span");if(t.addClass("fc-lp-inline-event-wrapper"),t.style.setProperty("--calendar-color",this.color),null!==this.completed){let e=uOe(this.completed,()=>this.onToggleCheckbox());t.appendChild(e)}let n=MB(this.color);if(t.appendChild(n),this.startTime){let e=activeDocument.createElement("span");e.addClass("fc-lp-inline-event-time"),e.setText(this.endTime?`${this.startTime} - ${this.endTime}`:this.startTime),t.appendChild(e)}let r=activeDocument.createElement("span");if(r.addClass("fc-lp-inline-event-title"),r.setText(this.title),this.completed&&r.addClass("is-completed"),t.appendChild(r),this.category){let e=XE(this.category,this.color);t.appendChild(e)}let a=activeDocument.createElement("span");a.addClass("fc-lp-inline-event-controls");let i=YE("pencil","Edit event",()=>this.onEdit());return a.appendChild(i),t.appendChild(a),t}eq(e){return this.text===e.text&&this.eventId===e.eventId&&this.color===e.color&&this.title===e.title&&this.startTime===e.startTime&&this.endTime===e.endTime&&this.category===e.category&&this.completed===e.completed}},zB=class{getDecorations(e,t){let n=new MOe.RangeSetBuilder,r=Qe.getCache();if(!r||!r.store)return n.finish();let a=r.store.getEventsInFile(t);if(0===a.length)return n.finish();let i=new Map;for(let e of a)e.location&&void 0!==e.location.lineNumber&&i.set(e.location.lineNumber,e);let o=e.selection.main,s=e.doc.lineAt(o.head).number,l=[];for(let[t,n]of i.entries()){let a=t+1;if(a===s||a>e.doc.lines||a<1)continue;let i=e.doc.line(a),o=n.calendarId,c=Qe.getProviderRegistry().getSource(o)?.color||"var(--interactive-accent)",u=n.event.allDay?void 0:n.event.startTime,d=n.event.allDay?void 0:n.event.endTime||void 0,p=null;"single"===n.event.type&&void 0!==n.event.completed&&null!==n.event.completed&&(p=!1!==n.event.completed);let h=c8.Decoration.widget({widget:new Dae(i.text,n.id,c,n.event.title,u,d,n.event.category,p,()=>{if("single"===n.event.type){let e=!1===n.event.completed,t={...n.event,completed:!!e&&"x"};r.updateEventWithId(n.id,t)}},()=>{l8(Qe.getPlugin(),n.id)}),side:-1}),f=c8.Decoration.mark({class:"fc-lp-hidden-text",attributes:{style:"display: none;"}});l.push({from:i.from,to:i.from,value:c8.Decoration.line({attributes:{class:"fc-lp-line-override",style:"display: flex; align-items: center; gap: 8px; padding-left: 0px; text-indent: 0px; margin-left: 0px; margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; min-height: 0px; line-height: 1.2;"}})}),l.push({from:i.from,to:i.to,value:f}),l.push({from:i.from,to:i.from,value:h})}l.sort((e,t)=>{if(e.from!==t.from)return e.from-t.from;let n=e.to===e.from,r=t.to===t.from;return n&&!r?-1:!n&&r?1:e.to-t.to});let c=-1;for(let e of l)if(e.from>=c)try{n.add(e.from,e.to,e.value),c=e.from}catch{}return n.finish()}}}),zOe={};Zs(zOe,{DailyNoteProvider:()=>Rae});var AB,ZE,SPt,kPt,CPt,_Oe,Rae,AOe=kr(()=>{AB=require("obsidian"),h1(),$5(),cre(),Wb(),qC(),bOe(),xOe(),ZE=AB.moment,SPt=1500,kPt=async(e,t,n=SPt)=>{let r=e.getMetadata(t);if(r)return r;try{return await Promise.race([e.waitForMetadata(t),new Promise(e=>window.setTimeout(()=>e(null),n))])}catch(e){return console.warn(`Full Calendar: Failed while waiting for metadata for daily note file "${t.path}".`,e),null}},CPt=({source:e})=>io("div",{className:"setting-item-control ofc-heading-setting-control"},io("span",{},"Under heading"),io("input",{disabled:!0,type:"text",value:(()=>{let t=e.heading,n=e.config?.heading;return"string"==typeof t?t:"string"==typeof n?n:""})(),className:"ofc-setting-input is-inline"}),io("span",{className:"ofc-heading-setting-suffix"},"in daily notes")),_Oe=e=>{let{onSave:t,...n}=e;return io(yOe,{...n,onSave:e=>t(e)})},Rae=class{constructor(e,t,n){if(this.type="dailynote",this.displayName="Daily Note",this.isRemote=!1,this.loadPriority=120,this.#e=null,!n)throw new Error("DailyNoteProvider requires an Obsidian app interface.");bW(),this.app=n,this.plugin=t,this.source={...e,format:AT(e)}}static{this.type="dailynote"}static{this.displayName="Daily Note"}static getConfigurationComponent(){return _Oe}getCapabilities(){return{canCreate:!0,canEdit:!0,canDelete:!0}}_fullTitleForEvent(e){return R2(e.category,e.subCategory,e.title)}_persistentIdForEvent(e){if("single"!==e.type||!e.date)return null;if(e.uid)return`${e.date}::uid:${e.uid}`;let t=e.allDay?"::allday":`::time:${e.startTime||""}-${e.endTime||""}`;return`${e.date}::${this._fullTitleForEvent(e)}${t}`}getEventHandle(e){if("single"===e.type&&e.date){let t=this._persistentIdForEvent(e);if(!t)return null;let n=mT(ZE(e.date),Z5());return n&&n instanceof AB.TFile?{persistentId:t,location:{path:n.path}}:null}return null}computeSyncKey(e){return"single"===e.type&&e.date?this._persistentIdForEvent(e)||"":`${e.type||"unknown"}::${e.title||""}::${JSON.stringify(e)}`}isFileRelevant(e){let{folder:t}=Fb();return!t||e.path.startsWith(`${t}/`)}getCanonicalTitle(e){return e.title}async _assignLocalUid(e,t){if(t.uid)return t;let n=(await this.app.read(e)).split("\n"),r=ky(e,"day")?.format("YYYY-MM-DD"),a=new Set;for(let e of n){if(!r)continue;let t=vA(e,{date:r});t&&t.uid&&!isNaN(Number(t.uid))&&a.add(Number(t.uid))}let i=1;for(;a.has(i);)i++;return{...t,uid:i.toString()}}async _findEventLineNumber(e,t,n){let r=(await this.app.read(e)).split("\n"),a=ky(e,"day")?.format("YYYY-MM-DD");if(!a)throw new Error(`Could not determine date from file: ${e.path}`);let i=!1,o="",s=t.match(/^(\d{4}-\d{2}-\d{2})::uid:(\d+)$/);s&&(i=!0,o=s[2]);let l=e=>{let n=vA(e,{date:a});if(n&&"single"===n.type){if(i&&n.uid===o)return!0;let e=this._persistentIdForEvent(n);if(!i&&e===t)return!0}return!1};if(void 0!==n&&n>=0&&n<r.length&&l(r[n]))return n;for(let e=0;e<r.length;e++)if(l(r[e]))return e;throw new Error(`Could not find event with ID "${t}" in file "${e.path}".`)}async getEventsInFile(e){let t=ky(e,"day")?.format("YYYY-MM-DD"),n=await kPt(this.app,e);if(!n)return[];let r=VC(this.source.heading,n);return(await this.app.process(e,e=>X4e(e,r,{date:t}))).map(({event:t,lineNumber:n})=>[t,{file:e,lineNumber:n}])}async getEvents(e){let t=Z5(),n=Object.values(t);if(e){let t=ZE(e.start),r=ZE(e.end);n=n.filter(e=>{let n=ky(e,"day");return n&&n.isSameOrAfter(t)&&n.isSameOrBefore(r)})}return(await Promise.all(n.map(e=>this.getEventsInFile(e)))).flat()}async createEvent(e){if("single"!==e.type)throw new Error("Daily Note provider can only create single events.");let t=ZE(e.date),n=mT(t,Z5());if(!n){let r=await TC(t);if(!r)throw new Error(`Failed to create daily note for date ${e.date}.`);n=r}let r=await this._assignLocalUid(n,e),a=(await this.app.waitForMetadata(n)).headings?.find(e=>e.heading===this.source.heading),i=await this.app.rewrite(n,e=>{let{page:t,lineNumber:n}=lre(e,{heading:a,item:r,headingText:this.source.heading},this.source);return[t,n]});return[r,{file:n,lineNumber:i}]}async updateEvent(e,t,n){if("single"!==n.type)throw new Error("Daily Note provider can only update events to be single events.");if(!e.location?.path)throw new Error("DailyNoteProvider updateEvent requires a file path in the event handle.");let{path:r}=e.location,a=this.app.getFileByPath(r);if(!a)throw new Error(`File not found at path: ${r}`);let i=await this._findEventLineNumber(a,e.persistentId,e.location.lineNumber),o=ky(a,"day")?.format("YYYY-MM-DD");if(!o)throw new Error(`Could not get date from file at path ${a.path}`);if(n.date!==o){let e=ZE(n.date),t=mT(e,Z5());if(!t){let r=await TC(e);if(!r)throw new Error(`Failed to create daily note for date ${n.date}.`);t=r}let r=await this._assignLocalUid(t,{...n,uid:void 0});Object.assign(n,r),await this.app.rewrite(a,e=>{let t=e.split("\n");return t.splice(i,1),t.join("\n")});let o=(await this.app.waitForMetadata(t)).headings?.find(e=>e.heading===this.source.heading);return{file:t,lineNumber:await this.app.rewrite(t,e=>{let{page:t,lineNumber:n}=lre(e,{heading:o,item:r,headingText:this.source.heading},this.source);return[t,n]})}}let s=await this._assignLocalUid(a,n);return Object.assign(n,s),await this.app.rewrite(a,e=>{let t=e.split("\n"),n=jC(t[i],s,this.source);if(!n)throw new Error("Did not successfully update line.");return t[i]=n,t.join("\n")}),{file:a,lineNumber:i}}async deleteEvent(e){if(!e.location?.path)throw new Error("DailyNoteProvider deleteEvent requires a file path.");let{path:t}=e.location,n=this.app.getFileByPath(t);if(!n)throw new Error(`File not found at path: ${t}`);let r=await this._findEventLineNumber(n,e.persistentId,e.location?.lineNumber);await this.app.rewrite(n,e=>{let t=e.split("\n");return t.splice(r,1),t.join("\n")})}getConfigurationComponent(){return _Oe}getSettingsRowComponent(){return CPt}#e;getEditorDecorator(){return this.#e||(this.#e=new zB),this.#e}createInstanceOverride(e,t,n){let r=this.getEventHandle(e)?.persistentId;if(!r)throw new Error("Could not get persistent ID for master event.");let a={...n,recurringEventId:r};return this.createEvent(a)}}});function DPt(e,t,n){let r;switch(e){case"P":n.isNegative=!(!t||"-"!==t);break;case"D":r="days";break;case"W":r="weeks";break;case"H":r="hours";break;case"M":r="minutes";break;case"S":r="seconds";break;default:return 0}if(r){if(!t&&0!==t)throw new Error('invalid duration value: Missing number before "'+e+'"');let a=parseInt(t,10);if(KE(a))throw new Error('invalid duration value: Invalid number "'+t+'" before "'+e+'"');n[r]=a}return 1}function Nu(e){let t={},n=t.component=[];if(t.stack=[n],Nu._eachLine(e,function(e,n){Nu._handleContentLine(n,t)}),t.stack.length>1)throw new rx("invalid ical body. component began but did not end");return t=null,1==n.length?n[0]:n}function FPt(e){let t,n,r,a,i;if(!e||"vcalendar"!==e.name)return e;for(t=e.getAllSubcomponents(),n=[],r={},i=0;i<t.length;i++)if("vtimezone"===t[i].name){r[t[i].getFirstProperty("tzid").getFirstValue()]=t[i]}else n=n.concat(t[i].getAllProperties());for(a={},i=0;i<n.length;i++){let e=n[i].getParameter("tzid");e&&(a[e]=!0)}for(let[t,n]of Object.entries(r))a[t]||e.removeSubcomponent(n);for(let t of Object.keys(a))!r[t]&&DB.has(t)&&e.addSubcomponent(DB.get(t).component);return e}function KE(e){return"number"==typeof e&&isNaN(e)}function U2(e){let t=parseInt(e,10);if(KE(t))throw new Error('Could not extract integer from "'+e+'"');return t}function ex(e,t){if(!(typeof e>"u"))return e instanceof t?e:new t(e)}function POe(e,t,n){for(;-1!==(n=e.indexOf(t,n));){if(!(n>0&&"\\"===e[n-1]))return n;n+=1}return-1}function HA(e,t,n){if(!e.length)return 0;let r,a,i=0,o=e.length-1;for(;i<=o;)if(r=i+Math.floor((o-i)/2),a=n(t,e[r]),a<0)o=r-1;else{if(!(a>0))break;i=r+1}return a<0?r:a>0?r+1:r}function jA(e,t){if(!e||"object"!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());if("clone"in e)return e.clone();if(Array.isArray(e)){let n=[];for(let r=0;r<e.length;r++)n.push(t?jA(e[r],!0):e[r]);return n}{let n={};for(let[r,a]of Object.entries(e))n[r]=t?jA(a,!0):a;return n}}function IOe(e){let t="",n=e||"",r=0,a=0;for(;n.length;){let e=n.codePointAt(r);e<128?++a:a+=e<2048?2:e<65536?3:4,a<ec.foldLength+1?r+=e>65535?2:1:(t+=ec.newLineChar+" "+n.slice(0,Math.max(0,r)),n=n.slice(Math.max(0,r)),r=a=0)}return t.slice(ec.newLineChar.length+1)}function jm(e){switch("string"!=typeof e&&("number"==typeof e&&(e=parseInt(e)),e=String(e)),e.length){case 0:return"00";case 1:return"0"+e;default:return e}}function Rp(e){return e<0?Math.ceil(e):Math.floor(e)}function GA(e,t){for(let n in e){let r=Object.getOwnPropertyDescriptor(e,n);r&&!Object.getOwnPropertyDescriptor(t,n)&&Object.defineProperty(t,n,r)}return t}function dz(e,t,n,r){let a=r;if("+"===r[0]&&(a=r.slice(1)),a=U2(a),void 0!==t&&r<t)throw new Error(e+': invalid value "'+r+'" must be > '+t);if(void 0!==n&&r>n)throw new Error(e+': invalid value "'+r+'" must be < '+t);return a}function Nae(e,t){return{matches:/.*/,fromICAL:function(t,n){return YPt(t,e,n)},toICAL:function(e,n){let r=t;return n&&(r=new RegExp(r.source+"|"+n,r.flags)),e.replace(r,function(e){switch(e){case"\\":return"\\\\";case";":return"\\;";case",":return"\\,";case"\n":return"\\n";default:return e}})}}}function XPt(e){switch(e){case"\\\\":return"\\";case"\\;":return";";case"\\,":return",";case"\\n":case"\\N":return"\n";default:return e}}function YPt(e,t,n){return-1===e.indexOf("\\")?e:(n&&(t=new RegExp(t.source+"|\\\\"+n,t.flags)),e.replace(t,XPt))}function Rf(e){"string"==typeof e[0]&&(e=[e]);let t=0,n=e.length,r="";for(;t<n;t++)r+=Rf.component(e[t])+CB;return r}function LOe(e,t){return e[0]>t[0]?1:t[0]>e[0]?-1:0}var EB,EPt,qPt,Tv,$E,$s,RPt,qB,Iae,LPt,PPt,IPt,NPt,rx,WPt,Ju,dm,DB,BPt,tx,UA,JE,u8,UPt,HPt,NOe,VPt,wOe,Ny,Lae,Pae,jPt,GPt,OOe,TOe,tu,QE,RB,wB,OB,TB,Vm,SOe,kOe,COe,Fae,Bae,ZPt,Uh,$Pt,Ov,KPt,JPt,QPt,eIt,tIt,QM,EOe,qOe,Qu,CB,DOe,rIt,ROe,SB,kB,fz,VA,hz,o3,pz,nIt,aIt,kg,LB,PB,Wae,ec,IB=kr(()=>{EB=class e{static fromString(t){return new e(t)}constructor(e){this.value=e}icaltype="binary";decodeValue(){return this._b64_decode(this.value)}setEncodedValue(e){this.value=this._b64_encode(e)}_b64_encode(e){let t,n,r,a,i,o,s,l,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=0,d=0,p="",h=[];if(!e)return e;do{t=e.charCodeAt(u++),n=e.charCodeAt(u++),r=e.charCodeAt(u++),l=t<<16|n<<8|r,a=l>>18&63,i=l>>12&63,o=l>>6&63,s=63&l,h[d++]=c.charAt(a)+c.charAt(i)+c.charAt(o)+c.charAt(s)}while(u<e.length);p=h.join("");let f=e.length%3;return(f?p.slice(0,f-3):p)+"===".slice(f||3)}_b64_decode(e){let t,n,r,a,i,o,s,l,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=0,d=0,p="",h=[];if(!e)return e;e+="";do{a=c.indexOf(e.charAt(u++)),i=c.indexOf(e.charAt(u++)),o=c.indexOf(e.charAt(u++)),s=c.indexOf(e.charAt(u++)),l=a<<18|i<<12|o<<6|s,t=l>>16&255,n=l>>8&255,r=255&l,h[d++]=64==o?String.fromCharCode(t):64==s?String.fromCharCode(t,n):String.fromCharCode(t,n,r)}while(u<e.length);return p=h.join(""),p}toString(){return this.value}},EPt=/([PDWHMTS]{1,1})/,qPt=["weeks","days","hours","minutes","seconds","isNegative"],Tv=class e{static fromSeconds(t){return(new e).fromSeconds(t)}static isValueString(e){return"P"===e[0]||"P"===e[1]}static fromString(t){let n=0,r=Object.create(null),a=0;for(;-1!==(n=t.search(EPt));){let e=t[n],i=t.slice(0,Math.max(0,n));t=t.slice(n+1),a+=DPt(e,i,r)}if(a<2)throw new Error('invalid duration value: Not enough duration components in "'+t+'"');return new e(r)}static fromData(t){return new e(t)}constructor(e){this.wrappedJSObject=this,this.fromData(e)}weeks=0;days=0;hours=0;minutes=0;seconds=0;isNegative=!1;icalclass="icalduration";icaltype="duration";clone(){return e.fromData(this)}toSeconds(){let e=this.seconds+60*this.minutes+3600*this.hours+86400*this.days+604800*this.weeks;return this.isNegative?-e:e}fromSeconds(e){let t=Math.abs(e);return this.isNegative=e<0,this.days=Rp(t/86400),this.days%7==0?(this.weeks=this.days/7,this.days=0):this.weeks=0,t-=86400*(this.days+7*this.weeks),this.hours=Rp(t/3600),t-=3600*this.hours,this.minutes=Rp(t/60),t-=60*this.minutes,this.seconds=t,this}fromData(e){for(let t of qPt)this[t]=e&&t in e?e[t]:0}reset(){this.isNegative=!1,this.weeks=0,this.days=0,this.hours=0,this.minutes=0,this.seconds=0}compare(e){let t=this.toSeconds(),n=e.toSeconds();return(t>n)-(t<n)}normalize(){this.fromSeconds(this.toSeconds())}toString(){if(0==this.toSeconds())return"PT0S";{let e="";this.isNegative&&(e+="-"),e+="P";let t=!1;return this.weeks?this.days||this.hours||this.minutes||this.seconds?e+=7*this.weeks+this.days+"D":(e+=this.weeks+"W",t=!0):this.days&&(e+=this.days+"D"),t||(this.hours||this.minutes||this.seconds)&&(e+="T",this.hours&&(e+=this.hours+"H"),this.minutes&&(e+=this.minutes+"M"),this.seconds&&(e+=this.seconds+"S")),e}}toICALString(){return this.toString()}},$E=class e{static fromString(t,n){let r=t.split("/");if(2!==r.length)throw new Error('Invalid string value: "'+t+'" must contain a "/" char.');let a={start:$s.fromDateTimeString(r[0],n)},i=r[1];return Tv.isValueString(i)?a.duration=Tv.fromString(i):a.end=$s.fromDateTimeString(i,n),new e(a)}static fromData(t){return new e(t)}static fromJSON(t,n,r){function a(e,t){return r?$s.fromString(e,t):$s.fromDateTimeString(e,t)}return Tv.isValueString(t[1])?e.fromData({start:a(t[0],n),duration:Tv.fromString(t[1])}):e.fromData({start:a(t[0],n),end:a(t[1],n)})}constructor(e){if(this.wrappedJSObject=this,e&&"start"in e){if(e.start&&!(e.start instanceof $s))throw new TypeError(".start must be an instance of ICAL.Time");this.start=e.start}if(e&&e.end&&e.duration)throw new Error("cannot accept both end and duration");if(e&&"end"in e){if(e.end&&!(e.end instanceof $s))throw new TypeError(".end must be an instance of ICAL.Time");this.end=e.end}if(e&&"duration"in e){if(e.duration&&!(e.duration instanceof Tv))throw new TypeError(".duration must be an instance of ICAL.Duration");this.duration=e.duration}}start=null;end=null;duration=null;icalclass="icalperiod";icaltype="period";clone(){return e.fromData({start:this.start?this.start.clone():null,end:this.end?this.end.clone():null,duration:this.duration?this.duration.clone():null})}getDuration(){return this.duration?this.duration:this.end.subtractDate(this.start)}getEnd(){if(this.end)return this.end;{let e=this.start.clone();return e.addDuration(this.duration),e}}compare(e){return e.compare(this.start)<0?1:e.compare(this.getEnd())>0?-1:0}toString(){return this.start+"/"+(this.end||this.duration)}toJSON(){return[this.start.toString(),(this.end||this.duration).toString()]}toICALString(){return this.start.toICALString()+"/"+(this.end||this.duration).toICALString()}},$s=class e{static _dowCache={};static _wnCache={};static daysInMonth(t,n){let r=30;return t<1||t>12||(r=[0,31,28,31,30,31,30,31,31,30,31,30,31][t],2==t&&(r+=e.isLeapYear(n))),r}static isLeapYear(e){return e<=1752?e%4==0:e%4==0&&e%100!=0||e%400==0}static fromDayOfYear(t,n){let r=n,a=t,i=new e;i.auto_normalize=!1;let o=e.isLeapYear(r)?1:0;if(a<1)return r--,o=e.isLeapYear(r)?1:0,a+=e.daysInYearPassedMonth[o][12],e.fromDayOfYear(a,r);if(a>e.daysInYearPassedMonth[o][12])return o=e.isLeapYear(r)?1:0,a-=e.daysInYearPassedMonth[o][12],r++,e.fromDayOfYear(a,r);i.year=r,i.isDate=!0;for(let t=11;t>=0;t--)if(a>e.daysInYearPassedMonth[o][t]){i.month=t+1,i.day=a-e.daysInYearPassedMonth[o][t];break}return i.auto_normalize=!0,i}static fromStringv2(t){return new e({year:parseInt(t.slice(0,4),10),month:parseInt(t.slice(5,7),10),day:parseInt(t.slice(8,10),10),isDate:!0})}static fromDateString(t){return new e({year:U2(t.slice(0,4)),month:U2(t.slice(5,7)),day:U2(t.slice(8,10)),isDate:!0})}static fromDateTimeString(t,n){if(t.length<19)throw new Error('invalid date-time value: "'+t+'"');let r,a;"Z"===t.slice(-1)?r=Ju.utcTimezone:n&&(a=n.getParameter("tzid"),n.parent&&("standard"===n.parent.name||"daylight"===n.parent.name?r=Ju.localTimezone:a&&(r=n.parent.getTimeZoneByID(a))));let i={year:U2(t.slice(0,4)),month:U2(t.slice(5,7)),day:U2(t.slice(8,10)),hour:U2(t.slice(11,13)),minute:U2(t.slice(14,16)),second:U2(t.slice(17,19))};return a&&!r&&(i.timezone=a),new e(i,r)}static fromString(t,n){return t.length>10?e.fromDateTimeString(t,n):e.fromDateString(t)}static fromJSDate(t,n){return(new e).fromJSDate(t,n)}static fromData=function(t,n){return(new e).fromData(t,n)};static now(){return e.fromJSDate(new Date,!1)}static weekOneStarts(t,n){let r=e.fromData({year:t,month:1,day:1,isDate:!0}),a=r.dayOfWeek(),i=n||e.DEFAULT_WEEK_START;return a>e.THURSDAY&&(r.day+=7),i>e.THURSDAY&&(r.day-=7),r.day-=a-i,r}static getDominicalLetter(t){let n="GFEDCBA",r=(t+(t/4|0)+(t/400|0)-(t/100|0)-1)%7;return e.isLeapYear(t)?n[(r+6)%7]+n[r]:n[r]}static#e=null;static get epochTime(){return this.#e||(this.#e=e.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0,isDate:!1,timezone:"Z"})),this.#e}static _cmp_attr(e,t,n){return e[n]>t[n]?1:e[n]<t[n]?-1:0}static daysInYearPassedMonth=[[0,31,59,90,120,151,181,212,243,273,304,334,365],[0,31,60,91,121,152,182,213,244,274,305,335,366]];static SUNDAY=1;static MONDAY=2;static TUESDAY=3;static WEDNESDAY=4;static THURSDAY=5;static FRIDAY=6;static SATURDAY=7;static DEFAULT_WEEK_START=2;constructor(e,t){this.wrappedJSObject=this,this._time=Object.create(null),this._time.year=0,this._time.month=1,this._time.day=1,this._time.hour=0,this._time.minute=0,this._time.second=0,this._time.isDate=!1,this.fromData(e,t)}icalclass="icaltime";_cachedUnixTime=null;get icaltype(){return this.isDate?"date":"date-time"}zone=null;_pendingNormalization=!1;get year(){return this._getTimeAttr("year")}set year(e){this._setTimeAttr("year",e)}get month(){return this._getTimeAttr("month")}set month(e){this._setTimeAttr("month",e)}get day(){return this._getTimeAttr("day")}set day(e){this._setTimeAttr("day",e)}get hour(){return this._getTimeAttr("hour")}set hour(e){this._setTimeAttr("hour",e)}get minute(){return this._getTimeAttr("minute")}set minute(e){this._setTimeAttr("minute",e)}get second(){return this._getTimeAttr("second")}set second(e){this._setTimeAttr("second",e)}get isDate(){return this._getTimeAttr("isDate")}set isDate(e){this._setTimeAttr("isDate",e)}_getTimeAttr(e){return this._pendingNormalization&&(this._normalize(),this._pendingNormalization=!1),this._time[e]}_setTimeAttr(e,t){"isDate"===e&&t&&!this._time.isDate&&this.adjust(0,0,0,0),this._cachedUnixTime=null,this._pendingNormalization=!0,this._time[e]=t}clone(){return new e(this._time,this.zone)}reset(){this.fromData(e.epochTime),this.zone=Ju.utcTimezone}resetTo(e,t,n,r,a,i,o){this.fromData({year:e,month:t,day:n,hour:r,minute:a,second:i,zone:o})}fromJSDate(e,t){return e?t?(this.zone=Ju.utcTimezone,this.year=e.getUTCFullYear(),this.month=e.getUTCMonth()+1,this.day=e.getUTCDate(),this.hour=e.getUTCHours(),this.minute=e.getUTCMinutes(),this.second=e.getUTCSeconds()):(this.zone=Ju.localTimezone,this.year=e.getFullYear(),this.month=e.getMonth()+1,this.day=e.getDate(),this.hour=e.getHours(),this.minute=e.getMinutes(),this.second=e.getSeconds()):this.reset(),this._cachedUnixTime=null,this}fromData(e,t){if(e)for(let[t,n]of Object.entries(e))"icaltype"!==t&&(this[t]=n);if(t&&(this.zone=t),e&&!("isDate"in e)?this.isDate=!("hour"in e):e&&"isDate"in e&&(this.isDate=e.isDate),e&&"timezone"in e){let t=DB.get(e.timezone);this.zone=t||Ju.localTimezone}return e&&"zone"in e&&(this.zone=e.zone),this.zone||(this.zone=Ju.localTimezone),this._cachedUnixTime=null,this}dayOfWeek(t){let n=t||e.SUNDAY,r=(this.year<<12)+(this.month<<8)+(this.day<<3)+n;if(r in e._dowCache)return e._dowCache[r];let a=this.day,i=this.month+(this.month<3?12:0),o=this.year-(this.month<3?1:0),s=a+o+Rp(26*(i+1)/10)+Rp(o/4);return s+=6*Rp(o/100)+Rp(o/400),s=(s+7-n)%7+1,e._dowCache[r]=s,s}dayOfYear(){let t=e.isLeapYear(this.year)?1:0;return e.daysInYearPassedMonth[t][this.month-1]+this.day}startOfWeek(t){let n=t||e.SUNDAY,r=this.clone();return r.day-=(this.dayOfWeek()+7-n)%7,r.isDate=!0,r.hour=0,r.minute=0,r.second=0,r}endOfWeek(t){let n=t||e.SUNDAY,r=this.clone();return r.day+=(7-this.dayOfWeek()+n-e.SUNDAY)%7,r.isDate=!0,r.hour=0,r.minute=0,r.second=0,r}startOfMonth(){let e=this.clone();return e.day=1,e.isDate=!0,e.hour=0,e.minute=0,e.second=0,e}endOfMonth(){let t=this.clone();return t.day=e.daysInMonth(t.month,t.year),t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t}startOfYear(){let e=this.clone();return e.day=1,e.month=1,e.isDate=!0,e.hour=0,e.minute=0,e.second=0,e}endOfYear(){let e=this.clone();return e.day=31,e.month=12,e.isDate=!0,e.hour=0,e.minute=0,e.second=0,e}startDoyWeek(t){let n=t||e.SUNDAY,r=this.dayOfWeek()-n;return r<0&&(r+=7),this.dayOfYear()-r}getDominicalLetter(){return e.getDominicalLetter(this.year)}nthWeekDay(t,n){let r,a=e.daysInMonth(this.month,this.year),i=n,o=0,s=this.clone();if(i>=0){s.day=1,0!=i&&i--,o=s.day;let e=t-s.dayOfWeek();e<0&&(e+=7),o+=e,o-=t,r=t}else{s.day=a,i++,r=s.dayOfWeek()-t,r<0&&(r+=7),r=a-r}return r+=7*i,o+r}isNthWeekDay(e,t){let n=this.dayOfWeek();return 0===t&&n===e||this.nthWeekDay(e,t)===this.day}weekNumber(t){let n=(this.year<<12)+(this.month<<8)+(this.day<<3)+t;if(n in e._wnCache)return e._wnCache[n];let r,a=this.clone();a.isDate=!0;let i=this.year;12==a.month&&a.day>25?(r=e.weekOneStarts(i+1,t),a.compare(r)<0?r=e.weekOneStarts(i,t):i++):(r=e.weekOneStarts(i,t),a.compare(r)<0&&(r=e.weekOneStarts(--i,t)));let o=Rp(a.subtractDate(r).toSeconds()/86400/7)+1;return e._wnCache[n]=o,o}addDuration(e){let t=e.isNegative?-1:1,n=this.second,r=this.minute,a=this.hour,i=this.day;n+=t*e.seconds,r+=t*e.minutes,a+=t*e.hours,i+=t*e.days,i+=7*t*e.weeks,this.second=n,this.minute=r,this.hour=a,this.day=i,this._cachedUnixTime=null}subtractDate(e){let t=this.toUnixTime()+this.utcOffset(),n=e.toUnixTime()+e.utcOffset();return Tv.fromSeconds(t-n)}subtractDateTz(e){let t=this.toUnixTime(),n=e.toUnixTime();return Tv.fromSeconds(t-n)}compare(e){if(e instanceof $E)return-1*e.compare(this);{let t=this.toUnixTime(),n=e.toUnixTime();return t>n?1:n>t?-1:0}}compareDateOnlyTz(t,n){let r=this.convertToZone(n),a=t.convertToZone(n),i=0;return 0!=(i=e._cmp_attr(r,a,"year"))||0!=(i=e._cmp_attr(r,a,"month"))||(i=e._cmp_attr(r,a,"day")),i}convertToZone(e){let t=this.clone(),n=this.zone.tzid==e.tzid;return!this.isDate&&!n&&Ju.convert_time(t,this.zone,e),t.zone=e,t}utcOffset(){return this.zone==Ju.localTimezone||this.zone==Ju.utcTimezone?0:this.zone.utcOffset(this)}toICALString(){let e=this.toString();return e.length>10?Qu.icalendar.value["date-time"].toICAL(e):Qu.icalendar.value.date.toICAL(e)}toString(){let e=this.year+"-"+jm(this.month)+"-"+jm(this.day);return this.isDate||(e+="T"+jm(this.hour)+":"+jm(this.minute)+":"+jm(this.second),this.zone===Ju.utcTimezone&&(e+="Z")),e}toJSDate(){return this.zone==Ju.localTimezone?this.isDate?new Date(this.year,this.month-1,this.day):new Date(this.year,this.month-1,this.day,this.hour,this.minute,this.second,0):new Date(1e3*this.toUnixTime())}_normalize(){return this._time.isDate&&(this._time.hour=0,this._time.minute=0,this._time.second=0),this.adjust(0,0,0,0),this}adjust(t,n,r,a,i){let o,s,l,c,u,d,p,h=0,f=0,m=i||this._time;if(m.isDate||(l=m.second+a,m.second=l%60,o=Rp(l/60),m.second<0&&(m.second+=60,o--),c=m.minute+r+o,m.minute=c%60,s=Rp(c/60),m.minute<0&&(m.minute+=60,s--),u=m.hour+n+s,m.hour=u%24,h=Rp(u/24),m.hour<0&&(m.hour+=24,h--)),m.month>12?f=Rp((m.month-1)/12):m.month<1&&(f=Rp(m.month/12)-1),m.year+=f,m.month-=12*f,d=m.day+t+h,d>0)for(;p=e.daysInMonth(m.month,m.year),!(d<=p);)m.month++,m.month>12&&(m.year++,m.month=1),d-=p;else for(;d<=0;)1==m.month?(m.year--,m.month=12):m.month--,d+=e.daysInMonth(m.month,m.year);return m.day=d,this._cachedUnixTime=null,this}fromUnixTime(e){this.zone=Ju.utcTimezone;let t=new Date(1e3*e);this.year=t.getUTCFullYear(),this.month=t.getUTCMonth()+1,this.day=t.getUTCDate(),this._time.isDate?(this.hour=0,this.minute=0,this.second=0):(this.hour=t.getUTCHours(),this.minute=t.getUTCMinutes(),this.second=t.getUTCSeconds()),this._cachedUnixTime=null}toUnixTime(){if(null!==this._cachedUnixTime)return this._cachedUnixTime;let e=this.utcOffset(),t=Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second-e);return this._cachedUnixTime=t/1e3,this._cachedUnixTime}toJSON(){let e,t=["year","month","day","hour","minute","second","isDate"],n=Object.create(null),r=0,a=t.length;for(;r<a;r++)e=t[r],n[e]=this[e];return this.zone&&(n.timezone=this.zone.tzid),n}},RPt=/[^ \t]/,qB=":",Iae=";",LPt="=",PPt="unknown",IPt="text",NPt={"^'":'"',"^n":"\n","^^":"^"},Nu.property=function(e,t){let n={component:[[],[]],designSet:t||Qu.defaultSet};return Nu._handleContentLine(e,n),n.component[1][0]},Nu.component=function(e){return Nu(e)},rx=class extends Error{name=this.constructor.name},Nu.ParserError=rx,Nu._handleContentLine=function(e,t){let n,r,a,i,o,s=e.indexOf(qB),l=e.indexOf(Iae),c={};if(-1!==l&&-1!==s&&l>s&&(l=-1),-1!==l){if(a=e.slice(0,Math.max(0,l)).toLowerCase(),o=Nu._parseParameters(e.slice(Math.max(0,l)),0,t.designSet),-1==o[2])throw new rx("Invalid parameters in '"+e+"'");let s;if(c=o[0],s="string"==typeof o[1]?o[1].length:o[1].reduce((e,t)=>e+t.length,0),n=s+o[2]+l,-1===(r=e.slice(Math.max(0,n)).indexOf(qB)))throw new rx("Missing parameter value in '"+e+"'");i=e.slice(Math.max(0,n+r+1))}else{if(-1===s)throw new rx('invalid line (no token ";" or ":") "'+e+'"');if(a=e.slice(0,Math.max(0,s)).toLowerCase(),i=e.slice(Math.max(0,s+1)),"begin"===a){let e=[i.toLowerCase(),[],[]];return 1===t.stack.length?t.component.push(e):t.component[2].push(e),t.stack.push(t.component),t.component=e,void(t.designSet||(t.designSet=Qu.getDesignSet(t.component[0])))}if("end"===a)return void(t.component=t.stack.pop())}let u,d,p,h,f,m=!1,g=!1;t.designSet.propertyGroups&&-1!==a.indexOf(".")?(p=a.split("."),c.group=p[0],h=p[1]):h=a,h in t.designSet.property&&(d=t.designSet.property[h],"multiValue"in d&&(m=d.multiValue),"structuredValue"in d&&(g=d.structuredValue),i&&"detectType"in d&&(u=d.detectType(i))),u||(u="value"in c?c.value.toLowerCase():d?d.defaultType:PPt),delete c.value,m&&g?(i=Nu._parseMultiValue(i,g,u,[],m,t.designSet,g),f=[h,c,u,i]):m?(f=[h,c,u],Nu._parseMultiValue(i,m,u,f,null,t.designSet,!1)):g?(i=Nu._parseMultiValue(i,g,u,[],null,t.designSet,g),f=[h,c,u,i]):(i=Nu._parseValue(i,u,t.designSet,!1),f=[h,c,u,i]),"vcard"===t.component[0]&&0===t.component[1].length&&!("version"===a&&"4.0"===i)&&(t.designSet=Qu.getDesignSet("vcard3")),t.component[1].push(f)},Nu._parseValue=function(e,t,n,r){return t in n.value&&"fromICAL"in n.value[t]?n.value[t].fromICAL(e,r):e},Nu._parseParameters=function(e,t,n){let r,a,i,o,s,l,c=t,u=0,d=LPt,p={},h=-1;for(;!1!==u&&-1!==(u=e.indexOf(d,u+1));){if(r=e.slice(c+1,u),0==r.length)throw new rx("Empty parameter name in '"+e+"'");if(a=r.toLowerCase(),l=!1,s=!1,o=a in n.param&&n.param[a].valueType?n.param[a].valueType:IPt,a in n.param&&(s=n.param[a].multiValue,n.param[a].multiValueSeparateDQuote&&(l=Nu._rfc6868Escape('"'+s+'"'))),'"'===e[u+1]){if(h=u+2,u=e.indexOf('"',h),s&&-1!=u){let t=!0;for(;t;)e[u+1]==s&&'"'==e[u+2]?u=e.indexOf('"',u+3):t=!1}if(-1===u)throw new rx('invalid line (no matching double quote) "'+e+'"');i=e.slice(h,u),c=e.indexOf(Iae,u);let t=e.indexOf(qB,u);(-1===c||-1!==t&&c>t)&&(u=!1)}else{h=u+1;let t=e.indexOf(Iae,h),n=e.indexOf(qB,h);-1!==n&&t>n?(t=n,u=!1):-1===t?(t=-1===n?e.length:n,u=!1):(c=t,u=t),i=e.slice(h,t)}let t=i.length;if(i=Nu._rfc6868Escape(i),h+=t-i.length,s){let e=l||s;i=Nu._parseMultiValue(i,e,o,[],null,n)}else i=Nu._parseValue(i,o,n);s&&a in p?Array.isArray(p[a])?p[a].push(i):p[a]=[p[a],i]:p[a]=i}return[p,i,h]},Nu._rfc6868Escape=function(e){return e.replace(/\^['n^]/g,function(e){return NPt[e]})},Nu._parseMultiValue=function(e,t,n,r,a,i,o){let s,l=0,c=0;if(0===t.length)return e;for(;-1!==(l=POe(e,t,c));)s=e.slice(c,l),s=a?Nu._parseMultiValue(s,a,n,[],null,i,o):Nu._parseValue(s,n,i,o),r.push(s),c=l+t.length;return s=e.slice(c),s=a?Nu._parseMultiValue(s,a,n,[],null,i,o):Nu._parseValue(s,n,i,o),r.push(s),1==r.length?r[0]:r},Nu._eachLine=function(e,t){let n,r,a,i=e.length,o=e.search(RPt),s=o;do{s=e.indexOf("\n",o)+1,a=s>1&&"\r"===e[s-2]?2:1,0===s&&(s=i,a=0),r=e[o]," "===r||"\t"===r?n+=e.slice(o+1,s-a):(n&&t(null,n),n=e.slice(o,s-a)),o=s}while(s!==i);n=n.trim(),n.length&&t(null,n)},WPt=["tzid","location","tznames","latitude","longitude"],Ju=class e{static _compare_change_fn(e,t){return e.year<t.year?-1:e.year>t.year?1:e.month<t.month?-1:e.month>t.month?1:e.day<t.day?-1:e.day>t.day?1:e.hour<t.hour?-1:e.hour>t.hour?1:e.minute<t.minute?-1:e.minute>t.minute?1:e.second<t.second?-1:e.second>t.second?1:0}static convert_time(t,n,r){if(t.isDate||n.tzid==r.tzid||n==e.localTimezone||r==e.localTimezone)return t.zone=r,t;let a=n.utcOffset(t);return t.adjust(0,0,0,-a),a=r.utcOffset(t),t.adjust(0,0,0,a),null}static fromData(t){return(new e).fromData(t)}static#e=null;static get utcTimezone(){return this.#e||(this.#e=e.fromData({tzid:"UTC"})),this.#e}static#t=null;static get localTimezone(){return this.#t||(this.#t=e.fromData({tzid:"floating"})),this.#t}static adjust_change(e,t,n,r,a){return $s.prototype.adjust.call(e,t,n,r,a,e)}static _minimumExpansionYear=-1;static EXTRA_COVERAGE=5;constructor(e){this.wrappedJSObject=this,this.fromData(e)}tzid="";location="";tznames="";latitude=0;longitude=0;component=null;expandedUntilYear=0;icalclass="icaltimezone";fromData(e){if(this.expandedUntilYear=0,this.changes=[],e instanceof kg)this.component=e;else{if(e&&"component"in e)if("string"==typeof e.component){let t=Nu(e.component);this.component=new kg(t)}else e.component instanceof kg?this.component=e.component:this.component=null;for(let t of WPt)e&&t in e&&(this[t]=e[t])}return this.component instanceof kg&&!this.tzid&&(this.tzid=this.component.getFirstPropertyValue("tzid")),this}utcOffset(t){if(this==e.utcTimezone||this==e.localTimezone||(this._ensureCoverage(t.year),!this.changes.length))return 0;let n={year:t.year,month:t.month,day:t.day,hour:t.hour,minute:t.minute,second:t.second},r=this._findNearbyChange(n),a=-1,i=1;for(;;){let t=jA(this.changes[r],!0);if(t.utcOffset<t.prevUtcOffset?e.adjust_change(t,0,0,0,t.utcOffset):e.adjust_change(t,0,0,0,t.prevUtcOffset),e._compare_change_fn(n,t)>=0?a=r:i=-1,-1==i&&-1!=a)break;if(r+=i,r<0)return 0;if(r>=this.changes.length)break}let o=this.changes[a];if(o.utcOffset-o.prevUtcOffset<0&&a>0){let t=jA(o,!0);if(e.adjust_change(t,0,0,0,t.prevUtcOffset),e._compare_change_fn(n,t)<0){let e=this.changes[a-1],t=!1;o.is_daylight!=t&&e.is_daylight==t&&(o=e)}}return o.utcOffset}_findNearbyChange(t){let n=HA(this.changes,t,e._compare_change_fn);return n>=this.changes.length?this.changes.length-1:n}_ensureCoverage(t){if(-1==e._minimumExpansionYear){let t=$s.now();e._minimumExpansionYear=t.year}let n=t;if(n<e._minimumExpansionYear&&(n=e._minimumExpansionYear),n+=e.EXTRA_COVERAGE,!this.changes.length||this.expandedUntilYear<t){let t=this.component.getAllSubcomponents(),r=t.length,a=0;for(;a<r;a++)this._expandComponent(t[a],n,this.changes);this.changes.sort(e._compare_change_fn),this.expandedUntilYear=n}}_expandComponent(t,n,r){if(!t.hasProperty("dtstart")||!t.hasProperty("tzoffsetto")||!t.hasProperty("tzoffsetfrom"))return null;let a,i=t.getFirstProperty("dtstart").getFirstValue();function o(e){return e.factor*(3600*e.hours+60*e.minutes)}function s(){let e={};return e.is_daylight="daylight"==t.name,e.utcOffset=o(t.getFirstProperty("tzoffsetto").getFirstValue()),e.prevUtcOffset=o(t.getFirstProperty("tzoffsetfrom").getFirstValue()),e}if(t.hasProperty("rrule")||t.hasProperty("rdate")){let o=t.getAllProperties("rdate");for(let t of o){let n=t.getFirstValue();a=s(),a.year=n.year,a.month=n.month,a.day=n.day,n.isDate?(a.hour=i.hour,a.minute=i.minute,a.second=i.second,i.zone!=e.utcTimezone&&e.adjust_change(a,0,0,0,-a.prevUtcOffset)):(a.hour=n.hour,a.minute=n.minute,a.second=n.second,n.zone!=e.utcTimezone&&e.adjust_change(a,0,0,0,-a.prevUtcOffset)),r.push(a)}let l=t.getFirstProperty("rrule");if(l){l=l.getFirstValue(),a=s(),l.until&&l.until.zone==e.utcTimezone&&(l.until.adjust(0,0,0,a.prevUtcOffset),l.until.zone=e.localTimezone);let t,o=l.iterator(i);for(;(t=o.next())&&(a=s(),!(t.year>n)&&t);)a.year=t.year,a.month=t.month,a.day=t.day,a.hour=t.hour,a.minute=t.minute,a.second=t.second,a.isDate=t.isDate,e.adjust_change(a,0,0,0,-a.prevUtcOffset),r.push(a)}}else a=s(),a.year=i.year,a.month=i.month,a.day=i.day,a.hour=i.hour,a.minute=i.minute,a.second=i.second,e.adjust_change(a,0,0,0,-a.prevUtcOffset),r.push(a);return r}toString(){return this.tznames?this.tznames:this.tzid}},dm=null,DB={get count(){return null===dm?0:Object.keys(dm).length},reset:function(){dm=Object.create(null);let e=Ju.utcTimezone;dm.Z=e,dm.UTC=e,dm.GMT=e},_hard_reset:function(){dm=null},has:function(e){return null!==dm&&!!dm[e]},get:function(e){return null===dm&&this.reset(),dm[e]},register:function(e,t){if(null===dm&&this.reset(),"string"==typeof e&&t instanceof Ju&&([e,t]=[t,e]),t||(e instanceof Ju?t=e.tzid:"vtimezone"===e.name&&(t=(e=new Ju(e)).tzid)),!t)throw new TypeError("Neither a timezone nor a name was passed");if(!(e instanceof Ju))throw new TypeError("timezone must be ICAL.Timezone or ICAL.Component");dm[t]=e},remove:function(e){return null===dm?null:delete dm[e]}},BPt=Object.freeze({__proto__:null,binsearchInsert:HA,clone:jA,extend:GA,foldline:IOe,formatClassType:ex,isStrictlyNaN:KE,pad2:jm,strictParseInt:U2,trunc:Rp,unescapedIndexOf:POe,updateTimezones:FPt}),tx=class e{static fromString(t){let n={};return n.factor="+"===t[0]?1:-1,n.hours=U2(t.slice(1,3)),n.minutes=U2(t.slice(4,6)),new e(n)}static fromSeconds(t){let n=new e;return n.fromSeconds(t),n}constructor(e){this.fromData(e)}hours=0;minutes=0;factor=1;icaltype="utc-offset";clone(){return e.fromSeconds(this.toSeconds())}fromData(e){if(e)for(let[t,n]of Object.entries(e))this[t]=n;this._normalize()}fromSeconds(e){let t=Math.abs(e);return this.factor=e<0?-1:1,this.hours=Rp(t/3600),t-=3600*this.hours,this.minutes=Rp(t/60),this}toSeconds(){return this.factor*(60*this.minutes+3600*this.hours)}compare(e){let t=this.toSeconds(),n=e.toSeconds();return(t>n)-(n>t)}_normalize(){let e=this.toSeconds(),t=this.factor;for(;e<-43200;)e+=97200;for(;e>50400;)e-=97200;this.fromSeconds(e),0==e&&(this.factor=t)}toICALString(){return Qu.icalendar.value["utc-offset"].toICAL(this.toString())}toString(){return(1==this.factor?"+":"-")+jm(this.hours)+":"+jm(this.minutes)}},UA=class e extends $s{static fromDateAndOrTimeString(t,n){function r(e,t,n){return e?U2(e.slice(t,t+n)):null}let a=t.split("T"),i=a[0],o=a[1],s=o?Qu.vcard.value.time._splitZone(o):[],l=s[0],c=s[1],u=i?i.length:0,d=c?c.length:0,p=i&&"-"==i[0]&&"-"==i[1],h=c&&"-"==c[0],f={year:p?null:r(i,0,4),month:!p||4!=u&&7!=u?7==u||10==u?r(i,5,2):null:r(i,2,2),day:5==u?r(i,3,2):7==u&&p?r(i,5,2):10==u?r(i,8,2):null,hour:h?null:r(c,0,2),minute:h&&3==d?r(c,1,2):d>4?r(c,h?1:3,2):null,second:4==d?r(c,2,2):6==d?r(c,4,2):8==d?r(c,6,2):null};return l="Z"==l?Ju.utcTimezone:l&&":"==l[3]?tx.fromString(l):null,new e(f,l,n)}constructor(e,t,n){super(e,t),this.icaltype=n||"date-and-or-time"}icalclass="vcardtime";icaltype="date-and-or-time";clone(){return new e(this._time,this.zone,this.icaltype)}_normalize(){return this}utcOffset(){return this.zone instanceof tx?this.zone.toSeconds():$s.prototype.utcOffset.apply(this,arguments)}toICALString(){return Qu.vcard.value[this.icaltype].toICAL(this.toString())}toString(){let e,t=this.year,n=this.month,r=this.day,a=this.hour,i=this.minute,o=this.second,s=null!==n,l=null!==r,c=null!==a,u=null!==i,d=null!==o,p=(null!==t?jm(t)+(s||l?"-":""):s||l?"--":"")+(s?jm(n):"")+(l?"-"+jm(r):""),h=(c?jm(a):"-")+(c&&u?":":"")+(u?jm(i):"")+(c||u?"":"-")+(u&&d?":":"")+(d?jm(o):"");switch(e=this.zone===Ju.utcTimezone?"Z":this.zone instanceof tx?this.zone.toString():this.zone===Ju.localTimezone?"":this.zone instanceof Ju?tx.fromSeconds(this.zone.utcOffset(this)).toString():"",this.icaltype){case"time":return h+e;case"date-and-or-time":case"date-time":return p+("--"==h?"":"T"+h+e);case"date":return p}return null}},JE=class e{static _indexMap={BYSECOND:0,BYMINUTE:1,BYHOUR:2,BYDAY:3,BYMONTHDAY:4,BYYEARDAY:5,BYWEEKNO:6,BYMONTH:7,BYSETPOS:8};static _expandMap={SECONDLY:[1,1,1,1,1,1,1,1],MINUTELY:[2,1,1,1,1,1,1,1],HOURLY:[2,2,1,1,1,1,1,1],DAILY:[2,2,2,1,1,1,1,1],WEEKLY:[2,2,2,2,3,3,1,1],MONTHLY:[2,2,2,2,2,3,3,1],YEARLY:[2,2,2,2,2,2,2,2]};static UNKNOWN=0;static CONTRACT=1;static EXPAND=2;static ILLEGAL=3;constructor(e){this.fromData(e)}completed=!1;rule=null;dtstart=null;last=null;occurrence_number=0;by_indices=null;initialized=!1;by_data=null;days=null;days_index=0;fromData(e){if(this.rule=ex(e.rule,Ny),!this.rule)throw new Error("iterator requires a (ICAL.Recur) rule");if(this.dtstart=ex(e.dtstart,$s),!this.dtstart)throw new Error("iterator requires a (ICAL.Time) dtstart");if(e.by_data?this.by_data=e.by_data:this.by_data=jA(this.rule.parts,!0),e.occurrence_number&&(this.occurrence_number=e.occurrence_number),this.days=e.days||[],e.last&&(this.last=ex(e.last,$s)),this.by_indices=e.by_indices,this.by_indices||(this.by_indices={BYSECOND:0,BYMINUTE:0,BYHOUR:0,BYDAY:0,BYMONTH:0,BYWEEKNO:0,BYMONTHDAY:0}),this.initialized=e.initialized||!1,!this.initialized)try{this.init()}catch(e){if(!(e instanceof u8))throw e;this.completed=!0}}init(){this.initialized=!0,this.last=this.dtstart.clone();let e=this.by_data;if("BYDAY"in e&&this.sort_byday_rules(e.BYDAY),"BYYEARDAY"in e&&("BYMONTH"in e||"BYWEEKNO"in e||"BYMONTHDAY"in e))throw new Error("Invalid BYYEARDAY rule");if("BYWEEKNO"in e&&"BYMONTHDAY"in e)throw new Error("BYWEEKNO does not fit to BYMONTHDAY");if("MONTHLY"==this.rule.freq&&("BYYEARDAY"in e||"BYWEEKNO"in e))throw new Error("For MONTHLY recurrences neither BYYEARDAY nor BYWEEKNO may appear");if("WEEKLY"==this.rule.freq&&("BYYEARDAY"in e||"BYMONTHDAY"in e))throw new Error("For WEEKLY recurrences neither BYMONTHDAY nor BYYEARDAY may appear");if("YEARLY"!=this.rule.freq&&"BYYEARDAY"in e)throw new Error("BYYEARDAY may only appear in YEARLY rules");if(this.last.second=this.setup_defaults("BYSECOND","SECONDLY",this.dtstart.second),this.last.minute=this.setup_defaults("BYMINUTE","MINUTELY",this.dtstart.minute),this.last.hour=this.setup_defaults("BYHOUR","HOURLY",this.dtstart.hour),this.last.day=this.setup_defaults("BYMONTHDAY","DAILY",this.dtstart.day),this.last.month=this.setup_defaults("BYMONTH","MONTHLY",this.dtstart.month),"WEEKLY"==this.rule.freq)if("BYDAY"in e){let[,t]=this.ruleDayOfWeek(e.BYDAY[0],this.rule.wkst),n=t-this.last.dayOfWeek(this.rule.wkst);(this.last.dayOfWeek(this.rule.wkst)<t&&n>=0||n<0)&&(this.last.day+=n)}else{let t=Ny.numericDayToIcalDay(this.dtstart.dayOfWeek());e.BYDAY=[t]}if("YEARLY"==this.rule.freq){let e=this.rule.until?this.rule.until.year:2e4;for(;this.last.year<=e&&(this.expand_year_days(this.last.year),!(this.days.length>0));)this.increment_year(this.rule.interval);if(0==this.days.length)throw new u8;if(!(this._nextByYearDay()||this.next_year()||this.next_year()||this.next_year()))throw new u8}if("MONTHLY"==this.rule.freq)if(this.has_by_data("BYDAY")){let e=null,t=this.last.clone(),n=$s.daysInMonth(this.last.month,this.last.year);for(let r of this.by_data.BYDAY){this.last=t.clone();let[a,i]=this.ruleDayOfWeek(r),o=this.last.nthWeekDay(i,a);if(a>=6||a<=-6)throw new Error("Malformed values in BYDAY part");if(o>n||o<=0){if(e&&e.month==t.month)continue;for(;o>n||o<=0;)this.increment_month(),n=$s.daysInMonth(this.last.month,this.last.year),o=this.last.nthWeekDay(i,a)}this.last.day=o,(!e||this.last.compare(e)<0)&&(e=this.last.clone())}if(this.last=e.clone(),this.has_by_data("BYMONTHDAY")&&this._byDayAndMonthDay(!0),this.last.day>n||0==this.last.day)throw new Error("Malformed values in BYDAY part")}else if(this.has_by_data("BYMONTHDAY")){this.last.day=1;let e=this.normalizeByMonthDayRules(this.last.year,this.last.month,this.rule.parts.BYMONTHDAY).filter(e=>e>=this.last.day);if(e.length)this.last.day=e[0],this.by_data.BYMONTHDAY=e;else if(!this.next_month()&&!this.next_month()&&!this.next_month())throw new u8}}next(e=!1){let t=this.last?this.last.clone():null;if((this.rule.count&&this.occurrence_number>=this.rule.count||this.rule.until&&this.last.compare(this.rule.until)>0)&&(this.completed=!0),this.completed)return null;if(0==this.occurrence_number&&this.last.compare(this.dtstart)>=0)return this.occurrence_number++,this.last;let n,r=0;do{switch(n=1,this.rule.freq){case"SECONDLY":this.next_second();break;case"MINUTELY":this.next_minute();break;case"HOURLY":this.next_hour();break;case"DAILY":this.next_day();break;case"WEEKLY":this.next_week();break;case"MONTHLY":if(n=this.next_month(),n)r=0;else if(336==++r)return this.completed=!0,null;break;case"YEARLY":if(n=this.next_year(),n)r=0;else if(28==++r)return this.completed=!0,null;break;default:return null}}while(!this.check_contracting_rules()||this.last.compare(this.dtstart)<0||!n);if(0==this.last.compare(t)){if(e)throw new Error("Same occurrence found twice, protecting you from death by recursion");this.next(!0)}return this.rule.until&&this.last.compare(this.rule.until)>0?(this.completed=!0,null):(this.occurrence_number++,this.last)}next_second(){return this.next_generic("BYSECOND","SECONDLY","second","minute")}increment_second(e){return this.increment_generic(e,"second",60,"minute")}next_minute(){return this.next_generic("BYMINUTE","MINUTELY","minute","hour","next_second")}increment_minute(e){return this.increment_generic(e,"minute",60,"hour")}next_hour(){return this.next_generic("BYHOUR","HOURLY","hour","monthday","next_minute")}increment_hour(e){this.increment_generic(e,"hour",24,"monthday")}next_day(){let e="DAILY"==this.rule.freq;return 0==this.next_hour()||(e?this.increment_monthday(this.rule.interval):this.increment_monthday(1)),0}next_week(){let e=0;if(0==this.next_weekday_by_week())return e;if(this.has_by_data("BYWEEKNO")){this.by_indices.BYWEEKNO++,this.by_indices.BYWEEKNO==this.by_data.BYWEEKNO.length&&(this.by_indices.BYWEEKNO=0,e=1),this.last.month=1,this.last.day=1;let t=this.by_data.BYWEEKNO[this.by_indices.BYWEEKNO];this.last.day+=7*t,e&&this.increment_year(1)}else this.increment_monthday(7*this.rule.interval);return e}normalizeByMonthDayRules(e,t,n){let r,a=$s.daysInMonth(t,e),i=[],o=0,s=n.length;for(;o<s;o++){if(r=parseInt(n[o],10),isNaN(r))throw new Error("Invalid BYMONTHDAY value");if(!(Math.abs(r)>a)){if(r<0)r=a+(r+1);else if(0===r)continue;-1===i.indexOf(r)&&i.push(r)}}return i.sort(function(e,t){return e-t})}_byDayAndMonthDay(e){let t,n,r,a,i=this.by_data.BYDAY,o=0,s=i.length,l=0,c=this,u=this.last.day;function d(){for(a=$s.daysInMonth(c.last.month,c.last.year),t=c.normalizeByMonthDayRules(c.last.year,c.last.month,c.by_data.BYMONTHDAY),r=t.length;t[o]<=u&&(!e||t[o]!=u)&&o<r-1;)o++}function p(){u=0,c.increment_month(),o=0,d()}d(),e&&(u-=1);let h=48;for(;!l&&h;){if(h--,n=u+1,n>a){p();continue}let e=t[o++];if(e>=n){u=e;for(let e=0;e<s;e++){let t=this.ruleDayOfWeek(i[e]),n=t[0],r=t[1];if(this.last.day=u,this.last.isNthWeekDay(r,n)){l=1;break}}l||o!==r||p()}else p()}if(h<=0)throw new Error("Malformed values in BYDAY combined with BYMONTHDAY parts");return l}next_month(){let e=1;if(0==this.next_hour())return e;if(this.has_by_data("BYDAY")&&this.has_by_data("BYMONTHDAY"))e=this._byDayAndMonthDay();else if(this.has_by_data("BYDAY")){let t,n=$s.daysInMonth(this.last.month,this.last.year),r=0,a=0;if(this.has_by_data("BYSETPOS")){let e=this.last.day;for(let t=1;t<=n;t++)this.last.day=t,this.is_day_in_byday(this.last)&&(a++,t<=e&&r++);this.last.day=e}for(e=0,t=this.last.day+1;t<=n;t++)if(this.last.day=t,this.is_day_in_byday(this.last)&&(!this.has_by_data("BYSETPOS")||this.check_set_position(++r)||this.check_set_position(r-a-1))){e=1;break}t>n&&(this.last.day=1,this.increment_month(),this.is_day_in_byday(this.last)?(!this.has_by_data("BYSETPOS")||this.check_set_position(1))&&(e=1):e=0)}else if(this.has_by_data("BYMONTHDAY")){if(this.by_indices.BYMONTHDAY++,this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length&&(this.by_indices.BYMONTHDAY=0,this.increment_month(),this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length))return 0;let t=$s.daysInMonth(this.last.month,this.last.year),n=this.by_data.BYMONTHDAY[this.by_indices.BYMONTHDAY];n<0&&(n=t+n+1),n>t?(this.last.day=1,e=this.is_day_in_byday(this.last)):this.last.day=n}else{this.increment_month();let t=$s.daysInMonth(this.last.month,this.last.year);this.by_data.BYMONTHDAY[0]>t?e=0:this.last.day=this.by_data.BYMONTHDAY[0]}return e}next_weekday_by_week(){let e=0;if(0==this.next_hour())return e;if(!this.has_by_data("BYDAY"))return 1;for(;;){let t=new $s;this.by_indices.BYDAY++,this.by_indices.BYDAY==Object.keys(this.by_data.BYDAY).length&&(this.by_indices.BYDAY=0,e=1);let n=this.by_data.BYDAY[this.by_indices.BYDAY],r=this.ruleDayOfWeek(n)[1];r-=this.rule.wkst,r<0&&(r+=7),t.year=this.last.year,t.month=this.last.month,t.day=this.last.day;let a=t.startDoyWeek(this.rule.wkst);if(r+a<1&&!e)continue;let i=$s.fromDayOfYear(a+r,this.last.year);return this.last.year=i.year,this.last.month=i.month,this.last.day=i.day,e}}next_year(){return 0==this.next_hour()||(0==this.days.length||++this.days_index==this.days.length)&&(this.days_index=0,this.increment_year(this.rule.interval),this.has_by_data("BYMONTHDAY")&&(this.by_data.BYMONTHDAY=this.normalizeByMonthDayRules(this.last.year,this.last.month,this.rule.parts.BYMONTHDAY)),this.expand_year_days(this.last.year),0==this.days.length)?0:this._nextByYearDay()}_nextByYearDay(){let e=this.days[this.days_index],t=this.last.year;if(366==Math.abs(e)&&!$s.isLeapYear(this.last.year))return 0;e<1&&(e+=1,t+=1);let n=$s.fromDayOfYear(e,t);return this.last.day=n.day,this.last.month=n.month,1}ruleDayOfWeek(e,t){let n=e.match(/([+-]?[0-9])?(MO|TU|WE|TH|FR|SA|SU)/);if(n){return[parseInt(n[1]||0,10),e=Ny.icalDayToNumericDay(n[2],t)]}return[0,0]}next_generic(e,t,n,r,a){let i=e in this.by_data,o=this.rule.freq==t,s=0;if(a&&0==this[a]())return s;if(i){this.by_indices[e]++;let t=this.by_data[e];this.by_indices[e]==t.length&&(this.by_indices[e]=0,s=1),this.last[n]=t[this.by_indices[e]]}else o&&this["increment_"+n](this.rule.interval);return i&&s&&o&&this["increment_"+r](1),s}increment_monthday(e){for(let t=0;t<e;t++){let e=$s.daysInMonth(this.last.month,this.last.year);this.last.day++,this.last.day>e&&(this.last.day-=e,this.increment_month())}}increment_month(){if(this.last.day=1,this.has_by_data("BYMONTH"))this.by_indices.BYMONTH++,this.by_indices.BYMONTH==this.by_data.BYMONTH.length&&(this.by_indices.BYMONTH=0,this.increment_year(1)),this.last.month=this.by_data.BYMONTH[this.by_indices.BYMONTH];else{"MONTHLY"==this.rule.freq?this.last.month+=this.rule.interval:this.last.month++,this.last.month--;let e=Rp(this.last.month/12);this.last.month%=12,this.last.month++,0!=e&&this.increment_year(e)}this.has_by_data("BYMONTHDAY")&&(this.by_data.BYMONTHDAY=this.normalizeByMonthDayRules(this.last.year,this.last.month,this.rule.parts.BYMONTHDAY))}increment_year(e){this.last.day=1,this.last.year+=e}increment_generic(e,t,n,r){this.last[t]+=e;let a=Rp(this.last[t]/n);this.last[t]%=n,0!=a&&this["increment_"+r](a)}has_by_data(e){return e in this.rule.parts}expand_year_days(e){let t=new $s;this.days=[];let n={},r=["BYDAY","BYWEEKNO","BYMONTHDAY","BYMONTH","BYYEARDAY"];for(let e of r)e in this.rule.parts&&(n[e]=this.rule.parts[e]);if("BYMONTH"in n&&"BYWEEKNO"in n){let r=1,a={};t.year=e,t.isDate=!0;for(let n=0;n<this.by_data.BYMONTH.length;n++){let r=this.by_data.BYMONTH[n];t.month=r,t.day=1;let i=t.weekNumber(this.rule.wkst);t.day=$s.daysInMonth(r,e);let o=t.weekNumber(this.rule.wkst);for(n=i;n<o;n++)a[n]=1}for(let e=0;e<this.by_data.BYWEEKNO.length&&r;e++)this.by_data.BYWEEKNO[e]<52?r&=a[e]:r=0;r?delete n.BYMONTH:delete n.BYWEEKNO}let a=Object.keys(n).length;if(0==a){let e=this.dtstart.clone();e.year=this.last.year,this.days.push(e.dayOfYear())}else if(1==a&&"BYMONTH"in n)for(let t of this.by_data.BYMONTH){let n=this.dtstart.clone();n.year=e,n.month=t,n.isDate=!0,this.days.push(n.dayOfYear())}else if(1==a&&"BYMONTHDAY"in n)for(let t of this.by_data.BYMONTHDAY){let n=this.dtstart.clone();if(t<0){t=t+$s.daysInMonth(n.month,e)+1}n.day=t,n.year=e,n.isDate=!0,this.days.push(n.dayOfYear())}else if(2==a&&"BYMONTHDAY"in n&&"BYMONTH"in n)for(let n of this.by_data.BYMONTH){let r=$s.daysInMonth(n,e);for(let a of this.by_data.BYMONTHDAY)a<0&&(a=a+r+1),t.day=a,t.month=n,t.year=e,t.isDate=!0,this.days.push(t.dayOfYear())}else if(!(1==a&&"BYWEEKNO"in n||2==a&&"BYWEEKNO"in n&&"BYMONTHDAY"in n))if(1==a&&"BYDAY"in n)this.days=this.days.concat(this.expand_by_day(e));else if(2==a&&"BYDAY"in n&&"BYMONTH"in n){for(let n of this.by_data.BYMONTH){let r=$s.daysInMonth(n,e);t.year=e,t.month=n,t.day=1,t.isDate=!0;let a=t.dayOfWeek(),i=t.dayOfYear()-1;t.day=r;let o=t.dayOfWeek();if(this.has_by_data("BYSETPOS")){let e=[];for(let n=1;n<=r;n++)t.day=n,this.is_day_in_byday(t)&&e.push(n);for(let t=0;t<e.length;t++)(this.check_set_position(t+1)||this.check_set_position(t-e.length))&&this.days.push(i+e[t])}else for(let e of this.by_data.BYDAY){let t,n=this.ruleDayOfWeek(e),s=n[0],l=n[1],c=(l+7-a)%7+1,u=r-(o+7-l)%7;if(0==s)for(let e=c;e<=r;e+=7)this.days.push(i+e);else s>0?(t=c+7*(s-1),t<=r&&this.days.push(i+t)):(t=u+7*(s+1),t>0&&this.days.push(i+t))}}this.days.sort(function(e,t){return e-t})}else if(2==a&&"BYDAY"in n&&"BYMONTHDAY"in n){let t=this.expand_by_day(e);for(let n of t){let t=$s.fromDayOfYear(n,e);this.by_data.BYMONTHDAY.indexOf(t.day)>=0&&this.days.push(n)}}else if(3==a&&"BYDAY"in n&&"BYMONTHDAY"in n&&"BYMONTH"in n){let t=this.expand_by_day(e);for(let n of t){let t=$s.fromDayOfYear(n,e);this.by_data.BYMONTH.indexOf(t.month)>=0&&this.by_data.BYMONTHDAY.indexOf(t.day)>=0&&this.days.push(n)}}else if(2==a&&"BYDAY"in n&&"BYWEEKNO"in n){let t=this.expand_by_day(e);for(let n of t){let t=$s.fromDayOfYear(n,e).weekNumber(this.rule.wkst);this.by_data.BYWEEKNO.indexOf(t)&&this.days.push(n)}}else if(!(3==a&&"BYDAY"in n&&"BYWEEKNO"in n&&"BYMONTHDAY"in n))if(1==a&&"BYYEARDAY"in n)this.days=this.days.concat(this.by_data.BYYEARDAY);else if(2==a&&"BYYEARDAY"in n&&"BYDAY"in n){let t=$s.isLeapYear(e)?366:365,n=new Set(this.expand_by_day(e));for(let e of this.by_data.BYYEARDAY)e<0&&(e+=t+1),n.has(e)&&this.days.push(e)}else this.days=[];let i=$s.isLeapYear(e)?366:365;return this.days.sort((e,t)=>(e<0&&(e+=i+1),t<0&&(t+=i+1),e-t)),0}expand_by_day(e){let t=[],n=this.last.clone();n.year=e,n.month=1,n.day=1,n.isDate=!0;let r=n.dayOfWeek();n.month=12,n.day=31,n.isDate=!0;let a=n.dayOfWeek(),i=n.dayOfYear();for(let e of this.by_data.BYDAY){let n=this.ruleDayOfWeek(e),o=n[0],s=n[1];if(0==o){for(let e=(s+7-r)%7+1;e<=i;e+=7)t.push(e)}else if(o>0){let e;e=s>=r?s-r+1:s-r+8,t.push(e+7*(o-1))}else{let e;o=-o,e=s<=a?i-a+s:i-a+s-7,t.push(e-7*(o-1))}}return t}is_day_in_byday(e){if(this.by_data.BYDAY)for(let t of this.by_data.BYDAY){let n=this.ruleDayOfWeek(t),r=n[0],a=n[1],i=e.dayOfWeek();if(0==r&&a==i||e.nthWeekDay(a,r)==e.day)return 1}return 0}check_set_position(e){return!!this.has_by_data("BYSETPOS")&&-1!==this.by_data.BYSETPOS.indexOf(e)}sort_byday_rules(e){for(let t=0;t<e.length;t++)for(let n=0;n<t;n++){if(this.ruleDayOfWeek(e[n],this.rule.wkst)[1]>this.ruleDayOfWeek(e[t],this.rule.wkst)[1]){let r=e[t];e[t]=e[n],e[n]=r}}}check_contract_restriction(t,n){let r=e._indexMap[t],a=e._expandMap[this.rule.freq][r],i=!1;if(t in this.by_data&&a==e.CONTRACT){let e=this.by_data[t];for(let t of e)if(t==n){i=!0;break}}else i=!0;return i}check_contracting_rules(){let e=this.last.dayOfWeek(),t=this.last.weekNumber(this.rule.wkst),n=this.last.dayOfYear();return this.check_contract_restriction("BYSECOND",this.last.second)&&this.check_contract_restriction("BYMINUTE",this.last.minute)&&this.check_contract_restriction("BYHOUR",this.last.hour)&&this.check_contract_restriction("BYDAY",Ny.numericDayToIcalDay(e))&&this.check_contract_restriction("BYWEEKNO",t)&&this.check_contract_restriction("BYMONTHDAY",this.last.day)&&this.check_contract_restriction("BYMONTH",this.last.month)&&this.check_contract_restriction("BYYEARDAY",n)}setup_defaults(t,n,r){let a=e._indexMap[t];return e._expandMap[this.rule.freq][a]!=e.CONTRACT&&(t in this.by_data||(this.by_data[t]=[r]),this.rule.freq!=n)?this.by_data[t][0]:r}toJSON(){let e=Object.create(null);return e.initialized=this.initialized,e.rule=this.rule.toJSON(),e.dtstart=this.dtstart.toJSON(),e.by_data=this.by_data,e.days=this.days,e.last=this.last.toJSON(),e.by_indices=this.by_indices,e.occurrence_number=this.occurrence_number,e}},u8=class extends Error{constructor(){super("Recurrence rule has no valid occurrences")}},UPt=/^(SU|MO|TU|WE|TH|FR|SA)$/,HPt=/^([+-])?(5[0-3]|[1-4][0-9]|[1-9])?(SU|MO|TU|WE|TH|FR|SA)$/,NOe={SU:$s.SUNDAY,MO:$s.MONDAY,TU:$s.TUESDAY,WE:$s.WEDNESDAY,TH:$s.THURSDAY,FR:$s.FRIDAY,SA:$s.SATURDAY},VPt=Object.fromEntries(Object.entries(NOe).map(e=>e.reverse())),wOe=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"],Ny=class e{static fromString(t){let n=this._stringToData(t,!1);return new e(n)}static fromData(t){return new e(t)}static _stringToData(e,t){let n=Object.create(null),r=e.split(";"),a=r.length;for(let e=0;e<a;e++){let a=r[e].split("="),i=a[0].toUpperCase(),o=a[0].toLowerCase(),s=t?o:i,l=a[1];if(i in Pae){let e=l.split(","),t=new Set;for(let n of e)t.add(Pae[i](n));e=[...t],n[s]=1==e.length?e[0]:e}else i in Lae?Lae[i](l,n,t):n[o]=l}return n}static icalDayToNumericDay(e,t){let n=t||$s.SUNDAY;return(NOe[e]-n+7)%7+1}static numericDayToIcalDay(e,t){let n=e+(t||$s.SUNDAY)-$s.SUNDAY;return n>7&&(n-=7),VPt[n]}constructor(e){this.wrappedJSObject=this,this.parts={},e&&"object"==typeof e&&this.fromData(e)}parts=null;interval=1;wkst=$s.MONDAY;until=null;count=null;freq=null;icalclass="icalrecur";icaltype="recur";iterator(e){return new JE({rule:this,dtstart:e})}clone(){return new e(this.toJSON())}isFinite(){return!(!this.count&&!this.until)}isByCount(){return!(!this.count||this.until)}addComponent(e,t){let n=e.toUpperCase();n in this.parts?this.parts[n].push(t):this.parts[n]=[t]}setComponent(e,t){this.parts[e.toUpperCase()]=t.slice()}getComponent(e){let t=e.toUpperCase();return t in this.parts?this.parts[t].slice():[]}getNextOccurrence(e,t){let n,r=this.iterator(e);do{n=r.next()}while(n&&n.compare(t)<=0);return n&&t.zone&&(n.zone=t.zone),n}fromData(t){for(let e in t){let n=e.toUpperCase();n in Pae?Array.isArray(t[e])?this.parts[n]=t[e]:this.parts[n]=[t[e]]:this[e]=t[e]}this.interval&&"number"!=typeof this.interval&&Lae.INTERVAL(this.interval,this),this.wkst&&"number"!=typeof this.wkst&&(this.wkst=e.icalDayToNumericDay(this.wkst)),this.until&&!(this.until instanceof $s)&&(this.until=$s.fromString(this.until))}toJSON(){let t=Object.create(null);t.freq=this.freq,this.count&&(t.count=this.count),this.interval>1&&(t.interval=this.interval);for(let[e,n]of Object.entries(this.parts))Array.isArray(n)&&1==n.length?t[e.toLowerCase()]=n[0]:t[e.toLowerCase()]=jA(n);return this.until&&(t.until=this.until.toString()),"wkst"in this&&this.wkst!==$s.DEFAULT_WEEK_START&&(t.wkst=e.numericDayToIcalDay(this.wkst)),t}toString(){let t="FREQ="+this.freq;this.count&&(t+=";COUNT="+this.count),this.interval>1&&(t+=";INTERVAL="+this.interval);for(let[e,n]of Object.entries(this.parts))t+=";"+e+"="+n;return this.until&&(t+=";UNTIL="+this.until.toICALString()),"wkst"in this&&this.wkst!==$s.DEFAULT_WEEK_START&&(t+=";WKST="+e.numericDayToIcalDay(this.wkst)),t}},Lae={FREQ:function(e,t,n){if(-1===wOe.indexOf(e))throw new Error('invalid frequency "'+e+'" expected: "'+wOe.join(", ")+'"');t.freq=e},COUNT:function(e,t,n){t.count=U2(e)},INTERVAL:function(e,t,n){t.interval=U2(e),t.interval<1&&(t.interval=1)},UNTIL:function(e,t,n){e.length>10?t.until=Qu.icalendar.value["date-time"].fromICAL(e):t.until=Qu.icalendar.value.date.fromICAL(e),n||(t.until=$s.fromString(t.until))},WKST:function(e,t,n){if(!UPt.test(e))throw new Error('invalid WKST value "'+e+'"');t.wkst=Ny.icalDayToNumericDay(e)}},Pae={BYSECOND:dz.bind(void 0,"BYSECOND",0,60),BYMINUTE:dz.bind(void 0,"BYMINUTE",0,59),BYHOUR:dz.bind(void 0,"BYHOUR",0,23),BYDAY:function(e){if(HPt.test(e))return e;throw new Error('invalid BYDAY value "'+e+'"')},BYMONTHDAY:dz.bind(void 0,"BYMONTHDAY",-31,31),BYYEARDAY:dz.bind(void 0,"BYYEARDAY",-366,366),BYWEEKNO:dz.bind(void 0,"BYWEEKNO",-53,53),BYMONTH:dz.bind(void 0,"BYMONTH",1,12),BYSETPOS:dz.bind(void 0,"BYSETPOS",-366,366)},OOe=/\\\\|\\,|\\[Nn]/g,TOe=/\\|,|\n/g,RB={defaultType:"text",structuredValue:";"},wB={defaultType:"integer"},OB={defaultType:"date-time",allowedTypes:["date-time","date"]},TB={defaultType:"date-time"},SOe={defaultType:"utc-offset"},kOe={defaultType:"recur"},COe={defaultType:"date-and-or-time",allowedTypes:["date-time","date","text"]},Fae={categories:QE={defaultType:"text",multiValue:","},url:Vm={defaultType:"uri"},version:tu={defaultType:"text"},uid:tu},ZPt={cutype:{values:["INDIVIDUAL","GROUP","RESOURCE","ROOM","UNKNOWN"],allowXName:!0,allowIanaToken:!0},"delegated-from":{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},"delegated-to":{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},encoding:{values:["8BIT","BASE64"]},fbtype:{values:["FREE","BUSY","BUSY-UNAVAILABLE","BUSY-TENTATIVE"],allowXName:!0,allowIanaToken:!0},member:{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},partstat:{values:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED","COMPLETED","IN-PROCESS"],allowXName:!0,allowIanaToken:!0},range:{values:["THISANDFUTURE"]},related:{values:["START","END"]},reltype:{values:["PARENT","CHILD","SIBLING"],allowXName:!0,allowIanaToken:!0},role:{values:["REQ-PARTICIPANT","CHAIR","OPT-PARTICIPANT","NON-PARTICIPANT"],allowXName:!0,allowIanaToken:!0},rsvp:{values:["TRUE","FALSE"]},"sent-by":{valueType:"cal-address"},tzid:{matches:/^\//},value:{values:["binary","boolean","cal-address","date","date-time","duration","float","integer","period","recur","text","time","uri","utc-offset"],allowXName:!0,allowIanaToken:!0}},Uh=GA(Bae={boolean:{values:["TRUE","FALSE"],fromICAL:function(e){return"TRUE"===e},toICAL:function(e){return e?"TRUE":"FALSE"}},float:{matches:/^[+-]?\d+\.\d+$/,fromICAL:function(e){let t=parseFloat(e);return KE(t)?0:t},toICAL:function(e){return String(e)}},integer:{fromICAL:function(e){let t=parseInt(e);return KE(t)?0:t},toICAL:function(e){return String(e)}},"utc-offset":{toICAL:function(e){return e.length<7?e.slice(0,3)+e.slice(4,6):e.slice(0,3)+e.slice(4,6)+e.slice(7,9)},fromICAL:function(e){return e.length<6?e.slice(0,3)+":"+e.slice(3,5):e.slice(0,3)+":"+e.slice(3,5)+":"+e.slice(5,7)},decorate:function(e){return tx.fromString(e)},undecorate:function(e){return e.toString()}}},{text:Nae(jPt=/\\\\|\\;|\\,|\\[Nn]/g,GPt=/\\|;|,|\n/g),uri:{},binary:{decorate:function(e){return EB.fromString(e)},undecorate:function(e){return e.toString()}},"cal-address":{},date:{decorate:function(e,t){return Qu.strict?$s.fromDateString(e,t):$s.fromString(e,t)},undecorate:function(e){return e.toString()},fromICAL:function(e){return!Qu.strict&&e.length>=15?Uh["date-time"].fromICAL(e):e.slice(0,4)+"-"+e.slice(4,6)+"-"+e.slice(6,8)},toICAL:function(e){let t=e.length;return 10==t?e.slice(0,4)+e.slice(5,7)+e.slice(8,10):t>=19?Uh["date-time"].toICAL(e):e}},"date-time":{fromICAL:function(e){if(!Qu.strict&&8==e.length)return Uh.date.fromICAL(e);{let t=e.slice(0,4)+"-"+e.slice(4,6)+"-"+e.slice(6,8)+"T"+e.slice(9,11)+":"+e.slice(11,13)+":"+e.slice(13,15);return e[15]&&"Z"===e[15]&&(t+="Z"),t}},toICAL:function(e){let t=e.length;if(10==t&&!Qu.strict)return Uh.date.toICAL(e);if(t>=19){let t=e.slice(0,4)+e.slice(5,7)+e.slice(8,13)+e.slice(14,16)+e.slice(17,19);return e[19]&&"Z"===e[19]&&(t+="Z"),t}return e},decorate:function(e,t){return Qu.strict?$s.fromDateTimeString(e,t):$s.fromString(e,t)},undecorate:function(e){return e.toString()}},duration:{decorate:function(e){return Tv.fromString(e)},undecorate:function(e){return e.toString()}},period:{fromICAL:function(e){let t=e.split("/");return t[0]=Uh["date-time"].fromICAL(t[0]),Tv.isValueString(t[1])||(t[1]=Uh["date-time"].fromICAL(t[1])),t},toICAL:function(e){return e=e.slice(),Qu.strict||10!=e[0].length?e[0]=Uh["date-time"].toICAL(e[0]):e[0]=Uh.date.toICAL(e[0]),Tv.isValueString(e[1])||(Qu.strict||10!=e[1].length?e[1]=Uh["date-time"].toICAL(e[1]):e[1]=Uh.date.toICAL(e[1])),e.join("/")},decorate:function(e,t){return $E.fromJSON(e,t,!Qu.strict)},undecorate:function(e){return e.toJSON()}},recur:{fromICAL:function(e){return Ny._stringToData(e,!0)},toICAL:function(e){let t="";for(let[n,r]of Object.entries(e))"until"==n?r=r.length>10?Uh["date-time"].toICAL(r):Uh.date.toICAL(r):"wkst"==n?"number"==typeof r&&(r=Ny.numericDayToIcalDay(r)):Array.isArray(r)&&(r=r.join(",")),t+=n.toUpperCase()+"="+r+";";return t.slice(0,Math.max(0,t.length-1))},decorate:function(e){return Ny.fromData(e)},undecorate:function(e){return e.toJSON()}},time:{fromICAL:function(e){if(e.length<6)return e;let t=e.slice(0,2)+":"+e.slice(2,4)+":"+e.slice(4,6);return"Z"===e[6]&&(t+="Z"),t},toICAL:function(e){if(e.length<8)return e;let t=e.slice(0,2)+e.slice(3,5)+e.slice(6,8);return"Z"===e[8]&&(t+="Z"),t}}}),$Pt=GA(Fae,{action:tu,attach:{defaultType:"uri"},attendee:{defaultType:"cal-address"},calscale:tu,class:tu,comment:tu,completed:TB,contact:tu,created:TB,description:tu,dtend:OB,dtstamp:TB,dtstart:OB,due:OB,duration:{defaultType:"duration"},exdate:{defaultType:"date-time",allowedTypes:["date-time","date"],multiValue:","},exrule:kOe,freebusy:{defaultType:"period",multiValue:","},geo:{defaultType:"float",structuredValue:";"},"last-modified":TB,location:tu,method:tu,organizer:{defaultType:"cal-address"},"percent-complete":wB,priority:wB,prodid:tu,"related-to":tu,repeat:wB,rdate:{defaultType:"date-time",allowedTypes:["date-time","date","period"],multiValue:",",detectType:function(e){return-1!==e.indexOf("/")?"period":-1===e.indexOf("T")?"date":"date-time"}},"recurrence-id":OB,resources:QE,"request-status":RB,rrule:kOe,sequence:wB,status:tu,summary:tu,transp:tu,trigger:{defaultType:"duration",allowedTypes:["duration","date-time"]},tzoffsetfrom:SOe,tzoffsetto:SOe,tzurl:Vm,tzid:tu,tzname:tu}),Ov=GA(Bae,{text:Nae(OOe,TOe),uri:Nae(OOe,TOe),date:{decorate:function(e){return UA.fromDateAndOrTimeString(e,"date")},undecorate:function(e){return e.toString()},fromICAL:function(e){return 8==e.length?Uh.date.fromICAL(e):"-"==e[0]&&6==e.length?e.slice(0,4)+"-"+e.slice(4):e},toICAL:function(e){return 10==e.length?Uh.date.toICAL(e):"-"==e[0]&&7==e.length?e.slice(0,4)+e.slice(5):e}},time:{decorate:function(e){return UA.fromDateAndOrTimeString("T"+e,"time")},undecorate:function(e){return e.toString()},fromICAL:function(e){let t=Ov.time._splitZone(e,!0),n=t[0],r=t[1];return 6==r.length?r=r.slice(0,2)+":"+r.slice(2,4)+":"+r.slice(4,6):4==r.length&&"-"!=r[0]?r=r.slice(0,2)+":"+r.slice(2,4):5==r.length&&(r=r.slice(0,3)+":"+r.slice(3,5)),5==n.length&&("-"==n[0]||"+"==n[0])&&(n=n.slice(0,3)+":"+n.slice(3)),r+n},toICAL:function(e){let t=Ov.time._splitZone(e),n=t[0],r=t[1];return 8==r.length?r=r.slice(0,2)+r.slice(3,5)+r.slice(6,8):5==r.length&&"-"!=r[0]?r=r.slice(0,2)+r.slice(3,5):6==r.length&&(r=r.slice(0,3)+r.slice(4,6)),6==n.length&&("-"==n[0]||"+"==n[0])&&(n=n.slice(0,3)+n.slice(4)),r+n},_splitZone:function(e,t){let n,r,a=e.length-1,i=e.length-(t?5:6),o=e[i];return"Z"==e[a]?(n=e[a],r=e.slice(0,Math.max(0,a))):e.length>6&&("-"==o||"+"==o)?(n=e.slice(i),r=e.slice(0,Math.max(0,i))):(n="",r=e),[n,r]}},"date-time":{decorate:function(e){return UA.fromDateAndOrTimeString(e,"date-time")},undecorate:function(e){return e.toString()},fromICAL:function(e){return Ov["date-and-or-time"].fromICAL(e)},toICAL:function(e){return Ov["date-and-or-time"].toICAL(e)}},"date-and-or-time":{decorate:function(e){return UA.fromDateAndOrTimeString(e,"date-and-or-time")},undecorate:function(e){return e.toString()},fromICAL:function(e){let t=e.split("T");return(t[0]?Ov.date.fromICAL(t[0]):"")+(t[1]?"T"+Ov.time.fromICAL(t[1]):"")},toICAL:function(e){let t=e.split("T");return Ov.date.toICAL(t[0])+(t[1]?"T"+Ov.time.toICAL(t[1]):"")}},timestamp:Uh["date-time"],"language-tag":{matches:/^[a-zA-Z0-9-]+$/},"phone-number":{fromICAL:function(e){return Array.from(e).filter(function(e){return"\\"===e?void 0:e}).join("")},toICAL:function(e){return Array.from(e).map(function(e){return","===e||";"===e?"\\"+e:e}).join("")}}}),KPt={type:{valueType:"text",multiValue:","},value:{values:["text","uri","date","time","date-time","date-and-or-time","timestamp","boolean","integer","float","utc-offset","language-tag"],allowXName:!0,allowIanaToken:!0}},JPt=GA(Fae,{adr:{defaultType:"text",structuredValue:";",multiValue:","},anniversary:COe,bday:COe,caladruri:Vm,caluri:Vm,clientpidmap:RB,email:tu,fburl:Vm,fn:tu,gender:RB,geo:Vm,impp:Vm,key:Vm,kind:tu,lang:{defaultType:"language-tag"},logo:Vm,member:Vm,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:QE,note:tu,org:{defaultType:"text",structuredValue:";"},photo:Vm,related:Vm,rev:{defaultType:"timestamp"},role:tu,sound:Vm,source:Vm,tel:{defaultType:"uri",allowedTypes:["uri","text"]},title:tu,tz:{defaultType:"text",allowedTypes:["text","utc-offset","uri"]},xml:tu}),QPt=GA(Bae,{binary:Uh.binary,date:Ov.date,"date-time":Ov["date-time"],"phone-number":Ov["phone-number"],uri:Uh.uri,text:Ov.text,time:Uh.time,vcard:Uh.text,"utc-offset":{toICAL:function(e){return e.slice(0,7)},fromICAL:function(e){return e.slice(0,7)},decorate:function(e){return tx.fromString(e)},undecorate:function(e){return e.toString()}}}),eIt={type:{valueType:"text",multiValue:","},value:{values:["text","uri","date","date-time","phone-number","time","boolean","integer","float","utc-offset","vcard","binary"],allowXName:!0,allowIanaToken:!0}},tIt=GA(Fae,{fn:tu,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:QE,photo:{defaultType:"binary",allowedTypes:["binary","uri"]},bday:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(e){return-1===e.indexOf("T")?"date":"date-time"}},adr:{defaultType:"text",structuredValue:";",multiValue:","},label:tu,tel:{defaultType:"phone-number"},email:tu,mailer:tu,tz:{defaultType:"utc-offset",allowedTypes:["utc-offset","text"]},geo:{defaultType:"float",structuredValue:";"},title:tu,role:tu,logo:{defaultType:"binary",allowedTypes:["binary","uri"]},agent:{defaultType:"vcard",allowedTypes:["vcard","text","uri"]},org:RB,note:QE,prodid:tu,rev:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(e){return-1===e.indexOf("T")?"date":"date-time"}},"sort-string":tu,sound:{defaultType:"binary",allowedTypes:["binary","uri"]},class:tu,key:{defaultType:"binary",allowedTypes:["binary","text"]}}),Qu={strict:!0,defaultSet:QM={name:"ical",value:Uh,param:ZPt,property:$Pt,propertyGroups:!1},defaultType:"unknown",components:{vcard:EOe={name:"vcard4",value:Ov,param:KPt,property:JPt,propertyGroups:!0},vcard3:qOe={name:"vcard3",value:QPt,param:eIt,property:tIt,propertyGroups:!0},vevent:QM,vtodo:QM,vjournal:QM,valarm:QM,vtimezone:QM,daylight:QM,standard:QM},icalendar:QM,vcard:EOe,vcard3:qOe,getDesignSet:function(e){return e&&e in Qu.components?Qu.components[e]:Qu.defaultSet}},CB="\r\n",DOe="unknown",rIt={'"':"^'","\n":"^n","^":"^^"},Rf.component=function(e,t){let n=e[0].toUpperCase(),r="BEGIN:"+n+CB,a=e[1],i=0,o=a.length,s=e[0];for("vcard"===s&&e[1].length>0&&!("version"===e[1][0][0]&&"4.0"===e[1][0][3])&&(s="vcard3"),t=t||Qu.getDesignSet(s);i<o;i++)r+=Rf.property(a[i],t)+CB;let l=e[2]||[],c=0,u=l.length;for(;c<u;c++)r+=Rf.component(l[c],t)+CB;return r+="END:"+n,r},Rf.property=function(e,t,n){let r=e[0].toUpperCase(),a=e[0],i=e[1];t||(t=Qu.defaultSet);let o,s=i.group;o=t.propertyGroups&&s?s.toUpperCase()+"."+r:r;for(let[e,n]of Object.entries(i)){if(t.propertyGroups&&"group"==e)continue;let r=t.param[e],a=r&&r.multiValue;a&&Array.isArray(n)?(n=n.map(function(e){return e=Rf._rfc6868Unescape(e),e=Rf.paramPropertyValue(e,r.multiValueSeparateDQuote)}),n=Rf.multiValue(n,a,"unknown",null,t)):(n=Rf._rfc6868Unescape(n),n=Rf.paramPropertyValue(n)),o+=";"+e.toUpperCase()+"="+n}if(3===e.length)return o+":";let l,c=e[2],u=!1,d=!1,p=!1;return a in t.property?(l=t.property[a],"multiValue"in l&&(u=l.multiValue),"structuredValue"in l&&Array.isArray(e[3])&&(d=l.structuredValue),"defaultType"in l?c===l.defaultType&&(p=!0):c===DOe&&(p=!0)):c===DOe&&(p=!0),p||(o+=";VALUE="+c.toUpperCase()),o+=":",o+=u&&d?Rf.multiValue(e[3],d,c,u,t,d):u?Rf.multiValue(e.slice(3),u,c,null,t,!1):d?Rf.multiValue(e[3],d,c,null,t,d):Rf.value(e[3],c,t,!1),n?o:IOe(o)},Rf.paramPropertyValue=function(e,t){return t||-1!==e.indexOf(",")||-1!==e.indexOf(":")||-1!==e.indexOf(";")?'"'+e+'"':e},Rf.multiValue=function(e,t,n,r,a,i){let o="",s=e.length,l=0;for(;l<s;l++)r&&Array.isArray(e[l])?o+=Rf.multiValue(e[l],r,n,null,a,i):o+=Rf.value(e[l],n,a,i),l!==s-1&&(o+=t);return o},Rf.value=function(e,t,n,r){return t in n.value&&"toICAL"in n.value[t]?n.value[t].toICAL(e,r):e},Rf._rfc6868Unescape=function(e){return e.replace(/[\n^"]/g,function(e){return rIt[e]})},ROe=0,SB=1,kB=2,fz=3,VA=class e{static fromString(t,n){return new e(Nu.property(t,n))}constructor(e,t){this._parent=t||null,"string"==typeof e?(this.jCal=[e,{},Qu.defaultType],this.jCal[kB]=this.getDefaultType()):this.jCal=e,this._updateType()}get type(){return this.jCal[kB]}get name(){return this.jCal[ROe]}get parent(){return this._parent}set parent(e){let t=!this._parent||e&&e._designSet!=this._parent._designSet;this._parent=e,this.type==Qu.defaultType&&t&&(this.jCal[kB]=this.getDefaultType(),this._updateType())}get _designSet(){return this.parent?this.parent._designSet:Qu.defaultSet}_updateType(){let e=this._designSet;this.type in e.value&&("decorate"in e.value[this.type]?this.isDecorated=!0:this.isDecorated=!1,this.name in e.property&&(this.isMultiValue="multiValue"in e.property[this.name],this.isStructuredValue="structuredValue"in e.property[this.name]))}_hydrateValue(e){return this._values&&this._values[e]?this._values[e]:this.jCal.length<=fz+e?null:this.isDecorated?(this._values||(this._values=[]),this._values[e]=this._decorate(this.jCal[fz+e])):this.jCal[fz+e]}_decorate(e){return this._designSet.value[this.type].decorate(e,this)}_undecorate(e){return this._designSet.value[this.type].undecorate(e,this)}_setDecoratedValue(e,t){this._values||(this._values=[]),"object"==typeof e&&"icaltype"in e?(this.jCal[fz+t]=this._undecorate(e),this._values[t]=e):(this.jCal[fz+t]=e,this._values[t]=this._decorate(e))}getParameter(e){if(e in this.jCal[SB])return this.jCal[SB][e]}getFirstParameter(e){let t=this.getParameter(e);return Array.isArray(t)?t[0]:t}setParameter(e,t){let n=e.toLowerCase();"string"==typeof t&&n in this._designSet.param&&"multiValue"in this._designSet.param[n]&&(t=[t]),this.jCal[SB][e]=t}removeParameter(e){delete this.jCal[SB][e]}getDefaultType(){let e=this.jCal[ROe],t=this._designSet;if(e in t.property){let n=t.property[e];if("defaultType"in n)return n.defaultType}return Qu.defaultType}resetType(e){this.removeAllValues(),this.jCal[kB]=e,this._updateType()}getFirstValue(){return this._hydrateValue(0)}getValues(){let e=this.jCal.length-fz;if(e<1)return[];let t=0,n=[];for(;t<e;t++)n[t]=this._hydrateValue(t);return n}removeAllValues(){this._values&&(this._values.length=0),this.jCal.length=3}setValues(e){if(!this.isMultiValue)throw new Error(this.name+": does not not support mulitValue.\noverride isMultiValue");let t=e.length,n=0;if(this.removeAllValues(),t>0&&"object"==typeof e[0]&&"icaltype"in e[0]&&this.resetType(e[0].icaltype),this.isDecorated)for(;n<t;n++)this._setDecoratedValue(e[n],n);else for(;n<t;n++)this.jCal[fz+n]=e[n]}setValue(e){this.removeAllValues(),"object"==typeof e&&"icaltype"in e&&this.resetType(e.icaltype),this.isDecorated?this._setDecoratedValue(e,0):this.jCal[fz]=e}toJSON(){return this.jCal}toICALString(){return Rf.property(this.jCal,this._designSet,!0)}},hz=0,o3=1,pz=2,nIt=0,aIt=3,kg=class e{static fromString(t){return new e(Nu.component(t))}constructor(e,t){"string"==typeof e&&(e=[e,[],[]]),this.jCal=e,this.parent=t||null,!this.parent&&"vcalendar"===this.name&&(this._timezoneCache=new Map)}_hydratedPropertyCount=0;_hydratedComponentCount=0;_timezoneCache=null;_components=null;_properties=null;get name(){return this.jCal[hz]}get _designSet(){let e=this.parent&&this.parent._designSet;if(!e&&"vcard"==this.name){let e=this.jCal[o3]?.[0];if(e&&"version"==e[nIt]&&"3.0"==e[aIt])return Qu.getDesignSet("vcard3")}return e||Qu.getDesignSet(this.name)}_hydrateComponent(t){if(this._components||(this._components=[],this._hydratedComponentCount=0),this._components[t])return this._components[t];let n=new e(this.jCal[pz][t],this);return this._hydratedComponentCount++,this._components[t]=n}_hydrateProperty(e){if(this._properties||(this._properties=[],this._hydratedPropertyCount=0),this._properties[e])return this._properties[e];let t=new VA(this.jCal[o3][e],this);return this._hydratedPropertyCount++,this._properties[e]=t}getFirstSubcomponent(e){if(e){let t=0,n=this.jCal[pz],r=n.length;for(;t<r;t++)if(n[t][hz]===e)return this._hydrateComponent(t)}else if(this.jCal[pz].length)return this._hydrateComponent(0);return null}getAllSubcomponents(e){let t=this.jCal[pz].length,n=0;if(e){let r=this.jCal[pz],a=[];for(;n<t;n++)e===r[n][hz]&&a.push(this._hydrateComponent(n));return a}if(!this._components||this._hydratedComponentCount!==t)for(;n<t;n++)this._hydrateComponent(n);return this._components||[]}hasProperty(e){let t=this.jCal[o3],n=t.length,r=0;for(;r<n;r++)if(t[r][hz]===e)return!0;return!1}getFirstProperty(e){if(e){let t=0,n=this.jCal[o3],r=n.length;for(;t<r;t++)if(n[t][hz]===e)return this._hydrateProperty(t)}else if(this.jCal[o3].length)return this._hydrateProperty(0);return null}getFirstPropertyValue(e){let t=this.getFirstProperty(e);return t?t.getFirstValue():null}getAllProperties(e){let t=this.jCal[o3].length,n=0;if(e){let r=this.jCal[o3],a=[];for(;n<t;n++)e===r[n][hz]&&a.push(this._hydrateProperty(n));return a}if(!this._properties||this._hydratedPropertyCount!==t)for(;n<t;n++)this._hydrateProperty(n);return this._properties||[]}_removeObjectByIndex(e,t,n){if((t=t||[])[n]){let e=t[n];"parent"in e&&(e.parent=null)}t.splice(n,1),this.jCal[e].splice(n,1)}_removeObject(e,t,n){let r=0,a=this.jCal[e],i=a.length,o=this[t];if("string"==typeof n){for(;r<i;r++)if(a[r][hz]===n)return this._removeObjectByIndex(e,o,r),!0}else if(o)for(;r<i;r++)if(o[r]&&o[r]===n)return this._removeObjectByIndex(e,o,r),!0;return!1}_removeAllObjects(e,t,n){let r=this[t],a=this.jCal[e],i=a.length-1;for(;i>=0;i--)(!n||a[i][hz]===n)&&this._removeObjectByIndex(e,r,i)}addSubcomponent(e){this._components||(this._components=[],this._hydratedComponentCount=0),e.parent&&e.parent.removeSubcomponent(e);let t=this.jCal[pz].push(e.jCal);return this._components[t-1]=e,this._hydratedComponentCount++,e.parent=this,e}removeSubcomponent(e){let t=this._removeObject(pz,"_components",e);return t&&this._hydratedComponentCount--,t}removeAllSubcomponents(e){let t=this._removeAllObjects(pz,"_components",e);return this._hydratedComponentCount=0,t}addProperty(e){if(!(e instanceof VA))throw new TypeError("must be instance of ICAL.Property");this._properties||(this._properties=[],this._hydratedPropertyCount=0),e.parent&&e.parent.removeProperty(e);let t=this.jCal[o3].push(e.jCal);return this._properties[t-1]=e,this._hydratedPropertyCount++,e.parent=this,e}addPropertyWithValue(e,t){let n=new VA(e);return n.setValue(t),this.addProperty(n),n}updatePropertyWithValue(e,t){let n=this.getFirstProperty(e);return n?n.setValue(t):n=this.addPropertyWithValue(e,t),n}removeProperty(e){let t=this._removeObject(o3,"_properties",e);return t&&this._hydratedPropertyCount--,t}removeAllProperties(e){let t=this._removeAllObjects(o3,"_properties",e);return this._hydratedPropertyCount=0,t}toJSON(){return this.jCal}toString(){return Rf.component(this.jCal,this._designSet)}getTimeZoneByID(e){if(this.parent)return this.parent.getTimeZoneByID(e);if(!this._timezoneCache)return null;if(this._timezoneCache.has(e))return this._timezoneCache.get(e);let t=this.getAllSubcomponents("vtimezone");for(let n of t)if(n.getFirstProperty("tzid").getFirstValue()===e){let t=new Ju({component:n,tzid:e});return this._timezoneCache.set(e,t),t}return null}},LB=class{constructor(e){this.ruleDates=[],this.exDates=[],this.fromData(e)}complete=!1;ruleIterators=null;ruleDates=null;exDates=null;ruleDateInc=0;exDateInc=0;exDate=null;ruleDate=null;dtstart=null;last=null;fromData(e){let t=ex(e.dtstart,$s);if(!t)throw new Error(".dtstart (ICAL.Time) must be given");if(this.dtstart=t,e.component)this._init(e.component);else{if(this.last=ex(e.last,$s)||t.clone(),!e.ruleIterators)throw new Error(".ruleIterators or .component must be given");this.ruleIterators=e.ruleIterators.map(function(e){return ex(e,JE)}),this.ruleDateInc=e.ruleDateInc,this.exDateInc=e.exDateInc,e.ruleDates&&(this.ruleDates=e.ruleDates.map(e=>ex(e,$s)),this.ruleDate=this.ruleDates[this.ruleDateInc]),e.exDates&&(this.exDates=e.exDates.map(e=>ex(e,$s)),this.exDate=this.exDates[this.exDateInc]),typeof e.complete<"u"&&(this.complete=e.complete)}}_compare_special(e,t){return!e.isDate&&t.isDate?new $s({year:e.year,month:e.month,day:e.day}).compare(t):e.compare(t)}next(){let e,t,n,r=0;for(;;){if(r++>500)throw new Error("max tries have occurred, rule may be impossible to fulfill.");if(t=this.ruleDate,e=this._nextRecurrenceIter(this.last),!t&&!e){this.complete=!0;break}if((!t||e&&t.compare(e.last)>0)&&(t=e.last.clone(),e.next()),this.ruleDate===t&&this._nextRuleDay(),this.last=t,!this.exDate||(n=this._compare_special(this.last,this.exDate),n>0&&this._nextExDay(),0!==n))return this.last;this._nextExDay()}}toJSON(){function e(e){return e.toJSON()}let t=Object.create(null);return t.ruleIterators=this.ruleIterators.map(e),this.ruleDates&&(t.ruleDates=this.ruleDates.map(e)),this.exDates&&(t.exDates=this.exDates.map(e)),t.ruleDateInc=this.ruleDateInc,t.exDateInc=this.exDateInc,t.last=this.last.toJSON(),t.dtstart=this.dtstart.toJSON(),t.complete=this.complete,t}_extractDates(e,t){let n=[],r=e.getAllProperties(t);for(let e=0,t=r.length;e<t;e++)for(let t of r[e].getValues()){let e=HA(n,t,(e,t)=>e.compare(t));n.splice(e,0,t)}return n}_init(e){if(this.ruleIterators=[],this.last=this.dtstart.clone(),!e.hasProperty("rdate")&&!e.hasProperty("rrule")&&!e.hasProperty("recurrence-id"))return this.ruleDate=this.last.clone(),void(this.complete=!0);if(e.hasProperty("rdate")&&(this.ruleDates=this._extractDates(e,"rdate"),this.ruleDates[0]&&this.ruleDates[0].compare(this.dtstart)<0?(this.ruleDateInc=0,this.last=this.ruleDates[0].clone()):this.ruleDateInc=HA(this.ruleDates,this.last,(e,t)=>e.compare(t)),this.ruleDate=this.ruleDates[this.ruleDateInc]),e.hasProperty("rrule")){let t,n,r=e.getAllProperties("rrule"),a=0,i=r.length;for(;a<i;a++)t=r[a].getFirstValue(),n=t.iterator(this.dtstart),this.ruleIterators.push(n),n.next()}e.hasProperty("exdate")&&(this.exDates=this._extractDates(e,"exdate"),this.exDateInc=HA(this.exDates,this.last,this._compare_special),this.exDate=this.exDates[this.exDateInc])}_nextExDay(){this.exDate=this.exDates[++this.exDateInc]}_nextRuleDay(){this.ruleDate=this.ruleDates[++this.ruleDateInc]}_nextRecurrenceIter(){let e=this.ruleIterators;if(0===e.length)return null;let t,n,r,a=e.length,i=0;for(;i<a;i++)t=e[i],n=t.last,t.completed?(a--,0!==i&&i--,e.splice(i,1)):(!r||r.last.compare(n)>0)&&(r=t);return r}},PB=class e{constructor(e,t){e instanceof kg||(t=e,e=null),this.component=e||new kg("vevent"),this._rangeExceptionCache=Object.create(null),this.exceptions=Object.create(null),this.rangeExceptions=[],t&&t.strictExceptions&&(this.strictExceptions=t.strictExceptions),t&&t.exceptions?t.exceptions.forEach(this.relateException,this):this.component.parent&&!this.isRecurrenceException()&&this.component.parent.getAllSubcomponents("vevent").forEach(function(e){e.hasProperty("recurrence-id")&&this.relateException(e)},this)}static THISANDFUTURE="THISANDFUTURE";exceptions=null;strictExceptions=!1;relateException(t){if(this.isRecurrenceException())throw new Error("cannot relate exception to exceptions");if(t instanceof kg&&(t=new e(t)),this.strictExceptions&&t.uid!==this.uid)throw new Error("attempted to relate unrelated exception");let n=t.recurrenceId.toString();if(this.exceptions[n]=t,t.modifiesFuture()){let e=[t.recurrenceId.toUnixTime(),n],r=HA(this.rangeExceptions,e,LOe);this.rangeExceptions.splice(r,0,e)}}modifiesFuture(){return!!this.component.hasProperty("recurrence-id")&&this.component.getFirstProperty("recurrence-id").getParameter("range")===e.THISANDFUTURE}findRangeException(e){if(!this.rangeExceptions.length)return null;let t=e.toUnixTime(),n=HA(this.rangeExceptions,[t],LOe);if(n-=1,n<0)return null;let r=this.rangeExceptions[n];return t<r[0]?null:r[1]}getOccurrenceDetails(e){let t,n=e.toString(),r=e.convertToZone(Ju.utcTimezone).toString(),a={recurrenceId:e};if(n in this.exceptions)t=a.item=this.exceptions[n],a.startDate=t.startDate,a.endDate=t.endDate,a.item=t;else if(r in this.exceptions)t=this.exceptions[r],a.startDate=t.startDate,a.endDate=t.endDate,a.item=t;else{let t,n=this.findRangeException(e);if(n){let r=this.exceptions[n];a.item=r;let i=this._rangeExceptionCache[n];if(!i){let e=r.recurrenceId.clone(),t=r.startDate.clone();e.zone=t.zone,i=t.subtractDate(e),this._rangeExceptionCache[n]=i}let o=e.clone();o.zone=r.startDate.zone,o.addDuration(i),t=o.clone(),t.addDuration(r.duration),a.startDate=o,a.endDate=t}else t=e.clone(),t.addDuration(this.duration),a.endDate=t,a.startDate=e,a.item=this}return a}iterator(e){return new LB({component:this.component,dtstart:e||this.startDate})}isRecurring(){let e=this.component;return e.hasProperty("rrule")||e.hasProperty("rdate")}isRecurrenceException(){return this.component.hasProperty("recurrence-id")}getRecurrenceTypes(){let e=this.component.getAllProperties("rrule"),t=0,n=e.length,r=Object.create(null);for(;t<n;t++){r[e[t].getFirstValue().freq]=!0}return r}get uid(){return this._firstProp("uid")}set uid(e){this._setProp("uid",e)}get startDate(){return this._firstProp("dtstart")}set startDate(e){this._setTime("dtstart",e)}get endDate(){let e=this._firstProp("dtend");if(!e){let t=this._firstProp("duration");e=this.startDate.clone(),t?e.addDuration(t):e.isDate&&(e.day+=1)}return e}set endDate(e){this.component.hasProperty("duration")&&this.component.removeProperty("duration"),this._setTime("dtend",e)}get duration(){return this._firstProp("duration")||this.endDate.subtractDateTz(this.startDate)}set duration(e){this.component.hasProperty("dtend")&&this.component.removeProperty("dtend"),this._setProp("duration",e)}get location(){return this._firstProp("location")}set location(e){this._setProp("location",e)}get attendees(){return this.component.getAllProperties("attendee")}get summary(){return this._firstProp("summary")}set summary(e){this._setProp("summary",e)}get description(){return this._firstProp("description")}set description(e){this._setProp("description",e)}get color(){return this._firstProp("color")}set color(e){this._setProp("color",e)}get organizer(){return this._firstProp("organizer")}set organizer(e){this._setProp("organizer",e)}get sequence(){return this._firstProp("sequence")}set sequence(e){this._setProp("sequence",e)}get recurrenceId(){return this._firstProp("recurrence-id")}set recurrenceId(e){this._setTime("recurrence-id",e)}_setTime(e,t){let n=this.component.getFirstProperty(e);n||(n=new VA(e),this.component.addProperty(n)),t.zone===Ju.localTimezone||t.zone===Ju.utcTimezone?n.removeParameter("tzid"):n.setParameter("tzid",t.zone.tzid),n.setValue(t)}_setProp(e,t){this.component.updatePropertyWithValue(e,t)}_firstProp(e){return this.component.getFirstPropertyValue(e)}toString(){return this.component.toString()}},Wae=class{constructor(e){typeof e>"u"&&(e={});for(let[t,n]of Object.entries(e))this[t]=n}parseEvent=!0;parseTimezone=!0;oncomplete=function(){};onerror=function(e){};ontimezone=function(e){};onevent=function(e){};process(e){"string"==typeof e&&(e=Nu(e)),e instanceof kg||(e=new kg(e));let t,n=e.getAllSubcomponents(),r=0,a=n.length;for(;r<a;r++)switch(t=n[r],t.name){case"vtimezone":if(this.parseTimezone){let e=t.getFirstPropertyValue("tzid");e&&this.ontimezone(new Ju({tzid:e,component:t}))}break;case"vevent":this.parseEvent&&this.onevent(new PB(t));break;default:continue}this.oncomplete()}},ec={foldLength:75,debug:!1,newLineChar:"\r\n",Binary:EB,Component:kg,ComponentParser:Wae,Duration:Tv,Event:PB,Period:$E,Property:VA,Recur:Ny,RecurExpansion:LB,RecurIterator:JE,Time:$s,Timezone:Ju,TimezoneService:DB,UtcOffset:tx,VCardTime:UA,parse:Nu,stringify:Rf,design:Qu,helpers:BPt}});function mz(e){return e.toFormat("HH:mm")}function nx(e){return e.toISODate()}function iIt(e){let t=e.component.getFirstProperty("url");return t?String(t.getFirstValue()):""}function oIt(e){return!!e.component.getFirstProperty("dtend")||!!e.component.getFirstProperty("duration")}function sIt(e){if("string"==typeof e){let t=e.match(/^(-?)P(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/i);return t?("-"===t[1]?-1:1)*(86400*Number(t[2]||0)+3600*Number(t[3]||0)+60*Number(t[4]||0)+Number(t[5]||0)):null}if(e&&"object"==typeof e){let t=e;if("function"==typeof t.toSeconds)return t.toSeconds();let n=86400*(t.days||0)+3600*(t.hours||0)+60*(t.minutes||0)+(t.seconds||0);return t.isNegative?-n:n}return null}function UOe(e){let t=e.getAllSubcomponents("valarm").map(e=>{let t=e.getFirstProperty("trigger");if(!t)return null;let n=sIt(t.getFirstValue());if(null===n||n>0)return null;let r=String(e.getFirstPropertyValue("action")||"DISPLAY").toUpperCase();return"DISPLAY"!==r&&"AUDIO"!==r&&"EMAIL"!==r?null:{minutesBefore:Math.round(Math.abs(n)/60),action:r}}).filter(e=>null!==e);return t.length>0?t:void 0}function HOe(e){if(!e)return;let t=F2(e);return t.isValid?e.isDate?t.toISODate()||void 0:t.toISO()||void 0:void 0}function WOe(e){if(e)return Fn.fromISO(e,{setZone:!0}).toISODate()||void 0}function FOe(e){let t=e.summary||"",n=e.uid,r=e.component.getFirstProperty("rrule"),a=r?String(r.getFirstValue()):null,i=a?String(a):"",o=HOe(e.recurrenceId),s={title:t},l=String(e.component.getFirstProperty("description")?.getFirstValue()||""),c=String(e.component.getFirstProperty("location")?.getFirstValue()||""),u=iIt(e),d=UOe(e.component),p=F2(e.startDate);if(!p.isValid)return console.warn(`Full Calendar ICS Parser: Skipping event "${t}" due to invalid start date. Reason: ${p.invalidReason}`),null;let h=e.endDate?F2(e.endDate):p,f=h.isValid?h:p;!h.isValid&&e.endDate&&console.warn(`Full Calendar ICS Parser: Event "${t}" has invalid end date, using start date instead.`);let m=e.startDate.isDate,g=m?void 0:p.zoneName||void 0;if(e.isRecurring()){let r=th(i),a=e.component.getAllProperties("exdate").map(e=>{let n=F2(e.getFirstValue());return n.isValid?n.toISODate():(console.warn(`Full Calendar ICS Parser: Skipping invalid EXDATE for event "${t}"`),null)}).filter(e=>null!==e),y=nx(p),b=nx(f);if(!y)return console.warn(`Full Calendar ICS Parser: Could not convert start date to ISO for event "${t}"`),null;let v=(()=>{if(m)return{allDay:!0};let e=mz(p),t=mz(h);return e&&t?{allDay:!1,startTime:e,endTime:t}:null})();return v?{type:"rrule",uid:n,...o?{recurrenceId:o}:{},title:s.title,id:`ics::${n}::${y}::recurring`,rrule:r.toString(),skipDates:a,startDate:y,endDate:b&&y!==b?b:null,timezone:g,...v,description:l,...d?{alarms:d}:{},url:u||(c&&"string"==typeof c&&c.startsWith("http")?c:void 0)}:(console.warn(`Full Calendar ICS Parser: Missing start or end time for event "${t}"`),null)}let y=nx(p);if(!y)return console.warn(`Full Calendar ICS Parser: Could not convert start date to ISO for event "${t}"`),null;let b=null;if(oIt(e))if(m){b=nx(f.minus({days:1}))}else b=nx(f);let v=(()=>{if(m)return{allDay:!0};let e=mz(p),t=mz(h);return e&&t?{allDay:!1,startTime:e,endTime:t}:null})();return v?{type:"single",uid:n,...o?{recurrenceId:o}:{},title:s.title,date:y,endDate:y!==b&&b||null,timezone:g,...v,description:l,...d?{alarms:d}:{},url:u||(c&&"string"==typeof c&&c.startsWith("http")?c:void 0)}:(console.warn(`Full Calendar ICS Parser: Missing start or end time for event "${t}"`),null)}function BOe(e){let t=String(e.getFirstPropertyValue("summary")||""),n=String(e.getFirstPropertyValue("uid")||""),r=e.getFirstProperty("dtstart"),a=r?r.getFirstValue():null,i=e.getFirstProperty("due"),o=i?i.getFirstValue():null,s=a?F2(a):null,l=o?F2(o):null,c=!!s?.isValid,u=!!l?.isValid,d=c?a:u?o:null,p=c?s:u?l:null;if(!d||!p)return null;let h=!d||d.isDate,f=h?void 0:p.zoneName||void 0,m=String(e.getFirstPropertyValue("description")||""),g=String(e.getFirstPropertyValue("location")||""),y=String(e.getFirstPropertyValue("url")||""),b=UOe(e),v=e.getFirstProperty("recurrence-id"),M=v?HOe(v.getFirstValue()):void 0,x=e.getFirstPropertyValue("status"),z=e.getFirstProperty("completed"),_=!1;if(z){let e=z.getFirstValue(),t=F2(e);_=t.isValid?t.toISO()||t.toISODate()||"":e.toString()}else"COMPLETED"===x&&(_=Fn.now().toISO()||"");let A=e.getFirstProperty("rrule"),O=A?String(A.getFirstValue()):null,w=O?String(O):"";if(w){let r=th(w),a=e.getAllProperties("exdate").map(e=>{let n=F2(e.getFirstValue());return n.isValid?n.toISODate():(console.warn(`Full Calendar ICS Parser: Skipping invalid EXDATE for task "${t}"`),null)}).filter(e=>null!==e),i=nx(p),s=null;if(o){let e=F2(o);e.isValid&&(s=nx(e))}if(!i)return console.warn(`Full Calendar ICS Parser: Could not convert start date to ISO for task "${t}"`),null;let l=(()=>{if(!p)return null;if(h)return{allDay:!0};let e=mz(p),t=e;if(o){let e=F2(o);e.isValid&&(t=mz(e))}return e&&t?{allDay:!1,startTime:e,endTime:t}:null})();return l?{type:"rrule",uid:n,...M?{recurrenceId:M}:{},title:t,id:`ics::${n}::${i}::recurring`,rrule:r.toString(),skipDates:a,startDate:i,endDate:s&&i!==s?s:null,timezone:f,...l,isTask:!0,description:m,...b?{alarms:b}:{},url:y||(g&&"string"==typeof g&&g.startsWith("http")?g:void 0)}:(console.warn(`Full Calendar ICS Parser: Missing start or end time for task "${t}"`),null)}let k=nx(p);if(!k)return console.warn(`Full Calendar ICS Parser: Could not convert start date to ISO for task "${t}"`),null;let T=null;if(o){let e=F2(o);e.isValid&&(T=nx(e))}let S=(()=>{if(!p)return null;if(h)return{allDay:!0};let e=mz(p),t=e;if(o){let e=F2(o);e.isValid&&(t=mz(e))}return e&&t?{allDay:!1,startTime:e,endTime:t}:null})();return S?{type:"single",uid:n,...M?{recurrenceId:M}:{},title:t,date:k,endDate:k!==T&&T||null,timezone:f,...S,completed:_,description:m,...b?{alarms:b}:{},url:y||(g&&"string"==typeof g&&g.startsWith("http")?g:void 0)}:(console.warn(`Full Calendar ICS Parser: Missing start or end time for task "${t}"`),null)}function lIt(e){let t=e;return t=t.replace(/DTSTART:(\d{8})(\r?\n|$)/gm,"DTSTART;VALUE=DATE:$1$2"),t=t.replace(/DTEND:(\d{8})(\r?\n|$)/gm,"DTEND;VALUE=DATE:$1$2"),t=t.replace(/EXDATE[^:]*:(\d{8})(\r?\n|$)/gm,(e,t)=>`${e.substring(0,e.indexOf(":"))};VALUE=DATE:${t}${e.endsWith("\r\n")?"\r\n":e.endsWith("\n")?"\n":""}`),t=t.replace(/RECURRENCE-ID[^:]*:(\d{8})(\r?\n|$)/gm,(e,t)=>`${e.substring(0,e.indexOf(":"))};VALUE=DATE:${t}${e.endsWith("\r\n")?"\r\n":e.endsWith("\n")?"\n":""}`),t}function eq(e){if(!e.trim())throw new Error("ICS content is empty.");if(!e.includes("BEGIN:VCALENDAR"))throw new Error("ICS content is missing BEGIN:VCALENDAR header.");let t,n=lIt(e);try{t=ec.parse(n)}catch(e){let t=e instanceof Error?e.message:String(e);throw new Error(`Failed to parse ICS content: ${t}`,{cause:e})}let r=new ec.Component(t),a=r.getAllSubcomponents("vevent").map(e=>new ec.Event(e)).filter(e=>{try{return e.startDate.toJSDate(),e.endDate.toJSDate(),!0}catch{try{e.startDate?.toJSDate()}catch{}return!1}}),i=Object.fromEntries(a.filter(e=>null===e.recurrenceId).map(e=>[e.uid,FOe(e)]).filter(([e,t])=>null!==t)),o=a.filter(e=>null!==e.recurrenceId).map(e=>[e.uid,FOe(e)]).filter(([e,t])=>null!==t);for(let[e,t]of o){let n=i[e];if(!n)continue;if("rrule"!==n.type||"single"!==t.type){console.warn("Recurrence exception was recurring or base event was not recurring",{baseEvent:n,recurrenceException:t});continue}let r=WOe(t.recurrenceId)||t.date;r&&n.skipDates.push(r)}let s=Object.values(i).concat(o.map(e=>e[1])),l=r.getAllSubcomponents("vtodo"),c=Object.fromEntries(l.filter(e=>!e.getFirstProperty("recurrence-id")).map(e=>{try{let t=BOe(e);return t?[t.uid||"",t]:null}catch{return null}}).filter(e=>null!==e)),u=l.filter(e=>!!e.getFirstProperty("recurrence-id")).map(e=>{try{return BOe(e)}catch{return null}}).filter(e=>null!==e);for(let e of u){let t=c[e.uid||""];if(!t||"rrule"!==t.type||"single"!==e.type)continue;let n=WOe(e.recurrenceId)||e.date;n&&t.skipDates.push(n)}let d=Object.values(c).concat(u);return s.concat(d).map(a2).flatMap(e=>e?[e]:[])}var Uae=kr(()=>{Lu(),AM(),IB(),Gb(),rE()});function NB({value:e,onChange:t,readOnly:n}){return Rt("input",{required:!0,type:"text",value:e||"",onChange:e=>t(e.target.value),readOnly:n})}var VOe,tq,Gm,Hae=kr(()=>{Z0()}),jOe=kr(()=>{h1(),Hae(),Zo(),Z0(),VOe=({plugin:e,config:t,onConfigChange:n,onSave:r,onClose:a})=>{let[i,o]=Li("url"),[s,l]=Li(t.url||""),[c,u]=Li(!1),[d,p]=Li([]);return vu(()=>{t.url&&!t.url.startsWith("http")&&!t.url.startsWith("webcal")&&o("local");let n=e.app.vault.getFiles().filter(e=>"ics"===e.extension);p(n)},[t.url,e.app.vault]),Rt("form",{onSubmit:e=>{e.preventDefault(),s&&(u(!0),r({...t,id:t.id||"",url:s}))},children:[Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("settings.calendars.ics.url.label")}),Rt("div",{className:"setting-item-description",children:"Choose between a remote URL or a local file in your vault."})]}),Rt("div",{className:"setting-item-control",children:Rt("select",{className:"dropdown",value:i,onChange:e=>{o(e.target.value),l("")},children:[Rt("option",{value:"url",children:"Remote URL"}),Rt("option",{value:"local",children:"Local File"})]})})]}),Rt("div","url"===i?{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:"Calendar URL"}),Rt("div",{className:"setting-item-description",children:Ce("settings.calendars.ics.url.description")})]}),Rt("div",{className:"setting-item-control",children:Rt(NB,{value:s,onChange:e=>{l(e),n({...t,url:e})}})})]}:{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:"Select File"}),Rt("div",{className:"setting-item-description",children:"Select an .ics file from your vault."})]}),Rt("div",{className:"setting-item-control",children:Rt("select",{className:"dropdown",value:s,onChange:e=>{l(e.target.value),n({...t,url:e.target.value})},children:[Rt("option",{value:"",disabled:!0,children:"Select a file..."}),d.map(e=>Rt("option",{value:e.path,children:e.path},e.path))]})})]}),Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info"}),Rt("div",{className:"setting-item-control",children:Rt("button",{className:"mod-cta",type:"submit",disabled:c||!s,children:Ce("ui.buttons.addCalendar")})})]})]})}}),XA=kr(()=>{tq=require("obsidian"),Wo(),Gm=class{constructor(e,t){this.index=new Map,this.eventRefs=[],this.hydrationWaiters=[],this.revision=0,this.startupHydrationPending=!1,this.app=e,this.calendarId=t}scanDirectory(){if(!this.getDirectory().trim())return[];let e=[],t=this.app.vault.getMarkdownFiles();for(let n of t)this.isFileInDirectory(n)&&(this.app.metadataCache.getFileCache(n)||e.push(n),this.processFile(n,!1));return e}beginStartupHydration(e){this.startupHydrationPending=!0;let t=this.app.metadataCache.on("resolved",()=>{!this.startupHydrationPending||e!==this.revision||this.reconcileStartupHydration(e)});this.eventRefs.push(t)}reconcileStartupHydration(e){if(e!==this.revision)return;let t=this.scanDirectory();t.length>0?this.backfillUnresolvedFiles(t,e):this.completeStartupHydration(e)}completeStartupHydration(e){e===this.revision&&(this.startupHydrationPending=!1,this.resolveHydrationWaiters())}scheduleLayoutReadyRescan(e){this.app.workspace.onLayoutReady(()=>{e===this.revision&&this.reconcileStartupHydration(e)})}getFileForEvent(e,t){if(t){let n=`${e}::${t.trim()}`,r=this.index.get(n);if(r)return r}return this.index.get(e)||null}async getFileForEventAfterHydration(e,t){return this.getFileForEvent(e,t)||(await this.waitForStartupHydration(),this.getFileForEvent(e,t))}async waitForStartupHydration(e=1500){if(!this.startupHydrationPending)return;let t=this.revision;this.reconcileStartupHydration(t),this.startupHydrationPending&&t===this.revision&&await new Promise(t=>{let n=()=>{window.clearTimeout(r),t()},r=window.setTimeout(()=>{this.hydrationWaiters=this.hydrationWaiters.filter(e=>e!==n),t()},e);this.hydrationWaiters.push(n)})}getDirectory(){return Qe.getSettings().linkedNotesDirectory||""}frontmatterString(e){if("string"==typeof e){return e.trim()||null}return"number"==typeof e||"bigint"==typeof e?e.toString():null}isFileInDirectory(e){let t=this.getDirectory().trim();if(!t)return!1;let n=t.replace(/\/$/,"");return e.path.startsWith(`${n}/`)}initialize(){if(this.destroy(),!this.getDirectory().trim())return;let e=this.revision,t=this.scanDirectory();this.registerWatchers(),this.beginStartupHydration(e),this.scheduleLayoutReadyRescan(e),t.length>0?this.backfillUnresolvedFiles(t,e):this.index.size>0&&this.completeStartupHydration(e)}async backfillUnresolvedFiles(e,t){let n=this.app;if("function"!=typeof n.waitForMetadata)return;let r=!1;for(let a of e){try{await n.waitForMetadata(a)}catch{continue}if(t!==this.revision||!this.isFileInDirectory(a))return;r=this.processFile(a,!1)||r}r&&t===this.revision&&this.triggerReload(),t===this.revision&&this.reconcileStartupHydration(t)}processFile(e,t=!0){let n=this.app.metadataCache.getFileCache(e)?.frontmatter;if(!n)return this.removePathFromIndex(e.path,t);let r=this.frontmatterString(n["fc-calendar-id"]),a=this.frontmatterString(n["fc-event-uid"]),i=this.frontmatterString(n["fc-event-recurrence-id"]);if(r!==this.calendarId||!a)return this.removePathFromIndex(e.path,t);{let n=`${a}${i?`::${i}`:""}`,r=!1;for(let[t,a]of this.index.entries())a.path===e.path&&t!==n&&(this.index.delete(t),r=!0);if(this.index.get(n)?.path!==e.path||r)return this.index.set(n,e),t&&this.triggerReload(),!0}return!1}removePathFromIndex(e,t=!0){let n=!1;for(let[t,r]of this.index.entries())r.path===e&&(this.index.delete(t),n=!0);return n&&t&&this.triggerReload(),n}triggerReload(){try{Qe.getProviderRegistry().reloadProviderNow(this.calendarId)}catch(e){console.warn(`Failed to reload calendar provider ${this.calendarId} after linked note change`,e)}}registerWatchers(){let e=this.app.metadataCache.on("changed",e=>{e instanceof tq.TFile&&(this.isFileInDirectory(e)?this.processFile(e):this.removePathFromIndex(e.path))});this.eventRefs.push(e);let t=this.app.vault.on("create",e=>{e instanceof tq.TFile&&this.isFileInDirectory(e)&&this.processFile(e)});this.eventRefs.push(t);let n=this.app.vault.on("delete",e=>{e instanceof tq.TFile&&this.removePathFromIndex(e.path)});this.eventRefs.push(n);let r=this.app.vault.on("rename",(e,t)=>{if(e instanceof tq.TFile){let n=this.removePathFromIndex(t,!1);this.isFileInDirectory(e)?this.processFile(e):n&&this.triggerReload()}});this.eventRefs.push(r)}destroy(){this.revision+=1,this.startupHydrationPending=!1,this.resolveHydrationWaiters();for(let e of this.eventRefs)this.app.metadataCache.offref(e),this.app.vault.offref(e);this.eventRefs=[],this.index.clear()}resolveHydrationWaiters(){let e=this.hydrationWaiters;this.hydrationWaiters=[];for(let t of e)t()}}}),XOe={};Zs(XOe,{ICSProvider:()=>jae});var WB,Vae,cIt,GOe,jae,YOe=kr(()=>{Wo(),WB=require("obsidian"),Uae(),h1(),jOe(),XA(),B_(),Vae="webcal",cIt=({source:e})=>io("div",{className:"setting-item-control"},io("input",{disabled:!0,type:"text",value:(()=>{let t=e.url,n=e.config?.url;return"string"==typeof t?t:"string"==typeof n?n:""})(),className:"ofc-setting-input"})),GOe=e=>{let{onSave:t,...n}=e;return io(VOe,{...n,onSave:e=>t(e)})},jae=class{constructor(e,t,n){this.type="ical",this.loadPriority=100,this.plugin=t,this.source=e,this.linkedNoteIndex=new Gm(t.app,e.id)}static{this.type="ical"}static{this.displayName="ICS Calendar"}static getConfigurationComponent(){return GOe}get isRemote(){let e=this.source.url;return!e||(e.startsWith("https://")||e.startsWith("http://")||e.startsWith("webcal"))}get displayName(){return this.isRemote?"Remote Calendar (ICS)":"Local Calendar (ICS)"}initialize(){this.linkedNoteIndex.initialize()}teardown(){this.linkedNoteIndex.destroy()}async createLinkedNote(e,t){return pg({app:this.plugin.app,event:e,calendarId:this.source.id,calendarName:this.displayName,linkedNoteIndex:this.linkedNoteIndex,instanceDate:t})}getCapabilities(){return{canCreate:!1,canEdit:!1,canDelete:!1}}getEventHandle(e){return e.uid?{persistentId:e.uid}:null}computeSyncKey(e){return"rrule"===e.type&&e.id?e.id:e.uid&&e.recurrenceId?`${e.uid}::${e.recurrenceId}`:e.uid||JSON.stringify(e)}async getEvents(e){let t=this.source.url;if(!t)return console.warn("ICSProvider: No URL configured."),[];if(!(t.startsWith("https://")||t.startsWith("http://")||t.startsWith(Vae))){let e=this.plugin.app.vault.getAbstractFileByPath(t);if(!(e instanceof WB.TFile))return console.error(`Local ICS file not found: ${t}`),[];try{return eq(await this.plugin.app.vault.read(e)).map(e=>{let t=this.linkedNoteIndex.getFileForEvent(e.uid||"");return[e,t?{file:{path:t.path},lineNumber:void 0}:null]})}catch(e){return console.error(`Error reading local ICS file ${t}`,e),[]}}let n=t;n.startsWith(Vae)&&(n=`https${n.slice(Vae.length)}`);try{let e=await(0,WB.request)({url:n,method:"GET"});return Qe.getSettings().displayTimezone?eq(e).map(e=>{let t=this.linkedNoteIndex.getFileForEvent(e.uid||"");return[e,t?{file:{path:t.path},lineNumber:void 0}:null]}):[]}catch(e){return console.error(`Error fetching ICS calendar from ${n}`,e),[]}}createEvent(e){return Promise.reject(new Error("Cannot create an event on a read-only ICS calendar."))}updateEvent(e,t,n){return Promise.reject(new Error("Cannot update an event on a read-only ICS calendar."))}deleteEvent(e){return Promise.reject(new Error("Cannot delete an event on a read-only ICS calendar."))}createInstanceOverride(e,t,n){return Promise.reject(new Error("Cannot create a recurring event override on a read-only calendar."))}revalidate(){return Promise.resolve()}getConfigurationComponent(){return GOe}getSettingsRowComponent(){return cIt}}});function uIt(e,t,n){let r={year:e.year,month:e.month,day:e.day,hour:t?0:e.hour,minute:t?0:e.minute,second:t?0:e.second,isDate:t};return!t&&("UTC"===n||"Z"===n)&&(r.timezone="Z"),new ec.Time(r)}function vz(e,t,n,r,a){let i=new ec.Property(t),o=uIt(n,r,a);return!r&&a&&"UTC"!==a&&"Z"!==a&&i.setParameter("TZID",a),i.setValue(o),e.addProperty(i),i}function ZOe(e,t){for(let n of t.alarms||[]){let r=new ec.Component("valarm");r.addPropertyWithValue("action",n.action||"DISPLAY");let a=new ec.Property("trigger");a.setValue(`-PT${n.minutesBefore}M`),r.addProperty(a),"DISPLAY"===(n.action||"DISPLAY")&&r.addPropertyWithValue("description",t.title),e.addSubcomponent(r)}}function $Oe(e){let t=[];if(void 0!==e.month&&void 0!==e.dayOfMonth)t.push("FREQ=YEARLY",`BYMONTH=${e.month}`,`BYMONTHDAY=${e.dayOfMonth}`);else if(e.repeatOn){let n=["SU","MO","TU","WE","TH","FR","SA"][e.repeatOn.weekday]||"MO",r=-1===e.repeatOn.week?"-1":String(e.repeatOn.week);t.push("FREQ=MONTHLY",`BYDAY=${r}${n}`)}else if(void 0!==e.dayOfMonth)t.push("FREQ=MONTHLY",`BYMONTHDAY=${e.dayOfMonth}`);else if(e.daysOfWeek?.length){let n={U:"SU",M:"MO",T:"TU",W:"WE",R:"TH",F:"FR",S:"SA"};t.push("FREQ=WEEKLY",`BYDAY=${e.daysOfWeek.map(e=>n[e]).join(",")}`)}else t.push("FREQ=DAILY");if(e.repeatInterval&&e.repeatInterval>1&&t.push(`INTERVAL=${e.repeatInterval}`),e.endRecur){let n=Fn.fromISO(e.endRecur).endOf("day").toUTC();n.isValid&&t.push(`UNTIL=${n.toFormat("yyyyMMdd'T'HHmmss'Z'")}`)}return t.join(";")}function FB(e,t){try{let n=t.replace(/^RRULE:/i,""),r=ec.Recur.fromString?ec.Recur.fromString(n):null;if(r)e.addPropertyWithValue("rrule",r);else{let t=new ec.Property("rrule");t.setValue(n),e.addProperty(t)}}catch(e){console.error("Failed to add RRULE",e)}}function KOe(e,t=!1){let n,r,a,i=new ec.Component("vevent");if(e.uid?i.addPropertyWithValue("uid",e.uid):i.addPropertyWithValue("uid",window.crypto.randomUUID()),i.addPropertyWithValue("summary",e.title),i.addPropertyWithValue("dtstamp",ec.Time.now()),n="single"===e.type?e.date:"rrule"===e.type?e.startDate:e.startRecur||Fn.now().toISODate(),e.allDay)r=Fn.fromISO(n),a="single"===e.type&&e.endDate?Fn.fromISO(e.endDate).plus({days:1}):r.plus({days:1});else{let t=e.startTime||"00:00",i=e.endTime||"00:00",o=e.timezone?{zone:e.timezone}:{};r=Fn.fromISO(`${n}T${t}`,o),"single"===e.type&&e.endDate?a=Fn.fromISO(`${e.endDate}T${i}`,o):(a=Fn.fromISO(`${n}T${i}`,o),a<r&&(a=a.plus({days:1})))}if(vz(i,"dtstart",r,e.allDay,e.timezone),vz(i,"dtend",a,e.allDay,e.timezone),e.description&&i.addPropertyWithValue("description",e.description),ZOe(i,e),!t&&"rrule"===e.type&&e.rrule?FB(i,e.rrule):!t&&"recurring"===e.type&&FB(i,$Oe(e)),!t&&("rrule"===e.type||"recurring"===e.type)&&e.skipDates&&e.skipDates.length>0)for(let t of e.skipDates){let n;if(e.allDay)n=Fn.fromISO(t);else{let r=e.startTime||"00:00",a=e.timezone?{zone:e.timezone}:{};n=Fn.fromISO(`${t}T${r}`,a)}vz(i,"exdate",n,e.allDay,e.timezone)}return i}function JOe(e,t=!1){let n,r,a,i=new ec.Component("vtodo");if(e.uid?i.addPropertyWithValue("uid",e.uid):i.addPropertyWithValue("uid",window.crypto.randomUUID()),i.addPropertyWithValue("summary",e.title),i.addPropertyWithValue("dtstamp",ec.Time.now()),n="single"===e.type?e.date:"rrule"===e.type?e.startDate:e.startRecur||Fn.now().toISODate(),e.allDay)r=Fn.fromISO(n),a="single"===e.type&&e.endDate?Fn.fromISO(e.endDate):r;else{let t=e.startTime||"00:00",i=e.endTime||"00:00",o=e.timezone?{zone:e.timezone}:{};r=Fn.fromISO(`${n}T${t}`,o),"single"===e.type&&e.endDate?a=Fn.fromISO(`${e.endDate}T${i}`,o):(a=Fn.fromISO(`${n}T${i}`,o),a<r&&(a=a.plus({days:1})))}if(vz(i,"dtstart",r,e.allDay,e.timezone),vz(i,"due",a,e.allDay,e.timezone),e.description&&i.addPropertyWithValue("description",e.description),ZOe(i,e),e.url?i.addPropertyWithValue("url",e.url):e.location&&"string"==typeof e.location&&e.location.startsWith("http")&&i.addPropertyWithValue("url",e.location),e.location&&i.addPropertyWithValue("location",e.location),"single"===e.type&&e.completed){i.addPropertyWithValue("status","COMPLETED");try{if("string"==typeof e.completed){let t=Fn.fromISO(e.completed).toUTC();t.isValid&&vz(i,"completed",t,!1,"UTC")}}catch(e){console.error("Failed to parse completed date",e)}}else"single"===e.type&&e.completed,i.addPropertyWithValue("status","NEEDS-ACTION");if(!t&&"rrule"===e.type&&e.rrule?FB(i,e.rrule):!t&&"recurring"===e.type&&FB(i,$Oe(e)),!t&&("rrule"===e.type||"recurring"===e.type)&&e.skipDates&&e.skipDates.length>0)for(let t of e.skipDates){let n;if(e.allDay)n=Fn.fromISO(t);else{let r=e.startTime||"00:00",a=e.timezone?{zone:e.timezone}:{};n=Fn.fromISO(`${t}T${r}`,a)}vz(i,"exdate",n,e.allDay,e.timezone)}return i}function Gae(e){let t=new ec.Component("vcalendar");t.addPropertyWithValue("version","2.0"),t.addPropertyWithValue("prodid","-//Obsidian Full Calendar Plugin//NONSGML v1.0//EN");let n=PM(e)?JOe(e):KOe(e);return t.addSubcomponent(n),t.toString()}function Xae(e,t){let n,r=PM(e)?JOe(e,!0):KOe(e,!0),a=10===t.length;if(a)n=Fn.fromISO(t);else{let r=e.timezone?{zone:e.timezone}:{};n=Fn.fromISO(t,r)}return vz(r,"recurrence-id",n,a,e.timezone),r}var QOe=kr(()=>{IB(),Lu(),WT()});function e6e({value:e,onChange:t,readOnly:n}){return Rt("input",{required:!0,type:"text",value:e||"",onChange:e=>t(e.target.value),readOnly:n})}var t6e=kr(()=>{Z0()});function r6e({value:e,onChange:t,readOnly:n}){return Rt("input",{required:!0,type:"password",value:n?"••••••••":e||"",onChange:e=>t(e.target.value),readOnly:n})}var n6e=kr(()=>{Z0()});function dIt(e){return!Number.isFinite(e)||e<=0}function fIt(e){let t="string"==typeof e.text?e.text:"",n=204===e.status||205===e.status||304===e.status,r=new Response(n?null:t,{status:e.status,headers:e.headers});return r.arrayBuffer=()=>Promise.resolve(e.arrayBuffer?e.arrayBuffer:(new TextEncoder).encode(t).buffer),r}async function a6e(e,t){try{let t=await(0,YA.request)({url:e.url,method:e.method,headers:e.headers,body:e.body});return new Response(t,{status:200})}catch(e){let n=e instanceof Error?e.message:String(e);throw new Error(`CalDAV request failed on mobile transport. requestUrl error: ${t}; fallback request error: ${n}`,{cause:e})}}async function s3(e,t){let n="string"==typeof e?e:e.url??e,r=t?.method??"GET",a={};t?.headers&&new Headers(t.headers).forEach((e,t)=>a[t]=e);let i={url:n,method:r,headers:Object.keys(a).length?a:void 0,body:"string"==typeof t?.body?t.body:void 0!==t?.body&&null!==t.body?await new Response(t.body).text():void 0,throw:!1};try{let e=await(0,YA.requestUrl)(i);return YA.Platform.isMobile&&dIt(e.status)?a6e(i,`requestUrl returned invalid status ${String(e.status)}`):fIt({status:e.status,headers:e.headers,text:"string"==typeof e.text?e.text:"",arrayBuffer:e.arrayBuffer})}catch(e){if(!YA.Platform.isMobile)throw e;return a6e(i,e instanceof Error?e.message:String(e))}}var YA,Yae=kr(()=>{YA=require("obsidian")});function hIt(e){let t=encodeURIComponent(e),n=[];for(let e=0;e<t.length;e+=1){let r=t[e];"%"===r&&e+2<t.length?(n.push(parseInt(t.slice(e+1,e+3),16)),e+=2):n.push(r.charCodeAt(0))}return n}function pIt(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="";for(let r=0;r<e.length;r+=3){let a=(e[r]??0)<<16|(e[r+1]??0)<<8|(e[r+2]??0);n+=t[a>>18&63],n+=t[a>>12&63],n+=r+1<e.length?t[a>>6&63]:"=",n+=r+2<e.length?t[63&a]:"="}return n}function mIt(e){let t=window.Buffer;if(t)return t.from(e,"utf-8").toString("base64");let n=hIt(e);if("function"==typeof btoa){let e="";for(let t of n)e+=String.fromCharCode(t);return btoa(e)}return pIt(n)}function Wy(e,t){if(e&&t)return`Basic ${mIt(`${e}:${t}`)}`}var Zae=kr(()=>{});function rq(e){return e.endsWith("/")?e:`${e}/`}async function nq(e,t){let n={Depth:"0","Content-Type":"application/xml; charset=utf-8",Accept:"*/*"},r=Wy(t?.username,t?.password);r&&(n.Authorization=r);try{let t=await s3(e,{method:"PROPFIND",headers:n,body:'<?xml version="1.0" encoding="utf-8" ?>\n<d:propfind xmlns:d="DAV:" xmlns:ical="http://apple.com/ns/ical/">\n <d:prop>\n <d:resourcetype/>\n <d:displayname/>\n <ical:calendar-color/>\n </d:prop>\n</d:propfind>'});if(t.status>=400)return{isCalendar:!1,error:`CalDAV PROPFIND failed with status ${t.status}.`};let r=await t.text(),a=/<[^:]*:?resourcetype[^>]*>([\s\S]*?)<\/[^:]*:?resourcetype>/i.exec(r),i=!!a&&/<(?:[a-zA-Z0-9]+:)?calendar\b[^>]*>/i.test(a[1]),o=/<[^:]*:?displayname[^>]*>([^<]*)<\/[^:]*:?displayname>/i.exec(r)?.[1]?.trim(),s=/<[^:]*:?calendar-color[^>]*>(#?[0-9A-Fa-f]+)<\/[^:]*:?calendar-color>/i.exec(r)?.[1]?.replace(/^(?!#)/,"#")?.match(/^.{7}/)?.[0];return{isCalendar:i,displayName:o,color:s}}catch(t){return console.error(`[CalDAV] Error fetching calendar info for ${e}`,t),{isCalendar:!1,error:t instanceof Error?t.message:String(t)}}}function i6e(e){if(!/^https?:\/\//i.test(e))throw new Error(`Invalid CalDAV URL (missing scheme): ${e}`);let t=e.trim(),n=t,r="/caldav/",a=t.toLowerCase().indexOf(r);if(a>=0)n=t.slice(0,a+8);else try{let e=new URL(t);n=`${e.protocol}//${e.host}/`}catch{}return{serverUrl:rq(n),collectionUrl:rq(t)}}var $ae=kr(()=>{Yae(),Zae()});async function o6e(e,t,n){let{serverUrl:r,collectionUrl:a}=i6e(t),{isCalendar:i,displayName:o,color:s,error:l}=await nq(a,{username:e.username,password:e.password});if(!i)throw l?new Error(`Failed to import CalDAV calendar: ${l}`):new Error("The provided URL does not appear to be a valid CalDAV calendar collection. Please ensure it points directly to a calendar.");let c=wT("caldav",n);return n.push(c),[{type:"caldav",id:c,name:o??"CalDAV Calendar",url:rq(r),homeUrl:rq(a),color:s??"#888888",username:e.username,password:e.password}]}var l6e,s6e=kr(()=>{DC(),$ae()}),c6e=kr(()=>{Fc(),h1(),Hae(),t6e(),n6e(),s6e(),Zo(),RM(),Z0(),l6e=({config:e,onSave:t,onClose:n})=>{let[r,a]=Li(e.url||""),[i,o]=Li(e.username||""),[s,l]=Li(()=>e.id?Bc.getCalDAVPassword(e.id)||e.password||"":e.password||""),[c,u]=Li(!1),[d,p]=Li(Ce("settings.calendars.caldav.importButton"));return Rt("form",{onSubmit:e=>{e.preventDefault(),(async e=>{if(e.preventDefault(),!r||!i||!s)return;u(!0),p(Ce("settings.calendars.caldav.importing"));let a=!0;try{let e=await o6e({type:"basic",username:i,password:s},r,[]);t(e),a=!1,n()}catch(e){console.error("Failed to import CalDAV calendars",e);let t=e instanceof Error?e.message:String(e);Na(`${Ce("settings.calendars.caldav.importFailed")}: ${t}`)}finally{a&&(p(Ce("settings.calendars.caldav.importButton")),u(!1))}})(e)},children:[Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("settings.calendars.caldav.url.label")}),Rt("div",{className:"setting-item-description",children:Ce("settings.calendars.caldav.url.description")})]}),Rt("div",{className:"setting-item-control",children:Rt(NB,{value:r,onChange:a})})]}),Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("settings.calendars.caldav.username.label")}),Rt("div",{className:"setting-item-description",children:Ce("settings.calendars.caldav.username.description")})]}),Rt("div",{className:"setting-item-control",children:Rt(e6e,{value:i,onChange:o})})]}),Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("settings.calendars.caldav.password.label")}),Rt("div",{className:"setting-item-description",children:Ce("settings.calendars.caldav.password.description")})]}),Rt("div",{className:"setting-item-control",children:Rt(r6e,{value:s,onChange:l})})]}),Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info"}),Rt("div",{className:"setting-item-control",children:Rt("button",{className:"mod-cta",type:"submit",disabled:c||!r||!i||!s,children:d})})]})]})}}),C6e={};function d8(e){return e&&(e.endsWith("/")?e:`${e}/`)}function u6e(e){return e.toISOString().replace(/[-:]/g,"").replace(/\.\d{3}Z$/,"Z")}function sq(e,t){if(!e.trim())throw new Error(t);return e}function Qae(e,t){if(!e.trim())throw new Error(`${t} returned an empty ICS payload.`);if(!/BEGIN:VCALENDAR/i.test(e))throw new Error(`${t} returned invalid ICS payload (missing BEGIN:VCALENDAR).`);return e}function eie(e,t){let n=(new DOMParser).parseFromString(e,"application/xml");if(n.querySelector("parsererror"))throw new Error(`${t} returned malformed XML.`);return n}function x6e(e){let t=e.match(/\s(\d{3})(?:\s|$)/);return t?Number(t[1]):null}function _6e(e,t){return`caldav::${encodeURIComponent(e)}::${encodeURIComponent(t)}`}function gz(e){let t=e.split("::");if(3!==t.length||"caldav"!==t[0])return null;try{return{calendarId:decodeURIComponent(t[1]),uid:decodeURIComponent(t[2])}}catch{return null}}function z6e(e){return 400===e||422===e}function A6e(e){let t=e.getElementsByTagNameNS("*","propstat");for(let e=0;e<t.length;e++){let n=t[e],r=x6e(n.getElementsByTagNameNS("*","status")[0]?.textContent||"");if(null===r||r<200||r>=300)continue;let a=n.getElementsByTagNameNS("*","prop")[0];if(a)return a}return null}function vIt(e){let t=[],n=Array.from(e.getElementsByTagNameNS("*","response"));for(let e of n){let n=(e.getElementsByTagNameNS("DAV:","href")[0]||e.getElementsByTagNameNS("*","href")[0])?.textContent?.trim();if(!n||n.endsWith("/"))continue;let r=A6e(e),a=r?.getElementsByTagNameNS("DAV:","getetag")[0]?.textContent||r?.getElementsByTagNameNS("*","getetag")[0]?.textContent||void 0;a&&(a=a.trim()),t.push({href:n,etag:a||void 0})}return t}function aq(e,t){return new URL(t,e).toString()}function ax(e,t){return String(e.getFirstPropertyValue(t)||"")}function w6e(e){return ax(e,"uid").trim()}function d6e(e,t){let n=e.getFirstProperty(t);if(!n)return!1;try{return F2(n.getFirstValue()).isValid}catch{return!1}}function O6e(e){return!d6e(e,"dtstart")&&!d6e(e,"due")}function T6e(e){return"COMPLETED"===ax(e,"status").toUpperCase()||!!e.getFirstProperty("completed")}function iq(e){return new ec.Component(ec.parse(e))}function f6e(){return typeof window<"u"&&window.crypto?.randomUUID?window.crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`}function gIt(e,t){let n=new ec.Component(["vcalendar",[],[]]);n.addPropertyWithValue("version","2.0"),n.addPropertyWithValue("prodid","-//Obsidian Full Calendar Plugin//NONSGML v1.0//EN");let r=new ec.Component("vtodo");return r.addPropertyWithValue("uid",e),r.addPropertyWithValue("summary",t),r.addPropertyWithValue("dtstamp",ec.Time.now()),r.addPropertyWithValue("status","NEEDS-ACTION"),n.addSubcomponent(r),n.toString()}function Kae(e,t){let n=t.trim();return e.getAllSubcomponents("vtodo").find(e=>w6e(e)===n)??null}function yIt(e){return ax(e,"uid").trim()}function S6e(e){let t=e.trim();if(!t)return null;if(/^\d{4}-\d{2}-\d{2}$/.test(t))return t;let n=Fn.fromISO(t,{setZone:!0});return n.isValid?n.toISO({suppressMilliseconds:!0}):t}function bIt(e){let t=e.getFirstProperty("recurrence-id");if(!t)return null;let n=t.getFirstValue();if(!(n instanceof ec.Time))return S6e(String(n));let r=F2(n);return n.isDate?r.toISODate():r.toISO({suppressMilliseconds:!0})}function h6e(e,t,n){let r=S6e(n);return r?e.getAllSubcomponents("vevent").find(e=>yIt(e)===t&&bIt(e)===r)??null:null}function p6e(e,t){e.removeSubcomponent(t)}function m6e(e,t,n){let r;try{r=iq(e.ics)}catch{return[]}let a=[];for(let i of r.getAllSubcomponents("vtodo")){if(!O6e(i))continue;let r=w6e(i);r&&a.push({id:r,uid:r,title:ax(i,"summary")||"Untitled task",calendarId:t,calendarName:n,description:ax(i,"description"),location:ax(i,"location"),url:ax(i,"url"),status:ax(i,"status"),completed:T6e(i),etag:e.etag})}return a}function MIt(e){return new ec.Time({year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),isDate:!0})}function xIt(e){return new ec.Time({year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),isDate:!1})}function _It(e,t,n){e.removeAllProperties(t);let r=new ec.Property(t);r.setValue(MIt(n)),e.addProperty(r)}function v6e(e,t,n,r){e.removeAllProperties(t);let a=new ec.Property(t);r&&"UTC"!==r&&"Z"!==r&&a.setParameter("TZID",r),a.setValue(xIt(n)),e.addProperty(a)}function g6e(e){return{type:"single",uid:e.uid,title:e.title,date:"",endDate:null,allDay:!0,completed:!!e.completed&&(new Date).toISOString(),description:e.description,location:e.location,url:e.url}}function y6e(e){return e?`"[[${e}]]"`:null}function AIt(e){let t=null,n=null;return"single"===e.type?(t=e.date||null,n=e.endDate||t):"rrule"===e.type&&(t=e.startDate||null,n=e.endDate||t),{scheduled:t,"scheduled-link":y6e(t),due:n,"due-link":y6e(n)}}async function k6e(e,t,n){let r=await Promise.allSettled(t.map(async t=>{let r={Accept:"text/calendar"};n&&(r.Authorization=n);let a=aq(e,t.href),i=await s3(a,{method:"GET",headers:r}),o=await i.text();if(i.status<200||i.status>=300)throw new Error(`CalDAV fallback GET failed (${i.status}) for ${t.href}`);let s={href:t.href,ics:Qae(o,`CalDAV fallback GET for ${t.href}`)};return t.etag&&(s.etag=t.etag),s})),a=[],i=[];for(let e of r)"fulfilled"===e.status?a.push(e.value):i.push(e);if(i.length>0&&console.warn(`[CalDAVProvider] Compatibility fallback skipped ${i.length} event object(s).`),0===a.length){let e=i[0]&&i[0].reason instanceof Error?i[0].reason.message:String(i[0]?.reason??"");throw new Error(e||"CalDAV fallback GET did not return any valid calendar objects.")}return a}async function oq(e,t){let n={Depth:"1","Content-Type":"application/xml; charset=utf-8",Accept:"*/*"};t&&(n.Authorization=t);let r=await s3(d8(e),{method:"PROPFIND",headers:n,body:'<?xml version="1.0" encoding="utf-8"?>\n<d:propfind xmlns:d="DAV:">\n <d:prop>\n <d:getetag/>\n </d:prop>\n</d:propfind>'}),a=await r.text();if(r.status<200||r.status>=300)throw new Error(`CalDAV compatibility PROPFIND failed (${r.status}).`);sq(a,"CalDAV compatibility PROPFIND returned an empty body.");let i=vIt(eie(a,"CalDAV compatibility PROPFIND"));return 0===i.length?[]:k6e(e,i,t)}async function b6e(e,t,n,r,a,i=!0){let o=`<?xml version="1.0" encoding="utf-8"?>\n<c:calendar-query xmlns:d="DAV:" xmlns:c="urn:ietf:params:xml:ns:caldav">\n <d:prop>\n <d:getetag/>\n <c:calendar-data/>\n </d:prop>\n <c:filter>\n <c:comp-filter name="VCALENDAR">\n <c:comp-filter name="${r}">\n <c:time-range start="${u6e(t)}" end="${u6e(n)}"/>\n </c:comp-filter>\n </c:comp-filter>\n </c:filter>\n</c:calendar-query>`,s={Depth:"1","Content-Type":"application/xml; charset=utf-8",Accept:"*/*"};a&&(s.Authorization=a);let l=await s3(d8(e),{method:"REPORT",headers:s,body:o}),c=await l.text();if(l.status<200||l.status>=300){if(i&&z6e(l.status))return console.warn(`[CalDAVProvider] REPORT for ${r} ${l.status}; attempting compatibility fallback.`),{icsList:await oq(e,a),fellBack:!0};throw console.error("[CalDAVProvider] REPORT request failed",l.status,c.slice(0,800)),new Error(`REPORT ${l.status}`)}sq(c,"CalDAV REPORT returned an empty body.");let u=[],d=eie(c,"CalDAV REPORT").getElementsByTagNameNS("*","response"),p=Array.from(d);for(let e of p){let t=e.getElementsByTagNameNS("*","propstat");for(let n=0;n<t.length;n++){let r=t[n],a=x6e(r.getElementsByTagNameNS("*","status")[0]?.textContent||"");if(null===a||a<200||a>=300)continue;let i=r.getElementsByTagNameNS("*","prop")[0];if(!i)continue;let o=i.getElementsByTagNameNS("urn:ietf:params:xml:ns:caldav","calendar-data")[0];if(!o){let e=i.getElementsByTagNameNS("*","calendar-data");e.length>0&&(o=e[0])}if(o){let t=sq(o.textContent||"","CalDAV REPORT returned empty calendar-data payload."),n=i.getElementsByTagNameNS("DAV:","getetag")[0]?.textContent;if(!n){let e=i.getElementsByTagNameNS("*","getetag");e.length>0&&(n=e[0].textContent)}let r=(e.getElementsByTagNameNS("DAV:","href")[0]||e.getElementsByTagNameNS("*","href")[0])?.textContent?.trim()||"";u.push({href:r,ics:Qae(t,"CalDAV REPORT"),etag:n||void 0})}}}if(0===u.length){let t=[];for(let e of p){let n=e.getElementsByTagNameNS("DAV:","href")[0];if(!n){let t=e.getElementsByTagNameNS("*","href");t.length>0&&(n=t[0])}n&&n.textContent&&n.textContent.endsWith(".ics")&&t.push(n.textContent)}return 0===t.length?{icsList:[],fellBack:!1}:{icsList:await k6e(e,t.map(e=>({href:e})),a),fellBack:!1}}return{icsList:u,fellBack:!1}}async function wIt(e,t){let n={Depth:"1","Content-Type":"application/xml; charset=utf-8",Accept:"*/*"};t&&(n.Authorization=t);let r=await s3(d8(e),{method:"REPORT",headers:n,body:'<?xml version="1.0" encoding="utf-8"?>\n<c:calendar-query xmlns:d="DAV:" xmlns:c="urn:ietf:params:xml:ns:caldav">\n <d:prop>\n <d:getetag/>\n <c:calendar-data/>\n </d:prop>\n <c:filter>\n <c:comp-filter name="VCALENDAR">\n <c:comp-filter name="VTODO"/>\n </c:comp-filter>\n </c:filter>\n</c:calendar-query>'}),a=await r.text();if(r.status<200||r.status>=300){if(z6e(r.status))return console.warn(`[CalDAVProvider] REPORT for all VTODO ${r.status}; attempting compatibility fallback.`),oq(e,t);throw console.error("[CalDAVProvider] VTODO REPORT request failed",r.status,a.slice(0,800)),new Error(`REPORT ${r.status}`)}sq(a,"CalDAV VTODO REPORT returned an empty body.");let i=eie(a,"CalDAV VTODO REPORT"),o=[],s=Array.from(i.getElementsByTagNameNS("*","response"));for(let e of s){let t=A6e(e);if(!t)continue;let n=t.getElementsByTagNameNS("urn:ietf:params:xml:ns:caldav","calendar-data")[0]||t.getElementsByTagNameNS("*","calendar-data")[0];if(!n)continue;let r=(e.getElementsByTagNameNS("DAV:","href")[0]||e.getElementsByTagNameNS("*","href")[0])?.textContent?.trim()||"",a=t.getElementsByTagNameNS("DAV:","getetag")[0]?.textContent||t.getElementsByTagNameNS("*","getetag")[0]?.textContent||void 0;o.push({href:r,ics:Qae(sq(n.textContent||"","CalDAV VTODO REPORT returned empty calendar-data payload."),"CalDAV VTODO REPORT"),etag:a||void 0})}return o}async function OIt(e,t,n,r,a){let i=Wy(r,a),{icsList:o,fellBack:s}=await b6e(e,t,n,"VEVENT",i,!0);if(s)return o;let l=[];try{l=(await b6e(e,t,n,"VTODO",i,!1)).icsList}catch(e){console.warn("[CalDAVProvider] Failed to fetch VTODO components (possibly calendar-only collection). Skipping VTODO.",e)}let c=[...o,...l],u=new Set,d=[];for(let e of c){let t=e.ics.trim();u.has(t)||(u.add(t),d.push(e))}return d}Zs(C6e,{CalDAVProvider:()=>Jae,encodeCalDAVTaskId:()=>_6e,parseCalDAVTaskId:()=>gz});var zIt,TIt,M6e,Jae,E6e=kr(()=>{Uae(),QOe(),IB(),c6e(),h1(),Yae(),Zae(),XA(),RM(),B_(),rE(),Wo(),Lu(),WT(),wC(),$ae(),zIt=["scheduled","scheduled-link","due","due-link"],TIt=({source:e})=>{let t=e?.url||"",n=e?.username||"";return io(Pu,{},io("div",{className:"setting-item-control"},io("input",{disabled:!0,type:"text",value:t,className:"ofc-setting-input"})),io("div",{className:"setting-item-control"},io("input",{disabled:!0,type:"text",value:n,className:"ofc-setting-input"})))},M6e=e=>{let{config:t,onSave:n,onClose:r}=e;return io(l6e,{config:t,onSave:e=>n(e),onClose:r})},Jae=class{constructor(e,t){this.undatedTaskCache=[],this.undatedTaskLoadPromise=null,this.hasLoadedUndatedTasks=!1,this.type="caldav",this.displayName="CalDAV",this.isRemote=!0,this.loadPriority=110,this.plugin=t,this.source=e,this.linkedNoteIndex=new Gm(t.app,e.id)}static{this.type="caldav"}static{this.displayName="CalDAV"}static getConfigurationComponent(){return M6e}getPassword(){return Bc.getCalDAVPassword(this.source.id)}initialize(){this.linkedNoteIndex.initialize()}teardown(){this.linkedNoteIndex.destroy()}async createLinkedNote(e,t){let n=await pg({app:this.plugin.app,event:e,calendarId:this.source.id,calendarName:this.source.name,linkedNoteIndex:this.linkedNoteIndex,instanceDate:t});return n&&PM(e)&&await this.updateLinkedTaskNoteDates(e,n),n}async createLinkedNoteForTask(e){return this.createLinkedNote(g6e(e))}getTaskInboxCalendarInfo(){return{id:this.source.id,name:this.source.name}}getTaskBacklogInfo(){return{id:this.source.id,name:this.source.name,title:"CalDAV task inbox",supportsCreate:!0}}getCapabilities(){return{canCreate:!0,canEdit:!0,canDelete:!0,supportsAlarms:!0,ownsRecurringInstanceOverrides:!0}}getEventHandle(e){let t={uid:e.uid,recurrenceId:e.recurrenceId};return e.caldavHref?{persistentId:e.caldavHref,...t}:e.uid?{persistentId:e.uid,...t}:null}async updateLinkedTaskNoteDates(e,t){let n=e.uid||e.id;if(!n)return;let r=t||await this.linkedNoteIndex.getFileForEventAfterHydration(n,e.recurrenceId);if(!r)return;let a=await this.plugin.app.vault.read(r),i=OM(a,AIt(e));i!==a&&await this.plugin.app.vault.modify(r,i)}async clearLinkedTaskNoteDates(e){let t=await this.linkedNoteIndex.getFileForEventAfterHydration(e);if(!t)return;let n=await this.plugin.app.vault.read(t),r=OM(n,Object.fromEntries(zIt.map(e=>[e,null])));r!==n&&await this.plugin.app.vault.modify(t,r)}computeSyncKey(e){return"rrule"===e.type&&e.id?e.id:e.uid&&e.recurrenceId?`${e.uid}::${e.recurrenceId}`:e.uid||JSON.stringify(e)}async getEvents(e){let t,n,{isCalendar:r}=await nq(this.source.homeUrl,{username:this.source.username,password:this.getPassword()??void 0});if(!r){let e=`[CalDAVProvider] Invalid collection URL or not a calendar: ${this.source.homeUrl}`;throw console.error(e),new Error(e)}if(e&&e.start&&e.end)t=new Date(e.start),n=new Date(e.end);else{let e=new Date;t=new Date(e),t.setFullYear(e.getFullYear()-1),n=new Date(e),n.setFullYear(e.getFullYear()+1)}try{let e=await OIt(this.source.homeUrl,t,n,this.source.username,this.getPassword()??void 0),r=[],a=0;for(let{ics:t,etag:n,href:i}of e)try{let e=eq(t).map(e=>(n&&(e.etag=n.replace(/"/g,"")),i&&(e.caldavHref=i),e));r.push(...e)}catch{a+=1}return a>0&&console.warn(`[CalDAVProvider] Skipped ${a} malformed ICS payload(s).`),await Promise.all(r.filter(PM).map(e=>this.updateLinkedTaskNoteDates(e))),r.map(e=>{let t=this.linkedNoteIndex.getFileForEvent(e.uid||"");return[e,t?{file:{path:t.path},lineNumber:void 0}:null]})}catch(e){console.error("[CalDAVProvider] Failed to fetch events.",e);let t=e instanceof Error?e.message:String(e);throw new Error(`Failed to fetch events from CalDAV server: ${t}`,{cause:e})}}async loadUndatedTasksFromRemote(){let{isCalendar:e}=await nq(this.source.homeUrl,{username:this.source.username,password:this.getPassword()??void 0});if(!e)throw new Error(`[CalDAVProvider] Invalid collection URL or not a calendar: ${this.source.homeUrl}`);let t=Wy(this.source.username,this.getPassword()??void 0);return(await wIt(this.source.homeUrl,t)).flatMap(e=>m6e(e,this.source.id,this.source.name))}async refreshUndatedTasks(){return this.undatedTaskLoadPromise||(this.undatedTaskLoadPromise=this.loadUndatedTasksFromRemote().then(e=>(this.undatedTaskCache=e,this.hasLoadedUndatedTasks=!0,[...this.undatedTaskCache])).finally(()=>{this.undatedTaskLoadPromise=null})),this.undatedTaskLoadPromise}async refreshTaskBacklogItems(){return(await this.refreshUndatedTasks()).map(e=>this.toTaskBacklogItem(e))}async getUndatedTasks(){return this.hasLoadedUndatedTasks?Promise.resolve([...this.undatedTaskCache]):this.refreshUndatedTasks()}async getTaskBacklogItems(){return(await this.getUndatedTasks()).map(e=>this.toTaskBacklogItem(e))}async createTaskBacklogItem(e){let t=await this.createTask(e);return this.toTaskBacklogItem(t)}async deleteTaskBacklogItem(e){let t=gz(e),n=e;if(t){if(t.calendarId!==this.source.id)throw new Error(`CalDAV task ID ${e} does not belong to this provider.`);n=t.uid}await this.deleteEvent({persistentId:n}),this.undatedTaskCache=this.undatedTaskCache.filter(e=>e.uid!==n),this.hasLoadedUndatedTasks=!0}async setTaskBacklogItemComplete(e,t){let n=gz(e),r=e;if(n){if(n.calendarId!==this.source.id)return!1;r=n.uid}let a=Wy(this.source.username,this.getPassword()??void 0),i=await oq(this.source.homeUrl,a);for(let e of i){let n=iq(e.ics),a=Kae(n,r);if(!a||!O6e(a))continue;a.updatePropertyWithValue("status",t?"COMPLETED":"NEEDS-ACTION"),t?a.updatePropertyWithValue("completed",ec.Time.now()):a.removeAllProperties("completed"),a.updatePropertyWithValue("last-modified",ec.Time.now());let i=aq(this.source.homeUrl,e.href);return await this.doRequest(i,{method:"PUT",headers:{"Content-Type":"text/calendar; charset=utf-8",...e.etag?{"If-Match":e.etag}:{}},body:n.toString()}),this.undatedTaskCache=this.undatedTaskCache.filter(e=>e.uid!==r),this.hasLoadedUndatedTasks=!0,Qe.getProviderRegistry().refreshBacklogViews(),!0}return!1}async openTaskBacklogItem(e){let t=gz(e);if(!t||t.calendarId!==this.source.id)return;let n=this.undatedTaskCache.find(e=>e.uid===t.uid);n&&await Y5(this.plugin,this.source.id,g6e(n),!1)}toTaskBacklogItem(e){return{id:_6e(e.calendarId,e.uid),title:e.title,completed:e.completed,subtitle:e.calendarName,sourceId:e.calendarId}}async createTask(e){let t=e.trim();if(!t)throw new Error("CalDAV task title cannot be empty.");let n=f6e(),r=gIt(n,t),a=`${d8(this.source.homeUrl)}${n}.ics`;await this.doRequest(a,{method:"PUT",headers:{"Content-Type":"text/calendar; charset=utf-8","If-None-Match":"*"},body:r});let i={id:n,uid:n,title:t,calendarId:this.source.id,calendarName:this.source.name,description:"",location:"",url:"",status:"NEEDS-ACTION",completed:!1};return this.undatedTaskCache=[i,...this.undatedTaskCache.filter(e=>e.uid!==n)],this.hasLoadedUndatedTasks=!0,i}async createEvent(e){e.uid||(e.uid=f6e());let t=e.uid,n=Gae(e),r=`${d8(this.source.homeUrl)}${t}.ics`;return await this.doRequest(r,{method:"PUT",headers:{"Content-Type":"text/calendar; charset=utf-8","If-None-Match":"*"},body:n}),[e,null]}async updateEvent(e,t,n){let r=e.persistentId;n.uid||(n.uid=t.uid||this.getUidFromHref(r));let a=this.resolveEventObjectUrl(r);if(t.recurrenceId&&t.uid)return await this.updateRecurrenceOverride(a,t,n),PM(n)&&await this.updateLinkedTaskNoteDates(n),null;let i=Gae(n);return await this.doRequest(a,{method:"PUT",headers:{"Content-Type":"text/calendar; charset=utf-8",...t.etag?{"If-Match":`"${t.etag}"`}:{}},body:i}),PM(n)&&await this.updateLinkedTaskNoteDates(n),null}async deleteEvent(e){let t=this.resolveEventObjectUrl(e.persistentId);e.uid&&e.recurrenceId?await this.deleteRecurrenceOverride(t,e.uid,e.recurrenceId):await this.doRequest(t,{method:"DELETE"})}ownsTaskId(e){let t=gz(e);return null!==t&&t.calendarId===this.source.id}async validateTaskSchedule(e,t){let n=gz(e),r=e;if(n){if(n.calendarId!==this.source.id)return{isValid:!1,reason:"Task does not belong to this calendar source."};r=n.uid}let a=this;return a.canBeScheduledAt&&"function"==typeof a.canBeScheduledAt?a.canBeScheduledAt({uid:r,title:"",type:"single",allDay:!0,date:"",endDate:null,completed:!1},t):{isValid:!0}}async scheduleTask(e,t,n=!0){let r=gz(e),a=e;if(r){if(r.calendarId!==this.source.id)throw new Error(`CalDAV task ID ${e} does not belong to this provider.`);a=r.uid}let i=Wy(this.source.username,this.getPassword()??void 0),o=await oq(this.source.homeUrl,i);for(let e of o){let r=iq(e.ics),i=Kae(r,a);if(!i)continue;if(n)_It(i,"due",t);else{let e=Qe.getSettings().displayTimezone||Intl.DateTimeFormat().resolvedOptions().timeZone;v6e(i,"dtstart",t,e),v6e(i,"due",new Date(t.getTime()+36e5),e)}i.updatePropertyWithValue("last-modified",ec.Time.now());let o=aq(this.source.homeUrl,e.href);await this.doRequest(o,{method:"PUT",headers:{"Content-Type":"text/calendar; charset=utf-8",...e.etag?{"If-Match":e.etag}:{}},body:r.toString()}),this.undatedTaskCache=this.undatedTaskCache.filter(e=>e.uid!==a),this.hasLoadedUndatedTasks=!0;let s=Fn.fromJSDate(t).toISODate()||"",l={type:"single",uid:a,title:ax(i,"summary")||"Untitled task",date:s,endDate:null,completed:!!T6e(i)&&Fn.now().toISO(),...n?{allDay:!0}:{allDay:!1,startTime:Fn.fromJSDate(t).toFormat("HH:mm"),endTime:Fn.fromJSDate(t).plus({hours:1}).toFormat("HH:mm")}};return void await this.updateLinkedTaskNoteDates(l)}throw new Error(`CalDAV task ${a} was not found.`)}async unscheduleTask(e){let t=gz(e),n=e;if(t){if(t.calendarId!==this.source.id)throw new Error(`CalDAV task ID ${e} does not belong to this provider.`);n=t.uid}let r=Wy(this.source.username,this.getPassword()??void 0),a=await oq(this.source.homeUrl,r);for(let e of a){let t=iq(e.ics),r=Kae(t,n);if(!r)continue;r.removeAllProperties("dtstart"),r.removeAllProperties("due"),r.updatePropertyWithValue("last-modified",ec.Time.now());let a=aq(this.source.homeUrl,e.href);await this.doRequest(a,{method:"PUT",headers:{"Content-Type":"text/calendar; charset=utf-8",...e.etag?{"If-Match":e.etag}:{}},body:t.toString()});let i=t.toString(),o=m6e({...e,ics:i},this.source.id,this.source.name);return this.undatedTaskCache=[...this.undatedTaskCache.filter(e=>e.uid!==n),...o],this.hasLoadedUndatedTasks=!0,void await this.clearLinkedTaskNoteDates(n)}throw new Error(`CalDAV task ${n} was not found.`)}async createInstanceOverride(e,t,n){if(!e.uid)throw new Error("Cannot create override: Master event has no UID.");let r=this.getEventHandle(e);if(!r)throw new Error("Cannot create override: Master event has no CalDAV object reference.");let a=this.resolveEventObjectUrl(r.persistentId),i={},o=Wy(this.source.username,this.getPassword()??void 0);o&&(i.Authorization=o);let s=await s3(a,{method:"GET",headers:i});if(s.status>=300)throw new Error(`Failed to fetch original event for override: ${s.status}`);let l=await s.text(),c=ec.parse(l),u=new ec.Component(c),d=e.allDay||!("startTime"in e)?t:`${t}T${e.startTime}`,p={...n,uid:e.uid,timezone:n.timezone||e.timezone,recurrenceId:d,notify:void 0!==n.notify?n.notify:e.notify,alarms:void 0!==n.alarms?n.alarms:e.alarms},h=Xae(p,d);u.addSubcomponent(h);let f=u.toString();return await this.doRequest(a,{method:"PUT",headers:{"Content-Type":"text/calendar; charset=utf-8"},body:f}),[p,null]}async fetchVCalendar(e){let t={},n=Wy(this.source.username,this.getPassword()??void 0);n&&(t.Authorization=n);let r=await s3(e,{method:"GET",headers:t});if(r.status>=300)throw new Error(`Failed to fetch original event: ${r.status}`);return iq(await r.text())}async putVCalendar(e,t){await this.doRequest(e,{method:"PUT",headers:{"Content-Type":"text/calendar; charset=utf-8"},body:t.toString()})}async updateRecurrenceOverride(e,t,n){if(!t.uid||!t.recurrenceId)throw new Error("Cannot update CalDAV recurrence override without UID and RECURRENCE-ID.");let r=await this.fetchVCalendar(e),a=h6e(r,t.uid,t.recurrenceId);if(!a)throw new Error("Could not find CalDAV recurrence override to update.");p6e(r,a);let i={...n,uid:t.uid,recurrenceId:t.recurrenceId,timezone:n.timezone||t.timezone};r.addSubcomponent(Xae(i,t.recurrenceId)),await this.putVCalendar(e,r)}async deleteRecurrenceOverride(e,t,n){let r=await this.fetchVCalendar(e),a=h6e(r,t,n);if(!a)throw new Error("Could not find CalDAV recurrence override to delete.");p6e(r,a),await this.putVCalendar(e,r)}async doRequest(e,t){let n=t.headers||{},r=Wy(this.source.username,this.getPassword()??void 0);r&&(n.Authorization=r),t.headers=n;let a=await s3(e,t);if(a.status>=300)throw new Error(`CalDAV request failed: ${a.status} ${a.statusText}`);return a}resolveEventObjectUrl(e){return/^https?:\/\//i.test(e)?e:e.endsWith(".ics")||e.includes("/")?aq(this.source.homeUrl,e):`${d8(this.source.homeUrl)}${e}.ics`}getUidFromHref(e){return decodeURIComponent(e.split("/").pop()?.replace(/\.ics$/i,"")||e)}revalidate(){return Promise.resolve()}getConfigurationComponent(){return M6e}getSettingsRowComponent(){return TIt}}});function BB(e){if("cancelled"===e.status)return null;let t=e.attendees?.find(e=>e.self);if(t&&"declined"===t.responseStatus||!e.id||!e.summary||!e.start&&!e.end)return null;let n={uid:e.id,recurringEventId:e.recurringEventId};n.title=e.summary,n.location=e.location,n.description=e.description;let r=e.reminders?.overrides?.find(e=>"popup"===e.method&&"number"==typeof e.minutes);if(r&&(n.alarms=[{minutesBefore:r.minutes,action:"DISPLAY"}]),e.start&&e.start.date)n.allDay=!0,n.date=e.start.date,e.end&&e.end.date&&e.end.date!==e.start.date?n.endDate=Fn.fromISO(e.end.date).minus({days:1}).toISODate():n.endDate=null;else{if(!(e.start&&e.start.dateTime&&e.end&&e.end.dateTime))return null;{n.allDay=!1;let t=e.start.timeZone||"utc",r=Fn.fromISO(e.start.dateTime,{setZone:!0}).setZone(t),a=Fn.fromISO(e.end.dateTime,{setZone:!0}).setZone(e.end.timeZone||t);n.date=r.toISODate(),n.startTime=r.toFormat("HH:mm"),a.toISODate()!==r.toISODate()?n.endDate=a.toISODate():n.endDate=null,n.endTime=a.toFormat("HH:mm"),n.timezone=e.start.timeZone}}if(Array.isArray(e.recurrence)&&e.recurrence.length>0){let t=e.recurrence.find(e=>e.startsWith("RRULE:"));if(t){let r=th(t),a=e.recurrence.filter(e=>e.startsWith("EXDATE")).flatMap(e=>{let t=e.includes("TZID=")?e.split("TZID=")[1].split(":")[0]:"UTC",n=e.split(":")[1];return Fn.fromISO(n,{zone:t}).toISODate()}).filter(e=>!!e),i={type:"rrule",startDate:n.date,rrule:r.toString(),skipDates:a,isTask:!1};return{...n,...i}}}return{...n,type:"single"}}function UB(e){let t={};t.summary=R2(e.category,e.subCategory,e.title),t.location=e.location,t.description=e.description;let n=[];if("rrule"===e.type&&e.rrule)n.push(`RRULE:${e.rrule}`);else if("recurring"===e.type){let t={U:"SU",M:"MO",T:"TU",W:"WE",R:"TH",F:"FR",S:"SA"};if(e.daysOfWeek&&e.daysOfWeek.length>0){let r=`RRULE:FREQ=WEEKLY;BYDAY=${e.daysOfWeek.map(e=>t[e]).join(",")}`;if(e.endRecur){r+=`;UNTIL=${Fn.fromISO(e.endRecur).endOf("day").toUTC().toFormat("yyyyMMdd'T'HHmmss'Z'")}`}n.push(r)}}if(n.length>0&&(t.recurrence=n),e.alarms&&e.alarms.length>0&&(t.reminders={useDefault:!1,overrides:e.alarms.map(e=>({method:"popup",minutes:e.minutesBefore}))}),e.recurringEventId&&"single"===e.type){t.recurringEventId=e.recurringEventId;let n=e.timezone||Intl.DateTimeFormat().resolvedOptions().timeZone;if(!1===e.allDay){let r=Fn.fromISO(`${e.date}T${e.startTime}`);t.originalStartTime={dateTime:r.toISO(),timeZone:n}}else t.originalStartTime={date:e.date}}if(!1===e.allDay){let n,r,a=e.timezone||Intl.DateTimeFormat().resolvedOptions().timeZone;if("single"===e.type?(n=e.date,r=e.endDate||void 0):"rrule"===e.type?n=e.startDate:"recurring"===e.type&&(n=e.startRecur,r=e.endRecur),!n)throw new Error("Cannot create a timed Google event without a start date.");let i=Fn.fromISO(`${n}T${e.startTime}`);if(t.start={dateTime:i.toISO(),timeZone:a},e.endTime){let i=Fn.fromISO(`${r||n}T${e.endTime}`);t.end={dateTime:i.toISO(),timeZone:a}}}else{if("single"!==e.type)throw new Error("Creating/modifying recurring all-day Google events is not yet supported.");{t.start={date:e.date};let n=e.endDate||e.date,r=Fn.fromISO(n).plus({days:1}).toISODate();t.end={date:r}}}return t}var q6e=kr(()=>{Lu(),Wb(),AM()});async function $d(e,t,n="GET",r){try{let a=await(0,D6e.requestUrl)({url:t,method:n,headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},body:r?JSON.stringify(r):void 0});return 204===a.status||a.json}catch(e){let n=e;console.error("Google API Request Failed:",{url:t,status:n.status,response:n.body});let r="Google API request failed.";throw n.status&&(r+=` Status: ${n.status}`),new Hh(r,n.status,n.body)}}var D6e,Hh,f8=kr(()=>{D6e=require("obsidian"),Hh=class extends Error{constructor(e,t,n){super(e),this.status=t,this.body=n,this.name="GoogleApiError"}}});function lq(e){if(!R6e.Platform.isMobile)try{return void window.require("electron").shell.openExternal(e)}catch(e){console.error("Failed to open URL using Electron shell.openExternal:",e)}window.open(e)}var R6e,VB,HB,GB,jB,tie=kr(()=>{R6e=require("obsidian")}),L6e=kr(()=>{VB=require("obsidian"),HB=class extends VB.Modal{constructor(e,t){super(e),this.titleText=t.titleText,this.descriptionText=t.descriptionText,this.valueToCopy=t.valueToCopy,this.copyButtonLabel=t.copyButtonLabel||"Copy",this.copiedButtonLabel=t.copiedButtonLabel||"Copied!",this.closeButtonLabel=t.closeButtonLabel||"Close",this.onCopy=t.onCopy||null,this.onCloseCallback=t.onCloseCallback||null}onOpen(){let{contentEl:e}=this;e.createEl("h2",{text:this.titleText}),e.createEl("p",{text:this.descriptionText});let t=e.createDiv({cls:"ofc-generated-token-container"}),n=t.createEl("input",{cls:"ofc-token-display-input"});n.type="text",n.value=this.valueToCopy,n.setAttribute("readonly","true"),n.focus(),n.select();let r=t.createEl("button",{text:this.copyButtonLabel});r.onclick=()=>{(async()=>{await navigator.clipboard.writeText(this.valueToCopy),r.setText(this.copiedButtonLabel),this.onCopy&&this.onCopy(),this.close()})()},new VB.Setting(e).addButton(e=>e.setButtonText(this.closeButtonLabel).setCta().onClick(()=>this.close()))}onClose(){this.contentEl.empty(),this.onCloseCallback&&this.onCloseCallback()}}}),P6e=kr(()=>{GB=require("obsidian"),jB=class extends GB.Modal{constructor(e,t){super(e),this.wasCancelledByUser=!0,this.titleText=t.titleText,this.descriptionText=t.descriptionText,this.cancelLabel=t.cancelLabel||"Cancel",this.onCancel=t.onCancel||null}closeSuccess(){this.wasCancelledByUser=!1,this.close()}onOpen(){let{contentEl:e}=this;e.createEl("h2",{text:this.titleText}),e.createEl("p",{text:this.descriptionText}),e.createDiv({cls:"ofc-loading-spinner-container"}).createEl("span",{text:"⏳",cls:"ofc-loading-spinner"}),new GB.Setting(e).addButton(e=>e.setButtonText(this.cancelLabel).onClick(()=>{this.close()}))}onClose(){this.contentEl.empty(),this.wasCancelledByUser&&this.onCancel&&this.onCancel()}}}),H6e={};function DIt(){let e=window;return e._ofcGoogleAuthState||(e._ofcGoogleAuthState={pkce:null,server:null,waitingModal:null}),e._ofcGoogleAuthState}function I6e(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";for(let r=0;r<e;r++)t+=n.charAt(Math.floor(66*Math.random()));return t}async function RIt(e){let t=(new TextEncoder).encode(e);return window.crypto.subtle.digest("SHA-256",t)}function LIt(e){let t=new Uint8Array(e),n="";for(let e=0;e<t.length;e++)n+=String.fromCharCode(t[e]);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function PIt(e){return LIt(await RIt(e))}function rie(e,t,n,r){n?new HB(e.app,{titleText:Ce("google.auth.copyModalTitle"),descriptionText:Ce("google.auth.copyModalDesc"),valueToCopy:t,copyButtonLabel:Ce("google.auth.copyModalCopyButton"),copiedButtonLabel:Ce("google.auth.copyModalCopiedButton"),closeButtonLabel:Ce("google.auth.copyModalCloseButton"),onCloseCallback:()=>{let t=r?()=>{ed.pkce=null,ed.waitingModal=null}:()=>{if(ed.server){try{ed.server.close()}catch(e){console.error("Error closing Google Auth server on cancel:",e)}ed.server=null}ed.waitingModal=null};!r&&!ed.server||(ed.waitingModal=new jB(e.app,{titleText:Ce("google.auth.waitingModalTitle"),descriptionText:Ce("google.auth.waitingModalDesc"),cancelLabel:Ce("google.auth.waitingModalCancel"),onCancel:t}),ed.waitingModal.open())}}).open():lq(t)}function N6e(e,t){let n=window.require("http"),r=window.require("url"),a=Qe.getSettings().googleUseCopyPasteAuth;ed.server?rie(e,t,a,!1):(ed.server=n.createServer((t,n)=>{(async()=>{try{if(!t.url||!t.url.startsWith("/callback"))return n.writeHead(204),void n.end();let a=r.parse(t.url,!0).query||{},i=a.code,o=a.state;if("string"!=typeof i||"string"!=typeof o)throw new Error("Invalid callback parameters");n.end("Authentication successful! Please return to Obsidian."),ed.server&&(ed.server.close(),ed.server=null),await U6e(i,o,e),Qe.displaySettingsTab()}catch(e){console.error("Error handling Google Auth callback:",e),n.end("Authentication failed. Please check the console in Obsidian and try again.");let t=ed.waitingModal;ed.waitingModal=null,t&&t.closeSuccess(),ed.server&&(ed.server.close(),ed.server=null)}})()}),ed.server.listen(42813,()=>{rie(e,t,a,!1)}))}async function uq(e,t="calendar"){let n=Qe.getSettings(),r=cq.Platform.isMobile,a=n.googleUseCopyPasteAuth,i=null;if(r&&!a&&(i=window.open("about:blank","_blank"),!i))return void Na(Ce("google.auth.popupBlocked"));let o=I6e(16),s=I6e(128),l=await PIt(s);ed.pkce={verifier:s,state:o};let c=n.useCustomGoogleClient?n.googleClientId:B6e,u=r?W6e:F6e,d=n.useCustomGoogleClient?Bc.getGoogleClientSecret():"";if(n.useCustomGoogleClient&&(!c||!d))return Na(Ce("google.auth.customCredsMissing")),void(i&&i.close());let p=new URLSearchParams({client_id:c,response_type:"code",redirect_uri:u,prompt:"consent",access_type:"offline",state:o,scope:"tasks"===t?qIt:EIt,code_challenge:l,code_challenge_method:"S256"}),h=`${SIt}?${p.toString()}`;a?r?rie(e,h,!0,!0):N6e(e,h):r&&i?i.location.href=h:N6e(e,h)}async function U6e(e,t,n){if(!ed.pkce||t!==ed.pkce.state){let e=ed.waitingModal;return ed.waitingModal=null,e&&e.closeSuccess(),Na(Ce("google.auth.stateMismatch")),void console.error("State mismatch during OAuth callback.")}let r,a,i,o=Qe.getSettings(),s=cq.Platform.isMobile?W6e:F6e,l=o.useCustomGoogleClient?o.googleClientId:B6e;if(o.useCustomGoogleClient){r=kIt;let t=o.useCustomGoogleClient?Bc.getGoogleClientSecret():"";a=new URLSearchParams({grant_type:"authorization_code",client_id:l,code:e,code_verifier:ed.pkce.verifier,redirect_uri:s,client_secret:t}).toString(),i={"Content-Type":"application/x-www-form-urlencoded"}}else{r=CIt;let n={client_id:l,code:e,code_verifier:ed.pkce.verifier,state:t};a=JSON.stringify(n),i={"Content-Type":"application/json"}}try{let e=await(0,cq.requestUrl)({method:"POST",url:r,headers:i,body:a,throw:!1});if(e.status>=400)throw console.error("Token exchange failed:",e.text),new Error(`Google API returned status ${e.status}: ${e.text}`);let t=e.json;if(!t.refresh_token)throw new Error("No refresh token received. If you are using a custom client, ensure it is configured for a 'Desktop app' and has not already been used to grant a refresh token.");await new Nm(n).addAccount({refreshToken:t.refresh_token,accessToken:t.access_token,expiryDate:Date.now()+1e3*t.expires_in}),Na(Ce("google.auth.success"))}catch(e){Na(Ce("google.auth.failed")),e instanceof Error?console.error("Error during token exchange:",e.message):console.error("An unknown error occurred during token exchange:",e)}finally{ed.pkce=null;let e=ed.waitingModal;ed.waitingModal=null,e&&e.closeSuccess()}}Zs(H6e,{exchangeCodeForToken:()=>U6e,startGoogleLogin:()=>uq});var cq,SIt,kIt,CIt,EIt,qIt,W6e,F6e,B6e,ed,XB=kr(()=>{Fc(),tie(),cq=require("obsidian"),yA(),Zo(),Wo(),L6e(),P6e(),RM(),SIt="https://accounts.google.com/o/oauth2/v2/auth",kIt="https://oauth2.googleapis.com/token",CIt="https://gcal-proxy-server.vercel.app/api/google/token",EIt="https://www.googleapis.com/auth/calendar.readonly https://www.googleapis.com/auth/calendar.events email",qIt="https://www.googleapis.com/auth/tasks email",W6e="https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/assets/meta/google-auth-callback.html",F6e="http://127.0.0.1:42813/callback",B6e="272284435724-ltjbog78np5lnbjhgecudaqhsfba9voi.apps.googleusercontent.com",ed=DIt()}),nie={};async function NIt(e,t){let n,r=[],a=t.accessToken;if(!a)throw new Hh("Account is missing an access token.");do{let e=new URL(IIt);n&&e.searchParams.set("pageToken",n);let t=await $d(a,e.toString());Array.isArray(t.items)&&t.items.forEach(e=>{e&&"object"==typeof e&&"id"in e&&"summary"in e&&r.push(e)}),n=t.nextPageToken}while(n);return r}async function FIt(e,t){let n,r=[],a=t.accessToken;if(!a)throw new Hh("Account is missing an access token.");do{let e=new URL(WIt);n&&e.searchParams.set("pageToken",n);let t=await $d(a,e.toString());Array.isArray(t.items)&&t.items.forEach(e=>{e&&"object"==typeof e&&"id"in e&&"title"in e&&r.push(e)}),n=t.nextPageToken}while(n);return r}Zs(nie,{fetchGoogleCalendarList:()=>NIt,fetchGoogleTaskList:()=>FIt});var IIt,WIt,YB,V6e,aie=kr(()=>{f8(),IIt="https://www.googleapis.com/calendar/v3/users/me/calendarList",WIt="https://tasks.googleapis.com/tasks/v1/users/@me/lists"}),j6e=kr(()=>{Wo(),h1(),YB=require("obsidian"),XB(),f8(),yA(),Zo(),RM(),Z0(),V6e=({plugin:e,onSave:t,onClose:n})=>{let[r,a]=Li("account-select"),[i,o]=Li(Qe.getSettings().googleAccounts||[]),[s,l]=Li(null),[c,u]=Li([]),[d,p]=Li(!1),[h,f]=Li(null),[m,g]=Li(new Set),y=Sy(()=>new Nm(e),[e]),b=qf(null),v=qf(null);vu(()=>{let t=()=>{let e=Qe.getSettings().googleAccounts||[];o([...e])};return e.app.workspace.on("full-calendar:google-account-added",t),()=>{e.app.workspace.off("full-calendar:google-account-added",t)}},[e]);let M=vM(async t=>{p(!0),f(null),l(t);try{if(!t.accessToken||!t.expiryDate||Date.now()>=t.expiryDate-6e4){let e=await y.getTokenForSource({type:"google",id:`temp_${t.id}`,name:t.email,calendarId:"primary",googleAccountId:t.id,color:""});if(!e)throw new Hh(`Failed to refresh token for ${t.email}. Please try connecting the account again.`);t.accessToken=e}let{fetchGoogleCalendarList:n}=await Promise.resolve().then(()=>(aie(),nie)),r=await n(e,t),i=new Set(Qe.getSettings().calendarSources.filter(e=>"google"===e.type).map(e=>e.calendarId));u(r.filter(e=>!i.has(e.id))),a("calendar-select")}catch(e){let n=e instanceof Error?e.message:"An unknown error occurred.";f(`Failed to fetch calendars for ${t.email}. ${n}`),a("account-select")}finally{p(!1)}},[y,e]);return vu(()=>{if("account-select"===r&&b.current){let t=b.current;t.empty(),i.forEach(e=>{let n=Bc.hasGoogleRefreshToken(e.id),r=e.email+(n?"":` (${Ce("settings.credentials.keychainMissing")})`);new YB.Setting(t).setName(r).addButton(t=>t.setButtonText(Ce("google.buttons.selectCalendars")).onClick(()=>M(e)))}),new YB.Setting(t).setName(Ce("google.selectAccount.title")).addButton(t=>t.setButtonText(Ce("google.buttons.connectAccount")).setCta().onClick(()=>uq(e)))}},[r,i,e,M]),vu(()=>{if("calendar-select"===r&&v.current){let e=v.current;e.empty(),c.forEach(t=>{new YB.Setting(e).setName(t.summary).setDesc(t.description||"").addToggle(e=>{e.setValue(m.has(t.id)).onChange(e=>((e,t)=>{g(n=>{let r=new Set(n);return t?r.add(e):r.delete(e),r})})(t.id,e))})})}},[r,c,m]),d?Rt("div",{children:Ce("google.loading")}):"account-select"===r?Rt("div",{children:[Rt("div",{className:"setting-item setting-item-heading",children:Rt("div",{className:"setting-item-info",children:Rt("div",{className:"setting-item-name",children:Ce("google.selectAccount.title")})})}),h&&Rt("p",{className:"mod-warning",children:h}),Rt("div",{ref:b})]}):"calendar-select"===r?Rt("div",{children:[Rt("div",{className:"setting-item setting-item-heading",children:Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("google.selectCalendars.title",{email:s?.email??""})}),Rt("div",{className:"setting-item-description",children:0===c.length?Ce("google.selectCalendars.noCalendars"):Ce("google.selectCalendars.description")})]})}),Rt("div",{ref:v}),Rt("div",{className:"setting-item",children:Rt("div",{className:"setting-item-control",children:[Rt("button",{onClick:()=>a("account-select"),children:Ce("google.buttons.backToAccounts")}),Rt("button",{className:"mod-cta u-ml-auto",onClick:()=>{if(!s)return;let e=c.filter(e=>m.has(e.id)).map(e=>({id:e.id,name:e.summary,color:e.backgroundColor||""}));t(e,s.id),n()},disabled:0===m.size,children:1===m.size?Ce("google.buttons.addCalendars",{count:m.size}):Ce("google.buttons.addCalendarsPlural",{count:m.size})})]})})]}):null}}),X6e={};Zs(X6e,{GoogleProvider:()=>iie});var BIt,G6e,iie,ZB,Z6e,Y6e=kr(()=>{Wo(),Lu(),Gb(),q6e(),f8(),j6e(),h1(),yA(),XA(),B_(),BIt=({source:e})=>io("div",{className:"setting-item-control"},io("input",{disabled:!0,type:"text",value:e?.calendarId||"",className:"ofc-setting-input"})),G6e=e=>t=>{let n=e||t.plugin,r=t.onSave;if(!n)throw new Error("Google configuration requires plugin context.");return io(V6e,{plugin:n,onSave:(e,t)=>{r(e,t)},onClose:t.onClose})},iie=class{constructor(e,t,n){this.type="google",this.displayName="Google Calendar",this.isRemote=!0,this.loadPriority=120,this.plugin=t,this.source=e,this.authManager=new Nm(t),this.linkedNoteIndex=new Gm(t.app,e.id)}static{this.type="google"}static{this.displayName="Google Calendar"}static getConfigurationComponent(){return G6e()}initialize(){this.linkedNoteIndex.initialize()}teardown(){this.linkedNoteIndex.destroy()}getCapabilities(){return{canCreate:!0,canEdit:!0,canDelete:!0,supportsAlarms:!0,ownsRecurringInstanceOverrides:!0}}getEventHandle(e){return e.uid?{persistentId:e.uid}:null}computeSyncKey(e){return e.uid||JSON.stringify(e)}async getEvents(e){let t=await this.authManager.getTokenForSource({type:"google",id:this.source.id,name:this.source.name,calendarId:this.source.calendarId,googleAccountId:this.source.googleAccountId,color:""});if(!t)return[];if(!Qe.getSettings().displayTimezone)return[];try{let n,r;e&&e.start&&e.end?(n=new Date(e.start),r=new Date(e.end)):(n=new Date,n.setFullYear(n.getFullYear()-1),r=new Date,r.setFullYear(r.getFullYear()+1));let a=new URL(`https://www.googleapis.com/calendar/v3/calendars/${encodeURIComponent(this.source.calendarId)}/events`);a.searchParams.set("timeMin",n.toISOString()),a.searchParams.set("timeMax",r.toISOString()),a.searchParams.set("singleEvents","false"),a.searchParams.set("maxResults","2500");let i=await $d(t,a.toString());if(!Array.isArray(i.items))return[];let o=new Map;for(let e of i.items)if(e.recurringEventId&&e.originalStartTime&&(e.originalStartTime.dateTime||e.originalStartTime.date)){let t=e.recurringEventId;o.has(t)||o.set(t,new Set);let n=null;if(e.originalStartTime.dateTime?n=Fn.fromISO(e.originalStartTime.dateTime,{zone:e.originalStartTime.timeZone||"utc"}).toISODate():e.originalStartTime.date&&(n=e.originalStartTime.date),n){let e=o.get(t);e&&e.add(n)}}return i.items.map(e=>{let t=BB(e);if(!t)return null;if(("rrule"===t.type||"recurring"===t.type)&&t.uid&&o.has(t.uid)){let e=o.get(t.uid);if(!e)return null;t.skipDates=[...new Set([...t.skipDates||[],...e])]}let n=a2(t);if(!n)return null;let r=this.linkedNoteIndex.getFileForEvent(n.uid||"");return[n,r?{file:{path:r.path},lineNumber:void 0}:null]}).filter(e=>null!==e)}catch(e){return console.error(`Error fetching events for Google Calendar "${this.source.name}":`,e),[]}}async createEvent(e){let t=await this.authManager.getTokenForSource({type:"google",id:this.source.id,name:this.source.name,calendarId:this.source.calendarId,googleAccountId:this.source.googleAccountId,color:""});if(!t)throw new Hh("Cannot create event: not authenticated.");let n=`https://www.googleapis.com/calendar/v3/calendars/${encodeURIComponent(this.source.calendarId)}/events`,r=UB(e),a=BB(await $d(t,n,"POST",r));if(!a)throw new Error("Could not parse event from Google API after creation.");return[a,null]}async updateEvent(e,t,n){let r=await this.authManager.getTokenForSource({type:"google",id:this.source.id,name:this.source.name,calendarId:this.source.calendarId,googleAccountId:this.source.googleAccountId,color:""});if(!r)throw new Hh("Cannot update event: not authenticated.");let a,i=new Set("rrule"===n.type||"recurring"===n.type?n.skipDates:[]),o=new Set("rrule"===t.type||"recurring"===t.type?t.skipDates:[]);if(i.size>o.size)for(let e of i)if(!o.has(e)){a=e;break}if(a)await this.cancelInstance(t,a);else{let t=e.persistentId,a=`https://www.googleapis.com/calendar/v3/calendars/${encodeURIComponent(this.source.calendarId)}/events/${encodeURIComponent(t)}`,i=UB(n);await $d(r,a,"PUT",i)}return null}async deleteEvent(e){let t=await this.authManager.getTokenForSource({type:"google",id:this.source.id,name:this.source.name,calendarId:this.source.calendarId,googleAccountId:this.source.googleAccountId,color:""});if(!t)throw new Hh("Cannot delete event: not authenticated.");let n=e.persistentId,r=`https://www.googleapis.com/calendar/v3/calendars/${encodeURIComponent(this.source.calendarId)}/events/${encodeURIComponent(n)}`;await $d(t,r,"DELETE")}async cancelInstance(e,t){let n=await this.authManager.getTokenForSource({type:"google",id:this.source.id,name:this.source.name,calendarId:this.source.calendarId,googleAccountId:this.source.googleAccountId,color:""});if(!n)throw new Hh("Cannot cancel instance: not authenticated.");if(!e.uid)throw new Error("Cannot cancel an instance of a recurring event that has no master UID.");let r,a={recurringEventId:e.uid,status:"cancelled"};if(e.allDay)r={date:t};else{let n=e.timezone||Intl.DateTimeFormat().resolvedOptions().timeZone,a=!e.allDay&&"startTime"in e?e.startTime:"00:00",i=Fn.fromISO(`${t}T${a}`,{zone:n}).toISO();r=i?{dateTime:i,timeZone:n}:{date:t}}a.originalStartTime=r,a.start=r,a.end=r;let i=`https://www.googleapis.com/calendar/v3/calendars/${encodeURIComponent(this.source.calendarId)}/events`;await $d(n,i,"POST",a)}async createInstanceOverride(e,t,n){let r=await this.authManager.getTokenForSource({type:"google",id:this.source.id,name:this.source.name,calendarId:this.source.calendarId,googleAccountId:this.source.googleAccountId,color:""});if(!r)throw new Hh("Cannot create instance override: not authenticated.");if(!1===n.allDay&&!1===e.allDay){let a={dateTime:Fn.fromISO(`${t}T${e.startTime}`).toISO(),timeZone:e.timezone||Intl.DateTimeFormat().resolvedOptions().timeZone},i={...UB(n),recurringEventId:e.uid,originalStartTime:a},o=BB(await $d(r,`https://www.googleapis.com/calendar/v3/calendars/${encodeURIComponent(this.source.calendarId)}/events`,"POST",i));if(!o)throw new Error("Could not parse Google API response after creating instance override.");return[o,null]}throw new Error("Modifying a single instance of an all-day recurring event is not yet supported for Google Calendars.")}getConfigurationComponent(){return G6e(this.plugin)}getSettingsRowComponent(){return BIt}revalidate(){return Promise.resolve()}async createLinkedNote(e,t){return pg({app:this.plugin.app,event:e,calendarId:this.source.id,calendarName:this.source.name,linkedNoteIndex:this.linkedNoteIndex,instanceDate:t})}}}),$6e=kr(()=>{Wo(),h1(),ZB=require("obsidian"),XB(),f8(),yA(),Zo(),RM(),Z0(),Z6e=({plugin:e,onSave:t,onClose:n})=>{let[r,a]=Li("account-select"),[i,o]=Li(Qe.getSettings().googleAccounts||[]),[s,l]=Li(null),[c,u]=Li([]),[d,p]=Li(!1),[h,f]=Li(null),[m,g]=Li(new Set),y=Sy(()=>new Nm(e),[e]),b=qf(null),v=qf(null);vu(()=>{let t=()=>{let e=Qe.getSettings().googleAccounts||[];o([...e])};return e.app.workspace.on("full-calendar:google-account-added",t),()=>{e.app.workspace.off("full-calendar:google-account-added",t)}},[e]);let M=vM(async t=>{p(!0),f(null),l(t);try{if(!t.accessToken||!t.expiryDate||Date.now()>=t.expiryDate-6e4){let e=await y.getTokenForSource({type:"google",id:`temp_${t.id}`,name:t.email,calendarId:"primary",googleAccountId:t.id,color:""});if(!e)throw new Hh(Ce("google.errors.tokenRefreshFailed",{email:t.email}));t.accessToken=e}let{fetchGoogleTaskList:n}=await Promise.resolve().then(()=>(aie(),nie)),r=await n(e,t),i=new Set(Qe.getSettings().calendarSources.filter(e=>"googletasks"===e.type).map(e=>e.listId));u(r.filter(e=>!i.has(e.id)).map(e=>({id:e.id,summary:e.title}))),a("calendar-select")}catch(e){let n=e instanceof Error?e.message:"An unknown error occurred.";f(Ce("google.errors.fetchTaskListsFailed",{email:t.email,message:n})),a("account-select")}finally{p(!1)}},[y,e]);return vu(()=>{if("account-select"===r&&b.current){let t=b.current;t.empty(),i.forEach(e=>{let n=Bc.hasGoogleRefreshToken(e.id),r=e.email+(n?"":` (${Ce("settings.credentials.keychainMissing")})`);new ZB.Setting(t).setName(r).addButton(t=>t.setButtonText(Ce("google.buttons.selectTaskLists")).onClick(()=>M(e)))}),new ZB.Setting(t).setName(Ce("google.selectAccount.title")).addButton(t=>t.setButtonText(Ce("google.buttons.connectAccount")).setCta().onClick(()=>uq(e,"tasks")))}},[r,i,e,M]),vu(()=>{if("calendar-select"===r&&v.current){let e=v.current;e.empty(),c.forEach(t=>{new ZB.Setting(e).setName(t.summary).addToggle(e=>{e.setValue(m.has(t.id)).onChange(e=>((e,t)=>{g(n=>{let r=new Set(n);return t?r.add(e):r.delete(e),r})})(t.id,e))})})}},[r,c,m]),d?Rt("div",{children:Ce("google.loading")}):"account-select"===r?Rt("div",{children:[Rt("div",{className:"setting-item setting-item-heading",children:Rt("div",{className:"setting-item-info",children:Rt("div",{className:"setting-item-name",children:Ce("google.selectAccount.title")})})}),h&&Rt("p",{className:"mod-warning",children:h}),Rt("div",{ref:b})]}):"calendar-select"===r?Rt("div",{children:[Rt("div",{className:"setting-item setting-item-heading",children:Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("google.selectTasks.title",{email:s?.email??""})}),Rt("div",{className:"setting-item-description",children:0===c.length?Ce("google.selectTasks.noTaskLists"):Ce("google.selectTasks.description")})]})}),Rt("div",{ref:v}),Rt("div",{className:"setting-item",children:Rt("div",{className:"setting-item-control",children:[Rt("button",{onClick:()=>a("account-select"),children:Ce("google.buttons.backToAccounts")}),Rt("button",{className:"mod-cta u-ml-auto",onClick:()=>{if(!s)return;let e=c.filter(e=>m.has(e.id)).map(e=>({id:e.id,name:e.summary,color:"#4285F4"}));t(e,s.id),n()},disabled:0===m.size,children:Ce("google.buttons.addTaskList")})]})})]}):null}}),J6e={};Zs(J6e,{GoogleTasksProvider:()=>oie});var UIt,K6e,oie,Q6e=kr(()=>{Wo(),Lu(),Gb(),f8(),$6e(),h1(),yA(),XA(),B_(),UIt=({source:e})=>io("div",{className:"setting-item-control"},io("input",{disabled:!0,type:"text",value:e?.listId||"",className:"ofc-setting-input"})),K6e=e=>t=>{let n=e||t.plugin,r=t.onSave;if(!n)throw new Error("Google Tasks configuration requires plugin context.");return io(Z6e,{plugin:n,onSave:(e,t)=>{r(e,t)},onClose:t.onClose})},oie=class{constructor(e,t,n){this.type="googletasks",this.displayName="Google Tasks",this.isRemote=!0,this.loadPriority=125,this.plugin=t,this.source=e,this.authManager=new Nm(t),this.linkedNoteIndex=new Gm(t.app,e.id)}static{this.type="googletasks"}static{this.displayName="Google Tasks"}static getConfigurationComponent(){return K6e()}initialize(){this.linkedNoteIndex.initialize()}teardown(){this.linkedNoteIndex.destroy()}getCapabilities(){return{canCreate:!0,canEdit:!0,canDelete:!0}}getEventHandle(e){return e.uid?{persistentId:e.uid}:null}computeSyncKey(e){return e.uid||JSON.stringify(e)}async getToken(){return this.authManager.getTokenForSource({type:"google",id:this.source.id,name:this.source.name,calendarId:this.source.listId,googleAccountId:this.source.googleAccountId,color:""})}async getEvents(e){let t=await this.getToken();if(!t)return[];try{let e=`https://tasks.googleapis.com/tasks/v1/lists/${encodeURIComponent(this.source.listId)}/tasks?showCompleted=true&showHidden=true&maxResults=100`,n=await $d(t,e);return n&&Array.isArray(n.items)?n.items.filter(e=>!!e.due).map(e=>{let t=e.due;if(!t)return null;let n=t.split("T")[0],r="completed"===e.status&&(e.completed||Fn.now().toISO()),a=a2({type:"single",title:e.title||"(No Title)",allDay:!0,date:n,endDate:null,completed:r,uid:e.id,description:e.notes||""});if(!a)return null;let i=this.linkedNoteIndex.getFileForEvent(e.id);return[a,i?{file:{path:i.path},lineNumber:void 0}:null]}).filter(e=>null!==e):[]}catch(e){return console.error(`Error fetching tasks for Google Tasks list "${this.source.name}":`,e),[]}}async createEvent(e){let t=await this.getToken();if(!t)throw new Hh("Cannot create task: not authenticated.");if("single"!==e.type)throw new Error("Google Tasks only supports single events.");let n=`https://tasks.googleapis.com/tasks/v1/lists/${encodeURIComponent(this.source.listId)}/tasks`,r={title:e.title,notes:e.description||"",status:e.completed?"completed":"needsAction"};e.date&&(r.due=`${e.date}T00:00:00.000Z`);let a=await $d(t,n,"POST",r),i=a.due?a.due.split("T")[0]:("single"===e.type?e.date:"")||"",o="completed"===a.status&&(a.completed||Fn.now().toISO());return[{type:"single",title:a.title||e.title,allDay:!0,date:i,endDate:null,completed:o,uid:a.id,description:a.notes||""},null]}async updateEvent(e,t,n){let r=e.persistentId,a=await this.getToken();if(!a)throw new Hh("Cannot update task: not authenticated.");if("single"!==n.type)throw new Error("Google Tasks only supports single events.");let i=n,o=`https://tasks.googleapis.com/tasks/v1/lists/${encodeURIComponent(this.source.listId)}/tasks/${encodeURIComponent(r)}`,s=await $d(a,o);s.title=i.title,s.notes=i.description||"",s.status=i.completed?"completed":"needsAction",i.date?s.due=`${i.date}T00:00:00.000Z`:s.due=void 0,i.completed?s.completed="string"==typeof i.completed?i.completed:Fn.now().toISO():s.completed=void 0;let l=`https://tasks.googleapis.com/tasks/v1/lists/${encodeURIComponent(this.source.listId)}/tasks/${encodeURIComponent(r)}`;return await $d(a,l,"PUT",s),null}async deleteEvent(e){let t=e.persistentId,n=await this.getToken();if(!n)throw new Hh("Cannot delete task: not authenticated.");let r=`https://tasks.googleapis.com/tasks/v1/lists/${encodeURIComponent(this.source.listId)}/tasks/${encodeURIComponent(t)}`;await $d(n,r,"DELETE")}createInstanceOverride(e,t,n){throw new Error("Modifying a single instance of a recurring task is not supported for Google Tasks.")}async toggleComplete(e,t){try{let n=Qe.getCache()?.store.getEventDetails(e);if(!n||!n.event.uid)return!1;let r=n.event;if("single"!==r.type)return!1;let a=r.uid;if(!a)return!1;let i=await this.getToken();if(!i)return!1;let o=`https://tasks.googleapis.com/tasks/v1/lists/${encodeURIComponent(this.source.listId)}/tasks/${encodeURIComponent(a)}`,s=await $d(i,o);s.status=t?"completed":"needsAction",s.completed=t?Fn.now().toISO():void 0;let l=`https://tasks.googleapis.com/tasks/v1/lists/${encodeURIComponent(this.source.listId)}/tasks/${encodeURIComponent(a)}`;await $d(i,l,"PUT",s);let c={...r,type:"single",completed:!!t&&(s.completed||Fn.now().toISO())};return await Qe.getProviderRegistry().processProviderUpdates(this.source.id,{additions:[],updates:[{persistentId:a,event:c,location:n.location?{file:{path:n.location.path},lineNumber:n.location.lineNumber}:null}],deletions:[]}),!0}catch(e){return console.error("Error toggling Google Task completion state:",e),!1}}getTaskBacklogInfo(){return{id:this.source.id,name:this.source.name,title:"Google Tasks backlog",supportsCreate:!0}}async getTaskBacklogItems(){let e=await this.getToken();if(!e)return[];try{let t=`https://tasks.googleapis.com/tasks/v1/lists/${encodeURIComponent(this.source.listId)}/tasks?showCompleted=false&showHidden=false&maxResults=100`,n=await $d(e,t);return n&&Array.isArray(n.items)?n.items.filter(e=>!e.due&&"completed"!==e.status).map(e=>({id:`${this.source.id}::${e.id}`,title:e.title||"(No Title)",completed:"completed"===e.status,subtitle:this.source.name,sourceId:this.source.id})):[]}catch(e){return console.error(`Error fetching Google Tasks backlog items for "${this.source.name}":`,e),[]}}async createTaskBacklogItem(e){let t=await this.getToken();if(!t)throw new Error("Cannot create backlog task: not authenticated.");let n=`https://tasks.googleapis.com/tasks/v1/lists/${encodeURIComponent(this.source.listId)}/tasks`,r=await $d(t,n,"POST",{title:e,status:"needsAction"});return{id:`${this.source.id}::${r.id}`,title:r.title||e,completed:!1,subtitle:this.source.name,sourceId:this.source.id}}async deleteTaskBacklogItem(e){let t=e.split("::"),n=2===t.length?t[1]:e;await this.deleteEvent({persistentId:n})}async setTaskBacklogItemComplete(e,t){let n=e.split("::")[1],r=await this.getToken();if(!r||!n)return!1;try{let e=`https://tasks.googleapis.com/tasks/v1/lists/${encodeURIComponent(this.source.listId)}/tasks/${encodeURIComponent(n)}`,a=await $d(r,e);a.status=t?"completed":"needsAction",a.completed=t?Fn.now().toISO():void 0;let i=`https://tasks.googleapis.com/tasks/v1/lists/${encodeURIComponent(this.source.listId)}/tasks/${encodeURIComponent(n)}`;return await $d(r,i,"PUT",a),Qe.getProviderRegistry().refreshBacklogViews(),!0}catch(e){return console.error("Error toggling Google Tasks backlog item completion state:",e),!1}}ownsTaskId(e){let t=e.split("::");return 2===t.length&&t[0]===this.source.id}async scheduleTask(e,t,n=!0){let r=e.split("::")[1],a=await this.getToken();if(!a)throw new Error("Cannot schedule Google Task: not authenticated.");let i=`${Fn.fromJSDate(t).toFormat("yyyy-MM-dd")}T00:00:00.000Z`,o=`https://tasks.googleapis.com/tasks/v1/lists/${encodeURIComponent(this.source.listId)}/tasks/${encodeURIComponent(r)}`,s=await $d(a,o);s.due=i;let l=`https://tasks.googleapis.com/tasks/v1/lists/${encodeURIComponent(this.source.listId)}/tasks/${encodeURIComponent(r)}`;await $d(a,l,"PUT",s)}async unscheduleTask(e){let t=e.split("::"),n=2===t.length?t[1]:e,r=await this.getToken();if(!r)throw new Error("Cannot unschedule Google Task: not authenticated.");let a=`https://tasks.googleapis.com/tasks/v1/lists/${encodeURIComponent(this.source.listId)}/tasks/${encodeURIComponent(n)}`,i=await $d(r,a);i.due=void 0;let o=`https://tasks.googleapis.com/tasks/v1/lists/${encodeURIComponent(this.source.listId)}/tasks/${encodeURIComponent(n)}`;await $d(r,o,"PUT",i)}async validateTaskSchedule(e,t){return{isValid:!0}}getConfigurationComponent(){return K6e(this.plugin)}getSettingsRowComponent(){return UIt}revalidate(){return Promise.resolve()}async createLinkedNote(e,t){return pg({app:this.plugin.app,event:e,calendarId:this.source.id,calendarName:this.source.name,linkedNoteIndex:this.linkedNoteIndex,instanceDate:t})}}});async function l3(e,t,n="GET",r){try{let a=await(0,eTe.requestUrl)({url:t,method:n,headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},body:r?JSON.stringify(r):void 0});return 204===a.status||a.json}catch(e){let n=e;console.error("Outlook API Request Failed:",{url:t,status:n.status,response:n.body});let r="Outlook API request failed.";throw n.status&&(r+=` Status: ${n.status}`),new ix(r,n.status,n.body)}}var eTe,ix,$B=kr(()=>{eTe=require("obsidian"),ix=class extends Error{constructor(e,t,n){super(e),this.status=t,this.body=n,this.name="OutlookApiError"}}});function tTe(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";for(let r=0;r<e;r++)t+=n.charAt(Math.floor(66*Math.random()));return t}async function GIt(e){let t=new TextEncoder;return window.crypto.subtle.digest("SHA-256",t.encode(e))}function XIt(e){let t=new Uint8Array(e),n="";for(let e=0;e<t.length;e++)n+=String.fromCharCode(t[e]);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function YIt(e){return XIt(await GIt(e))}function ZIt(e,t){let n=window.require("http"),r=window.require("url");ox?lq(t):(ox=n.createServer((t,n)=>{(async()=>{try{if(!t.url||!t.url.startsWith("/callback"))return n.writeHead(204),void n.end();let a=r.parse(t.url,!0).query||{},i=a.code,o=a.state;if("string"!=typeof i||"string"!=typeof o)throw new Error("Invalid callback parameters");n.end(Ce("outlook.auth.callbackSuccess")),ox&&(ox.close(),ox=null),await $It(i,o,e),Qe.displaySettingsTab()}catch(e){console.error("Error handling Outlook auth callback:",e),n.end(Ce("outlook.auth.callbackFailed")),ox&&(ox.close(),ox=null)}})()})).listen(42813,()=>{lq(t)})}async function rTe(e){if(KB.Platform.isMobile)return void Na(Ce("outlook.auth.desktopOnly"));let t=Qe.getSettings(),{clientId:n,proxyBaseUrl:r,isCustom:a}=ZC(t);if(a&&!n)return void Na(Ce("outlook.auth.clientIdMissing"));if(a&&!r)return void Na(Ce("outlook.auth.proxyMissing"));let i=tTe(16),o=tTe(128),s=await YIt(o);dq={verifier:o,state:i};let l=new URLSearchParams({client_id:n,response_type:"code",redirect_uri:VIt,response_mode:"query",scope:jIt,state:i,code_challenge:s,code_challenge_method:"S256"});ZIt(e,`${HIt}?${l.toString()}`)}async function $It(e,t,n){if(!dq||t!==dq.state)return void Na(Ce("outlook.auth.stateMismatch"));let r=Qe.getSettings(),{proxyBaseUrl:a,isCustom:i}=ZC(r);if(!i||a)try{let t=await(0,KB.requestUrl)({method:"POST",url:`${a}/api/microsoft/token`,headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,code_verifier:dq.verifier}),throw:!1});if(t.status>=400)throw new Error(`Outlook token exchange failed (${t.status}): ${t.text}`);let r=t.json;if(!r.refresh_token)throw new Error("No refresh token received from Microsoft proxy.");await new Xb(n).addAccount({refreshToken:r.refresh_token,accessToken:r.access_token,expiryDate:Date.now()+1e3*r.expires_in}),Na(Ce("outlook.auth.success"))}catch(e){console.error("Outlook token exchange error:",e),Na(Ce("outlook.auth.failed"))}finally{dq=null}else Na(Ce("outlook.auth.proxyMissing"))}var KB,HIt,VIt,jIt,dq,ox,nTe=kr(()=>{Fc(),tie(),KB=require("obsidian"),Wo(),Zo(),$C(),zre(),HIt="https://login.microsoftonline.com/common/oauth2/v2.0/authorize",VIt="http://localhost:42813/callback",jIt="offline_access Calendars.ReadWrite Calendars.ReadWrite.Shared User.Read",dq=null,ox=null}),aTe={};async function JIt(e){if(!e.accessToken)throw new ix("Account is missing an access token.");let t=await l3(e.accessToken,KIt);return Array.isArray(t.value)?t.value.filter(e=>!!e&&"object"==typeof e&&"id"in e&&"name"in e):[]}Zs(aTe,{fetchOutlookCalendarList:()=>JIt});var KIt,JB,oTe,iTe=kr(()=>{$B(),KIt="https://graph.microsoft.com/v1.0/me/calendars"}),sTe=kr(()=>{h1(),JB=require("obsidian"),Wo(),$B(),$C(),nTe(),Zo(),RM(),Z0(),oTe=({plugin:e,onSave:t,onClose:n})=>{let[r,a]=Li("account-select"),[i,o]=Li(Qe.getSettings().microsoftAccounts||[]),[s,l]=Li(null),[c,u]=Li([]),[d,p]=Li(new Set),[h,f]=Li(!1),[m,g]=Li(null),y=Sy(()=>new Xb(e),[e]),b=qf(null),v=qf(null);vu(()=>{let t=()=>{o([...Qe.getSettings().microsoftAccounts||[]])};return e.app.workspace.on("full-calendar:outlook-account-added",t),()=>{e.app.workspace.off("full-calendar:outlook-account-added",t)}},[e]);let M=vM(async e=>{f(!0),g(null),l(e);try{if(!e.accessToken||!e.expiryDate||Date.now()>=e.expiryDate-6e4){let t=await y.getTokenForSource({type:"outlook",id:`temp_${e.id}`,name:e.email,calendarId:"primary",microsoftAccountId:e.id,color:""});if(!t)throw new ix(`Failed to refresh token for ${e.email}.`);e.accessToken=t}let{fetchOutlookCalendarList:t}=await Promise.resolve().then(()=>(iTe(),aTe)),n=await t(e),r=new Set(Qe.getSettings().calendarSources.filter(e=>"outlook"===e.type).map(e=>e.calendarId));u(n.filter(e=>!r.has(e.id))),a("calendar-select")}catch(t){let n=t instanceof Error?t.message:Ce("outlook.errors.unknown");g(Ce("outlook.errors.fetchCalendars",{email:e.email,message:n})),a("account-select")}finally{f(!1)}},[y]);return vu(()=>{if("account-select"!==r||!b.current)return;let t=b.current;t.empty(),i.forEach(e=>{let n=Bc.hasMicrosoftRefreshToken(e.id),r=e.email+(n?"":` (${Ce("settings.credentials.keychainMissing")})`);new JB.Setting(t).setName(r).addButton(t=>t.setButtonText(Ce("outlook.buttons.selectCalendars")).onClick(()=>M(e)))}),new JB.Setting(t).setName(Ce("outlook.selectAccount.title")).addButton(t=>t.setButtonText(Ce("outlook.buttons.connectAccount")).setCta().onClick(()=>rTe(e)))},[r,i,e,M]),vu(()=>{if("calendar-select"!==r||!v.current)return;let e=v.current;e.empty(),c.forEach(t=>{new JB.Setting(e).setName(t.name).addToggle(e=>{e.setValue(d.has(t.id)).onChange(e=>((e,t)=>{p(n=>{let r=new Set(n);return t?r.add(e):r.delete(e),r})})(t.id,e))})})},[r,c,d]),Rt("div",h?{children:Ce("outlook.loading")}:"account-select"===r?{children:[Rt("div",{className:"setting-item setting-item-heading",children:Rt("div",{className:"setting-item-info",children:Rt("div",{className:"setting-item-name",children:Ce("outlook.selectAccount.title")})})}),m&&Rt("p",{className:"mod-warning",children:m}),Rt("div",{ref:b})]}:{children:[Rt("div",{className:"setting-item setting-item-heading",children:Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("outlook.selectCalendars.title",{email:s?.email??""})}),Rt("div",{className:"setting-item-description",children:0===c.length?Ce("outlook.selectCalendars.noCalendars"):Ce("outlook.selectCalendars.description")})]})}),Rt("div",{ref:v}),Rt("div",{className:"setting-item",children:Rt("div",{className:"setting-item-control",children:[Rt("button",{onClick:()=>a("account-select"),children:Ce("outlook.buttons.backToAccounts")}),Rt("button",{className:"mod-cta u-ml-auto",onClick:()=>{if(!s)return;let e=c.filter(e=>d.has(e.id)).map(e=>({id:e.id,name:`${e.name} (${s.email})`,color:e.color||""}));t(e,s.id),n()},disabled:0===d.size,children:1===d.size?Ce("outlook.buttons.addCalendars",{count:d.size}):Ce("outlook.buttons.addCalendarsPlural",{count:d.size})})]})})]})}});function QB(e){if(!(e.id&&e.subject&&e.start&&e.end))return null;let t=e.start.dateTime?Fn.fromISO(e.start.dateTime):null,n=e.end.dateTime?Fn.fromISO(e.end.dateTime):null;if(!(t&&n&&t.isValid&&n.isValid))return null;let r=e.seriesMasterId??void 0;if("seriesMaster"===e.type&&e.recurrence?.pattern){let r=e.recurrence.pattern,a=e.recurrence.range,i={type:"recurring",uid:e.id,title:e.subject,allDay:!!e.isAllDay,repeatInterval:r.interval,startRecur:a?.startDate||t.toISODate()||void 0,endRecur:"endDate"===a?.type?a?.endDate:void 0,isTask:!1,skipDates:[]};switch(e.isReminderOn&&"number"==typeof e.reminderMinutesBeforeStart&&(i.alarms=[{minutesBefore:e.reminderMinutesBeforeStart,action:"DISPLAY"}]),e.isAllDay||(i.startTime=t.toFormat("HH:mm"),i.endTime=n.toFormat("HH:mm"),i.timezone=e.start?.timeZone||a?.recurrenceTimeZone||void 0),r.type){case"weekly":{let e=(r.daysOfWeek||[]).map(e=>sie[e.toLowerCase()]).filter(e=>!!e);e.length>0&&(i.daysOfWeek=e);break}case"absoluteMonthly":i.dayOfMonth=r.dayOfMonth;break;case"relativeMonthly":{let e=r.index?lTe[r.index]:void 0,t=(r.daysOfWeek||[])[0]?.toLowerCase(),n=t?sie[t]:void 0;e&&n&&(i.repeatOn={week:e,weekday:["U","M","T","W","R","F","S"].indexOf(n)});break}case"absoluteYearly":i.dayOfMonth=r.dayOfMonth,i.month=r.month;break;case"relativeYearly":{let e=r.index?lTe[r.index]:void 0,t=(r.daysOfWeek||[])[0]?.toLowerCase(),n=t?sie[t]:void 0;e&&n&&(i.repeatOn={week:e,weekday:["U","M","T","W","R","F","S"].indexOf(n)}),i.month=r.month;break}default:i.daysOfWeek=["U","M","T","W","R","F","S"]}return i}if(e.isAllDay){let a=n.minus({days:1}).toISODate();return{type:"single",uid:e.id,recurringEventId:r,title:e.subject,allDay:!0,date:t.toISODate()||"",endDate:a||null,...e.isReminderOn&&"number"==typeof e.reminderMinutesBeforeStart?{alarms:[{minutesBefore:e.reminderMinutesBeforeStart,action:"DISPLAY"}]}:{}}}return{type:"single",uid:e.id,recurringEventId:r,title:e.subject,allDay:!1,date:t.toISODate()||"",startTime:t.toFormat("HH:mm"),endDate:n.toISODate()!==t.toISODate()?n.toISODate():null,endTime:n.toFormat("HH:mm"),timezone:e.start.timeZone||void 0,...e.isReminderOn&&"number"==typeof e.reminderMinutesBeforeStart?{alarms:[{minutesBefore:e.reminderMinutesBeforeStart,action:"DISPLAY"}]}:{}}}function eU(e){let t={subject:R2(e.category,e.subCategory,e.title)};if(e.alarms&&e.alarms.length>0?(t.isReminderOn=!0,t.reminderMinutesBeforeStart=e.alarms[0].minutesBefore):t.isReminderOn=!1,e.allDay){if("single"!==e.type&&"recurring"!==e.type)throw new Error("All-day Outlook events are supported for single or recurring event types.");let n="single"===e.type?e.date:e.startRecur;if(!n)throw new Error("All-day Outlook event is missing a valid start date.");let r=Fn.fromISO(("single"===e.type?e.endDate:e.endRecur)||n).plus({days:1}).toISODate();return t.isAllDay=!0,t.start={dateTime:`${n}T00:00:00`,timeZone:"UTC"},t.end={dateTime:`${r}T00:00:00`,timeZone:"UTC"},"recurring"===e.type&&(t.recurrence=uTe(e)),t}let n,r,a=e.timezone||Intl.DateTimeFormat().resolvedOptions().timeZone;if("single"===e.type?(n=e.date,r=e.endDate||e.date):"rrule"===e.type?(n=e.startDate,r=e.startDate):"recurring"===e.type&&(n=e.startRecur,r=e.startRecur),!n||!e.startTime||!e.endTime)throw new Error("Timed Outlook event is missing required date/time fields.");return t.isAllDay=!1,t.start={dateTime:`${n}T${e.startTime}:00`,timeZone:a},t.end={dateTime:`${r||n}T${e.endTime}:00`,timeZone:a},"recurring"===e.type&&(t.recurrence=uTe(e)),t}function uTe(e){let t,n=e.repeatInterval||1,r=e.startRecur;if(!r)throw new Error("Recurring Outlook event requires startRecur.");if(e.month&&e.repeatOn){let r=["U","M","T","W","R","F","S"][e.repeatOn.weekday];t={type:"relativeYearly",interval:n,month:e.month,index:cTe[e.repeatOn.week],daysOfWeek:[lie[r]]}}else if(e.month&&e.dayOfMonth)t={type:"absoluteYearly",interval:n,month:e.month,dayOfMonth:e.dayOfMonth};else if(e.repeatOn){let r=["U","M","T","W","R","F","S"][e.repeatOn.weekday];t={type:"relativeMonthly",interval:n,index:cTe[e.repeatOn.week],daysOfWeek:[lie[r]]}}else t=e.dayOfMonth?{type:"absoluteMonthly",interval:n,dayOfMonth:e.dayOfMonth}:e.daysOfWeek&&e.daysOfWeek.length>0?{type:"weekly",interval:n,daysOfWeek:e.daysOfWeek.map(e=>lie[e]),firstDayOfWeek:"sunday"}:{type:"daily",interval:n};let a={type:e.endRecur?"endDate":"noEnd",startDate:r};return e.endRecur&&(a.endDate=e.endRecur),{pattern:t,range:a}}var sie,lie,lTe,cTe,dTe=kr(()=>{Lu(),Wb(),sie={sunday:"U",monday:"M",tuesday:"T",wednesday:"W",thursday:"R",friday:"F",saturday:"S"},lie={U:"sunday",M:"monday",T:"tuesday",W:"wednesday",R:"thursday",F:"friday",S:"saturday"},lTe={first:1,second:2,third:3,fourth:4,last:-1},cTe={1:"first",2:"second",3:"third",4:"fourth",[-1]:"last"}}),hTe={};Zs(hTe,{OutlookProvider:()=>cie});var QIt,fTe,cie,uie,pTe=kr(()=>{h1(),Lu(),Wo(),Gb(),sTe(),$C(),$B(),dTe(),XA(),B_(),QIt=({source:e})=>{let t=e?.microsoftAccountId;return io("div",{className:"setting-item-control"},io("input",{disabled:!0,type:"text",value:Qe.getSettings().microsoftAccounts.find(e=>e.id===t)?.email||"",className:"ofc-setting-input"}))},fTe=e=>t=>{let n=e||t.plugin,r=t.onSave;if(!n)throw new Error("Outlook configuration requires plugin context.");return io(oTe,{plugin:n,onSave:(e,t)=>{r(e,t)},onClose:t.onClose})},cie=class{constructor(e,t,n){this.type="outlook",this.displayName="Outlook Calendar",this.isRemote=!0,this.loadPriority=125,this.plugin=t,this.source=e,this.authManager=new Xb(t),this.linkedNoteIndex=new Gm(t.app,e.id)}static{this.type="outlook"}static{this.displayName="Outlook Calendar"}static getConfigurationComponent(){return fTe()}initialize(){this.linkedNoteIndex.initialize()}teardown(){this.linkedNoteIndex.destroy()}async createLinkedNote(e,t){return pg({app:this.plugin.app,event:e,calendarId:this.source.id,calendarName:this.source.name,linkedNoteIndex:this.linkedNoteIndex,instanceDate:t})}getCapabilities(){return{canCreate:!0,canEdit:!0,canDelete:!0,supportsAlarms:!0,ownsRecurringInstanceOverrides:!0}}getEventHandle(e){return e.uid?{persistentId:e.uid}:null}computeSyncKey(e){return e.uid||JSON.stringify(e)}async getAccessToken(){let e=await this.authManager.getTokenForSource({type:"outlook",id:this.source.id,name:this.source.name,calendarId:this.source.calendarId,microsoftAccountId:this.source.microsoftAccountId,color:""});if(!e)throw new ix("Cannot perform Outlook operation: not authenticated.");return e}async getEvents(e){let t=await this.getAccessToken().catch(()=>null);if(!t)return[];try{let e=new URL(`https://graph.microsoft.com/v1.0/me/calendars/${encodeURIComponent(this.source.calendarId)}/events`);e.searchParams.set("$top","1000");let n=await l3(t,e.toString());return Array.isArray(n.value)?n.value.map(e=>{let t=QB(e);if(!t)return null;let n=a2(t);if(!n)return null;let r=this.linkedNoteIndex.getFileForEvent(n.uid||"");return[n,r?{file:{path:r.path},lineNumber:void 0}:null]}).filter(e=>null!==e):[]}catch{return[]}}async createEvent(e){let t=await this.getAccessToken(),n=QB(await l3(t,`https://graph.microsoft.com/v1.0/me/calendars/${encodeURIComponent(this.source.calendarId)}/events`,"POST",eU(e)));if(!n)throw new Error("Could not parse event from Outlook API after creation.");return[n,null]}async updateEvent(e,t,n){let r,a=await this.getAccessToken(),i=new Set("rrule"===n.type||"recurring"===n.type?n.skipDates:[]),o=new Set("rrule"===t.type||"recurring"===t.type?t.skipDates:[]);if(i.size>o.size)for(let e of i)if(!o.has(e)){r=e;break}return r?(await this.cancelInstance(t,r),null):(await l3(a,`https://graph.microsoft.com/v1.0/me/calendars/${encodeURIComponent(this.source.calendarId)}/events/${encodeURIComponent(e.persistentId)}`,"PATCH",eU(n)),null)}async deleteEvent(e){let t=await this.getAccessToken();await l3(t,`https://graph.microsoft.com/v1.0/me/calendars/${encodeURIComponent(this.source.calendarId)}/events/${encodeURIComponent(e.persistentId)}`,"DELETE")}async findOccurrenceId(e,t,n,r,a){let i=r||Intl.DateTimeFormat().resolvedOptions().timeZone,o=a||"00:00",s=Fn.fromISO(`${n}T${o}`,{zone:i}),l=s.plus({days:1}),c=new URL(`https://graph.microsoft.com/v1.0/me/calendars/${encodeURIComponent(this.source.calendarId)}/events/${encodeURIComponent(t)}/instances`);c.searchParams.set("startDateTime",s.toISO()||`${n}T00:00:00`),c.searchParams.set("endDateTime",l.toISO()||`${n}T23:59:59`),c.searchParams.set("$top","200");let u=await l3(e,c.toString());return Array.isArray(u.value)&&u.value.find(e=>{if(!e.id||!e.start?.dateTime)return!1;let t=Fn.fromISO(e.start.dateTime,{setZone:!0});return t.isValid&&t.toISODate()===n})?.id||null}async cancelInstance(e,t){if(!e.uid)throw new Error("Cannot cancel an instance of a recurring event that has no master UID.");let n=await this.getAccessToken(),r=!e.allDay&&"startTime"in e?e.startTime:void 0,a=await this.findOccurrenceId(n,e.uid,t,e.timezone,r);if(!a)throw new Error("Could not locate recurring instance to cancel in Outlook.");await l3(n,`https://graph.microsoft.com/v1.0/me/calendars/${encodeURIComponent(this.source.calendarId)}/events/${encodeURIComponent(a)}`,"DELETE")}async createInstanceOverride(e,t,n){if(!e.uid)throw new Error("Cannot create instance override without a recurring master UID.");let r=await this.getAccessToken(),a=!e.allDay&&"startTime"in e?e.startTime:void 0,i=await this.findOccurrenceId(r,e.uid,t,e.timezone,a);if(!i)throw new Error("Could not locate recurring instance to modify in Outlook.");let o=QB(await l3(r,`https://graph.microsoft.com/v1.0/me/calendars/${encodeURIComponent(this.source.calendarId)}/events/${encodeURIComponent(i)}`,"PATCH",eU(n)));if(!o)throw new Error("Could not parse Outlook instance override response.");return[o,null]}getConfigurationComponent(){return fTe(this.plugin)}getSettingsRowComponent(){return QIt}revalidate(){return Promise.resolve()}}}),mTe=kr(()=>{h1(),Zo(),Z0(),uie=({config:e,onConfigChange:t,context:n,onSave:r,onClose:a})=>{let[i,o]=Li(e.name||"Obsidian Tasks"),[s,l]=Li(!1);return Rt("div",{className:"tasks-provider-config",children:[Rt("div",{className:"setting-item",children:Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("settings.calendars.tasks.zeroConfig.label")}),Rt("div",{className:"setting-item-description",children:Ce("settings.calendars.tasks.zeroConfig.description")})]})}),Rt("form",{onSubmit:t=>{t.preventDefault(),l(!0),r({...e,id:e.id||"",name:i})},children:[Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("settings.calendars.tasks.calendarName.label")}),Rt("div",{className:"setting-item-description",children:Ce("settings.calendars.tasks.calendarName.description")})]}),Rt("div",{className:"setting-item-control",children:Rt("input",{type:"text",value:i,onChange:n=>{o(n.target.value),t({...e,name:n.target.value})},placeholder:"Obsidian Tasks"})})]}),Rt("div",{className:"setting-item",children:Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("settings.calendars.tasks.readOnly.label")}),Rt("div",{className:"setting-item-description",children:Ce("settings.calendars.tasks.readOnly.description")})]})}),Rt("div",{className:"setting-item",children:[Rt("button",{type:"submit",className:"mod-cta",disabled:s||!i.trim(),children:Ce(s?"settings.calendars.tasks.adding":"ui.buttons.addCalendar")}),Rt("button",{type:"button",onClick:a,disabled:s,style:{},className:"u-ml-10px",children:Ce("settings.calendars.tasks.cancel")})]})]})]})}});function h8(e){return e.replace(/\s+/g," ").trim()}function die(e){let t=String.raw`\d{1,2}:\d{2}(?:\s*[AaPp][Mm])?`,n=new RegExp(`^\\s*(${t})\\s*-\\s*(${t})\\s+`),r=new RegExp(`^\\s*(${t})\\s+`),a=new RegExp(`\\((${t})-(${t})\\)`),i=new RegExp(`\\((${t})\\)`),o=e=>e.replace(/\s*([AaPp][Mm])$/,(e,t)=>` ${t.toUpperCase()}`),s=e.match(a),l=e.match(n);if(l)return{startTime:o(l[1]),endTime:o(l[2]),cleanTitle:h8(e.replace(l[0],""))};let c=e.match(r);if(c)return{startTime:o(c[1]),endTime:null,cleanTitle:h8(e.replace(c[0],""))};if(s)return{startTime:o(s[1]),endTime:o(s[2]),cleanTitle:h8(e.replace(s[0],""))};let u=e.match(i);return u?{startTime:o(u[1]),endTime:null,cleanTitle:h8(e.replace(u[0],""))}:{startTime:null,endTime:null,cleanTitle:h8(e)}}function vTe(e){if(!e||"function"!=typeof e.toDate)return null;let t=e.toDate();return t instanceof Date&&!Number.isNaN(t.getTime())?t:null}function tU(e,t,n){return vTe(e[t])??vTe(e[n])}function nNt(e){let t=e.descriptionWithoutTags;return"string"==typeof t&&t.trim()?t:e.description||""}function aNt(e){let t=h8(nNt(e).replace(eNt," ").replace(tNt," ").replace(rNt," ")),{cleanTitle:n,startTime:r,endTime:a}=die(t);return{title:n||e.description||e.originalMarkdown,startTime:r,endTime:a}}function iNt(e){let t=e.taskLocation.lineNumber+1,{title:n,startTime:r,endTime:a}=aNt(e),i=tU(e,"doneDate","_doneDate");return{id:`${e.path}::${e.taskLocation.lineNumber}`,title:n,startDate:tU(e,"startDate","_startDate"),dueDate:tU(e,"dueDate","_dueDate"),scheduledDate:tU(e,"scheduledDate","_scheduledDate"),originalMarkdown:e.originalMarkdown,filePath:e.path,lineNumber:t,isDone:e.isDone||"x"===e.statusCharacter||!!e.doneDatez||!!i,startTime:r,endTime:a}}function gTe(e){if(!e)return[];let t=new Map;for(let n of e){let e=iNt(n),r="string"==typeof n.id?n.id.trim():"",a=r?`native:${r}`:`location:${e.id}`;t.has(a)||t.set(a,e)}return Array.from(t.values())}var eNt,tNt,rNt,fq,fie=kr(()=>{eNt=/(?:^|\s)#task(?:\/[^\s#]+)?/g,tNt=/\s*(?:\u2795|\uD83D\uDEEB|\u23F3|\uD83D\uDCC5|\u2705|\u274C|\u26D4)\s*\d{4}-\d{2}-\d{2}/gu,rNt=/\s*(?:\uD83D\uDD3A|\u23EB|\uD83D\uDD3C|\uD83D\uDD3D|\u23EC)(?=\s|$)/gu}),yTe=kr(()=>{fq=class{constructor(e){this.rules=[],this.parseQuery(e)}parseQuery(e){if(!e)return;let t=e.split("\n"),n=/^(path|folder|description|tags?|priority)\s+(does not include|do not include|includes?|regex does not match|regex matches|is not|are not|is|are)\s+(.*)$/i,r=["explain","limit","sort by","group by","short mode","show","hide","filter by"];for(let e of t){let t=e.trim();if(!t||t.startsWith("#")||t.startsWith("//")||r.some(e=>t.toLowerCase().startsWith(e)))continue;let a=t.match(n);if(a){let e=a[1].toLowerCase(),t=a[2],n=a[3].trim(),r=this.normalizeOperator(t);this.rules.push({field:e,operator:r,value:n})}}}normalizeOperator(e){let t=e.toLowerCase();return"include"===t||"includes"===t?"includes":"does not include"===t||"do not include"===t?"does not include":"is"===t||"are"===t?"is":"is not"===t||"are not"===t?"is not":t}filter(e){return 0===this.rules.length?e:e.filter(e=>this.matchesAll(e))}matchesAll(e){return this.rules.every(t=>this.matchesRule(e,t))}matchesRule(e,t){let{field:n,operator:r,value:a}=t;switch(n){case"path":return this.matchString(e.filePath,r,a);case"folder":return this.matchString(this.getTaskFolder(e.filePath),r,a);case"description":return this.matchString(e.title,r,a);case"tag":case"tags":return this.matchTags(e,r,a);case"priority":return this.matchPriority(e,r,a);default:return!0}}getTaskFolder(e){let t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}matchString(e,t,n){let r=e.toLowerCase(),a=n.toLowerCase();switch(t){case"includes":return r.includes(a);case"does not include":return!r.includes(a);case"is":return r===a;case"is not":return r!==a;case"regex matches":return this.matchRegex(e,n);case"regex does not match":return!this.matchRegex(e,n);default:return!0}}parseRegex(e){let t=e.match(/^\/(.*)\/([gimy]*)$/);if(t)try{return new RegExp(t[1],t[2])}catch{return null}return null}matchRegex(e,t){return(this.parseRegex(t)||new RegExp(t,"i")).test(e)}extractTags(e){let t,n=/#([a-zA-Z0-9_\-/]+)/g,r=new Set;for(;null!==(t=n.exec(e.originalMarkdown));)r.add(t[1].toLowerCase());for(;null!==(t=n.exec(e.title));)r.add(t[1].toLowerCase());return Array.from(r)}matchTags(e,t,n){let r=this.extractTags(e),a=n.replace(/^#/,"").toLowerCase();switch(t){case"includes":case"is":return r.includes(a);case"does not include":case"is not":return!r.includes(a);case"regex matches":return r.some(e=>this.matchRegex(e,n));case"regex does not match":return!r.some(e=>this.matchRegex(e,n));default:return!0}}getTaskPriority(e){let t=e.originalMarkdown;return t.includes("🔺")?"highest":t.includes("⏫")?"high":t.includes("🔼")?"medium":t.includes("🔽")?"low":t.includes("⏬")?"lowest":"none"}matchPriority(e,t,n){let r=this.getTaskPriority(e),a=n.toLowerCase();switch(t){case"is":return r===a;case"is not":return r!==a;default:return!0}}}}),MTe={};function hie(e,t,n,r=!0,a=bTe(),i="standard"){let o=e.replace(/\s*\(\d{1,2}:\d{2}(?:\s*[AaPp][Mm])?(?:-\d{1,2}:\d{2}(?:\s*[AaPp][Mm])?)?\)/g,"").replace(/^(\s*-\s\[[ xX]\]\s+)\d{1,2}:\d{2}(?:\s*-\s*\d{1,2}:\d{2})?\s+/,"$1");if(t){let e="dayPlanner"===i,s=t=>fNt(t,!!e||r),l=s(t),c=n&&n!==t?s(n):null;if(e){let e=c?`${l} - ${c}`:l,t=o.match(/^(\s*-\s\[[ xX]\]\s+)/);return o=t?`${t[1]}${e} ${o.slice(t[1].length)}`:`${e} ${o}`,o.trimEnd()}let u=c?`(${l}-${c})`:`(${l})`,d=o.indexOf(a);if(-1!==d){let e=o.slice(0,d).trimEnd(),t=o.slice(d);o=`${e} ${u} ${t}`}else{let e=/(\s*\^[a-zA-Z0-9-]+)$/,t=o.match(e);o=t?`${o.replace(e,"").trimEnd()} ${u}${t[1]}`:`${o.trimEnd()} ${u}`}}return o}function dNt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function fNt(e,t){if(t){let t=Fn.fromFormat(e,"HH:mm");return t.isValid?t.toFormat("H:mm"):e}let n=Fn.fromFormat(e,"HH:mm").isValid?Fn.fromFormat(e,"HH:mm"):Fn.fromFormat(e,"H:mm");return n.isValid?n.toFormat("h:mm a").toUpperCase():e}function hNt(e){if(null==e||"object"!=typeof e)return e;if(e instanceof Date)return e.toISOString();let t=e,n={type:t.constructor?.name,keys:Object.keys(e)};if("function"==typeof t.toDate)try{n.toDate=t.toDate().toISOString()}catch(e){n.toDateError=e instanceof Error?e.message:String(e)}if("function"==typeof t.toString)try{n.stringValue=t.toString()}catch(e){n.toStringError=e instanceof Error?e.message:String(e)}return n}Zs(MTe,{TasksPluginProvider:()=>pie,extractTimeFromTitle:()=>die,updateTimeInLine:()=>hie});var rU,bTe,oNt,sNt,lNt,cNt,uNt,pie,mie,xTe=kr(()=>{Fc(),Wo(),rU=require("obsidian"),cF(),mTe(),h1(),Lu(),Zo(),fie(),yTe(),fie(),bTe=()=>"⏳",oNt=()=>"🛫",sNt=()=>"📅",lNt=5e3,cNt=1e4,uNt=30,pie=class{constructor(e,t,n){if(this.allTasks=[],this.isSubscribed=!1,this.isTasksCacheWarm=!1,this.tasksPromise=null,this.tasksPromiseResolve=null,this.tasksCacheTimeoutId=null,this.isProcessingUpdate=!1,this.type="tasks",this.displayName="Obsidian Tasks",this.isRemote=!1,this.loadPriority=130,!n)throw new Error("TasksPluginProvider requires an Obsidian app interface.");this.app=n,this.plugin=t,this.source=e}static{this.type="tasks"}static{this.displayName="Obsidian Tasks"}static getConfigurationComponent(){return uie}setDoneState(e,t){let n=/\s*✅\s*\d{4}-\d{2}-\d{2}/,r=/(\s*\^[a-zA-Z0-9-]+)$/,a=e;if(t){if(a=a.replace(/^- \[ \]/,"- [x]"),!n.test(a)){let e=` ✅ ${Fn.now().toFormat("yyyy-MM-dd")}`,t=a.match(r);a=t?`${a.replace(r,"").trim()}${e}${t[1]}`:`${a.trim()}${e}`}}else{a=a.replace(/^- \[x\]/,"- [ ]"),a=a.replace(n,"").trim();let t=e.match(r);t&&!a.endsWith(t[1])&&(a+=t[1])}return a}async toggleComplete(e,t){try{let n=Qe.getCache()?.getEventById(e);if(!n||!n.uid||"single"!==n.type)throw new Error(`Event with session ID ${e} not found, has no UID, or is not a single event.`);let r=this.allTasks.find(e=>e.id===n.uid);if(!r)throw new Error(`Task with persistent ID ${n.uid} not found in provider cache.`);let a=this.setDoneState(r.originalMarkdown,t);if(a===r.originalMarkdown)return!0;await this.replaceTaskInFile(r.filePath,r.lineNumber,[a]);let i=!!t&&Fn.now().toISO(),o={...n,completed:i};return r.originalMarkdown=a,r.isDone=t,await Qe.getProviderRegistry().processProviderUpdates(this.source.id,{additions:[],updates:[{persistentId:n.uid,event:o,location:{file:{path:r.filePath},lineNumber:r.lineNumber}}],deletions:[]}),!0}catch(e){return e instanceof Error&&(console.error("Error toggling task completion:",e),Na(e.message)),!1}}debugTasksCachePayload(e,t){let n=Array.isArray(t.tasks)?t.tasks:[],r=Array.from(n.reduce((e,t)=>(Object.keys(t).forEach(t=>e.add(t)),e),new Set)).sort();console.debug("[Full Calendar][Tasks] cache payload received",{origin:e,sourceId:this.source.id,state:t.state,taskCount:n.length,taskKeyUnion:r,sampleTasks:n.slice(0,5).map((e,t)=>{let n=e;return{index:t,keys:Object.keys(n).sort(),values:Object.fromEntries(Object.entries(n).map(([e,t])=>[e,hNt(t)]))}}),rawPayload:t})}isWarmTasksCacheData(e){return!!e&&("string"==typeof e.state&&"Warm"===e.state||"object"==typeof e.state&&"Warm"===e.state?.name)&&Array.isArray(e.tasks)}clearTasksCacheTimeout(){this.tasksCacheTimeoutId&&(window.clearTimeout(this.tasksCacheTimeoutId),this.tasksCacheTimeoutId=null)}resolveTasksCacheWarm(e){if(!this.isWarmTasksCacheData(e))return!1;this.clearTasksCacheTimeout(),this.allTasks=this.parseTasksForCalendar(e.tasks),this.isTasksCacheWarm=!0;let t=this.tasksPromiseResolve;return this.tasksPromise=null,this.tasksPromiseResolve=null,t?.(),!0}_ensureTasksCacheIsWarm(){if(this.isTasksCacheWarm)return Promise.resolve();if(this.tasksPromise)return this.tasksPromise;let e=!1;return this.tasksPromise=new Promise((t,n)=>{this.tasksPromiseResolve=t;let r=this.plugin.app.workspace;this.tasksCacheTimeoutId=window.setTimeout(()=>{this.isTasksCacheWarm||(e=!0,console.error("Full Calendar: Timed out waiting for Tasks plugin's cache. The Tasks plugin may not be enabled or may have failed to load."),this.clearTasksCacheTimeout(),this.tasksPromise=null,this.tasksPromiseResolve=null,n(new IT("Timed out waiting for Tasks plugin's cache.")))},lNt),r.trigger("obsidian-tasks-plugin:request-cache-update",t=>{this.resolveTasksCacheWarm(t)&&e&&Qe.getProviderRegistry().reloadProviderNow(this.source.id)})}),this.tasksPromise}getLoadRetryPolicy(){return{retryDelayMs:cNt}}getDefaultEndTime(e){let t=["H:mm","HH:mm","h:mm a"];for(let n of t){let t=Fn.fromFormat(e,n);if(t.isValid)return t.plus({minutes:uNt}).toFormat("HH:mm")}return e}_taskToOFCEvent(e){let t=this.getTaskDateValue(e,Qe.getSettings().tasksIntegration.calendarDisplayDateTarget);return t?[e.startTime?{type:"single",title:e.title,allDay:!1,date:Fn.fromJSDate(t).toFormat("yyyy-MM-dd"),endDate:null,startTime:e.startTime,endTime:e.endTime??this.getDefaultEndTime(e.startTime),completed:!!e.isDone&&Fn.now().toISO(),uid:e.id}:{type:"single",title:e.title,allDay:!0,date:Fn.fromJSDate(t).toFormat("yyyy-MM-dd"),endDate:null,completed:!!e.isDone&&Fn.now().toISO(),uid:e.id},{file:{path:e.filePath},lineNumber:e.lineNumber}]:null}initialize(){if(this.isSubscribed)return;let e=async e=>{if(!this.isProcessingUpdate&&e&&("string"==typeof e.state&&"Warm"===e.state||"object"==typeof e.state&&"Warm"===e.state?.name)&&e.tasks){if(!this.isTasksCacheWarm)return this.resolveTasksCacheWarm(e),void Qe.getProviderRegistry().reloadProviderNow(this.source.id);if(Qe.getCache()){this.isProcessingUpdate=!0;try{let t=new Map(this.allTasks.map(e=>[e.id,e])),n=this.parseTasksForCalendar(e.tasks),r=new Map(n.map(e=>[e.id,e])),a={additions:[],updates:[],deletions:[]};for(let[e,n]of t.entries())r.has(e)||this.getTaskDateValue(n,Qe.getSettings().tasksIntegration.calendarDisplayDateTarget)&&a.deletions.push(e);for(let[e,n]of r.entries()){let r=t.get(e),i=this._taskToOFCEvent(n),o=!!r&&!!this.getTaskDateValue(r,Qe.getSettings().tasksIntegration.calendarDisplayDateTarget),s=null!==i;if(!r&&s){let[e,t]=i;a.additions.push({event:e,location:t})}else if(r&&r.originalMarkdown!==n.originalMarkdown)if(o&&s){let[t,n]=i;a.updates.push({persistentId:e,event:t,location:n})}else if(!o&&s){let[e,t]=i;a.additions.push({event:e,location:t})}else o&&!s&&a.deletions.push(e)}this.allTasks=n,(a.additions.length>0||a.updates.length>0||a.deletions.length>0)&&await Qe.getProviderRegistry().processProviderUpdates(this.source.id,a),Qe.getProviderRegistry().refreshBacklogViews()}finally{this.isProcessingUpdate=!1}}}},t=this.plugin.app.workspace;this.plugin.registerEvent(t.on("obsidian-tasks-plugin:cache-update",t=>{e(t)})),this.isSubscribed=!0}parseTasksForCalendar(e){return gTe(e)}async getEvents(e){return await this._ensureTasksCacheIsWarm(),this.allTasks.map(e=>this._taskToOFCEvent(e)).filter(e=>null!==e)}async filterTasksByGlobalQuery(e){let t=this.plugin.app.plugins?.plugins?.["obsidian-tasks-plugin"],n=t?.settings?.globalQuery?null:await(t?.loadData?.()),r=t?.settings?.globalQuery??n?.globalQuery;return r?new fq(r).filter(e):e}async getUndatedTasks(){await this._ensureTasksCacheIsWarm();let e=this.allTasks.filter(e=>!this.hasBacklogTargetDate(e)&&!e.isDone),t=Qe.getSettings(),n=t.tasksIntegration.backlogQuery?.trim();return n&&(e=new fq(n).filter(e)),t.tasksIntegration.includeGlobalQueryInBacklog&&(e=await this.filterTasksByGlobalQuery(e)),e.map(e=>({title:e.title,isDone:e.isDone,location:{path:e.filePath,lineNumber:e.lineNumber-1}}))}getTaskBacklogInfo(){return{id:this.source.id,name:this.source.name||"Tasks",title:"Tasks backlog"}}async getTaskBacklogItems(){return(await this.getUndatedTasks()).map(e=>({id:`${e.location.path}::${e.location.lineNumber}`,title:e.title,completed:e.isDone,subtitle:`${e.location.path}:${e.location.lineNumber}`}))}async setTaskBacklogItemComplete(e,t){try{let n=this.allTasks.find(t=>t.id===e);if(!n)throw new Error(`Task with persistent ID ${e} not found in provider cache.`);let r=this.setDoneState(n.originalMarkdown,t);return r===n.originalMarkdown||(await this.replaceTaskInFile(n.filePath,n.lineNumber,[r]),n.originalMarkdown=r,n.isDone=t,Qe.getProviderRegistry().refreshBacklogViews()),!0}catch(e){return e instanceof Error&&(console.error("Error toggling backlog task completion:",e),Na(e.message)),!1}}async openTaskBacklogItem(e){let[t,n]=e.split("::"),r=Number.parseInt(n,10);if(!t||!Number.isFinite(r))throw new Error('Invalid task handle format. Expected "filePath::lineNumber".');let a=this.plugin.app.vault.getAbstractFileByPath(t);if(!(a instanceof rU.TFile))throw new Error(`Task file not found: ${t}`);let i=this.plugin.app.workspace.getLeaf(!0);await i.openFile(a),i.view instanceof rU.MarkdownView&&i.view.editor.setCursor({line:r,ch:0})}async deleteTaskBacklogItem(e){await this.deleteEvent({persistentId:e}),this.allTasks=this.allTasks.filter(t=>t.id!==e),Qe.getProviderRegistry().refreshBacklogViews()}getEventsInFile(e){let t=[],n=this.allTasks.filter(t=>t.filePath===e.path);for(let e of n){let n=this._taskToOFCEvent(e);n&&t.push(n)}return Promise.resolve(t)}async replaceTaskInFile(e,t,n){let r=this.app.getFileByPath(e);if(!r)throw new Error(`File not found: ${e}`);await this.app.rewrite(r,e=>{let r=e.split("\n");return r.splice(t-1,1,...n),r.join("\n")})}getDateTargetEmoji(e){switch(e){case"startDate":return oNt();case"dueDate":return sNt();default:return bTe()}}setTaskDate(e,t,n){switch(t){case"startDate":e.startDate=n;break;case"dueDate":e.dueDate=n;break;case"scheduledDate":e.scheduledDate=n}}getTaskDateValue(e,t){switch(t){case"startDate":return e.startDate;case"dueDate":return e.dueDate;default:return e.scheduledDate}}hasBacklogTargetDate(e){return!!this.getTaskDateValue(e,Qe.getSettings().tasksIntegration.backlogDateTarget)}getTaskPlanningDateTargets(){let{backlogDateTarget:e,calendarDisplayDateTarget:t}=Qe.getSettings().tasksIntegration;return Array.from(new Set([t,e]))}updateTaskLine(e,t,n="scheduledDate"){let r=this.getDateTargetEmoji(n),a=`${r} ${Fn.fromJSDate(t).toFormat("yyyy-MM-dd")}`,i=new RegExp(`${r}\\s*\\d{4}-\\d{2}-\\d{2}`,"u");if(e.match(i))return e.replace(i,a);let o=/(\s*\^[a-zA-Z0-9-]+)$/,s=e.match(o);return s?`${e.replace(o,"").trim()} ${a}${s[1]}`:`${e.trim()} ${a}`}clearTaskDateLine(e,t="scheduledDate"){let n=this.getDateTargetEmoji(t),r=new RegExp(`\\s*${dNt(n)}\\s*\\d{4}-\\d{2}-\\d{2}`,"u");return hie(e,null,null,Qe.getSettings().timeFormat24h,n,Qe.getSettings().tasksIntegration.taskDisplayFormat??"dayPlanner").replace(r,"").trimEnd()}createEvent(e){return Na(Ce("notices.tasks.createViaPlugin")),Promise.reject(new Error("Full Calendar cannot create tasks directly. Please use the Tasks plugin modal or commands."))}async updateEvent(e,t,n){if("single"!==n.type||!n.date)throw new Error("Tasks provider can only update single, dated events.");let r=Fn.fromISO(n.date).toJSDate(),a=await this.canBeScheduledAt(n,r);if(!a.isValid)throw Na(a.reason||Ce("notices.tasks.defaultValidation")),new Error(a.reason||"This task cannot be scheduled on this date.");let i=e.persistentId,o=n.allDay?null:n.startTime,s=n.allDay?null:n.endTime??null,l=Qe.getSettings().timeFormat24h,c=Qe.getSettings().tasksIntegration.taskDisplayFormat;await this._surgicallyUpdateTask(i,r,o,s,l,c??"dayPlanner");let[u,d]=i.split("::");return{file:{path:u},lineNumber:parseInt(d,10)}}async deleteEvent(e){let[t,n]=e.persistentId.split("::");if(!t||!n)throw new Error('Invalid task handle format. Expected "filePath::lineNumber".');await this.replaceTaskInFile(t,parseInt(n,10)+1,[])}async _surgicallyUpdateTask(e,t,n,r,a=!0,i="dayPlanner"){let o=this.allTasks.find(t=>t.id===e);if(!o)throw new Error(`Cannot find original task with ID ${e} to update.`);let s=Qe.getSettings().tasksIntegration.calendarDisplayDateTarget,l=this.updateTaskLine(o.originalMarkdown,t,s);void 0!==n&&(l=hie(l,n,r??null,a,this.getDateTargetEmoji(s),i)),await this.replaceTaskInFile(o.filePath,o.lineNumber,[l]),o.originalMarkdown=l,this.setTaskDate(o,s,t),void 0!==n&&(o.startTime=n,o.endTime=n?r??null:null)}ownsTaskId(e){return 2===e.split("::").length&&!e.startsWith("caldav::")&&!e.startsWith("googletasks_")}async validateTaskSchedule(e,t){return this.allTasks.find(t=>t.id===e)?this.canBeScheduledAt({uid:e,title:"",type:"single",allDay:!0,date:"",endDate:null,completed:!1},t):{isValid:!0}}async scheduleTask(e,t,n=!0){let r=this.allTasks.find(t=>t.id===e);if(!r)throw new Error(`Cannot find original task to schedule at ${e}`);let a=this.getTaskPlanningDateTargets(),i=a.reduce((e,n)=>this.updateTaskLine(e,t,n),r.originalMarkdown);await this.replaceTaskInFile(r.filePath,r.lineNumber,[i]),r.originalMarkdown=i;for(let e of a)this.setTaskDate(r,e,t);let o=this.plugin.app.plugins?.plugins?.["obsidian-tasks-plugin"]?.apiV1;if(o&&Qe.getSettings().tasksIntegration.openEditModalAfterBacklogDrop){let e=await o.editTaskLineModal(i);void 0!==e&&e!==i&&(await this.replaceTaskInFile(r.filePath,r.lineNumber,[e]),r.originalMarkdown=e)}else!o&&Qe.getSettings().tasksIntegration.openEditModalAfterBacklogDrop&&Na(Ce("notices.tasks.scheduledNoModal"))}async unscheduleTask(e){let t=this.allTasks.find(t=>t.id===e);if(!t)throw new Error(`Cannot find original task to unschedule at ${e}`);let n=this.getTaskPlanningDateTargets(),r=n.reduce((e,t)=>this.clearTaskDateLine(e,t),t.originalMarkdown);await this.replaceTaskInFile(t.filePath,t.lineNumber,[r]),t.originalMarkdown=r;for(let e of n)this.setTaskDate(t,e,null);t.startTime=null,t.endTime=null}async editInProviderUI(e){let t=this.plugin.app.plugins?.plugins?.["obsidian-tasks-plugin"]?.apiV1;if(!t)return void Na(Ce("notices.tasks.apiUnavailable"));let n=Qe.getCache()?.getEventById(e);if(!n||!n.uid)throw new Error(`Could not find event or its persistent UID in the main cache for session ID ${e}.`);let r=n.uid,a=this.allTasks.find(e=>e.id===r);if(!a)throw new Error(`Task with persistent ID ${r} not found in the provider's cache.`);let i=a.originalMarkdown,o=await t.editTaskLineModal(i);o&&o!==i&&await this.replaceTaskInFile(a.filePath,a.lineNumber,[o])}canBeScheduledAt(e,t){if(!e.uid)return Promise.resolve({isValid:!0});let n=this.allTasks.find(t=>t.id===e.uid);if(!n)return console.warn(`[Tasks Provider] Could not find task with ID ${e.uid} for validation.`),Promise.resolve({isValid:!0});let r=Fn.fromJSDate(t).startOf("day");if(n.startDate){let e=Fn.fromJSDate(n.startDate).startOf("day");if(r<e)return Promise.resolve({isValid:!1,reason:`Cannot schedule before the start date (${e.toFormat("yyyy-MM-dd")}).`})}if(n.dueDate){let e=Fn.fromJSDate(n.dueDate).startOf("day");if(r>e)return Promise.resolve({isValid:!1,reason:`Cannot schedule after the due date (${e.toFormat("yyyy-MM-dd")}).`})}return Promise.resolve({isValid:!0})}getCapabilities(){return{canCreate:!1,canEdit:!0,canDelete:!0,hasCustomEditUI:!0,contextMenu:{allowGenericTaskActions:!1,providesNativeTaskSemantics:!0}}}getConfigurationComponent(){return uie}getEventHandle(e){return e.uid?{persistentId:e.uid}:null}computeSyncKey(e){return e.uid||JSON.stringify(e)}isFileRelevant(e){return"md"===e.extension}createInstanceOverride(e,t,n){return Promise.reject(new Error("Tasks provider does not support recurring event overrides."))}getSettingsRowComponent(){return({source:e})=>{let t=e.name??this.displayName;return sT.createElement("div",{className:"setting-item-control ofc-settings-row-tasks-provider"},sT.createElement("input",{disabled:!0,type:"text",value:t,className:"ofc-setting-input"}))}}}}),_Te=kr(()=>{h1(),Zo(),Z0(),mie=({config:e,onConfigChange:t,onSave:n,onClose:r})=>{let[a,i]=Li(e.name||Ce("settings.calendars.types.tasknotes")),[o,s]=Li(e.dispatchMode||"search"),[l,c]=Li(!1);return Rt("div",{className:"tasknotes-provider-config",children:[Rt("div",{className:"setting-item",children:Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("settings.calendars.tasknotes.zeroConfig.label")}),Rt("div",{className:"setting-item-description",children:Ce("settings.calendars.tasknotes.zeroConfig.description")})]})}),Rt("form",{onSubmit:t=>{t.preventDefault(),c(!0),n({...e,id:e.id||"",name:a,dispatchMode:o})},children:[Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("settings.calendars.tasknotes.calendarName.label")}),Rt("div",{className:"setting-item-description",children:Ce("settings.calendars.tasknotes.calendarName.description")})]}),Rt("div",{className:"setting-item-control",children:Rt("input",{type:"text",value:a,onChange:n=>{i(n.target.value),t({...e,name:n.target.value})},placeholder:Ce("settings.calendars.tasknotes.calendarName.placeholder")})})]}),Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("settings.calendars.tasknotes.dispatchMode.label")}),Rt("div",{className:"setting-item-description",children:Ce("settings.calendars.tasknotes.dispatchMode.description")})]}),Rt("div",{className:"setting-item-control",children:Rt("select",{value:o,onChange:n=>{let r=n.target.value;s(r),t({...e,name:a,dispatchMode:r})},children:[Rt("option",{value:"search",children:Ce("settings.calendars.tasknotes.dispatchMode.options.search")}),Rt("option",{value:"create",children:Ce("settings.calendars.tasknotes.dispatchMode.options.create")})]})})]}),Rt("div",{className:"setting-item",children:Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:Ce("settings.calendars.tasknotes.readOnly.label")}),Rt("div",{className:"setting-item-description",children:Ce("settings.calendars.tasknotes.readOnly.description")})]})}),Rt("div",{className:"setting-item",children:[Rt("button",{type:"submit",className:"mod-cta",disabled:l||!a.trim(),children:Ce(l?"settings.calendars.tasknotes.adding":"ui.buttons.addCalendar")}),Rt("button",{type:"button",onClick:r,disabled:l,className:"u-ml-10px",children:Ce("settings.calendars.tasknotes.cancel")})]})]})]})}}),zTe={};Zs(zTe,{TaskNotesProvider:()=>vie});var pNt,mNt,vie,gie,ATe=kr(()=>{Wo(),h1(),Lu(),cF(),_Te(),Zo(),wC(),pNt=80,mNt=["due-link","deadline-link"],vie=class{constructor(e,t,n){this.isSubscribed=!1,this.tasksById=new Map,this.subscriptionTimer=null,this.subscriptionAttempts=0,this.reloadTimer=null,this.useEmitterEvents=!1,this.lastTaskVersionByPath=new Map,this.pendingTaskUpdateTimers=new Map,this.pendingTaskUpdatePayloads=new Map,this.type="tasknotes",this.displayName="TaskNotes",this.isRemote=!1,this.loadPriority=135,this.plugin=t,this.source=e}static{this.type="tasknotes"}static{this.displayName="TaskNotes"}static getConfigurationComponent(){return mie}getTaskNotesPlugin(){let e=this.plugin.app.plugins?.plugins?.tasknotes;return e||null}normalizePersistentId(e){return e.replace(/\\/g,"/")}scheduleSubscriptionRetry(){this.subscriptionTimer||(this.subscriptionTimer=window.setTimeout(()=>{this.subscriptionTimer=null,this.subscriptionAttempts+=1,this.initialize()},5e3))}scheduleReload(e=500){this.reloadTimer&&window.clearTimeout(this.reloadTimer);try{Qe.getProviderRegistry()}catch{return}this.reloadTimer=window.setTimeout(()=>{this.reloadTimer=null;try{Qe.getProviderRegistry().reloadProviderNow(this.source.id)}catch{}},e)}getTaskVersion(e){let t=e?.dateModified;if(!t)return null;let n=Fn.fromISO(t);return n.isValid?n.toMillis():null}enqueueTaskUpdated(e,t){let n=this.normalizePersistentId(e);this.pendingTaskUpdatePayloads.set(n,t);let r=this.pendingTaskUpdateTimers.get(n);r&&window.clearTimeout(r);let a=window.setTimeout(()=>{this.pendingTaskUpdateTimers.delete(n);let e=this.pendingTaskUpdatePayloads.get(n);this.pendingTaskUpdatePayloads.delete(n),this.handleTaskUpdated(n,e)},pNt);this.pendingTaskUpdateTimers.set(n,a)}getScheduledParts(e){if(!e)return{date:"",time:null};let t,n=e=>null==e?null:"string"==typeof e?e:"number"==typeof e||"boolean"==typeof e||"bigint"==typeof e?String(e):e instanceof Date&&!Number.isNaN(e.valueOf())?e.toISOString():null,r=e=>null==e?"":n(e)??"",a=e=>null==e||""===e?null:n(e);if("object"==typeof e){if(Array.isArray(e)){let t=e,n=t.length>0?t[0]:void 0,i=t.length>1?t[1]:void 0;return{date:r(n),time:a(i)}}let t=e;return{date:r(t.date),time:a(t.time)}}if("string"==typeof e)t=e;else{if("number"!=typeof e&&"boolean"!=typeof e&&"bigint"!=typeof e)return{date:"",time:null};t=String(e)}let i=t,o=null;if(t.includes("T"))[i,o]=t.split("T");else if(t.includes(" ")){let e=t.split(" ");i=e[0],o=e[1]}let s=o?`${i}T${o}`:i,l=Fn.fromISO(s);return l.isValid?{date:l.toFormat("yyyy-MM-dd"),time:o?l.toFormat("HH:mm"):null}:{date:i,time:o?o.slice(0,5):null}}normalizeTime(e){if(!e)return null;let t=["HH:mm","H:mm","h:mm a"];for(let n of t){let t=Fn.fromFormat(e,n);if(t.isValid)return t.toFormat("HH:mm")}return null}computeEndTime(e,t,n){let r=Fn.fromISO(`${e}T${t}`);return r.isValid?r.plus({minutes:n}).toFormat("HH:mm"):null}computeMinutes(e,t){let n=Fn.fromFormat(e,"HH:mm"),r=Fn.fromFormat(t,"HH:mm");if(!n.isValid||!r.isValid)return null;let a=r.diff(n,"minutes").minutes;return a<=0&&(a+=1440),Math.round(a)}taskNotesDailyNoteLink(e){return e?`"[[${e}]]"`:null}scheduledDateFromValue(e){return e.split("T")[0]||e}frontmatterLineContainsDate(e,t,n){let r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`^${r}:.*${n}`,"m").test(e)}async getTaskFileScheduleCompanionUpdates(e,t,n){let r=this.plugin.app.vault.getFileByPath(e.path);if(!r)return{modifications:{},shouldUpdateDue:!1};let a=await this.plugin.app.vault.read(r),i={"scheduled-link":this.taskNotesDailyNoteLink(t)},o=!1;if(n){for(let e of mNt)this.frontmatterLineContainsDate(a,e,n)&&(i[e]=this.taskNotesDailyNoteLink(t));o=this.frontmatterLineContainsDate(a,"due",n),this.frontmatterLineContainsDate(a,"deadline",n)&&(i.deadline=t)}return{modifications:i,shouldUpdateDue:o}}async updateTaskFileScheduleCompanionProperties(e,t){if(0===Object.keys(t).length)return;let n=this.plugin.app.vault.getFileByPath(e.path);if(!n)return;let r=await this.plugin.app.vault.read(n),a=OM(r,t);a!==r&&await this.plugin.app.vault.modify(n,a)}isTaskNotesSourceId(){return/^tasknotes_\d+$/i.test(this.source.id)}toTaskNotesNLPQuery(e){if("single"!==e.type||!e.date)throw new Error(Ce("notices.tasknotes.handoffSingleOnly"));let t=e.title?.trim();if(!t)throw new Error(Ce("notices.tasknotes.handoffTitleRequired"));if(e.allDay)return`${t} scheduled ${e.date}`;let n=this.normalizeTime(e.startTime??null);if(!n)throw new Error(Ce("notices.tasknotes.handoffStartTimeRequired"));let r=this.normalizeTime(e.endTime??null),a="";if(r){let e=this.computeMinutes(n,r);e&&e>0&&(a=` ${e}m`)}return`${t} scheduled ${e.date} ${n}${a}`}prefillTaskSelectorInput(e,t=0){let n=window.document.querySelector(".task-selector-with-create-modal")?.querySelector("input.prompt-input");if(n)return n.value=e,n.dispatchEvent(new Event("input",{bubbles:!0})),n.focus(),void n.setSelectionRange(e.length,e.length);t<20&&window.setTimeout(()=>this.prefillTaskSelectorInput(e,t+1),50)}prefillTaskCreationInput(e,t=0){let n=this.plugin.app.workspace.activeEditor;if(!window.document.querySelector(".mod-tasknotes .nl-markdown-editor"))return void(t<20&&window.setTimeout(()=>this.prefillTaskCreationInput(e,t+1),50));let r=n?.editMode;if(r?.setValue)return r.setValue(e),void r.editor?.cm?.focus?.();let a=window.document.querySelector(".mod-tasknotes .nl-input");if(a)return a.value=e,a.dispatchEvent(new Event("input",{bubbles:!0})),a.focus(),void a.setSelectionRange(e.length,e.length);t<20&&window.setTimeout(()=>this.prefillTaskCreationInput(e,t+1),50)}getDispatchMode(){return this.source.dispatchMode||"search"}parseTaskRecurrence(e){if(!e.recurrence||"string"!=typeof e.recurrence)return null;let t=e.recurrence.replace(/\r\n/g,"\n").trim();if(!t)return null;let n=t.split("\n").map(e=>e.trim()).filter(Boolean),r=n.find(e=>e.startsWith("DTSTART")),a=n.find(e=>e.startsWith("RRULE:"));if(a)return{rrule:a,dtstart:r};if(t.startsWith("DTSTART:")&&t.includes(";FREQ=")){let e=t.indexOf(";");if(e>0){let n=t.slice(0,e),r=t.slice(e+1).trim();if(r.includes("FREQ="))return{rrule:r.startsWith("RRULE:")?r:`RRULE:${r}`,dtstart:n}}}let i=t.startsWith("RRULE:")?t:`RRULE:${t}`;return i.includes("FREQ=")?{rrule:i,dtstart:r}:null}extractDateAndTimeFromDtstart(e){if(!e)return null;let t=e.split(":")[1];if(!t)return null;let n=t.replace(/Z$/,"");if(!/^\d{8}(T\d{6})?$/.test(n))return null;let r=n.slice(0,8),a=`${r.slice(0,4)}-${r.slice(4,6)}-${r.slice(6,8)}`;if(8===n.length)return{date:a,time:null};let i=n.slice(9,15);return{date:a,time:`${i.slice(0,2)}:${i.slice(2,4)}`}}getTaskRecurringParentId(e){if("string"==typeof e.recurringEventId&&e.recurringEventId.trim().length>0)return e.recurringEventId;let t=e.customProperties?.recurringEventId;return"string"==typeof t&&t.trim().length>0?t:void 0}getRecurringStateForDate(e,t){return{completed:!!Array.isArray(e.complete_instances)&&e.complete_instances.includes(t),skipped:!!Array.isArray(e.skipped_instances)&&e.skipped_instances.includes(t)}}async getTaskForEvent(e){if(!e.uid)return null;let t=this.normalizePersistentId(e.uid),n=this.tasksById.get(t);if(n)return n;let r=this.getTaskNotesPlugin();if(!r)return null;let a=await r.cacheManager.getTaskInfo(t);return!a&&t.includes("/")&&(a=await r.cacheManager.getTaskInfo(t.replace(/\//g,"\\"))),a&&this.tasksById.set(this.normalizePersistentId(a.path),a),a}buildRecurringEvent(e){let t=this.parseTaskRecurrence(e);if(!t)return null;let n=this.getScheduledParts(e.scheduled),r=this.extractDateAndTimeFromDtstart(t.dtstart),a=n.date||r?.date||"";if(!a)return null;let i=this.normalizeTime(n.time??r?.time??null),o=Array.from(new Set((e.skipped_instances??[]).filter(e=>/^\d{4}-\d{2}-\d{2}$/.test(e))));if(!i)return{type:"rrule",title:e.title,allDay:!0,startDate:a,endDate:null,rrule:t.rrule,skipDates:o,isTask:!0,uid:this.normalizePersistentId(e.path),recurringEventId:this.getTaskRecurringParentId(e)};let s="number"==typeof e.timeEstimate&&e.timeEstimate>0?this.computeEndTime(a,i,e.timeEstimate)??i:i;return{type:"rrule",title:e.title,allDay:!1,startDate:a,endDate:null,startTime:i,endTime:s,rrule:t.rrule,skipDates:o,isTask:!0,uid:this.normalizePersistentId(e.path),recurringEventId:this.getTaskRecurringParentId(e)}}taskToEvent(e){if(e.recurrence){let t=this.buildRecurringEvent(e);if(t)return[t,{file:{path:e.path},lineNumber:void 0}]}if(!e.scheduled)return null;let{date:t,time:n}=this.getScheduledParts(e.scheduled),r=!!n,a=this.getTaskNotesPlugin()?.statusManager?.isCompletedStatus(e.status)??!1,i=e.completedDate||Fn.now().toFormat("yyyy-MM-dd");return[r?(()=>{let r=n??"00:00",o="number"==typeof e.timeEstimate&&e.timeEstimate>0?this.computeEndTime(t,r,e.timeEstimate)??r:r;return{type:"single",title:e.title,allDay:!1,date:t,endDate:null,startTime:r,endTime:o,completed:!!a&&i,uid:this.normalizePersistentId(e.path),recurringEventId:this.getTaskRecurringParentId(e)}})():{type:"single",title:e.title,allDay:!0,date:t,endDate:null,completed:!!a&&i,uid:this.normalizePersistentId(e.path),recurringEventId:this.getTaskRecurringParentId(e)},{file:{path:e.path},lineNumber:void 0}]}async dispatchUpdates(e){try{if(!Qe.getCache())return;await Qe.getProviderRegistry().processProviderUpdates(this.source.id,e)}catch{}}async handleTaskUpdated(e,t){try{let n=this.normalizePersistentId(e),r=this.getTaskNotesPlugin();if(!r)return;let a=t??null;(!a||void 0===a.scheduled)&&(a=await r.cacheManager.getTaskInfo(e),!a&&n!==e&&(a=await r.cacheManager.getTaskInfo(n)));let i,o=await r.cacheManager.getTaskInfo(e);o&&(a=o);try{i=Qe.getProviderRegistry()}catch{return}let s=`${this.source.id}::${n}`,l=await i.getSessionId(s);if(!a)return void(l&&this.scheduleReload());let c=this.getTaskVersion(a),u=this.lastTaskVersionByPath.get(n);if(null!==c&&void 0!==u&&c<u)return;this.tasksById.set(n,a);let d=this.taskToEvent(a);if(!d){let t=await r.cacheManager.getTaskInfo(e);t&&(a=t,this.tasksById.set(n,t),d=this.taskToEvent(t))}if(null!==c&&this.lastTaskVersionByPath.set(n,c),!d)return void(l&&await this.dispatchUpdates({additions:[],updates:[],deletions:[n]}));l?await this.dispatchUpdates({additions:[],updates:[{persistentId:n,event:d[0],location:d[1]}],deletions:[]}):this.scheduleReload()}catch(e){console.error("[TaskNotesProvider] Error in handleTaskUpdated:",e)}}async handleTaskDeleted(e){let t,n=this.normalizePersistentId(e);try{if(!Qe.getCache())return}catch{return}try{t=Qe.getProviderRegistry()}catch{return}let r=`${this.source.id}::${n}`;await t.getSessionId(r)&&(this.tasksById.delete(n),await this.dispatchUpdates({additions:[],updates:[],deletions:[n]}))}async handleTaskRenamed(e,t){await this.handleTaskDeleted(e),await this.handleTaskUpdated(t)}initialize(){if(this.isSubscribed)return;let e=this.getTaskNotesPlugin();e?(this.isSubscribed=!0,this.subscriptionAttempts=0,this.useEmitterEvents=!!e.emitter,this.useEmitterEvents?(this.taskUpdatedHandler=e=>{let t=e;t?.path&&this.enqueueTaskUpdated(t.path,t.updatedTask)},e.emitter?.on("task-updated",this.taskUpdatedHandler),this.taskDeletedHandler=e=>{let t=e;t?.path&&this.handleTaskDeleted(t.path).catch(e=>{console.error("[TaskNotesProvider] task-deleted handler failed:",e)})},e.emitter?.on("task-deleted",this.taskDeletedHandler)):(this.fileUpdatedHandler=e=>{let t=e;t?.path&&this.enqueueTaskUpdated(t.path)},e.cacheManager.on("file-updated",this.fileUpdatedHandler)),this.fileDeletedHandler=e=>{let t=e;t?.path&&this.handleTaskDeleted(t.path).catch(e=>{console.error("[TaskNotesProvider] file-deleted handler failed:",e)})},e.cacheManager.on("file-deleted",this.fileDeletedHandler),this.fileRenamedHandler=e=>{let t=e;t?.oldPath&&t?.newPath&&this.handleTaskRenamed(t.oldPath,t.newPath).catch(e=>{console.error("[TaskNotesProvider] file-renamed handler failed:",e)})},e.cacheManager.on("file-renamed",this.fileRenamedHandler),this.dataChangedHandler=()=>{this.useEmitterEvents||this.scheduleReload()},e.cacheManager.on("data-changed",this.dataChangedHandler),this.scheduleReload(0)):this.scheduleSubscriptionRetry()}teardown(){let e=this.getTaskNotesPlugin();this.subscriptionTimer&&(window.clearTimeout(this.subscriptionTimer),this.subscriptionTimer=null),this.reloadTimer&&(window.clearTimeout(this.reloadTimer),this.reloadTimer=null);for(let e of this.pendingTaskUpdateTimers.values())window.clearTimeout(e);this.pendingTaskUpdateTimers.clear(),this.pendingTaskUpdatePayloads.clear(),e?.emitter&&(this.taskUpdatedHandler&&e.emitter.off("task-updated",this.taskUpdatedHandler),this.taskDeletedHandler&&e.emitter.off("task-deleted",this.taskDeletedHandler)),e?.cacheManager.off&&(this.fileUpdatedHandler&&e.cacheManager.off("file-updated",this.fileUpdatedHandler),this.fileDeletedHandler&&e.cacheManager.off("file-deleted",this.fileDeletedHandler),this.fileRenamedHandler&&e.cacheManager.off("file-renamed",this.fileRenamedHandler),this.dataChangedHandler&&e.cacheManager.off("data-changed",this.dataChangedHandler)),this.taskUpdatedHandler=void 0,this.taskDeletedHandler=void 0,this.fileUpdatedHandler=void 0,this.fileDeletedHandler=void 0,this.fileRenamedHandler=void 0,this.dataChangedHandler=void 0,this.isSubscribed=!1,this.useEmitterEvents=!1}getLoadRetryPolicy(){return{retryDelayMs:1e4}}async getEvents(){let e=this.getTaskNotesPlugin();if(!e)throw new IT("TaskNotes plugin is not available.");this.isSubscribed||this.initialize();let t=await e.cacheManager.getAllTasks();return this.tasksById=new Map(t.map(e=>[this.normalizePersistentId(e.path),e])),this.lastTaskVersionByPath=new Map(t.map(e=>{let t=this.normalizePersistentId(e.path),n=this.getTaskVersion(e);return null===n?null:[t,n]}).filter(e=>null!==e)),t.map(e=>this.taskToEvent(e)).filter(e=>!!e)}getCapabilities(){return{canCreate:!0,canEdit:!0,canDelete:!1,hasCustomEditUI:!0,contextMenu:{allowGenericTaskActions:!1,providesNativeTaskSemantics:!0}}}getConfigurationComponent(){return mie}getEventHandle(e){if(e.uid){let t=this.normalizePersistentId(e.uid);return{persistentId:t,location:{path:t}}}return null}computeSyncKey(e){return e.uid?this.normalizePersistentId(e.uid):JSON.stringify(e)}async getRecurringInstanceState(e,t){if(!t)return null;if("single"===e.type&&e.recurringEventId)return{completed:void 0!==e.completed&&null!==e.completed&&!!e.completed,skipped:!1};if("rrule"!==e.type&&"recurring"!==e.type)return null;let n=await this.getTaskForEvent(e);return n&&n.recurrence?this.getRecurringStateForDate(n,t):null}async setRecurringInstanceState(e,t,n){if("rrule"!==e.type&&"recurring"!==e.type||!e.uid)return!1;let r=this.getTaskNotesPlugin();if(!r)return!1;let a=await this.getTaskForEvent(e);if(!a||!a.recurrence)return!1;let i=Fn.fromISO(t).toJSDate(),o=this.getRecurringStateForDate(a,t);if(n.completed!==o.completed){if(!r.taskService.toggleRecurringTaskComplete)return!1;a=await r.taskService.toggleRecurringTaskComplete(a,i)}let s=this.getRecurringStateForDate(a,t);if(n.skipped!==s.skipped){if(!r.taskService.toggleRecurringTaskSkipped)return!1;a=await r.taskService.toggleRecurringTaskSkipped(a,i)}return this.tasksById.set(this.normalizePersistentId(a.path),a),!0}getSettingsRowComponent(){return({source:e})=>{let t=e.name??this.displayName;return sT.createElement("div",{className:"setting-item-control ofc-settings-row-tasknotes-provider"},sT.createElement("input",{className:"ofc-settings-row-text",disabled:!0,value:t}))}}async createEvent(e){if(!this.isTaskNotesSourceId())throw new Error(Ce("notices.tasknotes.invalidSourceId",{sourceId:this.source.id}));let t=this.getTaskNotesPlugin(),n=this.toTaskNotesNLPQuery(e);if("create"===this.getDispatchMode()){if(!t?.openTaskCreationModal)throw new Error(Ce("notices.tasknotes.createModalUnavailable"));t.openTaskCreationModal(),this.prefillTaskCreationInput(n)}else{if(!t?.openTaskSelectorWithCreate)throw new Error(Ce("notices.tasknotes.selectorUnavailable"));let e=t.openTaskSelectorWithCreate();this.prefillTaskSelectorInput(n),await e}throw new NT("TaskNotes delegated creation to provider UI.")}async updateEvent(e,t,n){let r=this.getTaskNotesPlugin();if(!r)throw new Error("TaskNotes plugin is not available.");let a=await r.cacheManager.getTaskInfo(e.persistentId);if(!a)throw new Error(`TaskNotes task not found for ${e.persistentId}.`);if("rrule"===n.type||"recurring"===n.type){if("rrule"!==t.type&&"recurring"!==t.type)throw new Error("TaskNotes provider cannot convert single events into recurring events.");if(!r.taskService.toggleRecurringTaskSkipped)throw new Error("TaskNotes recurring skip API is not available.");let e=new Set((t.skipDates??[]).filter(Boolean)),i=new Set((n.skipDates??[]).filter(Boolean));for(let t of i)e.has(t)||(a=await r.taskService.toggleRecurringTaskSkipped(a,Fn.fromISO(t).toJSDate()));for(let t of e)i.has(t)||(a=await r.taskService.toggleRecurringTaskSkipped(a,Fn.fromISO(t).toJSDate()));return this.tasksById.set(a.path,a),{file:{path:a.path},lineNumber:void 0}}if("single"!==n.type||!n.date)throw new Error("TaskNotes provider can only update single, dated events.");let i=n.allDay?null:this.normalizeTime(n.startTime),o=n.allDay?null:this.normalizeTime(n.endTime??null),s=n.allDay||!i?n.date:`${n.date}T${i}`,l=null;!n.allDay&&i&&o&&(l=this.computeMinutes(i,o));let c="single"===t.type?t.date:void 0,u=this.scheduledDateFromValue(s),{modifications:d,shouldUpdateDue:p}=await this.getTaskFileScheduleCompanionUpdates(a,u,c),h=await r.taskService.updateProperty(a,"scheduled",s);p&&(h=await r.taskService.updateProperty(h,"due",u)),await this.updateTaskFileScheduleCompanionProperties(h,d);try{h=await r.taskService.updateProperty(h,"timeEstimate",l)}catch{}return this.tasksById.set(h.path,h),{file:{path:h.path},lineNumber:void 0}}deleteEvent(){return Promise.reject(new Error("TaskNotes provider does not support deleting tasks from Full Calendar."))}async createInstanceOverride(e,t,n){if("single"!==n.type||!n.date)throw new Error("TaskNotes provider can only create single overrides for recurring instances.");let r=this.getTaskNotesPlugin();if(!r?.taskService.createTask)throw new Error("TaskNotes createTask API is not available.");let a=this.getEventHandle(e)?.persistentId||e.uid;if(!a)throw new Error("TaskNotes provider could not resolve recurring master ID.");let i=n.allDay?null:this.normalizeTime(n.startTime??null),o=n.allDay?null:this.normalizeTime(n.endTime??null),s=n.allDay||!i?n.date:`${n.date}T${i}`,l=null;!n.allDay&&i&&o&&(l=this.computeMinutes(i,o));let c=(await r.taskService.createTask({title:n.title,scheduled:s,timeEstimate:l,customFrontmatter:{recurringEventId:a}},{applyDefaults:!1})).taskInfo;this.tasksById.set(c.path,c);let u=this.taskToEvent(c);if(!u)throw new Error("TaskNotes override task could not be mapped to a calendar event.");let[d,p]=u;return[{...d,recurringEventId:a},p]}async toggleComplete(e,t){try{let n=this.getTaskNotesPlugin();if(!n)return!1;let r=Qe.getCache()?.getEventById(e);if(!r?.uid)return!1;let a=await n.cacheManager.getTaskInfo(r.uid);if(!a||!n.taskService.toggleStatus)return!1;let i=await n.taskService.toggleStatus(a),o=this.normalizePersistentId(i.path||r.uid);this.tasksById.set(o,i);let s=n.statusManager?.isCompletedStatus(i.status)??!1,l=!!s&&(i.completedDate||Fn.now().toFormat("yyyy-MM-dd")),c="single"===r.type?{...r,completed:l}:r;return await this.dispatchUpdates({additions:[],updates:[{persistentId:o,event:c,location:{file:{path:o},lineNumber:void 0}}],deletions:[]}),s===t}catch(e){return console.error("TaskNotes toggleComplete failed",e),!1}}async editInProviderUI(e){let t=this.getTaskNotesPlugin();if(!t?.openTaskEditModal)return;let n=Qe.getCache()?.getEventById(e);if(!n?.uid)return;let r=await t.cacheManager.getTaskInfo(n.uid);r&&await t.openTaskEditModal(r)}}}),wTe=kr(()=>{h1(),Z0(),gie=({plugin:e,config:t,onConfigChange:n,onSave:r,onClose:a})=>{let[i,o]=Li(t.basePath||""),[s,l]=Li([]);return vu(()=>{if(!e)return;let t=e.app.vault.getFiles().filter(e=>"base"===e.extension);l(t.map(e=>e.path))},[e]),Rt("form",{onSubmit:e=>{if(e.preventDefault(),!i)return;let n=i.split("/").pop()?.replace(".base","")||"Base";r({type:"bases",basePath:i,name:t.name||n,color:t.color||"#3788d8"})},children:[Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:[Rt("div",{className:"setting-item-name",children:"Select Base"}),Rt("div",{className:"setting-item-description",children:"Choose a .base file to use as a calendar source."})]}),Rt("div",{className:"setting-item-control",children:Rt("select",{className:"dropdown",value:i,onChange:e=>{o(e.target.value),n({...t,basePath:e.target.value})},children:[Rt("option",{value:"",children:"Select a base..."}),s.map(e=>Rt("option",{value:e,children:e},e))]})})]}),Rt("div",{className:"setting-item",children:Rt("div",{className:"setting-item-control",children:Rt("button",{className:"mod-cta",type:"submit",disabled:!i,children:"Add Calendar"})})})]})}}),OTe={};Zs(OTe,{BasesProvider:()=>yie});var p8,yie,bie,TTe=kr(()=>{p8=require("obsidian"),Gb(),wTe(),Z0(),yie=class{constructor(e,t,n){if(this.type="bases",this.displayName="Obsidian Bases",this.isRemote=!1,this.loadPriority=10,!n)throw new Error("BasesProvider requires an Obsidian app interface.");this.config=e,this.plugin=t,this.app=n}static{this.type="bases"}static{this.displayName="Obsidian Bases"}static getConfigurationComponent(){return gie}getCapabilities(){return{canCreate:!1,canEdit:!1,canDelete:!1}}evaluateFilter(e,t){return"string"==typeof e?this.evaluateFilterString(e,t):e.or?e.or.some(e=>this.evaluateFilter(e,t)):e.and?e.and.every(e=>this.evaluateFilter(e,t)):!e.not||!e.not.some(e=>this.evaluateFilter(e,t))}evaluateFilterString(e,t){let n=this.plugin.app.metadataCache.getFileCache(t),r=(0,p8.getAllTags)(n||{})||[];if(e.includes("file.hasTag")){let t=e.match(/file\.hasTag\("([^"]+)"\)/);if(t){let e=t[1];return r.some(t=>t===e||t===`#${e}`)}}if(e.includes("file.inFolder")){let n=e.match(/file\.inFolder\("([^"]+)"\)/);if(n){let e=n[1];return t.path.startsWith(e)}}return!e.includes("file.ext")||!e.includes('"md"')||"md"===t.extension}async getEvents(e){let t=[],n=this.plugin.app;if(!n.internalPlugins?.getPluginById("bases")&&!n.plugins?.getPlugin("bases"))return console.warn("Bases plugin not found or disabled."),[];let r=this.plugin.app.vault.getAbstractFileByPath(this.config.basePath);if(!(r instanceof p8.TFile))return[];try{let e,n=await this.plugin.app.vault.read(r);try{e=(0,p8.parseYaml)(n)}catch(e){return console.warn("Failed to parse Base file as YAML",e),[]}let a=this.plugin.app.vault.getFiles().filter(t=>!e.filters||this.evaluateFilter(e.filters,t));for(let e of a){let n=this.getEventFromFile(e);n&&t.push(n)}}catch(e){console.error("Error processing Base file",e)}return t}getEventFromFile(e){let t=this.plugin.app.metadataCache.getFileCache(e)?.frontmatter;if(!t)return null;let n=t.date||t.start||t.startTime||t.due;if(!n)return null;let r="string"==typeof t.title?t.title:e.basename,a="string"==typeof t.category?t.category:"string"==typeof t.Category?t.Category:void 0,i="string"==typeof t["sub category"]?t["sub category"]:"string"==typeof t.SubCategory?t.SubCategory:"string"==typeof t.subCategory?t.subCategory:void 0,o=r;a&&i?o=`${a} - ${i} - ${r}`:a?o=`${a} - ${r}`:i&&(o=`${i} - ${r}`);let s="string"==typeof t.type?t.type:"single",l="boolean"!=typeof t.allDay||t.allDay,c=a2({...t,title:o,date:n,type:s,allDay:l,category:a,subCategory:i});return c?(c.uid=e.path,[c,{file:{path:e.path},lineNumber:void 0}]):null}getEventHandle(e){return e.uid?{persistentId:e.uid}:null}computeSyncKey(e){return e.uid||JSON.stringify(e)}createEvent(e){return Promise.reject(new Error("Not implemented"))}updateEvent(e,t,n){return Promise.reject(new Error("Not implemented"))}deleteEvent(e){return Promise.reject(new Error("Not implemented"))}createInstanceOverride(e,t,n){return Promise.reject(new Error("Not implemented"))}getConfigurationComponent(){return gie}getSettingsRowComponent(){return({source:e})=>Rt("div",{className:"setting-item-control",children:[Rt("span",{children:[e.name," (",e.type,")"]}),Rt("span",{className:"ofc-setting-desc",children:e.basePath})]})}}}),Mie=kr(()=>{bie=require("obsidian")}),STe=Ee((e,t)=>{var n,r;n=e,r=function(){var e,n;function r(){return e.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function l(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[],a=e.length;for(n=0;n<a;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Rt(e,t,n,r,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){var t=null,r=!1,a=e._d&&!isNaN(e._d.getTime());return a&&(t=f(e),r=n.call(t.parsedDateParts,function(e){return null!=e}),a=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?a:(e._isValid=a,e._isValid)}function g(e){var t=h(NaN);return null!=e?p(f(t),e):f(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var y=r.momentProperties=[],b=!1;function v(e,t){var n,r,a,i=y.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=f(t)),l(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)l(a=t[r=y[n]])||(e[r]=a);return e}function M(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,r.updateOffset(this),b=!1)}function x(e){return e instanceof M||null!=e&&null!=e._isAMomentObject}function z(e){!1===r.suppressDeprecationWarnings&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,t){var n=!0;return p(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var a,i,s,l=[],c=arguments.length;for(i=0;i<c;i++){if(a="","object"==typeof arguments[i]){for(s in a+="\n["+i+"] ",arguments[0])o(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[i];l.push(a)}z(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var A,O={};function w(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),O[e]||(z(t),O[e]=!0)}function k(e){return typeof Function<"u"&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e,t){var n,r=p({},e);for(n in t)o(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)o(e,n)&&!o(t,n)&&i(e[n])&&(r[n]=p({},r[n]));return r}function S(e){null!=e&&this.set(e)}function C(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,A=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};var E=/(\[[^\[]*\])|(\\)?([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,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D={},R={};function L(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(R[e]=a),t&&(R[t[0]]=function(){return C(a.apply(this,arguments),t[1],t[2])}),n&&(R[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function I(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function W(e,t){return e.isValid()?(t=N(t,e.localeData()),D[t]=D[t]||function(e){var t,n,r=e.match(E);for(t=0,n=r.length;t<n;t++)R[r[t]]?r[t]=R[r[t]]:r[t]=I(r[t]);return function(t){var a,i="";for(a=0;a<n;a++)i+=k(r[a])?r[a].call(t,e):r[a];return i}}(t),D[t](e)):e.localeData().invalidDate()}function N(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(q.lastIndex=0;n>=0&&q.test(e);)e=e.replace(q,r),q.lastIndex=0,n-=1;return e}var P={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 B(e){return"string"==typeof e?P[e]||P[e.toLowerCase()]:void 0}function F(e){var t,n,r={};for(n in e)o(e,n)&&(t=B(n))&&(r[t]=e[n]);return r}var j,U={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},V=/\d/,H=/\d\d/,X=/\d{3}/,G=/\d{4}/,Y=/[+-]?\d{6}/,Z=/\d\d?/,$=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,Q=/\d{1,3}/,K=/\d{1,4}/,ee=/[+-]?\d{1,6}/,te=/\d+/,ne=/[+-]?\d+/,re=/Z|[+-]\d\d:?\d\d/gi,ae=/Z|[+-]\d\d(?::?\d\d)?/gi,ie=/[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,oe=/^[1-9]\d?/,se=/^([1-9]\d|\d)/;function le(e,t,n){j[e]=k(t)?t:function(e,r){return e&&n?n:t}}function ce(e,t){return o(j,e)?j[e](t._strict,t._locale):new RegExp(function(e){return ue(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,a){return t||n||r||a}))}(e))}function ue(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function de(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=de(t)),n}j={};var he={};function fe(e,t){var n,r,a=t;for("string"==typeof e&&(e=[e]),c(t)&&(a=function(e,n){n[t]=pe(e)}),r=e.length,n=0;n<r;n++)he[e[n]]=a}function me(e,t){fe(e,function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)})}function ge(e,t,n){null!=t&&o(he,e)&&he[e](t,n._a,n,e)}function ye(e){return e%4==0&&e%100!=0||e%400==0}var be=0,ve=1,Me=2,xe=3,ze=4,_e=5,Ae=6,Oe=7,we=8;function ke(e){return ye(e)?366:365}L("Y",0,0,function(){var e=this.year();return e<=9999?C(e,4):"+"+e}),L(0,["YY",2],0,function(){return this.year()%100}),L(0,["YYYY",4],0,"year"),L(0,["YYYYY",5],0,"year"),L(0,["YYYYYY",6,!0],0,"year"),le("Y",ne),le("YY",Z,H),le("YYYY",K,G),le("YYYYY",ee,Y),le("YYYYYY",ee,Y),fe(["YYYYY","YYYYYY"],be),fe("YYYY",function(e,t){t[be]=2===e.length?r.parseTwoDigitYear(e):pe(e)}),fe("YY",function(e,t){t[be]=r.parseTwoDigitYear(e)}),fe("Y",function(e,t){t[be]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return pe(e)+(pe(e)>68?1900:2e3)};var Te,Se=Ce("FullYear",!0);function Ce(e,t){return function(n){return null!=n?(qe(this,e,n),r.updateOffset(this,t),this):Ee(this,e)}}function Ee(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function qe(e,t,n){var r,a,i,o,s;if(e.isValid()&&!isNaN(n)){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(a?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(a?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(a?r.setUTCHours(n):r.setHours(n));case"Date":return void(a?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,o=e.month(),s=29!==(s=e.date())||1!==o||ye(i)?s:28,a?r.setUTCFullYear(i,o,s):r.setFullYear(i,o,s)}}function De(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=function(e,t){return(e%t+t)%t}(t,12);return e+=(t-n)/12,1===n?ye(e)?29:28:31-n%7%2}Te=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},L("M",["MM",2],"Mo",function(){return this.month()+1}),L("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),L("MMMM",0,0,function(e){return this.localeData().months(this,e)}),le("M",Z,oe),le("MM",Z,H),le("MMM",function(e,t){return t.monthsShortRegex(e)}),le("MMMM",function(e,t){return t.monthsRegex(e)}),fe(["M","MM"],function(e,t){t[ve]=pe(e)-1}),fe(["MMM","MMMM"],function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[ve]=a:f(n).invalidMonth=e});var Re="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ie=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,We=ie,Ne=ie;function Pe(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=Te.call(this._shortMonthsParse,o))?a:null:-1!==(a=Te.call(this._longMonthsParse,o))?a:null:"MMM"===t?-1!==(a=Te.call(this._shortMonthsParse,o))||-1!==(a=Te.call(this._longMonthsParse,o))?a:null:-1!==(a=Te.call(this._longMonthsParse,o))||-1!==(a=Te.call(this._shortMonthsParse,o))?a:null}function Be(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=pe(t);else if(!c(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,De(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Fe(e){return null!=e?(Be(this,e),r.updateOffset(this,!0),this):Ee(this,"Month")}function je(){function e(e,t){return t.length-e.length}var t,n,r,a,i=[],o=[],s=[];for(t=0;t<12;t++)n=h([2e3,t]),r=ue(this.monthsShort(n,"")),a=ue(this.months(n,"")),i.push(r),o.push(a),s.push(a),s.push(r);i.sort(e),o.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ue(e,t,n,r,a,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,a,i,o),s}function Ve(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[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 He(e,t,n){var r=7+t-n;return-(7+Ve(e,0,r).getUTCDay()-t)%7+r-1}function Xe(e,t,n,r,a){var i,o,s=1+7*(t-1)+(7+n-r)%7+He(e,r,a);return s<=0?o=ke(i=e-1)+s:s>ke(e)?(i=e+1,o=s-ke(e)):(i=e,o=s),{year:i,dayOfYear:o}}function Ge(e,t,n){var r,a,i=He(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?r=o+Ye(a=e.year()-1,t,n):o>Ye(e.year(),t,n)?(r=o-Ye(e.year(),t,n),a=e.year()+1):(a=e.year(),r=o),{week:r,year:a}}function Ye(e,t,n){var r=He(e,t,n),a=He(e+1,t,n);return(ke(e)-r+a)/7}function Ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),le("w",Z,oe),le("ww",Z,H),le("W",Z,oe),le("WW",Z,H),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=pe(e)}),L("d",0,"do","day"),L("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),L("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),L("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),L("e",0,0,"weekday"),L("E",0,0,"isoWeekday"),le("d",Z),le("e",Z),le("E",Z),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:f(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,r){t[r]=pe(e)});var $e="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=ie,et=ie,tt=ie;function nt(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=Te.call(this._weekdaysParse,o))?a:null:"ddd"===t?-1!==(a=Te.call(this._shortWeekdaysParse,o))?a:null:-1!==(a=Te.call(this._minWeekdaysParse,o))?a:null:"dddd"===t?-1!==(a=Te.call(this._weekdaysParse,o))||-1!==(a=Te.call(this._shortWeekdaysParse,o))||-1!==(a=Te.call(this._minWeekdaysParse,o))?a:null:"ddd"===t?-1!==(a=Te.call(this._shortWeekdaysParse,o))||-1!==(a=Te.call(this._weekdaysParse,o))||-1!==(a=Te.call(this._minWeekdaysParse,o))?a:null:-1!==(a=Te.call(this._minWeekdaysParse,o))||-1!==(a=Te.call(this._weekdaysParse,o))||-1!==(a=Te.call(this._shortWeekdaysParse,o))?a:null}function rt(){function e(e,t){return t.length-e.length}var t,n,r,a,i,o=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=ue(this.weekdaysMin(n,"")),a=ue(this.weekdaysShort(n,"")),i=ue(this.weekdays(n,"")),o.push(r),s.push(a),l.push(i),c.push(r),c.push(a),c.push(i);o.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function at(){return this.hours()%12||12}function it(e,t){L(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(e,t){return t._meridiemParse}L("H",["HH",2],0,"hour"),L("h",["hh",2],0,at),L("k",["kk",2],0,function(){return this.hours()||24}),L("hmm",0,0,function(){return""+at.apply(this)+C(this.minutes(),2)}),L("hmmss",0,0,function(){return""+at.apply(this)+C(this.minutes(),2)+C(this.seconds(),2)}),L("Hmm",0,0,function(){return""+this.hours()+C(this.minutes(),2)}),L("Hmmss",0,0,function(){return""+this.hours()+C(this.minutes(),2)+C(this.seconds(),2)}),it("a",!0),it("A",!1),le("a",ot),le("A",ot),le("H",Z,se),le("h",Z,oe),le("k",Z,oe),le("HH",Z,H),le("hh",Z,H),le("kk",Z,H),le("hmm",$),le("hmmss",J),le("Hmm",$),le("Hmmss",J),fe(["H","HH"],xe),fe(["k","kk"],function(e,t,n){var r=pe(e);t[xe]=24===r?0:r}),fe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),fe(["h","hh"],function(e,t,n){t[xe]=pe(e),f(n).bigHour=!0}),fe("hmm",function(e,t,n){var r=e.length-2;t[xe]=pe(e.substr(0,r)),t[ze]=pe(e.substr(r)),f(n).bigHour=!0}),fe("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[xe]=pe(e.substr(0,r)),t[ze]=pe(e.substr(r,2)),t[_e]=pe(e.substr(a)),f(n).bigHour=!0}),fe("Hmm",function(e,t,n){var r=e.length-2;t[xe]=pe(e.substr(0,r)),t[ze]=pe(e.substr(r))}),fe("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[xe]=pe(e.substr(0,r)),t[ze]=pe(e.substr(r,2)),t[_e]=pe(e.substr(a))});var st,lt=Ce("Hours",!0),ct={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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"},months:Re,monthsShort:Le,week:{dow:0,doy:6},weekdays:$e,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},ut={},dt={};function pt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function ht(e){return e&&e.toLowerCase().replace("_","-")}function ft(e){var n=null;if(void 0===ut[e]&&typeof t<"u"&&t&&t.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(e))try{n=st._abbr,require("./locale/"+e),mt(n)}catch{ut[e]=null}return ut[e]}function mt(e,t){var n;return e&&((n=l(t)?yt(e):gt(e,t))?st=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),st._abbr}function gt(e,t){if(null!==t){var n,r=ct;if(t.abbr=e,null!=ut[e])w("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ut[e]._config;else if(null!=t.parentLocale)if(null!=ut[t.parentLocale])r=ut[t.parentLocale]._config;else{if(null==(n=ft(t.parentLocale)))return dt[t.parentLocale]||(dt[t.parentLocale]=[]),dt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ut[e]=new S(T(r,t)),dt[e]&&dt[e].forEach(function(e){gt(e.name,e.config)}),mt(e),ut[e]}return delete ut[e],null}function yt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return st;if(!a(e)){if(t=ft(e))return t;e=[e]}return function(e){for(var t,n,r,a,i=0;i<e.length;){for(t=(a=ht(e[i]).split("-")).length,n=(n=ht(e[i+1]))?n.split("-"):null;t>0;){if(r=ft(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&pt(a,n)>=t-1)break;t--}i++}return st}(e)}function bt(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[ve]<0||n[ve]>11?ve:n[Me]<1||n[Me]>De(n[be],n[ve])?Me:n[xe]<0||n[xe]>24||24===n[xe]&&(0!==n[ze]||0!==n[_e]||0!==n[Ae])?xe:n[ze]<0||n[ze]>59?ze:n[_e]<0||n[_e]>59?_e:n[Ae]<0||n[Ae]>999?Ae:-1,f(e)._overflowDayOfYear&&(t<be||t>Me)&&(t=Me),f(e)._overflowWeeks&&-1===t&&(t=Oe),f(e)._overflowWeekday&&-1===t&&(t=we),f(e).overflow=t),e}var vt=/^\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)?)?$/,Mt=/^\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)?)?$/,xt=/Z|[+-]\d\d(?::?\d\d)?/,zt=[["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]],_t=[["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/]],At=/^\/?Date\((-?\d+)/i,Ot=/^(?:(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}))$/,wt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kt(e){var t,n,r,a,i,o,s=e._i,l=vt.exec(s)||Mt.exec(s),c=zt.length,u=_t.length;if(l){for(f(e).iso=!0,t=0,n=c;t<n;t++)if(zt[t][1].exec(l[1])){a=zt[t][0],r=!1!==zt[t][2];break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(_t[t][1].exec(l[3])){i=(l[2]||" ")+_t[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!xt.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=a+(i||"")+(o||""),qt(e)}else e._isValid=!1}function Tt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function St(e){var t,n=Ot.exec(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(e._i));if(n){if(t=function(e,t,n,r,a,i){var o=[Tt(e),Le.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}(n[4],n[3],n[2],n[5],n[6],n[7]),!function(e,t,n){return!e||Je.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}(n[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return wt[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}(n[8],n[9],n[10]),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function Ct(e,t,n){return e??t??n}function Et(e){var t,n,a,i,o,s=[];if(!e._d){for(a=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[Me]&&null==e._a[ve]&&function(e){var t,n,r,a,i,o,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,o=4,n=Ct(t.GG,e._a[be],Ge(Lt(),1,4).year),r=Ct(t.W,1),((a=Ct(t.E,1))<1||a>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,c=Ge(Lt(),i,o),n=Ct(t.gg,e._a[be],c.year),r=Ct(t.w,c.week),null!=t.d?((a=t.d)<0||a>6)&&(l=!0):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(l=!0)):a=i),r<1||r>Ye(n,i,o)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(s=Xe(n,r,a,i,o),e._a[be]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=Ct(e._a[be],a[be]),(e._dayOfYear>ke(o)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=Ve(o,0,e._dayOfYear),e._a[ve]=n.getUTCMonth(),e._a[Me]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=a[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[xe]&&0===e._a[ze]&&0===e._a[_e]&&0===e._a[Ae]&&(e._nextDay=!0,e._a[xe]=0),e._d=(e._useUTC?Ve:Ue).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[xe]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(f(e).weekdayMismatch=!0)}}function qt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],f(e).empty=!0;var t,n,a,i,o,s,l,c=""+e._i,u=c.length,d=0;for(l=(a=N(e._f,e._locale).match(E)||[]).length,t=0;t<l;t++)i=a[t],(n=(c.match(ce(i,e))||[])[0])&&((o=c.substr(0,c.indexOf(n))).length>0&&f(e).unusedInput.push(o),c=c.slice(c.indexOf(n)+n.length),d+=n.length),R[i]?(n?f(e).empty=!1:f(e).unusedTokens.push(i),ge(i,n,e)):e._strict&&!n&&f(e).unusedTokens.push(i);f(e).charsLeftOver=u-d,c.length>0&&f(e).unusedInput.push(c),e._a[xe]<=12&&!0===f(e).bigHour&&e._a[xe]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[xe]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((r=e.isPM(n))&&t<12&&(t+=12),!r&&12===t&&(t=0)),t)}(e._locale,e._a[xe],e._meridiem),null!==(s=f(e).era)&&(e._a[be]=e._locale.erasConvertYear(s,e._a[be])),Et(e),bt(e)}else St(e);else kt(e)}function Dt(e){var t=e._i,n=e._f;return e._locale=e._locale||yt(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new M(bt(t)):(u(t)?e._d=t:a(n)?function(e){var t,n,r,a,i,o,s=!1,l=e._f.length;if(0===l)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<l;a++)i=0,o=!1,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],qt(t),m(t)&&(o=!0),i+=f(t).charsLeftOver,i+=10*f(t).unusedTokens.length,f(t).score=i,s?i<r&&(r=i,n=t):(null==r||i<r||o)&&(r=i,n=t,o&&(s=!0));p(e,n||t)}(e):n?qt(e):function(e){var t=e._i;l(t)?e._d=new Date(r.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=At.exec(e._i);null===t?(kt(e),!1===e._isValid&&(delete e._isValid,St(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=d(t.slice(0),function(e){return parseInt(e,10)}),Et(e)):i(t)?function(e){if(!e._d){var t=F(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Et(e)}}(e):c(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function Rt(e,t,n,r,o){var l={};return(!0===t||!1===t)&&(r=t,t=void 0),(!0===n||!1===n)&&(r=n,n=void 0),(i(e)&&s(e)||a(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=n,l._i=e,l._f=t,l._strict=r,function(e){var t=new M(bt(Dt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}(l)}function Lt(e,t,n,r){return Rt(e,t,n,r,!1)}r.createFromInputFallback=_("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":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var It=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Lt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),Wt=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Lt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()});function Nt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Lt();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}var Pt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Bt(e){var t=F(e),n=t.year||0,r=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,r=!1,a=Pt.length;for(t in e)if(o(e,t)&&(-1===Te.call(Pt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<a;++n)if(e[Pt[n]]){if(r)return!1;parseFloat(e[Pt[n]])!==pe(e[Pt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+s+7*i,this._months=+a+3*r+12*n,this._data={},this._locale=yt(),this._bubble()}function Ft(e){return e instanceof Bt}function jt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ut(e,t){L(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+C(~~(e/60),2)+t+C(~~e%60,2)})}Ut("Z",":"),Ut("ZZ",""),le("Z",ae),le("ZZ",ae),fe(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ht(ae,e)});var Vt=/([\+\-]|\d\d)/gi;function Ht(e,t){var n,r,a=(t||"").match(e);return null===a?null:0===(r=60*(n=((a[a.length-1]||[])+"").match(Vt)||["-",0,0])[1]+pe(n[2]))?0:"+"===n[0]?r:-r}function Xt(e,t){var n,a;return t._isUTC?(n=t.clone(),a=(x(e)||u(e)?e.valueOf():Lt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),r.updateOffset(n,!1),n):Lt(e).local()}function Gt(e){return-Math.round(e._d.getTimezoneOffset())}function Yt(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Zt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,$t=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Jt(e,t){var n,r,a,i=e,s=null;return Ft(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(s=Zt.exec(e))?(n="-"===s[1]?-1:1,i={y:0,d:pe(s[Me])*n,h:pe(s[xe])*n,m:pe(s[ze])*n,s:pe(s[_e])*n,ms:pe(jt(1e3*s[Ae]))*n}):(s=$t.exec(e))?(n="-"===s[1]?-1:1,i={y:Qt(s[2],n),M:Qt(s[3],n),w:Qt(s[4],n),d:Qt(s[5],n),h:Qt(s[6],n),m:Qt(s[7],n),s:Qt(s[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(a=function(e,t){var n;return e.isValid()&&t.isValid()?(t=Xt(t,e),e.isBefore(t)?n=Kt(e,t):((n=Kt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(Lt(i.from),Lt(i.to)),(i={}).ms=a.milliseconds,i.M=a.months),r=new Bt(i),Ft(e)&&o(e,"_locale")&&(r._locale=e._locale),Ft(e)&&o(e,"_isValid")&&(r._isValid=e._isValid),r}function Qt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Kt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function en(e,t){return function(n,r){var a;return null!==r&&!isNaN(+r)&&(w(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),tn(this,Jt(n,r),e),this}}function tn(e,t,n,a){var i=t._milliseconds,o=jt(t._days),s=jt(t._months);e.isValid()&&(a=a??!0,s&&Be(e,Ee(e,"Month")+s*n),o&&qe(e,"Date",Ee(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),a&&r.updateOffset(e,o||s))}Jt.fn=Bt.prototype,Jt.invalid=function(){return Jt(NaN)};var nn=en(1,"add"),rn=en(-1,"subtract");function an(e){return"string"==typeof e||e instanceof String}function on(e){return x(e)||u(e)||an(e)||c(e)||function(e){var t=a(e),n=!1;return t&&(n=0===e.filter(function(t){return!c(t)&&an(e)}).length),t&&n}(e)||function(e){var t,n,r=i(e)&&!s(e),a=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=l.length;for(t=0;t<c;t+=1)n=l[t],a=a||o(e,n);return r&&a}(e)||null==e}function sn(e,t){if(e.date()<t.date())return-sn(t,e);var n,r=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(r,"months");return n=t-a<0?(t-a)/(a-e.clone().add(r-1,"months")):(t-a)/(e.clone().add(r+1,"months")-a),-(r+n)||0}function ln(e){var t;return void 0===e?this._locale._abbr:(null!=(t=yt(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var cn=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function un(){return this._locale}var dn=1e3,pn=6e4,hn=60*pn,fn=3506328*hn;function mn(e,t){return(e%t+t)%t}function gn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fn:new Date(e,t,n).valueOf()}function yn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fn:Date.UTC(e,t,n)}function bn(e,t){return t.erasAbbrRegex(e)}function vn(){var e,t,n,r,a,i=[],o=[],s=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=ue(c[e].name),r=ue(c[e].abbr),a=ue(c[e].narrow),o.push(n),i.push(r),s.push(a),l.push(n),l.push(r),l.push(a);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function Mn(e,t){L(0,[e,e.length],0,t)}function xn(e,t,n,r,a){var i;return null==e?Ge(this,r,a).year:(t>(i=Ye(e,r,a))&&(t=i),zn.call(this,e,t,n,r,a))}function zn(e,t,n,r,a){var i=Xe(e,t,n,r,a),o=Ve(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}L("N",0,0,"eraAbbr"),L("NN",0,0,"eraAbbr"),L("NNN",0,0,"eraAbbr"),L("NNNN",0,0,"eraName"),L("NNNNN",0,0,"eraNarrow"),L("y",["y",1],"yo","eraYear"),L("y",["yy",2],0,"eraYear"),L("y",["yyy",3],0,"eraYear"),L("y",["yyyy",4],0,"eraYear"),le("N",bn),le("NN",bn),le("NNN",bn),le("NNNN",function(e,t){return t.erasNameRegex(e)}),le("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),fe(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?f(n).era=a:f(n).invalidEra=e}),le("y",te),le("yy",te),le("yyy",te),le("yyyy",te),le("yo",function(e,t){return t._eraYearOrdinalRegex||te}),fe(["y","yy","yyy","yyyy"],be),fe(["yo"],function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[be]=n._locale.eraYearOrdinalParse(e,a):t[be]=parseInt(e,10)}),L(0,["gg",2],0,function(){return this.weekYear()%100}),L(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Mn("gggg","weekYear"),Mn("ggggg","weekYear"),Mn("GGGG","isoWeekYear"),Mn("GGGGG","isoWeekYear"),le("G",ne),le("g",ne),le("GG",Z,H),le("gg",Z,H),le("GGGG",K,G),le("gggg",K,G),le("GGGGG",ee,Y),le("ggggg",ee,Y),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=pe(e)}),me(["gg","GG"],function(e,t,n,a){t[a]=r.parseTwoDigitYear(e)}),L("Q",0,"Qo","quarter"),le("Q",V),fe("Q",function(e,t){t[ve]=3*(pe(e)-1)}),L("D",["DD",2],"Do","date"),le("D",Z,oe),le("DD",Z,H),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),fe(["D","DD"],Me),fe("Do",function(e,t){t[Me]=pe(e.match(Z)[0])});var _n=Ce("Date",!0);L("DDD",["DDDD",3],"DDDo","dayOfYear"),le("DDD",Q),le("DDDD",X),fe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=pe(e)}),L("m",["mm",2],0,"minute"),le("m",Z,se),le("mm",Z,H),fe(["m","mm"],ze);var An=Ce("Minutes",!1);L("s",["ss",2],0,"second"),le("s",Z,se),le("ss",Z,H),fe(["s","ss"],_e);var On,wn,kn=Ce("Seconds",!1);for(L("S",0,0,function(){return~~(this.millisecond()/100)}),L(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),L(0,["SSS",3],0,"millisecond"),L(0,["SSSS",4],0,function(){return 10*this.millisecond()}),L(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),L(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),L(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),L(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),L(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),le("S",Q,V),le("SS",Q,H),le("SSS",Q,X),On="SSSS";On.length<=9;On+="S")le(On,te);function Tn(e,t){t[Ae]=pe(1e3*("0."+e))}for(On="S";On.length<=9;On+="S")fe(On,Tn);wn=Ce("Milliseconds",!1),L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName");var Sn=M.prototype;function Cn(e){return e}Sn.add=nn,Sn.calendar=function(e,t){1===arguments.length&&(arguments[0]?on(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=i(e)&&!s(e),r=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)r=r||o(e,a[t]);return n&&r}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Lt(),a=Xt(n,this).startOf("day"),l=r.calendarFormat(this,a)||"sameElse",c=t&&(k(t[l])?t[l].call(this,n):t[l]);return this.format(c||this.localeData().calendar(l,this,Lt(n)))},Sn.clone=function(){return new M(this)},Sn.diff=function(e,t,n){var r,a,i;if(!this.isValid())return NaN;if(!(r=Xt(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=B(t)){case"year":i=sn(this,r)/12;break;case"month":i=sn(this,r);break;case"quarter":i=sn(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-a)/864e5;break;case"week":i=(this-r-a)/6048e5;break;default:i=this-r}return n?i:de(i)},Sn.endOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?yn:gn,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+=hn-mn(t+(this._isUTC?0:this.utcOffset()*pn),hn)-1;break;case"minute":t=this._d.valueOf(),t+=pn-mn(t,pn)-1;break;case"second":t=this._d.valueOf(),t+=dn-mn(t,dn)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},Sn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=W(this,e);return this.localeData().postformat(t)},Sn.from=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||Lt(e).isValid())?Jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Sn.fromNow=function(e){return this.from(Lt(),e)},Sn.to=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||Lt(e).isValid())?Jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Sn.toNow=function(e){return this.to(Lt(),e)},Sn.get=function(e){return k(this[e=B(e)])?this[e]():this},Sn.invalidAt=function(){return f(this).overflow},Sn.isAfter=function(e,t){var n=x(e)?e:Lt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},Sn.isBefore=function(e,t){var n=x(e)?e:Lt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},Sn.isBetween=function(e,t,n,r){var a=x(e)?e:Lt(e),i=x(t)?t:Lt(t);return!!(this.isValid()&&a.isValid()&&i.isValid())&&("("===(r=r||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n))},Sn.isSame=function(e,t){var n,r=x(e)?e:Lt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},Sn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Sn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Sn.isValid=function(){return m(this)},Sn.lang=cn,Sn.locale=ln,Sn.localeData=un,Sn.max=Wt,Sn.min=It,Sn.parsingFlags=function(){return p({},f(this))},Sn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)o(e,t)&&n.push({unit:t,priority:U[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=F(e)),a=r.length;for(n=0;n<a;n++)this[r[n].unit](e[r[n].unit])}else if(k(this[e=B(e)]))return this[e](t);return this},Sn.startOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?yn:gn,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-=mn(t+(this._isUTC?0:this.utcOffset()*pn),hn);break;case"minute":t=this._d.valueOf(),t-=mn(t,pn);break;case"second":t=this._d.valueOf(),t-=mn(t,dn)}return this._d.setTime(t),r.updateOffset(this,!0),this},Sn.subtract=rn,Sn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Sn.toObject=function(){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()}},Sn.toDate=function(){return new Date(this.valueOf())},Sn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?W(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(n,"Z")):W(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Sn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",a="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=a+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},typeof Symbol<"u"&&null!=Symbol.for&&(Sn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Sn.toJSON=function(){return this.isValid()?this.toISOString():null},Sn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Sn.unix=function(){return Math.floor(this.valueOf()/1e3)},Sn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Sn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Sn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""},Sn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""},Sn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""},Sn.eraYear=function(){var e,t,n,a,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,a=this.clone().startOf("day").valueOf(),i[e].since<=a&&a<=i[e].until||i[e].until<=a&&a<=i[e].since)return(this.year()-r(i[e].since).year())*n+i[e].offset;return this.year()},Sn.year=Se,Sn.isLeapYear=function(){return ye(this.year())},Sn.weekYear=function(e){return xn.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Sn.isoWeekYear=function(e){return xn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Sn.quarter=Sn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Sn.month=Fe,Sn.daysInMonth=function(){return De(this.year(),this.month())},Sn.week=Sn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Sn.isoWeek=Sn.isoWeeks=function(e){var t=Ge(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Sn.weeksInYear=function(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)},Sn.weeksInWeekYear=function(){var e=this.localeData()._week;return Ye(this.weekYear(),e.dow,e.doy)},Sn.isoWeeksInYear=function(){return Ye(this.year(),1,4)},Sn.isoWeeksInISOWeekYear=function(){return Ye(this.isoWeekYear(),1,4)},Sn.date=_n,Sn.day=Sn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=Ee(this,"Day");return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},Sn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Sn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Sn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Sn.hour=Sn.hours=lt,Sn.minute=Sn.minutes=An,Sn.second=Sn.seconds=kn,Sn.millisecond=Sn.milliseconds=wn,Sn.utcOffset=function(e,t,n){var a,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ht(ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(a=Gt(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),i!==e&&(!t||this._changeInProgress?tn(this,Jt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Gt(this)},Sn.utc=function(e){return this.utcOffset(0,e)},Sn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Gt(this),"m")),this},Sn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ht(re,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},Sn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Lt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Sn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Sn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Sn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Sn.isUtc=Yt,Sn.isUTC=Yt,Sn.zoneAbbr=function(){return this._isUTC?"UTC":""},Sn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Sn.dates=_("dates accessor is deprecated. Use date instead.",_n),Sn.months=_("months accessor is deprecated. Use month instead",Fe),Sn.years=_("years accessor is deprecated. Use year instead",Se),Sn.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),Sn.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=Dt(t))._a?(e=t._isUTC?h(t._a):Lt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,a=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&pe(e[r])!==pe(t[r]))&&o++;return o+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var En=S.prototype;function qn(e,t,n,r){var a=yt(),i=h().set(r,t);return a[n](i,e)}function Dn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return qn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=qn(e,r,n,"month");return a}function Rn(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var a,i=yt(),o=e?i._week.dow:0,s=[];if(null!=n)return qn(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=qn(t,(a+o)%7,r,"day");return s}En.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return k(r)?r.call(t,n):r},En.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(E).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},En.invalidDate=function(){return this._invalidDate},En.ordinal=function(e){return this._ordinal.replace("%d",e)},En.preparse=Cn,En.postformat=Cn,En.relativeTime=function(e,t,n,r){var a=this._relativeTime[n];return k(a)?a(e,t,n,r):a.replace(/%d/i,e)},En.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return k(n)?n(t):n.replace(/%s/i,t)},En.set=function(e){var t,n;for(n in e)o(e,n)&&(k(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},En.eras=function(e,t){var n,a,i,o=this._eras||yt("en")._eras;for(n=0,a=o.length;n<a;++n)switch("string"==typeof o[n].since&&(i=r(o[n].since).startOf("day"),o[n].since=i.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=r(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf()}return o},En.erasParse=function(e,t,n){var r,a,i,o,s,l=this.eras();for(e=e.toUpperCase(),r=0,a=l.length;r<a;++r)if(i=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[r];break;case"NNNN":if(i===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([i,o,s].indexOf(e)>=0)return l[r]},En.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},En.erasAbbrRegex=function(e){return o(this,"_erasAbbrRegex")||vn.call(this),e?this._erasAbbrRegex:this._erasRegex},En.erasNameRegex=function(e){return o(this,"_erasNameRegex")||vn.call(this),e?this._erasNameRegex:this._erasRegex},En.erasNarrowRegex=function(e){return o(this,"_erasNarrowRegex")||vn.call(this),e?this._erasNarrowRegex:this._erasRegex},En.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ie).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},En.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ie.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},En.monthsParse=function(e,t,n){var r,a,i;if(this._monthsParseExact)return Pe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},En.monthsRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Ne),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},En.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=We),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},En.week=function(e){return Ge(e,this._week.dow,this._week.doy).week},En.firstDayOfYear=function(){return this._week.doy},En.firstDayOfWeek=function(){return this._week.dow},En.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ze(n,this._week.dow):e?n[e.day()]:n},En.weekdaysMin=function(e){return!0===e?Ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},En.weekdaysShort=function(e){return!0===e?Ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},En.weekdaysParse=function(e,t,n){var r,a,i;if(this._weekdaysParseExact)return nt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},En.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},En.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=et),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},En.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},En.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},En.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},mt("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;return e+(1===pe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=_("moment.lang is deprecated. Use moment.locale instead.",mt),r.langData=_("moment.langData is deprecated. Use moment.localeData instead.",yt);var Ln=Math.abs;function In(e,t,n,r){var a=Jt(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Wn(e){return e<0?Math.floor(e):Math.ceil(e)}function Nn(e){return 4800*e/146097}function Pn(e){return 146097*e/4800}function Bn(e){return function(){return this.as(e)}}var Fn=Bn("ms"),jn=Bn("s"),Un=Bn("m"),Vn=Bn("h"),Hn=Bn("d"),Xn=Bn("w"),Gn=Bn("M"),Yn=Bn("Q"),Zn=Bn("y"),$n=Fn;function Jn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Qn=Jn("milliseconds"),Kn=Jn("seconds"),er=Jn("minutes"),tr=Jn("hours"),nr=Jn("days"),rr=Jn("months"),ar=Jn("years"),ir=Math.round,or={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function sr(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}var lr=Math.abs;function cr(e){return(e>0)-(e<0)||+e}function ur(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,i,o,s,l=lr(this._milliseconds)/1e3,c=lr(this._days),u=lr(this._months),d=this.asSeconds();return d?(e=de(l/60),t=de(e/60),l%=60,e%=60,n=de(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",i=cr(this._months)!==cr(d)?"-":"",o=cr(this._days)!==cr(d)?"-":"",s=cr(this._milliseconds)!==cr(d)?"-":"",a+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(c?o+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var dr=Bt.prototype;return dr.isValid=function(){return this._isValid},dr.abs=function(){var e=this._data;return this._milliseconds=Ln(this._milliseconds),this._days=Ln(this._days),this._months=Ln(this._months),e.milliseconds=Ln(e.milliseconds),e.seconds=Ln(e.seconds),e.minutes=Ln(e.minutes),e.hours=Ln(e.hours),e.months=Ln(e.months),e.years=Ln(e.years),this},dr.add=function(e,t){return In(this,e,t,1)},dr.subtract=function(e,t){return In(this,e,t,-1)},dr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Nn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Pn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},dr.asMilliseconds=Fn,dr.asSeconds=jn,dr.asMinutes=Un,dr.asHours=Vn,dr.asDays=Hn,dr.asWeeks=Xn,dr.asMonths=Gn,dr.asQuarters=Yn,dr.asYears=Zn,dr.valueOf=$n,dr._bubble=function(){var e,t,n,r,a,i=this._milliseconds,o=this._days,s=this._months,l=this._data;return i>=0&&o>=0&&s>=0||i<=0&&o<=0&&s<=0||(i+=864e5*Wn(Pn(s)+o),o=0,s=0),l.milliseconds=i%1e3,e=de(i/1e3),l.seconds=e%60,t=de(e/60),l.minutes=t%60,n=de(t/60),l.hours=n%24,o+=de(n/24),s+=a=de(Nn(o)),o-=Wn(Pn(a)),r=de(s/12),s%=12,l.days=o,l.months=s,l.years=r,this},dr.clone=function(){return Jt(this)},dr.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},dr.milliseconds=Qn,dr.seconds=Kn,dr.minutes=er,dr.hours=tr,dr.days=nr,dr.weeks=function(){return de(this.days()/7)},dr.months=rr,dr.years=ar,dr.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,i=or;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(i=Object.assign({},or,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=function(e,t,n,r){var a=Jt(e).abs(),i=ir(a.as("s")),o=ir(a.as("m")),s=ir(a.as("h")),l=ir(a.as("d")),c=ir(a.as("M")),u=ir(a.as("w")),d=ir(a.as("y")),p=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(p=p||u<=1&&["w"]||u<n.w&&["ww",u]),(p=p||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,p[3]=+e>0,p[4]=r,sr.apply(null,p)}(this,!a,i,n=this.localeData()),a&&(r=n.pastFuture(+this,r)),n.postformat(r)},dr.toISOString=ur,dr.toString=ur,dr.toJSON=ur,dr.locale=ln,dr.localeData=un,dr.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ur),dr.lang=cn,L("X",0,0,"unix"),L("x",0,0,"valueOf"),le("x",ne),le("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),fe("x",function(e,t,n){n._d=new Date(pe(e))}),r.version="2.30.1",e=Lt,r.fn=Sn,r.min=function(){return Nt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Nt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=h,r.unix=function(e){return Lt(1e3*e)},r.months=function(e,t){return Dn(e,t,"months")},r.isDate=u,r.locale=mt,r.invalid=g,r.duration=Jt,r.isMoment=x,r.weekdays=function(e,t,n){return Rn(e,t,n,"weekdays")},r.parseZone=function(){return Lt.apply(null,arguments).parseZone()},r.localeData=yt,r.isDuration=Ft,r.monthsShort=function(e,t){return Dn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return Rn(e,t,n,"weekdaysMin")},r.defineLocale=gt,r.updateLocale=function(e,t){if(null!=t){var n,r,a=ct;null!=ut[e]&&null!=ut[e].parentLocale?ut[e].set(T(ut[e]._config,t)):(null!=(r=ft(e))&&(a=r._config),t=T(a,t),null==r&&(t.abbr=e),(n=new S(t)).parentLocale=ut[e],ut[e]=n),mt(e)}else null!=ut[e]&&(null!=ut[e].parentLocale?(ut[e]=ut[e].parentLocale,e===mt()&&mt(e)):null!=ut[e]&&delete ut[e]);return ut[e]},r.locales=function(){return A(ut)},r.weekdaysShort=function(e,t,n){return Rn(e,t,n,"weekdaysShort")},r.normalizeUnits=B,r.relativeTimeRounding=function(e){return void 0===e?ir:"function"==typeof e&&(ir=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==or[e]&&(void 0===t?or[e]:(or[e]=t,"s"===e&&(or.ss=t-1),!0))},r.calendarFormat=function(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"},r.prototype=Sn,r.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"},r},"object"==typeof e&&typeof t<"u"?t.exports=r():"function"==typeof define&&define.amd?define(r):n.moment=r()}),CTe=Ee((e,t)=>{var n,r;n=e,r=function(e){void 0===e.version&&e.default&&(e=e.default);var t,n={},r={},a={},i={},o={};(!e||"string"!=typeof e.version)&&T("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var s=e.version.split("."),l=+s[0],c=+s[1];function u(e){return e>96?e-87:e>64?e-29:e-48}function d(e){var t=0,n=e.split("."),r=n[0],a=n[1]||"",i=1,o=0,s=1;for(45===e.charCodeAt(0)&&(t=1,s=-1);t<r.length;t++)o=60*o+u(r.charCodeAt(t));for(t=0;t<a.length;t++)i/=60,o+=u(a.charCodeAt(t))*i;return o*s}function p(e){for(var t=0;t<e.length;t++)e[t]=d(e[t])}function h(e,t){var n,r=[];for(n=0;n<t.length;n++)r[n]=e[t[n]];return r}function f(e){var t=e.split("|"),n=t[2].split(" "),r=t[3].split(""),a=t[4].split(" ");return p(n),p(r),p(a),function(e,t){for(var n=0;n<t;n++)e[n]=Math.round((e[n-1]||0)+6e4*e[n]);e[t-1]=1/0}(a,r.length),{name:t[0],abbrs:h(t[1].split(" "),r),offsets:h(n,r),untils:a,population:0|t[5]}}function m(e){e&&this._set(f(e))}function g(e,t){this.name=e,this.zones=t}function y(e){var t=e.toTimeString(),n=t.match(/\([a-z ]+\)/i);"GMT"===(n=n&&n[0]?(n=n[0].match(/[A-Z]/g))?n.join(""):void 0:(n=t.match(/[A-Z]{3,5}/g))?n[0]:void 0)&&(n=void 0),this.at=+e,this.abbr=n,this.offset=e.getTimezoneOffset()}function b(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function v(e,t){for(var n,r;r=6e4*((t.at-e.at)/12e4|0);)(n=new y(new Date(e.at+r))).offset===e.offset?e=n:t=n;return e}function M(e,t){return e.offsetScore!==t.offsetScore?e.offsetScore-t.offsetScore:e.abbrScore!==t.abbrScore?e.abbrScore-t.abbrScore:e.zone.population!==t.zone.population?t.zone.population-e.zone.population:t.zone.name.localeCompare(e.zone.name)}function x(e,t){var n,r;for(p(t),n=0;n<t.length;n++)r=t[n],o[r]=o[r]||{},o[r][e]=!0}function z(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3){var t=i[_(e)];if(t)return t;T("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch{}var n,r,a,s=function(){var e,t,n,r,a=(new Date).getFullYear()-2,i=new y(new Date(a,0,1)),o=i.offset,s=[i];for(r=1;r<48;r++)(n=new Date(a,r,1).getTimezoneOffset())!==o&&(e=v(i,t=new y(new Date(a,r,1))),s.push(e),s.push(new y(new Date(e.at+6e4))),i=t,o=n);for(r=0;r<4;r++)s.push(new y(new Date(a+r,0,1))),s.push(new y(new Date(a+r,6,1)));return s}(),l=s.length,c=function(e){var t,n,r,a,s=e.length,l={},c=[],u={};for(t=0;t<s;t++)if(r=e[t].offset,!u.hasOwnProperty(r)){for(n in a=o[r]||{})a.hasOwnProperty(n)&&(l[n]=!0);u[r]=!0}for(t in l)l.hasOwnProperty(t)&&c.push(i[t]);return c}(s),u=[];for(r=0;r<c.length;r++){for(n=new b(O(c[r]),l),a=0;a<l;a++)n.scoreOffsetAt(s[a]);u.push(n)}return u.sort(M),u.length>0?u[0].zone.name:void 0}function _(e){return(e||"").toLowerCase().replace(/\//g,"_")}function A(e){var t,r,a,o;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)o=_(r=(a=e[t].split("|"))[0]),n[o]=e[t],i[o]=r,x(o,a[2].split(" "))}function O(e,t){e=_(e);var a,o=n[e];return o instanceof m?o:"string"==typeof o?(o=new m(o),n[e]=o,o):r[e]&&t!==O&&(a=O(r[e],O))?((o=n[e]=new m)._set(a),o.name=i[e],o):null}function w(e){var t,n,a,o;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)a=_((n=e[t].split("|"))[0]),o=_(n[1]),r[a]=o,i[a]=n[0],r[o]=a,i[o]=n[1]}function k(e){var t="X"===e._f||"x"===e._f;return!(!e._a||void 0!==e._tzm||t)}function T(e){typeof console<"u"&&"function"==typeof console.error&&console.error(e)}function S(t){var n,r=Array.prototype.slice.call(arguments,0,-1),a=arguments[arguments.length-1],i=e.utc.apply(null,r);return!e.isMoment(t)&&k(i)&&(n=O(a))&&i.add(n.parse(i),"minutes"),i.tz(a),i}(l<2||2===l&&c<6)&&T("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),m.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t;if(t=function(e,t){var n=t.length;if(e<t[0])return 0;if(n>1&&t[n-1]===1/0&&e>=t[n-2])return n-1;if(e>=t[n-1])return-1;for(var r,a=0,i=n-1;i-a>1;)t[r=Math.floor((a+i)/2)]<=e?a=r:i=r;return i}(+e,this.untils),t>=0)return t},countries:function(){var e=this.name;return Object.keys(a).filter(function(t){return-1!==a[t].zones.indexOf(e)})},parse:function(e){var t,n,r,a,i=+e,o=this.offsets,s=this.untils,l=s.length-1;for(a=0;a<l;a++)if(t=o[a],n=o[a+1],r=o[a&&a-1],t<n&&S.moveAmbiguousForward?t=n:t>r&&S.moveInvalidForward&&(t=r),i<s[a]-6e4*t)return o[a];return o[l]},abbr:function(e){return this.abbrs[this._index(e)]},offset:function(e){return T("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(e)]},utcOffset:function(e){return this.offsets[this._index(e)]}},b.prototype.scoreOffsetAt=function(e){this.offsetScore+=Math.abs(this.zone.utcOffset(e.at)-e.offset),this.zone.abbr(e.at).replace(/[^A-Z]/g,"")!==e.abbr&&this.abbrScore++},S.version="0.5.48",S.dataVersion="",S._zones=n,S._links=r,S._names=i,S._countries=a,S.add=A,S.link=w,S.load=function(e){A(e.zones),w(e.links),function(e){var t,n,r,i;if(e&&e.length)for(t=0;t<e.length;t++)n=(i=e[t].split("|"))[0].toUpperCase(),r=i[1].split(" "),a[n]=new g(n,r)}(e.countries),S.dataVersion=e.version},S.zone=O,S.zoneExists=function e(t){return e.didShowError||(e.didShowError=!0,T("moment.tz.zoneExists('"+t+"') has been deprecated in favor of !moment.tz.zone('"+t+"')")),!!O(t)},S.guess=function(e){return(!t||e)&&(t=z()),t},S.names=function(){var e,t=[];for(e in i)i.hasOwnProperty(e)&&(n[e]||n[r[e]])&&i[e]&&t.push(i[e]);return t.sort()},S.Zone=m,S.unpack=f,S.unpackBase60=d,S.needsOffset=k,S.moveInvalidForward=!0,S.moveAmbiguousForward=!1,S.countries=function(){return Object.keys(a)},S.zonesForCountry=function(e,t){if(!(e=function(e){return e=e.toUpperCase(),a[e]||null}(e)))return null;var n=e.zones.sort();return t?n.map(function(e){return{name:e,offset:O(e).utcOffset(new Date)}}):n};var C,E=e.fn;function q(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function D(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=S,e.defaultZone=null,e.updateOffset=function(t,n){var r,a=e.defaultZone;if(void 0===t._z&&(a&&k(t)&&!t._isUTC&&t.isValid()&&(t._d=e.utc(t._a)._d,t.utc().add(a.parse(t),"minutes")),t._z=a),t._z)if(r=t._z.utcOffset(t),Math.abs(r)<16&&(r/=60),void 0!==t.utcOffset){var i=t._z;t.utcOffset(-r,n),t._z=i}else t.zone(r,n)},E.tz=function(t,n){if(t){if("string"!=typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=O(t),this._z?e.updateOffset(this,n):T("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},E.zoneName=q(E.zoneName),E.zoneAbbr=q(E.zoneAbbr),E.utc=D(E.utc),E.local=D(E.local),E.utcOffset=(C=E.utcOffset,function(){return arguments.length>0&&(this._z=null),C.apply(this,arguments)}),e.tz.setDefault=function(t){return(l<2||2===l&&c<9)&&T("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?O(t):null,e};var R=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(R)?(R.push("_z"),R.push("_a")):R&&(R._z=null),e},"object"==typeof t&&t.exports?t.exports=r(STe()):"function"==typeof define&&define.amd?define(["moment"],r):r(n.moment)}),ETe=Ee((e,t)=>{t.exports={version:"2025b",zones:["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Nairobi|LMT +0230 EAT +0245|-2r.g -2u -30 -2J|012132|-2ua2r.g N6nV.g 3Fbu h1cu dzbJ|47e5","Africa/Algiers|LMT PMT WET WEST CET CEST|-c.c -9.l 0 -10 -10 -20|01232323232323232454542423234542324|-3bQ0c.c MDA2.P cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT GMT +0030 WAT|-d.z 0 -u -10|01023|-2B40d.z 7iod.z dnXK.p dLzH.z|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.i -20|01|-2sw2a.i|26e5","Africa/Cairo|LMT EET EEST|-25.9 -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2MBC5.9 1AQM5.9 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0 kSp0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0|15e6","Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0|32e5","Africa/Ceuta|LMT WET WEST CET CEST|l.g 0 -10 -10 -20|0121212121212121212121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2M0M0 GdX0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0|20e4","Africa/Johannesburg|LMT SAST SAST SAST|-1Q -1u -20 -30|0123232|-39EpQ qTcm 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|012121212121212121212121212121212131|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 PeX0|","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|LMT MMT MMT GMT|H.8 H.8 I.u 0|0123|-3ygng.Q 1usM0 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Sao_Tome|LMT LMT GMT WAT|-q.U A.J 0 -10|01232|-3tooq.U 18aoq.U 4i6N0 2q00|","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|LMT PMT CET CEST|-E.I -9.l -10 -20|01232323232323232323232323232323232|-3zO0E.I 1cBAv.n 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|LMT +0130 SAST SAST CAT WAT|-18.o -1u -20 -30 -20 -10|012324545454545454545454545454545454545454545454545454|-39Ep8.o qTbC.o 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|LMT LMT NST NWT NPT BST BDT AHST HST HDT|-cd.m bK.C b0 a0 a0 b0 a0 a0 a0 90|01234256565656565656565656565656565678989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898|-48Pzs.L 1jVzf.p 1EX1d.m 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|LMT LMT AST AWT APT AHST AHDT YST AKST AKDT|-e0.o 9X.A a0 90 90 a0 90 90 90 80|01234256565656565656565656565656565678989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898|-48Pzs.L 1jVxs.n 1EX20.o 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Puerto_Rico|LMT AST AWT APT|4o.p 40 30 30|01231|-2Qi7z.z 1IUbz.z 7XT0 iu0|24e5","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|LMT CMT -04 -03 -02|3R.M 4g.M 40 30 20|012323232323232323232323232323232323232323234343434343434343|-331U6.c 125cn pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Catamarca|LMT CMT -04 -03 -02|4n.8 4g.M 40 30 20|012323232323232323232323232323232323232323234343434243432343|-331TA.Q 125bR.E pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Cordoba|LMT CMT -04 -03 -02|4g.M 4g.M 40 30 20|012323232323232323232323232323232323232323234343434243434343|-331TH.c 125c0 pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Jujuy|LMT CMT -04 -03 -02|4l.c 4g.M 40 30 20|0123232323232323232323232323232323232323232343434232434343|-331TC.M 125bT.A pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|","America/Argentina/La_Rioja|LMT CMT -04 -03 -02|4r.o 4g.M 40 30 20|0123232323232323232323232323232323232323232343434342343432343|-331Tw.A 125bN.o pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Mendoza|LMT CMT -04 -03 -02|4z.g 4g.M 40 30 20|012323232323232323232323232323232323232323234343423232432343|-331To.I 125bF.w pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|","America/Argentina/Rio_Gallegos|LMT CMT -04 -03 -02|4A.Q 4g.M 40 30 20|012323232323232323232323232323232323232323234343434343432343|-331Tn.8 125bD.U pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Salta|LMT CMT -04 -03 -02|4l.E 4g.M 40 30 20|0123232323232323232323232323232323232323232343434342434343|-331TC.k 125bT.8 pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|","America/Argentina/San_Juan|LMT CMT -04 -03 -02|4y.4 4g.M 40 30 20|0123232323232323232323232323232323232323232343434342343432343|-331Tp.U 125bG.I pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|","America/Argentina/San_Luis|LMT CMT -04 -03 -02|4p.o 4g.M 40 30 20|0123232323232323232323232323232323232323232343434232323432323|-331Ty.A 125bP.o pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|","America/Argentina/Tucuman|LMT CMT -04 -03 -02|4k.Q 4g.M 40 30 20|01232323232323232323232323232323232323232323434343424343234343|-331TD.8 125bT.U pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|","America/Argentina/Ushuaia|LMT CMT -04 -03 -02|4x.c 4g.M 40 30 20|012323232323232323232323232323232323232323234343434343432343|-331Tq.M 125bH.A pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|","America/Asuncion|LMT AMT -04 -03|3O.E 3O.E 40 30|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-3eLw9.k 1FGo0 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0|28e5","America/Panama|LMT CMT EST|5i.8 5j.A 50|012|-3eLuF.Q Iy01.s|15e5","America/Bahia_Banderas|LMT MST CST MDT CDT|71 70 60 60 50|01213121313131313131313131313131313142424242424242424242424242|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 otX0 2bmP0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|84e3","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Barbados|LMT AST ADT -0330|3W.t 40 30 3u|0121213121212121|-2m4k1.v 1eAN1.v RB0 1Bz0 Op0 1rb0 11d0 1jJc0 IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CWT CPT CDT|5Q.M 60 5u 50 50 50|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121215151|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu Rcu 7Bt0 Ni0 4nd0 Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu e9Au qn0 lxB0 mn0|57e3","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|LMT BMT -05 -04|4U.g 4U.g 50 40|01232|-3sTv3.I 1eIo0 38yo3.I 1PX0|90e5","America/Boise|LMT PST PDT MST MWT MPT MDT|7I.N 80 70 70 60 60 60|01212134536363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-3tFE0 1nEe0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDT CST CDT EST|0 70 60 60 60 60 50 50|012314141414141414141414141414141414141414141414141414141414567541414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-21Jc0 RO90 8x20 ix0 14HB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4","America/Cancun|LMT CST EST CDT EDT|5L.4 60 50 50 40|01213132431313131313131313131313131313131312|-1UQG0 2q3C0 2tx0 wgP0 1lb0 14p0 1lb0 14o0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|LMT CMT -0430 -04|4r.I 4r.E 4u 40|012323|-3eLvw.g ROnX.U 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Chicago|LMT CST CDT EST CWT CPT|5O.A 60 50 50 50 50|012121212121212121212121212121212121213121212121214512121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFG0 1nEe0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST MDT CDT|74.k 70 60 60 50|0121312424231313131313131313131313131313131313131313131313132|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|81e4","America/Ciudad_Juarez|LMT MST CST MDT CDT|75.U 70 60 60 50|01213124242313131313131313131313131313131313131313131313131321313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1wn0 cm0 EP0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Costa_Rica|LMT SJMT CST CDT|5A.d 5A.d 60 50|01232323232|-3eLun.L 1fyo0 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Coyhaique|LMT SMT -05 -04 -03|4M.g 4G.J 50 40 30|012131323232323232323434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-3eLvb.I MJbS.t fJAh.f 5knG.J 1Vzh.f jRAG.J 1pbh.f 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 11B0 1qL0 11B0|","America/Phoenix|LMT MST MDT MWT|7s.i 70 60 60|012121313121|-3tFF0 1nEe0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson_Creek|LMT PST PDT PWT PPT MST|80.U 80 70 70 70 70|01213412121212121212121212121212121212121212121212121212125|-3tofX.4 1nspX.4 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Dawson|LMT YST YDT YWT YPT YDDT PST PDT MST|9h.E 90 80 80 80 70 80 70 70|0121213415167676767676767676767676767676767676767676767676767676767676767676767676767676767678|-2MSeG.k GWpG.k 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|13e2","America/Denver|LMT MST MDT MWT MPT|6X.U 70 60 60 60|012121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFF0 1nEe0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 4Q00 8mp0 8lz0 SN0 1cL0 pHB0 83r0 AU0 5MN0 1Rz0 38N0 Wn0 1qP0 11z0 1o10 11z0 3NA0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|LMT PST PDT PWT PPT MST|8a.L 80 70 70 70 70|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121215|-3tofN.d 1nspN.d 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|LMT CST CDT CWT CPT EST EDT|5I.C 60 50 50 50 50 40|0121212134121212121212121212151565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02 -01|3q.U 30 20 10|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 2so0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|LMT NST NDT NST NDT NWT NPT AST ADT ADDT|41.E 3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|0121343434343434356343434343434343434343434343434343434343437878787878787878787878787878787878787878787879787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787|-3tojW.k 1nspt.c 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|LMT KMT EST EDT AST|4I.w 57.a 50 40 40|01232323232323232323232323232323232323232323232323232323232323232323232323243232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3eLvf.s RK0m.C 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 7jA0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|LMT QMT -05 -04|5j.k 5e 50 40|01232|-3eLuE.E 1DNzS.E 2uILK rz0|27e5","America/Guyana|LMT -04 -0345 -03|3Q.D 40 3J 30|01231|-2mf87.l 8Hc7.l 2r7bJ Ey0f|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|LMT HMT CST CDT|5t.s 5t.A 50 40|0123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3eLuu.w 1qx00.8 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST MDT|7n.Q 70 60 60|01213121313131|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 otX0 2bmP0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|LMT CST CDT CWT CPT EST|5K.u 60 50 50 50 50|01212134121212121212121212121212121212151212121212121212121212121212121212121212121212121252121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Marengo|LMT CST CDT CWT CPT EST EDT|5J.n 60 50 50 50 50 40|01212134121212121212121215656565656525656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Petersburg|LMT CST CDT CWT CPT EST EDT|5N.7 60 50 50 50 50 40|012121341212121212121212121215121212121212121212121252125656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Tell_City|LMT CST CDT CWT CPT EST EDT|5L.3 60 50 50 50 50 40|012121341212121212121212121512165652121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vevay|LMT CST CDT CWT CPT EST EDT|5E.g 60 50 50 50 50 40|0121213415656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vincennes|LMT CST CDT CWT CPT EST EDT|5O.7 60 50 50 50 50 40|012121341212121212121212121212121565652125656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Winamac|LMT CST CDT CWT CPT EST EDT|5K.p 60 50 50 50 50 40|012121341212121212121212121212121212121565652165656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Inuvik|-00 PST PDT MDT MST|0 80 70 60 70|01212121212121213434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-FnA0 L3K0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDT CST CDT|0 40 40 50 40 60 50|0123434343434343434343434343434343434343434343434343434343456343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-16K00 7nX0 iv0 14HB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|LMT KMT EST EDT|57.a 57.a 50 40|01232323232323232323232|-3eLuQ.O RK00 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|LMT LMT PST PWT PPT PDT YDT YST AKST AKDT|-f2.j 8V.F 80 70 70 70 80 90 90 80|0123425252525252525252525252625252578989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898|-48Pzs.L 1jVwq.s 1EX12.j 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|LMT CST CDT CWT CPT EST EDT|5H.2 60 50 50 50 50 40|01212121213412121212121212121212121212565656565656525656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Kentucky/Monticello|LMT CST CDT CWT CPT EST EDT|5D.o 60 50 50 50 50 40|01212134121212121212121212121212121212121212121212121212121212121212121212565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/La_Paz|LMT CMT BST -04|4w.A 4w.A 3w.A 40|0123|-3eLvr.o 1FIo0 13b0|19e5","America/Lima|LMT LMT -05 -04|58.c 58.A 50 40|01232323232323232|-3eLuP.M JcM0.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|LMT PST PDT PWT PPT|7Q.W 80 70 70 70|0121213412121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFE0 1nEe0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|LMT MMT CST EST CDT|5J.8 5J.c 60 50 50|01232424232324242|-3eLue.Q 1Mhc0.4 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|LMT FFMT AST ADT|44.k 44.k 40 30|01232|-3eLvT.E PTA0 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6u 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST MDT|75.E 70 60 60|01213121313131313131313131313131313131313131313131313131313131|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 otX0 2bmP0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|44e4","America/Menominee|LMT CST CDT CWT CPT EST|5O.r 60 50 50 50 50|012121341212152121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3pdG9.x 1jce9.x 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131|-1UQG0 2q3C0 24n0 wG10 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|11e5","America/Metlakatla|LMT LMT PST PWT PPT PDT AKST AKDT|-fd.G 8K.i 80 70 70 70 90 80|0123425252525252525252525252525252526767672676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-48Pzs.L 1jVwf.5 1EX1d.G 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST MDT CDT CWT|6A.A 70 60 60 50 50|012131242425242424242424242424242424242424242424242424242424242424242|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mxUf.k 2LHcf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|LMT EST AST ADT AWT APT|4j.8 50 40 30 30 30|0123232323232323232323245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3txvE.Q J4ME.Q CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT MST CST MDT CDT|6F.g 70 60 60 50|012131242424242424242424242424242424242424242424242424242424242|-1UQG0 dep0 8lz0 16p0 11z0 1dd0 2gmp0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|41e5","America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|LMT EST EDT EWT EPT|5h.w 50 40 40 40|012121212121212121212121212121212121212121212123412121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-32B6G.s UFdG.s 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1qL0 11B0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/New_York|LMT EST EDT EWT EPT|4U.2 50 40 40 40|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFH0 1nEe0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nome|LMT LMT NST NWT NPT BST BDT YST AKST AKDT|-cW.m b1.C b0 a0 a0 b0 a0 90 90 80|01234256565656565656565656565656565678989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898|-48Pzs.L 1jVyu.p 1EX1W.m 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|LMT MST MDT MWT MPT CST CDT|6L.7 70 60 60 60 60 50|0121213412121212121212121212121212121212121212121212121212121212121212121212121212121212121212125656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFF0 1nEe0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/Center|LMT MST MDT MWT MPT CST CDT|6J.c 70 60 60 60 60 50|0121213412121212121212121212121212121212121212121212121212125656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFF0 1nEe0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/New_Salem|LMT MST MDT MWT MPT CST CDT|6J.D 70 60 60 60 60 50|0121213412121212121212121212121212121212121212121212121212121212121212121212121212565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFF0 1nEe0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Ojinaga|LMT MST CST MDT CDT|6V.E 70 60 60 50|0121312424231313131313131313131313131313131313131313131313132424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1wn0 Rc0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Port-au-Prince|LMT PPMT EST EDT|4N.k 4N 50 40|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3eLva.E 15RLX.E 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Punta_Arenas|LMT SMT -05 -04 -03|4H.E 4G.J 50 40 30|01213132323232323232343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-3eLvg.k MJbX.5 fJAh.f 5knG.J 1Vzh.f jRAG.J 1pbh.f 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|","America/Winnipeg|LMT CST CDT CWT CPT|6s.A 60 50 50 50|0121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3kLtv.o 1a3bv.o WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Rankin_Inlet|-00 CST CDT EST|0 60 50 50|01212121212121212121212121212121212121212121212121212121212321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-vDc0 Bjk0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDT EST|0 60 50 50|01212121212121212121212121212121212121212121212121212121212321212121212321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-SnA0 103I0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|LMT SMT -05 -04 -03|4G.J 4G.J 50 40 30|0121313232323232323432343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-3eLvh.f MJc0 fJAh.f 5knG.J 1Vzh.f jRAG.J 1pbh.f 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 hX0 1q10 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0|62e5","America/Santo_Domingo|LMT SDMT EST EDT -0430 AST|4D.A 4E 50 40 4u 40|012324242424242525|-3eLvk.o 1Jic0.o 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|012132323232323232323232323232323232323232323232323232323232323232323232323232323232323232121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 2pA0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|452","America/Sitka|LMT LMT PST PWT PPT PDT YST AKST AKDT|-eW.L 91.d 80 70 70 70 90 90 80|0123425252525252525252525252525252567878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787|-48Pzs.L 1jVwu 1EX0W.L 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|LMT NST NDT NST NDT NWT NPT NDDT|3u.Q 3u.Q 2u.Q 3u 2u 2u 2u 1u|012121212121212121212121212121212121213434343434343435634343434343434343434343434343434343434343434343434343434343434343434343434343434343437343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3tokt.8 1l020 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Vancouver|LMT PST PDT PWT PPT|8c.s 80 70 70 70|01213412121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tofL.w 1nspL.w 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|LMT YST YDT YWT YPT YDDT PST PDT MST|90.c 90 80 80 80 70 80 70 70|0121213415167676767676767676767676767676767676767676767676767676767676767676767676767676767678|-2MSeX.M GWpX.M 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 LA0 ytd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|23e3","America/Yakutat|LMT LMT YST YWT YPT YDT AKST AKDT|-eF.5 9i.T 90 80 80 80 90 80|0123425252525252525252525252525252526767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-48Pzs.L 1jVwL.G 1EX1F.5 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","Antarctica/Casey|-00 +08 +11|0 -80 -b0|012121212121212121|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10 1o30 14k0 1kr0 12l0 1o01 14kX 1lf1 14kX 1lf1 13bX|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Pacific/Port_Moresby|LMT PMMT +10|-9M.E -9M.w -a0|012|-3D8VM.E AvA0.8|25e4","Antarctica/Macquarie|-00 AEST AEDT|0 -a0 -b0|0121012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2OPc0 Fb40 1a00 4SK0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 3Co0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|LMT NZMT NZST NZST NZDT|-bD.4 -bu -cu -c0 -d0|012131313131313131313131313134343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-46jLD.4 2nEO9.4 Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +07 +05|0 -70 -50|01012|-tjA0 1rWh0 1Nj0 1aTv0|25","Europe/Berlin|LMT CET CEST CEMT|-R.s -10 -20 -30|012121212121212321212321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-36RcR.s UbWR.s 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|41e5","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|0123232323232323232323212323232323232323232323232321|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 L4m0|15e5","Asia/Amman|LMT EET EEST +03|-2n.I -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212123|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 LA0 1C00|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Baghdad|LMT BMT +03 +04|-2V.E -2V.A -30 -40|0123232323232323232323232323232323232323232323232323232|-3eLCV.E 18ao0.4 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|LMT BMT +07|-6G.4 -6G.4 -70|012|-3D8SG.4 1C000|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|","Asia/Beirut|LMT EET EEST|-2m -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3D8Om 1BWom 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|42e4","Asia/Kolkata|LMT HMT MMT IST +0630|-5R.s -5R.k -5l.a -5u -6u|01234343|-4Fg5R.s BKo0.8 1rDcw.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Shanghai|LMT CST CDT|-85.H -80 -90|012121212121212121212121212121|-2M0U5.H Iuo5.H 18n0 OjB0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|LMT MMT +0530 +06 +0630|-5j.o -5j.w -5u -60 -6u|012342432|-3D8Rj.o 13inX.Q 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|LMT HMT +0630 +0530 +06 +07|-61.E -5R.k -6u -5u -60 -70|01232454|-3eLG1.E 26008.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST +03|-2p.c -20 -30 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212123|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le80 1dnX0 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|","Asia/Gaza|LMT EET EEST IST IDT|-2h.Q -20 -30 -20 -30|0121212121212121212121212121212121234343434343434343434343434343431212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2MBCh.Q 1Azeh.Q MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 XA0 1qp0 1cN0 1cL0 1a10 1fz0 17d0 1in0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1lb0 14p0 1in0 17d0 1cL0 1cN0 19X0 1fB0 14n0 jB0 2L0 11B0 WL0 gN0 8n0 11B0 TX0 gN0 bb0 11B0 On0 jB0 dX0 11B0 Lz0 gN0 mn0 WN0 IL0 gN0 pb0 WN0 Db0 jB0 rX0 11B0 xz0 gN0 xz0 11B0 rX0 jB0 An0 11B0 pb0 gN0 IL0 WN0 mn0 gN0 Lz0 WN0 gL0 jB0 On0 11B0 bb0 gN0 TX0 11B0 5z0 jB0 WL0 11B0 2L0 jB0 11z0 1ip0 19X0 1cN0 1cL0 17d0 1in0 14p0 1lb0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1nX0 14p0 1in0 17d0 1fz0 1a10 19X0 1fB0 17b0 gN0 2L0 WN0 14n0 gN0 5z0 WN0 WL0 jB0 8n0 11B0 Rb0 gN0 dX0 11B0 Lz0 jB0 gL0 11B0 IL0 jB0 mn0 WN0 FX0 gN0 rX0 WN0 An0 jB0 uL0 11B0 uL0 gN0 An0 11B0 rX0 gN0 Db0 11B0 mn0 jB0 FX0 11B0 jz0 gN0 On0 WN0 dX0 jB0 Rb0 WN0 bb0 jB0 TX0 11B0 5z0 gN0 11z0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0|18e5","Asia/Hebron|LMT EET EEST IST IDT|-2k.n -20 -30 -20 -30|012121212121212121212121212121212123434343434343434343434343434343121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2MBCk.n 1Azek.n MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 XA0 1qp0 1cN0 1cL0 1a10 1fz0 17d0 1in0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1lb0 14p0 1in0 17d0 1cL0 1cN0 19X0 1fB0 14n0 jB0 2L0 11B0 WL0 gN0 8n0 11B0 TX0 gN0 bb0 11B0 On0 jB0 dX0 11B0 Lz0 gN0 mn0 WN0 IL0 gN0 pb0 WN0 Db0 jB0 rX0 11B0 xz0 gN0 xz0 11B0 rX0 jB0 An0 11B0 pb0 gN0 IL0 WN0 mn0 gN0 Lz0 WN0 gL0 jB0 On0 11B0 bb0 gN0 TX0 11B0 5z0 jB0 WL0 11B0 2L0 jB0 11z0 1ip0 19X0 1cN0 1cL0 17d0 1in0 14p0 1lb0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1nX0 14p0 1in0 17d0 1fz0 1a10 19X0 1fB0 17b0 gN0 2L0 WN0 14n0 gN0 5z0 WN0 WL0 jB0 8n0 11B0 Rb0 gN0 dX0 11B0 Lz0 jB0 gL0 11B0 IL0 jB0 mn0 WN0 FX0 gN0 rX0 WN0 An0 jB0 uL0 11B0 uL0 gN0 An0 11B0 rX0 gN0 Db0 11B0 mn0 jB0 FX0 11B0 jz0 gN0 On0 WN0 dX0 jB0 Rb0 WN0 bb0 jB0 TX0 11B0 5z0 gN0 11z0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.u -76.u -70 -80 -90|0123423232|-2yC76.u bK00 1h7b6.u 5lz0 18o0 3Oq0 k5c0 aVX0 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|LMT IMT +07 +08 +09|-6V.5 -6V.5 -70 -80 -90|012343434343434343434343234343434343434343434343434343434343434343|-3D8SV.5 1Bxc0 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|LMT IMT EET EEST +03 +04|-1T.Q -1U.U -20 -30 -30 -40|01232323232323232323232323232323232323232323232345423232323232323232323232323232323232323232323232323232323232323234|-3D8NT.Q 1ePXW.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|LMT BMT +0720 +0730 +09 +08 WIB|-77.c -77.c -7k -7u -90 -80 -70|012343536|-49jH7.c 2hiLL.c luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|LMT JMT IST IDT IDDT|-2k.S -2k.E -20 -30 -40|012323232323232432323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3D8Ok.S 1wvA0.e SyOk.E MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 3LA0 Eo0 oo0 1co0 1dA0 16o0 10M0 1jc0 1tA0 14o0 1cM0 1a00 11A0 1Nc0 Ao0 1Nc0 Ao0 1Ko0 LA0 1o00 WM0 EQK0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|LMT +04 +0430|-4A.M -40 -4u|012|-3eLEA.M 2dTcA.M|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|LMT SMT +07 +0720 +0730 +09 +08|-6T.p -6T.p -70 -7k -7u -90 -80|01234546|-2M0ST.p aIM0 17anT.p l5XE 17bO 8Fyu 1so10|71e5","Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|LMT LMT PST PDT JST|fU.8 -83.Q -80 -90 -90|012323432323232|-54m83.Q 2d8A3.Q 1urM0 un0 bW10 nb0 7qo0 1MM0 klB0 lz0 TwN0 1bb0 uNB0 rz0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5","Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 Mv90|","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4","Asia/Rangoon|LMT RMT +0630 +09|-6o.L -6o.L -6u -90|01232|-3D8So.L 1BnA0 SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|LMT CST JST CDT|-86 -80 -90 -90|012131313131313131313131313131313131313131|-30bk6 1FDc6 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|LMT TBMT +03 +04 +05|-2X.b -2X.b -30 -40 -50|01234343434343434343434323232343434343434343434323|-3D8OX.b 1LUM0 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +0430 +04 +05|-3p.I -3p.I -3u -4u -40 -50|012345423232323232323232323232323232323232323232323232323232323232323232|-2btDp.I Llc0 1FHaT.I 1pc0 120u Rc0 Dc0 1iMu JX0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|LMT JST JDT|-9i.X -90 -a0|0121212121|-3jE90 2qSo0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|LMT HMT -02 -01 +00 WET WEST|1G.E 1S.w 20 10 0 0 -10|012323232323232323232323232323232323232323232343234323432343232323232323232323232323232323232323232323434343434343434343434356434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3tomh.k 18aoh.k aPX0 Sp0 M00 1vb0 SN0 1vb0 SN0 1vb0 Td0 1vb0 SN0 1vb0 6600 18o0 3I00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1uo0 1c00 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 CT90 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 Ap0 An0 wo0 Eo0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|LMT BMT BST AST ADT|4j.i 4j.i 3j.i 40 30|0121213434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3eLvE.G 16mo0 1bb0 1i10 11X0 ru30 thbE.G 1PX0 11B0 1tz0 Rd0 1zb0 Op0 1zb0 3I10 Lz0 1EN0 FX0 1HB0 FX0 1Kp0 Db0 1Kp0 Db0 1Kp0 FX0 93d0 11z0 GAp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|LMT FMT -01 +00 +01 WET WEST|17.A 17.A 10 0 -10 0 -10|01232323232323232323232323232323232323232323234323432343234323232323232323232323232323232323232323232356565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tomQ.o 18anQ.o aPX0 Sp0 M00 1vb0 SN0 1vb0 SN0 1vb0 Td0 1vb0 SN0 1vb0 6600 18o0 3I00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1uo0 1c00 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 BJ90 1a00 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e4","Atlantic/South_Georgia|LMT -02|2q.8 20|01|-3eLxx.Q|30","Atlantic/Stanley|LMT SMT -04 -03 -02|3P.o 3P.o 40 30 20|0123232323232323434323232323232323232323232323232323232323232323232323|-3eLw8.A S200 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|LMT AEST AEDT|-a4.Q -a0 -b0|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-32oW4.Q RlC4.Q xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|LMT ACST ACST ACDT|-9e.k -90 -9u -au|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-32oVe.k ak0e.k H1Bu xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|LMT AEST AEDT|-ac.8 -a0 -b0|012121212121212121|-32Bmc.8 Ry2c.8 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|LMT AEST ACST ACST ACDT|-9p.M -a0 -90 -9u -au|0123434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-32oVp.M 3Lzp.M 6wp0 H1Bu xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Hobart|LMT AEST AEDT|-9N.g -a0 -b0|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-3109N.g Pk1N.g 1a00 1qM0 Oo0 1zc0 Oo0 TAo0 yM0 1cM0 1cM0 1fA0 1a00 VfA0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Darwin|LMT ACST ACST ACDT|-8H.k -90 -9u -au|01232323232|-32oUH.k ajXH.k H1Bu xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00|12e4","Australia/Eucla|LMT +0845 +0945|-8z.s -8J -9J|01212121212121212121|-30nIz.s PkpO.s xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Lord_Howe|LMT AEST +1030 +1130 +11|-aA.k -a0 -au -bu -b0|01232323232424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424|-32oWA.k 3tzAA.k 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|LMT AEST AEDT|-9T.U -a0 -b0|0121212121212121212121|-32BlT.U Ry1T.U xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|LMT AEST AEDT|-9D.Q -a0 -b0|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-32oVD.Q RlBD.Q xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|LMT AWST AWDT|-7H.o -80 -90|01212121212121212121|-30nHH.o PkpH.o xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","Europe/Brussels|LMT BMT WET CET CEST WEST|-h.u -h.u 0 -10 -20 -10|012343434325252525252525252525252525252525252525252525434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3D8Mh.u u1Ah.u SO00 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|21e5","Pacific/Easter|LMT EMT -07 -06 -05|7h.s 7h.s 70 60 50|0123232323232323232323232323234343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-3eLsG.w 1HRc0 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0|30e2","Europe/Athens|LMT AMT EET EEST CEST CET|-1y.Q -1y.Q -20 -30 -20 -10|0123234545232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-30SNy.Q OMM1 CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|35e5","Europe/Dublin|LMT DMT IST GMT BST IST|p.l p.l -y.D 0 -10 -10|012343434343435353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353|-3BHby.D 1ra20 Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|12e5","Etc/GMT-0|GMT|0|0||","Etc/GMT-1|+01|-10|0||","Etc/GMT-10|+10|-a0|0||","Etc/GMT-11|+11|-b0|0||","Etc/GMT-12|+12|-c0|0||","Etc/GMT-13|+13|-d0|0||","Etc/GMT-14|+14|-e0|0||","Etc/GMT-2|+02|-20|0||","Etc/GMT-3|+03|-30|0||","Etc/GMT-4|+04|-40|0||","Etc/GMT-5|+05|-50|0||","Etc/GMT-6|+06|-60|0||","Etc/GMT-7|+07|-70|0||","Etc/GMT-8|+08|-80|0||","Etc/GMT-9|+09|-90|0||","Etc/GMT+1|-01|10|0||","Etc/GMT+10|-10|a0|0||","Etc/GMT+11|-11|b0|0||","Etc/GMT+12|-12|c0|0||","Etc/GMT+2|-02|20|0||","Etc/GMT+3|-03|30|0||","Etc/GMT+4|-04|40|0||","Etc/GMT+5|-05|50|0||","Etc/GMT+6|-06|60|0||","Etc/GMT+7|-07|70|0||","Etc/GMT+8|-08|80|0||","Etc/GMT+9|-09|90|0||","Etc/UTC|UTC|0|0||","Europe/Andorra|LMT WET CET CEST|-6.4 0 -10 -20|0123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2M0M6.4 1Pnc6.4 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5","Europe/London|LMT GMT BST BDST|1.f 0 -10 -20|01212121212121212121212121212121212121212121212121232323232321212321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-4VgnW.J 2KHdW.J Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|LMT CET CEST|-1m -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3topm 2juLm 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|12e5","Europe/Prague|LMT PMT CET CEST GMT|-V.I -V.I -10 -20 0|0123232323232323232423232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-4QbAV.I 1FDc0 XPaV.I 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|13e5","Europe/Bucharest|LMT BMT EET EEST|-1I.o -1I.o -20 -30|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3awpI.o 1AU00 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|LMT CET CEST|-1g.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3cK1g.k 124Lg.k 11d0 1iO0 11A0 1o00 11A0 1oo0 11c0 1lc0 17c0 O1V0 3Nf0 WM0 1fA0 1cM0 1cM0 1oJ0 1dd0 1020 1fX0 1cp0 1cM0 1cM0 1cM0 1fA0 1a00 bhy0 Rb0 1wr0 Rc0 1C00 LA0 1C00 LA0 SNW0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cO0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|LMT BMT CET CEST|-y.8 -t.K -10 -20|0123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-4HyMy.8 1Dw04.m 1SfAt.K 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|LMT CMT BMT EET EEST CEST CET MSK MSD|-1T.k -1T -1I.o -20 -30 -20 -10 -30 -40|0123434343434343434345656578787878787878787878434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3D8NT.k 1wNA0.k wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|67e4","Europe/Gibraltar|LMT GMT BST BDST CET CEST|l.o 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123232323232121232121212121212121212145454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-3BHbC.A 1ra1C.A Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|LMT HMT EET EEST|-1D.N -1D.N -20 -30|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3H0ND.N 1Iu00 OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|LMT CET CEST EET EEST MSK MSD +03|-1m -10 -20 -20 -30 -30 -40 -30|012121212121212343565656565656565654343434343434343434343434343434343434343434373|-36Rdm UbXm 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|LMT KMT EET MSK CEST CET MSD EEST|-22.4 -22.4 -20 -30 -20 -10 -40 -30|01234545363636363636363636367272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-3D8O2.4 1LUM0 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o10 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05 MSD MSK MSK|-3i.M -30 -40 -50 -40 -30 -40|0123232323232323232454524545454545454545454545454545454545454565|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 2pz0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121212124121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 M00 1vb0 SN0 1vb0 SN0 1vb0 Td0 1vb0 SN0 1vb0 6600 18o0 3I00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1uo0 1c00 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 oiK0 1cM0 1cM0 1fB0 1cM0 1cM0 1cM0 1fA0 1a00 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Europe/Madrid|LMT WET WEST WEMT CET CEST|e.I 0 -10 -20 -10 -20|0121212121212121212321454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2M0M0 G5z0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|62e5","Europe/Malta|LMT CET CEST|-W.4 -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-35rcW.4 SXzW.4 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|LMT MMT EET MSK CEST CET MSD EEST +03|-1O.g -1O -20 -30 -20 -10 -40 -30 -30|012345454363636363636363636372727272727272727272727272727272727272728|-3D8NO.g 1LUM0.g eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Paris|LMT PMT WET WEST CEST CET WEMT|-9.l -9.l 0 -10 -20 -10 -20|01232323232323232323232323232323232323232323232323234545463654545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-3bQ09.l MDA0 cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|11e6","Europe/Moscow|LMT MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|01232434565756865656565656565656565698656565656565656565656565656565656565656a6|-3D8Ou.h 1sQM0 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Riga|LMT RMT LST EET MSK CEST CET MSD EEST|-1A.y -1A.y -2A.y -20 -30 -20 -10 -40 -30|0121213456565647474747474747474838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383|-3D8NA.y 1xde0 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|64e4","Europe/Rome|LMT RMT CET CEST|-N.U -N.U -10 -20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-4aU0N.U 15snN.U T000 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|","Europe/Simferopol|LMT SMT EET MSK CEST CET MSD EEST MSK|-2g.o -2g -20 -30 -20 -10 -40 -30 -40|0123454543636363636363636363272727636363727272727272727272727272727272727283|-3D8Og.o 1LUM0.o eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eN0 1cM0 1cM0 1cM0 1cM0 dV0 WO0 1cM0 1cM0 1fy0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|LMT IMT EET CET CEST EEST|-1x.g -1U.U -20 -10 -20 -30|0123434325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-3D8Nx.g AiLA.k 1UFeU.U WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|12e5","Europe/Tallinn|LMT TMT CET CEST EET MSK MSD EEST|-1D -1D -10 -20 -20 -30 -40 -30|0123214532323565656565656565657474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474|-3D8ND 1wI00 teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5","Europe/Vienna|LMT CET CEST|-15.l -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-36Rd5.l UbX5.l 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|LMT WMT KMT CET EET MSK CEST MSD EEST|-1F.g -1o -1z.A -10 -20 -30 -20 -40 -30|0123435636365757575757575757584848484848484848463648484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484|-3D8NF.g 1u5Ah.g 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05 MSD MSK MSK|-2V.E -30 -40 -50 -40 -30 -40|012323232323232324545452454545454545454545454545454545454545456525|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1fA0 1cM0 2pz0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0 5gn0|10e5","Europe/Warsaw|LMT WMT CET CEST EET EEST|-1o -1o -10 -20 -20 -30|0123232345423232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3D8No 1qDA0 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|17e5","Pacific/Honolulu|LMT HST HDT HWT HPT HST|av.q au 9u 9u 9u a0|01213415|-3061s.y 1uMdW.y 8x0 lef0 8wWu iAu 46p0|37e4","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Maldives|LMT MMT +05|-4S -4S -50|012|-3D8QS 3eLA0|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Pacific/Kwajalein|LMT +11 +10 +09 -12 +12|-b9.k -b0 -a0 -90 c0 -c0|0123145|-2M0X9.k 1rDA9.k akp0 6Up0 12ry0 Wan0|14e3","Pacific/Chatham|LMT +1215 +1245 +1345|-cd.M -cf -cJ -dJ|0123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-46jMd.M 37RbW.M 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|LMT LMT -1130 -11 -10 +14 +13|-cx.4 bq.U bu b0 a0 -e0 -d0|012343456565656565656565656|-38Fox.4 J1A0 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0|37e3","Pacific/Bougainville|LMT PMMT +10 +09 +11|-am.g -9M.w -a0 -90 -b0|012324|-3D8Wm.g AvAx.I 1TCLM.w 7CN0 2MQp0|18e4","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|012121212121212121212121|-2l9nd.g 2uNXd.g Dc0 n610 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-00 -12 -11 +13|0 c0 b0 -d0|0123|-1iIo0 1GsA0 B7X0|1","Pacific/Fakaofo|LMT -11 +13|bo.U b0 -d0|012|-2M0Az.4 4ufXz.4|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|012121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0|88e4","Pacific/Tarawa|LMT +12|-bw.4 -c0|01|-2M0Xw.4|29e3","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|LMT LMT GST +09 GDT ChST|el -9D -a0 -90 -b0 -a0|0123242424242424242425|-54m9D 2glc0 1DFbD 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4","Pacific/Kiritimati|LMT -1040 -10 +14|at.k aE a0 -e0|0123|-2M0Bu.E 3bIMa.E B7Xk|51e2","Pacific/Kosrae|LMT LMT +11 +09 +10 +12|d8.4 -aP.U -b0 -90 -a0 -c0|0123243252|-54maP.U 2glc0 xsnP.U axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT LMT SST|-cB.c bm.M b0|012|-38FoB.c J1A0|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3","Pacific/Niue|LMT -1120 -11|bj.E bk b0|012|-FScE.k suo0.k|12e2","Pacific/Norfolk|LMT +1112 +1130 +1230 +11 +12|-bb.Q -bc -bu -cu -b0 -c0|0123245454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2M0Xb.Q 21ILX.Q W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Palau|LMT LMT +09|f2.4 -8V.U -90|012|-54m8V.U 2glc0|21e3","Pacific/Pitcairn|LMT -0830 -08|8E.k 8u 80|012|-2M0Dj.E 3UVXN.E|56","Pacific/Rarotonga|LMT LMT -1030 -0930 -10|-dk.U aD.4 au 9u a0|01234343434343434343434343434|-2Otpk.U 28zc0 13tbO.U IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|LMT +1220 +13 +14|-cj.c -ck -d0 -e0|01232323232|-XbMj.c BgLX.c 1yndk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3"],links:["Africa/Abidjan|Africa/Accra","Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/Reykjavik","Africa/Abidjan|Atlantic/St_Helena","Africa/Abidjan|Iceland","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Chicago|CST6CDT","America/Chicago|US/Central","America/Denver|America/Shiprock","America/Denver|MST7MDT","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|America/Yellowknife","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Godthab|America/Nuuk","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Iqaluit|America/Pangnirtung","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|PST8PDT","America/Los_Angeles|US/Pacific","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|EST5EDT","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Atikokan","America/Panama|America/Cayman","America/Panama|America/Coral_Harbour","America/Panama|EST","America/Phoenix|America/Creston","America/Phoenix|MST","America/Phoenix|US/Arizona","America/Puerto_Rico|America/Anguilla","America/Puerto_Rico|America/Antigua","America/Puerto_Rico|America/Aruba","America/Puerto_Rico|America/Blanc-Sablon","America/Puerto_Rico|America/Curacao","America/Puerto_Rico|America/Dominica","America/Puerto_Rico|America/Grenada","America/Puerto_Rico|America/Guadeloupe","America/Puerto_Rico|America/Kralendijk","America/Puerto_Rico|America/Lower_Princes","America/Puerto_Rico|America/Marigot","America/Puerto_Rico|America/Montserrat","America/Puerto_Rico|America/Port_of_Spain","America/Puerto_Rico|America/St_Barthelemy","America/Puerto_Rico|America/St_Kitts","America/Puerto_Rico|America/St_Lucia","America/Puerto_Rico|America/St_Thomas","America/Puerto_Rico|America/St_Vincent","America/Puerto_Rico|America/Tortola","America/Puerto_Rico|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|America/Nassau","America/Toronto|America/Nipigon","America/Toronto|America/Thunder_Bay","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|America/Rainy_River","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Bangkok|Indian/Christmas","Asia/Brunei|Asia/Kuching","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Dubai|Indian/Mahe","Asia/Dubai|Indian/Reunion","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Rangoon|Indian/Cocos","Asia/Riyadh|Antarctica/Syowa","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Choibalsan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Currie","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT-0|Etc/GMT","Etc/GMT-0|Etc/GMT+0","Etc/GMT-0|Etc/GMT0","Etc/GMT-0|Etc/Greenwich","Etc/GMT-0|GMT","Etc/GMT-0|GMT+0","Etc/GMT-0|GMT-0","Etc/GMT-0|GMT0","Etc/GMT-0|Greenwich","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Athens|EET","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Berlin|Arctic/Longyearbyen","Europe/Berlin|Atlantic/Jan_Mayen","Europe/Berlin|Europe/Copenhagen","Europe/Berlin|Europe/Oslo","Europe/Berlin|Europe/Stockholm","Europe/Brussels|CET","Europe/Brussels|Europe/Amsterdam","Europe/Brussels|Europe/Luxembourg","Europe/Brussels|MET","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Kiev|Europe/Kyiv","Europe/Kiev|Europe/Uzhgorod","Europe/Kiev|Europe/Zaporozhye","Europe/Lisbon|Portugal","Europe/Lisbon|WET","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Paris|Europe/Monaco","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Maldives|Indian/Kerguelen","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Easter|Chile/EasterIsland","Pacific/Enderbury|Pacific/Kanton","Pacific/Guadalcanal|Pacific/Pohnpei","Pacific/Guadalcanal|Pacific/Ponape","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|HST","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Port_Moresby|Antarctica/DumontDUrville","Pacific/Port_Moresby|Pacific/Chuuk","Pacific/Port_Moresby|Pacific/Truk","Pacific/Port_Moresby|Pacific/Yap","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Majuro","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"],countries:["AD|Europe/Andorra","AE|Asia/Dubai","AF|Asia/Kabul","AG|America/Puerto_Rico America/Antigua","AI|America/Puerto_Rico America/Anguilla","AL|Europe/Tirane","AM|Asia/Yerevan","AO|Africa/Lagos Africa/Luanda","AQ|Antarctica/Casey Antarctica/Davis Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Troll Antarctica/Vostok Pacific/Auckland Pacific/Port_Moresby Asia/Riyadh Asia/Singapore Antarctica/McMurdo Antarctica/DumontDUrville Antarctica/Syowa","AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia","AS|Pacific/Pago_Pago","AT|Europe/Vienna","AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla Asia/Tokyo","AW|America/Puerto_Rico America/Aruba","AX|Europe/Helsinki Europe/Mariehamn","AZ|Asia/Baku","BA|Europe/Belgrade Europe/Sarajevo","BB|America/Barbados","BD|Asia/Dhaka","BE|Europe/Brussels","BF|Africa/Abidjan Africa/Ouagadougou","BG|Europe/Sofia","BH|Asia/Qatar Asia/Bahrain","BI|Africa/Maputo Africa/Bujumbura","BJ|Africa/Lagos Africa/Porto-Novo","BL|America/Puerto_Rico America/St_Barthelemy","BM|Atlantic/Bermuda","BN|Asia/Kuching Asia/Brunei","BO|America/La_Paz","BQ|America/Puerto_Rico America/Kralendijk","BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco","BS|America/Toronto America/Nassau","BT|Asia/Thimphu","BW|Africa/Maputo Africa/Gaborone","BY|Europe/Minsk","BZ|America/Belize","CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Toronto America/Iqaluit America/Winnipeg America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Inuvik America/Dawson_Creek America/Fort_Nelson America/Whitehorse America/Dawson America/Vancouver America/Panama America/Puerto_Rico America/Phoenix America/Blanc-Sablon America/Atikokan America/Creston","CC|Asia/Yangon Indian/Cocos","CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi","CF|Africa/Lagos Africa/Bangui","CG|Africa/Lagos Africa/Brazzaville","CH|Europe/Zurich","CI|Africa/Abidjan","CK|Pacific/Rarotonga","CL|America/Santiago America/Coyhaique America/Punta_Arenas Pacific/Easter","CM|Africa/Lagos Africa/Douala","CN|Asia/Shanghai Asia/Urumqi","CO|America/Bogota","CR|America/Costa_Rica","CU|America/Havana","CV|Atlantic/Cape_Verde","CW|America/Puerto_Rico America/Curacao","CX|Asia/Bangkok Indian/Christmas","CY|Asia/Nicosia Asia/Famagusta","CZ|Europe/Prague","DE|Europe/Zurich Europe/Berlin Europe/Busingen","DJ|Africa/Nairobi Africa/Djibouti","DK|Europe/Berlin Europe/Copenhagen","DM|America/Puerto_Rico America/Dominica","DO|America/Santo_Domingo","DZ|Africa/Algiers","EC|America/Guayaquil Pacific/Galapagos","EE|Europe/Tallinn","EG|Africa/Cairo","EH|Africa/El_Aaiun","ER|Africa/Nairobi Africa/Asmara","ES|Europe/Madrid Africa/Ceuta Atlantic/Canary","ET|Africa/Nairobi Africa/Addis_Ababa","FI|Europe/Helsinki","FJ|Pacific/Fiji","FK|Atlantic/Stanley","FM|Pacific/Kosrae Pacific/Port_Moresby Pacific/Guadalcanal Pacific/Chuuk Pacific/Pohnpei","FO|Atlantic/Faroe","FR|Europe/Paris","GA|Africa/Lagos Africa/Libreville","GB|Europe/London","GD|America/Puerto_Rico America/Grenada","GE|Asia/Tbilisi","GF|America/Cayenne","GG|Europe/London Europe/Guernsey","GH|Africa/Abidjan Africa/Accra","GI|Europe/Gibraltar","GL|America/Nuuk America/Danmarkshavn America/Scoresbysund America/Thule","GM|Africa/Abidjan Africa/Banjul","GN|Africa/Abidjan Africa/Conakry","GP|America/Puerto_Rico America/Guadeloupe","GQ|Africa/Lagos Africa/Malabo","GR|Europe/Athens","GS|Atlantic/South_Georgia","GT|America/Guatemala","GU|Pacific/Guam","GW|Africa/Bissau","GY|America/Guyana","HK|Asia/Hong_Kong","HN|America/Tegucigalpa","HR|Europe/Belgrade Europe/Zagreb","HT|America/Port-au-Prince","HU|Europe/Budapest","ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura","IE|Europe/Dublin","IL|Asia/Jerusalem","IM|Europe/London Europe/Isle_of_Man","IN|Asia/Kolkata","IO|Indian/Chagos","IQ|Asia/Baghdad","IR|Asia/Tehran","IS|Africa/Abidjan Atlantic/Reykjavik","IT|Europe/Rome","JE|Europe/London Europe/Jersey","JM|America/Jamaica","JO|Asia/Amman","JP|Asia/Tokyo","KE|Africa/Nairobi","KG|Asia/Bishkek","KH|Asia/Bangkok Asia/Phnom_Penh","KI|Pacific/Tarawa Pacific/Kanton Pacific/Kiritimati","KM|Africa/Nairobi Indian/Comoro","KN|America/Puerto_Rico America/St_Kitts","KP|Asia/Pyongyang","KR|Asia/Seoul","KW|Asia/Riyadh Asia/Kuwait","KY|America/Panama America/Cayman","KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral","LA|Asia/Bangkok Asia/Vientiane","LB|Asia/Beirut","LC|America/Puerto_Rico America/St_Lucia","LI|Europe/Zurich Europe/Vaduz","LK|Asia/Colombo","LR|Africa/Monrovia","LS|Africa/Johannesburg Africa/Maseru","LT|Europe/Vilnius","LU|Europe/Brussels Europe/Luxembourg","LV|Europe/Riga","LY|Africa/Tripoli","MA|Africa/Casablanca","MC|Europe/Paris Europe/Monaco","MD|Europe/Chisinau","ME|Europe/Belgrade Europe/Podgorica","MF|America/Puerto_Rico America/Marigot","MG|Africa/Nairobi Indian/Antananarivo","MH|Pacific/Tarawa Pacific/Kwajalein Pacific/Majuro","MK|Europe/Belgrade Europe/Skopje","ML|Africa/Abidjan Africa/Bamako","MM|Asia/Yangon","MN|Asia/Ulaanbaatar Asia/Hovd","MO|Asia/Macau","MP|Pacific/Guam Pacific/Saipan","MQ|America/Martinique","MR|Africa/Abidjan Africa/Nouakchott","MS|America/Puerto_Rico America/Montserrat","MT|Europe/Malta","MU|Indian/Mauritius","MV|Indian/Maldives","MW|Africa/Maputo Africa/Blantyre","MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Chihuahua America/Ciudad_Juarez America/Ojinaga America/Mazatlan America/Bahia_Banderas America/Hermosillo America/Tijuana","MY|Asia/Kuching Asia/Singapore Asia/Kuala_Lumpur","MZ|Africa/Maputo","NA|Africa/Windhoek","NC|Pacific/Noumea","NE|Africa/Lagos Africa/Niamey","NF|Pacific/Norfolk","NG|Africa/Lagos","NI|America/Managua","NL|Europe/Brussels Europe/Amsterdam","NO|Europe/Berlin Europe/Oslo","NP|Asia/Kathmandu","NR|Pacific/Nauru","NU|Pacific/Niue","NZ|Pacific/Auckland Pacific/Chatham","OM|Asia/Dubai Asia/Muscat","PA|America/Panama","PE|America/Lima","PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier","PG|Pacific/Port_Moresby Pacific/Bougainville","PH|Asia/Manila","PK|Asia/Karachi","PL|Europe/Warsaw","PM|America/Miquelon","PN|Pacific/Pitcairn","PR|America/Puerto_Rico","PS|Asia/Gaza Asia/Hebron","PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores","PW|Pacific/Palau","PY|America/Asuncion","QA|Asia/Qatar","RE|Asia/Dubai Indian/Reunion","RO|Europe/Bucharest","RS|Europe/Belgrade","RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Volgograd Europe/Astrakhan Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr","RW|Africa/Maputo Africa/Kigali","SA|Asia/Riyadh","SB|Pacific/Guadalcanal","SC|Asia/Dubai Indian/Mahe","SD|Africa/Khartoum","SE|Europe/Berlin Europe/Stockholm","SG|Asia/Singapore","SH|Africa/Abidjan Atlantic/St_Helena","SI|Europe/Belgrade Europe/Ljubljana","SJ|Europe/Berlin Arctic/Longyearbyen","SK|Europe/Prague Europe/Bratislava","SL|Africa/Abidjan Africa/Freetown","SM|Europe/Rome Europe/San_Marino","SN|Africa/Abidjan Africa/Dakar","SO|Africa/Nairobi Africa/Mogadishu","SR|America/Paramaribo","SS|Africa/Juba","ST|Africa/Sao_Tome","SV|America/El_Salvador","SX|America/Puerto_Rico America/Lower_Princes","SY|Asia/Damascus","SZ|Africa/Johannesburg Africa/Mbabane","TC|America/Grand_Turk","TD|Africa/Ndjamena","TF|Asia/Dubai Indian/Maldives Indian/Kerguelen","TG|Africa/Abidjan Africa/Lome","TH|Asia/Bangkok","TJ|Asia/Dushanbe","TK|Pacific/Fakaofo","TL|Asia/Dili","TM|Asia/Ashgabat","TN|Africa/Tunis","TO|Pacific/Tongatapu","TR|Europe/Istanbul","TT|America/Puerto_Rico America/Port_of_Spain","TV|Pacific/Tarawa Pacific/Funafuti","TW|Asia/Taipei","TZ|Africa/Nairobi Africa/Dar_es_Salaam","UA|Europe/Simferopol Europe/Kyiv","UG|Africa/Nairobi Africa/Kampala","UM|Pacific/Pago_Pago Pacific/Tarawa Pacific/Midway Pacific/Wake","US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu","UY|America/Montevideo","UZ|Asia/Samarkand Asia/Tashkent","VA|Europe/Rome Europe/Vatican","VC|America/Puerto_Rico America/St_Vincent","VE|America/Caracas","VG|America/Puerto_Rico America/Tortola","VI|America/Puerto_Rico America/St_Thomas","VN|Asia/Bangkok Asia/Ho_Chi_Minh","VU|Pacific/Efate","WF|Pacific/Tarawa Pacific/Wallis","WS|Pacific/Apia","YE|Asia/Riyadh Asia/Aden","YT|Africa/Nairobi Indian/Mayotte","ZA|Africa/Johannesburg","ZM|Africa/Maputo Africa/Lusaka","ZW|Africa/Maputo Africa/Harare"]}}),_ie=Ee((e,t)=>{(t.exports=CTe()).tz.load(ETe())});function yNt(e){return Object.prototype.toString.call(e)}function bNt(e){return"object"==typeof e&&null!==e}function zie(e){return bNt(e)&&"[object Date]"===yNt(e)}function ZA(e,t){return t=t||2,(e=Array(t).join("0")+e.toString()).substr(e.length-t,t)}function Aie(e){let t=parseInt(e,10);if(!isNaN(t))return t}function DTe(e){return e?zie(e)?e=e.getFullYear():"string"==typeof e&&(e=Aie(e)):e=(new Date).getFullYear(),e}var wie,LTe,yu,BTe,aU,DNt,RNt,LNt,UTe,u2,RTe=kr(()=>{}),PTe=kr(()=>{wie=H7(_ie(),1),RTe(),LTe=["year","month","day","hour","minute","second"],yu=class e{constructor(e){this.set(e)}static toYear(e){return DTe(e)}set(e){return zie(e=e||{year:1900,month:1,day:1})?(this.year=e.getFullYear(),this.month=e.getMonth()+1,this.day=e.getDate(),this.hour=e.getHours(),this.minute=e.getMinutes(),this.second=e.getSeconds()):(LTe.forEach(t=>{this[t]=Aie(e[t])||0}),this.month=this.month||1,this.day=this.day||1),this.duration=e.duration||24,this}isEqualDate(e){let t=!0;return this.update(),["year","month","day"].forEach(n=>{t&=this[n]===e[n]}),!!t}getDay(){return this.toDate().getDay()}setOffset(e,t){if(e){if("object"==typeof e&&(t=e.unit,e=e.number),t=t||"d",e=parseFloat(e,10),isNaN(e))throw new Error("Number required");let n={day:0};"d"===t&&(n.day=0|e,e-=n.day,e*=24),("d"===t||"h"===t)&&(n.hour=e%24|0,e-=n.hour,e*=60),n.minute=e%60|0,e-=n.minute,e*=60,n.second=e%60|0,this.day+=n.day,this.hour+=n.hour,this.minute+=n.minute,this.second+=n.second}return this.update(),this}setTime(e,t,n){return e=e||0,t=t||0,n=n||0,this.duration=24-(e+t/60+n/3600),this.hour=e,this.minute=t,this.second=n,this.update(),this}setDuration(e){return this.duration=e,this}update(){if(this.year){let t=new e(this.toDate());LTe.forEach(e=>{this[e]=t[e]})}return this}toEndDate(){let t=new e(this.toDate());return t.minute+=60*this.duration|0,t.update(),t}toTimezone(e){return e?new Date(wie.default.tz(this.toString(),e).format()):this.toDate()}fromTimezone(e,t){if(t){let n=wie.default.tz(e,t);this.year=n.year(),this.month=n.month()+1,this.day=n.date(),this.hour=n.hours(),this.minute=n.minutes(),this.second=n.seconds()}else this.set(e);return this}toDate(){return new Date(this.year,this.month-1,this.day,this.hour,this.minute,this.second,0)}toISOString(){return this.toString(!0)}toString(t){let n=new e(this.toDate());return ZA(n.year,4)+"-"+ZA(n.month)+"-"+ZA(n.day)+(t?"T":" ")+ZA(n.hour)+":"+ZA(n.minute)+":"+ZA(n.second)+(t?"Z":"")}}}),Sv=kr(()=>{PTe()}),FTe=Ee((e,t)=>{var n=function(e){return!(t=e,!t||"object"!=typeof t||function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e));var t};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function i(e,t,n){return e.concat(t).map(function(e){return a(e,n)})}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function s(e,t){try{return t in e}catch{return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&o(e).forEach(function(t){r[t]=a(e[t],n)}),o(t).forEach(function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=a(t[i],n))}),r}function c(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=a;var o=Array.isArray(t);return o===Array.isArray(e)?o?r.arrayMerge(e,t,r):l(e,t,r):a(t,r)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})};var u=c;t.exports=u}),iU=kr(()=>{BTe=H7(FTe(),1),UTe=(e,t)=>{let n=Number(e);return isNaN(n)?t:n},u2={get:aU=(e,t=[],n)=>{let r=e;"string"==typeof t&&(t=t.split("."));for(let e of t){if(!r||!r[e])return n;r=r[e]}return r},set:DNt=(e,t=[],n)=>{let r,a,i=e;for(r of t)a=i,"[object Object]"!==toString.call(i[r])&&(i[r]={}),i=i[r];return a[r]=n,e},omit:RNt=(e,t=[])=>Object.keys(e).filter(e=>!~t.indexOf(e)).reduce((t,n)=>(n in e&&(t[n]=e[n]),t),{}),merge:LNt=(...e)=>BTe.default.all(e)}});function PNt(e){return Object.prototype.toString.call(e)}function INt(e){return"object"==typeof e&&null!==e}function HTe(e){return INt(e)&&"[object Date]"===PNt(e)}function Il(e){let t=parseInt(e,10);if(!isNaN(t))return t}function jTe(e){return e?e instanceof Date?e=e.getFullYear():"string"==typeof e&&(e=Il(e)):e=(new Date).getFullYear(),e}function Oie(e,t){let n=/^(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?.*$/.exec((e||"").toString());if(n){n.shift();let[e,r,a]=n.map(e=>parseInt(e||1,10));return t?new Date(Date.UTC(e,r-1,a)):new Date(e,r-1,a)}}var g8,VTe,y8=kr(()=>{g8=function(){let e={};return"sunday|monday|tuesday|wednesday|thursday|friday|saturday".split("|").forEach((t,n)=>{e[t]=n,e[n]=t}),e}(),VTe=e=>null==e});function GTe(e){return["country","state","region"].forEach(t=>{"string"==typeof e[t]&&(e[t]=e[t].toUpperCase())}),e}var sx,NNt,b8,WNt,bd,pq,$A,XTe=kr(()=>{iU(),(sx=class e{constructor(t,n,r,a){this.opts=e.splitName(n,r,a)||{},this.data=t||{}}getCountries(e){let t={},n=u2.get(this.data,"holidays",{});return Object.keys(n).forEach(r=>{t[r]=this._name(n,r,e,{country:r})}),t}getStates(t,n){let r=Object.assign({},e.splitName(t)),a=u2.get(this.data,["holidays",r.country,"states"])||u2.get(this.data,["holidays",r.country,"regions"]);if(a){let e={};return Object.keys(a).forEach(t=>{r.state=t,e[t]=this._name(a,t,n,r)}),e}}getRegions(t,n,r){let a=Object.assign({},e.splitName(t,n)),i=u2.get(this.data,["holidays",a.country,"states",a.state,"regions"]);if(i){let e={};return Object.keys(i).forEach(t=>{a.region=t,e[t]=this._name(i,t,r,a)}),e}}_name(t,n,r,a){let i=t[n].names,o=r||this.getLanguages(a)[0]||Object.keys(i)[0],s=e.majorLang(o);return t[n].name||i[o]||i[s]||i[Object.keys(i)[0]]}getLanguages(e){return this._getValue("langs",e)||[]}getDayOff(){return this._getValue("dayoff")}getTimezones(){return this._getValue("zones")||[]}getRules(t,n,r){let a={},i=e.splitName(t,n,r)||this.opts;if(!i||!i.country)return a;t=i.country.toUpperCase(),n=i.state,r=i.region;let o=u2.get(this.data,["holidays",t]);return o&&(this._assign(a,o),(n&&o.regions&&(o=o.regions[n])||n&&o.states&&(o=o.states[n]))&&(this._assign(a,o),r&&o.regions&&(o=o.regions[r])&&this._assign(a,o)),Object.keys(a).forEach(e=>{let t=a[e]._name;t&&this.data.names[t]&&(delete a[e]._name,a[e]=u2.merge({},this.data.names[t],a[e]))})),a}getSubstitueNames(){return u2.get(this.data,["names","substitutes","name"])}_assign(e,t){let n={};if(t._days){let e=["holidays"].concat(t._days,"days"),r=u2.get(this.data,e);if(!r)throw new Error("unknown path for _days: "+e.join("."));n=Object.assign({},r)}return(n||t.days)&&(n=Object.assign(n,t.days),Object.keys(n).forEach(function(t){!1!==n[t]?(e[t]=Object.assign({},e[t],n[t]),n[t].type||(e[t].type="public")):e[t]&&delete e[t]})),e}_getValue(e,t=this.opts){return u2.get(this.data,["holidays",t.country,"states",t.state,"regions",t.regions,e])||u2.get(this.data,["holidays",t.country,"states",t.state,e])||u2.get(this.data,["holidays",t.country,e])}}).splitName=function(e,t,n){if("object"==typeof e&&e.country)return GTe(e);if("string"==typeof e){let r=e.split(/[.-]/);return GTe({country:r.shift(),state:r.shift()||t,region:r.shift()||n})}},sx.majorLang=function(e){return(e||"").split(/-/)[0]}}),YTe=kr(()=>{y8(),NNt="Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday".split("|"),b8=e=>NNt.includes(e)?e.toLowerCase():e,WNt=e=>"day"===e?void 0:b8(e),bd=function(){function e(e,t){return e=e.source,t=t||"",function n(r,a){return r?(a=(a=a.source||a).replace(/(^|[^[])\^/g,"$1"),e=e.replace(r,a),n):new RegExp(e,t)}}let t={_weekdays:"[Ss]unday|[Mm]onday|[Tt]uesday|[Ww]ednesday|[Tt]hursday|[Ff]riday|[Ss]aturday|day",_months:"January|February|March|April|May|June|July|August|September|October|November|December",_islamicMonths:"Muharram|Safar|Rabi al-awwal|Rabi al-thani|Jumada al-awwal|Jumada al-thani|Rajab|Shaban|Ramadan|Shawwal|Dhu al-Qidah|Dhu al-Hijjah",_hebrewMonths:"Nisan|Iyyar|Sivan|Tamuz|Av|Elul|Tishrei|Cheshvan|Kislev|Tevet|Shvat|AdarII|Adar",_jalaaliMonths:"Farvardin|Ordibehesht|Khordad|Tir|Mordad|Shahrivar|Mehr|Aban|Azar|Dey|Bahman|Esfand",_days:/(_weekdays)s?/,_direction:/(before|after|next|previous|in)/,_counts:/(\d+)(?:st|nd|rd|th)?/,_count_days:/([-+]?\d{1,2}) ?(?:days?|d)?/,_timezone:/ in ([^\s]*|[+-]\d{2}:\d{2})/,_type:/(public|bank|school|observance|optional)/,dateMonth:/^(_months)/,date:/^(?:0*(\d{1,4})-)?0?(\d{1,2})-0?(\d{1,2})/,time:/^(?:T?0?(\d{1,2}):0?(\d{1,2})|T0?(\d{1,2}))/,duration:/^P(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?)?/,julian:/^julian date/,easter:/^(easter|orthodox)(?: _count_days)?/,equinox:/^([Mm]arch|[Jj]une|[Ss]eptember|[Dd]ecember) (?:equinox|solstice)(?:_timezone)?/,hebrew:/^0?(\d{1,2}) (_hebrewMonths)(?: 0*(\d{1,}))?/,islamic:/^0?(\d{1,2}) (_islamicMonths)(?: 0*(\d{1,}))?/,jalaali:/^0?(\d{1,2}) (_jalaaliMonths)(?: 0*(\d{1,}))?/,chineseLunar:/^(chinese|korean|vietnamese) (?:(\d+)-(\d{1,2})-)?(\d{1,2})-([01])-(\d{1,2})/,chineseSolar:/^(chinese|korean|vietnamese) (?:(\d+)-(\d{1,2})-)?(\d{1,2})-(\d{1,2}) solarterm/,bengaliRevised:/^(bengali-revised) (?:-?0*(\d{1,4})-)?0?(\d{1,2})-0?(\d{1,2})/,modifier:/^(substitutes|and|if equal|then|if)\b/,rule_year:/^(?:in (even|odd|leap|non-leap) years|every (\d+) years? since 0*(\d{1,4}))/,rule_weekday:/(not )?on ((?:(?:_weekdays)(?:,\s?)?)*)/,rule_date_if_then:/^if ((?:(?:_weekdays)(?:,\s?)?)*) then (?:_direction _days)?/,rule_day_dir_date:/^(?:_counts )?_days _direction/,rule_bridge:/^is (?:_type )?holiday/,rule_if_holiday:/^if is (?:_type )?holiday then (?:_counts )?(?:_direction _days)?(?: omit ((?:(?:_weekdays)(?:,\s?)?)*))?/,rule_same_day:/^#\d+/,rule_active_from:/^since (0*\d{1,4})(?:-0*(\d{1,2})(?:-0*(\d{1,2})|)|)(?: and|)/,rule_active_to:/^prior to (0*\d{1,4})(?:-0*(\d{1,2})(?:-0*(\d{1,2})|)|)/,space:/^\s+/};t._days=e(t._days)(/_weekdays/,t._weekdays)(),t.julian=e(t.julian,"")(/date/,t.date)(),t.easter=e(t.easter,"")(/_count_days/,t._count_days)(),t.equinox=e(t.equinox,"")(/_count_days/g,t._count_days)(/_direction/g,t._direction)(/_timezone/g,t._timezone)(),t.hebrew=e(t.hebrew,"")(/_hebrewMonths/,t._hebrewMonths)(),t.islamic=e(t.islamic,"")(/_islamicMonths/,t._islamicMonths)(),t.jalaali=e(t.jalaali,"")(/_jalaaliMonths/,t._jalaaliMonths)(),t.dateMonth=e(t.dateMonth)(/_months/,t._months)(),t.rule_weekday=e(t.rule_weekday,"")(/_weekdays/g,t._weekdays)(),t.rule_date_if_then=e(t.rule_date_if_then,"")(/_direction/g,t._direction)(/_weekdays/g,t._weekdays)(/_days/g,t._days)(),t.rule_bridge=e(t.rule_bridge,"")(/_type/g,t._type)(),t.rule_if_holiday=e(t.rule_if_holiday,"")(/_type/g,t._type)(/_counts/g,t._counts)(/_direction/g,t._direction)(/_days/g,t._days)(/_weekdays/g,t._weekdays)(),t.rule_day_dir_date=e(t.rule_day_dir_date,"")(/_counts/,t._counts)(/_days/g,t._days)(/_direction/g,t._direction)();let n=1;return t.months={},t._months.split("|").forEach(function(e){t.months[e]=n++}),n=1,t.islamicMonths={},t._islamicMonths.split("|").forEach(function(e){t.islamicMonths[e]=n++}),n=1,t.hebrewMonths={},t._hebrewMonths.split("|").forEach(function(e){t.hebrewMonths[e]=n++}),t.hebrewMonths.Adar=12,t.hebrewMonths.AdarII=13,n=1,t.jalaaliMonths={},t._jalaaliMonths.split("|").forEach(function(e){t.jalaaliMonths[e]=n++}),t}(),pq=class e{constructor(e){this.fns=e||["_julian","_date","_easter","_islamic","_hebrew","_jalaali","_equinox","_chineseSolar","_chineseLunar","_bengaliRevised","_dateMonth","_ruleDateIfThen","_ruleWeekday","_ruleYear","_ruleDateDir","_ruleIfHoliday","_ruleBridge","_ruleTime","_ruleDuration","_ruleModifier","_ruleSameDay","_ruleActiveFrom","_ruleActiveTo"],this.tokens=[]}parse(e){return this.setup={str:e,rule:e},this.error=0,this.tokens=[],this._tokenize(this.setup),this._reorder(),this.tokens}_reorder(){let e=[],t=[];this.tokens.forEach(n=>{if("dateDir"===n.rule)e.push(n);else if(t.push(n),e.length)for(;e.length;)t.push(e.pop());if(n.fn&&t[0].modifier)for(;t[0].modifier;)t.push(t.shift())}),this.tokens=t}_tokenize(e){let t;for(;e.str;){for(let t=0;t<this.fns.length&&!this[this.fns[t]](e);t++);if(this._space(e),t===e.str){this.error++;break}t=e.str}}_shorten(e,t){e.str=e.str.substr(t.length,e.str.length)}_date(e){let t;if(t=bd.date.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={fn:"gregorian",year:Il(t.shift()),month:Il(t.shift()),day:Il(t.shift())};return this.tokens.push(n),!0}}_julian(e){let t;if(t=bd.julian.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={fn:"julian",year:Il(t.shift()),month:Il(t.shift()),day:Il(t.shift())};return this.tokens.push(n),!0}}_easter(e){let t;if(t=bd.easter.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={fn:"easter",type:t.shift(),offset:Il(t.shift())||0};return this.tokens.push(n),!0}}_equinox(e){let t;if(t=bd.equinox.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={fn:"equinox",season:t.shift().toLowerCase(),timezone:t.shift()||"GMT"};return this.tokens.push(n),!0}}_hebrew(e){let t;if(t=bd.hebrew.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={fn:"hebrew",day:Il(t.shift()),month:bd.hebrewMonths[t.shift()],year:Il(t.shift())};return this.tokens.push(n),!0}}_islamic(e){let t;if(t=bd.islamic.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={fn:"islamic",day:Il(t.shift()),month:bd.islamicMonths[t.shift()],year:Il(t.shift())};return this.tokens.push(n),!0}}_jalaali(e){let t;if(t=bd.jalaali.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={fn:"jalaali",day:Il(t.shift()),month:bd.jalaaliMonths[t.shift()],year:Il(t.shift())};return this.tokens.push(n),!0}}_chineseSolar(e){let t;if(t=bd.chineseSolar.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={fn:t.shift(),cycle:Il(t.shift()),year:Il(t.shift()),solarterm:Il(t.shift()),day:Il(t.shift()),timezone:t.shift()};return this.tokens.push(n),!0}}_chineseLunar(e){let t;if(t=bd.chineseLunar.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={fn:t.shift(),cycle:Il(t.shift()),year:Il(t.shift()),month:Il(t.shift()),leapMonth:!!Il(t.shift()),day:Il(t.shift()),timezone:t.shift()};return this.tokens.push(n),!0}}_bengaliRevised(e){let t;if(t=bd.bengaliRevised.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={fn:t.shift(),year:Il(t.shift()),month:Il(t.shift()),day:Il(t.shift())};return this.tokens.push(n),!0}}_dateMonth(e){let t;if(t=bd.dateMonth.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={fn:"gregorian",day:1,month:bd.months[t.shift()],year:void 0};return this.tokens.push(n),!0}}_space(e){let t;if(t=bd.space.exec(e.str))return this._shorten(e,t[0]),!0}_ruleSameDay(e){let t;if(t=bd.rule_same_day.exec(e.str))return this._shorten(e,t[0]),!0}_ruleModifier(e){let t;if(t=bd.modifier.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={modifier:t.shift()};return this.tokens.push(n),!0}}_ruleTime(e){let t;if(t=bd.time.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={rule:"time",hour:Il(t.shift())||0,minute:Il(t.shift())||0};return n.hour=n.hour||Il(t.shift())||0,this.tokens.push(n),!0}}_ruleDuration(e){let t;if(t=bd.duration.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={days:Il(t.shift())||0,hours:Il(t.shift())||0,minutes:Il(t.shift())||0},r={rule:"duration",duration:24*n.days+n.hours+n.minutes/60};return this.tokens.push(r),!0}}_ruleDateIfThen(t){let n;if(n=bd.rule_date_if_then.exec(t.str)){this._shorten(t,n[0]),n.shift();let r={rule:"dateIfThen",if:n.shift().split(/(?:,\s?)/).map(b8),direction:n.shift(),then:b8(n.shift())},a=new e(["_ruleTime","_ruleDuration"]);return a.parse(t.str),a.tokens.length&&(r.rules=a.tokens),t.str=" "+a.setup.str,this.tokens.push(r),!0}}_ruleWeekday(e){let t;if(t=bd.rule_weekday.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={rule:"weekday",not:!!t.shift(),if:t.shift().split(/(?:,\s?)/).map(b8)};return this.tokens.push(n),!0}}_ruleDateDir(e){let t;if(t=bd.rule_day_dir_date.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={rule:"dateDir",count:Il(t.shift())||1,weekday:b8(t.shift()),direction:t.shift()};return"in"===n.direction&&(n.direction="after"),this.tokens.push(n),!0}}_ruleYear(e){let t;if(t=bd.rule_year.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={rule:"year",cardinality:t.shift(),every:Il(t.shift()),since:Il(t.shift())};return this.tokens.push(n),!0}}_ruleIfHoliday(e){let t;if(t=bd.rule_if_holiday.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={rule:"ruleIfHoliday",type:t.shift(),count:Il(t.shift())||1,direction:t.shift(),weekday:b8(t.shift()),omit:(t.shift()||"").split(/(?:,\s?)/).map(WNt).filter(Boolean)};return this.tokens.push(n),!0}}_ruleBridge(e){let t;if(t=bd.rule_bridge.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={rule:"bridge",type:t.shift()};return this.tokens.push(n),!0}}_ruleActiveFrom(e){let t;if(t=bd.rule_active_from.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={rule:"activeFrom",year:Il(t.shift()),month:Il(t.shift())||1,day:Il(t.shift())||1};return this.tokens.push(n),!0}}_ruleActiveTo(e){let t;if(t=bd.rule_active_to.exec(e.str)){this._shorten(e,t[0]),t.shift();let n={rule:"activeTo",year:Il(t.shift()),month:Il(t.shift())||1,day:Il(t.shift())||1};return this.tokens.push(n),!0}}}}),Tie=kr(()=>{Sv(),y8(),$A=class{constructor(e){this.calEvent=e}setEvent(e){return this.calEvent=e,this}getEvent(){return this.calEvent}setModifier(e){this.modifier=e}resolve(e){return e.rule&&"function"==typeof this[e.rule]?this[e.rule](e):e.modifier&&(this.modifier=e.modifier),this}dateDir(e){let t=[].concat(e.omit).map(e=>g8[e]).filter(e=>!VTe(e)),n=(e,n)=>{let r=e+n;for(;r<0;)r+=70;return t.includes(r%7)};this.calEvent.dates.forEach(t=>{let r,a=e.count-1,i=t.getDay(),o=g8[e.weekday],s=["before","previous"].includes(e.direction);if("next"===e.direction&&i===o&&(a+=1),"day"===e.weekday){let e=0;if(s)for(r=-1*(a+1);e++<7&&n(r,i);)r-=1;else for(r=a+1;e++<7&&n(r,i);)r+=1}else s?(i===o&&a++,r=-1*((7+i-o)%7+7*a)):r=(7-i+o)%7+7*a;r&&t.setOffset(r)})}dateIfThen(e){let t=[];this.calEvent.dates=this.calEvent.dates.map(n=>{if(n._lock)return n;let r=n.getDay();if(~e.if.indexOf(g8[r])){"and"===this.modifier&&(t.push(new yu(n)),n.substitute=!0),n._filter=!1;let a=0,i=g8[e.then];e.then&&"undefined"!==i&&("previous"===e.direction?(a=(7+r-i)%7*-1,a||(a=-7)):(a=(7-r+i)%7,a||(a=7)),n.setOffset(a),n._lock=!0,"substitutes"===this.modifier&&(n.substitute=!0)),(e.rules||[]).forEach(e=>{switch(e.rule){case"time":n.setTime(e.hour,e.minute);break;case"duration":n.duration=e.duration}})}else"substitutes"===this.modifier&&(n._filter=!0);return n}),this.calEvent.dates=t.concat(this.calEvent.dates)}weekday(e){this.calEvent.dates=this.calEvent.dates.map(t=>{let n=t.getDay(),r=-1!==e.if.indexOf(g8[n]);if(e.not&&(r=!r),r)return t}).filter(e=>e)}time(e){this.calEvent.dates.forEach(t=>{t.setTime(e.hour,e.minute)})}duration(e){this.calEvent.dates.forEach(t=>{t.duration=e.duration})}bridge(){return!0}ruleIfHoliday(){return!0}activeFrom(e){this.calEvent.setActive({from:new yu(e).toDate()})}activeTo(e){this.calEvent.setActive({to:new yu(e).toDate()})}year(e){this.calEvent.dates=this.calEvent.dates.map(t=>{if(e.cardinality){if("leap"===e.cardinality&&this._isLeapYear(t.year))return t;if("non-leap"===e.cardinality&&!this._isLeapYear(t.year))return t;if("even"===e.cardinality&&(t.year+1)%2)return t;if("odd"===e.cardinality&&t.year%2)return t}else if(void 0!==e.every&&void 0!==e.since&&(t.year-e.since)%e.every===0)return t}).filter(e=>e)}_isLeapYear(e){return e%400==0||e%4==0&&e%100!=0}}});function FNt(e,t,n){if(!n)return e.year===t;let r=e.toDate();for(let a of n){let{from:n,to:i}=a;if(e.year===t&&(n&&i&&n<=r&&i>r||n&&!i&&n<=r||!n&&i&&i>r))return!0}}var Th,c3=kr(()=>{y8(),Sv(),Th=class{constructor(e){e=e||{},this.substitute=e.substitute,this.opts=e,this.offset=e.offset,this.dates=[],this.active=void 0,HTe(e)&&(this.opts=new yu(e))}inYear(e){let t=new yu(this.opts).setOffset(this.offset);return t.year&&t.year!==e||(t.year=e,this.dates.push(t)),this}reset(){this.dates=[]}isEqualDate(e){let t=!1;for(let n of this.dates)for(let r of e.dates)t|=n.isEqualDate(r);return!!t}filterDisabled(e,t){return e?(this.dates=this.dates.filter(n=>!(t?n.year===e&&n.month===t:n.year===e)),this):this}filterActive(e,t=this.active){return this.dates=this.dates.filter(n=>{if(!n._filter&&FNt(n,e,t))return n}),this}setActive(e){let{from:t,to:n}=e,r=!0;if(this.active=this.active||[],n&&!t){let e=this.active[this.active.length-1];e&&e.from&&!e.to&&(e.to=n,r=!1)}return r&&this.active.push(e),this}push(e){e&&Array.isArray(e.dates)&&(this.dates=this.dates.concat(e.dates))}get(e){return this.dates.map(t=>{let n=new yu(t),r={date:n.toString(),start:n.toTimezone(e),end:n.toEndDate().toTimezone(e)};return this._addSubstitute(t,r),r})}_addSubstitute(e,t){(this.substitute||e.substitute)&&(t.substitute=!0)}}});function ZTe(e,t=[]){for(let n of t){let[t,r,a]=$Te(n);if(t===e&&r&&a)return new Th({year:t,month:r,day:a}).inYear(t)}}function BNt(e,t=[]){for(let n of t){let[t,r]=$Te(n);if(e===t)return[t,r]}return[]}var mq,$Te,KTe=kr(()=>{iU(),Tie(),c3(),mq=class{constructor(e,t,n){this.opts=t,this.ruleStr=e,this.ruleSet=n&&n[e],this.holidays=n,this.events=[]}push(e){this.events.push(e)}getEvent(e){let t=this.ruleSet&&this.ruleSet.active;this.disable(e);let n=this.events[0];return n.filterActive(e,t),n}resolve(e,t){e.rule&&"function"==typeof this[e.rule]&&this[e.rule](e,t)}bridge(e,t){let n=new Array(this.events.length).fill(!1);n[0]=!0;let r=e.type||"public";for(let e in this.holidays){let a=this.holidays[e].fn;if(a&&a.ruleStr!==this.ruleStr){let e=a.inYear(t),i=aU(e,"opts.type")||"public";for(let t=1;t<this.events.length;t++)n[t]||e.event.isEqualDate(this.events[t])&&i===r&&(n[t]=!0)}if(!~n.indexOf(!1))break}~n.indexOf(!1)&&this.events[0].reset()}ruleIfHoliday(e,t){let n=e.type||"public";for(let r in this.holidays){let a=this.holidays[r].fn;if(a&&a.ruleStr!==this.ruleStr){let r=a.inYear(t),i=aU(r,"opts.type")||"public";for(let t=0;t<this.events.length;t++)if(r.event.isEqualDate(this.events[t])&&i===n)return void new $A(this.events[t]).resolve({...e,rule:"dateDir"})}}}disable(e){let{disable:t,enable:n}=this.opts||{};if(!t||!t.length)return;let r=this.events[0],a=ZTe(e,t);if(a)return void(a.isEqualDate(r)&&(r.reset(),a=ZTe(e,n),a&&(this.events[0]=a)));let[i,o]=BNt(e,t);r.filterDisabled(i,o)}},$Te=e=>String(e).split("-").map(e=>UTe(e))});function UNt(e){return e?e instanceof Date?e=e.getFullYear():"string"==typeof e&&(e=parseInt(e,10)):e=(new Date).getFullYear(),e}function Sie(e,t){t=t||2;let n="0000"+e;return n.substr(n.length-t,t)}function Cie(e,t,n){e=UNt(e);let r=Math.floor(e/100),a=15+Math.floor((3*r+3)/4)-Math.floor((8*r+13)/25),i=2-Math.floor((3*r+3)/4);t&&(a=15,i=0);let o=e%19,s=(19*o+a)%30,l=21+s-Math.floor((s+o/11)/29),c=l+(7-(l-(7-Math.floor(e+e/4+i)%7))%7);n&&(c=c+Math.floor(e/100)-Math.floor(e/400)-2);let u,d=[0,31,28,31,30,31,30,31,31],p=c;for(u=3;u<8&&!(p<=d[u]);u++)p-=d[u];return new kie(e,u,p)}function JTe(e){return Cie(e)}function VNt(e){return Cie(e,!0)}function jNt(e){return Cie(e,!0,!0)}var kie,HNt,Eie,vq,QTe=kr(()=>{kie=class{constructor(e,t,n){this.year=e,this.month=t,this.day=n}toString(){return[Sie(this.year,4),Sie(this.month),Sie(this.day)].join("-")}},Eie={easter:HNt=JTe,gregorianEaster:JTe,julianEaster:VNt,orthodoxEaster:jNt}}),e8e=kr(()=>{QTe(),Sv(),c3(),vq=class extends Th{constructor(e){super(e=e||{}),this._fn=Eie.easter,"orthodox"===e.type&&(this._fn=Eie.orthodoxEaster)}inYear(e){let t=new yu(this._fn(e)).setOffset(this.offset);return this.dates.push(t),this}}});function $Nt(e){return.0057755183*e}function tWt(e){return oU+Die*(e-2e3)}function rWt(e){return 2e3+(e-oU)/Die}function nWt(e){return qie+Rie*(e-1900)}function aWt(e){return 1900+(e-qie)/Rie}function iWt(e){return(e-oU)/t8e}function oWt(e){return.5*(1+Math.cos(e))}function sWt(e,t){let n=e.ra,r=e.dec,a=t.ra,i=t.dec,o=Math.sin(r),s=Math.cos(r),l=Math.sin(i),c=Math.cos(i),u=Math.sin(a-n),d=Math.cos(a-n),p=Math.atan2(c*u,l*s-c*o*d);return p<0&&(p+=2*Math.PI),p}function cWt(e,t){let n=e%t;return n<0&&(n+=t),n}function uWt(e,...t){Array.isArray(t[0])&&(t=t[0]);let n=t.length-1,r=t[n];for(;n>0;)n--,r=r*e+t[n];return r}function dWt(e,t){let n=e/t;return Math.floor(n)}function fWt(e,t){return e<t?-1:e>t?1:0}function hWt(e){return[Math.sin(e),Math.cos(e)]}function pWt(e){return Math.PI/180*e}function mWt(e){return 180/Math.PI*e}function vWt(e){let t=Math.trunc(e);return[t,Math.abs(e-t)]}function gWt(e,t=14){return parseFloat(e.toFixed(t))}function yWt(e,t){let n=new Error(e);return n.code=t,n}var GNt,XNt,YNt,ZNt,KNt,oU,JNt,qie,QNt,Die,t8e,Rie,eWt,KA,r8e,lWt,Un,H0=kr(()=>{GNt=.01720209895,XNt=149597870,YNt=.397777156,ZNt=.917482062,KNt=2400000.5,oU=2451545,JNt=2415020,qie=2415020.3135,QNt=2433282.4235,Die=365.25,t8e=36525,Rie=365.2421988,eWt=365.25636,KA=class{constructor(e,t,n,r){this._ra=e||0,this._dec=t||0,this.range=n,this.elongation=r}get ra(){return this._ra}set ra(e){this._ra=e}get dec(){return this._dec}set dec(e){this._dec=e}get lon(){return this._ra}set lon(e){this._ra=e}get lat(){return this._dec}set lat(e){this._dec=e}},r8e=10*Math.PI/180/60,lWt=Math.cos(r8e),Un={K:GNt,AU:XNt,SOblJ2000:YNt,COblJ2000:ZNt,lightTime:$Nt,JMod:KNt,J2000:oU,J1900:JNt,B1900:qie,B1950:QNt,JulianYear:Die,JulianCentury:t8e,BesselianYear:Rie,meanSiderealYear:eWt,JulianYearToJDE:tWt,JDEToJulianYear:rWt,BesselianYearToJDE:nWt,JDEToBesselianYear:aWt,J2000Century:iWt,illuminated:oWt,Coord:KA,limb:sWt,SmallAngle:r8e,CosSmallAngle:lWt,pmod:cWt,horner:uWt,floorDiv:dWt,cmp:fWt,sincos:hWt,toRad:pWt,toDeg:mWt,modf:vWt,round:gWt,errorCode:yWt}});function MWt(e,t,n,r){let a=r;if(r.length>3){let i=(n-t)/(r.length-1);if(0===i)throw gq;let o=bWt((e-t)/i+.5);o<1?o=1:o>r.length-2&&(o=r.length-2),a=r.slice(o-1,o+2),n=t+(o+1)*i,t+=(o-1)*i}return new cU(t,n,a)}function xWt(e){if(4!==e.length)throw a8e;return(9*(e[1]+e[2])-e[0]-e[3])/16}function _Wt(e,t){let n=0;return t.forEach((r,a)=>{let i=r[0],o=1;t.forEach((t,n)=>{if(a!==n){let n=t[0];o*=(e-n)/(i-n)}}),n+=r[1]*o}),n}function zWt(e){let t=new Array(e.length).fill(0),n=new Array(e.length).fill(0),r=e.length-1;for(let a=0;a<e.length;a++){let i=e[a][0]||e[a].x||0,o=e[a][1]||e[a].y||0;n[r]=1;let s=1,l=r;for(let t=0;t<e.length;t++)if(a!==t){let a=e[t][0]||e[t].x||0;n[l-1]=n[l]*-a;for(let e=l;e<r;e++)n[e]-=n[e+1]*a;l--,s*=i-a}n.forEach((e,n)=>{t[n]+=o*e/s})}return t}function AWt(e,t,n,r){let a=(n-t)/(r.length-1);if(0===a)throw gq;let i=Math.floor((e-t)/a);i<0?i=0:i>r.length-2&&(i=r.length-2);let o=t+i*a;return r.slice(i,i+2)[0]+(r[1]-r[0])*(e-o)/a}var bWt,n8e,a8e,i8e,gq,Pie,o8e,sU,Iie,lU,cU,uU,Lie,lx,Ern,qrn,Drn,Rrn,Lrn,Prn,Irn,Nrn,Wrn,yz=kr(()=>{H0(),bWt=Math.trunc,n8e=new Error("Argument y must be length 3"),a8e=new Error("Argument y must be length 4"),i8e=new Error("Argument y must be length 5"),gq=new Error("Argument x3 (or x5) cannot equal x1"),Pie=new Error("Interpolating factor n must be in range -1 to 1"),o8e=new Error("No extremum in table"),sU=new Error("Extremum falls outside of table"),Iie=new Error("Zero falls outside of table"),lU=new Error("Failure to converge"),cU=class{constructor(e,t,n){if(3!==n.length)throw n8e;if(t===e)throw gq;this.x1=e,this.x3=t,this.y=n,this.a=n[1]-n[0],this.b=n[2]-n[1],this.c=this.b-this.a,this.abSum=this.a+this.b,this.xSum=t+e,this.xDiff=t-e}interpolateX(e){let t=(2*e-this.xSum)/this.xDiff;return this.interpolateN(t)}interpolateXStrict(e){let t=(2*e-this.xSum)/this.xDiff;return this.interpolateNStrict(t)}interpolateN(e){return this.y[1]+.5*e*(this.abSum+e*this.c)}interpolateNStrict(e){if(e<-1||e>1)throw Pie;return this.interpolateN(e)}extremum(){if(0===this.c)throw o8e;let e=this.abSum/(-2*this.c);if(e<-1||e>1)throw sU;return[.5*(this.xSum+this.xDiff*e),this.y[1]-this.abSum*this.abSum/(8*this.c)]}zero(e){let t;t=e?e=>e-(2*this.y[1]+e*(this.abSum+this.c*e))/(this.abSum+2*this.c*e):e=>-2*this.y[1]/(this.abSum+this.c*e);let[n,r]=uU(0,t);if(!r)throw lU;if(n>1||n<-1)throw Iie;return.5*(this.xSum+this.xDiff*n)}},uU=function(e,t){for(let n=0;n<50;n++){let n=t(e);if(!isFinite(n)||isNaN(n))break;if(Math.abs((n-e)/e)<1e-15)return[n,!0];e=n}return[0,!1]},Lie=class{constructor(e,t,n){if(5!==n.length)throw i8e;if(t===e)throw gq;this.x1=e,this.x5=t,this.y=n,this.y3=n[2],this.a=n[1]-n[0],this.b=n[2]-n[1],this.c=n[3]-n[2],this.d=n[4]-n[3],this.e=this.b-this.a,this.f=this.c-this.b,this.g=this.d-this.c,this.h=this.f-this.e,this.j=this.g-this.f,this.k=this.j-this.h,this.xSum=t+e,this.xDiff=t-e,this.interpCoeff=[this.y3,(this.b+this.c)/2-(this.h+this.j)/12,this.f/2-this.k/24,(this.h+this.j)/12,this.k/24]}interpolateX(e){let t=(4*e-2*this.xSum)/this.xDiff;return this.interpolateN(t)}interpolateXStrict(e){let t=(4*e-2*this.xSum)/this.xDiff;return this.interpolateNStrict(t)}interpolateN(e){return Un.horner(e,...this.interpCoeff)}interpolateNStrict(e){if(e<-1||e>1)throw Pie;return Un.horner(e,...this.interpCoeff)}extremum(){let e=[6*(this.b+this.c)-this.h-this.j,0,3*(this.h+this.j),2*this.k],t=this.k-12*this.f;if(0===t)throw sU;let[n,r]=uU(0,function(n){return Un.horner(n,...e)/t});if(!r)throw lU;if(n<-2||n>2)throw sU;return[.5*this.xSum+.25*this.xDiff*n,Un.horner(n,...this.interpCoeff)]}zero(e){let t;if(e){let e=this.k/24,n=(this.h+this.j)/12,r=this.f/2-e,a=(this.b+this.c)/2-n,i=[this.y3,a,r,n,e],o=[a,2*r,3*n,4*e];t=function(e){return e-Un.horner(e,...i)/Un.horner(e,...o)}}else{let e=[-24*this.y3,0,this.k-12*this.f,-2*(this.h+this.j),-this.k],n=12*(this.b+this.c)-2*(this.h+this.j);t=function(t){return Un.horner(t,...e)/n}}let[n,r]=uU(0,t);if(!r)throw lU;if(n>2||n<-2)throw Iie;return.5*this.xSum+.25*this.xDiff*n}},lx={errorNot3:n8e,errorNot4:a8e,errorNot5:i8e,errorNoXRange:gq,errorNOutOfRange:Pie,errorNoExtremum:o8e,errorExtremumOutside:sU,errorZeroOutside:Iie,errorNoConverge:lU,Len3:cU,len3ForInterpolateX:MWt,iterate:uU,len4Half:xWt,Len5:Lie,lagrange:_Wt,lagrangePoly:zWt,linear:AWt}}),s8e=kr(()=>{H0(),yz(),({abs:Ern,acos:qrn,asin:Drn,atan2:Rrn,cos:Lrn,hypot:Prn,sin:Irn,sqrt:Nrn,tan:Wrn}=Math)});function fU(e,t,n,r){return r=(60*(60*t+n)+r)/3600,e?-r:r}function l8e(e){let t=e<0;e=Math.abs(e);let[n,r]=dU(e%360),[a,i]=dU(60*r);return r=_8(60*i),[t,n,a,r]}function dU(e){let t=Math.trunc(e);return[t,Math.abs(e-t)]}function _8(e,t=10){return parseFloat(e.toFixed(t))}var M8,x8,Nie,Wie,wWt,OWt,TWt,SWt,kWt,CWt,bu,Fy=kr(()=>{M8=class{constructor(e,t,n,r){1===arguments.length?this.angle=Number(e):this.setDMS(!!e,t,n,r)}setDMS(e=!1,t=0,n=0,r=0){return this.angle=fU(e,t,n,r)*Math.PI/180,this}setAngle(e){return this.angle=e,this}rad(){return this.angle}deg(){return 180*this.angle/Math.PI}toDMS(){return l8e(this.deg())}toString(e){let[t,n,r,a]=this.toDMS();return a=_8(a,e).toString().replace(/^0\./,"."),(t?"-":"")+n+"°"+r+""+a+"″"}toDegString(e){let[t,n]=dU(this.deg());return n=_8(n,e).toString().replace(/^0\./,"."),t+"°"+n}},x8=class extends M8{setDMS(e=!1,t=0,n=0,r=0){return this.angle=15*fU(e,t,n,r)*Math.PI/180,this}hour(){return 12*this.angle/Math.PI}deg(){return this.hour()}toString(e){let[t,n,r,a]=this.toDMS();return a=_8(a,e).toString().replace(/^0\./,"."),(t?"-":"")+n+"ʰ"+r+"ᵐ"+a+"ˢ"}},Nie=class extends x8{constructor(e=0,t=0,n=0){if(super(!1,e,t,n),1===[].slice.call(arguments).length)this.angle=e;else{let r=fU(!1,e,t,n)%24;this.angle=15*r*Math.PI/180}}hour(){return(24+12*this.angle/Math.PI%24)%24}},bu={Angle:M8,HourAngle:x8,DMSToDeg:fU,degToDMS:l8e,RA:Nie,Time:Wie=class{constructor(e,t,n,r){"number"==typeof e?this.time=e:this.setHMS(e,t,n,r)}setHMS(e=!1,t=0,n=0,r=0){r+=60*(60*t+n),e&&(r=-r),this.time=r}sec(){return this.time}min(){return this.time/60}hour(){return this.time/3600}day(){return this.time/3600/24}rad(){return this.time*Math.PI/12/3600}toHMS(){let e=this.time,t=e<0;e=t?-e:e;let n=Math.trunc(e/3600);e-=3600*n;let r=Math.trunc(e/60);return[t,n,r,e-60*r]}toString(e){let[t,n,r,a]=this.toHMS(),[i,o]=dU(a);return 0===e?(i=_8(a,0),o=0):o=_8(o,e).toString().substr(1),(t?"-":"")+n+"ʰ"+r+"ᵐ"+i+"ˢ"+(o||"")}},angleFromDeg:wWt=e=>e*Math.PI/180,angleFromMin:OWt=e=>e/60*Math.PI/180,angleFromSec:TWt=e=>e/3600*Math.PI/180,degFromAngle:SWt=e=>180*e/Math.PI,secFromAngle:kWt=e=>3600*e*180/Math.PI,secFromHourAngle:CWt=e=>240*e*180/Math.PI}});function Fie(e){let t=Math.sin(e),n=Math.cos(e);return[t*t,n*n]}var Bie,Urn,JA,Cg,hU,pU,c8e,bq,u8e,Uie,kv,yq=kr(()=>{Urn=new(Bie=class{constructor(e,t){this.radius=e,this.flat=t}A(){return this.radius}B(){return this.radius*(1-this.flat)}eccentricity(){return Math.sqrt((2-this.flat)*this.flat)}parallaxConstants(e,t){let n=1-this.flat,r=Math.sin(Math.atan(n*Math.tan(e))),a=Math.cos(Math.atan(n*Math.tan(e))),i=Math.sin(e),o=Math.cos(e),s=.001*t/this.radius;return[r*n+s*i,a+s*o]}rho(e){return.9983271+.0016764*Math.cos(2*e)-35e-7*Math.cos(4*e)}radiusAtLatitude(e){let t=Math.sin(e),n=Math.cos(e);return this.A()*n/Math.sqrt(1-(2-this.flat)*this.flat*t*t)}radiusOfCurvature(e){let t=Math.sin(e),n=(2-this.flat)*this.flat;return this.A()*(1-n)/Math.pow(1-n*t*t,1.5)}distance(e,t){let[n,r]=Fie((e.lat+t.lat)/2),[a,i]=Fie((e.lat-t.lat)/2),[o,s]=Fie((e.lon-t.lon)/2),l=a*s+r*o,c=i*s+n*o,u=Math.atan(Math.sqrt(l/c)),d=Math.sqrt(l*c)/u,p=(3*d-1)/(2*c),h=(3*d+1)/(2*l);return 2*u*this.radius*(1+this.flat*(p*n*i-h*r*a))}})(6378.14,1/298.257)}),Eg=kr(()=>{H0(),Fy(),yq(),JA=class{constructor(e,t){"object"==typeof e&&(t=e.lat,e=e.lon),this.lon=e||0,this.lat=t||0}toEquatorial(e){let[t,n]=Un.sincos(e),[r,a]=Un.sincos(this.lat),[i,o]=Un.sincos(this.lon),s=Math.atan2(i*n-r/a*t,o);s<0&&(s+=2*Math.PI);let l=Math.asin(r*n+a*t*i);return new Cg(s,l)}},Cg=class{constructor(e=0,t=0){this.ra=e,this.dec=t}toEcliptic(e){let[t,n]=Un.sincos(e),[r,a]=Un.sincos(this.ra),[i,o]=Un.sincos(this.dec),s=Math.atan2(r*n+i/o*t,a),l=Math.asin(i*n-o*t*r);return new JA(s,l)}toHorizontal(e,t){let n=new bu.Time(t).rad()-e.lon-this.ra,[r,a]=Un.sincos(n),[i,o]=Un.sincos(e.lat),[s,l]=Un.sincos(this.dec),c=Math.atan2(r,a*i-s/l*o),u=Math.asin(i*s+o*l*a);return new hU(c,u)}toGalactic(){let[e,t]=Un.sincos(bq.ra-this.ra),[n,r]=Un.sincos(bq.dec),[a,i]=Un.sincos(this.dec),o=Math.atan2(e,t*n-a/i*r),s=(Uie+1.5*Math.PI-o)%(2*Math.PI),l=Math.asin(a*n+i*r*t);return new pU(s,l)}},hU=class{constructor(e=0,t=0){this.az=e,this.alt=t}toEquatorial(e,t){let[n,r]=Un.sincos(this.az),[a,i]=Un.sincos(this.alt),[o,s]=Un.sincos(e.lat),l=Math.atan2(n,r*o+a/i*s),c=Un.pmod(new bu.Time(t).rad()-e.lon-l,2*Math.PI),u=Math.asin(o*a-s*i*r);return new Cg(c,u)}},pU=class{constructor(e=0,t=0){this.lon=e,this.lat=t}toEquatorial(){let[e,t]=Un.sincos(this.lon-Uie-Math.PI/2),[n,r]=Un.sincos(bq.dec),[a,i]=Un.sincos(this.lat),o=Math.atan2(e,t*n-a/i*r),s=Un.pmod(o+bq.ra-Math.PI,2*Math.PI),l=Math.asin(a*n+i*r*t);return new Cg(s,l)}},c8e=new Cg(new bu.RA(12,49,0).rad(),27.4*Math.PI/180),bq=c8e,u8e=33*Math.PI/180,kv={Ecliptic:JA,Equatorial:Cg,Horizontal:hU,Galactic:pU,galacticNorth:c8e,galacticNorth1950:bq,galacticLon0:u8e,galactic0Lon1950:Uie=u8e}});function f8e(e){let t=Un.J2000Century(e),n=Un.horner(t,297.85036,445267.11148,-.0019142,1/189474)*Math.PI/180,r=Un.horner(t,357.52772,35999.05034,-1603e-7,-1/3e5)*Math.PI/180,a=Un.horner(t,134.96298,477198.867398,.0086972,1/56250)*Math.PI/180,i=Un.horner(t,93.27191,483202.017538,-.0036825,1/327270)*Math.PI/180,o=Un.horner(t,125.04452,-1934.136261,.0020708,1/45e4)*Math.PI/180,s=0,l=0;for(let e=d8e.length-1;e>=0;e--){let c=d8e[e],u=c.d*n+c.m*r+c.n*a+c.f*i+c.ω*o,[d,p]=Un.sincos(u);s+=d*(c.s0+c.s1*t),l+=p*(c.c0+c.c1*t)}return s*=1e-4/3600*(Math.PI/180),l*=1e-4/3600*(Math.PI/180),[s,l]}function EWt(e){let t=(e-Un.J2000)/36525,n=(125.04452-1934.136261*t)*Math.PI/180,r=(280.4665+36000.7698*t)*Math.PI/180,a=(218.3165+481267.8813*t)*Math.PI/180,[i,o]=Un.sincos(n),[s,l]=Un.sincos(2*r),[c,u]=Un.sincos(2*a),[d,p]=Un.sincos(2*n);return[(-17.2*i-1.32*s-.23*c+.21*d)/3600*(Math.PI/180),(9.2*o+.57*l+.1*u-.09*p)/3600*(Math.PI/180)]}function h8e(e){return Un.horner(Un.J2000Century(e),new bu.Angle(!1,23,26,21.448).rad(),-46.815/3600*(Math.PI/180),-59e-5/3600*(Math.PI/180),.001813/3600*(Math.PI/180))}function qWt(e){return Un.horner(.01*Un.J2000Century(e),new bu.Angle(!1,23,26,21.448).rad(),-4680.93/3600*(Math.PI/180),-1.55/3600*(Math.PI/180),1999.25/3600*(Math.PI/180),-51.38/3600*(Math.PI/180),-249.67/3600*(Math.PI/180),-39.05/3600*(Math.PI/180),7.12/3600*(Math.PI/180),27.87/3600*(Math.PI/180),5.79/3600*(Math.PI/180),2.45/3600*(Math.PI/180))}function DWt(e){let[t,n]=f8e(e),r=h8e(e);return t*Math.cos(r+n)}var d8e,dp,mU,Qrn,enn,tnn,Xm=kr(()=>{H0(),Fy(),d8e=function(){let e="d,m,n,f,ω,s0,s1,c0,c1".split(",");return[[0,0,0,0,1,-171996,-174.2,92025,8.9],[-2,0,0,2,2,-13187,-1.6,5736,-3.1],[0,0,0,2,2,-2274,-.2,977,-.5],[0,0,0,0,2,2062,.2,-895,.5],[0,1,0,0,0,1426,-3.4,54,-.1],[0,0,1,0,0,712,.1,-7,0],[-2,1,0,2,2,-517,1.2,224,-.6],[0,0,0,2,1,-386,-.4,200,0],[0,0,1,2,2,-301,0,129,-.1],[-2,-1,0,2,2,217,-.5,-95,.3],[-2,0,1,0,0,-158,0,0,0],[-2,0,0,2,1,129,.1,-70,0],[0,0,-1,2,2,123,0,-53,0],[2,0,0,0,0,63,0,0,0],[0,0,1,0,1,63,.1,-33,0],[2,0,-1,2,2,-59,0,26,0],[0,0,-1,0,1,-58,-.1,32,0],[0,0,1,2,1,-51,0,27,0],[-2,0,2,0,0,48,0,0,0],[0,0,-2,2,1,46,0,-24,0],[2,0,0,2,2,-38,0,16,0],[0,0,2,2,2,-31,0,13,0],[0,0,2,0,0,29,0,0,0],[-2,0,1,2,2,29,0,-12,0],[0,0,0,2,0,26,0,0,0],[-2,0,0,2,0,-22,0,0,0],[0,0,-1,2,1,21,0,-10,0],[0,2,0,0,0,17,-.1,0,0],[2,0,-1,0,1,16,0,-8,0],[-2,2,0,2,2,-16,.1,7,0],[0,1,0,0,1,-15,0,9,0],[-2,0,1,0,1,-13,0,7,0],[0,-1,0,0,1,-12,0,6,0],[0,0,2,-2,0,11,0,0,0],[2,0,-1,2,1,-10,0,5,0],[2,0,1,2,2,-8,0,3,0],[0,1,0,2,2,7,0,-3,0],[-2,1,1,0,0,-7,0,0,0],[0,-1,0,2,2,-7,0,3,0],[2,0,0,2,1,-7,0,3,0],[2,0,1,0,0,6,0,0,0],[-2,0,2,2,2,6,0,-3,0],[-2,0,1,2,1,6,0,-3,0],[2,0,-2,0,1,-6,0,3,0],[2,0,0,0,1,-6,0,3,0],[0,-1,1,0,0,5,0,0,0],[-2,-1,0,2,1,-5,0,3,0],[-2,0,0,0,1,-5,0,3,0],[0,0,2,2,1,-5,0,3,0],[-2,0,2,0,1,4,0,0,0],[-2,1,0,2,1,4,0,0,0],[0,0,1,-2,0,4,0,0,0],[-1,0,1,0,0,-4,0,0,0],[-2,1,0,0,0,-4,0,0,0],[1,0,0,0,0,-4,0,0,0],[0,0,1,2,0,3,0,0,0],[0,0,-2,2,2,-3,0,0,0],[-1,-1,1,0,0,-3,0,0,0],[0,1,1,0,0,-3,0,0,0],[0,-1,1,2,2,-3,0,0,0],[2,-1,-1,2,2,-3,0,0,0],[0,0,3,2,2,-3,0,0,0],[2,-1,0,2,2,-3,0,0,0]].map(t=>{let n={};return e.forEach((e,r)=>{n[e]=t[r]}),n})}(),dp={nutation:f8e,approxNutation:EWt,meanObliquity:h8e,meanObliquityLaskar:qWt,nutationInRA:DWt}}),Hie=kr(()=>{H0(),mU=class{constructor(e,t,n){"object"==typeof e&&(t=e.pode,n=e.peri,e=e.inc),this.inc=e||0,this.node=t||0,this.peri=n||0}},Qrn=4.50001688*Math.PI/180,enn=5.19856209*Math.PI/180,tnn=.00651966*Math.PI/180});function p8e(e,t,n){let[r,a,i]=m8e(t,n),[o,s]=Un.sincos(e.ra),l=r+a*o*Math.tan(e.dec),c=i*s;return{ra:new x8(!1,0,0,l).rad(),dec:new M8(!1,0,0,c).rad()}}function m8e(e,t){let n=.01*(t-e);return[3.07496+.00186*n,1.33621-57e-5*n,20.0431-.0085*n]}function RWt(e,t,n,r,a){let{ra:i,dec:o}=p8e(e,t,n),s=n-t,l=new Cg;return l.ra=e.ra+(i+r)*s,l.dec=e.dec+(o+a)*s,l}function BWt(e,t,n,r,a){let i=new vU(t,n),o=n-t,s=new Cg;return s.ra=e.ra+r*o,s.dec=e.dec+a*o,i.precess(s)}function YWt(e,t,n,r,a){let i=new gU(t,n);if(r&&a&&(0!==r.rad()||0!==a.rad())){let{lon:i,lat:o}=v8e(r.rad(),a.rad(),t,e),s=n-t;e.lon+=i*s,e.lat+=o*s}return i.precess(e)}function v8e(e,t,n,r){let a=dp.meanObliquity(Un.JulianYearToJDE(n)),[i,o]=Un.sincos(a),{ra:s,dec:l}=r.toEquatorial(a),[c,u]=Un.sincos(s),[d,p]=Un.sincos(l),h=Math.cos(r.lat);return new JA((t*i*u+e*p*(o*p+i*d*c))/(h*h),(t*(o*p+i*d*c)-e*i*u*p)/h)}function ZWt(e,t,n,r,a,i,o){let[s,l]=Un.sincos(e.ra),[c,u]=Un.sincos(e.dec),d=r*u*l,p=r*u*s,h=r*c,f=a/r,m=h*o.rad(),g=n-t,y=d+g*(d*f-m*l-p*i.rad()),b=p+g*(p*f-m*s+d*i.rad()),v=h+g*(h*f+r*o.rad()*u),M=new Cg;return M.ra=Math.atan2(b,y),M.dec=Math.atan2(v,Math.hypot(y,b)),M}var Vie,V0,LWt,PWt,IWt,NWt,WWt,FWt,vU,UWt,HWt,VWt,jWt,GWt,XWt,gU,z8,Mq=kr(()=>{H0(),Eg(),Hie(),Xm(),Fy(),Vie=Math.PI/180,LWt=[2306.2181*(V0=Vie/3600),1.39656*V0,-139e-6*V0],PWt=[2306.2181*V0,1.39656*V0,-139e-6*V0],IWt=[2004.3109*V0,-.8533*V0,-217e-6*V0],NWt=[2306.2181*V0,.30188*V0,.017998*V0],WWt=[2306.2181*V0,1.09468*V0,.018203*V0],FWt=[2004.3109*V0,-.42665*V0,-.041833*V0],UWt=[47.0029*V0,-.06603*V0,598e-6*V0],HWt=[174.876384*Vie,3289.4789*V0,.60622*V0],VWt=[5029.0966*V0,2.22226*V0,-42e-6*V0],jWt=[47.0029*V0,-.03302*V0,6e-5*V0],GWt=[174.876384*Vie,-869.8089*V0,.03536*V0],XWt=[5029.0966*V0,1.11113*V0,-6e-6*V0],z8={approxAnnualPrecession:p8e,mn:m8e,approxPosition:RWt,Precessor:vU=class{constructor(e,t){let n=NWt,r=WWt,a=FWt;if(2e3!==e){let t=.01*(e-2e3);n=[Un.horner(t,...LWt),.30188*V0-344e-6*V0*t,.017998*V0],r=[Un.horner(t,...PWt),1.09468*V0+66e-6*V0*t,.018203*V0],a=[Un.horner(t,...IWt),-.42665*V0-217e-6*V0*t,-.041833*V0]}let i=.01*(t-e);this.ζ=Un.horner(i,...n)*i,this.z=Un.horner(i,...r)*i;let o=Un.horner(i,...a)*i;this.sθ=Math.sin(o),this.cθ=Math.cos(o)}precess(e){let[t,n]=Un.sincos(e.dec),[r,a]=Un.sincos(e.ra+this.ζ),i=n*r,o=this.cθ*n*a-this.sθ*t,s=this.sθ*n*a+this.cθ*t,l=new Cg;return l.ra=Math.atan2(i,o)+this.z,s<Un.CosSmallAngle?l.dec=Math.asin(s):l.dec=Math.acos(Math.hypot(i,o)),l}},position:BWt,EclipticPrecessor:gU=class{constructor(e,t){let n=jWt,r=GWt,a=XWt;if(2e3!==e){let t=.01*(e-2e3);n=[Un.horner(t,...UWt),-.03302*V0+598e-6*V0*t,6e-5*V0],r=[Un.horner(t,...HWt),-869.8089*V0-.50491*V0*t,.03536*V0],a=[Un.horner(t,...VWt),1.11113*V0-42e-6*V0*t,-6e-6*V0]}let i=.01*(t-e);this.π=Un.horner(i,...r),this.p=Un.horner(i,...a)*i;let o=Un.horner(i,...n)*i;this.sη=Math.sin(o),this.cη=Math.cos(o)}precess(e){let[t,n]=Un.sincos(e.lat),[r,a]=Un.sincos(this.π-e.lon),i=this.cη*n*r-this.sη*t,o=n*a,s=this.cη*t+this.sη*n*r,l=new JA(this.p+this.π-Math.atan2(i,o));return s<Un.CosSmallAngle?l.lat=Math.asin(s):l.lat=Math.acos(Math.hypot(i,o)),l}reduceElements(e){let t=this.π+this.p,[n,r]=Un.sincos(e.inc),[a,i]=Un.sincos(e.node-this.π),o=new mU;return o.inc=Math.acos(r*this.cη+n*this.sη*i),o.node=Math.atan2(n*a,this.cη*n*i-this.sη*r)+t,o.peri=Math.atan2(-this.sη*a,n*this.cη-r*this.sη*i)+e.peri,o}},eclipticPosition:YWt,properMotion:v8e,properMotion3D:ZWt}});function A8(e,t){let n=[];return Object.keys(t).forEach(r=>{n[r]=0;let a=t[r].length-1;for(;a>=0;a--){let i={a:t[r][a][0],b:t[r][a][1],c:t[r][a][2]};n[r]+=i.a*Math.cos(i.b+i.c*e)}}),Un.horner(e,...n)}function $Wt(e,t,n){let r=Un.J2000Century(n),a=e-bu.angleFromDeg((1.397+31e-5*r)*r),[i,o]=Un.sincos(a),s=e+bu.angleFromSec(.03916*(o+i)*Math.tan(t)-.09033),l=t+bu.angleFromSec(.03916*(o-i));return new Un.Coord(s,l)}var jie,u3,qg=kr(()=>{H0(),Fy(),Eg(),Mq(),u3={Planet:jie=class{constructor(e){if("object"!=typeof e)throw new TypeError("need planet vsop87 data");this.name=e.name,this.type=e.type||"B",this.series=e}position2000(e){let t=.1*Un.J2000Century(e),n=Un.pmod(A8(t,this.series.L),2*Math.PI),r=A8(t,this.series.B),a=A8(t,this.series.R);switch(this.type){case"B":return new Un.Coord(n,r,a);case"D":{let t=new kv.Ecliptic(n,r),i=Un.JDEToJulianYear(e),o=z8.eclipticPosition(t,i,2e3);return new Un.Coord(o.lon,o.lat,a)}}}position(e){let t=.1*Un.J2000Century(e),n=Un.pmod(A8(t,this.series.L),2*Math.PI),r=A8(t,this.series.B),a=A8(t,this.series.R);switch(this.type){case"B":{let t=new kv.Ecliptic(n,r),i=2e3,o=Un.JDEToJulianYear(e),s=z8.eclipticPosition(t,i,o);return new Un.Coord(s.lon,s.lat,a)}case"D":return new Un.Coord(n,r,a)}}},toFK5:$Wt}});function w8(e){let t=Un.horner(e,280.46646,36000.76983,3032e-7)*Math.PI/180,n=g8e(e),r=(Un.horner(e,1.914602,-.004817,-14e-6)*Math.sin(n)+(.019993-101e-6*e)*Math.sin(2*n)+289e-6*Math.sin(3*n))*Math.PI/180;return{lon:Un.pmod(t+r,2*Math.PI),ano:Un.pmod(n+r,2*Math.PI)}}function g8e(e){return Un.horner(e,357.52911,35999.05029,-1537e-7)*Math.PI/180}function y8e(e){return Un.horner(e,.016708634,-42037e-9,-1.267e-7)}function KWt(e){let{lon:t,ano:n}=w8(e),r=y8e(e);return 1.000001018*(1-r*r)/(1+r*Math.cos(n))}function b8e(e){let t=M8e(e),{lon:n,ano:r}=w8(e);return n-.00569*Math.PI/180-.00478*Math.PI/180*Math.sin(t)}function M8e(e){return 125.04*Math.PI/180-1934.136*Math.PI/180*e}function JWt(e){let{lon:t,ano:n}=w8(e);return t-=.01397*Math.PI/180*e*100,{lon:t,ano:n}}function QWt(e){let{lon:t,ano:n}=w8(Un.J2000Century(e)),r=dp.meanObliquity(e),[a,i]=Un.sincos(t),[o,s]=Un.sincos(r),l=Math.atan2(s*a,i),c=o*a;return new Un.Coord(l,c)}function eFt(e){let t=Un.J2000Century(e),n=b8e(t),r=dp.meanObliquity(e),[a,i]=Un.sincos(n),[o,s]=Un.sincos(r+.00256*Math.PI/180*Math.cos(M8e(t))),l=Math.atan2(s*a,i),c=Math.asin(o*a);return new Un.Coord(l,c)}function Gie(e,t){let{lon:n,lat:r,range:a}=e.position(t),i=n+Math.PI,o=Un.horner(Un.J2000Century(t),i,-1.397*Math.PI/180,-31e-5*Math.PI/180),[s,l]=Un.sincos(o),c=.03916/3600*Math.PI/180*(l-s);return n=Un.pmod(i-.09033/3600*Math.PI/180,2*Math.PI),r=c-r,new Un.Coord(n,r,a)}function tFt(e,t){let{lon:n,lat:r,range:a}=Gie(e,t);return n=n+dp.nutation(t)[0]+Xie(a),new Un.Coord(n,r,a)}function rFt(e,t){let{lon:n,lat:r,range:a}=Gie(e,t),[i,o]=dp.nutation(t),s=n+i+Xie(a),l=dp.meanObliquity(t)+o,{ra:c,dec:u}=new kv.Ecliptic(s,r).toEquatorial(l);return new KA(c,u,a)}function Xie(e){return-20.4898/3600*Math.PI/180/e}var Cv,Onn,Tnn,Snn,Enn,qnn,Dnn,Rnn,Inn,Nnn,Wnn,Fnn,Bnn,nFt,bz,By=kr(()=>{H0(),qg(),Eg(),Xm(),Cv={trueLongitude:w8,true:w8,meanAnomaly:g8e,eccentricity:y8e,radius:KWt,apparentLongitude:b8e,true2000:JWt,trueEquatorial:QWt,apparentEquatorial:eFt,trueVSOP87:Gie,apparentVSOP87:tFt,apparentEquatorialVSOP87:rFt,aberration:Xie}}),Yie=kr(()=>{H0(),Eg(),Xm(),Mq(),By(),({cos:Onn,tan:Tnn}=Math),Snn=20.49552*Math.PI/180/3600}),x8e=kr(()=>{H0(),({sin:Enn,cos:qnn}=Math),Dnn=1/1325.55,Rnn=Math.PI/180}),_8e=kr(()=>{H0(),({atan:Inn,atan2:Nnn,cos:Wnn,sqrt:Fnn,tan:Bnn}=Math)}),z8e=kr(()=>{H0(),yz()}),A8e=kr(()=>{H0()}),w8e=kr(()=>{bz=nFt={historic:{table:[44,43,43,41,40,39,38,37,37,36,36,36,37,37,38,37,36,36,35,35,34,33,33,32,32,31,31,30,30,29,29,29,29,29,28,28,27,27,26,26,25,25,25,26,26,26,26,25,25,25,24,24,24,24,24,24,24,24,24,24,23,23,23,23,22,22,22,22,22,21,21,21,21,21,21,21,21,20,20,20,20,20,20,20,20,20,21,21,21,20,20,20,20,20,19,19,19,19,19,20,20,20,20,19,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21.1,21,21,21,20.9,20.8,20.7,20.6,20.4,20.2,20,19.7,19.4,19.1,18.7,18.3,17.8,17.4,17,16.8,16.6,16.4,16.1,15.9,15.7,15.5,15.3,15,14.7,14.5,14.3,14.2,14.1,14.1,14.1,13.9,13.7,13.6,13.5,13.5,13.5,13.5,13.4,13.4,13.4,13.4,13.3,13.3,13.2,13.2,13.2,13.1,13.1,13.1,13,13.2,13.3,13.4,13.5,13.6,13.7,13.8,13.9,14,14,14.1,14.1,14.1,14.1,14.2,14.3,14.4,14.4,14.5,14.6,14.6,14.7,14.7,14.7,14.8,14.8,14.9,14.9,15,15,15.1,15.2,15.3,15.4,15.5,15.6,15.6,15.6,15.8,15.9,15.9,15.9,15.8,15.7,15.8,15.7,15.7,15.7,15.8,15.9,16.1,16.1,16,15.9,15.9,15.7,15.4,15.3,15.4,15.5,15.6,15.6,15.6,15.6,15.6,15.6,15.6,15.5,15.5,15.4,15.3,15.2,15.1,14.9,14.8,14.6,14.4,14.3,14.2,14.1,14.2,14.2,13.9,13.7,13.5,13.3,13.1,13,13.2,13.2,13.1,13.1,13.2,13.3,13.5,13.5,13.4,13.2,13.2,13.1,13.1,13,12.8,12.6,12.7,12.6,12.3,12,11.9,11.8,11.6,11.4,11.2,11.1,11.1,11.1,11.1,11.1,11.2,11.1,11.1,11.2,11.4,11.5,11.3,11.2,11.4,11.7,11.9,11.9,11.9,11.8,11.7,11.8,11.8,11.8,11.7,11.6,11.6,11.5,11.5,11.4,11.4,11.3,11.3,11.13,11.16,10.94,10.72,10.29,10.04,9.94,9.91,9.88,9.86,9.72,9.67,9.66,9.64,9.51,9.4,9.21,9,8.6,8.29,7.95,7.73,7.59,7.49,7.36,7.26,7.1,7,6.89,6.82,6.73,6.64,6.39,6.28,6.25,6.27,6.25,6.27,6.22,6.24,6.22,6.27,6.3,6.36,6.35,6.37,6.32,6.33,6.33,6.37,6.37,6.41,6.4,6.44,6.46,6.51,6.48,6.51,6.53,6.58,6.55,6.61,6.69,6.8,6.84,6.94,7.03,7.13,7.15,7.22,7.26,7.3,7.23,7.22,7.21,7.2,6.99,6.98,7.19,7.36,7.35,7.39,7.41,7.45,7.36,7.18,6.95,6.72,6.45,6.24,5.92,5.59,5.15,4.67,4.11,3.52,2.94,2.47,1.97,1.52,1.04,.6,.11,-.34,-.82,-1.25,-1.7,-2.08,-2.48,-2.82,-3.19,-3.5,-3.84,-4.14,-4.43,-4.59,-4.79,-4.92,-5.09,-5.24,-5.36,-5.34,-5.37,-5.32,-5.34,-5.33,-5.4,-5.47,-5.58,-5.66,-5.74,-5.68,-5.69,-5.65,-5.67,-5.68,-5.73,-5.72,-5.78,-5.79,-5.86,-5.89,-6.01,-6.13,-6.28,-6.41,-6.53,-6.49,-6.5,-6.45,-6.41,-6.26,-6.11,-5.9,-5.63,-5.13,-4.68,-4.19,-3.72,-3.21,-2.7,-2.09,-1.48,-.75,-.08,.62,1.26,1.95,2.59,3.28,3.92,4.61,5.2,5.73,6.29,7,7.68,8.45,9.13,9.78,10.38,10.99,11.64,12.47,13.23,14,14.69,15.38,16,16.64,17.19,17.72,18.19,18.67,19.13,19.69,20.14,20.54,20.86,21.14,21.41,21.78,22.06,22.3,22.51,22.79,23.01,23.29,23.46,23.55,23.63,23.8,23.95,24.25,24.39,24.42,24.34,24.22,24.1,24.08,24.02,24.04,23.98,23.91,23.89,23.95,23.93,23.92,23.88,23.94,23.91,23.82,23.76,23.87,23.91,23.95,23.96,24,24.04,24.2,24.35,24.61,24.82,25.09,25.3,25.56,25.77,26.05,26.27,26.54,26.76,27.04,27.27,27.55,27.77,28.03,28.25,28.5,28.7,28.95,29.15,29.38,29.57,29.8,29.97,30.19,30.36,30.57,30.72,30.93,31.07,31.24,31.349,31.516,31.677,31.923,32.166,32.449,32.671,32.919,33.15,33.397,33.584,33.804,33.992,34.24,34.466,34.731,35.03,35.4,35.738,36.147,36.546,36.995,37.429,37.879,38.291,38.753,39.204,39.707,40.182,40.706,41.17,41.686,42.227,42.825,43.373,43.959,44.486,44.997,45.477,45.983,46.458,46.997,47.521,48.034,48.535,49.099,49.589,50.102,50.54,50.975,51.382,51.81,52.168,52.572,52.957,53.434,53.789,54.087],first:1657,last:1984.5},data:{table:[43.4724372,43.5648351,43.6736863,43.7782156,43.8763273,43.9562443,44.0314956,44.1131788,44.1982187,44.2951747,44.3936471,44.4840562,44.5646335,44.6425099,44.7385767,44.8370135,44.9302138,44.9986146,45.0583549,45.1283911,45.2063835,45.2980068,45.3897017,45.476138,45.5632485,45.6450189,45.7374593,45.8283721,45.9132976,45.9819705,46.0407484,46.1067084,46.1825041,46.2788561,46.3713351,46.4567207,46.544486,46.6310899,46.7302231,46.8283588,46.9247443,46.9969757,47.0709148,47.1450515,47.2361542,47.3413241,47.4319364,47.5213815,47.6049313,47.6837388,47.7781381,47.8770756,47.9687104,48.0348257,48.0942021,48.1608205,48.2460028,48.3438529,48.4355405,48.5344163,48.6324506,48.7293718,48.8365414,48.9353232,49.0318781,49.1013205,49.1590844,49.2285534,49.3069683,49.4017939,49.4945263,49.5861495,49.6804907,49.7602264,49.8555805,49.9489224,50.0346777,50.1018531,50.1621723,50.2260014,50.2967905,50.3831254,50.4598772,50.5387068,50.6160484,50.6865941,50.7658362,50.8453698,50.918672,50.9761148,51.0278017,51.084323,51.1537928,51.2318645,51.306308,51.3807849,51.4526292,51.5160394,51.5985479,51.680924,51.7572854,51.8133335,51.8532385,51.9014358,51.9603433,52.0328072,52.0984957,52.1667826,52.2316418,52.2938376,52.3679897,52.4465221,52.5179552,52.5751485,52.6178012,52.666816,52.7340036,52.8055792,52.8792189,52.9564838,53.0444971,53.126769,53.2196749,53.3024139,53.3746645,53.4335399,53.4778015,53.5299937,53.5845392,53.6522628,53.7255844,53.7882418,53.8366625,53.8829665,53.9442904,54.0042478,54.0536342,54.085644,54.1084122,54.1462942,54.1913988,54.2452023,54.2957622,54.3427024,54.3910864,54.4319877,54.4897699,54.545636,54.597741,54.6354962,54.6532352,54.677594,54.7173643,54.7740957,54.8253023,54.8712512,54.916146,54.9580535,54.9997186,55.047571,55.0911778,55.1132386,55.132774,55.1532423,55.1898003,55.2415531,55.283803,55.3222105,55.3612676,55.406262,55.4628719,55.5110909,55.5523777,55.5811877,55.6004372,55.626202,55.6656271,55.7167999,55.7698097,55.8196609,55.8615028,55.9129883,55.9663474,56.0220102,56.0700015,56.0939035,56.110463,56.1313736,56.1610839,56.2068432,56.2582503,56.3000349,56.339902,56.3789995,56.4282839,56.4803947,56.5352164,56.5697487,56.5983102,56.6328326,56.6738814,56.7332116,56.7971596,56.8552701,56.9111378,56.9754725,57.0470772,57.1136128,57.173831,57.2226068,57.259731,57.3072742,57.3643368,57.4334281,57.5015747,57.5653127,57.6333396,57.6972844,57.7710774,57.8407427,57.9057801,57.9575663,57.9974929,58.0425517,58.1043319,58.1679128,58.2389092,58.3091659,58.3833021,58.4536748,58.5401438,58.6227714,58.6916662,58.7409628,58.7836189,58.8405543,58.898579,58.9713678,59.043837,59.1218414,59.2002687,59.274737,59.3574134,59.4433827,59.5242416,59.5849787,59.6343497,59.6927827,59.758805,59.8386448,59.9110567,59.9844537,60.056435,60.123065,60.2042185,60.2803745,60.3530352,60.4011891,60.4439959,60.4900257,60.5578054,60.6324446,60.7058569,60.7853482,60.8663504,60.9386672,61.0276757,61.1103448,61.1870458,61.2453891,61.2881024,61.3377799,61.4036165,61.4760366,61.5524599,61.6286593,61.6845819,61.743306,61.8132425,61.8823203,61.9496762,61.9968743,62.0342938,62.0714108,62.1202315,62.1809508,62.2382046,62.2950486,62.3506479,62.3995381,62.475395,62.5463091,62.6136031,62.6570739,62.6941742,62.7383271,62.7926305,62.8566986,62.9145607,62.9658689,63.0216632,63.0807052,63.1461718,63.2052946,63.2599441,63.2844088,63.2961369,63.3126092,63.3421622,63.3871303,63.4339302,63.4673369,63.4978642,63.5319327,63.5679441,63.6104432,63.6444291,63.6641815,63.6739403,63.692603,63.7147066,63.7518055,63.792717,63.8285221,63.8556871,63.8803854,63.9075025,63.9392787,63.9690744,63.9798604,63.9833077,63.9938011,64.0093384,64.0399621,64.0670429,64.0907881,64.1068077,64.1282125,64.1584211,64.1832722,64.2093975,64.2116628,64.2073173,64.2115565,64.2222858,64.2499625,64.2760973,64.2998037,64.3191858,64.345013,64.3734584,64.3943291,64.4151156,64.4132064,64.4118464,64.4096536,64.4167832,64.43292,64.4510529,64.4734276,64.4893377,64.5053342,64.5269189,64.5470942,64.5596729,64.5512293,64.5370906,64.5359472,64.5414947,64.5543634,64.5654298,64.5736111,64.5891142,64.6014759,64.6176147,64.6374397,64.6548674,64.6530021,64.6379271,64.637161,64.6399614,64.6543152,64.6723164,64.6876311,64.7051905,64.7313433,64.7575312,64.7811143,64.8000929,64.7994561,64.7876424,64.783095,64.7920604,64.8096421,64.8310888,64.8451826,64.8597013,64.8849929,64.9174991,64.9480298,64.9793881,64.9894772,65.0028155,65.0138193,65.0371432,65.0772597,65.112197,65.1464034,65.1832638,65.2145358,65.2493713,65.2920645,65.3279403,65.3413366,65.3451881,65.34964,65.3711307,65.3971998,65.4295547,65.4573487,65.486752,65.5152012,65.5449916,65.5780768,65.612728,65.6287505,65.6370091,65.6493375,65.6759928,65.7096966,65.746092,65.7768362,65.8024614,65.8236695,65.8595036,65.8973008,65.932291,65.950911,65.9534105,65.962833,65.9838647,66.0146733,66.042049,66.0699217,66.0961343,66.1310116,66.1682713,66.2071627,66.2355846,66.2408549,66.2335423,66.2349107,66.2441095,66.2751123,66.3054334,66.3245568,66.3405713,66.3624433,66.3957101,66.428903,66.4618675,66.4748837,66.4751281,66.4828678,66.5056165,66.5382912,66.5705628,66.6030198,66.6339689,66.6569117,66.6925011,66.7288729,66.7578719,66.7707625,66.7740427,66.7846288,66.810324,66.840048,66.8778601,66.9069091,66.944259,66.9762508,67.0258126,67.0716286,67.1100184,67.1266401,67.1331391,67.145797,67.17174,67.2091069,67.2459812,67.2810383,67.3136452,67.3456968,67.389003,67.4318433,67.4666209,67.4858459,67.4989147,67.5110936,67.5352658,67.571103,67.6070253,67.6439167,67.6765272,67.7116693,67.7590634,67.8011542,67.840213,67.8606318,67.8821576,67.9120101,67.9546462,68.0054839,68.051412,68.1024205,68.1577127,68.2043653,68.2664507,68.3188171,68.3703564,68.3964356,68.4094472,68.4304611,68.4629791,68.507818,68.5537018,68.5927179,68.6298107,68.6670627,68.7135208,68.7622755,68.8032843,68.8244838,68.8373427,68.847693,68.8688567,68.9005814,68.9354999,68.9676423,68.9875354,69.0175527,69.0499081,69.0823433,69.1070034,69.1134027,69.1141898,69.1207203,69.1355578,69.16459,69.1964228,69.2201632,69.2451564,69.2732758,69.3031979,69.3325675,69.3540507,69.3581722,69.3441594,69.3376329,69.3377424,69.3432191,69.3540144,69.3611554,69.3751703,69.3889904,69.4091639,69.4264662,69.4386335,69.4241335,69.3921241,69.3693422,69.3574782,69.3593242,69.3630244,69.359334,69.3510133,69.3537917,69.3582217,69.367306,69.3678649,69.3514228,69.3273414,69.3033273,69.2892463,69.2880419,69.2908014,69.2944974,69.2913953,69.286149,69.2835153,69.2815422,69.2806375,69.2553511,69.2125426,69.1847287,69.17207,69.1691531,69.173303,69.1698064,69.1589095,69.1556275,69.1672253,69.1771384],first:1973.0849315068492,firstYM:[1973,2],last:2023.3287671232877,lastYM:[2023,5]},prediction:{table:[67.87818,67.96817999999999,68.02817999999999,68.04818,68.12818,68.21817999999999,68.26818,68.28818,68.36818,68.44818,68.50818,68.51818,68.59818,68.68818,68.73818,68.74817999999999,68.82818,68.91817999999999,68.96817999999999,68.98818,69.06818,69.14818,69.20818,69.22818,69.30818,69.39818,69.46817999999999,69.48818,69.57818,69.66817999999999,69.73818,69.75818,69.85817999999999,69.95818,70.02817999999999,70.05818,70.15818,70.25818,70.33818,70.36818,70.46817999999999],first:2022,last:2032}}});function aFt(e){return e%4==0&&e%100!=0||e%400==0}function iFt(e){let t;if(e<-500)t=Un.horner(.01*(e-1820),-20,0,32);else if(e<500)t=Un.horner(.01*e,10583.6,-1014.41,33.78311,-5.952053,-.1798452,.022174192,.0090316521);else if(e<1600)t=Un.horner(.01*(e-1e3),1574.2,-556.01,71.23472,.319781,-.8503463,-.005050998,.0083572073);else if(e<bz.historic.first)t=Un.horner(e-1600,120,-.9808,-.01532,1/7129);else if(e<bz.data.first)t=O8e(e,bz.historic);else if(e<bz.data.last-.25)t=oFt(e,bz.data);else if(e<bz.prediction.last)t=O8e(e,bz.prediction);else if(e<2050)t=Un.horner((e-2e3)/100,62.92,32.217,55.89);else if(e<2150)t=Un.horner((e-1820)/100,-205.72,56.28,32);else{let n=(e-1820)/100;t=32*n*n-20}return t}function O8e(e,t){return lx.len3ForInterpolateX(e,t.first,t.last,t.table).interpolateX(e)}function oFt(e,t){let[n,r]=t.firstYM,{year:a,month:i,first:o,last:s}=Zie(e),l=12*(a-n)+(i-r),c=t.table.slice(l,l+3);return new lx.Len3(o,s,c).interpolateX(e)}function Zie(e){let t=0|e,n=e-t,r=aFt(t)?1:0,a=Zie.data[r],i=12;for(;i>0&&a[i]>n;)i--;return{year:t,month:i,first:t+a[i],last:i<11?t+a[i+2]:t+1+a[(i+2)%12]}}var O8,yU=kr(()=>{H0(),yz(),w8e(),Zie.data=[[0,0,.08493150684921602,.16164383561635987,.24657534246580326,.3287671232876619,.4136986301368779,.4958904109589639,.5808219178081799,.6657534246576233,.747945205479482,.832876712328698,.915068493150784],[0,0,.08743169398917416,.1639344262296163,.24863387978143692,.3306010928961314,.4153005464481794,.49726775956287383,.5819672131146945,.6666666666667425,.7486338797814369,.8333333333332575,.9153005464481794]],O8={deltaT:iFt}}),$ie=kr(()=>{}),Kie=kr(()=>{H0(),$ie()}),Jie=kr(()=>{H0(),Xm(),By()}),bU=kr(()=>{Yie(),H0(),Eg(),Kie(),Xm(),qg(),Jie()});function Mz(e){return Un.horner(e,2451550.09766,29.530588861/d3,15437e-8,-15e-8,7.3e-10)}function _q(e,t){let n=12.3685*(e-2e3);return Math.floor(n-t+.5)+t}function fFt(e){return Mz(_q(e,0)*d3)}function hFt(e){return Mz(_q(e,.25)*d3)}function pFt(e){return Mz(_q(e,.5)*d3)}function mFt(e){return Mz(_q(e,.75)*d3)}function T8e(e){let t=new T8(e,0);return Mz(t.T)+t.nfc(bFt)+t.a()}function vFt(e){let t=new T8(e,.25);return Mz(t.T)+t.flc()+t.w()+t.a()}function gFt(e){let t=new T8(e,.5);return Mz(t.T)+t.nfc(MFt)+t.a()}function yFt(e){let t=new T8(e,.75);return Mz(t.T)+t.flc()-t.w()+t.a()}var K0,xq,d3,ql,dFt,T8,bFt,MFt,xFt,Uy,zan,kan,Can,Ean,Lan,Pan,Qie=kr(()=>{H0(),({sin:K0,cos:xq}=Math),d3=1/1236.85,ql=Math.PI/180,dFt=29.530588861,T8=class{constructor(e,t){this.A=new Array(14);let n=this.k=_q(e,t),r=this.T=this.k*d3;this.E=Un.horner(r,1,-.002516,-74e-7),this.M=Un.horner(r,2.5534*ql,29.1053567*ql/d3,-14e-7*ql,-11e-8*ql),this.M_=Un.horner(r,201.5643*ql,385.81693528*ql/d3,.0107582*ql,1238e-8*ql,-58e-9*ql),this.F=Un.horner(r,160.7108*ql,390.67050284*ql/d3,-.0016118*ql,-227e-8*ql,11e-9*ql),this.Ω=Un.horner(r,124.7746*ql,-1.56375588*ql/d3,.0020672*ql,215e-8*ql),this.A[0]=299.7*ql+.107408*ql*n-.009173*r*r,this.A[1]=251.88*ql+.016321*ql*n,this.A[2]=251.83*ql+26.651886*ql*n,this.A[3]=349.42*ql+36.412478*ql*n,this.A[4]=84.66*ql+18.206239*ql*n,this.A[5]=141.74*ql+53.303771*ql*n,this.A[6]=207.17*ql+2.453732*ql*n,this.A[7]=154.84*ql+7.30686*ql*n,this.A[8]=34.52*ql+27.261239*ql*n,this.A[9]=207.19*ql+.121824*ql*n,this.A[10]=291.34*ql+1.844379*ql*n,this.A[11]=161.72*ql+24.198154*ql*n,this.A[12]=239.56*ql+25.513099*ql*n,this.A[13]=331.55*ql+3.592518*ql*n}nfc(e){let{M:t,M_:n,E:r,F:a,"Ω":i}=this;return e[0]*K0(n)+e[1]*K0(t)*r+e[2]*K0(2*n)+e[3]*K0(2*a)+e[4]*K0(n-t)*r+e[5]*K0(n+t)*r+e[6]*K0(2*t)*r*r+e[7]*K0(n-2*a)+e[8]*K0(n+2*a)+e[9]*K0(2*n+t)*r+e[10]*K0(3*n)+e[11]*K0(t+2*a)*r+e[12]*K0(t-2*a)*r+e[13]*K0(2*n-t)*r+e[14]*K0(i)+e[15]*K0(n+2*t)+e[16]*K0(2*(n-a))+e[17]*K0(3*t)+e[18]*K0(n+t-2*a)+e[19]*K0(2*(n+a))+e[20]*K0(n+t+2*a)+e[21]*K0(n-t+2*a)+e[22]*K0(n-t-2*a)+e[23]*K0(3*n+t)+e[24]*K0(4*n)}flc(){let{M:e,M_:t,E:n,F:r,"Ω":a}=this;return-.62801*K0(t)+.17172*K0(e)*n+-.01183*K0(t+e)*n+.00862*K0(2*t)+.00804*K0(2*r)+.00454*K0(t-e)*n+.00204*K0(2*e)*n*n+-.0018*K0(t-2*r)+-7e-4*K0(t+2*r)+-4e-4*K0(3*t)+-34e-5*K0(2*t-e)*n+32e-5*K0(e+2*r)*n+32e-5*K0(e-2*r)*n+-28e-5*K0(t+2*e)*n*n+27e-5*K0(2*t+e)*n+-17e-5*K0(a)+-5e-5*K0(t-e-2*r)+4e-5*K0(2*t+2*r)+-4e-5*K0(t+e+2*r)+4e-5*K0(t-2*e)+3e-5*K0(t+e-2*r)+3e-5*K0(3*e)+2e-5*K0(2*t-2*r)+2e-5*K0(t-e+2*r)+-2e-5*K0(3*t+e)}w(){let{M:e,M_:t,E:n,F:r}=this;return.00306-38e-5*n*xq(e)+26e-5*xq(t)-2e-5*(xq(t-e)-xq(t+e)-xq(2*r))}a(){let e=0;return xFt.forEach((t,n)=>{e+=t*K0(this.A[n])}),e}},bFt=[-.4072,.17241,.01608,.01039,.00739,-.00514,.00208,-.00111,-57e-5,56e-5,-42e-5,42e-5,38e-5,-24e-5,-17e-5,-7e-5,4e-5,4e-5,3e-5,3e-5,-3e-5,3e-5,-2e-5,-2e-5,2e-5],MFt=[-.40614,.17302,.01614,.01043,.00734,-.00515,.00209,-.00111,-57e-5,56e-5,-42e-5,42e-5,38e-5,-24e-5,-17e-5,-7e-5,4e-5,4e-5,3e-5,3e-5,-3e-5,3e-5,-2e-5,-2e-5,2e-5],xFt=[325e-6,165e-6,164e-6,126e-6,11e-5,62e-6,6e-5,56e-6,47e-6,42e-6,4e-5,37e-6,35e-6,23e-6],Uy={meanLunarMonth:dFt,meanNew:fFt,meanFirst:hFt,meanFull:pFt,meanLast:mFt,newMoon:T8e,new:T8e,first:vFt,full:gFt,last:yFt}}),S8e=kr(()=>{H0(),Qie()}),k8e=kr(()=>{H0(),zan=1/3600*Math.PI/180}),eoe=kr(()=>{H0(),Eg(),Xm(),By(),({cos:kan,sin:Can,tan:Ean}=Math)}),C8e=kr(()=>{}),toe=kr(()=>{H0(),({toDeg:Lan}=Un),Pan=Math.PI/180});function MU(e,t,n,r){let a=0;if(t<3&&(e--,t+=12),!r){let t=Un.floorDiv(e,100);a=2-t+Un.floorDiv(t,4)}return Un.floorDiv(36525*cx(e+4716),100)+(Un.floorDiv(306*(t+1),10)+a)+n-1524.5}function q8e(e,t,n){return MU(e,t,n,!1)}function D8e(e,t,n){return MU(e,t,n,!0)}function Oq(e){return e%4==0}function Tq(e){return e%4==0&&e%100!=0||e%400==0}function xU(e,t){let[n,r]=Un.modf(e+.5),a=n;if(!t){let e=Un.floorDiv(100*n-186721625,3652425);a=n+1+e-Un.floorDiv(e,4)}let i,o,s=a+1524,l=Un.floorDiv(100*s-12210,36525),c=Un.floorDiv(36525*l,100),u=cx(Un.floorDiv(1e4*(s-c),306001)),d=cx(s-c)-Un.floorDiv(306001*u,1e4)+r;return o=14===u||15===u?u-13:u-1,i=o<3?cx(l)-4715:cx(l)-4716,{year:i,month:o,day:d}}function R8e(e){return xU(e,!1)}function L8e(e){return xU(e,!0)}function P8e(e){return e>=E8e}function I8e(e,t=1,n=1){return e>1582||1582===e&&t>10||1582===e&&10===t&&n>=15}function zFt(e){return(new ux).fromJD(e).toDate()}function AFt(e){return(new ux).fromDate(e).toJD()}function wFt(e){return(new ux).fromJDE(e).toDate()}function OFt(e){return(new ux).fromDate(e).toJDE()}function TFt(e){return e+Un.JMod}function SFt(e){return e-Un.JMod}function N8e(e){return cx(e+1.5)%7}function roe(e,t,n){return aoe(e,t,cx(n),Tq(e))}function noe(e,t,n){return aoe(e,t,cx(n),Oq(e))}function aoe(e,t,n,r){let a=0;return r&&t>1&&(a=1),a+zq[t]+cx(n)}function ioe(e,t){let n,r=0;for(t&&(r=1),n=1;n<=12;n++)if(r+zq[n]>e){n-=1;break}return{month:n,day:e-r-zq[n]}}function kFt(e,t){let{month:n,day:r}=ioe(t,Tq(e));return new ux(e,n,r)}function CFt(e,t){let{month:n,day:r}=ioe(t,Oq(e));return new wq(e,n,r)}function QA(e,t){t=t||2;let n=e<0?"-":"",r="0000"+(e=Math.abs(e));return n+r.substr(r.length-t,t)}var cx,E8e,zq,_Ft,Aq,wq,ux,fp,Min,xin,_in,zin,Ain,Rin,Lin,Pin,Iin,loe,RFt,Nin,Win,j0,Fin,Vin,Go,Xin,Yin,Zin,lon,dx,von,gon,yon,bon,Mon,xon,_on,zon,Aon,Sq=kr(()=>{H0(),Fy(),yU(),cx=Math.trunc,E8e=2299160.5,zq=[0,0,31,59,90,120,151,181,212,243,273,304,334],_Ft=86400,Aq=class{constructor(e,t=1,n=1){e instanceof Date?this.fromDate(e):(this.year=e,this.month=t,this.day=n)}getDate(){return{year:this.year,month:this.month,day:Math.floor(this.day)}}getTime(){let e=new bu.Time(this.day*_Ft),[t,n,r,a]=e.toHMS(),[i,o]=Un.modf(a);return o=Math.trunc(1e3*o),{hour:n%24,minute:r,second:i,millisecond:o}}toISOString(){let{year:e,month:t,day:n}=this.getDate(),{hour:r,minute:a,second:i,millisecond:o}=this.getTime();return`${QA(e,4)}-${QA(t)}-${QA(n)}T${QA(r)}:${QA(a)}:${QA(i)}.${QA(o,3)}Z`}isGregorian(){return I8e(this.year,this.month,this.day)}fromDate(e){this.year=e.getUTCFullYear(),this.month=e.getUTCMonth()+1;let t=e.getUTCDate(),n=e.getUTCHours(),r=e.getUTCMinutes(),a=e.getUTCSeconds(),i=e.getMilliseconds();return this.day=t+(n+(r+(a+i/1e3)/60)/60)/24,this}toDate(){let[e,t]=Un.modf(this.day),[n,r]=Un.modf(24*t),[a,i]=Un.modf(60*r),[o,s]=Un.modf(60*i),l=new Date(Date.UTC(this.year,this.month-1,e,n,a,o,Math.round(1e3*s)));return l.setUTCFullYear(this.year),l}toYear(){let[e,t]=Un.modf(this.day),n=this.dayOfYear()-1+t,r=this.isLeapYear()?366:365;return this.year+n/r}fromYear(e){let[t,n]=Un.modf(e);this.year=t;let r=this.isLeapYear()?366:365,a=Un.round(n*r,5),i=12;for(;i>0&&zq[i]>a;)i--;return this.month=i,this.day=1+a-zq[this.month],this}isLeapYear(){return this.isGregorian()?Tq(this.year):Oq(this.year)}toJD(){return MU(this.year,this.month,this.day,!this.isGregorian())}fromJD(e){let t=!P8e(e),{year:n,month:r,day:a}=xU(e,t);return this.year=n,this.month=r,this.day=a,this}fromJDE(e){this.fromJD(e);let t=O8.deltaT(this.toYear());return this.day-=t/86400,this}toJDE(){let e=O8.deltaT(this.toYear());return this.day+=e/86400,this.toJD()}midnight(){return this.day=Math.floor(this.day),this}noon(){return this.day=Math.floor(this.day)+.5,this}deltaT(e){let t=O8.deltaT(this.toYear());return e?this.day-=t/86400:this.day+=t/86400,this}dayOfWeek(){return N8e(this.toJD())}dayOfYear(){return this.isGregorian()?roe(this.year,this.month,this.day):noe(this.year,this.month,this.day)}},wq=class extends Aq{toJD(){return D8e(this.year,this.month,this.day)}fromJD(e){let{year:t,month:n,day:r}=L8e(e);return this.year=t,this.month=n,this.day=r,this}isLeapYear(){return Oq(this.year)}dayOfYear(){return noe(this.year,this.month,this.day)}toGregorian(){let e=this.toJD();return(new ux).fromJD(e)}},ux=class extends Aq{toJD(){return q8e(this.year,this.month,this.day)}fromJD(e){let{year:t,month:n,day:r}=R8e(e);return this.year=t,this.month=n,this.day=r,this}isLeapYear(){return Tq(this.year)}dayOfYear(){return roe(this.year,this.month,this.day)}toJulian(){let e=this.toJD();return(new wq).fromJD(e)}},fp={GREGORIAN0JD:E8e,Calendar:Aq,CalendarJulian:wq,CalendarGregorian:ux,CalendarToJD:MU,CalendarGregorianToJD:q8e,CalendarJulianToJD:D8e,LeapYearJulian:Oq,LeapYearGregorian:Tq,JDToCalendar:xU,JDToCalendarGregorian:R8e,JDToCalendarJulian:L8e,isJDCalendarGregorian:P8e,isCalendarGregorian:I8e,JDToDate:zFt,DateToJD:AFt,JDEToDate:wFt,DateToJDE:OFt,MJDToJD:TFt,JDToMJD:SFt,DayOfWeek:N8e,DayOfYearGregorian:roe,DayOfYearJulian:noe,DayOfYear:aoe,DayOfYearToCalendar:ioe,DayOfYearToCalendarGregorian:kFt,DayOfYearToCalendarJulian:CFt}}),W8e=kr(()=>{H0(),Sq()}),F8e=kr(()=>{H0(),Xm(),qg()}),ooe=kr(()=>{H0()}),B8e=kr(()=>{H0(),ooe(),By(),qg()}),U8e=kr(()=>{H0(),yz()}),H8e=kr(()=>{H0()}),V8e=kr(()=>{H0()}),j8e=kr(()=>{H0(),Eg(),toe(),Xm(),qg()}),soe=kr(()=>{H0(),({asin:Min,sin:xin}=Math),_in=Math.PI/180,zin=[[0,0,1,0,6288774,-20905355],[2,0,-1,0,1274027,-3699111],[2,0,0,0,658314,-2955968],[0,0,2,0,213618,-569925],[0,1,0,0,-185116,48888],[0,0,0,2,-114332,-3149],[2,0,-2,0,58793,246158],[2,-1,-1,0,57066,-152138],[2,0,1,0,53322,-170733],[2,-1,0,0,45758,-204586],[0,1,-1,0,-40923,-129620],[1,0,0,0,-34720,108743],[0,1,1,0,-30383,104755],[2,0,0,-2,15327,10321],[0,0,1,2,-12528,0],[0,0,1,-2,10980,79661],[4,0,-1,0,10675,-34782],[0,0,3,0,10034,-23210],[4,0,-2,0,8548,-21636],[2,1,-1,0,-7888,24208],[2,1,0,0,-6766,30824],[1,0,-1,0,-5163,-8379],[1,1,0,0,4987,-16675],[2,-1,1,0,4036,-12831],[2,0,2,0,3994,-10445],[4,0,0,0,3861,-11650],[2,0,-3,0,3665,14403],[0,1,-2,0,-2689,-7003],[2,0,-1,2,-2602,0],[2,-1,-2,0,2390,10056],[1,0,1,0,-2348,6322],[2,-2,0,0,2236,-9884],[0,1,2,0,-2120,5751],[0,2,0,0,-2069,0],[2,-2,-1,0,2048,-4950],[2,0,1,-2,-1773,4130],[2,0,0,2,-1595,0],[4,-1,-1,0,1215,-3958],[0,0,2,2,-1110,0],[3,0,-1,0,-892,3258],[2,1,1,0,-810,2616],[4,-1,-2,0,759,-1897],[0,2,-1,0,-713,-2117],[2,2,-1,0,-700,2354],[2,1,-2,0,691,0],[2,-1,0,-2,596,0],[4,0,1,0,549,-1423],[0,0,4,0,537,-1117],[4,-1,0,0,520,-1571],[1,0,-2,0,-487,-1739],[2,1,0,-2,-399,0],[0,0,2,-2,-381,-4421],[1,1,1,0,351,0],[3,0,-2,0,-340,0],[4,0,-3,0,330,0],[2,-1,2,0,327,0],[0,2,1,0,-323,1165],[1,1,-1,0,299,0],[2,0,3,0,294,0],[2,0,-1,-2,0,8752]].map(e=>{let t={};return["d","m","m_","f","Σl","Σr"].forEach((n,r)=>{t[n]=e[r]}),t}),Ain=[[0,0,0,1,5128122],[0,0,1,1,280602],[0,0,1,-1,277693],[2,0,0,-1,173237],[2,0,-1,1,55413],[2,0,-1,-1,46271],[2,0,0,1,32573],[0,0,2,1,17198],[2,0,1,-1,9266],[0,0,2,-1,8822],[2,-1,0,-1,8216],[2,0,-2,-1,4324],[2,0,1,1,4200],[2,1,0,-1,-3359],[2,-1,-1,1,2463],[2,-1,0,1,2211],[2,-1,-1,-1,2065],[0,1,-1,-1,-1870],[4,0,-1,-1,1828],[0,1,0,1,-1794],[0,0,0,3,-1749],[0,1,-1,1,-1565],[1,0,0,1,-1491],[0,1,1,1,-1475],[0,1,1,-1,-1410],[0,1,0,-1,-1344],[1,0,0,-1,-1335],[0,0,3,1,1107],[4,0,0,-1,1021],[4,0,-1,1,833],[0,0,1,-3,777],[4,0,-2,1,671],[2,0,0,-3,607],[2,0,2,-1,596],[2,-1,1,-1,491],[2,0,-2,1,-451],[0,0,3,-1,439],[2,0,2,1,422],[2,0,-3,-1,421],[2,1,-1,1,-366],[2,1,0,1,-351],[4,0,0,1,331],[2,-1,1,1,315],[2,-2,0,-1,302],[0,0,1,3,-283],[2,1,1,-1,-229],[1,1,0,-1,223],[1,1,0,1,223],[0,1,-2,-1,-220],[2,1,-1,-1,-220],[1,0,1,1,-185],[2,-1,-2,-1,181],[0,1,2,1,-177],[4,0,-2,-1,176],[4,-1,-1,-1,166],[1,0,1,-1,-164],[4,0,1,-1,132],[1,0,-1,-1,-119],[4,-1,0,-1,115],[2,-2,0,1,107]].map(e=>{let t={};return["d","m","m_","f","Σb"].forEach((n,r)=>{t[n]=e[r]}),t})}),G8e=kr(()=>{H0(),Eg(),soe(),Xm(),By(),qg(),({sin:Rin,cos:Lin,asin:Pin,atan2:Iin}=Math),loe=Math.PI/180,RFt=1.54242*loe,[Nin,Win]=Un.sincos(RFt),Fin={archimedes:(j0=(e,t)=>new Un.Coord(e*loe,t*loe))(-3.9,29.7),aristarchus:j0(-47.5,23.7),aristillus:j0(1.2,33.9),aristoteles:j0(17.3,50.1),arzachel:j0(-1.9,-17.7),autolycus:j0(1.5,30.7),billy:j0(-50,-13.8),birt:j0(-8.5,-22.3),campanus:j0(-27.7,-28),censorinus:j0(32.7,-.4),clavius:j0(-14,-58),copernicus:j0(-20,9.7),delambre:j0(17.5,-1.9),dionysius:j0(17.3,2.8),endymion:j0(56.4,53.6),eratosthenes:j0(-11.3,14.5),eudoxus:j0(16.3,44.3),fracastorius:j0(33.2,-21),fraMauro:j0(-17,-6),gassendi:j0(-39.9,-17.5),goclenius:j0(45,-10.1),grimaldi:j0(-68.5,-5.8),harpalus:j0(-43.4,52.6),horrocks:j0(5.9,-4),kepler:j0(-38,8.1),langrenus:j0(60.9,-8.9),lansberg:j0(-26.6,-.3),letronne:j0(-43,-10),macrobius:j0(46,21.2),manilius:j0(9.1,14.5),menelaus:j0(16,16.3),messier:j0(47.6,-1.9),petavius:j0(61,-25),pico:j0(-8.8,45.8),pitatus:j0(-13.5,-29.8),piton:j0(-.8,40.8),plato:j0(-9.2,51.4),plinius:j0(23.6,15.3),posidonius:j0(30,31.9),proclus:j0(46.9,16.1),ptolemeusA:j0(-.8,-8.5),pytheas:j0(-20.6,20.5),reinhold:j0(-22.8,3.2),riccioli:j0(-74.3,-3.2),schickard:j0(-54.5,-44),schiller:j0(-39,-52),tauruntius:j0(46.5,5.6),theophilus:j0(26.5,-11.4),timocharis:j0(-13.1,26.7),tycho:j0(-11,-43.2),vitruvius:j0(31.3,17.6),walter:j0(1,-33)}}),X8e=kr(()=>{H0(),Vin=Math.PI/180}),Y8e=kr(()=>{H0(),Go=Math.PI/180,Xin=1/1336.86,Yin={D:152.2029*Go,m:14.8591*Go,m_:4.6881*Go,f:325.8867*Go,JDE:2451562.5897,s:1,tc:[.8975,-.4726,-.103,-.0976,-.0462,-.0461,-.0438,.0162,-.0157,.0145,.0136,-.0095,-.0091,-.0089,.0075,-.0068,.0061,-.0047,-.0043,-.004,-.0037,.0031,.003,-.0029,-.0029,-.0027,.0024,-.0021,.0019,.0018,.0018,.0017,.0017,-.0014,.0013,.0013,.0012,.0011,-.0011,.001,.001,-9e-4,7e-4,-7e-4],dc:[5.1093*Go,.2658*Go,.1448*Go,-.0322*Go,.0133*Go,.0125*Go,-.0124*Go,-.0101*Go,.0097*Go,-.0087*Go,.0074*Go,.0067*Go,.0063*Go,.006*Go,-.0057*Go,-.0056*Go,.0052*Go,.0041*Go,-.004*Go,.0038*Go,-.0034*Go,-.0029*Go,.0029*Go,-.0028*Go,-.0028*Go,-.0023*Go,-.0021*Go,.0019*Go,.0018*Go,.0017*Go,.0015*Go,.0014*Go,-.0012*Go,-.0012*Go,-.001*Go,-.001*Go,6e-4*Go]},Zin={D:345.6676*Go,m:1.3951*Go,m_:186.21*Go,f:145.1633*Go,JDE:2451548.9289,s:-1,tc:[-.8975,-.4726,-.103,-.0976,.0541,.0516,-.0438,.0112,.0157,.0023,-.0136,.011,.0091,.0089,.0075,-.003,-.0061,-.0047,-.0043,.004,-.0037,-.0031,.003,.0029,-.0029,-.0027,.0024,-.0021,-.0019,-6e-4,-.0018,-.0017,.0017,.0014,-.0013,-.0013,.0012,.0011,.0011,.001,.001,-9e-4,-7e-4,-7e-4],dc:[-5.1093*Go,.2658*Go,-.1448*Go,.0322*Go,.0133*Go,.0125*Go,-.0015*Go,.0101*Go,-.0097*Go,.0087*Go,.0074*Go,.0067*Go,-.0063*Go,-.006*Go,.0057*Go,-.0056*Go,-.0052*Go,-.0041*Go,-.004*Go,-.0038*Go,.0034*Go,-.0029*Go,.0029*Go,.0028*Go,-.0028*Go,.0023*Go,.0021*Go,.0019*Go,.0018*Go,-.0017*Go,.0015*Go,.0014*Go,.0012*Go,-.0012*Go,.001*Go,-.001*Go,.0037*Go]}}),Z8e=kr(()=>{H0()}),$8e=kr(()=>{H0()}),_U=kr(()=>{H0(),Xm()}),J8e=kr(()=>{H0(),yq(),_U(),Fy(),lon=8.794/3600*Math.PI/180}),Q8e=kr(()=>{H0()}),eSe=kr(()=>{if(H0(),yz(),qg(),von=(dx={mercury:0,venus:1,earth:2,mars:3,jupiter:4,saturn:5,uranus:6,neptune:7,embary:8}).mercury,gon=dx.venus,yon=dx.earth,bon=dx.mars,Mon=dx.jupiter,xon=dx.saturn,_on=dx.uranus,zon=dx.neptune,Aon=dx.embary,"function"!=typeof setImmediate){setTimeout}});function hx(e,t,n,r){this.A=e,this.B=t,this.M0=n,this.M1=r}function fx(e,t){this.c=e,this.f=t}var Ton,Son,kon,Con,Eon,qon,Don,Ron,Lon,Pon,Ion,Non,Won,tSe=kr(()=>{H0(),Ton=new hx(2451612.023,115.8774771,63.5867,114.2088742),Son=new hx(2451554.084,115.8774771,6.4822,114.2088742),kon=new hx(2451996.706,583.921361,82.7311,215.513058),Con=new hx(2452097.382,779.936104,181.9573,48.705244),Eon=new hx(2451870.628,398.884046,318.4681,33.140229),qon=new hx(2451870.17,378.091904,318.0172,12.647487),Don=new hx(2451681.124,378.091904,131.6934,12.647487),Ron=new hx(2451764.317,369.656035,213.6884,4.333093),Lon=new hx(2451753.122,367.486703,202.6544,2.194998),Pon=[new fx(82.74,40.76)],Ion=[new fx(82.74,40.76),new fx(29.86,1181.36),new fx(14.13,590.68),new fx(220.02,1262.87)],Non=[new fx(207.83,8.51),new fx(108.84,419.96)],Won=[new fx(207.83,8.51),new fx(276.74,209.98)]});function $l(e,t,n,r,a,i,o,s,l){this.i=e,this.j=t,this.k=n,this.lA=r,this.lB=a,this.bA=i,this.bB=o,this.rA=s,this.rB=l}var Hon,Gon,Xon,Yon,Zon,$on,Kon,Jon,nSe=kr(()=>{H0(),bU(),Hon=[new $l(0,0,1,-19.799805,19.850055,-5.452852,-14.974862,6.6865439,6.8951812),new $l(0,0,2,.897144,-4.954829,3.527812,1.67279,-1.1827535,-.0332538),new $l(0,0,3,.611149,1.211027,-1.050748,.327647,.1593179,-.143889),new $l(0,0,4,-.341243,-.189585,.17869,-.292153,-.0018444,.048322),new $l(0,0,5,.129287,-.034992,.01865,.10034,-.0065977,-.0085431),new $l(0,0,6,-.038164,.030893,-.030697,-.025823,.0031174,-6032e-7),new $l(0,1,-1,.020442,-.009987,.004878,.011248,-5794e-7,.0022161),new $l(0,1,0,-.004063,-.005071,226e-6,-64e-6,4601e-7,4032e-7),new $l(0,1,1,-.006016,-.003336,.00203,-836e-6,-1729e-7,234e-7),new $l(0,1,2,-.003956,.003039,69e-6,-604e-6,-415e-7,702e-7),new $l(0,1,3,-667e-6,.003572,-247e-6,-567e-6,239e-7,723e-7),new $l(0,2,-2,.001276,501e-6,-57e-6,1e-6,67e-7,-67e-7),new $l(0,2,-1,.001152,-917e-6,-122e-6,175e-6,1034e-7,-451e-7),new $l(0,2,0,63e-5,-.001277,-49e-6,-164e-6,-129e-7,504e-7),new $l(1,-1,0,.002571,-459e-6,-197e-6,199e-6,48e-6,-231e-7),new $l(1,-1,1,899e-6,-.001449,-25e-6,217e-6,2e-7,-441e-7),new $l(1,0,-3,-.001016,.001043,589e-6,-248e-6,-3359e-7,265e-7),new $l(1,0,-2,-.002343,-.001012,-269e-6,711e-6,7856e-7,-7832e-7),new $l(1,0,-1,.007042,788e-6,185e-6,193e-6,36e-7,.0045763),new $l(1,0,0,.001199,-338e-6,315e-6,807e-6,8663e-7,8547e-7),new $l(1,0,1,418e-6,-67e-6,-13e-5,-43e-6,-809e-7,-769e-7),new $l(1,0,2,12e-5,-274e-6,5e-6,3e-6,263e-7,-144e-7),new $l(1,0,3,-6e-5,-159e-6,2e-6,17e-6,-126e-7,32e-7),new $l(1,0,4,-82e-6,-29e-6,2e-6,5e-6,-35e-7,-16e-7),new $l(1,1,-3,-36e-6,-29e-6,2e-6,3e-6,-19e-7,-4e-7),new $l(1,1,-2,-4e-5,7e-6,3e-6,1e-6,-15e-7,8e-7),new $l(1,1,-1,-14e-6,22e-6,2e-6,-1e-6,-4e-7,12e-7),new $l(1,1,0,4e-6,13e-6,1e-6,-1e-6,5e-7,6e-7),new $l(1,1,1,5e-6,2e-6,0,-1e-6,3e-7,1e-7),new $l(1,1,3,-1e-6,0,0,0,6e-7,-2e-7),new $l(2,0,-6,2e-6,0,0,-2e-6,2e-7,2e-7),new $l(2,0,-5,-4e-6,5e-6,2e-6,2e-6,-2e-7,-2e-7),new $l(2,0,-4,4e-6,-7e-6,-7e-6,0,14e-7,13e-7),new $l(2,0,-3,14e-6,24e-6,1e-5,-8e-6,-63e-7,13e-7),new $l(2,0,-2,-49e-6,-34e-6,-3e-6,2e-5,136e-7,-236e-7),new $l(2,0,-1,163e-6,-48e-6,6e-6,5e-6,273e-7,1065e-7),new $l(2,0,0,9e-6,-24e-6,14e-6,17e-6,251e-7,149e-7),new $l(2,0,1,-4e-6,1e-6,-2e-6,0,-25e-7,-9e-7),new $l(2,0,2,-3e-6,1e-6,0,0,9e-7,-2e-7),new $l(2,0,3,1e-6,3e-6,0,0,-8e-7,7e-7),new $l(3,0,-2,-3e-6,-1e-6,0,1e-6,2e-7,-1e-6),new $l(3,0,-1,5e-6,-3e-6,0,0,19e-7,35e-7),new $l(3,0,0,0,0,1e-6,0,1e-6,3e-7)]}),aSe=kr(()=>{Fy(),({sin:Gon,tan:Xon}=Math),Yon=Math.PI/180,Zon=new bu.Angle(!1,0,0,58.294).rad(),$on=new bu.Angle(!1,0,0,.0668).rad(),Kon=new bu.Angle(!1,0,0,58.276).rad(),Jon=new bu.Angle(!1,0,0,.0824).rad()});function uoe(e,t){return t?e-iSe-t:e}var dsn,fsn,hsn,psn,msn,vsn,gsn,iSe,coe,PFt,ysn,IFt,bsn,NFt,Msn,doe=kr(()=>{H0(),yU(),bU(),yz(),Sq(),Fy(),_U(),yq(),qg(),({acos:dsn,asin:fsn,cos:hsn,sin:psn}=Math),msn=Math.PI/180,vsn=Un.errorCode("always above horizon",-1),gsn=Un.errorCode("always below horizon",1),iSe=new bu.Angle(!1,0,34,0).rad(),coe={stellar:-iSe,solar:new bu.Angle(!0,0,50,0).rad(),lunar:bu.angleFromDeg(.7275),lunarMean:bu.angleFromDeg(.125)},ysn=(PFt=e=>uoe(coe.stellar,e))(),bsn=(IFt=e=>uoe(coe.solar,e))(),Msn=(NFt=e=>coe.lunarMean-uoe(e))()});function kq(e,t,n,r){this.λ=e||0,this.r=t||0,this.γ=n||0,this.Ω=r||0}function px(e){return this.t1=e-2411093,this.t2=this.t1/365.25,this.t3=(e-2433282.423)/365.25+1950,this.t4=e-2411368,this.t5=this.t4/365.25,this.t6=e-2415020,this.t7=this.t6/36525,this.t8=this.t6/365.25,this.t9=(e-2442000.5)/365.25,this.t10=e-2409786,this.t11=this.t10/36525,this.W0=5.095*Aa*(this.t3-1866.39),this.W1=74.4*Aa+32.39*Aa*this.t2,this.W2=134.3*Aa+92.62*Aa*this.t2,this.W3=42*Aa-.5118*Aa*this.t5,this.W4=276.59*Aa+.5118*Aa*this.t5,this.W5=267.2635*Aa+1222.1136*Aa*this.t7,this.W6=175.4762*Aa+1221.5515*Aa*this.t7,this.W7=2.4891*Aa+.002435*Aa*this.t7,this.W8=113.35*Aa-.2597*Aa*this.t7,this.s1=Math.sin(28.0817*Aa),this.c1=Math.cos(28.0817*Aa),this.s2=Math.sin(168.8112*Aa),this.c2=Math.cos(168.8112*Aa),this.e1=.05589-346e-6*this.t7,this.sW0=Math.sin(this.W0),this.s3W0=Math.sin(3*this.W0),this.s5W0=Math.sin(5*this.W0),this.sW1=Math.sin(this.W1),this.sW2=Math.sin(this.W2),this.sW3=Math.sin(this.W3),this.cW3=Math.cos(this.W3),this.sW4=Math.sin(this.W4),this.cW4=Math.cos(this.W4),this.sW7=Math.sin(this.W7),this.cW7=Math.cos(this.W7),this}var Aa,oSe=kr(()=>{H0(),Eg(),qg(),Mq(),By(),Aa=Math.PI/180,px.prototype.mimas=function(){let e=new kq,t=127.64*Aa+381.994497*Aa*this.t1-43.57*Aa*this.sW0-.72*Aa*this.s3W0-.02144*Aa*this.s5W0,n=t-(106.1*Aa+365.549*Aa*this.t2),r=2.18287*Aa*Math.sin(n)+.025988*Aa*Math.sin(2*n)+43e-5*Aa*Math.sin(3*n);return e.λ=t+r,e.r=3.06879/(1+.01905*Math.cos(n+r)),e.γ=1.563*Aa,e.Ω=54.5*Aa-365.072*Aa*this.t2,e},px.prototype.enceladus=function(){let e=new kq,t=200.317*Aa+262.7319002*Aa*this.t1+.25667*Aa*this.sW1+.20883*Aa*this.sW2,n=t-(309.107*Aa+123.44121*Aa*this.t2),r=.55577*Aa*Math.sin(n)+.00168*Aa*Math.sin(2*n);return e.λ=t+r,e.r=3.94118/(1+.00485*Math.cos(n+r)),e.γ=.0262*Aa,e.Ω=348*Aa-151.95*Aa*this.t2,e},px.prototype.tethys=function(){let e=new kq;return e.λ=285.306*Aa+190.69791226*Aa*this.t1+2.063*Aa*this.sW0+.03409*Aa*this.s3W0+.001015*Aa*this.s5W0,e.r=4.880998,e.γ=1.0976*Aa,e.Ω=111.33*Aa-72.2441*Aa*this.t2,e},px.prototype.dione=function(){let e=new kq,t=254.712*Aa+131.53493193*Aa*this.t1-.0215*Aa*this.sW1-.01733*Aa*this.sW2,n=t-(174.8*Aa+30.82*Aa*this.t2),r=.24717*Aa*Math.sin(n)+33e-5*Aa*Math.sin(2*n);return e.λ=t+r,e.r=6.24871/(1+.002157*Math.cos(n+r)),e.γ=.0139*Aa,e.Ω=232*Aa-30.27*Aa*this.t2,e},px.prototype.rhea=function(){let e=342.7*Aa+10.057*Aa*this.t2,[t,n]=Un.sincos(e),r=265e-6*t+.001*this.sW4,a=265e-6*n+.001*this.cW4,i=Math.hypot(r,a),o=Math.atan2(r,a),s=345*Aa-10.057*Aa*this.t2,[l,c]=Un.sincos(s),u=359.244*Aa+79.6900472*Aa*this.t1+.086754*Aa*l,d=28.0362*Aa+.346898*Aa*c+.0193*Aa*this.cW3,p=168.8034*Aa+.736936*Aa*l+.041*Aa*this.sW3;return this.subr(u,o,i,8.725924,p,d)},px.prototype.subr=function(e,t,n,r,a,i){let o=new kq,s=e-t,l=n*n,c=l*n,u=l*l,d=c*l,p=(2*n-.25*c+.0520833333*d)*Math.sin(s)+(1.25*l-.458333333*u)*Math.sin(2*s)+(1.083333333*c-.671875*d)*Math.sin(3*s)+1.072917*u*Math.sin(4*s)+1.142708*d*Math.sin(5*s);o.r=r*(1-l)/(1+n*Math.cos(s+p));let h=a-168.8112*Aa,[f,m]=Un.sincos(i),[g,y]=Un.sincos(h),b=f*g,v=this.c1*f*y-this.s1*m;o.γ=Math.asin(Math.hypot(b,v));let M=Math.atan2(b,v);o.Ω=168.8112*Aa+M;let x=this.c1*f-this.s1*m*y,z=Math.atan2(this.s1*g,x);return o.λ=e+p+M-h-z,o},px.prototype.titan=function(){let e=261.1582*Aa+22.57697855*Aa*this.t4+.074025*Aa*this.sW3,t=27.45141*Aa+.295999*Aa*this.cW3,n=168.66925*Aa+.628808*Aa*this.sW3,[r,a]=Un.sincos(t),[i,o]=Un.sincos(n-this.W8),s=this.sW7*i,l=this.cW7*r-this.sW7*a*o,c=102.8623*Aa,u=Math.atan2(s,l),d=Math.hypot(s,l),p=this.W4-n-u,h=0,[f,m]=Un.sincos(2*c),g=()=>{h=this.W4+.37515*Aa*(Math.sin(2*p)-f),p=h-n-u};g(),g(),g();let y=.029092+19048e-8*(Math.cos(2*p)-m),b=2*(this.W5-h),v=r*i,M=this.cW7*r*o-this.sW7*a,x=Math.atan2(v,M)+this.W8,[z,_]=Un.sincos(b),A=y+.002778797*y*_,O=h+.159215*Aa*z,w=2*this.W5-2*x+u,[k,T]=Un.sincos(w),S=.9375*y*y*z+.1875*d*d*Math.sin(2*(this.W5-x)),C=e-.254744*Aa*(this.e1*Math.sin(this.W6)+.75*this.e1*this.e1*Math.sin(2*this.W6)+S),E=t+.031843*Aa*d*T,q=n+.031843*Aa*d*k/r;return this.subr(C,O,A,20.216193,q,E)},px.prototype.hyperion=function(){let e=92.39*Aa+.5621071*Aa*this.t6,t=148.19*Aa-19.18*Aa*this.t8,n=184.8*Aa-35.41*Aa*this.t9,r=n-7.5*Aa,a=176*Aa+12.22*Aa*this.t8,i=8*Aa+24.44*Aa*this.t8,o=i+5*Aa,s=69.898*Aa-18.67088*Aa*this.t8,l=2*(s-this.W5),c=94.9*Aa-2.292*Aa*this.t8,[u,d]=Un.sincos(e),[p,h]=Un.sincos(t),[f,m]=Un.sincos(2*t),[g,y]=Un.sincos(3*t),[b,v]=Un.sincos(t+e),[M,x]=Un.sincos(t-e),[z,_]=Un.sincos(l),[A,O]=Un.sincos(c),[w,k]=Un.sincos(o),T=24.50601-.08686*d-.00166*v+.00175*x,S=.103458-.004099*d-167e-6*v+235e-6*x+.02303*h-.00212*m+151e-6*y+13e-5*_,C=s+.15648*Aa*A-.4457*Aa*u-.2657*Aa*b-.3573*Aa*M-12.872*Aa*p+1.668*Aa*f-.2419*Aa*g-.07*Aa*z,E=177.047*Aa+16.91993829*Aa*this.t6+.15648*Aa*A+9.142*Aa*u+.007*Aa*Math.sin(2*e)-.014*Aa*Math.sin(3*e)+.2275*Aa*b+.2112*Aa*M-.26*Aa*p-.0098*Aa*f-.013*Aa*Math.sin(a)+.017*Aa*Math.sin(i)-.0303*Aa*z,q=27.3347*Aa+.6434886*Aa*O+.315*Aa*this.cW3+.018*Aa*Math.cos(n)-.018*Aa*k,D=168.6812*Aa+1.40136*Aa*O+.68599*Aa*this.sW3-.0392*Aa*w+.0366*Aa*Math.sin(r);return this.subr(E,C,S,T,D,q)},px.prototype.iapetus=function(){let e=261.1582*Aa+22.57697855*Aa*this.t4,t=91.796*Aa+.562*Aa*this.t7,n=4.367*Aa-.195*Aa*this.t7,r=146.819*Aa-3.198*Aa*this.t7,a=60.47*Aa+1.521*Aa*this.t7,i=205.055*Aa-2.091*Aa*this.t7,o=.028298+.001156*this.t11,s=352.91*Aa+11.71*Aa*this.t11,l=76.3852*Aa+4.53795125*Aa*this.t10,c=Un.horner(this.t11,18.4602*Aa,-.9518*Aa,-.072*Aa,.0054*Aa),u=Un.horner(this.t11,143.198*Aa,-3.919*Aa,.116*Aa,.008*Aa),d=l-s,p=s-u-n,h=s-u-a,f=this.W5-t,m=t-r,g=e-this.W4,y=this.W4-i,b=2*(d+p-f-m),v=d+h-g-y,M=d+2*(p-f-m),x=g+y-h,z=2*(f+m),[_,A]=Un.sincos(d),[O,w]=Un.sincos(b),[k,T]=Un.sincos(v),[S,C]=Un.sincos(M),[E,q]=Un.sincos(x),[D,R]=Un.sincos(d+v),[L,I]=Un.sincos(h-y),[W,N]=Un.sincos(z-2*p),[P,B]=Un.sincos(z+n),[F,j]=Un.sincos(v+a),[U,V]=Un.sincos(d+h+g+y+a),H=58.935028+.004638*w+.058222*T,X=o-.0014097*I+3733e-7*N+118e-6*C+2408e-7*A+2849e-7*R+619e-6*q,G=s+(.08077*Aa*L+.02139*Aa*W-.00676*Aa*S+.0138*Aa*_+.01632*Aa*D+.03547*Aa*E)/o,Y=l-.04299*Aa*k-.00789*Aa*O-.06312*Aa*Math.sin(f)-.00295*Aa*Math.sin(2*f)-.02231*Aa*Math.sin(z)+.0065*Aa*P,Z=c+.04204*Aa*B+.00235*Aa*V+.0036*Aa*j,$=u+(.04204*Aa*P+.00235*Aa*U+.00358*Aa*F)/Math.sin(c);return this.subr(Y,G,X,H,$,Z)}}),sSe=kr(()=>{H0(),Eg(),Xm(),qg()}),lSe=kr(()=>{H0(),Xm(),By()});function BFt(e){return e<1e3?xz(e,uSe):xz(e-2e3,pSe)}function UFt(e){return e<1e3?xz(e,dSe):xz(e-2e3,mSe)}function HFt(e){return e<1e3?xz(e,fSe):xz(e-2e3,vSe)}function VFt(e){return e<1e3?xz(e,hSe):xz(e-2e3,gSe)}function xz(e,t){let n=Un.horner(.001*e,t),r=Un.J2000Century(n),a=35999.373*hoe*r-2.47*hoe,i=1+.0334*foe(a)+7e-4*foe(2*a),o=0;for(let e=cSe.length-1;e>=0;e--){let t=cSe[e];o+=t.a*foe((t.b+t.c*r)*hoe)}return n+1e-5*o/i}function jFt(e,t){return Cq(e,t,0)}function GFt(e,t){return Cq(e,t,Math.PI/2)}function XFt(e,t){return Cq(e,t,Math.PI)}function YFt(e,t){return Cq(e,t,3*Math.PI/2)}function Cq(e,t,n){let r,a;return e<1e3?a=[uSe,dSe,fSe,hSe]:(a=[pSe,mSe,vSe,gSe],e-=2e3),r=(n%=2*Math.PI)<Math.PI/2?a[0]:n<Math.PI?a[1]:n<3*Math.PI/2?a[2]:a[3],ZFt(e,t,n,r)}function ZFt(e,t,n,r){let a=Un.horner(.001*e,r);for(;;){let e=Cv.apparentVSOP87(t,a),r=58*FFt(n-e.lon);if(a+=r,WFt(r)<5e-6)break}return a}var WFt,foe,FFt,hoe,uSe,dSe,fSe,hSe,pSe,mSe,vSe,gSe,cSe,f3,$sn,qq,ew,zSe,Dq,OSe,Rq,LSe,rBt,nBt,Lq,aBt,OU,ISe,yoe,TU,Pq,FSe,ySe=kr(()=>{H0(),By(),({abs:WFt,cos:foe,sin:FFt}=Math),hoe=Math.PI/180,uSe=[1721139.29189,365242.1374,.06134,.00111,-71e-5],dSe=[1721233.25401,365241.72562,-.05323,.00907,25e-5],fSe=[1721325.70455,365242.49558,-.11677,-.00297,74e-5],hSe=[1721414.39987,365242.88257,-.00769,-.00933,-6e-5],pSe=[2451623.80984,365242.37404,.05169,-.00411,-57e-5],mSe=[2451716.56767,365241.62603,.00325,.00888,-3e-4],vSe=[2451810.21715,365242.01767,-.11575,.00337,78e-5],gSe=[2451900.05952,365242.74049,-.06223,-.00823,32e-5],cSe=[[485,324.96,1934.136],[203,337.23,32964.467],[199,342.08,20.186],[182,27.85,445267.112],[156,73.14,45036.886],[136,171.52,22518.443],[77,222.54,65928.934],[74,296.72,3034.906],[70,243.58,9037.513],[58,119.81,33718.147],[52,297.17,150.678],[50,21.02,2281.226],[45,247.54,29929.562],[44,325.15,31555.956],[29,60.93,4443.417],[18,155.12,67555.328],[17,288.79,4562.452],[16,198.04,62894.029],[14,199.76,31436.921],[12,95.39,14577.848],[12,287.11,31931.756],[12,320.81,34777.259],[9,227.73,1222.114],[8,15.45,16859.074]].map(e=>({a:e[0],b:e[1],c:e[2]})),f3={march:BFt,june:UFt,september:HFt,december:VFt,march2:jFt,june2:GFt,september2:XFt,december2:YFt,longitude:Cq}}),bSe=kr(()=>{}),MSe=kr(()=>{H0()}),xSe=kr(()=>{H0(),eoe(),Fy(),By(),Sq(),doe(),$sn={sunrise:new bu.Angle(!0,0,50,0).rad(),sunriseEnd:new bu.Angle(!0,0,18,0).rad(),twilight:new bu.Angle(!0,6,0,0).rad(),nauticalTwilight:new bu.Angle(!0,12,0,0).rad(),night:new bu.Angle(!0,18,0,0).rad(),goldenHour:new bu.Angle(!1,6,0,0).rad()}}),Eq=kr(()=>{s8e(),Yie(),x8e(),H0(),_8e(),Eg(),z8e(),A8e(),yU(),Hie(),bU(),S8e(),k8e(),eoe(),C8e(),yq(),toe(),yz(),$ie(),W8e(),Sq(),F8e(),B8e(),Kie(),U8e(),H8e(),V8e(),Xm(),j8e(),G8e(),X8e(),Y8e(),Z8e(),Qie(),soe(),$8e(),J8e(),Q8e(),eSe(),tSe(),qg(),ooe(),nSe(),Mq(),aSe(),doe(),oSe(),sSe(),Fy(),_U(),By(),lSe(),Jie(),ySe(),bSe(),MSe(),xSe()}),_Se=kr(()=>{Eq(),Sv(),c3(),qq=class extends Th{inYear(e){if(this.opts.year&&this.opts.year!==e)return this;let t=new fp.CalendarJulian(e,this.opts.month,this.opts.day).toGregorian(),n=new yu(t).setOffset(this.offset);return this.dates.push(n),this}}}),poe=kr(()=>{c3(),Sv(),ew=class extends Th{constructor(e){super(e),this.calendar={}}inYear(e){if(!(this.calendar[e]&&this.calendar[e+1]&&this.calendar[e-1]))return this;for(let t=e-1;t<=e+1;t++){let n=this.calendar[t][this.opts.month-1];if(n)for(let r=0;r<n.length;r+=3){if(this.opts.year){let e=this.calendar.year+n[r+2];if(this.opts.year!==e)continue}let a=new yu({year:t,month:n[r]+1,day:n[r+1]}).setOffset(this.opts.day-1);a.year===e&&this.dates.push(a)}}return this}}}),ASe=kr(()=>{zSe={1968:[null,null,null,null,null,null,[8,23,0],[9,23,0],[10,22,0],[11,22,0]],1969:[[2,20,0],[3,19,0],[4,18,0],[5,17,0],[6,16,0],[7,15,0],[8,13,1],[9,13,1],[10,11,1],[11,10,1],[0,20,0],[1,19,0],[1,19,0]],1970:[[3,7,1],[4,7,1],[5,5,1],[6,5,1],[7,3,1],[8,2,1],[9,1,2],[9,31,2],[10,29,2],[11,29,2],[0,8,1],[1,7,1],[2,9,1]],1971:[[2,27,2],[3,26,2],[4,25,2],[5,24,2],[6,23,2],[7,22,2],[8,20,3],[9,20,3],[10,19,3],[11,19,3],[0,27,2],[1,26,2],[1,26,2]],1972:[[2,16,3],[3,15,3],[4,14,3],[5,13,3],[6,12,3],[7,11,3],[8,9,4],[9,9,4],[10,7,4],[11,6,4],[0,17,3],[1,16,3],[1,16,3]],1973:[[3,3,4],[4,3,4],[5,1,4],[6,1,4],[6,30,4],[7,29,4],[8,27,5],[9,27,5],[10,26,5],[11,26,5],[0,4,4],[1,3,4],[2,5,4]],1974:[[2,24,5],[3,23,5],[4,22,5],[5,21,5],[6,20,5],[7,19,5],[8,17,6],[9,17,6],[10,15,6],[11,15,6],[0,24,5],[1,23,5],[1,23,5]],1975:[[2,13,6],[3,12,6],[4,11,6],[5,10,6],[6,9,6],[7,8,6],[8,6,7],[9,6,7],[10,5,7],[11,5,7],[0,13,6],[1,12,6],[1,12,6]],1976:[[3,1,7],[4,1,7],[4,30,7],[5,29,7],[6,28,7],[7,27,7],[8,25,8],[9,25,8],[10,23,8],[11,22,8],[0,3,7],[1,2,7],[2,3,7]],1977:[[2,20,8],[3,19,8],[4,18,8],[5,17,8],[6,16,8],[7,15,8],[8,13,9],[9,13,9],[10,11,9],[11,11,9],[0,20,8],[1,19,8],[1,19,8]],1978:[[3,8,9],[4,8,9],[5,6,9],[6,6,9],[7,4,9],[8,3,9],[9,2,10],[10,1,10],[11,1,10],[11,31,10],[0,9,9],[1,8,9],[2,10,9]],1979:[[2,29,10],[3,28,10],[4,27,10],[5,26,10],[6,25,10],[7,24,10],[8,22,11],[9,22,11],[10,21,11],[11,21,11],[0,29,10],[1,28,10],[1,28,10]],1980:[[2,18,11],[3,17,11],[4,16,11],[5,15,11],[6,14,11],[7,13,11],[8,11,12],[9,11,12],[10,9,12],[11,8,12],[0,19,11],[1,18,11],[1,18,11]],1981:[[3,5,12],[4,5,12],[5,3,12],[6,3,12],[7,1,12],[7,31,12],[8,29,13],[9,29,13],[10,27,13],[11,27,13],[0,6,12],[1,5,12],[2,7,12]],1982:[[2,25,13],[3,24,13],[4,23,13],[5,22,13],[6,21,13],[7,20,13],[8,18,14],[9,18,14],[10,17,14],[11,17,14],[0,25,13],[1,24,13],[1,24,13]],1983:[[2,15,14],[3,14,14],[4,13,14],[5,12,14],[6,11,14],[7,10,14],[8,8,15],[9,8,15],[10,7,15],[11,7,15],[0,15,14],[1,14,14],[1,14,14]],1984:[[3,3,15],[4,3,15],[5,1,15],[6,1,15],[6,30,15],[7,29,15],[8,27,16],[9,27,16],[10,25,16],[11,25,16],[0,5,15],[1,4,15],[2,5,15]],1985:[[2,23,16],[3,22,16],[4,21,16],[5,20,16],[6,19,16],[7,18,16],[8,16,17],[9,16,17],[10,14,17],[11,13,17],[0,23,16],[1,22,16],[1,22,16]],1986:[[3,10,17],[4,10,17],[5,8,17],[6,8,17],[7,6,17],[8,5,17],[9,4,18],[10,3,18],[11,3,18],null,[0,11,17],[1,10,17],[2,12,17]],1987:[[2,31,18],[3,30,18],[4,29,18],[5,28,18],[6,27,18],[7,26,18],[8,24,19],[9,24,19],[10,22,19],[0,2,18,11,22,19],[0,31,18],[2,2,18],[2,2,18]],1988:[[2,19,19],[3,18,19],[4,17,19],[5,16,19],[6,15,19],[7,14,19],[8,12,20],[9,12,20],[10,10,20],[11,9,20],[0,20,19],[1,19,19],[1,19,19]],1989:[[3,6,20],[4,6,20],[5,4,20],[6,4,20],[7,2,20],[8,1,20],[8,30,21],[9,30,21],[10,29,21],[11,29,21],[0,7,20],[1,6,20],[2,8,20]],1990:[[2,27,21],[3,26,21],[4,25,21],[5,24,21],[6,23,21],[7,22,21],[8,20,22],[9,20,22],[10,18,22],[11,18,22],[0,27,21],[1,26,21],[1,26,21]],1991:[[2,16,22],[3,15,22],[4,14,22],[5,13,22],[6,12,22],[7,11,22],[8,9,23],[9,9,23],[10,8,23],[11,8,23],[0,16,22],[1,15,22],[1,15,22]],1992:[[3,4,23],[4,4,23],[5,2,23],[6,2,23],[6,31,23],[7,30,23],[8,28,24],[9,28,24],[10,26,24],[11,25,24],[0,6,23],[1,5,23],[2,6,23]],1993:[[2,23,24],[3,22,24],[4,21,24],[5,20,24],[6,19,24],[7,18,24],[8,16,25],[9,16,25],[10,15,25],[11,15,25],[0,23,24],[1,22,24],[1,22,24]],1994:[[2,13,25],[3,12,25],[4,11,25],[5,10,25],[6,9,25],[7,8,25],[8,6,26],[9,6,26],[10,4,26],[11,4,26],[0,13,25],[1,12,25],[1,12,25]],1995:[[3,1,26],[4,1,26],[4,30,26],[5,29,26],[6,28,26],[7,27,26],[8,25,27],[9,25,27],[10,24,27],[11,24,27],[0,2,26],[1,1,26],[2,3,26]],1996:[[2,21,27],[3,20,27],[4,19,27],[5,18,27],[6,17,27],[7,16,27],[8,14,28],[9,14,28],[10,12,28],[11,11,28],[0,22,27],[1,21,27],[1,21,27]],1997:[[3,8,28],[4,8,28],[5,6,28],[6,6,28],[7,4,28],[8,3,28],[9,2,29],[10,1,29],[10,30,29],[11,30,29],[0,9,28],[1,8,28],[2,10,28]],1998:[[2,28,29],[3,27,29],[4,26,29],[5,25,29],[6,24,29],[7,23,29],[8,21,30],[9,21,30],[10,20,30],[11,20,30],[0,28,29],[1,27,29],[1,27,29]],1999:[[2,18,30],[3,17,30],[4,16,30],[5,15,30],[6,14,30],[7,13,30],[8,11,31],[9,11,31],[10,10,31],[11,10,31],[0,18,30],[1,17,30],[1,17,30]],2e3:[[3,6,31],[4,6,31],[5,4,31],[6,4,31],[7,2,31],[8,1,31],[8,30,32],[9,30,32],[10,28,32],[11,27,32],[0,8,31],[1,7,31],[2,8,31]],2001:[[2,25,32],[3,24,32],[4,23,32],[5,22,32],[6,21,32],[7,20,32],[8,18,33],[9,18,33],[10,16,33],[11,16,33],[0,25,32],[1,24,32],[1,24,32]],2002:[[2,14,33],[3,13,33],[4,12,33],[5,11,33],[6,10,33],[7,9,33],[8,7,34],[9,7,34],[10,6,34],[11,6,34],[0,14,33],[1,13,33],[1,13,33]],2003:[[3,3,34],[4,3,34],[5,1,34],[6,1,34],[6,30,34],[7,29,34],[8,27,35],[9,27,35],[10,26,35],[11,26,35],[0,4,34],[1,3,34],[2,5,34]],2004:[[2,23,35],[3,22,35],[4,21,35],[5,20,35],[6,19,35],[7,18,35],[8,16,36],[9,16,36],[10,14,36],[11,13,36],[0,24,35],[1,23,35],[1,23,35]],2005:[[3,10,36],[4,10,36],[5,8,36],[6,8,36],[7,6,36],[8,5,36],[9,4,37],[10,3,37],[11,2,37],null,[0,11,36],[1,10,36],[2,12,36]],2006:[[2,30,37],[3,29,37],[4,28,37],[5,27,37],[6,26,37],[7,25,37],[8,23,38],[9,23,38],[10,22,38],[0,1,37,11,22,38],[0,30,37],[2,1,37],[2,1,37]],2007:[[2,20,38],[3,19,38],[4,18,38],[5,17,38],[6,16,38],[7,15,38],[8,13,39],[9,13,39],[10,11,39],[11,10,39],[0,20,38],[1,19,38],[1,19,38]],2008:[[3,6,39],[4,6,39],[5,4,39],[6,4,39],[7,2,39],[8,1,39],[8,30,40],[9,30,40],[10,28,40],[11,28,40],[0,8,39],[1,7,39],[2,8,39]],2009:[[2,26,40],[3,25,40],[4,24,40],[5,23,40],[6,22,40],[7,21,40],[8,19,41],[9,19,41],[10,18,41],[11,18,41],[0,26,40],[1,25,40],[1,25,40]],2010:[[2,16,41],[3,15,41],[4,14,41],[5,13,41],[6,12,41],[7,11,41],[8,9,42],[9,9,42],[10,8,42],[11,8,42],[0,16,41],[1,15,41],[1,15,41]],2011:[[3,5,42],[4,5,42],[5,3,42],[6,3,42],[7,1,42],[7,31,42],[8,29,43],[9,29,43],[10,27,43],[11,27,43],[0,6,42],[1,5,42],[2,7,42]],2012:[[2,24,43],[3,23,43],[4,22,43],[5,21,43],[6,20,43],[7,19,43],[8,17,44],[9,17,44],[10,15,44],[11,14,44],[0,25,43],[1,24,43],[1,24,43]],2013:[[2,12,44],[3,11,44],[4,10,44],[5,9,44],[6,8,44],[7,7,44],[8,5,45],[9,5,45],[10,4,45],[11,4,45],[0,12,44],[1,11,44],[1,11,44]],2014:[[3,1,45],[4,1,45],[4,30,45],[5,29,45],[6,28,45],[7,27,45],[8,25,46],[9,25,46],[10,23,46],[11,23,46],[0,2,45],[1,1,45],[2,3,45]],2015:[[2,21,46],[3,20,46],[4,19,46],[5,18,46],[6,17,46],[7,16,46],[8,14,47],[9,14,47],[10,13,47],[11,13,47],[0,21,46],[1,20,46],[1,20,46]],2016:[[3,9,47],[4,9,47],[5,7,47],[6,7,47],[7,5,47],[8,4,47],[9,3,48],[10,2,48],[11,1,48],[11,30,48],[0,11,47],[1,10,47],[2,11,47]],2017:[[2,28,48],[3,27,48],[4,26,48],[5,25,48],[6,24,48],[7,23,48],[8,21,49],[9,21,49],[10,19,49],[11,19,49],[0,28,48],[1,27,48],[1,27,48]],2018:[[2,17,49],[3,16,49],[4,15,49],[5,14,49],[6,13,49],[7,12,49],[8,10,50],[9,10,50],[10,9,50],[11,9,50],[0,17,49],[1,16,49],[1,16,49]],2019:[[3,6,50],[4,6,50],[5,4,50],[6,4,50],[7,2,50],[8,1,50],[8,30,51],[9,30,51],[10,29,51],[11,29,51],[0,7,50],[1,6,50],[2,8,50]],2020:[[2,26,51],[3,25,51],[4,24,51],[5,23,51],[6,22,51],[7,21,51],[8,19,52],[9,19,52],[10,17,52],[11,16,52],[0,27,51],[1,26,51],[1,26,51]],2021:[[2,14,52],[3,13,52],[4,12,52],[5,11,52],[6,10,52],[7,9,52],[8,7,53],[9,7,53],[10,5,53],[11,5,53],[0,14,52],[1,13,52],[1,13,52]],2022:[[3,2,53],[4,2,53],[4,31,53],[5,30,53],[6,29,53],[7,28,53],[8,26,54],[9,26,54],[10,25,54],[11,25,54],[0,3,53],[1,2,53],[2,4,53]],2023:[[2,23,54],[3,22,54],[4,21,54],[5,20,54],[6,19,54],[7,18,54],[8,16,55],[9,16,55],[10,14,55],[11,13,55],[0,23,54],[1,22,54],[1,22,54]],2024:[[3,9,55],[4,9,55],[5,7,55],[6,7,55],[7,5,55],[8,4,55],[9,3,56],[10,2,56],[11,2,56],null,[0,11,55],[1,10,55],[2,11,55]],2025:[[2,30,56],[3,29,56],[4,28,56],[5,27,56],[6,26,56],[7,25,56],[8,23,57],[9,23,57],[10,21,57],[0,1,56,11,21,57],[0,30,56],[2,1,56],[2,1,56]],2026:[[2,19,57],[3,18,57],[4,17,57],[5,16,57],[6,15,57],[7,14,57],[8,12,58],[9,12,58],[10,11,58],[11,11,58],[0,19,57],[1,18,57],[1,18,57]],2027:[[3,8,58],[4,8,58],[5,6,58],[6,6,58],[7,4,58],[8,3,58],[9,2,59],[10,1,59],[11,1,59],[11,31,59],[0,9,58],[1,8,58],[2,10,58]],2028:[[2,28,59],[3,27,59],[4,26,59],[5,25,59],[6,24,59],[7,23,59],[8,21,60],[9,21,60],[10,19,60],[11,19,60],[0,29,59],[1,28,59],[1,28,59]],2029:[[2,17,60],[3,16,60],[4,15,60],[5,14,60],[6,13,60],[7,12,60],[8,10,61],[9,10,61],[10,8,61],[11,7,61],[0,17,60],[1,16,60],[1,16,60]],2030:[[3,4,61],[4,4,61],[5,2,61],[6,2,61],[6,31,61],[7,30,61],[8,28,62],[9,28,62],[10,27,62],[11,27,62],[0,5,61],[1,4,61],[2,6,61]],2031:[[2,25,62],[3,24,62],[4,23,62],[5,22,62],[6,21,62],[7,20,62],[8,18,63],[9,18,63],[10,16,63],[11,16,63],[0,25,62],[1,24,62],[1,24,62]],2032:[[2,13,63],[3,12,63],[4,11,63],[5,10,63],[6,9,63],[7,8,63],[8,6,64],[9,6,64],[10,4,64],[11,3,64],[0,14,63],[1,13,63],[1,13,63]],2033:[[2,31,64],[3,30,64],[4,29,64],[5,28,64],[6,27,64],[7,26,64],[8,24,65],[9,24,65],[10,23,65],[11,23,65],[0,1,64],[0,31,64],[2,2,64]],2034:[[2,21,65],[3,20,65],[4,19,65],[5,18,65],[6,17,65],[7,16,65],[8,14,66],[9,14,66],[10,13,66],[11,13,66],[0,21,65],[1,20,65],[1,20,65]],2035:[[3,10,66],[4,10,66],[5,8,66],[6,8,66],[7,6,66],[8,5,66],[9,4,67],[10,3,67],[11,2,67],null,[0,11,66],[1,10,66],[2,12,66]],2036:[[2,29,67],[3,28,67],[4,27,67],[5,26,67],[6,25,67],[7,24,67],[8,22,68],[9,22,68],[10,20,68],[0,1,67,11,19,68],[0,30,67],[1,29,67],[1,29,67]],2037:[[2,17,68],[3,16,68],[4,15,68],[5,14,68],[6,13,68],[7,12,68],[8,10,69],[9,10,69],[10,9,69],[11,9,69],[0,17,68],[1,16,68],[1,16,68]],2038:[[3,6,69],[4,6,69],[5,4,69],[6,4,69],[7,2,69],[8,1,69],[8,30,70],[9,30,70],[10,28,70],[11,28,70],[0,7,69],[1,6,69],[2,8,69]],2039:[[2,26,70],[3,25,70],[4,24,70],[5,23,70],[6,22,70],[7,21,70],[8,19,71],[9,19,71],[10,18,71],[11,18,71],[0,26,70],[1,25,70],[1,25,70]],2040:[[2,15,71],[3,14,71],[4,13,71],[5,12,71],[6,11,71],[7,10,71],[8,8,72],[9,8,72],[10,6,72],[11,5,72],[0,16,71],[1,15,71],[1,15,71]],2041:[[3,2,72],[4,2,72],[4,31,72],[5,30,72],[6,29,72],[7,28,72],[8,26,73],[9,26,73],[10,24,73],[11,24,73],[0,3,72],[1,2,72],[2,4,72]],2042:[[2,22,73],[3,21,73],[4,20,73],[5,19,73],[6,18,73],[7,17,73],[8,15,74],[9,15,74],[10,14,74],[11,14,74],[0,22,73],[1,21,73],[1,21,73]],2043:[[3,11,74],[4,11,74],[5,9,74],[6,9,74],[7,7,74],[8,6,74],[9,5,75],[10,4,75],[11,3,75],null,[0,12,74],[1,11,74],[2,13,74]],2044:[[2,29,75],[3,28,75],[4,27,75],[5,26,75],[6,25,75],[7,24,75],[8,22,76],[9,22,76],[10,21,76],[0,1,75,11,21,76],[0,30,75],[1,29,75],[1,29,75]],2045:[[2,19,76],[3,18,76],[4,17,76],[5,16,76],[6,15,76],[7,14,76],[8,12,77],[9,12,77],[10,10,77],[11,10,77],[0,19,76],[1,18,76],[1,18,76]],2046:[[3,7,77],[4,7,77],[5,5,77],[6,5,77],[7,3,77],[8,2,77],[9,1,78],[9,31,78],[10,30,78],[11,30,78],[0,8,77],[1,7,77],[2,9,77]],2047:[[2,28,78],[3,27,78],[4,26,78],[5,25,78],[6,24,78],[7,23,78],[8,21,79],[9,21,79],[10,19,79],[11,18,79],[0,28,78],[1,27,78],[1,27,78]],2048:[[2,15,79],[3,14,79],[4,13,79],[5,12,79],[6,11,79],[7,10,79],[8,8,80],[9,8,80],[10,6,80],[11,6,80],[0,16,79],[1,15,79],[1,15,79]],2049:[[3,3,80],[4,3,80],[5,1,80],[6,1,80],[6,30,80],[7,29,80],[8,27,81],[9,27,81],[10,26,81],[11,26,81],[0,4,80],[1,3,80],[2,5,80]],2050:[[2,24,81],[3,23,81],[4,22,81],[5,21,81],[6,20,81],[7,19,81],[8,17,82],[9,17,82],[10,16,82],[11,16,82],[0,24,81],[1,23,81],[1,23,81]],2051:[[2,14,82],[3,13,82],[4,12,82],[5,11,82],[6,10,82],[7,9,82],[8,7,83],[9,7,83],[10,5,83],[11,4,83],[0,14,82],[1,13,82],[1,13,82]],2052:[[2,31,83],[3,30,83],[4,29,83],[5,28,83],[6,27,83],[7,26,83],[8,24,84],[9,24,84],[10,22,84],[11,22,84],[0,2,83],[1,1,83],[2,2,83]],2053:[[2,20,84],[3,19,84],[4,18,84],[5,17,84],[6,16,84],[7,15,84],[8,13,85],[9,13,85],[10,12,85],[11,12,85],[0,20,84],[1,19,84],[1,19,84]],2054:[[3,9,85],[4,9,85],[5,7,85],[6,7,85],[7,5,85],[8,4,85],[9,3,86],[10,2,86],[11,2,86],null,[0,10,85],[1,9,85],[2,11,85]],2055:[[2,30,86],[3,29,86],[4,28,86],[5,27,86],[6,26,86],[7,25,86],[8,23,87],[9,23,87],[10,21,87],[0,1,86,11,21,87],[0,30,86],[2,1,86],[2,1,86]],2056:[[2,18,87],[3,17,87],[4,16,87],[5,15,87],[6,14,87],[7,13,87],[8,11,88],[9,11,88],[10,9,88],[11,8,88],[0,19,87],[1,18,87],[1,18,87]],2057:[[3,5,88],[4,5,88],[5,3,88],[6,3,88],[7,1,88],[7,31,88],[8,29,89],[9,29,89],[10,28,89],[11,28,89],[0,6,88],[1,5,88],[2,7,88]],2058:[[2,26,89],[3,25,89],[4,24,89],[5,23,89],[6,22,89],[7,21,89],[8,19,90],[9,19,90],[10,17,90],[11,17,90],[0,26,89],[1,25,89],[1,25,89]],2059:[[2,15,90],[3,14,90],[4,13,90],[5,12,90],[6,11,90],[7,10,90],[8,8,91],[9,8,91],[10,6,91],[11,5,91],[0,15,90],[1,14,90],[1,14,90]],2060:[[3,1,91],[4,1,91],[4,30,91],[5,29,91],[6,28,91],[7,27,91],[8,25,92],[9,25,92],[10,24,92],[11,24,92],[0,3,91],[1,2,91],[2,3,91]],2061:[[2,22,92],[3,21,92],[4,20,92],[5,19,92],[6,18,92],[7,17,92],[8,15,93],[9,15,93],[10,14,93],[11,14,93],[0,22,92],[1,21,92],[1,21,92]],2062:[[3,11,93],[4,11,93],[5,9,93],[6,9,93],[7,7,93],[8,6,93],[9,5,94],[10,4,94],[11,3,94],null,[0,12,93],[1,11,93],[2,13,93]],2063:[[2,31,94],[3,30,94],[4,29,94],[5,28,94],[6,27,94],[7,26,94],[8,24,95],[9,24,95],[10,22,95],[0,2,94,11,21,95],[0,31,94],[2,2,94],[2,2,94]],2064:[[2,18,95],[3,17,95],[4,16,95],[5,15,95],[6,14,95],[7,13,95],[8,11,96],[9,11,96],[10,10,96],[11,10,96],[0,19,95],[1,18,95],[1,18,95]],2065:[[3,7,96],[4,7,96],[5,5,96],[6,5,96],[7,3,96],[8,2,96],[9,1,97],[9,31,97],[10,29,97],[11,29,97],[0,8,96],[1,7,96],[2,9,96]],2066:[[2,27,97],[3,26,97],[4,25,97],[5,24,97],[6,23,97],[7,22,97],[8,20,98],[9,20,98],[10,19,98],[11,19,98],[0,27,97],[1,26,97],[1,26,97]],2067:[[2,17,98],[3,16,98],[4,15,98],[5,14,98],[6,13,98],[7,12,98],[8,10,99],[9,10,99],[10,8,99],[11,7,99],[0,17,98],[1,16,98],[1,16,98]],2068:[[3,3,99],[4,3,99],[5,1,99],[6,1,99],[6,30,99],[7,29,99],[8,27,100],[9,27,100],[10,25,100],[11,25,100],[0,5,99],[1,4,99],[2,5,99]],2069:[[2,23,100],[3,22,100],[4,21,100],[5,20,100],[6,19,100],[7,18,100],[8,16,101],[9,16,101],[10,15,101],[11,15,101],[0,23,100],[1,22,100],[1,22,100]],2070:[[2,13,101],[3,12,101],[4,11,101],[5,10,101],[6,9,101],[7,8,101],[8,6,102],[9,6,102],[10,4,102],[11,3,102],[0,13,101],[1,12,101],[1,12,101]],2071:[[2,31,102],[3,30,102],[4,29,102],[5,28,102],[6,27,102],[7,26,102],[8,24,103],[9,24,103],[10,23,103],[11,23,103],[0,1,102],[0,31,102],[2,2,102]],2072:[[2,20,103],[3,19,103],[4,18,103],[5,17,103],[6,16,103],[7,15,103],[8,13,104],[9,13,104],[10,11,104],[11,11,104],[0,21,103],[1,20,103],[1,20,103]],2073:[[3,8,104],[4,8,104],[5,6,104],[6,6,104],[7,4,104],[8,3,104],[9,2,105],[10,1,105],[11,1,105],[11,31,105],[0,9,104],[1,8,104],[2,10,104]],2074:[[2,29,105],[3,28,105],[4,27,105],[5,26,105],[6,25,105],[7,24,105],[8,22,106],[9,22,106],[10,20,106],[11,19,106],[0,29,105],[1,28,105],[1,28,105]],2075:[[2,17,106],[3,16,106],[4,15,106],[5,14,106],[6,13,106],[7,12,106],[8,10,107],[9,10,107],[10,8,107],[11,8,107],[0,17,106],[1,16,106],[1,16,106]],2076:[[3,4,107],[4,4,107],[5,2,107],[6,2,107],[6,31,107],[7,30,107],[8,28,108],[9,28,108],[10,27,108],[11,27,108],[0,6,107],[1,5,107],[2,6,107]],2077:[[2,25,108],[3,24,108],[4,23,108],[5,22,108],[6,21,108],[7,20,108],[8,18,109],[9,18,109],[10,17,109],[11,17,109],[0,25,108],[1,24,108],[1,24,108]],2078:[[2,15,109],[3,14,109],[4,13,109],[5,12,109],[6,11,109],[7,10,109],[8,8,110],[9,8,110],[10,6,110],[11,5,110],[0,15,109],[1,14,109],[1,14,109]],2079:[[3,2,110],[4,2,110],[4,31,110],[5,30,110],[6,29,110],[7,28,110],[8,26,111],[9,26,111],[10,24,111],[11,24,111],[0,3,110],[1,2,110],[2,4,110]],2080:[[2,21,111],[3,20,111],[4,19,111],[5,18,111],[6,17,111],[7,16,111],[8,14,112],[9,14,112],[10,13,112],[11,13,112],[0,22,111],[1,21,111],[1,21,111]],2081:[[3,10,112],[4,10,112],[5,8,112],[6,8,112],[7,6,112],[8,5,112],[9,4,113],[10,3,113],[11,3,113],null,[0,11,112],[1,10,112],[2,12,112]],2082:[[2,31,113],[3,30,113],[4,29,113],[5,28,113],[6,27,113],[7,26,113],[8,24,114],[9,24,114],[10,22,114],[0,2,113,11,22,114],[0,31,113],[2,2,113],[2,2,113]],2083:[[2,20,114],[3,19,114],[4,18,114],[5,17,114],[6,16,114],[7,15,114],[8,13,115],[9,13,115],[10,11,115],[11,10,115],[0,20,114],[1,19,114],[1,19,114]],2084:[[3,6,115],[4,6,115],[5,4,115],[6,4,115],[7,2,115],[8,1,115],[8,30,116],[9,30,116],[10,29,116],[11,29,116],[0,8,115],[1,7,115],[2,8,115]],2085:[[2,27,116],[3,26,116],[4,25,116],[5,24,116],[6,23,116],[7,22,116],[8,20,117],[9,20,117],[10,18,117],[11,18,117],[0,27,116],[1,26,116],[1,26,116]],2086:[[2,16,117],[3,15,117],[4,14,117],[5,13,117],[6,12,117],[7,11,117],[8,9,118],[9,9,118],[10,7,118],[11,6,118],[0,16,117],[1,15,117],[1,15,117]],2087:[[3,3,118],[4,3,118],[5,1,118],[6,1,118],[6,30,118],[7,29,118],[8,27,119],[9,27,119],[10,26,119],[11,26,119],[0,4,118],[1,3,118],[2,5,118]],2088:[[2,23,119],[3,22,119],[4,21,119],[5,20,119],[6,19,119],[7,18,119],[8,16,120],[9,16,120],[10,14,120],[11,14,120],[0,24,119],[1,23,119],[1,23,119]],2089:[[2,12,120],[3,11,120],[4,10,120],[5,9,120],[6,8,120],[7,7,120],[8,5,121],[9,5,121],[10,4,121],[11,4,121],[0,12,120],[1,11,120],[1,11,120]],2090:[[3,1,121],[4,1,121],[4,30,121],[5,29,121],[6,28,121],[7,27,121],[8,25,122],[9,25,122],[10,23,122],[11,22,122],[0,2,121],[1,1,121],[2,3,121]],2091:[[2,20,122],[3,19,122],[4,18,122],[5,17,122],[6,16,122],[7,15,122],[8,13,123],[9,13,123],[10,12,123],[11,12,123],[0,20,122],[1,19,122],[1,19,122]],2092:[[3,8,123],[4,8,123],[5,6,123],[6,6,123],[7,4,123],[8,3,123],[9,2,124],[10,1,124],[10,30,124],[11,30,124],[0,10,123],[1,9,123],[2,10,123]],2093:[[2,28,124],[3,27,124],[4,26,124],[5,25,124],[6,24,124],[7,23,124],[8,21,125],[9,21,125],[10,20,125],[11,20,125],[0,28,124],[1,27,124],[1,27,124]],2094:[[2,18,125],[3,17,125],[4,16,125],[5,15,125],[6,14,125],[7,13,125],[8,11,126],[9,11,126],[10,9,126],[11,8,126],[0,18,125],[1,17,125],[1,17,125]],2095:[[3,5,126],[4,5,126],[5,3,126],[6,3,126],[7,1,126],[7,31,126],[8,29,127],[9,29,127],[10,27,127],[11,27,127],[0,6,126],[1,5,126],[2,7,126]],2096:[[2,24,127],[3,23,127],[4,22,127],[5,21,127],[6,20,127],[7,19,127],[8,17,128],[9,17,128],[10,16,128],[11,16,128],[0,25,127],[1,24,127],[1,24,127]],2097:[[2,14,128],[3,13,128],[4,12,128],[5,11,128],[6,10,128],[7,9,128],[8,7,129],[9,7,129],[10,6,129],[11,6,129],[0,14,128],[1,13,128],[1,13,128]],2098:[[3,3,129],[4,3,129],[5,1,129],[6,1,129],[6,30,129],[7,29,129],[8,27,130],[9,27,130],[10,25,130],[11,24,130],[0,4,129],[1,3,129],[2,5,129]],2099:[[2,22,130],[3,21,130],[4,20,130],[5,19,130],[6,18,130],[7,17,130],[8,15,131],[9,15,131],[10,13,131],[11,13,131],[0,22,130],[1,21,130],[1,21,130]],2100:[[3,10,131],[4,10,131],[5,8,131],[6,8,131],[7,6,131],[8,5,131],null,null,null,null,[0,11,131],[1,10,131],[2,12,131]],months:13,year:5729}}),wSe=kr(()=>{Sv(),poe(),ASe(),Dq=class extends ew{constructor(e){super(e),this.calendar=zSe}get(e){return this.dates.map(t=>{let n=new yu(t),r={date:n.toString()+" -0600",start:n.setOffset(-6,"h").toTimezone(e),end:n.toEndDate().toTimezone(e)};return this._addSubstitute(t,r),r})}}}),TSe=kr(()=>{OSe={1969:[[2,19,0],[3,18,0],[4,17,0],[5,16,0],[6,15,0],[7,14,0],[8,12,0],[9,12,0],[10,10,0],[11,10,0]],1970:[[2,9,1],[3,8,1],[4,7,1],[5,6,1],[6,5,1],[7,4,1],[8,2,1],[9,2,1],[10,1,1],[10,30,1],[0,8,0,11,30,1],[1,7,0]],1971:[[1,26,2],[2,28,2],[3,26,2],[4,26,2],[5,24,2],[6,24,2],[7,22,2],[8,21,2],[9,20,2],[10,19,2],[11,18,2],[0,28,1]],1972:[[1,16,3],[2,16,3],[3,14,3],[4,14,3],[5,12,3],[6,12,3],[7,10,3],[8,9,3],[9,8,3],[10,7,3],[11,6,3],[0,17,2]],1973:[[1,4,4],[2,6,4],[3,4,4],[4,4,4],[5,2,4],[6,1,4],[6,30,4],[7,29,4],[8,27,4],[9,27,4],[10,25,4],[0,5,3,11,25,4]],1974:[[0,24,5],[1,23,5],[2,24,5],[3,23,5],[4,22,5],[5,21,5],[6,20,5],[7,19,5],[8,17,5],[9,16,5],[10,15,5],[11,15,5]],1975:[[0,13,6],[1,12,6],[2,13,6],[3,12,6],[4,12,6],[5,10,6],[6,10,6],[7,8,6],[8,6,6],[9,6,6],[10,4,6],[11,4,6]],1976:[[0,2,7,11,22,8],[1,1,7],[2,1,7],[2,31,7],[3,30,7],[4,30,7],[5,28,7],[6,28,7],[7,26,7],[8,24,7],[9,24,7],[10,22,7]],1977:[[11,11,9],[0,20,8],[1,19,8],[2,20,8],[3,19,8],[4,19,8],[5,17,8],[6,17,8],[7,15,8],[8,14,8],[9,13,8],[10,12,8]],1978:[[11,1,10],[0,10,9,11,30,10],[1,8,9],[2,10,9],[3,8,9],[4,8,9],[5,6,9],[6,6,9],[7,5,9],[8,3,9],[9,3,9],[10,1,9]],1979:[[10,20,11],[11,20,11],[0,29,10],[1,27,10],[2,29,10],[3,27,10],[4,27,10],[5,25,10],[6,25,10],[7,23,10],[8,22,10],[9,22,10]],1980:[[10,9,12],[11,8,12],[0,19,11],[1,17,11],[2,18,11],[3,16,11],[4,15,11],[5,14,11],[6,13,11],[7,12,11],[8,10,11],[9,10,11]],1981:[[9,28,13],[10,27,13],[0,7,12,11,27,13],[1,5,12],[2,7,12],[3,5,12],[4,5,12],[5,3,12],[6,2,12],[7,1,12],[7,30,12],[8,29,12]],1982:[[9,18,14],[10,16,14],[11,16,14],[0,26,13],[1,24,13],[2,26,13],[3,24,13],[4,24,13],[5,22,13],[6,21,13],[7,20,13],[8,18,13]],1983:[[9,7,15],[10,5,15],[11,5,15],[0,15,14],[1,14,14],[2,15,14],[3,14,14],[4,13,14],[5,12,14],[6,11,14],[7,9,14],[8,8,14]],1984:[[8,26,16],[9,25,16],[10,23,16],[0,4,15,11,23,16],[1,2,15],[2,3,15],[3,2,15],[4,2,15],[4,31,15],[5,30,15],[6,29,15],[7,27,15]],1985:[[8,15,17],[9,15,17],[10,13,17],[11,13,17],[0,22,16],[1,20,16],[2,22,16],[3,21,16],[4,20,16],[5,19,16],[6,18,16],[7,17,16]],1986:[[8,5,18],[9,4,18],[10,3,18],[11,2,18],[0,11,17],[1,10,17],[2,11,17],[3,10,17],[4,9,17],[5,8,17],[6,8,17],[7,6,17]],1987:[[7,25,19],[8,24,19],[9,23,19],[10,22,19],[0,1,18,11,21,19],[0,30,18],[2,1,18],[2,30,18],[3,29,18],[4,28,18],[5,27,18],[6,26,18]],1988:[[7,13,20],[8,12,20],[9,11,20],[10,10,20],[11,10,20],[0,20,19],[1,18,19],[2,19,19],[3,17,19],[4,16,19],[5,15,19],[6,14,19]],1989:[[7,2,21],[8,1,21],[8,30,21],[9,30,21],[10,29,21],[0,8,20,11,29,21],[1,7,20],[2,8,20],[3,7,20],[4,6,20],[5,4,20],[6,4,20]],1990:[[6,23,22],[7,21,22],[8,20,22],[9,19,22],[10,18,22],[11,18,22],[0,27,21],[1,26,21],[2,27,21],[3,26,21],[4,25,21],[5,23,21]],1991:[[6,12,23],[7,11,23],[8,9,23],[9,8,23],[10,7,23],[11,7,23],[0,16,22],[1,15,22],[2,17,22],[3,15,22],[4,15,22],[5,13,22]],1992:[[6,1,24],[6,30,24],[7,29,24],[8,27,24],[9,26,24],[10,25,24],[0,5,23,11,25,24],[1,4,23],[2,5,23],[3,4,23],[4,3,23],[5,2,23]],1993:[[5,21,25],[6,20,25],[7,18,25],[8,17,25],[9,16,25],[10,14,25],[11,14,25],[0,23,24],[1,22,24],[2,24,24],[3,22,24],[4,22,24]],1994:[[5,10,26],[6,9,26],[7,8,26],[8,6,26],[9,6,26],[10,4,26],[11,3,26],[0,12,25],[1,11,25],[2,13,25],[3,12,25],[4,11,25]],1995:[[4,30,27],[5,29,27],[6,28,27],[7,27,27],[8,25,27],[9,25,27],[10,23,27],[0,2,26,11,23,27],[0,31,26],[2,2,26],[3,1,26],[3,30,26]],1996:[[4,18,28],[5,17,28],[6,16,28],[7,15,28],[8,13,28],[9,13,28],[10,12,28],[11,11,28],[0,21,27],[1,19,27],[2,20,27],[3,18,27]],1997:[[4,7,29],[5,6,29],[6,5,29],[7,4,29],[8,2,29],[9,2,29],[10,1,29],[11,1,29],[0,10,28,11,30,29],[1,8,28],[2,10,28],[3,8,28]],1998:[[3,27,30],[4,26,30],[5,25,30],[6,24,30],[7,23,30],[8,21,30],[9,21,30],[10,20,30],[11,19,30],[0,29,29],[1,27,29],[2,29,29]],1999:[[3,17,31],[4,16,31],[5,15,31],[6,14,31],[7,12,31],[8,11,31],[9,10,31],[10,9,31],[11,9,31],[0,18,30],[1,17,30],[2,18,30]],2e3:[[3,6,32],[4,5,32],[5,3,32],[6,3,32],[7,1,32],[7,30,32],[8,28,32],[9,28,32],[10,27,32],[0,8,31,11,27,32],[1,7,31],[2,7,31]],2001:[[2,26,33],[3,25,33],[4,24,33],[5,22,33],[6,22,33],[7,20,33],[8,18,33],[9,17,33],[10,16,33],[11,16,33],[0,26,32],[1,24,32]],2002:[[2,15,34],[3,14,34],[4,13,34],[5,12,34],[6,11,34],[7,10,34],[8,8,34],[9,7,34],[10,6,34],[11,5,34],[0,15,33],[1,13,33]],2003:[[2,4,35],[3,3,35],[4,2,35],[5,1,35],[6,1,35],[6,30,35],[7,29,35],[8,27,35],[9,26,35],[10,25,35],[0,4,34,11,24,35],[1,2,34]],2004:[[1,21,36],[2,22,36],[3,20,36],[4,20,36],[5,19,36],[6,18,36],[7,17,36],[8,15,36],[9,15,36],[10,14,36],[11,13,36],[0,23,35]],2005:[[1,10,37],[2,11,37],[3,10,37],[4,9,37],[5,8,37],[6,7,37],[7,6,37],[8,5,37],[9,4,37],[10,3,37],[11,3,37],[0,12,36]],2006:[[0,31,38],[2,1,38],[2,30,38],[3,29,38],[4,28,38],[5,26,38],[6,26,38],[7,25,38],[8,24,38],[9,23,38],[10,22,38],[0,1,37,11,22,38]],2007:[[0,20,39],[1,19,39],[2,20,39],[3,18,39],[4,18,39],[5,16,39],[6,15,39],[7,14,39],[8,13,39],[9,13,39],[10,11,39],[11,11,39]],2008:[[0,10,40,11,29,41],[1,8,40],[2,9,40],[3,7,40],[4,6,40],[5,5,40],[6,4,40],[7,2,40],[8,1,40],[9,1,40],[9,30,40],[10,29,40]],2009:[[11,18,42],[0,27,41],[1,26,41],[2,28,41],[3,26,41],[4,25,41],[5,24,41],[6,23,41],[7,22,41],[8,20,41],[9,20,41],[10,18,41]],2010:[[11,7,43],[0,16,42],[1,15,42],[2,17,42],[3,15,42],[4,15,42],[5,13,42],[6,13,42],[7,11,42],[8,10,42],[9,9,42],[10,7,42]],2011:[[10,26,44],[0,5,43,11,26,44],[1,4,43],[2,6,43],[3,5,43],[4,4,43],[5,3,43],[6,2,43],[7,1,43],[7,30,43],[8,29,43],[9,28,43]],2012:[[10,15,45],[11,14,45],[0,24,44],[1,23,44],[2,24,44],[3,22,44],[4,22,44],[5,21,44],[6,20,44],[7,19,44],[8,17,44],[9,17,44]],2013:[[10,4,46],[11,4,46],[0,13,45],[1,11,45],[2,13,45],[3,11,45],[4,11,45],[5,10,45],[6,9,45],[7,8,45],[8,7,45],[9,6,45]],2014:[[9,25,47],[10,23,47],[0,2,46,11,23,47],[1,1,46],[2,2,46],[3,1,46],[3,30,46],[4,30,46],[5,28,46],[6,28,46],[7,27,46],[8,25,46]],2015:[[9,14,48],[10,13,48],[11,12,48],[0,21,47],[1,20,47],[2,21,47],[3,20,47],[4,19,47],[5,18,47],[6,17,47],[7,16,47],[8,14,47]],2016:[[9,2,49],[10,1,49],[10,30,49],[0,11,48,11,30,49],[1,10,48],[2,10,48],[3,8,48],[4,8,48],[5,6,48],[6,6,48],[7,4,48],[8,2,48]],2017:[[8,21,50],[9,21,50],[10,19,50],[11,19,50],[0,29,49],[1,28,49],[2,29,49],[3,27,49],[4,27,49],[5,25,49],[6,24,49],[7,23,49]],2018:[[8,11,51],[9,10,51],[10,9,51],[11,8,51],[0,18,50],[1,17,50],[2,18,50],[3,17,50],[4,16,50],[5,15,50],[6,14,50],[7,12,50]],2019:[[7,31,52],[8,30,52],[9,29,52],[10,28,52],[0,7,51,11,27,52],[1,6,51],[2,8,51],[3,6,51],[4,6,51],[5,4,51],[6,4,51],[7,2,51]],2020:[[7,20,53],[8,18,53],[9,18,53],[10,16,53],[11,16,53],[0,26,52],[1,25,52],[2,25,52],[3,24,52],[4,24,52],[5,22,52],[6,22,52]],2021:[[7,9,54],[8,8,54],[9,7,54],[10,6,54],[11,5,54],[0,14,53],[1,13,53],[2,14,53],[3,13,53],[4,13,53],[5,11,53],[6,11,53]],2022:[[6,30,55],[7,28,55],[8,27,55],[9,26,55],[10,25,55],[0,4,54,11,25,55],[1,2,54],[2,4,54],[3,2,54],[4,2,54],[4,31,54],[5,30,54]],2023:[[6,19,56],[7,17,56],[8,16,56],[9,16,56],[10,15,56],[11,14,56],[0,23,55],[1,21,55],[2,23,55],[3,21,55],[4,21,55],[5,19,55]],2024:[[6,7,57],[7,5,57],[8,4,57],[9,4,57],[10,3,57],[11,3,57],[0,13,56],[1,11,56],[2,11,56],[3,10,56],[4,9,56],[5,7,56]],2025:[[5,26,58],[6,26,58],[7,24,58],[8,23,58],[9,23,58],[10,22,58],[0,1,57,11,21,58],[0,31,57],[2,1,57],[2,30,57],[3,29,57],[4,28,57]],2026:[[5,16,59],[6,15,59],[7,14,59],[8,12,59],[9,12,59],[10,11,59],[11,10,59],[0,20,58],[1,18,58],[2,20,58],[3,18,58],[4,18,58]],2027:[[5,6,60],[6,5,60],[7,3,60],[8,2,60],[9,1,60],[9,31,60],[10,29,60],[0,9,59,11,29,60],[1,8,59],[2,9,59],[3,8,59],[4,7,59]],2028:[[4,25,61],[5,24,61],[6,23,61],[7,22,61],[8,20,61],[9,19,61],[10,18,61],[11,17,61],[0,28,60],[1,26,60],[2,27,60],[3,26,60]],2029:[[4,14,62],[5,13,62],[6,13,62],[7,11,62],[8,10,62],[9,9,62],[10,7,62],[11,7,62],[0,16,61],[1,14,61],[2,16,61],[3,15,61]],2030:[[4,3,63],[5,2,63],[6,2,63],[7,1,63],[7,30,63],[8,29,63],[9,28,63],[10,26,63],[0,5,62,11,26,63],[1,4,62],[2,5,62],[3,4,62]],2031:[[3,23,64],[4,22,64],[5,21,64],[6,21,64],[7,20,64],[8,18,64],[9,17,64],[10,16,64],[11,15,64],[0,24,63],[1,23,63],[2,24,63]],2032:[[3,11,65],[4,10,65],[5,9,65],[6,9,65],[7,8,65],[8,6,65],[9,6,65],[10,4,65],[11,4,65],[0,14,64],[1,12,64],[2,13,64]],2033:[[3,1,66],[3,30,66],[4,29,66],[5,28,66],[6,28,66],[7,26,66],[8,25,66],[9,24,66],[10,23,66],[0,2,65,11,23,66],[1,1,65],[2,2,65]],2034:[[2,21,67],[3,20,67],[4,19,67],[5,17,67],[6,17,67],[7,15,67],[8,14,67],[9,13,67],[10,12,67],[11,12,67],[0,21,66],[1,20,66]],2035:[[2,11,68],[3,9,68],[4,9,68],[5,7,68],[6,6,68],[7,5,68],[8,3,68],[9,2,68],[10,1,68],[11,1,68],[0,11,67,11,30,68],[1,9,67]],2036:[[1,28,69],[2,29,69],[3,27,69],[4,27,69],[5,25,69],[6,24,69],[7,23,69],[8,21,69],[9,20,69],[10,19,69],[11,19,69],[0,29,68]],2037:[[1,16,70],[2,18,70],[3,17,70],[4,16,70],[5,15,70],[6,14,70],[7,12,70],[8,11,70],[9,10,70],[10,8,70],[11,8,70],[0,17,69]],2038:[[1,5,71],[2,7,71],[3,6,71],[4,5,71],[5,4,71],[6,3,71],[7,2,71],[7,31,71],[8,30,71],[9,29,71],[10,27,71],[0,7,70,11,27,71]],2039:[[0,26,72],[1,24,72],[2,26,72],[3,24,72],[4,24,72],[5,23,72],[6,22,72],[7,21,72],[8,19,72],[9,19,72],[10,17,72],[11,17,72]],2040:[[0,15,73],[1,14,73],[2,14,73],[3,13,73],[4,12,73],[5,11,73],[6,10,73],[7,9,73],[8,7,73],[9,7,73],[10,6,73],[11,5,73]],2041:[[0,4,74,11,24,75],[1,2,74],[2,4,74],[3,2,74],[4,1,74],[4,31,74],[5,29,74],[6,29,74],[7,28,74],[8,26,74],[9,26,74],[10,25,74]],2042:[[11,14,76],[0,23,75],[1,21,75],[2,23,75],[3,21,75],[4,20,75],[5,19,75],[6,18,75],[7,17,75],[8,15,75],[9,15,75],[10,14,75]],2043:[[11,3,77],[0,12,76],[1,11,76],[2,12,76],[3,11,76],[4,10,76],[5,8,76],[6,8,76],[7,6,76],[8,4,76],[9,4,76],[10,3,76]],2044:[[10,21,78],[0,2,77,11,21,78],[0,31,77],[2,1,77],[2,30,77],[3,29,77],[4,28,77],[5,26,77],[6,26,77],[7,24,77],[8,23,77],[9,22,77]],2045:[[10,10,79],[11,10,79],[0,19,78],[1,18,78],[2,20,78],[3,18,78],[4,18,78],[5,16,78],[6,15,78],[7,14,78],[8,12,78],[9,12,78]],2046:[[9,31,80],[10,29,80],[0,8,79,11,28,80],[1,7,79],[2,9,79],[3,7,79],[4,7,79],[5,5,79],[6,5,79],[7,3,79],[8,2,79],[9,1,79]],2047:[[9,20,81],[10,19,81],[11,18,81],[0,27,80],[1,26,80],[2,27,80],[3,26,80],[4,26,80],[5,24,80],[6,24,80],[7,23,80],[8,21,80]],2048:[[9,9,82],[10,7,82],[11,7,82],[0,16,81],[1,15,81],[2,16,81],[3,14,81],[4,14,81],[5,12,81],[6,12,81],[7,11,81],[8,10,81]],2049:[[8,28,83],[9,28,83],[10,26,83],[0,5,82,11,26,83],[1,3,82],[2,5,82],[3,3,82],[4,3,82],[5,2,82],[6,1,82],[6,31,82],[7,30,82]],2050:[[8,17,84],[9,17,84],[10,15,84],[11,15,84],[0,24,83],[1,23,83],[2,24,83],[3,22,83],[4,22,83],[5,20,83],[6,20,83],[7,19,83]],2051:[[8,6,85],[9,6,85],[10,5,85],[11,4,85],[0,14,84],[1,12,84],[2,14,84],[3,12,84],[4,11,84],[5,10,84],[6,9,84],[7,8,84]],2052:[[7,26,86],[8,24,86],[9,24,86],[10,22,86],[0,3,85,11,22,86],[1,2,85],[2,2,85],[3,1,85],[3,30,85],[4,29,85],[5,28,85],[6,27,85]],2053:[[7,15,87],[8,13,87],[9,13,87],[10,11,87],[11,11,87],[0,21,86],[1,20,86],[2,21,86],[3,20,86],[4,19,86],[5,17,86],[6,17,86]],2054:[[7,5,88],[8,3,88],[9,2,88],[10,1,88],[10,30,88],[0,10,87,11,30,88],[1,9,87],[2,10,87],[3,9,87],[4,9,87],[5,7,87],[6,6,87]],2055:[[6,25,89],[7,24,89],[8,22,89],[9,21,89],[10,20,89],[11,19,89],[0,29,88],[1,27,88],[2,29,88],[3,28,88],[4,28,88],[5,26,88]],2056:[[6,14,90],[7,12,90],[8,11,90],[9,10,90],[10,8,90],[11,8,90],[0,18,89],[1,17,89],[2,17,89],[3,16,89],[4,16,89],[5,14,89]],2057:[[6,3,91],[7,1,91],[7,31,91],[8,30,91],[9,29,91],[10,27,91],[0,6,90,11,27,91],[1,5,90],[2,6,90],[3,5,90],[4,5,90],[5,3,90]],2058:[[5,22,92],[6,21,92],[7,20,92],[8,19,92],[9,18,92],[10,17,92],[11,17,92],[0,25,91],[1,24,91],[2,25,91],[3,24,91],[4,23,91]],2059:[[5,11,93],[6,11,93],[7,9,93],[8,8,93],[9,8,93],[10,6,93],[11,6,93],[0,15,92],[1,14,92],[2,15,92],[3,13,92],[4,13,92]],2060:[[4,31,94],[5,29,94],[6,28,94],[7,27,94],[8,26,94],[9,25,94],[10,24,94],[0,5,93,11,24,94],[1,3,93],[2,4,93],[3,2,93],[4,1,93]],2061:[[4,20,95],[5,19,95],[6,18,95],[7,16,95],[8,15,95],[9,15,95],[10,13,95],[11,13,95],[0,23,94],[1,21,94],[2,23,94],[3,21,94]],2062:[[4,10,96],[5,8,96],[6,8,96],[7,6,96],[8,4,96],[9,4,96],[10,3,96],[11,2,96],[0,12,95],[1,10,95],[2,12,95],[3,11,95]],2063:[[3,30,97],[4,29,97],[5,27,97],[6,27,97],[7,25,97],[8,24,97],[9,23,97],[10,22,97],[0,1,96,11,21,97],[0,31,96],[2,1,96],[2,31,96]],2064:[[3,18,98],[4,17,98],[5,16,98],[6,15,98],[7,14,98],[8,12,98],[9,12,98],[10,10,98],[11,9,98],[0,20,97],[1,18,97],[2,19,97]],2065:[[3,7,99],[4,6,99],[5,5,99],[6,5,99],[7,3,99],[8,2,99],[9,1,99],[9,31,99],[10,29,99],[0,8,98,11,28,99],[1,6,98],[2,8,98]],2066:[[2,27,100],[3,25,100],[4,25,100],[5,24,100],[6,24,100],[7,22,100],[8,21,100],[9,20,100],[10,19,100],[11,18,100],[0,27,99],[1,25,99]],2067:[[2,16,101],[3,15,101],[4,14,101],[5,13,101],[6,13,101],[7,11,101],[8,10,101],[9,10,101],[10,8,101],[11,8,101],[0,16,100],[1,15,100]],2068:[[2,5,102],[3,3,102],[4,3,102],[5,1,102],[6,1,102],[6,30,102],[7,29,102],[8,28,102],[9,27,102],[10,26,102],[0,6,101,11,25,102],[1,4,101]],2069:[[1,23,103],[2,24,103],[3,22,103],[4,22,103],[5,20,103],[6,20,103],[7,18,103],[8,17,103],[9,16,103],[10,15,103],[11,15,103],[0,24,102]],2070:[[1,12,104],[2,14,104],[3,12,104],[4,11,104],[5,10,104],[6,9,104],[7,8,104],[8,6,104],[9,5,104],[10,4,104],[11,4,104],[0,13,103]],2071:[[1,1,105],[2,3,105],[3,2,105],[4,1,105],[4,30,105],[5,29,105],[6,28,105],[7,26,105],[8,25,105],[9,24,105],[10,23,105],[0,2,104,11,22,105]],2072:[[0,21,106],[1,20,106],[2,21,106],[3,19,106],[4,19,106],[5,17,106],[6,17,106],[7,15,106],[8,13,106],[9,13,106],[10,11,106],[11,11,106]],2073:[[0,9,107,11,30,108],[1,8,107],[2,10,107],[3,9,107],[4,8,107],[5,7,107],[6,6,107],[7,5,107],[8,3,107],[9,2,107],[10,1,107],[10,30,107]],2074:[[11,19,109],[0,28,108],[1,27,108],[2,29,108],[3,27,108],[4,27,108],[5,26,108],[6,25,108],[7,23,108],[8,22,108],[9,21,108],[10,20,108]],2075:[[11,9,110],[0,18,109],[1,16,109],[2,18,109],[3,16,109],[4,16,109],[5,15,109],[6,14,109],[7,13,109],[8,11,109],[9,11,109],[10,9,109]],2076:[[10,27,111],[0,7,110,11,27,111],[1,6,110],[2,6,110],[3,5,110],[4,4,110],[5,3,110],[6,2,110],[7,1,110],[7,30,110],[8,29,110],[9,29,110]],2077:[null,null,[0,26,111],[1,24,111],[2,25,111],[3,24,111],[4,23,111],[5,21,111],[6,21,111],[7,19,111],[8,18,111],[9,18,111]],year:1389}}),SSe=kr(()=>{Sv(),poe(),TSe(),Rq=class extends ew{constructor(e){super(e),this.calendar=OSe}get(e){return this.dates.map(t=>{let n=new yu(t),r={date:n.toString()+" -0600",start:n.setOffset(-6,"h").toTimezone(e),end:n.toEndDate().toTimezone(e)};return this._addSubstitute(t,r),r})}}}),RSe=Ee((e,t)=>{t.exports={toJalaali:function(e,t,n){return"[object Date]"===Object.prototype.toString.call(e)&&(n=e.getDate(),t=e.getMonth()+1,e=e.getFullYear()),l(c(e,t,n))},toGregorian:r,isValidJalaaliDate:function(e,t,n){return e>=-61&&e<=3177&&t>=1&&t<=12&&n>=1&&n<=i(e,t)},isLeapJalaaliYear:a,jalaaliMonthLength:i,jalCal:o,j2d:s,d2j:l,g2d:c,d2g:u,jalaaliToDateObject:d,jalaaliWeek:function(e,t,n){var r=d(e,t,n).getDay(),a=6==r?0:-(r+1),i=6+a;return{saturday:l(s(e,t,n+a)),friday:l(s(e,t,n+i))}}};var n=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function r(e,t,n){return u(s(e,t,n))}function a(e){return 0===function(e){var t,r,a,i,o,s=n.length,l=n[0];if(e<l||e>=n[s-1])throw new Error("Invalid Jalaali year "+e);for(o=1;o<s&&(t=n[o],r=t-l,!(e<t));o+=1)l=t;return i=e-l,r-i<6&&(i=i-r+33*p(r+4,33)),-1===(a=h(h(i+1,33)-1,4))&&(a=4),a}(e)}function i(e,t){return t<=6?31:t<=11||a(e)?30:29}function o(e,t){var r,a,i,o,s,l,c=n.length,u=e+621,d=-14,f=n[0];if(e<f||e>=n[c-1])throw new Error("Invalid Jalaali year "+e);for(l=1;l<c&&(a=(r=n[l])-f,!(e<r));l+=1)d=d+8*p(a,33)+p(h(a,33),4),f=r;return d=d+8*p(s=e-f,33)+p(h(s,33)+3,4),4===h(a,33)&&a-s===4&&(d+=1),o=20+d-(p(u,4)-p(3*(p(u,100)+1),4)-150),t?{gy:u,march:o}:(a-s<6&&(s=s-a+33*p(a+4,33)),-1===(i=h(h(s+1,33)-1,4))&&(i=4),{leap:i,gy:u,march:o})}function s(e,t,n){var r=o(e,!0);return c(r.gy,3,r.march)+31*(t-1)-p(t,7)*(t-7)+n-1}function l(e){var t,n=u(e).gy,r=n-621,a=o(r,!1);if((t=e-c(n,3,a.march))>=0){if(t<=185)return{jy:r,jm:1+p(t,31),jd:h(t,31)+1};t-=186}else r-=1,t+=179,1===a.leap&&(t+=1);return{jy:r,jm:7+p(t,30),jd:h(t,30)+1}}function c(e,t,n){var r=p(1461*(e+p(t-8,6)+100100),4)+p(153*h(t+9,12)+2,5)+n-34840408;return r=r-p(3*p(e+100100+p(t-8,6),100),4)+752}function u(e){var t,n,r,a;return t=(t=4*e+139361631)+4*p(3*p(4*e+183187720,146097),4)-3908,n=5*p(h(t,1461),4)+308,r=p(h(n,153),5)+1,a=h(p(n,153),12)+1,{gy:p(t,1461)-100100+p(8-a,6),gm:a,gd:r}}function d(e,t,n,a,i,o,s){var l=r(e,t,n);return new Date(l.gy,l.gm-1,l.gd,a||0,i||0,o||0,s||0)}function p(e,t){return~~(e/t)}function h(e,t){return e-~~(e/t)*t}}),PSe=kr(()=>{Sv(),c3(),LSe=H7(RSe(),1),({toJalaali:rBt,toGregorian:nBt}=LSe.default),Lq=class extends Th{inYear(e){let t=rBt(e,1,1);if(this.opts.year&&t.jy!==this.opts.year)return this;let{gy:n,gm:r,gd:a}=nBt(this.opts.year||t.jy,this.opts.month,this.opts.day),i=new yu({year:n,month:r,day:a}).setOffset(this.offset);return this.dates.push(i),this}}}),goe=kr(()=>{OU=aBt={L:{0:[[1.75347045673,0,0],[.03341656453,4.66925680415,6283.0758499914],[.00034894275,4.62610242189,12566.1516999828],[3417572e-11,2.82886579754,3.523118349],[3497056e-11,2.74411783405,5753.3848848968],[3135899e-11,3.62767041756,77713.7714681205],[2676218e-11,4.41808345438,7860.4193924392],[2342691e-11,6.13516214446,3930.2096962196],[1273165e-11,2.03709657878,529.6909650946],[1324294e-11,.74246341673,11506.7697697936],[901854e-11,2.04505446477,26.2983197998],[1199167e-11,1.10962946234,1577.3435424478],[857223e-11,3.50849152283,398.1490034082],[779786e-11,1.17882681962,5223.6939198022],[99025e-10,5.23268072088,5884.9268465832],[753141e-11,2.53339052847,5507.5532386674],[505267e-11,4.58292599973,18849.2275499742],[492392e-11,4.20505711826,775.522611324],[356672e-11,2.91954114478,.0673103028],[284125e-11,1.89869240932,796.2980068164],[242879e-11,.34481445893,5486.777843175],[317087e-11,5.84901948512,11790.6290886588],[271112e-11,.31486255375,10977.078804699],[206217e-11,4.80646631478,2544.3144198834],[205478e-11,1.86953770281,5573.1428014331],[202318e-11,2.45767790232,6069.7767545534],[126225e-11,1.08295459501,20.7753954924],[155516e-11,.83306084617,213.299095438],[115132e-11,.64544911683,.9803210682],[102851e-11,.63599845579,4694.0029547076],[101724e-11,4.2667980198,7.1135470008],[9.9206e-7,6.20992926918,2146.1654164752],[132212e-11,3.41118292683,2942.4634232916],[9.7607e-7,.68101342359,155.4203994342],[8.5128e-7,1.29870764804,6275.9623029906],[7.4651e-7,1.755089133,5088.6288397668],[101895e-11,.97569280312,15720.8387848784],[8.4711e-7,3.67080093031,71430.69561812909],[7.3547e-7,4.67926633877,801.8209311238],[7.3874e-7,3.50319414955,3154.6870848956],[7.8757e-7,3.03697458703,12036.4607348882],[7.9637e-7,1.80791287082,17260.1546546904],[8.5803e-7,5.9832263126,161000.6857376741],[5.6963e-7,2.78430458592,6286.5989683404],[6.1148e-7,1.81839892984,7084.8967811152],[6.9627e-7,.83297621398,9437.762934887],[5.6116e-7,4.38694865354,14143.4952424306],[6.2449e-7,3.97763912806,8827.3902698748],[5.1145e-7,.28306832879,5856.4776591154],[5.5577e-7,3.47006059924,6279.5527316424],[4.1036e-7,5.36817592855,8429.2412664666],[5.1605e-7,1.33282739866,1748.016413067],[5.1992e-7,.18914947184,12139.5535091068],[49e-8,.48735014197,1194.4470102246],[392e-9,6.16833020996,10447.3878396044],[3.557e-7,1.775968892,6812.766815086],[3.677e-7,6.04133863162,10213.285546211],[3.6596e-7,2.56957481827,1059.3819301892],[3.3296e-7,.59310278598,17789.845619785],[3.5954e-7,1.70875808777,2352.8661537718],[4.0938e-7,2.39850938714,19651.048481098],[3.0047e-7,2.73975124088,1349.8674096588],[3.0412e-7,.44294464169,83996.84731811189],[2.3663e-7,.48473622521,8031.0922630584],[2.3574e-7,2.06528133162,3340.6124266998],[2.1089e-7,4.14825468851,951.7184062506],[2.4738e-7,.21484762138,3.5904286518],[2.5352e-7,3.16470891653,4690.4798363586],[2.2823e-7,5.22195230819,4705.7323075436],[2.1419e-7,1.42563910473,16730.4636895958],[2.1891e-7,5.55594302779,553.5694028424],[1.7481e-7,4.56052900312,135.0650800354],[1.9927e-7,5.22209149316,12168.0026965746],[1.986e-7,5.77470242235,6309.3741697912],[203e-9,.37133792946,283.8593188652],[1.4421e-7,4.19315052005,242.728603974],[1.6225e-7,5.98837767951,11769.8536931664],[1.5077e-7,4.1956716337,6256.7775301916],[1.9124e-7,3.82219958698,23581.2581773176],[1.8888e-7,5.38626892076,149854.4001348079],[1.4346e-7,3.72355084422,38.0276726358],[1.7898e-7,2.21490566029,13367.9726311066],[1.2054e-7,2.62229602614,955.5997416086],[1.1287e-7,.17739329984,4164.311989613],[1.3973e-7,4.40134615007,6681.2248533996],[1.3621e-7,1.88934516495,7632.9432596502],[1.2503e-7,1.13052412208,5.5229243074],[1.0498e-7,5.35909979317,1592.5960136328],[9.803e-8,.99948172646,11371.7046897582],[9.22e-8,4.57138585348,4292.3308329504],[1.0327e-7,6.19982170609,6438.4962494256],[1.2003e-7,1.00351462266,632.7837393132],[1.0827e-7,.32734523824,103.0927742186],[8.356e-8,4.53902748706,25132.3033999656],[1.0005e-7,6.0291496328,5746.271337896],[8.409e-8,3.29946177848,7234.794256242],[8.006e-8,5.82145271855,28.4491874678],[1.0523e-7,.93870455544,11926.2544136688],[7.686e-8,3.1214364064,7238.6755916],[9.378e-8,2.62413793196,5760.4984318976],[8.127e-8,6.11227839253,4732.0306273434],[9.232e-8,.48344234496,522.5774180938],[9.802e-8,5.24413877132,27511.4678735372],[7.871e-8,.99590133077,5643.1785636774],[8.123e-8,6.27053020099,426.598190876],[9.048e-8,5.33686323585,6386.16862421],[8.621e-8,4.16537179089,7058.5984613154],[6.297e-8,4.71723143652,6836.6452528338],[7.575e-8,3.97381357237,11499.6562227928],[7.756e-8,2.95728422442,23013.5395395872],[7.314e-8,.60652522715,11513.8833167944],[5.955e-8,2.87641047954,6283.14316029419],[6.534e-8,5.79046406784,18073.7049386502],[7.188e-8,3.99831461988,74.7815985673],[7.346e-8,4.38582423903,316.3918696566],[5.413e-8,5.39199023275,419.4846438752],[5.127e-8,2.36059551778,10973.55568635],[7.056e-8,.32258442532,263.0839233728],[6.624e-8,3.6647416584,17298.1823273262],[6.762e-8,5.91131766896,90955.5516944961],[4.938e-8,5.73672172371,9917.6968745098],[5.547e-8,2.45152589382,12352.8526045448],[5.958e-8,3.3205134466,6283.0085396886],[4.471e-8,2.06386138131,7079.3738568078],[6.153e-8,1.45823347458,233141.3144043615],[4.348e-8,4.42338625285,5216.5803728014],[6.124e-8,1.07494838623,19804.8272915828],[4.488e-8,3.65285033073,206.1855484372],[4.02e-8,.83995823171,20.3553193988],[5.188e-8,4.06503864016,6208.2942514241],[5.307e-8,.38216728132,31441.6775697568],[3.785e-8,2.34369213733,3.881335358],[4.497e-8,3.27230792447,11015.1064773348],[4.132e-8,.92129851256,3738.761430108],[3.521e-8,5.9784480361,3894.1818295422],[4.215e-8,1.90601721876,245.8316462294],[3.701e-8,5.03067498875,536.8045120954],[3.866e-8,1.82632980909,11856.2186514245],[3.652e-8,1.01840564429,16200.7727245012],[3.39e-8,.97784870142,8635.9420037632],[3.737e-8,2.9537891957,3128.3887650958],[3.507e-8,3.71291946317,6290.1893969922],[3.086e-8,3.64646921512,10.6366653498],[3.397e-8,1.10589356888,14712.317116458],[3.334e-8,.83684903082,6496.3749454294],[2.805e-8,2.58503711584,14314.1681130498],[3.65e-8,1.08344142571,88860.05707098669],[3.388e-8,3.20182380957,5120.6011455836],[3.252e-8,3.47857474229,6133.5126528568],[2.553e-8,3.9486902726,1990.745017041],[3.52e-8,2.05559692878,244287.60000722768],[2.565e-8,1.56072409371,23543.23050468179],[2.621e-8,3.85639359951,266.6070417218],[2.954e-8,3.39692614359,9225.539273283],[2.876e-8,6.02633318445,154717.6098876827],[2.395e-8,1.16130078696,10984.1923516998],[3.161e-8,1.32798862116,10873.9860304804],[3.163e-8,5.08946546862,21228.3920235458],[2.361e-8,4.27212461943,6040.3472460174],[3.03e-8,1.80210001168,35371.8872659764],[2.343e-8,3.57688971514,10969.9652576982],[2.618e-8,2.57870151918,22483.84857449259],[2.113e-8,3.71711179417,65147.6197681377],[2.019e-8,.81393923319,170.6728706192],[2.003e-8,.38091017375,6172.869528772],[2.506e-8,3.74378169126,10575.4066829418],[2.381e-8,.10581361289,7.046236698],[1.949e-8,4.86892513469,36.0278666774],[2.074e-8,4.22802468213,5650.2921106782],[1.924e-8,5.59460549844,6282.0955289232],[1.949e-8,1.06999605576,5230.807466803],[1.988e-8,5.19734705445,6262.300454499],[1.887e-8,3.74365662683,23.8784377478],[1.787e-8,1.25929659066,12559.038152982],[1.883e-8,1.90364058477,15.252471185],[1.816e-8,3.68083794819,15110.4661198662],[1.701e-8,4.41109562589,110.2063212194],[1.99e-8,3.93295788548,6206.8097787158],[2.103e-8,.75354936681,13521.7514415914],[1.774e-8,.48750515837,1551.045222648],[1.882e-8,.86685462305,22003.9146348698],[1.924e-8,1.22901099088,709.9330485583],[2.073e-8,4.62531597856,6037.244203762],[1.924e-8,.60231842492,6284.0561710596],[1.596e-8,3.98332879712,13916.0191096416],[1.664e-8,4.41947015623,8662.240323563],[1.971e-8,1.04560686192,18209.33026366019],[1.942e-8,4.31335979989,6244.9428143536],[1.476e-8,.93274523818,2379.1644735716],[1.81e-8,.49112137707,1.4844727083],[1.346e-8,1.51574753411,4136.9104335162],[1.528e-8,5.61833568587,6127.6554505572],[1.791e-8,3.22191142746,39302.096962196],[1.747e-8,3.05595292589,18319.5365848796],[1.432e-8,4.51123984264,20426.571092422],[1.695e-8,.22049418623,25158.6017197654],[1.242e-8,4.46665354536,17256.6315363414],[1.463e-8,4.69248613506,14945.3161735544],[1.205e-8,1.86911906771,4590.910180489],[1.19e-8,2.74169967367,12569.6748183318],[1.222e-8,5.18120087481,5333.9002410216],[1.39e-8,5.42888623322,143571.32428481648],[1.473e-8,1.70487100866,11712.9553182308],[1.362e-8,2.61069503292,6062.6632075526],[1.148e-8,6.0300843061,3634.6210245184],[1.198e-8,5.15296117339,10177.2576795336],[1.266e-8,.11422490557,18422.62935909819],[1.411e-8,1.09910890045,3496.032826134],[1.349e-8,2.99804623019,17654.7805397496],[1.253e-8,2.79844902576,167283.7615876655],[1.311e-8,1.609410743,5481.2549188676],[1.079e-8,6.20304501787,3.2863574178],[1.181e-8,1.20653777627,131.5419616864],[1.254e-8,5.45103277799,6076.8903015542],[1.036e-8,2.32136959491,7342.4577801806],[1.117e-8,.38842340979,949.1756089698],[9.66e-9,3.18352079941,11087.2851259184],[1.171e-8,3.39635167732,12562.6285816338],[1.121e-8,.72631814699,220.4126424388],[1.024e-8,2.19381113265,11403.676995575],[8.88e-9,3.91167196431,4686.8894077068],[9.1e-9,1.98802695087,735.8765135318],[8.23e-9,.48822202854,24072.9214697764],[1.096e-8,6.17377835617,5436.9930152402],[9.08e-9,.44959148878,7477.522860216],[9.74e-9,1.52996313552,9623.6882766912],[8.4e-9,1.79540573407,5429.8794682394],[7.78e-9,6.17703744517,38.1330356378],[7.76e-9,4.09859968447,14.2270940016],[1.068e-8,4.64209577648,43232.3066584156],[9.54e-9,1.49985885818,1162.4747044078],[9.07e-9,.86986870809,10344.2950653858],[9.31e-9,4.06049877517,28766.924424484],[7.39e-9,5.04368192034,639.897286314],[9.65e-9,3.44286716197,1589.0728952838],[7.63e-9,5.86304776787,16858.4825329332],[9.53e-9,4.20801492835,11190.377900137],[7.08e-9,1.72432323967,13095.8426650774],[9.69e-9,1.64437243011,29088.811415985],[7.17e-9,.16688678895,11.729352836],[9.62e-9,3.53101876172,12416.5885028482],[7.45e-9,5.77741082302,12592.4500197826],[6.72e-9,1.91091228744,3.9321532631],[6.71e-9,5.46240758839,18052.9295431578],[6.75e-9,6.28311649798,4535.0594369244],[6.84e-9,.39975011401,5849.3641121146],[7.99e-9,.29859056777,12132.439962106],[7.58e-9,.96370719224,1052.2683831884],[7.82e-9,5.33875702541,13517.8701062334],[7.3e-9,1.70114998543,17267.26820169119],[7.49e-9,2.59607005624,11609.8625440122],[7.34e-9,2.7842049778,640.8776073822],[6.88e-9,5.15097673557,16496.3613962024],[7.7e-9,1.62459252416,4701.1165017084],[6.33e-9,2.20588443066,25934.1243310894],[7.6e-9,4.21317219403,377.3736079158],[5.84e-9,2.13420121623,10557.5941608238],[5.72e-9,.24649745829,9779.1086761254],[5.73e-9,3.16435264609,533.2140834436],[6.85e-9,3.19344289472,12146.6670561076],[6.75e-9,.96179234176,10454.5013866052],[6.48e-9,1.46327342554,6268.8487559898],[5.89e-9,2.50543543638,3097.88382272579],[5.51e-9,5.28106257475,9388.0059094152],[6.96e-9,3.6534215555,4804.209275927],[6.69e-9,2.5103005926,2388.8940204492],[5.5e-9,.06883090057,20199.094959633],[6.29e-9,4.13350997495,45892.73043315699],[6.78e-9,6.09190163533,135.62532501],[5.93e-9,1.50129499103,226858.23855437007],[5.42e-9,3.58582033525,6148.010769956],[5.99e-9,6.12058050643,18875.525869774],[6.82e-9,5.0221361683,17253.04110768959],[5.65e-9,4.29309214275,11933.3679606696],[4.86e-9,.77746204893,27.4015560968],[5.03e-9,.58974557727,15671.0817594066],[6.16e-9,4.06539884128,227.476132789],[5.37e-9,2.15064382406,21954.15760939799],[6.69e-9,6.06995500278,47162.5163546352],[5.4e-9,2.83444221432,5326.7866940208],[4.74e-9,.40346826846,6915.8595893046],[5.32e-9,5.26131065063,10988.808157535],[5.82e-9,3.24533095664,153.7788104848],[6.41e-9,3.24711790399,2107.0345075424],[6.19e-9,3.08302108547,33019.0211122046],[4.66e-9,3.14982369789,10440.2742926036],[4.66e-9,.90708835651,5966.6839803348],[5.28e-9,.8192645447,813.5502839598],[6.03e-9,3.81378921927,316428.22867391503],[5.59e-9,1.8189498573,17996.0311682222],[4.37e-9,2.28631745987,6303.8512454838],[5.18e-9,4.86068318058,20597.2439630412],[4.24e-9,6.23520018697,6489.2613984286],[5.18e-9,6.17617826756,.2438174835],[4.04e-9,5.72804304258,5642.1982426092],[4.58e-9,1.34117773914,6287.0080032545],[5.48e-9,5.6845445832,155427.542936241],[5.47e-9,1.03391472434,3646.3503773544],[4.28e-9,4.6980968782,846.0828347512],[4.13e-9,6.0252069939,6279.4854213396],[5.34e-9,3.03030638223,66567.48586525429],[3.83e-9,1.4905558804,19800.9459562248],[4.11e-9,5.28384176408,18451.07854656599],[3.52e-9,4.68891600525,4907.3020501456],[4.8e-9,5.36572651091,348.924420448],[3.44e-9,5.89157452889,6546.1597733642],[3.4e-9,.37557440365,13119.72110282519],[4.34e-9,4.98417856239,6702.5604938666],[3.32e-9,2.6890934443,29296.6153895786],[4.48e-9,2.16478480251,5905.7022420756],[3.44e-9,2.06546633735,49.7570254718],[3.15e-9,1.24023810969,4061.2192153944],[3.24e-9,2.30897526929,5017.508371365],[4.13e-9,.17171692945,6286.6662786432],[4.31e-9,3.8660110138,12489.8856287072],[3.49e-9,4.55372493131,4933.2084403326],[3.23e-9,.41971136084,10770.8932562618],[3.41e-9,2.68612860807,11.0457002639],[3.16e-9,3.52966641606,17782.7320727842],[3.15e-9,5.63357264999,568.8218740274],[3.4e-9,3.83571212349,10660.6869350424],[2.96e-9,.62703270489,20995.3929664494],[4.05e-9,1.00084965393,16460.33352952499],[4.14e-9,1.21998752076,51092.7260508548],[3.36e-9,4.71465945215,6179.9830757728],[3.61e-9,3.71235613733,28237.2334593894],[3.27e-9,1.05606504715,11919.140866668],[3.27e-9,6.1422242098,6254.6266625236],[2.68e-9,2.47224339737,664.75604513],[2.69e-9,1.86210872453,23141.5583829246],[3.45e-9,.93461290184,6058.7310542895],[3.53e-9,4.50033650657,36949.2308084242],[3.44e-9,6.26166140367,24356.7807886416],[3e-9,4.46964001975,6418.1409300268],[2.6e-9,4.04967464725,6525.8044539654],[2.98e-9,2.20018811054,156137.47598479927],[2.53e-9,3.49930797865,29864.334027309],[2.54e-9,2.44883530154,5331.3574437408],[2.96e-9,.84341183907,5729.506447149],[2.41e-9,2.00721298729,16737.5772365966],[3.11e-9,1.23668016336,6281.5913772831],[3.32e-9,3.55576945724,7668.6374249425],[2.36e-9,2.47437156031,6245.0481773556],[2.64e-9,4.43924412283,12964.300703391],[2.57e-9,1.79654471948,11080.1715789176],[2.6e-9,3.3307759606,5888.4499649322],[2.85e-9,.3088636143,11823.1616394502],[2.9e-9,5.70141882483,77.673770428],[2.55e-9,4.00939662024,5881.4037282342],[2.53e-9,4.73318512715,16723.350142595],[2.28e-9,.95333661324,5540.0857894588],[2.81e-9,1.29199646396,22805.7355659936],[3.19e-9,1.38633229189,163096.18036118348],[2.24e-9,1.65156322696,10027.9031957292],[2.26e-9,.34125379653,17796.9591667858],[2.36e-9,4.19817431922,19.66976089979],[2.81e-9,4.14114899916,12539.853380183],[2.75e-9,5.50306930248,32.5325507914],[2.23e-9,5.23334210294,56.8983749356],[2.17e-9,6.08598789777,6805.6532680852],[2.28e-9,5.17114391778,11720.0688652316],[2.74e-9,4.50716805713,6016.4688082696],[2.45e-9,3.96486270306,22.7752014508],[2.2e-9,4.7207808197,6.62855890001],[2.07e-9,5.71701403951,41.5507909848],[2.04e-9,3.9122741125,2699.7348193176],[2.09e-9,.86881969024,6321.1035226272],[2e-9,2.11984442601,4274.5183108324],[2e-9,5.39839888151,6019.9919266186],[2.09e-9,5.67606291663,11293.4706743556],[2.52e-9,1.6496572935,9380.9596727172],[2.75e-9,5.04826903506,73.297125859],[2.08e-9,1.88207277133,11300.5842213564],[2.06e-9,5.0728488933,6277.552925684],[2.72e-9,.74640924904,1975.492545856],[1.99e-9,3.30813142103,22743.4093795164],[2.69e-9,4.48560812155,64471.99124174489],[1.92e-9,2.17463565107,5863.5912061162],[2.28e-9,5.85373115869,128.0188433374],[2.61e-9,2.64321183295,55022.9357470744],[1.96e-9,2.4853762232,16062.1845261168],[1.87e-9,1.3189176028,29826.3063546732],[2.2e-9,5.75012110079,29.429508536],[1.87e-9,4.03230554718,467.9649903544],[2e-9,5.60555262896,1066.49547719],[2.31e-9,1.09802712785,12341.8069042809],[1.98e-9,.29474229005,149.5631971346],[2.49e-9,5.1047702317,7875.6718636242],[1.79e-9,.87066197995,12721.572099417],[2.03e-9,1.56914310573,28286.9904848612],[1.98e-9,3.54061588502,30.914125635],[1.71e-9,3.45366018621,5327.4761083828],[1.83e-9,.72325421604,6272.0301497275],[2.16e-9,2.97175184412,19402.7969528166],[1.68e-9,2.51559879907,23937.856389741],[1.95e-9,.09045393425,156.4007205024],[2.16e-9,.42162375972,23539.7073863328],[1.89e-9,.37542530191,9814.6041002912],[2.07e-9,2.01752547259,238004.5241572363],[2.18e-9,2.36835893645,16627.3709153772],[1.66e-9,4.23182960518,16840.67001081519],[2e-9,2.02153258098,16097.6799502826],[1.69e-9,.91318727,95.9792272178],[2.11e-9,5.73370637657,151.8972810852],[2.04e-9,.42643085174,515.463871093],[2.12e-9,3.00223140894,12043.574281889],[1.92e-9,5.46153589821,6379.0550772092],[1.6e-9,6.23798383332,202.2533951741],[2.15e-9,.20889073407,5621.8429232104],[1.5e-9,3.12999753018,799.8211251654],[1.87e-9,2.12345787867,491.6632924588],[1.92e-9,1.33928820063,394.6258850592],[1.49e-9,2.65697593276,21.335640467],[1.46e-9,5.58021191726,412.3710968744],[1.56e-9,3.7565767638,12323.4230960088],[1.43e-9,3.28248547724,29.8214381488],[1.44e-9,1.07862546598,1265.5674786264],[1.48e-9,.2338663109,10021.8372800994],[1.64e-9,.94288727597,14919.0178537546],[1.93e-9,5.92751083827,40879.4405046438],[1.4e-9,4.97612440269,158.9435177832],[1.48e-9,2.61651818006,17157.0618804718],[1.4e-9,3.66947933935,26084.0218062162],[1.47e-9,5.09968173403,661.232926781],[1.47e-9,1.36976712162,4171.4255366138],[1.34e-9,4.79432636012,111.1866422876],[1.4e-9,1.27748013377,107.6635239386],[1.71e-9,2.77586207403,26735.9452622132],[1.83e-9,5.43418358741,369.6998159404],[1.34e-9,3.09132862833,17.812522118],[1.32e-9,3.05633896779,22490.9621214934],[1.81e-9,4.22950689891,966.9708774356],[1.66e-9,3.67660435776,15508.6151232744],[1.52e-9,5.28885813387,12669.2444742014],[1.5e-9,5.86819430895,97238.62754448749],[1.45e-9,5.07330784304,87.30820453981],[1.33e-9,5.65471067133,31.9723058168],[1.24e-9,2.83326216907,12566.2190102856],[1.4e-9,5.84212721453,22476.73502749179],[1.34e-9,3.12858101887,32217.2001810808],[1.37e-9,.86487461904,9924.8104215106],[1.72e-9,1.98369595114,174242.4659640497],[1.7e-9,4.41115280254,327574.51427678124],[1.28e-9,4.49087631612,31415.379249957],[1.51e-9,.46542092001,39609.6545831656],[1.53e-9,3.78801830344,17363.24742890899],[1.65e-9,5.31654110459,16943.7627850338],[1.65e-9,4.06747587817,58953.145443294],[1.18e-9,.63846333239,6.0659156298],[1.59e-9,.86086959274,221995.02880149524],[1.19e-9,5.96432932413,1385.8952763362],[1.14e-9,5.16516114595,25685.872802808],[1.12e-9,4.92889233335,56.8032621698],[1.19e-9,2.40626699328,18635.9284545362],[1.15e-9,.23374479051,418.9243989006],[1.13e-9,2.7938757674,6272.4391846416],[1.22e-9,.936940724,24492.40611365159],[1.33e-9,4.87155573413,22345.2603761082],[1.13e-9,3.80362889046,6293.7125153412],[1.3e-9,3.72996018683,12573.2652469836],[1.07e-9,3.40227152756,21393.5419698576],[1.22e-9,1.00385670948,95143.1329209781],[1.4e-9,1.094130757,44809.6502008634],[1.12e-9,6.05462382871,433.7117378768],[1.23e-9,4.55640196386,239424.39025435288],[1.04e-9,1.54931540602,127.9515330346],[1.11e-9,3.04186517428,8982.810669309],[1.02e-9,4.12448497391,15664.03552270859],[1.07e-9,4.67919356465,77690.75950573849],[1.18e-9,4.5232017012,19004.6479494084],[1.07e-9,5.71774478555,77736.78343050249],[1.03e-9,4.79332126649,33794.5437235286],[1.43e-9,1.81201813018,4214.0690150848],[1.02e-9,3.7581778657,58864.5439181463],[1.25e-9,1.14419195615,625.6701923124],[1.24e-9,3.27736513892,12566.08438968],[1.1e-9,1.08705709966,2787.0430238574],[1.02e-9,4.75119578149,12242.6462833254],[1.01e-9,4.91289409429,401.6721217572],[1.38e-9,2.89578979744,9411.4646150872],[1.29e-9,1.23516042371,12029.3471878874],[1.38e-9,2.45654707076,7576.560073574],[9.8e-10,5.4477176502,29026.48522950779],[1.34e-9,1.43105174912,86464.6133168312],[1.08e-9,.9898977494,5636.0650166766],[1.17e-9,5.17362847134,34520.3093093808],[9.7e-10,3.34717130592,16310.9790457206],[1.07e-9,2.94547931851,24602.61243487099],[9.8e-10,4.37041908717,34513.2630726828],[1.25e-9,2.72182830814,24065.80792277559],[1.11e-9,.58899131543,6303.4311693902],[1.02e-9,.66938025772,10239.5838660108],[1.19e-9,1.21666517886,1478.8665740644],[1.11e-9,1.04321934681,16522.6597160022],[9.4e-10,4.31076339857,26880.3198130326],[9.8e-10,4.14248433763,6599.467719648],[9.5e-10,2.89807657534,34911.412076091],[9.7e-10,.89642320201,71980.63357473118],[9.5e-10,.65717727948,6288.5987742988],[1.16e-9,4.19967201116,206.7007372966],[9.5e-10,1.78315464297,18139.2945014159],[9.9e-10,1.37437847718,1039.0266107904],[1.26e-9,3.21642544972,305281.9430710488],[9.4e-10,.6899503186,7834.1210726394],[9.5e-10,5.58111421744,3104.9300594238],[1.08e-9,.52696637156,276.7457718644],[1.24e-9,3.43899862683,172146.9713405403],[8.7e-10,1.18764938806,18842.11400297339],[8.7e-10,.09094166389,15141.390794312],[1.08e-9,1.03363414379,82576.9812209953],[1.19e-9,2.86729109648,90394.82301305079],[1.04e-9,3.39218586218,290.972865866],[9.4e-10,5.68284937444,32367.0976562076],[1.17e-9,.78475956902,83286.91426955358],[1.05e-9,3.96551057233,6357.8574485587],[9.4e-10,4.03443174853,13341.6743113068],[9.6e-10,.92742567538,1062.9050485382],[8.9e-10,4.45371820659,792.7748884674],[8.7e-10,.40013481685,90279.92316810328],[1.13e-9,2.48165313368,48739.859897083],[8.7e-10,3.43122851097,27707.5424942948],[1.01e-9,5.32081603011,2301.58581590939],[8.4e-10,.67020912458,28628.3362260996],[8.2e-10,.87060089842,10241.2022911672],[8.6e-10,4.6206479229,36147.4098773004],[8e-10,4.77649625396,6819.8803620868],[9.5e-10,2.87032913492,23020.65308658799],[1.07e-9,5.77864921649,34115.1140692746],[1.1e-9,3.32898859416,72140.6286666874],[8.7e-10,4.40657711727,142.1786270362],[1.03e-9,4.2250672681,30666.1549584328],[8.2e-10,3.89404392552,5547.1993364596],[1.09e-9,1.94546065204,24279.10701821359],[8.7e-10,4.32472045435,742.9900605326],[1.07e-9,4.91580912547,277.0349937414],[8.8e-10,2.10180817713,26482.1708096244],[8.6e-10,4.01895021483,12491.3701014155],[1.06e-9,5.49092372854,62883.3551395136],[8e-10,6.1978570495,6709.6740408674],[1.05e-9,2.44166529175,6298.3283211764],[8.3e-10,4.90662164029,51.28033786241],[7.4e-10,2.34622575625,7018.9523635232],[7.8e-10,6.06947270265,148434.53403769128],[7.9e-10,3.03048221644,838.9692877504],[7.3e-10,3.05008665738,567.7186377304],[1.02e-9,3.59223815483,22380.755800274],[8.4e-10,.46604373274,45.1412196366],[9.2e-10,4.12917744733,18216.443810661],[9.1e-10,.49382398887,6453.7487206106],[7.3e-10,1.72446569088,21424.4666443034],[6.9e-10,1.4937267773,21548.9623692918],[6.9e-10,4.73181018058,8858.3149443206],[7.7e-10,.47683782532,11520.9968637952],[7.8e-10,5.4394263099,15265.8865193004],[7.7e-10,2.53773750372,76.2660712756],[6.9e-10,2.53932635192,9910.583327509],[7.5e-10,.1559472921,23006.42599258639],[7.8e-10,2.41004950269,6393.2821712108],[6.7e-10,5.05152846816,57375.8019008462],[7.7e-10,3.9107560486,24383.0791084414],[6.7e-10,.78239147387,12779.4507954208],[7.1e-10,1.24817900687,10419.9862835076],[6.7e-10,5.7785122776,6311.5250374592],[6.1e-10,2.66705754411,18852.7506683232],[7.9e-10,1.89137330427,6528.9074962208],[8.4e-10,5.11523704221,50317.2034395308],[5.9e-10,3.38290426621,35707.7100829074],[6.5e-10,4.66767908854,26709.6469424134],[7.9e-10,5.59773848156,71960.38658322369],[6.1e-10,3.30733768968,18845.7044316252],[5.7e-10,3.90831298022,5999.2165311262],[5.8e-10,3.92572820333,30348.883772767],[6.1e-10,.05695045822,7856.89627409019],[6.1e-10,5.63297960691,7863.9425107882],[6.8e-10,2.53986117507,20452.8694122218],[5.3e-10,5.44021645443,32370.9789915656],[5.9e-10,4.95695131145,11925.2740926006],[5.9e-10,5.34668243273,137288.2484348251],[5.6e-10,4.05779957425,17892.93839400359],[5.3e-10,3.94182462468,18624.8827542723],[4.9e-10,2.11782803206,22594.05489571199],[6.2e-10,2.47154086715,12345.739057544],[4.9e-10,5.7659693738,18606.4989460002],[5.2e-10,6.20902099741,21947.1113727],[5.1e-10,3.13287981215,33326.5787331742],[5.7e-10,6.17003357597,61306.0115970658],[6.4e-10,5.66596451842,34596.3646546524],[6.6e-10,3.922623355,69853.3520756813],[5.3e-10,5.51119362049,77710.24834977149],[5.3e-10,4.88573986965,77717.29458646949],[4.8e-10,2.71399112516,20760.4270331914],[4.6e-10,6.08376164442,29822.7832363242],[5.2e-10,.3139748138,37724.7534197482],[4.5e-10,5.53587248663,6262.7205305926],[5.9e-10,2.45437896854,69166.430989505],[6e-10,5.24261569842,56600.2792895222],[5.1e-10,6.15794342172,11616.976091013],[6e-10,1.74758109828,44034.1275895394],[4.9e-10,5.08973141046,33990.6183442862],[4.4e-10,3.28270864884,29424.634232916],[5.2e-10,5.34866947943,28313.288804661],[5.9e-10,2.12384971916,36173.7081971002],[5e-10,.46480931695,25287.7237993998],[4.4e-10,2.0550351721,63658.8777508376],[4.4e-10,1.71009200258,13362.4497067992],[4.1e-10,3.91721318316,6279.1945146334],[4.2e-10,1.52106001448,23550.34405168259],[4.2e-10,3.10938258068,84672.47584450469],[4.1e-10,3.78863023321,35050.00027447539],[4.2e-10,5.57543459263,38500.2760310722],[4e-10,5.55145719363,12565.1713789146],[5.4e-10,.889354921,50290.905119731],[5.5e-10,2.50268487636,77828.671313068],[5.4e-10,4.16257918787,22910.44676536859],[4.1e-10,2.32141215064,6286.9571853494],[4.5e-10,3.18590576311,45585.1728121874],[4.5e-10,2.24348941683,23646.32327890039],[4.3e-10,3.8789211095,6549.6828917132],[4.8e-10,2.11364139445,31570.7996493912],[4.3e-10,5.55099558987,12359.9661515456],[4.1e-10,4.88191569433,23536.11695768099],[4.9e-10,2.44790922235,13613.804277336],[4.7e-10,3.5818169391,4797.0957289262]],1:[[6283.0758499914,0,0],[.00206058863,2.67823455808,6283.0758499914],[4303419e-11,2.63512233481,12566.1516999828],[425264e-11,1.59046982018,3.523118349],[109017e-11,2.96631010675,1577.3435424478],[9.3479e-7,2.59211109542,18849.2275499742],[119305e-11,5.79555765566,26.2983197998],[7.2121e-7,1.13840581212,529.6909650946],[6.7784e-7,1.87453300345,398.1490034082],[6.735e-7,4.40932832004,5507.5532386674],[5.9045e-7,2.88815790631,5223.6939198022],[5.5976e-7,2.17471740035,155.4203994342],[4.5411e-7,.39799502896,796.2980068164],[3.6298e-7,.46875437227,775.522611324],[2.8962e-7,2.64732254645,7.1135470008],[1.9097e-7,1.84628376049,5486.777843175],[2.0844e-7,5.34138275149,.9803210682],[1.8508e-7,4.96855179468,213.299095438],[1.6233e-7,.03216587315,2544.3144198834],[1.7293e-7,2.9911676063,6275.9623029906],[1.5832e-7,1.43049301283,2146.1654164752],[1.4608e-7,1.2046979369,10977.078804699],[1.1877e-7,3.25805082007,5088.6288397668],[1.1514e-7,2.07502080082,4694.0029547076],[9.721e-8,4.2392586526,1349.8674096588],[9.969e-8,1.30263423409,6286.5989683404],[9.452e-8,2.69956827011,242.728603974],[1.2461e-7,2.83432282119,1748.016413067],[1.1808e-7,5.27379760438,1194.4470102246],[8.577e-8,5.6447608598,951.7184062506],[1.0641e-7,.76614722966,553.5694028424],[7.576e-8,5.30056172859,2352.8661537718],[5.764e-8,1.77228445837,1059.3819301892],[6.385e-8,2.65034514038,9437.762934887],[5.223e-8,5.66135782131,71430.69561812909],[5.315e-8,.91110018969,3154.6870848956],[6.101e-8,4.66633726278,4690.4798363586],[4.335e-8,.23934560382,6812.766815086],[5.041e-8,1.42489704722,6438.4962494256],[4.259e-8,.77355543889,10447.3878396044],[52e-9,1.85528830215,801.8209311238],[3.744e-8,2.00119905572,8031.0922630584],[3.553e-8,2.42789590229,14143.4952424306],[3.372e-8,3.86210786421,1592.5960136328],[3.38e-8,.88545388924,12036.4607348882],[3.196e-8,3.19713328141,4705.7323075436],[3.221e-8,.6160104899,8429.2412664666],[4.132e-8,5.23992584671,7084.8967811152],[2.97e-8,6.07029819073,4292.3308329504],[29e-9,2.32464208411,20.3553193988],[3.504e-8,4.79976712702,6279.5527316424],[2.95e-8,1.43108874817,5746.271337896],[2.697e-8,4.80365209201,7234.794256242],[2.531e-8,6.22289990904,6836.6452528338],[2.745e-8,.93466065396,5760.4984318976],[3.25e-8,3.39951915286,7632.9432596502],[2.278e-8,5.00339914806,17789.845619785],[2.076e-8,3.95551309007,10213.285546211],[2.061e-8,2.2240771919,5856.4776591154],[2.252e-8,5.67166717686,11499.6562227928],[2.148e-8,5.20182663314,11513.8833167944],[1.886e-8,.53198539077,3340.6124266998],[1.875e-8,4.73511969924,83996.84731811189],[2.06e-8,2.54985307819,25132.3033999656],[1.794e-8,1.47435300254,4164.311989613],[1.778e-8,3.02473091781,5.5229243074],[2.036e-8,.90908165072,6256.7775301916],[2.064e-8,2.27051326957,522.5774180938],[1.773e-8,3.03090500693,5753.3848848968],[1.569e-8,6.12406216872,5216.5803728014],[1.59e-8,4.63713748247,3.2863574178],[1.533e-8,4.20305593883,13367.9726311066],[1.427e-8,1.19087535126,3894.1818295422],[1.376e-8,4.24955891338,426.598190876],[1.375e-8,3.09301252193,135.0650800354],[1.308e-8,3.0849213889,5643.1785636774],[1.34e-8,5.76513167968,6040.3472460174],[1.25e-8,3.07748196332,11926.2544136688],[1.551e-8,3.07664090662,6681.2248533996],[1.148e-8,3.24144202282,12168.0026965746],[1.268e-8,2.09201189992,6290.1893969922],[1.248e-8,3.44506939791,536.8045120954],[1.118e-8,2.31830078762,16730.4636895958],[1.105e-8,5.31966001019,23.8784377478],[1.012e-8,3.74953487087,7860.4193924392],[1.025e-8,2.4468377161,1990.745017041],[9.62e-9,.81771017882,3.881335358],[9.11e-9,.41724352112,7079.3738568078],[1.091e-8,3.98233608618,11506.7697697936],[9.57e-9,4.07671436153,6127.6554505572],[8.35e-9,5.28348689371,11790.6290886588],[8.02e-9,3.88779080089,10973.55568635],[7.73e-9,2.41044394817,1589.0728952838],[7.58e-9,1.30034365873,103.0927742186],[7.49e-9,4.96281442361,6496.3749454294],[7.65e-9,3.36312388424,36.0278666774],[9.15e-9,5.41549763095,206.1855484372],[7.76e-9,2.57589060224,11371.7046897582],[7.72e-9,3.98363364977,955.5997416086],[7.49e-9,5.17900231417,10969.9652576982],[8.06e-9,.34226117299,9917.6968745098],[7.28e-9,5.20962563787,38.0276726358],[6.85e-9,2.77592961854,20.7753954924],[6.36e-9,4.28242193632,28.4491874678],[6.08e-9,5.63278510221,10984.1923516998],[7.04e-9,5.60739437733,3738.761430108],[6.85e-9,.38876148682,15.252471185],[6.01e-9,.73489602442,419.4846438752],[7.16e-9,2.65286869987,6309.3741697912],[5.84e-9,5.54508741381,17298.1823273262],[6.28e-9,1.11733054796,7058.5984613154],[6.88e-9,2.59684132401,3496.032826134],[4.85e-9,.44470714066,12352.8526045448],[5.62e-9,2.82510352358,3930.2096962196],[5.97e-9,5.27675789973,10575.4066829418],[5.83e-9,3.1893153986,4732.0306273434],[5.26e-9,5.01737745304,5884.9268465832],[5.4e-9,1.29182747488,640.8776073822],[4.81e-9,5.49721461067,5230.807466803],[4.06e-9,5.21253018484,220.4126424388],[3.95e-9,1.87489912123,16200.7727245012],[3.67e-9,.88533542945,6283.14316029419],[3.69e-9,3.84778078192,18073.7049386502],[3.79e-9,.37991716505,10177.2576795336],[3.56e-9,3.84152910109,11712.9553182308],[3.74e-9,5.01577520608,7.046236698],[3.81e-9,4.30250406634,6062.6632075526],[4.71e-9,.86388942467,6069.7767545534],[3.67e-9,1.3294383993,6283.0085396886],[4.6e-9,5.19667219582,6284.0561710596],[3.33e-9,5.54250425107,4686.8894077068],[3.41e-9,4.36524495363,7238.6755916],[3.36e-9,4.00205876835,3097.88382272579],[3.59e-9,6.22679790284,245.8316462294],[3.07e-9,2.35299010924,170.6728706192],[3.43e-9,3.77164927142,6076.8903015542],[2.96e-9,5.44138799494,17260.1546546904],[3.28e-9,.13817705132,11015.1064773348],[2.69e-9,1.13308244952,12569.6748183318],[2.63e-9,.0055073751,4136.9104335162],[2.82e-9,5.04399588559,7477.522860216],[2.8e-9,3.13703211405,12559.038152982],[2.59e-9,.93882269388,5642.1982426092],[2.92e-9,1.98426314297,12132.439962106],[2.47e-9,3.84244798673,5429.8794682394],[3.19e-9,5.0417014879,90617.7374312997],[2.45e-9,5.70469737024,65147.6197681377],[3.18e-9,1.35581968834,78051.5857313169],[2.41e-9,.99469787369,3634.6210245184],[2.46e-9,3.06168069393,110.2063212194],[2.39e-9,6.11854529589,11856.2186514245],[2.67e-9,.65297608414,21228.3920235458],[2.62e-9,1.51070507866,12146.6670561076],[2.3e-9,1.75923794017,9779.1086761254],[2.23e-9,2.00967043606,6172.869528772],[2.46e-9,1.10411690861,6282.0955289232],[2.14e-9,4.03840492266,14314.1681130498],[2.12e-9,2.13695623228,5849.3641121146],[2.07e-9,3.07724246401,11.729352836],[2.07e-9,6.10303325026,23543.23050468179],[2.66e-9,1.00720021877,2388.8940204492],[2.17e-9,6.27840212312,17267.26820169119],[2.31e-9,5.37372783468,13916.0191096416],[2.04e-9,2.34615348695,266.6070417218],[1.95e-9,5.55015549753,6133.5126528568],[2.03e-9,4.65616806503,24072.9214697764],[1.88e-9,2.52682282169,6525.8044539654],[1.77e-9,1.73426919199,154717.6098876827],[1.87e-9,4.76501318048,4535.0594369244],[1.86e-9,4.63080493407,10440.2742926036],[1.83e-9,3.20060840641,8635.9420037632],[1.72e-9,1.45551703877,9225.539273283],[1.62e-9,3.30665137166,639.897286314],[1.68e-9,2.17671416605,27.4015560968],[1.6e-9,1.6816871275,15110.4661198662],[1.94e-9,2.79243768345,7342.4577801806],[1.83e-9,.56273524797,13517.8701062334],[1.72e-9,5.97039514134,4701.1165017084],[1.79e-9,3.58450811616,87.30820453981],[1.52e-9,2.84070476839,5650.2921106782],[1.56e-9,1.07156076421,18319.5365848796],[1.82e-9,.44053620124,17253.04110768959],[1.42e-9,1.4629013752,11087.2851259184],[1.31e-9,5.40912137746,2699.7348193176],[1.44e-9,2.07312089638,25158.6017197654],[1.47e-9,6.15107800602,9623.6882766912],[1.41e-9,5.55739979498,10454.5013866052],[1.35e-9,.0609812943,16723.350142595],[1.23e-9,5.81194797368,17256.6315363414],[1.24e-9,2.36269386269,4933.2084403326],[1.26e-9,3.47483886466,22483.84857449259],[1.59e-9,5.63944722033,5729.506447149],[1.37e-9,1.93811728826,20426.571092422],[1.23e-9,3.92815962825,17996.0311682222],[1.48e-9,3.02542567608,1551.045222648],[1.21e-9,.05537321071,13095.8426650774],[1.2e-9,5.91904349732,6206.8097787158],[1.34e-9,3.11122937825,21954.15760939799],[1.19e-9,5.52143897201,709.9330485583],[1.22e-9,3.00840036775,19800.9459562248],[1.27e-9,1.37534182407,14945.3161735544],[1.41e-9,2.56886299638,1052.2683831884],[1.23e-9,2.83671175442,11919.140866668],[1.18e-9,.81918292547,5331.3574437408],[1.51e-9,2.68728567951,11769.8536931664],[1.19e-9,5.08654046247,5481.2549188676],[1.13e-9,4.42675663942,18422.62935909819],[1.53e-9,2.46021790779,11933.3679606696],[1.08e-9,1.04936452151,11403.676995575],[1.28e-9,.99810456461,8827.3902698748],[1.44e-9,2.54869747042,227.476132789],[1.5e-9,4.50631437136,2379.1644735716],[1.09e-9,.29269062317,16737.5772365966],[1.22e-9,4.23040027813,29.429508536],[1.11e-9,5.16970710025,17782.7320727842],[1.05e-9,1.61738153441,13119.72110282519],[1e-9,3.52204690579,18052.9295431578],[1.08e-9,1.08493117155,16858.4825329332],[1.35e-9,3.2016061697,6262.300454499],[1.06e-9,1.96085069786,74.7815985673],[1.29e-9,4.85949366504,16496.3613962024],[1.1e-9,2.30605777952,16460.33352952499],[9.7e-10,3.5091894021,5333.9002410216],[9.9e-10,3.56417337974,735.8765135318],[9.6e-10,3.40918487598,15720.8387848784],[9.4e-10,5.01601027363,3128.3887650958],[9.7e-10,1.65579893894,533.2140834436],[9.2e-10,.89219199493,29296.6153895786],[1.23e-9,3.16062062663,9380.9596727172],[1.02e-9,1.20493500565,23020.65308658799],[8.8e-10,2.21265504437,12721.572099417],[8.9e-10,1.5432266957,20199.094959633],[1.21e-9,6.19860353182,9388.0059094152],[8.9e-10,4.08082274765,22805.7355659936],[9.8e-10,1.09176668094,12043.574281889],[8.6e-10,1.13649001466,143571.32428481648],[8.8e-10,5.96980472191,107.6635239386],[8.2e-10,5.01561173481,22003.9146348698],[9.4e-10,1.69615700473,23006.42599258639],[8.1e-10,3.00664741995,2118.7638603784],[9.8e-10,1.39215287161,8662.240323563],[8e-10,5.16340988714,17796.9591667858],[8.2e-10,5.86893959287,2787.0430238574],[7.7e-10,.80723694712,167283.7615876655],[9.1e-10,5.74902425304,21424.4666443034],[7.6e-10,5.67183650604,14.2270940016],[8.1e-10,6.16619455699,1039.0266107904],[7.6e-10,3.21449884756,111.1866422876],[7.8e-10,1.37531518377,21947.1113727],[7.4e-10,3.58814195051,11609.8625440122],[7.7e-10,4.84846488388,22743.4093795164],[9e-10,1.48869013606,15671.0817594066],[8.2e-10,3.48618398216,29088.811415985],[7.1e-10,2.2159156119,12029.3471878874],[6.9e-10,1.93625656075,135.62532501],[7e-10,2.66552760898,18875.525869774],[6.9e-10,5.41478093731,26735.9452622132],[7.9e-10,5.15158156951,12323.4230960088],[7.8e-10,4.17014063638,1066.49547719],[6.5e-10,5.64584720343,12139.5535091068],[7.1e-10,3.89804774037,22779.4372461938],[6.3e-10,4.53968787714,8982.810669309],[7.6e-10,3.29088891716,2942.4634232916],[6.9e-10,.94232113005,14919.0178537546],[6.3e-10,4.0918653549,16062.1845261168],[6.5e-10,3.34580407184,51.28033786241],[6.5e-10,5.75757544877,52670.0695933026],[5.7e-10,5.25050277534,20995.3929664494],[6.1e-10,1.92290673861,6805.6532680852],[6.1e-10,.08878901558,13362.4497067992],[7.6e-10,1.86947679415,25287.7237993998],[5.6e-10,4.25396542622,6709.6740408674],[5.8e-10,4.79429715781,6286.3622074092],[7.3e-10,.53299090807,2301.58581590939],[7e-10,4.31243357502,19402.7969528166],[6.7e-10,2.53852336668,377.3736079158],[5.6e-10,3.20816844695,24889.5747959916],[5.4e-10,5.17336469511,26084.0218062162],[5.3e-10,3.17675406016,18451.07854656599],[5.3e-10,3.61529270216,77.673770428],[5.3e-10,.45467549335,30666.1549584328],[5.3e-10,2.97761644192,21548.9623692918],[6.1e-10,.14805728543,23013.5395395872],[5.1e-10,3.32803972907,56.8983749356],[5.2e-10,3.41304011355,23141.5583829246],[5.8e-10,3.13638677202,309.2783226558],[5.4e-10,1.60896548545,13341.6743113068],[5.3e-10,5.81426394852,16193.65917750039],[6.7e-10,6.27917920454,22345.2603761082],[5e-10,.42577644151,25685.872802808],[4.8e-10,.70204553352,1162.4747044078],[6.6e-10,3.64350022359,15265.8865193004],[5e-10,5.7438291744,19.66976089979],[5.4e-10,1.97277370837,23581.2581773176],[5.1e-10,1.23713196525,12539.853380183],[4.6e-10,5.41431704639,33019.0211122046],[4.6e-10,4.80640843261,19651.048481098],[5e-10,1.23847511223,22476.73502749179],[5.1e-10,4.91913434178,12592.4500197826],[4.6e-10,2.41369976086,98068.53671630539],[4.5e-10,3.45227074337,30774.5016425748],[4.5e-10,4.39659083856,433.7117378768],[4.5e-10,3.71921056816,18209.33026366019],[4.4e-10,2.47683925106,24356.7807886416],[4.9e-10,2.17835058609,13521.7514415914],[4.6e-10,.26142733448,11.0457002639],[4.5e-10,2.46230645202,51868.2486621788],[4.3e-10,4.29458463014,28230.18722269139],[4.8e-10,.89551707131,56600.2792895222],[4.2e-10,3.63410684699,4590.910180489],[4.9e-10,3.17757670967,6303.8512454838],[4.3e-10,4.93350349236,10021.8372800994],[5.2e-10,3.65410195699,7872.1487452752],[4.1e-10,4.82166756935,10988.808157535],[4e-10,1.81891629936,34596.3646546524],[4.3e-10,1.94164978061,1903.4368125012],[4.1e-10,.74461854136,23937.856389741],[4.5e-10,5.4557501753,60530.4889857418],[5e-10,5.67355640472,18216.443810661],[4e-10,.04502010161,38526.574350872],[5.3e-10,3.64807615995,11925.2740926006],[4.2e-10,5.19292937193,19004.6479494084],[4.1e-10,.94309683296,9924.8104215106],[3.9e-10,4.61184303844,95.9792272178],[4.9e-10,2.05532526216,12573.2652469836],[4.5e-10,3.73717824543,7875.6718636242],[4.3e-10,1.14078465002,49.7570254718],[3.9e-10,1.70539366023,32217.2001810808],[3.7e-10,1.29390383811,310.8407988684],[3.8e-10,.9597092595,664.75604513],[3.9e-10,.85957361635,16522.6597160022],[4e-10,1.00170796001,36949.2308084242],[4e-10,3.78164718776,55798.4583583984],[3.7e-10,5.42237070904,6286.6662786432],[3.6e-10,1.68167662194,10344.2950653858],[4e-10,5.13217319067,15664.03552270859],[4.9e-10,3.62741283878,77713.7714681205],[4.5e-10,6.15877872538,28286.9904848612],[3.6e-10,3.32158458257,16207.886271502],[3.5e-10,5.83917764292,6321.1035226272],[3.6e-10,1.80784164083,6279.7894925736],[3.5e-10,4.60279245362,28237.2334593894],[3.3e-10,.47301775923,18635.9284545362],[3.5e-10,4.36571027474,48739.859897083],[3.1e-10,3.06828028412,6819.8803620868],[3.1e-10,2.4020319848,28628.3362260996],[3.4e-10,1.90096411242,12964.300703391],[2.9e-10,6.09291010354,18606.4989460002],[2.8e-10,3.42046112698,6288.5987742988],[2.8e-10,3.437361406,34115.1140692746],[2.9e-10,1.48920816078,6489.2613984286],[2.8e-10,3.07474749886,29822.7832363242],[3.8e-10,2.44608264663,31415.379249957],[2.8e-10,2.98392582088,6277.552925684],[2.7e-10,5.03556015623,12779.4507954208],[2.7e-10,5.40812977287,26087.9031415742],[3.8e-10,5.56439937893,27832.0382192832],[2.6e-10,3.87685883153,6262.7205305926],[2.7e-10,6.1556539284,28759.81087748319],[2.5e-10,5.17122153205,6915.8595893046],[2.7e-10,4.03132006944,9910.583327509],[3.3e-10,3.97763407373,12410.7313005486],[2.4e-10,5.31307120044,29026.48522950779],[2.5e-10,.81055213297,36173.7081971002],[2.4e-10,1.2870610131,24491.4257925834],[2.1e-10,2.02548478742,28766.924424484],[2.1e-10,6.07545114034,18139.2945014159],[2.2e-10,2.31199937131,6303.4311693902],[2.3e-10,1.35235057478,49515.382508407],[2.3e-10,2.92765926961,65236.2212932854],[1.9e-10,.03636659763,29864.334027309],[2e-10,.91374066194,45585.1728121874],[2.1e-10,4.45003013294,22490.9621214934],[2.2e-10,1.97119365888,34513.2630726828],[2e-10,4.11682669951,17157.0618804718],[2.4e-10,1.40243942415,14712.317116458],[2.2e-10,2.19759737115,31570.7996493912],[2.1e-10,1.48739821208,61306.0115970658],[2.5e-10,5.71465573409,25934.1243310894]],2:[[8721859e-11,1.07253635559,6283.0758499914],[99099e-10,3.14159265359,0],[294833e-11,.43717350256,12566.1516999828],[2.7338e-7,.05295636147,3.523118349],[1.6333e-7,5.18820215724,26.2983197998],[1.5745e-7,3.68504712183,155.4203994342],[9.425e-8,.29667114694,18849.2275499742],[8.938e-8,2.05706319592,77713.7714681205],[6.94e-8,.82691541038,775.522611324],[5.061e-8,4.6624323168,1577.3435424478],[4.06e-8,1.03067032318,7.1135470008],[3.464e-8,5.14021224609,796.2980068164],[3.172e-8,6.05479318507,5507.5532386674],[3.02e-8,1.19240008524,242.728603974],[2.885e-8,6.11705865396,529.6909650946],[3.809e-8,3.44043369494,5573.1428014331],[2.719e-8,.30363248164,398.1490034082],[2.365e-8,4.37666117992,5223.6939198022],[2.538e-8,2.27966434314,553.5694028424],[2.078e-8,3.75435095487,.9803210682],[1.675e-8,.90149951436,951.7184062506],[1.534e-8,5.75895831192,1349.8674096588],[1.224e-8,2.97285792195,2146.1654164752],[1.449e-8,4.36401639552,1748.016413067],[1.341e-8,3.72019379666,1194.4470102246],[1.253e-8,2.9488872631,6438.4962494256],[9.99e-9,5.98665341008,6286.5989683404],[9.17e-9,4.79722195184,5088.6288397668],[8.29e-9,3.31021398862,213.299095438],[1.102e-8,1.27094359244,161000.6857376741],[7.64e-9,3.41231607038,5486.777843175],[1.046e-8,.60374190029,3154.6870848956],[8.87e-9,5.23364022595,7084.8967811152],[6.44e-9,1.59974355582,2544.3144198834],[6.81e-9,3.42742947469,4694.0029547076],[6.06e-9,2.47688996663,10977.078804699],[7.06e-9,6.19369692903,4690.4798363586],[6.43e-9,1.98119869589,801.8209311238],[5.02e-9,1.44415463861,6836.6452528338],[4.9e-9,2.33889753806,1592.5960136328],[4.58e-9,1.30867922972,4292.3308329504],[4.31e-9,.03542536476,7234.794256242],[3.49e-9,.98779272263,6040.3472460174],[3.85e-9,1.57065592218,71430.69561812909],[3.71e-9,3.16149051601,6309.3741697912],[3.48e-9,.64980950594,1059.3819301892],[4.58e-9,3.81505682017,149854.4001348079],[3.02e-9,1.91723873447,10447.3878396044],[3.06e-9,3.55405857884,8031.0922630584],[3.95e-9,4.93742673052,7632.9432596502],[3.14e-9,3.18058352846,2352.8661537718],[2.81e-9,4.41751404023,9437.762934887],[2.76e-9,2.71075791682,3894.1818295422],[2.98e-9,2.52045757001,6127.6554505572],[2.72e-9,.24370191144,25132.3033999656],[2.51e-9,.55449375765,6279.5527316424],[2.24e-9,1.40790249012,4705.7323075436],[2.58e-9,5.29510765044,6812.766815086],[1.78e-9,.92636669742,1990.745017041],[2.17e-9,.68543630022,6256.7775301916],[1.54e-9,.77808632062,14143.4952424306],[1.5e-9,2.40636982736,426.598190876],[1.96e-9,6.06877865012,640.8776073822],[1.37e-9,2.21947617717,8429.2412664666],[1.27e-9,5.47380312768,12036.4607348882],[1.21e-9,3.32740512021,17789.845619785],[1.23e-9,2.16004509785,10213.285546211],[1.16e-9,.49705139709,7058.5984613154],[1.38e-9,2.36181661472,11506.7697697936],[1.01e-9,.86299995919,6290.1893969922],[1.18e-9,5.82317768355,7860.4193924392],[9.2e-10,5.11639978593,7079.3738568078],[1.25e-9,2.65424538513,88860.05707098669],[8.8e-10,4.3118823616,83996.84731811189],[8.4e-10,3.57682769713,16730.4636895958],[9.7e-10,5.58011309774,13367.9726311066],[1.02e-9,2.05853060226,87.30820453981],[8e-10,4.73827128421,11926.2544136688],[8e-10,5.41344057121,10973.55568635],[1.06e-9,4.10978997399,3496.032826134],[7.5e-10,4.89166898876,5643.1785636774],[1e-9,3.62645659087,244287.60000722768],[9.6e-10,1.39443577787,6681.2248533996],[6.9e-10,1.88399189965,10177.2576795336],[8.7e-10,.40842153208,11015.1064773348],[6.6e-10,.99444831932,6525.8044539654],[6.6e-10,1.42471816453,9917.6968745098],[6.7e-10,5.5124099707,3097.88382272579],[7.6e-10,2.7156469351,4164.311989613],[8.5e-10,.4965552367,10575.4066829418],[7.7e-10,3.51693861509,11856.2186514245],[6.2e-10,3.6258762869,16496.3613962024],[5.4e-10,5.25957420065,3340.6124266998],[5.3e-10,1.10902178415,8635.9420037632],[4.9e-10,5.65761054625,20426.571092422],[6.4e-10,5.79211164779,2388.8940204492],[4.6e-10,5.45092696155,6275.9623029906],[5.7e-10,4.97077155798,14945.3161735544],[4.3e-10,3.30685683359,9779.1086761254],[4.2e-10,1.61412785248,12168.0026965746],[4.9e-10,3.92715473768,5729.506447149],[4.2e-10,.6348125893,2699.7348193176],[5.6e-10,4.34038639086,90955.5516944961],[4e-10,5.66871428338,11712.9553182308],[3.9e-10,3.10911294009,16200.7727245012],[4e-10,5.71338386146,709.9330485583],[5.3e-10,6.17067257683,233141.3144043615],[3.7e-10,.32095173508,24356.7807886416],[3.5e-10,.95557073457,17298.1823273262],[3.5e-10,.64913397996,25158.6017197654],[4.1e-10,1.53850422484,65147.6197681377],[3.5e-10,.77655626359,13916.0191096416],[3.1e-10,5.35897350775,5331.3574437408],[3e-10,4.48114682755,23543.23050468179],[3.2e-10,3.45976963453,7477.522860216],[2.9e-10,3.46648040769,13119.72110282519],[3.8e-10,2.90863974625,12721.572099417],[2.9e-10,3.13390968321,4136.9104335162],[3.5e-10,3.79717126309,143571.32428481648],[2.7e-10,.95726093828,12559.038152982],[2.6e-10,4.9532687703,5753.3848848968],[3.2e-10,3.49943896928,6284.0561710596],[2.6e-10,4.59276256636,5884.9268465832],[2.6e-10,1.53958920253,154717.6098876827],[2.3e-10,4.88012908735,13095.8426650774],[2.3e-10,.35935706511,31415.379249957],[2.4e-10,5.11515116629,18319.5365848796],[2.1e-10,5.73872879912,12569.6748183318],[2.1e-10,1.32901200081,10988.808157535],[1.9e-10,2.24263229491,18073.7049386502],[1.9e-10,3.14253175605,6496.3749454294],[2.1e-10,2.80122025076,6282.0955289232],[2.3e-10,.14288760398,6283.0085396886],[1.9e-10,4.28209473754,3930.2096962196],[1.6e-10,.25933207663,11790.6290886588],[1.5e-10,6.0962350124,13517.8701062334],[2e-10,5.06358906224,6283.14316029419],[1.5e-10,1.0768066315,4933.2084403326],[1.9e-10,5.74000581249,3128.3887650958],[1.6e-10,6.18924226747,7342.4577801806],[1.3e-10,1.69105044945,4535.0594369244],[1.5e-10,3.36968394452,17260.1546546904],[1e-10,3.78885035015,22003.9146348698],[1.1e-10,2.12851973876,7875.6718636242]],3:[[289058e-11,5.84173149732,6283.0758499914],[2.0712e-7,6.0498393902,12566.1516999828],[2.962e-8,5.1956057957,155.4203994342],[2.527e-8,3.14159265359,0],[1.288e-8,4.7219761197,3.523118349],[6.35e-9,5.96904899168,242.728603974],[5.7e-9,5.54182903238,18849.2275499742],[4.02e-9,3.78606612895,553.5694028424],[7.2e-10,4.37131884946,6286.5989683404],[6.7e-10,.91133898967,6127.6554505572],[3.7e-10,5.28611190997,6438.4962494256],[2.1e-10,2.94917211527,6309.3741697912],[1.5e-10,3.63037493932,71430.69561812909],[1.1e-10,4.83261533939,25132.3033999656],[1.1e-10,5.84259014283,6525.8044539654],[1.2e-10,3.82296977522,7058.5984613154],[1.3e-10,2.39991715131,5729.506447149],[8e-11,.55390332094,6040.3472460174],[8e-11,1.46298993048,11856.2186514245],[8e-11,5.07535888338,6256.7775301916],[6e-11,2.88803526743,5507.5532386674],[5e-11,3.87019253131,12036.4607348882],[5e-11,2.70838853362,83996.84731811189]],4:[[7.714e-8,4.14117321449,6283.0758499914],[1.016e-8,3.27573644241,12566.1516999828],[4.2e-9,.41892851415,155.4203994342],[4.7e-10,3.50591071186,18849.2275499742],[4.1e-10,3.14032562331,3.523118349],[3.5e-10,5.0111077,5573.1428014331],[1e-10,5.64816633449,6127.6554505572],[1.3e-10,.48609240774,77713.7714681205],[7e-11,2.84139222289,161000.6857376741],[4e-11,3.6550904707,25132.3033999656],[2e-11,.54880603487,6438.4962494256]],5:[[1.72e-9,2.74854172392,6283.0758499914],[5e-10,2.01352986713,155.4203994342],[2.8e-10,2.93369985477,12566.1516999828],[5e-11,1.93829214518,18849.2275499742]]},B:{0:[[27962e-10,3.19870156017,84334.66158130829],[101643e-11,5.42248619256,5507.5532386674],[8.0445e-7,3.88013204458,5223.6939198022],[4.3806e-7,3.70444689759,2352.8661537718],[3.1933e-7,4.00026369781,1577.3435424478],[2.2724e-7,3.9847383156,1047.7473117547],[1.6392e-7,3.56456119782,5856.4776591154],[1.8141e-7,4.98367470262,6283.0758499914],[1.4443e-7,3.70275614915,9437.762934887],[1.4304e-7,3.41117857526,10213.285546211],[1.1246e-7,4.82820690527,14143.4952424306],[109e-9,2.08574562329,6812.766815086],[9.714e-8,3.47303947751,4694.0029547076],[1.0367e-7,4.05663927945,71092.88135493269],[8.775e-8,4.44016515666,5753.3848848968],[8.366e-8,4.99251512183,7084.8967811152],[6.921e-8,4.32559054073,6275.9623029906],[9.145e-8,1.14182646613,6620.8901131878],[7.194e-8,3.60193205744,529.6909650946],[7.698e-8,5.55425745881,167621.5758508619],[5.285e-8,2.48446991536,4705.7323075436],[5.208e-8,6.24992674532,18073.7049386502],[4.529e-8,2.33827747356,6309.3741697912],[5.579e-8,4.41023653719,7860.4193924392],[4.743e-8,.70995680136,5884.9268465832],[4.301e-8,1.10255777773,6681.2248533996],[3.849e-8,1.82229412532,5486.777843175],[4.093e-8,5.11700141197,13367.9726311066],[3.681e-8,.43793170336,3154.6870848956],[3.42e-8,5.42034800952,6069.7767545534],[3.617e-8,6.04641937568,3930.2096962196],[3.67e-8,4.58210192227,12194.0329146209],[2.918e-8,1.95463881136,10977.078804699],[2.797e-8,5.61259274877,11790.6290886588],[2.502e-8,.60499729368,6496.3749454294],[2.319e-8,5.01648216088,1059.3819301892],[2.684e-8,1.39470396487,22003.9146348698],[2.428e-8,3.24183056545,78051.5857313169],[2.12e-8,4.30691000285,5643.1785636774],[2.257e-8,3.15557225087,90617.7374312997],[1.813e-8,3.75574218286,3340.6124266998],[2.226e-8,2.79699346673,12036.4607348882],[1.888e-8,.86991545944,8635.9420037632],[1.517e-8,1.9585205571,398.1490034082],[1.581e-8,3.19976230948,5088.6288397668],[1.421e-8,6.25530883828,2544.3144198834],[1.595e-8,.25619915132,17298.1823273262],[1.391e-8,4.69964175574,7058.5984613154],[1.478e-8,2.81808207569,25934.1243310894],[1.481e-8,3.6582355461,11506.7697697936],[1.693e-8,4.95689385293,156475.2902479957],[1.183e-8,1.29343060777,775.522611324],[1.114e-8,2.37889311847,3738.761430108],[9.94e-9,4.30088900425,9225.539273283],[9.24e-9,3.06451026809,4164.311989613],[8.67e-9,.55606931068,8429.2412664666],[9.88e-9,5.97286104208,7079.3738568078],[8.24e-9,1.50984806177,10447.3878396044],[9.15e-9,.12635654605,11015.1064773348],[7.42e-9,1.99159139281,26087.9031415742],[1.039e-8,3.14159265359,0],[8.5e-9,4.24120016095,29864.334027309],[7.55e-9,2.89631873314,4732.0306273434],[7.14e-9,1.37548118605,2146.1654164752],[7.08e-9,1.91406542362,8031.0922630584],[7.46e-9,.57893808622,796.2980068164],[8.02e-9,5.12339137235,2942.4634232916],[7.51e-9,1.67479850166,21228.3920235458],[6.02e-9,4.099765389,64809.80550494129],[5.94e-9,3.49580704849,16496.3613962024],[5.92e-9,4.59481504319,4690.4798363586],[5.3e-9,5.73979295194,8827.3902698748],[5.03e-9,5.66433137112,33794.5437235286],[4.83e-9,1.57106522322,801.8209311238],[4.38e-9,.0670773372,3128.3887650958],[4.23e-9,2.86944596145,12566.1516999828],[5.04e-9,3.2620766916,7632.9432596502],[5.52e-9,1.02926440457,239762.20451754928],[4.27e-9,3.67434378208,213.299095438],[4.04e-9,1.4619329736,15720.8387848784],[5.03e-9,4.85802444134,6290.1893969922],[4.17e-9,.81920713533,5216.5803728014],[3.65e-9,.01002966145,12168.0026965746],[3.63e-9,1.28376436579,6206.8097787158],[3.53e-9,4.7005913311,7234.794256242],[4.15e-9,.96862624176,4136.9104335162],[3.87e-9,3.09145061418,25158.6017197654],[3.73e-9,2.65119262808,7342.4577801806],[3.61e-9,2.97762937735,9623.6882766912],[4.18e-9,3.75759994446,5230.807466803],[3.96e-9,1.22507712354,6438.4962494256],[3.22e-9,1.21162178805,8662.240323563],[2.84e-9,5.64170320179,1589.0728952838],[3.79e-9,1.72248432756,14945.3161735544],[3.2e-9,3.94161159658,7330.8231617461],[3.13e-9,5.47602376451,1194.4470102246],[2.92e-9,1.38971327568,11769.8536931664],[3.05e-9,.80429352049,37724.7534197482],[2.57e-9,5.81382810029,426.598190876],[2.65e-9,6.10358507671,6836.6452528338],[2.5e-9,4.56452895547,7477.522860216],[2.66e-9,2.62926282354,7238.6755916],[2.63e-9,6.22089501237,6133.5126528568],[3.06e-9,2.79682380532,1748.016413067],[2.36e-9,2.46093023707,11371.7046897582],[3.16e-9,1.62662805006,250908.4901204155],[2.16e-9,3.68721275185,5849.3641121146],[2.3e-9,.36165162947,5863.5912061162],[2.33e-9,5.03509933618,20426.571092422],[2e-9,5.86073159059,4535.0594369244],[2.77e-9,4.65400292395,82239.1669577989],[2.09e-9,3.72323200803,10973.55568635],[1.99e-9,5.05186622555,5429.8794682394],[2.56e-9,2.40923279886,19651.048481098],[2.1e-9,4.50691909144,29088.811415985],[1.81e-9,6.00294783127,4292.3308329504],[2.49e-9,.12900984422,154379.7956244863],[2.09e-9,3.87759458541,17789.845619785],[2.25e-9,3.18339652605,18875.525869774],[1.91e-9,4.53897489216,18477.1087646123],[1.72e-9,2.0969418273,13095.8426650774],[1.82e-9,3.16107943487,16730.4636895958],[1.88e-9,2.22746128596,41654.9631159678],[1.64e-9,5.18686274999,5481.2549188676],[1.6e-9,2.4929885502,12592.4500197826],[1.55e-9,1.59595438224,10021.8372800994],[1.35e-9,.21349051305,10988.808157535],[1.78e-9,3.80375178044,23581.2581773176],[1.23e-9,1.66800739151,15110.4661198662],[1.22e-9,2.72678272224,18849.2275499742],[1.26e-9,1.17675512872,14919.0178537546],[1.42e-9,3.95053440992,337.8142631964],[1.16e-9,6.06340906212,6709.6740408674],[1.37e-9,3.52143246244,12139.5535091068],[1.36e-9,2.92179113491,32217.2001810808],[1.1e-9,3.51203379263,18052.9295431578],[1.47e-9,4.63371971408,22805.7355659936],[1.08e-9,5.45280815225,7.1135470008],[1.48e-9,.65447253687,95480.9471841745],[1.19e-9,5.92110458985,33019.0211122046],[1.1e-9,5.34824206403,639.897286314],[1.06e-9,3.71081682614,14314.1681130498],[1.39e-9,6.17607198262,24356.7807886416],[1.18e-9,5.59738712949,161338.5000008705],[1.17e-9,3.6506527164,45585.1728121874],[1.27e-9,4.74596574209,49515.382508407],[1.2e-9,1.04211499785,6915.8595893046],[1.2e-9,5.60638811846,5650.2921106782],[1.15e-9,3.10668213303,14712.317116458],[9.9e-10,.6901893993,12779.4507954208],[9.7e-10,1.07908724794,9917.6968745098],[9.3e-10,2.62295197146,17260.1546546904],[9.9e-10,4.45774681732,4933.2084403326],[1.23e-9,1.37488921994,28286.9904848612],[1.21e-9,5.19767249869,27511.4678735372],[1.05e-9,.87192268229,77375.95720492408],[8.7e-10,3.9363781295,17654.7805397496],[1.22e-9,2.2395606868,83997.09113559539],[8.7e-10,4.18201600921,22779.4372461938],[1.04e-9,4.59580877285,1349.8674096588],[1.02e-9,2.83545248595,12352.8526045448],[1.02e-9,3.97386522171,10818.1352869158],[1.01e-9,4.32892825818,36147.4098773004],[9.4e-10,5.00001709338,150192.2143980043],[7.7e-10,3.971993693,1592.5960136328],[1e-9,6.07733097102,26735.9452622132],[8.6e-10,5.2602963825,28313.288804661],[9.3e-10,4.31900620254,44809.6502008634],[7.6e-10,6.22743405935,13521.7514415914],[7.2e-10,1.55820597747,6256.7775301916],[8.2e-10,4.95202664555,10575.4066829418],[8.2e-10,1.69647647075,1990.745017041],[7.5e-10,2.29836095644,3634.6210245184],[7.5e-10,2.66367876557,16200.7727245012],[8.7e-10,.26630214764,31441.6775697568],[7.7e-10,2.25530952876,5235.3285382367],[7.6e-10,1.09869730334,12903.9659631792],[5.8e-10,4.28246137794,12559.038152982],[6.4e-10,5.51112829602,173904.65170085328],[5.6e-10,2.60133794851,73188.3759784421],[5.5e-10,5.81483150022,143233.51002162008],[5.4e-10,3.38482031504,323049.11878710287],[3.9e-10,3.28500401937,71768.50988132549],[3.9e-10,3.11239910096,96900.81328129109]],1:[[.00227777722,3.4137662053,6283.0758499914],[3805678e-11,3.37063423795,12566.1516999828],[3619589e-11,0,0],[7.1542e-7,3.32777549735,18849.2275499742],[7.655e-8,1.79489607186,5223.6939198022],[8.107e-8,3.89190403643,5507.5532386674],[6.456e-8,5.1978942475,2352.8661537718],[3.894e-8,2.15568517178,6279.5527316424],[3.892e-8,1.53021064904,6286.5989683404],[3.897e-8,4.87293945629,10213.285546211],[3.812e-8,1.43523182316,12036.4607348882],[3.577e-8,2.32913869227,83996.84731811189],[3.57e-8,4.92637739003,71430.69561812909],[3.494e-8,2.20864641831,529.6909650946],[2.421e-8,6.22876183393,7860.4193924392],[2.056e-8,3.06747139741,14143.4952424306],[1.399e-8,.50107877909,6309.3741697912],[1.417e-8,3.28454570977,25132.3033999656],[1.544e-8,1.82062047625,5856.4776591154],[1.457e-8,1.75339303307,5884.9268465832],[1.497e-8,2.19673914456,9437.762934887],[1.549e-8,5.73650061398,17789.845619785],[1.277e-8,3.9672171733,4705.7323075436],[1.038e-8,2.9481870117,6256.7775301916],[1.018e-8,2.24114547164,6681.2248533996],[1.021e-8,1.4679502613,11790.6290886588],[9.16e-9,3.72965830745,1059.3819301892],[1.156e-8,6.04591336669,398.1490034082],[1.24e-8,.77195902957,6812.766815086],[1.115e-8,3.92255876225,12168.0026965746],[9.08e-9,1.78447918237,3930.2096962196],[8.33e-9,.09941579828,11506.7697697936],[7.9e-9,2.45555993228,775.522611324],[6.66e-9,4.40761401665,5753.3848848968],[5.2e-9,1.60179602491,4694.0029547076],[3.82e-9,.26754532042,1577.3435424478],[4.05e-9,1.97558286872,6283.0085396886],[4.05e-9,1.53147989887,6283.14316029419],[3.88e-9,2.59563818411,7058.5984613154],[3.41e-9,3.61275156842,13367.9726311066],[2.8e-9,4.63052251735,796.2980068164],[2.76e-9,.43350778219,7079.3738568078],[3.11e-9,5.28219636656,17260.1546546904],[2.75e-9,5.27597553634,11769.8536931664],[2.86e-9,2.98639716345,6275.9623029906],[2.51e-9,2.81315684448,6290.1893969922],[2.39e-9,5.77837903893,10977.078804699],[2.28e-9,.14375973844,3738.761430108],[2.27e-9,2.51020991853,7084.8967811152],[2.11e-9,4.7202946547,6496.3749454294],[2.34e-9,3.1153527401,709.9330485583],[2.34e-9,.5707581762,11856.2186514245],[2.37e-9,2.38791907394,213.299095438],[2.27e-9,1.12059781634,12352.8526045448],[1.69e-9,3.20148089605,5486.777843175],[1.59e-9,3.14604135756,8827.3902698748],[1.6e-9,1.14784478002,5643.1785636774],[1.44e-9,5.23285657431,78051.5857313169],[1.44e-9,1.16454654602,90617.7374312997],[1.44e-9,3.81203756929,6262.300454499],[1.43e-9,5.97809021355,6303.8512454838],[1.38e-9,4.29829933273,1589.0728952838],[1.61e-9,3.03298851492,20426.571092422],[1.65e-9,5.09134896587,17298.1823273262],[1.28e-9,4.41590143012,6127.6554505572],[1.58e-9,2.00984506334,5230.807466803],[1.3e-9,1.44170683802,12569.6748183318],[1.25e-9,1.69950379498,3128.3887650958],[1.52e-9,4.96946111415,65147.6197681377],[1.31e-9,4.24961399629,6282.0955289232],[1.31e-9,5.54051222995,6284.0561710596],[1.61e-9,3.32421999691,6283.3196674749],[1.23e-9,2.93221463795,15720.8387848784],[1.52e-9,1.56488157456,18319.5365848796],[1.14e-9,1.89110005546,18073.7049386502],[1.13e-9,4.95214866677,4136.9104335162],[1.11e-9,4.79699611405,8429.2412664666],[1.18e-9,3.06184958762,22003.9146348698],[1.28e-9,2.09693027395,12562.6285816338],[1.38e-9,.84648544836,6069.7767545534],[1e-9,.41938790104,5481.2549188676],[1.01e-9,4.43791289246,19651.048481098],[1.16e-9,1.87002428935,77713.7714681205],[9.5e-10,.68638183645,3340.6124266998],[1.04e-9,4.90822646457,8635.9420037632],[1.14e-9,.36008214928,23543.23050468179],[9.1e-10,1.1761121931,9225.539273283],[9.1e-10,2.74682631104,5216.5803728014],[8.6e-10,3.09315282195,1194.4470102246],[9.3e-10,6.2764351319,12559.038152982],[8.7e-10,3.64926989547,7.1135470008],[8.3e-10,.37008971174,11371.7046897582],[9.8e-10,4.68473306376,167283.7615876655],[9.8e-10,.99865886857,154717.6098876827],[8.6e-10,4.41152307486,25934.1243310894],[9.8e-10,4.98209568932,16496.3613962024],[8.5e-10,2.35438163823,3154.6870848956],[8.3e-10,.24859477658,21228.3920235458],[7.6e-10,5.46661600296,29864.334027309],[6.9e-10,3.22045334237,801.8209311238],[6.8e-10,2.19928242745,37724.7534197482],[7e-10,5.33711014698,2544.3144198834],[5.5e-10,5.37872238211,11015.1064773348],[5.1e-10,5.03600618727,5863.5912061162],[5.9e-10,3.54984809612,4535.0594369244],[5.3e-10,1.50812064137,7342.4577801806],[4.4e-10,1.33712241647,4164.311989613],[5.5e-10,5.38460045253,7477.522860216],[4.9e-10,5.61844340512,24072.9214697764],[5.7e-10,6.17973522898,8031.0922630584],[5.2e-10,4.24379064407,5088.6288397668],[4.1e-10,3.41960196246,26087.9031415742],[5.2e-10,1.68150981131,25158.6017197654],[5.3e-10,.11041408311,29088.811415985],[4.3e-10,.53354396923,2146.1654164752],[5e-10,.60270799844,33794.5437235286],[4.5e-10,1.69577010458,6702.5604938666],[3.7e-10,6.09033460795,64809.80550494129],[4.4e-10,2.67993061247,15110.4661198662],[4.7e-10,3.62555676035,41654.9631159678],[3.6e-10,.47219666269,13095.8426650774],[3.5e-10,5.99520523215,23581.2581773176],[4.3e-10,4.08726331262,156137.47598479927],[4.3e-10,5.17376496602,18422.62935909819],[3.4e-10,2.14460100274,4933.2084403326],[3e-10,4.12992793541,426.598190876],[3.6e-10,2.28596930002,90279.92316810328],[3.2e-10,.81117747619,26.2983197998],[2.8e-10,4.07036560467,14712.317116458],[2.5e-10,1.92905243842,1748.016413067],[2.4e-10,5.06152880842,16730.4636895958],[2.3e-10,3.24047012195,31415.379249957],[2.7e-10,3.90672018305,18451.07854656599],[2.1e-10,3.51419811826,10447.3878396044]],2:[[9721424e-11,5.1519280992,6283.0758499914],[233002e-11,3.14159265359,0],[134188e-11,.64406212977,12566.1516999828],[6.504e-8,1.07333397797,18849.2275499742],[1.662e-8,1.62746869551,84334.66158130829],[6.35e-9,3.51985338656,6279.5527316424],[4.92e-9,2.41382223971,1047.7473117547],[3.07e-9,6.10181422085,5223.6939198022],[3.22e-9,.37660897389,6286.5989683404],[3.26e-9,2.35727931602,5507.5532386674],[2.74e-9,1.65307581765,7860.4193924392],[2.28e-9,1.14082932988,25132.3033999656],[2.02e-9,.4983668253,2352.8661537718],[2.01e-9,.155527656,10213.285546211],[1.67e-9,3.98005254015,529.6909650946],[1.7e-9,5.28668290523,6256.7775301916],[1.66e-9,3.04613930284,12036.4607348882],[1.53e-9,4.06779216239,83996.84731811189],[1.5e-9,3.18772213951,71430.69561812909],[1.2e-9,3.13558669517,5884.9268465832],[1.23e-9,4.17102530625,6309.3741697912],[1e-9,1.46356761368,11506.7697697936],[1e-9,3.00322421365,11790.6290886588],[7.7e-10,1.65643898948,4705.7323075436],[6.8e-10,6.03791904123,6812.766815086],[7.5e-10,4.85191600582,14143.4952424306],[7.9e-10,4.12628805658,5753.3848848968],[6.4e-10,2.7194416046,6127.6554505572],[6.3e-10,.78655326011,6438.4962494256],[7.5e-10,.84213523741,167621.5758508619],[5.1e-10,4.55059044701,5486.777843175],[5e-10,5.29314320585,7079.3738568078],[4.5e-10,.33147576416,775.522611324],[4.3e-10,3.6179371164,1577.3435424478],[5.7e-10,6.15295833679,12194.0329146209],[4.5e-10,1.18274698508,17789.845619785],[4.7e-10,1.11643162773,398.1490034082],[4.7e-10,5.5298423843,12168.0026965746],[4.2e-10,2.6437530062,10988.808157535],[3.7e-10,.31226891972,6681.2248533996],[4.6e-10,3.38617099014,156475.2902479957],[3.3e-10,1.26266496002,6290.1893969922],[3.3e-10,2.25067065498,6275.9623029906],[2.7e-10,1.72859626293,1059.3819301892],[2.8e-10,2.88681054153,796.2980068164],[3e-10,5.52021264181,7058.5984613154],[2.1e-10,6.22275008403,6069.7767545534],[2.4e-10,5.83690442827,6282.0955289232],[2.4e-10,3.95322179797,6284.0561710596],[2.1e-10,4.87022458966,3738.761430108],[2.1e-10,3.58048145762,6496.3749454294],[2.2e-10,1.97770318395,7.1135470008],[1.9e-10,3.4597988877,4136.9104335162],[1.5e-10,2.81379880771,1589.0728952838],[1.5e-10,1.61313151838,1194.4470102246],[1.5e-10,.63083434831,11769.8536931664],[1.9e-10,.28082047767,17260.1546546904],[1.7e-10,1.35165136146,78051.5857313169],[1.5e-10,2.3094159956,11856.2186514245],[1.2e-10,1.12997370513,90617.7374312997],[1.2e-10,.00611601597,18073.7049386502],[1.2e-10,1.70058636365,12559.038152982]],3:[[275993e-11,.59480097092,6283.0758499914],[1.7034e-7,3.14159265359,0],[3.617e-8,.11750575325,12566.1516999828],[3.39e-9,5.66087461682,18849.2275499742],[5.6e-10,5.02765554835,6279.5527316424],[1.9e-10,5.99007646261,6256.7775301916],[1.8e-10,3.80004734567,6309.3741697912],[1.8e-10,1.21049250774,6127.6554505572],[1.8e-10,2.29734567137,6438.4962494256],[1.5e-10,4.72881467263,6286.5989683404],[1.2e-10,.41481671808,83996.84731811189],[1.3e-10,5.54637369296,25132.3033999656],[1e-10,2.91937214232,71430.69561812909],[6e-11,2.1417324121,11856.2186514245]],4:[[5.745e-8,2.26734029843,6283.0758499914],[8.7e-9,0,0],[1.19e-9,4.26807972611,12566.1516999828],[1.7e-10,4.0742262044,18849.2275499742],[5e-11,.84308705203,1047.7473117547],[5e-11,.05711572303,84334.66158130829]],5:[[1.14e-9,4.31455980099,6283.0758499914],[2.4e-10,0,0]]},R:{0:[[1.00013988784,0,0],[.01670699632,3.09846350258,6283.0758499914],[.00013956024,3.05524609456,12566.1516999828],[308372e-10,5.19846674381,77713.7714681205],[1628463e-11,1.17387558054,5753.3848848968],[1575572e-11,2.84685214877,7860.4193924392],[924799e-11,5.45292236722,11506.7697697936],[542439e-11,4.56409151453,3930.2096962196],[47211e-10,3.66100022149,5884.9268465832],[32878e-10,5.89983686142,5223.6939198022],[345969e-11,.96368627272,5507.5532386674],[306784e-11,.29867139512,5573.1428014331],[174844e-11,3.01193636733,18849.2275499742],[243181e-11,4.2734953079,11790.6290886588],[211836e-11,5.84714461348,1577.3435424478],[18574e-10,5.02199710705,10977.078804699],[109835e-11,5.0551063586,5486.777843175],[9.8316e-7,.88681311278,6069.7767545534],[865e-9,5.68956418946,15720.8387848784],[8.5831e-7,1.27079125277,161000.6857376741],[6.2917e-7,.92177053978,529.6909650946],[5.7056e-7,2.01374292245,83996.84731811189],[6.4908e-7,.27251341435,17260.1546546904],[4.9384e-7,3.24501240359,2544.3144198834],[5.5736e-7,5.2415979917,71430.69561812909],[4.252e-7,6.01110257982,6275.9623029906],[4.6966e-7,2.57799853213,775.522611324],[3.8963e-7,5.36063832897,4694.0029547076],[4.4666e-7,5.53715663816,9437.762934887],[3.5661e-7,1.67447135798,12036.4607348882],[3.1922e-7,.18368299942,5088.6288397668],[3.1846e-7,1.77775642078,398.1490034082],[3.3193e-7,.24370221704,7084.8967811152],[3.8245e-7,2.39255343973,8827.3902698748],[2.8468e-7,1.21344887533,6286.5989683404],[3.7486e-7,.82961281844,19651.048481098],[3.6957e-7,4.90107587287,12139.5535091068],[3.4537e-7,1.84270693281,2942.4634232916],[2.6275e-7,4.58896863104,10447.3878396044],[2.4596e-7,3.78660838036,8429.2412664666],[2.3587e-7,.26866098169,796.2980068164],[2.7795e-7,1.89934427832,6279.5527316424],[2.3927e-7,4.99598548145,5856.4776591154],[2.0345e-7,4.65282190725,2146.1654164752],[2.3287e-7,2.80783632869,14143.4952424306],[2.2099e-7,1.95002636847,3154.6870848956],[1.9509e-7,5.38233922479,2352.8661537718],[1.7958e-7,.1987136996,6812.766815086],[1.7178e-7,4.43322156854,10213.285546211],[1.619e-7,5.23159323213,17789.845619785],[1.7315e-7,6.15224075188,16730.4636895958],[1.3814e-7,5.18962074032,8031.0922630584],[1.8834e-7,.67280058021,149854.4001348079],[1.833e-7,2.25348717053,23581.2581773176],[1.3639e-7,3.68511810757,4705.7323075436],[1.3142e-7,.65267698994,13367.9726311066],[1.0414e-7,4.33285688501,11769.8536931664],[9.978e-8,4.20126336356,6309.3741697912],[1.017e-7,1.59366684542,4690.4798363586],[7.564e-8,2.62560597391,6256.7775301916],[9.654e-8,3.67583728703,27511.4678735372],[6.743e-8,.56269927047,3340.6124266998],[8.743e-8,6.06359123461,1748.016413067],[7.786e-8,3.67371235367,12168.0026965746],[6.633e-8,5.66149277789,11371.7046897582],[7.712e-8,.31242577788,7632.9432596502],[6.586e-8,3.13580054586,801.8209311238],[7.46e-8,5.6475806666,11926.2544136688],[6.933e-8,2.92384586372,6681.2248533996],[6.805e-8,1.42327153767,23013.5395395872],[6.118e-8,5.13395999022,1194.4470102246],[6.477e-8,2.64986648493,19804.8272915828],[5.233e-8,4.62432817299,6438.4962494256],[6.147e-8,3.02863936662,233141.3144043615],[4.608e-8,1.72194702724,7234.794256242],[4.221e-8,1.55697533726,7238.6755916],[5.31e-8,2.40821524293,11499.6562227928],[5.128e-8,5.3239896569,11513.8833167944],[4.77e-8,.2555431173,11856.2186514245],[5.519e-8,2.09089153789,17298.1823273262],[5.625e-8,4.34052903053,90955.5516944961],[4.578e-8,4.4656964157,5746.271337896],[3.788e-8,4.9072829481,4164.311989613],[5.337e-8,5.09957905103,31441.6775697568],[3.967e-8,1.20054555175,1349.8674096588],[4.005e-8,3.02853885902,1059.3819301892],[3.48e-8,.76066308841,10973.55568635],[4.232e-8,1.05485713117,5760.4984318976],[4.582e-8,3.76570026763,6386.16862421],[3.335e-8,3.13829943354,6836.6452528338],[3.42e-8,3.00043974511,4292.3308329504],[3.595e-8,5.70703236079,5643.1785636774],[3.236e-8,4.16387400645,9917.6968745098],[4.154e-8,2.59940749519,7058.5984613154],[3.362e-8,4.54577164994,4732.0306273434],[2.978e-8,1.3056126882,6283.14316029419],[2.765e-8,.51311975671,26.2983197998],[2.807e-8,5.66230537649,8635.9420037632],[2.927e-8,5.7378783408,16200.7727245012],[3.167e-8,1.691817599,11015.1064773348],[2.598e-8,2.96244118358,25132.3033999656],[3.519e-8,3.62639325753,244287.60000722768],[2.676e-8,4.20727719487,18073.7049386502],[2.978e-8,1.74971565805,6283.0085396886],[2.287e-8,1.06976449088,14314.1681130498],[2.863e-8,5.92838917309,14712.317116458],[3.071e-8,.23793217,35371.8872659764],[2.656e-8,.89959301615,12352.8526045448],[2.415e-8,2.799751768,709.9330485583],[2.811e-8,3.51513864541,21228.3920235458],[1.977e-8,2.61358297551,951.7184062506],[2.548e-8,2.47684686575,6208.2942514241],[1.999e-8,.56090396506,7079.3738568078],[2.305e-8,1.05376463592,22483.84857449259],[1.855e-8,2.86093570752,5216.5803728014],[2.157e-8,1.31395211105,154717.6098876827],[1.97e-8,4.36931551625,167283.7615876655],[1.754e-8,2.14452400686,6290.1893969922],[1.628e-8,5.85704450617,10984.1923516998],[2.154e-8,6.03828353794,10873.9860304804],[1.714e-8,3.70158195222,1592.5960136328],[1.541e-8,6.21599512982,23543.23050468179],[1.602e-8,1.99860679677,10969.9652576982],[1.712e-8,1.34295218697,3128.3887650958],[1.647e-8,5.54948299069,6496.3749454294],[1.495e-8,5.43980459648,155.4203994342],[1.827e-8,5.91227480351,3738.761430108],[1.726e-8,2.16765465036,10575.4066829418],[1.532e-8,5.35683107063,13521.7514415914],[1.824e-8,1.66056145084,39302.096962196],[1.605e-8,1.90930973224,6133.5126528568],[1.282e-8,2.46013372544,13916.0191096416],[1.211e-8,4.4136063155,3894.1818295422],[1.394e-8,1.7780192925,9225.539273283],[1.571e-8,4.95512957606,25158.6017197654],[1.205e-8,1.19212756308,3.523118349],[1.132e-8,2.69830084955,6040.3472460174],[1.504e-8,5.77577388271,18209.33026366019],[1.393e-8,1.62625077326,5120.6011455836],[1.081e-8,2.93726744446,17256.6315363414],[1.232e-8,.71651766504,143571.32428481648],[1.087e-8,.99769687961,955.5997416086],[1.068e-8,5.28472576591,65147.6197681377],[1.169e-8,3.11663802316,14945.3161735544],[9.75e-9,5.1088726078,6172.869528772],[1.202e-8,4.02992510403,553.5694028424],[9.79e-9,2.00000879106,15110.4661198662],[9.62e-9,4.023807714,6282.0955289232],[9.99e-9,3.6264300279,6262.300454499],[1.03e-8,5.84987815239,213.299095438],[1.014e-8,2.84227679965,8662.240323563],[1.185e-8,1.51330629149,17654.7805397496],[9.67e-9,2.67081017562,5650.2921106782],[1.222e-8,2.65423784904,88860.05707098669],[9.86e-9,2.36212814824,6206.8097787158],[1.034e-8,.13634950642,11712.9553182308],[1.103e-8,3.08477302937,43232.3066584156],[7.81e-9,2.53374971725,16496.3613962024],[1.019e-8,3.04569392376,6037.244203762],[7.95e-9,5.80662989126,5230.807466803],[8.13e-9,3.57702871938,10177.2576795336],[9.62e-9,5.31470594766,6284.0561710596],[7.17e-9,5.95797471837,12559.038152982],[9.67e-9,2.74413738053,6244.9428143536],[9.21e-9,.1016016083,29088.811415985],[7.19e-9,5.91788189939,4136.9104335162],[6.88e-9,3.89489045092,1589.0728952838],[7.72e-9,4.05505380285,6127.6554505572],[7.06e-9,5.49323197725,22003.9146348698],[6.65e-9,1.60002747134,11087.2851259184],[6.9e-9,4.50539825729,426.598190876],[8.54e-9,3.2610464506,20426.571092422],[6.56e-9,4.3241018294,16858.4825329332],[8.4e-9,2.59572585212,28766.924424484],[6.86e-9,.61944033771,11403.676995575],[7e-9,3.40901412473,7.1135470008],[7.28e-9,.04050185963,5481.2549188676],[6.53e-9,1.0386945123,6062.6632075526],[5.59e-9,4.79221805695,20199.094959633],[6.33e-9,5.70229959167,45892.73043315699],[5.91e-9,6.10986487621,9623.6882766912],[5.2e-9,3.62310356479,5333.9002410216],[6.02e-9,5.58381898589,10344.2950653858],[4.96e-9,2.21027756314,1990.745017041],[6.91e-9,1.96733114988,12416.5885028482],[6.4e-9,1.59062417043,18319.5365848796],[6.25e-9,3.82358168221,13517.8701062334],[4.75e-9,1.1702590418,12569.6748183318],[6.6e-9,5.08498512995,283.8593188652],[6.64e-9,4.50029469969,47162.5163546352],[5.69e-9,.16318535463,17267.26820169119],[5.68e-9,3.86100969474,6076.8903015542],[4.62e-9,.26368763517,4590.910180489],[5.35e-9,4.83225423196,18422.62935909819],[4.66e-9,.75873879417,7342.4577801806],[5.41e-9,3.07212190556,226858.23855437007],[6.1e-9,1.53597089605,33019.0211122046],[6.17e-9,2.62356328726,11190.377900137],[5.48e-9,4.55798855803,18875.525869774],[6.33e-9,4.60110281228,66567.48586525429],[5.87e-9,5.78087907808,632.7837393132],[6.03e-9,5.38458554802,316428.22867391503],[5.25e-9,5.01522072363,12132.439962106],[4.69e-9,.59975173763,21954.15760939799],[5.48e-9,3.50627043672,17253.04110768959],[5.02e-9,.98804327589,11609.8625440122],[5.68e-9,1.98497313089,7668.6374249425],[4.82e-9,1.62460405687,12146.6670561076],[3.91e-9,3.68718382972,18052.9295431578],[4.57e-9,3.7721489661,156137.47598479927],[4.01e-9,5.2922154024,15671.0817594066],[4.69e-9,1.80963351735,12562.6285816338],[5.14e-9,3.37031288919,20597.2439630412],[4.52e-9,5.66811219778,10454.5013866052],[3.75e-9,4.98528185039,9779.1086761254],[5.23e-9,.97215560834,155427.542936241],[4.03e-9,5.1394818977,1551.045222648],[3.72e-9,3.69883738807,9388.0059094152],[3.67e-9,4.43875659833,4535.0594369244],[4.06e-9,4.20863156497,12592.4500197826],[3.62e-9,2.55099560446,242.728603974],[4.71e-9,4.61907324819,5436.9930152402],[3.88e-9,4.960209284,24356.7807886416],[4.41e-9,5.83872966262,3496.032826134],[3.49e-9,6.16307810648,19800.9459562248],[3.56e-9,.2381908124,5429.8794682394],[3.46e-9,5.60809622572,2379.1644735716],[3.8e-9,2.72105213132,11933.3679606696],[4.32e-9,.24215988572,17996.0311682222],[3.78e-9,5.22516848076,7477.522860216],[3.37e-9,5.10885555836,5849.3641121146],[3.15e-9,.57827745123,10557.5941608238],[3.18e-9,4.4994900732,3634.6210245184],[3.23e-9,1.55850824803,10440.2742926036],[3.14e-9,5.77154773334,20.7753954924],[3.03e-9,2.34615580398,4686.8894077068],[4.14e-9,5.9323760231,51092.7260508548],[3.62e-9,2.17561997119,28237.2334593894],[2.88e-9,.18377405421,13095.8426650774],[2.77e-9,5.1295220503,13119.72110282519],[3.25e-9,6.18608287927,6268.8487559898],[2.73e-9,.30522428863,23141.5583829246],[2.67e-9,5.76152585786,5966.6839803348],[3.45e-9,2.94246040875,36949.2308084242],[2.53e-9,5.20994580359,24072.9214697764],[3.42e-9,5.76212804329,16460.33352952499],[3.07e-9,6.01039067183,22805.7355659936],[2.61e-9,2.00304796059,6148.010769956],[2.38e-9,5.08241964961,6915.8595893046],[2.49e-9,2.94762789744,135.0650800354],[3.06e-9,3.89765478921,10988.808157535],[3.08e-9,.05451027736,4701.1165017084],[3.19e-9,2.95712862064,163096.18036118348],[2.72e-9,2.07967681309,4804.209275927],[2.09e-9,4.43768461442,6546.1597733642],[2.17e-9,.73691592312,6303.8512454838],[2.03e-9,.32033085531,25934.1243310894],[2.05e-9,5.22936478995,20995.3929664494],[2.13e-9,.20671418919,28286.9904848612],[1.97e-9,.4828613129,16737.5772365966],[2.3e-9,6.06567392849,6287.0080032545],[2.19e-9,1.291942163,5326.7866940208],[2.01e-9,1.74700937253,22743.4093795164],[2.07e-9,4.45440927276,6279.4854213396],[2.69e-9,6.0564044503,64471.99124174489],[1.9e-9,.99261116842,29296.6153895786],[1.94e-9,3.82656562755,419.4846438752],[2.62e-9,5.26961924126,522.5774180938],[2.1e-9,4.68618183158,6254.6266625236],[1.97e-9,2.80624554186,4933.2084403326],[2.52e-9,4.3622015462,40879.4405046438],[2.61e-9,1.07241516738,55022.9357470744],[2.33e-9,5.41751014958,39609.6545831656],[1.85e-9,4.14324541379,5642.1982426092],[2.47e-9,3.44855612987,6702.5604938666],[2.05e-9,4.04424043226,536.8045120954],[1.91e-9,3.15807087926,16723.350142595],[2.22e-9,5.16259496507,23539.7073863328],[1.8e-9,4.56214752149,6489.2613984286],[2.27e-9,.60156339452,5905.7022420756],[1.7e-9,.93185903228,16062.1845261168],[1.59e-9,.92751013112,23937.856389741],[1.57e-9,4.69607868164,6805.6532680852],[2.18e-9,.8553337343,16627.3709153772],[1.69e-9,.94641052064,3097.88382272579],[2.07e-9,4.88410451334,6286.6662786432],[1.6e-9,4.95943826819,10021.8372800994],[1.75e-9,6.12762824563,239424.39025435288],[1.73e-9,3.13887234973,6179.9830757728],[1.57e-9,3.62822057807,18451.07854656599],[2.06e-9,5.74617821138,3646.3503773544],[1.57e-9,4.67695912207,6709.6740408674],[1.46e-9,3.09506069745,4907.3020501456],[1.65e-9,2.2713912876,10660.6869350424],[1.44e-9,3.96947747592,6019.9919266186],[1.71e-9,5.91302216729,6058.7310542895],[1.44e-9,2.1315565512,26084.0218062162],[1.51e-9,.67417383565,2388.8940204492],[1.96e-9,1.67718461229,2107.0345075424],[1.46e-9,5.10373877968,10770.8932562618],[1.87e-9,1.23915444627,19402.7969528166],[1.37e-9,1.26247412216,12566.2190102856],[1.91e-9,5.03547476279,263.0839233728],[1.37e-9,3.52825454595,639.897286314],[1.35e-9,.73840670927,5017.508371365],[1.64e-9,2.39195095081,6357.8574485587],[1.68e-9,.05515907462,9380.9596727172],[1.61e-9,1.15721259392,26735.9452622132],[1.44e-9,1.76097645199,5888.4499649322],[1.31e-9,2.51859277344,6599.467719648],[1.42e-9,2.43802911123,5881.4037282342],[1.59e-9,5.90325893762,6281.5913772831],[1.51e-9,3.72338532519,12669.2444742014],[1.32e-9,2.38417741883,6525.8044539654],[1.27e-9,.00254936441,10027.9031957292],[1.48e-9,2.85102145528,6418.1409300268],[1.43e-9,5.7446027956,26087.9031415742],[1.72e-9,.4128996224,174242.4659640497],[1.36e-9,4.15497742275,6311.5250374592],[1.7e-9,5.98194913129,327574.51427678124],[1.36e-9,2.48430537541,13341.6743113068],[1.49e-9,.33002271275,245.8316462294],[1.65e-9,2.496679246,58953.145443294],[1.23e-9,1.67328384813,32217.2001810808],[1.23e-9,3.45660563754,6277.552925684],[1.17e-9,.86065134175,6245.0481773556],[1.49e-9,5.61358281003,5729.506447149],[1.28e-9,.71204006448,103.0927742186],[1.59e-9,2.43166592149,221995.02880149524],[1.37e-9,1.706577092,12566.08438968],[1.29e-9,2.80667872683,6016.4688082696],[1.13e-9,3.58302904101,25685.872802808],[1.09e-9,3.26403795962,6819.8803620868],[1.22e-9,.34120688202,1162.4747044078],[1.06e-9,1.59721172719,17782.7320727842],[1.44e-9,2.28891651774,12489.8856287072],[1.37e-9,5.82029768354,44809.6502008634],[1.34e-9,1.26539983018,5331.3574437408],[1.03e-9,5.96518130595,6321.1035226272],[1.09e-9,.33808549034,11300.5842213564],[1.29e-9,5.8918727719,12029.3471878874],[1.22e-9,5.77325634636,11919.140866668],[1.07e-9,6.2499898935,77690.75950573849],[1.07e-9,1.00535580713,77736.78343050249],[1.15e-9,5.86963518266,12721.572099417],[1.02e-9,5.66283467269,5540.0857894588],[1.43e-9,.24122178432,4214.0690150848],[1.43e-9,.88529649733,7576.560073574],[1.07e-9,2.92124030351,31415.379249957],[1e-9,5.99485644501,4061.2192153944],[1.03e-9,2.41941934525,5547.1993364596],[1.04e-9,4.44106051277,2118.7638603784],[1.1e-9,.37559635174,5863.5912061162],[1.24e-9,2.55619029611,12539.853380183],[1.1e-9,3.66952094465,238004.5241572363],[1.12e-9,4.32512422724,97238.62754448749],[1.2e-9,1.26895630075,12043.574281889],[9.7e-10,5.42612959752,7834.1210726394],[9.4e-10,2.56461130309,19004.6479494084],[1.05e-9,5.68272475301,16522.6597160022],[1.17e-9,3.65425622684,34520.3093093808],[1.08e-9,1.24206843948,84672.47584450469],[9.8e-10,.13589994287,11080.1715789176],[9.7e-10,2.46722096722,71980.63357473118],[9.5e-10,5.36958330451,6288.5987742988],[9.6e-10,.20796618776,18139.2945014159],[1.11e-9,5.01961920313,11823.1616394502],[9e-10,2.72355843779,26880.3198130326],[9.9e-10,.90164266199,18635.9284545362],[1.26e-9,4.78722177847,305281.9430710488],[1.24e-9,5.00979495566,172146.9713405403],[9e-10,4.50544881196,40077.61957352],[1.04e-9,5.6367968071,2787.0430238574],[9.1e-10,5.43564326147,6272.0301497275],[1e-9,2.00639461597,12323.4230960088],[1.17e-9,2.35555589778,83286.91426955358],[1.05e-9,2.59824000109,30666.1549584328],[9e-10,2.35779490026,12491.3701014155],[8.9e-10,3.57152453732,11720.0688652316],[9.5e-10,5.67015349858,14919.0178537546],[8.7e-10,1.86043406047,27707.5424942948],[1.06e-9,3.04150600352,22345.2603761082],[8.2e-10,5.58298993353,10241.2022911672],[8.3e-10,3.10607039533,36147.4098773004],[9.4e-10,5.47749711149,9924.8104215106],[8.2e-10,4.71988314145,15141.390794312],[9.6e-10,3.89073946348,6379.0550772092],[1.1e-9,4.92131611151,5621.8429232104],[1.1e-9,4.89978492291,72140.6286666874],[9.7e-10,5.20764563059,6303.4311693902],[8.5e-10,1.61269222311,33326.5787331742],[9.3e-10,1.32651591333,23020.65308658799],[9e-10,.5773301638,26482.1708096244],[7.8e-10,3.99588630754,11293.4706743556],[1.06e-9,3.92012705073,62883.3551395136],[9.8e-10,2.94397773524,316.3918696566],[7.6e-10,3.96310417608,29026.48522950779],[9.8e-10,.95914722366,48739.859897083],[7.8e-10,1.97068528043,90279.92316810328],[7.6e-10,.23027966596,21424.4666443034],[7.9e-10,1.46227790922,8982.810669309],[7.8e-10,2.28840998832,266.6070417218],[7.1e-10,1.5194076559,33794.5437235286],[7.6e-10,.22880641443,57375.8019008462],[9.7e-10,.39449562097,24279.10701821359],[7.5e-10,2.77638584795,12964.300703391],[7.7e-10,5.18846946344,11520.9968637952],[6.8e-10,.50006599129,4274.5183108324],[7.5e-10,2.07323762803,15664.03552270859],[7.7e-10,.4666517878,16207.886271502],[8.1e-10,4.10452219483,161710.6187862324],[7.1e-10,3.91415328513,7875.6718636242],[8.1e-10,.91938383406,74.7815985673],[8.3e-10,4.69916218791,23006.42599258639],[6.9e-10,.98999300277,6393.2821712108],[6.5e-10,5.41938745446,28628.3362260996],[7.3e-10,2.45564765251,15508.6151232744],[6.5e-10,3.02336771694,5959.570433334],[6.4e-10,.18375587635,1066.49547719],[8e-10,5.81239171612,12341.8069042809],[6.6e-10,2.15105504851,38.0276726358],[6.7e-10,5.14047250153,9814.6041002912],[6.2e-10,2.43313614978,10138.1095169486],[6.8e-10,2.24442548639,24383.0791084414],[7.8e-10,1.39649333997,9411.4646150872],[5.9e-10,4.95362151577,35707.7100829074],[7.3e-10,1.35229143121,5327.4761083828],[5.7e-10,3.16018882154,5490.300961524],[7.2e-10,5.91833527334,10881.0995774812],[6.7e-10,.66414713064,29864.334027309],[6.5e-10,.30352816135,7018.9523635232],[5.9e-10,5.36231868425,10239.5838660108],[5.6e-10,3.22196331515,2636.725472637],[6.8e-10,5.32086226658,3116.6594122598],[5.9e-10,1.63156134967,61306.0115970658],[5.4e-10,4.29491690425,21947.1113727],[7e-10,.29271565928,6528.9074962208],[5.7e-10,5.89190132575,34513.2630726828],[5.4e-10,2.51856815404,6279.1945146334],[7.4e-10,1.38235845304,9967.4538999816],[5.4e-10,.92276712152,6286.9571853494],[7e-10,5.00933012248,6453.7487206106],[5.3e-10,3.86543309344,32370.9789915656],[5.5e-10,4.51794544854,34911.412076091],[6.3e-10,5.41479412056,11502.8376165305],[6.3e-10,2.34416220742,11510.7019230567],[5.6e-10,.91310629913,9910.583327509],[6.7e-10,4.03308763854,34596.3646546524],[6e-10,5.57024703495,5756.9080032458],[7.2e-10,2.80863088166,10866.8724834796],[6.6e-10,6.12047940728,12074.488407524],[5.1e-10,2.59519527563,11396.5634485742],[6.2e-10,5.14746754396,25287.7237993998],[5.4e-10,2.50994032776,5999.2165311262],[5.1e-10,4.51195861837,29822.7832363242],[5.9e-10,.44167237876,250570.6758572191],[5.1e-10,3.6884906676,6262.7205305926],[4.9e-10,.54704693048,22594.05489571199],[6.5e-10,2.38423614501,52670.0695933026],[6.9e-10,5.34363738671,66813.5648357332],[5.6e-10,2.67216180349,17892.93839400359],[4.9e-10,4.18361320516,18606.4989460002],[5.5e-10,.83886167974,20452.8694122218],[5e-10,1.46327331958,37455.7264959744],[5.8e-10,3.34847975377,33990.6183442862],[6.5e-10,1.45522693982,76251.32777062019],[5.6e-10,2.356506642,37724.7534197482],[4.8e-10,1.80689447612,206.1855484372],[5.6e-10,3.84224878744,5483.254724826],[5.3e-10,.17334326094,77717.29458646949],[5.3e-10,.79879700631,77710.24834977149],[4.7e-10,.43240779709,735.8765135318],[5.3e-10,4.58786566028,11616.976091013],[4.8e-10,6.20230111054,4171.4255366138],[5.2e-10,2.9171905303,6993.0088985497],[5.7e-10,3.42008310383,50317.2034395308],[4.8e-10,.12356889012,13362.4497067992],[6e-10,5.52056066934,949.1756089698],[4.5e-10,3.37963782356,10763.779709261],[4.7e-10,5.50958184902,12779.4507954208],[5.2e-10,5.42770349015,310145.1528239236],[6.1e-10,2.93237974631,5791.4125575326],[4.4e-10,2.87440620802,8584.6616659008],[4.6e-10,4.0314179656,10667.8004820432],[4.4e-10,1.21579107625,6272.4391846416],[4.7e-10,2.57670800912,11492.542675792],[4.4e-10,3.62570223167,63658.8777508376],[5.1e-10,.84531181151,12345.739057544],[4.6e-10,1.17584556517,149.5631971346],[4.3e-10,.01524970172,37853.8754993826],[4.3e-10,.79038834934,640.8776073822],[4.4e-10,2.22554419931,6293.7125153412],[4.9e-10,1.01528394907,149144.46708624958],[4.1e-10,3.27146326065,8858.3149443206],[4.5e-10,3.03765521215,65236.2212932854],[5.8e-10,5.45843180927,1975.492545856],[4.1e-10,1.32190847146,2547.8375382324],[4.7e-10,3.67626039848,28313.288804661],[4.7e-10,6.21438985953,10991.3058987006],[4e-10,2.37237751212,8273.8208670324],[5.6e-10,1.09773690181,77376.2010224076],[4e-10,2.35698541041,2699.7348193176],[4.3e-10,5.28030897946,17796.9591667858],[5.4e-10,2.59175932091,22910.44676536859],[5.5e-10,.07988985505,83467.15635301729],[4.1e-10,4.47510694062,5618.3198048614],[4e-10,1.35670430524,27177.8515292002],[4.1e-10,2.48011323946,6549.6828917132],[5e-10,2.56387920528,82576.9812209953],[4.2e-10,4.78798367468,7856.89627409019],[4.7e-10,2.75482175292,18202.21671665939],[3.9e-10,1.97008298629,24491.4257925834],[4.2e-10,4.04346599946,7863.9425107882],[3.9e-10,3.0103393642,853.196381752],[3.8e-10,.49178679251,38650.173506199],[4.4e-10,1.35931241699,21393.5419698576],[3.6e-10,4.86047906533,4157.1984426122],[4.3e-10,5.64354880978,1062.9050485382],[3.9e-10,3.92736779879,3903.9113764198],[4e-10,5.3969491832,9498.2122306346],[4.3e-10,2.40863861919,29424.634232916],[4.6e-10,2.08022244271,12573.2652469836],[5e-10,6.15760345261,78051.34191383338]],1:[[.00103018607,1.10748968172,6283.0758499914],[1721238e-11,1.06442300386,12566.1516999828],[702217e-11,3.14159265359,0],[3.2345e-7,1.02168583254,18849.2275499742],[3.0801e-7,2.84358443952,5507.5532386674],[2.4978e-7,1.31906570344,5223.6939198022],[1.8487e-7,1.42428709076,1577.3435424478],[1.0077e-7,5.91385248388,10977.078804699],[8.635e-8,.27158192945,5486.777843175],[8.654e-8,1.42046854427,6275.9623029906],[5.069e-8,1.68613408916,5088.6288397668],[4.985e-8,6.01402338185,6286.5989683404],[4.667e-8,5.98749245692,529.6909650946],[4.395e-8,.51800423445,4694.0029547076],[3.87e-8,4.74932206877,2544.3144198834],[3.755e-8,5.07053801166,796.2980068164],[41e-9,1.08424801084,9437.762934887],[3.518e-8,.02290216978,83996.84731811189],[3.436e-8,.94937503872,71430.69561812909],[3.221e-8,6.15628775321,2146.1654164752],[3.418e-8,5.4115158188,775.522611324],[2.863e-8,5.48433323746,10447.3878396044],[2.525e-8,.24296913555,398.1490034082],[2.205e-8,4.94892172085,6812.766815086],[2.186e-8,.41991932164,8031.0922630584],[2.828e-8,3.41986300734,2352.8661537718],[2.554e-8,6.13241770582,6438.4962494256],[1.932e-8,5.31374587091,8429.2412664666],[2.427e-8,3.09118902115,4690.4798363586],[1.73e-8,1.53685999718,4705.7323075436],[2.25e-8,3.6883639562,7084.8967811152],[2.094e-8,1.281690604,1748.016413067],[1.483e-8,3.22226346483,7234.794256242],[1.434e-8,.81293662216,14143.4952424306],[1.754e-8,3.22883705112,6279.5527316424],[1.583e-8,4.09815978783,11499.6562227928],[1.575e-8,5.53890314149,3154.6870848956],[1.847e-8,1.82041234937,7632.9432596502],[1.499e-8,3.63177937611,11513.8833167944],[1.337e-8,4.64442556061,6836.6452528338],[1.275e-8,2.69329661394,1349.8674096588],[1.348e-8,6.15284035323,5746.271337896],[1.126e-8,3.35676107739,17789.845619785],[1.47e-8,3.65282991735,1194.4470102246],[1.101e-8,4.4974742767,4292.3308329504],[1.168e-8,2.58033028504,13367.9726311066],[1.236e-8,5.64980098028,5760.4984318976],[9.85e-9,.65326301914,5856.4776591154],[9.28e-9,2.3255501829,10213.285546211],[1.073e-8,5.82672338169,12036.4607348882],[9.18e-9,.76907130762,16730.4636895958],[8.76e-9,1.50335727807,11926.2544136688],[1.023e-8,5.62071200879,6256.7775301916],[8.53e-9,.6567813463,155.4203994342],[8.02e-9,4.10519132094,951.7184062506],[8.59e-9,1.42880883564,5753.3848848968],[9.92e-9,1.1423800161,1059.3819301892],[8.14e-9,1.63584008733,6681.2248533996],[6.64e-9,4.55039663226,5216.5803728014],[6.27e-9,1.50782904323,5643.1785636774],[6.44e-9,4.19480024859,6040.3472460174],[5.9e-9,6.18371704849,4164.311989613],[6.35e-9,.5242358477,6290.1893969922],[6.5e-9,.97935492869,25132.3033999656],[5.68e-9,2.30121525349,10973.55568635],[5.49e-9,5.26737827342,3340.6124266998],[5.47e-9,2.20143332641,1592.5960136328],[5.26e-9,.92464258271,11371.7046897582],[4.93e-9,5.91036281399,3894.1818295422],[4.83e-9,1.6600571154,12168.0026965746],[5.14e-9,3.59683072524,10969.9652576982],[5.16e-9,3.97164781773,17298.1823273262],[5.29e-9,5.0353867768,9917.6968745098],[4.87e-9,2.50544745305,6127.6554505572],[4.19e-9,4.05235655996,10984.1923516998],[5.38e-9,5.54081539813,553.5694028424],[4.02e-9,2.16859478359,7860.4193924392],[5.52e-9,2.32219865498,11506.7697697936],[3.67e-9,3.39145698451,6496.3749454294],[3.6e-9,5.34467204596,7079.3738568078],[3.34e-9,3.61346365667,11790.6290886588],[4.54e-9,.28755421898,801.8209311238],[4.19e-9,3.69613970002,10575.4066829418],[3.19e-9,.30793759304,16200.7727245012],[3.76e-9,5.81560210508,7058.5984613154],[3.64e-9,1.08425056923,6309.3741697912],[2.94e-9,4.54798604178,11856.2186514245],[2.9e-9,1.26451946335,8635.9420037632],[3.94e-9,4.15683669084,26.2983197998],[2.6e-9,5.09424572996,10177.2576795336],[2.41e-9,2.25766000302,11712.9553182308],[2.39e-9,1.06936978753,242.728603974],[2.76e-9,3.44260568764,5884.9268465832],[2.55e-9,5.38496803122,21228.3920235458],[3.07e-9,4.24313885601,3738.761430108],[2.13e-9,3.44661200485,213.299095438],[1.98e-9,.69427265195,1990.745017041],[1.95e-9,5.16563409007,12352.8526045448],[2.13e-9,3.89937836808,13916.0191096416],[2.14e-9,4.00445200772,5230.807466803],[1.84e-9,5.59805976614,6283.14316029419],[1.84e-9,2.85275392124,7238.6755916],[1.79e-9,2.54259058252,14314.1681130498],[2.36e-9,5.58826125715,6069.7767545534],[1.89e-9,2.72689937708,6062.6632075526],[1.84e-9,6.04216273598,6283.0085396886],[2.25e-9,1.66128561344,4732.0306273434],[2.3e-9,3.62591335086,6284.0561710596],[1.72e-9,.97566476085,3930.2096962196],[1.62e-9,2.19467339429,18073.7049386502],[2.15e-9,1.04672844028,3496.032826134],[1.82e-9,5.17782354566,17253.04110768959],[1.67e-9,2.17754938066,6076.8903015542],[1.67e-9,4.75672473773,17267.26820169119],[1.49e-9,.80944185798,709.9330485583],[1.49e-9,.17584214812,9779.1086761254],[1.92e-9,5.00680790235,11015.1064773348],[1.41e-9,4.38420380014,4136.9104335162],[1.58e-9,4.60969054283,9623.6882766912],[1.33e-9,3.30507062245,154717.6098876827],[1.66e-9,6.13191098325,3.523118349],[1.81e-9,1.60715321141,7.1135470008],[1.5e-9,5.28136702046,13517.8701062334],[1.42e-9,.49788089569,25158.6017197654],[1.24e-9,6.03440459813,9225.539273283],[1.24e-9,.99251562639,65147.6197681377],[1.28e-9,1.92032744711,22483.84857449259],[1.24e-9,3.99739675184,4686.8894077068],[1.21e-9,2.37814805239,167283.7615876655],[1.23e-9,5.6231511294,5642.1982426092],[1.17e-9,5.81755956156,12569.6748183318],[1.57e-9,3.40236948518,16496.3613962024],[1.3e-9,2.10499918142,1589.0728952838],[1.16e-9,.55839966736,5849.3641121146],[1.23e-9,5.81645568991,6282.0955289232],[1.1e-9,.42176497674,6172.869528772],[1.5e-9,4.26279600865,3128.3887650958],[1.06e-9,2.27436561182,5429.8794682394],[1.14e-9,1.52894564202,12559.038152982],[1.21e-9,.39459045915,12132.439962106],[1.04e-9,2.41845930933,426.598190876],[1.09e-9,5.82786999856,16858.4825329332],[1.02e-9,4.4662648491,23543.23050468179],[1e-9,2.93812275274,4535.0594369244],[9.7e-10,3.97935904984,6133.5126528568],[9.8e-10,.87616810121,6525.8044539654],[1.1e-9,6.22339014386,12146.6670561076],[9.8e-10,3.17344332543,10440.2742926036],[9.6e-10,2.44128701699,3097.88382272579],[9.9e-10,5.75642493267,7342.4577801806],[9e-10,.18984343165,13119.72110282519],[9.9e-10,5.58884724219,2388.8940204492],[9.1e-10,6.04278320182,20426.571092422],[8e-10,1.29028142103,5650.2921106782],[8.6e-10,3.94529200528,10454.5013866052],[8.5e-10,1.92836879835,29088.811415985],[7.6e-10,2.70726317966,143571.32428481648],[9.1e-10,5.63859073351,8827.3902698748],[7.6e-10,1.80783856698,28286.9904848612],[7.5e-10,3.40858032804,5481.2549188676],[7e-10,4.53719487231,17256.6315363414],[8.9e-10,1.10064490942,11769.8536931664],[6.6e-10,2.78384937771,536.8045120954],[6.8e-10,3.88199295043,17260.1546546904],[8.8e-10,3.88075269535,7477.522860216],[6.1e-10,6.17558202197,11087.2851259184],[6e-10,4.34824715818,6206.8097787158],[8.2e-10,4.59843208943,9388.0059094152],[7.9e-10,1.63139280394,4933.2084403326],[8.1e-10,1.55550779371,9380.9596727172],[7.8e-10,4.20905757519,5729.506447149],[5.8e-10,5.76889633224,3634.6210245184],[6e-10,.93813100594,12721.572099417],[7.1e-10,6.11408885148,8662.240323563],[5.7e-10,5.48112524468,18319.5365848796],[7e-10,.01749174864,14945.3161735544],[7.4e-10,1.0997604582,16460.33352952499],[5.6e-10,1.63036186739,15720.8387848784],[5.5e-10,4.86788348404,13095.8426650774],[6e-10,5.93729841267,12539.853380183],[5.4e-10,.22608242982,15110.4661198662],[5.4e-10,2.30250047594,16062.1845261168],[6.4e-10,2.13513754101,7875.6718636242],[5.9e-10,5.87963500139,5331.3574437408],[5.8e-10,2.30546168615,955.5997416086],[4.9e-10,1.93839278478,5333.9002410216],[5.4e-10,5.80331607119,12043.574281889],[5.4e-10,4.44671053809,4701.1165017084],[4.9e-10,.30241161485,6805.6532680852],[4.6e-10,2.76898193028,6709.6740408674],[4.6e-10,3.98449608961,98068.53671630539],[4.9e-10,3.72022009896,12323.4230960088],[4.5e-10,3.30065998328,22003.9146348698],[4.8e-10,.71071357303,6303.4311693902],[6.1e-10,1.66030429494,6262.300454499],[4.7e-10,1.26317154881,11919.140866668],[5.1e-10,1.08020906825,10988.808157535],[4.5e-10,.89150445122,51868.2486621788],[4.3e-10,.57756724285,24356.7807886416],[4.3e-10,1.61526242998,6277.552925684],[4.5e-10,2.96132920534,8982.810669309],[4.3e-10,5.74295325645,11403.676995575],[5.5e-10,3.14274403422,33019.0211122046],[5.7e-10,.06379726305,15671.0817594066],[4.1e-10,2.53761820726,6262.7205305926],[4e-10,1.53130436944,18451.07854656599],[5.2e-10,1.71451922581,1551.045222648],[5.5e-10,.89439119424,11933.3679606696],[4.5e-10,3.88495384656,60530.4889857418],[4e-10,4.75740908001,38526.574350872],[4e-10,3.77498297348,26087.9031415742],[3.9e-10,2.97113832621,2118.7638603784],[4e-10,3.36050962605,10021.8372800994],[4.7e-10,1.67051113434,6303.8512454838],[5.2e-10,5.21827368711,77713.7714681205],[4.7e-10,4.26356628717,21424.4666443034],[3.7e-10,1.66712389942,6819.8803620868],[3.7e-10,.65746800933,12029.3471878874],[3.5e-10,3.36255650927,24072.9214697764],[3.6e-10,.11087914947,10344.2950653858],[4e-10,4.14725582115,2787.0430238574],[3.5e-10,5.93650887012,31570.7996493912],[3.6e-10,2.15108874765,30774.5016425748],[3.6e-10,1.75078825382,16207.886271502],[3.4e-10,2.75708224536,12139.5535091068],[3.4e-10,6.168913788,24491.4257925834],[3.4e-10,2.31528650443,55798.4583583984],[3.2e-10,4.21446357042,15664.03552270859],[3.4e-10,3.19783054699,32217.2001810808],[3.9e-10,1.24979117796,6418.1409300268],[3.8e-10,5.89832942685,640.8776073822],[3.3e-10,4.80200120107,16723.350142595],[3.2e-10,1.72442327688,27433.88921587499],[3.5e-10,4.44608896525,18202.21671665939],[3.1e-10,4.5279073128,6702.5604938666],[3.4e-10,3.96287980676,18216.443810661],[3e-10,5.06259854444,226858.23855437007],[3.4e-10,1.43910280005,49515.382508407],[3e-10,.29303163371,13521.7514415914],[2.9e-10,2.0263384022,11609.8625440122],[3e-10,2.5492323024,9924.8104215106],[3.2e-10,4.91793198558,11300.5842213564],[3e-10,.23284423547,23581.2581773176],[2.9e-10,1.62807736495,639.897286314],[2.8e-10,3.84568936822,2699.7348193176],[2.9e-10,1.83149729794,29822.7832363242],[3.3e-10,4.60320094415,19004.6479494084],[2.7e-10,1.86151121799,6288.5987742988],[3e-10,4.4649407224,36147.4098773004],[2.8e-10,5.19684492912,5863.5912061162],[3.5e-10,4.52695674113,36949.2308084242],[2.7e-10,3.52528177609,10770.8932562618],[2.6e-10,1.48499438453,11080.1715789176],[3.5e-10,2.82154380962,19402.7969528166],[2.5e-10,2.46339998836,6279.4854213396],[2.6e-10,4.97688894643,16737.5772365966],[2.7e-10,.408271125,12964.300703391],[2.9e-10,4.15148654061,45892.73043315699],[2.6e-10,4.56404104286,17796.9591667858],[2.5e-10,2.89309528854,6286.6662786432],[2.6e-10,4.82914580957,1066.49547719],[3.1e-10,3.93096113738,29864.334027309],[2.4e-10,6.14987193584,18606.4989460002],[2.4e-10,3.74225964547,29026.48522950779],[2.5e-10,5.70460621565,27707.5424942948],[2.5e-10,5.33928840652,15141.390794312],[2.3e-10,2.37624087345,17996.0311682222],[2.6e-10,1.34231351782,18875.525869774],[2.2e-10,5.5079162612,6245.0481773556],[2.4e-10,1.33998410121,19800.9459562248],[2.3e-10,.2251228089,6279.7894925736],[2.2e-10,1.17576471775,11925.2740926006],[2.2e-10,3.5860360664,6915.8595893046],[2.3e-10,3.21621246666,6286.3622074092],[2.9e-10,2.09564449439,15265.8865193004],[2.2e-10,4.74660932338,28230.18722269139],[2.1e-10,2.30688751432,5999.2165311262],[2.8e-10,3.92087592807,18208.349942592],[2.1e-10,3.22643339385,25934.1243310894],[2.1e-10,3.04956726238,6566.9351688566],[2.7e-10,5.35645770522,33794.5437235286],[2.5e-10,5.91542362188,6489.2613984286],[2e-10,1.52296293311,135.0650800354],[1.9e-10,1.78134428631,156137.47598479927],[1.9e-10,.34388684087,5327.4761083828],[2.6e-10,3.41701003233,25287.7237993998],[1.9e-10,2.86664271911,18422.62935909819],[1.9e-10,4.71432851499,77690.75950573849],[1.9e-10,2.54227398241,77736.78343050249],[2e-10,5.91915117116,48739.859897083]],2:[[4359385e-11,5.78455133808,6283.0758499914],[123633e-11,5.57935427994,12566.1516999828],[1.2342e-7,3.14159265359,0],[8.792e-8,3.62777893099,77713.7714681205],[5.689e-8,1.86958905084,5573.1428014331],[3.302e-8,5.47034879713,18849.2275499742],[1.471e-8,4.47964125007,5507.5532386674],[1.013e-8,2.81323115556,5223.6939198022],[8.54e-9,3.107765669,1577.3435424478],[1.102e-8,2.84173992403,161000.6857376741],[6.48e-9,5.47348203398,775.522611324],[6.08e-9,1.37894173533,6438.4962494256],[4.99e-9,4.4164924225,6286.5989683404],[4.16e-9,.90332697974,10977.078804699],[4.04e-9,3.2056726953,5088.6288397668],[3.51e-9,1.81081728907,5486.777843175],[4.66e-9,3.65086758149,7084.8967811152],[4.58e-9,5.38585314743,149854.4001348079],[3.04e-9,3.51015066341,796.2980068164],[2.66e-9,6.17413982699,6836.6452528338],[2.81e-9,1.8387467254,4694.0029547076],[2.62e-9,1.41420110644,2146.1654164752],[2.64e-9,3.14103683911,71430.69561812909],[3.19e-9,5.35037932146,3154.6870848956],[2.38e-9,2.17695432424,155.4203994342],[2.29e-9,4.7596958807,7234.794256242],[2.91e-9,4.61776401638,4690.4798363586],[2.11e-9,.21864885298,4705.7323075436],[2.04e-9,4.22895113488,1349.8674096588],[1.95e-9,4.58550676556,529.6909650946],[2.55e-9,2.81442711144,1748.016413067],[1.82e-9,5.70454011389,6040.3472460174],[1.8e-9,6.02147727878,4292.3308329504],[1.86e-9,1.58690991244,6309.3741697912],[1.67e-9,2.88802733052,9437.762934887],[1.66e-9,1.99990574734,8031.0922630584],[1.6e-9,.04412738495,2544.3144198834],[1.97e-9,2.01089431842,1194.4470102246],[1.65e-9,5.78372596774,83996.84731811189],[2.14e-9,3.38300910371,7632.9432596502],[1.4e-9,.36669664351,10447.3878396044],[1.51e-9,.95519595275,6127.6554505572],[1.36e-9,1.48417295645,2352.8661537718],[1.28e-9,5.48057748834,951.7184062506],[1.26e-9,5.26866506592,6279.5527316424],[1.27e-9,3.77552907014,6812.766815086],[1.03e-9,4.95897533789,398.1490034082],[1.04e-9,.70183576826,1592.5960136328],[1.01e-9,1.14481598642,3894.1818295422],[1.31e-9,.76624310306,553.5694028424],[1.09e-9,5.41063597567,6256.7775301916],[7.8e-10,5.84775340741,242.728603974],[9.7e-10,1.94685257714,11856.2186514245],[1e-9,5.19725292131,244287.60000722768],[7.6e-10,.70480774041,8429.2412664666],[8e-10,6.18430772683,1059.3819301892],[6.8e-10,5.29561709093,14143.4952424306],[8.5e-10,5.39487308005,25132.3033999656],[5.5e-10,5.16874637579,7058.5984613154],[6.3e-10,.48494730699,801.8209311238],[5.8e-10,4.07254840265,13367.9726311066],[5.1e-10,3.89696552232,12036.4607348882],[5.1e-10,5.56335232286,1990.745017041],[6e-10,2.2504659671,8635.9420037632],[4.9e-10,5.58163417371,6290.1893969922],[5.1e-10,3.87240194908,26.2983197998],[5.1e-10,4.19300909995,7860.4193924392],[4.1e-10,3.97169191582,10973.55568635],[4.1e-10,3.5708091923,7079.3738568078],[5.6e-10,2.76959005761,90955.5516944961],[4.2e-10,1.91461189163,7477.522860216],[4.2e-10,.42775891995,10213.285546211],[4.2e-10,1.06925480488,709.9330485583],[3.8e-10,6.17935925345,9917.6968745098],[5e-10,.81691517401,11506.7697697936],[5.3e-10,1.45828359397,233141.3144043615],[3.8e-10,3.32444534628,5643.1785636774],[4.7e-10,6.21543665927,6681.2248533996],[3.7e-10,.3635930998,10177.2576795336],[4.5e-10,5.29587706357,10575.4066829418],[3.4e-10,5.63446915337,6525.8044539654],[3.4e-10,5.36385158519,4933.2084403326],[3.5e-10,5.36152295839,25158.6017197654],[4.2e-10,5.08837645072,11015.1064773348],[4.2e-10,4.22496037505,88860.05707098669],[3.9e-10,1.99171699618,6284.0561710596],[2.9e-10,3.1908862817,11926.2544136688],[2.9e-10,.14996158324,12168.0026965746],[3e-10,1.58346276808,9779.1086761254],[2.6e-10,4.16210340581,12569.6748183318],[3.6e-10,2.74684637873,3738.761430108],[2.6e-10,.7282491532,1589.0728952838],[3.1e-10,5.34906371821,143571.32428481648],[2.5e-10,.10240267494,22483.84857449259],[3e-10,3.47110495524,14945.3161735544],[2.6e-10,3.89359701125,5753.3848848968],[2.4e-10,1.18744224678,4535.0594369244],[3.3e-10,2.99317143244,3930.2096962196],[2.4e-10,1.57253767584,6496.3749454294],[2.4e-10,3.47434797542,4136.9104335162],[2.2e-10,3.91230073719,6275.9623029906],[2.5e-10,4.02978941287,3128.3887650958],[2.3e-10,1.07724492065,12721.572099417],[2.1e-10,1.89591807148,16730.4636895958],[2.5e-10,2.42198937013,5729.506447149],[2e-10,1.78163489101,17789.845619785],[2.1e-10,.49258939822,29088.811415985],[2.6e-10,4.14947806747,2388.8940204492],[2.7e-10,2.54785812264,3496.032826134],[2e-10,4.29944129273,16858.4825329332],[2.1e-10,5.97796936723,7.1135470008],[1.9e-10,.80292033311,16062.1845261168],[2.4e-10,4.89894141052,17260.1546546904],[2.5e-10,1.37003752175,6282.0955289232],[2.2e-10,4.92663152168,18875.525869774],[2.3e-10,5.68902059771,16460.33352952499],[2.3e-10,3.03021283729,66567.48586525429],[1.6e-10,3.89713736666,5331.3574437408],[1.6e-10,5.68562539832,12559.038152982],[1.6e-10,3.95085099736,3097.88382272579],[1.6e-10,3.99041783945,6283.14316029419],[2e-10,6.106439191,167283.7615876655],[1.5e-10,4.09775914607,11712.9553182308],[1.6e-10,5.717699407,17298.1823273262],[1.6e-10,3.28894009404,5884.9268465832],[1.5e-10,4.4256424368,13517.8701062334],[1.6e-10,4.4345208093,6283.0085396886],[1.4e-10,1.44384279999,4164.311989613],[1.4e-10,4.47380919159,11790.6290886588],[1.4e-10,4.77646531825,7342.4577801806],[1.1e-10,2.56768522896,5481.2549188676],[1.1e-10,1.514433322,16200.7727245012],[1.1e-10,.88708889185,21228.3920235458],[1.4e-10,4.50116508534,640.8776073822]],3:[[144595e-11,4.27319433901,6283.0758499914],[6.729e-8,3.91706261708,12566.1516999828],[7.74e-9,0,0],[2.47e-9,3.73021571217,18849.2275499742],[3.6e-10,2.8008140905,6286.5989683404],[3.3e-10,5.62990083112,6127.6554505572],[1.8e-10,3.72826142555,6438.4962494256],[1.6e-10,4.26011484232,6525.8044539654],[1.4e-10,3.47817116396,6256.7775301916],[1.2e-10,3.55747379482,25132.3033999656],[1e-10,4.43995693209,4705.7323075436],[1e-10,4.2804525547,83996.84731811189],[9e-11,5.36457057335,6040.3472460174],[8e-11,1.78458957263,5507.5532386674],[9e-11,.4727519993,6279.5527316424],[9e-11,1.34741231639,6309.3741697912],[9e-11,.77092900708,5729.506447149],[7e-11,3.50146897332,7058.5984613154],[5e-11,2.890710617,775.522611324],[6e-11,2.36514111314,6836.6452528338]],4:[[3.858e-8,2.56389016346,6283.0758499914],[3.06e-9,2.26911740541,12566.1516999828],[5.3e-10,3.44031471924,5573.1428014331],[1.5e-10,2.03136359366,18849.2275499742],[1.3e-10,2.05688873673,77713.7714681205],[7e-11,4.4121885448,161000.6857376741],[4e-11,5.33854414781,6438.4962494256],[6e-11,3.81514213664,149854.4001348079],[4e-11,4.26602478239,6127.6554505572]],5:[[8.6e-10,1.21805304895,6283.0758499914],[1.2e-10,.65572878044,12566.1516999828]]},name:"earth",type:"B"}}),NSe=kr(()=>{goe(),ISe=OU}),WSe=kr(()=>{Eq(),NSe(),yoe=H7(_ie(),1),Sv(),c3(),TU=new u3.Planet(ISe),Pq=class extends Th{constructor(e){super(e=e||{}),this._season=e.season,this._timezone=e.timezone||"GMT"}inYear(e){let t;switch(this._season){case"march":t=f3.march2(e,TU);break;case"june":t=f3.june2(e,TU);break;case"september":t=f3.september2(e,TU);break;case"december":t=f3.december2(e,TU)}let n,r=(new fp.Calendar).fromJDE(t).toDate().toISOString();n=/^[+-]\d{2}:\d{2}?$/.test(this._timezone)?(0,yoe.default)(r).utcOffset(this._timezone):(0,yoe.default)(r).tz(this._timezone);let a={year:e,month:n.month()+1,day:n.date()},i=new yu(a).setOffset(this.offset);return this.dates.push(i),this}}}),BSe=kr(()=>{goe(),FSe=OU});function CU(e){return(new fp.CalendarGregorian).fromJDE(e).toYear()}function Iq(e,t){return parseFloat(e.toFixed(t),10)}var SU,kU,USe,HSe,iBt,Hy,VSe,oBt,boe,S8,k8,x1n,Wq,$Se,sBt,lBt,KSe,Moe,cBt,EU,qU,JSe,QSe,eke,rke,nke,ake,ike,oke,lke,ske,xoe,cke,Fq,Bq,Uq,Hq,Nq=kr(()=>{Eq(),BSe(),SU=new u3.Planet(FSe),kU=Uy.meanLunarMonth/2,USe=180/Math.PI,HSe=-2636,iBt=new fp.CalendarGregorian(HSe,2,15).toJDE(),Hy=class e{constructor(e,t,n,r,a){this.set(e,t,n,r,a),this._epochY=HSe,this._epoch=iBt,this._cache={lon:{},sue:{},ny:{}}}set(t,n,r,a,i){return t instanceof e?(this.cycle=t.cycle,this.year=t.year,this.month=t.month,this.leap=t.leap,this.day=t.day):Array.isArray(t)?(this.cycle=t[0],this.year=t[1],this.month=t[2],this.leap=t[3],this.day=t[4]):(this.cycle=t,this.year=n,this.month=r,this.leap=a,this.day=i),this}get(){return[this.cycle,this.year,this.month,this.leap,this.day]}yearFromEpochCycle(){return this._epochY+60*(this.cycle-1)+(this.year-1)}fromGregorian(e,t,n){let r=this.midnight(new fp.CalendarGregorian(e,t,n).toJDE());return 1===t&&n<=20&&e--,this._from(r,e),this}fromDate(e){let t=this.midnight((new fp.CalendarGregorian).fromDate(e).toJDE());return this._from(t,e.getFullYear()),this}fromJDE(e){let t=this.midnight(e),n=(new fp.CalendarGregorian).fromJDE(t);return 1===n.month&&n.day<20&&n.year--,this._from(t,n.year),this}_from(e,t){let n=this.newYear(t);n>e&&(n=this.newYear(t-1));let r=this.previousNewMoon(e);r<n&&(r=n);let a=1.5+(n-this._epoch)/Un.BesselianYear;this.cycle=1+Math.trunc((a-1)/60),this.year=1+Math.trunc((a-1)%60),this.month=this.inMajorSolarTerm(r).term;let i=Math.round((r-n)/Uy.meanLunarMonth);0===i?(this.month=1,this.leap=!1):this.leap=this.isLeapMonth(r),i>this.month?this.month=i:this.leap&&this.month--,this.day=1+Math.trunc(Iq(e,3)-Iq(r,3))}toGregorian(e){let t=this.toJDE(e),n=(new fp.CalendarGregorian).fromJDE(t+.5);return{year:n.year,month:n.month,day:Math.trunc(n.day)}}toDate(e){let t=this.toJDE(e);return(new fp.CalendarGregorian).fromJDE(Iq(t,4)).toDate()}toJDE(e){let t=e||this.yearFromEpochCycle(),n=this.newYear(t),r=n;if(this.month>1){r=this.previousNewMoon(n+29*this.month);let e=this.inMajorSolarTerm(r).term,t=this.isLeapMonth(r);e>this.month?r=this.previousNewMoon(r-1):(e<this.month||t&&!this.leap)&&(r=this.nextNewMoon(r+1))}return this.leap&&(r=this.nextNewMoon(r+1)),r+this.day-1}timeshiftUTC(e){return e.toYear()>=1929?8/24:1397/180/24}midnight(e){let t=(new fp.CalendarGregorian).fromJDE(e),n=.5-this.timeshiftUTC(t),r=Math.trunc(t.toJD()-n)+n;return r=t.fromJD(r).toJDE(),Iq(e,5)===Iq(r,5)+1?e:r}inMajorSolarTerm(e){let t=this._cache.lon[e]||Cv.apparentVSOP87(SU,e).lon;this._cache.lon[e]=t;let n=t*USe-1e-13;return{term:(2+Math.floor(n/30))%12+1,lon:n}}isLeapMonth(e){let t=this.inMajorSolarTerm(e),n=this.nextNewMoon(this.midnight(e+kU)),r=this.inMajorSolarTerm(n);return t.term===r.term}nextNewMoon(e){let t=this.midnight(Uy.newMoon(CU(e))),n=0;for(;t<e&&n++<4;)t=this.midnight(Uy.newMoon(CU(e+n*kU)));return t}previousNewMoon(e){let t=this.midnight(Uy.newMoon(CU(e))),n=0;for(;t>e&&n++<4;)t=this.midnight(Uy.newMoon(CU(e-n*kU)));return t}newYear(e){if(e=Math.trunc(e),this._cache.ny[e])return this._cache.ny[e];let t=this._cache.sue[e-1]||f3.december2(e-1,SU),n=this._cache.sue[e]||f3.december2(e,SU);this._cache.sue[e-1]=t,this._cache.sue[e]=n;let r=this.previousNewMoon(this.midnight(n+1)),a=this.nextNewMoon(this.midnight(t+1)),i=this.nextNewMoon(this.midnight(a+kU));this.leapSui=12===Math.round((r-a)/Uy.meanLunarMonth);let o=i;return this.leapSui&&(this.isLeapMonth(a)||this.isLeapMonth(i))&&(o=this.nextNewMoon(this.midnight(i+Uy.meanLunarMonth/2))),this._cache.ny[e]=o,o}solarTerm(e,t){t&&e<=3&&t--;let n=t||this.yearFromEpochCycle(),r=(e+20)%24*15%360,a=f3.longitude(n,SU,r/USe);return a=this.midnight(a),a}majorSolarTerm(e,t){return this.solarTerm(2*e,t)}minorSolarTerm(e,t){return this.solarTerm(2*e-1,t)}qingming(e){return this.solarTerm(5,e)}}}),jSe=kr(()=>{Eq(),Nq(),VSe=-2333,oBt=new fp.CalendarGregorian(VSe,1,27).toJDE(),boe=[{date:new Date("1961-10-09T15:00:00.000Z"),shift:9/24},{date:new Date("1954-03-20T15:30:00.000Z"),shift:8.5/24},{date:new Date("1911-12-31T15:00:00.000Z"),shift:9/24},{date:new Date("1908-03-31T15:30:00.000Z"),shift:8.5/24}],S8=class extends Hy{constructor(e,t,n,r,a){super(e,t,n,r,a),this._epochY=VSe,this._epoch=oBt}timeshiftUTC(e){let t=e.toDate();for(let e in boe)if(t>=boe[e].date)return boe[e].shift;return 3809/450/24}}}),GSe=kr(()=>{Nq(),k8=class extends Hy{timeshiftUTC(e){return e.toYear()>=1968?7/24:8/24}}}),XSe=kr(()=>{Nq(),x1n=[{date:new Date("1888-02-11T15:00:00.000Z"),shift:9/24}]}),YSe=kr(()=>{Nq(),jSe(),GSe(),XSe()}),ZSe=kr(()=>{YSe(),c3(),Sv(),Wq=class extends Th{constructor(e){switch(super(e=e||{}),e.fn){case"chinese":this.cal=new Hy;break;case"korean":this.cal=new S8;break;case"vietnamese":this.cal=new k8}}inYear(e){let t,n,r,a=this.opts;return a.solarterm?(n=this.cal.solarTerm(a.solarterm,e),r=this.cal.fromJDE(n).toGregorian(),t=new yu(r).setOffset(a.day-1)):(this.cal.set(a.cycle,a.year,a.month,a.leapMonth,a.day),n=this.cal.toJDE(e),r=this.cal.fromJDE(n).toGregorian(),t=new yu(r)),this.dates.push(t),this}}}),tke=kr(()=>{$Se=["বৈশাখ","জ্যৈষ্ঠ","আষাঢ়","শ্রাবণ","ভাদ্র","আশ্বিন","কার্তিক","অগ্রহায়ণ","পৌষ","মাঘ","ফাল্গুন","চৈত্র"],sBt=["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার","শুক্রবার","শনিবার"],lBt=["গ্রীষ্ম","বর্ষা","শরৎ","হেমন্ত","শীত","বসন্ত"],KSe=["","১","২","৩","","৫","৬","","৮","৯"],cBt=()=>{Moe=KSe.reduce((e,t,n)=>(e[t]=n,e),{})},EU=e=>String(e).replace(/\d/g,e=>KSe[e]),qU=e=>{Moe||cBt();let t=$Se.indexOf(e),n=-1!==t?t+1:String(e).replace(/./g,e=>{let t=Moe[e];return void 0!==t?t:e});return Number(n)},JSe=e=>sBt[e],QSe=e=>$Se[e-1],eke=e=>lBt[Math.floor((e-1)/2)]}),uke=kr(()=>{tke(),rke=593,nke=864e5,ake=[31,31,31,31,31,30,30,30,30,30,30,30],ike=[31,31,31,31,31,30,30,30,30,30,31,30],oke=e=>e%4==0&&e%100!=0||e%400==0,lke=6,ske=e=>Date.UTC(e,3,13,lke),cke=xoe=class{constructor(e,t,n){Object.assign(this,{year:qU(e),month:qU(t)||1,day:qU(n)||1})}fromGregorian(e,t,n){let r=oke(e)?ike:ake,a=e;(t<4||4===t&&n<14)&&(a-=1),this.year=a-rke;let i=Date.UTC(e,t-1,n,lke),o=Math.floor((i-ske(a))/nke);for(let e=0;e<r.length;e++){if(o<=r[e]){this.month=e+1;break}o-=r[e]}return this.day=o,this}fromDate(e){return this.fromGregorian(e.getFullYear(),e.getMonth()+1,e.getDate())}toGregorian(){let e=this.toDate();return{year:e.getUTCFullYear(),month:e.getUTCMonth()+1,day:e.getUTCDate()}}toDate(){let e=this.year+rke,t=ske(e),n=this.month>10?e+1:e,r=oke(n)?ike:ake,a=this.day;for(let e=0;e<this.month-1;e++)a+=r[e];return new Date(a*nke+t)}format(e){if(/dddd/.test(e=e||"D M, Y")){let t=this.toDate();e=e.replace(/dddd/g,JSe(t.getUTCDay()))}return e.replace(/Y/g,EU(this.year)).replace(/Q/g,eke(this.month)).replace(/MMMM/g,QSe(this.month)).replace(/M/g,EU(this.month)).replace(/D/g,EU(this.day))}}}),dke=kr(()=>{uke(),Sv(),c3(),Fq=class extends Th{constructor(e){super(e=e||{})}inYear(e){let t=this.opts,n=new cke(e-593,t.month,t.day).toGregorian(),r=new yu(n);return this.dates.push(r),this}}}),fke=kr(()=>{c3(),e8e(),_Se(),wSe(),SSe(),PSe(),WSe(),ZSe(),dke(),Bq=class{constructor(e){switch(e.fn){case"easter":return new vq(e);case"julian":return new qq(e);case"hebrew":return new Dq(e);case"islamic":return new Rq(e);case"jalaali":return new Lq(e);case"equinox":return new Pq(e);case"chinese":case"korean":case"vietnamese":return new Wq(e);case"bengali-revised":return new Fq(e);default:return new Th(e)}}}}),hke=kr(()=>{YTe(),Tie(),KTe(),fke(),Uq=class{constructor(e,t){let n=new pq;this.ruleStr=e,this.rules=n.parse(e),this.ok=!n.error,this.holidays=t,this.opts=t?t[e]:{},this.event=void 0,this.cache=new Map}inYear(e){if(this.cache.has(e))return this.event=this.cache.get(e),this;let t,n=new mq(this.ruleStr,this.opts,this.holidays);this.rules.forEach(r=>{if(r.fn){let a=new Bq(r).inYear(e-1).inYear(e).inYear(e+1);n.push(a),t=new $A(a)}else t.resolve(r)&&n.resolve(r,e)});let r=n.getEvent(e);return this.cache.set(e,r),this.event=r,this}get(e){return this.event.get(e)}}}),_oe=kr(()=>{y8(),Hq=class{constructor(e){let{rule:t,fn:n,opts:r,...a}=e;Object.assign(this,{rule:t,...a})}disableIn(e,t){if(!Il(e))return;let n=[e,t=t<1&&t>12?void 0:t<10?"0"+Number(t):t].filter(Boolean).join("-");this.disable=(this.disable||[]).concat(n).sort()}}});function dBt(e,t,n,r){return"object"==typeof n?(r=n,n=null):"object"==typeof t?(r=t,t=null):"object"==typeof e&&!e.country&&(r=e),[e,t,n,r=r||{}]}var uBt,Vq,vke,DU,pke=kr(()=>{Sv(),iU(),y8(),XTe(),hke(),_oe(),uBt=["observance","optional","school","bank","public"],Vq=class{constructor(e,t,n,r,a){if(!e)throw new TypeError("need holiday data");this._data=e,this.init(t,n,r,a)}init(...e){let[t,n,r,a]=dBt(...e);this.__conf=null,this.__types=a.types&&a.types.length?a.types:uBt,this.holidays={},this.setLanguages(),this.__conf=sx.splitName(t,n,r),this.__data=new sx(a.data||this._data,this.__conf),a.languages?this.setLanguages(a.languages):this.setLanguages(this.__data.getLanguages(this.__conf));let i=this.__data.getRules();if(i)return this.__timezone=a.timezone||this.__data.getTimezones()[0],Object.keys(i).forEach(e=>{this.setHoliday(e,i[e])}),!0}setHoliday(e,t){if(!1===t)return!!this.holidays[e]&&(this.holidays[e]=!1,!0);if(!t||"string"==typeof t){t=t||e;let n=this.getLanguages()[0];t=u2.set({type:"public"},["name",n],t)}if(t.active){if(!Array.isArray(t.active))throw TypeError(".active is not of type Array: "+e);t.active=t.active.map(t=>{let n=Oie(t.from),r=Oie(t.to);if(!n&&!r)throw TypeError(".active needs .from or .to property: "+e);return{from:n,to:r}})}if(!this.__types.includes(t.type))return!1;this.holidays[e]=t;let n=new Uq(e,this.holidays);return n.ok?(this.holidays[e].fn=n,!0):(console.error("could not parse rule: "+e),!1)}getHolidays(e,t){e=jTe(e);let n=this.getLanguages();t&&n.unshift(t);let r=e=>this.__types.indexOf(e.type),a=e=>/substitutes|and if /.test(e.rule)?1:0,i=e=>String(e.rule||"").length,o={};return Object.keys(this.holidays).reduce((t,r)=>(this.holidays[r].fn&&this._dateByRule(e,r).forEach(e=>{t.push({...this._translate(e,n),rule:r})}),t),[]).sort((e,t)=>((e,t)=>+e.start-+t.start)(e,t)||((e,t)=>r(t)-r(e))(e,t)||((e,t)=>a(e)-a(t)||i(e)-i(t))(e,t)).filter(e=>{let t=e.name+ +e.start;return!o[t]&&(o[t]=!0,!0)})}isHoliday(e){e=e?new Date(e):new Date;let t=new yu;t.fromTimezone(e,this.__timezone);let n=t.year,r=Object.keys(this.holidays),a=[];for(let t of r){let r=[].concat(this._dateByRule(n,t));for(let t of r)t&&e>=t.start&&e<t.end&&a.push(this._translate(t))}return!!a.length&&a}setRule(e){let{rule:t,...n}=e;return this.setHoliday(t,n)}unsetRule(e){return this.setHoliday(e,!1)}getRules(){return Object.entries(this.holidays).map(([e,t])=>new Hq({...t,rule:e}))}getRule(e){if(this.holidays[e])return new Hq({...this.holidays[e],rule:e})}query(e,t,n){let r=sx.splitName(e,t);return r&&r.country?r.state?this.getRegions(r.country,r.state,n):this.getStates(r.country,n):this.getCountries(n)}getCountries(e){return this.__data.getCountries(e)}getStates(e,t){return this.__data.getStates(e,t)}getRegions(e,t,n){return this.__data.getRegions(e,t,n)}setTimezone(e){this.__timezone=e}getTimezones(){if(this.__data)return this.__data.getTimezones()}setLanguages(e){"string"==typeof e&&(e=[e]);let t={};this.__languages=[].concat(e,this.__conf?this.__data.getLanguages(this.__conf):[],"en").filter(function(e){return!(!e||t[e])&&(t[e]=1,!0)})}getLanguages(){return this.__languages}getDayOff(){if(this.__conf)return this.__data.getDayOff()}_dateByRule(e,t){let n=this.holidays[t];return n&&n.fn&&n.fn.inYear?n.fn.inYear(e).get(this.__timezone).map(e=>{let t=u2.merge({},u2.omit(e,["substitute"]),u2.omit(n,["fn","enable","disable","substitute","active"]));return n.substitute&&e.substitute&&(t.substitute=!0),t}):[]}_translate(e,t){if(e&&"object"==typeof e.name){t=t||this.getLanguages();for(let n of t){let t=e.name[n];if(t){e.name=t;break}}if(e.substitute)for(let n of t){let t=this.__data.getSubstitueNames()[n];if(t){e.name+=" ("+t+")";break}}}return e}}}),mke=kr(()=>{pke(),_oe()}),gke=kr(()=>{vke={version:"2026-05-26",license:"CC-BY-SA-3",holidays:{AD:{names:{ca:"Andorra",es:"Andorra",en:"Andorra"},dayoff:"sunday",langs:["ca","es"],zones:["Europe/Andorra"],days:{"01-01":{_name:"01-01"},"01-06":{_name:"01-06"},"03-14":{_name:"Constitution Day"},"05-01":{_name:"05-01"},"08-15":{_name:"08-15"},"09-08":{name:{en:"Our Lady of Meritxell",es:"Nuestra Sra. De Meritxell",ca:"Mare de Déu de Meritxell"}},"11-01":{_name:"11-01"},"12-08":{_name:"12-08"},"12-24":{type:"bank",_name:"12-24"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"easter -47":{_name:"easter -47"},"easter -3 14:00":{type:"bank",_name:"easter -3"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"easter 49":{_name:"easter 49"},"easter 50":{_name:"easter 50"}},regions:{"07":{name:"Andorra la Vella",days:{"1st saturday in August P3D":{name:{en:"Andorra La Vella Festival",ca:"Andorra La Vella Festival"}}}}}},AE:{names:{en:"United Arab Emirates",ar:"دولة الإمارات العربية المتحدة"},langs:["ar"],zones:["Asia/Dubai"],dayoff:"",days:{"01-01":{_name:"01-01",name:{ar:"رأس السنة الميلادية"}},"12-02":{name:{en:"National Day",ar:"اليوم الوطني"}},"1 Muharram":{_name:"1 Muharram"},"1 Shawwal P3D":{_name:"1 Shawwal"},"10 Dhu al-Hijjah P3D":{_name:"10 Dhu al-Hijjah"},"27 Rajab":{_name:"27 Rajab"},"1 Ramadan":{_name:"1 Ramadan"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"}}},AG:{names:{en:"Antigua & Barbuda"},langs:["en"],dayoff:"sunday",weekend:["saturday","sunday"],zones:["America/Port_of_Spain"],days:{"01-01 and if sunday then next monday":{substitute:!0,_name:"01-01"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"easter 49":{_name:"easter 49",type:"observance"},"easter 50":{_name:"easter 50"},"08-01":{name:{en:"J'Ouvert Morning"}},"08-02":{name:{en:"Last Lap"}},"11-01 if saturday,sunday then next monday":{_name:"Independence Day"},"12-09":{name:{en:"V.C Bird Day"}},"12-25 and if saturday then next monday if sunday then next tuesday":{_name:"12-25",substitute:!0},"12-26 and if sunday then next monday":{_name:"12-26",substitute:!0}},regions:{10:{name:"Barbuda",days:{"easter 47 P4D":{name:{en:"Caribana"},type:"observance"}}}}},AI:{names:{en:"Anguilla"},langs:["en"],dayoff:"sunday",weekend:["saturday","sunday"],zones:["America/Port_of_Spain"],days:{"01-01":{_name:"01-01"},"03-02":{name:{en:"James Ronald Webster Day"}},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"05-30":{name:{en:"Anguilla Day"}},"easter 49":{_name:"easter 49",type:"observance"},"easter 50":{_name:"easter 50"},"2nd monday in June":{name:{en:"Celebration of the Birthday of Her Majesty the Queen"}},"1st monday in August":{name:{en:"August Monday"}},"1st thursday in August":{name:{en:"August Thursday"}},"1st friday in August":{_name:"Constitution Day"},"12-19":{name:{en:"National Heroes and Heroines Day"}},"12-25 and if saturday then next monday if sunday then next tuesday":{_name:"12-25",substitute:!0},"12-26 and if sunday then next monday":{_name:"12-26",substitute:!0}}},AL:{names:{sq:"Shqipëri",en:"Albania"},dayoff:"sunday",langs:["sq","es"],zones:["Europe/Tirane"],days:{"01-01 and if sunday then next tuesday":{_name:"01-01",substitute:!0},"01-02 and if sunday then next monday":{name:{sq:"Festa e Vitit të Ri",en:"New Year Holiday"},substitute:!0},"03-02":{name:{sq:"Dita e Besëlidhjes së Lezhës",en:"League of Lezhë day"},type:"observance"},"03-07":{name:{sq:"Dita e Mësuesit",en:"Teacher's Day"},type:"observance"},"03-08":{_name:"Mothers Day",type:"observance"},"03-14 and if sunday then next monday":{name:{sq:"Dita e Verës",en:"Summer Day"},substitute:!0},"03-22 and if sunday then next monday":{name:{sq:"Dita e Sulltan Nevruzit",en:"Sultan Nevruz's Day"},substitute:!0},"04-01":{_name:"04-01",type:"observance"},easter:{name:{sq:"Pashkët Katolike",en:"Catholic Easter"}},"easter 1":{name:{sq:"Pashkët Katolike",en:"Catholic Easter"}},orthodox:{name:{sq:"Pashkët Ortodokse",en:"Orthodox Easter"}},"orthodox 1":{name:{sq:"Pashkët Ortodokse",en:"Orthodox Easter"}},"05-01 and if sunday then next monday":{_name:"05-01",substitute:!0},"06-01":{name:{sq:"Dita Ndërkombëtare e Fëmijëve",en:"Children's Day"},type:"observance"},"10-19 and if sunday then next monday":{name:{sq:"Dita e Nënë Terezës",en:"Mother Teresa Day"},substitute:!0,active:[{from:2004}]},"11-22":{name:{sq:"Dita e Alfabetit",en:"Alphabet Day"},type:"observance"},"11-28 and if sunday then next monday":{_name:"Independence Day",substitute:!0},"11-29 and if sunday then next monday":{_name:"Liberation Day",substitute:!0},"12-08 and if sunday then next monday":{name:{sq:"Dita Kombëtare e Rinisë",en:"Youth Day"},substitute:!0,active:[{from:2010}]},"12-24":{_name:"12-24",type:"bank"},"12-25 and if sunday then next monday":{_name:"12-25",substitute:!0},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}},regions:{}},AM:{names:{hy:"Հայաստան",en:"Armenia"},dayoff:"sunday",langs:["hy"],zones:["Asia/Yerevan"],days:{"12-31":{_name:"12-31"},"01-01 P2D":{_name:"01-01"},"01-03 P3D":{name:{en:"Pre-Christmas holidays",hy:"Նախածննդյան տոներ"}},"01-06":{_name:"12-25"},"01-28":{name:{en:"Army Day",hy:"Բանակի օր"}},"02-21":{name:{en:"Mother Language Day",hy:"Մայրենի լեզվի օր"},type:"observance"},"easter -52":{name:{en:"St. Vartan the good work and the duty days",hy:"Սուրբ Վարդանանց տոն՝ բարի գործի եւ ազգային տուրքի օր"},type:"observance"},"03-08":{_name:"03-08"},"04-07":{name:{en:"Motherhood and Beauty Day",hy:"Մայրության, գեղեցկության եւ սիրո տոն"},type:"observance"},"04-24":{_name:"Mothers Day"},"05-01":{_name:"05-01"},"05-08":{name:{en:"Yerkrapah Day",hy:"Երկրապահի օր"},type:"observance"},"05-09":{name:{en:"Victory and Peace Day",hy:"Հաղթանակի եւ Խաղաղության տոն"}},"05-28":{name:{en:"Republic Day",hy:"Հանրապետության օր"}},"06-01":{name:{en:"The day of protection of children rights",hy:"Երեխաների իրավունքների պաշտպանության օր"},type:"observance"},"07-05":{_name:"Constitution Day"},"09-01":{name:{en:"Knowledge, Literacy and Education Day",hy:"Գիտելիքի, գրի եւ դպրության օր"},type:"observance"},"09-21":{_name:"Independence Day"},"2nd saturday in October":{name:{en:"Translator's Day",hy:"Թարգմանչաց տոն"},type:"observance"},"12-07":{name:{en:"Earthquake Remembrance Day",hy:"Երկրաշարժի զոհերի հիշատակի օր"},type:"observance"}}},AO:{names:{pt:"Angola",en:"Angola"},dayoff:"sunday",zones:["Africa/Lagos"],langs:["pt"],days:{"01-01":{_name:"01-01"},"02-04":{name:{pt:"Dia do Início da Luta Armada de Libertação Nacional",en:"Liberation Day"}},"easter -47":{_name:"easter -47"},"03-08":{name:{pt:"Dia Internacional da Mulher",en:"International Woman's Day"}},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"04-04":{name:{pt:"Dia da Paz",en:"Peace Day"}},"05-01":{_name:"05-01"},"1st sunday in May":{_name:"Mothers Day",type:"observance"},"09-17":{name:{pt:"Fundador da Nação e Dia dos Heróis Nacionais",en:"National Hero Day"}},"11-02":{_name:"11-02"},"11-11":{_name:"Independence Day"},"12-25":{_name:"12-25"}}},AR:{names:{es:"Argentina",en:"Argentina"},dayoff:"sunday",langs:["es"],zones:["America/Argentina/Buenos_Aires","America/Argentina/Cordoba","America/Argentina/Salta","America/Argentina/Jujuy","America/Argentina/Tucuman","America/Argentina/Catamarca","America/Argentina/La_Rioja","America/Argentina/San_Juan","America/Argentina/Mendoza","America/Argentina/San_Luis","America/Argentina/Rio_Gallegos","America/Argentina/Ushuaia"],days:{"01-01":{_name:"01-01"},"easter -48":{_name:"easter -48",active:[{to:"1976-06-14"},{from:"2010-11-03"}]},"easter -47":{_name:"easter -47",active:[{to:"1976-06-14"},{from:"2010-11-03"}]},"03-24":{name:{en:"Day of Remembrance for Truth and Justice",es:"Día Nacional de la Memoria por la Verdad y la Justicia"},active:[{from:"2006-03-21"}]},"easter -3":{_name:"easter -3",type:"bank"},"easter -2":{_name:"easter -2"},"1983-04-02":{name:{en:"Day of the Malvinas, South Georgia and South Sandwich Islands",es:"Día de las Islas Malvinas, Georgias del Sur y Sandwich del Sur"}},"04-02 if tuesday,wednesday then previous monday if thursday,friday then next monday":{name:{en:"Day of the Veterans and the Fallen in the Malvinas War",es:"Día del Veterano y de los Caídos en la guerra en Malvinas"},active:[{from:"2000-12-22",to:"2006-06-30"}]},"04-02":{name:{en:"Day of the Veterans and the Fallen in the Malvinas War",es:"Día del Veterano y de los Caídos en la Guerra de Malvinas"},active:[{from:"2006-07-01"}],disable:["2020-04-02"],enable:["2020-03-31"]},"05-01":{_name:"05-01"},"05-25":{name:{en:"Day of the May Revolution",es:"Día de la Revolución de Mayo"}},"06-10":{name:{en:"Day of Affirmation of Argentine Rights over the Malvinas, Islands and Antarctic Sector",es:"Día de la Afirmación de los Derechos Argentinos sobre las Malvinas, Islas y Sector Antártico"},active:[{from:"1984-03-23",to:"1988-05-17"}]},"06-10 if tuesday,wednesday then previous monday if thursday,friday then next monday":{name:{en:"Day of Affirmation of Argentine Rights over the Malvinas, Islands and Antarctic Sector",es:"Día de la Afirmación de los Derechos Argentinos sobre las Malvinas, Islas y Sector Antártico"},active:[{from:"1988-05-18",to:"2000-12-15"}]},"06-17 if tuesday,wednesday then previous monday if thursday,friday then next monday":{name:{en:"Anniversary of the Passing to Immortality of General Martín Miguel de Güemes",es:"Paso a la Inmortalidad del General Don Martín Miguel de Güemes"},active:[{from:"2016-06-11"}]},"06-20 #1":{name:{en:"National Flag Day",es:"Día de la Bandera"},active:[{from:"1938-06-08",to:"1988-05-23"},{from:"1991-12-18",to:"1995-01-10"}]},"06-20 #2":{name:{en:"Anniversary of the Passing to Immortality of General Manuel Belgrano",es:"Paso a la Inmortalidad del General D. Manuel Belgrano"},active:[{from:"2010-11-03"}]},"06-20 if tuesday,wednesday then previous monday if thursday,friday then next monday":{name:{en:"National Flag Day",es:"Día de la Bandera"},active:[{from:"1988-05-24",to:"1991-12-17"}]},"3rd monday in June":{name:{en:"Anniversary of the Passing to Immortality of General Manuel Belgrano",es:"Paso a la Inmortalidad del General D. Manuel Belgrano"},active:[{from:"1995-01-11",to:"2010-11-02"}]},"07-09":{_name:"Independence Day"},"08-17":{name:{en:"Anniversary of the Passing to Immortality of General José de San Martín",es:"Paso a la Inmortalidad del General José de San Martín"},active:[{from:"1938-09-01",to:"1988-05-23"},{from:"1994-09-30",to:"1995-01-10"}]},"08-17 if tuesday,wednesday then previous monday if thursday,friday then next monday":{name:{en:"Anniversary of the Passing to Immortality of General José de San Martín",es:"Paso a la Inmortalidad del General José de San Martín"},active:[{from:"1988-05-24",to:"1994-09-29"},{from:"2017-01-24"}]},"3rd monday in August":{name:{en:"Anniversary of the Passing to Immortality of General José de San Martín",es:"Paso a la Inmortalidad del General José de San Martín"},active:[{from:"1995-01-11",to:"2017-01-23"}],disable:["2011-08-15"],enable:["2011-08-22"]},"10-12":{name:{en:"The Day of the Race",es:"Día de la Raza"},active:[{to:"1976-06-14"},{from:"1982-10-12",to:"1988-05-23"}]},"10-12 if tuesday,wednesday then previous monday if thursday,friday then next monday #1":{name:{en:"The Day of the Race",es:"Día de la Raza"},active:[{from:"1988-05-24",to:"2008-10-02"}],disable:["2001-10-15","2002-10-12"],enable:["2001-10-08","2002-10-14"]},"10-12 if tuesday,wednesday then previous monday if thursday,friday,saturday,sunday then next monday":{name:{en:"The Day of the Race",es:"Día de la Raza"},active:[{from:"2008-10-03",to:"2010-11-02"}]},"2nd monday in October":{name:{en:"Day of Respect for Cultural Diversity",es:"Día del Respeto a la Diversidad Cultural"},active:[{from:"2010-11-03",to:"2017-01-23"}]},"10-12 if tuesday,wednesday then previous monday if thursday,friday then next monday #2":{name:{en:"Day of Respect for Cultural Diversity",es:"Día del Respeto a la Diversidad Cultural"},active:[{from:"2017-01-24"}]},"4th monday in November":{name:{en:"Day of National Sovereignty",es:"Día de la Soberanía Nacional"},active:[{from:"2010-11-03",to:"2017-01-23"}],disable:["2015-11-23"],enable:["2015-11-27"]},"11-20 if tuesday,wednesday then previous monday if thursday,friday then next monday":{name:{en:"Day of National Sovereignty",es:"Día de la Soberanía Nacional"},active:[{from:"2017-01-24"}]},"12-08":{name:{en:"Immaculate Conception of Mary",es:"Inmaculada Concepción de María"},active:[{from:"1995-01-11"}]},"12-24 12:00":{_name:"12-24",type:"optional"},"12-25":{_name:"12-25"},"12-31 12:00":{_name:"12-31",type:"optional"},"2010-05-24":{name:{en:"National Holiday for the Bicentennial of the May Revolution",es:"Feriado Nacional por el Bicentenario de la Revolución de Mayo"}},"2012-02-27":{name:{en:"Bicentennial of the Creation and First Oath of Allegiance to the Argentine Flag",es:"Bicentenario de la creación y primera jura de la bandera argentina"}},"2012-09-24":{name:{en:"Bicentennial of the Battle of Tucumán",es:"Bicentenario de la Batalla de Tucumán"}},"2013-01-31":{name:{en:"Bicentennial of the Assembly of the Year XIII",es:"Bicentenario de la Asamblea General Constituyente de 1813"}},"2013-02-20":{name:{en:"Bicentennial of the Battle of Salta",es:"Bicentenario de la Batalla de Salta"}},"2022-12-20":{name:{en:"National Holiday for the World Football Champions in the FIFA World Cup QATAR 2022",es:"Feriado Nacional de los Campeones Mundiales de Fútbol en la Copa Mundial de la FIFA CATAR 2022"}},"2026-03-23":{name:{en:"Tourism Purposes Non-Working Day",es:"Día no laborable con fines turísticos"},type:"optional"},"2026-07-10":{name:{en:"Tourism Purposes Non-Working Day",es:"Día no laborable con fines turísticos"},type:"optional"},"2026-12-07":{name:{en:"Tourism Purposes Non-Working Day",es:"Día no laborable con fines turísticos"},type:"optional"},"1980-10-22":{name:{en:"National Census 1980",es:"Censo Nacional 1980"}},"1991-05-15":{name:{en:"National Census 1991",es:"Censo Nacional 1991"}},"2001-11-17":{name:{en:"National Census 2001",es:"Censo Nacional 2001"}},"2010-10-27":{name:{en:"National Census 2010",es:"Censo Nacional 2010"}},"2022-05-18":{name:{en:"National Census 2022",es:"Censo Nacional 2022"}},"2011-03-25":{_name:"Bridge Day"},"2011-12-09":{_name:"Bridge Day"},"2012-04-30":{_name:"Bridge Day"},"2012-12-24":{_name:"Bridge Day"},"2013-04-01":{_name:"Bridge Day"},"2013-06-21":{_name:"Bridge Day"},"2014-05-02":{_name:"Bridge Day"},"2014-12-26":{_name:"Bridge Day"},"2015-03-23":{_name:"Bridge Day"},"2015-12-07":{_name:"Bridge Day"},"2016-07-08":{_name:"Bridge Day"},"2016-12-09":{_name:"Bridge Day"},"2018-04-30":{_name:"Bridge Day",type:"bank"},"2018-12-24":{_name:"Bridge Day",type:"bank"},"2018-12-31":{_name:"Bridge Day",type:"bank"},"2019-07-08":{_name:"Bridge Day",type:"bank"},"2019-08-19":{_name:"Bridge Day",type:"bank"},"2019-10-14":{_name:"Bridge Day",type:"bank"},"2020-03-23":{_name:"Bridge Day"},"2020-07-10":{_name:"Bridge Day"},"2020-12-07":{_name:"Bridge Day"},"2021-05-24":{_name:"Bridge Day"},"2021-10-08":{_name:"Bridge Day"},"2021-11-22":{_name:"Bridge Day"},"2022-10-07":{_name:"Bridge Day"},"2022-11-21":{_name:"Bridge Day"},"2022-12-09":{_name:"Bridge Day"},"2023-05-26":{_name:"Bridge Day"},"2023-06-19":{_name:"Bridge Day"},"2023-10-13":{_name:"Bridge Day"},"2024-04-01":{_name:"Bridge Day"},"2024-06-21":{_name:"Bridge Day"},"2024-10-11":{_name:"Bridge Day"},"2025-05-02":{_name:"Bridge Day",type:"bank"},"2025-08-15":{_name:"Bridge Day",type:"bank"},"2025-11-21":{_name:"Bridge Day",type:"bank"}}},AS:{names:{en:"American Samoa"},dayoff:"sunday",zones:["Pacific/Pago_Pago"],langs:["en"],_days:["US"],days:{"3rd monday in February":{name:{en:"Washington's Birthday"}},"03-17":!1,"04-15 if friday then next monday if saturday,sunday then next tuesday":!1,"04-17 and if sunday then next monday":{name:{en:"American Samoa Flag Day"},substitute:!0},"07-16":{name:{en:"Manu'a Cession Day"},type:"optional",note:"Goverment offices closed"},"2nd sunday in October":{name:{en:"White Sunday"},type:"observance",note:"christian"},"12-24 12:00":{_name:"12-24",type:"bank"},"12-31 12:00":{_name:"12-31",type:"bank"}}},AT:{names:{"de-at":"Österreich",en:"Austria"},dayoff:"sunday",zones:["Europe/Vienna"],langs:["de-at","de"],days:{"01-01":{_name:"01-01"},"01-06":{_name:"01-06"},"easter -2 prior to 2019":{_name:"easter -2",type:"optional"},"easter -1":{_name:"easter -1",type:"observance"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"05-01":{name:{"de-at":"Staatsfeiertag"}},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"easter 39":{_name:"easter 39"},"easter 49":{_name:"easter 49",type:"observance"},"easter 50":{_name:"easter 50"},"easter 60":{_name:"easter 60"},"08-15":{_name:"08-15"},"10-26":{_name:"National Holiday"},"11-01":{_name:"11-01"},"12-08":{_name:"12-08"},"12-24 14:00 if sunday then 00:00":{_name:"12-24",type:"bank"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"12-31 14:00 if sunday then 00:00":{_name:"12-31",type:"bank"}},states:{1:{name:"Burgenland",days:{"11-11":{name:{"de-at":"Martinstag"}}}},2:{names:{de:"Kärnten",en:"Carinthia"},days:{"03-19":{_name:"03-19",type:"school"},"10-10":{name:{"de-at":"Tag der Volksabstimmung"}}}},3:{names:{de:"Niederösterreich",en:"Lower Austria"},days:{"11-15":{name:{"de-at":"Leopoldi-Tag"},type:"optional",note:"In Niederösterreich haben nur Schüler und Beamten frei"}}},4:{names:{de:"Oberösterreich",en:"Upper Austria"},days:{"05-04":{name:{"de-at":"Florian"},type:"observance",note:"Da der St. Florian aber in Oberösterreich eine besondere Bedeutung als Patron einhält, gilt er dort als Landesfeiertag und ist offiziell schulfrei. Für Arbeitnehmer:innen gilt er jedoch als normaler Arbeitstag."}}},5:{names:{de:"Land Salzburg",en:"Salzburg"},days:{"09-24":{name:{"de-at":"Rupert"}}}},6:{names:{de:"Steiermark",en:"Styria"},days:{"03-19":{_name:"03-19",type:"school"}}},7:{names:{de:"Tirol",en:"Tyrol"},days:{"03-19":{_name:"03-19",type:"school"}}},8:{name:"Vorarlberg",days:{"03-19":{_name:"03-19",type:"school"}}},9:{names:{de:"Wien",en:"Vienna"},days:{"11-15":{name:{"de-at":"Leopoldi-Tag"},type:"optional",note:"In Wien haben nur Schüler frei"}}}}},AU:{names:{en:"Australia"},dayoff:"sunday",langs:["en"],zones:["Australia/Sydney","Australia/Lord_Howe","Antarctica/Macquarie","Australia/Hobart","Australia/Currie","Australia/Melbourne","Australia/Broken_Hill","Australia/Brisbane","Australia/Lindeman","Australia/Adelaide","Australia/Darwin","Australia/Perth","Australia/Eucla"],days:{"01-01 and if saturday,sunday then next monday":{_name:"01-01"},"01-26 if saturday,sunday then next monday":{substitute:!0,name:{en:"Australia Day"}},"easter -2":{_name:"easter -2"},"easter -1":{_name:"easter -1"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"04-25":{name:{en:"Anzac Day"}},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"1st sunday in September":{_name:"Fathers Day",type:"observance"},"12-25 and if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"12-25"},"12-26 and if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"12-26"},"2022-09-22":{name:{en:"National Day of Mourning for Queen Elizabeth II"}}},states:{ACT:{name:"Australian Capital Territory",zones:["Australia/Sydney"],days:{"2nd monday in March":{name:{en:"Canberra Day"}},"04-25":!1,"04-25 and if saturday,sunday then next monday":{substitute:!0,name:{en:"Anzac Day"}},"2020-04-27":{name:{en:"Declared public holiday"},type:"public"},"monday after 05-27":{name:{en:"Reconciliation Day"}},"2nd monday in June":{name:{en:"Queen's Birthday"},active:[{to:"2022-09-08"}]},"2nd monday in June #1":{name:{en:"King's Birthday"},active:[{from:"2022-09-09"}]},"1st monday in October":{name:{en:"Labour Day"}}}},NSW:{name:"New South Wales",zones:["Australia/Sydney"],days:{"04-25 and if saturday then next monday":{substitute:!0,name:{en:"Anzac Day"},active:[{to:"2026-04-25"}]},"04-25 and if saturday,sunday then next monday":{substitute:!0,name:{en:"Anzac Day"},active:[{from:"2026-04-25"}]},"2nd monday in June":{name:{en:"Queen's Birthday"},active:[{to:"2022-09-08"}]},"2nd monday in June #1":{name:{en:"King's Birthday"},active:[{from:"2022-09-09"}]},"1st monday in August":{name:{en:"Bank Holiday"},type:"bank"},"1st monday in October":{name:{en:"Labour Day"}}}},NT:{name:"Northern Territory",zones:["Australia/Darwin"],days:{easter:{name:{en:"Easter Sunday"},active:[{from:"2023-04-09"}]},"04-25":!1,"04-25 if sunday then next monday":{substitute:!0,name:{en:"Anzac Day"}},"1st monday in May":{name:{en:"May Day"}},"2nd monday in June":{name:{en:"Queen's Birthday"},active:[{to:"2022-09-08"}]},"2nd monday in June #1":{name:{en:"King's Birthday"},active:[{from:"2022-09-09"}]},"1st monday in August":{name:{en:"Picnic Day"}},"1st monday in October":!1,"12-24 19:00":{_name:"12-24"},"12-25 and if saturday then next monday if sunday then next tuesday":!1,"12-25 if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"12-25"},"12-26 and if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"12-26",active:[{from:"2023-12-26"}]},"12-26 if saturday then next monday if sunday then next tuesday":{_name:"12-26",active:[{to:"2023-12-26"}]},"12-31 19:00":{_name:"12-31"}}},QLD:{name:"Queensland",zones:["Australia/Brisbane","Australia/Lindeman"],days:{"04-25":!1,"04-25 if sunday then next monday":{substitute:!0,name:{en:"Anzac Day"}},"1st monday in May":{name:{en:"Labour Day"}},"2nd monday in June":!1,"1st monday in October":{name:{en:"Queen's Birthday"},active:[{to:"2022-09-08"}]},"1st monday in October #1":{name:"King's Birthday",active:[{from:"2022-09-09"}]},"12-24 18:00":{_name:"12-24"}}},SA:{name:"South Australia",zones:["Australia/Adelaide"],days:{easter:{name:{en:"Easter Sunday"},active:[{from:"2024-03-31"}]},"2nd monday in March":{name:{en:"Adelaide Cup Day"}},"2nd monday in June":{name:{en:"Queen's Birthday"},active:[{to:"2022-09-08"}]},"2nd monday in June #1":{name:{en:"King's Birthday"},active:[{from:"2022-09-09"}]},"1st monday in October":{name:{en:"Labour Day"}},"12-24 19:00":{_name:"12-24"},"12-25 and if saturday then next monday if sunday then next tuesday":!1,"12-25 if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"12-25"},"12-26 and if saturday then next monday if sunday then next tuesday":{substitute:!0,name:"Proclamation Day",active:[{from:"2024-12-26"}]},"12-26 if saturday then next monday if sunday then next tuesday":{name:"Proclamation Day",active:[{to:"2024-12-26"}]},"12-31 19:00":{_name:"12-31"}}},TAS:{name:"Tasmania",zones:["Australia/Hobart"],days:{"01-01 and if saturday,sunday then next monday":!1,"01-01 if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"01-01"},"2nd monday in March":{name:{en:"Eight Hours Day"}},"easter -1":!1,easter:!1,"easter +2":{name:"Easter Tuesday",type:"optional",note:"Public Service employees or contract dependent"},"2nd monday in June":{name:{en:"Queen's Birthday"},active:[{to:"2022-09-08"}]},"2nd monday in June #1":{name:{en:"King's Birthday"},active:[{from:"2022-09-09"}]},"1st monday in October":!1,"12-26 and if saturday then next monday if sunday then next tuesday":!1,"12-26 if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"12-26"}}},VIC:{name:"Victoria",zones:["Australia/Melbourne"],days:{"2nd monday in March":{name:{en:"Labour Day"}},"2nd monday in June":{name:{en:"Queen's Birthday"},active:[{to:"2022-09-08"}]},"2nd monday in June #1":{name:{en:"King's Birthday"},active:[{from:"2022-09-09"}]},"1st monday in October":!1,"1st friday before October":{name:{en:"AFL Grand Final Friday"},note:"Date might differ as dependent on AFL schedule"},"1st tuesday in November":{name:{en:"Melbourne Cup"}}}},WA:{name:"Western Australia",zones:["Australia/Perth","Australia/Eucla"],days:{"1st monday in March":{name:{en:"Labour Day"}},"easter -1":!1,easter:{name:{en:"Easter Sunday"},active:[{from:"2022-04-17"}]},"04-25":!1,"04-25 and if saturday,sunday then next monday":{substitute:!0,name:{en:"Anzac Day"}},"1st monday in June":{name:{en:"Western Australia Day"}},"2nd monday in June":!1,"monday before October":{name:{en:"Queen's Birthday"},note:"Might be on a different day; is proclaimed by Governor",active:[{to:"2022-09-08"}]},"monday before October #1":{name:{en:"King's Birthday"},note:"Might be on a different day; is proclaimed by Governor",active:[{from:"2022-09-09"}],disable:["2024-09-30"],enable:["2024-09-23"]},"1st monday in October":!1}}}},AW:{names:{pap:"Aruba",nl:"Aruba",en:"Aruba"},dayoff:"sunday",zones:["America/Curacao"],langs:["pap","nl"],days:{"01-01":{_name:"01-01"},"01-25":{name:{pap:"Dia di Betico",nl:"Herdenking G. F. Croes",en:"Betico Croes Day"}},"easter -48":{_name:"easter -48"},"03-18 and if saturday then previous friday if sunday then next monday":{substitute:!0,name:{pap:"Dia di Himno y Bandera",nl:"Herdenking Vlag en Volkslied",en:"National Anthem and Flag Day"}},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"04-27":{name:{pap:"Aña di Rey",nl:"Koningsdag",en:"Kings Day"}},"05-01 if sunday then next monday":{_name:"05-01"},"06-24":{name:{pap:"Dera Gai",nl:"Dera Gai",en:"Dera Gai"},type:"observance"},"easter 39":{_name:"easter 39"},"12-05":{name:{nl:"Sinterklaasavond",en:"St. Nicholas' Eve"},type:"observance"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}},AX:{names:{sv:"Landskapet Åland",en:"Åland Islands"},dayoff:"sunday",zones:["Europe/Helsinki"],langs:["sv"],days:{"01-01":{_name:"01-01"},"01-06":{_name:"01-06"},"03-30":{name:{sv:"Ålands demilitariseringsdag",en:"Demilitarization Day"}},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"easter 39":{_name:"easter 39"},"easter 49":{_name:"easter 49",type:"observance"},"06-09":{name:{sv:"Självstyrelsedagen",en:"Autonomy Day"}},"friday after 06-19":{name:{sv:"Midsommarafton",en:"Midsummer Eve"},type:"bank"},"saturday after 06-20":{name:{sv:"Midsommardagen",en:"Midsummer Day"}},"12-06":{_name:"Independence Day"},"12-24 12:00":{_name:"12-24",type:"bank"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"12-31 12:00":{_name:"12-31",type:"bank"}}},AZ:{names:{az:"Azərbaycan Respublikası",en:"Azerbaijan"},dayoff:"sunday",weekend:["saturday","sunday"],zones:["Asia/Baku"],langs:["az"],days:{"01-01 and if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"01-01"},"01-02 and if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"01-01"},"01-20":{name:{az:"Qara Yanvar",en:"Martyrs' Day"},type:"observance"},"03-08 and if saturday,sunday then next monday":{substitute:!0,_name:"03-08"},"03-20":{name:{az:"Novruz",en:"Spring Festival"},active:[{from:2011}]},"05-09 and if saturday,sunday then next monday":{substitute:!0,name:{az:"Faşizm üzərində qələbə günü",en:"Day of Victory over Fascism"}},"05-28 and if saturday,sunday then next monday":{substitute:!0,name:{az:"Respublika günü",en:"Republic Day"}},"06-15 and if saturday,sunday then next monday":{substitute:!0,name:{az:"Azərbaycan xalqının Milli Qurtuluş günü",en:"National Salvation Day"}},"06-26 and if saturday,sunday then next monday":{substitute:!0,name:{az:"Azərbaycan Respublikasının Silahlı Qüvvələri günü",en:"Azerbaijan Armed Forces Day"}},"10-18 and if saturday,sunday then next monday":{substitute:!0,name:{az:"Dövlət Müstəqilliyi günü",en:"Independence Day"}},"11-09 and if saturday,sunday then next monday":{substitute:!0,name:{az:"Dövlət Bayrağı günü",en:"Flag Day"}},"11-12":{name:{az:"Konstitusiya günü",en:"Constitution Day"}},"11-17":{name:{az:"Milli Dirçəliş günü",en:"National Revival Day"}},"12-31 and if saturday,sunday then next monday":{substitute:!0,name:{az:"Dünya azərbaycanlıların həmrəyliyi günü",en:"International Solidarity Day of Azerbaijanis"}},"1 Shawwal and if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"1 Shawwal"},"2 Shawwal and if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"1 Shawwal"},"10 Dhu al-Hijjah and if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"10 Dhu al-Hijjah"},"11 Dhu al-Hijjah and if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"10 Dhu al-Hijjah"}}},BA:{names:{bs:"Bosna i Hercegovina",sr:"Боснa и Херцеговина",hr:"Bosna i Hercegovina",en:"Bosnia and Herzegovina"},langs:["bs","sr","hr"],zones:["Europe/Belgrade"],dayoff:"sunday",days:{"01-01 and if sunday then next tuesday":{_name:"01-01",substitute:!0},"01-02 and if sunday then next monday":{name:{en:"2nd day of the New Year",bs:"Drugi dan Nove Godine"},substitute:!0},"05-01 and if sunday then next tuesday":{_name:"05-01",substitute:!0},"05-02 and if sunday then next monday":{name:{en:"2nd day of the Labour Day",bs:"Drugi dan Dana rada"},substitute:!0},"01-06":{_name:"01-06"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"easter 60":{_name:"easter 60"},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"11-02":{_name:"11-02"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"julian 01-01":{_name:"julian 01-01"},orthodox:{_name:"orthodox"},"julian 08-15":{_name:"08-15",note:"orthodox"},"julian 12-25":{_name:"julian 12-25"},"1 Muharram":{_name:"1 Muharram"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"10 Dhu al-Hijjah P4D":{_name:"10 Dhu al-Hijjah"},"1 Shawwal P3D":{_name:"1 Shawwal"}},states:{BIH:{name:"Federation of Bosnia and Herzegovina",days:{"03-01":{_name:"Independence Day"},"11-25":{name:{en:"Statehood Day",bs:"Dan državnosti"}}},regions:{W:{name:"Western Herzegovina",days:{"11-25":!1}}}},BRC:{name:"Brčko District",days:{"03-08":{name:{en:"Day of the Establishment of the District"}}}},SRP:{name:"Republika Srpska",days:{"01-09":{name:{en:"Republic Day",bs:"Dan Republike"}},"05-09":{name:{en:"Victory Day",bs:"Dan pobjede"}},"11-21":{name:{en:"Dayton Agreement Day",bs:"Dan uspostave Opšteg okvirnog sporazuma za mir u Bosni i Hercegovini"}}}}}},BB:{names:{en:"Barbados"},dayoff:"sunday",langs:["en"],zones:["America/Barbados"],days:{"01-01":{_name:"01-01"},"01-21":{name:{en:"Errol Barrow Day"}},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"04-28":{name:{en:"National Heroes Day"}},"05-01 if sunday then next monday":{name:{en:"May Day"}},"easter 49":{_name:"easter 49"},"easter 50":{_name:"easter 50"},"08-01":{name:{en:"Emancipation Day"}},"1st monday in August":{name:{en:"Kadooment Day"}},"11-30":{_name:"Independence Day"},"12-25":{_name:"12-25"},"substitutes 12-25 if sunday then next tuesday":{_name:"Public Holiday"},"12-26":{_name:"12-26"},"substitutes 12-26 if sunday then next monday":{_name:"Public Holiday"}}},BD:{names:{bn:"গণপ্রজাতন্ত্রী বাংলাদেশ",en:"People's Republic of Bangladesh"},langs:["bn"],zones:["Asia/Dhaka"],dayoff:"friday",weekend:["friday","saturday"],days:{"bengali-revised 11-9":{name:{bn:"শহীদ দিবস",en:"Language Martyrs' Day"}},"bengali-revised 12-3":{name:{bn:"মুজিব জয়ন",en:"Mujib's Birthday & Children's Day"}},"bengali-revised 12-12":{name:{bn:"স্বাধীনতা দিবস",en:"Independence Day"}},"bengali-revised 1-1":{name:{bn:"পহেলা বৈশাখ",en:"Bengali New Year's Day"}},"bengali-revised 1-18":{_name:"05-01",name:{bn:"মে দিবস",en:"May Day"}},"bengali-revised 4-31":{name:{bn:"জাতীয় শোক দিবস",en:"National Mourning Day"}},"bengali-revised 9-2":{name:{bn:"বিজয় দিবস",en:"Victory Day"}},"10 Muharram":{_name:"10 Muharram"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Shawwal P3D":{_name:"1 Shawwal"},"10 Dhu al-Hijjah P3D":{_name:"10 Dhu al-Hijjah"},"05-19":{name:{bn:"বুদ্ধ পূর্ণিমা",en:"Buddha's Birthday"},enable:["2016-05-21","2017-05-10","2018-04-29","2019-05-19","2020-05-07"],disable:["2016-05-19","2017-05-19","2018-05-19","2019-05-19","2020-05-19"]},"08-24":{name:{bn:"জন্মাষ্টমী",en:"Krishna Janmashtami"},enable:["2016-08-25","2017-08-14","2018-09-02","2019-08-24","2020-08-11"],disable:["2016-08-24","2017-08-24","2018-08-24","2019-08-24","2020-08-24"]},"10-08":{name:{bn:"দুর্গা পূজা",en:"Durga Puja"},enable:["2016-10-11","2017-09-30","2018-10-19","2019-10-08","2020-10-25"],disable:["2016-10-08","2017-10-08","2018-10-08","2019-10-08","2020-10-08"]},"bengali-revised 9-11":{_name:"12-25"},"03-25":{name:{en:"Genocide Remembrance Day"},type:"observance"},"11-21":{name:{en:"Armed Forces Day"},type:"observance"},"12-14":{name:{en:"Martyred Intellectuals Day"},type:"observance"}}},BE:{names:{fr:"Belgique",nl:"België",de:"Belgien",en:"Belgium"},dayoff:"sunday",zones:["Europe/Brussels"],langs:["fr","nl","de"],days:{"01-01":{_name:"01-01"},"01-06":{_name:"01-06",name:{de:"Erscheinung des Herrn"},type:"observance"},"02-14":{_name:"02-14",type:"observance"},easter:{_name:"easter",type:"observance"},"easter 1":{name:{fr:"Lundi de Pâques",nl:"Paasmaandag",de:"Ostermontag"}},"05-01":{_name:"05-01"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"easter 39":{name:{nl:"Hemelvaartsdag",fr:"Ascension",de:"Christi Himmelfahrt"}},"easter 49":{_name:"easter 49",type:"observance"},"easter 50":{name:{fr:"Lundi de Pentecôte",nl:"Pinkstermaandag",de:"Pfingstmontag"}},"07-21":{_name:"National Holiday"},"08-15":{name:{fr:"Assomption",nl:"Tenhemelopneming",de:"Mariä Himmelfahrt"}},"11-01":{_name:"11-01"},"11-02":{_name:"11-02",type:"observance"},"11-11":{name:{de:"Waffenstillstand",fr:"Armistice",nl:"Wapenstilstand"}},"11-15":{name:{nl:"Koningsdag",fr:"Fête du Roi",de:"Festtag des Königs"},type:"observance"},"12-06":{_name:"12-06",type:"observance"},"12-25":{_name:"12-25"}},states:{BRU:{name:"Bruxelles",langs:["fr","nl"],days:{"05-08":{name:{nl:"Feest van de Iris",fr:"Fête de l'Iris"},type:"observance"}}},DE:{name:"Deutschsprachige Gemeinschaft",langs:["de"],days:{"11-15":{name:{de:"Tag der Deutschsprachigen Gemeinschaft",fr:"Jour de la Communauté Germanophone",nl:"Feestdag van de Duitstalige Gemeenschap"},type:"observance"}}},VLG:{name:"Vlaamse Gemeenschap",langs:["nl"],days:{"07-11":{name:{de:"Festtag der Wallonischen Region",fr:"Fête de la Région wallonne",nl:"Feestdag van de Vlaamse Gemeenschap"},type:"observance"},"11-02":{_name:"11-02",type:"observance",note:"day-off for employees of the flemish government"},"11-15":{name:{nl:"Koningsdag",fr:"Fête du Roi",de:"Festtag des Königs"},type:"observance",note:"day-off for employees of the flemish government"},"12-26":{_name:"12-26",type:"observance",note:"day-off for employees of the flemish government"}}},WAL:{name:"Communauté française",langs:["fr"],days:{"09-27":{name:{de:"Tag der Französischsprachigen Gemeinschaft",fr:"La fête de la communauté française",nl:"Feestdag van de Franse Gemeenschap"},type:"observance"}}}}},BF:{names:{fr:"Burkina Faso",en:"Burkina Faso"},langs:["fr"],zones:["Africa/Abidjan"],dayoff:"",days:{"01-01":{_name:"01-01"},"01-03":{name:{fr:"Soulèvement populaire",en:"Anniversary of the 1966 Upper Voltan coup d'état"}},"03-08":{_name:"03-08"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"easter 39":{_name:"easter 39"},"easter 49":{_name:"easter 49"},"05-01":{_name:"05-01"},"08-05":{_name:"Independence Day"},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"12-11":{name:{fr:"Fête nationale",en:"Proclamation of the Republic"}},"12-25":{_name:"12-25"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},BG:{names:{bg:"България",en:"Bulgaria"},langs:["bg"],zones:["Europe/Sofia"],days:{"01-01":{_name:"01-01"},"03-01":{name:{bg:"Баба Марта",en:"Granny March Day"},type:"observance"},"03-03":{name:{bg:"Ден на Освобождението на България от Османската Империя",en:"Liberation Day"}},"03-08":{_name:"03-08",type:"observance"},"orthodox -2":{_name:"easter -2"},orthodox:{_name:"easter"},"orthodox 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"05-06":{name:{bg:"Гергьовден",en:"St. George's Day"}},"05-07":{name:{bg:"Ден на радиото и телевизията",en:"Radio and Television Day"},type:"observance"},"05-24":{name:{bg:"Ден на азбуката, културата и просветата",en:"Bulgarian Education and Culture, and Slavonic Literature Day"}},"09-06":{name:{bg:"Ден на съединението",en:"Unification Day"}},"09-22":{_name:"Independence Day"},"11-01":{name:{bg:"Ден на народните будители",en:"Revival Leaders' Day"},type:"school"},"12-24":{_name:"12-24"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26",type:"observance"}}},BH:{names:{ar:"مملكة البحرين",en:"Bahrain"},langs:["ar"],zones:["Asia/Qatar"],dayoff:"",days:{"01-01":{_name:"01-01"},"05-01":{_name:"05-01",name:{ar:"يوم العمال"}},"12-16":{name:{ar:"اليوم الوطني",en:"National Day"}},"12-17":{name:{ar:"يوم الجلوس",en:"Accession Day"}},"1 Muharram":{_name:"1 Muharram"},"10 Muharram":{_name:"10 Muharram"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Shawwal":{_name:"1 Shawwal"},"9 Dhu al-Hijjah":{_name:"9 Dhu al-Hijjah"},"10 Dhu al-Hijjah P3D":{_name:"10 Dhu al-Hijjah"}}},BI:{names:{rn:"Republika y'Uburundi",fr:"République du Burundi",en:"Burundi"},dayoff:"sunday",langs:["fr","en"],zones:["Africa/Maputo"],days:{"01-01":{_name:"01-01"},"02-05":{name:{fr:"Jour de l'Unité",en:"Unity Day"}},"04-06":{name:{fr:"Jour de Ntaryamira",en:"Ntaryamira Day"}},"05-01":{_name:"05-01"},"easter 39":{_name:"easter 39"},"07-01":{_name:"Independence Day"},"08-15":{_name:"08-15"},"10-13":{name:{fr:"Jour de Rwagasore",en:"Rwagasore Day"}},"10-21":{name:{fr:"Jour de Ndadaye",en:"Ndadaye Day"}},"11-01":{_name:"11-01"},"12-25":{_name:"12-25"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"},"2015-07-24":{_name:"Public Holiday",name:{fr:"Jour l'élection des Sénateurs"}}}},BJ:{names:{fr:"République du Bénin",en:"Benin"},langs:["fr"],zones:["Africa/Lagos"],dayoff:"",days:{"01-01":{_name:"01-01"},"01-10":{name:{fr:"Fête du Vodoun"}},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"easter 39":{_name:"easter 39"},"easter 49":{_name:"easter 49",type:"observance"},"easter 50":{_name:"easter 50"},"05-01":{_name:"05-01"},"08-01":{_name:"Independence Day",name:{fr:"Fête Nationale"}},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"12-25":{_name:"12-25"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"}}},BL:{names:{fr:"St. Barthélemy",en:"St. Barths"},langs:["fr"],zones:["America/St_Barthelemy"],_days:"FR",days:{"easter -48":{_name:"easter -48",type:"observance"},"easter -47":{_name:"easter -47",type:"Observance"},"easter -46":{_name:"easter -46",type:"observance"},"easter -21":{name:{fr:"Mi-Carême",en:"Laetare Sunday"},type:"observance"},"easter -2":{_name:"easter -2",type:"bank"},easter:{_name:"easter",type:"observance"},"08-24":{name:{fr:"Fête de Saint Barthélemy",en:"Saint Barth"},type:"observance"},"10-09":{_name:"Abolition of Slavery"},"12-25":{_name:"12-25"}}},BM:{names:{en:"Bermuda"},langs:["en"],zones:["Atlantic/Bermuda"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"substitutes 01-01 if saturday, sunday then next monday":{_name:"01-01",substitute:!0,type:"bank",note:"Goverment offices close"},"easter -2":{_name:"easter -2"},"friday before 06-01":{name:{en:"Bermuda Day"}},"3nd monday in June":{name:{en:"National Heroes Day"}},"thursday before 08-04":{name:{en:"Emancipation Day"}},"friday before 08-05":{name:{en:"Somers' Day"}},"monday after 09-01":{name:{en:"Labour Day"}},"11-11":{name:{en:"Remembrance Day"}},"substitutes 11-11 if saturday, sunday then next monday":{name:{en:"Remembrance Day"},substitute:!0,type:"bank",note:"Goverment offices close"},"12-25":{_name:"12-25"},"substitutes 12-25 if saturday then next monday if sunday then next tuesday":{_name:"12-25",substitute:!0,type:"bank",note:"Goverment offices close"},"12-26":{_name:"12-26"},"substitutes 12-26 if saturday then next monday if sunday then next tuesday":{_name:"12-26",substitute:!0,type:"bank",note:"Goverment offices close"}}},BN:{names:{ms:"Negara Brunei Darussalam",en:"Brunei"},langs:["ms","en"],zones:["Asia/Brunei"],dayoff:"",days:{"01-01":{_name:"01-01",name:{ms:"Awal Tahun Masihi"}},"02-23":{name:{en:"National Day",ms:"Hari Kebangsaan"}},"03-31":{name:{en:"Armed Forces Day",ms:"Hari Angkatan Bersenjata Diraja Brunei"}},"07-15":{name:{en:"Sultan's Birthday",ms:"Hari Keputeraan KDYMM Sultan Brunei"}},"1 Ramadan":{_name:"1 Ramadan"},"17 Ramadan":{name:{en:"Nuzul Al-Quran",ms:"Hari Nuzul Al-Quran"}},"1 Shawwal P3D":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"},"1 Muharram":{_name:"1 Muharram"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"27 Rajab":{_name:"27 Rajab"},"12-25":{_name:"12-25"},"chinese 01-0-01":{name:{en:"Chinese New Year",ms:"Tahun Baru Cina"}}}},BO:{names:{es:"Bolivia",en:"Bolivia"},dayoff:"sunday",langs:["es","qu","ay"],zones:["America/La_Paz"],days:{"01-01":{_name:"01-01"},"substitutes 01-01 if sunday then next monday":{name:{en:"New Year's Day (substitutes)",es:"Año Nuevo (substituto)"}},"01-22":{name:{en:"Plurinational State Foundation Day",es:"Día de la Creación del Estado Plurinacional de Bolivia"}},"substitutes 01-22 if sunday then next monday":{name:{en:"Plurinational State Foundation Day (substitutes)",es:"Día de la Creación del Estado Plurinacional de Bolivia (substituto)"}},"02-02":{name:{en:"Feast of the Virgin of Candelaria",qu:"Mamacha Candelaria",es:"Fiesta de la Virgen de Candelaria"},type:"observance"},"easter -48":{_name:"easter -48",name:{es:"Lunes de Carnaval"}},"easter -47":{_name:"easter -47",name:{es:"Martes de Carnaval"}},"03-19":{name:{en:"Father's Day",es:"Día del Padre"},type:"observance"},"03-23":{name:{en:"Day of the Sea",es:"Día del Mar"},type:"observance"},"easter -3":{_name:"easter -3",type:"observance"},"easter -2":{_name:"easter -2"},"04-12":{name:{en:"Children's Day",es:"Día del Niño"},type:"observance"},"05-01":{_name:"05-01"},"substitutes 05-01 if sunday then next monday":{_name:"05-01",name:{en:"Labour Day (substitutes)",es:"Día del Trabajo (substituto)"}},"05-27":{name:{en:"Mother's Day",es:"Día de la Madre"},type:"observance"},"06-06":{name:{en:"Teacher's Day",es:"Día del Maestro"},type:"observance"},"easter 60":{_name:"easter 60"},"06-21":{name:{en:"Andean Amazonian Chaqueño New Year",ay:"Willkakuti",es:"Año Nuevo Andino Amazónico Chaqueño"}},"substitutes 06-21 if sunday then next monday":{name:{en:"Andean Amazonic Chacoan New Year (substitutes)",ay:"Willkakuti (substituto)",es:"Año Nuevo Andino Amazónico Chaqueño (substituto)"}},"08-06":{_name:"Independence Day"},"substitutes 08-06 if sunday then next monday":{name:{en:"Independence Day (substitutes)",es:"Día de la Independencia (substituto)"}},"08-17":{name:{en:"Flag Day",es:"Día de la Bandera"},type:"observance"},"09-21":{name:{en:"Student's Day",es:"Día del Estudiante"},type:"observance"},"10-11":{name:{es:"Día de la Mujer Boliviana",en:"Bolivian Woman's Day"},type:"observance"},"11-01":{_name:"11-01",name:{es:"Todos Santos"},type:"observance"},"11-02":{_name:"11-02",name:{es:"Todos Santos"}},"12-25":{_name:"12-25"},"substitutes 12-25 if sunday then next monday":{_name:"12-25",name:{en:"Christmas Day (substitutes)",es:"Navidad (substituto)"}}},states:{B:{name:"Beni",days:{"11-18":{name:{es:"Efemérides del Beni",en:"Beni Day"}},"substitutes 11-18 if sunday then next monday":{name:{es:"Efemérides del Beni (substituto)",en:"Beni Day (substitutes)"}}}},C:{name:"Cochabamba",days:{"09-14":{name:{es:"Efemérides de Cochabamba",en:"Cochabamba Day"}},"substitutes 09-14 if sunday then next monday":{name:{es:"Efemérides de Cochabamba (substituto)",en:"Cochabamba Day (substitutes)"}}}},H:{name:"Chuquisaca",days:{"05-25":{name:{es:"Efemérides de Chuquisaca",en:"Chuquisaca Day"}},"substitutes 05-25 if sunday then next monday":{name:{es:"Efemérides de Chuquisaca (substituto)",en:"Chuquisaca Day (substitutes)"}}}},L:{name:"La Paz",days:{"07-16":{name:{es:"Efemérides de La Paz",en:"La Paz Day"}},"substitutes 07-16 if sunday then next monday":{name:{es:"Efemérides de La Paz (substituto)",en:"La Paz Day (substitutes)"}}}},N:{name:"Pando",days:{"09-24":{name:{es:"Efemérides de Pando",en:"Pando Day"}},"substitutes 09-24 if sunday then next monday":{name:{es:"Efemérides de Pando (substituto)",en:"Pando Day (substitutes)"}}}},O:{name:"Oruro",days:{"02-10":{name:{es:"Efemérides de Oruro",en:"Oruro Day"}},"substitutes 02-10 if sunday then next monday":{name:{es:"Efemérides de Oruro (substituto)",en:"Oruro Day (substitutes)"}}}},P:{name:"Potosí",days:{"11-10":{name:{es:"Efemérides de Potosí",en:"Potosí Day"}},"substitutes 11-10 if sunday then next monday":{name:{es:"Efemérides de Potosí (substituto)",en:"Potosí Day (substitutes)"}}}},S:{name:"Santa Cruz",days:{"09-24":{name:{es:"Efemérides de Santa Cruz",en:"Santa Cruz Day"}},"substitutes 09-24 if sunday then next monday":{name:{es:"Efemérides de Santa Cruz (substituto)",en:"Santa Cruz Day (substitutes)"}}}},T:{name:"Tarija",days:{"04-15":{name:{es:"Efemérides de Tarija",en:"Tarija Day"}},"substitutes 04-15 if sunday then next monday":{name:{es:"Efemérides de Tarija (substituto)",en:"Tarija Day (substitutes)"}}}}}},BQ:{names:{nl:"Caribisch Nederland",en:"Caribbean Netherlands"},dayoff:"sunday",zones:["America/Curacao"],langs:["nl","en","pap"],days:{"01-01":{_name:"01-01"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"04-27":{name:{pap:"Aña di Rey",nl:"Koningsdag",en:"Kings Day"}},"05-01 if sunday then next monday":{substitute:!0,_name:"05-01"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"3rd sunday in June":{_name:"Fathers Day",type:"observance"},"easter 39":{_name:"easter 39"},"12-05":{name:{nl:"Sinterklaasavond",en:"St. Nicholas' Eve"},type:"observance"},"12-15":{name:{pap:"Dia di Reino",nl:"Koninkrijksdag",en:"Kingdom Day"}},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}},regions:{BO:{name:"Bonaire",days:{"easter -48":{_name:"easter -48",name:{en:"Carnival Monday"}},"04-30":{name:{en:"Rincon Day",pap:"Dia di Rincon"}},"09-06":{name:{nl:"Boneiru Dag",en:"Bonaire Day",pap:"Dia di Boneiru"}}}},SA:{name:"Saba",days:{"1st monday in August":{_name:"easter -48",name:{en:"Carnival Monday"}},"1st friday in December":{name:{en:"Saba Day"}}}},SE:{name:"Sint Eustatius",days:{"08-01":{name:{en:"Emancipation Day"}},"11-16":{name:{en:"Statia Day"}}}}}},BR:{names:{pt:"Brasil",en:"Brazil"},dayoff:"sunday",langs:["pt"],zones:["America/Sao_Paulo","America/Noronha","America/Belem","America/Fortaleza","America/Recife","America/Araguaina","America/Maceio","America/Bahia","America/Campo_Grande","America/Cuiaba","America/Santarem","America/Porto_Velho","America/Boa_Vista","America/Manaus","America/Eirunepe","America/Rio_Branco"],days:{"01-01":{_name:"01-01"},"04-21":{name:{pt:"Dia de Tiradentes",en:"Tiradentes' Day"}},"easter -50 PT110H":{name:{pt:"Carnaval",en:"Carnival"},type:"optional"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"05-01":{_name:"05-01"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"easter 60":{_name:"easter 60",type:"optional"},"06-12":{name:{pt:"Dia dos Namorados",en:"Lovers' Day"},type:"observance"},"2nd sunday in August":{_name:"Fathers Day",type:"observance"},"09-07":{_name:"Independence Day"},"10-12":{name:{pt:"Nossa Senhora Aparecida",en:"Our Lady of Aparecida"}},"1st sunday in October in even years":{name:{pt:"Dia de Eleição",en:"Election Day"}},"1st sunday before 11-01 in even years":{name:{pt:"Dia de Eleição",en:"Election Day"}},"11-02":{_name:"11-02"},"11-15":{name:{pt:"Proclamação da República",en:"Republic Day"}},"11-20":{name:{pt:"Dia da Consciência Negra",en:"Black Awareness Day"},active:[{from:"2023-12-21T00:00:00.000Z"}]},"12-24 14:00":{_name:"12-24",type:"optional"},"12-25":{_name:"12-25"},"12-31 14:00":{_name:"12-31",type:"optional"}},states:{AC:{name:"Acre",zones:["America/Rio_Branco"],days:{"01-12":{name:{pt:"Dia do evangélico"},active:[{from:"2004-01-29T00:00:00.000Z"}]},"03-08":{name:{pt:"Alusivo ao Dia Internacional da Mulher"},active:[{from:"2001-09-14T00:00:00.000Z"}]},"06-15":{name:{pt:"Aniversário do estado"},active:[{from:"1964-09-02T00:00:00.000Z"}]},"09-05":{name:{pt:"Dia da Amazônia"},active:[{from:"2004-01-05T00:00:00.000Z"}]},"11-17":{name:{pt:"Assinatura do Tratado de Petrópolis"},type:"optional",active:[{from:"2012-02-21T00:00:00.000Z"}]}}},AL:{name:"Alagoas",zones:["America/Maceio"],days:{"06-24":{name:{pt:"São João"},active:[{from:"1993-07-07T00:00:00.000Z"}]},"06-29":{name:{pt:"São Pedro"},active:[{from:"1993-07-07T00:00:00.000Z"}]},"09-16":{name:{pt:"Emancipação política"}},"11-20":{name:{pt:"Morte de Zumbi dos Palmares"},active:[{from:"1995-08-01T00:00:00.000Z"}]}}},AM:{name:"Amazonas",zones:["America/Manaus"],days:{"09-05":{name:{pt:"Elevação do Amazonas à categoria de província"},active:[{from:"1977-12-21T00:00:00.000Z"}]},"11-20":{name:{pt:"Dia da Consciência Negra"},active:[{from:"2010-07-08T00:00:00.000Z",to:"2023-12-21T00:00:00.000Z"}]}}},AP:{name:"Amapá",zones:["America/Belem"],days:{"03-19":{name:{pt:"Dia de São José"},note:"Santo padroeiro do Estado do Amapá",active:[{from:"2002-04-16T00:00:00.000Z"}]},"09-13":{name:{pt:"Criação do Território Federal"}}}},BA:{name:"Bahia",zones:["America/Bahia"],days:{"07-02":{name:{pt:"Independência da Bahia"}}}},CE:{name:"Ceará",zones:["America/Fortaleza"],days:{"03-25":{name:{pt:"Data magna do estado"},active:[{from:"2011-12-01T00:00:00.000Z"}]}}},DF:{name:"Distrito Federal",zones:["America/Sao_Paulo"],days:{"04-21":{name:{pt:"Fundação de Brasília"}},"11-30":{name:{pt:"Dia do Evangélico"},type:"public",active:[{from:"1995-12-04T00:00:00.000Z"}]}}},MA:{name:"Maranhão",zones:["America/Belem"],days:{"07-28":{name:{pt:"Adesão do Maranhão à independência do Brasil"},active:[{from:"1964-10-02T00:00:00.000Z"}]}}},MG:{name:"Minas Gerais",zones:["America/Sao_Paulo"],days:{"04-21":{name:{pt:"Data magna do estado"}}},regions:{BH:{name:"Belo Horizonte",days:{"08-15":{_name:"08-15",name:{pt:"Assunção de Nossa Senhora"},type:"public"},"12-08":{_name:"12-08",type:"public"}}}}},MS:{name:"Mato Grosso do Sul",zones:["America/Campo_Grande"],days:{"10-11":{name:{pt:"Criação do estado"},active:[{from:"1979-10-29T00:00:00.000Z"}]}}},MT:{name:"Mato Grosso",zones:["America/Cuiaba"],days:{"11-20":{name:{pt:"Dia da Consciência Negra"},active:[{from:"2002-12-27T00:00:00.000Z",to:"2023-12-21T00:00:00.000Z"}]}}},PA:{name:"Pará",zones:["America/Santarem"],days:{"08-15":{name:{pt:"Adesão do Grão-Pará à independência do Brasil"},active:[{from:"1996-09-10T00:00:00.000Z"}]}}},PB:{name:"Paraíba",zones:["America/Recife"],days:{"07-26":{name:{pt:"Homenagem à memória do ex-presidente João Pessoa"}},"08-05":{name:{pt:"Nossa Senhora das Neves"},note:"Fundação do Estado em 1585 e dia da sua padroeira",active:[{from:"1967-08-30T00:00:00.000Z"}]}}},PE:{name:"Pernambuco",zones:["America/Recife"],days:{"1st sunday in March":{name:{pt:"Revolução Pernambucana de 1817"},active:[{from:"2009-07-02T00:00:00.000Z"}]}},regions:{RE:{name:"Recife",days:{"06-24":{name:{pt:"São João",en:"Saint John's Day"},type:"public"},"07-16":{name:{pt:"Nossa Senhora do Carmo"},type:"public"},"12-08":{_name:"12-08",name:{pt:"Nossa Senhora da Conceição"},type:"public"}}}}},PI:{name:"Piauí",zones:["America/Fortaleza"],days:{"10-19":{name:{pt:"Dia do Piauí"},active:[{from:"1937-01-01T00:00:00.000Z"}]}}},PR:{name:"Paraná",zones:["America/Sao_Paulo"],days:{"12-19":{name:{pt:"Emancipação política do estado do Paraná"},active:[{from:"1962-12-18T00:00:00.000Z"}]}},regions:{CU:{name:"Curitiba",days:{"09-08":{name:{pt:"Nossa Senhora da Luz dos Pinhais"},type:"public"}}}}},RJ:{name:"Rio de Janeiro",zones:["America/Sao_Paulo"],days:{"easter -47":{name:{pt:"Carnaval"},active:[{from:"2008-05-14T00:00:00.000Z"}]},"04-23":{name:{pt:"Dia de São Jorge"},active:[{from:"2008-03-05T00:00:00.000Z"}]},"3rd tuesday in October":{name:{pt:"Dia do Comércio"},type:"observance",note:"feriado para os comerciantes e trabalhadores da construção civil"},"11-20":{name:{pt:"Dia da Consciência Negra"},active:[{from:"2002-11-11T00:00:00.000Z",to:"2023-12-21T00:00:00.000Z"}]}},regions:{RJ:{name:"Rio de Janeiro",days:{"01-20":{name:{pt:"Dia de São Sebastião"},type:"public",active:[{from:"1988-06-27T00:00:00.000Z"}]}}}}},RN:{name:"Rio Grande do Norte",zones:["America/Recife"],days:{"10-03":{name:{pt:"Mártires de Cunhaú e Uruaçu"},active:[{from:"2006-12-06T00:00:00.000Z"}]}}},RO:{name:"Rondônia",zones:["America/Porto_Velho"],days:{"01-04":{name:{pt:"Criação do estado"},active:[{from:"2010-04-22T00:00:00.000Z"}]},"06-18":{name:{pt:"Dia do evangélico"},active:[{from:"2001-12-20T00:00:00.000Z"}]}}},RR:{name:"Roraima",zones:["America/Boa_Vista"],days:{"10-05":{name:{pt:"Criação do estado"}}}},RS:{name:"Rio Grande do Sul",zones:["America/Sao_Paulo"],days:{"09-20":{name:{pt:"Proclamação da República Rio-Grandense"}}}},SC:{name:"Santa Catarina",zones:["America/Sao_Paulo"],days:{"08-11":{name:{pt:"Dia de Santa Catarina"},active:[{from:"2004-01-22T00:00:00.000Z",to:"2005-07-15T00:00:00.000Z"}]},"08-11 if monday,tuesday,wednesday,thursday,friday,saturday then next sunday":{name:{pt:"Dia de Santa Catarina"},active:[{from:"2005-07-15T00:00:00.000Z"}]},"11-25":{name:{pt:"Dia de Santa Catarina de Alexandria"},active:[{from:"1996-12-26T00:00:00.000Z",to:"2005-07-15T00:00:00.000Z"}]},"11-25 if monday,tuesday,wednesday,thursday,friday,saturday then next sunday":{name:{pt:"Dia de Santa Catarina de Alexandria"},active:[{from:"2005-07-15T00:00:00.000Z"}]}}},SE:{name:"Sergipe",zones:["America/Recife"],days:{"07-08":{name:{pt:"Emancipação política de Sergipe"}}}},SP:{name:"São Paulo",zones:["America/Sao_Paulo"],days:{"07-09":{name:{pt:"Revolução Constitucionalista"},active:[{from:"1997-03-05T00:00:00.000Z"}]},"11-20":{name:{pt:"Dia da Consciência Negra"},active:[{from:"2023-09-12T00:00:00.000Z",to:"2023-12-21T00:00:00.000Z"}]}},regions:{SP:{name:"São Paulo",days:{"easter 60":{_name:"easter 60",type:"public"},"01-25":{name:{pt:"Aniversário da Cidade",en:"City Birthday"},type:"public"},"11-20":{name:{pt:"Dia da Consciência Negra"},active:[{from:"2004-01-07T00:00:00.000Z"}]}}}}},TO:{name:"Tocantins",zones:["America/Araguaina"],days:{"10-05":{name:{pt:"Criação do estado"},active:[{from:"1989-11-17T00:00:00.000Z"}]},"03-18":{name:{pt:"Autonomia do Estado"},active:[{from:"1998-03-17T00:00:00.000Z"}]},"09-08":{name:{pt:"Nossa Senhora da Natividade"},note:"Padroeira do Estado",active:[{from:"1993-12-28T00:00:00.000Z"}]}}}}},BS:{names:{en:"Bahamas"},dayoff:"sunday",langs:["en"],zones:["America/Nassau"],days:{"01-01":{_name:"01-01"},"01-10 and if saturday,sunday then next monday":{substitute:!0,name:{en:"Majority Rule Day"}},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"easter 49":{_name:"easter 49",type:"observance"},"easter 50":{_name:"easter 50"},"1st friday in June":{_name:"05-01",name:{en:"Randol Fawkes Labour Day"}},"07-10 and if saturday,sunday then next monday":{substitute:!0,_name:"Independence Day"},"1st monday in August":{name:{en:"Emancipation Day"}},"10-12 and if saturday,sunday then next monday":{substitute:!0,name:{en:"National Heroes' Day"}},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}},BW:{names:{en:"Botswana"},dayoff:"sunday",langs:["en"],zones:["Africa/Maputo"],days:{"01-01":{_name:"01-01",note:"except mining industy"},"01-02":{name:{en:"New Year's Holiday"},note:"except mining industy"},"substitutes 01-02 if monday then next tuesday":{name:{en:"Public Holiday"},note:"except mining industy"},"easter -2":{_name:"easter -2"},"easter -1":{_name:"easter -1",note:"except mining industy"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1",note:"except mining industy"},"easter 39":{_name:"easter 39",note:"except mining industy"},"05-01":{_name:"05-01",note:"except mining industy"},"substitutes 05-01 if sunday then next monday":{name:{en:"Public Holiday"},note:"except mining industy"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"07-01":{name:{en:"Sir Seretse Khama Day"},note:"except mining industy"},"substitutes 07-01 if sunday then next monday":{name:{en:"Public Holiday"},note:"except mining industy"},"3rd monday in July":{name:{en:"Presidents Day"},note:"except mining industy"},"tuesday after 3rd monday in July":{name:{en:"Presidents Day Holiday"},note:"except mining industy"},"09-30":{name:{en:"Botswana Day"}},"substitutes 09-30 if saturday,sunday then next monday":{name:{en:"Public Holiday"}},"12-25":{_name:"12-25"},"12-26":{_name:"12-26",name:{en:"Family Day"},note:"except mining industy"},"substitutes 12-26 if monday then next tuesday":{name:{en:"Public Holiday"}}}},BY:{names:{be:"Рэспубліка Беларусь",ru:"Республика Беларусь",en:"Belarus"},zones:["Europe/Minsk"],langs:["be","ru"],days:{"01-01":{_name:"01-01"},"julian 12-25":{_name:"12-25",name:{be:"Каляды праваслаўныя"}},easter:{_name:"easter",name:{be:"Вялiкдзень каталiцкi"},type:"observance"},orthodox:{name:{en:"Orthodox Easter",be:"Вялiкдзень праваслаўны"},type:"observance"},"orthodox +9":{name:{en:"Commemoration Day",be:"Радунiца"}},"03-08":{_name:"03-08"},"05-01":{_name:"05-01"},"05-09":{name:{en:"Victory Day",be:"Дзень Перамогi"}},"07-03":{_name:"Independence Day",active:[{from:1996}]},"11-07":{name:{en:"October Revolution Day",be:"Дзень Кастрычніцкай рэвалюцыі"}},"12-25":{_name:"12-25",name:{be:"Каляды каталiцкiя"}}}},BZ:{names:{en:"Belize"},dayoff:"sunday",langs:["en"],zones:["America/Belize"],days:{"01-01":{_name:"01-01"},"01-15 if sunday then next monday":{name:{en:"George Price Day"}},"03-09 if friday,saturday,sunday then next monday if tuesday,wednesday,thursday then previous monday":{name:{en:"National Heroes and Benefactor Day"}},"easter -2":{_name:"easter -2"},"easter -1":{_name:"easter -1"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"05-01 if sunday then next monday":{_name:"05-01"},"08-01 if sunday then next monday":{name:{en:"Emancipation Day"}},"09-10 if sunday then next monday":{name:{en:"St. George's Caye Day"}},"09-21 if sunday then next monday":{_name:"Independence Day"},"10-12 if friday,saturday,sunday then next monday if tuesday,wednesday,thursday then previous monday":{name:{en:"Indigenous Peoples Resistance Day"}},"11-19 if sunday then next monday":{name:{en:"Garifuna Settlement Day"}},"12-25 and if sunday then next tuesday":{_name:"12-25",substitute:!0},"12-26 and if sunday then next monday":{_name:"12-26",substitute:!0}}},CA:{names:{en:"Canada",fr:"Canada"},zones:["America/Toronto","America/St_Johns","America/Halifax","America/Glace_Bay","America/Moncton","America/Goose_Bay","America/Blanc-Sablon","America/Nipigon","America/Thunder_Bay","America/Iqaluit","America/Pangnirtung","America/Resolute","America/Atikokan","America/Rankin_Inlet","America/Winnipeg","America/Rainy_River","America/Regina","America/Swift_Current","America/Edmonton","America/Cambridge_Bay","America/Yellowknife","America/Inuvik","America/Creston","America/Dawson_Creek","America/Fort_Nelson","America/Vancouver","America/Whitehorse","America/Dawson"],langs:["en","fr"],days:{"01-01":{_name:"01-01"},"02-02":{name:{en:"Groundhog Day",fr:"Jour de la marmotte"},type:"observance"},"02-14":{_name:"02-14",type:"observance"},"03-17":{name:{en:"St. Patricks Day",fr:"Fête de la Saint-Patrick"},type:"observance"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"2nd sunday after 05-01":{_name:"Mothers Day",type:"observance"},"monday before 05-25":{name:{en:"Victoria Day",fr:"Fête de la Reine"}},"3rd sunday after 06-01":{_name:"Fathers Day",type:"observance"},"07-01":{name:{en:"Canada Day",fr:"Fête du Canada"}},"1st monday in August":{name:{en:"Civic Holiday",fr:"Premier lundi daoût"}},"1st monday in September":{_name:"05-01"},"09-30 since 2021":{name:{en:"National Day for Truth and Reconciliation",fr:"Journée nationale de la vérité et de la réconciliation"},type:"observance",note:"Not a paid statutory holiday in all provinces and territories; Only federally-regulated employers governed by the Canada Labour Code are required to give their employees a paid day off work"},"2nd monday after 10-01":{name:{en:"Thanksgiving",fr:"Action de grâce"}},"10-31 18:00":{name:{en:"Halloween",fr:"l'Halloween"},type:"observance"},"11-11":{name:{en:"Remembrance Day",fr:"Jour du Souvenir"}},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}},states:{AB:{name:"Alberta",zones:["America/Edmonton"],days:{"3rd monday after 02-01":{name:{en:"Family Day",fr:"Fête de la famille"}},"easter 1":{_name:"easter 1",type:"optional"},"1st monday in August":{name:{en:"Heritage Day",fr:"Fête du patrimoine"},type:"optional"},"09-30 since 2021":!1}},BC:{name:"British Columbia",zones:["America/Vancouver","America/Edmonton","America/Creston","America/Dawson_Creek"],days:{"2nd monday after 02-01":{name:{en:"Family Day",fr:"Fête de la famille"},active:[{to:2019}]},"3rd monday after 02-01":{name:{en:"Family Day",fr:"Fête de la famille"},active:[{from:2019}]}}},MB:{name:"Manitoba",zones:["America/Winnipeg"],days:{"3rd monday after 02-01":{name:{en:"Louis Riel Day",fr:"Journée Louis Riel"}},"1st monday in August":{name:{en:"Terry Fox Day",fr:"Journée Terry Fox"}}}},NB:{name:"New Brunswick",zones:["America/Moncton"],days:{"1st monday in August":{name:{en:"New Brunswick Day",fr:"Jour de Nouveau Brunswick"}},"3rd monday after 02-01":{name:{en:"Family Day",fr:"Fête de la famille"},active:[{from:2018}]},"09-30 since 2021":!1}},NL:{name:"Newfoundland and Labrador",zones:["America/St_Johns","America/Goose_Bay"],days:{"03-17":{name:{en:"Saint Patrick's Day",fr:"Jour de la Saint-Patrick"},type:"optional"},"04-23":{name:{en:"Saint George's Day",fr:"Jour de St. George"},type:"optional"},"06-24":{name:{en:"Discovery Day",fr:"Journée découverte"},type:"optional"},"07-12":{name:{en:"Orangemen's Day",fr:"Fête des orangistes"},type:"optional"},"11-11":{name:{en:"Armistice Day",fr:"Jour de l'Armistice"}}}},NS:{name:"Nova Scotia",zones:["America/Halifax","America/Moncton"],days:{"3rd monday after 02-01":{name:{en:"Heritage Day",fr:"Fête du Patrimoine"}},"1st monday in August":{name:{en:"Natal Day",fr:"Jour de la Fondation"}}}},NT:{name:"Northwest Territories",zones:["America/Yellowknife","America/Inuvik"],days:{"06-21 since 2001":{name:{en:"National Indigenous Peoples Day",fr:"Journée nationale des Autochthones"}}}},NU:{name:"Nunavut",zones:["America/Iqaluit","America/Pangnirtung","America/Resolute","America/Rankin_Inlet","America/Atikokan","America/Cambridge_Bay"],days:{"07-09":{name:{en:"Nunavut Day"},type:"bank"},"09-30 since 2021":!1}},ON:{name:"Ontario",zones:["America/Toronto","America/Nipigon","America/Thunder_Bay","America/Atikokan","America/Rainy_River","America/Winnipeg"],days:{"3rd monday after 02-01":{name:{en:"Family Day",fr:"Fête de la famille"}},"easter 1":{_name:"easter 1"},"09-30 since 2021":!1}},PE:{name:"Prince Edward Island",days:{"3rd monday after 02-01":{name:{en:"Islander Day",fr:"Fête des Insulaires"}},"easter 1":{_name:"easter 1",type:"optional"},"3rd friday after 08-01":{name:{en:"Gold Cup Parade Day",fr:"Défilé de la Coupe d'or"}},"09-30 since 2021":!1}},QC:{name:"Quebec",zones:["America/Blanc-Sablon","America/Toronto","America/Nipigon"],days:{"easter -2":{_name:"easter -2",note:"Either Good Friday or Easter Monday, at the employers option"},"easter 1":{_name:"easter 1",note:"Either Good Friday or Easter Monday, at the employers option"},"monday before 05-25":{name:{en:"National Patriots' Day",fr:"Journée nationale des patriotes"}},"06-24":{name:{en:"National Holiday",fr:"Fête nationale du Québec"}},"monday after 08-01":!1,"09-30 since 2021":!1}},SK:{name:"Saskatchewan",zones:["America/Regina","America/Swift_Current","America/Edmonton"],days:{"3rd monday after 02-01":{name:{en:"Family Day",fr:"Fête de la famille"}},"1st monday in August":{name:{en:"Saskatchewan Day"}},"09-30 since 2021":!1}},YT:{name:"Yukon",zones:["America/Whitehorse","America/Dawson"],days:{"easter 1":{_name:"easter 1"},"3rd monday in August":{name:{en:"Discovery Day",fr:"Jour de la Découverte"}},"06-21 since 2017":{name:{en:"National Indigenous Peoples Day",fr:"Journée nationale des Autochthones"}}}}}},CC:{names:{en:"Cocos (Keeling) Islands"},langs:["en"],zones:["Indian/Cocos"],dayoff:"sunday",days:{"chinese 01-0-01 and if sunday then next tuesday if saturday then next monday":{name:{en:"Chinese New Year"},substitute:!0},"chinese 01-0-02 and if sunday then next tuesday if saturday then next monday":{name:{en:"Chinese New Year (2nd Day)"},substitute:!0},"01-01":{_name:"01-01"},"01-26":{name:{en:"Australia Day"}},"03-20":{name:{en:"Labour Day"}},"easter 1":{_name:"easter 1"},"04-06":{name:{en:"Self Determination Day"}},"04-25":{name:{en:"Anzac Day"}},"12-25 and if sunday then next tuesday":{_name:"12-25",substitute:!0},"12-26 and if sunday then next monday":{_name:"12-26",substitute:!0},"1 Muharram and if sunday then next monday":{substitute:!0,_name:"1 Muharram"},"1 Shawwal and if sunday then next monday":{substitute:!0,_name:"1 Shawwal",name:{en:"Hari Raya Puasa"}},"10 Dhu al-Hijjah and if sunday then next monday":{substitute:!0,_name:"10 Dhu al-Hijjah",name:{en:"Hari Raya Haji"}},"12 Rabi al-awwal and if sunday then next monday":{substitute:!0,_name:"12 Rabi al-awwal",name:{en:"Hari Maulaud Nabi"}}}},CD:{names:{fr:"République démocratique du Congo",en:"Democratic Republic of the Congo"},dayoff:"sunday",langs:["fr"],zones:["Africa/Maputo","Africa/Lagos"],days:{"01-01 and if sunday then next monday":{substitute:!0,_name:"01-01"},"01-04 and if sunday then next monday":{substitute:!0,name:{fr:"Martyrs de l'Indépendance",en:"Day of the Martyrs"}},"01-16 and if sunday then next tuesday":{substitute:!0,name:{fr:"Journée du Héro National Laurent Désiré Kabila",en:"Anniversary of President Laurent Kabila"}},"01-17 and if sunday then next monday":{substitute:!0,name:{fr:"Journée du Héro National Patrice Emery Lumumba",en:"Anniversary of Prime Minister Patrice Emery Lumumba"}},"05-01 and if sunday then next monday":{substitute:!0,_name:"05-01"},"05-17 and if sunday then next monday":{substitute:!0,name:{fr:"Journée de la Révolution et des Forces Armées",en:"Liberation Day"}},"06-30 and if sunday then next monday":{substitute:!0,_name:"Independence Day",name:{fr:"Anniversaire de Indépendance"}},"08-01 and if sunday then next monday":{substitute:!0,name:{fr:"Fête des parents",en:"Parents' Day"}},"12-25 and if sunday then next monday":{substitute:!0,_name:"12-25"},"2016-01-15":{_name:"Public Holiday"}}},CF:{names:{fr:"République centrafricaine",sg:"Ködörösêse tî Bêafrîka",en:"Central African Republic"},dayoff:"sunday",langs:["fr","sg"],zones:["Africa/Lagos"],days:{"01-01":{_name:"01-01"},"03-29":{name:{fr:"Décès du Fondateur Barthélémy Boganda",en:"Boganda Day"}},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"easter 39":{_name:"easter 39"},"easter 50":{_name:"easter 50"},"06-30":{name:{fr:"Journée de prière",en:"General Prayer Day"}},"08-13":{_name:"Independence Day"},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"12-01":{name:{fr:"Jour de la République",en:"Republic Day"}},"12-25":{_name:"12-25"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},CG:{names:{fr:"République du Congo",en:"Republic of the Congo"},dayoff:"sunday",langs:["fr","en"],zones:["Africa/Lagos"],days:{"01-01":{_name:"01-01"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"easter 39":{_name:"easter 39"},"easter 49":{_name:"easter 49"},"easter 50":{_name:"easter 50"},"06-10":{name:{fr:"Fête de la commémoration de la conférence nationale souveraine"}},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"11-28":{name:{fr:"Journée nationale de la République"}},"12-25":{_name:"12-25"}}},CH:{names:{de:"Schweiz",fr:"Suisse",it:"Svizzera",en:"Switzerland"},dayoff:"sunday",langs:["de-ch","de","fr","it"],zones:["Europe/Zurich"],days:{"01-01":{_name:"01-01"},"easter -3":{_name:"easter -3",type:"observance"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"easter 39":{_name:"easter 39",name:{de:"Auffahrt"}},"easter 49":{_name:"easter 49"},"easter 50":{_name:"easter 50"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"1st sunday in June":{name:{de:"Vätertag",fr:"Fête des pères"},type:"observance",active:[{from:"2009-01-01"}]},"08-01":{name:{de:"Bundesfeiertag",fr:"Fête nationale",it:"Giorno festivo federale"}},"3rd sunday after 09-01":{name:{de:"Eidg. Dank-, Buss- und Bettag",fr:"Jeûne fédéral",it:"Digiuno federale",en:"Federal Day of Thanksgiving, Repentance and Prayer"}},"12-25":{_name:"12-25",name:{de:"Weihnachtstag"}},"12-26":{_name:"12-26",name:{de:"Stephanstag",fr:"Saint-Etienne"}}},states:{ZH:{names:{de:"Kanton Zürich",fr:"Canton de Zurich",it:"Canton Zurigo",en:"Canton of Zürich"},days:{"01-02":{name:{de:"Berchtoldstag",fr:"Saint-Berthold"},type:"optional"},"05-01":{_name:"05-01"},"easter 50":{_name:"easter 50"},"monday after 2nd saturday in September 13:00":{name:{de:"Knabenschiessen"},type:"optional"}}},BE:{names:{de:"Kanton Bern",fr:"Canton de Berne",it:"Canton Berna",en:"Canton of Bern"},days:{"01-02":{name:{de:"Berchtoldstag",fr:"2 janvier"}}}},LU:{names:{de:"Kanton Luzern",fr:"Canton de Lucerne",it:"Canton Lucerna",en:"Canton of Lucerne"},days:{"01-02":{name:{de:"Berchtoldstag",fr:"Saint-Berthold"},type:"optional"},"03-19":{_name:"03-19",type:"observance"},"easter 1":{_name:"easter 1",type:"optional"},"easter 50":{_name:"easter 50",type:"optional"},"easter 60":{_name:"easter 60"},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"12-08":{_name:"12-08"}}},UR:{names:{de:"Kanton Uri",fr:"Canton d'Uri",it:"Canton Uri",en:"Canton of Uri"},days:{"01-06":{_name:"01-06"},"03-19":{_name:"03-19"},"easter 60":{_name:"easter 60"},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"12-08":{_name:"12-08"},"12-26":!1,"12-26 not on monday, friday":{_name:"12-26"}}},SZ:{names:{de:"Kanton Schwyz",fr:"Canton de Schwytz",it:"Canton Svitto",en:"Canton of Schwyz"},days:{"01-06":{_name:"01-06"},"03-19":{_name:"03-19"},"easter 60":{_name:"easter 60"},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"12-08":{_name:"12-08"}}},OW:{names:{de:"Kanton Obwalden",fr:"Canton d'Obwald",it:"Canton Obvaldo",en:"Canton of Obwalden"},days:{"01-02":{name:{de:"Berchtoldstag",fr:"Saint-Berthold"},type:"optional"},"easter 1":{_name:"easter 1",type:"optional"},"easter 50":{_name:"easter 50",type:"optional"},"easter 60":{_name:"easter 60"},"08-15":{_name:"08-15"},"09-25":{name:{de:"Bruderklausenfest",fr:"Saint-Nicholas-de-Flüe",en:"Saint Nicholas of Flüe"}},"11-01":{_name:"11-01"},"12-08":{_name:"12-08"},"12-26":{_name:"12-26",type:"optional"}}},NW:{names:{de:"Kanton Nidwalden",fr:"Canton de Nidwald",it:"Canton Nidvaldo",en:"Canton of Nidwalden"},days:{"01-02":{name:{de:"Berchtoldstag",fr:"Saint-Berthold"},type:"bank"},"03-19":{_name:"03-19"},"easter 1":{_name:"easter 1",type:"optional"},"easter 50":{_name:"easter 50",type:"optional"},"easter 60":{_name:"easter 60"},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"12-08":{_name:"12-08"},"12-26":{_name:"12-26",type:"optional"}}},GL:{sources:["https://www.gl.ch/verwaltung/staatskanzlei/oeffentliche-feiertage.html/1335"],names:{de:"Kanton Glarus",fr:"Canton de Glaris",it:"Canton Glarona",en:"Canton of Glarus"},days:{"01-02":{name:{de:"Berchtoldstag",fr:"Saint-Berthold"},type:"optional"},"Thursday after 04-02 if is observance holiday then next Thursday":{name:{de:"Näfelser Fahrt",fr:"Bataille de Näfels"}},"3rd sunday after 09-01":!1,"11-01":{_name:"11-01"},"12-24":{_name:"12-24"},"12-31":{_name:"12-31"}}},ZG:{names:{de:"Kanton Zug",fr:"Canton de Zoug",it:"Canton Zugo",en:"Canton of Zug"},days:{"01-02":{name:{de:"Berchtoldstag",fr:"Saint-Berthold"},type:"optional"},"easter 1":{_name:"easter 1",type:"optional"},"easter 50":{_name:"easter 50",type:"optional"},"easter 60":{_name:"easter 60"},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"12-08":{_name:"12-08"},"12-26":{_name:"12-26",type:"optional"}}},FR:{names:{fr:"Canton de Fribourg",de:"Kanton Freiburg",it:"Canton Friburgo",en:"Canton of Fribourg"},langs:["fr","de-ch","de","it"],days:{"01-02":{name:{de:"Berchtoldstag",fr:"Saint-Berthold"},type:"optional"},"easter 1":{_name:"easter 1",type:"optional"},"easter 50":{_name:"easter 50",type:"optional"},"easter 60":{_name:"easter 60",note:"excluding communities: Agriswil, Altavilla, Büchslen, Cordast, Courgevaux, Courlevon, Fräschels, Galmiz, Gempenach, Greng, Jeuss, Kerzers, Lurtigen, Meyriez, Muntelier, Murten, Ried bei Kerzers (halb), Salvenach, Ulmiz, Bas-Vully, Haut-Vully\n"},"08-15":{_name:"08-15",note:"excluding communities: Agriswil, Altavilla, Büchslen, Cordast, Courgevaux, Courlevon, Fräschels, Galmiz, Gempenach, Greng, Jeuss, Kerzers, Lurtigen, Meyriez, Muntelier, Murten, Ried bei Kerzers (halb), Salvenach, Ulmiz, Bas-Vully, Haut-Vully\n"},"11-01":{_name:"11-01",note:"excluding communities: Agriswil, Altavilla, Büchslen, Cordast, Courgevaux, Courlevon, Fräschels, Galmiz, Gempenach, Greng, Jeuss, Kerzers, Lurtigen, Meyriez, Muntelier, Murten, Ried bei Kerzers (halb), Salvenach, Ulmiz, Bas-Vully, Haut-Vully\n"},"12-08":{_name:"12-08",note:"excluding communities: Agriswil, Altavilla, Büchslen, Cordast, Courgevaux, Courlevon, Fräschels, Galmiz, Gempenach, Greng, Jeuss, Kerzers, Lurtigen, Meyriez, Muntelier, Murten, Ried bei Kerzers (halb), Salvenach, Ulmiz, Bas-Vully, Haut-Vully\n"},"12-26":{_name:"12-26",type:"optional"}}},SO:{names:{de:"Kanton Solothurn",fr:"Canton de Soleure",it:"Canton Soletta",en:"Canton of Solothurn"},days:{"01-02":{name:{de:"Berchtoldstag",fr:"Saint-Berthold"},type:"optional"},"03-19":{_name:"03-19",note:"Only in communities: Fulenbach, Walterswil, Wisen, Metzerlen, Nulgar-St. Pantaleon, Rodersdorf, Bärschwil, Büsserach\n"},"easter 1":{_name:"easter 1",type:"optional"},"05-01 12:00":{_name:"05-01"},"easter 50":{_name:"easter 50",type:"optional"},"easter 60":{_name:"easter 60",note:"is optional in Bucheggberg"},"08-15":{_name:"08-15",note:"is optional in Bucheggberg"},"11-01":{_name:"11-01",note:"is optional in Bucheggberg"},"12-26":{_name:"12-26",type:"optional"}}},BS:{names:{de:"Kanton Basel-Stadt",fr:"Canton de Bâle-Ville",it:"Canton Basilea Città",en:"Canton of Basel-City"},days:{"05-01":{_name:"05-01"}}},BL:{names:{de:"Kanton Basel-Landschaft",fr:"Canton de Bâle-Campagne",it:"Canton Basilea Campagna",en:"Canton of Basel-Country"},days:{"05-01":{_name:"05-01"},"easter 60":{_name:"easter 60",type:"observance"}}},SH:{names:{de:"Kanton Schaffhausen",fr:"Canton de Schaffhouse",it:"Canton Sciaffusa",en:"Canton of Schaffhausen"},days:{"01-02":{name:{de:"Berchtoldstag",fr:"Saint-Berthold"},type:"optional"},"05-01":{_name:"05-01"}}},AR:{names:{de:"Kanton Appenzell Ausserrhoden",fr:"Canton d'Appenzell Rhodes-Extérieures",it:"Canton Appenzello Esterno",en:"Canton of Appenzell Outer Rhodes"},days:{"12-26":!1,"12-26 not on monday":{_name:"12-26"}}},AI:{names:{de:"Kanton Appenzell Innerrhoden",fr:"Canton d'Appenzell Rhodes-Intérieures",it:"Canton Appenzello Interno",en:"Canton of Appenzell Inner-Rhodes"},days:{"easter 60":{_name:"easter 60"},"08-15":{_name:"08-15"},"09-22":{name:{de:"Mauritiustag"},note:"excluding: Bezirk Oberegg\n"},"11-01":{_name:"11-01"},"12-26":{type:"observance"},"12-26 not on tuesday, saturday":{_name:"12-26"}}},SG:{names:{de:"Kanton St. Gallen",fr:"Canton de Saint-Gall",it:"Canton San Gallo",en:"Canton of St. Gallen"},days:{"11-01":{_name:"11-01"}}},GR:{names:{de:"Kanton Graubünden",it:"Cantone dei Grigioni",fr:"Canton des Grisons",en:"Canton of Grisons"},langs:["de-ch","de","it","fr"],days:{"01-06":{_name:"01-06",type:"observance"},"03-19":{_name:"03-19",type:"observance"},"easter -2":{_name:"easter -2",type:"optional"},"easter 60":{_name:"easter 60",type:"observance"},"08-15":{_name:"08-15",type:"observance"},"11-01":{_name:"11-01",type:"observance"},"12-08":{_name:"12-08",type:"observance"}}},AG:{names:{de:"Kanton Aargau",fr:"Canton d'Argovie",it:"Canton Argovia",en:"Canton of Aargau"},days:{"01-02":{name:{de:"Berchtoldstag",fr:"Saint-Berthold"}},"05-01":{_name:"05-01"},"easter 60":{_name:"easter 60"},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"12-08":{_name:"12-08"}}},TG:{names:{de:"Kanton Thurgau",fr:"Canton de Thurgovie",it:"Canton Turgovia",en:"Canton of Thurgau"},days:{"01-02":{name:{de:"Berchtoldstag",fr:"Saint-Berthold"}},"05-01":{_name:"05-01"}}},TI:{names:{it:"Canton Ticino",de:"Kanton Tessin",fr:"Canton du Tessin",en:"Canton of Ticino"},langs:["it","de-ch","de","fr"],days:{"01-02":{name:{de:"Berchtoldstag",fr:"Saint-Berthold"},type:"bank"},"01-06":{_name:"01-06",name:{it:"Epifania"}},"03-19":{_name:"03-19"},"easter -2":!1,"easter 60":{_name:"easter 60"},"05-01":{_name:"05-01"},"06-29":{_name:"06-29"},"1st sunday in June":!1,"08-15":{_name:"08-15",name:{it:"Assunzione"}},"11-01":{_name:"11-01"},"12-08":{_name:"12-08"}}},VD:{names:{fr:"Canton de Vaud",de:"Kanton Waadt",it:"Canton Vaud",en:"Canton of Vaud"},langs:["fr","de-ch","de","it"],days:{"01-02":{name:{de:"Berchtoldstag",fr:"2 Janvier"}},"monday after 3rd sunday in September":{name:{de:"Bettagsmontag",fr:"Lundi du Jeûne Fédéral",en:"Monday after Federal Day of Thanksgiving, Repentance and Prayer"}},"12-26":!1}},VS:{names:{fr:"Canton du Valais",de:"Kanton Wallis",it:"Canton Vallese",en:"Canton of Valais"},langs:["fr","de-ch","de","it"],days:{"01-02":{name:{de:"Berchtoldstag",fr:"Saint-Berthold"},type:"bank"},"03-19":{_name:"03-19"},"easter -2":!1,"easter 1":{_name:"easter 1",type:"optional"},"05-01 12:00":{_name:"05-01"},"easter 50":{_name:"easter 50"},"easter 60":{_name:"easter 60"},"08-15":{_name:"08-15"},"monday after 3rd sunday after 09-01":{name:{de:"Bettagsmontag",fr:"Lundi du Jeûne Fédéral",en:"Monday after Federal Day of Thanksgiving, Repentance and Prayer"},type:"bank"},"11-01":{_name:"11-01"},"12-08":{_name:"12-08"},"12-24 12:00":{_name:"12-24"},"12-26":{type:"optional"}}},NE:{names:{fr:"Canton de Neuchâtel",de:"Kanton Neuenburg",it:"Canton Neuchâtel",en:"Canton of Neuchâtel"},langs:["fr","de-ch","de","it"],days:{"01-02 on monday":{name:{de:"Berchtoldstag",fr:"2 Janvier"}},"01-02":{name:{de:"Berchtoldstag",fr:"2 Janvier"},type:"observance"},"03-01":{name:{fr:"Instauration de la République",de:"Jahrestag Ausrufung der Republik"}},"easter -2":{_name:"easter -2"},"05-01":{_name:"05-01"},"easter 50":{_name:"easter 50",type:"observance"},"easter 60":{_name:"easter 60"},"monday after 3rd sunday in September":{name:{de:"Bettagsmontag",fr:"Lundi du Jeûne Fédéral",en:"Monday after Federal Day of Thanksgiving, Repentance and Prayer"},type:"optional"},"12-26":{type:"observance"},"12-26 on monday":{_name:"12-26"}}},GE:{names:{fr:"Canton de Genève",de:"Kanton Genf",it:"Canton Ginevra",en:"Canton of Geneva"},langs:["fr","de-ch","de","it"],days:{"01-02":{name:{de:"Berchtoldstag",fr:"2 Janvier"},type:"bank"},"thursday after 1st sunday after 09-01":{name:{de:"Genfer Bettag",fr:"Jeûne Genevois"}},"12-26":{type:"bank"},"12-31":{name:{de:"Wiederherstellung der Republik",fr:"Restauration de la République",en:"Restoration of the Republic"}},"3rd sunday after 09-01":!1}},JU:{names:{fr:"Canton du Jura",de:"Kanton Jura",it:"Canton Giura",en:"Canton of Jura"},langs:["fr","de-ch","de","it"],days:{"01-02":{name:{de:"Berchtoldstag",fr:"2 Janvier"}},"05-01":{_name:"05-01"},"easter 60":{_name:"easter 60"},"06-23":{name:{fr:"Plébiscite jurassien",en:"Jura Plebiscite",de:"Fest der Unabhängigkeit"}},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"12-26":!1}}}},CI:{names:{fr:"République de Côte d'Ivoire",en:"Republic of Côte d'Ivoire"},langs:["fr","en"],zones:["Africa/Abidjan"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"easter 39":{_name:"easter 39"},"easter 50":{_name:"easter 50"},"08-07 since 1960":{_name:"Independence Day"},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"11-15 since 1996":{name:{en:"National Peace Day"}},"12-25":{_name:"12-25"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"27 Ramadan":{_name:"27 Ramadan"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},CK:{names:{rar:"Kūki 'Āirani",en:"Cook Islands"},langs:["en","rar"],zones:["Pacific/Rarotonga"],dayoff:"sunday",days:{"01-01 and if Saturday, Sunday then next Monday":{substitute:!0,_name:"01-01"},"01-02 and if Saturday then next Monday if Monday, Sunday then next Tuesday":{substitute:!0,name:{en:"Day after New Year's Day"}},"04-25":{name:{en:"Anzac Day"}},"easter -2":{_name:"easter -2"},"easter 1":{_name:"easter 1"},"1st Monday in June":{name:{en:"Queen's Birthday"}},"1st Friday in July":{name:{en:"Ra o te Ui Ariki (House of Ariki)",rar:"Ra o te Ui Ariki"}},"08-04 and if Saturday, Sunday then next Monday":{substitute:!0,_name:"Constitution Day"},"10-26 and if Saturday, Sunday then next Monday":{substitute:!0,name:{en:"National Gospel Day"}},"12-25 and if Saturday, Sunday then next Monday":{substitute:!0,_name:"12-25"},"12-26 and if Saturday then next Monday if Monday, Sunday then next Tuesday":{substitute:!0,_name:"12-26"}},states:{Aitutaki:{names:{en:"Aitutaki"},days:{"10-26 and if Saturday, Sunday then next Monday":{substitute:!0,name:{en:"Aitutaki Gospel Day"}}}},Atiu:{names:{en:"Atiu"},days:{"07-19 and if Saturday, Sunday then next Monday":{substitute:!0,name:{en:"Atiu Gospel Day"}}}},Mangaia:{names:{en:"Mangaia"},days:{"06-15 and if Saturday, Sunday then next Monday":{substitute:!0,name:{en:"Mangaia Gospel Day"}}}},Manihiki:{names:{en:"Manihiki"},days:{"08-08 and if Saturday, Sunday then next Monday":{substitute:!0,name:{en:"Manihiki Gospel Day"}}}},Mitiaro:{names:{en:"Mitiaro"},days:{"07-21 and if Saturday, Sunday then next Monday":{substitute:!0,name:{en:"Mitiaro Gospel Day"}}}},Palmerston:{names:{en:"Palmerston"},days:{"05-25 and if Saturday, Sunday then next Monday":{substitute:!0,name:{en:"Palmerston Gospel Day"}}}},Penrhyn:{names:{en:"Penrhyn"},days:{"05-13 and if Saturday, Sunday then next Monday":{substitute:!0,name:{en:"Penrhyn Gospel Day"}}}},Pukapuka:{names:{en:"Pukapuka"},days:{"12-06 and if Saturday, Sunday then next Monday":{substitute:!0,name:{en:"Pukapuka Gospel Day"}}}},Rakahanga:{names:{en:"Rakahanga"},days:{"08-15 and if Saturday, Sunday then next Monday":{substitute:!0,name:{en:"Rakahanga Gospel Day"}}}},Rarotonga:{names:{en:"Rarotonga"},days:{"07-25 and if Saturday, Sunday then next Monday":{substitute:!0,name:{en:"Rarotonga Gospel Day"}}}}}},CL:{names:{es:"Chile",en:"Chile"},dayoff:"sunday",langs:["es"],zones:["America/Santiago","Pacific/Easter"],days:{"01-01":{_name:"01-01"},"01-02 on monday since 2017":{name:"Día adicional",active:[{from:2017}]},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"05-01":{_name:"05-01"},"05-21":{name:{en:"Navy Day",es:"Día de las Glorias Navales"}},"06-21 since 2021 prior to 2022":{name:{en:"Indigenous People's Day",es:"Día de los Pueblos Indígenas"}},"june solstice in America/Santiago since 2022":{name:{en:"Indigenous People's Day",es:"Día de los Pueblos Indígenas"}},"06-29 if tuesday, wednesday, thursday then previous monday if friday then next monday":{_name:"06-29"},"07-16":{name:{en:"Our Lady of Mount Carmel",es:"Virgen del Carmen"}},"08-15":{_name:"08-15"},"2022-09-16":{name:{es:"Fiestas Patrias",en:"National Holiday"}},"09-17 on friday, monday since 2017":{name:{en:"National holiday",es:"Feriado Adicional Fiestas Patrias"}},"09-18":{name:{en:"National holiday",es:"Fiestas Patrias"}},"09-19":{name:{en:"Army Day",es:"Día de las Glorias del Ejército"}},"09-20 on friday":{name:{es:"Feriado Adicional Fiestas Patrias",en:"National Holiday"}},"10-12 if tuesday, wednesday, thursday then previous monday if friday then next monday":{name:{en:"Columbus Day",es:"Encuentro de Dos Mundos"}},"10-31 if wednesday then next friday if tuesday then previous friday":{_name:"Reformation Day"},"11-01":{_name:"11-01"},"12-08":{_name:"12-08"},"12-25":{_name:"12-25"},"12-31":{_name:"12-31",type:"bank"}},states:{AP:{name:"Arica y Parinacota",days:{"06-07":{name:{en:"Battle of Arica",es:"Asalto y Toma del Morro de Arica"}}}},BI:{name:"Biobío",regions:{CH:{name:"Chillán y Chillán Viejo",days:{"08-20":{name:{en:"Nativity of Liberator Bernardo O'Higgins",es:"Nacimiento del Prócer de la Independencia"},active:[{to:"2017-08-19"}]}}}}},NU:{name:"Ñuble",regions:{CH:{name:"Chillán y Chillán Viejo",days:{"08-20":{name:{en:"Nativity of Liberator Bernardo O'Higgins",es:"Nacimiento del Prócer de la Independencia"},active:[{from:"2017-08-19"}]}}}}},TA:{name:"Tarapacá",days:{"08-10":{name:{en:"Saint Lawrence",es:"San Lorenzo de Tarapacá"},type:"observance",disable:[2015]},"2015-08-10":{name:{en:"Saint Lawrence",es:"San Lorenzo de Tarapacá"}}}}}},CM:{names:{fr:"Cameroun",en:"Cameroon"},dayoff:"sunday",langs:["fr","en"],zones:["Africa/Lagos"],days:{"01-01":{_name:"01-01"},"02-11":{name:{fr:"Fête de la Jeunesse",en:"Youth Day"}},"easter -2":{_name:"easter -2"},"05-01 if sunday then next monday":{_name:"05-01"},"05-20":{name:{fr:"Fête nationale ou de l'unité",en:"National Day"}},"easter 39":{_name:"easter 39"},"08-15":{_name:"08-15"},"12-25":{_name:"12-25"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},CN:{names:{en:"China",zh:"中华人民共和国"},dayoff:"sunday",langs:["zh","en"],zones:["Asia/Shanghai","Asia/Urumqi"],days:{"01-01":{_name:"01-01"},"03-08 12:00":{_name:"03-08",note:"Women"},"05-01":{_name:"05-01"},"05-04 12:00":{name:{en:"Youth Day",zh:"青年节"},note:"Youth from the age of 14 to 28"},"06-01":{name:{en:"Children's Day",zh:"六一儿童节"},note:"Children below the age of 14"},"08-01 12:00":{name:{en:"Army Day",zh:"建军节"},note:"Military personnel in active service"},"10-01":{name:{en:"National Day",zh:"国庆节"}},"10-02":{name:{en:"National Day",zh:"国庆节"}},"10-03":{name:{en:"National Day",zh:"国庆节"}},"chinese 01-0-00":{name:{en:"Spring Festival",zh:"春节"}},"chinese 01-0-01":{name:{en:"Spring Festival",zh:"春节"}},"chinese 01-0-02":{name:{en:"Spring Festival",zh:"春节"}},"chinese 5-01 solarterm":{name:{en:"Qingming Festival",zh:"清明节 清明節"}},"chinese 05-0-05":{name:{en:"Dragon Boat Festival",zh:"端午节"}},"chinese 08-0-15":{name:{en:"Mid-Autumn Festival",zh:"中秋节"}},"2021-01-02":{_name:"01-01"},"2021-01-03":{_name:"01-01"},"2021-02-14":{name:{en:"Spring Festival",zh:"春节"},note:"Work on Sun February 7 and Sat February 20."},"2021-02-15":{name:{en:"Spring Festival",zh:"春节"}},"2021-02-16":{name:{en:"Spring Festival",zh:"春节"}},"2021-02-17":{name:{en:"Spring Festival",zh:"春节"}},"2021-04-03":{name:{en:"Qingming Festival",zh:"清明节 清明節"}},"2021-04-05":{name:{en:"Qingming Festival",zh:"清明节 清明節"}},"2021-05-02":{_name:"05-01",note:"Work on Sun April 25 and Sat May 8."},"2021-05-03":{_name:"05-01"},"2021-05-04":{_name:"05-01"},"2021-05-05":{_name:"05-01"},"2021-06-12":{name:{en:"Dragon Boat Festival",zh:"端午节"}},"2021-06-13":{name:{en:"Dragon Boat Festival",zh:"端午节"}},"2021-09-19":{name:{en:"Mid-Autumn Festival",zh:"中秋节"},note:"Work on Sat September 18."},"2021-09-20":{name:{en:"Mid-Autumn Festival",zh:"中秋节"}},"2021-10-04":{name:{en:"National Day",zh:"国庆节"},note:"Work on Sun September 26 and Sat October 9."},"2021-10-05":{name:{en:"National Day",zh:"国庆节"}},"2021-10-06":{name:{en:"National Day",zh:"国庆节"}},"2021-10-07":{name:{en:"National Day",zh:"国庆节"}}}},CO:{names:{es:"Colombia",en:"Colombia"},dayoff:"sunday",langs:["es"],zones:["America/Bogota"],days:{"01-01":{_name:"01-01"},"monday after 01-06":{_name:"01-06"},"monday after 03-19":{_name:"03-19"},"easter -7":{_name:"easter -7",type:"observance"},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"05-01":{_name:"05-01"},"easter 43":{_name:"easter 39"},"easter 64":{_name:"easter 60"},"easter 71":{name:{es:"Sagrado Corazón de Jesús",en:"Sacred Heart"}},"monday after 06-29":{_name:"06-29"},"07-20":{_name:"Independence Day"},"08-07":{name:{en:"Battle of Boyacá",es:"Batalla de Boyacá"}},"monday after 08-15":{_name:"08-15"},"monday after 10-12":{name:{es:"Día de la Raza",en:"Columbus Day"}},"1st monday in November":{_name:"11-01"},"monday after 11-11":{name:{es:"Independencia de Cartagena",en:"Independence of Cartagena"}},"12-08":{_name:"12-08"},"12-25":{_name:"12-25"}}},CR:{names:{es:"Costa Rica",en:"Costa Rica"},dayoff:"sunday",langs:["es"],zones:["America/Costa_Rica"],days:{"01-01":{_name:"01-01"},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"04-11":{name:{es:"Gesta Heroica de Juan Santamaría"}},"05-01":{_name:"05-01"},"07-25":{name:{en:"Guanacaste Day",es:"Anexión del Partido de Nicoya"}},"08-02":{name:{en:"Our Lady of Los Ángeles",es:"Día de la Virgen de los Ángeles"}},"08-15":{_name:"Mothers Day"},"09-15":{_name:"Independence Day"},"10-12 if monday then previous friday":{name:{en:"Columbus Day",es:"Día de la Raza"}},"12-25":{_name:"12-25"}}},CU:{names:{es:"Cuba",en:"Cuba"},dayoff:"sunday",langs:["es"],zones:["America/Havana"],days:{"01-01":{name:{es:"Triunfo de la Revolución",en:"Triumph of the Revolution"}},"01-02":{name:{es:"Día de Victoria de las Fuerzas Armadas",en:"Victory of Armed Forces Day"}},"easter -2":{_name:"easter -2"},"05-01":{_name:"05-01"},"07-25":{name:{es:"Conmemoración del asalto a Moncada",en:"Day before the Commemoration of the Assault of the Moncada garrison"}},"07-26":{name:{es:"Día de la Rebeldía Nacional",en:"Commemoration of the Assault of the Moncada garrison"}},"07-27":{name:{es:"Conmemoración del asalto a Moncada",en:"Day after the Commemoration of the Assault of the Moncada garrison"}},"10-10":{_name:"Independence Day"},"12-25":{_name:"12-25"}}},CV:{names:{pt:"República de Cabo Verde",en:"Cape Verde"},langs:["pt"],zones:["Atlantic/Cape_Verde"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"01-13":{name:{pt:"Dia da Democracia",en:"Democracy Day"}},"01-20":{name:{pt:"Dia dos Heróis Nacionais",en:"Heroes' Day"}},"easter -47":{_name:"easter -47"},"easter -46":{_name:"easter -46"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"05-01":{_name:"05-01"},"06-01":{name:{pt:"Dia das Crianças",en:"Children's Day"}},"07-05":{_name:"Independence Day"},"08-15":{_name:"08-15",name:{pt:"Dia da Padroeira Nacional"}},"09-12":{name:{pt:"Dia Nacional",en:"National Day"}},"11-01":{_name:"11-01"},"12-25":{_name:"12-25"}},states:{S:{name:"Sotavento Islands",regions:{PR:{name:"Praia",days:{"05-19":{name:{pt:"Dia do Município da Praia"}}}}}}}},CW:{names:{nl:"Curaçao",pap:"Kòrsou",en:"Curaçao"},langs:["nl","pap","en"],zones:["America/Curacao"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"easter -48":{_name:"easter -48",name:{en:"Carnival Monday"}},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"04-27":{name:{pap:"Aña di Rey",nl:"Koningsdag",en:"Kings Day"}},"05-01 if sunday then next monday":{_name:"05-01"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"1st sunday in June":{_name:"Fathers Day",type:"observance"},"easter 39":{_name:"easter 39",name:{nl:"Hemelvaartsdag"}},"07-02":{name:{nl:"Dag van het volkslied en de Vlag",pap:"Dia di Himno i Bandera",en:"Flag Day"}},"10-10":{name:{nl:"Dag van het land Curaçao",pap:"Pais Kòrsou",en:"Curaçao Day"}},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"12-31 12:00":{_name:"12-31"}}},CX:{names:{en:"Christmas Island"},langs:["en","ms"],zones:["Indian/Christmas"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"01-26":{name:{en:"Australia Day"}},"chinese 01-0-01 P2D":{name:{en:"Chinese New Year",zh:"春节"}},"4th monday in March":{_name:"05-01"},"easter -2":{_name:"easter -2"},"04-25":{name:{en:"Anzac Day"}},"1 Shawwal":{_name:"1 Shawwal",name:{ms:"Hari Raya Puasa"}},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah",name:{ms:"Hari Raya Haji"}},"10-06":{name:{en:"Territory Day"}},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}},CY:{names:{el:"Κύπρος",en:"Cyprus"},dayoff:"",langs:["el"],zones:["Asia/Nicosia"],days:{"01-01":{_name:"01-01"},"01-06":{_name:"01-06"},"orthodox -48":{name:{el:"Καθαρά Δευτέρα",en:"Ash Sunday"},type:"observance"},"orthodox -47":{name:{el:"Καθαρά Δευτέρα",en:"Clean Monday"}},"03-25":{name:{el:"Ευαγγελισμός, Εθνική Εορτή",en:"Annunciation, Anniversary of 1821 Revolution"}},"04-01":{name:{en:"Cyprus National Day",el:"Κύπρος Εθνική Εορτή"}},"orthodox -2":{_name:"easter -2"},orthodox:{_name:"easter"},"orthodox 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"orthodox 49":{_name:"easter 49"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"08-15":{_name:"08-15"},"10-01":{name:{en:"Cyprus Independence Day",el:"Ημέρα της Ανεξαρτησίας Κύπρος"}},"10-28":{_name:"National Holiday",name:{el:"Επέτειος του Όχι"}},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}},CZ:{names:{cz:"Česká republika",en:"Czech Republic"},langs:["cz"],zones:["Europe/Prague"],days:{"01-01":{_name:"01-01",name:{cz:"Nový rok a Den obnovy samostatného českého státu"}},"easter -4":{name:{cz:"Škaredá středa",en:"Ugly Wednesday"},type:"observance"},"easter -3":{_name:"easter -3",type:"observance"},"easter -2":{_name:"easter -2"},"easter -1":{_name:"easter -1",type:"observance"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"05-08":{name:{cz:"Den vítězství",en:"Liberation Day"}},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"07-05":{name:{cz:"Den slovanských věrozvěstů Cyrila a Metoděje",en:"Saints Cyril and Methodius Day"}},"07-06":{name:{cz:"Den upálení mistra Jana Husa",en:"Jan Hus Day"}},"09-28":{name:{cz:"Den české státnosti",en:"St. Wenceslas Day (Czech Statehood Day)"}},"10-28":{name:{cz:"Den vzniku samostatného československého státu",en:"Independent Czechoslovak State Day"}},"11-17":{name:{cz:"Den boje za svobodu a demokracii",en:"Struggle for Freedom and Democracy Day"}},"12-24":{_name:"12-24"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}},DE:{names:{de:"Deutschland",en:"Germany"},dayoff:"sunday",zones:["Europe/Berlin"],langs:["de"],days:{"01-01":{_name:"01-01"},"02-14":{_name:"02-14",type:"observance"},"easter -52":{name:{de:"Weiberfastnacht",en:"Women's Carnival Day"},type:"observance"},"easter -48":{name:{de:"Rosenmontag",en:"Shrove Monday"},type:"observance"},"easter -47 14:00":{_name:"easter -47",type:"observance"},"easter -46":{_name:"easter -46",type:"observance"},"easter -3":{_name:"easter -3",type:"observance"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01",name:{de:"Maifeiertag"}},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"easter 39":{_name:"easter 39"},"easter 49":{_name:"easter 49",type:"observance"},"easter 50":{_name:"easter 50"},"10-03":{_name:"National Holiday",name:{de:"Tag der Deutschen Einheit"}},"11-01":{_name:"11-01",type:"observance"},"11-02":{_name:"11-02",type:"observance"},"11-11":{_name:"11-11",type:"observance"},"wednesday before 11-23":{_name:"Buß- und Bettag",type:"observance"},"6th sunday before 12-25":{name:{de:"Volkstrauertag",en:"Memorial Day"},type:"observance"},"5th sunday before 12-25":{name:{de:"Totensonntag"},type:"observance"},"4th sunday before 12-25":{name:{de:"1. Advent"},type:"observance"},"3th sunday before 12-25":{name:{de:"2. Advent"},type:"observance"},"2nd sunday before 12-25":{name:{de:"3. Advent"},type:"observance"},"1st sunday before 12-25":{name:{de:"4. Advent"},type:"observance"},"12-24 14:00 if sunday then 00:00":{_name:"12-24",type:"bank"},"12-25":{_name:"12-25",name:{de:"1. Weihnachtstag"}},"12-26":{_name:"12-26"},"12-31 14:00 if sunday then 00:00":{_name:"12-31",type:"bank"},"2017-10-31":{_name:"Reformation Day"}},states:{BB:{name:"Brandenburg",days:{easter:{_name:"easter"},"easter 49":{_name:"easter 49"},"10-31":{_name:"Reformation Day"}}},BE:{name:"Berlin",days:{"03-08":{_name:"03-08",active:[{from:"2019-01-01T00:00:00.000Z"}]},easter:{_name:"easter",type:"observance"},"easter 49":{_name:"easter 49",type:"observance"},"2020-05-08":{name:{de:"Tag der Befreiung (75. Jahrestag)",en:"Liberation Day (75th Anniversary)"}},"2025-05-08":{name:{de:"Tag der Befreiung (80. Jahrestag)",en:"Liberation Day (80th Anniversary)"}},"2028-06-17":{name:{de:"75-jähriges Jubiläum des Volksaufstands in der DDR",en:"75th anniversary of the GDR uprising"}}}},BW:{name:"Baden-Württemberg",days:{"01-06":{_name:"01-06"},"easter -3":{_name:"easter -3",type:"school"},"easter 60":{_name:"easter 60"},"10-31":{_name:"Reformation Day",type:"school"},"11-01":{_name:"11-01"}}},BY:{name:"Bayern",days:{"01-06":{_name:"01-06"},"02-02":{_name:"02-02",type:"observance"},"easter 60":{_name:"easter 60"},"08-15":{_name:"08-15",type:"observance"},"11-01":{_name:"11-01"},"wednesday before 11-23":{_name:"Buß- und Bettag",type:"school"}},regions:{A:{name:"Stadt Augsburg",days:{"08-08":{name:{de:"Augsburger Friedensfest",en:"Augsburg Peace Festival"}}}},KATH:{names:{de:"Überwiegend katholische Gemeinden",en:"Predominantly catholic communities"},days:{"08-15":{_name:"08-15",type:"public"}}},EVANG:{names:{de:"Überwiegend evangelische Gemeinden",en:"Predominantly protestant communities"},days:{"08-15":{_name:"08-15",type:"school"}}}}},HB:{name:"Hansestadt Bremen",days:{"10-31":{_name:"Reformation Day",active:[{from:"2018-01-01T00:00:00.000Z"}]}}},HE:{name:"Hessen",days:{"easter 60":{_name:"easter 60"}}},HH:{name:"Hansestadt Hamburg",days:{"10-31":{_name:"Reformation Day",active:[{from:"2018-01-01T00:00:00.000Z"}]}}},MV:{name:"Mecklenburg-Vorpommern",days:{"03-08 since 2023":{_name:"03-08"},"10-31":{_name:"Reformation Day"}}},NI:{name:"Niedersachsen",days:{"10-31":{_name:"Reformation Day",active:[{from:"2018-01-01T00:00:00.000Z"}]}}},NW:{name:"Nordrhein-Westfalen",days:{"easter 60":{_name:"easter 60"},"11-01":{_name:"11-01"}}},RP:{name:"Rheinland-Pfalz",days:{"easter 60":{_name:"easter 60"},"11-01":{_name:"11-01"}}},SH:{name:"Schleswig-Holstein",days:{"10-31":{_name:"Reformation Day",active:[{from:"2018-01-01T00:00:00.000Z"}]}}},SL:{name:"Saarland",days:{"easter 60":{_name:"easter 60"},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"}}},SN:{name:"Sachsen",days:{"easter 60":{_name:"easter 60",type:"observance"},"10-31":{_name:"Reformation Day"},"wednesday before 11-23":{_name:"Buß- und Bettag"}},regions:{BZ:{name:"Landkreis Bautzen",days:{"easter 60":{_name:"easter 60",type:"public",note:"Bautzen (nur in den Ortsteilen Bolbritz und Salzenforst), Crostwitz, Göda (nur im Ortsteil Prischwitz), Großdubrau (nur im Ortsteil Sdier), Hoyerswerda (nur im Ortsteil Dörgenhausen), Königswartha (nicht im Ortsteil Wartha), Nebelschütz, Neschwitz (nur in den Ortsteilen Neschwitz und Saritsch), Panschwitz-Kuckau, Puschwitz, Räckelwitz, Radibor, Ralbitz-Rosenthal und Wittichenau."}}}}},ST:{name:"Sachsen-Anhalt",days:{"01-06":{_name:"01-06"},"10-31":{_name:"Reformation Day"}}},TH:{name:"Thüringen",days:{"easter 60":{_name:"easter 60",type:"observance"},"09-20":{name:{de:"Weltkindertag",en:"International Children's Day"},active:[{from:2019}]},"10-31":{_name:"Reformation Day"}},regions:{EIC:{name:"Landkreis Eichfeld",days:{"easter 60":{_name:"easter 60",type:"public"}}},UH:{name:"Unstrut-Hainich-Kreis",days:{"easter 60":{_name:"easter 60",type:"public",note:"In Anrode (nur in den Ortsteilen Bickenriede und Zella), Dünwald (nur in den Ortsteilen Beberstedt und Hüpstedt), Rodeberg (nur im Ortsteil Struth), Südeichsfeld"}}},WAK:{name:"Wartburgkreis",days:{"easter 60":{_name:"easter 60",type:"public",note:"In Brunnhartshausen (nur in den Ortsteilen Föhlritz und Steinberg), Buttlar, Geisa, Schleid, Zella/Rhön"}}}}}}},DJ:{names:{fr:"République de Djibouti",ar:"جمهورية جيبوتي",so:"Jamhuuriyadda Jabuuti",aa:"Gabuutih Ummuuno",en:"Djibouti"},langs:["fr","ar","en"],zones:["Africa/Nairobi"],dayoff:"",days:{"01-01":{_name:"01-01"},"05-01":{_name:"05-01"},"06-27 since 1977":{_name:"Independence Day"},"12-25":{_name:"12-25"},"1 Muharram":{_name:"1 Muharram"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"27 Rajab":{_name:"27 Rajab"},"1 Shawwal":{_name:"1 Shawwal"},"9 Dhu al-Hijjah":{_name:"9 Dhu al-Hijjah"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},DK:{names:{da:"Danmark",en:"Denmark"},langs:["da"],zones:["Europe/Copenhagen"],days:{"01-01":{_name:"01-01"},"easter -48":{name:{da:"Fastelavn"},type:"observance"},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"easter 26 prior to 2024":{name:{da:"Store Bededag",en:"Prayer Day",de:"Buß- und Bettag"}},"easter 39":{_name:"easter 39"},"05-01":{_name:"05-01",type:"observance",note:"Full holiday for blue collar workers"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"06-05":{_name:"Constitution Day",type:"observance",note:"Shops are closed"},"easter 49":{_name:"easter 49"},"easter 50":{_name:"easter 50"},"12-24":{_name:"12-24",type:"observance",note:"Shops are closed"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}},DM:{names:{en:"Dominica"},langs:["en"],zones:["America/Port_of_Spain"],dayoff:"sunday",days:{"01-01 and if sunday then next monday":{_name:"01-01",substitute:!0},"easter -48":{_name:"easter -48",name:{en:"Carnival Monday"}},"easter -47":{_name:"easter -47",name:{en:"Carnival Tuesday"}},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"easter 49":{_name:"easter 49",type:"observance"},"easter 50":{_name:"easter 50"},"1st monday in August":{name:{en:"Emancipation Day"}},"11-03 if sunday then next monday":{_name:"Independence Day"},"11-04 if sunday then next monday if monday then next tuesday":{name:{en:"National Day of Community Service"}},"12-25 and if sunday then next tuesday":{_name:"12-25",substitute:!0},"12-26 and if sunday then next monday":{_name:"12-26",substitute:!0}}},DO:{names:{es:"República Dominicana",en:"Dominican Republic"},dayoff:"sunday",zones:["America/Santo_Domingo"],langs:["es"],days:{"01-01":{_name:"01-01"},"01-06 if tuesday,wednesday then previous monday if thursday,friday then next monday":{_name:"01-06"},"01-21":{name:{es:"Nuestra Señora de la Altagracia",en:"Our Lady of Altagracia"}},"01-26 if tuesday,wednesday then previous monday if thursday,friday then next monday":{name:{es:"Día de Duarte",en:"Duarte's Birthday"}},"02-27":{_name:"Independence Day"},"easter -2":{_name:"easter -2"},"05-01 if tuesday,wednesday then previous monday if thursday,friday,sunday then next monday":{_name:"05-01"},"easter 60":{_name:"easter 60"},"08-16":{name:{es:"Día de la Restauración",en:"Restoration Day"}},"09-24":{name:{es:"Nuestra Señora de las Mercedes",en:"Our Lady of las Mercedes"}},"11-06 if tuesday,wednesday,thursday,friday,saturday then next monday":{_name:"Constitution Day"},"12-25":{_name:"12-25"}}},DZ:{names:{ar:"الجمهورية الجزائرية الديمقراطية الشعبية",fr:"République algérienne démocratique et populaire",en:"Algeria"},langs:["ar","fr","en"],zones:["Africa/Algiers"],dayoff:"saturday",days:{"01-01":{_name:"01-01"},"01-12":{name:{ar:"رأس السنة الأمازيغية",fr:"Nouvel an amazigh",en:"Amazigh New Year"}},"05-01":{_name:"05-01"},"07-05":{_name:"Independence Day"},"11-01":{_name:"Revolution Day"},"1 Muharram":{_name:"1 Muharram"},"10 Muharram":{_name:"10 Muharram"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},EC:{names:{es:"Ecuador",en:"Ecuador"},dayoff:"sunday",langs:["es"],zones:["America/Guayaquil","Pacific/Galapagos"],days:{"01-01":{_name:"01-01"},"easter -48":{name:{en:"Carnival",es:"Carnaval"}},"easter -47":{_name:"easter -47"},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"05-01":{_name:"05-01"},"05-24":{name:{en:"The Battle of Pichincha",es:"Batalla del Pichincha"}},"07-24":{name:{en:"The Birthday of Simón Bolívar",es:"El Natalicio de Simón Bolívar"},type:"observance"},"08-10":{name:{en:"Declaration of Independence of Quito",es:"Día del Primer Grito de Independencia de Quito"}},"09-10":{name:{en:"Independence of Guayaquil",es:"Independencia de Guayaquil"}},"10-31":{name:{en:"Flag Day",es:"Dia de La Bandera"},type:"observance"},"11-02":{_name:"11-02"},"11-03":{name:{en:"Independence of Cuenca",es:"Independencia de Cuenca"}},"12-25":{_name:"12-25"},"12-31":{_name:"12-31",type:"observance"}},states:{P:{name:"Pichincha",regions:{QU:{name:"Quito",days:{"12-06":{name:{en:"Foundation of Quito",es:"Aniversario de la fundación de Quito"},type:"observance"}}}}}}},EE:{names:{et:"Eesti",en:"Estonia"},dayoff:"sunday",langs:["et"],zones:["Europe/Tallinn"],days:{"01-01":{_name:"01-01"},"01-06":{_name:"01-06",type:"observance"},"02-02":{name:{et:"Tartu rahulepingu aastapäev",en:"Anniversary of the Tartu Peace Treaty"},type:"observance"},"02-24":{_name:"Independence Day",type:"public"},"03-14":{name:{et:"emakeelepäev",en:"Native Language Day"},type:"observance"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"05-01":{_name:"05-01"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"easter 49":{_name:"easter 49"},"06-04":{name:{et:"Eesti lipu päev",en:"National Flag Day"},type:"observance"},"06-14":{name:{et:"leinapäev",en:"Day of Mourning and Commemoration"},type:"observance"},"06-23":{name:{et:"võidupüha",en:"Victory Day"}},"06-24":{name:{et:"jaanipäev",en:"Midsummer Day"}},"08-20":{name:{et:"taasiseseisvumispäev",en:"Day of Restoration of Independence"}},"08-23":{name:{et:"kommunismi ja natsismi ohvrite mälestuspäev",en:"European Day of Remembrance for Victims of Stalinism and Nazism"},type:"observance"},"2nd sunday in September":{name:{et:"vanavanemate päev",en:"Grandparents Day"},type:"observance"},"09-22":{name:{et:"vastupanuvõitluse päev",en:"Resistance Fighting Day"},type:"observance"},"11-02":{_name:"11-02",type:"observance"},"2nd sunday in November":{_name:"Fathers Day",type:"observance"},"11-16":{name:{et:"taassünni päev",en:"Day of Declaration of Sovereignty"},type:"observance"},"12-24":{_name:"12-24"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}},EG:{names:{ar:"جمهورية مصر العربية",en:"Egypt"},langs:["ar","en"],zones:["Africa/Cairo"],dayoff:"saturday",days:{"01-25 since 2011":{name:{ar:"عيد ثورة 25 يناير",en:"Revolution Day 2011"}},"01-25":{name:{ar:"عيد الشرطة",en:"National Police Day"}},"04-25":{name:{ar:"عيد تحرير سيناء",en:"Sinai Liberation Day"}},"05-01":{_name:"05-01"},"06-30":{name:{ar:"عيد ثورة 30 يونيو",en:"30 June Day"}},"07-23":{_name:"Revolution Day"},"10-06":{name:{ar:"عيد القوات المسلحة",en:"Armed Forces Day"}},"orthodox 1":{name:{ar:"شم النسيم",en:"Sham El Nessim"}},"julian 12-25":{_name:"12-25"},"1 Muharram":{_name:"1 Muharram"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Shawwal P3D":{_name:"1 Shawwal"},"10 Dhu al-Hijjah P4D":{_name:"10 Dhu al-Hijjah"}}},EH:{names:{ar:"الجمهورية العربية الصحراوية الديمقراطية",en:"Western Sahara"},langs:[],zones:["Africa/El_Aaiun"],dayoff:"",days:{"02-27":{_name:"Independence Day"},"03-08":{name:{en:"First Martyr"}},"05-10":{name:{en:"May 20 Revolution"}},"06-09":{name:{en:"Day of the Martyrs"}},"06-17":{name:{en:"Day of National Unity"}},"1 Muharram":{_name:"1 Muharram"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Shawwal P2D":{_name:"1 Shawwal"},"10 Dhu al-Hijjah P2D":{_name:"10 Dhu al-Hijjah"}}},ER:{names:{en:"Eritrea"},langs:["ti","en"],zones:["Africa/Nairobi"],dayoff:"",days:{"01-01":{_name:"01-01"},"julian 12-25":{_name:"julian 12-25"},"julian 01-06":{_name:"01-06"},"02-10":{name:{ti:"ፈንቅል",en:"Fenkil Day"}},"03-08":{_name:"03-08"},"orthodox -2":{_name:"orthodox -2"},orthodox:{_name:"orthodox"},"05-01":{_name:"05-01"},"05-24":{_name:"Independence Day"},"06-20":{name:{en:"Martyrs' Day",ti:"መዓልቲ ስውኣት"}},"09-01":{_name:"Revolution Day"},"09-11 in non-leap years":{name:{en:"Geez New Year",ti:"ግዕዝ አዲስ ዓመት"}},"09-12 in leap years":{name:{en:"Geez New Year",ti:"ግዕዝ አዲስ ዓመት"}},"09-27 in non-leap years":{name:{en:"Meskel"}},"09-28 in leap years":{name:{en:"Meskel"}},"12-25":{_name:"12-25"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},ES:{names:{es:"España",ca:"Espanya",en:"Spain"},langs:["es"],zones:["Europe/Madrid","Africa/Ceuta","Atlantic/Canary"],days:{"01-01":{_name:"01-01"},"substitutes 01-01 if sunday then next monday":{type:"observance",substitute:!0,_name:"01-01"},"01-06":{_name:"01-06"},"substitutes 01-06 if sunday then next monday":{type:"observance",substitute:!0,_name:"01-06"},"03-19":{_name:"03-19",type:"observance"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"05-01":{_name:"05-01"},"1st sunday in May":{_name:"Mothers Day",type:"observance"},"easter 49":{_name:"easter 49",type:"observance"},"08-15":{_name:"08-15"},"10-12":{name:{es:"Fiesta Nacional de España"}},"substitutes 10-12 if sunday then next monday":{substitute:!0,type:"observance",name:{es:"Fiesta Nacional de España"}},"11-01":{_name:"11-01"},"12-06":{name:{es:"Día de la Constitución Española"}},"12-08":{_name:"12-08"},"substitutes 12-08 if sunday then next monday":{type:"observance",substitute:!0,_name:"12-08"},"12-25":{_name:"12-25"},"substitutes 12-25 if sunday then next monday":{substitute:!0,_name:"12-25"}},states:{AN:{name:"Andalucía",days:{"02-28":{name:{es:"Día de Andalucía"}},"substitutes 02-28 if Sunday then next Monday":{substitute:!0,name:{es:"Día de Andalucía"}},"substitutes 05-01 if Sunday then next Monday":{substitute:!0,_name:"05-01"},"substitutes 08-15 if Sunday then next Monday":{substitute:!0,_name:"08-15"},"easter -3":{_name:"easter -3"},"substitutes 11-01 if sunday then next monday":{substitute:!0,_name:"11-01"},"substitutes 12-06 if sunday then next monday":{substitute:!0,name:{es:"Día de la Constitución Española"}}}},AR:{name:"Aragón",days:{"easter -3":{_name:"easter -3"},"04-23":{name:{es:"Día de Aragón"}},"substitutes 04-23 if Sunday then next Monday":{substitute:!0,name:{es:"Día de Aragón"}},"substitutes 05-01 if Sunday then next Monday":{substitute:!0,_name:"05-01"},"substitutes 08-15 if Sunday then next Monday":{substitute:!0,_name:"08-15"},"substitutes 11-01 if sunday then next monday":{substitute:!0,_name:"11-01"},"substitutes 12-06 if sunday then next monday":{substitute:!0,name:{es:"Día de la Constitución Española"}}}},AS:{name:"Asturias",days:{"easter -3":{_name:"easter -3"},"substitutes 05-01 if Sunday then next Monday":{substitute:!0,_name:"05-01"},"substitutes 08-15 if Sunday then next Monday":{substitute:!0,_name:"08-15"},"09-08":{name:"Día de Asturias"},"substitutes 09-08 if Sunday then next Monday":{substitute:!0,name:"Día de Asturias"},"substitutes 11-01 if sunday then next monday":{substitute:!0,_name:"11-01"},"substitutes 12-06 if sunday then next monday":{substitute:!0,name:{es:"Día de la Constitución Española"}}}},CB:{name:"Cantabria",days:{"easter -3":{_name:"easter -3"},"06-28":{name:"Día de las Instituciones de Cantabria"},"09-15":{name:"La Bien Aparecida"},"substitutes 09-15 if Sunday then next Monday":{name:"La Bien Aparecida"},"substitutes 12-06 if sunday then next monday":{substitute:!0,name:{es:"Día de la Constitución Española"}}}},CE:{name:"Ciudad de Ceuta",days:{"easter -3":{_name:"easter -3"},"08-05":{name:"Nuestra Señora de África"},"substitutes 08-05 if Sunday then next Monday":{substitute:!0,name:"Nuestra Señora de África"},"09-02":{name:"Día de Ceuta"},"substitutes 09-02 if Sunday then next Monday":{substitute:!0,name:"Día de Ceuta"},"9 Dhu al-Hijjah":{_name:"9 Dhu al-Hijjah"}}},CL:{names:{es:"Castilla y León",en:"Castile and León"},days:{"easter -3":{_name:"easter -3"},"04-23":{name:"Fiesta de Castilla y León"},"substitutes 04-23 if Sunday then next Monday":{substitute:!0,name:"Fiesta de Castilla y León"},"substitutes 05-01 if Sunday then next Monday":{substitute:!0,_name:"05-01"},"substitutes 08-15 if Sunday then next Monday":{substitute:!0,_name:"08-15"},"substitutes 11-01 if sunday then next monday":{substitute:!0,_name:"11-01"},"substitutes 12-06 if sunday then next monday":{substitute:!0,name:{es:"Día de la Constitución Española"}}}},CM:{name:"Castile-La Mancha",days:{"easter -3":{_name:"easter -3"},"05-31 since 2020":{name:"Día de Castilla-La Mancha"},"easter 60":{_name:"easter 60"},"substitutes 11-01 if sunday then next monday":{substitute:!0,_name:"11-01"}}},CN:{names:{es:"Islas Canarias",en:"Canary Islands"},zones:["Atlantic/Canary"],dayoff:"sunday",_days:"IC",regions:{EH:{names:{es:"El Hierro"},_days:["IC","regions","EH"]},FU:{names:{es:"Fuerteventura"},_days:["IC","regions","FU"]},GC:{names:{es:"Gran Canaria"},_days:["IC","regions","GC"]},LG:{names:{es:"La Gomera"},_days:["IC","regions","LG"]},LP:{names:{es:"La Palma"},_days:["IC","regions","LP"]},LA:{names:{es:"Lanzarote"},_days:["IC","regions","LA"]},TE:{names:{es:"Tenerife"},_days:["IC","regions","TE"]}}},CT:{names:{ca:"Catalunya",es:"Cataluña",en:"Catalonia"},days:{"09-11":{name:{ca:"Diada de Catalunya",es:"Dia de Cataluña"}},"06-24":{name:{ca:"Sant Joan",es:"San Juan"}},"easter -3":{_name:"easter -3",type:"observance"},"easter 1":{_name:"easter 1"},"substitutes 05-01 if Saturday, Sunday then next Monday":{substitute:!0,_name:"05-01"},"12-26":{name:{ca:"Sant Esteve",es:"San Esteban"}}},regions:{B:{names:{ca:"Barcelona",es:"Barcelona"},days:{"09-24":{name:{ca:"Mare de Déu de la Mercè",es:"Nuestra Señora de la Merced"}}}}}},EX:{name:"Extremadura",days:{"easter -3":{_name:"easter -3"},"substitutes 05-01 if Sunday then next Monday":{substitute:!0,_name:"05-01"},"09-08":{name:"Día de Extremadura"},"substitutes 09-08 if Sunday then next Monday":{substitute:!0,name:"Día de Extremadura"},"substitutes 11-01 if sunday then next monday":{substitute:!0,_name:"11-01"},"substitutes 12-06 if sunday then next monday":{substitute:!0,name:{es:"Día de la Constitución Española"}}}},GA:{name:"Galicia",days:{"03-19":{_name:"03-19"},"easter -3":{_name:"easter -3"},"05-17":{name:"Día de las Letras Gallegas"},"07-25":{name:"Día Nacional de Galicia"}}},IB:{names:{es:"Illes Balears",en:"Balearic Islands"},days:{"03-01":{name:{es:"Día de les Illes Balears"}},"substitutes 03-01 if Sunday then next Monday":{substitute:!0,name:{es:"Día de les Illes Balears"}},"easter -3":{_name:"easter -3"},"easter 1":{_name:"easter 1"},"12-26":{name:{es:"Sant Esteve"},type:"observance"}}},MC:{name:"Murcia Region",days:{"03-19":{_name:"03-19"},"easter -3":{_name:"easter -3"},"substitutes 05-01 if Sunday then next Monday":{substitute:!0,_name:"05-01"},"substitutes 12-06 if sunday then next monday":{substitute:!0,name:{es:"Día de la Constitución Española"}}}},MD:{name:"Comunidad de Madrid",days:{"easter -3":{_name:"easter -3"},"05-02 if Sunday then next Monday":{name:{es:"Día de la Comunidad de Madrid"}},"substitutes 05-02 if Sunday then next Monday":{substitute:!0,name:{es:"Día de la Comunidad de Madrid"}},"05-16":{name:{es:"San Isidro Labrador"},type:"observance"},"11-09 if sunday then next monday":{name:{es:"Nuestra Señora de la Almudena"},type:"observance"},"substitutes 11-01 if sunday then next monday":{substitute:!0,_name:"11-01"},"substitutes 12-06 if sunday then next monday":{substitute:!0,name:{es:"Día de la Constitución Española"}}}},ML:{name:"Ciudad de Melilla",days:{"easter -3":{_name:"easter -3"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"},"substitutes 12-06 if sunday then next monday":{substitute:!0,name:{es:"Día de la Constitución Española"}}}},NC:{names:{es:"Comunidad Foral de Navarra",en:"Navarra Chartered Community"},days:{"03-19":{_name:"03-19"},"easter -3":{_name:"easter -3"},"easter 1":{_name:"easter 1"},"substitutes 11-01 if sunday then next monday":{substitute:!0,_name:"11-01"},"substitutes 12-06 if sunday then next monday":!1}},PV:{names:{es:"País Vasco",en:"Basque Country"},days:{"03-19":{_name:"03-19"},"easter -3":{_name:"easter -3"},"easter 1":{_name:"easter 1"},"07-25":{name:"Santiago Apóstol"},"2022-09-06":{name:"V Centenario Vuelta al Mundo"}}},RI:{name:"La Rioja",days:{"easter -3":{_name:"easter -3"},"easter 1":{_name:"easter 1"},"06-09":{name:{es:"Día de La Rioja"}},"substitutes 12-06 if sunday then next monday":{substitute:!0,name:{es:"Día de la Constitución Española"}}}},VC:{names:{es:"Comunitat Valenciana",en:"Valencian Community"},days:{"03-19":{_name:"03-19"},"easter 1":{_name:"easter 1"},"06-24":{name:{es:"San Juan",ca:"Sant Joan"}}}}}},ET:{names:{am:"ኢትዮጵያ",en:"Ethiopia"},dayoff:"sunday",langs:["am","en"],zones:["Africa/Nairobi"],days:{"01-06 in non-leap years":{_name:"12-25"},"01-07 in leap years":{_name:"12-25"},"01-19":{_name:"01-06"},"03-02":{name:{am:"የዓድዋ ድል በዓል",en:"Victory at Adwa Day"}},"03-28":{name:{am:"የቀይ ሽብር መታሰቢያ ቀን",en:"Day of Lament"}},"orthodox -2":{_name:"easter -2"},orthodox:{_name:"easter"},"05-28":{name:{am:"ደርግ የወደቀበት ቀን",en:"Derg Downfall Day"}},"09-11 in non-leap years":{_name:"01-01"},"09-12 in leap years":{_name:"01-01"},"09-27 in non-leap years":{name:{am:"ብርሐነ-መስቀል",en:"Finding of the True Cross"}},"09-28 in leap years":{name:{am:"ብርሐነ-መስቀል",en:"Finding of the True Cross"}},"1 Ramadan":{_name:"1 Ramadan"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},FI:{names:{fi:"Suomi",en:"Finland"},dayoff:"sunday",langs:["fi"],zones:["Europe/Helsinki"],days:{"01-01":{_name:"01-01"},"01-06":{_name:"01-06"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"easter 39":{_name:"easter 39"},"easter 49":{_name:"easter 49"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"friday after 06-19":{name:{fi:"Juhannusaatto",en:"Midsummer Eve",sv:"Midsommarafton"},type:"bank"},"saturday after 06-20":{name:{fi:"Juhannuspäivä",en:"Midsummer Day",sv:"Midsommardagen"}},"saturday after 10-31":{_name:"11-01"},"2nd sunday in November":{_name:"Fathers Day",type:"observance"},"12-06":{_name:"Independence Day"},"12-24":{_name:"12-24",type:"bank"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"12-31":{_name:"12-31",type:"bank"}}},FJ:{names:{fj:"Matanitu Tugalala o Viti",en:"Fiji"},langs:["fj","en"],zones:["Pacific/Fiji"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"easter -2":{_name:"easter -2"},"easter -1":{_name:"easter -1"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"09-07":{_name:"Constitution Day"},"10-10 and if Sunday then next Monday":{substitute:!0,name:{en:"Fiji Day"}},"12-25 if Sunday then next Monday":{_name:"12-25"},"12-26 if Sunday then next Monday if Monday then next Tuesday":{_name:"12-26"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"2014-10-22":{_name:"Deepavali",name:{en:"Diwali"}},"2015-11-10":{_name:"Deepavali",name:{en:"Diwali"}},"2016-10-29":{_name:"Deepavali",name:{en:"Diwali"}},"2017-10-19":{_name:"Deepavali",name:{en:"Diwali"}},"2018-11-07":{_name:"Deepavali",name:{en:"Diwali"}},"2019-10-27":{_name:"Deepavali",name:{en:"Diwali"}},"2019-10-28":{substitute:!0,_name:"Deepavali",name:{en:"Diwali"}},"2020-11-14":{_name:"Deepavali",name:{en:"Diwali"}},"2020-11-16":{substitute:!0,_name:"Deepavali",name:{en:"Diwali"}},"2021-11-04":{_name:"Deepavali",name:{en:"Diwali"}},"2022-10-24":{_name:"Deepavali",name:{en:"Diwali"}},"2023-11-12":{_name:"Deepavali",name:{en:"Diwali"}},"2023-11-13":{substitute:!0,_name:"Deepavali",name:{en:"Diwali"}},"2024-11-01":{_name:"Deepavali",name:{en:"Diwali"}},"2025-10-21":{_name:"Deepavali",name:{en:"Diwali"}}}},FO:{names:{fo:"Føroyar",da:"Færøerne",en:"Faroe Islands"},langs:["fo","da"],zones:["Atlantic/Faroe"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"04-24":{name:{fo:"Flaggdagur",da:"Flagdag",en:"Flag Day"}},"easter 26":{name:{fo:"Dýri biðidagur",en:"Great Prayer Day"}},"easter 39":{_name:"easter 39"},"easter 49":{_name:"easter 49"},"easter 50":{_name:"easter 50"},"06-05 12:00 if sunday then 00:00":{_name:"Constitution Day"},"07-28 12:00 if sunday then 00:00":{name:{da:"Sankt Olavsaften",en:"St.Olav's Eve"},note:"half-day holiday for some workers' unions",type:"observance"},"07-29":{name:{fo:"Ólavsøka",da:"Sankt Olavs Dag",en:"St.Olav's Day"},note:"full holiday for most workers' unions",type:"observance"},"12-24":{_name:"12-24"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"12-31 12:00 if sunday then 00:00":{_name:"12-31"}}},FR:{names:{fr:"France",en:"France"},dayoff:"sunday",zones:["Europe/Paris"],langs:["fr"],days:{"01-01":{_name:"01-01"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"05-08":{name:{fr:"Fête de la Victoire 1945",en:"Victory Day"}},"easter 39":{_name:"easter 39"},"easter 49":{_name:"easter 49",type:"observance"},"easter 50":{_name:"easter 50"},"sunday before 06-01":{_name:"Mothers Day",type:"observance"},"07-14":{name:{fr:"Fête Nationale de la France",en:"Bastille Day"}},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"11-11":{name:{fr:"Armistice 1918",en:"Armistice Day"}},"12-25":{_name:"12-25"}},states:{57:{name:"Département Moselle",days:{"easter -2":{_name:"easter -2"},"12-26":{_name:"12-26"}}},67:{name:"Département Bas-Rhin",days:{"easter -2":{_name:"easter -2"},"12-26":{_name:"12-26"}}},68:{name:"Département Haut-Rhin",days:{"easter -2":{_name:"easter -2"},"12-26":{_name:"12-26"}}},YT:{name:"Département et région d'outre-mer Mayotte",zones:["Africa/Nairobi"],_days:"YT"},MQ:{name:"Département et région d'outre-mer Martinique",zones:["America/Martinique"],_days:"MQ"},GP:{name:"Département et région d'outre-mer Guadeloupe",zones:["America/Guadeloupe"],_days:"GP"},GF:{name:"Département et région d'outre-mer Guyane",zones:["America/Cayenne"],_days:"GF"},RE:{name:"Département et région d'outre-mer La Réunion",zones:["Indian/Reunion"],_days:"RE"},MF:{name:"Département et région d'outre-mer Saint Martin",zones:["America/Marigot"],_days:"MF"},BL:{name:"Département et région d'outre-mer Saint Barthélemy",zones:["America/St_Barthelemy"],_days:"BL"}}},GA:{names:{fr:"Gabon",en:"Gabon"},dayoff:"sunday",langs:["fr"],zones:["Africa/Lagos"],days:{"01-01":{_name:"01-01"},"easter 1":{_name:"easter 1"},"04-17":{name:{fr:"Journée des droits de la femme",en:"Women's Day"}},"05-01":{_name:"05-01"},"easter 50":{_name:"easter 50"},"08-15":{_name:"08-15"},"08-16 P2D":{_name:"Independence Day"},"11-01":{_name:"11-01"},"12-25":{_name:"12-25"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},GB:{names:{en:"United Kingdom"},dayoff:"sunday",zones:["Europe/London"],langs:["en"],days:{"01-01":{_name:"01-01"},"substitutes 01-01 if sunday then next monday":{substitute:!0,_name:"01-01"},"substitutes 01-01 if saturday then next monday":{substitute:!0,_name:"01-01"},"easter -21":{_name:"Mothers Day",type:"observance"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"1st monday in May":{name:{en:"Early May bank holiday"},disable:["2020-05-04"]},"1st monday before 06-01":{name:{en:"Spring bank holiday"},disable:["2022-05-30"],enable:["2022-06-02"]},"12-25":{_name:"12-25"},"substitutes 12-25 if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"12-25"},"12-26":{_name:"12-26"},"substitutes 12-26 if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"12-26"},"2012-06-05":{name:{en:"Queens Diamond Jubilee"}},"2020-05-08":{name:{en:"Early May bank holiday (VE day)"}},"2022-06-03":{name:{en:"Queens Platinum Jubilee"}},"2022-09-19":{name:{en:"Queen Elizabeth's Funeral Day"}},"2023-05-08":{name:{en:"King Charles III's Coronation"}},"3rd sunday in June":{_name:"Fathers Day",type:"observance"}},states:{ALD:{name:"Alderney",zones:["Europe/Guernsey"],days:{"12-15":{name:{en:"Homecoming Day"}}}},ENG:{name:"England",days:{"1st monday before 09-01":{name:{en:"Summer bank holiday"}}}},NIR:{name:"Northern Ireland",zones:["Europe/Belfast"],days:{"03-17":{name:{en:"St Patrick's Day"}},"substitutes 03-17 if saturday then next monday":{substitute:!0,name:{en:"St Patrick's Day"}},"substitutes 03-17 if sunday then next monday":{substitute:!0,name:{en:"St Patrick's Day"}},"07-12":{name:{en:"Battle of the Boyne, Orangemens Day"}},"substitutes 07-12 if saturday then next monday":{substitute:!0,name:{en:"Battle of the Boyne"}},"substitutes 07-12 if sunday then next monday":{substitute:!0,name:{en:"Battle of the Boyne"}},"1st monday before 09-01":{name:{en:"Summer bank holiday"}}}},SCT:{name:"Scotland",days:{"substitutes 01-01 if sunday then next monday":!1,"substitutes 01-01 if saturday then next monday":!1,"substitutes 01-01 if saturday then next tuesday":{substitute:!0,_name:"01-01"},"substitutes 01-01 if sunday then next tuesday":{substitute:!0,_name:"01-01"},"01-02":{name:{en:"January 2nd"}},"substitutes 01-02 if saturday then next monday":{substitute:!0,name:{en:"January 2nd"}},"substitutes 01-02 if sunday then next monday":{substitute:!0,name:{en:"January 2nd"}},"easter 1":!1,"1st monday in August":{name:{en:"Summer bank holiday"}},"11-30":{name:{en:"St Andrews Day"}},"substitutes 11-30 if saturday, sunday then next monday":{substitute:!0,name:{en:"St Andrews Day"}}}},WLS:{name:"Wales",days:{"1st monday before 09-01":{name:{en:"Summer bank holiday"}}},regions:{}}}},GD:{names:{en:"Grenada"},dayoff:"sunday",langs:["en"],zones:["America/Port_of_Spain"],days:{"01-01":{_name:"01-01"},"02-07":{_name:"Independence Day"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"04-24 P3D":{name:{en:"Carriacou Maroon and String Band Music Festival"},type:"observance"},"05-01":{_name:"05-01"},"easter 49":{_name:"easter 49",type:"observance"},"easter 50":{_name:"easter 50"},"easter 60":{_name:"easter 60"},"1st monday in August":{name:{en:"Emancipation Day"}},"2nd monday in August":{name:{en:"Carnival Monday"}},"tuesday after 2nd monday in August":{name:{en:"Carnival Tuesday"}},"09-01":{name:{en:"Kirani Day"},type:"observance"},"10-15 P5D":{name:{en:"Aunty Tek Spice Word Festival"},type:"observance"},"10-25":{name:{en:"Thanksgiving Day"}},"12-04 P3D":{name:{en:"Camerhogne Folk Festival"},type:"observance"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}},GE:{names:{ge:"საქართველო",en:"Georgia"},langs:["ge"],zones:["Asia/Tbilisi"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"01-02":{name:{ge:"ბედობა",en:"Bedoba"}},"01-07":{name:{ge:"შობა",en:"Orthodox Christmas"}},"01-19":{name:{ge:"ნათლისღება",en:"Orthodox Epiphany"}},"03-03":{name:{ge:"დედის დღე",en:"Mother's Day"}},"03-08":{_name:"03-08"},"04-09":{name:{ge:"ეროვნული ერთიანობის დღე",en:"National Unity Day"}},"orthodox -2":{_name:"easter -2"},"orthodox -1":{_name:"easter -1"},orthodox:{_name:"easter"},"orthodox 1":{_name:"easter 1"},"05-09":{name:{ge:"ფაშიზმზე გამარჯვების დღე",en:"Victory Day"}},"05-12":{name:{ge:"წმინდა ანდრია პირველწოდებულის ხსენების დღე",en:"Saint Andrew the First-Called Day"}},"05-26":{name:{ge:"დამოუკიდებლობის დღე",en:"Independence Day"}},"08-28":{name:{ge:"მარიამობა",en:"Saint Mary's Day"}},"10-14":{name:{ge:"სვეტიცხოვლობა",en:"Svetitskhovloba"}},"11-23":{name:{ge:"გიორგობა",en:"Saint George's Day"}}}},GF:{names:{fr:"Guyane",en:"French Guiana"},langs:["fr"],zones:["America/Cayenne"],dayoff:"sunday",_days:"FR",days:{"06-10":{_name:"Abolition of Slavery"}}},GG:{names:{en:"Guernsey"},dayoff:"sunday",zones:["Europe/Guernsey"],langs:["en"],_days:["GB"],days:{"05-09":{name:{en:"Liberation Day"}}}},GH:{names:{en:"Ghana"},langs:["en"],zones:["Africa/Accra"],dayoff:"",days:{"01-01 and if Saturday, Sunday then next Monday":{substitute:!0,_name:"01-01"},"01-07 since 2019":{_name:"Constitution Day"},"03-06 and if Saturday, Sunday then next Monday":{substitute:!0,_name:"Independence Day"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"05-01 and if Saturday, Sunday then next Monday":{substitute:!0,_name:"05-01"},"08-04 and if Saturday, Sunday then next Monday":{substitute:!0,name:{en:"Founders Day"}},"09-21 and if Saturday, Sunday then next Monday":{substitute:!0,name:{en:"Kwame Nkrumah Memorial Day"}},"1st Friday in December since 1988":{name:{en:"Farmers Day"}},"12-25 and if Saturday then next Monday if Sunday then next Tuesday":{substitute:!0,_name:"12-25"},"12-26 and if Saturday then next Monday if Sunday then next Tuesday":{substitute:!0,_name:"12-26"},"1 Shawwal and if Saturday, Sunday then next Monday":{substitute:!0,_name:"1 Shawwal"},"10 Dhu al-Hijjah and if Saturday, Sunday then next Monday":{substitute:!0,_name:"10 Dhu al-Hijjah"}}},GI:{names:{en:"Gibraltar"},langs:["en"],zones:["Europe/Gibraltar"],dayoff:"sunday",_days:"GB",days:{"2nd monday in March":{name:{en:"Commonwealth Day"}},easter:{_name:"easter",type:"observance"},"04-28":{name:{en:"Workers Memorial Day"},disable:["2015-04-28"],enable:["2015-04-27"]},"05-01 if sunday, saturday then next monday":{substitute:!0,name:{en:"May Day"}},"1st monday in May":!1,"2020-05-08":{name:{en:"Victory in Europe Day (VE Day)"}},"monday before 06-20":{name:{en:"Queen's Birthday"}},"monday before September":{name:{en:"Late Summer Bank Holiday"}},"09-10":{name:{en:"Gibraltar National Day"},active:[{to:2015}]},"09-10 and if sunday, saturday then previous monday":{substitute:!0,name:{en:"Gibraltar National Day"},active:[{from:2015}]}}},GL:{names:{kl:"Kalaallit Nunaat",da:"Grønland",en:"Greenland"},langs:["kl","da"],zones:["America/Godthab","America/Danmarkshavn","America/Scoresbysund","America/Thule"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"01-06":{_name:"01-06"},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"easter 26":{name:{kl:"tussiarfissuaq",da:"Store Bededag",en:"Prayer Day"}},"easter 39":{_name:"easter 39"},"06-21":{name:{kl:"ullortuneq",da:"Nationaldag",en:"National Day"}},"easter 49":{_name:"easter 49"},"easter 50":{_name:"easter 50"},"12-24":{_name:"12-24"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}},GM:{names:{en:"The Gambia"},langs:["en"],zones:["Africa/Abidjan"],dayoff:"",days:{"01-01":{_name:"01-01"},"02-18":{_name:"Independence Day"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"05-25":{name:{en:"Africa Day"}},"07-22":{name:{en:"Revolution Day"}},"08-15":{_name:"08-15"},"12-25":{_name:"12-25"},"10 Muharram":{_name:"10 Muharram"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"23 Ramadan":{_name:"23 Ramadan"},"1 Shawwal":{_name:"1 Shawwal",name:{en:"Korité"}},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah",name:{en:"Tabaski"}}}},GN:{names:{fr:"Guinée",en:"Guinea"},langs:["fr"],zones:["Africa/Abidjan"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"easter 1":{_name:"easter 1"},"04-03":{name:{fr:"Fête Nationale de la deuxième République",en:"National Holiday"}},"05-01":{_name:"05-01"},"05-25":{name:{fr:"Anniversaire de l'Organisation de l'unité africaine (OUA)",en:"Africa Day"}},"27 Ramadan":{_name:"27 Ramadan"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"},"08-15":{_name:"08-15"},"10-02":{_name:"Independence Day"},"12-25":{_name:"12-25"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"}}},GP:{names:{fr:"Guadeloupe",en:"Guadeloupe"},langs:["fr"],zones:["America/Guadeloupe"],dayoff:"sunday",_days:"FR",days:{"easter 49":!1,"easter -2":{_name:"easter -2"},"05-27":{_name:"Abolition of Slavery"},"07-21":{name:{fr:"Jour de Victor Schoelcher",en:"Victor Schoelcher Day"},type:"optional",note:"Government offices closed"}}},GQ:{names:{es:"República de Guinea Ecuatorial",fr:"République de Guinée équatoriale",pt:"República da Guiné Equatorial",en:"Republic of Equatorial Guinea"},dayoff:"sunday",weekend:["saturday","sunday"],langs:["es","fr","pt"],zones:["Africa/Lagos"],days:{"01-01 and if sunday then next monday":{substitute:!0,_name:"01-01"},"easter -2":{_name:"easter -2"},"05-01 and if sunday then next monday":{substitute:!0,_name:"05-01"},"easter 60":{_name:"easter 60"},"06-05 and if sunday then next monday":{substitute:!0,name:{es:"Natalicio de Teodoro Obiang",en:"President's Day"}},"08-03 and if sunday then next monday":{substitute:!0,name:{es:"Día del Golpe de Libertad",en:"Armed Forces Day"}},"08-15 and if sunday then next monday":{substitute:!0,_name:"Constitution Day"},"10-12 and if sunday then next monday":{substitute:!0,_name:"Independence Day"},"12-08 and if sunday then next monday":{substitute:!0,_name:"12-08"},"12-25 and if sunday then next monday":{substitute:!0,_name:"12-25"}}},GR:{names:{el:"Ελλάδα",en:"Greece"},dayoff:"sunday",zones:["Europe/Athens"],langs:["el"],days:{"01-01":{_name:"01-01"},"01-06":{_name:"01-06"},"orthodox -48":{name:{el:"Καθαρά Δευτέρα",en:"Ash Sunday"}},"03-25":{name:{el:"Ευαγγελισμός, Εθνική Εορτή",en:"Annunciation, Anniversary of 1821 Revolution"}},"orthodox -2":{_name:"easter -2"},orthodox:{_name:"easter"},"orthodox 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"orthodox 49":{_name:"easter 49"},"orthodox 50":{_name:"easter 50"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"08-15":{_name:"08-15"},"10-28":{_name:"National Holiday",name:{el:"Επέτειος του Όχι"}},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}},GT:{names:{es:"Guatemala",en:"Guatemala"},dayoff:"sunday",langs:["es"],zones:["America/Guatemala"],days:{"01-01":{_name:"01-01"},"02-11":{name:{es:"Día de la Monja Blanca",en:"White Nun Day"},type:"observance"},"02-20":{name:{es:"Día de la Marimba",en:"Marimba Day"},type:"observance"},"03-08":{_name:"03-08",type:"observance"},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},"easter -1":{_name:"easter -1"},easter:{_name:"easter",type:"observance"},"05-01":{_name:"05-01"},"05-10":{_name:"Mothers Day",type:"optional"},"05-30":{name:{es:"Día Nacional del Popol Vuh",en:"Popol Vuh Day"},type:"observance"},"06-17":{_name:"Fathers Day",type:"optional"},"06-25":{name:{es:"Día del Maestro",en:"Teacher's Day"},type:"observance"},"06-30 if tuesday then previous monday if wednesday,thursday then next friday":{name:{es:"Día de las Fuerzas Armadas",en:"Army Day"}},"07-01 if tuesday,saturday then previous friday if sunday then next monday":{name:{es:"Día del Empleado Bancario",en:"Bank Employee Day"},type:"bank"},"09-15":{_name:"Independence Day"},"10-12 if saturday then previous friday if sunday then next monday":{name:{es:"Día de la Raza",en:"Day of Race"},type:"bank"},"10-20":{_name:"Revolution Day"},"11-01":{_name:"11-01"},"11-02":{_name:"11-02",type:"observance"},"12-24 12:00":{_name:"12-24"},"12-25":{_name:"12-25"},"12-31 12:00":{_name:"12-31"}},states:{1:{name:"Guatemala",regions:{101:{name:"Guatemala",days:{"08-15":{_name:"08-15"}}},102:{name:"Santa Catarina Pinula",days:{"11-25":{name:{es:"Santa Catarina de Alejandría"}}}},103:{name:"San José Pinula",days:{"03-19":{name:{es:"San José Obrero"}}}},104:{name:"San José del Golfo",days:{"03-19":{name:{es:"San José Obrero"}}}},105:{name:"Palencia",days:{"04-27":{name:{es:"San Benito de Palermo"}}}},106:{name:"Chinautla",days:{"05-03":{name:{es:"Santa Cruz"}}}},107:{name:"San Pedro Ayampuc",days:{"easter -44":{name:{es:"Primer viernes de Cuaresma"}}}},108:{name:"Mixco",days:{"08-04":{name:{es:"Santo Domingo de Guzmán"}}}},109:{name:"San Pedro Sacatepéquez",days:{"06-29":{name:{es:"San Pedro Apóstol"}}}},110:{name:"San Juan Sacatepéquez",days:{"06-24":{name:{es:"San Juan Bautista"}}}},111:{name:"San Raimundo",days:{"01-23":{name:{es:"San Raymundo Peñafort"}}}},112:{name:"San Pedro y San Pablo",days:{"06-29":{_name:"06-29"}}},113:{name:"Fraijanes",days:{"02-02":{name:{es:"Virgen de la Candelaria y Sagrado Corazón de Jesús"}}}},114:{name:"Amatitlán",days:{"05-03":{name:{es:"Santa Cruz"}}}},115:{name:"Villa Nueva",days:{"12-08":{_name:"12-08"}}},116:{name:"Villa Canales",days:{"03-25":{name:{es:"San José Obrero"}}}},117:{name:"San Miguel Petapa",days:{"09-29":{name:{es:"San Miguel Arcángel"}}}}}}}},GU:{names:{en:"Guam"},dayoff:"sunday",langs:["en-us","en"],zones:["Pacific/Guam"],_days:["US"],days:{"3rd monday in February":!1,"03-17":!1,"1st monday in March":{name:{en:"Guam History and Chamorro Heritage Day"}},"easter -2":{_name:"easter -2",type:"observance"},"07-21 if sunday then next monday":{name:{en:"Liberation Day"}},"11-02":{_name:"11-02"},"12-08 if sunday then next monday":{name:{en:"Our Lady of Camarin Day"}}}},GW:{names:{pt:"Guiné-Bissau",en:"Guinea-Bissau"},langs:["pt"],zones:["Africa/Bissau"],dayoff:"",days:{"01-01":{_name:"01-01"},"01-20":{name:{pt:"Dia dos heróis",en:"Heroes Day"}},"03-08":{_name:"03-08"},"05-01":{_name:"05-01"},"08-03":{name:{pt:"Pidjiguiti Day"}},"09-24":{_name:"Independence Day"},"11-14":{name:{pt:"Dia do Movimento de Reajustamento",en:"Readjustment Movement Day"}},"12-25":{_name:"12-25"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},GY:{names:{en:"Guyana"},coord:{lat:6.8045,lng:-58.1553},dayoff:"sunday",langs:["en"],zones:["America/Guyana"],days:{"01-01":{_name:"01-01"},"02-23":{name:{en:"Republic Day"}},"easter -2":{_name:"easter -2"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"05-05":{name:{en:"Arrival Day"}},"05-26":{_name:"Independence Day"},"monday after 07-01":{name:{en:"CARICOM Day"}},"08-01":{name:{en:"Emancipation Day"}},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal",name:{en:"Youman Nabi"},note:"tentative",disable:["2016-12-11","2015-12-23","2013-01-24"],enable:["2016-12-12","2015-12-24","2013-01-23"]},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah",name:{en:"Eid Ul Adha"},note:"tentative",disable:["2015-09-23"],enable:["2015-09-24"]},"2015-03-05":{name:{en:"Phagwah"}},"2016-03-23":{name:{en:"Phagwah"}},"2017-03-12":{name:{en:"Phagwah"}},"2017-03-13":{substitute:!0,name:{en:"Phagwah"}},"2018-03-02":{name:{en:"Phagwah"}},"2019-03-21":{name:{en:"Phagwah"}},"2020-03-10":{name:{en:"Phagwah"}},"2021-03-29":{name:{en:"Phagwah"}},"2022-03-18":{name:{en:"Phagwah"}},"2023-03-07":{name:{en:"Phagwah"}},"2024-03-25":{name:{en:"Phagwah"}},"2015-11-11":{name:{en:"Deepavali"}},"2017-10-18":{name:{en:"Deepavali"}},"2018-11-07":{name:{en:"Deepavali"}},"2019-10-27":{name:{en:"Deepavali"}},"2019-10-28":{substitute:!0,name:{en:"Deepavali"}},"2020-11-14":{name:{en:"Deepavali"}},"2021-11-04":{name:{en:"Deepavali"}},"2022-10-24":{name:{en:"Deepavali"}},"2023-11-12":{name:{en:"Deepavali"}},"2023-11-13":{substitute:!0,name:{en:"Deepavali"}},"2024-10-31":{name:{en:"Deepavali"}}}},HK:{names:{zh:"香港",en:"Hong Kong"},langs:["zh","en"],zones:["Asia/Hong_Kong"],dayoff:"sunday",days:{"01-01 not on Sunday":{name:{en:"The first day of January",zh:"一月一日"}},"substitutes 01-01 if Sunday then next Monday":{name:{en:"The day following the first day of January",zh:"一月一日翌日"}},"chinese 01-0-01 not on Sunday":{name:{en:"Lunar New Years Day",zh:"農曆年初一"}},"chinese 01-0-02 not on Sunday":{name:{en:"The second day of Lunar New Year",zh:"農曆年初二"}},"chinese 01-0-03 not on Sunday":{name:{en:"The third day of Lunar New Year",zh:"農曆年初三"}},"substitutes chinese 01-0-01 if Sunday then next Wednesday":{name:{en:"The fourth day of Lunar New Year",zh:"農曆年初四"}},"substitutes chinese 01-0-02 if Sunday then next Tuesday":{name:{en:"The fourth day of Lunar New Year",zh:"農曆年初四"}},"substitutes chinese 01-0-03 if Sunday then next Monday":{name:{en:"The fourth day of Lunar New Year",zh:"農曆年初四"}},"chinese 5-01 solarterm not on Sunday":{name:{en:"Ching Ming Festival",zh:"清明節"}},"substitutes chinese 5-01 solarterm if Sunday then next Monday":{name:{en:"The day following Ching Ming Festival",zh:"清明節翌日"}},"easter -2":{name:{en:"Good Friday",zh:"耶穌受難節"}},"easter -1":{name:{en:"The day following Good Friday",zh:"耶穌受難節翌日"}},"easter 1":{name:{en:"Easter Monday",zh:"復活節星期一"},disable:["2021-04-05","2026-04-06"]},"2021-04-06":{name:{en:"The day following Easter Monday",zh:"復活節星期一翌日"}},"2026-04-07":{name:{en:"The day following Easter Monday",zh:"復活節星期一翌日"}},"05-01 not on Sunday":{name:{en:"Labour Day",zh:"勞動節"}},"substitutes 05-01 if Sunday then next Monday":{name:{en:"The day following Labour Day",zh:"勞動節翌日"}},"chinese 04-0-08 not on Sunday":{name:{en:"Birthday of the Buddha",zh:"佛誕"}},"substitutes chinese 04-0-08 if Sunday then next Monday":{name:{en:"The day following Birthday of the Buddha",zh:"佛誕翌日"}},"chinese 05-0-05 not on Sunday":{name:{en:"Tuen Ng Festival",zh:"端午節"}},"substitutes chinese 05-0-05 if Sunday then next Monday":{name:{en:"The day following Tuen Ng Festival",zh:"端午節翌日"}},"07-01 not on Sunday":{name:{en:"Hong Kong Special Administrative Region Establishment Day",zh:"香港特別行政區成立紀念日"}},"substitutes 07-01 if Sunday then next Monday":{name:{en:"The day following Hong Kong Special Administrative Region Establishment Day",zh:"香港特別行政區成立紀念日翌日"}},"chinese 08-0-16 not on Sunday":{name:{en:"The day following the Chinese Mid-Autumn Festival",zh:"中秋節翌日"}},"substitutes chinese 08-0-16 if Sunday then next Monday":{name:{en:"The second day following the Chinese Mid-Autumn Festival",zh:"中秋節後第二日"}},"10-01 not on Sunday":{name:{en:"National Day",zh:"國慶日"}},"substitutes 10-01 if Sunday then next Monday":{name:{en:"The day following National Day",zh:"國慶日翌日"}},"chinese 09-0-09 not on Sunday":{name:{en:"Chung Yeung Festival",zh:"重陽節"}},"substitutes chinese 09-0-09 if Sunday then next Monday":{name:{en:"The day following Chung Yeung Festival",zh:"重陽節翌日"}},"12-25 not on Sunday":{name:{en:"Christmas Day",zh:"聖誕節"}},"12-26 not on Sunday":{name:{en:"The first weekday after Christmas Day",zh:"聖誕節後第一個周日"}},"substitutes 12-25 if Sunday then next Tuesday":{name:{en:"The second weekday after Christmas Day",zh:"聖誕節後第二個周日"}},"substitutes 12-26 if Sunday then next Monday":{name:{en:"The first weekday after Christmas Day",zh:"聖誕節後第一個周日"}}}},HN:{names:{es:"Honduras",en:"Honduras"},dayoff:"sunday",langs:["es"],zones:["America/Tegucigalpa"],days:{"01-01":{_name:"01-01"},"03-19":{_name:"Fathers Day",type:"observance"},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"04-14":{name:{es:"Día de las Américas"}},"05-01":{_name:"05-01"},"2nd monday in May":{_name:"Mothers Day",type:"observance"},"06-11":{name:{en:"Pupil's Day",es:"Día del Estudiante"},type:"observance"},"09-10":{name:{en:"Children's Day",es:"Día del Niño"},type:"observance"},"09-15":{_name:"Independence Day"},"09-17":{name:{en:"Teacher's Day",es:"Día del Maestro"},type:"observance"},"10-03":{name:{en:"Soldier's Day",es:"Día del Soldado"}},"10-12":{name:{es:"Día de la Raza",en:"Columbus Day"}},"10-21":{name:{es:"Día de las Fuerzas Armadas",en:"Armed forces Day"}},"12-25":{_name:"12-25"}}},HR:{names:{hr:"Hrvatska",en:"Croatia"},langs:["hr"],zones:["Europe/Belgrade"],days:{"01-01":{_name:"01-01",type:"public"},"01-06":{_name:"01-06",type:"public"},"easter -47":{_name:"easter -47",type:"observance"},easter:{_name:"easter",type:"public"},"easter 1":{_name:"easter 1",type:"public"},"easter 60":{_name:"easter 60",type:"public"},"03-08":{_name:"03-08",type:"observance"},"05-01":{_name:"05-01",type:"public"},"05-30":{name:{hr:"Dan državnosti",en:"National Day"},type:"public",active:[{from:"2020-01-01"}]},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"06-22":{name:{hr:"Dan antifašističke borbe",en:"Anti-Fascist Struggle Day"},type:"public"},"06-25 #1":{name:{hr:"Dan državnosti",en:"Statehood Day"},type:"public",active:[{to:"2020-01-01"}]},"06-25":{name:{hr:"Dan neovisnosti",en:"Independence Day"},type:"observance",active:[{from:"2020-01-01"}]},"08-05":{name:{hr:"Dan pobjede i domovinske zahvalnosti i Dan hrvatskih branitelja",en:"Victory and Homeland Thanksgiving Day and the Day of Croatian defenders"},type:"public"},"08-15":{_name:"08-15",type:"public"},"10-08 #1":{name:{hr:"Dan neovisnosti",en:"Independence Day"},type:"public",active:[{to:"2020-01-01"}]},"10-08":{name:{hr:"Dan Hrvatskoga sabora",en:"Day of the Croatian Parliament"},type:"observence",active:[{from:"2020-01-01"}]},"11-01":{_name:"11-01",type:"public"},"11-18 #1":{name:{hr:"Dan sjećanja na žrtvu Vukovara i Škabrnje",en:"Remembrance Day"},type:"observance",active:[{to:"2020-01-01"}]},"11-18":{name:{hr:"Dan sjećanja na žrtve Domovinskog rata i Dan sjećanja na žrtvu Vukovara i Škabrnje",en:"Remembrance Day"},type:"public",active:[{from:"2020-01-01"}]},"12-25":{_name:"12-25",type:"public"},"12-26":{_name:"12-26",type:"public"},orthodox:{_name:"orthodox",type:"optional",note:"Orthodox believers (legally defined as Christians who follow the Julian Calender)"},"orthodox 1":{_name:"orthodox 1",type:"optional",note:"Orthodox believers (legally defined as Christians who follow the Julian Calender)"},"julian 12-25":{_name:"julian 12-25",type:"optional",note:"Orthodox believers (legally defined as Christians who follow the Julian Calender)"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah",type:"optional",note:"Muslim believers"},"1 Shawwal":{_name:"1 Shawwal",type:"optional",note:"Muslim believers"},"1 Tishrei":{_name:"10 Tishrei",type:"optional",note:"Jewish believers"},"10 Tishrei":{_name:"10 Tishrei",type:"optional",note:"Jewish believers"}},regions:{17:{name:"Split-Dalmatia",days:{"05-07":{name:{hr:"Sveti Duje",en:"Saint Domnius"},type:"optional"}}},19:{name:"Dubrovnik-Neretva",days:{"02-03":{name:{hr:"Sveti Vlaho",en:"Saint Blaise"},type:"optional"}}}}},HT:{names:{fr:"Haïti",en:"Haiti"},dayoff:"sunday",langs:["fr"],zones:["America/Port-au-Prince"],days:{"01-01":{_name:"Independence Day"},"01-02":{name:{fr:"Jour des Aieux",en:"Ancestry Day"}},"01-06":{_name:"01-06",name:{fr:"Le Jour des Rois"},type:"observance"},"easter -48 14:00":{name:{fr:"Lundi Gras",en:"Lundi Gras"}},"easter -47":{name:{fr:"Mardi Gras",en:"Mardi Gras"}},"easter -46":{_name:"easter -46",type:"observance"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"easter 39":{_name:"easter 39"},"easter 60":{_name:"easter 60"},"05-01":{_name:"05-01"},"05-18":{name:{fr:"Jour du Drapeau et de l'Université",en:"Flag and Universities' Day"}},"08-15":{_name:"08-15"},"10-17":{name:{fr:"Anniversaire de la mort de Dessalines",en:"Anniversary of the death of Dessalines"}},"11-01":{_name:"11-01"},"11-02":{_name:"11-02"},"11-18":{name:{fr:"Vertières",en:"Battle of Vertières Day"}},"12-05":{name:{fr:"Découverte d'Haïti",en:"Discovery Day"},type:"observance"},"12-25":{_name:"12-25"}}},HU:{names:{hu:"Magyarország",en:"Hungary"},dayoff:"sunday",langs:["hu"],zones:["Europe/Budapest"],days:{"01-01":{_name:"01-01",type:"public"},"02-01":{name:{hu:"A köztársaság emléknapja",en:"Memorial Day of the Republic"},type:"observance"},"02-25":{name:{hu:"A kommunista diktatúrák áldozatainak emléknapja",en:"Memorial Day for the Victims of the Communist Dictatorships"},type:"observance"},"03-08":{_name:"03-08",type:"observance"},"03-15":{name:{hu:"1848-as forradalom",en:"National Day"},type:"public"},"04-16":{name:{en:"Memorial Day for the Victims of the Holocaust",hu:"A holokauszt áldozatainak emléknapja"},type:"observance"},"easter -2":{_name:"easter -2",type:"public",active:[{from:"2017-01-01"}]},easter:{_name:"easter",type:"public"},"easter 1":{_name:"easter 1",type:"public"},"05-01":{_name:"05-01",type:"public"},"1st sunday in May":{_name:"Mothers Day",type:"observance"},"05-21":{name:{en:"National Defense Day",hu:"Honvédelmi nap"},type:"observance"},"easter 49":{_name:"easter 49",type:"public"},"easter 50":{_name:"easter 50",type:"public"},"06-04":{name:{en:"Day of National Unity",hu:"A nemzeti összetartozás napja"},type:"observance"},"06-19":{name:{en:"Day of the Independent Hungary",hu:"A független Magyarország napja"},type:"observance"},"08-20":{name:{hu:"Szent István ünnepe",en:"Saint Stephen's Day"},type:"public"},"10-06":{name:{en:"Memorial Day for the Martyrs of Arad",hu:"Az aradi vértanúk emléknapja"},type:"observance"},"10-23":{name:{hu:"1956-os forradalom",en:"National Day"},type:"public"},"11-01":{_name:"11-01",type:"public"},"12-06":{_name:"12-06",type:"observance"},"12-24":{_name:"12-24",type:"optional"},"12-25":{_name:"12-25",type:"public"},"12-26":{_name:"12-26",type:"public"},"12-31":{_name:"12-31",type:"observance"},"2023-10-30":{name:{hu:"Őszi szünet",en:"Autumn school holiday"},type:"school"},"2023-10-31":{name:{hu:"Őszi szünet",en:"Autumn school holiday"},type:"school"},"2023-11-02":{name:{hu:"Őszi szünet",en:"Autumn school holiday"},type:"school"},"2023-11-03":{name:{hu:"Őszi szünet",en:"Autumn school holiday"},type:"school"},"2023-12-22":{name:{hu:"Téli szünet",en:"Winter school holiday"},type:"school"},"2023-12-27":{name:{hu:"Téli szünet",en:"Winter school holiday"},type:"school"},"2024-01-02":{name:{hu:"Téli szünet",en:"Winter school holiday"},type:"school"},"2024-01-03":{name:{hu:"Téli szünet",en:"Winter school holiday"},type:"school"},"2024-01-04":{name:{hu:"Téli szünet",en:"Winter school holiday"},type:"school"},"2024-01-05":{name:{hu:"Téli szünet",en:"Winter school holiday"},type:"school"}}},IC:{names:{es:"Islas Canarias",en:"Canary Islands"},langs:["es"],zones:["Atlantic/Canary"],dayoff:"sunday",_days:"ES",days:{"easter -3":{_name:"easter -3"},"05-30":{name:{es:"Día de Canarias",en:"Canary Islands Day"}},"substitutes 05-30 if Sunday then next Monday":{substitute:!0,name:{es:"Día de Canarias",en:"Canary Islands Day"}},"substitutes 08-15 if Sunday then next Monday":{substitute:!0,_name:"08-15"},"substitutes 11-01 if sunday then next monday":{substitute:!0,_name:"11-01"}},regions:{EH:{names:{es:"El Hierro"},days:{"09-24":{name:{es:"Nuestra Señora de los Reyes"}}}},FU:{names:{es:"Fuerteventura"},days:{"09-18":{name:{es:"Nuestra Señora de la Peña"}}}},GC:{names:{es:"Gran Canaria"},days:{"09-08":{name:{es:"Nuestra Señora del Pino"}}}},LG:{names:{es:"La Gomera"},days:{"10-05":{name:{es:"Nuestra Señora de Guadalupe"}}}},LP:{names:{es:"La Palma"},days:{"08-05":{name:{es:"Nuestra Señora de las Nieves"}}}},LA:{names:{es:"Lanzarote"},days:{"09-15":{name:{es:"Nuestra Señora de los Dolores"}}}},TE:{names:{es:"Tenerife"},days:{"09-07":{name:{es:"La Bajada de la Virgen del Socorro"}}}}}},ID:{names:{en:"Indonesia",id:"Indonesia"},langs:["id"],zones:["Asia/Jakarta","Asia/Pontianak","Asia/Makassar","Asia/Jayapura"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"chinese 01-0-01":{name:{en:"Chinese New Year",id:"Tahun Baru Imlek"}},"easter -2":{_name:"easter -2"},"05-01":{_name:"05-01"},"easter 39":{_name:"easter 39"},"06-01":{name:{en:"Pancasila Day",id:"Hari Lahir Pancasila"}},"08-17":{_name:"Independence Day"},"12-25":{_name:"12-25"},"1 Muharram":{_name:"1 Muharram"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal",disable:["2025-09-04"],enable:["2025-09-05"]},"27 Rajab":{_name:"27 Rajab"},"1 Shawwal":{_name:"1 Shawwal"},"2 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"},"2009-03-26":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2010-03-16":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2011-03-05":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2012-03-23":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2013-03-12":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2014-03-31":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2015-03-21":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2016-03-09":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2017-03-28":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2018-03-17":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2019-03-07":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2020-03-25":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2021-03-14":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2022-03-03":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2023-03-22":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2024-03-11":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2025-03-29":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2026-03-19":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2027-03-08":{name:{en:"Nyepi",id:"Hari Raya Nyepi"}},"2001-05-07":{_name:"Vesak"},"2002-05-26":{_name:"Vesak"},"2003-05-16":{_name:"Vesak"},"2004-06-03":{_name:"Vesak"},"2005-05-24":{_name:"Vesak"},"2006-05-13":{_name:"Vesak"},"2007-06-01":{_name:"Vesak"},"2008-05-20":{_name:"Vesak"},"2009-05-09":{_name:"Vesak"},"2010-05-28":{_name:"Vesak"},"2011-05-17":{_name:"Vesak"},"2012-05-06":{_name:"Vesak"},"2013-05-25":{_name:"Vesak"},"2014-05-15":{_name:"Vesak"},"2015-06-02":{_name:"Vesak"},"2016-05-22":{_name:"Vesak"},"2017-05-11":{_name:"Vesak"},"2018-05-29":{_name:"Vesak"},"2019-05-19":{_name:"Vesak"},"2020-05-07":{_name:"Vesak"},"2021-05-26":{_name:"Vesak"},"2022-05-16":{_name:"Vesak"},"2023-05-06":{_name:"Vesak"},"2024-05-23":{_name:"Vesak"},"2025-05-12":{_name:"Vesak"},"2026-05-31":{_name:"Vesak"},"2027-05-20":{_name:"Vesak"}}},IE:{names:{en:"Ireland"},dayoff:"sunday",zones:["Europe/Dublin"],langs:["en"],days:{"01-01":{_name:"01-01"},"02-01 if Tuesday,Wednesday,Thursday,Saturday,Sunday then next Monday since 2023":{name:{en:"St. Brigids Day"}},"03-17":{name:{en:"St. Patricks Day"}},"03-17 and if saturday then next monday if sunday then next monday":{name:{en:"St. Patricks Day"},substitute:!0,type:"bank"},"easter -21":{_name:"Mothers Day",type:"observance"},"easter -2":{_name:"easter -2",type:"bank"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"1st monday in May":{name:{en:"May Day"}},"1st monday in June":{name:{en:"First Monday in June"}},"1st monday in August":{name:{en:"First Monday in August"}},"1st Monday before 11-01":{name:{en:"October Bank Holiday",type:"bank"}},"12-25":{_name:"12-25"},"12-26":{_name:"12-26",name:{en:"St. Stephen's Day"}},"12-26 and if saturday then next monday if sunday then next monday":{_name:"12-26",name:{en:"St. Stephen's Day"},substitute:!0,type:"bank"},"3rd sunday in June":{_name:"Fathers Day",type:"observance"}}},IL:{names:{he:"מְדִינַת יִשְׂרָאֵל",en:"Israel"},langs:["he"],zones:["Asia/Jerusalem"],dayoff:"Saturday",days:{"1 Tishrei":{name:{he:"ראש השנה",en:"Rosh Hashanah (Yom Teruah)"}},"2 Tishrei":{name:{he:"ראש השנה יום 2",en:"Rosh Hashanah (Day 2)"}},"3 Tishrei if Saturday then next Sunday":{name:{he:"צום גדליה",en:"Fast of Gedaliah (Tzom Gedalya)"},type:"observance"},"10 Tishrei":{name:{he:"יום כיפור",en:"Day of Atonement (Yom Kippur)"}},"15 Tishrei":{name:{he:"סוכות",en:"Feast of Tabernacles (Sukkot)"}},"16 Tishrei P6D":{name:{he:"חול המועד סוכות",en:"The week of Sukkot"},type:"school",note:"Collective paid leave in many businesses and government offices"},"22 Tishrei":{name:{he:"שמחת תורה/שמיני עצרת",en:"Simchat Torah/ Shmini Atzeret"}},"12 Cheshvan if Friday,Saturday then previous Thursday since 1997":{name:{he:"יום רבין",en:"Rabin Day"},type:"observance",note:"National remembrance day, business as usual"},"29 Cheshvan":{name:{he:"סיגד",en:"Sigd"},type:"observance",note:"Festival of the Ethiopian Jews, optional paid leave, business as usual"},"6 Kislev if Saturday then next Sunday":{name:{en:"Ben-Gurion Day",he:"יום בן-גוריון"},type:"observance",note:"Day marked by the Knesset"},"25 Kislev P8D":{name:{en:"Hanukkah",he:"חנוכה"},type:"school"},"10 Tevet":{name:{en:"Tenth of Tevet",he:"צום עשרה בטבת"},type:"observance"},"15 Shvat":{name:{en:"Tu Bishvat (Arbor Day)",he:'ט"ו בשבט'},type:"observance"},"13 AdarII if Saturday then previous Thursday":{name:{en:"Fast of Esther",he:"תענית אסתר"},type:"school"},"14 AdarII P2D":{name:{en:"Purim",he:"פורים"},type:"school",note:"optional paid leave"},"10 Nisan":{name:{en:"Aliyah Day",he:"יום העלייה"},type:"observance",note:"Official holiday, business as usual"},"15 Nisan":{name:{en:"Passover (Pesach)",he:"פסח"}},"16 Nisan P5D":{name:{en:"Passover (intermediate days)",he:"חול המועד פסח"},type:"school",note:"School holiday, collective paid leave in many businesses and government offices"},"21 Nisan":{name:{en:"Mimouna, Seventh day of Passover",he:"מימונה, שביעי של פסח"}},"27 Nisan if Friday then previous Thursday if Sunday then next Monday":{name:{en:"Holocaust Remembrance Day (Yom HaShoah)",he:"יום הזיכרון לשואה ולגבורה"},type:"observance",note:"National remembrance day, business as usual except places of public entertainment"},"05-09":{name:{en:"Victory in Europe Day",he:"יום הניצחון על גרמניה הנאצית"},type:"observance"},"4 Iyyar if Thursday,Friday then previous Wednesday if Sunday then next Monday":{name:{en:"Fallen Soldiers and Victims of Terrorism Remembrance Day (Yom HaZikaron)",he:"יום הזיכרון לחללי מערכות ישראל ונפגעי פעולות האיבה"},type:"observance",note:"National remembrance day, business as usual except places of public entertainment"},"5 Iyyar if Friday,Saturday then previous Thursday if Monday then next Tuesday":{name:{en:"Independence Day (Yom HaAtzmaut)",he:"יום העצמאות"}},"10 Iyyar if Saturday then next Sunday since 2004":{name:{en:"Herzl Day",he:"יום הרצל"},type:"observance",note:"Day marked by the Knesset"},"18 Iyyar":{name:{en:"Lag BaOmer",he:'ל"ג בעומר'},type:"school"},"28 Iyyar":{name:{en:"Jerusalem Day (Yom Yerushalayim)",he:"יום ירושלים"},type:"observance",note:"Optional paid leave"},"6 Sivan":{name:{en:"Shavuot (Feast of Weeks)",he:"שבועות"}},"17 Tamuz if Saturday then next Sunday":{name:{en:"Seventeenth of Tamuz, fast",he:"שבעה עשר בתמוז"},type:"observance"},"29 Tamuz if Saturday then next Sunday":{name:{en:"Jabotinsky Day",he:"יום ז'בוטינסקי"},type:"observance",note:"Day marked by the Knesset"},"9 Av if Saturday then next Sunday":{name:{en:"Tisha B'Av, fast",he:"תשעה באב"},type:"observance",note:"Optional paid leave, business as usual except places of public entertainment"},"15 Av":{name:{en:"Tu B'Av (Fifteenth of Av)",he:'ט"ו באב'},type:"observance"},"2015-03-17":{name:{en:"Election Day",he:"יום הבחירות"}},"2019-04-09":{name:{en:"Election Day",he:"יום הבחירות"}},"2019-09-17":{name:{en:"Election Day",he:"יום הבחירות"}},"2020-03-02":{name:{en:"Election Day",he:"יום הבחירות"}},"2021-03-23":{name:{en:"Election Day",he:"יום הבחירות"}}}},IM:{names:{en:"Isle of Man"},zones:["Europe/Isle_of_Man"],langs:["en"],_days:["GB"],days:{"2nd friday in June":{name:{en:"Tourist Trophy, Senior Race Day"}},"07-05":{name:{en:"Tynwald Day"}}}},IN:{names:{en:"India",hi:"भारत",ta:"இந்தியா"},langs:["en","hi","ta"],zones:["Asia/Kolkata"],dayoff:"sunday",days:{"01-26":{name:{en:"Republic Day",hi:"गणतंत्र दिवस",ta:"குடியரசு தினம்"},note:"Celebrates adoption of Constitution"},"04-14":{name:{en:"Ambedkar Jayanti",hi:"अम्बेडकर जयंती",ta:"அம்பேத்கர் ஜெயந்தி"},note:"Birth anniversary of Dr. B. R. Ambedkar"},"easter -2":{_name:"easter -2"},"08-15":{_name:"Independence Day",note:"Marks freedom from British rule"},"10-02":{name:{en:"Gandhi Jayanti",hi:"गांधी जयंती",ta:"காந்தி ஜெயந்தி"},note:"Birth anniversary of Mahatma Gandhi"},"12-25":{_name:"12-25",note:"Recognized as a public holiday"}},states:{AN:{name:"Andaman and Nicobar Islands",days:{}},AP:{name:"Andhra Pradesh",days:{"04-05":{name:{en:"Babu Jagjivan Ram Jayanti",hi:"बाबू जगजीवन राम जयंती",ta:"பாபு ஜக்ஜீவன் ராம் ஜெயந்தி"},type:"observance",note:"Birth anniversary of Babu Jagjivan Ram"},"11-01":{name:{en:"Formation Day",hi:"स्थापना दिवस",ta:"உருவான நாள்"},note:"Formation/Liberation day"}}},AR:{name:"Arunachal Pradesh",days:{"01-01":{_name:"01-01"},"02-20":{name:{en:"State Day",hi:"राज्य दिवस",ta:"மாநில தினம்"},note:"Arunachal Pradesh State Day"},"12-01":{name:{en:"Indigenous Faith Day",hi:"स्वदेशी आस्था दिवस",ta:"பழங்குடி நம்பிக்கை தினம்"},type:"observance",note:"Celebrates indigenous beliefs"}}},AS:{name:"Assam",days:{"01-23":{name:{en:"Netaji Subhas Chandra Bose Jayanti",hi:"नेताजी सुभाष चंद्र बोस जयंती",ta:"நேதாஜி சுபாஷ் சந்திர போஸ் ஜெயந்தி"},note:"Birth anniversary of Netaji Subhas Chandra Bose"},"01-31":{name:{en:"Me-Dam-Me-Phi",hi:"मे-डाम-मे-फी",ta:"மே-டாம்-மே-பி"},type:"observance",note:"Ancestor worship festival of Ahom community"},"05-01":{_name:"05-01"}}},BR:{name:"Bihar",days:{"03-22":{name:{en:"Bihar Day",hi:"बिहार दिवस",ta:"பீகார் தினம்"},note:"Formation day of Bihar"},"05-01":{_name:"05-01"}}},CH:{name:"Chandigarh",days:{"01-05":{name:{en:"Guru Gobind Singh Jayanti",hi:"गुरु गोबिंद सिंह जयंती",ta:"குரு கோபிந்த் சிங் ஜெயந்தி"},note:"Birth anniversary of the 10th Sikh Guru"}}},CT:{name:"Chhattisgarh",days:{"11-01":{name:{en:"Formation Day",hi:"स्थापना दिवस",ta:"உருவான நாள்"},note:"Formation day of Chhattisgarh"},"12-18":{name:{en:"Guru Ghasidas Jayanti",hi:"गुरु घासीदास जयंती",ta:"குரு காசிதாஸ் ஜெயந்தி"},note:"Birth anniversary of Guru Ghasidas"}}},DD:{name:"Daman and Diu",days:{"12-19":{name:{en:"Goa Liberation Day",hi:"गोवा मुक्ति दिवस",ta:"கோவா விடுதலை தினம்"},note:"Liberation from Portuguese rule"}}},DL:{name:"Delhi",days:{}},DN:{name:"Dadra and Nagar Haveli",days:{}},GA:{name:"Goa",days:{"12-03":{name:{en:"Feast of St. Francis Xavier",hi:"संत फ्रांसिस जेवियर का उत्सव",ta:"புனித பிரான்சிஸ் சேவியர் விழா"},note:"Celebration of Goa's patron saint"},"12-19":{name:{en:"Goa Liberation Day",hi:"गोवा मुक्ति दिवस",ta:"கோவா விடுதலை தினம்"},note:"Liberation from Portuguese rule"}}},GJ:{name:"Gujarat",days:{"05-01":{name:{en:"Gujarat Day",hi:"குஜராத் दिवस",ta:"குஜராத் தினம்"},note:"Formation day of Gujarat"},"10-31":{name:{en:"Sardar Vallabhbhai Patel Jayanti",hi:"सरदार वल्लभभाई पटेल जयंती",ta:"சர்தார் வல்லபாய் படேல் ஜெயந்தி"},note:"Birth anniversary of Sardar Vallabhbhai Patel"}}},HP:{name:"Himachal Pradesh",days:{"01-25":{name:{en:"State Day",hi:"राज्य दिवस",ta:"மாநில தினம்"},note:"Himachal Pradesh State Day"},"04-15":{name:{en:"Himachal Day",hi:"हिमाचल दिवस",ta:"இமாச்சல தினம்"},note:"Formation day celebration"},"05-09":{name:{en:"Maharana Pratap Jayanti",hi:"महाराणा प्रताप जयंती",ta:"மகாராணா பிரதாப் ஜெயந்தி"},note:"Birth anniversary of Maharana Pratap"},"10-07":{name:{en:"Maharishi Valmiki Jayanti",hi:"महर्षि वाल्मीकि जयंती",ta:"மகரிஷி வால்மீகி ஜெயந்தி"},note:"Birth anniversary of Maharishi Valmiki"}}},HR:{name:"Haryana",days:{"01-05":{name:{en:"Guru Gobind Singh Jayanti",hi:"गुरु गोबिंद सिंह जयंती",ta:"குரு கோபிந்த் சிங் ஜெயந்தி"},note:"Birth anniversary of the 10th Sikh Guru"},"07-31":{name:{en:"Martyrdom Day of Shaheed Udham Singh",hi:"शहीद उधम सिंह का शहीदी दिवस",ta:"தியாகி உத்தம் சிங் தியாக தினம்"},note:"Martyrdom day of Shaheed Udham Singh"},"09-22":{name:{en:"Maharaja Agrasen Jayanti",hi:"महाराजा अग्रसेन जयंती",ta:"மகாராஜா அக்ரசேன் ஜெயந்தி"},note:"Birth anniversary of Maharaja Agrasen"},"11-01":{name:{en:"Formation Day",hi:"स्थापना दिवस",ta:"உருவான நாள்"},note:"Formation day of Haryana"},"12-26":{name:{en:"Shaheed Udham Singh Jayanti",hi:"शहीद उधम सिंह जयंती",ta:"தியாகி உத்தம் சிங் ஜெயந்தி"},note:"Birth anniversary of Shaheed Udham Singh"}}},JK:{name:"Jammu and Kashmir",days:{"07-13":{name:{en:"Bhanu Jayanti / Martyrs' Day",hi:"भानु जयंती / शहीद दिवस",ta:"பானு ஜெயந்தி / தியாகிகள் தினம்"},note:"Birth anniversary of Bhanubhakta Acharya in Sikkim; Commemorates people killed in 1931 protests in Jammu and Kashmir"}}},KA:{name:"Karnataka",days:{"04-30":{name:{en:"Basava Jayanti",hi:"बसव जयंती",ta:"பசவ ஜெயந்தி"},note:"Birth anniversary of Basavanna"},"09-17":{name:{en:"Hyderabad-Karnataka Liberation Day",hi:"हैदराबाद-कर्नाटक मुक्ति दिवस",ta:"ஐதராபாத்-கர்நாடகா விடுதலை தினம்"},note:"Liberation from Nizam's rule"},"11-01":{name:{en:"Karnataka Formation Day",hi:"कर्नाटक स्थापना दिवस",ta:"கர்நாடகா உருவான நாள்"},note:"Formation day of Karnataka"},"11-08":{name:{en:"Kanakadasa Jayanti",hi:"कनकदास जयंती",ta:"கனகதாச ஜெயந்தி"},note:"Birth anniversary of Kanakadasa"}}},KL:{name:"Kerala",days:{"04-21":{name:{en:"Vaisakhi",hi:"वैसाखी",ta:"வைகாசி"},note:"Harvest festival and Sikh New Year"},"05-01":{_name:"05-01"},"11-01":{name:{en:"Kerala Formation Day",hi:"केरल स्थापना दिवस",ta:"கேரளா உருவான நாள்"},note:"Formation day of Kerala"}}},LD:{name:"Lakshadweep",days:{}},MH:{name:"Maharashtra",days:{"05-01":{name:{en:"Maharashtra Day",hi:"महाराष्ट्र दिवस",ta:"மகாராஷ்டிரா தினம்"},note:"Formation day of Maharashtra"}}},ML:{name:"Meghalaya",days:{"06-15":{name:{en:"YMA Day",hi:"वाईएमए दिवस",ta:"ஒய்எம்ஏ தினம்"},note:"Young Mizo Association Day"},"07-13":{name:{en:"Bhanu Jayanti / Martyrs' Day",hi:"भानु जयंती / शहीद दिवस",ta:"பானு ஜெயந்தி / தியாகிகள் தினம்"},note:"Birth anniversary of Bhanubhakta Acharya in Sikkim; Commemorates people killed in 1931 protests in Jammu and Kashmir"},"11-23":{name:{en:"Seng Kut Snem",hi:"सेंग कुट स्नेम",ta:"செங் குட் ஸ்னெம்"},note:"Celebrates Khasi heritage"}}},MN:{name:"Manipur",days:{"08-13":{name:{en:"Patriots' Day",hi:"देशभक्त दिवस",ta:"தேசபக்தர்கள் தினம்"},note:"Commemorates the 1891 Anglo-Manipur War"}}},MP:{name:"Madhya Pradesh",days:{}},MZ:{name:"Mizoram",days:{"06-30":{name:{en:"Remna Ni",hi:"रेमना नि",ta:"ரெம்னா நி"},note:"Mizoram Peace Accord Day"},"07-06":{name:{en:"MHIP Day",hi:"एमएचआईपी दिवस",ta:"எம்எச்ஐபி தினம்"},note:"Mizo Women's Association Day"}}},NL:{name:"Nagaland",days:{"12-01":{name:{en:"Indigenous Faith Day",hi:"स्वदेशी आस्था दिवस",ta:"பழங்குடி நம்பிக்கை தினம்"},note:"Celebrates indigenous beliefs"}}},OR:{name:"Odisha",days:{"04-01":{name:{en:"Odisha Day",hi:"ओडिशा दिवस",ta:"ஒடிசா தினம்"},note:"Formation day of Odisha"}}},PB:{name:"Punjab",days:{"03-23":{name:{en:"Shaheed Diwas",hi:"शहीद दिवस",ta:"தியாகி தினம்"},note:"Martyrdom day of Bhagat Singh, Rajguru and Sukhdev"}}},PY:{name:"Puducherry",days:{"08-16":{name:{en:"De Jure Transfer Day",hi:"डी ज्यूरे ट्रांसफर डे",ta:"சட்டப்படி மாற்ற தினம்"},note:"Marks the transfer of Puducherry to India"}}},RJ:{name:"Rajasthan",days:{"05-08":{name:{en:"Rabindra Jayanti",hi:"रवींद्र जयंती",ta:"ரவீந்திர ஜெயந்தி"},note:"Birth anniversary of Rabindranath Tagore"},"05-09":{name:{en:"Maharana Pratap Jayanti",hi:"महाराणा प्रताप जयंती",ta:"மகாராணா பிரதாப் ஜெயந்தி"},note:"Birth anniversary of Maharana Pratap"}}},SK:{name:"Sikkim",days:{"05-16":{name:{en:"State Day",hi:"राज्य दिवस",ta:"மாநில தினம்"},note:"Sikkim State Day"}}},TG:{name:"Telangana",days:{"06-02":{name:{en:"Telangana Formation Day",hi:"तेलंगाना स्थापना दिवस",ta:"தெலுங்கானா உருவான நாள்"},note:"Formation day of Telangana"}}},TN:{name:"Tamil Nadu",days:{"05-01":{_name:"05-01"}}},TR:{name:"Tripura",days:{"04-15":{name:{en:"Himachal Day",hi:"हिमाचल दिवस",ta:"இமாச்சல தினம்"},note:"Formation day celebration"}}},UP:{name:"Uttar Pradesh",days:{}},UT:{name:"Uttarakhand",days:{}},WB:{name:"West Bengal",days:{"01-12":{name:{en:"Swami Vivekananda Jayanti",hi:"स्वामी विवेकानंद जयंती",ta:"சுவாமி விவேகானந்தர் ஜெயந்தி"},note:"Birth anniversary of Swami Vivekananda"},"01-23":{name:{en:"Netaji Subhas Chandra Bose Jayanti",hi:"नेताजी सुभाष चंद्र बोस जयंती",ta:"நேதாஜி சுபாஷ் சந்திர போஸ் ஜெயந்தி"},note:"Birth anniversary of Netaji Subhas Chandra Bose"},"04-15":{name:{en:"Bengali New Year",hi:"बांग्ला नव वर्ष",ta:"வங்க புத்தாண்டு"},note:"Bengali New Year celebration"},"05-01":{_name:"05-01"},"05-08":{name:{en:"Rabindra Jayanti",hi:"रवींद्र जयंती",ta:"ரவீந்திர ஜெயந்தி"},note:"Birth anniversary of Rabindranath Tagore"}}}}},IR:{names:{fa:"جمهوری اسلامی ایران",en:"Iran"},langs:["fa","en"],zones:["Asia/Tehran"],dayoff:"Friday",days:{"1 Farvardin":{name:{fa:"نوروز",en:"Nowruz"}},"2 Farvardin":{name:{fa:"نوروز",en:"Nowruz"}},"3 Farvardin":{name:{fa:"نوروز",en:"Nowruz"}},"4 Farvardin":{name:{fa:"نوروز",en:"Nowruz"}},"12 Farvardin":{name:{fa:"روز جمهوری اسلامی",en:"Islamic Republic Day"}},"13 Farvardin":{name:{fa:"سیزده بدر",en:"Sizdah Bedar"}},"14 Khordad":{name:{fa:"رﺣﻠﺖ اﻣﺎم ﺧﻤﯿﻨﯽ",en:"Imam Khomeini's Demise"}},"15 Khordad":{name:{fa:"قیام ۱۵ خرداد",en:"Revolt of Khordad 15"}},"22 Bahman":{name:{fa:"انقلاب اسلامی پنجاه و هفت",en:"Anniversary of Islamic Revolution"}},"29 Esfand":{name:{fa:"ملی شدن صنعت نفت",en:"Nationalization of the Iranian oil industry"}},"9 Muharram":{name:{fa:"ﺗﺎﺳﻮﻋﺎی ﺣﺴﯿﻨﯽ",en:"Tasoua"}},"10 Muharram":{name:{fa:"ﻋﺎﺷﻮرای ﺣﺴﯿﻨﯽ",en:"Ashoura"}},"20 Safar":{name:{fa:"اربعین حسینی",en:"Arbaeen-e Hosseini"}},"28 Safar":{name:{fa:"رﺣﻠﺖ ﺣﻀﺮت رﺳﻮل اﮐﺮم صلّی الله علیه وآله و سلّم",en:"Demise of Prophet Muhammad and Imam Hassan (Mujtaba)"}},"30 Safar":{name:{fa:"ﺷﻬﺎدت ﺣﻀﺮت اﻣﺎم رﺿﺎ ﻋﻠﯿﻪاﻟﺴﻼم",en:"Martyrdom of Imam Reza"}},"8 Rabi al-awwal":{name:{fa:"شهادت امام حسن عسكری علیه‌السلام",en:"Martyrdom of Imam Hassan"}},"17 Rabi al-awwal":{name:{fa:"ولادت حضرت رسول اکرم صلّی الله علیه وآله و سلّم",en:"Birthday of Muhammad Prophet"}},"3 Jumada al-thani":{name:{fa:"ﺷﻬﺎدت ﺣﻀﺮت ﻓﺎﻃﻤﻪ زﻫﺮا ﺳﻼم اﷲ ﻋﻠﯿﻬﺎ",en:"Martyrdom of Fatima-Zahara"}},"13 Rajab":{name:{fa:"وﻻدت ﺣﻀﺮت اﻣﺎم ﻋﻠﯽ ﻋﻠﯿﻪ اﻟﺴﻼم",en:"Birthday of Imam Ali"}},"27 Rajab":{name:{fa:"ﻣﺒﻌﺚ ﺣﻀﺮت رﺳﻮل اﮐﺮم ﺻﻠﯽ اﷲ ﻋﻠﯿﻪ و آﻟﻪ",en:"Mabaas of Muhammad"}},"15 Shaban":{name:{fa:"وﻻدت ﺣﻀﺮت ﻗﺎﺋﻢ ﻋﺠﻞاﷲ ﺗﻌﺎﻟﯽ ﻓﺮﺟﻪ شریف",en:"Birthday of Imam Mahdi"}},"21 Ramadan":{name:{fa:"ﺷﻬﺎدت ﺣﻀﺮت ﻋﻠﯽ ﻋﻠﯿﻪاﻟﺴﻼم",en:"Martyrdom of Imam Ali"}},"1 Shawwal":{_name:"1 Shawwal"},"2 Shawwal":{name:{fa:"ﺑﻪ ﻣﻨﺎﺳﺒﺖ ﻋﯿﺪ ﺳﻌﯿﺪ ﻓﻄﺮ",en:"Holyday for Fetr Eeid"}},"25 Shawwal":{name:{fa:"ﺷﻬﺎدت ﺣﻀﺮت اﻣﺎم ﺟﻌﻔﺮ ﺻﺎدق ﻋﻠﯿﻪاﻟﺴﻼم",en:"Martyrdom of Imam Jafar"}},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"},"18 Dhu al-Hijjah":{name:{fa:"ﻋﯿﺪ ﺳﻌﯿﺪ ﻏﺪﯾﺮ ﺧﻢ",en:"Eid al-Ghadeer"}}}},IS:{names:{is:"Ísland",en:"Iceland"},dayoff:"sunday",zones:["Atlantic/Reykjavik"],langs:["is"],days:{"01-01":{_name:"01-01"},"01-06":{_name:"01-06",type:"observance"},"friday after 01-18":{name:{is:"Bóndadagur"},type:"observance"},"02-18":{name:{is:"Konudagur",en:"Woman's Day"},type:"observance"},"easter -48":{name:{is:"Bolludagur"},type:"observance"},"easter -47":{name:{is:"Sprengidagur"},type:"observance"},"easter -46":{_name:"easter -46",type:"observance"},"easter -7":{_name:"easter -7",type:"observance"},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"thursday after 04-18":{name:{is:"Sumardagurinn fyrsti",en:"First Day of Summer"}},"05-01":{_name:"05-01"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"easter 39":{_name:"easter 39"},"easter 49":{_name:"easter 49"},"easter 50":{_name:"easter 50"},"1st sunday in June":{name:{is:"Sjómannadagurinn",en:"The Seamen's Day"},type:"observance"},"06-17":{name:{is:"Íslenski þjóðhátíðardagurinn",en:"Icelandic National Day"}},"1st monday in August":{name:{is:"Frídagur verslunarmanna",en:"Commerce Day"}},"saturday after 10-21":{name:{is:"Fyrsti vetrardagur",en:"First Day of Winter"},type:"observance"},"11-16":{name:{is:"Dagur íslenskrar tungu",en:"Icelandic Language Day"},type:"observance"},"12-23":{name:{is:"Þorláksmessa",en:"St Þorlákur's Day"},type:"observance"},"12-24 13:00 if sunday then 00:00":{_name:"12-24"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"12-31 13:00 if sunday then 00:00":{_name:"12-31"}}},IT:{names:{it:"Italia",en:"Italia"},dayoff:"sunday",zones:["Europe/Rome"],langs:["it"],days:{"01-01":{_name:"01-01"},"01-06":{_name:"01-06"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"04-25":{name:{it:"Anniversario della Liberazione",en:"Liberation Day"}},"05-01":{_name:"05-01"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"06-02":{name:{it:"Festa della Repubblica",en:"Republic Day"}},"08-15":{_name:"08-15"},"10-04 since 2026":{name:{it:"San Francesco d'Assisi",en:"Francis of Assisi"}},"11-01":{_name:"11-01"},"12-08":{_name:"12-08"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"2011-03-17":{name:{it:"Festa Nazionale 2011",en:"National Day 2011"}}},states:{21:{name:"Piedmont",regions:{TO:{names:{it:"Torino",en:"Turin"},days:{"06-24":{name:{it:"San Giovanni",en:"Saint John"},note:"patron saint of Turin"}}}}},25:{name:"Lombardy",regions:{MI:{name:"Milan",days:{"12-07":{name:{it:"Sant'Ambrogio",en:"Saint Ambrose"},note:"patron saint of Milan"}}}}},32:{names:{de:"Südtirol",it:"Alto Adige"},days:{"easter 50":{_name:"easter 50"}}},52:{names:{it:"Toscana",en:"Tuscany"},regions:{FI:{names:{it:"Firenze",en:"Florence"},days:{"06-24":{name:{it:"San Giovanni",en:"Saint John"},type:"optional",note:"patron saint of Florence"}}}}},62:{name:"Lazio",regions:{RM:{names:{it:"Roma",en:"Rome"},days:{"06-29":{name:{it:"Santi Pietro e Paolo",en:"Saints Peter and Paul"},note:"patron saints of Rome"}}}}},82:{name:"Sicily",regions:{PA:{names:{it:"Palermo",en:"Palermo"},days:{"07-15":{name:{it:"Santa Rosalia",en:"Saint Rosalia"},note:"patron saint of Palermo"}}}}}}},JE:{names:{en:"Jersey"},zones:["Europe/Jersey"],langs:["en"],_days:["GB"],days:{"05-09":{name:{en:"Liberation Day"}},"1st monday before 09-01":{name:{en:"Summer Bank Holiday"}}}},JM:{names:{en:"Jamaica"},dayoff:"sunday",langs:["en"],zones:["America/Jamaica"],days:{"01-01 and if sunday then next monday":{_name:"01-01",substitute:!0},"easter -46":{_name:"easter -46"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"05-23 if saturday,sunday then next monday":{_name:"05-01"},"08-01 if sunday then next monday":{name:{en:"Emancipation Day"}},"08-06 and if sunday then next monday":{_name:"Independence Day",substitute:!0},"3rd monday in October":{name:{en:"National Heroes Day"}},"12-25 and if sunday then next tuesday":{_name:"12-25",substitute:!0},"12-26 and if sunday then next monday":{_name:"12-26",substitute:!0}}},JP:{names:{jp:"日本",en:"Japan"},dayoff:"sunday",langs:["jp"],zones:["Asia/Tokyo"],days:{"01-01":{_name:"01-01"},"substitutes 01-01 if sunday then next monday":{substitute:!0,_name:"01-01",active:[{from:"1973-04-12T00:00:00.000Z"}]},"01-02":{name:{en:"January 2nd",jp:"銀行休業日"},type:"bank"},"01-03":{name:{en:"January 3rd",jp:"銀行休業日"},type:"bank"},"01-15":{name:{en:"Coming of Age Day",jp:"成人の日"},active:[{from:"1948-07-20T00:00:00.000Z",to:"1999-12-31T00:00:00.000Z"}]},"substitutes 01-15 and if sunday then next monday":{substitute:!0,name:{en:"Coming of Age Day",jp:"成人の日"},active:[{from:"1973-04-12T00:00:00.000Z",to:"1999-12-31T00:00:00.000Z"}]},"2nd monday in January":{name:{en:"Coming of Age Day",jp:"成人の日"},active:[{from:"2000-01-01T00:00:00.000Z"}]},"02-11":{name:{en:"Foundation Day",jp:"建国記念の日"},active:[{from:"1967-01-01T00:00:00.000Z"}]},"substitutes 02-11 and if sunday then next monday":{substitute:!0,name:{en:"Foundation Day",jp:"建国記念の日"},active:[{from:"1973-04-12T00:00:00.000Z"}]},"02-23 and if sunday then next monday":{substitute:!0,name:{en:"Emperor's Birthday",jp:"天皇誕生日"},active:[{from:"2020-01-01T00:00:00.000Z"}]},"1989-02-24":{name:{en:"State Funeral of Emperor Showa",jp:"大喪の礼"}},"march equinox in +09:00":{name:{en:"Spring Equinox Day",jp:"春分の日"},active:[{from:"1948-07-20T00:00:00.000Z"}]},"substitutes march equinox in +09:00 and if sunday then next monday":{substitute:!0,name:{en:"Spring Equinox Day",jp:"春分の日"},active:[{from:"1973-04-12T00:00:00.000Z"}]},"1959-04-10":{name:{en:"Marriage of Crown Prince Akihito",jp:"結婚の儀"}},"04-29":{name:{en:"Emperor's Birthday",jp:"天皇誕生日"},active:[{from:"1948-07-20T00:00:00.000Z",to:"1988-12-31T00:00:00.000Z"}]},"substitutes 04-29 and if sunday then next monday":{substitute:!0,name:{en:"Emperor's Birthday",jp:"天皇誕生日"},active:[{from:"1973-04-12T00:00:00.000Z",to:"1988-12-31T00:00:00.000Z"}]},"04-29 and if sunday then next monday #1":{substitute:!0,name:{en:"Greenery Day",jp:"みどりの日"},active:[{from:"1989-01-01T00:00:00.000Z",to:"2006-12-31T00:00:00.000Z"}]},"04-29 and if sunday then next monday #2":{substitute:!0,name:{en:"Showa Day",jp:"昭和の日"},active:[{from:"2007-01-01T00:00:00.000Z"}]},"2019-04-30":{name:{en:"Citizens' Holiday",jp:"国民の休日"}},"2019-05-01":{name:{en:"Coronation Day",jp:"即位の日"}},"2019-05-02":{name:{en:"Citizens' Holiday",jp:"国民の休日"}},"05-03":{_name:"Constitution Day"},"substitutes 05-03 if sunday then next monday":{substitute:!0,_name:"Constitution Day",active:[{from:"1973-04-12T00:00:00.000Z",to:"2006-12-31T00:00:00.000Z"}]},"substitutes 05-03 if sunday then next wednesday":{substitute:!0,_name:"Constitution Day",active:[{from:"2007-01-01T00:00:00.000Z"}]},"05-04 not on sunday, monday":{name:{en:"Citizens' Holiday",jp:"国民の休日"},active:[{from:"1986-01-01T00:00:00.000Z",to:"2006-12-31T00:00:00.000Z"}]},"05-04 and if sunday then next tuesday":{substitute:!0,name:{en:"Greenery Day",jp:"みどりの日"},active:[{from:"2007-01-01T00:00:00.000Z"}]},"05-05":{name:{en:"Children's Day",jp:"こどもの日"}},"substitutes 05-05 if sunday then next monday":{substitute:!0,name:{en:"Children's Day",jp:"こどもの日"},active:[{from:"1973-04-12T00:00:00.000Z"}]},"1993-06-09":{name:{en:"Marriage of Crown Prince Naruhito",jp:"結婚の儀"}},"07-20":{name:{en:"Marine Day",jp:"海の日"},active:[{from:"1996-01-01T00:00:00.000Z",to:"2002-12-31T00:00:00.000Z"}]},"substitutes 07-20 if sunday then next monday":{substitute:!0,name:{en:"Marine Day",jp:"海の日"},active:[{from:"1996-01-01T00:00:00.000Z",to:"2002-12-31T00:00:00.000Z"}]},"3rd monday in July":{name:{en:"Marine Day",jp:"海の日"},disable:["2020-07-20","2021-07-19"],enable:["2020-07-23","2021-07-22"],active:[{from:"2003-01-01T00:00:00.000Z"}]},"substitutes 2021-08-08 and if sunday then next monday":{substitute:!0,name:{en:"Mountain Day",jp:"山の日"}},"substitutes 08-11 and if sunday then next monday":{substitute:!0,name:{en:"Mountain Day",jp:"山の日"},disable:["2020-08-11","2021-08-11"],enable:["2020-08-10"],active:[{from:"2016-01-01T00:00:00.000Z"}]},"09-15":{name:{en:"Respect-for-the-Aged Day",jp:"敬老の日"},active:[{from:"1966-01-01T00:00:00.000Z",to:"2002-12-31T00:00:00.000Z"}]},"substitutes 09-15 and if sunday then next monday":{substitute:!0,name:{en:"Respect-for-the-Aged Day",jp:"敬老の日"},active:[{from:"1973-04-12T00:00:00.000Z",to:"2002-12-31T00:00:00.000Z"}]},"3rd monday in September":{name:{en:"Respect-for-the-Aged Day",jp:"敬老の日"},active:[{from:"2003-01-01T00:00:00.000Z"}]},"09-22 if 09-21 and 09-23 is public holiday":{name:{en:"Citizens' Holiday",jp:"国民の休日"}},"september equinox in +09:00":{name:{en:"Autumnal Equinox Day",jp:"秋分の日"},active:[{from:"1948-07-20T00:00:00.000Z"}]},"substitutes september equinox in +09:00 and if sunday then next monday":{substitute:!0,name:{en:"Autumnal Equinox Day",jp:"秋分の日"},active:[{from:"1973-04-12T00:00:00.000Z"}]},"10-10":{name:{en:"Sports Day",jp:"体育の日"},active:[{from:"1966-01-01T00:00:00.000Z",to:"1999-12-31T00:00:00.000Z"}]},"substitutes 10-10 and if sunday then next monday":{substitute:!0,name:{en:"Sports Day",jp:"体育の日"},active:[{from:"1973-04-12T00:00:00.000Z",to:"1999-12-31T00:00:00.000Z"}]},"2nd monday in October #1":{name:{en:"Sports Day",jp:"体育の日"},active:[{from:"2000-01-01T00:00:00.000Z",to:"2019-12-31T00:00:00.000Z"}]},"2nd monday in October #2":{name:{en:"Sports Day",jp:"スポーツの日"},disable:["2020-10-12","2021-10-11"],enable:["2020-07-24","2021-07-23"],active:[{from:"2020-01-01T00:00:00.000Z"}]},"2019-10-22":{name:{en:"Enthronement Ceremony Day",jp:"即位礼正殿の儀"}},"11-03":{substitute:!0,name:{en:"Culture Day",jp:"文化の日"},active:[{from:"1948-07-20T00:00:00.000Z"}]},"substitutes 11-03 and if sunday then next monday":{substitute:!0,name:{en:"Culture Day",jp:"文化の日"},active:[{from:"1973-04-12T00:00:00.000Z"}]},"1990-11-12":{name:{en:"Official Enthronement Ceremony of Emperor Heisei (Akihito)",jp:"即位礼正殿の儀"}},"11-15":{name:{en:"Seven-Five-Three Festival",jp:"七五三"},type:"observance"},"11-23":{name:{en:"Labor Thanksgiving Day",jp:"勤労感謝の日"},active:[{from:"1948-07-20T00:00:00.000Z"}]},"substitutes 11-23 and if sunday then next monday":{substitute:!0,name:{en:"Labor Thanksgiving Day",jp:"勤労感謝の日"},active:[{from:"1973-04-12T00:00:00.000Z"}]},"12-23 and if sunday then next monday":{substitute:!0,name:{en:"Emperor's Birthday",jp:"天皇誕生日"},active:[{from:"1989-01-01T00:00:00.000Z",to:"2018-12-31T00:00:00.000Z"}]},"12-25":{_name:"12-25",type:"observance"},"12-31":{_name:"12-31",type:"bank"}}},KE:{names:{en:"Kenya"},dayoff:"sunday",langs:["sw","en"],zones:["Africa/Nairobi"],days:{"01-01 and if sunday then next monday":{substitute:!0,_name:"01-01"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"05-01 and if sunday then next monday":{substitute:!0,_name:"05-01"},"06-01 and if sunday then next monday":{substitute:!0,name:{sw:"Siku ya Madaraka",en:"Madaraka Day"}},"10-10 and if sunday then next monday":{substitute:!0,name:{en:"Moi Day"}},"10-20 and if sunday then next monday":{substitute:!0,name:{sw:"Siku ya Mashujaa",en:"Mashujaa Day"}},"12-12 and if sunday then next monday":{substitute:!0,name:{sw:"Siku ya Jamhuri",en:"Jamhuri Day"}},"12-25 and if sunday then next tuesday":{substitute:!0,_name:"12-25"},"12-26 and if sunday then next monday":{substitute:!0,_name:"12-26"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah",note:"For all persons belonging to the Islamic faith."}}},KM:{names:{fr:"Union des Comores",en:"Comoros"},langs:["fr","ar","swb","wlc","wni","zdj"],zones:["Africa/Nairobi"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"03-18":{name:{fr:"Journée de Cheikh Al Maarouf",en:"Cheikh Al Maarouf Day"}},"05-01":{_name:"05-01"},"07-06":{_name:"Independence Day"},"11-12":{name:{fr:"Journée Maoré",en:"Maore Day"}},"1 Muharram":{_name:"1 Muharram"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Shawwal P3DT0H0M":{_name:"1 Shawwal"},"10 Dhu al-Hijjah P2DT0H0M":{_name:"10 Dhu al-Hijjah"},"27 Rajab":{_name:"27 Rajab"}}},KN:{names:{en:"St. Kitts & Nevis"},langs:["en"],zones:["America/Port_of_Spain"],dayoff:"sunday",days:{"01-01 and if Saturday then next Monday":{substitute:!0,_name:"01-01"},"01-02":{name:{en:"Carnival Day"}},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"easter 49":{_name:"easter 49",type:"observance"},"easter 50":{_name:"easter 50"},"1st Monday in May":{_name:"05-01"},"1st Monday in August":{name:{en:"Emancipation Day"}},"1st Tuesday in August":{name:{en:"Culturama Day"}},"09-16 and if Sunday then next Monday":{substitute:!0,name:{en:"National Heroes' Day"}},"09-19 if Sunday then next Monday":{substitute:!0,_name:"Independence Day"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}},KR:{names:{ko:"대한민국",en:"South Korea"},dayoff:"sunday",langs:["ko"],zones:["Asia/Seoul"],days:{"01-01":{_name:"01-01"},"korean 01-0-01 P3D":{name:{en:"Korean New Year",ko:"설날"}},"03-01":{name:{en:"Independence Movement Day",ko:"3·1절"}},"05-05":{name:{en:"Children's Day",ko:"어린이날"}},"korean 4-0-8":{name:{en:"Buddha's Birthday",ko:"석가탄신일"}},"06-06":{name:{en:"Memorial Day",ko:"현충일"}},"07-17 prior to 2026":{name:{en:"Constitution Day",ko:"제헌절"},type:"observance"},"07-17 since 2026":{name:{en:"Constitution Day",ko:"제헌절"}},"08-15":{name:{en:"Liberation Day",ko:"광복절"}},"korean 8-0-14 P3D":{name:{en:"Korean Thanksgiving",ko:"추석"}},"10-03":{name:{en:"National Foundation Day",ko:"개천절"}},"10-09":{name:{en:"Hangul Day",ko:"한글날"}},"12-25":{_name:"12-25"}}},KY:{names:{en:"Cayman Islands"},langs:["en"],zones:["America/Panama"],dayoff:"sunday",days:{"01-01 and if Saturday, Sunday then next Monday":{substitute:!0,_name:"01-01"},"4th Monday in January":{name:{en:"National Heroes Day"}},"easter -46":{_name:"easter -46"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"3rd Monday in May":{name:{en:"Discovery Day"}},"07-02":{name:{en:"Constitution Day"}},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"2017-05-24":{name:"General Election Day"},"2021-04-14":{name:"General Election Day"},"2016-06-13":{name:{en:"Queen's Birthday"}},"2017-06-19":{name:{en:"Queen's Birthday"}},"2018-06-11":{name:{en:"Queen's Birthday"}},"2019-06-10":{name:{en:"Queen's Birthday"}},"2020-06-15":{name:{en:"Queen's Birthday"}},"2021-06-14":{name:{en:"Queen's Birthday"}},"2022-06-20":{name:{en:"Queen's Birthday"}},"2023-06-19":{name:{en:"Queen's Birthday"}},"2024-06-17":{name:{en:"Queen's Birthday"}},"2025-06-16":{name:{en:"Queen's Birthday"}},"2026-06-15":{name:{en:"Queen's Birthday"}}}},KZ:{names:{kk:"Қазақстан",ru:"Казахстан",en:"Kazakhstan"},dayoff:"sunday",langs:["kk","ru"],zones:["Asia/Almaty","Asia/Qyzylorda","Asia/Aqtobe","Asia/Aqtau","Asia/Atyrau","Asia/Oral"],days:{"01-01 and if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"01-01"},"01-02 and if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"01-01"},"01-07":{name:{kk:"Рождество Христово",ru:"Рождество Христово",en:"Orthodox Christmas"}},"03-08 and if saturday,sunday then next monday":{substitute:!0,_name:"03-08"},"03-15 and if saturday,sunday then next monday since 2026":{substitute:!0,name:{kk:"Конституция күні",ru:"День Конституции",en:"Constitution Day"}},"03-21 and if saturday then next monday if sunday then next tuesday":{substitute:!0,name:{kk:"Наурыз мейрамы",ru:"Наурыз мейрамы",en:"Nauryz"}},"03-22 and if saturday then next monday if sunday then next tuesday":{substitute:!0,name:{kk:"Наурыз мейрамы",ru:"Наурыз мейрамы",en:"Nauryz"}},"03-23 and if saturday then next monday if sunday then next tuesday":{substitute:!0,name:{kk:"Наурыз мейрамы",ru:"Наурыз мейрамы",en:"Nauryz"}},"05-01 and if saturday,sunday then next monday":{substitute:!0,name:{kk:"Қазақстан халқының бірлігі күні",ru:"День единства народа Казахстана",en:"People's Unity Day"}},"05-07 and if saturday,sunday then next monday since 2013":{substitute:!0,name:{kk:"Отан Қорғаушы күні",ru:"День Защитника Отечества",en:"Defender of the Fatherland Day"}},"05-09 and if saturday,sunday then next monday":{substitute:!0,name:{kk:"Жеңіс күні",ru:"День Победы",en:"Victory Day"}},"07-06 and if saturday,sunday then next monday":{substitute:!0,name:{kk:"Астана күні",ru:"День столицы",en:"Capital City Day"}},"08-30 and if saturday,sunday then next monday prior to 2026":{substitute:!0,name:{kk:"Конституция күні",ru:"День Конституции",en:"Constitution Day"}},"10-25 and if saturday,sunday then next monday":{substitute:!0,name:{kk:"Республика күні",ru:"День Республики",en:"Republic Day"},active:[{from:"1995-01-01",to:"2009-12-31"},{from:"2022-01-01"}]},"12-01 and if saturday,sunday then next monday since 2012 and prior to 2022":{substitute:!0,name:{kk:"Тұңғыш Президент күні",ru:"День Первого Президента",en:"First President's Day"}},"12-16 and if saturday then next monday if sunday then next tuesday":{substitute:!0,name:{kk:"Тәуелсіздік күні",ru:"День независимости",en:"Independence Day"}},"12-17 and if saturday then next monday if sunday then next tuesday prior to 2022":{substitute:!0,name:{kk:"Тәуелсіздік күні",ru:"День независимости",en:"Independence Day"}},"10 Dhu al-Hijjah":{name:{kk:"Құрбан айт",ru:"Курбан-айт",en:"Eid al-Adha"}}}},LC:{names:{en:"St. Lucia"},langs:["en"],zones:["America/Port_of_Spain"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"01-02":{name:{en:"Second New Year's Day"}},"02-22":{_name:"Independence Day"},"easter -2":{_name:"easter -2"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"easter 50":{_name:"easter 50"},"easter 60":{_name:"easter 60"},"1st Friday after 07-10 P4D":{name:{en:"Carnival"}},"08-01":{name:{en:"Emancipation Day"}},"1st Monday in October":{name:{en:"Thanksgiving"}},"12-13":{name:{en:"National Day"}},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}},LI:{names:{de:"Liechtenstein",en:"Liechtenstein"},dayoff:"sunday",langs:["de"],zones:["Europe/Zurich"],days:{"01-01":{_name:"01-01"},"01-02":{name:{de:"Berchtoldstag",en:"Berchtold Day"},type:"bank"},"01-06":{_name:"01-06"},"02-02":{_name:"02-02",type:"observance"},"03-19":{_name:"03-19",type:"observance"},"easter -47":{_name:"easter -47",type:"bank"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"easter 39":{_name:"easter 39",name:{de:"Auffahrt"}},"easter 40":{name:{de:"Feiertagsbrücke"}},"easter 49":{_name:"easter 49",type:"observance"},"easter 50":{_name:"easter 50"},"easter 60":{_name:"easter 60"},"easter 61":{name:{de:"Feiertagsbrücke"}},"08-15":{name:{de:"Staatsfeiertag"},type:"observance"},"09-08":{name:{de:"Mariä Geburt"}},"11-01":{_name:"11-01",type:"observance"},"12-08":{_name:"12-08"},"12-24":{_name:"12-24",type:"bank"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26",name:{de:"Stephanstag"}},"12-31":{_name:"12-31",type:"bank"}}},LK:{names:{en:"Sri Lanka",si:"ශ්‍රී ලංකාව",ta:"இலங்கை"},langs:["si","ta","en"],zones:["Asia/Colombo"],days:{"01-01":{name:{en:"New Year's Day",si:"නව වසර",ta:"புத்தாண்டு தினம்"},type:"public"},"01-03":{name:{en:"Duruthu Full Moon Poya Day",si:"දුරුතු පුර පසළොස්වක පෝය දිනය",ta:"துருத்து முழு நிலவு போயா தினம்"},type:"public"},"01-15":{name:{en:"Tamil Thai Pongal Day",si:"දෙමළ තෛ පොංගල් දිනය",ta:"தைப்பொங்கல் தினம்"},type:"public"},"02-01":{name:{en:"Navam Full Moon Poya Day",si:"නවම් පුර පසළොස්වක පෝය දිනය",ta:"நவம் முழு நிலவு போயா தினம்"},type:"public"},"02-04":{name:{en:"National Day",si:"ජාතික දිනය",ta:"தேசிய தினம்"},type:"public"},"02-15":{name:{en:"Mahasivarathri Day",si:"මහා ශිවරාත්‍රී දිනය",ta:"மகா சிவராத்திரி தினம்"},type:"public"},"03-02":{name:{en:"Madin Full Moon Poya Day",si:"මැදින් පුර පසළොස්වක පෝය දිනය",ta:"மெதின் முழு நிலவு போயா தினம்"},type:"public"},"03-21":{name:{en:"Id-Ul-Fitr (Ramazan Festival Day)",si:"ඊදුල් ෆිතර් (රාමසාන් උත්සව දිනය)",ta:"ஈதுல் பித்ர் (ரமலான் பண்டிகை தினம்)"},type:"public"},"04-01":{name:{en:"Bak Full Moon Poya Day",si:"බක් පුර පසළොස්වක පෝය දිනය",ta:"பக் முழு நிலவு போயா தினம்"},type:"public"},"04-13":{name:{en:"Day before Sinhala and Tamil New Year",si:"සිංහල හා දෙමළ අලුත් අවුරුදු පූර්ව දිනය",ta:"சிங்கள மற்றும் தமிழ் புத்தாண்டு முதல் நாள்"},type:"public"},"04-14":{name:{en:"Sinhala and Tamil New Year",si:"සිංහල හා දෙමළ අලුත් අවුරුද්ද",ta:"சிங்கள மற்றும் தமிழ் புத்தாண்டு"},type:"public"},"05-01":{name:{en:"Labour Day and Vesak Full Moon Poya Day",si:"කම්කරු දිනය සහ වෙසක් පුර පසළොස්වක පෝය දිනය",ta:"தொழிலாளர் தினம் மற்றும் வெசாக் முழு நிலவு போயா தினம்"},type:"public"},"05-02":{name:{en:"Day following Vesak Full Moon Poya Day",si:"වෙසක් පෝය දිනට පසු දිනය",ta:"வெசாக் போயா தினத்திற்கு அடுத்த நாள்"},type:"public"},"05-28":{name:{en:"Id-Ul-Alha (Hadji Festival Day)",si:"ඊදුල් අල්හා (හජ්ජි උත්සව දිනය)",ta:"ஈதுல் அழ்ஹா (ஹஜ் பண்டிகை தினம்)"},type:"public"},"05-30":{name:{en:"Adhi Poson Full Moon Poya Day",si:"අධි පොසොන් පුර පසළොස්වක පෝය දිනය",ta:"அதி பொசோன் முழு நிலவு போயா தினம்"},type:"public"},"06-29":{name:{en:"Poson Full Moon Poya Day",si:"පොසොන් පුර පසළොස්වක පෝය දිනය",ta:"பொசோன் முழு நிலவு போயா தினம்"},type:"public"},"07-29":{name:{en:"Esala Full Moon Poya Day",si:"ඇසළ පුර පසළොස්වක පෝය දිනය",ta:"எசல முழு நிலவு போயா தினம்"},type:"public"},"08-26":{name:{en:"Milad-Un-Nabi (Holy Prophet's Birthday)",si:"මිලාද්-උන්-නබි (නබි නායකතුමාගේ උපන් දිනය)",ta:"மீலாது நபி (நபி பெருமானின் பிறந்த தினம்)"},type:"public"},"08-27":{name:{en:"Nikini Full Moon Poya Day",si:"නිකිණි පුර පසළොස්වක පෝය දිනය",ta:"நிகினி முழு நிலவு போயா தினம்"},type:"public"},"09-26":{name:{en:"Binara Full Moon Poya Day",si:"බිනර පුර පසළොස්වක පෝය දිනය",ta:"பினர முழு நிலவு போயா தினம்"},type:"public"},"10-25":{name:{en:"Vap Full Moon Poya Day",si:"වප් පුර පසළොස්වක පෝය දිනය",ta:"வப் முழு நிலவு போயா தினம்"},type:"public"},"11-08":{name:{en:"Deepavali Festival Day",si:"දීපවාලි උත්සව දිනය",ta:"தீபாவளி பண்டிகை தினம்"},type:"public"},"11-24":{name:{en:"Il Full Moon Poya Day",si:"ඉල් පුර පසළොස්වක පෝය දිනය",ta:"இல் முழு நிலவு போயா தினம்"},type:"public"},"12-23":{name:{en:"Unduvap Full Moon Poya Day",si:"උඳුවප් පුර පසළොස්වක පෝය දිනය",ta:"உந்துவப் முழு நிலவு போயா தினம்"},type:"public"},"12-25":{name:{en:"Christmas Day",si:"නත්තල් දිනය",ta:"கிறிஸ்மஸ் தினம்"},type:"public"},"easter -2":{name:{en:"Good Friday",si:"මහ සිකුරාදා",ta:"புனித வெள்ளி"},type:"public"}}},LR:{names:{en:"Liberia"},langs:["en"],zones:["Africa/Monrovia"],dayoff:"Sunday",days:{"01-01":{_name:"01-01"},"02-11":{name:{en:"Armed Forces Day"}},"2nd Wednesday in March":{name:{en:"Decoration Day"}},"03-15":{name:{en:"J. J. Robert's Day"}},"2nd Friday in April":{name:{en:"Fast and Prayer Day"}},"05-14":{name:{en:"National Unification Day"}},"07-26":{_name:"Independence Day"},"08-24":{name:{en:"Flag Day"}},"1st Thursday in November":{name:{en:"Thanksgiving"}},"11-29":{name:{en:"William Tubman's Birthday"}},"12-25":{_name:"12-25"}}},LS:{names:{st:"\\'Muso oa Lesotho",en:"Lesotho"},langs:["st","en"],zones:["Africa/Johannesburg"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"03-11":{name:{en:"Moshoeshoe Day"}},"easter -2":{_name:"easter -2"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01",name:{en:"Workers' Day"}},"easter 39":{_name:"easter 39"},"05-25":{name:{en:"Africa Day/ Heroes' Day"}},"07-17":{name:{en:"King Letsie III's Birthday"}},"10-04":{_name:"Independence Day"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}},LT:{names:{lt:"Lietuva",en:"Lithuania"},dayoff:"sunday",langs:["lt"],zones:["Europe/Vilnius"],days:{"01-01":{_name:"01-01"},"02-16":{name:{en:"Day of Restoration of the State of Lithuania",lt:"Lietuvos valstybės atkūrimo diena"}},"03-11":{name:{en:"Day of Restoration of Independence of Lithuania",lt:"Lietuvos nepriklausomybės atkūrimo diena"}},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"1st sunday in May":{_name:"Mothers Day",type:"observance"},"1st sunday in June":{_name:"Fathers Day",type:"observance"},"06-24":{name:{en:"St. John's Day",lt:"Joninės, Rasos"}},"07-06":{name:{en:"Statehood Day",lt:"Valstybės diena"}},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"11-02":{_name:"11-02",active:[{from:2020}]},"12-24":{_name:"12-24"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}},LU:{names:{fr:"Luxembourg",en:"Luxembourg",de:"Luxemburg",lb:"Lëtzebuerg",pt:"Luxemburgo"},langs:["fr","de","lb"],zones:["Europe/Luxembourg"],days:{"01-01":{_name:"01-01"},"01-23":{_name:"National Holiday",active:[{from:"1947-08-08",to:"1961-12-23"}]},"easter -2":{_name:"easter -2",type:"observance"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1",active:[{from:"1892-02-16"}]},"05-01":{_name:"05-01",name:{fr:"1er mai"},active:[{from:"1946-04-23"}]},"05-09":{_name:"05-09",active:[{from:"2019-01-01"}]},"easter 39":{_name:"easter 39"},"easter 50":{_name:"easter 50",active:[{from:"1892-02-16"}]},"06-23":{_name:"National Holiday",active:[{from:"1961-12-23"}]},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26",active:[{from:"1892-02-16"}]}}},LV:{names:{lv:"Latvija",en:"Latvia"},dayoff:"sunday",langs:["lv"],zones:["Europe/Riga"],days:{"01-01":{_name:"01-01"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"05-04 and if saturday,sunday then next monday":{substitute:!0,name:{en:"Restoration of Independence day",lv:"Latvijas Republikas Neatkarības atjaunošanas diena"}},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"06-23":{name:{en:"Midsummer Eve",lv:"Līgo Diena"}},"06-24":{name:{en:"Midsummer",lv:"Jāņi"}},"11-18 and if saturday,sunday then next monday":{substitute:!0,name:{en:"Republic Day",lv:"Latvijas Republikas proklamēšanas diena"}},"12-24":{_name:"12-24"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"12-31":{_name:"12-31"},"2023-05-29":{name:{en:"Bronze medal of the Latvian hockey team at the 2023 World Hockey Championship",lv:"Latvijas hokeja komandas 2023. gada Pasaules hokeja čempionātā bronzas medaļa"}}}},LY:{names:{ar:"دولة ليبيا",en:"Libya"},langs:["ar"],zones:["Africa/Tripoli"],dayoff:"",days:{"02-17":{_name:"Revolution Day"},"05-01":{_name:"05-01"},"09-16":{name:{ar:"يوم الشهداء",en:"Martyrs' Day"}},"10-23":{_name:"Liberation Day"},"12-24":{_name:"Independence Day"},"1 Muharram":{_name:"1 Muharram"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Shawwal P3D":{_name:"1 Shawwal"},"9 Dhu al-Hijjah":{_name:"9 Dhu al-Hijjah"},"10 Dhu al-Hijjah P3D":{_name:"10 Dhu al-Hijjah"}}},MA:{names:{ar:"المملكة المغربية",fr:"Royaume du Maroc",en:"Kingdom of Morocco"},langs:["ar","ber","fr"],zones:["Africa/Casablanca"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"01-11":{name:{fr:"Manifeste de l'indépendance",ar:"ذكرى تقديم وثيقة الاستقلال",en:"Anniversary of the Independence Manifesto"}},"05-01":{_name:"05-01"},"07-30":{name:{fr:"Fête du trône",ar:"عيد العرش",en:"Feast of the Throne"}},"08-14":{name:{fr:"Journée de Oued Ed-Dahab",ar:"يوم وادي الذهب",en:"Anniversary of the Recovery Oued Ed-Dahab"}},"08-20":{name:{fr:"Fête de la révolution du roi et du peuple",ar:"ثورة الملك والشعب",en:"Anniversary of the Revolution of the King and the People"}},"08-21":{name:{fr:"Journée de la jeunesse",ar:"عيد الشباب",en:"Youth Day"}},"11-06":{name:{fr:"La Marche verte",ar:"المسيرة الخضراء",en:"Anniversary of the Green March"}},"11-18":{_name:"Independence Day",name:{fr:"Fête de l'indépendance"}},"1 Muharram":{_name:"1 Muharram"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},MC:{names:{fr:"Monaco",en:"Monaco"},dayoff:"sunday",langs:["fr"],zones:["Europe/Monaco"],days:{"01-01":{_name:"01-01"},"01-27 and if sunday then next monday":{substitute:!0,name:{en:"Saint Devota's Day",fr:"Sainte Dévote"}},"easter -2":{_name:"easter -2",type:"observance"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"05-01 and if sunday then next monday":{substitute:!0,_name:"05-01",name:{fr:"1er mai"}},"easter 39":{_name:"easter 39"},"easter 50":{_name:"easter 50"},"easter 60":{_name:"easter 60"},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"11-19 and if sunday then next monday":{substitute:!0,name:{en:"H.S.H. the Sovereign Prince's Day",fr:"La Fête du Prince"}},"12-08":{_name:"12-08"},"12-25 and if sunday then next monday":{substitute:!0,_name:"12-25"}}},MD:{names:{ro:"Republica Moldova",en:"Moldova"},langs:["ro"],zones:["Europe/Chisinau"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"julian 12-25 P2D":{_name:"julian 12-25",name:{ro:"Craciun pe Rit Vechi"}},"03-08":{_name:"03-08"},orthodox:{_name:"easter"},"orthodox 1":{_name:"easter 1"},"orthodox 8":{name:{ro:"Paştele Blăjinilor",en:"Memorial Day"}},"05-01":{_name:"05-01"},"05-09":{name:{ro:"Ziua Victoriei",en:"Victory Day"}},"08-27":{_name:"Independence Day"},"08-31":{name:{ro:"Limba noastră",en:"National Language Day"}},"1st saturday in October P2D":{name:{ro:"Ziua vinului",en:"Wine Day"},type:"observance",active:[{from:2013}]},"12-25":{_name:"12-25",name:{ro:"Craciun pe stil Nou"}}},states:{CA:{name:"Cahul",days:{"11-21":{name:{ro:"Ziua Cahul",en:"Cahul Day"}}}},CU:{name:"Chișinău",days:{"10-14":{name:{ro:"Ziua capitalului",en:"Capital's Day"}}}}}},ME:{names:{hr:"Crna Gora",sr:"Црна Гора",bs:"Crna Gora",sq:"Mali i Zi",en:"Montenegro"},dayoff:"sunday",langs:["hr","sr","bs","sq"],zones:["Europe/Belgrade"],days:{"05-21 and if sunday then next tuesday":{substitute:!0,_name:"Independence Day"},"05-22 and if sunday then next monday":{substitute:!0,_name:"Independence Day"},"07-13 and if sunday then next tuesday":{substitute:!0,name:{hr:"Dan državnosti",sr:"Дан државности",en:"Statehood Day"}},"07-14 and if sunday then next monday":{substitute:!0,name:{hr:"Dan državnosti",sr:"Дан државности",en:"Statehood Day"}},"01-01 and if sunday then next tuesday":{substitute:!0,_name:"01-01"},"01-02 and if sunday then next monday":{substitute:!0,_name:"01-01"},"05-01 and if sunday then next tuesday":{substitute:!0,_name:"05-01"},"05-02 and if sunday then next monday":{substitute:!0,_name:"05-01"},"julian 12-24":{_name:"12-24"},"julian 12-25":{_name:"12-25"},"julian 12-26":{_name:"12-26"},"julian 01-01":{_name:"julian 01-01",type:"observance"},"orthodox -2":{_name:"easter -2"},orthodox:{_name:"easter"},"12-24":{_name:"12-24"},"12-25":{_name:"12-25"},"12-26":{_name:"12-25"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"easter 1":{_name:"easter"},"08-15":{_name:"08-15",type:"observance"},"11-01":{_name:"11-01"},"1 Shawwal P3D":{_name:"1 Shawwal"},"10 Dhu al-Hijjah P3D":{_name:"10 Dhu al-Hijjah"},"1 Muharram":{_name:"1 Muharram",type:"observance"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal",type:"observance"},"27 Rajab":{_name:"27 Rajab",type:"observance"},"15 Shaban":{_name:"15 Shaban",type:"observance"},"1 Ramadan":{_name:"1 Ramadan",type:"observance"},"27 Ramadan":{_name:"27 Ramadan",type:"observance"},"15 Nisan P2D":{_name:"15 Nisan"},"1 Tishrei":{_name:"1 Tishrei",type:"observance"},"10 Tishrei P2D":{_name:"10 Tishrei"}}},MF:{names:{en:"St. Martin",fr:"Saint Martin"},langs:["fr"],zones:["America/Marigot"],dayoff:"sunday",_days:"FR",days:{"05-27":{name:{fr:"Abolition de l'esclavage",en:"abolition of slavery"}}}},MG:{names:{mg:"Repoblikan'i Madagasikara",fr:"République de Madagascar",en:"Madagascar"},dayoff:"sunday",langs:["mg","fr","en"],zones:["Africa/Nairobi"],days:{"01-01":{_name:"01-01"},"03-08":{name:{mg:"Andro iraisam-pirenena ho an'ny vehivavy",fr:"Journée internationale de la femme",en:"International Women's Day"},note:"only for women"},"03-29":{name:{mg:"Martioran'ny tolona tamin'ny 1947",fr:"Commémoration des martyrs de l'insurrection de 1947.",en:"Martyrs' Day"}},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"05-25":{name:{mg:"Andron'i Afrika",fr:"Jour de l'Afrique",en:"Africa Day"}},"easter 39":{_name:"easter 39"},"easter 50":{_name:"easter 50"},"06-26":{_name:"Independence Day",name:{mg:"Fetim-pirenena",fr:"Fête Nationale"}},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"12-25":{_name:"12-25"},"1 Shawwal":{_name:"1 Shawwal",note:"For Muslim"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah",note:"For Muslim"}}},MK:{names:{mk:"Република Македонија",en:"Macedonia"},langs:["mk"],zones:["Europe/Belgrade"],dayoff:"sunday",days:{"01-01 and if sunday then next monday":{substitute:!0,_name:"01-01"},"julian 12-25 and if sunday then next monday":{substitute:!0,_name:"julian 12-25"},orthodox:{_name:"orthodox"},"orthodox 1":{_name:"orthodox 1"},"05-01 and if sunday then next monday":{substitute:!0,_name:"05-01"},"05-24 and if sunday then next monday":{substitute:!0,name:{mk:"Св. Кирил и Методиј",en:"Saints Cyril and Methodius Day"}},"08-02 and if sunday then next monday":{substitute:!0,name:{mk:"Ден на Републиката",en:"Day of the Republic"}},"09-08 and if sunday then next monday":{substitute:!0,_name:"Independence Day"},"10-11 and if sunday then next monday":{substitute:!0,name:{mk:"Ден на востанието",en:"Revolution Day"}},"10-23 and if sunday then next monday":{substitute:!0,name:{mk:"Ден на македонската револуционерна борба",en:"Day of the Macedonian Revolutionary Struggle"}},"12-08 and if sunday then next monday":{substitute:!0,name:{mk:"Св. Климент Охридски",en:"Saint Clement of Ohrid Day"}},"1 Shawwal and if sunday then next monday":{substitute:!0,_name:"1 Shawwal"},"julian 12-24":{_name:"julian 12-24",type:"optional",note:"Orthodox believers"},"julian 01-06":{_name:"01-06",type:"optional",note:"Orthodox believers"},"orthodox -2":{_name:"orthodox -2",type:"optional",note:"Orthodox believers"},"orthodox 47":{name:{mk:"петок пред Духовден",en:"Friday before Pentecost"},type:"optional",note:"Orthodox believers"},"orthodox 49":{_name:"easter 49",type:"optional",note:"Orthodox believers"},"julian 08-15":{_name:"08-15",type:"optional",note:"Orthodox believers"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah",type:"optional",note:"Muslim believers"},"10 Tishrei":{_name:"10 Tishrei",type:"optional",note:"Jewish believers"},"easter 1":{_name:"easter 1",type:"optional",note:"Catholic believers"},"11-01":{_name:"11-01",type:"optional",note:"Catholic believers"},"12-25":{_name:"12-25",type:"optional",note:"Catholic believers"},"11-22":{name:{mk:"Ден на Албанската азбука",en:"Day of the Albanian Alphabet"},type:"optional",note:"For members of the Albanian community"},"12-21":{name:{mk:"Ден на настава на турски јазик",en:"Turkish Language Day"},type:"optional",note:"For members of the the Turkish community"},"01-27":{name:{mk:"Свети Сава",en:"St. Sava"},type:"optional",note:"For members of the Serbian community"},"04-08":{name:{mk:"Меѓународен ден на Ромите",en:"International Roma Day"},type:"optional",note:"For members of the the Roma community"},"05-23":{name:{mk:"Национален ден на Властите",en:"National Day of Authorities"},type:"optional",note:"For members of the Vlach community"},"09-28":{name:{mk:"Меѓународен ден на Бошњаците",en:"International Day of Bosniaks"},type:"optional",note:"For Members of the Bosniak community."}}},ML:{names:{fr:"République du Mali",en:"Republic of Mali"},langs:["fr","en"],zones:["Africa/Abidjan"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"01-20":{name:{fr:"Fête de l'armée",en:"Army Day"}},"03-26":{name:{fr:"Journée des Martyrs",en:"Martyrs' Day"}},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"12-25":{_name:"12-25"},"1 Shawwal":{_name:"1 Shawwal"},"05-25":{name:"Jour de l'Afrique"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"},"09-22":{_name:"Independence Day",name:{fr:"Fête nationale de l'indépendance"}},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"}}},MQ:{names:{fr:"Martinique",en:"Martinique"},langs:["fr"],zones:["America/Martinique"],dayoff:"sunday",_days:"FR",days:{"easter -2":{_name:"easter -2"},"05-22":{_name:"Abolition of Slavery"},"07-21":{name:{fr:"Jour de Victor Schoelcher",en:"Victor Schoelcher Day"},type:"optional",note:"Government offices closed"}}},MR:{names:{ar:"الجمهورية الإسلامية الموريتانية",en:"Mauritania"},langs:["ar","fr"],zones:["Africa/Abidjan"],dayoff:"",days:{"01-01":{_name:"01-01"},"05-01":{_name:"05-01"},"05-25":{name:{ar:"يوم افريقيا",en:"Africa Day"}},"11-28":{_name:"Independence Day"},"1 Muharram":{_name:"1 Muharram"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah P3D":{_name:"10 Dhu al-Hijjah"}}},MS:{names:{en:"Montserrat"},langs:["en"],zones:["America/Port_of_Spain"],dayoff:"sunday",days:{"01-01 and if Saturday then next Monday if Sunday then next Tuesday":{substitute:!0,_name:"01-01"},"03-17 and if Saturday, Sunday then next Monday":{substitute:!0,name:{en:"Saint Patrick's Day"}},"easter -2":{_name:"easter -2"},"easter 1":{_name:"easter 1"},"1st Monday in May":{_name:"05-01"},"easter 50":{_name:"easter 50"},"2nd Monday after 06-02":{name:{en:"Queen's Birthday Celebration"}},"08-01 if Saturday, Sunday then next Monday":{name:{en:"Emancipation Day"}},"12-25 and if Saturday then next Monday if Sunday then next Tuesday":{substitute:!0,_name:"12-25"},"12-26 and if Saturday then next Monday if Sunday then next Tuesday":{substitute:!0,_name:"12-26"},"12-31 and if Saturday then next Monday if Sunday then next Tuesday":{substitute:!0,_name:"12-31",name:{en:"Festival Day"}}}},MT:{names:{mt:"Malta",en:"Malta"},dayoff:"sunday",langs:["mt"],zones:["Europe/Malta"],days:{"01-01":{_name:"01-01"},"02-10":{name:{en:"Feast of Saint Paul's Shipwreck in Malta",mt:"Nawfraġju ta' San Pawl"}},"03-19":{_name:"03-19"},"03-31":{name:{en:"Freedom Day",mt:"Jum il-Ħelsien"}},"easter -2":{_name:"easter -2"},"05-01":{_name:"05-01"},"06-07":{name:{mt:"Sette Giugno",en:"June 7th"}},"06-29":{_name:"06-29"},"08-15":{_name:"08-15"},"09-08":{name:{en:"Victory Day",mt:"Jum il-Vitorja"}},"09-21":{_name:"Independence Day"},"12-08":{_name:"12-08"},"12-13":{name:{en:"Republic Day",mt:"Jum ir-Repubblika"}},"12-25":{_name:"12-25"}}},MU:{names:{en:"Mauritius",fr:"Maurice"},langs:["en","fr"],zones:["Indian/Mauritius"],dayoff:"sunday",days:{"01-01":{name:{en:"New Year's Day",fr:"Jour de l'an"},type:"public"},"01-02":{name:{en:"New Year Holiday",fr:"Lendemain du Jour de l'an"},type:"public"},"02-01":{name:{en:"Abolition of Slavery",fr:"Abolition de l'esclavage"},type:"public"},"03-12":{name:{en:"National Day",fr:"Fête nationale"},type:"public"},"05-01":{name:{en:"Labour Day",fr:"Fête du Travail"},type:"public"},"11-01":{name:{en:"All Saints' Day",fr:"Toussaint"},type:"public"},"11-02":{name:{en:"Arrival of Indentured Labourers",fr:"Arrivée des travailleurs engagés"},type:"public"},"12-25":{name:{en:"Christmas Day",fr:"Noël"},type:"public"},"1 Shawwal":{name:{en:"Eid-Ul-Fitr",fr:"Eid-Ul-Fitr"},type:"public",disable:["2025-03-30","2026-03-20"],enable:["2025-03-31","2026-03-21"]},"chinese 01-0-01":{name:{en:"Chinese Spring Festival",fr:"Fête du Printemps chinois"},type:"public"},"02-01 since 2020 prior to 2050":{name:{en:"Thaipoosam Cavadee",fr:"Thaipoosam Cavadee"},enable:["2020-02-08","2021-01-28","2022-01-18","2023-02-05","2024-01-25","2025-02-11","2026-02-01","2027-01-20","2028-02-08","2029-01-28","2030-01-17","2031-02-05","2032-01-26","2033-02-13","2034-02-02","2035-01-22","2036-02-10","2037-01-30","2038-01-19","2039-02-07","2040-01-27","2041-02-14","2042-02-03","2043-01-23","2044-02-11","2045-01-31","2046-01-20","2047-02-08","2048-01-28","2049-01-16","2050-02-04"],disable:["2020-02-01","2021-02-01","2022-02-01","2023-02-01","2024-02-01","2025-02-01","2026-02-01","2027-02-01","2028-02-01","2029-02-01","2030-02-01","2031-02-01","2032-02-01","2033-02-01","2034-02-01","2035-02-01","2036-02-01","2037-02-01","2038-02-01","2039-02-01","2040-02-01","2041-02-01","2042-02-01","2043-02-01","2044-02-01","2045-02-01","2046-02-01","2047-02-01","2048-02-01","2049-02-01","2050-02-01"]},"03-01 since 2020 prior to 2050":{name:{en:"Maha Shivaratree",fr:"Maha Shivaratree"},enable:["2020-02-21","2021-03-11","2022-03-01","2023-02-18","2024-03-08","2025-02-26","2026-02-15","2027-03-07","2028-02-25","2029-02-14","2030-03-05","2031-02-21","2032-03-11","2033-02-28","2034-02-17","2035-03-08","2036-02-26","2037-02-14","2038-03-05","2039-02-22","2040-03-12","2041-03-01","2042-02-18","2043-03-09","2044-02-28","2045-02-16","2046-03-07","2047-02-24","2048-02-14","2049-03-04","2050-02-21"],disable:["2020-03-01","2021-03-01","2022-03-01","2023-03-01","2024-03-01","2025-03-01","2026-03-01","2027-03-01","2028-03-01","2029-03-01","2030-03-01","2031-03-01","2032-03-01","2033-03-01","2034-03-01","2035-03-01","2036-03-01","2037-03-01","2038-03-01","2039-03-01","2040-03-01","2041-03-01","2042-03-01","2043-03-01","2044-03-01","2045-03-01","2046-03-01","2047-03-01","2048-03-01","2049-03-01","2050-03-01"]},"04-01 since 2020 prior to 2050":{name:{en:"Ugadi",fr:"Ugadi"},enable:["2020-03-25","2021-04-13","2022-04-02","2023-03-22","2024-04-09","2025-03-30","2026-03-19","2027-04-07","2028-03-26","2029-04-14","2030-04-03","2031-03-23","2032-04-11","2033-03-31","2034-03-21","2035-04-09","2036-03-28","2037-03-17","2038-04-05","2039-03-25","2040-04-13","2041-04-02","2042-03-22","2043-04-10","2044-03-30","2045-03-19","2046-04-07","2047-03-27","2048-04-15","2049-04-04","2050-03-24"],disable:["2020-04-01","2021-04-01","2022-04-01","2023-04-01","2024-04-01","2025-04-01","2026-04-01","2027-04-01","2028-04-01","2029-04-01","2030-04-01","2031-04-01","2032-04-01","2033-04-01","2034-04-01","2035-04-01","2036-04-01","2037-04-01","2038-04-01","2039-04-01","2040-04-01","2041-04-01","2042-04-01","2043-04-01","2044-04-01","2045-04-01","2046-04-01","2047-04-01","2048-04-01","2049-04-01","2050-04-01"]},"09-01 since 2020 prior to 2050":{name:{en:"Ganesh Chaturthi",fr:"Ganesh Chaturthi"},enable:["2020-08-22","2021-09-10","2022-08-31","2023-09-18","2024-09-07","2025-08-28","2026-09-16","2027-09-05","2028-08-24","2029-09-12","2030-09-01","2031-09-20","2032-09-09","2033-08-29","2034-09-17","2035-09-07","2036-08-26","2037-09-13","2038-09-03","2039-09-22","2040-09-11","2041-08-31","2042-09-18","2043-09-08","2044-08-27","2045-09-15","2046-09-05","2047-08-26","2048-09-12","2049-09-01","2050-09-20"],disable:["2020-09-01","2021-09-01","2022-09-01","2023-09-01","2024-09-01","2025-09-01","2026-09-01","2027-09-01","2028-09-01","2029-09-01","2030-09-01","2031-09-01","2032-09-01","2033-09-01","2034-09-01","2035-09-01","2036-09-01","2037-09-01","2038-09-01","2039-09-01","2040-09-01","2041-09-01","2042-09-01","2043-09-01","2044-09-01","2045-09-01","2046-09-01","2047-09-01","2048-09-01","2049-09-01","2050-09-01"]},"11-01 since 2020 prior to 2050":{name:{en:"Divali",fr:"Divali"},enable:["2020-11-14","2021-11-04","2022-10-24","2023-11-13","2024-11-01","2025-10-20","2026-11-08","2027-10-29","2028-10-17","2029-11-05","2030-10-26","2031-11-14","2032-11-02","2033-10-22","2034-11-10","2035-10-30","2036-10-19","2037-11-07","2038-10-28","2039-10-18","2040-11-05","2041-10-25","2042-11-12","2043-11-01","2044-10-21","2045-11-08","2046-10-29","2047-10-18","2048-11-05","2049-10-26","2050-10-15"],disable:["2020-11-01","2021-11-01","2022-11-01","2023-11-01","2024-11-01","2025-11-01","2026-11-01","2027-11-01","2028-11-01","2029-11-01","2030-11-01","2031-11-01","2032-11-01","2033-11-01","2034-11-01","2035-11-01","2036-11-01","2037-11-01","2038-11-01","2039-11-01","2040-11-01","2041-11-01","2042-11-01","2043-11-01","2044-11-01","2045-11-01","2046-11-01","2047-11-01","2048-11-01","2049-11-01","2050-11-01"]}}},MW:{names:{en:"Malawi"},dayoff:"sunday",langs:["en"],zones:["Africa/Maputo"],days:{"01-01 and if saturday,sunday then next monday":{substitute:!0,_name:"01-01"},"01-15 and if saturday,sunday then next monday":{substitute:!0,name:{en:"John Chilembwe Day"}},"03-03 and if saturday,sunday then next monday":{name:{en:"Martyrs' Day"}},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"05-01 and if saturday,sunday then next monday":{_name:"05-01"},"05-14 and if saturday,sunday then next monday":{substitute:!0,name:{en:"Kamuzu Day"}},"07-06 and if saturday,sunday then next monday":{substitute:!0,_name:"Independence Day"},"10-15 and if saturday,sunday then next monday":{substitute:!0,_name:"Mothers Day"},"12-25 and if saturday,sunday then next monday":{substitute:!0,_name:"12-25"},"1 Shawwal and if saturday,sunday then next monday":{substitute:!0,_name:"1 Shawwal",name:{en:"Eid al Fitri"}}}},MX:{names:{es:"México",en:"Mexico"},dayoff:"sunday",langs:["es"],zones:["America/Mexico_City","America/Cancun","America/Merida","America/Monterrey","America/Matamoros","America/Mazatlan","America/Chihuahua","America/Ojinaga","America/Hermosillo","America/Tijuana","America/Santa_Isabel","America/Bahia_Banderas"],days:{"01-01":{_name:"01-01"},"02-05":{_name:"Constitution Day",active:[{to:"2006-01-17T00:00:00.000Z"}]},"1st monday in February":{_name:"Constitution Day",active:[{from:"2006-01-18T00:00:00.000Z"}]},"03-21":{name:{en:"Benito Juárez's birthday",es:"Natalicio de Benito Juárez"},active:[{to:"2006-12-31T00:00:00.000Z"}]},"3rd monday in March":{name:{en:"Benito Juárez's birthday",es:"Natalicio de Benito Juárez"},active:[{from:"2007-01-01T00:00:00.000Z"}]},"easter -3":{_name:"easter -3",type:"bank"},"easter -2":{_name:"easter -2",type:"bank"},"05-01":{_name:"05-01"},"05-10":{_name:"Mothers Day",type:"observance"},"09-16":{_name:"Independence Day"},"11-02":{_name:"11-02",type:"bank"},"11-20":{_name:"Revolution Day",active:[{to:"2006-01-17T00:00:00.000Z"}]},"3rd monday in November":{_name:"Revolution Day",active:[{from:"2006-01-18T00:00:00.000Z"}]},"12-01 every 6 years since 1934":{name:{en:"Change of Federal Government",es:"Transmisión del Poder Ejecutivo Federal"}},"12-12":{name:{en:"Day of the Virgin of Guadalupe",es:"Día de la Virgen de Guadalupe"},type:"bank"},"12-25":{_name:"12-25"}}},MY:{names:{en:"Malaysia"},langs:["ms"],zones:["Asia/Kuala_Lumpur","Asia/Kuching"],dayoff:"Saturday",days:{"01-01":{_name:"01-01"},"substitutes 01-01 if Sunday then next Monday":{substitute:!0,_name:"01-01"},"chinese 01-0-01":{name:{en:"Chinese New Year",ms:"Tahun Baru Cina"}},"chinese 01-0-02":{name:{en:"Chinese New Year",ms:"Tahun Baru Cina"}},"substitutes chinese 01-0-01 if Sunday then next Monday":{substitute:!0,name:{en:"Chinese New Year",ms:"Tahun Baru Cina"}},"substitutes chinese 01-0-02 if Sunday then next Monday":{substitute:!0,name:{en:"Chinese New Year",ms:"Tahun Baru Cina"}},"05-01":{_name:"05-01"},"substitutes 05-01 if Sunday then next Monday":{substitute:!0,_name:"05-01"},"1st Monday in June":{name:{en:"Yang di-Pertuan Agong's Birthday",ms:"Hari Keputeraan Yang di-Pertuan Agong"}},"08-31":{_name:"Independence Day"},"substitutes 08-31 if Sunday then next Monday":{substitute:!0,_name:"Independence Day"},"09-16":{name:{en:"Malaysia Day",ms:"Hari Malaysia"}},"substitutes 09-16 if Sunday then next Monday":{substitute:!0,name:{en:"Malaysia Day",ms:"Hari Malaysia"}},"12-25":{_name:"12-25"},"substitutes 12-25 if Sunday then next Monday":{substitute:!0,_name:"12-25"},"17 Ramadan":{_name:"17 Ramadan",disable:["2022-04-18","2026-03-06"],enable:["2022-04-19","2026-03-07"]},"1 Shawwal":{_name:"1 Shawwal",disable:["2022-05-02","2026-03-20"],enable:["2022-05-03","2026-03-21"]},"2 Shawwal":{_name:"1 Shawwal",disable:["2022-05-03","2026-03-21"],enable:["2022-05-04","2026-03-22"]},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah",disable:["2022-07-09"],enable:["2022-07-10"]},"1 Muharram":{_name:"1 Muharram",disable:["2026-06-16"],enable:["2026-06-17"]},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal",disable:["2022-10-08"],enable:["2022-10-09"]},"2010-05-28":{_name:"Vesak"},"2011-05-17":{_name:"Vesak"},"2012-05-06":{_name:"Vesak"},"2013-05-25":{_name:"Vesak"},"2014-05-15":{_name:"Vesak"},"2015-06-02":{_name:"Vesak"},"2016-05-22":{_name:"Vesak"},"2017-05-10":{_name:"Vesak"},"2018-05-29":{_name:"Vesak"},"2019-05-19":{_name:"Vesak"},"2020-05-07":{_name:"Vesak"},"2021-05-26":{_name:"Vesak"},"2022-05-15":{_name:"Vesak"},"2022-05-16":{substitute:!0,_name:"Vesak"},"2023-05-04":{_name:"Vesak"},"2024-05-22":{_name:"Vesak"},"2025-05-12":{_name:"Vesak"},"2026-05-31":{_name:"Vesak"},"2016-10-29":{_name:"Deepavali"},"2017-10-18":{_name:"Deepavali"},"2018-11-06":{_name:"Deepavali"},"2019-10-27":{_name:"Deepavali"},"2019-10-28":{substitute:!0,_name:"Deepavali"},"2020-11-14":{_name:"Deepavali"},"2021-11-04":{_name:"Deepavali"},"2022-10-24":{_name:"Deepavali"},"2023-11-12":{_name:"Deepavali"},"2023-11-13":{substitute:!0,_name:"Deepavali"},"2024-10-31":{_name:"Deepavali"},"2025-10-20":{_name:"Deepavali"},"2026-11-08":{_name:"Deepavali"},"2026-11-09":{substitute:!0,_name:"Deepavali"},"2027-10-28":{_name:"Deepavali"},"2028-11-15":{_name:"Deepavali"},"2029-11-05":{_name:"Deepavali"},"2030-10-25":{_name:"Deepavali"}},states:{10:{name:"Selangor",days:{"12-11":{name:{en:"Sultan of Selangor's Birthday",id:"Hari Keputeraan Sultan Selangor"}},"2016-01-24":{_name:"Thaipusam"},"2017-02-10":{_name:"Thaipusam"},"2018-01-31":{_name:"Thaipusam"},"2019-01-21":{_name:"Thaipusam"},"2020-02-08":{_name:"Thaipusam"},"2021-01-28":{_name:"Thaipusam"},"2022-01-18":{_name:"Thaipusam"},"2023-02-05":{_name:"Thaipusam"},"2024-01-25":{_name:"Thaipusam"},"2025-02-11":{_name:"Thaipusam"},"2026-02-01":{_name:"Thaipusam"}}},11:{name:"Terengganu",days:{"01-01":!1,"03-04":{name:{en:"Anniversary of Installation of the Sultan of Terengganu",ms:"Hari Ulang Tahun Pertabalan Sultan Terengganu"}},"04-26":{name:{en:"Sultan of Terengganu's Birthday",ms:"Hari Keputeraan Sultan Terengganu"}},"27 Rajab":{_name:"27 Rajab"},"9 Dhu al-Hijjah":{_name:"9 Dhu al-Hijjah"},"11 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},12:{name:"Sabah",days:{"easter -2":{_name:"easter -2"},"05-30":{name:{en:"Tadau Kaamatan",ms:"Pesta Kaamatan"}},"05-31":{name:{en:"Tadau Kaamatan",ms:"Pesta Kaamatan"}},"1st Saturday in October":{name:{en:"Sabah State Governor's Birthday",ms:"Hari Jadi Yang di-Pertua Negeri Sabah"}},"12-24":{_name:"12-24"},"17 Ramadan":!1}},13:{name:"Sarawak",days:{"2016-10-29":!1,"2017-10-18":!1,"2018-11-06":!1,"2019-10-27":!1,"2020-11-14":!1,"2021-11-04":!1,"2022-10-24":!1,"2023-11-13":!1,"2024-10-31":!1,"2025-10-20":!1,"2026-11-09":!1,"2027-10-28":!1,"2028-11-15":!1,"2029-11-05":!1,"2030-10-25":!1,"easter -2":{_name:"easter -2"},"06-01":{name:{en:"Gawai Dayak",ms:"Perayaan Hari Gawai Dayak"}},"06-02":{name:{en:"Gawai Dayak",ms:"Perayaan Hari Gawai Dayak"}},"07-22":{name:{en:"Sarawak Independence Day",ms:"Hari Kemerdekaan Sarawak"}},"2nd Saturday in October":{name:{en:"Sarawak State Governor's Birthday",ms:"Hari Jadi Yang di-Pertua Negeri Sarawak"}},"17 Ramadan":!1}},14:{name:"Kuala Lumpur",days:{"02-01":{name:{en:"Federal Territory Day",ms:"Hari Wilayah Persekutuan"}},"2016-01-24":{_name:"Thaipusam"},"2017-02-10":{_name:"Thaipusam"},"2018-01-31":{_name:"Thaipusam"},"2019-01-21":{_name:"Thaipusam"},"2020-02-08":{_name:"Thaipusam"},"2021-01-28":{_name:"Thaipusam"},"2022-01-18":{_name:"Thaipusam"},"2023-02-05":{_name:"Thaipusam"},"2024-01-25":{_name:"Thaipusam"},"2025-02-11":{_name:"Thaipusam"},"2026-02-01":{_name:"Thaipusam"}}},15:{name:"Labuan",days:{"02-01":{name:{en:"Federal Territory Day",ms:"Hari Wilayah Persekutuan"}},"05-30":{name:{en:"Tadau Kaamatan",ms:"Pesta Kaamatan"}},"05-31":{name:{en:"Tadau Kaamatan",ms:"Pesta Kaamatan"}}}},16:{name:"Putrajaya",days:{"02-01":{name:{en:"Federal Territory Day",ms:"Hari Wilayah Persekutuan"}},"2016-01-24":{_name:"Thaipusam"},"2017-02-10":{_name:"Thaipusam"},"2018-01-31":{_name:"Thaipusam"},"2019-01-21":{_name:"Thaipusam"},"2020-02-08":{_name:"Thaipusam"},"2021-01-28":{_name:"Thaipusam"},"2022-01-18":{_name:"Thaipusam"},"2023-02-05":{_name:"Thaipusam"},"2024-01-25":{_name:"Thaipusam"},"2025-02-11":{_name:"Thaipusam"},"2026-02-01":{_name:"Thaipusam"}}},"01":{name:"Johor",days:{"01-01":!1,"03-23":{name:{en:"Sultan of Johor's Birthday",ms:"Hari Keputeraan Sultan Johor"}},"1 Ramadan":{_name:"1 Ramadan"},"17 Ramadan":!1,"6 Safar":{name:{en:"Hari Hol of Sultan Iskandar of Johor",ms:"Hari Hol Almarhum Sultan Iskandar"}},"2016-01-24":{_name:"Thaipusam"},"2017-02-10":{_name:"Thaipusam"},"2018-01-31":{_name:"Thaipusam"},"2019-01-21":{_name:"Thaipusam"},"2020-02-08":{_name:"Thaipusam"},"2021-01-28":{_name:"Thaipusam"},"2022-01-18":{_name:"Thaipusam"},"2023-02-05":{_name:"Thaipusam"},"2024-01-25":{_name:"Thaipusam"},"2025-02-11":{_name:"Thaipusam"},"2026-02-01":{_name:"Thaipusam"}}},"02":{name:"Kedah",days:{"01-01":!1,"3rd Sunday in June":{name:{en:"Sultan of Kedah's Birthday",ms:"Hari Keputeraan Sultan Kedah"}},"27 Rajab":{_name:"27 Rajab"},"1 Ramadan":{_name:"1 Ramadan"},"17 Ramadan":!1,"11 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"},"2016-01-24":{_name:"Thaipusam"},"2017-02-10":{_name:"Thaipusam"},"2018-01-31":{_name:"Thaipusam"},"2019-01-21":{_name:"Thaipusam"},"2020-02-08":{_name:"Thaipusam"},"2021-01-28":{_name:"Thaipusam"},"2022-01-18":{_name:"Thaipusam"},"2023-02-05":{_name:"Thaipusam"},"2024-01-25":{_name:"Thaipusam"},"2025-02-11":{_name:"Thaipusam"},"2026-02-01":{_name:"Thaipusam"}}},"03":{name:"Kelantan",days:{"01-01":!1,"11 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"},"11-11":{name:{en:"Sultan of Kelantan's Birthday",ms:"Hari Keputeraan Sultan Kelantan"}},"11-12":{name:{en:"Sultan of Kelantan's Birthday",ms:"Hari Keputeraan Sultan Kelantan"}}}},"04":{name:"Malacca",days:{"04-15":{name:{en:"Declaration of Malacca City as Historical City",ms:"Hari Perisytiharan Bandar Melaka sebagai Bandaraya Bersejarah"}},"08-24":{name:{en:"Melaka State Governor's Birthday",ms:"Hari Jadi Yang di-Pertua Negeri Melaka"}},"1 Ramadan":{_name:"1 Ramadan"},"17 Ramadan":!1}},"05":{name:"Negeri Sembilan",days:{"01-14":{name:{en:"Yang di-Pertuan Besar of Negeri Sembilan's Birthday",ms:"Hari Keputeraan Yang di-Pertuan Besar Negeri Sembilan"}},"27 Rajab":{_name:"27 Rajab"},"17 Ramadan":!1,"2016-01-24":{_name:"Thaipusam"},"2017-02-10":{_name:"Thaipusam"},"2018-01-31":{_name:"Thaipusam"},"2019-01-21":{_name:"Thaipusam"},"2020-02-08":{_name:"Thaipusam"},"2021-01-28":{_name:"Thaipusam"},"2022-01-18":{_name:"Thaipusam"},"2023-02-05":{_name:"Thaipusam"},"2024-01-25":{_name:"Thaipusam"},"2025-02-11":{_name:"Thaipusam"},"2026-02-01":{_name:"Thaipusam"}}},"06":{name:"Pahang",days:{"05-22":{name:{en:"Hari Hol of Pahang",ms:"Hari Hol Pahang"}},"07-30":{name:{en:"Sultan of Pahang's Birthday",ms:"Hari Keputeraan Sultan Pahang"}}}},"07":{name:"Penang",days:{"07-07":{name:{en:"Declaration of George Town as World Heritage Site",id:"Hari Ulang Tahun Perisytiharan Tapak Warisan Dunia"}},"2nd Saturday in July":{name:{en:"Penang State Governor's Birthday",ms:"Hari Jadi Yang di-Pertua Negeri Pulau Pinang"}},"2016-01-24":{_name:"Thaipusam"},"2017-02-10":{_name:"Thaipusam"},"2018-01-31":{_name:"Thaipusam"},"2019-01-21":{_name:"Thaipusam"},"2020-02-08":{_name:"Thaipusam"},"2021-01-28":{_name:"Thaipusam"},"2022-01-18":{_name:"Thaipusam"},"2023-02-05":{_name:"Thaipusam"},"2024-01-25":{_name:"Thaipusam"},"2025-02-11":{_name:"Thaipusam"},"2026-02-01":{_name:"Thaipusam"}}},"08":{name:"Perak",days:{"1st Friday in November":{name:{en:"Sultan of Perak's Birthday",ms:"Hari Keputeraan Sultan Perak"}},"2016-01-24":{_name:"Thaipusam"},"2017-02-10":{_name:"Thaipusam"},"2018-01-31":{_name:"Thaipusam"},"2019-01-21":{_name:"Thaipusam"},"2020-02-08":{_name:"Thaipusam"},"2021-01-28":{_name:"Thaipusam"},"2022-01-18":{_name:"Thaipusam"},"2023-02-05":{_name:"Thaipusam"},"2024-01-25":{_name:"Thaipusam"},"2025-02-11":{_name:"Thaipusam"},"2026-02-01":{_name:"Thaipusam"}}},"09":{name:"Perlis",days:{"01-01":!1,"07-17":{name:{en:"Raja of Perlis's Birthday",id:"Hari Keputeraan Raja Perlis"}},"27 Rajab":{_name:"27 Rajab"},"11 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}}}},MZ:{names:{pt:"Moçambique",en:"Mozambique"},dayoff:"sunday",langs:["pt"],zones:["Africa/Maputo"],days:{"01-01":{_name:"01-01",name:{pt:"Dia da Fraternidade universal"}},"substitutes 01-01 if sunday then next monday":{_name:"Public Holiday"},"02-03":{name:{pt:"Dia dos heróis moçambicanos",en:"Heroes Day"}},"substitutes 02-03 if sunday then next monday":{_name:"Public Holiday"},"04-07":{name:{pt:"Dia da Mulher Moçambicana",en:"Womens Day"}},"substitutes 04-07 if sunday then next monday":{_name:"Public Holiday"},"05-01":{_name:"05-01",name:{pt:"Dia Internacional dos Trabalhadores",en:"Workers' Day"}},"substitutes 05-01 if sunday then next monday":{_name:"Public Holiday"},"1st sunday in May":{_name:"Mothers Day",type:"observance"},"06-25":{_name:"Independence Day",name:{pt:"Dia da Independência Nacional"}},"substitutes 06-25 if sunday then next monday":{_name:"Public Holiday"},"09-07":{name:{pt:"Dia da Vitória",en:"Lusaka Peace Agreement"}},"substitutes 09-07 if sunday then next monday":{_name:"Public Holiday"},"09-25":{name:{pt:"Dia das Forças Armadas de Libertação Nacional",en:"Defense Forces Day"}},"substitutes 09-25 if sunday then next monday":{_name:"Public Holiday"},"10-04":{name:{pt:"Dia da Paz e Reconciliação",en:"Peace and Reconciliation Day"}},"substitutes 10-04 if sunday then next monday":{_name:"Public Holiday"},"12-25":{_name:"12-25",name:{pt:"Dia da Família",en:"Family Day"}},"substitutes 12-25 if sunday then next monday":{_name:"Public Holiday"}}},NA:{names:{en:"Namibia"},dayoff:"sunday",langs:["en"],zones:["Africa/Windhoek"],days:{"01-01":{_name:"01-01"},"substitutes 01-01 if sunday then next monday":{name:"Public Holiday"},"03-21":{_name:"Independence Day"},"substitutes 03-21 if sunday then next monday":{name:"Public Holiday"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01",name:{en:"Workers Day"}},"substitutes 05-01 if sunday then next monday":{name:"Public Holiday"},"05-04":{name:{en:"Cassinga Day"}},"substitutes 05-04 if sunday then next monday":{name:"Public Holiday"},"easter 39":{_name:"easter 39"},"05-25":{name:{en:"Africa Day"}},"substitutes 05-25 if sunday then next monday":{name:"Public Holiday"},"08-26":{name:{en:"Heroes' Day"}},"substitutes 08-26 if sunday then next monday":{name:"Public Holiday"},"12-10":{name:{en:"Human Rights Day"}},"substitutes 12-10 if sunday then next monday":{name:"Public Holiday"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26",name:{en:"Day of Goodwill"}},"substitutes 12-26 if sunday then next monday":{name:"Public Holiday"}}},NC:{names:{fr:"Nouvelle-Calédonie",en:"New Caledonia"},dayoff:"sunday",zones:["Pacific/Noumea"],langs:["fr"],_days:"FR",days:{"01-01":{name:{fr:"Jour de l'an"}},"09-24":{name:{fr:"Fête de la Citoyenneté",en:"New Caledonia Day"}}}},NE:{names:{fr:"République du Niger",en:"Republic of the Niger"},langs:["fr"],zones:["Africa/Lagos"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"04-24":{name:{fr:"Journée Nationale de la Concorde",en:"Concord Day"}},"05-01":{_name:"05-01"},"08-03":{_name:"Independence Day",name:{fr:"Proclamation de l'indépendance"}},"12-18":{name:{fr:"Proclamation de la République",en:"Republic Day"}},"12-25":{_name:"12-25"},"easter 1":{_name:"easter 1"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Muharram":{_name:"1 Muharram"},"27 Ramadan":{_name:"27 Ramadan"}}},NF:{names:{en:"Norfolk Island"},dayoff:"sunday",langs:["en"],zones:["Pacific/Norfolk"],_days:"AU",days:{"2nd monday in March":!1,"03-06 and if saturday,sunday then next monday":{name:{en:"Foundation Day"},type:"public"},easter:!1,"04-25 if sunday then next monday":!1,"2020-04-27":!1,"04-25":{name:{en:"Anzac Day"}},"easter -1":!1,"monday after 05-27":!1,"06-08 if saturday,sunday then next monday":{substitute:!0,name:{en:"Anniversary (Bounty) Day"},type:"public"},"2nd monday in June":!1,"Monday after 2nd saturday in June prior to 2022-09-09":{substitute:!0,name:{en:"Queen's Birthday"}},"Monday after 2nd saturday in June since 2022-09-09 if is public holiday then next monday":{name:{en:"King's Birthday"}},"1st monday in October":!1,"2nd monday in October":{name:{en:"Norfolk Island Agricultural Show"},type:"public"},"Wednesday before 12-01":{name:{en:"Thanksgiving Day"},type:"public"}}},NG:{names:{en:"Nigeria"},langs:["en"],zones:["Africa/Lagos"],dayoff:"Saturday",days:{"01-01":{_name:"01-01"},"05-01 and if Saturday then next Monday":{substitute:!0,_name:"05-01",name:{en:"Worker's Day"}},"05-27":{name:{en:"Children's Day",type:"school"}},"05-29 prior to 2018":{name:{en:"Democracy Day"}},"06-12 prior to 2018":{name:{en:"M.K.O Abiola Day"}},"06-12 and if Saturday then next Monday since 2018":{substitute:!0,name:{en:"Democracy Day"}},"10-01":{_name:"Independence Day"},"11-01 since 2020":{name:{en:"National Youth Day"}},"12-31":{_name:"12-31",type:"observance"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"1 Muharram":{_name:"1 Muharram"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Shawwal P2D":{_name:"1 Shawwal",name:{en:"Id el Fitr"}},"10 Dhu al-Hijjah P2D":{_name:"10 Dhu al-Hijjah",name:{en:"Id el Kabir"}}}},NI:{names:{es:"Nicaragua",en:"Nicaragua"},dayoff:"sunday",langs:["es"],zones:["America/Managua"],days:{"01-01":{_name:"01-01"},"01-18":{name:{en:"Birthday of Rubén Darío",es:"Natalicio de Rubén Darío"},type:"observance"},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},"05-01":{_name:"05-01"},"05-30":{_name:"Mothers Day",name:{es:"Día de la madre nicaragüense"},type:"observance"},"06-01":{name:{en:"Children's Day",es:"Día del niño"}},"06-23":{_name:"Fathers Day",name:{es:"Día del padre nicaragüense"},type:"observance"},"07-19":{name:{en:"Revolution Day",es:"Triunfo de la Revolución Popular"}},"09-14":{name:{en:"Battle of San Jacinto",es:"Batalla de San Jacinto"}},"09-15":{_name:"Independence Day"},"10-12":{name:{en:"Indigenous Resistance Day",es:"Día de la resistencia indígena"}},"12-08":{_name:"12-08"},"12-24":{_name:"12-24",type:"observance"},"12-25":{_name:"12-25"},"12-31":{_name:"12-31",type:"observance"}}},NL:{names:{nl:"Nederland",en:"Netherlands",de:"Niederlande",fr:"Les Pays-Bas",es:"Países Bajos",it:"Paesi Bassi",pt:"Países Baixos"},dayoff:"sunday",langs:["nl"],zones:["Europe/Amsterdam"],days:{"01-01":{_name:"01-01"},"easter -2":{_name:"easter -2",type:"school"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"04-27 if sunday then previous saturday since 2014":{name:{nl:"Koningsdag",en:"King's Day",de:"Königstag",fr:"Fête du Roi",es:"Día del Rey",it:"Giorno del Re",pt:"Dia do Rei"}},"04-30 if sunday then next monday since 1949 and prior to 1980":{name:{nl:"Koninginnedag",en:"Queen's Day",de:"Königinnentag",fr:"Fête de la Reine",es:"Día de la Reina",it:"Giorno della Regina",pt:"Dia da Rainha"}},"04-30 if sunday then previous saturday since 1980 and prior to 2014":{name:{nl:"Koninginnedag",en:"Queen's Day",de:"Königinnentag",fr:"Fête de la Reine",es:"Día de la Reina",it:"Giorno della Regina",pt:"Dia da Rainha"}},"05-04":{name:{nl:"Nationale Dodenherdenking",en:"Remembrance of the Dead",de:"Nationaler Totengedenktag",fr:"Journée nationale du Souvenir",es:"Día Nacional del Recuerdo",it:"Giorno della Memoria Nazionale",pt:"Dia Nacional da Memória"},type:"observance"},"05-05":{name:{nl:"Bevrijdingsdag",en:"Liberation Day",de:"Befreiungstag",fr:"Jour de la Libération",es:"Día de la liberacion",it:"Giorno della Liberazione",pt:"Dia da Libertação"},type:"school"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"easter 39":{_name:"easter 39",name:{nl:"Hemelvaartsdag",en:"Ascension Day",de:"Christi Himmelfahrt",fr:"Jour de l'Ascension",es:"Día de la Ascensión",it:"Giorno dell'Ascensione",pt:"Festa da Ascensão"}},"easter 49":{_name:"easter 49"},"easter 50":{_name:"easter 50"},"3rd sunday in June":{_name:"Fathers Day",type:"observance"},"08-31 since 1885 and prior to 1891":{name:{nl:"Prinsessedag",en:"Princess Day",de:"Prinzessinnentag",fr:"Journée de la princesse",es:"Día de la princesa",it:"Giorno della principessa",pt:"Dia da Princesa"}},"08-31 since 1891 and prior to 1949":{name:{nl:"Koninginnedag",en:"Queen's Day",de:"Königinnentag",fr:"Fête de la Reine",es:"Día de la Reina",it:"Giorno della Regina",pt:"Dia da Rainha"}},"3rd tuesday in September":{name:{nl:"Prinsjesdag",en:"Prince's Day",de:"Prinzentag",fr:"Journée budgétaire",es:"Día del presupuesto",it:"Giornata del bilancio",pt:"Dia do Príncipe"},type:"observance"},"11-11":{_name:"11-11",type:"observance"},"12-05":{name:{nl:"Sinterklaasavond",en:"St Nicholas' Eve",de:"Nikolausabend",fr:"Soirée Saint-Nicolas",es:"Noche de Sinterklaas",it:"Serata di Sinterklaas",pt:"Noite de Sinterklaas"},type:"observance"},"12-15":{name:{nl:"Koninkrijksdag",en:"Kingdom Day",de:"Königreichstag",fr:"Jour du Royaume",es:"Día del Reino",it:"Giorno del Regno",pt:"Dia do Reino"},type:"observance"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"12-31":{_name:"12-31",type:"bank"}},states:{GR:{names:{nl:"Groningen",en:"Groningen",de:"Groningen",fr:"Groningue",es:"Groninga",it:"Groninga"},regions:{GRN:{names:{nl:"Groningen",en:"Groningen",de:"Groningen",fr:"Groningue",es:"Groninga",it:"Groninga"},days:{"08-28":{name:{nl:"Gronings Ontzet",en:"Relief of Groningen",de:"Groninger Entsatz",fr:"Levée de siège de Groningue",es:"Alivio del asedio de Groninga",it:"Assedio revocato di Groninga"},type:"observance"}}}}},NH:{names:{nl:"Noord-Holland",en:"North Holland",de:"Noord-Holland",fr:"Hollande-Septentrionale",es:"Holanda Septentrional",it:"Olanda Settentrionale"},regions:{ALK:{name:"Alkmaar",days:{"10-08":{name:{nl:"Alkmaars Ontzet",en:"Relief of Alkmaar",de:"Alkmaarder Entsatz",fr:"Levée de siège dAlkmaar",es:"Alivio del asedio de Alkmaar",it:"Assedio revocato di Alkmaar"},type:"observance"}}}}},ZH:{names:{nl:"Zuid-Holland",en:"South Holland",de:"Zuid-Holland",fr:"Hollande-Méridionale",es:"Holanda Meridional",it:"Olanda Meridionale"},regions:{BRL:{name:"Brielle",days:{"04-01":{name:{nl:"Inname van Den Briel",en:"Capture of Brielle",de:"Einname van Den Briel",fr:"Prise de La Brielle",es:"Toma de Brielle",it:"Presa di Brielle"},type:"observance"}}},LDN:{names:{nl:"Leiden",en:"Leiden",de:"Leiden",fr:"Leyde",es:"Leiden",it:"Leida"},days:{"10-03":{name:{nl:"Leids Ontzet",en:"Relief of Leiden",de:"Leidener Entsatz",fr:"Levée de siège de Leyde",es:"Alivio del asedio de Leiden",it:"Assedio revocato di Leida"},type:"observance"}}}}}}},NO:{names:{no:"Norge",en:"Norway"},dayoff:"sunday",langs:["no"],zones:["Europe/Oslo"],days:{"01-01":{_name:"01-01"},"01-21":{name:{no:"H.K.H. prinsesse Ingrid Alexandra",en:"Birthday of Princess Ingrid Alexandra"},type:"observance"},"02-06":{name:{no:"Samefolkets dag",en:"Day of the Sami people"},type:"observance"},"2nd sunday in February":{_name:"Mothers Day",type:"observance"},"02-14":{_name:"02-14",type:"observance"},"02-21":{name:{no:"H.M. kong Harald V",en:"Birthday of King Harald V"},type:"observance"},"easter -49":{name:{no:"Fastelavn",en:"Carnival"},type:"observance"},"easter -46":{_name:"easter -46",type:"observance"},"03-08":{_name:"03-08",type:"observance"},"easter -7":{_name:"easter -7",type:"observance"},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"04-01":{_name:"04-01",type:"observance"},"05-01":{_name:"05-01"},"05-08":{_name:"Liberation Day",type:"observance"},"05-17":{_name:"Constitution Day"},"easter 39":{_name:"easter 39"},"easter 49":{_name:"easter 49"},"easter 50":{_name:"easter 50"},"06-07":{name:{no:"Unionsoppløsningen",en:"Union Dissolution Day"},type:"observance"},"06-23":{name:{no:"Sankthansaften",en:"Midsummar Eve"},type:"observance"},"07-04":{name:{no:"H.M. dronning Sonja",en:"Birthday of Queen Sonja"},type:"observance"},"07-20":{name:{no:"H.K.H. kronprins Haakon Magnus",en:"Birthday of Crown Prince Haakon Magnus"},type:"observance"},"07-29":{name:{no:"Olsok",en:"Olsok"},type:"optional"},"08-19":{name:{no:"H.K.H. kronprinsesse Mette-Marit",en:"Birthday of Crown Princess Mette-Marit"},type:"observance"},"1st sunday in November":{name:{no:"Allehelgensaften",en:"All Saints' Day"},type:"observance"},"2nd sunday in November":{_name:"Fathers Day",type:"observance"},"4th sunday before 12-25":{name:{no:"Første søndag i advent",en:"First Sunday of Advent"},type:"observance"},"3rd sunday before 12-25":{name:{no:"Andre søndag i advent",en:"Second Sunday of Advent"},type:"observance"},"2nd sunday before 12-25":{name:{no:"Tredje søndag i advent",en:"Third Sunday of Advent"},type:"observance"},"1st sunday before 12-25":{name:{no:"Fjerde søndag i advent",en:"Fourth Sunday of Advent"},type:"observance"},"12-24":{_name:"12-24",type:"bank"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"12-31 14:00 if sunday then 00:00":{_name:"12-31",type:"bank"}}},NZ:{names:{en:"New Zealand",mi:"Aotearoa"},dayoff:"sunday",langs:["en","mi"],zones:["Pacific/Auckland","Pacific/Chatham"],days:{"01-01 and if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"01-01"},"01-02 and if saturday then next monday if sunday then next tuesday":{substitute:!0,name:{en:"Day after New Year's Day"}},"02-06 and if saturday,sunday then next monday":{substitute:!0,name:{en:"Waitangi Day"}},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"04-25 and if saturday,sunday then next monday":{substitute:!0,name:{en:"ANZAC Day"}},"1st monday in June prior to 2023":{name:{en:"Queen's Birthday"}},"1st monday in June since 2023":{name:{en:"King's Birthday"}},"4th monday in October":{_name:"05-01"},"12-25 and if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"12-25"},"12-26 and if saturday then next monday if sunday then next tuesday":{substitute:!0,_name:"12-26"},"2022-06-24":{name:{en:"Matariki"}},"2023-07-14":{name:{en:"Matariki"}},"2024-06-28":{name:{en:"Matariki"}},"2025-06-20":{name:{en:"Matariki"}},"2026-07-10":{name:{en:"Matariki"}},"2027-06-25":{name:{en:"Matariki"}},"2028-07-14":{name:{en:"Matariki"}},"2029-07-06":{name:{en:"Matariki"}},"2030-06-21":{name:{en:"Matariki"}},"2031-07-11":{name:{en:"Matariki"}},"2032-07-02":{name:{en:"Matariki"}},"2033-06-24":{name:{en:"Matariki"}},"2034-07-07":{name:{en:"Matariki"}},"2035-06-29":{name:{en:"Matariki"}},"2036-07-18":{name:{en:"Matariki"}},"2037-07-10":{name:{en:"Matariki"}},"2038-06-25":{name:{en:"Matariki"}},"2039-07-15":{name:{en:"Matariki"}},"2040-07-06":{name:{en:"Matariki"}},"2041-07-19":{name:{en:"Matariki"}},"2042-07-11":{name:{en:"Matariki"}},"2043-07-03":{name:{en:"Matariki"}},"2044-06-24":{name:{en:"Matariki"}},"2045-07-07":{name:{en:"Matariki"}},"2046-06-29":{name:{en:"Matariki"}},"2047-07-19":{name:{en:"Matariki"}},"2048-07-03":{name:{en:"Matariki"}},"2049-06-25":{name:{en:"Matariki"}},"2050-07-15":{name:{en:"Matariki"}},"2051-06-30":{name:{en:"Matariki"}},"2052-06-21":{name:{en:"Matariki"}},"2022-09-26":{name:{en:"National Day of Mourning for Queen Elizabeth II"}}},states:{AUK:{names:{en:"Auckland Province",mi:"Tāmaki-makau-rau"},days:{"01-29 if tuesday,wednesday,thursday then previous monday if friday,saturday,sunday then next monday":{name:{en:"Provincial anniversary day"}}}},BOP:{names:{en:"Bay of Plenty",mi:"Te Moana-a-Toi"},days:{"01-29 if tuesday,wednesday,thursday then previous monday if friday,saturday,sunday then next monday":{name:{en:"Provincial anniversary day"}}}},CAN:{names:{en:"Canterbury",mi:"Waitaha"},days:{"friday after 2nd tuesday in November":{name:{en:"Christchurch Show Day"},note:"May differ in parts of North Canterbury"}},regions:{Timaru:{name:"Timaru District",days:{"friday after 2nd tuesday in November":!1,"4th monday in September":{name:{en:"Dominion Day"}}}}}},CIT:{names:{en:"Chatham Islands",mi:"Wharekauri"},days:{"11-30 if tuesday,wednesday,thursday then previous monday if friday,saturday,sunday then next monday":{name:{en:"Provincial anniversary day"}}}},GIS:{names:{en:"Gisborne",mi:"Te Tai Rāwhiti"},days:{"01-29 if tuesday,wednesday,thursday then previous monday if friday,saturday,sunday then next monday":{name:{en:"Provincial anniversary day"}}}},HKB:{names:{en:"Hawke's Bay",mi:"Te Matau-a-Māui"},days:{"friday before 4th monday in October":{name:{en:"Provincial anniversary day"}}}},MBH:{names:{en:"Marlborough",mi:"Te Tauihu-o-te-waka"},days:{"5th monday in October":{name:{en:"Provincial anniversary day"}}}},MWT:{name:"Manawatu-Wanganui",days:{"01-22 if tuesday,wednesday,thursday then previous monday if friday,saturday,sunday then next monday":{name:{en:"Provincial anniversary day"}}}},NSN:{names:{en:"Nelson",mi:"Whakatū"},days:{"02-01 if tuesday,wednesday,thursday then previous monday if friday,saturday,sunday then next monday":{name:{en:"Provincial anniversary day"}}}},NTL:{names:{en:"Northland",mi:"Te Tai Tokerau"},days:{"01-29 if tuesday,wednesday,thursday then previous monday if friday,saturday,sunday then next monday":{name:{en:"Provincial anniversary day"}}}},OTA:{names:{en:"Otago Province",mi:"Ōtākou"},days:{"03-23 if Tuesday,Wednesday,Thursday then previous Monday if Friday,Saturday,Sunday then next Monday if is public holiday then next Monday":{name:{en:"Provincial anniversary day"}}}},STL:{names:{en:"Southland",mi:"Murihiku"},days:{"easter 2":{name:{en:"Provincial anniversary day"}}}},TAS:{names:{en:"Tasman",mi:"Te Tai-o-Aorere"},days:{"02-01 if tuesday,wednesday,thursday then previous monday if friday,saturday,sunday then next monday":{name:{en:"Provincial anniversary day"}}}},TKI:{name:"Taranaki",days:{"2nd monday in March":{name:{en:"Provincial anniversary day"}}}},WKO:{name:"Waikato",days:{"01-29 if tuesday,wednesday,thursday then previous monday if friday,saturday,sunday then next monday":{name:{en:"Provincial anniversary day"}}}},WGN:{names:{en:"Wellington Province",mi:"Te Whanga-nui-a-Tara"},days:{"01-22 if tuesday,wednesday,thursday then previous monday if friday,saturday,sunday then next monday":{name:{en:"Provincial anniversary day"}}}},WTC:{names:{en:"Westland",mi:"Te Tai Poutini"},days:{"12-01 if tuesday,wednesday,thursday then previous monday if friday,saturday,sunday then next monday":{name:{en:"Provincial anniversary day"}}},regions:{Buller:{name:"Buller district",days:{"12-01 if tuesday,wednesday,thursday then previous monday if friday,saturday,sunday then next monday":!1,"02-01 if tuesday,wednesday,thursday then previous monday if friday,saturday,sunday then next monday":{name:{en:"Provincial anniversary day"}}}}}}}},PA:{names:{es:"Panamá",en:"Panama"},dayoff:"sunday",langs:["es"],zones:["America/Panama"],days:{"01-01 and if sunday then next monday":{substitute:!0,_name:"01-01"},"01-09 and if sunday then next monday":{substitute:!0,name:{en:"Martyrs' Day",es:"Día de los Mártires Caídos en la Gesta Patriótica"}},"easter -48":{_name:"easter -48",type:"observance"},"easter -47":{_name:"easter -47"},"easter -2":{_name:"easter -2"},"05-01 and if sunday then next monday":{substitute:!0,_name:"05-01"},"07-01 every 5 years since 2014":{name:{en:"Presidential Inauguration"}},"11-03 and if sunday then next monday":{substitute:!0,name:{en:"Separation Day (from Columbia)",es:"Día de la Separación (de Colombia)"}},"11-10 and if sunday then next monday":{substitute:!0,name:{es:"Primer Grito de Independencia"}},"11-28 and if sunday then next monday":{substitute:!0,_name:"Independence Day"},"12-08 and if sunday then next monday":{substitute:!0,_name:"Mothers Day"},"12-25 and if sunday then next monday":{substitute:!0,_name:"12-25"}}},PE:{names:{es:"Perú",en:"Peru"},dayoff:"sunday",langs:["es","qu"],zones:["America/Lima"],days:{"01-01":{_name:"01-01"},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"05-01":{_name:"05-01"},"06-29":{_name:"06-29"},"07-28":{_name:"Independence Day"},"07-29":{_name:"Independence Day"},"08-30":{name:{en:"Santa Rosa de Lima",es:"Día de Santa Rosa de Lima"}},"10-08":{name:{en:"Battle of Angamos",es:"Combate de Angamos"}},"11-01":{_name:"11-01"},"12-08":{_name:"12-08"},"12-25":{_name:"12-25"}},regions:{CUS:{name:"Cuzco",days:{"06-24":{name:{en:"Festival of the Sun",es:"Fiesta Inca del Sol",qu:"Inti Raymi"},type:"observance"}}}}},PF:{names:{fr:"Polynésie française",en:"French Polynesia"},langs:["fr"],zones:["Pacific/Tahiti"],dayoff:"sunday",_days:"FR",days:{"03-05":{name:{fr:"Arrivée de l'Évangile",en:"Missionary Day"}},"easter -2":{_name:"easter -2"},"06-29":{name:{fr:"Fête de l'Autonomie",en:"Internal Autonomy Day"},active:[{to:"2026-01-01"}]},"11-20":{name:{fr:"Matari'i",en:"Maori New Year"},active:[{from:"2026-01-01"}]}}},PH:{names:{en:"Philippines"},langs:["en","fil"],zones:["Asia/Manila"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"01-23":{type:"observance",name:{en:"First Philippine Republic Day",fil:"Araw ng Unang Republika ng Pilipinas"}},"chinese 01-0-01":{type:"optional",name:{en:"Chinese New Year",fil:"Bagong Taon ng mga Tsino"}},"02-02":{type:"observance",_name:"Constitution Day"},"chinese 01-0-15":{type:"observance",name:{en:"Lantern Festival",fil:"Piyesta ng mga Parol Tsino"}},"02-25 since 2002 prior to 2024":{name:{en:"EDSA Revolution Anniversary",fil:"Anibersaryo ng Rebolusyon sa EDSA"},type:"optional",note:"Non-working Day"},"02-25 since 2024":{name:{en:"EDSA Revolution Anniversary",fil:"Anibersaryo ng Rebolusyon sa EDSA"},type:"observance",note:"Special working day"},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},"easter -1":{_name:"easter -1",type:"optional",note:"Non-working Day"},easter:{_name:"easter"},"04-09":{name:{en:"Day of Valor",fil:"Araw ng Kagitingan"}},"04-27":{type:"observance",name:{en:"Lapu-Lapu Day",fil:"Araw ni Lapu-Lapu"}},"05-01":{_name:"05-01",name:{en:"Labour Day",fil:"Araw ng mga Manggagawa"}},"06-12":{_name:"Independence Day"},"06-19":{type:"observance",name:{en:"José Rizal's birthday",fil:"Araw ng Kapanganakan ni José Rizal"},active:[{from:"1961-01-01T00:00:00.000Z"}],disable:["2011-06-19"]},"2011-06-19":{name:{en:"José Rizal's birthday",fil:"Araw ng Kapanganakan ni José Rizal"}},"07-27":{type:"observance",name:{en:"Iglesia ni Cristo Day",fil:"Araw ng Iglesia ni Cristo"}},"08-21":{name:{en:"Ninoy Aquino Day",fil:"Araw ng Kabayanihan ni Ninoy Aquino"},type:"optional",note:"Non-working Day"},"1st monday before September":{name:{en:"National Heroes' Day",fil:"Araw ng mga Bayani"}},"chinese 08-0-15":{type:"observance",name:{en:"Mid-Autumn Festival",fil:"Piyestang Zhōngqiū Jié"}},"11-01":{_name:"11-01",type:"optional",note:"Non-working Day"},"11-02":{_name:"11-02",type:"optional",note:"Non-working Day"},"11-30":{name:{en:"Bonifacio Day",fil:"Araw ng Kapanganakan ni Bonifacio"}},"12-08":{_name:"12-08",name:{en:"Feast of the Immaculate Conception of the Blessed Virgin Mary",fil:"Pagdiriwang ng Kalinis-linisang Paglilihi sa Mahal na Birheng Maria"},type:"optional",note:"Non-working Day"},"12-24":{_name:"12-24",type:"optional",note:"Non-working Day"},"12-25":{_name:"12-25"},"12-30":{name:{en:"Rizal Day",fil:"Paggunita sa Kamatayan ni Dr. Jose Rizal"}},"12-31":{_name:"12-31",type:"optional",note:"Non-working Day"},"1 Muharram":{type:"observance",_name:"1 Muharram"},"12 Rabi al-awwal":{type:"observance",_name:"12 Rabi al-awwal"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},PK:{names:{en:"Pakistan",ur:"پاکستان"},langs:["ur"],zones:["Asia/Karachi"],dayoff:"sunday",days:{"02-05":{name:{en:"Kashmir Day",ur:"یومِ یکجہتیِ کشمیر"}},"03-23":{name:{en:"Pakistan Day",ur:"یومِ پاکستان"}},"05-01":{_name:"05-01"},"05-28":{name:{en:"Youm-e-Takbeer",ur:"یومِ تکبیر"}},"08-14":{name:{en:"Independence Day",ur:"یومِ آزادی"}},"11-09":{name:{en:"Iqbal Day",ur:"یومِ اقبال"}},"12-25":{name:{en:"Quaid-e-Azam Day",ur:"یومِ قائدِاعظم"}},"9 Muharram P2D":{name:{en:"Ashura",ur:"عاشورہ"}},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Shawwal P3D":{_name:"1 Shawwal"},"10 Dhu al-Hijjah P3D":{_name:"10 Dhu al-Hijjah"}},states:{BA:{name:"Balochistan"},GB:{name:"Gilgit-Baltistan"},IS:{name:"Islamabad"},JK:{name:"Azad Kashmir"},KP:{name:"Khyber Pakhtunkhwa"},PB:{name:"Punjab"},SD:{name:"Sindh"}}},PL:{names:{pl:"Polska",en:"Poland"},dayoff:"sunday",langs:["pl"],zones:["Europe/Warsaw"],days:{"01-01":{_name:"01-01"},"01-06 since 2011":{_name:"01-06"},"01-21":{name:{pl:"Dzień Babci",en:"Grandmother's Day"},type:"observance"},"01-22":{name:{pl:"Dzień Dziadka",en:"Grandfather's Day"},type:"observance"},"02-14":{_name:"02-14",type:"observance"},"02-19 since 2020":{name:{pl:"Dzień Nauki Polskiej",en:"Polish Science Day"},type:"observance",note:"National holiday, although not a public holiday"},"03-01 since 2011":{name:{pl:"Narodowy Dzień Pamięci „Żołnierzy Wyklętych”",en:"National Cursed Soldiers Remembrance Day"},type:"observance",note:"National holiday, although not a public holiday"},"Thursday before easter -46":{name:{pl:"Tłusty Czwartek",en:"Fat Thursday"},type:"observance"},"easter -47":{_name:"easter -47",type:"observance"},"easter -46":{_name:"easter -46",type:"observance"},"03-08":{_name:"03-08",type:"observance"},"03-10":{name:{pl:"Dzień Mężczyzny",en:"Men's Day"},type:"observance"},"03-21":{name:{pl:"Pierwszy Dzień Wiosny / Dzień Wagarowicza",en:"First Day of Spring / Truant's Day"},type:"observance"},"03-24 since 2018":{name:{pl:"Narodowy Dzień Pamięci Polaków ratujących Żydów pod okupacją niemiecką",en:"National Day for the Remembrance of Poles Rescuing Jews under German Occupation"},type:"observance",note:"National holiday, although not a public holiday"},"04-14 since 2019":{name:{pl:"Święto Chrztu Polski",en:"Baptism of Poland Day"},type:"observance",note:"National holiday, although not a public holiday"},"easter -7":{_name:"easter -7",type:"observance"},"easter -3":{_name:"easter -3",type:"school",note:"Religious holiday - a working day, but schools are closed"},"easter -2":{_name:"easter -2",type:"school",note:"Religious holiday - a working day, but schools are closed"},"easter -1":{_name:"easter -1",type:"observance"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"04-19":{name:{pl:"Dzień Pamięci Ofiar Holocaustu i Powstania w Getcie Warszawskim",en:"Warsaw Ghetto Uprising Remembrance Day"},type:"observance"},"04-22":{name:{pl:"Dzień Ziemi",en:"International Mother Earth Day"},type:"observance"},"05-01":{_name:"05-01",name:{pl:"Święto Państwowe; Święto Pracy"}},"05-02 since 2004":{name:{pl:"Dzień Flagi Rzeczypospolitej Polskiej",en:"Flag Day"},type:"optional",note:"Declared by statue"},"05-03":{name:{pl:"Święto Narodowe Trzeciego Maja",en:"Constitution Day"}},"05-08 since 2015":{name:{pl:"Narodowy Dzień Zwycięstwa",en:"National Victory Day"},type:"observance",note:"National holiday, although not a public holiday"},"05-09":{_name:"05-09",type:"observance"},"05-26":{_name:"Mothers Day",type:"observance"},"06-01":{name:{pl:"Dzień Dziecka",en:"Children's Day"},type:"observance"},"06-12 since 2017":{name:{pl:"Dzień Walki i Męczeństwa Wsi Polskiej",en:"Day of Struggle and Martyrdom of the Polish Villages"},type:"observance",note:"National holiday, although not a public holiday"},"06-23":{_name:"Fathers Day",type:"observance"},"easter 49":{_name:"easter 49"},"easter 60":{_name:"easter 60"},"08-01 since 2009":{name:{pl:"Narodowy Dzień Pamięci Powstania Warszawskiego",en:"National Warsaw Uprising Remembrance Day"},type:"observance",note:"National holiday, although not a public holiday"},"08-15":{_name:"08-15"},"08-31 since 2005":{name:{pl:"Dzień Solidarności i Wolności",en:"Day of Solidarity and Freedom"},type:"observance",note:"National holiday, although not a public holiday"},"09-01":{name:{pl:"Rocznica wybuchu II wojny światowej",en:"Anniversary of the outbreak of the Second World War in Poland"},type:"observance"},"09-17":{name:{pl:"Rocznica agresji ZSRR na Polskę",en:"Anniversary of the Soviet invasion of Poland"},type:"observance"},"09-30":{name:{pl:"Dzień Chłopaka",en:"Boy's Day"},type:"observance"},"10-19 since 2018":{name:{pl:"Narodowy Dzień Pamięci Duchownych Niezłomnych",en:"National Day of Remembrance for Steadfast Clergy"},type:"observance",note:"National holiday, although not a public holiday"},"11-01":{_name:"11-01"},"11-11":{_name:"Independence Day"},"12-06":{_name:"12-06",type:"observance"},"12-24 since 2025":{_name:"12-24"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"12-27 since 2021":{name:{pl:"Narodowy Dzień Pamięci Zwycięskiego Powstania Wielkopolskiego",en:"Greater Poland Uprising Remebrence Day"},type:"observance",note:"National holiday, although not a public holiday"},"12-31":{_name:"12-31",type:"observance"}}},PM:{names:{en:"St. Pierre & Miquelon"},langs:["fr"],zones:["America/Miquelon"],dayoff:"sunday",days:{},_days:"FR"},PR:{names:{en:"Puerto Rico"},langs:["es","en"],zones:["America/Puerto_Rico"],dayoff:"sunday",_days:"US",days:{"01-06":{_name:"01-06"},"2nd Monday in January":{name:{es:"Natalicio de Eugenio María de Hostos",en:"Birthday of Eugenio María de Hostos"}},"02-18":{name:{es:"Natalicio de Luis Muñoz Marín",en:"Birthday of Luis Muñoz Marín"}},"03-02 since 2017":{name:{es:"Día de la Ciudadanía Americana",en:"American Citizenship Day"}},"03-17":!1,"03-22":{name:{es:"Día de la Abolición de Esclavitud",en:"Emancipation Day"}},"04-16":{name:{es:"Natalicio de José de Diego",en:"Birthday of José de Diego"}},"3rd Monday in July":{name:{es:"Natalicio de Don Luis Muñoz Rivera",en:"Birthday of Don Luis Muñoz Rivera"}},"07-25":{name:{es:"Constitución de Puerto Rico",en:"Puerto Rico Constitution Day"}},"07-27":{name:{es:"Natalicio de Dr. José Celso Barbosa",en:"Birthday of Dr. José Celso Barbosa"}},"11-19":{name:{es:"Día del Descubrimiento de Puerto Rico",en:"Discovery of Puerto Rico"}}}},PT:{names:{pt:"Portugal",en:"Portugal"},dayoff:"sunday",langs:["pt"],zones:["Europe/Lisbon","Atlantic/Madeira","Atlantic/Azores"],days:{"01-01":{_name:"01-01"},"easter -47":{_name:"easter -47",type:"observance"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"04-25":{name:{pt:"Dia da Liberdade",en:"Liberty Day"}},"05-01":{_name:"05-01"},"1st sunday in May":{_name:"Mothers Day",type:"observance"},"easter 60":{_name:"easter 60"},"06-10":{name:{pt:"Dia de Portugal",en:"Portugal Day"}},"08-15":{_name:"08-15"},"10-05":{name:{pt:"Implantação da República"}},"11-01":{_name:"11-01"},"12-01":{name:{pt:"Restauração da Independência"}},"12-08":{_name:"12-08"},"12-24":{_name:"12-24",type:"observance"},"12-25":{_name:"12-25"},"12-31":{_name:"12-31",type:"observance"}}},PY:{names:{es:"Paraguay",en:"Paraguay"},dayoff:"sunday",langs:["es"],zones:["America/Asuncion"],days:{"01-01":{_name:"01-01"},"03-01":{disable:["2017-03-01"],enable:["2017-02-27"],name:{en:"Heroes' Day",es:"Dia de los héroes"}},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},"04-30":{name:{en:"Teacher's Day",es:"Día del Maestro"},type:"optional",note:"Affects educational institutions"},"05-01":{_name:"05-01"},"05-14":{_name:"Independence Day"},"05-15":{_name:"Independence Day"},"06-12":{name:{en:"Chaco Armistice",es:"Día de la Paz del Chaco"},disable:["2020-06-12"],enable:["2020-06-15"]},"08-15":{_name:"08-15",disable:["2017-08-15"],enable:["2017-08-14"]},"09-29":{disable:["2017-09-29"],enable:["2017-10-02"],name:{en:"Boqueron Battle Victory Day",es:"Victoria de Boquerón"}},"12-08":{_name:"12-08",name:{en:"Virgin of Caacupe",es:"Virgen de Caacupé"}},"12-25":{_name:"12-25"},"12-31":{_name:"12-31",type:"bank"}}},RE:{names:{fr:"Réunion",en:"Réunion"},langs:["fr"],zones:["Indian/Reunion"],dayoff:"",_days:"FR",days:{"12-20":{_name:"Abolition of Slavery"}}},RO:{names:{ro:"Romania",en:"Romania"},dayoff:"sunday",langs:["ro"],zones:["Europe/Bucharest"],days:{"01-01 P2DT":{name:{ro:"Anul nou",en:"New Year's Day"}},"01-06":{name:{ro:"Bobotează",en:"Epiphany"}},"01-07":{name:{ro:"Sfântul Ion",en:"Saint John the Baptist"}},"01-24":{name:{ro:"Ziua Unirii Principatelor Române",en:"Day of the Unification of the Romanian Principalities"}},"03-08":{name:{ro:"Ziua Mamei",en:"Mother's Day"},type:"observance"},"orthodox -2":{_name:"easter -2"},orthodox:{_name:"easter"},"orthodox 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"orthodox 39":{_name:"easter 39",type:"observance"},"orthodox 49":{_name:"easter 49"},"orthodox 50":{_name:"easter 50"},"Sunday before 06-01":{name:{ro:"Ziua Românilor de Pretutindeni, Ziua Românului de Pretutindeni",en:"Day of the Romanians Everywhere, Romanian Businessperson Day"},type:"observance"},"06-01":{name:{ro:"Ziua Copilului",en:"Children's Day"}},"06-26":{name:{ro:"Ziua drapelului national",en:"Flag Day"},type:"observance"},"07-29":{name:{ro:"Ziua Imnului național",en:"National Anthem Day"},type:"observance"},"08-15":{_name:"08-15"},"11-30":{name:{ro:"Sfântul Andrei",en:"St Andrew's Day"}},"12-01":{name:{ro:"Ziua națională, Ziua Marii Uniri",en:"National holiday"}},"12-08":{_name:"Constitution Day",type:"observance"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}},RS:{names:{sr:"Република Србија",en:"Serbia"},langs:["sr"],zones:["Europe/Belgrade"],dayoff:"sunday",days:{"01-01 if sunday then next tuesday":{_name:"01-01"},"01-02 if sunday then next monday":{_name:"01-01"},"julian 12-25":{_name:"julian 12-25"},"02-15 if sunday then next tuesday":{name:{sr:"Дан државности Србије",en:"Statehood Day"}},"02-16 if sunday then next monday":{name:{sr:"Дан државности Србије",en:"Statehood Day"}},"orthodox -2":{_name:"orthodox -2"},orthodox:{_name:"orthodox"},"orthodox 1":{_name:"orthodox 1"},"05-01 if sunday then next tuesday":{_name:"05-01"},"05-02 if sunday then next monday":{_name:"05-01"},"11-11 if sunday then next monday":{name:{sr:"Дан примирја",en:"Armistice Day"}},"easter -2":{_name:"easter -2",type:"optional",note:"Catholic believers"},easter:{_name:"easter",type:"optional",note:"Catholic believers"},"easter 1":{_name:"easter 1",type:"optional",note:"Catholic believers"},"12-25":{_name:"12-25",type:"optional",note:"Catholic believers"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah",type:"optional",note:"Muslim believers"},"1 Shawwal":{_name:"1 Shawwal",type:"optional",note:"Muslim believers"},"10 Tishrei":{_name:"10 Tishrei",type:"optional",note:"Jewish believers"},"julian 01-14":{name:{sr:"Свети Сава",en:"Saint Sava Day"},type:"observance"},"04-22":{name:{sr:"Дан сећања на жртве холокауста",en:"Holocaust Remembrance Day"},type:"observance"},"05-09":{name:{sr:"Дан победе",en:"Victory Day"},type:"observance"},"julian 06-15":{name:{sr:"Видовдан",en:"Saint Vitus Day"},type:"observance"},"10-21":{name:{sr:"Дан сећања на српске жртве у Другом светском рату",en:"World War II Serbian Victims Remembrance Day"},type:"observance"}}},RU:{names:{ru:"Россия",en:"Russia"},dayoff:"sunday",langs:["ru"],zones:["Europe/Moscow","Europe/Kaliningrad","Europe/Simferopol","Europe/Volgograd","Europe/Samara","Asia/Yekaterinburg","Asia/Omsk","Asia/Novosibirsk","Asia/Novokuznetsk","Asia/Krasnoyarsk","Asia/Irkutsk","Asia/Chita","Asia/Yakutsk","Asia/Khandyga","Asia/Vladivostok","Asia/Sakhalin","Asia/Ust-Nera","Asia/Magadan","Asia/Srednekolymsk","Asia/Kamchatka","Asia/Anadyr"],days:{"01-01":{_name:"01-01"},"01-02 P5D":{name:{ru:"Новогодние каникулы",en:"New Year Holiday"}},"julian 12-25":{_name:"12-25"},"01-08":{name:{ru:"Новогодние каникулы",en:"New Year Holiday"}},"02-23":{name:{ru:"День защитника Отечества",en:"Defender of the Fatherland Day"}},"03-08 and if sunday then next monday":{_name:"03-08"},"05-01":{name:{ru:"День весны и труда",en:"Spring and Labour Day"}},"05-09":{name:{ru:"День Победы",en:"Victory Day"}},"06-12":{name:{ru:"День России",en:"Russia Day"}},"11-04":{name:{ru:"День народного единства",en:"Unity Day"}}}},RW:{names:{en:"Rwanda",fr:"République du Rwanda",rw:"Repubulika y'u Rwanda"},dayoff:"sunday",langs:["en","fr","rw"],zones:["Africa/Maputo"],days:{"01-01":{_name:"01-01"},"01-02":{_name:"Public Holiday"},"02-01":{name:{en:"Heroes Day"}},"easter -2":{_name:"easter -2"},"04-07":{name:{fr:"Jour de Mémorial du Génocide",en:"Genocide Memorial Day"}},"05-01":{_name:"05-01"},"07-01":{_name:"Independence Day"},"07-04":{name:{fr:"Jour de la Libération",en:"Liberation Day"}},"08-15":{_name:"08-15"},"1st friday in August":{name:{rw:"Umuganura",fr:"Journée nationale de récolte",en:"National Harvest Day"}},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"easter 1":{_name:"easter 1"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},SA:{names:{ar:"المملكة العربية السعودية",en:"Saudi Arabia"},langs:["ar","en"],zones:["Asia/Riyadh"],dayoff:"Saturday",days:{"02-22 since 2022":{name:{ar:"يوم التأسيس",en:"Founding Day"}},"09-23 since 2005":{name:{ar:"اليوم الوطني",en:"National Day"}},"30 Ramadan P4D":{_name:"1 Shawwal"},"9 Dhu al-Hijjah P4D":{_name:"10 Dhu al-Hijjah"}}},SC:{names:{en:"Seychelles",fr:"République des Seychelles",crs:"Repiblik Sesel"},langs:["en","fr","crs"],zones:["Indian/Mahe"],dayoff:"sunday",days:{"01-01 P2D":{_name:"01-01"},"easter -2":{_name:"easter -2"},"easter -1":{_name:"easter -1"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"easter 60":{_name:"easter 60"},"05-01":{_name:"05-01"},"06-18":{_name:"National Holiday"},"06-29":{_name:"Independence Day"},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"12-08":{_name:"12-08"},"12-25":{_name:"12-25"}}},SD:{names:{ar:"جمهورية السودان",en:"Sudan"},langs:[],zones:["Africa/Khartoum"],dayoff:"",days:{"01-01":{_name:"Independence Day"},"12-19":{_name:"Revolution Day"},"12-25":{_name:"12-25"},"1 Muharram":{_name:"1 Muharram"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Shawwal P4D":{_name:"1 Shawwal"},"10 Dhu al-Hijjah P3D":{_name:"10 Dhu al-Hijjah"},"julian 12-25":{_name:"julian 12-25",name:{en:"Coptic Christmas"}},orthodox:{_name:"orthodox",name:{en:"Coptic Easter"}}}},SE:{names:{sv:"Sverige",en:"Sweden"},dayoff:"sunday",langs:["sv"],zones:["Europe/Stockholm"],days:{"01-01":{_name:"01-01"},"01-05 12:00":{name:{sv:"Trettondagsafton",en:"Twelfth Night"},type:"optional"},"01-06":{_name:"01-06"},"01-13":{name:{sv:"Tjugondag Knut",en:"Saint Knut's Day"},type:"observance"},"1st sunday in March":{name:{sv:"Vasaloppet"},type:"observance"},"03-25 prior to 1990":{name:{sv:"Marie Bebådelsedag",en:"Annunciation Day",lat:"Annuntiatio Mariæ"},type:"observance"},"04-30 12:00":{name:{sv:"Valborgsmässoafton",en:"Walpurgis Night"},type:"optional"},"easter -3":{_name:"easter -3",type:"observance"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"easter -1":{_name:"easter -1",type:"observance"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"easter 39":{_name:"easter 39"},"easter 48":{name:{sv:"Pingstafton",en:"Whitsun Eve"},type:"observance"},"easter 49":{_name:"easter 49",type:"public"},"easter 50":{_name:"easter 50",type:"observance"},"sunday before 06-01":{_name:"Mothers Day",type:"observance"},"06-06 since 2005":{name:{sv:"Sveriges nationaldag",en:"National Day"}},"06-06 since 1983 prior to 2005":{name:{sv:"Sveriges nationaldag",en:"National Day"},type:"observance"},"friday after 06-19":{name:{sv:"Midsommarafton",en:"Midsummer Eve",fi:"Juhannusaatto"},type:"bank"},"saturday after 06-20":{name:{sv:"Midsommardagen",en:"Midsummer Day",fi:"Juhannuspäivä"}},"friday after 10-30 12:00":{name:{sv:"Allhelgonaafton",en:"Halloween"},type:"optional"},"saturday after 10-31":{_name:"11-01"},"11-06":{name:{sv:"Gustav-Adolf-dagen",en:"Gustavus Adolphus Day"},type:"observance"},"11-11":{name:{sv:"Mårtensgås",en:"Saint Martin's Day"},type:"observance"},"12-10":{name:{sv:"Nobeldagen",en:"Nobel Day"},type:"observance"},"12-13":{name:{sv:"Luciadagen",en:"Saint Lucy's Day"},type:"observance"},"12-24":{_name:"12-24",type:"bank"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"12-31":{_name:"12-31",type:"bank"}}},SG:{names:{en:"Singapore"},langs:["en"],zones:["Asia/Singapore"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"substitutes 01-01 if sunday then next monday":{substitute:!0,_name:"01-01"},"chinese 01-0-01":{name:{en:"Chinese New Year"}},"chinese 01-0-02":{name:{en:"Chinese New Year"}},"substitutes chinese 01-0-01 if sunday then next tuesday":{substitute:!0,name:{en:"Chinese New Year"}},"substitutes chinese 01-0-02 if sunday then next monday":{substitute:!0,name:{en:"Chinese New Year"}},"easter -2":{_name:"easter -2"},"05-01":{_name:"05-01"},"substitutes 05-01 if sunday then next monday":{substitute:!0,_name:"05-01"},"08-09":{name:{en:"National Day"}},"substitutes 08-09 if sunday then next monday":{substitute:!0,name:{en:"National Day"}},"12-25":{_name:"12-25"},"substitutes 12-25 if sunday then next monday":{substitute:!0,_name:"12-25"},"1 Shawwal":{_name:"1 Shawwal",name:{en:"Hari Raya Puasa"},disable:["2022-05-02","2023-04-21","2024-04-09","2025-03-30","2026-03-20"],enable:["2022-05-03","2023-04-22","2024-04-10","2025-03-31","2026-03-21"]},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah",name:{en:"Hari Raya Haji"},disable:["2022-07-09","2023-06-28","2024-06-29","2025-06-06"],enable:["2022-07-10","2023-06-29","2024-06-17","2025-06-07"]},"2001-05-07":{_name:"Vesak"},"2002-05-27":{_name:"Vesak"},"2003-05-15":{_name:"Vesak"},"2004-06-02":{_name:"Vesak"},"2005-05-23":{_name:"Vesak"},"2006-05-12":{_name:"Vesak"},"2007-05-31":{_name:"Vesak"},"2008-05-19":{_name:"Vesak"},"2009-05-09":{_name:"Vesak"},"2010-05-28":{_name:"Vesak"},"2011-05-17":{_name:"Vesak"},"2012-05-05":{_name:"Vesak"},"2013-05-24":{_name:"Vesak"},"2014-05-13":{_name:"Vesak"},"2015-06-01":{_name:"Vesak"},"2016-05-21":{_name:"Vesak"},"2017-05-10":{_name:"Vesak"},"2018-05-29":{_name:"Vesak"},"2019-05-19":{_name:"Vesak"},"2019-05-20":{substitute:!0,_name:"Vesak"},"2020-05-07":{_name:"Vesak"},"2021-05-26":{_name:"Vesak"},"2022-05-15":{_name:"Vesak"},"2022-05-16":{substitute:!0,_name:"Vesak"},"2023-06-02":{_name:"Vesak"},"2024-05-22":{_name:"Vesak"},"2025-05-12":{_name:"Vesak"},"2026-05-31":{_name:"Vesak"},"2026-06-01":{substitute:!0,_name:"Vesak"},"2000-10-26":{_name:"Deepavali"},"2001-11-14":{_name:"Deepavali"},"2002-11-03":{_name:"Deepavali"},"2002-11-04":{substitute:!0,_name:"Deepavali"},"2003-10-23":{_name:"Deepavali"},"2004-11-11":{_name:"Deepavali"},"2005-11-01":{_name:"Deepavali"},"2006-10-21":{_name:"Deepavali"},"2007-11-08":{_name:"Deepavali"},"2008-10-27":{_name:"Deepavali"},"2009-10-17":{_name:"Deepavali"},"2010-11-05":{_name:"Deepavali"},"2011-10-26":{_name:"Deepavali"},"2012-11-13":{_name:"Deepavali"},"2013-11-03":{_name:"Deepavali"},"2013-11-04":{substitute:!0,_name:"Deepavali"},"2014-10-22":{_name:"Deepavali"},"2015-11-10":{_name:"Deepavali"},"2016-10-29":{_name:"Deepavali"},"2017-10-18":{_name:"Deepavali"},"2018-11-06":{_name:"Deepavali"},"2019-10-27":{_name:"Deepavali"},"2019-10-28":{substitute:!0,_name:"Deepavali"},"2020-11-14":{_name:"Deepavali"},"2021-11-04":{_name:"Deepavali"},"2022-10-24":{_name:"Deepavali"},"2023-11-13":{_name:"Deepavali"},"2024-10-31":{_name:"Deepavali"},"2025-10-20":{_name:"Deepavali"},"2026-11-08":{_name:"Deepavali"},"2026-11-09":{substitute:!0,_name:"Deepavali"},"2027-10-28":{_name:"Deepavali"},"2028-11-15":{_name:"Deepavali"},"2029-11-05":{_name:"Deepavali"},"2030-10-25":{_name:"Deepavali"},"2023-09-1":{name:{en:"Presidential Election Day"},type:"public"}}},SH:{names:{en:"St. Helena"},langs:["en"],zones:["Africa/Abidjan"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"substitutes 01-01 if sunday then next monday":{substitute:!0,_name:"01-01"},"substitutes 01-01 if saturday then next monday":{substitute:!0,_name:"01-01"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"3rd monday in April":{name:{en:"Queen's Birthday"}},"05-21":{name:{en:"Saint Helena Day"}},"easter 50":{_name:"easter 50"},"monday before 09-01":{name:{en:"August Bank Holiday"}},"12-25":{_name:"12-25"},"substitutes 12-25 if saturday then next tuesday":{substitute:!0,_name:"12-25"},"substitutes 12-25 if sunday then next tuesday":{substitute:!0,_name:"12-25"},"12-26":{_name:"12-26"},"substitutes 12-26 if saturday then next monday":{substitute:!0,_name:"12-26"},"substitutes 12-26 if sunday then next monday":{substitute:!0,_name:"12-26"}},states:{AC:{name:"Ascension Island",days:{"easter 39":{_name:"easter 39"}}},HL:{name:"Saint Helena",days:{}},TA:{name:"Tristan da Cunha",days:{"easter 39":{_name:"easter 39"},"2012-04-23":{name:{en:"Ratting Day"}},"2013-05-03":{name:{en:"Ratting Day"}},"2014-05-02":{name:{en:"Ratting Day"}},"2015-05-16":{name:{en:"Ratting Day"}},"2016-04-30":{name:{en:"Ratting Day"}},"2017-05-26":{name:{en:"Ratting Day"}},"2018-06-02":{name:{en:"Ratting Day"}},"08-14":{name:{en:"Anniversary Day"}},"monday before 09-01":!1}}}},SI:{names:{sl:"Republika Slovenija",en:"Slovenia"},langs:["sl"],zones:["Europe/Belgrade"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"01-02":{_name:"01-01",active:[{to:1955},{from:2017}]},"02-08":{name:{en:"Prešeren Day, the Slovenian Cultural Holiday",sl:"Prešernov dan, slovenski kulturni praznik"},active:[{from:1991}]},"03-08":{_name:"03-08",type:"observance"},"04-23":{name:{sl:"Jurjevanje",en:"St. George's Day"},type:"observance"},"easter -49":{name:{sl:"Pust",en:"Carnival"},type:"observance"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"04-27":{name:{sl:"Dan upora proti okupatorju",en:"Day of Uprising Against Occupation"}},"05-01":{_name:"05-01",name:{en:"Labour Day"},active:[{from:1949}]},"05-02":{_name:"05-01",name:{en:"Labour Day"},active:[{from:1949}]},"easter 49":{_name:"easter 49"},"06-08":{name:{sl:"Dan Primoža Trubarja",en:"Primož Trubar Day"},type:"observance",active:[{from:2010}]},"06-25":{name:{sl:"Dan državnosti",en:"Statehood Day"},active:[{from:1991}]},"08-15":{_name:"08-15",active:[{from:1992}]},"08-17":{name:{sl:"Združitev prekmurskih Slovencev z matičnim narodom",en:"Unification of Prekmurje Slovenes with the Mother Nation"},type:"observance",active:[{from:2006}]},"09-15":{name:{sl:"Vrnitev Primorske k matični domovini",en:"Return of Primorska to the Motherland"},type:"observance",active:[{from:2005}]},"09-23":{name:{sl:"Dan slovenskega športa",en:"Slovenian Sports Day"},type:"observance",active:[{from:2020}]},"10-25":{name:{sl:"Dan suverenosti",en:"Sovereignty Day"},type:"observance",active:[{from:2015}]},"10-31":{name:{sl:"Dan reformacije",en:"Reformation Day"}},"11-01":{name:{sl:"Dan spomina na mrtve",en:"Day of Remembrance for the Dead"}},"11-11":{name:{sl:"Martinovanje",en:"St. Martin's Day"},type:"observance"},"11-23":{name:{sl:"Dan Rudolfa Maistra",en:"Rudolf Maister Day"},type:"observance",active:[{from:2015}]},"12-06":{name:{sl:"Miklavž",en:"Saint Nicholas Day"},type:"observance"},"12-25":{_name:"12-25",active:[{to:1953},{from:1991}]},"12-26":{name:{sl:"Dan samostojnosti in enotnosti",en:"Independence and Unity Day"}}}},SJ:{names:{en:"Svalbard & Jan Mayen"},langs:["no"],zones:["Europe/Oslo"],dayoff:"sunday",_days:"NO"},SK:{names:{sk:"Slovenská republika",en:"Slovakia"},langs:["sk"],zones:["Europe/Bratislava"],dayoff:"sunday",days:{"01-01":{_name:"01-01",name:{sk:"Deň vzniku Slovenskej republiky"}},"01-06":{_name:"01-06"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"05-08 prior to 2026":{name:{sk:"Deň víťazstva nad fašizmom",en:"Day of victory over fascism"}},"05-08 since 2026":{name:{sk:"Deň víťazstva nad fašizmom",en:"Day of victory over fascism"},type:"observance"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"07-05":{name:{sk:"Sviatok svätého Cyrila a Metoda",en:"Saints Cyril and Methodius Day"}},"08-29":{name:{sk:"Výročie Slovenského národného povstania",en:"Slovak National Uprising anniversary"}},"09-01 since 1994 and prior to 2024":{_name:"Constitution Day"},"09-01 since 2024":{_name:"Constitution Day",type:"observance"},"09-15 prior to 2026":{name:{sk:"Sviatok Panny Márie Sedembolestnej",en:"Day of Our Lady of the Seven Sorrows"}},"09-15 since 2026":{name:{sk:"Sviatok Panny Márie Sedembolestnej",en:"Day of Our Lady of the Seven Sorrows"},type:"observance"},"11-01":{_name:"11-01"},"11-17 prior to 2025":{name:{sk:"Deň boja za slobodu a demokraciu",en:"Struggle for Freedom and Democracy Day"}},"11-17 since 2025":{name:{sk:"Deň boja za slobodu a demokraciu",en:"Struggle for Freedom and Democracy Day"},type:"observance"},"12-24":{_name:"12-24"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}},SL:{names:{en:"Sierra Leone"},langs:["en"],zones:["Africa/Abidjan"],dayoff:"sunday",days:{"01-01 and if Sunday then next Monday":{substitute:!0,_name:"01-01"},"02-18 and if Sunday then next Monday":{substitute:!0,name:{en:"Armed Forces Day"}},"03-08 and if Sunday then next Monday":{substitute:!0,_name:"03-08"},"04-27 and if Sunday then next Monday":{substitute:!0,_name:"Independence Day"},"easter -2":{_name:"easter -2"},"easter 1":{_name:"easter 1"},"1 Shawwal and if Sunday then next Monday":{substitute:!0,_name:"1 Shawwal",name:{en:"Korité"}},"10 Dhu al-Hijjah and if Sunday then next Monday":{substitute:!0,_name:"10 Dhu al-Hijjah",name:{en:"Tabaski"}},"12 Rabi al-awwal and if Sunday then next Monday":{substitute:!0,_name:"12 Rabi al-awwal",name:{en:"Mawlid"}},"12-25 and if Sunday then next Tuesday":{substitute:!0,_name:"12-25"},"12-26 and if Sunday then next Monday":{substitute:!0,_name:"12-26"}}},SM:{names:{it:"San Marino",en:"San Marino"},langs:["it"],zones:["Europe/Rome"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"01-06":{_name:"01-06",name:{it:"Epifania"}},"02-05":{name:{it:"Festa di SantAgata",en:"Feast of Saint Agatha"}},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"03-25":{name:{it:"Anniversario dell'Arengo",en:"Anniversary of the Arengo"}},"04-01":{name:{it:"Cerimonia di investitura dei Capitani Reggenti",en:"Inauguration Ceremony"}},"05-01":{_name:"05-01"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"easter 60":{_name:"easter 60"},"07-28":{name:{it:"Anniversario della caduta del Fascismo e Festa della Libertà",en:"Liberation from Fascism"}},"08-15":{_name:"08-15"},"09-03":{name:{it:"Festa di San Marino e di Fondazione della Repubblica",en:"The Feast of San Marino and the Republic"}},"10-01":{name:{it:"Cerimonia di investitura dei Capitani Reggenti"}},"11-01":{_name:"11-01",name:{it:"Tutti i Santi"}},"11-02":{name:{it:"Commemorazione dei defunti",en:"Commemoration of the deceased"}},"12-08":{_name:"12-08"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"12-31":{_name:"12-31",type:"optional"}}},SN:{names:{fr:"République du Sénégal",wo:"Réewum Senegaal",en:"Senegal"},langs:["fr","wo"],zones:["Africa/Abidjan"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"04-04":{_name:"National Holiday"},"05-01":{_name:"05-01"},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"12-25":{_name:"12-25"},"easter 1":{_name:"easter 1"},"easter 39":{_name:"easter 39"},"easter 50":{_name:"easter 50"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Shawwal and if sunday then next monday":{_name:"1 Shawwal"},"10 Dhu al-Hijjah and if sunday then next monday":{_name:"10 Dhu al-Hijjah"},"10 Muharram":{_name:"10 Muharram"},"18 Safar":{name:"Magal de Touba"}}},SO:{names:{so:"Jamhuuriyadda Federaalka Soomaaliya",ar:"جمهورية الصومال الفدرالية",en:"Somalia"},dayoff:"?",langs:["so","ar","en"],zones:["Africa/Nairobi"],days:{"01-01":{_name:"01-01"},"05-01":{_name:"05-01"},"06-26":{name:{ar:"استقلال الصومال البريطاني",en:"Independence of British Somaliland"}},"07-01":{_name:"Independence Day"},"10 Muharram":{_name:"10 Muharram"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}},states:{AW:{name:"Awdal",days:{"01-01":!1,"05-18 P2D":{name:{en:"Restoration of Somaliland Sovereignty"}},"07-01":!1,"1 Muharram":{_name:"1 Muharram"},"10 Muharram":!1,"27 Rajab":{_name:"27 Rajab"}}},SA:{name:"Sanaag",_days:["SO","states","AW"]},SO:{name:"Sool",_days:["SO","states","AW"]},TO:{name:"Togdheer",_days:["SO","states","AW"]},WO:{name:"Woqooyi Galbeed",_days:["SO","states","AW"]}}},SR:{names:{en:"Suriname"},langs:["nl","srn"],zones:["America/Paramaribo"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"chinese 01-0-01":{name:{nl:"Chinees Nieuwjaar",en:"Chinese New Year"}},"02-25":{name:{nl:"Dag van Bevrijding en Vernieuwing",en:"Day of Liberation and Innovation"}},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"07-01":{name:{nl:"Dag der Vrijheden (Keti koti)",srn:"Keti koti",en:"Emancipation Day"}},"08-09":{name:{nl:"Dag der Inheemsen",en:"Indigenous People's Day"}},"10-10":{name:{nl:"Dag van de Marrons",en:"Day of the Maroons"}},"11-25":{_name:"Independence Day"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"},"2015-03-06":{_name:"Holi"},"2016-03-23":{_name:"Holi"},"2017-03-12":{_name:"Holi"},"2018-03-02":{_name:"Holi"},"2019-03-21":{_name:"Holi"},"2020-03-09":{_name:"Holi"},"2021-03-28":{_name:"Holi"},"2022-03-18":{_name:"Holi"},"2023-03-07":{_name:"Holi"},"2024-03-25":{_name:"Holi"},"2025-03-14":{_name:"Holi"},"2026-03-03":{_name:"Holi"},"2027-03-22":{_name:"Holi"},"2028-03-11":{_name:"Holi"},"2029-03-28":{_name:"Holi"},"2030-03-19":{_name:"Holi"},"2014-10-23":{_name:"Deepavali"},"2015-11-11":{_name:"Deepavali"},"2016-10-30":{_name:"Deepavali"},"2017-10-19":{_name:"Deepavali"},"2018-11-07":{_name:"Deepavali"},"2019-10-27":{_name:"Deepavali"},"2020-11-14":{_name:"Deepavali"},"2021-11-04":{_name:"Deepavali"},"2022-10-24":{_name:"Deepavali"},"2023-11-12":{_name:"Deepavali"},"2024-10-31":{_name:"Deepavali"},"2025-10-20":{_name:"Deepavali"},"2026-11-08":{_name:"Deepavali"},"2027-10-28":{_name:"Deepavali"},"2028-10-17":{_name:"Deepavali"},"2029-11-05":{_name:"Deepavali"},"2030-10-25":{_name:"Deepavali"}}},SS:{names:{en:"South Sudan"},dayoff:"sunday",langs:["en"],zones:["Africa/Maputo"],days:{"01-01":{_name:"01-01"},"01-09":{name:{en:"Peace Agreement Day"}},"03-08":{_name:"03-08"},"05-16":{name:{en:"SPLA Day"}},"1st monday in July":{_name:"Mothers Day",type:"observance"},"07-09":{_name:"Independence Day"},"07-30":{name:{en:"Martyrs Day"}},"12-25":{_name:"12-25"},"12-28":{name:{en:"Republic Day"}},"12-31":{_name:"12-31"},"2 Shawwal":{_name:"1 Shawwal"},"12 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},ST:{names:{pt:"São Tomé & Príncipe",en:"São Tomé & Príncipe"},langs:["pt","en"],zones:["Africa/Abidjan"],dayoff:"sunday",days:{"01-01 and if Saturday then previous Friday if Sunday then next Monday":{substitute:!0,_name:"01-01"},"02-03 and if Saturday then previous Friday if Sunday then next Monday":{substitute:!0,name:{en:"Martyrs' Day",pt:"Dia dos Mártires"}},"05-01 and if Saturday then previous Friday if Sunday then next Monday":{substitute:!0,_name:"05-01"},"07-12 and if Saturday then previous Friday if Sunday then next Monday":{substitute:!0,_name:"Independence Day"},"09-06 and if Saturday then previous Friday if Sunday then next Monday":{substitute:!0,name:{en:"Armed Forces Day",pt:"Dia das Forças Armadas"}},"09-30 and if Saturday then previous Friday if Sunday then next Monday":{substitute:!0,name:{en:"Agricultural Reform Day",pt:"Dia da Reforma Agrária"}},"12-21 and if Saturday then previous Friday if Sunday then next Monday":{substitute:!0,name:{en:"São Tomé Day",pt:"Dia de São Tomé"}},"12-25 and if Saturday then previous Friday if Sunday then next Monday":{substitute:!0,_name:"12-25"}}},SV:{names:{es:"El Salvador",en:"El Salvador"},dayoff:"sunday",langs:["es"],zones:["America/El_Salvador"],days:{"01-01":{_name:"01-01",type:"observance"},"01-16":{name:{es:"Firma de los Acuerdos de Paz"},type:"observance"},"03-08":{name:{es:"Día de la Mujer"},type:"observance"},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},"easter -1":{_name:"easter -1"},easter:{_name:"easter",type:"observance"},"05-01":{_name:"05-01"},"05-07":{name:{en:"Soldier's Day",es:"Día del Soldado"},type:"observance"},"05-10":{_name:"Mothers Day",type:"optional",note:"Public Offices only"},"06-17":{_name:"Fathers Day",type:"observance"},"06-22":{name:{es:"Día del Maestro"},type:"optional",note:"Dayoff for teachers only"},"08-06":{name:{es:"Celebración del Divino Salvador del Mundo"}},"09-15":{_name:"Independence Day"},"11-02":{_name:"11-02"},"12-25":{_name:"12-25"}},regions:{SS:{name:"San Salvador",days:{"08-03":{name:{es:"Fiestas Agostinas"}},"08-05":{name:{es:"Fiestas Agostinas"}}}}}},SX:{names:{en:"Sint Maarten"},langs:["nl"],zones:["America/Curacao"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"04-27":{name:{nl:"Koningsdag",en:"King's Day"}},"04-30 if Sunday then next Tuesday prior to 2017":{name:{nl:"Carnaval",en:"Carnival"}},"04-30 if Saturday then previous Friday if Sunday then next Tuesday since 2017":{name:{nl:"Carnaval",en:"Carnival"}},"05-01 if Sunday then next Monday":{_name:"05-01"},"easter 39":{_name:"easter 39"},"easter 49":{_name:"easter 49"},"07-01":{name:{nl:"Emancipatiedag",en:"Emancipation Day"}},"10-09":{_name:"Constitution Day"},"11-11":{name:{en:"Sint Maarten Day"}},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}},SZ:{names:{ss:"Eswatini",en:"Swaziland"},langs:["ss","en"],zones:["Africa/Johannesburg"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"04-19 and if Saturday, Sunday then next Monday":{substitute:!0,name:{en:"Birthday of King Mswati III"}},"04-25 and if Saturday, Sunday then next Monday":{substitute:!0,name:{en:"National Flag Day"}},"05-01 and if Saturday, Sunday then next Monday":{substitute:!0,_name:"05-01"},"easter 39":{_name:"easter 39"},"07-22 and if Saturday, Sunday then next Monday":{substitute:!0,name:{en:"Birthday of the late King Sobhuza"}},"1st Monday in September":{name:{ss:"Umhlanga Reed Dance",en:"Umhlanga Reed Dance"}},"09-06 and if Saturday, Sunday then next Monday":{substitute:!0,_name:"Independence Day",name:{ss:"Somhlolo Day"}},"12-25":{_name:"12-25"},"12-26 and if Sunday then next Monday":{_name:"12-26"},"12-28 P6D":{name:{ss:"Incwala",en:"Incwala Festival"}}}},TC:{names:{en:"Turks & Caicos Islands"},langs:["en"],zones:["America/Grand_Turk"],dayoff:"sunday",days:{"01-01 and if Saturday, Sunday then next Monday":{_name:"01-01"},"2nd Monday in March":{name:{en:"Commonwealth Day"}},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"1st Monday before 06-01":{name:{en:"National Heroes' Day"}},"2nd Monday after 06-02":{name:{en:"Queen's Birthday"}},"1st Monday in August":{name:{en:"Emancipation Day"}},"1st Friday before 10-01":{name:{en:"National Youth Day"}},"2nd Monday in October":{name:{en:"National Heritage Day"}},"4th Friday in November":{name:{en:"National Day of Thanksgiving"}},"12-25 and if Saturday then next Monday if Sunday then next Tuesday":{substitute:!0,_name:"12-25"},"12-26 and if Saturday then next Monday if Sunday then next Tuesday":{substitute:!0,_name:"12-26"}}},TD:{names:{ar:"جمهورية تشاد",fr:"République du Tchad",en:"Chad"},langs:["ar","fr"],zones:["Africa/Ndjamena"],dayoff:"sunday",days:{"01-01 and if sunday then next monday":{_name:"01-01"},"05-01 and if sunday then next monday":{_name:"05-01"},"08-11 and if sunday then next monday":{name:{fr:"Fête Nationale (Indépendance)",en:"Independence Day"}},"12-01 and if sunday then next monday":{name:{fr:"Journée de la libération et de la démocratie",en:"Freedom and Democracy Day"}},"11-01":{_name:"11-01"},"11-28":{name:{fr:"Anniversaire de la Proclamation de la République",en:"Proclamation of the Republic"}},"12-25":{_name:"12-25"},"easter 1":{_name:"easter 1"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},TG:{names:{fr:"République togolaise",en:"Togolese Republic"},dayoff:"sunday",langs:["fr"],zones:["Africa/Abidjan"],days:{"01-01":{_name:"01-01"},"01-13":{name:{fr:"Jour de la libération",en:"Liberation Day"}},"04-27":{_name:"Independence Day"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"easter 39":{_name:"easter 39"},"easter 50":{_name:"easter 50"},"06-21":{name:{fr:"Journée des Martyrs",en:"Day of the Martyrs"}},"08-15":{_name:"08-15"},"11-01":{_name:"11-01"},"12-25":{_name:"12-25"},"13 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"2 Shawwal":{_name:"1 Shawwal"},"11 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},TH:{names:{en:"Thailand"},langs:["en","th"],zones:["Asia/Bangkok"],dayoff:"Saturday",days:{"01-01":{_name:"01-01"},"04-06":{name:{en:"Chakri Memorial Day",th:"วันจักรี"}},"04-13":{name:{en:"Songkran Festival",th:"วันสงกรานต์"}},"04-14":{name:{en:"Songkran Festival",th:"วันสงกรานต์"}},"04-15":{name:{en:"Songkran Festival",th:"วันสงกรานต์"}},"05-04":{name:{en:"Coronation Day",th:"วันฉัตรมงคล"}},"06-03":{name:{en:"Queen Suthida's Birthday",th:"วันเฉลิมพระชนมพรรษาสมเด็จพระนางเจ้าสุทิดา พัชรสุธาพิมลลักษณ พระบรมราชินี"}},"07-28":{name:{en:"King's Birthday",th:"วันเฉลิมพระชนมพรรษาพระบาทสมเด็จพระวชิรเกล้าเจ้าอยู่หัว"}},"08-12":{name:{en:"The Queen Mother's Birthday",th:"วันเฉลิมพระชนมพรรษาสมเด็จพระนางเจ้าสิริกิติ์ พระบรมราชินีนาถ พระบรมราชชนนีพันปีหลวง"}},"10-13":{name:{en:"King Bhumibol Adulyadej Memorial Day",th:"วันคล้ายวันสวรรคตพระบาทสมเด็จพระบรมชนกาธิเบศร มหาภูมิพลอดุลยเดชมหาราช บรมนาถบพิตร"}},"10-23":{name:{en:"King Chulalongkorn Day",th:"วันปิยมหาราช"}},"12-05":{name:{en:"King Bhumibol Adulyadej's Birthday",th:"วันคล้ายวันพระบรมราชสมภพ พระบาทสมเด็จพระบรมชนกาธิเบศร มหาภูมิพลอดุลยเดชมหาราช บรมนาถบพิตร"}},"12-10":{name:{en:"Constitution Day",th:"วันรัฐธรรมนูญ"}},"12-31":{_name:"12-31"},"2010-03-01":{_name:"Makha Bucha"},"2011-02-18":{_name:"Makha Bucha"},"2012-03-07":{_name:"Makha Bucha"},"2013-02-25":{_name:"Makha Bucha"},"2014-02-14":{_name:"Makha Bucha"},"2015-03-04":{_name:"Makha Bucha"},"2016-02-22":{_name:"Makha Bucha"},"2017-02-11":{_name:"Makha Bucha"},"2018-03-01":{_name:"Makha Bucha"},"2019-02-19":{_name:"Makha Bucha"},"2020-02-08":{_name:"Makha Bucha"},"2021-02-26":{_name:"Makha Bucha"},"2022-02-16":{_name:"Makha Bucha"},"2023-03-06":{_name:"Makha Bucha"},"2024-02-24":{_name:"Makha Bucha"},"2025-02-13":{_name:"Makha Bucha"},"2026-03-03":{_name:"Makha Bucha"},"2010-05-28":{_name:"Vesak"},"2011-05-17":{_name:"Vesak"},"2012-05-06":{_name:"Vesak"},"2013-05-25":{_name:"Vesak"},"2014-05-15":{_name:"Vesak"},"2015-06-02":{_name:"Vesak"},"2016-05-22":{_name:"Vesak"},"2017-05-10":{_name:"Vesak"},"2018-05-29":{_name:"Vesak"},"2019-05-19":{_name:"Vesak"},"2020-05-07":{_name:"Vesak"},"2021-05-26":{_name:"Vesak"},"2022-05-15":{_name:"Vesak"},"2022-05-16":{substitute:!0,_name:"Vesak"},"2023-05-04":{_name:"Vesak"},"2024-05-22":{_name:"Vesak"},"2025-05-12":{_name:"Vesak"},"2026-05-31":{_name:"Vesak"},"2010-07-25":{_name:"Asalha Puja"},"2011-07-15":{_name:"Asalha Puja"},"2012-08-02":{_name:"Asalha Puja"},"2013-07-22":{_name:"Asalha Puja"},"2014-07-11":{_name:"Asalha Puja"},"2015-07-30":{_name:"Asalha Puja"},"2016-07-19":{_name:"Asalha Puja"},"2017-07-08":{_name:"Asalha Puja"},"2018-07-27":{_name:"Asalha Puja"},"2019-07-16":{_name:"Asalha Puja"},"2020-07-04":{_name:"Asalha Puja"},"2021-07-24":{_name:"Asalha Puja"},"2022-07-13":{_name:"Asalha Puja"},"2023-07-31":{_name:"Asalha Puja"},"2024-07-19":{_name:"Asalha Puja"},"2025-07-10":{_name:"Asalha Puja"},"2026-07-29":{_name:"Asalha Puja"},"2010-07-26":{_name:"Buddhist Lent"},"2011-07-16":{_name:"Buddhist Lent"},"2012-08-03":{_name:"Buddhist Lent"},"2013-07-23":{_name:"Buddhist Lent"},"2014-07-12":{_name:"Buddhist Lent"},"2015-07-31":{_name:"Buddhist Lent"},"2016-07-20":{_name:"Buddhist Lent"},"2017-07-09":{_name:"Buddhist Lent"},"2018-07-28":{_name:"Buddhist Lent"},"2019-07-17":{_name:"Buddhist Lent"},"2020-07-05":{_name:"Buddhist Lent"},"2021-07-25":{_name:"Buddhist Lent"},"2022-07-14":{_name:"Buddhist Lent"},"2023-08-01":{_name:"Buddhist Lent"},"2024-07-20":{_name:"Buddhist Lent"},"2025-07-11":{_name:"Buddhist Lent"},"2026-07-30":{_name:"Buddhist Lent"}}},TN:{names:{ar:"الجمهورية التونسية",fr:"République tunisienne",en:"Tunisia"},langs:["ar","fr"],zones:["Africa/Tunis"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"01-14":{name:{fr:"Fête de la Révolution et de la Jeunesse",ar:"عيد الثورة و الشباب"}},"03-20":{name:{fr:"Fête de l'indépendance",ar:"عيد الإستقلال"}},"04-09":{name:{fr:"Journée des Martyrs",ar:"عيد الشهداء"}},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal"},"1 Muharram":{_name:"1 Muharram"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"},"05-01":{_name:"05-01"},"07-25":{name:{fr:"Fête de la République",ar:"عيد الجمهورية"}},"08-13":{name:{fr:"Fête de la Femme et de la Famille",ar:"عيد المرأة"}},"10-15":{name:{fr:"Fête de l'Évacuation",ar:"عيد الجلاء"}}}},TO:{names:{to:"Puleʻanga Fakatuʻi ʻo Tonga",en:"Tonga"},langs:["to","en"],zones:["Pacific/Tongatapu"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"easter -2":{_name:"easter -2"},"easter 1":{_name:"easter 1"},"04-25":{name:{en:"ANZAC Day"}},"06-04 if thursday,friday,saturday,sunday then next monday and if tuesday then previous monday":{name:{en:"Emancipation Day"}},"07-04":{name:{en:"Official Birthday of His Majesty King Tupou VI"}},"09-17 if thursday,friday,saturday,sunday then next monday and if tuesday then previous monday":{name:{en:"Birthday of His Royal Highness The Crown Prince Tupotoʻa-ʻUlukalala"}},"11-04 if thursday,friday,saturday,sunday then next monday and if tuesday then previous monday":{_name:"Constitution Day",name:{en:"Constitutional Day"}},"12-04 if thursday,friday,saturday,sunday then next monday and if tuesday then previous monday":{name:{en:"Tupou I Day"}},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}},TR:{names:{tr:"Türkiye",en:"Turkey"},dayoff:"saturday",langs:["tr"],zones:["Europe/Istanbul"],days:{"01-01":{_name:"01-01"},"04-23":{name:{en:"National Sovereignty and Children's Day",tr:"Ulusal Egemenlik ve Çocuk Bayramı"}},"05-01":{_name:"05-01",name:{en:"Labour and Solidarity Day",tr:"Emek ve Dayanışma Günü"}},"05-19":{name:{en:"Commemoration of Atatürk, Youth and Sports Day",tr:"Atatürk'ü Anma Gençlik ve Spor Bayramı"}},"07-15":{name:{en:"Democracy and National Unity Day",tr:"Demokrasi ve Millî Birlik Günü"}},"08-30":{name:{en:"Victory Day",tr:"Zafer Bayramı"}},"10-29":{name:{en:"Republic Day",tr:"Cumhuriyet Bayramı"}},"1 Shawwal PT90H":{_name:"1 Shawwal"},"10 Dhu al-Hijjah PT114H":{_name:"10 Dhu al-Hijjah"}}},TT:{names:{en:"Trinidad & Tobago"},langs:["en"],zones:["America/Port_of_Spain"],dayoff:"sunday",days:{"01-01 and if Sunday then next Monday":{substitute:!0,_name:"01-01"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"easter 1":{_name:"easter 1",type:"observance"},"03-30 and if Sunday then next Monday":{substitute:!0,name:{en:"Spiritual Baptist Liberation Day"}},"easter 60":{_name:"easter 60"},"05-30 and if Sunday then next Monday":{substitute:!0,name:{en:"Indian Arrival Day"}},"06-19 and if Sunday then next Monday":{substitute:!0,_name:"05-01"},"08-01 and if Sunday then next Monday":{substitute:!0,name:{en:"Emancipation Day"}},"08-31 and if Sunday then next Monday":{substitute:!0,_name:"Independence Day"},"09-24 and if Sunday then next Monday":{substitute:!0,name:{en:"Republic Day"}},"12-25 and if Sunday then next Tuesday":{substitute:!0,_name:"12-25"},"12-26 and if Sunday then next Monday":{substitute:!0,_name:"12-26"},"1 Shawwal and if Sunday then next Monday":{substitute:!0,_name:"1 Shawwal"},"2012-11-13":{_name:"Deepavali"},"2013-11-03":{_name:"Deepavali"},"2013-11-04":{substitute:!0,_name:"Deepavali"},"2014-10-23":{_name:"Deepavali"},"2015-11-11":{_name:"Deepavali"},"2016-10-29":{_name:"Deepavali"},"2017-10-19":{_name:"Deepavali"},"2018-11-07":{_name:"Deepavali"},"2019-10-27":{_name:"Deepavali"},"2019-10-28":{substitute:!0,_name:"Deepavali"},"2020-11-14":{_name:"Deepavali"},"2021-11-04":{_name:"Deepavali"},"2022-10-24":{_name:"Deepavali"},"2023-11-12":{_name:"Deepavali"},"2023-11-13":{substitute:!0,_name:"Deepavali"},"2024-10-31":{_name:"Deepavali"},"2025-10-20":{_name:"Deepavali"},"2026-11-08":{_name:"Deepavali"},"2026-11-09":{substitute:!0,_name:"Deepavali"},"2027-10-28":{_name:"Deepavali"},"2028-10-17":{_name:"Deepavali"},"2029-11-05":{_name:"Deepavali"},"2030-10-25":{_name:"Deepavali"}}},TW:{names:{zh:"中華民國",en:"Taiwan"},langs:["zh"],zones:["Asia/Taipei"],dayoff:"",days:{"01-01 and if Saturday then previous Friday if Sunday then next Monday":{substitute:!0,_name:"01-01",name:{zh:"中華民國開國紀念日 / 元旦",en:"Founding of the Republic of China"}},"chinese 01-0-00":{name:{en:"Chinese New Year's Eve",zh:"農曆除夕"}},"chinese 01-0-01":{name:{en:"Chinese New Year",zh:"農曆年初一"}},"chinese 01-0-01 if Monday then next Friday if Tuesday then next Saturdayif Wednesday then next Sunday if Thursday then next Monday if Friday then next Tuesday if Saturday then next Wednesday if Sunday then next Thursday":{name:{en:"Chinese New Year Holiday",zh:"农历新年假期"}},"chinese 01-0-02":{name:{en:"The second day of the Chinese New Year",zh:"農曆年初二"}},"chinese 01-0-03":{name:{en:"The third day of the Chinese New Year",zh:"農曆年初三"}},"chinese 01-0-04":{name:{en:"The forth day of the Chinese New Year",zh:"農曆年初四"}},"02-28 and if Sunday then next Monday":{substitute:!0,name:{en:"Peace Memorial Day",zh:"228和平紀念日"}},"04-04 and if Sunday then next Monday":{substitute:!0,name:{en:"Children's Day",zh:"兒童節"}},"chinese 5-01 solarterm and if Sunday then next Monday":{substitute:!0,name:{en:"Tomb Sweeping Day",zh:"淸明節"}},"chinese 05-0-05 and if Sunday then next Monday":{substitute:!0,name:{en:"Dragon Boat Festival",zh:"端午節"}},"chinese 08-0-15 and if Sunday then next Monday":{substitute:!0,name:{en:"Mid-Autumn Festival",zh:"中秋節"}},"10-10 and if Sunday then next Monday":{substitute:!0,name:{en:"National Day / Double Tenth Day",zh:"國慶日 / 雙十節"}},"02-04":{name:{en:"Farmer's Day",zh:"農民節"},type:"observance"},"03-08":{_name:"03-08",type:"observance"},"03-12":{name:{en:"Arbor Day",zh:"國父逝世紀念日"},type:"observance"},"03-29":{name:{en:"Youth Day",zh:"靑年節"},type:"observance"},"05-01 and if Saturday then previous Friday if Sunday then next Monday":{substitute:!0,_name:"05-01",name:{zh:"勞動節"},type:"observance",note:"private sector"},"05-04":{name:{en:"Literary Day",zh:"文藝節"},type:"observance"},"2nd Sunday in May":{_name:"Mothers Day",name:{zh:"母親節"},type:"observance"},"06-03":{name:{en:"Opium Suppression Movement Day",zh:"禁菸節"},type:"observance"},"08-08":{_name:"Fathers Day",name:{zh:"父親節"},type:"observance"},"09-01":{name:{en:"Journalist' Day",zh:"記者節"},type:"observance"},"09-03":{name:{en:"Armed Forces Day",zh:"軍人節"},type:"observance"},"09-28":{name:{en:"Teachers' Day",zh:"孔子誕辰紀念日"},type:"observance"},"10-21":{name:{en:"Overseas Chinese Day",zh:"華僑節"},type:"observance"},"10-25":{name:{en:"Taiwan Retrocession Day",zh:"臺灣光復節"},type:"observance"},"11-12":{name:{en:"Sun Yat-sen's Birthday",zh:"國父誕辰紀念日"},note:"Also Doctors' Day and Cultural Renaissance Day",type:"observance"},"december solstice":{name:{en:"Dongzhi Festival",zh:"冬至"},type:"observance"},"12-25":{name:{en:"Constitution Day",zh:"行憲紀念日"},type:"observance"},"chinese 01-0-15":{name:{en:"Lantern Festival",zh:"元宵節"},type:"observance"},"chinese 01-0-15 #1":{name:{en:"Tourism Day",zh:"觀光節"},type:"observance"},"chinese 02-0-02":{name:{en:"Earth God's Birthday",zh:"土地公誕辰"},type:"observance"},"chinese 02-0-19":{name:{en:"Kuan Yin's Birthday",zh:"觀音誕辰"},type:"observance"},"chinese 03-0-15":{name:{en:"God of Medicine's Birthday",zh:"保生大帝誕辰"},type:"observance"},"chinese 03-0-23":{name:{en:"Matsu's Birthday",zh:"媽祖誕辰"},type:"observance"},"chinese 04-0-08":{name:{en:"Buddha's Birthday",zh:"佛誕日"},type:"observance"},"chinese 05-0-13":{name:{en:"Kuan Kung's Birthday",zh:"關公誕辰"},type:"observance"},"chinese 05-0-13 #1":{name:{en:"Cheng Huang's Birthday",zh:"城隍爺誕辰"},type:"observance"},"chinese 07-0-07":{name:{en:"Qixi Festival",zh:"七夕"},type:"observance"},"chinese 07-0-15":{name:{en:"Ghost Festival",zh:"中元節"},type:"observance"},"chinese 09-0-09":{name:{en:"Double Ninth Festival",zh:"重陽節"},type:"observance"},"chinese 10-0-15":{name:{en:"Saisiat Festival",zh:"賽夏節"},type:"observance"}}},TZ:{names:{en:"Tanzania"},dayoff:"sunday",langs:["en"],zones:["Africa/Nairobi"],days:{"01-01":{_name:"01-01"},"01-02":{name:{en:"Zanzibar Revolution Day"}},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"04-07":{name:{en:"Karume Day"}},"04-26":{name:{en:"Union Day"}},"05-01":{_name:"05-01"},"07-07":{name:{en:"Saba Saba Day"}},"08-08":{name:{en:"Nane Nane Day"}},"10-14":{name:{en:"Nyerere Day"}},"12-09":{_name:"Independence Day"},"12-25":{_name:"12-25"},"12-26":{_name:"12-25"},"1 Shawwal P2D":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"},"12 Rabi al-awwal":{_name:"12 Rabi al-awwal",name:{en:"Maulid Day"}}}},UA:{names:{uk:"Україна",en:"Ukraine"},langs:["uk"],zones:["Europe/Kiev","Europe/Uzhgorod","Europe/Zaporozhye"],dayoff:"sunday",days:{"01-01 and if saturday, sunday then next tuesday":{_name:"01-01",name:{en:"New Year"},substitute:!0},"01-02 and if saturday, sunday then next monday":{_name:"01-01",name:{en:"New Year"},substitute:!0},"julian 12-25 and if saturday, sunday then next monday prior to 2023":{_name:"julian 12-25",substitute:!0},"03-08 and if saturday, sunday then next monday":{_name:"03-08"},"orthodox and if sunday then next monday since 1995 and prior to 1998":{_name:"orthodox",substitute:!0},"orthodox since 1991 and prior to 1995":{_name:"orthodox"},"orthodox since 1998 and prior to 2000":{_name:"orthodox"},"orthodox and if sunday then next monday since 2000":{_name:"orthodox",substitute:!0},"orthodox 49 and if sunday then next monday since 1995 and prior to 1998":{_name:"easter 49",substitute:!0},"orthodox 49 since 1991 and prior to 1995":{_name:"easter 49"},"orthodox 49 since 1998 and prior to 2000":{_name:"easter 49"},"orthodox 49 and if sunday then next monday since 2000":{_name:"easter 49",substitute:!0},"05-01 and if saturday, sunday then next tuesday":{_name:"05-01",substitute:!0},"05-02 and if saturday, sunday then next monday prior to 2018":{_name:"05-01",substitute:!0},"05-09 and if saturday, sunday then next monday":{name:{uk:"День перемоги над нацизмом у Другій світовій війні",en:"Victory Day"},substitute:!0},"06-28 and if saturday, sunday then next monday":{_name:"Constitution Day",substitute:!0},"07-15 and if saturday, sunday then next monday since 2023":{name:{en:"Statehood Day",uk:"День Української Державності"}},"07-28 and if saturday, sunday then next monday prior to 2023":{name:{en:"Statehood Day",uk:"День Української Державності"}},"08-24 and if saturday, sunday then next monday":{_name:"Independence Day",substitute:!0},"10-14 and if saturday, sunday then next monday since 2015 and prior to 2023":{name:{uk:"День захисника України",en:"Defenders of Ukraine Day"},substitute:!0},"10-01 and if saturday, sunday then next monday since 2023":{name:{uk:"День захисників і захисниць України",en:"Defenders of Ukraine Day"},substitute:!0},"12-25 and if saturday, sunday then next monday since 2017":{_name:"12-25"}}},UG:{names:{en:"Uganda"},dayoff:"sundays",langs:["en","sw"],zones:["Africa/Nairobi"],days:{"01-01":{_name:"01-01"},"01-26":{name:{en:"Liberation Day"}},"02-16":{name:{en:"Archbishop Janan Luwum Day"}},"03-08":{_name:"03-08"},"easter -46":{_name:"easter -46",type:"observance"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"06-03":{name:{en:"Martyr's Day"}},"06-09":{name:{en:"National Heroes Day"}},"10-09":{_name:"Independence Day"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},US:{names:{en:"United States of America"},dayoff:"sunday",zones:["America/New_York","America/Detroit","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Indiana/Indianapolis","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Vevay","America/Chicago","America/Indiana/Tell_City","America/Indiana/Knox","America/Menominee","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/North_Dakota/Beulah","America/Denver","America/Boise","America/Phoenix","America/Los_Angeles","America/Metlakatla","America/Anchorage","America/Juneau","America/Sitka","America/Yakutat","America/Nome","America/Adak","Pacific/Honolulu"],langs:["en-us","en"],days:{"01-01 and if sunday then next monday if saturday then previous friday":{substitute:!0,_name:"01-01"},"3rd monday in January":{name:{en:"Martin Luther King Jr. Day",es:"Natalicio de Martin Luther King, Jr."}},"3rd monday in February":{name:{en:"Washington's Birthday",es:"Día de los Presidentes"}},"02-14":{_name:"02-14",type:"observance"},"03-17":{name:{en:"St. Patrick's Day"},type:"observance"},easter:{_name:"easter",type:"observance"},"04-15 if friday then next monday if saturday,sunday then next tuesday":{name:{en:"Tax Day"},type:"observance"},"wednesday before 04-28":{name:{en:"Administrative Professionals Day"},type:"observance"},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"monday before 06-01":{name:{en:"Memorial Day",es:"Recordación de los Muertos de la Guerra"}},"06-19 and if sunday then next monday if saturday then previous friday since 2021":{substitute:!0,name:{en:"Juneteenth"}},"3rd sunday in June":{_name:"Fathers Day",type:"observance"},"07-04 and if sunday then next monday if saturday then previous friday":{substitute:!0,_name:"Independence Day"},"1st monday in September":{_name:"05-01"},"2nd monday in October":{name:{en:"Columbus Day",es:"Descubrimiento de América"}},"10-31 18:00":{name:{en:"Halloween"},type:"observance"},"11-11":{name:{en:"Veterans Day",es:"Día del Veterano"}},"substitutes 11-11 if sunday then next monday if saturday then previous friday":{substitute:!0,name:{en:"Veterans Day",es:"Día del Veterano"},type:"bank",note:"Federal Government offices are closed"},"tuesday after 1st monday in November every 4 years since 1848":{name:{en:"Election Day"},type:"observance"},"4th thursday in November":{name:{en:"Thanksgiving Day",es:"Acción de Gracias"}},"friday after 4th thursday in November":{name:{en:"Day after Thanksgiving Day",es:"Dia despues Acción de Gracias"},type:"observance"},"12-24":{_name:"12-24",type:"optional"},"12-25 and if sunday then next monday if saturday then previous friday":{substitute:!0,_name:"12-25"},"12-31":{_name:"12-31",type:"observance"}},states:{AL:{name:"Alabama",zones:["America/Chicago"],days:{"3rd monday in January":{name:{en:"Robert E. Lee/Martin Luther King Birthday"}},"3rd monday in February":{name:{en:"George Washington/Thomas Jefferson Birthday"}},"4th monday in April":{name:{en:"Confederate Memorial Day"}},"1st monday in June":{name:{en:"Jefferson Davis' birthday"}}}},AK:{name:"Alaska",zones:["America/Anchorage","America/Metlakatla","America/Juneau","America/Sitka","America/Yakutat","America/Nome"],days:{"3rd monday in February":{name:{en:"President's Day"}},"monday before April":{name:{en:"Seward's Day"}},"2nd monday in October":{name:{en:"Columbus Day"},active:[{to:"2017-01-01"}]},"2nd monday in October #1":{name:{en:"Indigenous Peoples' Day"},active:[{from:"2017-01-01"}]},"10-18":{name:{en:"Alaska Day"}}}},AZ:{name:"Arizona",zones:["America/Phoenix","America/Denver"],days:{"3rd monday in January":{name:{en:"Dr. Martin Luther King Jr./ Civil Rights Day"}},"3rd monday in February":{name:{en:"Lincoln/Washington Presidents' Day"}}}},AR:{name:"Arkansas",zones:["America/Chicago"],days:{"3rd monday in January":{name:{en:"Dr. Martin Luther King Jr./Robert E. Lee's Birthdays"}},"3rd monday in February":{name:{en:"George Washington's Birthday/Daisy Gatson Bates Day"}},"12-24":{_name:"12-24"}}},CA:{name:"California",zones:["America/Los_Angeles"],days:{"3rd monday in February":{name:{en:"Presidents' Day"}},"2nd monday in October":!1,"02-15":{type:"observance",name:{en:"Susan B. Anthony Day"}},"03-31 and if sunday then next monday":{substitute:!0,name:{en:"César Chávez Day"}},"05-19":{type:"observance",name:{en:"Malcolm X Day"}},"05-23":{type:"observance",name:{en:"Harvey Milk Day"}},"friday after 4th thursday in November":{name:{en:"Day after Thanksgiving Day"},type:"public"}},regions:{LA:{name:"Los Angeles",days:{"08-24":{name:{en:"Kobe Bryant Day"},type:"observance",active:[{from:2016}]}}}}},CO:{name:"Colorado",zones:["America/Denver"],days:{"3rd monday in February":{name:{en:"Washington-Lincoln Day"}},"2nd monday in October":{type:"observance"}}},CT:{name:"Connecticut",zones:["America/New_York"],days:{"02-12":{name:{en:"Lincoln's Birthday"}},"easter -2":{_name:"easter -2"}}},DE:{name:"Delaware",days:{"2nd monday in October":!1,"3rd monday in February":!1,"easter -2":{_name:"easter -2"},"friday after 4th thursday in November":{name:{en:"Day After Thanksgiving"}},"tuesday after 1st monday in November in even years":{name:{en:"Election Day"}}}},DC:{name:"District of Columbia",days:{"04-16":{name:{en:"Emancipation Day"}},"2nd monday in October":{name:{en:"Columbus Day"},active:[{to:"2019-10-08"}]},"2nd monday in October #1":{name:{en:"Indigenous Peoples' Day"},active:[{from:"2019-10-09"}]}}},FL:{name:"Florida",days:{"2026-02-16":{name:{en:"Commemoration of America's 250th Birthday"}},"2nd monday in October":!1,"3rd monday in February":!1,"02-15":{name:{en:"Susan B. Anthony Day"}},"friday after 4th thursday in November":{name:{en:"Day After Thanksgiving"}}}},GA:{name:"Georgia",days:{"3rd monday in February":!1,"monday before 05-01 #1":{name:{en:"Confederate Memorial Day"},active:[{to:"2016-01-01"}]},"monday before 05-01 #2":{name:{en:"State Holiday"},note:"Known as Confederate Memorial Day prior to 2016",active:[{from:"2016-01-01"}]},"friday after 4th thursday in November #1":{name:{en:"Robert E. Lee's Birthday"},note:"General Lee was born on 1807-01-19 but this holiday was traditionally observed the day after Thanksgiving.",active:[{to:"2016-01-01"}]},"friday after 4th thursday in November #2":{name:{en:"State Holiday"},note:"Known as Robert E. Lee's Birtday prior to 2016",active:[{from:"2016-01-01"}]},"12-24":{name:{en:"Washington's Birthday"}},"substitutes 12-24 if wednesday then next friday":{substitute:!0,name:{en:"Washington's Birthday"}}}},HI:{name:"Hawaii",zones:["Pacific/Honolulu"],days:{"3rd monday in February":{name:{en:"Presidents' Day"}},"03-26 and if saturday then previous friday if sunday then next monday":{substitute:!0,name:{en:"Prince Jonah Kuhio Kalanianaole Day"}},"easter -2":{_name:"easter -2"},"06-11 and if saturday then previous friday if sunday then next monday":{substitute:!0,name:{en:"Kamehameha Day"}},"3rd friday in August":{name:{en:"Statehood Day"}},"2nd monday in October":!1,"tuesday after 1st monday in November in even years":{name:{en:"General Election Day"}}}},ID:{name:"Idaho",zones:["America/Boise","America/Los_Angeles"],days:{"3rd monday in January":{name:{en:"Martin Luther King, Jr./ Idaho Human Rights Day"}},"3rd monday in February":{name:{en:"President's Day"}}}},IL:{name:"Illinois",zones:["America/Chicago"],days:{"02-12":{name:{en:"Lincoln's Birthday"}},"1st monday in March":{name:{en:"Casimir Pulaski Day"}},"05-19":{name:{en:"Malcolm X Day"}},"tuesday after 1st monday in November in even years":{name:{en:"Election Day"}}}},IN:{name:"Indiana",zones:["America/Indiana/Indianapolis","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Vevay","America/Indiana/Tell_City","America/Indiana/Knox"],days:{"easter -2":{_name:"easter -2"},"tuesday after 1st monday in May":{name:{en:"Primary Election Day"}},"tuesday after 1st monday in November":{name:{en:"Election Day"}},"friday after 4th thursday in November":{name:{en:"Lincoln's Birthday"}}}},IA:{name:"Iowa",zones:["America/Chicago"],days:{"02-12":{name:{en:"Lincoln's Birthday"}},"2nd monday in October":{name:{en:"Columbus Day"},active:[{to:"2018-10-07"}]},"2nd monday in October #1":{name:{en:"Indigenous Peoples' Day"},active:[{from:"2018-10-08"}]}}},KS:{name:"Kansas",zones:["America/Chicago","America/Denver"],days:{"3rd monday in February":!1}},KY:{name:"Kentucky",zones:["America/Kentucky/Louisville","America/Kentucky/Monticello"],days:{"3rd monday in February":!1,"easter -2 14:00":{_name:"easter -2"},"12-24":{_name:"12-24"},"12-31":{_name:"12-31"}}},LA:{name:"Louisiana",zones:["America/Chicago"],days:{"easter -2":{_name:"easter -2"},"tuesday after 1st monday in November in even years":{name:{en:"Election Day"}}},regions:{NO:{name:"New Orleans",days:{"easter -47":{_name:"easter -47",name:{en:"Mardi Gras"}}}}}},ME:{name:"Maine",zones:["America/New_York"],days:{"3rd monday in February":{name:{en:"Washington's Birthday/President's Day"}},"3rd monday in April":{name:{en:"Patriots' Day"}},"2nd monday in October #1":{name:{en:"Indigenous Peoples' Day"},active:[{from:"2019-04-26"}]}}},MD:{name:"Maryland",zones:["America/New_York"],days:{"3rd monday in February":{name:{en:"President's Day"}},"friday before 1st monday before 06-01 since 2009 and prior to 2016":{name:{en:"Service Reduction Day"}},"friday after 4th thursday in November":{name:{en:"Native American Heritage Day"}}}},MA:{name:"Massachusetts",zones:["America/New_York"],days:{"03-17":{name:{en:"Evacuation Day"}},"3rd monday in April":{name:{en:"Patriots' Day"}},"06-17":{name:{en:"Bunker Hill Day"}}}},MI:{name:"Michigan",zones:["America/Detroit","America/Menominee"],days:{"12-24":{_name:"12-24"},"12-31":{_name:"12-31"}}},MN:{name:"Minnesota",zones:["America/Chicago"],days:{"3rd monday in February":{name:{en:"Washington's and Lincoln's Birthday"}},"2nd monday in October":{name:{en:"Columbus Day"},active:[{to:"2017-01-01"}]},"2nd monday in October #1":{name:{en:"Indigenous Peoples' Day"},active:[{from:"2017-01-01"}]}}},MS:{name:"Mississippi",zones:["America/Chicago"],days:{"3rd monday in January":{name:{en:"Martin Luther King's and Robert E. Lee's Birthdays"}},"monday before 05-01":{name:{en:"Confederate Memorial Day"}}}},MO:{name:"Missouri",zones:["America/Chicago"],days:{"02-12":{name:{en:"Lincoln's Birthday"}},"05-08":{name:{en:"Truman Day"}}}},MT:{name:"Montana",zones:["America/Denver"],days:{"3rd monday in February":{name:{en:"Lincoln's and Washington's Birthday"}},"tuesday after 1st monday in November":{name:{en:"Election Day"}},"12-24":{_name:"12-24"},"12-31":{_name:"12-31"}}},NE:{name:"Nebraska",zones:["America/Chicago","America/Denver"],days:{"3rd monday in February":{name:{en:"President's Day"}},"friday before 05-01":{name:{en:"Arbor Day"}}}},NV:{name:"Nevada",zones:["America/Los_Angeles"],days:{"3rd monday in February":{name:{en:"Presidents Day"}},"2nd monday in October":!1,"08-09":{name:{en:"Indigenous Peoples' Day"},active:[{from:"2017-01-01"}],type:"observance"},"friday before 11-01":{name:{en:"Nevada Day"}},"4th friday in November":{name:{en:"Family Day"}}}},NH:{name:"New Hampshire",zones:["America/New_York"],days:{"3rd monday in January":{name:{en:"Martin Luther King, Jr./ Civil Rights Day"}},"3rd monday in February":{name:{en:"President's Day"}},"2nd monday in October":{type:"observance"},"tuesday after 1st monday in November in even years":{name:{en:"Election Day"}},"friday after 4th thursday in November":{name:{en:"Day after Thanksgiving"}}}},NJ:{name:"New Jersey",zones:["America/New_York"],days:{"02-12":{name:{en:"Lincoln's Birthday"}},"3rd monday in February":{name:{en:"Presidents Day"}},"easter -2":{_name:"easter -2"},"tuesday after 1st monday in November":{name:{en:"Election Day"}}}},NM:{name:"New Mexico",zones:["America/Denver"],days:{"3rd monday in February":{name:{en:"Presidents' Day"}},"2nd monday in October #1":{name:{en:"Indigenous Peoples' Day"},active:[{from:"2019-04-01"}]},"friday after 4th thursday in November":{name:{en:"Day after Thanksgiving"}}}},NY:{name:"New York",zones:["America/New_York"],days:{"02-12":{name:{en:"Lincoln's Birthday"}},"02-15":{name:{en:"Susan B. Anthony Day"}},"tuesday after 1st monday in November":{name:{en:"Election Day"}}}},NC:{name:"North Carolina",zones:["America/New_York"],days:{"3rd monday in February":!1,"2nd monday in October":!1,"easter -2":{_name:"easter -2"},"friday after 4th thursday in November":{name:{en:"Day after Thanksgiving"}},"12-24 and if friday then previous thursday if saturday,sunday then previous friday":{substitute:!0,_name:"12-24"}}},ND:{name:"North Dakota",zones:["America/North_Dakota/Center","America/North_Dakota/New_Salem","America/North_Dakota/Beulah"],days:{"3rd monday in February":{name:{en:"Presidents' Day"}}}},OH:{name:"Ohio",zones:["America/New_York"],days:{"3rd monday in February":{name:{en:"Washington-Lincoln Day"}}}},OK:{name:"Oklahoma",zones:["America/Chicago"],days:{"3rd monday in February":{name:{en:"Presidents' Day"}},"friday after 4th thursday in November":{name:{en:"Day after Thanksgiving"}}}},OR:{name:"Oregon",zones:["America/Los_Angeles"],days:{"3rd monday in February":{name:{en:"Presidents Day"}}}},PA:{name:"Pennsylvania",zones:["America/New_York"],days:{"3rd monday in February":{name:{en:"Presidents' Day"}},"06-14":{name:{en:"Flag Day"}}}},RI:{name:"Rhode Island",zones:["America/New_York"],days:{"2nd monday in August":{name:{en:"Victory Day"}}}},SC:{name:"South Carolina",zones:["America/New_York"],days:{"05-10":{name:{en:"Confederate Memorial Day"}},"12-26":{_name:"12-26"}}},SD:{name:"South Dakota",zones:["America/Chicago","America/Denver"],days:{"3rd monday in February":{name:{en:"Presidents' Day"}},"2nd monday in October":{name:{en:"Columbus Day"},active:[{to:"2015-01-01"}]},"2nd monday in October #1":{name:{en:"Native American Day"},active:[{from:"2015-01-01"}]}}},TN:{name:"Tennessee",zones:["America/Chicago","America/New_York"],days:{"3rd monday in February":{name:{en:"President's Day"}},"easter -2":{_name:"easter -2"},"12-24":{_name:"12-24"}}},TX:{name:"Texas",zones:["America/Chicago","America/Denver"],days:{"01-19":{name:{en:"Confederate Heroes Day"},type:"observance",note:"state agencies are partially staffed"},"3rd monday in February":{name:{en:"Presidents' Day"}},"03-02":{name:{en:"Texas Independence Day"},type:"observance",note:"state agencies are partially staffed"},"03-31":{name:{en:"Cesar Chavez Day"},type:"observance"},"easter -2":{_name:"easter -2",type:"observance"},"04-21":{name:{en:"San Jacinto Day"},type:"observance",note:"state agencies are partially staffed"},"06-19":{name:{en:"Emancipation Day In Texas"},type:"observance",note:"state agencies are partially staffed"},"08-27":{name:{en:"Lyndon Baines Johnson Day"},type:"observance",note:"state agencies are partially staffed"},"friday after 4th thursday in November":{name:{en:"Day after Thanksgiving"}},"12-24":{_name:"12-24"},"12-26":{_name:"12-26",name:{en:"Day after Christmas"}}}},UT:{name:"Utah",zones:["America/Denver"],days:{"3rd monday in February":{name:{en:"Washington and Lincoln Day"}},"07-24":{name:{en:"Pioneer Day"}}}},VT:{name:"Vermont",zones:["America/New_York"],days:{"3rd monday in February":{name:{en:"Presidents' Day"}},"1st tuesday in March":{name:{en:"Town Meeting Day"}},"3rd monday in August":{name:{en:"Bennington Battle Day"}},"2nd monday in October":{name:{en:"Columbus Day"},active:[{to:"2017-09-01"}]},"2nd monday in October #1":{name:{en:"Indigenous Peoples' Day"},active:[{from:"2017-09-01"}]}}},VA:{name:"Virginia",zones:["America/New_York"],days:{"3rd monday in February":{name:{en:"George Washington Day"}},"friday before 3rd monday in January prior to 2021":{name:{en:"LeeJackson Day"}},"tuesday after 1st monday in November in even years since 2020":{name:"Election Day"}}},WA:{name:"Washington",zones:["America/Los_Angeles"],days:{"3rd monday in February":{name:{en:"Presidents' Day"}}}},WV:{name:"West Virginia",zones:["America/New_York"],days:{"02-15":{name:{en:"Susan B. Anthony Day"}},"3rd monday in February":{name:{en:"President's Day"}},"06-20":{name:{en:"West Virginia Day"}},"4th friday in November":{name:{en:"Lincoln's Day"}}}},WI:{name:"Wisconsin",zones:["America/Chicago"],days:{"02-15":{name:{en:"Susan B. Anthony Day"}},"2nd tuesday in September":{name:{en:"Primary Election Day"}},"tuesday after 1st monday in November":{name:{en:"Election Day"}}}},WY:{name:"Wyoming",zones:["America/Denver"],days:{"3rd monday in February":{name:{en:"President's Day"}}}}}},UY:{names:{es:"Uruguay",en:"Uruguay"},dayoff:"sunday",langs:["es"],zones:["America/Montevideo"],days:{"01-01":{_name:"01-01"},"01-06":{_name:"01-06",type:"observance"},"easter -48":{name:{en:"Carnival",es:"Carnaval"},type:"observance"},"easter -47":{_name:"easter -47",type:"observance"},"easter -6 P5D":{name:{en:"Tourism Week",es:"Semana de Turismo"},type:"observance"},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"04-19 if tuesday,wednesday then previous monday if thursday,friday then next monday":{name:{en:"Landing of the 33 Orientals",es:"Desembarco de los 33 Orientales"},type:"observance"},"05-01":{_name:"05-01"},"05-18 if tuesday,wednesday then previous monday if thursday,friday then next monday":{name:{en:"Battle of Las Piedras",es:"Batalla de las Piedras"},type:"observance"},"06-19":{name:{en:"Birthday of José Gervasio Artigas and Never Again Day",es:"Natalicio de Artigas y Día del Nunca Más"},type:"observance"},"07-18":{_name:"Constitution Day"},"08-25":{_name:"Independence Day"},"10-12 if tuesday,wednesday then previous monday if thursday,friday then next monday":{name:{en:"Columbus Day",es:"Día de la Raza"},type:"observance"},"11-02":{_name:"11-02",type:"observance"},"12-24":{_name:"12-24",type:"observance"},"12-25":{_name:"12-25"},"12-31":{_name:"12-31",type:"observance"}}},VA:{names:{it:"Stato della Città del Vaticano",la:"Status Civitatis Vaticanae",en:"Vatican City"},langs:["it"],zones:["Europe/Rome"],dayoff:"sunday",days:{"01-01":{name:{en:"Solemnity of Mary, Mother of God",it:"Maria Santissima Madre di Dio"}},"01-06":{name:{en:"Epiphany",it:"Epifania del Signore"}},"02-11":{name:{en:"Anniversary of the foundation of Vatican City",it:"Anniversario della istituzione dello Stato della Città del Vaticano"}},"03-19":{_name:"03-19"},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},"easter -1":{_name:"easter -1"},easter:{_name:"easter"},"easter 1":{_name:"easter 1"},"easter 2":{name:{en:"In Albis Tuesday",it:"Martedì in Albis"}},"easter 39":{_name:"easter 39"},"easter 49":{_name:"easter 49"},"easter 60":{_name:"easter 60"},"05-01":{_name:"05-01",name:{en:"Saint Joseph the Worker",it:"San Giuseppe lavoratore"}},"06-29":{_name:"06-29"},"08-14":{name:{en:"Summer holiday",it:"Pausa estiva"}},"08-15":{_name:"08-15",name:{it:"Assunzione di Maria in Cielo"}},"08-16":{name:{en:"Summer holiday",it:"Pausa estiva"}},"11-01":{_name:"11-01"},"11-02":{name:{it:"Commemorazione dei fedeli defunti",en:"All Souls' Day"}},"12-08":{_name:"12-08"},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"},"12-27":{name:{en:"St. John",it:"San Giovanni"}},"12-31":{_name:"12-31"},"10-16":{name:{en:"Anniversary of the election of Pope John Paul II",it:"Anniversario dell'Elezione del Santo Padre"},active:[{from:1978,to:2005}]},"11-04":{name:{en:"Saint Charles Borromeo - Name day of the Holy Father",it:"San Carlo Borromeo - Onomastico del Santo Padre"},note:"Name day of Pope John Paul II (Karol Józef Wojtyła)",active:[{from:1978,to:2005}]},"04-19 since 2005 and prior to 2013":{name:{en:"Anniversary of the election of Pope Benedict XVI",it:"Anniversario dell'Elezione del Santo Padre"}},"03-19 since 2005 and prior to 2013":{name:{en:"Saint Joseph - Name day of the Holy Father",it:"San Giuseppe - Onomastico del Santo Padre"},note:"Name day of Pope Benedict XVI (Josef Ratzinger)"},"03-13 since 2013 and prior to 2026":{name:{en:"Anniversary of the election of Pope Francis",it:"Anniversario dell'Elezione del Santo Padre"}},"04-23 since 2013 and prior to 2026":{name:{en:"Saint George - Name day of the Holy Father",it:"San Giorgio - Onomastico del Santo Padre"},note:"Name day of Pope Francis (Jorge Mario Bergoglio)"},"05-08 since 2026":{name:{en:"Anniversary of the election of Pope Leo XIV",it:"Anniversario dell'Elezione del Santo Padre"}},"09-17 since 2025":{name:{en:"Saint Robert Bellarmine - Name day of the Holy Father",it:"San Roberto Bellarmino - Onomastico del Santo Padre"},note:"Name day of Pope Leo XIV (Robert Francis Prevost)"}}},VC:{names:{en:"St. Vincent & Grenadines"},langs:["en"],zones:["America/Port_of_Spain"],dayoff:"sunday",days:{"01-01 and if Sunday then next Monday":{substitute:!0,_name:"01-01"},"03-14 and if Sunday then next Monday":{substitute:!0,name:{en:"National Heros Day"}},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"05-01 and if Sunday then next Monday":{substitute:!0,_name:"05-01"},"easter 50":{_name:"easter 50"},"1st Monday in July":{name:{en:"Carnival Monday"},disable:["2021-06-05"],enable:["2021-09-06"]},"Tuesday after 1st Monday in July":{name:{en:"Carnival Tuesday"},disable:["2021-06-06"],enable:["2021-09-07"]},"08-01 and if Sunday then next Monday":{substitute:!0,name:{en:"Emancipation Day"}},"10-27 and if Sunday then next Monday":{substitute:!0,_name:"Independence Day"},"12-25 and if Sunday then next Tuesday":{substitute:!0,_name:"12-25"},"12-26 and if Sunday then next Monday":{substitute:!0,_name:"12-26"}}},VE:{names:{es:"Venezuela",en:"Venezuela"},dayoff:"sundays",langs:["es"],zones:["America/Caracas"],days:{"01-01":{_name:"01-01"},"01-06":{_name:"01-06",type:"observance"},"01-15":{name:{es:"Día del Maestro",en:"Teacher's Day"},type:"optional",note:"teachers only"},"03-19":{_name:"03-19",type:"observance"},"easter -48":{name:{en:"Carnival",es:"Carnaval"}},"easter -47":{_name:"easter -47"},"easter -6 P7D":{name:{en:"Holy Week",es:"Semana Santa"},type:"observance"},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},easter:{_name:"easter"},"04-19":{name:{en:"Declaration of Independence",es:"Declaración de la Independencia"}},"05-01":{_name:"05-01"},"06-24":{name:{en:"Battle of Carabobo",es:"Aniversario de la Batalla de Carabobo"}},"07-05":{_name:"Independence Day"},"07-24":{name:{en:"Birthday of Simón Bolívar",es:"Natalicio de Simón Bolívar"}},"08-03":{name:{en:"Flag Day",es:"Día de la Bandera"},type:"observance"},"09-11":{name:{en:"Our Lady of Coromoto",es:"Día de Nuestra Señora de Coromoto"},type:"observance"},"10-12":{name:{en:"Day of Indigenous Resistance",es:"Día de la resistencia indígena"}},"11-01":{_name:"11-01",type:"observance"},"11-02":{_name:"11-02",type:"observance"},"12-08":{_name:"12-08",type:"observance"},"12-10":{name:{en:"Venezuelan Air Force Day",es:"Día de la Aviación Nacional"},type:"observance"},"12-24":{_name:"12-24"},"12-25":{_name:"12-25"},"12-31":{_name:"12-31"}},states:{B:{name:"Anzoátegui",days:{"11-14":{name:{es:"Natalicio de José Antonio Anzoátegui"}}}},G:{name:"Carabobo",days:{"11-13":{name:{es:"Día de la Virgen del Socorro"}}}},K:{name:"Lara",days:{"01-14":{name:{es:"Día de La Divina Pastora"}},"05-28":{name:{es:"Natalicio de Jacinto Lara"}}},regions:{BA:{name:"Barquisimeto",days:{"09-14":{name:{es:"Día de Barquisimeto"}}}}}},M:{name:"Miranda",days:{"03-19":{_name:"03-19"}}},N:{name:"Monagas",days:{"12-07":{name:{es:"Día de Maturin"}}}},S:{name:"Táchira",days:{"08-15":{_name:"08-15",name:{es:"Día de la Virgen de Consolación"}}}},V:{name:"Zulia",days:{"10-24":{name:{es:"Natalicio de Rafael Urdaneta"}},"11-18":{name:{es:"Día de la Virgen de la Chinita"}}}}}},VG:{names:{en:"British Virgin Islands"},langs:["en"],zones:["America/Port_of_Spain"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"Monday before 03-08":{name:{en:"The Anniversary of the Birth of Hamilton Lavity Stoutt"}},"2nd Monday in March":{name:{en:"Commonwealth Day"}},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"easter 49":{_name:"easter 49",type:"observance"},"easter 50":{_name:"easter 50"},"2nd Saturday after 06-02 prior to 2020":{name:{en:"Sovereigns Birthday"},disable:["2017-06-10","2019-06-15"],enable:["2017-06-17","2019-06-07"]},"2nd Friday after 06-02 since 2020":{name:{en:"Sovereigns Birthday"}},"07-01 if Sunday,Thursday then next Monday if Saturday then previous Friday if Tuesday,Wednesday then previous Monday":{name:{en:"Virgin Islands Day"}},"10-21 if Sunday then next Monday if Saturday then previous Friday if Tuesday,Wednesday then previous Monday if Thursday then next Friday":{name:{en:"St. Ursulas Day"},disable:["2016-10-23","2020-10-19","2021-10-22"],enable:["2016-10-19","2020-10-23"]},"1st Monday in August":{name:{en:"Emancipation Monday"}},"Tuesday after 1st Monday in August":{name:{en:"Emancipation Tuesday"}},"Wednesday after 1st Monday in August":{name:{en:"Emancipation Wednesday"}},"2021-10-18":{name:{en:"Heroes and Forefathers Day"}},"2021-11-08":{name:{en:"Commemoration of the Great March of 1949"}},"12-25 and if Saturday then next Monday if Sunday then next Tuesday":{substitute:!0,_name:"12-25"},"12-26 and if Saturday then next Monday if Sunday then next Tuesday":{substitute:!0,_name:"12-26"}}},VI:{names:{en:"U.S. Virgin Islands"},langs:["en"],zones:["America/Port_of_Spain"],dayoff:"sunday",_days:"US",days:{"01-06":{_name:"01-06",name:{en:"Three Kings Day"}},"3rd monday in February":{name:{en:"President's Day"}},"03-17":!1,"03-31":{name:{en:"Transfer Day"}},"easter -3":{_name:"easter -3"},"easter -2":{_name:"easter -2"},"easter 1":{_name:"easter 1"},"07-03":{name:{en:"Emancipation Day"}},"4th Monday in July":{name:{en:"Hurricane Supplication Day"}},"2nd monday in October":{name:{en:"Virgin IslandsPuerto Rico Friendship Day"}},"10-25":{name:{en:"Hurricane Thanksgiving"},type:"observance"},"friday after 4th thursday in November":{name:{en:"Day after Thanksgiving Day"},type:"school"}}},VN:{names:{vi:"Cộng hòa Xã hội chủ nghĩa Việt Nam",en:"Vietnam"},dayoff:"",langs:["vi"],zones:["Asia/Ho_Chi_Minh","Asia/Bangkok"],days:{"01-01":{_name:"01-01"},"vietnamese 1-0-1":{name:{en:"Vietnamese New Year",vi:"Tết Nguyên Đán"}},"1 day before vietnamese 1-0-1 P5D":{name:{en:"Vietnamese New Year Holidays",vi:"Giao thừa Tết Nguyên Đán"}},"vietnamese 3-0-10":{name:{en:"Hung Kings Commemorations",vi:"Giỗ tổ Hùng Vương"}},"04-30":{name:{en:"Day of liberating the South for national reunification",vi:"Ngày Giải phóng miền Nam"}},"05-01":{_name:"05-01"},"09-02":{name:{en:"National Day",vi:"Quốc khánh"}},"02-03":{name:{en:"Communist Party of Viet Nam Foundation Anniversary",vi:"Ngày thành lập Đảng"},type:"observance"},"03-08":{_name:"03-08",type:"observance"},"04-21":{name:{en:"Vietnam Book Day",vi:"Ngày Sách Việt Nam"},type:"observance"},"05-07":{name:{en:"Dien Bien Phu Victory Day",vi:"Ngày Chiến thắng Điện Biện Phủ"},type:"observance"},"05-19":{name:{en:"President Ho Chi Minh's Birthday",vi:"Ngày sinh Chủ tịch Hồ Chí Minh"},type:"observance"},"06-01":{name:{en:"International Children's Day",vi:"Ngày quốc tế Thiếu nhi"},type:"observance"},"06-28":{name:{en:"Vietnamese Family Day",vi:"Ngày Gia đình Việt Nam"},type:"observance"},"07-27":{name:{en:"Remembrance Day",vi:"Ngày Thương Binh Liệt Sĩ"},type:"observance"},"08-19":{name:{en:"August Revolution Commemoration Day",vi:"Ngày cách mạng Tháng Tám"},type:"observance"},"10-10":{name:{en:"Capital Liberation Day",vi:"Ngày giải phóng Thủ Đô"},type:"observance"},"10-20":{name:{en:"Vietnamese Women's Day",vi:"Ngày Phụ nữ Việt Nam"},type:"observance"},"11-20":{name:{en:"Vietnamese Teacher's Day",vi:"Ngày Nhà giáo Việt Nam"},type:"observance"},"12-22":{name:{en:"National Defence Day",vi:"Ngày hội Quốc phòng Toàn dân"},type:"observance"},"vietnamese 1-0-5":{name:{en:"Victory of Ngọc Hồi-Đống Đa",vi:"Chiến thắng Ngọc Hồi - Đống Đa"},type:"observance"},"vietnamese 1-0-15":{name:{en:"Lantern Festival",vi:"Tết Nguyên Tiêu"},type:"observance"},"vietnamese 4-0-15":{name:{en:"Buddha's Birthday",vi:"Lễ Phật đản"},type:"observance"},"vietnamese 5-0-5":{name:{en:"Mid-year Festival",vi:"Tết Đoan ngọ"},type:"observance"},"vietnamese 7-0-15":{name:{en:"Ghost Festival",vi:"Rằm Tháng Bảy, Vu Lan"},type:"observance"},"vietnamese 8-0-15":{name:{en:"Mid-Autumn Festival",vi:"Tết Trung thu"},type:"observance"},"vietnamese 12-0-23":{name:{en:"Kitchen guardians",vi:"Ông Táo chầu trời"},type:"observance"}}},VU:{names:{en:"Vanuatu",fr:"République de Vanuatu"},langs:["fr","en","bi"],zones:["Pacific/Efate"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"02-21":{name:"Mémoire du père de l'indépendance Rév. Dr. W.H. Lini"},"02-22":{_name:"Public Holiday"},"03-05":{name:"Fête des chefs coutumiers"},"easter -2":{_name:"easter -2"},"easter 1":{_name:"easter 1"},"05-01":{_name:"05-01"},"easter 39":{_name:"easter 39"},"07-24":{name:"Journée Mondiale des Enfants"},"07-30":{_name:"Independence Day"},"08-15":{_name:"08-15"},"08-16":{_name:"Public Holiday"},"10-05":{_name:"Constitution Day"},"10-29":{name:"Jour de l'Unité"},"12-25":{_name:"12-25"},"12-26":{name:"Fête de Famille"},"12-27":{_name:"Public Holiday"}}},WF:{names:{fr:"Wallis-et-Futuna",en:"Wallis and Futuna"},langs:["fr"],zones:["Pacific/Wallis"],dayoff:"sunday",_days:"FR",days:{"04-28":{name:{fr:"Fête de Saint Pierre-Chanel",en:"Saint Pierre Chanel Day"}},"06-29":{name:{fr:"Saint Pierre et Paul",en:"Saints Peter and Paul Day"}},"07-29":{name:{fr:"Fête du Territoire",en:"Territory Day"}}}},XK:{names:{sq:"Republika e Kosovës",sr:"Република Косово",en:"Kosovo"},langs:["sq","sr"],zones:["Europe/Belgrade"],dayoff:"sunday",days:{"01-01":{_name:"01-01"},"julian 12-25":{_name:"julian 12-25"},"02-17":{_name:"Independence Day"},"04-09":{_name:"Constitution Day"},easter:{_name:"easter"},orthodox:{_name:"orthodox"},"05-01":{_name:"05-01"},"05-09":{_name:"05-09"},"12-25":{_name:"12-25"},"1 Shawwal":{_name:"1 Shawwal"},"10 Dhu al-Hijjah":{_name:"10 Dhu al-Hijjah"}}},YT:{names:{fr:"Mayotte",en:"Mayotte"},langs:["fr"],zones:["Africa/Nairobi"],dayoff:"sunday",_days:"FR",days:{"04-27":{_name:"Abolition of Slavery"}}},ZA:{names:{en:"South Africa"},dayoff:"sunday",langs:["en"],zones:["Africa/Johannesburg"],days:{"01-01":{_name:"01-01"},"substitutes 01-01 if sunday then next monday":{name:{en:"Public Holiday"}},"03-21":{name:{en:"Human Rights Day"}},"substitutes 03-21 if sunday then next monday":{name:{en:"Public Holiday"}},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1",name:{en:"Family Day"}},"04-27":{name:{en:"Freedom Day"}},"substitutes 04-27 if sunday then next monday":{name:{en:"Public Holiday"}},"05-01":{_name:"05-01",name:{en:"Workers' Day"}},"substitutes 05-01 if sunday then next monday":{name:{en:"Public Holiday"}},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"06-16":{name:{en:"Youth Day"}},"substitutes 06-16 if sunday then next monday":{name:{en:"Public Holiday"}},"3rd sunday in June":{_name:"Fathers Day",type:"observance"},"08-09":{name:{en:"National Women's Day"}},"substitutes 08-09 if sunday then next monday":{name:{en:"Public Holiday"}},"07-18":{name:{en:"Nelson Mandela Day"},type:"observance"},"09-24":{name:{en:"Heritage Day"}},"substitutes 09-24 if sunday then next monday":{name:{en:"Public Holiday"}},"12-16":{name:{en:"Day of Reconciliation"}},"substitutes 12-16 if sunday then next monday":{name:{en:"Public Holiday"}},"12-25":{_name:"12-25"},"12-26":{_name:"12-26",name:{en:"Day of Goodwill"}},"substitutes 12-26 if sunday then next monday":{name:{en:"Public Holiday"}},"2023-12-15":{name:{en:"Rugby World Cup Win Public Holiday"}},"2024-05-29":{name:{en:"Voting Day"}}}},ZM:{names:{en:"Zambia"},dayoff:"sunday",langs:["en"],zones:["Africa/Maputo"],days:{"01-01 and if sunday then next monday":{substitute:!0,_name:"01-01"},"03-09":{name:{en:"Womens Day"}},"03-12 and if sunday then next monday":{substitute:!0,name:{en:"Youth Day"}},"easter -2":{_name:"easter -2"},"easter 1":{_name:"easter 1"},"05-01 and if sunday then next monday":{substitute:!0,_name:"05-01"},"05-25 and if sunday then next monday":{substitute:!0,name:{en:"African Freedom Day"}},"1st monday in July":{name:{en:"Heroes' Day"}},"tuesday after 1st monday in July":{name:{en:"Unity Day"}},"1st monday in August":{name:{en:"Farmers' Day"}},"04-28 since 2022 and if sunday then next monday":{substitute:!0,name:{en:"Kenneth Kaunda Day"}},"10-18 and if sunday then next monday":{substitute:!0,name:{en:"National Day of Prayers"}},"10-24 and if sunday then next monday":{substitute:!0,_name:"Independence Day"},"12-25 and if sunday then next monday":{substitute:!0,_name:"12-25"}}},ZW:{names:{sn:"Nyika yeZimbabwe",nd:"iRiphabhuliki yeZimbabwe",xh:"iRiphubliki eyeZimbabwe",kck:"Nyika yeZimbabwe",en:"Zimbabwe"},dayoff:"sunday",langs:["en"],zones:["Africa/Maputo"],days:{"01-01":{_name:"01-01"},"easter -2":{_name:"easter -2"},easter:{_name:"easter",type:"observance"},"easter 1":{_name:"easter 1"},"04-18":{_name:"Independence Day"},"05-01":{_name:"05-01"},"05-25":{name:{en:"Africa Day"}},"2nd sunday in May":{_name:"Mothers Day",type:"observance"},"3rd sunday in June":{_name:"Fathers Day",type:"observance"},"2nd monday in August":{name:{en:"Heroes' Day"}},"2nd tuesday in August":{name:{en:"Defence Forces Day"}},"12-22":{name:{en:"Unity Day"}},"12-25":{_name:"12-25"},"12-26":{_name:"12-26"}}}},names:{"01-01":{name:{en:"New Year's Day",am:"እንቁጣጣሽ",ar:"عيد رأس السنة",az:"Yeni il",be:"Новы год",bg:"Нова Година",bs:"Novogodisnji dan",ca:"Any nou",cz:"Nový rok",da:"Nytår",de:"Neujahr",el:"Πρωτοχρονιά",es:"Año Nuevo",et:"uusaasta",fi:"Uudenvuodenpäivä",fil:"Araw ng Bagong Taon",fo:"Nýggjársdagur",fr:"Nouvel An",ge:"ახალი წელი",hr:"Nova godina",hu:"Újév",hy:"Ամանոր",id:"Hari tahun baru",it:"Capodanno",is:"Nýársdagur",jp:"元日",kk:"Жаңа жыл",kl:"ukiortaaq",ko:"신정",lb:"Neijoerschdag",lt:"Naujieji metai",lv:"Jaunais Gads",mg:"Taom-baovao",mk:"Нова Година",ms:"Hari Tahun Baru",mt:"L-Ewwel tas-Sena",nl:"Nieuwjaar",no:"Første nyttårsdag",pap:"Aña Nobo",pl:"Nowy Rok",pt:"Ano Novo",ro:"Anul nou",ru:"Новый год",sl:"Novo leto",sq:"Viti i Ri",sr:"Нова година",sv:"Nyårsdagen",sw:"Mwaka mpya",th:"วันขึ้นปีใหม่",ti:"ሓዲሽ ዓመት",tr:"Yılbaşı",uk:"Новий Рік",vi:"Tết Dương lịch",zh:"元旦"}},"01-06":{name:{en:"Epiphany",am:"ብርሐነ ጥምቀት",da:"Åbenbaring",de:"Heilige Drei Könige","de-ch":"Dreikönigstag",es:"Día de los Reyes Magos",et:"kolmekuningapäev",fi:"Loppiainen",fr:"l'Épiphanie",el:"Θεοφάνεια",hr:"Bogojavljenje, Sveta tri kralja",hu:"Vízkereszt",it:"Befana",is:"Þrettándinn",lb:"Dräikinneksdag",nl:"Driekoningen",mk:"Богојавление",pl:"Święto Trzech Króli",pt:"Epifania do Senhor",sk:"Zjavenie Pána",sv:"Trettondedag jul",ti:"ጥምቀት",vi:"Lễ Hiển Linh"}},"02-02":{name:{en:"Candlemas",de:"Lichtmess",hu:"Gyertyaszentelő Boldogasszony",lb:"Liichtmëssdag",nl:"Lichtmis",vi:"Lễ Đức Mẹ dâng Chúa Giêsu trong đền thánh"}},"02-14":{name:{en:"Valentine's Day",de:"Valentinstag",fr:"Saint-Valentin",hu:"Valentin nap",lb:"Vältesdag",nl:"Valentijnsdag",no:"Valentinsdag",pl:"Walentynki",pt:"Dia dos Namorados",vi:"Lễ tình nhân"}},"03-08":{name:{en:"International Women's Day",az:"Qadınlar günü",be:"Мiжнародны жаночы дзень",bg:"Ден на жената",de:"Internationaler Frauentag",fr:"Journée internationale des femmes",ge:"ქალთა საერთაშორისო დღე",hu:"Nemzetközi nőnap",hy:"Կանանց տոն",kk:"Халықаралық әйелдер күні",lb:"Internationale Fraendag",nl:"Internationale Vrouwendag",no:"Kvinnedagen",pl:"Dzień Kobiet",pt:"Dia Internacional da Mulher",ro:"Ziua Internationala a Femeii",ru:"Международный женский день",sl:"Mednarodni dan žena",uk:"Міжнародний жіночий день",vi:"Quốc tế Phụ nữ",zh:"国际妇女节",ti:"መዓልቲ ኣነስቲ",es:"Día de la Mujer"}},"03-19":{name:{en:"Saint Joseph","de-at":"Josefitag",de:"Josefstag",es:"San José",it:"San Giuseppe",mt:"San Ġużepp",nl:"Hoogfeest van de Heilige Jozef",vi:"Kính Thánh Giuse"}},"04-01":{name:{en:"April Fools' Day",de:"1. April",hu:"Bolondok napja",nl:"1 April",no:"Aprilsnarr",sq:"Dita e Gënjeshtrave",vi:"Cá tháng tư"}},"05-01":{name:{en:"Labour Day","en-us":"Labor Day",ar:"يوم العمال",be:"Дзень працы",bg:"Ден на труда",bs:"Radni dan",cz:"Svátek práce",da:"1. maj",de:"Tag der Arbeit",el:"Εργατική Πρωτομαγιά",es:"Día del Trabajador",et:"kevadpüha",fi:"Vappu",fil:"Araw ng mga Manggagawa",fr:"Fête du travail",hr:"Praznik rada",hu:"A munka ünnepe",hy:"Աշխատանքի օր",id:"Hari Buruh Internasional",it:"Festa del Lavoro",is:"Hátíðisdagur Verkamanna",lb:"Éischte Mee",lt:"Tarptautinė darbo diena",lv:"Darba svētki",nl:"Dag van de Arbeid",no:"Arbeidernes dag",mg:"Fetin'ny asa",mk:"Ден на трудот",ms:"Hari Pekerja",mt:"Jum il-Ħaddiem",pap:"Dia di Obrero",pl:"Święto Pracy",pt:"Dia do trabalhador",ro:"Ziua muncii",sk:"Sviatok práce",sl:"Praznik dela",sq:"Dita Ndërkombëtare e Punonjësve",sr:"Празник рада",sv:"Första Maj",ti:"የላብ አደሮች ቀን",uk:"День міжнародної солідарності трудящих",vi:"Quốc tế Lao động",zh:"劳动节"}},"05-09":{name:{en:"Europe Day",bg:"Денят на Европа",cs:"Den Evropy",da:"Europadagen",de:"Europatag",el:"Ημέρα της Ευρώπης",es:"Día de Europa",et:"Euroopa päev",fi:"Eurooppa-päivä",fr:"Journée de l'Europe",ga:"Lá na hEorpa",hr:"Dan Europe",hu:"Európa-nap",it:"Festa dell'Europa",lb:"Europadag",ls:"Dan Evrope",lt:"Europos diena",lv:"Eiropas diena",mt:"Jum l-Ewropa",nl:"Europadag",pl:"Dzień Europy",pt:"Dia da Europa",ro:"Ziua Europei",sk:"Deň Európy",sq:"Dita e Evropës",sv:"Europadagen"}},"06-29":{name:{en:"Saints Peter and Paul",de:"Peter und Paul",es:"San Pedro y San Pablo",fr:"Saint Pierre et Paul",it:"Santi Pietro e Paolo",mt:"L-Imnarja",nl:"Hoogfeest van Petrus en Paulus",vi:"Lễ kính Thánh Phêrô"}},"08-15":{name:{en:"Assumption",de:"Mariä Himmelfahrt",es:"Asunción",fr:"Assomption",el:"Κοίμηση της Θεοτόκου",hr:"Velika Gospa",it:"Ferragosto",lb:"Léiffrawëschdag",lt:"Žolinė",mg:"Asompsiona",mk:"Успение на Пресвета Богородица",mt:"Santa Marija",nl:"O.L.V. Hemelvaart",pl:"Wniebowzięcie Najświętszej Maryi Panny",pt:"Assunção de Maria",ro:"Adormirea Maicii Domnului",sl:"Marijino vnebovzetje",sq:"Shën Mëria e Gushtit",vi:"Đức Mẹ Lên Trời"}},"11-01":{name:{en:"All Saints' Day",bs:"Dita e të gjithë Shenjtorëve",de:"Allerheiligen",es:"Todos los Santos",fi:"Pyhäinpäivä",fil:"Undás; Todos los Santos; Araw ng mga Santo",fr:"Toussaint",hr:"Svi sveti",hu:"Mindenszentek",it:"Ognissanti",lb:"Allerhellegen",lt:"Visų šventųjų diena",mg:"Fetin'ny olo-masina",mk:"Празникот на сите светци",nl:"Allerheiligen",pl:"Wszystkich Świętych",pt:"Todos os santos",sk:"Sviatok všetkých svätých",sq:"Të gjitha Saints",sr:"Сви Свети",sv:"Alla Helgons dag",vi:"Lễ Các Thánh"}},"11-02":{name:{en:"All Souls' Day",de:"Allerseelen",es:"Día de los Difuntos",et:"hingedepäev",fil:"Araw ng mga Kaluluwa",fr:"Fête des morts",hr:"Dušni dan",hu:"Halottak napja",it:"Commemorazione dei defunti",lb:"Allerséilen",nl:"Allerzielen",pt:"Dia de Finados",vi:"Lễ Các Đẳng",lt:"Vėlinės"}},"10-04":{name:{en:"World Animal Day",de:"Welttierschutztag",es:"Día de los Animales",fr:"Journée mondiale des Animaux",nl:"Dierendag",pt:"Dia Mundial dos Animais"}},"11-11":{name:{en:"Saint Martin",de:"Sankt Martin (Faschingsbeginn)",hu:"Márton nap",nl:"Sint-Maarten",vi:"Lễ thánh Martin"}},"12-06":{name:{en:"Saint Nicholas",de:"Sankt Nikolaus",fr:"Saint-Nicolas",hu:"Mikulás",lb:"Niklosdag",nl:"Sinterklaas",pl:"Mikołajki",vi:"Thánh Saint Nicholas"}},"12-07":{name:{it:"Sant'Ambrogio",en:"Saint Ambrose",de:"Ambrosius von Mailand",nl:"Ambrosius van Milaan"}},"12-08":{name:{en:"Immaculate Conception",de:"Mariä Empfängnis",es:"La inmaculada concepción",fr:"Immaculée Conception",it:"Immacolata Concezione",mt:"Il-Kunċizzjoni",nl:"Onbevlekte Ontvangenis van Maria",pt:"Imaculada Conceição"}},"12-24":{name:{en:"Christmas Eve",bg:"Бъдни вечер",bs:"Badnji dan",cz:"Štědrý den",da:"Juleaften",de:"Heiliger Abend",es:"Nochebuena",et:"jõululaupäev",fo:"Jólaaftan",fi:"Jouluaatto",fil:"Bisperas ng Pasko",fr:"Veille de Noël",hr:"Badnji dan",hu:"Szenteste",is:"Aðfangadagur",kl:"juulliaraq",lb:"Hellegowend",lt:"Šv. Kūčios",lv:"Ziemassvētku vakars",ms:"Hari Sebelum Krismas",nl:"Kerstavond",no:"Julaften",pl:"Wigilia Bożego Narodzenia",pt:"Noite de Natal",sk:"Štedrý deň",sq:"Nata e Krishtlindjes",sr:"Бадњи дан",sv:"Julafton",vi:"Đêm Giáng Sinh"}},"12-25":{name:{en:"Christmas Day",am:"ልደተ-ለእግዚእነ/ ገና",ar:"عيد الميلاد المجيد",bg:"Коледа",bn:"বড়দিন",bs:"Božić","de-at":"Christtag",ca:"Nadal",cz:"1. svátek vánoční",da:"Juledag",de:"Weihnachten","de-ch":"Weihnachtstag",el:"Χριστούγεννα",es:"Navidad",et:"esimene jõulupüha",fi:"Joulupäivä",fil:"Araw ng Pasko",fo:"Fyrsti jóladagur",fr:"Noël",hr:"Božić",hu:"Karácsony",hy:"Սուրբ Ծնունդ",id:"Hari Raya Natal",it:"Natale",is:"Jóladagur",jp:"クリスマス",kl:"juullerujussuaq",ko:"기독탄신일",lb:"Chrëschtdag",lt:"Šv. Kalėdos",lv:"Ziemassvētki",mg:"Krismasy",mk:"Католички Божиќ",ms:"Hari Krismas",mt:"Il-Milied",nl:"Kerstmis",no:"Første Juledag",pap:"Dia Pasco di Nascimento",pl:"Pierwszy dzień Bożego Narodzenia",pt:"Natal",ro:"Crăciunul",ru:"Рождество Христово",sk:"Prvý sviatok vianočný",sl:"Božič",sq:"Krishtlindja",sr:"Католички Божић",sv:"Juldagen",sw:"Krismasi",ti:"ልደት",uk:"Різдво Христове",vi:"Lễ Giáng Sinh",zh:"聖誕節"}},"12-26":{name:{en:"Boxing Day",bg:"2-ри ден на Коледа",cz:"2. svátek vánoční",da:"Anden Juledag",de:"2. Weihnachtstag","de-at":"Stefanitag","de-ch":"Stephanstag",el:"Δεύτερη μέρα των Χριστουγέννων",es:"San Esteban",et:"teine jõulupüha",fi:"2. joulupäivä",fo:"Fyrsti gerandisdagur eftir jóladag",fr:"Lendemain de Noël",hr:"Svetog Stjepana",hu:"Karácsony másnapja",it:"Santo Stefano",is:"Annar í jólum",kl:"juullip aappaa",lb:"Stiefesdag",lt:"2. Kalėdų diena",lv:"Otrie Ziemassvētki",nl:"Tweede kerstdag",no:"Andre juledag",pap:"Di dos Dia Pasco di Nascimento",pl:"Drugi dzień Bożego Narodzenia",ro:"A doua zi de Crăciun",sk:"Druhý sviatok vianočný",sv:"Annandag jul",vi:"Ngày tặng quà"}},"12-31":{name:{en:"New Year's Eve",da:"Nytårsaften",de:"Silvester",es:"Fin del Año",fi:"Uudenvuodenaatto",fil:"Bisperas ng Bagong Taon",fo:"Nýggjársaftan",fr:"Saint-Sylvestre",hu:"Szilveszter",hy:"Նոր տարվա գիշեր",is:"Gamlársdagur",it:"Ultimo dellanno",jp:"大晦日",lb:"Silvester",lv:"Vecgada vakars",nl:"Oudejaarsavond",no:"Nyttårsaften",pl:"Sylwester",pt:"Véspera de Ano Novo",sv:"Nyårsafton",th:"วันสิ้นปี",vi:"Đêm giao thừa"}},"easter -48":{name:{en:"Shrove Monday",de:"Rosenmontag",es:"Carnaval",fr:"Lundi de Carnaval",lb:"Fuesméindeg",nl:"Carnavalsmaandag",pap:"Dialuna di Carnaval",vi:"Ngày thứ hai hoa hồng"}},"easter -47":{name:{en:"Shrove Tuesday",es:"Carnaval",de:"Faschingsdienstag",hr:"Pokladni utorak",hu:"Húshagyó kedd",nl:"Vastenavond",pl:"Ostatki",pt:"Carnaval",vi:"Thứ ba mập béo"}},"easter -46":{name:{en:"Ash Wednesday",de:"Aschermittwoch",es:"Miercoles de Ceniza",fr:"Mercredi des Cendres",hu:"Hamvazószerda",it:"Ceneri",is:"Öskudagur",lb:"Äschermëttwoch",nl:"Aswoensdag",no:"Askeonsdag",pl:"Środa Popielcowa",pt:"Quarta-feira de Cinzas",sw:"Jumatano ya Majivu",vi:"Thứ tư Lễ Tro"}},"easter -7":{name:{en:"Palm Sunday",de:"Palmsonntag",es:"Domingo de Ramos",hu:"Virágvasárnap",it:"Domenica delle Palme",is:"Pálmasunnudagur",lb:"Pällemsonndeg",nl:"Palmzondag",no:"Palmesøndag",pl:"Niedziela Palmowa",vi:"Chúa nhật Lễ Lá"}},"easter -3":{name:{en:"Maundy Thursday",cz:"Zelený čtvrtek",da:"Skærtorsdag",de:"Gründonnerstag",es:"Jueves Santo",fil:"Huwebes Santo",fo:"Skírhósdagur",fr:"Jeudi saint",is:"Skírdagur",it:"Giovedì santo",kl:"sisamanngortoq illernartoq",lb:"Gréngen Donneschdeg",nl:"Witte Donderdag",no:"Skjærtorsdag",pl:"Wielki Czwartek",sv:"Skärtorsdagen",vi:"Thứ năm Tuần Thánh"}},"easter -2":{name:{en:"Good Friday",am:"ስቅለት",bg:"Разпети петък",bs:"Dobar petak",cz:"Velký pátek",da:"Langfredag",de:"Karfreitag",es:"Viernes Santo",fi:"Pitkäperjantai",fil:"Biyernes Santo",fo:"Langafríggjadagur",fr:"Vendredi saint",el:"Μεγάλη Παρασκευή",et:"suur reede",ge:"წითელი პარასკევი",hi:"गुड फ्राइडे",hr:"Veliki petak",hu:"Nagypéntek",id:"Wafat Yesus Kristus",it:"Venerdì santo",is:"Föstudagurinn langi",kl:"tallimanngornersuaq",lb:"Karfreideg",lv:"Lielā Piektdiena",ms:"Jumat Agung",mt:"Il-Ġimgħa l-Kbira",nl:"Goede Vrijdag",no:"Langfredag",pap:"Diabierna Santo",pl:"Wielki Piątek",pt:"Sexta-Feira Santa",ro:"Vinerea Mare",sk:"Veľkonočný piatok",sq:"E Premtja e Madhe",sr:"Католички Велики петак",sv:"Långfredagen",sw:"Ijumaa Kuu",ta:"புனித வெள்ளி",vi:"Thứ sáu Tuần Thánh",zh:"耶穌受難節"}},"easter -1":{name:{en:"Easter Saturday",cz:"Bílá sobota",de:"Karsamstag",es:"Sabado Santo",fil:"Sabado de Gloria",fr:"Samedi saint",ge:"დიდი შაბათი",hu:"Nagyszombat",it:"Sabato santo",lb:"Karsamschdeg",nl:"Dag voor Pasen",no:"Påskeaften",pl:"Wielka Sobota",sv:"Påskafton",vi:"Thứ bảy Tuần Thánh",zh:"耶穌受難節翌日"}},easter:{name:{en:"Easter Sunday",am:"ፋሲካ",bg:"Великден",bs:"Vaskrs",cz:"Velikonoční neděle",da:"Påskesøndag",de:"Ostersonntag",el:"Πάσχα",es:"Pascua",et:"lihavõtted",fi:"Pääsiäispäivä",fil:"Pasko ng Pagkabuhay",fo:"Páskadagur",fr:"Pâques",ge:"აღდგომა",hr:"Uskrs",hu:"Húsvétvasárnap",it:"Domenica di Pasqua",is:"Páskadagur",kl:"poorskip-ullua",lb:"Ouschtersonndeg",lt:"Velykos",lv:"Lieldienas",nl:"Pasen",no:"Første påskedag",pap:"Dia Pasco di Resureccion",pl:"Niedziela Wielkanocna",pt:"Páscoa",ro:"Paștele",sk:"Veľká noc",sl:"Velika noč",sq:"Pashkët Katolike",sr:"Католички Васкрс",sv:"Påskdagen",sw:"Pasaka",vi:"Lễ Phục Sinh",zh:"复活节"}},"easter 1":{name:{en:"Easter Monday",bg:"Велики понеделник",bs:"Uskrsni ponedjeljak",cz:"Velikonoční pondělí",da:"Anden påskedag",de:"Ostermontag",el:"Δευτέρα του Πάσχα",es:"Lunes de Pascua",fi:"2. pääsiäispäivä",fo:"Annar páskadagur",fr:"Lundi de Pâques",ge:"აღდგომის ორშაბათი",hr:"Uskršnji ponedjeljak",hu:"Húsvéthétfő",it:"Lunedì dellAngelo",is:"Annar í páskum",kl:"poorskip-aappaa",lb:"Ouschterméindeg",lt:"Velykų pirmadienis",lv:"Otrās Lieldienas",mg:"Alatsinain'ny Paska",mk:"вториот ден на Велигден",nl:"Tweede paasdag",no:"Andre påskedag",pap:"Di dos Dia Pasco di Resureccion",pl:"Drugi dzień Wielkanocy",ro:"A doua zi de Pasti",sk:"Veľkonočný pondelok",sl:"Velikonočni ponedeljek",sr:"Католички Васкрсни понедељак",sv:"Annandag påsk",sw:"Jumatatu ya Pasaka",vi:"Thứ hai phục sinh",zh:"復活節星期一"}},"easter 39":{name:{en:"Ascension Day",da:"Kristi Himmelfartsdag",de:"Christi Himmelfahrt",es:"La Asunción",fi:"Helatorstai",fo:"Kristi Himmalsferðardagur",fr:"Ascension",id:"Kenaikan Yesus Kristus",it:"Ascensione",is:"Uppstigningardagur",kl:"qilaliarfik",mg:"Andro niakarana",lb:"Christi Himmelfaart",nl:"O.L.H. Hemelvaart",no:"Kristi himmelfartsdag",pap:"Dia di Asuncion",ro:"Ziua Eroilor",sv:"Kristi himmelfärdsdag",vi:"Lễ Thăng Thiên"}},"easter 49":{name:{en:"Pentecost",da:"Pinsedag",de:"Pfingstsonntag",el:"Πεντηκοστή",es:"Pentecostés",et:"nelipühade 1. püha",fi:"Helluntaipäivä",fo:"Hvítusunnudagur",fr:"Pentecôte",hu:"Pünkösdvasárnap",it:"Pentecoste",is:"Hvítasunnudagur",kl:"piinsip ullua",lb:"Päischtsonndeg",nl:"Pinksteren",no:"Første pinsedag",mk:"Духовден",pl:"Zielone Świątki",ro:"Rusaliile",sl:"Binkošti",sv:"Pingstdagen",uk:"Трійця",vi:"Lễ Chúa Thánh Thần Hiện Xuống"}},"easter 50":{name:{en:"Whit Monday",da:"Anden Pinsedag",de:"Pfingstmontag",el:"Αγίου Πνεύματος",es:"Lunes de Pentecostés",fo:"Annar hvítusunnudagur",fr:"Lundi de Pentecôte",hu:"Pünkösdhétfő",is:"Annar í hvítasunnu",it:"Lunedì di Pentecoste",kl:"piinsip aappaa",mg:"Alatsinain'ny Pentekosta",lb:"Péngschtméindeg",nl:"Tweede pinksterdag",no:"Andre pinsedag",ro:"A doua zi de Rusalii",sv:"Annandag pingst"}},"easter 60":{name:{en:"Corpus Christi",de:"Fronleichnam",es:"Corpus Christi",fr:"la Fête-Dieu",it:"Corpus Domini",hr:"Tijelovo",nl:"Sacramentsdag",pl:"Dzień Bożego Ciała",pt:"Corpo de Deus",vi:"Lễ Mình và Máu Thánh Chúa Kitô"}},"julian 01-01":{name:{en:"Orthodox New Year",bs:"Pravoslavni novogodišnji dan",hr:"Pravoslavna Nova Godina",nl:"Orthodox Nieuwjaar",sq:"Viti i Ri Ortodoks",sr:"Православна Нова година"}},"julian 12-24":{name:{en:"Orthodox Christmas Eve",nl:"Orthodoxe Kerstavond",mk:"Бадник",ti:"ልደት"}},"julian 12-25":{name:{en:"Orthodox Christmas",bs:"Pravoslavni Božić",hr:"Pravoslavni Božić",mk:"Прв ден Божик",nl:"Orthodoxe Kerstmis",ro:"Craciun pe Rit Vechi",sq:"Krishtlindjet Ortodokse",sr:"Божић",uk:"Різдво"}},"orthodox -2":{name:{en:"Orthodox Good Friday",mk:"Велики Петок",nl:"Orthodoxe Goede Vrijdag",sr:"Велики петак",ti:"ዓርቢ ስቅለት"}},orthodox:{name:{en:"Orthodox Easter",bs:"Pravoslavni Vaskrs",hr:"Pravoslavni Uskrs",mk:"Прв ден Велигден",nl:"Orthodox Pasen",sq:"Pashkët Ortodokse",sr:"Васкрс",ti:"ፋሲካ",uk:"Великдень"}},"orthodox 1":{name:{en:"Orthodox Easter Monday",mk:"Втор ден Велигден",nl:"Orthodoxe Tweede Paasdag",sr:"Васкрсни понедељак"}},"1 Muharram":{name:{en:"Islamic New Year",ar:"رأس السنة الهجرية",bs:"Nova hidžretska godina",fil:"Unang Araw ng Muharram",fr:"Nouvel an islamique",hr:"Nova hidžretska godina",id:"Tahun Baru Islam",ms:"Awal Muharram",nl:"Islamitisch Nieuwjaar",sq:"Viti i Ri hixhri"}},"10 Muharram":{name:{en:"Day of Ashura",ar:"عاشوراء",bn:"আশুরা",nl:"De tiende dag (Asjoera)"}},"12 Rabi al-awwal":{name:{en:"Birthday of Muhammad (Mawlid)",am:"መውሊድ",ar:"المولد النبويّ",bn:"ঈদে মিলাদুন্নবী",bs:"Mevlud",fr:"Mawlid",id:"Maulid Nabi Muhammad",ms:"Hari Keputeraan Nabi Muhammad S.A.W.",nl:"Geboortedag Mohammed (Mawlid an-Nabi)",sq:"Mevludi"}},"27 Rajab":{name:{en:"Laylat al-Mi'raj",ar:"الإسراء والمعراج",bs:"Lejletul Mi'radž",id:"Maulid Nabi Muhammad",ms:"Israk dan Mikraj",nl:"Hemelvaart Mohammed (Lailat-ul-Meraj)",sq:"Nata e Miraxhit",tr:"Miraç Gecesi"}},"15 Shaban":{name:{en:"Laylat al-Bara'at",ar:"ليلة البراءة",bs:"Lejletul berat",nl:"Nacht van de Lotsbezegeling (Lailat-ul-Baraat)",sq:"Nata e Beratit"}},"1 Ramadan":{name:{en:"First day of Ramadan",am:"ረመዳን",ar:"اليوم الأول من رمضان",bs:"Prvi dan posta",ms:"Awal Ramadan",nl:"Eerste dag van Ramadan",sq:"Dita e parë e agjërimit"}},"17 Ramadan":{name:{en:"Day of Nuzul Al-Quran",ms:"Hari Nuzul Al-Quran"}},"23 Ramadan":{name:{en:"Lailat al-Qadr"}},"27 Ramadan":{name:{en:"Laylat al-Qadr",ar:"لیلة القدر",bs:"Lejletul kadr",nl:"Waardevolle Nacht (Laylat al-Qadr)",sq:"Nata e Kadrit"}},"1 Shawwal":{name:{en:"End of Ramadan (Eid al-Fitr)",am:"ዒድ አል ፈጥር",ar:"عيد الفطر",az:"Ramazan Bayramı",bn:"ঈদুল ফিতর",bs:"Ramazanski bajram",de:"Zuckerfest",es:"Fiesta del Eid Fitr",fa:"ﻋﯿﺪ ﺳﻌﯿﺪ ﻓﻄﺮ",fil:"Pagwawakas ng Ramadan",fr:"Fête de fin du Ramadan",hr:"Ramazanski bajram",id:"Hari Raya Idul Fitri",nl:"Suikerfeest (Eid al-Fitr)",mk:"Рамазан Бајрам",ms:"Hari Raya Aidil Fitri",sq:"Fitër Bajrami",tr:"Ramazan Bayramı",sr:"Рамазански Бајрам",sw:"Idd-ul-Fitr"}},"9 Dhu al-Hijjah":{name:{en:"Arafat Day",ar:"يوم عرفة",es:"Fiesta del Sacrificio-Eidul Adha",ms:"Hari Arafah",nl:"Dag van Arafat"}},"10 Dhu al-Hijjah":{name:{en:"Feast of the Sacrifice (Eid al-Adha)",am:"ዒድ አል አድሐ",ar:"عيد الأضحى",az:"Qurban Bayramı",bn:"ঈদুল আযহা",bs:"Kurbanski bajram",de:"Opferfest",es:"Fiesta del Sacrificio-Aid Al Adha",fa:"ﻋﯿﺪ ﺳﻌﯿﺪ ﻗﺮﺑﺎن",fil:"Eidul Adha",fr:"Fête du mouton",hr:"Kurban-bajram",id:"Hari Raya Idul Adha",nl:"Offerfeest (Eid Al-Adha)",mk:"Курбан Бајрам",ms:"Hari Raya Haji",sq:"Kurban Bajrami",tr:"Kurban Bayramı",sr:"Курбански Бајрам",sw:"Idd-ul-Azha"}},"15 Nisan":{name:{en:"Pesach",bs:"Pesah",de:"Pessach",hr:"Pesač",nl:"Pesach",sq:"Pesach",sr:"Песах"}},"1 Tishrei":{name:{en:"Rosh Hashanah",bs:"Roš Hašana",de:"Rosch Haschana",hr:"Roš Hašane",nl:"Rosj Hasjana",sq:"Rosh Hashanah",sr:"Рош Хашана"}},"10 Tishrei":{name:{en:"Yom Kippur",bs:"Jom Kipur",de:"Jom Kippur",hr:"Jom Kipur",mk:"Јом Кипур",nl:"Jom Kipoer",sq:"Yom Kippur",sr:"Јом Кипур"}},Deepavali:{name:{en:"Deepavali",nl:"Divali"}},Vesak:{name:{en:"Vesak Day",id:"Hari Raya Waisak",nl:"Vesakha Puja",th:"วันวิสาขบูชา"}},Holi:{name:{en:"Holi Phagwa",nl:"Holifeest"}},Thaipusam:{name:{en:"Thaipusam",ms:"Hari Thaipusam"}},"Makha Bucha":{name:{en:"Makha Bucha",nl:"Magha Puja",th:"วันมาฆบูชา"}},"Asalha Puja":{name:{en:"Asalha Puja",nl:"Asalha Puja",th:"วันอาสาฬหบูชา"}},"Buddhist Lent":{name:{en:"Buddhist Lent",nl:"Vassa",th:"วันเข้าพรรษา"}},"Abolition of Slavery":{name:{en:"Abolition of Slavery",fr:"Abolition de lesclavage",nl:"Afschaffing van de slavernij",vi:"Bãi bỏ chế độ Nô lệ"}},"Buß- und Bettag":{name:{de:"Buß- und Bettag",en:"Day of Prayer and Repentance",nl:"Dag van gebed en bekering"}},"Constitution Day":{name:{en:"Constitution Day",da:"Grundlovsdag",de:"Tag der Verfassung",ca:"Dia de la Constitució",es:"Día de la Constitución",fil:"Araw ng Saligang Batas",fo:"Grundlógardagur",hy:"Սահմանադրության օր",jp:"憲法記念日",ko:"제헌절",nl:"Dag van de Grondwet",no:"Grunnlovsdagen",pt:"Dia da Constituição",ro:"Ziua Constituției",sk:"Deň Ústavy",sq:"Dita e Kushtetutës",uk:"День Конституції",vi:"Ngày pháp luật"}},"Fathers Day":{name:{en:"Father's Day",et:"isadepäev",fi:"Isänpäivä",fr:"Fête des Pères",lt:"Tėvo diena",nl:"Vaderdag",pl:"Dzień Ojca",pt:"Dia dos Pais",no:"Farsdag",sv:"Fars dag",vi:"Ngày của cha",es:"Día del Padre"}},"Independence Day":{name:{en:"Independence Day",ar:"عيد الاستقلال",be:"Дзень Незалежнасцi",bg:"Ден на независимостта",bs:"Dan nezavisnosti",de:"Unabhängigkeitstag",es:"Día de la Independencia",et:"iseseisvuspäev",fi:"Itsenäisyyspäivä",fil:"Araw ng Kalayaan",fr:"Jour de l'Indépendance",hr:"Dan neovisnosti",hy:"Անկախության օր",id:"Hari Ulang Tahun Kemerdekaan Republik Indonesia",mk:"Ден на независноста",ms:"Hari Kebangsaan",mt:"Jum l-Indipendenza",nl:"Onafhankelijkheidsdag",pl:"Narodowe Święto Niepodległości",pt:"Dia da Independência",ro:"Ziua Independentei",sq:"Dita e Pavarësisë",sr:"Дан независности",sv:"Självständighetsdagen",sw:"Siku ya uhuru",ti:"መዓልቲ ናጽነት",uk:"День Незалежності",vi:"Ngày Độc lập"}},"Liberation Day":{name:{en:"Liberation Day",ar:"يوم التحرير",nl:"Bevrijdingsdag",no:"Frigjøringsdagen",sq:"Dita e Çlirimit",vi:"Ngày Thống nhất"}},"Mothers Day":{name:{en:"Mother's Day",cz:"Den matek",da:"Mors Dag",de:"Muttertag",el:"Γιορτή της μητέρας",es:"Día de la Madre",et:"emadepäev",fi:"Äitienpäivä",fr:"Fête des Mères",hr:"Majčin dan",hu:"Anyák napja",hy:"Ցեղասպանության զոհերի հիշատակի օր",is:"Mæðradagurinn",it:"Festa della mamma",lt:"Motinos diena",lv:"Mātes diena",nl:"Moederdag",no:"Morsdag",pt:"Dia das Mães",pl:"Dzień Matki",ro:"Ziua Mamei",sq:"Dita e Nënës",sv:"Mors dag",vi:"Ngày của mẹ"}},"National Holiday":{name:{en:"National Holiday",de:"Nationalfeiertag",es:"Fiesta Nacional",fr:"Fête nationale",hu:"Nemzeti ünnep",el:"εθνική επέτειος",lb:"Nationalfeierdag",nl:"Nationale feestdag",vi:"Quốc Lễ"}},"Public Holiday":{name:{en:"Public Holiday",fr:"Jour férié légaux",nl:"Wettelijke feestdag",pt:"Feriado Obrigatório",vi:"Nghỉ lễ Toàn Quốc"}},"Reformation Day":{name:{en:"Reformation Day",de:"Reformationstag",es:"Día Nacional de las Iglesias Evangélicas y Protestantes",nl:"Hervormingsdag",vi:"Kháng Cách"}},"Revolution Day":{name:{en:"Revolution Day",ar:"يوم الثورة",es:"Día de la Revolución",nl:"Dag van de Revolutie",ti:"ባሕቲ መስከረም",vi:"Tổng khởi nghĩa"}},"Bridge Day":{name:{en:"Bridge Day",es:"Feriado Puente Turístico"}},substitutes:{name:{en:"substitute day",az:"əvəz gün",bs:"zamjena dan",de:"Ersatztag",es:"día sustituto",fr:"jour substitut",hr:"zamjena dan",jp:"振替休日",lv:"aizstājējs diena",mk:"заменет ден",nl:"substituut",sq:"ditë zëvendësuese",sr:"замена дан",uk:"замінити день",vi:"ngày thay thế",zh:"更换日"}}}}}),yke=kr(()=>{mke(),gke(),DU=class extends Vq{constructor(e,t,n,r){super(vke,e,t,n,r)}}}),bke={};Zs(bke,{default:()=>DU});var Mke=kr(()=>{yke()});async function xke(e){if(!Gq)return jq||(jq=(async()=>{try{let e=await Promise.resolve().then(()=>(Mke(),bke));{let t=e.default||e;"function"==typeof t&&(Gq=t),window.Holidays=Gq||void 0}if(!Gq)throw new Error("Holidays constructor is not a valid class/constructor function.")}catch(e){throw jq=null,e}})())}var Gq,jq,_ke,zke=kr(()=>{Mie(),Gq=null,jq=null,_ke=new Proxy(function(){},{construct(e,t){let n=window.Holidays||Gq;if(!n)throw new Error("date-holidays library is not loaded yet! Please await ensureHolidaysLoaded() first.");let r=n,a=n;return a.default&&"function"==typeof a.default&&(r=a.default),Reflect.construct(r,t)}})});function Ake(e){switch(e){case"public":return["public"];case"public_bank":return["public","bank"];case"public_bank_observance":return["public","bank","observance"];case"all_except_optional":return["public","bank","observance","school"];case"all":return["public","bank","observance","school","optional"]}}var wke=kr(()=>{});function Xq(e,t){return io("a",{href:e,target:"_blank",rel:"noreferrer noopener",className:"ofc-holiday-doc-link"},t)}function tw({label:e,description:t,control:n,required:r=!1}){return io("div",{className:"setting-item"},io("div",{className:"setting-item-info"},io("div",{className:"setting-item-name"},e,r?io("span",{className:"ofc-required-star","aria-hidden":"true"}," *"):null),io("div",{className:"setting-item-description"},t)),io("div",{className:"setting-item-control"},n))}var fBt,zoe,hBt,pBt,mBt,vBt,Oke,Tke=kr(()=>{h1(),Zo(),zoe="https://www.npmjs.com/package/date-holidays#supported-countries-states-regions",hBt="https://www.npmjs.com/package/date-holidays",pBt=`${fBt="https://obsidian-full-calendar-remastered.github.io/plugin-full-calendar/"}user/calendars/holidays/`,mBt=[{value:"public",i18nKey:"settings.calendars.holidays.holidayTypes.options.public"},{value:"public_bank",i18nKey:"settings.calendars.holidays.holidayTypes.options.public_bank"},{value:"public_bank_observance",i18nKey:"settings.calendars.holidays.holidayTypes.options.public_bank_observance"},{value:"all_except_optional",i18nKey:"settings.calendars.holidays.holidayTypes.options.all_except_optional"},{value:"all",i18nKey:"settings.calendars.holidays.holidayTypes.options.all"}],vBt=[{value:"block",i18nKey:"settings.calendars.holidays.display.options.block"},{value:"background",i18nKey:"settings.calendars.holidays.display.options.background"},{value:"inverse-background",i18nKey:"settings.calendars.holidays.display.options.inverseBackground"},{value:"auto",i18nKey:"settings.calendars.holidays.display.options.auto"},{value:"none",i18nKey:"settings.calendars.holidays.display.options.none"}],Oke=({config:e,onSave:t})=>{let[n,r]=Li(e.name??"Holidays"),[a,i]=Li(e.country??"US"),[o,s]=Li(e.state??""),[l,c]=Li(e.region??""),[u,d]=Li(e.holidayTypes??"public"),[p,h]=Li(e.display??"block"),[f,m]=Li(!1),g=a.trim().length>=2;return io("form",{onSubmit:r=>{if(r.preventDefault(),!g)return;m(!0);let i={id:e.id??"",name:n.trim()||"Holidays",country:a.trim().toUpperCase(),holidayTypes:u,display:p??"block"};o.trim()&&(i.state=o.trim().toLowerCase()),l.trim()&&(i.region=l.trim().toLowerCase()),t(i)},className:"ofc-holiday-config-form"},io(tw,{label:Ce("settings.calendars.holidays.calendarName.label"),description:Ce("settings.calendars.holidays.calendarName.description"),control:io("input",{className:"ofc-setting-input",type:"text",value:n,placeholder:"Holidays",onChange:e=>r(e.target.value)})}),io(tw,{required:!0,label:Ce("settings.calendars.holidays.country.label"),description:io(Pu,null,Ce("settings.calendars.holidays.country.description")," ",Xq(zoe,Ce("global.learnMoreLink"))),control:io("input",{className:"ofc-setting-input",type:"text",value:a,placeholder:"US",maxLength:3,style:{textTransform:"uppercase",width:"72px"},onChange:e=>i(e.target.value)})}),io(tw,{label:Ce("settings.calendars.holidays.state.label"),description:io(Pu,null,Ce("settings.calendars.holidays.state.description")," ",Xq(zoe,Ce("global.learnMoreLink"))),control:io("input",{className:"ofc-setting-input",type:"text",value:o,placeholder:"ca",style:{width:"72px"},onChange:e=>s(e.target.value)})}),io(tw,{label:Ce("settings.calendars.holidays.region.label"),description:io(Pu,null,Ce("settings.calendars.holidays.region.description")," ",Xq(zoe,Ce("global.learnMoreLink"))),control:io("input",{className:"ofc-setting-input",type:"text",value:l,placeholder:"no",style:{width:"72px"},onChange:e=>c(e.target.value)})}),io(tw,{label:Ce("settings.calendars.holidays.holidayTypes.label"),description:io(Pu,null,Ce("settings.calendars.holidays.holidayTypes.description")," ",Xq(hBt,Ce("global.learnMoreLink"))),control:io("select",{className:"dropdown",value:u,onChange:e=>d(e.target.value)},...mBt.map(e=>io("option",{key:e.value,value:e.value},Ce(e.i18nKey))))}),io(tw,{label:Ce("settings.calendars.holidays.display.label"),description:io(Pu,null,Ce("settings.calendars.holidays.display.description")," ",Xq(pBt,Ce("global.learnMoreLink"))),control:io("select",{className:"dropdown",value:p??"block",onChange:e=>h(e.target.value)},...vBt.map(e=>io("option",{key:e.value,value:e.value},Ce(e.i18nKey))))}),io(tw,{label:"",description:null,control:io("button",{className:"mod-cta",type:"submit",disabled:f||!g},Ce(f?"settings.calendars.holidays.adding":"ui.buttons.addCalendar"))}))}}),Cke={};Zs(Cke,{HolidayProvider:()=>Aoe});var Ske,gBt,yBt,bBt,kke,Aoe,Eke=kr(()=>{zke(),h1(),wke(),Tke(),XA(),B_(),Ske=1,gBt=3456e5,yBt="fc-holidays",bBt=({source:e})=>{let t=e.country?.toUpperCase()||"Not configured",n=e.state;return io("div",{className:"setting-item-control"},io("span",{className:"ofc-setting-tag"},n?`${t} / ${n.toUpperCase()}`:t))},kke=e=>{let{onSave:t,...n}=e;return io(Oke,{...n,onSave:e=>t(e)})},Aoe=class e{constructor(e,t){this.type="holidays",this.displayName="Holidays",this.isRemote=!1,this.loadPriority=5,this.config=e,this.configHash=this._computeConfigHash(e),this.app=t.app,this.linkedNoteIndex=new Gm(t.app,e.id)}static{this.type="holidays"}static{this.displayName="Holidays"}static getConfigurationComponent(){return kke}static{this.memoryCache={}}initialize(){this.linkedNoteIndex.initialize()}teardown(){this.linkedNoteIndex.destroy()}async createLinkedNote(e,t){return pg({app:this.app,event:e,calendarId:this.config.id,calendarName:this.displayName,linkedNoteIndex:this.linkedNoteIndex,instanceDate:t})}getCapabilities(){return{canCreate:!1,canEdit:!1,canDelete:!1}}getEventHandle(e){return e.id?{persistentId:e.id}:null}computeSyncKey(e){return e.id??JSON.stringify(e)}async getEvents(e){if(!this.config.country)return[];await xke(this.app);let t=this._getYearsForRange(e),n=[];for(let e of t){let t=this._readCache(e);if(t&&t.length>0){for(let e of t){let t=this.linkedNoteIndex.getFileForEvent(e.uid||e.id||""),r=t?{file:{path:t.path},lineNumber:void 0}:null;n.push([e,r])}continue}let r=this._fetchHolidaysForYear(e);this._writeCache(e,r);for(let e of r){let t=this.linkedNoteIndex.getFileForEvent(e.uid||e.id||""),r=t?{file:{path:t.path},lineNumber:void 0}:null;n.push([e,r])}}if(e){let t=this._dateToYYYYMMDD(e.start),r=this._dateToYYYYMMDD(e.end);return n.filter(([e])=>{let n=this._getEventDateStr(e);return n>=t&&n<=r})}return n}_fetchHolidaysForYear(e){try{let t=new _ke,n={};this.config.region&&this.config.state?t.init(this.config.country,this.config.state,this.config.region,n):this.config.state?t.init(this.config.country,this.config.state,n):t.init(this.config.country,n);let r=Ake(this.config.holidayTypes??"public"),a=t.getHolidays(e);return a&&Array.isArray(a)?a.filter(e=>r.includes(e.type)).map(e=>this._toOFCEvent(e)):[]}catch(t){return console.error(`[HolidayProvider] Failed to fetch holidays for ${this.config.country}/${e}`,t),[]}}_toOFCEvent(e){let t=e.date.substring(0,10),n=`date-holidays:${t}:${e.name}`;return{type:"single",allDay:!0,title:e.name,date:t,endDate:null,id:n,uid:n,...this.config.display?{display:this.config.display}:{}}}_cacheKey(e){return`${yBt}::${this.configHash}::${e}`}_readCache(t){let n=this._cacheKey(t);if(e.memoryCache[n])return e.memoryCache[n];try{let t=this.app.loadLocalStorage(n);if("string"!=typeof t||!t)return null;let r=JSON.parse(t);return r.version!==Ske||r.configHash!==this.configHash||Date.now()-r.cachedAt>gBt?(this.app.saveLocalStorage(n,""),null):(e.memoryCache[n]=r.events,r.events)}catch{return null}}_writeCache(t,n){let r=this._cacheKey(t);e.memoryCache[r]=n;try{let e={version:Ske,configHash:this.configHash,events:n,cachedAt:Date.now()};this.app.saveLocalStorage(r,JSON.stringify(e))}catch{}}_computeConfigHash(e){let t=[e.country??"",e.state??"",e.region??"",e.holidayTypes??"public",e.display??""].join("|"),n=0;for(let e=0;e<t.length;e++)n=Math.imul(31,n)+t.charCodeAt(e)|0;return n.toString(36)}_getYearsForRange(e){if(!e){let e=(new Date).getFullYear();return[e-1,e,e+1]}let t=e.start.getFullYear(),n=e.end.getFullYear(),r=[];for(let e=t;e<=n;e++)r.push(e);return r}_dateToYYYYMMDD(e){return e.toISOString().substring(0,10)}_getEventDateStr(e){return"single"===e.type?e.date:"rrule"===e.type?e.startDate:""}createEvent(e){return Promise.reject(new Error("Cannot create an event on a read-only Holiday calendar."))}updateEvent(e,t,n){return Promise.reject(new Error("Cannot update an event on a read-only Holiday calendar."))}deleteEvent(e){return Promise.reject(new Error("Cannot delete an event on a read-only Holiday calendar."))}createInstanceOverride(e,t,n){return Promise.reject(new Error("Cannot create a recurring event override on a read-only Holiday calendar."))}getConfigurationComponent(){return kke}getSettingsRowComponent(){return bBt}}}),qke=kr(()=>{});function Dke(e,t){let n=t.createDiv("full-calendar-onboarding-container").createDiv();n.createEl("h1").textContent="No calendars available",n.createEl("p").textContent="Thanks for downloading full calendar. Create a calendar below to begin.",UC(e,n.createDiv(),e=>{(async()=>{let{calendarSources:t}=Qe.getSettings();t.push(e),await Qe.saveSettings(),await Qe.getInternalAPI().openCalendar()})()})}var Rke=kr(()=>{Wo(),WW()});function zBt(e){let t=[];return(e.currentView.includes("Day")||e.currentView.includes("Week"))&&t.push("thisMonth"),e.currentView.includes("Day")&&t.push("thisWeek"),t.push("customDate"),t}function ABt(e){switch(e){case"thisMonth":return Ce("ui.navigation.thisMonth");case"thisWeek":return Ce("ui.navigation.thisWeek");case"customDate":return Ce("ui.navigation.customDate");default:return"Unknown"}}function woe(e,t){switch(e){case"thisMonth":return t?"timeGridWeek":"dayGridMonth";case"thisWeek":default:return t?"timeGrid3Days":"timeGridWeek";case"customDate":return"timeGridDay"}}function C8(e,t){return new Ooe(e,t)}var LU,Ooe,Toe=kr(()=>{LU=require("obsidian"),xre(),Zo(),Ooe=class{constructor(e,t){this.datePicker=null,this.calendar=e,this.container=t}showNavigationMenu(e){let t=this.getCurrentContext(),n=zBt(t),r=new LU.Menu;n.forEach(e=>{r.addItem(n=>{n.setTitle(ABt(e)).onClick(()=>{this.handleNavigationOption(e,t)})})}),r.showAtMouseEvent(e)}showDateContextMenu(e,t){let n=this.getCurrentContext(),r=new LU.Menu;[{view:n.isNarrow?"timeGrid3Days":"dayGridMonth",label:Ce("ui.navigation.viewMonth"),icon:"calendar"},{view:n.isNarrow?"timeGrid3Days":"timeGridWeek",label:Ce("ui.navigation.viewWeek"),icon:"calendar-range"},{view:"timeGridDay",label:Ce("ui.navigation.viewDay"),icon:"sun"}].forEach(({view:e,label:n,icon:a})=>{r.addItem(r=>{r.setTitle(n).setIcon(a).onClick(()=>{this.navigateToDate(t,e)})})}),r.showAtMouseEvent(e)}showViewContextMenu(e,t){let n=this.getCurrentContext(),r=n.currentDate;try{let n=this.getDateFromPosition(e,t);n&&(r=n)}catch{}let a=new LU.Menu;[{view:n.isNarrow?"timeGrid3Days":"dayGridMonth",label:Ce("ui.navigation.viewMonth"),icon:"calendar"},{view:n.isNarrow?"timeGrid3Days":"timeGridWeek",label:Ce("ui.navigation.viewWeek"),icon:"calendar-range"},{view:"timeGridDay",label:Ce("ui.navigation.viewDay"),icon:"sun"}].forEach(({view:e,label:t,icon:n})=>{a.addItem(a=>{a.setTitle(t).setIcon(n).onClick(()=>{this.navigateToDate(r,e)})})}),a.showAtMouseEvent(e)}getDateFromPosition(e,t){try{let n=t.el.querySelector(".fc-view");if(!n)return null;let r=n.getBoundingClientRect(),a=e.clientX-r.left,i=e.clientY-r.top,o=t.view,s=o.type;return s.includes("dayGrid")?this.getDateFromMonthGrid(a,i,r,o):s.includes("timeGrid")?this.getDateFromTimeGrid(a,i,r,o):o.currentStart}catch{return null}}getDateFromMonthGrid(e,t,n,r){let a=new Date(r.currentStart),i=n.width/7,o=(n.height-30)/6,s=Math.floor(e/i),l=7*Math.floor((t-30)/o)+s,c=new Date(a);return c.setDate(a.getDate()+l),c}getDateFromTimeGrid(e,t,n,r){let a=new Date(r.currentStart),i=new Date(r.currentEnd),o=Math.ceil((i.getTime()-a.getTime())/864e5),s=e,l=0;if(o>1){let e=n.width/o;l=Math.floor(s/e),l=Math.max(0,Math.min(l,o-1))}let c=new Date(a);return c.setDate(a.getDate()+l),c}getCurrentContext(){let e=this.calendar.view;return{currentView:e.type,currentDate:e.currentStart,isNarrow:this.container.clientWidth<768}}handleNavigationOption(e,t){let n=new Date;switch(e){case"thisMonth":case"thisWeek":this.navigateToDate(n,woe(e,t.isNarrow));break;case"customDate":this.showCustomDatePicker(t)}}showCustomDatePicker(e){this.datePicker&&this.datePicker.destroy(),this.datePicker=f5e(this.container,{mode:"single",defaultDate:e.currentDate,onChange:t=>{if(t.length>0){let n=woe("customDate",e.isNarrow);this.navigateToDate(t[0],n),this.datePicker?.close()}}}),this.datePicker.open()}navigateToDate(e,t){t&&t!==this.calendar.view.type&&this.calendar.changeView(t),this.calendar.gotoDate(e)}destroy(){this.datePicker&&(this.datePicker.destroy(),this.datePicker=null)}}});function wBt(e){return!1!==e.visible}function Yq(e,t,n){let r=t.filter(wBt);if(0!==r.length){n.value&&e.addSeparator();for(let t of r)e.addItem(e=>{e.setTitle(t.title),t.icon&&e.setIcon(t.icon),t.disabled?e.setDisabled(!0):e.onClick(()=>{t.run()})});n.value=!0}}function OBt(e){return{allowGenericTaskActions:e.contextMenu?.allowGenericTaskActions??!e.contextMenu?.providesNativeTaskSemantics,allowDisplayActions:e.contextMenu?.allowDisplayActions??!0}}async function Pke(e,t,n){let r=new Lke.Menu;if(!Qe.getCache())return;let a=Qe.getCache().store.getEventDetails(t.id);if(!a)return;let{event:i,calendarId:o,location:s}=a,l=Qe.getProviderRegistry().getInstance(o),c=Qe.getProviderRegistry().getCapabilities(o);if(!l||!c)return;let u={eventId:t.id,event:i,calendarId:o,location:s,display:t.display,title:t.title,start:t.start,plugin:e},d={value:!1};if(Qe.getCache().isEventEditable(t.id)){let n=OBt(c);Yq(r,TBt(e,t,n),d),Yq(r,await SBt(e,u,n),d),Yq(r,await kBt(l,u),d),Yq(r,CBt(e,u),d),Yq(r,EBt(e,u),d)}d.value||r.addItem(e=>{e.setTitle(Ce("ui.view.contextMenu.noActions")).setIcon("info").setDisabled(!0)}),r.showAtMouseEvent(n)}function TBt(e,t,n){return n.allowDisplayActions&&"background"===t.display?[{id:"display:auto",title:`${Ce("modals.editEvent.fields.display.label")}: ${Ce("modals.editEvent.fields.display.options.auto")}`,icon:"paintbrush",run:async()=>{await Qe.getCache().processEvent(t.id,e=>({...e,display:void 0}))}}]:[]}async function SBt(e,t,n){if(!n.allowGenericTaskActions)return[];let r=await Promise.resolve().then(()=>(WT(),Dre));return r.isTask(t.event)?[{id:"generic-task:remove-checkbox",title:Ce("ui.view.contextMenu.removeCheckbox"),icon:"x",run:async()=>{await Qe.getCache().processEvent(t.eventId,r.unmakeTask)}}]:[{id:"generic-task:add-checkbox",title:Ce("ui.view.contextMenu.turnIntoTask"),icon:"check",run:async()=>{await Qe.getCache().processEvent(t.eventId,e=>r.toggleTask(e,!1))}}]}async function kBt(e,t){return await(e.getEventContextActions?.(t))??[]}function CBt(e,t){return[{id:"navigation:go-to-note",title:Ce("ui.view.contextMenu.goToNote"),icon:"file-text",run:()=>{Qe.getCache()&&Promise.resolve().then(()=>(pT(),Tte)).then(({openFileForEvent:n})=>n(Qe.getCache(),e.app,t.eventId))}}]}function EBt(e,t){return Qe.getProviderRegistry().getCapabilities(t.calendarId)?.canDelete?[{id:"event:delete",title:Ce("ui.view.contextMenu.delete"),icon:"trash-2",run:async()=>{if(Qe.getCache())if("recurring"!==t.event.type&&"rrule"!==t.event.type||!t.start)await Qe.getCache().deleteEvent(t.eventId);else{let e=t.start instanceof Date?t.start.toISOString().slice(0,10):void 0;await Qe.getCache().deleteEvent(t.eventId,{instanceDate:e})}}}]:[]}var Lke,E8,PU,IU,q8,Ike=kr(()=>{Wo(),Lke=require("obsidian"),Zo()}),Soe=kr(()=>{E8={timeGrid:{defaultIndex:1,levels:[{slotDuration:"01:00:00",slotLabelInterval:"01:00:00"},{slotDuration:"00:30:00",slotLabelInterval:"01:00:00"},{slotDuration:"00:15:00",slotLabelInterval:"00:30:00"},{slotDuration:"00:05:00",slotLabelInterval:"00:15:00"}]},resourceTimelineWeek:{defaultIndex:2,levels:[{slotDuration:"06:00:00",slotLabelInterval:"06:00:00"},{slotDuration:"04:00:00",slotLabelInterval:"04:00:00"},{slotDuration:"02:00:00",slotLabelInterval:"02:00:00"},{slotDuration:"01:00:00",slotLabelInterval:"01:00:00"}]},resourceTimeline:{defaultIndex:1,levels:[{slotDuration:"01:00:00",slotLabelInterval:"01:00:00"},{slotDuration:"00:30:00",slotLabelInterval:"01:00:00"},{slotDuration:"00:15:00",slotLabelInterval:"00:30:00"},{slotDuration:"00:05:00",slotLabelInterval:"00:15:00"}]}},PU=class{constructor(e){this.ctx=e,this.zoomIndexByView={}}findBestZoomConfigKey(e){let t=null;for(let n in E8)e.startsWith(n)&&(!t||n.length>t.length)&&(t=n);return t}handleWheelZoom(e){let t=this.ctx.fullCalendarView;if(!t||!e.ctrlKey&&!e.metaKey)return;let n=t.view.type,r=this.findBestZoomConfigKey(n);if(!r)return;e.preventDefault();let a=E8[r],i=a.levels.length-1,o=this.zoomIndexByView[r]??a.defaultIndex,s=e.deltaY<0?"in":"out",l=o;if("in"===s&&o<i?l++:"out"===s&&o>0&&l--,l!==o){this.zoomIndexByView[r]=l;let e=a.levels[l];t.setOption("slotDuration",e.slotDuration),t.setOption("slotLabelInterval",e.slotLabelInterval)}}applyZoomForView(e){let t=this.findBestZoomConfigKey(e);if(t){let e=E8[t],n=this.zoomIndexByView[t]??e.defaultIndex,r=e.levels[n];this.ctx.fullCalendarView?.setOption("slotDuration",r.slotDuration),this.ctx.fullCalendarView?.setOption("slotLabelInterval",r.slotLabelInterval)}}}}),Nke=kr(()=>{Wo(),PT(),IU=class{constructor(e){this.ctx=e,this.eventSearchQuery="",this.eventDisplayById=new Map,this.pendingSearchApplyFrame=null}clearCaches(){this.eventDisplayById.clear()}scheduleApplyFilter(){null!==this.pendingSearchApplyFrame&&cancelAnimationFrame(this.pendingSearchApplyFrame),this.pendingSearchApplyFrame=window.requestAnimationFrame(()=>{this.pendingSearchApplyFrame=null,this.applyEventSearchFilter()})}applyEventSearchFilter(){let e=this.ctx.fullCalendarView;if(!e)return;let t=this.eventSearchQuery.trim(),n=e.getEvents();if(0===n.length)return;let r=new Map;if(t)for(let e of n){if(e.extendedProps.isShadow)continue;let t=Qe.getCache().store.getEventDetails(e.id),n={id:e.id,title:t?.event.title||e.title||"",category:t?.event.category||"",subCategory:t?.event.subCategory||"",description:t?.event.description||"",filePath:t?.location?.path||""},a=Dp.matchEvent(n,{textSearch:{query:this.eventSearchQuery,mode:"default"}});r.set(e.id,a)}else n.forEach(e=>{r.set(e.id,!0)});e.batchRendering(()=>{for(let e of n){if(e.extendedProps.isShadow){let t=e.extendedProps.originalEventId,n=!t||(r.get(t)??!0);this.setEventVisibility(e,n);continue}this.setEventVisibility(e,r.get(e.id)??!0)}})}setEventVisibility(e,t){if(this.eventDisplayById.has(e.id)||this.eventDisplayById.set(e.id,e.display||"auto"),!t)return void("none"!==e.display&&e.setProp("display","none"));let n=this.eventDisplayById.get(e.id)||"auto";e.display!==n&&e.setProp("display",n)}onunload(){null!==this.pendingSearchApplyFrame&&(cancelAnimationFrame(this.pendingSearchApplyFrame),this.pendingSearchApplyFrame=null),this.clearCaches()}}}),koe=kr(()=>{Wo(),Zq(),q8=class{constructor(e){this.ctx=e,this.timelineResources=null}buildTimelineResources(){let e=[],t=this.ctx.viewEnhancer,n=t?t.getCalendarConfig():Qe.getSettings();if(!n.enableAdvancedCategorization)return e;let r=n.categorySettings||[];if(!t)return e;let a=Qe.getCache().getAllEvents(),i=t.getFilteredSources(a),o=t.getActiveWorkspace(),s=e=>{if(!o?.categoryFilter)return!0;let{mode:t,categories:n}=o.categoryFilter;return"show-only"===t&&0===n.length||("show-only"===t?n.includes(e):!n.includes(e))};(o?.categoryFilter?r.filter(e=>s(e.name)):r).forEach(t=>{e.push({id:t.name,title:t.name,eventColor:t.color,extendedProps:{isParent:!0}})});let l=new Map;for(let e of i)for(let t of e.events){let{category:e,subCategory:n}=t.event;if(e){if(!s(e))continue;l.has(e)||l.set(e,new Set);let t=n||"__NONE__",r=l.get(e);r&&r.add(t)}}for(let[t,n]of l.entries())if(s(t)){e.find(e=>e.id===t)||e.push({id:t,title:t,extendedProps:{isParent:!0}});for(let r of n)e.push({id:`${t}::${r}`,title:"__NONE__"===r?"(none)":r,parentId:t,extendedProps:{}})}return this.timelineResources=e,e}generateShadowEvents(e,t=!1){let n=[];if(!(this.ctx.viewEnhancer?this.ctx.viewEnhancer.getCalendarConfig():Qe.getSettings()).enableAdvancedCategorization)return n;let r=this.ctx.fullCalendarView?.view?.type;if(!t&&r&&!r.includes("resourceTimeline"))return n;for(let t of e)if("string"==typeof t.resourceId&&t.resourceId.includes("::")){let e=t.resourceId.split("::")[0],r={...t,id:`${t.id}-shadow`,resourceId:e,extendedProps:{...t.extendedProps,isShadow:!0,originalEventId:t.id},className:"fc-event-shadow",editable:!1,durationEditable:!1,startEditable:!1};n.push(r)}return n}addShadowEventsToView(){let e=this.ctx.fullCalendarView,t=this.ctx.viewEnhancer?this.ctx.viewEnhancer.getCalendarConfig():Qe.getSettings();if(t.enableAdvancedCategorization&&e)for(let n of e.getEventSources()){let r=n.id,a=Qe.getCache().getAllEvents().find(e=>e.id===r);if(!a)continue;let{events:i}=a,o=i.map(e=>D8(e.id,e.event,t)).filter(e=>!!e),s=this.generateShadowEvents(o,!0),l=0,c=()=>{l<s.length&&window.requestAnimationFrame(()=>{e?.addEvent(s[l],r),l++,c()})};c()}}removeShadowEventsFromView(){let e=this.ctx.fullCalendarView;e&&e.getEvents().forEach(e=>{e.extendedProps.isShadow&&e.remove()})}}});function Fke(e){e.empty(),e.createDiv({attr:{id:"toastContainer"}});let t=e.createDiv({cls:"container"}),n=t.createDiv({cls:"header"});n.createEl("h1",{text:Ce("chrono.analyser.header")}),n.createEl("p",{text:Ce("chrono.analyser.subtitle")});let r=t.createDiv({cls:"demo-mode-banner hidden-controls",attr:{id:"demoModeBanner"}}),a=r.createDiv({cls:"demo-mode-banner-text"});a.createEl("strong",{text:Ce("chrono.analyser.demo.title")}),a.createEl("span",{text:Ce("chrono.analyser.demo.description")}),r.createEl("button",{cls:"mod-cta",attr:{id:"turnOffDemoBtn"},text:Ce("chrono.analyser.demo.turnOff")});let i=t.createDiv({cls:"insights-panel",attr:{id:"insightsPanel"}}),o=i.createDiv({cls:"pro-tips-panel",attr:{id:"proTipsPanel",title:Ce("chrono.analyser.clickNextTip")}}),s=o.createDiv({cls:"pro-tips-content"});s.createSpan({cls:"pro-tips-title",text:Ce("chrono.analyser.proTip")}),s.createEl("p",{attr:{id:"proTipText"}}),o.createDiv({cls:"pro-tips-nav",text:""});let l=i.createDiv({cls:"insights-header"});l.createDiv({cls:"insights-title",text:Ce("chrono.analyser.insights.title")});let c=l.createDiv({cls:"insights-actions"});c.createEl("button",{cls:"mod-cta",attr:{id:"generateInsightsBtn"},text:Ce("chrono.analyser.insights.generate")});let u=c.createEl("button",{cls:"clickable-icon",attr:{id:"configureInsightsBtn","aria-label":Ce("chrono.analyser.insights.configure")}});(0,Wke.setIcon)(u,"settings"),i.createDiv({cls:"insights-body",attr:{id:"insightsResultContainer"}}).createDiv({cls:"insights-placeholder",text:Ce("chrono.analyser.insights.placeholder")});let d=t.createDiv({cls:"controls"}),p=d.createDiv({cls:"control-group"}),h=p.createDiv({cls:"control-item"});h.createEl("label",{attr:{for:"hierarchyFilterInput"},text:Ce("chrono.analyser.filters.hierarchy")}),h.createDiv({cls:"autocomplete-wrapper"}).createEl("input",{attr:{id:"hierarchyFilterInput",type:"text",placeholder:Ce("chrono.analyser.filters.hierarchyPlaceholder")}});let f=p.createDiv({cls:"control-item"});f.createEl("label",{attr:{for:"projectFilterInput"},text:Ce("chrono.analyser.filters.project")}),f.createDiv({cls:"autocomplete-wrapper"}).createEl("input",{attr:{id:"projectFilterInput",type:"text",placeholder:Ce("chrono.analyser.filters.projectPlaceholder")}});let m=p.createDiv({cls:"control-item",attr:{id:"categoryFilterContainer"}});m.createEl("label",{attr:{for:"patternInput"},text:Ce("chrono.analyser.filters.category")}),m.createEl("input",{attr:{id:"patternInput",type:"text",placeholder:Ce("chrono.analyser.filters.categoryPlaceholder")}});let g=d.createDiv({cls:"control-group"}).createDiv({cls:"control-item"});g.createEl("label",{attr:{for:"dateRangePicker"},text:Ce("chrono.analyser.filters.dateRange")}),g.createEl("input",{attr:{id:"dateRangePicker",type:"text",placeholder:Ce("chrono.analyser.filters.dateRangePlaceholder")}});let y=g.createDiv({cls:"date-preset-buttons"});qBt(y,{marginTop:"10px"}),y.createEl("button",{attr:{id:"setTodayBtn"},text:Ce("chrono.analyser.filters.today")}),y.createEl("button",{attr:{id:"setYesterdayBtn"},text:Ce("chrono.analyser.filters.yesterday")}),y.createEl("button",{attr:{id:"setThisWeekBtn"},text:Ce("chrono.analyser.filters.thisWeek")}),y.createEl("button",{attr:{id:"setThisMonthBtn"},text:Ce("chrono.analyser.filters.thisMonth")}),y.createEl("button",{cls:"clear-dates-btn",attr:{id:"clearDatesBtn",title:Ce("chrono.analyser.filters.clearDatesTooltip")},text:Ce("chrono.analyser.filters.clearDates")});let b=d.createDiv({cls:"control-group analysis-config-group"}),v=b.createDiv({cls:"control-item"});v.createEl("label",{attr:{for:"metricSelect"},text:Ce("chrono.analyser.config.metric")});let M=v.createEl("select",{attr:{id:"metricSelect"}});M.createEl("option",{attr:{value:"duration"},text:Ce("chrono.analyser.config.duration")}),M.createEl("option",{attr:{value:"count"},text:Ce("chrono.analyser.config.count")});let x=b.createDiv({cls:"control-item"});x.createEl("label",{attr:{for:"analysisTypeSelect"},text:Ce("chrono.analyser.config.analysisType")});let z=x.createEl("select",{attr:{id:"analysisTypeSelect"}});z.createEl("option",{attr:{value:"pie",title:Ce("chrono.analyser.config.tooltips.categorywise")},text:Ce("chrono.analyser.config.pie")}),z.createEl("option",{attr:{value:"sunburst",title:Ce("chrono.analyser.config.tooltips.categorywise")},text:Ce("chrono.analyser.config.sunburst")}),z.createEl("option",{attr:{value:"time-series",title:Ce("chrono.analyser.config.tooltips.timeSeries")},text:Ce("chrono.analyser.config.timeSeries")}),z.createEl("option",{attr:{value:"activity",title:Ce("chrono.analyser.config.tooltips.activity")},text:Ce("chrono.analyser.config.activity")});let _=b.createDiv({cls:"control-item hidden-controls",attr:{id:"pieBreakdownLevelContainer"}});_.createEl("label",{attr:{for:"levelSelect_pie"},text:Ce("chrono.analyser.config.breakdownLevel")});let A=_.createEl("select",{attr:{id:"levelSelect_pie"}});A.createEl("option",{attr:{value:"hierarchy"},text:Ce("chrono.analyser.config.hierarchy")}),A.createEl("option",{attr:{value:"project"},text:Ce("chrono.analyser.config.project")}),A.createEl("option",{attr:{value:"subproject"},text:Ce("chrono.analyser.config.subproject")});let O=b.createDiv({cls:"control-item hidden-controls",attr:{id:"sunburstBreakdownLevelContainer"}});O.createEl("label",{attr:{for:"levelSelect"},text:Ce("chrono.analyser.config.breakdownLevel")});let w=O.createEl("select",{attr:{id:"levelSelect"}});w.createEl("option",{attr:{value:"project"},text:Ce("chrono.analyser.config.projectsByHierarchy")}),w.createEl("option",{attr:{value:"subproject"},text:Ce("chrono.analyser.config.subprojectsByProject")});let k=b.createDiv({cls:"control-item hidden-controls",attr:{id:"timeSeriesGranularityContainer"}});k.createEl("label",{attr:{for:"timeSeriesGranularitySelect"},text:Ce("chrono.analyser.config.granularity")});let T=k.createEl("select",{attr:{id:"timeSeriesGranularitySelect"}});T.createEl("option",{attr:{value:"daily"},text:Ce("chrono.analyser.config.daily")}),T.createEl("option",{attr:{value:"weekly"},text:Ce("chrono.analyser.config.weekly")}),T.createEl("option",{attr:{value:"monthly"},text:Ce("chrono.analyser.config.monthly")});let S=b.createDiv({cls:"control-item hidden-controls",attr:{id:"timeSeriesTypeContainer"}});S.createEl("label",{attr:{for:"timeSeriesTypeSelect"},text:Ce("chrono.analyser.config.chartType")});let C=S.createEl("select",{attr:{id:"timeSeriesTypeSelect"}});C.createEl("option",{attr:{value:"line"},text:Ce("chrono.analyser.config.overallTrend")}),C.createEl("option",{attr:{value:"stackedArea"},text:Ce("chrono.analyser.config.stackedByCategory")});let E=b.createDiv({cls:"control-item hidden-controls",attr:{id:"timeSeriesStackingLevelContainer"}});E.createEl("label",{attr:{for:"timeSeriesStackingLevelSelect"},text:Ce("chrono.analyser.config.stackBy")});let q=E.createEl("select",{attr:{id:"timeSeriesStackingLevelSelect"}});q.createEl("option",{attr:{value:"hierarchy"},text:Ce("chrono.analyser.config.hierarchy")}),q.createEl("option",{attr:{value:"project"},text:Ce("chrono.analyser.config.project")}),q.createEl("option",{attr:{value:"subproject"},text:Ce("chrono.analyser.config.subproject")});let D=b.createDiv({cls:"control-item hidden-controls",attr:{id:"activityPatternTypeContainer"}});D.createEl("label",{attr:{for:"activityPatternTypeSelect"},text:Ce("chrono.analyser.config.analyzeBy")});let R=D.createEl("select",{attr:{id:"activityPatternTypeSelect"}});R.createEl("option",{attr:{value:"dayOfWeek",title:Ce("chrono.analyser.config.tooltips.dayOfWeek")},text:Ce("chrono.analyser.config.dayOfWeek")}),R.createEl("option",{attr:{value:"hourOfDay",title:Ce("chrono.analyser.config.tooltips.hourOfDay")},text:Ce("chrono.analyser.config.hourOfDay")}),R.createEl("option",{attr:{value:"heatmapDOWvsHOD",title:Ce("chrono.analyser.config.tooltips.heatmap")},text:Ce("chrono.analyser.config.heatmap")});let L=t.createDiv({cls:"dashboard-layout-container"}),I=L.createDiv({cls:"stats-grid hidden-controls",attr:{id:"statsGrid"}}),W=I.createDiv({cls:"stat-card"});W.createDiv({cls:"stat-value",attr:{id:"totalHours"},text:"0"}),W.createDiv({cls:"stat-label",text:Ce("chrono.analyser.stats.totalHours")});let N=I.createDiv({cls:"stat-card"});N.createDiv({cls:"stat-value",attr:{id:"totalFiles"},text:"0"}),N.createDiv({cls:"stat-label",text:Ce("chrono.analyser.stats.filesInFilter")});let P=I.createDiv({cls:"stat-card"});P.createDiv({cls:"stat-value small-text",attr:{id:"currentAnalysisTypeStat"},text:"N/A"}),P.createDiv({cls:"stat-label",text:Ce("chrono.analyser.stats.activeAnalysis")}),L.createDiv({cls:"main-chart-container hidden-controls",attr:{id:"mainChartContainer"}}).createDiv({attr:{id:"mainChart"}});let B=t.createDiv({cls:"log-container hidden-controls",attr:{id:"errorLogContainer"}});B.createEl("h2",{text:Ce("chrono.analyser.log.title")}),B.createDiv({cls:"log-summary hidden-controls",attr:{id:"cacheStatusDisplay"}}),B.createDiv({cls:"log-summary",attr:{id:"errorLogSummary"},text:Ce("chrono.analyser.log.noIssues")}),B.createDiv({attr:{id:"errorLogEntries"}}),t.createDiv({cls:"overlay",attr:{id:"detailOverlay"}});let F=t.createDiv({cls:"detail-popup",attr:{id:"detailPopup"}}),j=F.createDiv({cls:"popup-header"});j.createEl("h2",{cls:"popup-title",attr:{id:"popupTitle"},text:Ce("chrono.analyser.details.title")}),j.createEl("button",{cls:"close-btn",attr:{id:"popupCloseBtn",title:Ce("chrono.analyser.details.close")},text:"×"});let U=F.createDiv({cls:"popup-body"});U.createDiv({cls:"summary-stats",attr:{id:"popupSummaryStats"}});let V=U.createDiv({cls:"detail-table-container"}).createEl("table",{cls:"detail-table",attr:{id:"popupDetailTable"}}),H=V.createEl("thead").createEl("tr");H.createEl("th",{text:Ce("chrono.analyser.details.project")}),H.createEl("th",{text:Ce("chrono.analyser.details.subproject")}),H.createEl("th",{text:Ce("chrono.analyser.details.duration")}),H.createEl("th",{text:Ce("chrono.analyser.details.date")}),H.createEl("th",{text:Ce("chrono.analyser.details.filePath")}),V.createEl("tbody",{attr:{id:"popupTableBody"}})}var Wke,qBt,Bke=kr(()=>{Wke=require("obsidian"),Zo(),qBt=(e,t)=>{Object.entries(t).forEach(([t,n])=>{e.style.setProperty(t,n)})}}),NU=Ee(e=>{e.version="3.6.0"}),Vke=Ee((e,t)=>{var n,r;n="Promise",(r=typeof global<"u"?global:e)[n]=r[n]||function(){var e,t,n,r=Object.prototype.toString,a=typeof setImmediate<"u"?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch{e=function(e,t,n){return e[t]=n,e}}function i(e,r){n.add(e,r),t||(t=a(n.drain))}function o(e){var t,n=typeof e;return null!=e&&("object"==n||"function"==n)&&(t=e.then),"function"==typeof t&&t}function s(){for(var e=0;e<this.chain.length;e++)l(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(e,t,n){var r,a;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(a=o(r))?a.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function c(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=o(e))?i(function(){var r=new p(n);try{t.call(e,function(){c.apply(r,arguments)},function(){u.apply(r,arguments)})}catch(e){u.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&i(s,n))}catch(e){u.call(new p(n),e)}}}function u(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&i(s,t))}function d(e,t,n,r){for(var a=0;a<t.length;a++)(function(a){e.resolve(t[a]).then(function(e){n(a,e)},r)})(a)}function p(e){this.def=e,this.triggered=!1}function h(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function f(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new h(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t}),t.chain.push(r),0!==t.state&&i(s,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){c.call(t,e)},function(e){u.call(t,e)})}catch(e){u.call(t,e)}}n=function(){var e,n,r;function a(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,i){r=new a(t,i),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var m=e({},"constructor",f,!1);return f.prototype=m,e(m,"__NPO__",0,!1),e(f,"resolve",function(e){var t=this;return e&&"object"==typeof e&&1===e.__NPO__?e:new t(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),e(f,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),e(f,"all",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var a=e.length,i=Array(a),o=0;d(t,e,function(e,t){i[e]=t,++o===a&&n(i)},r)})}),e(f,"race",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");d(t,e,function(e,t){n(t)},r)})}),f}(),typeof t<"u"&&t.exports?t.exports=r[n]:"function"==typeof define&&define.amd&&define(function(){return r[n]})}),mo=Ee((e,t)=>{(function(){var e={version:"3.8.2"},n=[].slice,r=function(e){return n.call(e)},a=self.document;function i(e){return e&&(e.ownerDocument||e.document||e).documentElement}function o(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(a)try{r(a.documentElement.childNodes)[0].nodeType}catch{r=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch{var s=this.Element.prototype,l=s.setAttribute,c=s.setAttributeNS,u=this.CSSStyleDeclaration.prototype,d=u.setProperty;s.setAttribute=function(e,t){l.call(this,e,t+"")},s.setAttributeNS=function(e,t,n){c.call(this,e,t,n+"")},u.setProperty=function(e,t,n){d.call(this,e,t+"",n)}}function p(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function h(e){return null===e?NaN:+e}function f(e){return!isNaN(e)}function m(e){return{left:function(t,n,r,a){for(arguments.length<3&&(r=0),arguments.length<4&&(a=t.length);r<a;){var i=r+a>>>1;e(t[i],n)<0?r=i+1:a=i}return r},right:function(t,n,r,a){for(arguments.length<3&&(r=0),arguments.length<4&&(a=t.length);r<a;){var i=r+a>>>1;e(t[i],n)>0?a=i:r=i+1}return r}}}e.ascending=p,e.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},e.min=function(e,t){var n,r,a=-1,i=e.length;if(1===arguments.length){for(;++a<i;)if(null!=(r=e[a])&&r>=r){n=r;break}for(;++a<i;)null!=(r=e[a])&&n>r&&(n=r)}else{for(;++a<i;)if(null!=(r=t.call(e,e[a],a))&&r>=r){n=r;break}for(;++a<i;)null!=(r=t.call(e,e[a],a))&&n>r&&(n=r)}return n},e.max=function(e,t){var n,r,a=-1,i=e.length;if(1===arguments.length){for(;++a<i;)if(null!=(r=e[a])&&r>=r){n=r;break}for(;++a<i;)null!=(r=e[a])&&r>n&&(n=r)}else{for(;++a<i;)if(null!=(r=t.call(e,e[a],a))&&r>=r){n=r;break}for(;++a<i;)null!=(r=t.call(e,e[a],a))&&r>n&&(n=r)}return n},e.extent=function(e,t){var n,r,a,i=-1,o=e.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=e[i])&&r>=r){n=a=r;break}for(;++i<o;)null!=(r=e[i])&&(n>r&&(n=r),a<r&&(a=r))}else{for(;++i<o;)if(null!=(r=t.call(e,e[i],i))&&r>=r){n=a=r;break}for(;++i<o;)null!=(r=t.call(e,e[i],i))&&(n>r&&(n=r),a<r&&(a=r))}return[n,a]},e.sum=function(e,t){var n,r=0,a=e.length,i=-1;if(1===arguments.length)for(;++i<a;)f(n=+e[i])&&(r+=n);else for(;++i<a;)f(n=+t.call(e,e[i],i))&&(r+=n);return r},e.mean=function(e,t){var n,r=0,a=e.length,i=-1,o=a;if(1===arguments.length)for(;++i<a;)f(n=h(e[i]))?r+=n:--o;else for(;++i<a;)f(n=h(t.call(e,e[i],i)))?r+=n:--o;if(o)return r/o},e.quantile=function(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),a=+e[r-1],i=n-r;return i?a+i*(e[r]-a):a},e.median=function(t,n){var r,a=[],i=t.length,o=-1;if(1===arguments.length)for(;++o<i;)f(r=h(t[o]))&&a.push(r);else for(;++o<i;)f(r=h(n.call(t,t[o],o)))&&a.push(r);if(a.length)return e.quantile(a.sort(p),.5)},e.variance=function(e,t){var n,r,a=e.length,i=0,o=0,s=-1,l=0;if(1===arguments.length)for(;++s<a;)f(n=h(e[s]))&&(o+=(r=n-i)*(n-(i+=r/++l)));else for(;++s<a;)f(n=h(t.call(e,e[s],s)))&&(o+=(r=n-i)*(n-(i+=r/++l)));if(l>1)return o/(l-1)},e.deviation=function(){var t=e.variance.apply(this,arguments);return t&&Math.sqrt(t)};var g=m(p);function y(e){return e.length}e.bisectLeft=g.left,e.bisect=e.bisectRight=g.right,e.bisector=function(e){return m(1===e.length?function(t,n){return p(e(t),n)}:e)},e.shuffle=function(e,t,n){(i=arguments.length)<3&&(n=e.length,i<2&&(t=0));for(var r,a,i=n-t;i;)a=Math.random()*i--|0,r=e[i+t],e[i+t]=e[a+t],e[a+t]=r;return e},e.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},e.pairs=function(e){for(var t=0,n=e.length-1,r=e[0],a=new Array(n<0?0:n);t<n;)a[t]=[r,r=e[++t]];return a},e.transpose=function(t){if(!(i=t.length))return[];for(var n=-1,r=e.min(t,y),a=new Array(r);++n<r;)for(var i,o=-1,s=a[n]=new Array(i);++o<i;)s[o]=t[o][n];return a},e.zip=function(){return e.transpose(arguments)},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t},e.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},e.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},e.merge=function(e){for(var t,n,r,a=e.length,i=-1,o=0;++i<a;)o+=e[i].length;for(n=new Array(o);--a>=0;)for(t=(r=e[a]).length;--t>=0;)n[--o]=r[t];return n};var b=Math.abs;function v(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function M(){this._=Object.create(null)}e.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n===1/0)throw new Error("infinite range");var r,a=[],i=function(e){for(var t=1;e*t%1;)t*=10;return t}(b(n)),o=-1;if(e*=i,t*=i,(n*=i)<0)for(;(r=e+n*++o)>t;)a.push(r/i);else for(;(r=e+n*++o)<t;)a.push(r/i);return a},e.map=function(e,t){var n=new M;if(e instanceof M)e.forEach(function(e,t){n.set(e,t)});else if(Array.isArray(e)){var r,a=-1,i=e.length;if(1===arguments.length)for(;++a<i;)n.set(a,e[a]);else for(;++a<i;)n.set(t.call(e,r=e[a],a),r)}else for(var o in e)n.set(o,e[o]);return n};function x(e){return"__proto__"==(e+="")||"\0"===e[0]?"\0"+e:e}function z(e){return"\0"===(e+="")[0]?e.slice(1):e}function _(e){return x(e)in this._}function A(e){return(e=x(e))in this._&&delete this._[e]}function O(){var e=[];for(var t in this._)e.push(z(t));return e}function w(){var e=0;for(var t in this._)++e;return e}function k(){for(var e in this._)return!1;return!0}function T(){this._=Object.create(null)}function S(e){return e}function C(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function E(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var n=0,r=q.length;n<r;++n){var a=q[n]+t;if(a in e)return a}}v(M,{has:_,get:function(e){return this._[x(e)]},set:function(e,t){return this._[x(e)]=t},remove:A,keys:O,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:z(t),value:this._[t]});return e},size:w,empty:k,forEach:function(e){for(var t in this._)e.call(this,z(t),this._[t])}}),e.nest=function(){var t,n,r={},a=[],i=[];function o(e,i,s){if(s>=a.length)return n?n.call(r,i):t?i.sort(t):i;for(var l,c,u,d,p=-1,h=i.length,f=a[s++],m=new M;++p<h;)(d=m.get(l=f(c=i[p])))?d.push(c):m.set(l,[c]);return e?(c=e(),u=function(t,n){c.set(t,o(e,n,s))}):(c={},u=function(t,n){c[t]=o(e,n,s)}),m.forEach(u),c}function s(e,t){if(t>=a.length)return e;var n=[],r=i[t++];return e.forEach(function(e,r){n.push({key:e,values:s(r,t)})}),r?n.sort(function(e,t){return r(e.key,t.key)}):n}return r.map=function(e,t){return o(t,e,0)},r.entries=function(t){return s(o(e.map,t,0),0)},r.key=function(e){return a.push(e),r},r.sortKeys=function(e){return i[a.length-1]=e,r},r.sortValues=function(e){return t=e,r},r.rollup=function(e){return n=e,r},r},e.set=function(e){var t=new T;if(e)for(var n=0,r=e.length;n<r;++n)t.add(e[n]);return t},v(T,{has:_,add:function(e){return this._[x(e+="")]=!0,e},remove:A,values:O,size:w,empty:k,forEach:function(e){for(var t in this._)e.call(this,z(t))}}),e.behavior={},e.rebind=function(e,t){for(var n,r=1,a=arguments.length;++r<a;)e[n=arguments[r]]=C(e,t,t[n]);return e};var q=["webkit","ms","moz","Moz","o","O"];function D(){}function R(){}function L(e){var t=[],n=new M;function r(){for(var n,r=t,a=-1,i=r.length;++a<i;)(n=r[a].on)&&n.apply(this,arguments);return e}return r.on=function(r,a){var i,o=n.get(r);return arguments.length<2?o&&o.on:(o&&(o.on=null,t=t.slice(0,i=t.indexOf(o)).concat(t.slice(i+1)),n.remove(r)),a&&t.push(n.set(r,{on:a})),e)},r}function I(){e.event.preventDefault()}function W(){for(var t,n=e.event;t=n.sourceEvent;)n=t;return n}function N(t){for(var n=new R,r=0,a=arguments.length;++r<a;)n[arguments[r]]=L(n);return n.of=function(r,a){return function(i){try{var o=i.sourceEvent=e.event;i.target=t,e.event=i,n[i.type].apply(r,a)}finally{e.event=o}}},n}e.dispatch=function(){for(var e=new R,t=-1,n=arguments.length;++t<n;)e[arguments[t]]=L(e);return e},R.prototype.on=function(e,t){var n=e.indexOf("."),r="";if(n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},e.event=null,e.requote=function(e){return e.replace(P,"\\$&")};var P=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,B={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]};function F(e){return B(e,H),e}var j=function(e,t){return t.querySelector(e)},U=function(e,t){return t.querySelectorAll(e)},V=function(e,t){var n=e.matches||e[E(e,"matchesSelector")];return(V=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(j=function(e,t){return Sizzle(e,t)[0]||null},U=Sizzle,V=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var H=e.selection.prototype=[];function X(e){return"function"==typeof e?e:function(){return j(e,this)}}function G(e){return"function"==typeof e?e:function(){return U(e,this)}}H.select=function(e){var t,n,r,a,i=[];e=X(e);for(var o=-1,s=this.length;++o<s;){i.push(t=[]),t.parentNode=(r=this[o]).parentNode;for(var l=-1,c=r.length;++l<c;)(a=r[l])?(t.push(n=e.call(a,a.__data__,l,o)),n&&"__data__"in a&&(n.__data__=a.__data__)):t.push(null)}return F(i)},H.selectAll=function(e){var t,n,a=[];e=G(e);for(var i=-1,o=this.length;++i<o;)for(var s=this[i],l=-1,c=s.length;++l<c;)(n=s[l])&&(a.push(t=r(e.call(n,n.__data__,l,i))),t.parentNode=n);return F(a)};var Y="http://www.w3.org/1999/xhtml",Z={svg:"http://www.w3.org/2000/svg",xhtml:Y,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $(t,n){return t=e.ns.qualify(t),null==n?t.local?function(){this.removeAttributeNS(t.space,t.local)}:function(){this.removeAttribute(t)}:"function"==typeof n?t.local?function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}:function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}:t.local?function(){this.setAttributeNS(t.space,t.local,n)}:function(){this.setAttribute(t,n)}}function J(e){return e.trim().replace(/\s+/g," ")}function Q(t){return new RegExp("(?:^|\\s+)"+e.requote(t)+"(?:\\s+|$)","g")}function K(e){return(e+"").trim().split(/^|\s+/)}function ee(e,t){var n=(e=K(e).map(te)).length;return"function"==typeof t?function(){for(var r=-1,a=t.apply(this,arguments);++r<n;)e[r](this,a)}:function(){for(var r=-1;++r<n;)e[r](this,t)}}function te(e){var t=Q(e);return function(n,r){if(a=n.classList)return r?a.add(e):a.remove(e);var a=n.getAttribute("class")||"";r?(t.lastIndex=0,t.test(a)||n.setAttribute("class",J(a+" "+e))):n.setAttribute("class",J(a.replace(t," ")))}}function ne(e,t,n){return null==t?function(){this.style.removeProperty(e)}:"function"==typeof t?function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}:function(){this.style.setProperty(e,t,n)}}function re(e,t){return null==t?function(){delete this[e]}:"function"==typeof t?function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}:function(){this[e]=t}}function ae(t){return"function"==typeof t?t:(t=e.ns.qualify(t)).local?function(){return this.ownerDocument.createElementNS(t.space,t.local)}:function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Y&&e.documentElement.namespaceURI===Y?e.createElement(t):e.createElementNS(n,t)}}function ie(){var e=this.parentNode;e&&e.removeChild(this)}function oe(e){return{__data__:e}}function se(e){return function(){return V(this,e)}}function le(e){return arguments.length||(e=p),function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}function ce(e,t){for(var n=0,r=e.length;n<r;n++)for(var a,i=e[n],o=0,s=i.length;o<s;o++)(a=i[o])&&t(a,o,n);return e}function ue(e){return B(e,de),e}e.ns={prefix:Z,qualify:function(e){var t=e.indexOf(":"),n=e;return t>=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),Z.hasOwnProperty(n)?{space:Z[n],local:e}:e}},H.attr=function(t,n){if(arguments.length<2){if("string"==typeof t){var r=this.node();return(t=e.ns.qualify(t)).local?r.getAttributeNS(t.space,t.local):r.getAttribute(t)}for(n in t)this.each($(n,t[n]));return this}return this.each($(t,n))},H.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=K(e)).length,a=-1;if(t=n.classList){for(;++a<r;)if(!t.contains(e[a]))return!1}else for(t=n.getAttribute("class");++a<r;)if(!Q(e[a]).test(t))return!1;return!0}for(t in e)this.each(ee(t,e[t]));return this}return this.each(ee(e,t))},H.style=function(e,t,n){var r=arguments.length;if(r<3){if("string"!=typeof e){for(n in r<2&&(t=""),e)this.each(ne(n,e[n],t));return this}if(r<2){var a=this.node();return o(a).getComputedStyle(a,null).getPropertyValue(e)}n=""}return this.each(ne(e,t,n))},H.property=function(e,t){if(arguments.length<2){if("string"==typeof e)return this.node()[e];for(t in e)this.each(re(t,e[t]));return this}return this.each(re(e,t))},H.text=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.textContent=t??""}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},H.html=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=t??""}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},H.append=function(e){return e=ae(e),this.select(function(){return this.appendChild(e.apply(this,arguments))})},H.insert=function(e,t){return e=ae(e),t=X(t),this.select(function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)})},H.remove=function(){return this.each(ie)},H.data=function(e,t){var n,r,a=-1,i=this.length;if(!arguments.length){for(e=new Array(i=(n=this[0]).length);++a<i;)(r=n[a])&&(e[a]=r.__data__);return e}function o(e,n){var r,a,i,o=e.length,u=n.length,d=Math.min(o,u),p=new Array(u),h=new Array(u),f=new Array(o);if(t){var m,g=new M,y=new Array(o);for(r=-1;++r<o;)(a=e[r])&&(g.has(m=t.call(a,a.__data__,r))?f[r]=a:g.set(m,a),y[r]=m);for(r=-1;++r<u;)(a=g.get(m=t.call(n,i=n[r],r)))?!0!==a&&(p[r]=a,a.__data__=i):h[r]=oe(i),g.set(m,!0);for(r=-1;++r<o;)r in y&&!0!==g.get(y[r])&&(f[r]=e[r])}else{for(r=-1;++r<d;)a=e[r],i=n[r],a?(a.__data__=i,p[r]=a):h[r]=oe(i);for(;r<u;++r)h[r]=oe(n[r]);for(;r<o;++r)f[r]=e[r]}h.update=p,h.parentNode=p.parentNode=f.parentNode=e.parentNode,s.push(h),l.push(p),c.push(f)}var s=ue([]),l=F([]),c=F([]);if("function"==typeof e)for(;++a<i;)o(n=this[a],e.call(n,n.parentNode.__data__,a));else for(;++a<i;)o(n=this[a],e);return l.enter=function(){return s},l.exit=function(){return c},l},H.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},H.filter=function(e){var t,n,r,a=[];"function"!=typeof e&&(e=se(e));for(var i=0,o=this.length;i<o;i++){a.push(t=[]),t.parentNode=(n=this[i]).parentNode;for(var s=0,l=n.length;s<l;s++)(r=n[s])&&e.call(r,r.__data__,s,i)&&t.push(r)}return F(a)},H.order=function(){for(var e=-1,t=this.length;++e<t;)for(var n,r=this[e],a=r.length-1,i=r[a];--a>=0;)(n=r[a])&&(i&&i!==n.nextSibling&&i.parentNode.insertBefore(n,i),i=n);return this},H.sort=function(e){e=le.apply(this,arguments);for(var t=-1,n=this.length;++t<n;)this[t].sort(e);return this.order()},H.each=function(e){return ce(this,function(t,n,r){e.call(t,t.__data__,n,r)})},H.call=function(e){var t=r(arguments);return e.apply(t[0]=this,t),this},H.empty=function(){return!this.node()},H.node=function(){for(var e=0,t=this.length;e<t;e++)for(var n=this[e],r=0,a=n.length;r<a;r++){var i=n[r];if(i)return i}return null},H.size=function(){var e=0;return ce(this,function(){++e}),e};var de=[];function pe(t,n,a){var i="__on"+t,o=t.indexOf("."),s=fe;o>0&&(t=t.slice(0,o));var l=he.get(t);function c(){var e=this[i];e&&(this.removeEventListener(t,e,e.$),delete this[i])}return l&&(t=l,s=me),o?n?function(){var e=s(n,r(arguments));c.call(this),this.addEventListener(t,this[i]=e,e.$=a),e._=n}:c:n?D:function(){var n,r=new RegExp("^__on([^.]+)"+e.requote(t)+"$");for(var a in this)if(n=a.match(r)){var i=this[a];this.removeEventListener(n[1],i,i.$),delete this[a]}}}e.selection.enter=ue,e.selection.enter.prototype=de,de.append=H.append,de.empty=H.empty,de.node=H.node,de.call=H.call,de.size=H.size,de.select=function(e){for(var t,n,r,a,i,o=[],s=-1,l=this.length;++s<l;){r=(a=this[s]).update,o.push(t=[]),t.parentNode=a.parentNode;for(var c=-1,u=a.length;++c<u;)(i=a[c])?(t.push(r[c]=n=e.call(a.parentNode,i.__data__,c,s)),n.__data__=i.__data__):t.push(null)}return F(o)},de.insert=function(e,t){return arguments.length<2&&(t=function(e){var t,n;return function(r,a,i){var o,s=e[i].update,l=s.length;for(i!=n&&(n=i,t=0),a>=t&&(t=a+1);!(o=s[t])&&++t<l;);return o}}(this)),H.insert.call(this,e,t)},e.select=function(e){var t;return"string"==typeof e?(t=[j(e,a)]).parentNode=a.documentElement:(t=[e]).parentNode=i(e),F([t])},e.selectAll=function(e){var t;return"string"==typeof e?(t=r(U(e,a))).parentNode=a.documentElement:(t=r(e)).parentNode=null,F([t])},H.on=function(e,t,n){var r=arguments.length;if(r<3){if("string"!=typeof e){for(n in r<2&&(t=!1),e)this.each(pe(n,e[n],t));return this}if(r<2)return(r=this.node()["__on"+e])&&r._;n=!1}return this.each(pe(e,t,n))};var he=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});function fe(t,n){return function(r){var a=e.event;e.event=r,n[0]=this.__data__;try{t.apply(this,n)}finally{e.event=a}}}function me(e,t){var n=fe(e,t);return function(e){var t=this,r=e.relatedTarget;(!r||r!==t&&!(8&r.compareDocumentPosition(t)))&&n.call(t,e)}}a&&he.forEach(function(e){"on"+e in a&&he.remove(e)});var ge,ye=0;function be(t){var n=".dragsuppress-"+ ++ye,r="click"+n,a=e.select(o(t)).on("touchmove"+n,I).on("dragstart"+n,I).on("selectstart"+n,I);if(null==ge&&(ge=!("onselectstart"in t)&&E(t.style,"userSelect")),ge){var s=i(t).style,l=s[ge];s[ge]="none"}return function(e){if(a.on(n,null),ge&&(s[ge]=l),e){var t=function(){a.on(r,null)};a.on(r,function(){I(),t()},!0),setTimeout(t,0)}}}e.mouse=function(e){return Me(e,W())};var ve=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Me(t,n){n.changedTouches&&(n=n.changedTouches[0]);var r=t.ownerSVGElement||t;if(r.createSVGPoint){var a=r.createSVGPoint();if(ve<0){var i=o(t);if(i.scrollX||i.scrollY){var s=(r=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();ve=!(s.f||s.e),r.remove()}}return ve?(a.x=n.pageX,a.y=n.pageY):(a.x=n.clientX,a.y=n.clientY),[(a=a.matrixTransform(t.getScreenCTM().inverse())).x,a.y]}var l=t.getBoundingClientRect();return[n.clientX-l.left-t.clientLeft,n.clientY-l.top-t.clientTop]}function xe(){return e.event.changedTouches[0].identifier}e.touch=function(e,t,n){if(arguments.length<3&&(n=t,t=W().changedTouches),t)for(var r,a=0,i=t.length;a<i;++a)if((r=t[a]).identifier===n)return Me(e,r)},e.behavior.drag=function(){var t=N(i,"drag","dragstart","dragend"),n=null,r=s(D,e.mouse,o,"mousemove","mouseup"),a=s(xe,e.touch,S,"touchmove","touchend");function i(){this.on("mousedown.drag",r).on("touchstart.drag",a)}function s(r,a,i,o,s){return function(){var l,c=this,u=e.event.target.correspondingElement||e.event.target,d=c.parentNode,p=t.of(c,arguments),h=0,f=r(),m=".drag"+(null==f?"":"-"+f),g=e.select(i(u)).on(o+m,function(){var e,t,n=a(d,f);n&&(e=n[0]-b[0],t=n[1]-b[1],h|=e|t,b=n,p({type:"drag",x:n[0]+l[0],y:n[1]+l[1],dx:e,dy:t}))}).on(s+m,function(){a(d,f)&&(g.on(o+m,null).on(s+m,null),y(h),p({type:"dragend"}))}),y=be(u),b=a(d,f);n?l=[(l=n.apply(c,arguments)).x-b[0],l.y-b[1]]:l=[0,0],p({type:"dragstart"})}}return i.origin=function(e){return arguments.length?(n=e,i):n},e.rebind(i,t,"on")},e.touches=function(e,t){return arguments.length<2&&(t=W().touches),t?r(t).map(function(t){var n=Me(e,t);return n.identifier=t.identifier,n}):[]};var ze=1e-6,_e=Math.PI,Ae=2*_e,Oe=Ae-ze,we=_e/2,ke=_e/180,Te=180/_e;function Se(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Ce(e){return e>1?we:e<-1?-we:Math.asin(e)}function Ee(e){return((e=Math.exp(e))+1/e)/2}var qe=Math.SQRT2;e.interpolateZoom=function(e,t){var n,r,a=e[0],i=e[1],o=e[2],s=t[0],l=t[1],c=t[2],u=s-a,d=l-i,p=u*u+d*d;if(p<1e-12)r=Math.log(c/o)/qe,n=function(e){return[a+e*u,i+e*d,o*Math.exp(qe*e*r)]};else{var h=Math.sqrt(p),f=(c*c-o*o+4*p)/(2*o*2*h),m=(c*c-o*o-4*p)/(2*c*2*h),g=Math.log(Math.sqrt(f*f+1)-f),y=Math.log(Math.sqrt(m*m+1)-m);r=(y-g)/qe,n=function(e){var t=e*r,n=Ee(g),s=o/(2*h)*(n*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(qe*t+g)-function(e){return((e=Math.exp(e))-1/e)/2}(g));return[a+s*u,i+s*d,o*n/Ee(qe*t+g)]}}return n.duration=1e3*r,n},e.behavior.zoom=function(){var t,n,r,i,s,l,c,u,d,p={x:0,y:0,k:1},h=[960,500],f=Le,m=250,g=0,y="mousedown.zoom",b="mousemove.zoom",v="mouseup.zoom",M="touchstart.zoom",x=N(z,"zoomstart","zoom","zoomend");function z(e){e.on(y,E).on(Re+".zoom",D).on("dblclick.zoom",R).on(M,q)}function _(e){return[(e[0]-p.x)/p.k,(e[1]-p.y)/p.k]}function A(e){p.k=Math.max(f[0],Math.min(f[1],e))}function O(e,t){t=function(e){return[e[0]*p.k+p.x,e[1]*p.k+p.y]}(t),p.x+=e[0]-t[0],p.y+=e[1]-t[1]}function w(t,r,a,i){t.__chart__={x:p.x,y:p.y,k:p.k},A(Math.pow(2,i)),O(n=r,a),t=e.select(t),m>0&&(t=t.transition().duration(m)),t.call(z.event)}function k(){c&&c.domain(l.range().map(function(e){return(e-p.x)/p.k}).map(l.invert)),d&&d.domain(u.range().map(function(e){return(e-p.y)/p.k}).map(u.invert))}function T(e){g++||e({type:"zoomstart"})}function S(e){k(),e({type:"zoom",scale:p.k,translate:[p.x,p.y]})}function C(e){--g||(e({type:"zoomend"}),n=null)}function E(){var t=this,n=x.of(t,arguments),r=0,a=e.select(o(t)).on(b,function(){r=1,O(e.mouse(t),i),S(n)}).on(v,function(){a.on(b,null).on(v,null),s(r),C(n)}),i=_(e.mouse(t)),s=be(t);Ga.call(t),T(n)}function q(){var t,n=this,r=x.of(n,arguments),a={},i=0,o=".zoom-"+e.event.changedTouches[0].identifier,l="touchmove"+o,c="touchend"+o,u=[],d=e.select(n),h=be(n);function f(){var r=e.touches(n);return t=p.k,r.forEach(function(e){e.identifier in a&&(a[e.identifier]=_(e))}),r}function m(){var t=e.event.target;e.select(t).on(l,g).on(c,b),u.push(t);for(var r=e.event.changedTouches,o=0,d=r.length;o<d;++o)a[r[o].identifier]=null;var h=f(),m=Date.now();if(1===h.length){if(m-s<500){var y=h[0];w(n,y,a[y.identifier],Math.floor(Math.log(p.k)/Math.LN2)+1),I()}s=m}else if(h.length>1){y=h[0];var v=h[1],M=y[0]-v[0],x=y[1]-v[1];i=M*M+x*x}}function g(){var o,l,c,u,d=e.touches(n);Ga.call(n);for(var p=0,h=d.length;p<h;++p,u=null)if(c=d[p],u=a[c.identifier]){if(l)break;o=c,l=u}if(u){var f=(f=c[0]-o[0])*f+(f=c[1]-o[1])*f,m=i&&Math.sqrt(f/i);o=[(o[0]+c[0])/2,(o[1]+c[1])/2],l=[(l[0]+u[0])/2,(l[1]+u[1])/2],A(m*t)}s=null,O(o,l),S(r)}function b(){if(e.event.touches.length){for(var t=e.event.changedTouches,n=0,i=t.length;n<i;++n)delete a[t[n].identifier];for(var s in a)return void f()}e.selectAll(u).on(o,null),d.on(y,E).on(M,q),h(),C(r)}m(),T(r),d.on(y,null).on(M,m)}function D(){var a=x.of(this,arguments);i?clearTimeout(i):(Ga.call(this),t=_(n=r||e.mouse(this)),T(a)),i=setTimeout(function(){i=null,C(a)},50),I(),A(Math.pow(2,.002*De())*p.k),O(n,t),S(a)}function R(){var t=e.mouse(this),n=Math.log(p.k)/Math.LN2;w(this,t,_(t),e.event.shiftKey?Math.ceil(n)-1:Math.floor(n)+1)}return Re||(Re="onwheel"in a?(De=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(De=function(){return e.event.wheelDelta},"mousewheel"):(De=function(){return-e.event.detail},"MozMousePixelScroll")),z.event=function(t){t.each(function(){var t=x.of(this,arguments),r=p;$a?e.select(this).transition().each("start.zoom",function(){p=this.__chart__||{x:0,y:0,k:1},T(t)}).tween("zoom:zoom",function(){var a=h[0],i=h[1],o=n?n[0]:a/2,s=n?n[1]:i/2,l=e.interpolateZoom([(o-p.x)/p.k,(s-p.y)/p.k,a/p.k],[(o-r.x)/r.k,(s-r.y)/r.k,a/r.k]);return function(e){var n=l(e),r=a/n[2];this.__chart__=p={x:o-n[0]*r,y:s-n[1]*r,k:r},S(t)}}).each("interrupt.zoom",function(){C(t)}).each("end.zoom",function(){C(t)}):(this.__chart__=p,T(t),S(t),C(t))})},z.translate=function(e){return arguments.length?(p={x:+e[0],y:+e[1],k:p.k},k(),z):[p.x,p.y]},z.scale=function(e){return arguments.length?(p={x:p.x,y:p.y,k:null},A(+e),k(),z):p.k},z.scaleExtent=function(e){return arguments.length?(f=null==e?Le:[+e[0],+e[1]],z):f},z.center=function(e){return arguments.length?(r=e&&[+e[0],+e[1]],z):r},z.size=function(e){return arguments.length?(h=e&&[+e[0],+e[1]],z):h},z.duration=function(e){return arguments.length?(m=+e,z):m},z.x=function(e){return arguments.length?(c=e,l=e.copy(),p={x:0,y:0,k:1},z):c},z.y=function(e){return arguments.length?(d=e,u=e.copy(),p={x:0,y:0,k:1},z):d},e.rebind(z,x,"on")};var De,Re,Le=[0,1/0];function Ie(){}function We(e,t,n){return this instanceof We?(this.h=+e,this.s=+t,void(this.l=+n)):arguments.length<2?e instanceof We?new We(e.h,e.s,e.l):it(""+e,ot,We):new We(e,t,n)}e.color=Ie,Ie.prototype.toString=function(){return this.rgb()+""},e.hsl=We;var Ne=We.prototype=new Ie;function Pe(e,t,n){var r,a;function i(e){return Math.round(255*function(e){return e>360?e-=360:e<0&&(e+=360),e<60?r+(a-r)*e/60:e<180?a:e<240?r+(a-r)*(240-e)/60:r}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)||t<0?0:t>1?1:t,r=2*(n=n<0?0:n>1?1:n)-(a=n<=.5?n*(1+t):n+t-n*t),new et(i(e+120),i(e),i(e-120))}function Be(t,n,r){return this instanceof Be?(this.h=+t,this.c=+n,void(this.l=+r)):arguments.length<2?t instanceof Be?new Be(t.h,t.c,t.l):$e(t instanceof Ue?t.l:(t=st((t=e.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new Be(t,n,r)}Ne.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new We(this.h,this.s,this.l/e)},Ne.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new We(this.h,this.s,e*this.l)},Ne.rgb=function(){return Pe(this.h,this.s,this.l)},e.hcl=Be;var Fe=Be.prototype=new Ie;function je(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new Ue(n,Math.cos(e*=ke)*t,Math.sin(e)*t)}function Ue(e,t,n){return this instanceof Ue?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof Ue?new Ue(e.l,e.a,e.b):e instanceof Be?je(e.h,e.c,e.l):st((e=et(e)).r,e.g,e.b):new Ue(e,t,n)}Fe.brighter=function(e){return new Be(this.h,this.c,Math.min(100,this.l+Ve*(arguments.length?e:1)))},Fe.darker=function(e){return new Be(this.h,this.c,Math.max(0,this.l-Ve*(arguments.length?e:1)))},Fe.rgb=function(){return je(this.h,this.c,this.l).rgb()},e.lab=Ue;var Ve=18,He=.95047,Xe=1,Ge=1.08883,Ye=Ue.prototype=new Ie;function Ze(e,t,n){var r=(e+16)/116,a=r+t/500,i=r-n/200;return new et(Ke(3.2404542*(a=Je(a)*He)-1.5371385*(r=Je(r)*Xe)-.4985314*(i=Je(i)*Ge)),Ke(-.969266*a+1.8760108*r+.041556*i),Ke(.0556434*a-.2040259*r+1.0572252*i))}function $e(e,t,n){return e>0?new Be(Math.atan2(n,t)*Te,Math.sqrt(t*t+n*n),e):new Be(NaN,NaN,e)}function Je(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function Qe(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function Ke(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function et(e,t,n){return this instanceof et?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof et?new et(e.r,e.g,e.b):it(""+e,et,Pe):new et(e,t,n)}function tt(e){return new et(e>>16,e>>8&255,255&e)}function nt(e){return tt(e)+""}Ye.brighter=function(e){return new Ue(Math.min(100,this.l+Ve*(arguments.length?e:1)),this.a,this.b)},Ye.darker=function(e){return new Ue(Math.max(0,this.l-Ve*(arguments.length?e:1)),this.a,this.b)},Ye.rgb=function(){return Ze(this.l,this.a,this.b)},e.rgb=et;var rt=et.prototype=new Ie;function at(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function it(e,t,n){var r,a,i,o=0,s=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(a=r[2].split(","),r[1]){case"hsl":return n(parseFloat(a[0]),parseFloat(a[1])/100,parseFloat(a[2])/100);case"rgb":return t(ct(a[0]),ct(a[1]),ct(a[2]))}return(i=ut.get(e))?t(i.r,i.g,i.b):(null!=e&&"#"===e.charAt(0)&&!isNaN(i=parseInt(e.slice(1),16))&&(4===e.length?(o=(3840&i)>>4,o|=o>>4,s=240&i,s|=s>>4,l=15&i,l|=l<<4):7===e.length&&(o=(16711680&i)>>16,s=(65280&i)>>8,l=255&i)),t(o,s,l))}function ot(e,t,n){var r,a,i=Math.min(e/=255,t/=255,n/=255),o=Math.max(e,t,n),s=o-i,l=(o+i)/2;return s?(a=l<.5?s/(o+i):s/(2-o-i),r=e==o?(t-n)/s+(t<n?6:0):t==o?(n-e)/s+2:(e-t)/s+4,r*=60):(r=NaN,a=l>0&&l<1?0:r),new We(r,a,l)}function st(e,t,n){var r=Qe((.4124564*(e=lt(e))+.3575761*(t=lt(t))+.1804375*(n=lt(n)))/He),a=Qe((.2126729*e+.7151522*t+.072175*n)/Xe);return Ue(116*a-16,500*(r-a),200*(a-Qe((.0193339*e+.119192*t+.9503041*n)/Ge)))}function lt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ct(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}rt.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,a=30;return t||n||r?(t&&t<a&&(t=a),n&&n<a&&(n=a),r&&r<a&&(r=a),new et(Math.min(255,t/e),Math.min(255,n/e),Math.min(255,r/e))):new et(a,a,a)},rt.darker=function(e){return new et((e=Math.pow(.7,arguments.length?e:1))*this.r,e*this.g,e*this.b)},rt.hsl=function(){return ot(this.r,this.g,this.b)},rt.toString=function(){return"#"+at(this.r)+at(this.g)+at(this.b)};var ut=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});function dt(e){return"function"==typeof e?e:function(){return e}}function pt(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),ht(t,n,e,r)}}function ht(t,n,a,i){var o={},s=e.dispatch("beforesend","progress","load","error"),l={},c=new XMLHttpRequest,u=null;function d(){var e,t=c.status;if(!t&&function(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}(c)||t>=200&&t<300||304===t){try{e=a.call(o,c)}catch(e){return void s.error.call(o,e)}s.load.call(o,e)}else s.error.call(o,c)}return self.XDomainRequest&&!("withCredentials"in c)&&/^(http(s)?:)?\/\//.test(t)&&(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=d:c.onreadystatechange=function(){c.readyState>3&&d()},c.onprogress=function(t){var n=e.event;e.event=t;try{s.progress.call(o,c)}finally{e.event=n}},o.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?l[e]:(null==t?delete l[e]:l[e]=t+"",o)},o.mimeType=function(e){return arguments.length?(n=null==e?null:e+"",o):n},o.responseType=function(e){return arguments.length?(u=e,o):u},o.response=function(e){return a=e,o},["get","post"].forEach(function(e){o[e]=function(){return o.send.apply(o,[e].concat(r(arguments)))}}),o.send=function(e,r,a){if(2===arguments.length&&"function"==typeof r&&(a=r,r=null),c.open(e,t,!0),null!=n&&!("accept"in l)&&(l.accept=n+",*/*"),c.setRequestHeader)for(var i in l)c.setRequestHeader(i,l[i]);return null!=n&&c.overrideMimeType&&c.overrideMimeType(n),null!=u&&(c.responseType=u),null!=a&&o.on("error",a).on("load",function(e){a(null,e)}),s.beforesend.call(o,c),c.send(r??null),o},o.abort=function(){return c.abort(),o},e.rebind(o,s,"on"),null==i?o:o.get(function(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}(i))}ut.forEach(function(e,t){ut.set(e,tt(t))}),e.functor=dt,e.xhr=pt(S),e.dsv=function(e,t){var n=new RegExp('["'+e+"\n]"),r=e.charCodeAt(0);function a(e,n,r){arguments.length<3&&(r=n,n=null);var a=ht(e,t,null==n?i:o(n),r);return a.row=function(e){return arguments.length?a.response(null==(n=e)?i:o(e)):n},a}function i(e){return a.parse(e.responseText)}function o(e){return function(t){return a.parse(t.responseText,e)}}function s(t){return t.map(l).join(e)}function l(e){return n.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return a.parse=function(e,t){var n;return a.parseRows(e,function(e,r){if(n)return n(e,r-1);var a=function(t){for(var n={},r=e.length,a=0;a<r;++a)n[e[a]]=t[a];return n};n=t?function(e,n){return t(a(e),n)}:a})},a.parseRows=function(e,t){var n,a,i={},o={},s=[],l=e.length,c=0,u=0;function d(){if(c>=l)return o;if(a)return a=!1,i;var t=c;if(34===e.charCodeAt(t)){for(var n=t;n++<l;)if(34===e.charCodeAt(n)){if(34!==e.charCodeAt(n+1))break;++n}return c=n+2,13===(s=e.charCodeAt(n+1))?(a=!0,10===e.charCodeAt(n+2)&&++c):10===s&&(a=!0),e.slice(t+1,n).replace(/""/g,'"')}for(;c<l;){var s,u=1;if(10===(s=e.charCodeAt(c++)))a=!0;else if(13===s)a=!0,10===e.charCodeAt(c)&&(++c,++u);else if(s!==r)continue;return e.slice(t,c-u)}return e.slice(t)}for(;(n=d())!==o;){for(var p=[];n!==i&&n!==o;)p.push(n),n=d();t&&null==(p=t(p,u++))||s.push(p)}return s},a.format=function(t){if(Array.isArray(t[0]))return a.formatRows(t);var n=new T,r=[];return t.forEach(function(e){for(var t in e)n.has(t)||r.push(n.add(t))}),[r.map(l).join(e)].concat(t.map(function(t){return r.map(function(e){return l(t[e])}).join(e)})).join("\n")},a.formatRows=function(e){return e.map(s).join("\n")},a},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv("\t","text/tab-separated-values");var ft,mt,gt,yt,bt=this[E(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};function vt(e,t,n){var r=arguments.length;r<2&&(t=0),r<3&&(n=Date.now());var a={c:e,t:n+t,n:null};return mt?mt.n=a:ft=a,mt=a,gt||(yt=clearTimeout(yt),gt=1,bt(Mt)),a}function Mt(){var e=xt(),t=zt()-e;t>24?(isFinite(t)&&(clearTimeout(yt),yt=setTimeout(Mt,t)),gt=0):(gt=1,bt(Mt))}function xt(){for(var e=Date.now(),t=ft;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function zt(){for(var e,t=ft,n=1/0;t;)t.c?(t.t<n&&(n=t.t),t=(e=t).n):t=e?e.n=t.n:ft=t.n;return mt=e,n}function _t(e){return e[0]}function At(e){return e[1]}function Ot(e){for(var t=e.length,n=[0,1],r=2,a=2;a<t;a++){for(;r>1&&Se(e[n[r-2]],e[n[r-1]],e[a])<=0;)--r;n[r++]=a}return n.slice(0,r)}function wt(e,t){return e[0]-t[0]||e[1]-t[1]}e.timer=function(){vt.apply(this,arguments)},e.timer.flush=function(){xt(),zt()},e.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},e.geom={},e.geom.hull=function(e){var t=_t,n=At;if(arguments.length)return r(e);function r(e){if(e.length<3)return[];var r,a=dt(t),i=dt(n),o=e.length,s=[],l=[];for(r=0;r<o;r++)s.push([+a.call(this,e[r],r),+i.call(this,e[r],r),r]);for(s.sort(wt),r=0;r<o;r++)l.push([s[r][0],-s[r][1]]);var c=Ot(s),u=Ot(l),d=u[0]===c[0],p=u[u.length-1]===c[c.length-1],h=[];for(r=c.length-1;r>=0;--r)h.push(e[s[c[r]][2]]);for(r=+d;r<u.length-p;++r)h.push(e[s[u[r]][2]]);return h}return r.x=function(e){return arguments.length?(t=e,r):t},r.y=function(e){return arguments.length?(n=e,r):n},r},e.geom.polygon=function(e){return B(e,kt),e};var kt=e.geom.polygon.prototype=[];function Tt(e,t,n){return(n[0]-t[0])*(e[1]-t[1])<(n[1]-t[1])*(e[0]-t[0])}function St(e,t,n,r){var a=e[0],i=n[0],o=t[0]-a,s=r[0]-i,l=e[1],c=n[1],u=t[1]-l,d=r[1]-c,p=(s*(l-c)-d*(a-i))/(d*o-s*u);return[a+p*o,l+p*u]}function Ct(e){var t=e[0],n=e[e.length-1];return!(t[0]-n[0]||t[1]-n[1])}kt.area=function(){for(var e,t=-1,n=this.length,r=this[n-1],a=0;++t<n;)e=r,r=this[t],a+=e[1]*r[0]-e[0]*r[1];return.5*a},kt.centroid=function(e){var t,n,r=-1,a=this.length,i=0,o=0,s=this[a-1];for(arguments.length||(e=-1/(6*this.area()));++r<a;)t=s,s=this[r],n=t[0]*s[1]-s[0]*t[1],i+=(t[0]+s[0])*n,o+=(t[1]+s[1])*n;return[i*e,o*e]},kt.clip=function(e){for(var t,n,r,a,i,o,s=Ct(e),l=-1,c=this.length-Ct(this),u=this[c-1];++l<c;){for(t=e.slice(),e.length=0,a=this[l],i=t[(r=t.length-s)-1],n=-1;++n<r;)Tt(o=t[n],u,a)?(Tt(i,u,a)||e.push(St(i,o,u,a)),e.push(o)):Tt(i,u,a)&&e.push(St(i,o,u,a)),i=o;s&&e.push(e[0]),u=a}return e};var Et,qt,Dt,Rt,Lt,It=[],Wt=[];function Nt(){rn(this),this.edge=this.site=this.circle=null}function Pt(e){var t=It.pop()||new Nt;return t.site=e,t}function Bt(e){Zt(e),Dt.remove(e),It.push(e),rn(e)}function Ft(e){var t=e.circle,n=t.x,r=t.cy,a={x:n,y:r},i=e.P,o=e.N,s=[e];Bt(e);for(var l=i;l.circle&&b(n-l.circle.x)<ze&&b(r-l.circle.cy)<ze;)i=l.P,s.unshift(l),Bt(l),l=i;s.unshift(l),Zt(l);for(var c=o;c.circle&&b(n-c.circle.x)<ze&&b(r-c.circle.cy)<ze;)o=c.N,s.push(c),Bt(c),c=o;s.push(c),Zt(c);var u,d=s.length;for(u=1;u<d;++u)c=s[u],l=s[u-1],en(c.edge,l.site,c.site,a);l=s[0],(c=s[d-1]).edge=Qt(l.site,c.site,null,a),Yt(l),Yt(c)}function jt(e){for(var t,n,r,a,i=e.x,o=e.y,s=Dt._;s;)if((r=Ut(s,o)-i)>ze)s=s.L;else{if(!((a=i-Vt(s,o))>ze)){r>-ze?(t=s.P,n=s):a>-ze?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}var l=Pt(e);if(Dt.insert(t,l),t||n){if(t===n)return Zt(t),n=Pt(t.site),Dt.insert(l,n),l.edge=n.edge=Qt(t.site,l.site),Yt(t),void Yt(n);if(!n)return void(l.edge=Qt(t.site,l.site));Zt(t),Zt(n);var c=t.site,u=c.x,d=c.y,p=e.x-u,h=e.y-d,f=n.site,m=f.x-u,g=f.y-d,y=2*(p*g-h*m),b=p*p+h*h,v=m*m+g*g,M={x:(g*b-h*v)/y+u,y:(p*v-m*b)/y+d};en(n.edge,c,f,M),l.edge=Qt(c,e,null,M),n.edge=Qt(e,f,null,M),Yt(t),Yt(n)}}function Ut(e,t){var n=e.site,r=n.x,a=n.y,i=a-t;if(!i)return r;var o=e.P;if(!o)return-1/0;var s=(n=o.site).x,l=n.y,c=l-t;if(!c)return s;var u=s-r,d=1/i-1/c,p=u/c;return d?(-p+Math.sqrt(p*p-2*d*(u*u/(-2*c)-l+c/2+a-i/2)))/d+r:(r+s)/2}function Vt(e,t){var n=e.N;if(n)return Ut(n,t);var r=e.site;return r.y===t?r.x:1/0}function Ht(e){this.site=e,this.edges=[]}function Xt(e,t){return t.angle-e.angle}function Gt(){rn(this),this.x=this.y=this.arc=this.site=this.cy=null}function Yt(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,a=e.site,i=n.site;if(r!==i){var o=a.x,s=a.y,l=r.x-o,c=r.y-s,u=i.x-o,d=2*(l*(g=i.y-s)-c*u);if(!(d>=-1e-12)){var p=l*l+c*c,h=u*u+g*g,f=(g*p-c*h)/d,m=(l*h-u*p)/d,g=m+s,y=Wt.pop()||new Gt;y.arc=e,y.site=a,y.x=f+o,y.y=g+Math.sqrt(f*f+m*m),y.cy=g,e.circle=y;for(var b=null,v=Lt._;v;)if(y.y<v.y||y.y===v.y&&y.x<=v.x){if(!v.L){b=v.P;break}v=v.L}else{if(!v.R){b=v;break}v=v.R}Lt.insert(b,y),b||(Rt=y)}}}}function Zt(e){var t=e.circle;t&&(t.P||(Rt=t.N),Lt.remove(t),Wt.push(t),rn(t),e.circle=null)}function $t(e,t){var n=e.b;if(n)return!0;var r,a,i=e.a,o=t[0][0],s=t[1][0],l=t[0][1],c=t[1][1],u=e.l,d=e.r,p=u.x,h=u.y,f=d.x,m=d.y,g=(p+f)/2,y=(h+m)/2;if(m===h){if(g<o||g>=s)return;if(p>f){if(i){if(i.y>=c)return}else i={x:g,y:l};n={x:g,y:c}}else{if(i){if(i.y<l)return}else i={x:g,y:c};n={x:g,y:l}}}else if(a=y-(r=(p-f)/(m-h))*g,r<-1||r>1)if(p>f){if(i){if(i.y>=c)return}else i={x:(l-a)/r,y:l};n={x:(c-a)/r,y:c}}else{if(i){if(i.y<l)return}else i={x:(c-a)/r,y:c};n={x:(l-a)/r,y:l}}else if(h<m){if(i){if(i.x>=s)return}else i={x:o,y:r*o+a};n={x:s,y:r*s+a}}else{if(i){if(i.x<o)return}else i={x:s,y:r*s+a};n={x:o,y:r*o+a}}return e.a=i,e.b=n,!0}function Jt(e,t){this.l=e,this.r=t,this.a=this.b=null}function Qt(e,t,n,r){var a=new Jt(e,t);return Et.push(a),n&&en(a,e,t,n),r&&en(a,t,e,r),qt[e.i].edges.push(new tn(a,e,t)),qt[t.i].edges.push(new tn(a,t,e)),a}function Kt(e,t,n){var r=new Jt(e,null);return r.a=t,r.b=n,Et.push(r),r}function en(e,t,n,r){e.a||e.b?e.l===n?e.b=r:e.a=r:(e.a=r,e.l=t,e.r=n)}function tn(e,t,n){var r=e.a,a=e.b;this.edge=e,this.site=t,this.angle=n?Math.atan2(n.y-t.y,n.x-t.x):e.l===t?Math.atan2(a.x-r.x,r.y-a.y):Math.atan2(r.x-a.x,a.y-r.y)}function nn(){this._=null}function rn(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function an(e,t){var n=t,r=t.R,a=n.U;a?a.L===n?a.L=r:a.R=r:e._=r,r.U=a,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function on(e,t){var n=t,r=t.L,a=n.U;a?a.L===n?a.L=r:a.R=r:e._=r,r.U=a,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function sn(e){for(;e.L;)e=e.L;return e}function ln(e,t){var n,r,a,i=e.sort(cn).pop();for(Et=[],qt=new Array(e.length),Dt=new nn,Lt=new nn;;)if(a=Rt,i&&(!a||i.y<a.y||i.y===a.y&&i.x<a.x))(i.x!==n||i.y!==r)&&(qt[i.i]=new Ht(i),jt(i),n=i.x,r=i.y),i=e.pop();else{if(!a)break;Ft(a.arc)}t&&(function(e){for(var t,n=Et,r=function(e,t,n,r){return function(a){var i,o=a.a,s=a.b,l=o.x,c=o.y,u=0,d=1,p=s.x-l,h=s.y-c;if(i=e-l,p||!(i>0)){if(i/=p,p<0){if(i<u)return;i<d&&(d=i)}else if(p>0){if(i>d)return;i>u&&(u=i)}if(i=n-l,p||!(i<0)){if(i/=p,p<0){if(i>d)return;i>u&&(u=i)}else if(p>0){if(i<u)return;i<d&&(d=i)}if(i=t-c,h||!(i>0)){if(i/=h,h<0){if(i<u)return;i<d&&(d=i)}else if(h>0){if(i>d)return;i>u&&(u=i)}if(i=r-c,h||!(i<0)){if(i/=h,h<0){if(i>d)return;i>u&&(u=i)}else if(h>0){if(i<u)return;i<d&&(d=i)}return u>0&&(a.a={x:l+u*p,y:c+u*h}),d<1&&(a.b={x:l+d*p,y:c+d*h}),a}}}}}}(e[0][0],e[0][1],e[1][0],e[1][1]),a=n.length;a--;)(!$t(t=n[a],e)||!r(t)||b(t.a.x-t.b.x)<ze&&b(t.a.y-t.b.y)<ze)&&(t.a=t.b=null,n.splice(a,1))}(t),function(e){for(var t,n,r,a,i,o,s,l,c,u,d=e[0][0],p=e[1][0],h=e[0][1],f=e[1][1],m=qt,g=m.length;g--;)if((i=m[g])&&i.prepare())for(l=(s=i.edges).length,o=0;o<l;)r=(u=s[o].end()).x,a=u.y,t=(c=s[++o%l].start()).x,n=c.y,(b(r-t)>ze||b(a-n)>ze)&&(s.splice(o,0,new tn(Kt(i.site,u,b(r-d)<ze&&f-a>ze?{x:d,y:b(t-d)<ze?n:f}:b(a-f)<ze&&p-r>ze?{x:b(n-f)<ze?t:p,y:f}:b(r-p)<ze&&a-h>ze?{x:p,y:b(t-p)<ze?n:h}:b(a-h)<ze&&r-d>ze?{x:b(n-h)<ze?t:d,y:h}:null),i.site,null)),++l)}(t));var o={cells:qt,edges:Et};return Dt=Lt=Et=qt=null,o}function cn(e,t){return t.y-e.y||t.x-e.x}Ht.prototype.prepare=function(){for(var e,t=this.edges,n=t.length;n--;)(!(e=t[n].edge).b||!e.a)&&t.splice(n,1);return t.sort(Xt),t.length},tn.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},nn.prototype={insert:function(e,t){var n,r,a;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=sn(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(r=n.U).L?(a=r.R)&&a.C?(n.C=a.C=!1,r.C=!0,e=r):(e===n.R&&(an(this,n),n=(e=n).U),n.C=!1,r.C=!0,on(this,r)):(a=r.L)&&a.C?(n.C=a.C=!1,r.C=!0,e=r):(e===n.L&&(on(this,n),n=(e=n).U),n.C=!1,r.C=!0,an(this,r)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,a=e.U,i=e.L,o=e.R;if(n=i?o?sn(o):i:o,a?a.L===e?a.L=n:a.R=n:this._=n,i&&o?(r=n.C,n.C=e.C,n.L=i,i.U=n,n!==o?(a=n.U,n.U=e.U,e=n.R,a.L=e,n.R=o,o.U=n):(n.U=a,a=n,e=n.R)):(r=e.C,e=n),e&&(e.U=a),!r){if(e&&e.C)return void(e.C=!1);do{if(e===this._)break;if(e===a.L){if((t=a.R).C&&(t.C=!1,a.C=!0,an(this,a),t=a.R),t.L&&t.L.C||t.R&&t.R.C){(!t.R||!t.R.C)&&(t.L.C=!1,t.C=!0,on(this,t),t=a.R),t.C=a.C,a.C=t.R.C=!1,an(this,a),e=this._;break}}else if((t=a.L).C&&(t.C=!1,a.C=!0,on(this,a),t=a.L),t.L&&t.L.C||t.R&&t.R.C){(!t.L||!t.L.C)&&(t.R.C=!1,t.C=!0,an(this,t),t=a.L),t.C=a.C,a.C=t.L.C=!1,on(this,a),e=this._;break}t.C=!0,e=a,a=a.U}while(!e.C);e&&(e.C=!1)}}},e.geom.voronoi=function(e){var t=_t,n=At,r=t,a=n,i=un;if(e)return o(e);function o(e){var t=new Array(e.length),n=i[0][0],r=i[0][1],a=i[1][0],o=i[1][1];return ln(s(e),i).cells.forEach(function(i,s){var l=i.edges,c=i.site;(t[s]=l.length?l.map(function(e){var t=e.start();return[t.x,t.y]}):c.x>=n&&c.x<=a&&c.y>=r&&c.y<=o?[[n,o],[a,o],[a,r],[n,r]]:[]).point=e[s]}),t}function s(e){return e.map(function(e,t){return{x:Math.round(r(e,t)/ze)*ze,y:Math.round(a(e,t)/ze)*ze,i:t}})}return o.links=function(e){return ln(s(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},o.triangles=function(e){var t=[];return ln(s(e)).cells.forEach(function(n,r){for(var a,i=n.site,o=n.edges.sort(Xt),s=-1,l=o.length,c=o[l-1].edge,u=c.l===i?c.r:c.l;++s<l;)a=u,u=(c=o[s].edge).l===i?c.r:c.l,r<a.i&&r<u.i&&dn(i,a,u)<0&&t.push([e[r],e[a.i],e[u.i]])}),t},o.x=function(e){return arguments.length?(r=dt(t=e),o):t},o.y=function(e){return arguments.length?(a=dt(n=e),o):n},o.clipExtent=function(e){return arguments.length?(i=e??un,o):i===un?null:i},o.size=function(e){return arguments.length?o.clipExtent(e&&[[0,0],e]):i===un?null:i&&i[1]},o};var un=[[-1e6,-1e6],[1e6,1e6]];function dn(e,t,n){return(e.x-n.x)*(t.y-e.y)-(e.x-t.x)*(n.y-e.y)}function pn(e){return e.x}function hn(e){return e.y}function fn(e,t,n,r,a,i){if(!e(t,n,r,a,i)){var o=.5*(n+a),s=.5*(r+i),l=t.nodes;l[0]&&fn(e,l[0],n,r,o,s),l[1]&&fn(e,l[1],o,r,a,s),l[2]&&fn(e,l[2],n,s,o,i),l[3]&&fn(e,l[3],o,s,a,i)}}function mn(t,n){t=e.rgb(t),n=e.rgb(n);var r=t.r,a=t.g,i=t.b,o=n.r-r,s=n.g-a,l=n.b-i;return function(e){return"#"+at(Math.round(r+o*e))+at(Math.round(a+s*e))+at(Math.round(i+l*e))}}function gn(e,t){var n,r={},a={};for(n in e)n in t?r[n]=xn(e[n],t[n]):a[n]=e[n];for(n in t)n in e||(a[n]=t[n]);return function(e){for(n in r)a[n]=r[n](e);return a}}function yn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function bn(e,t){var n,r,a,i=vn.lastIndex=Mn.lastIndex=0,o=-1,s=[],l=[];for(e+="",t+="";(n=vn.exec(e))&&(r=Mn.exec(t));)(a=r.index)>i&&(a=t.slice(i,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,l.push({i:o,x:yn(n,r)})),i=Mn.lastIndex;return i<t.length&&(a=t.slice(i),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?(t=l[0].x,function(e){return t(e)+""}):function(){return t}:(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}e.geom.delaunay=function(t){return e.geom.voronoi().triangles(t)},e.geom.quadtree=function(e,t,n,r,a){var i,o=_t,s=At;if(i=arguments.length)return o=pn,s=hn,3===i&&(a=n,r=t,n=t=0),l(e);function l(e){var l,c,u,d,p,h,f,m,g,y=dt(o),v=dt(s);if(null!=t)h=t,f=n,m=r,g=a;else if(m=g=-(h=f=1/0),c=[],u=[],p=e.length,i)for(d=0;d<p;++d)(l=e[d]).x<h&&(h=l.x),l.y<f&&(f=l.y),l.x>m&&(m=l.x),l.y>g&&(g=l.y),c.push(l.x),u.push(l.y);else for(d=0;d<p;++d){var M=+y(l=e[d],d),x=+v(l,d);M<h&&(h=M),x<f&&(f=x),M>m&&(m=M),x>g&&(g=x),c.push(M),u.push(x)}var z=m-h,_=g-f;function A(e,t,n,r,a,i,o,s){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var l=e.x,c=e.y;if(null!=l)if(b(l-n)+b(c-r)<.01)O(e,t,n,r,a,i,o,s);else{var u=e.point;e.x=e.y=e.point=null,O(e,u,l,c,a,i,o,s),O(e,t,n,r,a,i,o,s)}else e.x=n,e.y=r,e.point=t}else O(e,t,n,r,a,i,o,s)}function O(e,t,n,r,a,i,o,s){var l=.5*(a+o),c=.5*(i+s),u=n>=l,d=r>=c,p=d<<1|u;e.leaf=!1,u?a=l:o=l,d?i=c:s=c,A(e=e.nodes[p]||(e.nodes[p]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,n,r,a,i,o,s)}z>_?g=f+z:m=h+_;var w={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){A(w,e,+y(e,++d),+v(e,d),h,f,m,g)}};if(w.visit=function(e){fn(e,w,h,f,m,g)},w.find=function(e){return function(e,t,n,r,a,i,o){var s,l=1/0;return function e(c,u,d,p,h){if(!(u>i||d>o||p<r||h<a)){if(f=c.point){var f,m=t-c.x,g=n-c.y,y=m*m+g*g;if(y<l){var b=Math.sqrt(l=y);r=t-b,a=n-b,i=t+b,o=n+b,s=f}}for(var v=c.nodes,M=.5*(u+p),x=.5*(d+h),z=(n>=x)<<1|t>=M,_=z+4;z<_;++z)if(c=v[3&z])switch(3&z){case 0:e(c,u,d,M,x);break;case 1:e(c,M,d,p,x);break;case 2:e(c,u,x,M,h);break;case 3:e(c,M,x,p,h)}}}(e,r,a,i,o),s}(w,e[0],e[1],h,f,m,g)},d=-1,null==t){for(;++d<p;)A(w,e[d],c[d],u[d],h,f,m,g);--d}else e.forEach(w.add);return c=u=e=l=null,w}return l.x=function(e){return arguments.length?(o=e,l):o},l.y=function(e){return arguments.length?(s=e,l):s},l.extent=function(e){return arguments.length?(null==e?t=n=r=a=null:(t=+e[0][0],n=+e[0][1],r=+e[1][0],a=+e[1][1]),l):null==t?null:[[t,n],[r,a]]},l.size=function(e){return arguments.length?(null==e?t=n=r=a=null:(t=n=0,r=+e[0],a=+e[1]),l):null==t?null:[r-t,a-n]},l},e.interpolateRgb=mn,e.interpolateObject=gn,e.interpolateNumber=yn,e.interpolateString=bn;var vn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mn=new RegExp(vn.source,"g");function xn(t,n){for(var r,a=e.interpolators.length;--a>=0&&!(r=e.interpolators[a](t,n)););return r}function zn(e,t){var n,r=[],a=[],i=e.length,o=t.length,s=Math.min(e.length,t.length);for(n=0;n<s;++n)r.push(xn(e[n],t[n]));for(;n<i;++n)a[n]=e[n];for(;n<o;++n)a[n]=t[n];return function(e){for(n=0;n<s;++n)a[n]=r[n](e);return a}}e.interpolate=xn,e.interpolators=[function(e,t){var n=typeof t;return("string"===n?ut.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?mn:bn:t instanceof Ie?mn:Array.isArray(t)?zn:"object"===n&&isNaN(t)?gn:yn)(e,t)}],e.interpolateArray=zn;var _n=function(){return S},An=e.map({linear:_n,poly:function(e){return function(t){return Math.pow(t,e)}},quad:function(){return Tn},cubic:function(){return Sn},sin:function(){return En},exp:function(){return qn},circle:function(){return Dn},elastic:function(e,t){var n;return arguments.length<2&&(t=.45),arguments.length?n=t/Ae*Math.asin(1/e):(e=1,n=t/4),function(r){return 1+e*Math.pow(2,-10*r)*Math.sin((r-n)*Ae/t)}},back:function(e){return e||(e=1.70158),function(t){return t*t*((e+1)*t-e)}},bounce:function(){return Rn}}),On=e.map({in:S,out:wn,"in-out":kn,"out-in":function(e){return kn(wn(e))}});function wn(e){return function(t){return 1-e(1-t)}}function kn(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function Tn(e){return e*e}function Sn(e){return e*e*e}function Cn(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function En(e){return 1-Math.cos(e*we)}function qn(e){return Math.pow(2,10*(e-1))}function Dn(e){return 1-Math.sqrt(1-e*e)}function Rn(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function Ln(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function In(e){var t=[e.a,e.b],n=[e.c,e.d],r=Nn(t),a=Wn(t,n),i=Nn(function(e,t,n){return e[0]+=n*t[0],e[1]+=n*t[1],e}(n,t,-a))||0;t[0]*n[1]<n[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,a*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-n[0],n[1]))*Te,this.translate=[e.e,e.f],this.scale=[r,i],this.skew=i?Math.atan2(a,i)*Te:0}function Wn(e,t){return e[0]*t[0]+e[1]*t[1]}function Nn(e){var t=Math.sqrt(Wn(e,e));return t&&(e[0]/=t,e[1]/=t),t}e.ease=function(e){var t=e.indexOf("-"),r=t>=0?e.slice(0,t):e,a=t>=0?e.slice(t+1):"in";return r=An.get(r)||_n,function(e){return function(t){return t<=0?0:t>=1?1:e(t)}}((a=On.get(a)||S)(r.apply(null,n.call(arguments,1))))},e.interpolateHcl=function(t,n){t=e.hcl(t),n=e.hcl(n);var r=t.h,a=t.c,i=t.l,o=n.h-r,s=n.c-a,l=n.l-i;return isNaN(s)&&(s=0,a=isNaN(a)?n.c:a),isNaN(o)?(o=0,r=isNaN(r)?n.h:r):o>180?o-=360:o<-180&&(o+=360),function(e){return je(r+o*e,a+s*e,i+l*e)+""}},e.interpolateHsl=function(t,n){t=e.hsl(t),n=e.hsl(n);var r=t.h,a=t.s,i=t.l,o=n.h-r,s=n.s-a,l=n.l-i;return isNaN(s)&&(s=0,a=isNaN(a)?n.s:a),isNaN(o)?(o=0,r=isNaN(r)?n.h:r):o>180?o-=360:o<-180&&(o+=360),function(e){return Pe(r+o*e,a+s*e,i+l*e)+""}},e.interpolateLab=function(t,n){t=e.lab(t),n=e.lab(n);var r=t.l,a=t.a,i=t.b,o=n.l-r,s=n.a-a,l=n.b-i;return function(e){return Ze(r+o*e,a+s*e,i+l*e)+""}},e.interpolateRound=Ln,e.transform=function(t){var n=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(e){if(null!=e){n.setAttribute("transform",e);var t=n.transform.baseVal.consolidate()}return new In(t?t.matrix:Pn)})(t)},In.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var Pn={a:1,b:0,c:0,d:1,e:0,f:0};function Bn(e){return e.length?e.pop()+",":""}function Fn(t,n){var r=[],a=[];return t=e.transform(t),n=e.transform(n),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var a=n.push("translate(",null,",",null,")");r.push({i:a-4,x:yn(e[0],t[0])},{i:a-2,x:yn(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}(t.translate,n.translate,r,a),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(Bn(n)+"rotate(",null,")")-2,x:yn(e,t)})):t&&n.push(Bn(n)+"rotate("+t+")")}(t.rotate,n.rotate,r,a),function(e,t,n,r){e!==t?r.push({i:n.push(Bn(n)+"skewX(",null,")")-2,x:yn(e,t)}):t&&n.push(Bn(n)+"skewX("+t+")")}(t.skew,n.skew,r,a),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var a=n.push(Bn(n)+"scale(",null,",",null,")");r.push({i:a-4,x:yn(e[0],t[0])},{i:a-2,x:yn(e[1],t[1])})}else(1!==t[0]||1!==t[1])&&n.push(Bn(n)+"scale("+t+")")}(t.scale,n.scale,r,a),t=n=null,function(e){for(var t,n=-1,i=a.length;++n<i;)r[(t=a[n]).i]=t.x(e);return r.join("")}}function jn(e,t){return t=(t-=e=+e)||1/t,function(n){return(n-e)/t}}function Un(e,t){return t=(t-=e=+e)||1/t,function(n){return Math.max(0,Math.min(1,(n-e)/t))}}function Vn(e){for(var t=e.source,n=e.target,r=function(e,t){if(e===t)return e;for(var n=Hn(e),r=Hn(t),a=n.pop(),i=r.pop(),o=null;a===i;)o=a,a=n.pop(),i=r.pop();return o}(t,n),a=[t];t!==r;)t=t.parent,a.push(t);for(var i=a.length;n!==r;)a.splice(i,0,n),n=n.parent;return a}function Hn(e){for(var t=[],n=e.parent;null!=n;)t.push(e),e=n,n=n.parent;return t.push(e),t}function Xn(e){e.fixed|=2}function Gn(e){e.fixed&=-7}function Yn(e){e.fixed|=4,e.px=e.x,e.py=e.y}function Zn(e){e.fixed&=-5}function $n(e,t,n){var r=0,a=0;if(e.charge=0,!e.leaf)for(var i,o=e.nodes,s=o.length,l=-1;++l<s;)null!=(i=o[l])&&($n(i,t,n),e.charge+=i.charge,r+=i.charge*i.cx,a+=i.charge*i.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var c=t*n[e.point.index];e.charge+=e.pointCharge=c,r+=c*e.point.x,a+=c*e.point.y}e.cx=r/e.charge,e.cy=a/e.charge}e.interpolateTransform=Fn,e.layout={},e.layout.bundle=function(){return function(e){for(var t=[],n=-1,r=e.length;++n<r;)t.push(Vn(e[n]));return t}},e.layout.chord=function(){var t,n,r,a,i,o,s,l={},c=0;function u(){var l,u,p,h,f,m={},g=[],y=e.range(a),b=[];for(t=[],n=[],l=0,h=-1;++h<a;){for(u=0,f=-1;++f<a;)u+=r[h][f];g.push(u),b.push(e.range(a)),l+=u}for(i&&y.sort(function(e,t){return i(g[e],g[t])}),o&&b.forEach(function(e,t){e.sort(function(e,n){return o(r[t][e],r[t][n])})}),l=(Ae-c*a)/l,u=0,h=-1;++h<a;){for(p=u,f=-1;++f<a;){var v=y[h],M=b[v][f],x=r[v][M],z=u,_=u+=x*l;m[v+"-"+M]={index:v,subindex:M,startAngle:z,endAngle:_,value:x}}n[v]={index:v,startAngle:p,endAngle:u,value:g[v]},u+=c}for(h=-1;++h<a;)for(f=h-1;++f<a;){var A=m[h+"-"+f],O=m[f+"-"+h];(A.value||O.value)&&t.push(A.value<O.value?{source:O,target:A}:{source:A,target:O})}s&&d()}function d(){t.sort(function(e,t){return s((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)})}return l.matrix=function(e){return arguments.length?(a=(r=e)&&r.length,t=n=null,l):r},l.padding=function(e){return arguments.length?(c=e,t=n=null,l):c},l.sortGroups=function(e){return arguments.length?(i=e,t=n=null,l):i},l.sortSubgroups=function(e){return arguments.length?(o=e,t=null,l):o},l.sortChords=function(e){return arguments.length?(s=e,t&&d(),l):s},l.chords=function(){return t||u(),t},l.groups=function(){return n||u(),n},l},e.layout.force=function(){var t,n,r,a,i,o,s={},l=e.dispatch("start","tick","end"),c=[1,1],u=.9,d=Jn,p=Qn,h=-30,f=Kn,m=.1,g=.64,y=[],b=[];function v(e){return function(t,n,r,a){if(t.point!==e){var i=t.cx-e.x,o=t.cy-e.y,s=a-n,l=i*i+o*o;if(s*s/g<l){if(l<f){var c=t.charge/l;e.px-=i*c,e.py-=o*c}return!0}if(t.point&&l&&l<f){c=t.pointCharge/l;e.px-=i*c,e.py-=o*c}}return!t.charge}}function M(t){t.px=e.event.x,t.py=e.event.y,s.resume()}return s.tick=function(){if((r*=.99)<.005)return t=null,l.end({type:"end",alpha:r=0}),!0;var n,s,d,p,f,g,M,x,z,_=y.length,A=b.length;for(s=0;s<A;++s)p=(d=b[s]).source,(g=(x=(f=d.target).x-p.x)*x+(z=f.y-p.y)*z)&&(x*=g=r*i[s]*((g=Math.sqrt(g))-a[s])/g,z*=g,f.x-=x*(M=p.weight+f.weight?p.weight/(p.weight+f.weight):.5),f.y-=z*M,p.x+=x*(M=1-M),p.y+=z*M);if((M=r*m)&&(x=c[0]/2,z=c[1]/2,s=-1,M))for(;++s<_;)(d=y[s]).x+=(x-d.x)*M,d.y+=(z-d.y)*M;if(h)for($n(n=e.geom.quadtree(y),r,o),s=-1;++s<_;)(d=y[s]).fixed||n.visit(v(d));for(s=-1;++s<_;)(d=y[s]).fixed?(d.x=d.px,d.y=d.py):(d.x-=(d.px-(d.px=d.x))*u,d.y-=(d.py-(d.py=d.y))*u);l.tick({type:"tick",alpha:r})},s.nodes=function(e){return arguments.length?(y=e,s):y},s.links=function(e){return arguments.length?(b=e,s):b},s.size=function(e){return arguments.length?(c=e,s):c},s.linkDistance=function(e){return arguments.length?(d="function"==typeof e?e:+e,s):d},s.distance=s.linkDistance,s.linkStrength=function(e){return arguments.length?(p="function"==typeof e?e:+e,s):p},s.friction=function(e){return arguments.length?(u=+e,s):u},s.charge=function(e){return arguments.length?(h="function"==typeof e?e:+e,s):h},s.chargeDistance=function(e){return arguments.length?(f=e*e,s):Math.sqrt(f)},s.gravity=function(e){return arguments.length?(m=+e,s):m},s.theta=function(e){return arguments.length?(g=e*e,s):Math.sqrt(g)},s.alpha=function(e){return arguments.length?(e=+e,r?e>0?r=e:(t.c=null,t.t=NaN,t=null,l.end({type:"end",alpha:r=0})):e>0&&(l.start({type:"start",alpha:r=e}),t=vt(s.tick)),s):r},s.start=function(){var e,t,n,r=y.length,l=b.length,u=c[0],f=c[1];for(e=0;e<r;++e)(n=y[e]).index=e,n.weight=0;for(e=0;e<l;++e)"number"==typeof(n=b[e]).source&&(n.source=y[n.source]),"number"==typeof n.target&&(n.target=y[n.target]),++n.source.weight,++n.target.weight;for(e=0;e<r;++e)n=y[e],isNaN(n.x)&&(n.x=m("x",u)),isNaN(n.y)&&(n.y=m("y",f)),isNaN(n.px)&&(n.px=n.x),isNaN(n.py)&&(n.py=n.y);if(a=[],"function"==typeof d)for(e=0;e<l;++e)a[e]=+d.call(this,b[e],e);else for(e=0;e<l;++e)a[e]=d;if(i=[],"function"==typeof p)for(e=0;e<l;++e)i[e]=+p.call(this,b[e],e);else for(e=0;e<l;++e)i[e]=p;if(o=[],"function"==typeof h)for(e=0;e<r;++e)o[e]=+h.call(this,y[e],e);else for(e=0;e<r;++e)o[e]=h;function m(n,a){if(!t){for(t=new Array(r),c=0;c<r;++c)t[c]=[];for(c=0;c<l;++c){var i=b[c];t[i.source.index].push(i.target),t[i.target.index].push(i.source)}}for(var o,s=t[e],c=-1,u=s.length;++c<u;)if(!isNaN(o=s[c][n]))return o;return Math.random()*a}return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){if(n||(n=e.behavior.drag().origin(S).on("dragstart.force",Xn).on("drag.force",M).on("dragend.force",Gn)),!arguments.length)return n;this.on("mouseover.force",Yn).on("mouseout.force",Zn).call(n)},e.rebind(s,l,"on")};var Jn=20,Qn=1,Kn=1/0;function er(t,n){return e.rebind(t,n,"sort","children","value"),t.nodes=t,t.links=or,t}function tr(e,t){for(var n=[e];null!=(e=n.pop());)if(t(e),(a=e.children)&&(r=a.length))for(var r,a;--r>=0;)n.push(a[r])}function nr(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(i=e.children)&&(a=i.length))for(var a,i,o=-1;++o<a;)n.push(i[o]);for(;null!=(e=r.pop());)t(e)}function rr(e){return e.children}function ar(e){return e.value}function ir(e,t){return t.value-e.value}function or(t){return e.merge(t.map(function(e){return(e.children||[]).map(function(t){return{source:e,target:t}})}))}e.layout.hierarchy=function(){var e=ir,t=rr,n=ar;function r(a){var i,o=[a],s=[];for(a.depth=0;null!=(i=o.pop());)if(s.push(i),(c=t.call(r,i,i.depth))&&(l=c.length)){for(var l,c,u;--l>=0;)o.push(u=c[l]),u.parent=i,u.depth=i.depth+1;n&&(i.value=0),i.children=c}else n&&(i.value=+n.call(r,i,i.depth)||0),delete i.children;return nr(a,function(t){var r,a;e&&(r=t.children)&&r.sort(e),n&&(a=t.parent)&&(a.value+=t.value)}),s}return r.sort=function(t){return arguments.length?(e=t,r):e},r.children=function(e){return arguments.length?(t=e,r):t},r.value=function(e){return arguments.length?(n=e,r):n},r.revalue=function(e){return n&&(tr(e,function(e){e.children&&(e.value=0)}),nr(e,function(e){var t;e.children||(e.value=+n.call(r,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)})),e},r},e.layout.partition=function(){var t=e.layout.hierarchy(),n=[1,1];function r(e,t,n,a){var i=e.children;if(e.x=t,e.y=e.depth*a,e.dx=n,e.dy=a,i&&(o=i.length)){var o,s,l,c=-1;for(n=e.value?n/e.value:0;++c<o;)r(s=i[c],t,l=s.value*n,a),t+=l}}function a(e){var t=e.children,n=0;if(t&&(r=t.length))for(var r,i=-1;++i<r;)n=Math.max(n,a(t[i]));return 1+n}function i(e,i){var o=t.call(this,e,i);return r(o[0],0,n[0],n[1]/a(o[0])),o}return i.size=function(e){return arguments.length?(n=e,i):n},er(i,t)},e.layout.pie=function(){var t=Number,n=sr,r=0,a=Ae,i=0;function o(s){var l,c=s.length,u=s.map(function(e,n){return+t.call(o,e,n)}),d=+("function"==typeof r?r.apply(this,arguments):r),p=("function"==typeof a?a.apply(this,arguments):a)-d,h=Math.min(Math.abs(p)/c,+("function"==typeof i?i.apply(this,arguments):i)),f=h*(p<0?-1:1),m=e.sum(u),g=m?(p-c*f)/m:0,y=e.range(c),b=[];return null!=n&&y.sort(n===sr?function(e,t){return u[t]-u[e]}:function(e,t){return n(s[e],s[t])}),y.forEach(function(e){b[e]={data:s[e],value:l=u[e],startAngle:d,endAngle:d+=l*g+f,padAngle:h}}),b}return o.value=function(e){return arguments.length?(t=e,o):t},o.sort=function(e){return arguments.length?(n=e,o):n},o.startAngle=function(e){return arguments.length?(r=e,o):r},o.endAngle=function(e){return arguments.length?(a=e,o):a},o.padAngle=function(e){return arguments.length?(i=e,o):i},o};var sr={};function lr(e){return e.x}function cr(e){return e.y}function ur(e,t,n){e.y0=t,e.y=n}e.layout.stack=function(){var t=S,n=hr,r=fr,a=ur,i=lr,o=cr;function s(l,c){if(!(h=l.length))return l;var u=l.map(function(e,n){return t.call(s,e,n)}),d=u.map(function(e){return e.map(function(e,t){return[i.call(s,e,t),o.call(s,e,t)]})}),p=n.call(s,d,c);u=e.permute(u,p),d=e.permute(d,p);var h,f,m,g,y=r.call(s,d,c),b=u[0].length;for(m=0;m<b;++m)for(a.call(s,u[0][m],g=y[m],d[0][m][1]),f=1;f<h;++f)a.call(s,u[f][m],g+=d[f-1][m][1],d[f][m][1]);return l}return s.values=function(e){return arguments.length?(t=e,s):t},s.order=function(e){return arguments.length?(n="function"==typeof e?e:dr.get(e)||hr,s):n},s.offset=function(e){return arguments.length?(r="function"==typeof e?e:pr.get(e)||fr,s):r},s.x=function(e){return arguments.length?(i=e,s):i},s.y=function(e){return arguments.length?(o=e,s):o},s.out=function(e){return arguments.length?(a=e,s):a},s};var dr=e.map({"inside-out":function(t){var n,r,a=t.length,i=t.map(mr),o=t.map(gr),s=e.range(a).sort(function(e,t){return i[e]-i[t]}),l=0,c=0,u=[],d=[];for(n=0;n<a;++n)r=s[n],l<c?(l+=o[r],u.push(r)):(c+=o[r],d.push(r));return d.reverse().concat(u)},reverse:function(t){return e.range(t.length).reverse()},default:hr}),pr=e.map({silhouette:function(e){var t,n,r,a=e.length,i=e[0].length,o=[],s=0,l=[];for(n=0;n<i;++n){for(t=0,r=0;t<a;t++)r+=e[t][n][1];r>s&&(s=r),o.push(r)}for(n=0;n<i;++n)l[n]=(s-o[n])/2;return l},wiggle:function(e){var t,n,r,a,i,o,s,l,c,u=e.length,d=e[0],p=d.length,h=[];for(h[0]=l=c=0,n=1;n<p;++n){for(t=0,a=0;t<u;++t)a+=e[t][n][1];for(t=0,i=0,s=d[n][0]-d[n-1][0];t<u;++t){for(r=0,o=(e[t][n][1]-e[t][n-1][1])/(2*s);r<t;++r)o+=(e[r][n][1]-e[r][n-1][1])/s;i+=o*e[t][n][1]}h[n]=l-=a?i/a*s:0,l<c&&(c=l)}for(n=0;n<p;++n)h[n]-=c;return h},expand:function(e){var t,n,r,a=e.length,i=e[0].length,o=1/a,s=[];for(n=0;n<i;++n){for(t=0,r=0;t<a;t++)r+=e[t][n][1];if(r)for(t=0;t<a;t++)e[t][n][1]/=r;else for(t=0;t<a;t++)e[t][n][1]=o}for(n=0;n<i;++n)s[n]=0;return s},zero:fr});function hr(t){return e.range(t.length)}function fr(e){for(var t=-1,n=e[0].length,r=[];++t<n;)r[t]=0;return r}function mr(e){for(var t,n=1,r=0,a=e[0][1],i=e.length;n<i;++n)(t=e[n][1])>a&&(r=n,a=t);return r}function gr(e){return e.reduce(yr,0)}function yr(e,t){return e+t[1]}function br(e,t){return vr(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function vr(e,t){for(var n=-1,r=+e[0],a=(e[1]-r)/t,i=[];++n<=t;)i[n]=a*n+r;return i}function Mr(t){return[e.min(t),e.max(t)]}function xr(e,t){return e.value-t.value}function zr(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function _r(e,t){e._pack_next=t,t._pack_prev=e}function Ar(e,t){var n=t.x-e.x,r=t.y-e.y,a=e.r+t.r;return.999*a*a>n*n+r*r}function Or(e){if((t=e.children)&&(l=t.length)){var t,n,r,a,i,o,s,l,c=1/0,u=-1/0,d=1/0,p=-1/0;if(t.forEach(wr),(n=t[0]).x=-n.r,n.y=0,v(n),l>1&&((r=t[1]).x=r.r,r.y=0,v(r),l>2))for(Sr(n,r,a=t[2]),v(a),zr(n,a),n._pack_prev=a,zr(a,r),r=n._pack_next,i=3;i<l;i++){Sr(n,r,a=t[i]);var h=0,f=1,m=1;for(o=r._pack_next;o!==r;o=o._pack_next,f++)if(Ar(o,a)){h=1;break}if(1==h)for(s=n._pack_prev;s!==o._pack_prev&&!Ar(s,a);s=s._pack_prev,m++);h?(f<m||f==m&&r.r<n.r?_r(n,r=o):_r(n=s,r),i--):(zr(n,a),r=a,v(a))}var g=(c+u)/2,y=(d+p)/2,b=0;for(i=0;i<l;i++)(a=t[i]).x-=g,a.y-=y,b=Math.max(b,a.r+Math.sqrt(a.x*a.x+a.y*a.y));e.r=b,t.forEach(kr)}function v(e){c=Math.min(e.x-e.r,c),u=Math.max(e.x+e.r,u),d=Math.min(e.y-e.r,d),p=Math.max(e.y+e.r,p)}}function wr(e){e._pack_next=e._pack_prev=e}function kr(e){delete e._pack_next,delete e._pack_prev}function Tr(e,t,n,r){var a=e.children;if(e.x=t+=r*e.x,e.y=n+=r*e.y,e.r*=r,a)for(var i=-1,o=a.length;++i<o;)Tr(a[i],t,n,r)}function Sr(e,t,n){var r=e.r+n.r,a=t.x-e.x,i=t.y-e.y;if(r&&(a||i)){var o=t.r+n.r,s=a*a+i*i,l=.5+((r*=r)-(o*=o))/(2*s),c=Math.sqrt(Math.max(0,2*o*(r+s)-(r-=s)*r-o*o))/(2*s);n.x=e.x+l*a+c*i,n.y=e.y+l*i-c*a}else n.x=e.x+r,n.y=e.y}function Cr(e,t){return e.parent==t.parent?1:2}function Er(e){var t=e.children;return t.length?t[0]:e.t}function qr(e){var t,n=e.children;return(t=n.length)?n[t-1]:e.t}function Dr(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Rr(e,t,n){return e.a.parent===t.parent?e.a:n}function Lr(e){var t=e.children;return t&&t.length?Lr(t[0]):e}function Ir(e){var t,n=e.children;return n&&(t=n.length)?Ir(n[t-1]):e}function Wr(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function Nr(e,t){var n=e.x+t[3],r=e.y+t[0],a=e.dx-t[1]-t[3],i=e.dy-t[0]-t[2];return a<0&&(n+=a/2,a=0),i<0&&(r+=i/2,i=0),{x:n,y:r,dx:a,dy:i}}function Pr(e){var t=e[0],n=e[e.length-1];return t<n?[t,n]:[n,t]}function Br(e){return e.rangeExtent?e.rangeExtent():Pr(e.range())}function Fr(e,t,n,r){var a=n(e[0],e[1]),i=r(t[0],t[1]);return function(e){return i(a(e))}}function jr(e,t){var n,r=0,a=e.length-1,i=e[r],o=e[a];return o<i&&(n=r,r=a,a=n,n=i,i=o,o=n),e[r]=t.floor(i),e[a]=t.ceil(o),e}function Ur(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:Vr}e.layout.histogram=function(){var t=!0,n=Number,r=Mr,a=br;function i(i,o){for(var s,l,c=[],u=i.map(n,this),d=r.call(this,u,o),p=a.call(this,d,u,o),h=(o=-1,u.length),f=p.length-1,m=t?1:1/h;++o<f;)(s=c[o]=[]).dx=p[o+1]-(s.x=p[o]),s.y=0;if(f>0)for(o=-1;++o<h;)(l=u[o])>=d[0]&&l<=d[1]&&((s=c[e.bisect(p,l,1,f)-1]).y+=m,s.push(i[o]));return c}return i.value=function(e){return arguments.length?(n=e,i):n},i.range=function(e){return arguments.length?(r=dt(e),i):r},i.bins=function(e){return arguments.length?(a="number"==typeof e?function(t){return vr(t,e)}:dt(e),i):a},i.frequency=function(e){return arguments.length?(t=!!e,i):t},i},e.layout.pack=function(){var t,n=e.layout.hierarchy().sort(xr),r=0,a=[1,1];function i(e,i){var o=n.call(this,e,i),s=o[0],l=a[0],c=a[1],u=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(s.x=s.y=0,nr(s,function(e){e.r=+u(e.value)}),nr(s,Or),r){var d=r*(t?1:Math.max(2*s.r/l,2*s.r/c))/2;nr(s,function(e){e.r+=d}),nr(s,Or),nr(s,function(e){e.r-=d})}return Tr(s,l/2,c/2,t?1:1/Math.max(2*s.r/l,2*s.r/c)),o}return i.size=function(e){return arguments.length?(a=e,i):a},i.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,i):t},i.padding=function(e){return arguments.length?(r=+e,i):r},er(i,n)},e.layout.tree=function(){var t=e.layout.hierarchy().sort(null).value(null),n=Cr,r=[1,1],a=null;function i(e,i){var c=t.call(this,e,i),u=c[0],d=function(e){for(var t,n={A:null,children:[e]},r=[n];null!=(t=r.pop());)for(var a,i=t.children,o=0,s=i.length;o<s;++o)r.push((i[o]=a={_:i[o],parent:t,children:(a=i[o].children)&&a.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=a);return n.children[0]}(u);if(nr(d,o),d.parent.m=-d.z,tr(d,s),a)tr(u,l);else{var p=u,h=u,f=u;tr(u,function(e){e.x<p.x&&(p=e),e.x>h.x&&(h=e),e.depth>f.depth&&(f=e)});var m=n(p,h)/2-p.x,g=r[0]/(h.x+n(h,p)/2+m),y=r[1]/(f.depth||1);tr(u,function(e){e.x=(e.x+m)*g,e.y=e.depth*y})}return c}function o(e){var t=e.children,r=e.parent.children,a=e.i?r[e.i-1]:null;if(t.length){!function(e){for(var t,n=0,r=0,a=e.children,i=a.length;--i>=0;)(t=a[i]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(e);var i=(t[0].z+t[t.length-1].z)/2;a?(e.z=a.z+n(e._,a._),e.m=e.z-i):e.z=i}else a&&(e.z=a.z+n(e._,a._));e.parent.A=function(e,t,r){if(t){for(var a,i=e,o=e,s=t,l=i.parent.children[0],c=i.m,u=o.m,d=s.m,p=l.m;s=qr(s),i=Er(i),s&&i;)l=Er(l),(o=qr(o)).a=e,(a=s.z+d-i.z-c+n(s._,i._))>0&&(Dr(Rr(s,e,r),e,a),c+=a,u+=a),d+=s.m,c+=i.m,p+=l.m,u+=o.m;s&&!qr(o)&&(o.t=s,o.m+=d-u),i&&!Er(l)&&(l.t=i,l.m+=c-p,r=e)}return r}(e,a,e.parent.A||r[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function l(e){e.x*=r[0],e.y=e.depth*r[1]}return i.separation=function(e){return arguments.length?(n=e,i):n},i.size=function(e){return arguments.length?(a=null==(r=e)?l:null,i):a?null:r},i.nodeSize=function(e){return arguments.length?(a=null==(r=e)?null:l,i):a?r:null},er(i,t)},e.layout.cluster=function(){var t=e.layout.hierarchy().sort(null).value(null),n=Cr,r=[1,1],a=!1;function i(i,o){var s,l=t.call(this,i,o),c=l[0],u=0;nr(c,function(t){var r=t.children;r&&r.length?(t.x=function(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}(r),t.y=function(t){return 1+e.max(t,function(e){return e.y})}(r)):(t.x=s?u+=n(t,s):0,t.y=0,s=t)});var d=Lr(c),p=Ir(c),h=d.x-n(d,p)/2,f=p.x+n(p,d)/2;return nr(c,a?function(e){e.x=(e.x-c.x)*r[0],e.y=(c.y-e.y)*r[1]}:function(e){e.x=(e.x-h)/(f-h)*r[0],e.y=(1-(c.y?e.y/c.y:1))*r[1]}),l}return i.separation=function(e){return arguments.length?(n=e,i):n},i.size=function(e){return arguments.length?(a=null==(r=e),i):a?null:r},i.nodeSize=function(e){return arguments.length?(a=null!=(r=e),i):a?r:null},er(i,t)},e.layout.treemap=function(){var t,n=e.layout.hierarchy(),r=Math.round,a=[1,1],i=null,o=Wr,s=!1,l="squarify",c=.5*(1+Math.sqrt(5));function u(e,t){for(var n,r,a=-1,i=e.length;++a<i;)r=(n=e[a]).value*(t<0?0:t),n.area=isNaN(r)||r<=0?0:r}function d(e){var t=e.children;if(t&&t.length){var n,r,a,i=o(e),s=[],c=t.slice(),p=1/0,m="slice"===l?i.dx:"dice"===l?i.dy:"slice-dice"===l?1&e.depth?i.dy:i.dx:Math.min(i.dx,i.dy);for(u(c,i.dx*i.dy/e.value),s.area=0;(a=c.length)>0;)s.push(n=c[a-1]),s.area+=n.area,"squarify"!==l||(r=h(s,m))<=p?(c.pop(),p=r):(s.area-=s.pop().area,f(s,m,i,!1),m=Math.min(i.dx,i.dy),s.length=s.area=0,p=1/0);s.length&&(f(s,m,i,!0),s.length=s.area=0),t.forEach(d)}}function p(e){var t=e.children;if(t&&t.length){var n,r=o(e),a=t.slice(),i=[];for(u(a,r.dx*r.dy/e.value),i.area=0;n=a.pop();)i.push(n),i.area+=n.area,null!=n.z&&(f(i,n.z?r.dx:r.dy,r,!a.length),i.length=i.area=0);t.forEach(p)}}function h(e,t){for(var n,r=e.area,a=0,i=1/0,o=-1,s=e.length;++o<s;)(n=e[o].area)&&(n<i&&(i=n),n>a&&(a=n));return t*=t,(r*=r)?Math.max(t*a*c/r,r/(t*i*c)):1/0}function f(e,t,n,a){var i,o=-1,s=e.length,l=n.x,c=n.y,u=t?r(e.area/t):0;if(t==n.dx){for((a||u>n.dy)&&(u=n.dy);++o<s;)(i=e[o]).x=l,i.y=c,i.dy=u,l+=i.dx=Math.min(n.x+n.dx-l,u?r(i.area/u):0);i.z=!0,i.dx+=n.x+n.dx-l,n.y+=u,n.dy-=u}else{for((a||u>n.dx)&&(u=n.dx);++o<s;)(i=e[o]).x=l,i.y=c,i.dx=u,c+=i.dy=Math.min(n.y+n.dy-c,u?r(i.area/u):0);i.z=!1,i.dy+=n.y+n.dy-c,n.x+=u,n.dx-=u}}function m(e){var r=t||n(e),i=r[0];return i.x=i.y=0,i.value?(i.dx=a[0],i.dy=a[1]):i.dx=i.dy=0,t&&n.revalue(i),u([i],i.dx*i.dy/i.value),(t?p:d)(i),s&&(t=r),r}return m.size=function(e){return arguments.length?(a=e,m):a},m.padding=function(e){if(!arguments.length)return i;var t;return o=null==(i=e)?Wr:"function"==(t=typeof e)?function(t){var n=e.call(m,t,t.depth);return null==n?Wr(t):Nr(t,"number"==typeof n?[n,n,n,n]:n)}:("number"===t&&(e=[e,e,e,e]),function(t){return Nr(t,e)}),m},m.round=function(e){return arguments.length?(r=e?Math.round:Number,m):r!=Number},m.sticky=function(e){return arguments.length?(s=e,t=null,m):s},m.ratio=function(e){return arguments.length?(c=e,m):c},m.mode=function(e){return arguments.length?(l=e+"",m):l},er(m,n)},e.random={normal:function(e,t){var n=arguments.length;return n<2&&(t=1),n<1&&(e=0),function(){var n,r,a;do{a=(n=2*Math.random()-1)*n+(r=2*Math.random()-1)*r}while(!a||a>1);return e+t*n*Math.sqrt(-2*Math.log(a)/a)}},logNormal:function(){var t=e.random.normal.apply(e,arguments);return function(){return Math.exp(t())}},bates:function(t){var n=e.random.irwinHall(t);return function(){return n()/t}},irwinHall:function(e){return function(){for(var t=0,n=0;n<e;n++)t+=Math.random();return t}}},e.scale={};var Vr={floor:S,ceil:S};function Hr(t,n,r,a){var i=[],o=[],s=0,l=Math.min(t.length,n.length)-1;for(t[l]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++s<=l;)i.push(r(t[s-1],t[s])),o.push(a(n[s-1],n[s]));return function(n){var r=e.bisect(t,n,1,l)-1;return o[r](i[r](n))}}function Xr(e,t,n,r){var a,i;function o(){var o=Math.min(e.length,t.length)>2?Hr:Fr,l=r?Un:jn;return a=o(e,t,l,n),i=o(t,e,l,xn),s}function s(e){return a(e)}return s.invert=function(e){return i(e)},s.domain=function(t){return arguments.length?(e=t.map(Number),o()):e},s.range=function(e){return arguments.length?(t=e,o()):t},s.rangeRound=function(e){return s.range(e).interpolate(Ln)},s.clamp=function(e){return arguments.length?(r=e,o()):r},s.interpolate=function(e){return arguments.length?(n=e,o()):n},s.ticks=function(t){return $r(e,t)},s.tickFormat=function(t,n){return d3_scale_linearTickFormat(e,t,n)},s.nice=function(t){return Yr(e,t),o()},s.copy=function(){return Xr(e,t,n,r)},o()}function Gr(t,n){return e.rebind(t,n,"range","rangeRound","interpolate","clamp")}function Yr(e,t){return jr(e,Ur(Zr(e,t)[2])),jr(e,Ur(Zr(e,t)[2])),e}function Zr(e,t){null==t&&(t=10);var n=Pr(e),r=n[1]-n[0],a=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),i=t/r*a;return i<=.15?a*=10:i<=.35?a*=5:i<=.75&&(a*=2),n[0]=Math.ceil(n[0]/a)*a,n[1]=Math.floor(n[1]/a)*a+.5*a,n[2]=a,n}function $r(t,n){return e.range.apply(e,Zr(t,n))}e.scale.linear=function(){return Xr([0,1],[0,1],xn,!1)};function Jr(e,t,n,r){function a(e){return(n?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function i(e){return n?Math.pow(t,e):-Math.pow(t,-e)}function o(t){return e(a(t))}return o.invert=function(t){return i(e.invert(t))},o.domain=function(t){return arguments.length?(n=t[0]>=0,e.domain((r=t.map(Number)).map(a)),o):r},o.base=function(n){return arguments.length?(t=+n,e.domain(r.map(a)),o):t},o.nice=function(){var t=jr(r.map(a),n?Math:Qr);return e.domain(t),r=t.map(i),o},o.ticks=function(){var e=Pr(r),o=[],s=e[0],l=e[1],c=Math.floor(a(s)),u=Math.ceil(a(l)),d=t%1?2:t;if(isFinite(u-c)){if(n){for(;c<u;c++)for(var p=1;p<d;p++)o.push(i(c)*p);o.push(i(c))}else for(o.push(i(c));c++<u;)for(p=d-1;p>0;p--)o.push(i(c)*p);for(c=0;o[c]<s;c++);for(u=o.length;o[u-1]>l;u--);o=o.slice(c,u)}return o},o.copy=function(){return Jr(e.copy(),t,n,r)},Gr(o,e)}e.scale.log=function(){return Jr(e.scale.linear().domain([0,1]),10,!0,[1,10])};var Qr={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};function Kr(e,t,n){var r=ea(t),a=ea(1/t);function i(t){return e(r(t))}return i.invert=function(t){return a(e.invert(t))},i.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(r)),i):n},i.ticks=function(e){return $r(n,e)},i.tickFormat=function(e,t){return d3_scale_linearTickFormat(n,e,t)},i.nice=function(e){return i.domain(Yr(n,e))},i.exponent=function(o){return arguments.length?(r=ea(t=o),a=ea(1/t),e.domain(n.map(r)),i):t},i.copy=function(){return Kr(e.copy(),t,n)},Gr(i,e)}function ea(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ta(t,n){var r,a,i;function o(e){return a[((r.get(e)||("range"===n.t?r.set(e,t.push(e)):NaN))-1)%a.length]}function s(n,r){return e.range(t.length).map(function(e){return n+r*e})}return o.domain=function(e){if(!arguments.length)return t;t=[],r=new M;for(var a,i=-1,s=e.length;++i<s;)r.has(a=e[i])||r.set(a,t.push(a));return o[n.t].apply(o,n.a)},o.range=function(e){return arguments.length?(a=e,i=0,n={t:"range",a:arguments},o):a},o.rangePoints=function(e,r){arguments.length<2&&(r=0);var l=e[0],c=e[1],u=t.length<2?(l=(l+c)/2,0):(c-l)/(t.length-1+r);return a=s(l+u*r/2,u),i=0,n={t:"rangePoints",a:arguments},o},o.rangeRoundPoints=function(e,r){arguments.length<2&&(r=0);var l=e[0],c=e[1],u=t.length<2?(l=c=Math.round((l+c)/2),0):(c-l)/(t.length-1+r)|0;return a=s(l+Math.round(u*r/2+(c-l-(t.length-1+r)*u)/2),u),i=0,n={t:"rangeRoundPoints",a:arguments},o},o.rangeBands=function(e,r,l){arguments.length<2&&(r=0),arguments.length<3&&(l=r);var c=e[1]<e[0],u=e[c-0],d=(e[1-c]-u)/(t.length-r+2*l);return a=s(u+d*l,d),c&&a.reverse(),i=d*(1-r),n={t:"rangeBands",a:arguments},o},o.rangeRoundBands=function(e,r,l){arguments.length<2&&(r=0),arguments.length<3&&(l=r);var c=e[1]<e[0],u=e[c-0],d=e[1-c],p=Math.floor((d-u)/(t.length-r+2*l));return a=s(u+Math.round((d-u-(t.length-r)*p)/2),p),c&&a.reverse(),i=Math.round(p*(1-r)),n={t:"rangeRoundBands",a:arguments},o},o.rangeBand=function(){return i},o.rangeExtent=function(){return Pr(n.a[0])},o.copy=function(){return ta(t,n)},o.domain(t)}e.scale.pow=function(){return Kr(e.scale.linear(),1,[0,1])},e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return ta([],{t:"range",a:[[]]})},e.scale.category10=function(){return e.scale.ordinal().range(na)},e.scale.category20=function(){return e.scale.ordinal().range(ra)},e.scale.category20b=function(){return e.scale.ordinal().range(aa)},e.scale.category20c=function(){return e.scale.ordinal().range(ia)};var na=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(nt),ra=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(nt),aa=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(nt),ia=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(nt);function oa(t,n){var r;function a(){var a=0,o=n.length;for(r=[];++a<o;)r[a-1]=e.quantile(t,a/o);return i}function i(t){if(!isNaN(t=+t))return n[e.bisect(r,t)]}return i.domain=function(e){return arguments.length?(t=e.map(h).filter(f).sort(p),a()):t},i.range=function(e){return arguments.length?(n=e,a()):n},i.quantiles=function(){return r},i.invertExtent=function(e){return(e=n.indexOf(e))<0?[NaN,NaN]:[e>0?r[e-1]:t[0],e<r.length?r[e]:t[t.length-1]]},i.copy=function(){return oa(t,n)},a()}function sa(e,t,n){var r,a;function i(t){return n[Math.max(0,Math.min(a,Math.floor(r*(t-e))))]}function o(){return r=n.length/(t-e),a=n.length-1,i}return i.domain=function(n){return arguments.length?(e=+n[0],t=+n[n.length-1],o()):[e,t]},i.range=function(e){return arguments.length?(n=e,o()):n},i.invertExtent=function(t){return[t=(t=n.indexOf(t))<0?NaN:t/r+e,t+1/r]},i.copy=function(){return sa(e,t,n)},o()}function la(t,n){function r(r){if(r<=r)return n[e.bisect(t,r)]}return r.domain=function(e){return arguments.length?(t=e,r):t},r.range=function(e){return arguments.length?(n=e,r):n},r.invertExtent=function(e){return e=n.indexOf(e),[t[e-1],t[e]]},r.copy=function(){return la(t,n)},r}function ca(e){function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=n.map(t),t):e},t.ticks=function(t){return $r(e,t)},t.tickFormat=function(t,n){return d3_scale_linearTickFormat(e,t,n)},t.copy=function(){return ca(e)},t}function ua(){return 0}e.scale.quantile=function(){return oa([],[])},e.scale.quantize=function(){return sa(0,1,[0,1])},e.scale.threshold=function(){return la([.5],[0,1])},e.scale.identity=function(){return ca([0,1])},e.svg={},e.svg.arc=function(){var e=pa,t=ha,n=ua,r=da,a=fa,i=ma,o=ga;function s(){var s=Math.max(0,+e.apply(this,arguments)),c=Math.max(0,+t.apply(this,arguments)),u=a.apply(this,arguments)-we,d=i.apply(this,arguments)-we,p=Math.abs(d-u),h=u>d?0:1;if(c<s&&(f=c,c=s,s=f),p>=Oe)return l(c,h)+(s?l(s,1-h):"")+"Z";var f,m,g,y,b,v,M,x,z,_,A,O,w=0,k=0,T=[];if((y=(+o.apply(this,arguments)||0)/2)&&(g=r===da?Math.sqrt(s*s+c*c):+r.apply(this,arguments),h||(k*=-1),c&&(k=Ce(g/c*Math.sin(y))),s&&(w=Ce(g/s*Math.sin(y)))),c){b=c*Math.cos(u+k),v=c*Math.sin(u+k),M=c*Math.cos(d-k),x=c*Math.sin(d-k);var S=Math.abs(d-u-2*k)<=_e?0:1;if(k&&ya(b,v,M,x)===h^S){var C=(u+d)/2;b=c*Math.cos(C),v=c*Math.sin(C),M=x=null}}else b=v=0;if(s){z=s*Math.cos(d-w),_=s*Math.sin(d-w),A=s*Math.cos(u+w),O=s*Math.sin(u+w);var E=Math.abs(u-d+2*w)<=_e?0:1;if(w&&ya(z,_,A,O)===1-h^E){var q=(u+d)/2;z=s*Math.cos(q),_=s*Math.sin(q),A=O=null}}else z=_=0;if(p>ze&&(f=Math.min(Math.abs(c-s)/2,+n.apply(this,arguments)))>.001){m=s<c^h?0:1;var D=f,R=f;if(p<_e){var L=null==A?[z,_]:null==M?[b,v]:St([b,v],[A,O],[M,x],[z,_]),I=b-L[0],W=v-L[1],N=M-L[0],P=x-L[1],B=1/Math.sin(Math.acos((I*N+W*P)/(Math.sqrt(I*I+W*W)*Math.sqrt(N*N+P*P)))/2),F=Math.sqrt(L[0]*L[0]+L[1]*L[1]);R=Math.min(f,(s-F)/(B-1)),D=Math.min(f,(c-F)/(B+1))}if(null!=M){var j=ba(null==A?[z,_]:[A,O],[b,v],c,D,h),U=ba([M,x],[z,_],c,D,h);f===D?T.push("M",j[0],"A",D,",",D," 0 0,",m," ",j[1],"A",c,",",c," 0 ",1-h^ya(j[1][0],j[1][1],U[1][0],U[1][1]),",",h," ",U[1],"A",D,",",D," 0 0,",m," ",U[0]):T.push("M",j[0],"A",D,",",D," 0 1,",m," ",U[0])}else T.push("M",b,",",v);if(null!=A){var V=ba([b,v],[A,O],s,-R,h),H=ba([z,_],null==M?[b,v]:[M,x],s,-R,h);f===R?T.push("L",H[0],"A",R,",",R," 0 0,",m," ",H[1],"A",s,",",s," 0 ",h^ya(H[1][0],H[1][1],V[1][0],V[1][1]),",",1-h," ",V[1],"A",R,",",R," 0 0,",m," ",V[0]):T.push("L",H[0],"A",R,",",R," 0 0,",m," ",V[0])}else T.push("L",z,",",_)}else T.push("M",b,",",v),null!=M&&T.push("A",c,",",c," 0 ",S,",",h," ",M,",",x),T.push("L",z,",",_),null!=A&&T.push("A",s,",",s," 0 ",E,",",1-h," ",A,",",O);return T.push("Z"),T.join("")}function l(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}return s.innerRadius=function(t){return arguments.length?(e=dt(t),s):e},s.outerRadius=function(e){return arguments.length?(t=dt(e),s):t},s.cornerRadius=function(e){return arguments.length?(n=dt(e),s):n},s.padRadius=function(e){return arguments.length?(r=e==da?da:dt(e),s):r},s.startAngle=function(e){return arguments.length?(a=dt(e),s):a},s.endAngle=function(e){return arguments.length?(i=dt(e),s):i},s.padAngle=function(e){return arguments.length?(o=dt(e),s):o},s.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-we;return[Math.cos(r)*n,Math.sin(r)*n]},s};var da="auto";function pa(e){return e.innerRadius}function ha(e){return e.outerRadius}function fa(e){return e.startAngle}function ma(e){return e.endAngle}function ga(e){return e&&e.padAngle}function ya(e,t,n,r){return(e-n)*t-(t-r)*e>0?0:1}function ba(e,t,n,r,a){var i=e[0]-t[0],o=e[1]-t[1],s=(a?r:-r)/Math.sqrt(i*i+o*o),l=s*o,c=-s*i,u=e[0]+l,d=e[1]+c,p=t[0]+l,h=t[1]+c,f=(u+p)/2,m=(d+h)/2,g=p-u,y=h-d,b=g*g+y*y,v=n-r,M=u*h-p*d,x=(y<0?-1:1)*Math.sqrt(Math.max(0,v*v*b-M*M)),z=(M*y-g*x)/b,_=(-M*g-y*x)/b,A=(M*y+g*x)/b,O=(-M*g+y*x)/b,w=z-f,k=_-m,T=A-f,S=O-m;return w*w+k*k>T*T+S*S&&(z=A,_=O),[[z-l,_-c],[z*n/v,_*n/v]]}function va(){return!0}function Ma(e){var t=_t,n=At,r=va,a=za,i=a.key,o=.7;function s(i){var s,l=[],c=[],u=-1,d=i.length,p=dt(t),h=dt(n);function f(){l.push("M",a(e(c),o))}for(;++u<d;)r.call(this,s=i[u],u)?c.push([+p.call(this,s,u),+h.call(this,s,u)]):c.length&&(f(),c=[]);return c.length&&f(),l.length?l.join(""):null}return s.x=function(e){return arguments.length?(t=e,s):t},s.y=function(e){return arguments.length?(n=e,s):n},s.defined=function(e){return arguments.length?(r=e,s):r},s.interpolate=function(e){return arguments.length?(i="function"==typeof e?a=e:(a=xa.get(e)||za).key,s):i},s.tension=function(e){return arguments.length?(o=e,s):o},s}e.svg.line=function(){return Ma(S)};var xa=e.map({linear:za,"linear-closed":_a,step:function(e){for(var t=0,n=e.length,r=e[0],a=[r[0],",",r[1]];++t<n;)a.push("H",(r[0]+(r=e[t])[0])/2,"V",r[1]);return n>1&&a.push("H",r[0]),a.join("")},"step-before":Aa,"step-after":Oa,basis:Ta,"basis-open":function(e){if(e.length<4)return za(e);for(var t,n=[],r=-1,a=e.length,i=[0],o=[0];++r<3;)t=e[r],i.push(t[0]),o.push(t[1]);for(n.push(Sa(qa,i)+","+Sa(qa,o)),--r;++r<a;)t=e[r],i.shift(),i.push(t[0]),o.shift(),o.push(t[1]),Da(n,i,o);return n.join("")},"basis-closed":function(e){for(var t,n,r=-1,a=e.length,i=a+4,o=[],s=[];++r<4;)n=e[r%a],o.push(n[0]),s.push(n[1]);for(t=[Sa(qa,o),",",Sa(qa,s)],--r;++r<i;)n=e[r%a],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),Da(t,o,s);return t.join("")},bundle:function(e,t){var n=e.length-1;if(n)for(var r,a,i=e[0][0],o=e[0][1],s=e[n][0]-i,l=e[n][1]-o,c=-1;++c<=n;)r=e[c],a=c/n,r[0]=t*r[0]+(1-t)*(i+a*s),r[1]=t*r[1]+(1-t)*(o+a*l);return Ta(e)},cardinal:function(e,t){return e.length<3?za(e):e[0]+wa(e,ka(e,t))},"cardinal-open":function(e,t){return e.length<4?za(e):e[1]+wa(e.slice(1,-1),ka(e,t))},"cardinal-closed":function(e,t){return e.length<3?_a(e):e[0]+wa((e.push(e[0]),e),ka([e[e.length-2]].concat(e,[e[1]]),t))},monotone:function(e){return e.length<3?za(e):e[0]+wa(e,function(e){for(var t,n,r,a,i=[],o=function(e){for(var t=0,n=e.length-1,r=[],a=e[0],i=e[1],o=r[0]=Ra(a,i);++t<n;)r[t]=(o+(o=Ra(a=i,i=e[t+1])))/2;return r[t]=o,r}(e),s=-1,l=e.length-1;++s<l;)t=Ra(e[s],e[s+1]),b(t)<ze?o[s]=o[s+1]=0:(n=o[s]/t,r=o[s+1]/t,(a=n*n+r*r)>9&&(a=3*t/Math.sqrt(a),o[s]=a*n,o[s+1]=a*r));for(s=-1;++s<=l;)a=(e[Math.min(l,s+1)][0]-e[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),i.push([a||0,o[s]*a||0]);return i}(e))}});function za(e){return e.length>1?e.join("L"):e+"Z"}function _a(e){return e.join("L")+"Z"}function Aa(e){for(var t=0,n=e.length,r=e[0],a=[r[0],",",r[1]];++t<n;)a.push("V",(r=e[t])[1],"H",r[0]);return a.join("")}function Oa(e){for(var t=0,n=e.length,r=e[0],a=[r[0],",",r[1]];++t<n;)a.push("H",(r=e[t])[0],"V",r[1]);return a.join("")}function wa(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return za(e);var n=e.length!=t.length,r="",a=e[0],i=e[1],o=t[0],s=o,l=1;if(n&&(r+="Q"+(i[0]-2*o[0]/3)+","+(i[1]-2*o[1]/3)+","+i[0]+","+i[1],a=e[1],l=2),t.length>1){s=t[1],i=e[l],l++,r+="C"+(a[0]+o[0])+","+(a[1]+o[1])+","+(i[0]-s[0])+","+(i[1]-s[1])+","+i[0]+","+i[1];for(var c=2;c<t.length;c++,l++)i=e[l],s=t[c],r+="S"+(i[0]-s[0])+","+(i[1]-s[1])+","+i[0]+","+i[1]}if(n){var u=e[l];r+="Q"+(i[0]+2*s[0]/3)+","+(i[1]+2*s[1]/3)+","+u[0]+","+u[1]}return r}function ka(e,t){for(var n,r=[],a=(1-t)/2,i=e[0],o=e[1],s=1,l=e.length;++s<l;)n=i,i=o,o=e[s],r.push([a*(o[0]-n[0]),a*(o[1]-n[1])]);return r}function Ta(e){if(e.length<3)return za(e);var t=1,n=e.length,r=e[0],a=r[0],i=r[1],o=[a,a,a,(r=e[1])[0]],s=[i,i,i,r[1]],l=[a,",",i,"L",Sa(qa,o),",",Sa(qa,s)];for(e.push(e[n-1]);++t<=n;)r=e[t],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),Da(l,o,s);return e.pop(),l.push("L",r),l.join("")}function Sa(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}xa.forEach(function(e,t){t.key=e,t.closed=/-closed$/.test(e)});var Ca=[0,2/3,1/3,0],Ea=[0,1/3,2/3,0],qa=[0,1/6,2/3,1/6];function Da(e,t,n){e.push("C",Sa(Ca,t),",",Sa(Ca,n),",",Sa(Ea,t),",",Sa(Ea,n),",",Sa(qa,t),",",Sa(qa,n))}function Ra(e,t){return(t[1]-e[1])/(t[0]-e[0])}function La(e){for(var t,n,r,a=-1,i=e.length;++a<i;)n=(t=e[a])[0],r=t[1]-we,t[0]=n*Math.cos(r),t[1]=n*Math.sin(r);return e}function Ia(e){var t=_t,n=_t,r=0,a=At,i=va,o=za,s=o.key,l=o,c="L",u=.7;function d(s){var d,p,h,f=[],m=[],g=[],y=-1,b=s.length,v=dt(t),M=dt(r),x=t===n?function(){return p}:dt(n),z=r===a?function(){return h}:dt(a);function _(){f.push("M",o(e(g),u),c,l(e(m.reverse()),u),"Z")}for(;++y<b;)i.call(this,d=s[y],y)?(m.push([p=+v.call(this,d,y),h=+M.call(this,d,y)]),g.push([+x.call(this,d,y),+z.call(this,d,y)])):m.length&&(_(),m=[],g=[]);return m.length&&_(),f.length?f.join(""):null}return d.x=function(e){return arguments.length?(t=n=e,d):n},d.x0=function(e){return arguments.length?(t=e,d):t},d.x1=function(e){return arguments.length?(n=e,d):n},d.y=function(e){return arguments.length?(r=a=e,d):a},d.y0=function(e){return arguments.length?(r=e,d):r},d.y1=function(e){return arguments.length?(a=e,d):a},d.defined=function(e){return arguments.length?(i=e,d):i},d.interpolate=function(e){return arguments.length?(s="function"==typeof e?o=e:(o=xa.get(e)||za).key,l=o.reverse||o,c=o.closed?"M":"L",d):s},d.tension=function(e){return arguments.length?(u=e,d):u},d}function Wa(e){return e.source}function Na(e){return e.target}function Pa(e){return e.radius}function Ba(e){return[e.x,e.y]}function Fa(){return 64}function ja(){return"circle"}function Ua(e){var t=Math.sqrt(e/_e);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}e.svg.line.radial=function(){var e=Ma(La);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},Aa.reverse=Oa,Oa.reverse=Aa,e.svg.area=function(){return Ia(S)},e.svg.area.radial=function(){var e=Ia(La);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},e.svg.chord=function(){var e=Wa,t=Na,n=Pa,r=fa,a=ma;function i(n,r){var a=o(this,e,n,r),i=o(this,t,n,r);return"M"+a.p0+s(a.r,a.p1,a.a1-a.a0)+(function(e,t){return e.a0==t.a0&&e.a1==t.a1}(a,i)?l(a.r,a.p1,a.r,a.p0):l(a.r,a.p1,i.r,i.p0)+s(i.r,i.p1,i.a1-i.a0)+l(i.r,i.p1,a.r,a.p0))+"Z"}function o(e,t,i,o){var s=t.call(e,i,o),l=n.call(e,s,o),c=r.call(e,s,o)-we,u=a.call(e,s,o)-we;return{r:l,a0:c,a1:u,p0:[l*Math.cos(c),l*Math.sin(c)],p1:[l*Math.cos(u),l*Math.sin(u)]}}function s(e,t,n){return"A"+e+","+e+" 0 "+ +(n>_e)+",1 "+t}function l(e,t,n,r){return"Q 0,0 "+r}return i.radius=function(e){return arguments.length?(n=dt(e),i):n},i.source=function(t){return arguments.length?(e=dt(t),i):e},i.target=function(e){return arguments.length?(t=dt(e),i):t},i.startAngle=function(e){return arguments.length?(r=dt(e),i):r},i.endAngle=function(e){return arguments.length?(a=dt(e),i):a},i},e.svg.diagonal=function(){var e=Wa,t=Na,n=Ba;function r(r,a){var i=e.call(this,r,a),o=t.call(this,r,a),s=(i.y+o.y)/2,l=[i,{x:i.x,y:s},{x:o.x,y:s},o];return"M"+(l=l.map(n))[0]+"C"+l[1]+" "+l[2]+" "+l[3]}return r.source=function(t){return arguments.length?(e=dt(t),r):e},r.target=function(e){return arguments.length?(t=dt(e),r):t},r.projection=function(e){return arguments.length?(n=e,r):n},r},e.svg.diagonal.radial=function(){var t=e.svg.diagonal(),n=Ba,r=t.projection;return t.projection=function(e){return arguments.length?r(function(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-we;return[n*Math.cos(r),n*Math.sin(r)]}}(n=e)):n},t},e.svg.symbol=function(){var e=ja,t=Fa;function n(n,r){return(Va.get(e.call(this,n,r))||Ua)(t.call(this,n,r))}return n.type=function(t){return arguments.length?(e=dt(t),n):e},n.size=function(e){return arguments.length?(t=dt(e),n):t},n};var Va=e.map({circle:Ua,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Xa)),n=t*Xa;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Ha),n=t*Ha/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Ha),n=t*Ha/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});e.svg.symbolTypes=Va.keys();var Ha=Math.sqrt(3),Xa=Math.tan(30*ke);H.transition=function(e){for(var t,n,r=$a||++Ka,a=ni(e),i=[],o=Ja||{time:Date.now(),ease:Cn,delay:0,duration:250},s=-1,l=this.length;++s<l;){i.push(t=[]);for(var c=this[s],u=-1,d=c.length;++u<d;)(n=c[u])&&ri(n,u,a,r,o),t.push(n)}return Za(i,a,r)},H.interrupt=function(e){return this.each(null==e?Ga:Ya(ni(e)))};var Ga=Ya(ni());function Ya(e){return function(){var t,n,r;(t=this[e])&&(r=t[n=t.active])&&(r.timer.c=null,r.timer.t=NaN,--t.count?delete t[n]:delete this[e],t.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function Za(e,t,n){return B(e,Qa),e.namespace=t,e.id=n,e}var $a,Ja,Qa=[],Ka=0;function ei(e,t,n,r){var a=e.id,i=e.namespace;return ce(e,"function"==typeof n?function(e,o,s){e[i][a].tween.set(t,r(n.call(e,e.__data__,o,s)))}:(n=r(n),function(e){e[i][a].tween.set(t,n)}))}function ti(e){return null==e&&(e=""),function(){this.textContent=e}}function ni(e){return null==e?"__transition__":"__transition_"+e+"__"}function ri(e,t,n,r,a){var i,o,s,l,c,u=e[n]||(e[n]={active:0,count:0}),d=u[r];function p(n){var a=u.active,p=u[a];for(var f in p&&(p.timer.c=null,p.timer.t=NaN,--u.count,delete u[a],p.event&&p.event.interrupt.call(e,e.__data__,p.index)),u)if(+f<r){var m=u[f];m.timer.c=null,m.timer.t=NaN,--u.count,delete u[f]}o.c=h,vt(function(){return o.c&&h(n||1)&&(o.c=null,o.t=NaN),1},0,i),u.active=r,d.event&&d.event.start.call(e,e.__data__,t),c=[],d.tween.forEach(function(n,r){(r=r.call(e,e.__data__,t))&&c.push(r)}),l=d.ease,s=d.duration}function h(a){for(var i=a/s,o=l(i),p=c.length;p>0;)c[--p].call(e,o);if(i>=1)return d.event&&d.event.end.call(e,e.__data__,t),--u.count?delete u[r]:delete e[n],1}d||(i=a.time,o=vt(function(e){var t=d.delay;if(o.t=t+i,t<=e)return p(e-t);o.c=p},0,i),d=u[r]={tween:new M,time:i,timer:o,delay:a.delay,duration:a.duration,ease:a.ease,index:t},a=null,++u.count)}Qa.call=H.call,Qa.empty=H.empty,Qa.node=H.node,Qa.size=H.size,e.transition=function(t,n){return t&&t.transition?$a?t.transition(n):t:e.selection().transition(t)},e.transition.prototype=Qa,Qa.select=function(e){var t,n,r,a=this.id,i=this.namespace,o=[];e=X(e);for(var s=-1,l=this.length;++s<l;){o.push(t=[]);for(var c=this[s],u=-1,d=c.length;++u<d;)(r=c[u])&&(n=e.call(r,r.__data__,u,s))?("__data__"in r&&(n.__data__=r.__data__),ri(n,u,i,a,r[i][a]),t.push(n)):t.push(null)}return Za(o,i,a)},Qa.selectAll=function(e){var t,n,r,a,i,o=this.id,s=this.namespace,l=[];e=G(e);for(var c=-1,u=this.length;++c<u;)for(var d=this[c],p=-1,h=d.length;++p<h;)if(r=d[p]){i=r[s][o],n=e.call(r,r.__data__,p,c),l.push(t=[]);for(var f=-1,m=n.length;++f<m;)(a=n[f])&&ri(a,f,s,o,i),t.push(a)}return Za(l,s,o)},Qa.filter=function(e){var t,n,r=[];"function"!=typeof e&&(e=se(e));for(var a=0,i=this.length;a<i;a++){r.push(t=[]);for(var o,s=0,l=(o=this[a]).length;s<l;s++)(n=o[s])&&e.call(n,n.__data__,s,a)&&t.push(n)}return Za(r,this.namespace,this.id)},Qa.tween=function(e,t){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(e):ce(this,null==t?function(t){t[r][n].tween.remove(e)}:function(a){a[r][n].tween.set(e,t)})},Qa.attr=function(t,n){if(arguments.length<2){for(n in t)this.attr(n,t[n]);return this}var r="transform"==t?Fn:xn,a=e.ns.qualify(t);function i(){this.removeAttribute(a)}function o(){this.removeAttributeNS(a.space,a.local)}return ei(this,"attr."+t,n,a.local?function(e){return null==e?o:(e+="",function(){var t,n=this.getAttributeNS(a.space,a.local);return n!==e&&(t=r(n,e),function(e){this.setAttributeNS(a.space,a.local,t(e))})})}:function(e){return null==e?i:(e+="",function(){var t,n=this.getAttribute(a);return n!==e&&(t=r(n,e),function(e){this.setAttribute(a,t(e))})})})},Qa.attrTween=function(t,n){var r=e.ns.qualify(t);return this.tween("attr."+t,r.local?function(e,t){var a=n.call(this,e,t,this.getAttributeNS(r.space,r.local));return a&&function(e){this.setAttributeNS(r.space,r.local,a(e))}}:function(e,t){var a=n.call(this,e,t,this.getAttribute(r));return a&&function(e){this.setAttribute(r,a(e))}})},Qa.style=function(e,t,n){var r=arguments.length;if(r<3){if("string"!=typeof e){for(n in r<2&&(t=""),e)this.style(n,e[n],t);return this}n=""}function a(){this.style.removeProperty(e)}return ei(this,"style."+e,t,function(t){return null==t?a:(t+="",function(){var r,a=o(this).getComputedStyle(this,null).getPropertyValue(e);return a!==t&&(r=xn(a,t),function(t){this.style.setProperty(e,r(t),n)})})})},Qa.styleTween=function(e,t,n){return arguments.length<3&&(n=""),this.tween("style."+e,function(r,a){var i=t.call(this,r,a,o(this).getComputedStyle(this,null).getPropertyValue(e));return i&&function(t){this.style.setProperty(e,i(t),n)}})},Qa.text=function(e){return ei(this,"text",e,ti)},Qa.remove=function(){var e=this.namespace;return this.each("end.transition",function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)})},Qa.ease=function(t){var n=this.id,r=this.namespace;return arguments.length<1?this.node()[r][n].ease:("function"!=typeof t&&(t=e.ease.apply(e,arguments)),ce(this,function(e){e[r][n].ease=t}))},Qa.delay=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].delay:ce(this,"function"==typeof e?function(r,a,i){r[n][t].delay=+e.call(r,r.__data__,a,i)}:(e=+e,function(r){r[n][t].delay=e}))},Qa.duration=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].duration:ce(this,"function"==typeof e?function(r,a,i){r[n][t].duration=Math.max(1,e.call(r,r.__data__,a,i))}:(e=Math.max(1,e),function(r){r[n][t].duration=e}))},Qa.each=function(t,n){var r=this.id,a=this.namespace;if(arguments.length<2){var i=Ja,o=$a;try{$a=r,ce(this,function(e,n,i){Ja=e[a][r],t.call(e,e.__data__,n,i)})}finally{Ja=i,$a=o}}else ce(this,function(i){var o=i[a][r];(o.event||(o.event=e.dispatch("start","end","interrupt"))).on(t,n)});return this},Qa.transition=function(){for(var e,t,n,r=this.id,a=++Ka,i=this.namespace,o=[],s=0,l=this.length;s<l;s++){o.push(e=[]);for(var c,u=0,d=(c=this[s]).length;u<d;u++)(t=c[u])&&ri(t,u,i,a,{time:(n=t[i][r]).time,ease:n.ease,delay:n.delay+n.duration,duration:n.duration}),e.push(t)}return Za(o,i,a)},e.svg.axis=function(){var t,n=e.scale.linear(),a=ai,i=6,o=6,s=3,l=[10],c=null;function u(r){r.each(function(){var r,u=e.select(this),d=this.__chart__||n,p=this.__chart__=n.copy(),h=c??(p.ticks?p.ticks.apply(p,l):p.domain()),f=t??(p.tickFormat?p.tickFormat.apply(p,l):S),m=u.selectAll(".tick").data(h,p),g=m.enter().insert("g",".domain").attr("class","tick").style("opacity",ze),y=e.transition(m.exit()).style("opacity",ze).remove(),b=e.transition(m.order()).style("opacity",1),v=Math.max(i,0)+s,M=Br(p),x=u.selectAll(".domain").data([0]),z=(x.enter().append("path").attr("class","domain"),e.transition(x));g.append("line"),g.append("text");var _,A,O,w,k=g.select("line"),T=b.select("line"),C=m.select("text").text(f),E=g.select("text"),q=b.select("text"),D="top"===a||"left"===a?-1:1;if("bottom"===a||"top"===a?(r=oi,_="x",O="y",A="x2",w="y2",C.attr("dy",D<0?"0em":".71em").style("text-anchor","middle"),z.attr("d","M"+M[0]+","+D*o+"V0H"+M[1]+"V"+D*o)):(r=si,_="y",O="x",A="y2",w="x2",C.attr("dy",".32em").style("text-anchor",D<0?"end":"start"),z.attr("d","M"+D*o+","+M[0]+"H0V"+M[1]+"H"+D*o)),k.attr(w,D*i),E.attr(O,D*v),T.attr(A,0).attr(w,D*i),q.attr(_,0).attr(O,D*v),p.rangeBand){var R=p,L=R.rangeBand()/2;d=p=function(e){return R(e)+L}}else d.rangeBand?d=p:y.call(r,p,d);g.call(r,d,p),b.call(r,p,p)})}return u.scale=function(e){return arguments.length?(n=e,u):n},u.orient=function(e){return arguments.length?(a=e in ii?e+"":ai,u):a},u.ticks=function(){return arguments.length?(l=r(arguments),u):l},u.tickValues=function(e){return arguments.length?(c=e,u):c},u.tickFormat=function(e){return arguments.length?(t=e,u):t},u.tickSize=function(e){var t=arguments.length;return t?(i=+e,o=+arguments[t-1],u):i},u.innerTickSize=function(e){return arguments.length?(i=+e,u):i},u.outerTickSize=function(e){return arguments.length?(o=+e,u):o},u.tickPadding=function(e){return arguments.length?(s=+e,u):s},u.tickSubdivide=function(){return arguments.length&&u},u};var ai="bottom",ii={top:1,right:1,bottom:1,left:1};function oi(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"})}function si(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"})}e.svg.brush=function(){var t,n,r=N(p,"brushstart","brush","brushend"),a=null,i=null,s=[0,0],l=[0,0],c=!0,u=!0,d=ci[0];function p(t){t.each(function(){var t=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",g).on("touchstart.brush",g),n=t.selectAll(".background").data([0]);n.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var r=t.selectAll(".resize").data(d,S);r.exit().remove(),r.enter().append("g").attr("class",function(e){return"resize "+e}).style("cursor",function(e){return li[e]}).append("rect").attr("x",function(e){return/[ew]$/.test(e)?-3:null}).attr("y",function(e){return/^[ns]/.test(e)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),r.style("display",p.empty()?"none":null);var o,s=e.transition(t),l=e.transition(n);a&&(o=Br(a),l.attr("x",o[0]).attr("width",o[1]-o[0]),f(s)),i&&(o=Br(i),l.attr("y",o[0]).attr("height",o[1]-o[0]),m(s)),h(s)})}function h(e){e.selectAll(".resize").attr("transform",function(e){return"translate("+s[+/e$/.test(e)]+","+l[+/^s/.test(e)]+")"})}function f(e){e.select(".extent").attr("x",s[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",s[1]-s[0])}function m(e){e.select(".extent").attr("y",l[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",l[1]-l[0])}function g(){var d,g,y=this,b=e.select(e.event.target),v=r.of(y,arguments),M=e.select(y),x=b.datum(),z=!/^(n|s)$/.test(x)&&a,_=!/^(e|w)$/.test(x)&&i,A=b.classed("extent"),O=be(y),w=e.mouse(y),k=e.select(o(y)).on("keydown.brush",function(){32==e.event.keyCode&&(A||(d=null,w[0]-=s[1],w[1]-=l[1],A=2),I())}).on("keyup.brush",function(){32==e.event.keyCode&&2==A&&(w[0]+=s[1],w[1]+=l[1],A=0,I())});if(e.event.changedTouches?k.on("touchmove.brush",C).on("touchend.brush",q):k.on("mousemove.brush",C).on("mouseup.brush",q),M.interrupt().selectAll("*").interrupt(),A)w[0]=s[0]-w[0],w[1]=l[0]-w[1];else if(x){var T=+/w$/.test(x),S=+/^n/.test(x);g=[s[1-T]-w[0],l[1-S]-w[1]],w[0]=s[T],w[1]=l[S]}else e.event.altKey&&(d=w.slice());function C(){var t=e.mouse(y),n=!1;g&&(t[0]+=g[0],t[1]+=g[1]),A||(e.event.altKey?(d||(d=[(s[0]+s[1])/2,(l[0]+l[1])/2]),w[0]=s[+(t[0]<d[0])],w[1]=l[+(t[1]<d[1])]):d=null),z&&E(t,a,0)&&(f(M),n=!0),_&&E(t,i,1)&&(m(M),n=!0),n&&(h(M),v({type:"brush",mode:A?"move":"resize"}))}function E(e,r,a){var i,o,p=Br(r),h=p[0],f=p[1],m=w[a],g=a?l:s,y=g[1]-g[0];if(A&&(h-=m,f-=y+m),i=(a?u:c)?Math.max(h,Math.min(f,e[a])):e[a],A?o=(i+=m)+y:(d&&(m=Math.max(h,Math.min(f,2*d[a]-i))),m<i?(o=i,i=m):o=m),g[0]!=i||g[1]!=o)return a?n=null:t=null,g[0]=i,g[1]=o,!0}function q(){C(),M.style("pointer-events","all").selectAll(".resize").style("display",p.empty()?"none":null),e.select("body").style("cursor",null),k.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),O(),v({type:"brushend"})}M.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",b.style("cursor")),v({type:"brushstart"}),C()}return p.event=function(a){a.each(function(){var a=r.of(this,arguments),i={x:s,y:l,i:t,j:n},o=this.__chart__||i;this.__chart__=i,$a?e.select(this).transition().each("start.brush",function(){t=o.i,n=o.j,s=o.x,l=o.y,a({type:"brushstart"})}).tween("brush:brush",function(){var e=zn(s,i.x),r=zn(l,i.y);return t=n=null,function(t){s=i.x=e(t),l=i.y=r(t),a({type:"brush",mode:"resize"})}}).each("end.brush",function(){t=i.i,n=i.j,a({type:"brush",mode:"resize"}),a({type:"brushend"})}):(a({type:"brushstart"}),a({type:"brush",mode:"resize"}),a({type:"brushend"}))})},p.x=function(e){return arguments.length?(d=ci[!(a=e)<<1|!i],p):a},p.y=function(e){return arguments.length?(d=ci[!a<<1|!(i=e)],p):i},p.clamp=function(e){return arguments.length?(a&&i?(c=!!e[0],u=!!e[1]):a?c=!!e:i&&(u=!!e),p):a&&i?[c,u]:a?c:i?u:null},p.extent=function(e){var r,o,c,u,d;return arguments.length?(a&&(r=e[0],o=e[1],i&&(r=r[0],o=o[0]),t=[r,o],a.invert&&(r=a(r),o=a(o)),o<r&&(d=r,r=o,o=d),(r!=s[0]||o!=s[1])&&(s=[r,o])),i&&(c=e[0],u=e[1],a&&(c=c[1],u=u[1]),n=[c,u],i.invert&&(c=i(c),u=i(u)),u<c&&(d=c,c=u,u=d),(c!=l[0]||u!=l[1])&&(l=[c,u])),p):(a&&(t?(r=t[0],o=t[1]):(r=s[0],o=s[1],a.invert&&(r=a.invert(r),o=a.invert(o)),o<r&&(d=r,r=o,o=d))),i&&(n?(c=n[0],u=n[1]):(c=l[0],u=l[1],i.invert&&(c=i.invert(c),u=i.invert(u)),u<c&&(d=c,c=u,u=d))),a&&i?[[r,c],[o,u]]:a?[r,o]:i&&[c,u])},p.clear=function(){return p.empty()||(s=[0,0],l=[0,0],t=n=null),p},p.empty=function(){return!!a&&s[0]==s[1]||!!i&&l[0]==l[1]},e.rebind(p,r,"on")};var li={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ci=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];function ui(e){return JSON.parse(e.responseText)}function di(e){var t=a.createRange();return t.selectNode(a.body),t.createContextualFragment(e.responseText)}e.text=pt(function(e){return e.responseText}),e.json=function(e,t){return ht(e,"application/json",ui,t)},e.html=function(e,t){return ht(e,"text/html",di,t)},e.xml=pt(function(e){return e.responseXML}),"function"==typeof define&&define.amd?define(e):"object"==typeof t&&t.exports?t.exports=e:this.d3=e}).apply(self)}),Coe=Ee((e,t)=>{var n,r;n=e,r=function(e){var t=new Date,n=new Date;function r(e,a,i,o){function s(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return s.floor=function(t){return e(t=new Date(+t)),t},s.ceil=function(t){return e(t=new Date(t-1)),a(t,1),e(t),t},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t<n-e?t:n},s.offset=function(e,t){return a(e=new Date(+e),null==t?1:Math.floor(t)),e},s.range=function(t,n,r){var i,o=[];if(t=s.ceil(t),r=null==r?1:Math.floor(r),!(t<n&&r>0))return o;do{o.push(i=new Date(+t)),a(t,r),e(t)}while(i<t&&t<n);return o},s.filter=function(t){return r(function(n){if(n>=n)for(;e(n),!t(n);)n.setTime(n-1)},function(e,n){if(e>=e)if(n<0)for(;++n<=0;)for(;a(e,-1),!t(e););else for(;--n>=0;)for(;a(e,1),!t(e););})},i&&(s.count=function(r,a){return t.setTime(+r),n.setTime(+a),e(t),e(n),Math.floor(i(t,n))},s.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?s.filter(o?function(t){return o(t)%e===0}:function(t){return s.count(0,t)%e===0}):s:null}),s}var a=r(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});a.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?r(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):a:null};var i=a.range,o=1e3,s=6e4,l=36e5,c=864e5,u=6048e5,d=r(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*o)},function(e,t){return(t-e)/o},function(e){return e.getUTCSeconds()}),p=d.range,h=r(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*o)},function(e,t){e.setTime(+e+t*s)},function(e,t){return(t-e)/s},function(e){return e.getMinutes()}),f=h.range,m=r(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*o-e.getMinutes()*s)},function(e,t){e.setTime(+e+t*l)},function(e,t){return(t-e)/l},function(e){return e.getHours()}),g=m.range,y=r(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*s)/c},function(e){return e.getDate()-1}),b=y.range;function v(e){return r(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*s)/u})}var M=v(0),x=v(1),z=v(2),_=v(3),A=v(4),O=v(5),w=v(6),k=M.range,T=x.range,S=z.range,C=_.range,E=A.range,q=O.range,D=w.range,R=r(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),L=R.range,I=r(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});I.every=function(e){return isFinite(e=Math.floor(e))&&e>0?r(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var W=I.range,N=r(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*s)},function(e,t){return(t-e)/s},function(e){return e.getUTCMinutes()}),P=N.range,B=r(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*l)},function(e,t){return(t-e)/l},function(e){return e.getUTCHours()}),F=B.range,j=r(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/c},function(e){return e.getUTCDate()-1}),U=j.range;function V(e){return r(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/u})}var H=V(0),X=V(1),G=V(2),Y=V(3),Z=V(4),$=V(5),J=V(6),Q=H.range,K=X.range,ee=G.range,te=Y.range,ne=Z.range,re=$.range,ae=J.range,ie=r(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),oe=ie.range,se=r(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});se.every=function(e){return isFinite(e=Math.floor(e))&&e>0?r(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var le=se.range;e.timeDay=y,e.timeDays=b,e.timeFriday=O,e.timeFridays=q,e.timeHour=m,e.timeHours=g,e.timeInterval=r,e.timeMillisecond=a,e.timeMilliseconds=i,e.timeMinute=h,e.timeMinutes=f,e.timeMonday=x,e.timeMondays=T,e.timeMonth=R,e.timeMonths=L,e.timeSaturday=w,e.timeSaturdays=D,e.timeSecond=d,e.timeSeconds=p,e.timeSunday=M,e.timeSundays=k,e.timeThursday=A,e.timeThursdays=E,e.timeTuesday=z,e.timeTuesdays=S,e.timeWednesday=_,e.timeWednesdays=C,e.timeWeek=M,e.timeWeeks=k,e.timeYear=I,e.timeYears=W,e.utcDay=j,e.utcDays=U,e.utcFriday=$,e.utcFridays=re,e.utcHour=B,e.utcHours=F,e.utcMillisecond=a,e.utcMilliseconds=i,e.utcMinute=N,e.utcMinutes=P,e.utcMonday=X,e.utcMondays=K,e.utcMonth=ie,e.utcMonths=oe,e.utcSaturday=J,e.utcSaturdays=ae,e.utcSecond=d,e.utcSeconds=p,e.utcSunday=H,e.utcSundays=Q,e.utcThursday=Z,e.utcThursdays=ne,e.utcTuesday=G,e.utcTuesdays=ee,e.utcWednesday=Y,e.utcWednesdays=te,e.utcWeek=H,e.utcWeeks=Q,e.utcYear=se,e.utcYears=le,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?r(e):"function"==typeof define&&define.amd?define(["exports"],r):r((n=n||self).d3=n.d3||{})}),R8=Ee((e,t)=>{var n,r;n=e,r=function(e,t){function n(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function r(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function a(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function i(e){var i=e.dateTime,o=e.date,l=e.time,c=e.periods,u=e.days,d=e.shortDays,p=e.months,X=e.shortMonths,pe=h(c),Ae=f(c),Oe=h(u),we=f(u),ke=h(d),Te=f(d),Se=h(p),Ce=f(p),Ee=h(X),qe=f(X),De={a:function(e){return d[e.getDay()]},A:function(e){return u[e.getDay()]},b:function(e){return X[e.getMonth()]},B:function(e){return p[e.getMonth()]},c:null,d:L,e:L,f:B,g:J,G:K,H:I,I:W,j:N,L:P,m:F,M:j,p:function(e){return c[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ze,s:_e,S:U,u:V,U:H,V:G,w:Y,W:Z,x:null,X:null,y:$,Y:Q,Z:ee,"%":xe},Re={a:function(e){return d[e.getUTCDay()]},A:function(e){return u[e.getUTCDay()]},b:function(e){return X[e.getUTCMonth()]},B:function(e){return p[e.getUTCMonth()]},c:null,d:te,e:te,f:oe,g:ye,G:ve,H:ne,I:re,j:ae,L:ie,m:se,M:le,p:function(e){return c[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ze,s:_e,S:ce,u:ue,U:de,V:he,w:fe,W:me,x:null,X:null,y:ge,Y:be,Z:Me,"%":xe},Le={a:function(e,t,n){var r=ke.exec(t.slice(n));return r?(e.w=Te[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=Oe.exec(t.slice(n));return r?(e.w=we[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=Ee.exec(t.slice(n));return r?(e.m=qe[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=Se.exec(t.slice(n));return r?(e.m=Ce[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,t,n){return Ne(e,i,t,n)},d:O,e:O,f:E,g:x,G:M,H:k,I:k,j:w,L:C,m:A,M:T,p:function(e,t,n){var r=pe.exec(t.slice(n));return r?(e.p=Ae[r[0].toLowerCase()],n+r[0].length):-1},q:_,Q:D,s:R,S:S,u:g,U:y,V:b,w:m,W:v,x:function(e,t,n){return Ne(e,o,t,n)},X:function(e,t,n){return Ne(e,l,t,n)},y:x,Y:M,Z:z,"%":q};function Ie(e,t){return function(n){var r,a,i,o=[],l=-1,c=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++l<u;)37===e.charCodeAt(l)&&(o.push(e.slice(c,l)),null!=(a=s[r=e.charAt(++l)])?r=e.charAt(++l):a="e"===r?" ":"0",(i=t[r])&&(r=i(n,a)),o.push(r),c=l+1);return o.push(e.slice(c,l)),o.join("")}}function We(e,i){return function(o){var s,l,c=a(1900,void 0,1);if(Ne(c,e,o+="",0)!=o.length)return null;if("Q"in c)return new Date(c.Q);if("s"in c)return new Date(1e3*c.s+("L"in c?c.L:0));if(i&&!("Z"in c)&&(c.Z=0),"p"in c&&(c.H=c.H%12+12*c.p),void 0===c.m&&(c.m="q"in c?c.q:0),"V"in c){if(c.V<1||c.V>53)return null;"w"in c||(c.w=1),"Z"in c?(l=(s=r(a(c.y,0,1))).getUTCDay(),s=l>4||0===l?t.utcMonday.ceil(s):t.utcMonday(s),s=t.utcDay.offset(s,7*(c.V-1)),c.y=s.getUTCFullYear(),c.m=s.getUTCMonth(),c.d=s.getUTCDate()+(c.w+6)%7):(l=(s=n(a(c.y,0,1))).getDay(),s=l>4||0===l?t.timeMonday.ceil(s):t.timeMonday(s),s=t.timeDay.offset(s,7*(c.V-1)),c.y=s.getFullYear(),c.m=s.getMonth(),c.d=s.getDate()+(c.w+6)%7)}else("W"in c||"U"in c)&&("w"in c||(c.w="u"in c?c.u%7:"W"in c?1:0),l="Z"in c?r(a(c.y,0,1)).getUTCDay():n(a(c.y,0,1)).getDay(),c.m=0,c.d="W"in c?(c.w+6)%7+7*c.W-(l+5)%7:c.w+7*c.U-(l+6)%7);return"Z"in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,r(c)):n(c)}}function Ne(e,t,n,r){for(var a,i,o=0,l=t.length,c=n.length;o<l;){if(r>=c)return-1;if(37===(a=t.charCodeAt(o++))){if(a=t.charAt(o++),!(i=Le[a in s?t.charAt(o++):a])||(r=i(e,n,r))<0)return-1}else if(a!=n.charCodeAt(r++))return-1}return r}return De.x=Ie(o,De),De.X=Ie(l,De),De.c=Ie(i,De),Re.x=Ie(o,Re),Re.X=Ie(l,Re),Re.c=Ie(i,Re),{format:function(e){var t=Ie(e+="",De);return t.toString=function(){return e},t},parse:function(e){var t=We(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Ie(e+="",Re);return t.toString=function(){return e},t},utcParse:function(e){var t=We(e+="",!0);return t.toString=function(){return e},t}}}var o,s={"-":"",_:" ",0:"0"},l=/^\s*\d+/,c=/^%/,u=/[\\^$*+?|[\]().{}]/g;function d(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function p(e){return e.replace(u,"\\$&")}function h(e){return new RegExp("^(?:"+e.map(p).join("|")+")","i")}function f(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function m(e,t,n){var r=l.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function g(e,t,n){var r=l.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function y(e,t,n){var r=l.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function b(e,t,n){var r=l.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function v(e,t,n){var r=l.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function M(e,t,n){var r=l.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function x(e,t,n){var r=l.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function z(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _(e,t,n){var r=l.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function A(e,t,n){var r=l.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function O(e,t,n){var r=l.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function w(e,t,n){var r=l.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function k(e,t,n){var r=l.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function T(e,t,n){var r=l.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function S(e,t,n){var r=l.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function C(e,t,n){var r=l.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function E(e,t,n){var r=l.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function q(e,t,n){var r=c.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function D(e,t,n){var r=l.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function R(e,t,n){var r=l.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function L(e,t){return d(e.getDate(),t,2)}function I(e,t){return d(e.getHours(),t,2)}function W(e,t){return d(e.getHours()%12||12,t,2)}function N(e,n){return d(1+t.timeDay.count(t.timeYear(e),e),n,3)}function P(e,t){return d(e.getMilliseconds(),t,3)}function B(e,t){return P(e,t)+"000"}function F(e,t){return d(e.getMonth()+1,t,2)}function j(e,t){return d(e.getMinutes(),t,2)}function U(e,t){return d(e.getSeconds(),t,2)}function V(e){var t=e.getDay();return 0===t?7:t}function H(e,n){return d(t.timeSunday.count(t.timeYear(e)-1,e),n,2)}function X(e){var n=e.getDay();return n>=4||0===n?t.timeThursday(e):t.timeThursday.ceil(e)}function G(e,n){return e=X(e),d(t.timeThursday.count(t.timeYear(e),e)+(4===t.timeYear(e).getDay()),n,2)}function Y(e){return e.getDay()}function Z(e,n){return d(t.timeMonday.count(t.timeYear(e)-1,e),n,2)}function $(e,t){return d(e.getFullYear()%100,t,2)}function J(e,t){return d((e=X(e)).getFullYear()%100,t,2)}function Q(e,t){return d(e.getFullYear()%1e4,t,4)}function K(e,n){var r=e.getDay();return d((e=r>=4||0===r?t.timeThursday(e):t.timeThursday.ceil(e)).getFullYear()%1e4,n,4)}function ee(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+d(t/60|0,"0",2)+d(t%60,"0",2)}function te(e,t){return d(e.getUTCDate(),t,2)}function ne(e,t){return d(e.getUTCHours(),t,2)}function re(e,t){return d(e.getUTCHours()%12||12,t,2)}function ae(e,n){return d(1+t.utcDay.count(t.utcYear(e),e),n,3)}function ie(e,t){return d(e.getUTCMilliseconds(),t,3)}function oe(e,t){return ie(e,t)+"000"}function se(e,t){return d(e.getUTCMonth()+1,t,2)}function le(e,t){return d(e.getUTCMinutes(),t,2)}function ce(e,t){return d(e.getUTCSeconds(),t,2)}function ue(e){var t=e.getUTCDay();return 0===t?7:t}function de(e,n){return d(t.utcSunday.count(t.utcYear(e)-1,e),n,2)}function pe(e){var n=e.getUTCDay();return n>=4||0===n?t.utcThursday(e):t.utcThursday.ceil(e)}function he(e,n){return e=pe(e),d(t.utcThursday.count(t.utcYear(e),e)+(4===t.utcYear(e).getUTCDay()),n,2)}function fe(e){return e.getUTCDay()}function me(e,n){return d(t.utcMonday.count(t.utcYear(e)-1,e),n,2)}function ge(e,t){return d(e.getUTCFullYear()%100,t,2)}function ye(e,t){return d((e=pe(e)).getUTCFullYear()%100,t,2)}function be(e,t){return d(e.getUTCFullYear()%1e4,t,4)}function ve(e,n){var r=e.getUTCDay();return d((e=r>=4||0===r?t.utcThursday(e):t.utcThursday.ceil(e)).getUTCFullYear()%1e4,n,4)}function Me(){return"+0000"}function xe(){return"%"}function ze(e){return+e}function _e(e){return Math.floor(+e/1e3)}function Ae(t){return o=i(t),e.timeFormat=o.format,e.timeParse=o.parse,e.utcFormat=o.utcFormat,e.utcParse=o.utcParse,o}Ae({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Oe="%Y-%m-%dT%H:%M:%S.%LZ",we=Date.prototype.toISOString?function(e){return e.toISOString()}:e.utcFormat(Oe),ke=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:e.utcParse(Oe);e.isoFormat=we,e.isoParse=ke,e.timeFormatDefaultLocale=Ae,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?r(e,Coe()):"function"==typeof define&&define.amd?define(["exports","d3-time"],r):r((n=n||self).d3=n.d3||{},n.d3)}),Eoe=Ee((e,t)=>{var n,r;n=e,r=function(e){function t(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function n(e){return(e=t(Math.abs(e)))?e[1]:NaN}var r,a=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){if(!(t=a.exec(e)))throw new Error("invalid format: "+e);var t;return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function s(e,n){var r=t(e,n);if(!r)return e+"";var a=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+a:a.length>i+1?a.slice(0,i+1)+"."+a.slice(i+1):a+new Array(i-a.length+2).join("0")}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var l={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return s(100*e,t)},r:s,s:function(e,n){var a=t(e,n);if(!a)return e+"";var i=a[0],o=a[1],s=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,l=i.length;return s===l?i:s>l?i+new Array(s-l+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+t(e,Math.max(0,n+s-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function c(e){return e}var u,d=Array.prototype.map,p=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function h(e){var t=void 0===e.grouping||void 0===e.thousands?c:function(e,t){return function(n,r){for(var a=n.length,i=[],o=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(a-=s,a+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}(d.call(e.grouping,Number),e.thousands+""),a=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",u=void 0===e.numerals?c:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(d.call(e.numerals,String)),h=void 0===e.percent?"%":e.percent+"",f=void 0===e.minus?"-":e.minus+"",m=void 0===e.nan?"NaN":e.nan+"";function g(e){var n=(e=i(e)).fill,c=e.align,d=e.sign,g=e.symbol,y=e.zero,b=e.width,v=e.comma,M=e.precision,x=e.trim,z=e.type;"n"===z?(v=!0,z="g"):l[z]||(void 0===M&&(M=12),x=!0,z="g"),(y||"0"===n&&"="===c)&&(y=!0,n="0",c="=");var _="$"===g?a:"#"===g&&/[boxX]/.test(z)?"0"+z.toLowerCase():"",A="$"===g?o:/[%p]/.test(z)?h:"",O=l[z],w=/[defgprs%]/.test(z);function k(e){var a,i,o,l=_,h=A;if("c"===z)h=O(e)+h,e="";else{var g=(e=+e)<0||1/e<0;if(e=isNaN(e)?m:O(Math.abs(e),M),x&&(e=function(e){e:for(var t,n=e.length,r=1,a=-1;r<n;++r)switch(e[r]){case".":a=t=r;break;case"0":0===a&&(a=r),t=r;break;default:if(!+e[r])break e;a>0&&(a=0)}return a>0?e.slice(0,a)+e.slice(t+1):e}(e)),g&&0==+e&&"+"!==d&&(g=!1),l=(g?"("===d?d:f:"-"===d||"("===d?"":d)+l,h=("s"===z?p[8+r/3]:"")+h+(g&&"("===d?")":""),w)for(a=-1,i=e.length;++a<i;)if(48>(o=e.charCodeAt(a))||o>57){h=(46===o?s+e.slice(a+1):e.slice(a))+h,e=e.slice(0,a);break}}v&&!y&&(e=t(e,1/0));var k=l.length+e.length+h.length,T=k<b?new Array(b-k+1).join(n):"";switch(v&&y&&(e=t(T+e,T.length?b-h.length:1/0),T=""),c){case"<":e=l+e+h+T;break;case"=":e=l+T+e+h;break;case"^":e=T.slice(0,k=T.length>>1)+l+e+h+T.slice(k);break;default:e=T+l+e+h}return u(e)}return M=void 0===M?6:/[gprs]/.test(z)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M)),k.toString=function(){return e+""},k}return{format:g,formatPrefix:function(e,t){var r=g(((e=i(e)).type="f",e)),a=3*Math.max(-8,Math.min(8,Math.floor(n(t)/3))),o=Math.pow(10,-a),s=p[8+a/3];return function(e){return r(o*e)+s}}}}function f(t){return u=h(t),e.format=u.format,e.formatPrefix=u.formatPrefix,u}f({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),e.FormatSpecifier=o,e.formatDefaultLocale=f,e.formatLocale=h,e.formatSpecifier=i,e.precisionFixed=function(e){return Math.max(0,-n(Math.abs(e)))},e.precisionPrefix=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(n(t)/3)))-n(Math.abs(e)))},e.precisionRound=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,n(t)-n(e))+1},Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?r(e):"function"==typeof define&&define.amd?define(["exports"],r):r((n=typeof globalThis<"u"?globalThis:n||self).d3=n.d3||{})}),Zke=Ee((e,t)=>{t.exports=function(e){for(var t,n=e.length,r=0;r<n;r++)if(((t=e.charCodeAt(r))<9||t>13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}}),xs=Ee((e,t)=>{var n=Zke();t.exports=function(e){var t=typeof e;if("string"===t){var r=e;if(0===(e=+e)&&n(r))return!1}else if("number"!==t)return!1;return e-e<1}}),T0=Ee((e,t)=>{t.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:""}}),qoe=Ee((e,t)=>{var n,r;n=e,r=function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=typeof Uint8Array>"u"?[]:new Uint8Array(256),r=0;r<64;r++)n[t.charCodeAt(r)]=r;e.decode=function(e){var t,r,a,i,o,s=.75*e.length,l=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var u=new ArrayBuffer(s),d=new Uint8Array(u);for(t=0;t<l;t+=4)r=n[e.charCodeAt(t)],a=n[e.charCodeAt(t+1)],i=n[e.charCodeAt(t+2)],o=n[e.charCodeAt(t+3)],d[c++]=r<<2|a>>4,d[c++]=(15&a)<<4|i>>2,d[c++]=(3&i)<<6|63&o;return u},e.encode=function(e){var n,r=new Uint8Array(e),a=r.length,i="";for(n=0;n<a;n+=3)i+=t[r[n]>>2],i+=t[(3&r[n])<<4|r[n+1]>>4],i+=t[(15&r[n+1])<<2|r[n+2]>>6],i+=t[63&r[n+2]];return a%3==2?i=i.substring(0,i.length-1)+"=":a%3==1&&(i=i.substring(0,i.length-2)+"=="),i},Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?r(e):"function"==typeof define&&define.amd?define(["exports"],r):r((n=typeof globalThis<"u"?globalThis:n||self)["base64-arraybuffer"]={})}),mx=Ee((e,t)=>{t.exports=function(e){return window&&window.process&&window.process.versions?"[object Object]"===Object.prototype.toString.call(e):"[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e).hasOwnProperty("hasOwnProperty")}}),Lp=Ee(e=>{var t=qoe().decode,n=mx(),r=Array.isArray,a=ArrayBuffer,i=DataView;function o(e){return a.isView(e)&&!(e instanceof i)}function s(e){return r(e)||o(e)}e.isTypedArray=o,e.isArrayOrTypedArray=s,e.isArray1D=function(e){return!s(e[0])},e.ensureArray=function(e,t){return r(e)||(e=[]),e.length=t,e};var l={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};function c(e){return e.constructor===ArrayBuffer}function u(e,t,n){if(s(e)){if(s(e[0])){for(var r=n,a=0;a<e.length;a++)r=t(r,e[a].length);return r}return e.length}return 0}l.uint8c=l.u1c,l.uint8=l.u1,l.int8=l.i1,l.uint16=l.u2,l.int16=l.i2,l.uint32=l.u4,l.int32=l.i4,l.float32=l.f4,l.float64=l.f8,e.isArrayBuffer=c,e.decodeTypedArraySpec=function(e){var n=[],r=function(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}(e),a=r.dtype,i=l[a];if(!i)throw new Error('Error in dtype: "'+a+'"');var o=i.BYTES_PER_ELEMENT,s=r.bdata;c(s)||(s=t(s));var u=void 0===r.shape?[s.byteLength/o]:(""+r.shape).split(",");u.reverse();var d,p,h=u.length,f=+u[0],m=o*f,g=0;if(1===h)n=new i(s);else if(2===h)for(d=+u[1],p=0;p<d;p++)n[p]=new i(s,g,f),g+=m;else{if(3!==h)throw new Error("ndim: "+h+'is not supported with the shape:"'+r.shape+'"');d=+u[1];for(var y=+u[2],b=0;b<y;b++)for(n[b]=[],p=0;p<d;p++)n[b][p]=new i(s,g,f),g+=m}return n.bdata=r.bdata,n.dtype=r.dtype,n.shape=u.reverse().join(","),e._inputArray=n,n},e.isTypedArraySpec=function(e){return n(e)&&e.hasOwnProperty("dtype")&&"string"==typeof e.dtype&&e.hasOwnProperty("bdata")&&("string"==typeof e.bdata||c(e.bdata))&&(void 0===e.shape||e.hasOwnProperty("shape")&&("string"==typeof e.shape||"number"==typeof e.shape))},e.concat=function(){var e,t,n,a,i,o,s,l,c=[],u=!0,d=0;for(n=0;n<arguments.length;n++)(o=(a=arguments[n]).length)&&(t?c.push(a):(t=a,i=o),r(a)?e=!1:(u=!1,d?e!==a.constructor&&(e=!1):e=a.constructor),d+=o);if(!d)return[];if(!c.length)return t;if(u)return t.concat.apply(t,c);if(e){for((s=new e(d)).set(t),n=0;n<c.length;n++)a=c[n],s.set(a,i),i+=a.length;return s}for(s=new Array(d),l=0;l<t.length;l++)s[l]=t[l];for(n=0;n<c.length;n++){for(a=c[n],l=0;l<a.length;l++)s[i+l]=a[l];i+=l}return s},e.maxRowLength=function(e){return u(e,Math.max,0)},e.minRowLength=function(e){return u(e,Math.min,1/0)}}),$q=Ee((e,t)=>{var n=xs(),r=Lp().isArrayOrTypedArray;function a(e,t){return function(n){var i,o,s,l,c,u=e;for(l=0;l<t.length-1;l++){if(-1===(i=t[l])){for(o=!0,s=[],c=0;c<u.length;c++)s[c]=a(u[c],t.slice(l+1))(n),s[c]!==s[0]&&(o=!1);return o?s[0]:s}if("number"==typeof i&&!r(u)||("object"!=typeof(u=u[i])||null===u))return}if("object"==typeof u&&null!==u&&(s=u[t[l]],n||null!==s))return s}}t.exports=function(e,t){if(n(t))t=String(t);else if("string"!=typeof t||"[-1]"===t.slice(-4))throw"bad property string";var r,i,o,l,c=t.split(".");for(l=0;l<c.length;l++)if("__"===String(c[l]).slice(0,2))throw"bad property string";for(l=0;l<c.length;){if(r=String(c[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(r[1])c[l]=r[1];else{if(0!==l)throw"bad property string";c.splice(0,1)}for(i=r[2].slice(1,-1).split("]["),o=0;o<i.length;o++)l++,c.splice(l,0,Number(i[o]))}l++}return"object"!=typeof e?function(e,t,n){return{set:function(){throw"bad container"},get:function(){},astr:t,parts:n,obj:e}}(e,t,c):{set:s(e,c,t),get:a(e,c),astr:t,parts:c,obj:e}};var i=/(^|\.)args\[/;function o(e,t){return void 0===e||null===e&&!t.match(i)}function s(e,t,n){return function(a){var i,s,d=e,p="",h=[[e,p]],f=o(a,n);for(s=0;s<t.length-1;s++){if("number"==typeof(i=t[s])&&!r(d))throw"array index but container is not an array";if(-1===i){if(f=!c(d,t.slice(s+1),a,n))break;return}if(!u(d,i,t[s+1],f))break;if("object"!=typeof(d=d[i])||null===d)throw"container is not an object";p=l(p,i),h.push([d,p])}if(f){if(s===t.length-1&&(delete d[t[s]],Array.isArray(d)&&+t[s]===d.length-1))for(;d.length&&void 0===d[d.length-1];)d.pop()}else d[t[s]]=a}}function l(e,t){var r=t;return n(t)?r="["+t+"]":e&&(r="."+t),e+r}function c(e,t,n,a){var i,l=r(n),c=!0,d=n,p=a.replace("-1",0),h=!l&&o(n,p),f=t[0];for(i=0;i<e.length;i++)p=a.replace("-1",i),l&&(h=o(d=n[i%n.length],p)),h&&(c=!1),u(e,i,f,h)&&s(e[i],t,a.replace("-1",i))(d);return c}function u(e,t,n,r){if(void 0===e[t]){if(r)return!1;e[t]="number"==typeof n?[]:{}}return!0}}),u9e=Ee((e,t)=>{var n=$q(),r=/^\w*$/;t.exports=function(e,t,a,i){a=a||"name",i=i||"value";var o,s,l,c={};t&&t.length?(l=n(e,t),s=l.get()):s=e,t=t||"";var u={};if(s)for(o=0;o<s.length;o++)u[s[o][a]]=o;var d=r.test(i),p={set:function(e,t){var r=null===t?4:0;if(!s){if(!l||4===r)return;s=[],l.set(s)}var o=u[e];if(void 0===o){if(4===r)return;r|=3,o=s.length,u[e]=o}else t!==(d?s[o][i]:n(s[o],i).get())&&(r|=2);var h=s[o]=s[o]||{};return h[a]=e,d?h[i]=t:n(h,i).set(t),null!==t&&(r&=-5),c[o]=c[o]|r,p},get:function(e){if(s){var t=u[e];if(void 0!==t)return d?s[t][i]:n(s[t],i).get()}},rename:function(e,t){var n=u[e];return void 0===n||(c[n]=1|c[n],u[t]=n,delete u[e],s[n][a]=t),p},remove:function(e){var t=u[e];if(void 0===t)return p;var r=s[t];if(Object.keys(r).length>2)return c[t]=2|c[t],p.set(e,null);if(d){for(o=t;o<s.length;o++)c[o]=3|c[o];for(o=t;o<s.length;o++)u[s[o][a]]--;s.splice(t,1),delete u[e]}else n(r,i).set(null),c[t]=6|c[t];return p},constructUpdate:function(){for(var e,r,o={},l=Object.keys(c),u=0;u<l.length;u++)r=l[u],e=t+"["+r+"]",s[r]?(1&c[r]&&(o[e+"."+a]=s[r][a]),2&c[r]&&(o[e+"."+i]=d?4&c[r]?null:s[r][i]:4&c[r]?null:n(s[r],i).get())):o[e]=null;return o}};return p}}),f9e=Ee((e,t)=>{var n=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,r=/^[^\.\[\]]+$/;t.exports=function(e,t){for(;t;){var a=e.match(n);if(a)e=a[1];else{if(!e.match(r))throw new Error("bad relativeAttr call:"+[e,t]);e=""}if("^"!==t.charAt(0))break;t=t.slice(1)}return e&&"["!==t.charAt(0)?e+"."+t:e+t}}),XU=Ee((e,t)=>{var n=xs();t.exports=function(e,t){if(e>0)return Math.log(e)/Math.LN10;var r=Math.log(Math.min(t[0],t[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),r}}),v9e=Ee((e,t)=>{var n=Lp().isArrayOrTypedArray,r=mx();t.exports=function e(t,a){for(var i in a){var o=a[i],s=t[i];if(s!==o)if("_"===i.charAt(0)||"function"==typeof o){if(i in t)continue;t[i]=o}else if(n(o)&&n(s)&&r(o[0])){if("customdata"===i||"ids"===i)continue;for(var l=Math.min(o.length,s.length),c=0;c<l;c++)s[c]!==o[c]&&r(o[c])&&r(s[c])&&e(s[c],o[c])}else r(o)&&r(s)&&(e(s,o),Object.keys(s).length||delete t[i])}}}),P8=Ee((e,t)=>{t.exports={mod:function(e,t){var n=e%t;return n<0?n+t:n},modHalf:function(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}}}),Vh=Ee((e,t)=>{var n,r;n=e,r=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var t=/^\s+/,n=/\s+$/;function r(a,i){if(i=i||{},(a=a||"")instanceof r)return a;if(!(this instanceof r))return new r(a,i);var o=function(r){var a={r:0,g:0,b:0},i=1,o=null,s=null,l=null,c=!1,u=!1;return"string"==typeof r&&(r=function(e){e=e.replace(t,"").replace(n,"").toLowerCase();var r,a=!1;if(M[e])e=M[e],a=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(r=D.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=D.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=D.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=D.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=D.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=D.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=D.hex8.exec(e))?{r:O(r[1]),g:O(r[2]),b:O(r[3]),a:S(r[4]),format:a?"name":"hex8"}:(r=D.hex6.exec(e))?{r:O(r[1]),g:O(r[2]),b:O(r[3]),format:a?"name":"hex"}:(r=D.hex4.exec(e))?{r:O(r[1]+""+r[1]),g:O(r[2]+""+r[2]),b:O(r[3]+""+r[3]),a:S(r[4]+""+r[4]),format:a?"name":"hex8"}:!!(r=D.hex3.exec(e))&&{r:O(r[1]+""+r[1]),g:O(r[2]+""+r[2]),b:O(r[3]+""+r[3]),format:a?"name":"hex"}}(r)),"object"==e(r)&&(R(r.r)&&R(r.g)&&R(r.b)?(a=function(e,t,n){return{r:255*_(e,255),g:255*_(t,255),b:255*_(n,255)}}(r.r,r.g,r.b),c=!0,u="%"===String(r.r).substr(-1)?"prgb":"rgb"):R(r.h)&&R(r.s)&&R(r.v)?(o=k(r.s),s=k(r.v),a=function(e,t,n){e=6*_(e,360),t=_(t,100),n=_(n,100);var r=Math.floor(e),a=e-r,i=n*(1-t),o=n*(1-a*t),s=n*(1-(1-a)*t),l=r%6,c=[n,o,i,i,s,n][l],u=[s,n,n,o,i,i][l],d=[i,i,s,n,n,o][l];return{r:255*c,g:255*u,b:255*d}}(r.h,o,s),c=!0,u="hsv"):R(r.h)&&R(r.s)&&R(r.l)&&(o=k(r.s),l=k(r.l),a=function(e,t,n){var r,a,i;function o(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=_(e,360),t=_(t,100),n=_(n,100),0===t)r=a=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=o(l,s,e+1/3),a=o(l,s,e),i=o(l,s,e-1/3)}return{r:255*r,g:255*a,b:255*i}}(r.h,o,l),c=!0,u="hsl"),r.hasOwnProperty("a")&&(i=r.a)),i=z(i),{ok:c,format:r.format||u,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:i}}(a);this._originalInput=a,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=Math.round(100*this._a)/100,this._format=i.format||o.format,this._gradientType=i.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=o.ok}function a(e,t,n){e=_(e,255),t=_(t,255),n=_(n,255);var r,a,i=Math.max(e,t,n),o=Math.min(e,t,n),s=(i+o)/2;if(i==o)r=a=0;else{var l=i-o;switch(a=s>.5?l/(2-i-o):l/(i+o),i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:a,l:s}}function i(e,t,n){e=_(e,255),t=_(t,255),n=_(n,255);var r,a,i=Math.max(e,t,n),o=Math.min(e,t,n),s=i,l=i-o;if(a=0===i?0:l/i,i==o)r=0;else{switch(i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:a,v:s}}function o(e,t,n,r){var a=[w(Math.round(e).toString(16)),w(Math.round(t).toString(16)),w(Math.round(n).toString(16))];return r&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function s(e,t,n,r){return[w(T(r)),w(Math.round(e).toString(16)),w(Math.round(t).toString(16)),w(Math.round(n).toString(16))].join("")}function l(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s-=t/100,n.s=A(n.s),r(n)}function c(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s+=t/100,n.s=A(n.s),r(n)}function u(e){return r(e).desaturate(100)}function d(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l+=t/100,n.l=A(n.l),r(n)}function p(e,t){t=0===t?0:t||10;var n=r(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),r(n)}function h(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l-=t/100,n.l=A(n.l),r(n)}function f(e,t){var n=r(e).toHsl(),a=(n.h+t)%360;return n.h=a<0?360+a:a,r(n)}function m(e){var t=r(e).toHsl();return t.h=(t.h+180)%360,r(t)}function g(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=r(e).toHsl(),a=[r(e)],i=360/t,o=1;o<t;o++)a.push(r({h:(n.h+o*i)%360,s:n.s,l:n.l}));return a}function y(e){var t=r(e).toHsl(),n=t.h;return[r(e),r({h:(n+72)%360,s:t.s,l:t.l}),r({h:(n+216)%360,s:t.s,l:t.l})]}function b(e,t,n){t=t||6,n=n||30;var a=r(e).toHsl(),i=360/n,o=[r(e)];for(a.h=(a.h-(i*t>>1)+720)%360;--t;)a.h=(a.h+i)%360,o.push(r(a));return o}function v(e,t){t=t||6;for(var n=r(e).toHsv(),a=n.h,i=n.s,o=n.v,s=[],l=1/t;t--;)s.push(r({h:a,s:i,v:o})),o=(o+l)%1;return s}r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=z(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=i(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=a(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=a(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return o(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,a){var i=[w(Math.round(e).toString(16)),w(Math.round(t).toString(16)),w(Math.round(n).toString(16)),w(T(r))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*_(this._r,255))+"%",g:Math.round(100*_(this._g,255))+"%",b:Math.round(100*_(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*_(this._r,255))+"%, "+Math.round(100*_(this._g,255))+"%, "+Math.round(100*_(this._b,255))+"%)":"rgba("+Math.round(100*_(this._r,255))+"%, "+Math.round(100*_(this._g,255))+"%, "+Math.round(100*_(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(x[o(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+s(this._r,this._g,this._b,this._a),n=t,a=this._gradientType?"GradientType = 1, ":"";if(e){var i=r(e);n="#"+s(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return r(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(d,arguments)},brighten:function(){return this._applyModification(p,arguments)},darken:function(){return this._applyModification(h,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(u,arguments)},spin:function(){return this._applyModification(f,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(b,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(v,arguments)},splitcomplement:function(){return this._applyCombination(y,arguments)},triad:function(){return this._applyCombination(g,[3])},tetrad:function(){return this._applyCombination(g,[4])}},r.fromRatio=function(t,n){if("object"==e(t)){var a={};for(var i in t)t.hasOwnProperty(i)&&(a[i]="a"===i?t[i]:k(t[i]));t=a}return r(t,n)},r.equals=function(e,t){return!(!e||!t)&&r(e).toRgbString()==r(t).toRgbString()},r.random=function(){return r.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},r.mix=function(e,t,n){n=0===n?0:n||50;var a=r(e).toRgb(),i=r(t).toRgb(),o=n/100;return r({r:(i.r-a.r)*o+a.r,g:(i.g-a.g)*o+a.g,b:(i.b-a.b)*o+a.b,a:(i.a-a.a)*o+a.a})},r.readability=function(e,t){var n=r(e),a=r(t);return(Math.max(n.getLuminance(),a.getLuminance())+.05)/(Math.min(n.getLuminance(),a.getLuminance())+.05)},r.isReadable=function(e,t,n){var a,i,o=r.readability(e,t);switch(i=!1,a=function(e){var t,n;return t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:t,size:n}}(n),a.level+a.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},r.mostReadable=function(e,t,n){var a,i,o,s,l=null,c=0;i=(n=n||{}).includeFallbackColors,o=n.level,s=n.size;for(var u=0;u<t.length;u++)(a=r.readability(e,t[u]))>c&&(c=a,l=r(t[u]));return r.isReadable(e,l,{level:o,size:s})||!i?l:(n.includeFallbackColors=!1,r.mostReadable(e,["#fff","#000"],n))};var M=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=r.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(M);function z(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function _(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function A(e){return Math.min(1,Math.max(0,e))}function O(e){return parseInt(e,16)}function w(e){return 1==e.length?"0"+e:""+e}function k(e){return e<=1&&(e=100*e+"%"),e}function T(e){return Math.round(255*parseFloat(e)).toString(16)}function S(e){return O(e)/255}var C,E,q,D=(E="[\\s|\\(]+("+(C="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",q="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",{CSS_UNIT:new RegExp(C),rgb:new RegExp("rgb"+E),rgba:new RegExp("rgba"+q),hsl:new RegExp("hsl"+E),hsla:new RegExp("hsla"+q),hsv:new RegExp("hsv"+E),hsva:new RegExp("hsva"+q),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function R(e){return!!D.CSS_UNIT.exec(e)}return r},"object"==typeof e&&typeof t<"u"?t.exports=r():"function"==typeof define&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).tinycolor=r()}),ms=Ee(e=>{var t=mx(),n=Array.isArray;function r(e,a,i,o){var s,l,c,u,d,p,h,f=e[0],m=e.length;if(2===m&&n(f)&&n(e[1])&&0===f.length){if(h=function(e,t){var n,r;for(n=0;n<e.length;n++){if(null!==(r=e[n])&&"object"==typeof r)return!1;void 0!==r&&(t[n]=r)}return!0}(e[1],f),h)return f;f.splice(0,f.length)}for(var g=1;g<m;g++)for(l in s=e[g])c=f[l],u=s[l],o&&n(u)?f[l]=u:a&&u&&(t(u)||(d=n(u)))?(d?(d=!1,p=c&&n(c)?c:[]):p=c&&t(c)?c:{},f[l]=r([p,u],a,i,o)):(typeof u<"u"||i)&&(f[l]=u);return f}e.extendFlat=function(){return r(arguments,!1,!1,!1)},e.extendDeep=function(){return r(arguments,!0,!1,!1)},e.extendDeepAll=function(){return r(arguments,!0,!0,!1)},e.extendDeepNoArrays=function(){return r(arguments,!0,!1,!0)}}),Mu=Ee((e,t)=>{t.exports=function(e){var t=e.variantValues,n=e.editType,r=e.colorEditType;void 0===r&&(r=n);var a={editType:n,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal",description:["Sets the weight (or boldness) of the font."].join(" ")};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:n,description:["HTML font family - the typeface that will be applied by the web browser.","The web browser can only apply a font if it is available on the system where","it runs. Provide multiple font families, separated by commas, to indicate","the order in which to apply fonts if they aren't available."].join(" ")},size:{valType:"number",min:1,editType:n},color:{valType:"color",editType:r},weight:a,style:{editType:n,valType:"enumerated",values:["normal","italic"],dflt:"normal",description:["Sets whether a font should be styled with a normal or italic face from its family."].join(" ")},variant:e.noFontVariant?void 0:{editType:n,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal",description:["Sets the variant of the font."].join(" ")},textcase:e.noFontTextcase?void 0:{editType:n,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal",description:["Sets capitalization of text.","It can be used to make text appear in all-uppercase or all-lowercase,","or with each word capitalized."].join(" ")},lineposition:e.noFontLineposition?void 0:{editType:n,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none",description:["Sets the kind of decoration line(s) with text,","such as an *under*, *over* or *through*","as well as combinations e.g. *under+over*, etc."].join(" ")},shadow:e.noFontShadow?void 0:{editType:n,valType:"string",dflt:e.autoShadowDflt?"auto":"none",description:["Sets the shape and color of the shadow behind text.","*auto* places minimal shadow and applies contrast text font color.","See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options."].join(" ")},editType:n,description:""+(e.description||"")};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}}),tD=Ee((e,t)=>{t.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}}),zz=Ee((e,t)=>{var n=tD(),r=Mu(),a=r({editType:"none",description:"Sets the default hover label font used by all traces on the graph."});a.family.dflt=n.HOVERFONT,a.size.dflt=n.HOVERFONTSIZE,t.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"],description:["Determines the mode of single click interactions.","*event* is the default value and emits the `plotly_click`","event. In addition this mode emits the `plotly_selected` event","in drag modes *lasso* and *select*, but with no event data attached","(kept for compatibility reasons).","The *select* flag enables selecting single","data points via click. This mode also supports persistent selections,","meaning that pressing Shift while clicking, adds to / subtracts from an","existing selection. *select* with `hovermode`: *x* can be confusing, consider","explicitly setting `hovermode`: *closest* when using this feature.","Selection events are sent accordingly as long as *event* flag is set as well.","When the *event* flag is missing, `plotly_click` and `plotly_selected`","events are not fired."].join(" ")},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar",description:["Determines the mode of drag interactions.","*select* and *lasso* apply only to scatter traces with","markers or text. *orbit* and *turntable* apply only to","3D scenes."].join(" ")},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar",description:["Determines the mode of hover interactions.","If *closest*, a single hoverlabel will appear","for the *closest* point within the `hoverdistance`.","If *x* (or *y*), multiple hoverlabels will appear for multiple points","at the *closest* x- (or y-) coordinate within the `hoverdistance`,","with the caveat that no more than one hoverlabel will appear per trace.","If *x unified* (or *y unified*), a single hoverlabel will appear","multiple points at the closest x- (or y-) coordinate within the `hoverdistance`","with the caveat that no more than one hoverlabel will appear per trace.","In this mode, spikelines are enabled by default perpendicular to the specified axis.","If false, hover interactions are disabled."].join(" ")},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none",description:["Determines the order of items shown in unified hover labels.","If *trace*, items are sorted by trace index.","If *value descending*, items are sorted by value from largest to smallest.","If *value ascending*, items are sorted by value from smallest to largest.","Only applies when `hovermode` is *x unified* or *y unified*."].join(" ")},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none",description:["Determines expansion of hover effects to other subplots","If *single* just the axis pair of the primary point is included without overlaying subplots.","If *overlaying* all subplots using the main axis and occupying the same space are included.","If *axis*, also include stacked subplots using the same axis","when `hovermode` is set to *x*, *x unified*, *y* or *y unified*."].join(" ")},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none",description:["If true, `plotly_hover` events will fire for any cursor position","within the plot area, not just over traces.","When the cursor is not over a trace, the event will have an empty `points` array","but will include `xvals` and `yvals` with cursor coordinates in data space."].join(" ")},clickanywhere:{valType:"boolean",dflt:!1,editType:"none",description:["If true, `plotly_click` events will fire for any click position","within the plot area, not just over traces.","When clicking where there is no trace data, the event will have an empty `points` array","but will include `xvals` and `yvals` with click coordinates in data space."].join(" ")},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none",description:["Sets the default distance (in pixels) to look for data","to add hover labels (-1 means no cutoff, 0 means no looking for data).","This is only a real distance for hovering on point-like objects,","like scatter points. For area-like objects (bars, scatter fills, etc)","hovering is on inside the area and off outside, but these objects","will not supersede hover on point-like objects in case of conflict."].join(" ")},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none",description:["Sets the default distance (in pixels) to look for data to draw","spikelines to (-1 means no cutoff, 0 means no looking for data).","As with hoverdistance, distance does not apply to area-like objects.","In addition, some objects can be hovered on but will not generate","spikelines, such as scatter fills."].join(" ")},hoverlabel:{bgcolor:{valType:"color",editType:"none",description:["Sets the background color of all hover labels on graph"].join(" ")},bordercolor:{valType:"color",editType:"none",description:["Sets the border color of all hover labels on graph."].join(" ")},font:a,grouptitlefont:r({editType:"none",description:["Sets the font for group titles in hover (unified modes).","Defaults to `hoverlabel.font`."].join(" ")}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none",description:["Sets the horizontal alignment of the text content within hover label box.","Has an effect only if the hover label text spans more two or more lines"].join(" ")},namelength:{valType:"integer",min:-1,dflt:15,editType:"none",description:["Sets the default length (in number of characters) of the trace name in","the hover labels for all traces. -1 shows the whole name","regardless of length. 0-3 shows the first 0-3 characters, and","an integer >3 will show the whole name if it is less than that","many characters, but if it is longer, will truncate to","`namelength - 3` characters and add an ellipsis."].join(" ")},showarrow:{valType:"boolean",dflt:!0,editType:"none",description:["Sets whether or not to show the hover label arrow/triangle","pointing to the data point."].join(" ")},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",description:["When `dragmode` is set to *select*, this limits the selection of the drag to","horizontal, vertical or diagonal. *h* only allows horizontal selection,","*v* only vertical, *d* only diagonal and *any* sets no limit."].join(" "),editType:"none"}}}),I8=Ee((e,t)=>{var n=Mu(),r=zz().hoverlabel,a=ms().extendFlat;t.exports={hoverlabel:{bgcolor:a({},r.bgcolor,{arrayOk:!0,description:"Sets the background color of the hover labels for this trace"}),bordercolor:a({},r.bordercolor,{arrayOk:!0,description:"Sets the border color of the hover labels for this trace."}),font:n({arrayOk:!0,editType:"none",description:"Sets the font used in hover labels."}),align:a({},r.align,{arrayOk:!0}),namelength:a({},r.namelength,{arrayOk:!0}),showarrow:a({},r.showarrow),editType:"none"}}}),S1=Ee((e,t)=>{var n=Mu(),r=I8();t.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc",description:["Determines whether or not this trace is visible.","If *legendonly*, the trace is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")},showlegend:{valType:"boolean",dflt:!0,editType:"style",description:["Determines whether or not an item corresponding to this","trace is shown in the legend."].join(" ")},legend:{valType:"subplotid",dflt:"legend",editType:"style",description:["Sets the reference to a legend to show this trace in.","References to these legends are *legend*, *legend2*, *legend3*, etc.","Settings for these legends are set in the layout, under","`layout.legend`, `layout.legend2`, etc."].join(" ")},legendgroup:{valType:"string",dflt:"",editType:"style",description:["Sets the legend group for this trace.","Traces and shapes part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style",description:["Sets the title of the legend group."].join(" ")},font:n({editType:"style",description:["Sets this legend group's title font."].join(" ")}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style",description:["Sets the legend rank for this trace.","Items and groups with smaller ranks are presented on top/left side while","with *reversed* `legend.traceorder` they are on bottom/right side.","The default legendrank is 1000,","so that you can use ranks less than 1000 to place certain items before all unranked items,","and ranks greater than 1000 to go after all unranked items.","When having unranked or equal rank items shapes would be displayed after traces","i.e. according to their order in data and layout."].join(" ")},legendwidth:{valType:"number",min:0,editType:"style",description:"Sets the width (in px or fraction) of the legend for this trace."},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style",description:"Sets the opacity of the trace."},name:{valType:"string",editType:"style",description:["Sets the trace name.","The trace name appears as the legend item and on hover."].join(" ")},uid:{valType:"string",editType:"plot",anim:!0,description:["Assign an id to this trace,","Use this to provide object constancy between traces during animations","and transitions."].join(" ")},ids:{valType:"data_array",editType:"calc",anim:!0,description:["Assigns id labels to each datum.","These ids for object constancy of data points during animation.","Should be an array of strings, not numbers or any other type."].join(" ")},customdata:{valType:"data_array",editType:"calc",description:["Assigns extra data each datum.","This may be useful when listening to hover, click and selection events.","Note that, *scatter* traces also appends customdata items in the markers","DOM elements"].join(" ")},meta:{valType:"any",arrayOk:!0,editType:"plot",description:["Assigns extra meta information associated with this trace","that can be used in various text attributes.","Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text`","`rangeselector`, `updatemenues` and `sliders` `label` text","all support `meta`.","To access the trace `meta` values in an attribute in the same trace, simply use","`%{meta[i]}` where `i` is the index or key of the `meta`","item in question.","To access trace `meta` in layout attributes, use","`%{data[n[.meta[i]}` where `i` is the index or key of the `meta`","and `n` is the trace index."].join(" ")},selectedpoints:{valType:"any",editType:"calc",description:["Array containing integer indices of selected points.","Has an effect only for traces that support selections.","Note that an empty array means an empty selection where the `unselected`","are turned on for all points, whereas, any other non-array values means no","selection all where the `selected` and `unselected` styles have no effect."].join(" ")},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none",description:["Determines which trace information appear on hover.","If `none` or `skip` are set, no information is displayed upon hovering.","But, if `none` is set, click and hover events are still fired."].join(" ")},hoverlabel:r.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc",description:["The stream id number links a data trace on a plot with a stream.","See https://chart-studio.plotly.com/settings for more details."].join(" ")},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc",description:["Sets the maximum number of points to keep on the plots from an","incoming stream.","If `maxpoints` is set to *50*, only the newest 50 points will","be displayed on the plot."].join(" ")},editType:"calc"},uirevision:{valType:"any",editType:"none",description:["Controls persistence of some user-driven changes to the trace:","`constraintrange` in `parcoords` traces, as well as some","`editable: true` modifications such as `name` and `colorbar.title`.","Defaults to `layout.uirevision`.","Note that other user-driven trace attribute changes are controlled","by `layout` attributes:","`trace.visible` is controlled by `layout.legend.uirevision`,","`selectedpoints` is controlled by `layout.selectionrevision`,","and `colorbar.(x|y)` (accessible with `config: {editable: true}`)","is controlled by `layout.editrevision`.","Trace changes are tracked by `uid`, which only falls back on trace","index if no `uid` is provided. So if your app can add/remove traces","before the end of the `data` array, such that the same trace has a","different index, you can still preserve user-driven changes if you","give each trace a `uid` that stays with it as it moves."].join(" ")}}}),nw=Ee((e,t)=>{var n=Vh(),r={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},a=r.RdBu;function i(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||0!=+e[0][0]||1!=+e[e.length-1][0])return!1;for(var r=0;r<e.length;r++){var a=e[r];if(2!==a.length||+a[0]<t||!n(a[1]).isValid())return!1;t=+a[0]}return!0}t.exports={scales:r,defaultScale:a,get:function(e,t){if(t||(t=a),!e)return t;function n(){try{e=r[e]||JSON.parse(e)}catch{e=t}}return"string"==typeof e&&(n(),"string"==typeof e&&n()),i(e)?e:t},isValid:function(e){return void 0!==r[e]||i(e)}}}),oh=Ee(e=>{e.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],e.defaultLine="#444",e.lightLine="#eee",e.background="#fff",e.borderLine="#BEC8D9",e.lightFraction=1e3/11}),ao=Ee((e,t)=>{var n=Vh(),r=xs(),a=Lp().isTypedArray,i=t.exports={},o=oh();i.defaults=o.defaults;var s=i.defaultLine=o.defaultLine;i.lightLine=o.lightLine;var l=i.background=o.background;function c(e){if(r(e)||"string"!=typeof e)return e;var t=e.trim();if("rgb"!==t.slice(0,3))return e;var n=t.match(/^rgba?\s*\(([^()]*)\)$/);if(!n)return e;var a=n[1].trim().split(/\s*[\s,]\s*/),i="a"===t.charAt(3)&&4===a.length;if(!i&&3!==a.length)return e;for(var o=0;o<a.length;o++){if(!(a[o].length&&(a[o]=Number(a[o]),a[o]>=0)))return e;if(3===o)a[o]>1&&(a[o]=1);else if(a[o]>=1)return e}var s=Math.round(255*a[0])+", "+Math.round(255*a[1])+", "+Math.round(255*a[2]);return i?"rgba("+s+", "+a[3]+")":"rgb("+s+")"}i.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},i.rgb=function(e){return i.tinyRGB(n(e))},i.opacity=function(e){return e?n(e).getAlpha():0},i.addOpacity=function(e,t){var r=n(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"},i.combine=function(e,t){var r=n(e).toRgb();if(1===r.a)return n(e).toRgbString();var a=n(t||l).toRgb(),i=1===a.a?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},o={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},i.interpolate=function(e,t,r){var a=n(e).toRgb(),i=n(t).toRgb(),o={r:r*a.r+(1-r)*i.r,g:r*a.g+(1-r)*i.g,b:r*a.b+(1-r)*i.b};return n(o).toRgbString()},i.contrast=function(e,t,r){var a=n(e);return 1!==a.getAlpha()&&(a=n(i.combine(e,l))),(a.isDark()?t?a.lighten(t):l:r?a.darken(r):s).toString()},i.stroke=function(e,t){var r=n(t);e.style({stroke:i.tinyRGB(r),"stroke-opacity":r.getAlpha()})},i.fill=function(e,t){var r=n(t);e.style({fill:i.tinyRGB(r),"fill-opacity":r.getAlpha()})},i.clean=function(e){if(e&&"object"==typeof e){var t,n,r,o,s=Object.keys(e);for(t=0;t<s.length;t++)if(o=e[r=s[t]],"color"===r.slice(-5))if(Array.isArray(o))for(n=0;n<o.length;n++)o[n]=c(o[n]);else e[r]=c(o);else if("colorscale"===r.slice(-10)&&Array.isArray(o))for(n=0;n<o.length;n++)Array.isArray(o[n])&&(o[n][1]=c(o[n][1]));else if(Array.isArray(o)){var l=o[0];if(!Array.isArray(l)&&l&&"object"==typeof l)for(n=0;n<o.length;n++)i.clean(o[n])}else o&&"object"==typeof o&&!a(o)&&i.clean(o)}}}),Az=Ee((e,t)=>{t.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}}),N8=Ee(e=>{e.counter=function(e,t,n,r){var a=(t||"")+(n?"":"$"),i=!1===r?"":"^";return"xy"===e?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+a)}}),P9e=Ee(e=>{var t=xs(),n=Vh(),r=ms().extendFlat,a=S1(),i=nw(),o=ao(),s=Az().DESELECTDIM,l=$q(),c=N8().counter,u=P8().modHalf,d=Lp().isArrayOrTypedArray,p=Lp().isTypedArraySpec,h=Lp().decodeTypedArraySpec;function f(t,n){var r=e.valObjectMeta[n.valType];if(n.arrayOk&&d(t))return!0;if(r.validateFunction)return r.validateFunction(t,n);var a={},i=a,o={set:function(e){i=e}};return r.coerceFunction(t,o,a,n),i!==a}e.valObjectMeta={data_array:{description:["An {array} of data.","The value must represent an {array} or it will be ignored,","but this array can be provided in several forms:","(1) a regular {array} object","(2) a typed array (e.g. Float32Array)","(3) an object with keys dtype, bdata, and optionally shape.","In this 3rd form, dtype is one of","*f8*, *f4*.","*i4*, *u4*,","*i2*, *u2*,","*i1*, *u1* or *u1c* for Uint8ClampedArray.","In addition to shorthand `dtype` above one could also use the following forms:","*float64*, *float32*,","*int32*, *uint32*,","*int16*, *uint16*,","*int8*, *uint8* or *uint8c* for Uint8ClampedArray.","`bdata` is either a base64-encoded string or the ArrayBuffer of","an integer or float typed array.","For either multi-dimensional arrays you must also","provide its dimensions separated by comma via `shape`.","For example using `dtype`: *f4* and `shape`: *5,100* you can","declare a 2-D array that has 5 rows and 100 columns","containing float32 values i.e. 4 bits per value.","`shape` is optional for one dimensional arrays."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){t.set(d(e)?e:p(e)?h(e):n)}},enumerated:{description:["Enumerated value type. The available values are listed","in `values`."].join(" "),requiredOpts:["values"],otherOpts:["dflt","coerceNumber","arrayOk"],coerceFunction:function(e,t,n,r){r.coerceNumber&&(e=+e),-1===r.values.indexOf(e)?t.set(n):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var n=t.values,r=0;r<n.length;r++){var a=String(n[r]);if("/"===a.charAt(0)&&"/"===a.charAt(a.length-1)){if(new RegExp(a.slice(1,-1)).test(e))return!0}else if(e===n[r])return!0}return!1}},boolean:{description:"A boolean (true/false) value.",requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(e,t,n,r){let a=e=>!0===e||!1===e;a(e)||r.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(a)?t.set(e):t.set(n)}},number:{description:["A number or a numeric value","(e.g. a number inside a string).","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk"],coerceFunction:function(e,n,r,a){p(e)&&(e=h(e)),!t(e)||void 0!==a.min&&e<a.min||void 0!==a.max&&e>a.max?n.set(r):n.set(+e)}},integer:{description:["An integer or an integer inside a string.","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk","extras"],coerceFunction:function(e,n,r,a){-1===(a.extras||[]).indexOf(e)?(p(e)&&(e=h(e)),e%1||!t(e)||void 0!==a.min&&e<a.min||void 0!==a.max&&e>a.max?n.set(r):n.set(+e)):n.set(e)}},string:{description:["A string value.","Numbers are converted to strings except for attributes with","`strict` set to true."].join(" "),requiredOpts:[],otherOpts:["dflt","noBlank","strict","arrayOk","values"],coerceFunction:function(e,t,n,r){if("string"!=typeof e){var a="number"==typeof e;!0!==r.strict&&a?t.set(String(e)):t.set(n)}else r.noBlank&&!e?t.set(n):t.set(e)}},color:{description:["A string describing color.","Supported formats:","- hex (e.g. '#d3d3d3')","- rgb (e.g. 'rgb(255, 0, 0)')","- rgba (e.g. 'rgb(255, 0, 0, 0.5)')","- hsl (e.g. 'hsl(0, 100%, 50%)')","- hsv (e.g. 'hsv(0, 100%, 100%)')","- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)"].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(e,t,r){p(e)&&(e=h(e)),n(e).isValid()?t.set(e):t.set(r)}},colorlist:{description:["A list of colors.","Must be an {array} containing valid colors."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,r){Array.isArray(e)&&e.length&&e.every(function(e){return n(e).isValid()})?t.set(e):t.set(r)}},colorscale:{description:["A Plotly colorscale either picked by a name:","(any of",Object.keys(i.scales).join(", "),")","customized as an {array} of 2-element {arrays} where","the first element is the normalized color level value","(starting at *0* and ending at *1*),","and the second item is a valid color string."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){t.set(i.get(e,n))}},angle:{description:["A number (in degree) between -180 and 180."].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(e,n,r){p(e)&&(e=h(e)),"auto"===e?n.set("auto"):t(e)?n.set(u(+e,360)):n.set(r)}},subplotid:{description:["An id string of a subplot type (given by dflt), optionally","followed by an integer >1. e.g. if dflt='geo', we can have","'geo', 'geo2', 'geo3', ..."].join(" "),requiredOpts:["dflt"],otherOpts:["regex","arrayOk"],coerceFunction:function(e,t,n,r){var a=r.regex||c(n);let i=e=>"string"==typeof e&&a.test(e);i(e)||r.arrayOk&&d(e)&&e.length>0&&e.every(i)?t.set(e):t.set(n)},validateFunction:function(e,t){var n=t.dflt;return e===n||"string"==typeof e&&!!c(n).test(e)}},flaglist:{description:["A string representing a combination of flags","(order does not matter here).","Combine any of the available `flags` with *+*.","(e.g. ('lines+markers')).","Values in `extras` cannot be combined."].join(" "),requiredOpts:["flags"],otherOpts:["dflt","extras","arrayOk"],coerceFunction:function(e,t,n,r){if(-1===(r.extras||[]).indexOf(e))if("string"==typeof e){for(var a=e.split("+"),i=0;i<a.length;){var o=a[i];-1===r.flags.indexOf(o)||a.indexOf(o)<i?a.splice(i,1):i++}a.length?t.set(a.join("+")):t.set(n)}else t.set(n);else t.set(e)}},any:{description:"Any type.",requiredOpts:[],otherOpts:["dflt","values","arrayOk"],coerceFunction:function(e,t,n){void 0===e?t.set(n):t.set(p(e)?h(e):e)}},info_array:{description:["An {array} of plot information."].join(" "),requiredOpts:["items"],otherOpts:["dflt","freeLength","dimensions"],coerceFunction:function(t,n,r,a){function i(t,n,r){var a,i={set:function(e){a=e}};return void 0===r&&(r=n.dflt),e.valObjectMeta[n.valType].coerceFunction(t,i,r,n),a}if(p(t)&&(t=h(t)),d(t)){var o,s,l,c,u,f,m=2===a.dimensions||"1-2"===a.dimensions&&Array.isArray(t)&&d(t[0]),g=a.items,y=[],b=Array.isArray(g),v=b&&m&&d(g[0]),M=m&&b&&!v,x=b&&!M?g.length:t.length;if(r=Array.isArray(r)?r:[],m)for(o=0;o<x;o++)for(y[o]=[],l=d(t[o])?t[o]:[],u=M?g.length:b?g[o].length:l.length,s=0;s<u;s++)c=M?g[s]:b?g[o][s]:g,void 0!==(f=i(l[s],c,(r[o]||[])[s]))&&(y[o][s]=f);else for(o=0;o<x;o++)void 0!==(f=i(t[o],b?g[o]:g,r[o]))&&(y[o]=f);n.set(y)}else n.set(r)},validateFunction:function(e,t){if(!d(e))return!1;var n=t.items,r=Array.isArray(n),a=2===t.dimensions;if(!t.freeLength&&e.length!==n.length)return!1;for(var i=0;i<e.length;i++)if(a){if(!d(e[i])||!t.freeLength&&e[i].length!==n[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!f(e[i][o],r?n[i][o]:n))return!1}else if(!f(e[i],r?n[i]:n))return!1;return!0}}},e.coerce=function(t,n,r,a,i){var o=l(r,a).get(),s=l(t,a),c=l(n,a),u=s.get(),m=n._template;if(void 0===u&&m&&(u=l(m,a).get(),m=0),void 0===i&&(i=o.dflt),o.arrayOk){if(d(u))return c.set(u),u;if(p(u))return u=h(u),c.set(u),u}var g=e.valObjectMeta[o.valType].coerceFunction;g(u,c,i,o);var y=c.get();return m&&y===i&&!f(u,o)&&(g(u=l(m,a).get(),c,i,o),y=c.get()),y},e.coerce2=function(t,n,r,a,i){var o=l(t,a),s=e.coerce(t,n,r,a,i);return null!=o.get()&&s},e.coerceFont=function(e,t,n,a){a||(a={}),n=r({},n);var i={family:e(t+".family",(n=r(n,a.overrideDflt||{})).family),size:e(t+".size",n.size),color:e(t+".color",n.color),weight:e(t+".weight",n.weight),style:e(t+".style",n.style)};if(a.noFontVariant||(i.variant=e(t+".variant",n.variant)),a.noFontLineposition||(i.lineposition=e(t+".lineposition",n.lineposition)),a.noFontTextcase||(i.textcase=e(t+".textcase",n.textcase)),!a.noFontShadow){var o=n.shadow;"none"===o&&a.autoShadowDflt&&(o="auto"),i.shadow=e(t+".shadow",o)}return i},e.coercePattern=function(e,t,n,r){var a,i=e(t+".shape");if(i||(a=e(t+".path")),i||a){i&&e(t+".solidity"),e(t+".size");var s="overlay"===e(t+".fillmode");if(!r){var l=e(t+".bgcolor",s?n:void 0);e(t+".fgcolor",s?o.contrast(l):n)}e(t+".fgopacity",s?.5:1)}},e.coerceHoverinfo=function(t,n,r){var i,o=n._module.attributes,s=o.hoverinfo?o:a,l=s.hoverinfo;if(1===r._dataLength){var c="all"===l.dflt?l.flags.slice():l.dflt.split("+");c.splice(c.indexOf("name"),1),i=c.join("+")}return e.coerce(t,n,s,"hoverinfo",i)},e.coerceSelectionMarkerOpacity=function(e,t){if(e.marker){var n,r,a=e.marker.opacity;if(void 0!==a)!d(a)&&!e.selected&&!e.unselected&&(n=a,r=s*a),t("selected.marker.opacity",n),t("unselected.marker.opacity",r)}},e.validate=f}),iw=Ee((e,t)=>{var n={staticPlot:{valType:"boolean",dflt:!1,description:["Determines whether the graphs are interactive or not.","If *false*, no interactivity, for export or image generation."].join(" ")},typesetMath:{valType:"boolean",dflt:!0,description:["Determines whether math should be typeset or not,","when MathJax (either v2 or v3) is present on the page."].join(" ")},plotlyServerURL:{valType:"string",dflt:"",description:["When set it determines base URL for","the 'Edit in Chart Studio' `showEditInChartStudio`/`showSendToCloud` mode bar button","and the showLink/sendData on-graph link.","To enable sending your data to Chart Studio Cloud, you need to","set both `plotlyServerURL` to 'https://chart-studio.plotly.com' and","also set `showSendToCloud` to true."].join(" ")},editable:{valType:"boolean",dflt:!1,description:["Determines whether the graph is editable or not.","Sets all pieces of `edits`","unless a separate `edits` config item overrides individual parts."].join(" ")},edits:{annotationPosition:{valType:"boolean",dflt:!1,description:["Determines if the main anchor of the annotation is editable.","The main anchor corresponds to the","text (if no arrow) or the arrow (which drags the whole thing leaving","the arrow length & direction unchanged)."].join(" ")},annotationTail:{valType:"boolean",dflt:!1,description:["Has only an effect for annotations with arrows.","Enables changing the length and direction of the arrow."].join(" ")},annotationText:{valType:"boolean",dflt:!1,description:"Enables editing annotation text."},axisTitleText:{valType:"boolean",dflt:!1,description:"Enables editing axis title text."},colorbarPosition:{valType:"boolean",dflt:!1,description:"Enables moving colorbars."},colorbarTitleText:{valType:"boolean",dflt:!1,description:"Enables editing colorbar title text."},legendPosition:{valType:"boolean",dflt:!1,description:"Enables moving the legend."},legendText:{valType:"boolean",dflt:!1,description:"Enables editing the trace name fields from the legend"},shapePosition:{valType:"boolean",dflt:!1,description:"Enables moving shapes."},titleText:{valType:"boolean",dflt:!1,description:"Enables editing the global layout title."}},editSelection:{valType:"boolean",dflt:!0,description:"Enables moving selections."},autosizable:{valType:"boolean",dflt:!1,description:["Determines whether the graphs are plotted with respect to","layout.autosize:true and infer its container size."].join(" ")},responsive:{valType:"boolean",dflt:!1,description:["Determines whether to change the layout size when window is resized.","In v3, this option will be removed and will always be true."].join(" ")},fillFrame:{valType:"boolean",dflt:!1,description:["When `layout.autosize` is turned on, determines whether the graph","fills the container (the default) or the screen (if set to *true*)."].join(" ")},frameMargins:{valType:"number",dflt:0,min:0,max:.5,description:["When `layout.autosize` is turned on, set the frame margins","in fraction of the graph size."].join(" ")},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map",description:["Determines whether mouse wheel or two-finger scroll zooms is enable.","Turned on by default for gl3d, geo, mapbox and map subplots","(as these subplot types do not have zoombox via pan),","but turned off by default for cartesian subplots.","Set `scrollZoom` to *false* to disable scrolling for all subplots."].join(" ")},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize",description:["Sets the double click interaction mode.","Has an effect only in cartesian plots.","If *false*, double click is disable.","If *reset*, double click resets the axis ranges to their initial values.","If *autosize*, double click set the axis ranges to their autorange values.","If *reset+autosize*, the odd double clicks resets the axis ranges","to their initial values and even double clicks set the axis ranges","to their autorange values."].join(" ")},doubleClickDelay:{valType:"number",dflt:300,min:0,description:["Sets the delay for registering a double-click in ms.","This is the time interval (in ms) between first mousedown and","2nd mouseup to constitute a double-click.","This setting propagates to all on-subplot double clicks","(except for geo, mapbox and map) and on-legend double clicks."].join(" ")},showAxisDragHandles:{valType:"boolean",dflt:!0,description:["Set to *false* to omit cartesian axis pan/zoom drag handles."].join(" ")},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0,description:["Set to *false* to omit direct range entry at the pan/zoom drag points,","note that `showAxisDragHandles` must be enabled to have an effect."].join(" ")},showTips:{valType:"boolean",dflt:!0,description:["Determines whether or not tips are shown while interacting","with the resulting graphs."].join(" ")},displayNotifier:{valType:"boolean",dflt:!0,description:"Determines whether or not notifier is displayed."},showLink:{valType:"boolean",dflt:!1,description:["Determines whether a link to Chart Studio Cloud is displayed","at the bottom right corner of resulting graphs.","Use with `sendData` and `linkText`."].join(" ")},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0,description:["Sets the text appearing in the `showLink` link."].join(" ")},sendData:{valType:"boolean",dflt:!0,description:["If *showLink* is true, does it contain data","just link to a Chart Studio Cloud file?"].join(" ")},showSources:{valType:"any",dflt:!1,description:["Adds a source-displaying function to show sources on","the resulting graphs."].join(" ")},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover",description:["Determines the mode bar display mode.","If *true*, the mode bar is always visible.","If *false*, the mode bar is always hidden.","If *hover*, the mode bar is visible while the mouse cursor","is on the graph container."].join(" ")},showSendToCloud:{valType:"boolean",dflt:!1,description:['Should we include a ModeBar button, labeled "Edit in Chart Studio",',"that sends this chart to chart-studio.plotly.com (formerly plot.ly) or another plotly server","as specified by `plotlyServerURL` for editing, export, etc? Prior to version 1.43.0","this button was included by default, now it is opt-in using this flag.","Note that this button can (depending on `plotlyServerURL` being set) send your data","to an external server. However that server does not persist your data",'until you arrive at the Chart Studio and explicitly click "Save".'].join(" ")},showEditInChartStudio:{valType:"boolean",dflt:!1,description:["Same as `showSendToCloud`, but use a pencil icon instead of a floppy-disk.","Note that if both `showSendToCloud` and `showEditInChartStudio` are turned,","only `showEditInChartStudio` will be honored."].join(" ")},modeBarButtonsToRemove:{valType:"any",dflt:[],description:["Remove mode bar buttons by name.","See ./components/modebar/buttons.js for the list of names."].join(" ")},modeBarButtonsToAdd:{valType:"any",dflt:[],description:["Add mode bar button using config objects","See ./components/modebar/buttons.js for list of arguments.","To enable predefined modebar buttons e.g. shape drawing, hover and spikelines,","simply provide their string name(s). This could include:","*v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*,","*drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect* and *eraseshape*.","Please note that these predefined buttons will only be shown if they are compatible","with all trace types used in a graph."].join(" ")},modeBarButtons:{valType:"any",dflt:!1,description:["Define fully custom mode bar buttons as nested array,","where the outer arrays represents button groups, and","the inner arrays have buttons config objects or names of default buttons","See ./components/modebar/buttons.js for more info."].join(" ")},toImageButtonOptions:{valType:"any",dflt:{},description:["Statically override options for toImage modebar button","allowed keys are format, filename, width, height, scale","see ../components/modebar/buttons.js"].join(" ")},displaylogo:{valType:"boolean",dflt:!0,description:["Determines whether or not the plotly logo is displayed","on the end of the mode bar."].join(" ")},watermark:{valType:"boolean",dflt:!1,description:"watermark the images with the company's logo"},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4,description:["Set the pixel ratio during WebGL image export."].join(" ")},setBackground:{valType:"any",dflt:"transparent",description:["Set function to add the background color (i.e. `layout.paper_color`)","to a different container.","This function take the graph div as first argument and the current background","color as second argument.","Alternatively, set to string *opaque* to ensure there is white behind it."].join(" ")},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/",description:["Set the URL to topojson used in geo charts.","By default, the topojson files are fetched from cdn.plot.ly.","For example, set this option to:","<path-to-plotly.js>/dist/topojson/","to render geographical feature using the topojson files","that ship with the plotly.js module."].join(" ")},mapboxAccessToken:{valType:"string",dflt:null,description:["Mapbox access token (required to plot mapbox trace types)","If using an Mapbox Atlas server, set this option to ''","so that plotly.js won't attempt to authenticate to the public Mapbox server."].join(" ")},logging:{valType:"integer",min:0,max:2,dflt:1,description:["Turn all console logging on or off (errors will be thrown)","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0,description:["Set on-graph logging (notifier) level","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no on-graph logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},queueLength:{valType:"integer",min:0,dflt:0,description:"Sets the length of the undo/redo queue."},locale:{valType:"string",dflt:"en-US",description:["Which localization should we use?","Should be a string like 'en' or 'en-US'."].join(" ")},locales:{valType:"any",dflt:{},description:["Localization definitions","Locales can be provided either here (specific to one chart) or globally","by registering them as modules.","Should be an object of objects {locale: {dictionary: {...}, format: {...}}}","{"," da: {"," dictionary: {'Reset axes': 'Nulstil aksler', ...},"," format: {months: [...], shortMonths: [...]}"," },"," ...","}","All parts are optional. When looking for translation or format fields, we","look first for an exact match in a config locale, then in a registered","module. If those fail, we strip off any regionalization ('en-US' -> 'en')","and try each (config, registry) again. The final fallback for translation","is untranslated (which is US English) and for formats is the base English","(the only consequence being the last fallback date format %x is DD/MM/YYYY","instead of MM/DD/YYYY). Currently `grouping` and `currency` are ignored","for our automatic number formatting, but can be used in custom formats."].join(" ")}},r={};!function e(t,n){for(var r in t){var a=t[r];a.valType?n[r]=a.dflt:(n[r]||(n[r]={}),e(a,n[r]))}}(n,r),t.exports={configAttributes:n,dfltConfig:r}}),Voe=Ee((e,t)=>{var n=mo(),r=xs(),a=[];t.exports=function(e,t,i){if(!1!==i?._context?.displayNotifier&&-1===a.indexOf(e)){a.push(e);var o=1e3;r(t)?o=t:"long"===t&&(o=3e3);var s=n.select("body").selectAll(".plotly-notifier").data([0]);s.enter().append("div").classed("plotly-notifier",!0),s.selectAll(".notifier-note").data(a).enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(e){var r=n.select(this);r.append("button").classed("notifier-close",!0).html("&times;").on("click",function(){r.transition().call(l)});for(var a=r.append("p"),i=e.split(/<br\s*\/?>/g),s=0;s<i.length;s++)s&&a.append("br"),a.append("span").text(i[s]);"stick"===t?r.transition().duration(350).style("opacity",1):r.transition().duration(700).style("opacity",1).transition().delay(o).call(l)})}function l(e){e.duration(700).style("opacity",0).each("end",function(e){var t=a.indexOf(e);-1!==t&&a.splice(t,1),n.select(this).remove()})}}}),Tz=Ee((e,t)=>{var n=iw().dfltConfig,r=Voe(),a=t.exports={};a.log=function(){var e;if(n.logging>1){var t=["LOG:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.trace.apply(console,t)}if(n.notifyOnLogging>1){var a=[];for(e=0;e<arguments.length;e++)a.push(arguments[e]);r(a.join("<br>"),"long")}},a.warn=function(){var e;if(n.logging>0){var t=["WARN:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.trace.apply(console,t)}if(n.notifyOnLogging>0){var a=[];for(e=0;e<arguments.length;e++)a.push(arguments[e]);r(a.join("<br>"),"stick")}},a.error=function(){var e;if(n.logging>0){var t=["ERROR:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.error.apply(console,t)}if(n.notifyOnLogging>0){var a=[];for(e=0;e<arguments.length;e++)a.push(arguments[e]);r(a.join("<br>"),"stick")}}}),KU=Ee((e,t)=>{t.exports=function(){}}),Xoe=Ee((e,t)=>{t.exports=function(e,t){if(t instanceof RegExp){for(var n=t.toString(),r=0;r<e.length;r++)if(e[r]instanceof RegExp&&e[r].toString()===n)return e;e.push(t)}else(t||0===t)&&-1===e.indexOf(t)&&e.push(t);return e}}),G9e=Ee((e,t)=>{t.exports=function(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}}),Y9e=Ee((e,t)=>{t.exports=function(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}}),$9e=Ee((e,t)=>{t.exports=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}}),Yoe=Ee((e,t)=>{t.exports=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}}),Q9e=Ee((e,t)=>{t.exports=function(e,t){if(e===t){var n=t[1],r=t[2],a=t[3],i=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=i,e[11]=t[14],e[12]=a,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}}),t7e=Ee((e,t)=>{t.exports=function(e,t){var n=t[0],r=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=t[9],p=t[10],h=t[11],f=t[12],m=t[13],g=t[14],y=t[15],b=n*s-r*o,v=n*l-a*o,M=n*c-i*o,x=r*l-a*s,z=r*c-i*s,_=a*c-i*l,A=u*m-d*f,O=u*g-p*f,w=u*y-h*f,k=d*g-p*m,T=d*y-h*m,S=p*y-h*g,C=b*S-v*T+M*k+x*w-z*O+_*A;return C?(C=1/C,e[0]=(s*S-l*T+c*k)*C,e[1]=(a*T-r*S-i*k)*C,e[2]=(m*_-g*z+y*x)*C,e[3]=(p*z-d*_-h*x)*C,e[4]=(l*w-o*S-c*O)*C,e[5]=(n*S-a*w+i*O)*C,e[6]=(g*M-f*_-y*v)*C,e[7]=(u*_-p*M+h*v)*C,e[8]=(o*T-s*w+c*A)*C,e[9]=(r*w-n*T-i*A)*C,e[10]=(f*z-m*M+y*b)*C,e[11]=(d*M-u*z-h*b)*C,e[12]=(s*O-o*k-l*A)*C,e[13]=(n*k-r*O+a*A)*C,e[14]=(m*v-f*x-g*b)*C,e[15]=(u*x-d*v+p*b)*C,e):null}}),n7e=Ee((e,t)=>{t.exports=function(e,t){var n=t[0],r=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=t[9],p=t[10],h=t[11],f=t[12],m=t[13],g=t[14],y=t[15];return e[0]=s*(p*y-h*g)-d*(l*y-c*g)+m*(l*h-c*p),e[1]=-(r*(p*y-h*g)-d*(a*y-i*g)+m*(a*h-i*p)),e[2]=r*(l*y-c*g)-s*(a*y-i*g)+m*(a*c-i*l),e[3]=-(r*(l*h-c*p)-s*(a*h-i*p)+d*(a*c-i*l)),e[4]=-(o*(p*y-h*g)-u*(l*y-c*g)+f*(l*h-c*p)),e[5]=n*(p*y-h*g)-u*(a*y-i*g)+f*(a*h-i*p),e[6]=-(n*(l*y-c*g)-o*(a*y-i*g)+f*(a*c-i*l)),e[7]=n*(l*h-c*p)-o*(a*h-i*p)+u*(a*c-i*l),e[8]=o*(d*y-h*m)-u*(s*y-c*m)+f*(s*h-c*d),e[9]=-(n*(d*y-h*m)-u*(r*y-i*m)+f*(r*h-i*d)),e[10]=n*(s*y-c*m)-o*(r*y-i*m)+f*(r*c-i*s),e[11]=-(n*(s*h-c*d)-o*(r*h-i*d)+u*(r*c-i*s)),e[12]=-(o*(d*g-p*m)-u*(s*g-l*m)+f*(s*p-l*d)),e[13]=n*(d*g-p*m)-u*(r*g-a*m)+f*(r*p-a*d),e[14]=-(n*(s*g-l*m)-o*(r*g-a*m)+f*(r*l-a*s)),e[15]=n*(s*p-l*d)-o*(r*p-a*d)+u*(r*l-a*s),e}}),i7e=Ee((e,t)=>{t.exports=function(e){var t=e[0],n=e[1],r=e[2],a=e[3],i=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],d=e[10],p=e[11],h=e[12],f=e[13],m=e[14],g=e[15];return(t*o-n*i)*(d*g-p*m)-(t*s-r*i)*(u*g-p*f)+(t*l-a*i)*(u*m-d*f)+(n*s-r*o)*(c*g-p*h)-(n*l-a*o)*(c*m-d*h)+(r*l-a*s)*(c*f-u*h)}}),s7e=Ee((e,t)=>{t.exports=function(e,t,n){var r=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],p=t[9],h=t[10],f=t[11],m=t[12],g=t[13],y=t[14],b=t[15],v=n[0],M=n[1],x=n[2],z=n[3];return e[0]=v*r+M*s+x*d+z*m,e[1]=v*a+M*l+x*p+z*g,e[2]=v*i+M*c+x*h+z*y,e[3]=v*o+M*u+x*f+z*b,v=n[4],M=n[5],x=n[6],z=n[7],e[4]=v*r+M*s+x*d+z*m,e[5]=v*a+M*l+x*p+z*g,e[6]=v*i+M*c+x*h+z*y,e[7]=v*o+M*u+x*f+z*b,v=n[8],M=n[9],x=n[10],z=n[11],e[8]=v*r+M*s+x*d+z*m,e[9]=v*a+M*l+x*p+z*g,e[10]=v*i+M*c+x*h+z*y,e[11]=v*o+M*u+x*f+z*b,v=n[12],M=n[13],x=n[14],z=n[15],e[12]=v*r+M*s+x*d+z*m,e[13]=v*a+M*l+x*p+z*g,e[14]=v*i+M*c+x*h+z*y,e[15]=v*o+M*u+x*f+z*b,e}}),c7e=Ee((e,t)=>{t.exports=function(e,t,n){var r,a,i,o,s,l,c,u,d,p,h,f,m=n[0],g=n[1],y=n[2];return t===e?(e[12]=t[0]*m+t[4]*g+t[8]*y+t[12],e[13]=t[1]*m+t[5]*g+t[9]*y+t[13],e[14]=t[2]*m+t[6]*g+t[10]*y+t[14],e[15]=t[3]*m+t[7]*g+t[11]*y+t[15]):(r=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],p=t[9],h=t[10],f=t[11],e[0]=r,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e[6]=c,e[7]=u,e[8]=d,e[9]=p,e[10]=h,e[11]=f,e[12]=r*m+s*g+d*y+t[12],e[13]=a*m+l*g+p*y+t[13],e[14]=i*m+c*g+h*y+t[14],e[15]=o*m+u*g+f*y+t[15]),e}}),d7e=Ee((e,t)=>{t.exports=function(e,t,n){var r=n[0],a=n[1],i=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}}),h7e=Ee((e,t)=>{t.exports=function(e,t,n,r){var a,i,o,s,l,c,u,d,p,h,f,m,g,y,b,v,M,x,z,_,A,O,w,k,T=r[0],S=r[1],C=r[2],E=Math.sqrt(T*T+S*S+C*C);return Math.abs(E)<1e-6?null:(T*=E=1/E,S*=E,C*=E,a=Math.sin(n),i=Math.cos(n),o=1-i,s=t[0],l=t[1],c=t[2],u=t[3],d=t[4],p=t[5],h=t[6],f=t[7],m=t[8],g=t[9],y=t[10],b=t[11],v=T*T*o+i,M=S*T*o+C*a,x=C*T*o-S*a,z=T*S*o-C*a,_=S*S*o+i,A=C*S*o+T*a,O=T*C*o+S*a,w=S*C*o-T*a,k=C*C*o+i,e[0]=s*v+d*M+m*x,e[1]=l*v+p*M+g*x,e[2]=c*v+h*M+y*x,e[3]=u*v+f*M+b*x,e[4]=s*z+d*_+m*A,e[5]=l*z+p*_+g*A,e[6]=c*z+h*_+y*A,e[7]=u*z+f*_+b*A,e[8]=s*O+d*w+m*k,e[9]=l*O+p*w+g*k,e[10]=c*O+h*w+y*k,e[11]=u*O+f*w+b*k,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}}),m7e=Ee((e,t)=>{t.exports=function(e,t,n){var r=Math.sin(n),a=Math.cos(n),i=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],d=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*a+c*r,e[5]=o*a+u*r,e[6]=s*a+d*r,e[7]=l*a+p*r,e[8]=c*a-i*r,e[9]=u*a-o*r,e[10]=d*a-s*r,e[11]=p*a-l*r,e}}),g7e=Ee((e,t)=>{t.exports=function(e,t,n){var r=Math.sin(n),a=Math.cos(n),i=t[0],o=t[1],s=t[2],l=t[3],c=t[8],u=t[9],d=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*a-c*r,e[1]=o*a-u*r,e[2]=s*a-d*r,e[3]=l*a-p*r,e[8]=i*r+c*a,e[9]=o*r+u*a,e[10]=s*r+d*a,e[11]=l*r+p*a,e}}),b7e=Ee((e,t)=>{t.exports=function(e,t,n){var r=Math.sin(n),a=Math.cos(n),i=t[0],o=t[1],s=t[2],l=t[3],c=t[4],u=t[5],d=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*a+c*r,e[1]=o*a+u*r,e[2]=s*a+d*r,e[3]=l*a+p*r,e[4]=c*a-i*r,e[5]=u*a-o*r,e[6]=d*a-s*r,e[7]=p*a-l*r,e}}),x7e=Ee((e,t)=>{t.exports=function(e,t,n){var r,a,i,o=n[0],s=n[1],l=n[2],c=Math.sqrt(o*o+s*s+l*l);return Math.abs(c)<1e-6?null:(o*=c=1/c,s*=c,l*=c,r=Math.sin(t),a=Math.cos(t),i=1-a,e[0]=o*o*i+a,e[1]=s*o*i+l*r,e[2]=l*o*i-s*r,e[3]=0,e[4]=o*s*i-l*r,e[5]=s*s*i+a,e[6]=l*s*i+o*r,e[7]=0,e[8]=o*l*i+s*r,e[9]=s*l*i-o*r,e[10]=l*l*i+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}}),z7e=Ee((e,t)=>{t.exports=function(e,t,n){var r=t[0],a=t[1],i=t[2],o=t[3],s=r+r,l=a+a,c=i+i,u=r*s,d=r*l,p=r*c,h=a*l,f=a*c,m=i*c,g=o*s,y=o*l,b=o*c;return e[0]=1-(h+m),e[1]=d+b,e[2]=p-y,e[3]=0,e[4]=d-b,e[5]=1-(u+m),e[6]=f+g,e[7]=0,e[8]=p+y,e[9]=f-g,e[10]=1-(u+h),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}}),w7e=Ee((e,t)=>{t.exports=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}}),T7e=Ee((e,t)=>{t.exports=function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}}),k7e=Ee((e,t)=>{t.exports=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r,e[6]=n,e[7]=0,e[8]=0,e[9]=-n,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}}),E7e=Ee((e,t)=>{t.exports=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=0,e[2]=-n,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=n,e[9]=0,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}}),D7e=Ee((e,t)=>{t.exports=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=0,e[4]=-n,e[5]=r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}}),L7e=Ee((e,t)=>{t.exports=function(e,t){var n=t[0],r=t[1],a=t[2],i=t[3],o=n+n,s=r+r,l=a+a,c=n*o,u=r*o,d=r*s,p=a*o,h=a*s,f=a*l,m=i*o,g=i*s,y=i*l;return e[0]=1-d-f,e[1]=u+y,e[2]=p-g,e[3]=0,e[4]=u-y,e[5]=1-c-f,e[6]=h+m,e[7]=0,e[8]=p+g,e[9]=h-m,e[10]=1-c-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}}),I7e=Ee((e,t)=>{t.exports=function(e,t,n,r,a,i,o){var s=1/(n-t),l=1/(a-r),c=1/(i-o);return e[0]=2*i*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*i*l,e[6]=0,e[7]=0,e[8]=(n+t)*s,e[9]=(a+r)*l,e[10]=(o+i)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*c,e[15]=0,e}}),W7e=Ee((e,t)=>{t.exports=function(e,t,n,r,a){var i=1/Math.tan(t/2),o=1/(r-a);return e[0]=i/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+r)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*r*o,e[15]=0,e}}),B7e=Ee((e,t)=>{t.exports=function(e,t,n,r){var a=Math.tan(t.upDegrees*Math.PI/180),i=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+s),c=2/(a+i);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-(o-s)*l*.5,e[9]=(a-i)*c*.5,e[10]=r/(n-r),e[11]=-1,e[12]=0,e[13]=0,e[14]=r*n/(n-r),e[15]=0,e}}),H7e=Ee((e,t)=>{t.exports=function(e,t,n,r,a,i,o){var s=1/(t-n),l=1/(r-a),c=1/(i-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+n)*s,e[13]=(a+r)*l,e[14]=(o+i)*c,e[15]=1,e}}),j7e=Ee((e,t)=>{var n=Yoe();t.exports=function(e,t,r,a){var i,o,s,l,c,u,d,p,h,f,m=t[0],g=t[1],y=t[2],b=a[0],v=a[1],M=a[2],x=r[0],z=r[1],_=r[2];return Math.abs(m-x)<1e-6&&Math.abs(g-z)<1e-6&&Math.abs(y-_)<1e-6?n(e):(d=m-x,p=g-z,h=y-_,f=1/Math.sqrt(d*d+p*p+h*h),i=v*(h*=f)-M*(p*=f),o=M*(d*=f)-b*h,s=b*p-v*d,(f=Math.sqrt(i*i+o*o+s*s))?(i*=f=1/f,o*=f,s*=f):(i=0,o=0,s=0),l=p*s-h*o,c=h*i-d*s,u=d*o-p*i,(f=Math.sqrt(l*l+c*c+u*u))?(l*=f=1/f,c*=f,u*=f):(l=0,c=0,u=0),e[0]=i,e[1]=l,e[2]=d,e[3]=0,e[4]=o,e[5]=c,e[6]=p,e[7]=0,e[8]=s,e[9]=u,e[10]=h,e[11]=0,e[12]=-(i*m+o*g+s*y),e[13]=-(l*m+c*g+u*y),e[14]=-(d*m+p*g+h*y),e[15]=1,e)}}),X7e=Ee((e,t)=>{t.exports=function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}}),Zoe=Ee((e,t)=>{t.exports={create:G9e(),clone:Y9e(),copy:$9e(),identity:Yoe(),transpose:Q9e(),invert:t7e(),adjoint:n7e(),determinant:i7e(),multiply:s7e(),translate:c7e(),scale:d7e(),rotate:h7e(),rotateX:m7e(),rotateY:g7e(),rotateZ:b7e(),fromRotation:x7e(),fromRotationTranslation:z7e(),fromScaling:w7e(),fromTranslation:T7e(),fromXRotation:k7e(),fromYRotation:E7e(),fromZRotation:D7e(),fromQuat:L7e(),frustum:I7e(),perspective:W7e(),perspectiveFromFieldOfView:B7e(),ortho:H7e(),lookAt:j7e(),str:X7e()}}),JU=Ee(e=>{var t=Zoe();e.init2dArray=function(e,t){for(var n=new Array(e),r=0;r<e;r++)n[r]=new Array(t);return n},e.transposeRagged=function(e){var t,n,r=0,a=e.length;for(t=0;t<a;t++)r=Math.max(r,e[t].length);var i=new Array(r);for(t=0;t<r;t++)for(i[t]=new Array(a),n=0;n<a;n++)i[t][n]=e[n][t];return i},e.dot=function(t,n){if(!t.length||!n.length||t.length!==n.length)return null;var r,a,i=t.length;if(t[0].length)for(r=new Array(i),a=0;a<i;a++)r[a]=e.dot(t[a],n);else if(n[0].length){var o=e.transposeRagged(n);for(r=new Array(o.length),a=0;a<o.length;a++)r[a]=e.dot(t,o[a])}else for(r=0,a=0;a<i;a++)r+=t[a]*n[a];return r},e.translationMatrix=function(e,t){return[[1,0,e],[0,1,t],[0,0,1]]},e.rotationMatrix=function(e){var t=e*Math.PI/180;return[[Math.cos(t),-Math.sin(t),0],[Math.sin(t),Math.cos(t),0],[0,0,1]]},e.rotationXYMatrix=function(t,n,r){return e.dot(e.dot(e.translationMatrix(n,r),e.rotationMatrix(t)),e.translationMatrix(-n,-r))},e.apply3DTransform=function(t){return function(){var n=arguments,r=1===arguments.length?n[0]:[n[0],n[1],n[2]||0];return e.dot(t,[r[0],r[1],r[2],1]).slice(0,3)}},e.apply2DTransform=function(t){return function(){var n=arguments;3===n.length&&(n=n[0]);var r=1===arguments.length?n[0]:[n[0],n[1]];return e.dot(t,[r[0],r[1],1]).slice(0,2)}},e.apply2DTransform2=function(t){var n=e.apply2DTransform(t);return function(e){return n(e.slice(0,2)).concat(n(e.slice(2,4)))}},e.convertCssMatrix=function(e){if(e){var t=e.length;if(16===t)return e;if(6===t)return[e[0],e[1],0,0,e[2],e[3],0,0,0,0,1,0,e[4],e[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},e.inverseTransformMatrix=function(e){var n=[];return t.invert(n,e),[[n[0],n[1],n[2],n[3]],[n[4],n[5],n[6],n[7]],[n[8],n[9],n[10],n[11]],[n[12],n[13],n[14],n[15]]]}}),iD=Ee((e,t)=>{var n=mo(),r=Tz(),a=JU(),i=Zoe();function o(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function s(e,t,n){var a="plotly.js-style-"+e,i=document.getElementById(a);if(!i||!i.matches(".no-inline-styles")){i||((i=document.createElement("style")).setAttribute("id",a),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var o=i.sheet;o?o.insertRule?o.insertRule(t+"{"+n+"}",0):o.addRule?o.addRule(t,n,0):r.warn("addStyleRule failed"):r.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function l(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return"none"===n?null:n.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(e){return+e})}function c(e){for(var t=[];u(e);)t.push(e),e=e.parentNode,"function"==typeof ShadowRoot&&e instanceof ShadowRoot&&(e=e.host);return t}function u(e){return e&&(e instanceof Element||e instanceof HTMLElement)}t.exports={getGraphDiv:function(e){var t;if("string"==typeof e){if(null===(t=document.getElementById(e)))throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}if(null==e)throw new Error("DOM element provided is null or undefined");return e},isPlotDiv:function(e){var t=n.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")},removeElement:o,addStyleRule:function(e,t){s("global",e,t)},addRelatedStyleRule:s,deleteRelatedStyleRule:function(e){var t="plotly.js-style-"+e,n=document.getElementById(t);n&&o(n)},setStyleOnHover:function(e,t,n,r,a,i){var o=r.split(":"),s=a.split(":"),l="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(e){e.getAttribute(l)||(e.addEventListener("mouseenter",function(){var e=this.querySelector(n);e&&(e.style[o[0]]=o[1])}),e.addEventListener("mouseleave",function(){var e=this.querySelector(n);e&&(t&&this.matches(t)?e.style[o[0]]=o[1]:e.style[s[0]]=s[1])}),e.setAttribute(l,!0))})},getFullTransformMatrix:function(e){var t=c(e),n=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(e){var t=l(e);if(t){var r=a.convertCssMatrix(t);n=i.multiply(n,n,r)}}),n},getElementTransformMatrix:l,getElementAndAncestors:c,equalDomRects:function(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}}}),oD=Ee((e,t)=>{t.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"],description:["Describes how a new animate call interacts with currently-running","animations. If `immediate`, current animations are interrupted and","the new animation is started. If `next`, the current frame is allowed","to complete, after which the new animation is started. If `afterall`","all existing frames are animated to completion before the new animation","is started."].join(" ")},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward",description:["The direction in which to play the frames triggered by the animation call"].join(" ")},fromcurrent:{valType:"boolean",dflt:!1,description:["Play frames starting at the current frame instead of the beginning."].join(" ")},frame:{duration:{valType:"number",min:0,dflt:500,description:["The duration in milliseconds of each frame. If greater than the frame","duration, it will be limited to the frame duration."].join(" ")},redraw:{valType:"boolean",dflt:!0,description:["Redraw the plot at completion of the transition. This is desirable","for transitions that include properties that cannot be transitioned,","but may significantly slow down updates that do not require a full","redraw of the plot"].join(" ")}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none",description:["The duration of the transition, in milliseconds. If equal to zero,","updates are synchronous."].join(" ")},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none",description:"The easing function used for the transition"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none",description:["Determines whether the figure's layout or traces smoothly transitions","during updates that make both traces and layout change."].join(" ")}}}}),Wu=Ee((e,t)=>{var n=ms().extendFlat,r=mx(),a={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"],description:["trace attributes should include an `editType` string matching this flaglist.","*calc* is the most extensive: a full (re)plot starting by clearing `gd.calcdata`","to force it to be regenerated","*clearAxisTypes* resets the types of the axes this trace is on, because new data could","cause the automatic axis type detection to change. Log type will not be cleared, as that","is never automatically chosen so must have been user-specified.","*plot* (re)plots but without first clearing `gd.calcdata`.","*style* only calls `module.style` (or module.editStyle) for all trace modules and redraws the legend.","*markerSize* is like *style*, but propagate axis-range changes due to scatter `marker.size`","*colorbars* only redraws colorbars."].join(" ")},i={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"],description:["layout attributes should include an `editType` string matching this flaglist.","*calc* is the most extensive: a full (re)plot starting by clearing `gd.calcdata`","to force it to be regenerated","*plot* (re)plots but without first clearing `gd.calcdata`.","*legend* only redraws the legend.","*ticks* only redraws axis ticks, labels, and gridlines.","*axrange* minimal sequence when updating axis ranges.","*layoutstyle* reapplies global and SVG cartesian axis styles.","*modebar* just updates the modebar.","*camera* just updates the camera settings for gl3d scenes.","*arraydraw* allows component arrays to invoke the redraw routines just for the","component(s) that changed.","*colorbars* only redraws colorbars."].join(" ")},o=a.flags.slice().concat(["fullReplot"]),s=i.flags.slice().concat("layoutReplot");function l(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!1;return t}function c(e,t,a){var i=n({},e);for(var o in i){var s=i[o];r(s)&&(i[o]=u(s,t,a,o))}return"from-root"===a&&(i.editType=t),i}function u(e,t,r,a){if(e.valType){var i=n({},e);if(i.editType=t,Array.isArray(e.items)){i.items=new Array(e.items.length);for(var o=0;o<e.items.length;o++)i.items[o]=u(e.items[o],t,"from-root")}return i}return c(e,t,"_"===a.charAt(0)?"nested":"from-root")}t.exports={traces:a,layout:i,traceFlags:function(){return l(o)},layoutFlags:function(){return l(s)},update:function(e,t){var n=t.editType;if(n&&"none"!==n)for(var r=n.split("+"),a=0;a<r.length;a++)e[r[a]]=!0},overrideAll:c}}),pp=Ee(e=>{e.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style",description:["Sets the dash style of lines. Set to a dash type string","(*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*)","or a dash length list in px (eg *5px,10px,2px,2px*)."].join(" ")},e.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style",description:["Sets the shape of the pattern fill.","By default, no pattern is used for filling the area."].join(" ")},path:{valType:"string",arrayOk:!0,editType:"style",description:["Sets a custom path for pattern fill.","Use with no `shape` or `solidity`, provide an SVG path string for","the regions of the square from (0,0) to (`size`,`size`) to color."].join(" ")},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style",description:["Determines whether `marker.color` should be used","as a default to `bgcolor` or a `fgcolor`."].join(" ")},bgcolor:{valType:"color",arrayOk:!0,editType:"style",description:["When there is no colorscale sets the color of background pattern fill.","Defaults to a `marker.color` background when `fillmode` is *overlay*.","Otherwise, defaults to a transparent background."].join(" ")},fgcolor:{valType:"color",arrayOk:!0,editType:"style",description:["When there is no colorscale sets the color of foreground pattern fill.","Defaults to a `marker.color` background when `fillmode` is *replace*.","Otherwise, defaults to dark grey or white","to increase contrast with the `bgcolor`."].join(" ")},fgopacity:{valType:"number",editType:"style",min:0,max:1,description:["Sets the opacity of the foreground pattern fill.","Defaults to a 0.5 when `fillmode` is *overlay*.","Otherwise, defaults to 1."].join(" ")},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style",description:["Sets the size of unit squares of the pattern fill in pixels,","which corresponds to the interval of repetition of the pattern."].join(" ")},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style",description:["Sets the solidity of the pattern fill.","Solidity is roughly the fraction of the area filled by the pattern.","Solidity of 0 shows only the background color without pattern","and solidty of 1 shows only the foreground color without pattern."].join(" ")},editType:"style",description:["Sets the pattern within the marker."].join(" ")}}),Koe=Ee((e,t)=>{t.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}}),p1=Ee(e=>{var{DATE_FORMAT_LINK:t,FORMAT_LINK:n}=Koe(),r=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function a({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),'Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".',n,"for details on the formatting syntax.",'Dates are formatted using d3-time-format\'s syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".',t,"for details on the date formatting syntax.",r].join(" ")}function i({description:e,keys:t=[]}){let n=e?" ":"";if(t.length>0){let e=t.map(e=>`\`${e}\``);n+="Finally, the template string has access to ",1===t.length?n+=`variable ${e[0]}`:n+=`variables ${e.slice(0,-1).join(", ")} and ${e.slice(-1)}.`}return n}e.templateFormatStringDescription=a,e.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},n={})=>({valType:"string",dflt:"",editType:e,description:["Template string used for rendering the information that appear on hover box.","Note that this will override `hoverinfo`.",a({supportOther:!0}),"The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data.","Additionally, all attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",i(n),"Anything contained in tag `<extra>` is displayed in the secondary box, for example `<extra>%{fullData.name}</extra>`.","To hide the secondary box completely, use an empty tag `<extra></extra>`."].join(" "),...!1!==t?{arrayOk:!0}:{}}),e.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},n={})=>({valType:"string",dflt:"",editType:e,description:["Template string used for rendering the information text that appears on points.","Note that this will override `textinfo`.",a(),"All attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",i(n)].join(" "),...!1!==t?{arrayOk:!0}:{}}),e.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:a}={},o={})=>({valType:"string",dflt:"",editType:e,description:[`Template string used for rendering the ${a?"new ":""}shape's label.`,"Note that this will override `text`.","Variables are inserted using %{variable},",'for example "x0: %{x0}".','Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example "Price: %{x0:$.2f}". See',n,"for details on the formatting syntax.",'Dates are formatted using d3-time-format\'s syntax %{variable|d3-time-format}, for example "Day: %{x0|%m %b %Y}". See',t,"for details on the date formatting syntax.","A single multiplication or division operation may be applied to numeric variables, and combined with",'d3 number formatting, for example "Length in cm: %{x0*2.54}", "%{slope*60:.1f} meters per second."',"For log axes, variable values are given in log units.","For date axes, x/y coordinate variables and center variables use datetimes, while all other variable values use values in ms.",i(o),r].join(" ")}),e.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e,description:["Fallback string that's displayed when a variable referenced in a template is missing.","If the boolean value 'false' is passed in, the specifier with the missing variable will be displayed."].join(" ")})}),tH=Ee((e,t)=>{function n(e,t){return t?t.d2l(e):e}function r(e,t){return t?t.l2d(e):e}function a(e){return e.x0shift||0}function i(e){return e.x1shift||0}function o(e){return e.y0shift||0}function s(e){return e.y1shift||0}function l(e,t){return n(e.x1,t)+i(e)-n(e.x0,t)-a(e)}function c(e,t,r){return n(e.y1,r)+s(e)-n(e.y0,r)-o(e)}t.exports={x0:function(e){return e.x0},x1:function(e){return e.x1},y0:function(e){return e.y0},y1:function(e){return e.y1},slope:function(e,t,n){return"line"!==e.type?void 0:c(e,0,n)/l(e,t)},dx:l,dy:c,width:function(e,t){return Math.abs(l(e,t))},height:function(e,t,n){return Math.abs(c(e,0,n))},length:function(e,t,n){return"line"!==e.type?void 0:Math.sqrt(Math.pow(l(e,t),2)+Math.pow(c(e,0,n),2))},xcenter:function(e,t){return r((n(e.x1,t)+i(e)+n(e.x0,t)+a(e))/2,t)},ycenter:function(e,t,a){return r((n(e.y1,a)+s(e)+n(e.y0,a)+o(e))/2,a)},simpleXVariables:["x0","x1","y0","y1","dy","height","ycenter"],simpleYVariables:["x0","x1","y0","y1","dx","width","xcenter"]}}),xCe=Ee((e,t)=>{var n=Wu().overrideAll,r=S1(),a=Mu(),i=pp().dash,o=ms().extendFlat,{shapeTexttemplateAttrs:s,templatefallbackAttrs:l}=p1(),c=tH();t.exports=n({newshape:{visible:o({},r.visible,{description:["Determines whether or not new shape is visible.","If *legendonly*, the shape is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")}),showlegend:{valType:"boolean",dflt:!1,description:["Determines whether or not new","shape is shown in the legend."].join(" ")},legend:o({},r.legend,{description:["Sets the reference to a legend to show new shape in.","References to these legends are *legend*, *legend2*, *legend3*, etc.","Settings for these legends are set in the layout, under","`layout.legend`, `layout.legend2`, etc."].join(" ")}),legendgroup:o({},r.legendgroup,{description:["Sets the legend group for new shape.","Traces and shapes part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")}),legendgrouptitle:{text:o({},r.legendgrouptitle.text,{}),font:a({description:["Sets this legend group's title font."].join(" ")})},legendrank:o({},r.legendrank,{description:["Sets the legend rank for new shape.","Items and groups with smaller ranks are presented on top/left side while","with *reversed* `legend.traceorder` they are on bottom/right side.","The default legendrank is 1000,","so that you can use ranks less than 1000 to place certain items before all unranked items,","and ranks greater than 1000 to go after all unranked items."].join(" ")}),legendwidth:o({},r.legendwidth,{description:"Sets the width (in px or fraction) of the legend for new shape."}),line:{color:{valType:"color",description:["Sets the line color.","By default uses either dark grey or white","to increase contrast with background color."].join(" ")},width:{valType:"number",min:0,dflt:4,description:"Sets the line width (in px)."},dash:o({},i,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",description:["Sets the color filling new shapes' interior.","Please note that if using a fillcolor with alpha greater than half,","drag inside the active shape starts moving the shape underneath,","otherwise a new shape could be started over."].join(" ")},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",description:["Determines the path's interior.","For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,description:"Sets the opacity of new shapes."},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",description:["Specifies whether new shapes are drawn below gridlines (*below*),","between gridlines and traces (*between*) or above traces (*above*)."].join(" ")},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal",description:["When `dragmode` is set to *drawrect*, *drawline* or *drawcircle*","this limits the drag to be horizontal, vertical or diagonal.","Using *diagonal* there is no limit e.g. in drawing lines in any direction.","*ortho* limits the draw to be either horizontal or vertical.","*horizontal* allows horizontal extend.","*vertical* allows vertical extend."].join(" ")},name:o({},r.name,{description:["Sets new shape name.","The name appears as the legend item."].join(" ")}),label:{text:{valType:"string",dflt:"",description:["Sets the text to display with the new shape.","It is also used for legend item if `name` is not provided."].join(" ")},texttemplate:s({newshape:!0},{keys:Object.keys(c)}),texttemplatefallback:l({editType:"arraydraw"}),font:a({description:"Sets the new shape label text font."}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],description:["Sets the position of the label text relative to the new shape.","Supported values for rectangles, circles and paths are","*top left*, *top center*, *top right*, *middle left*,","*middle center*, *middle right*, *bottom left*, *bottom center*,","and *bottom right*.","Supported values for lines are *start*, *middle*, and *end*.","Default: *middle center* for rectangles, circles, and paths; *middle* for lines."].join(" ")},textangle:{valType:"angle",dflt:"auto",description:["Sets the angle at which the label text is drawn","with respect to the horizontal. For lines, angle *auto*","is the same angle as the line. For all other shapes,","angle *auto* is horizontal."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",description:["Sets the label's horizontal position anchor","This anchor binds the specified `textposition` to the *left*, *center*","or *right* of the label text.","For example, if `textposition` is set to *top right* and","`xanchor` to *right* then the right-most portion of the","label text lines up with the right-most edge of the","new shape."].join(" ")},yanchor:{valType:"enumerated",values:["top","middle","bottom"],description:["Sets the label's vertical position anchor","This anchor binds the specified `textposition` to the *top*, *middle*","or *bottom* of the label text.","For example, if `textposition` is set to *top right* and","`yanchor` to *top* then the top-most portion of the","label text lines up with the top-most edge of the","new shape."].join(" ")},padding:{valType:"number",dflt:3,min:0,description:"Sets padding (in px) between edge of label and edge of new shape."}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5,description:"Sets the opacity of the active shape."}}},"none","from-root")}),zCe=Ee((e,t)=>{var n=pp().dash,r=ms().extendFlat;t.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none",description:["Describes how a new selection is created.","If `immediate`, a new selection is created after first mouse up.","If `gradual`, a new selection is not created after first mouse.","By adding to and subtracting from the initial selection,","this option allows declaring extra outlines of the selection."].join(" ")},line:{color:{valType:"color",editType:"none",description:["Sets the line color.","By default uses either dark grey or white","to increase contrast with background color."].join(" ")},width:{valType:"number",min:1,dflt:1,editType:"none",description:"Sets the line width (in px)."},dash:r({},n,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none",description:"Sets the color filling the active selection' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none",description:"Sets the opacity of the active selection."},editType:"none"}}}),rH=Ee((e,t)=>{t.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) along the top of the component."},r:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) on the right side of the component."},b:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) along the bottom of the component."},l:{valType:"number",dflt:0,editType:t,description:"The amount of padding (in px) on the left side of the component."},editType:t}}}),U8=Ee((e,t)=>{var n=Mu(),r=oD(),a=oh(),i=xCe(),o=zCe(),s=rH(),l=ms().extendFlat,c=n({editType:"calc",description:["Sets the global font.","Note that fonts used in traces and other","layout components inherit from the global font."].join(" ")});c.family.dflt='"Open Sans", verdana, arial, sans-serif',c.size.dflt=12,c.color.dflt=a.defaultLine,t.exports={font:c,title:{text:{valType:"string",editType:"layoutstyle",description:"Sets the plot's title."},font:n({editType:"layoutstyle",description:"Sets the title font."}),subtitle:{text:{valType:"string",editType:"layoutstyle",description:"Sets the plot's subtitle."},font:n({editType:"layoutstyle",description:"Sets the subtitle font."}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `x` refers to.","*container* spans the entire `width` of the plot.","*paper* refers to the width of the plotting area only."].join(" ")},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `y` refers to.","*container* spans the entire `height` of the plot.","*paper* refers to the height of the plotting area only."].join(" ")},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle",description:["Sets the x position with respect to `xref` in normalized","coordinates from *0* (left) to *1* (right)."].join(" ")},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle",description:["Sets the y position with respect to `yref` in normalized","coordinates from *0* (bottom) to *1* (top).","*auto* places the baseline of the title onto the","vertical center of the top margin."].join(" ")},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle",description:["Sets the title's horizontal alignment with respect to its x position.","*left* means that the title starts at x,","*right* means that the title ends at x","and *center* means that the title's center is at x.","*auto* divides `xref` by three and calculates the `xanchor`","value automatically based on the value of `x`."].join(" ")},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle",description:["Sets the title's vertical alignment with respect to its y position.","*top* means that the title's cap line is at y,","*bottom* means that the title's baseline is at y","and *middle* means that the title's midline is at y.","*auto* divides `yref` by three and calculates the `yanchor`","value automatically based on the value of `y`."].join(" ")},pad:l(s({editType:"layoutstyle"}),{description:["Sets the padding of the title.","Each padding value only applies when the corresponding","`xanchor`/`yanchor` value is set accordingly. E.g. for left","padding to take effect, `xanchor` must be set to *left*.","The same rule applies if `xanchor`/`yanchor` is determined automatically.","Padding is muted if the respective anchor value is *middle*/*center*."].join(" ")}),automargin:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines whether the title can automatically push the figure margins.","If `yref='paper'` then the margin will expand to ensure that the title doesnt","overlap with the edges of the container. If `yref='container'` then the margins","will ensure that the title doesnt overlap with the plot area, tick labels,","and axis titles. If `automargin=true` and the margins need to be expanded,","then y will be set to a default 1 and yanchor will be set to an appropriate","default to ensure that minimal margin space is needed. Note that when `yref='paper'`,","only 1 or 0 are allowed y values. Invalid values will be reset to the default 1."].join(" ")},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot",description:["Determines how the font size for various text","elements are uniformed between each trace type.","If the computed text sizes were smaller than","the minimum size defined by `uniformtext.minsize`","using *hide* option hides the text; and","using *show* option shows the text without further downscaling.","Please note that if the size defined by `minsize` is greater than","the font size defined by trace, then the `minsize` is used."].join(" ")},minsize:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets the minimum text size between traces of the same type."].join(" ")},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none",description:["Determines whether or not a layout width or height","that has been left undefined by the user","is initialized on each relayout.","Note that, regardless of this attribute,","an undefined layout width or height","is always initialized on the first call to plot."].join(" ")},width:{valType:"number",min:10,dflt:700,editType:"plot",description:["Sets the plot's width (in px)."].join(" ")},height:{valType:"number",min:10,dflt:450,editType:"plot",description:["Sets the plot's height (in px)."].join(" ")},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot",description:"Minimum width of the plot with margin.automargin applied (in px)"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot",description:"Minimum height of the plot with margin.automargin applied (in px)"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the left margin (in px)."},r:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the right margin (in px)."},t:{valType:"number",min:0,dflt:100,editType:"plot",description:"Sets the top margin (in px)."},b:{valType:"number",min:0,dflt:80,editType:"plot",description:"Sets the bottom margin (in px)."},pad:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets the amount of padding (in px)","between the plotting area and the axis lines"].join(" ")},autoexpand:{valType:"boolean",dflt:!0,editType:"plot",description:["Turns on/off margin expansion computations.","Legends, colorbars, updatemenus, sliders, axis rangeselector and rangeslider","are allowed to push the margins by defaults."].join(" ")},editType:"plot"},computed:{valType:"any",editType:"none",description:["Placeholder for exporting automargin-impacting values namely","`margin.t`, `margin.b`, `margin.l` and `margin.r` in *full-json* mode."].join(" ")},paper_bgcolor:{valType:"color",dflt:a.background,editType:"plot",description:"Sets the background color of the paper where the graph is drawn."},plot_bgcolor:{valType:"color",dflt:a.background,editType:"layoutstyle",description:["Sets the background color of the plotting area in-between x and y axes."].join(" ")},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc",description:["Using *strict* a numeric string in trace data is not converted to a number.","Using *convert types* a numeric string in trace data may be","treated as a number during automatic axis `type` detection.","This is the default value; however it could be overridden for individual axes."].join(" ")},separators:{valType:"string",editType:"plot",description:["Sets the decimal and thousand separators.","For example, *. * puts a '.' before decimals and a space","between thousands. In English locales, dflt is *.,* but","other locales may alter this default."].join(" ")},hidesources:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines whether or not a text link citing the data source is","placed at the bottom-right cored of the figure.","Has only an effect only on graphs that have been generated via","forked graphs from the Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise)."].join(" ")},showlegend:{valType:"boolean",editType:"legend",description:["Determines whether or not a legend is drawn.","Default is `true` if there is a trace to show and any of these:","a) Two or more traces would by default be shown in the legend.","b) One pie trace is shown in the legend.","c) One trace is explicitly given with `showlegend: true`."].join(" ")},colorway:{valType:"colorlist",dflt:a.defaults,editType:"calc",description:"Sets the default trace colors."},datarevision:{valType:"any",editType:"calc",description:["If provided, a changed value tells `Plotly.react` that","one or more data arrays has changed. This way you can modify","arrays in-place rather than making a complete new copy for an","incremental change.","If NOT provided, `Plotly.react` assumes that data arrays are","being treated as immutable, thus any data array with a","different identity from its predecessor contains new data."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Used to allow user interactions with the plot to persist after","`Plotly.react` calls that are unaware of these interactions.","If `uirevision` is omitted, or if it is given and it changed from","the previous `Plotly.react` call, the exact new figure is used.","If `uirevision` is truthy and did NOT change, any attribute","that has been affected by user interactions and did not receive a","different value in the new figure will keep the interaction value.","`layout.uirevision` attribute serves as the default for","`uirevision` attributes in various sub-containers. For finer","control you can set these sub-attributes directly. For example,","if your app separately controls the data on the x and y axes you","might set `xaxis.uirevision=*time*` and `yaxis.uirevision=*cost*`.","Then if only the y data is changed, you can update","`yaxis.uirevision=*quantity*` and the y axis range will reset but","the x axis range will retain any user-driven zoom."].join(" ")},editrevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in `editable: true`","configuration, other than trace names and axis titles.","Defaults to `layout.uirevision`."].join(" ")},selectionrevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in selected points","from all traces."].join(" ")},template:{valType:"any",editType:"calc",description:["Default attributes to be applied to the plot. Templates can be","created from existing plots using `Plotly.makeTemplate`, or","created manually. They should be objects with format:","`{layout: layoutTemplate, data: {[type]: [traceTemplate, ...]}, ...}`","`layoutTemplate` and `traceTemplate` are objects matching the","attribute structure of `layout` and a data trace. ","Trace templates are applied cyclically to traces of each type.","Container arrays (eg `annotations`) have special handling:","An object ending in `defaults` (eg `annotationdefaults`) is applied","to each array item. But if an item has a `templateitemname` key","we look in the template array for an item with matching `name` and","apply that instead. If no matching `name` is found we mark the item","invisible. Any named template item not referenced is appended to","the end of the array, so you can use this for a watermark annotation","or a logo image, for example. To omit one of these items on the plot,","make an item with matching `templateitemname` and `visible: false`."].join(" ")},newshape:i.newshape,activeshape:i.activeshape,newselection:o.newselection,activeselection:o.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot",description:["Assigns extra meta information that can be used in various `text` attributes.","Attributes such as the graph, axis and colorbar `title.text`, annotation `text`","`trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text","all support `meta`. One can access `meta` fields using template strings:","`%{meta[i]}` where `i` is the index of the `meta`","item in question.","`meta` can also be an object for example `{key: value}` which can be accessed","%{meta[key]}."].join(" ")},transition:l({},r.transition,{description:["Sets transition options used during Plotly.react updates."].join(" "),editType:"none"})}}),kCe=Ee((e,t)=>{t.exports={}}),vo=Ee(e=>{var t=Tz(),n=KU(),r=Xoe(),a=mx(),i=iD().addStyleRule,o=ms(),s=S1(),l=U8(),c=o.extendFlat,u=o.extendDeepAll;function d(n){var r=n.name,a=n.categories,o=n.meta;if(e.modules[r])t.log("Type "+r+" already registered");else{e.subplotsRegistry[n.basePlotModule.name]||function(n){var r=n.name;if(e.subplotsRegistry[r])return void t.log("Plot type "+r+" already registered.");for(var a in m(n),e.subplotsRegistry[r]=n,e.componentsRegistry)y(a,n.name)}(n.basePlotModule);for(var s={},l=0;l<a.length;l++)s[a[l]]=!0,e.allCategories[a[l]]=!0;for(var u in e.modules[r]={_module:n,categories:s},o&&Object.keys(o).length&&(e.modules[r].meta=o),e.allTypes.push(r),e.componentsRegistry)g(u,r);n.layoutAttributes&&c(e.traceLayoutAttributes,n.layoutAttributes);var d=n.basePlotModule,p=d.name;if("mapbox"===p){var h=d.constants.styleRules;for(var f in h)i(".js-plotly-plot .plotly .mapboxgl-"+f,h[f])}"map"===p&&kCe(),("geo"===p||"mapbox"===p||"map"===p)&&void 0===window.PlotlyGeoAssets&&(window.PlotlyGeoAssets={topojson:{}})}}function p(t){if("string"!=typeof t.name)throw new Error("Component module *name* must be a string.");var n=t.name;for(var a in e.componentsRegistry[n]=t,t.layoutAttributes&&(t.layoutAttributes._isLinkedToArray&&r(e.layoutArrayContainers,n),m(t)),e.modules)g(n,a);for(var i in e.subplotsRegistry)y(n,i);t.schema&&t.schema.layout&&u(l,t.schema.layout)}function h(e){if("string"!=typeof e.name)throw new Error("Transform module *name* must be a string.");var n="Transform module "+e.name,r="function"==typeof e.transform,i="function"==typeof e.calcTransform;if(!r&&!i)throw new Error(n+" is missing a *transform* or *calcTransform* method.");r&&i&&t.log([n+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),a(e.attributes)||t.log(n+" registered without an *attributes* object."),"function"!=typeof e.supplyDefaults&&t.log(n+" registered without a *supplyDefaults* method.")}function f(t){var n=t.name,r=n.split("-")[0],a=t.dictionary,i=t.format,o=a&&Object.keys(a).length,s=i&&Object.keys(i).length,l=e.localeRegistry,c=l[n];if(c||(l[n]=c={}),r!==n){var u=l[r];u||(l[r]=u={}),o&&u.dictionary===c.dictionary&&(u.dictionary=a),s&&u.format===c.format&&(u.format=i)}o&&(c.dictionary=a),s&&(c.format=i)}function m(t){if(t.layoutAttributes){var n=t.layoutAttributes._arrayAttrRegexps;if(n)for(var a=0;a<n.length;a++)r(e.layoutArrayRegexes,n[a])}}function g(t,n){var r=e.componentsRegistry[t].schema;if(r&&r.traces){var a=r.traces[n];a&&u(e.modules[n]._module.attributes,a)}}function y(t,n){var r=e.componentsRegistry[t].schema;if(r&&r.subplots){var a=e.subplotsRegistry[n],i=a.layoutAttributes,o="subplot"===a.attr?a.name:a.attr;Array.isArray(o)&&(o=o[0]);var s=r.subplots[o];i&&s&&u(i,s)}}function b(e){return"object"==typeof e&&(e=e.type),e}e.modules={},e.allCategories={},e.allTypes=[],e.subplotsRegistry={},e.componentsRegistry={},e.layoutArrayContainers=[],e.layoutArrayRegexes=[],e.traceLayoutAttributes={},e.localeRegistry={},e.apiMethodRegistry={},e.collectableSubplotTypes=null,e.register=function(t){if(e.collectableSubplotTypes=null,!t)throw new Error("No argument passed to Plotly.register.");t&&!Array.isArray(t)&&(t=[t]);for(var n=0;n<t.length;n++){var r=t[n];if(!r)throw new Error("Invalid module was attempted to be registered!");switch(r.moduleType){case"trace":d(r);break;case"transform":h(r);break;case"component":p(r);break;case"locale":f(r);break;case"apiMethod":var a=r.name;e.apiMethodRegistry[a]=r.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}},e.getModule=function(t){var n=e.modules[b(t)];return!!n&&n._module},e.traceIs=function(n,r){if("various"===(n=b(n)))return!1;var a=e.modules[n];return a||(n&&t.log("Unrecognized trace type "+n+"."),a=e.modules[s.type.dflt]),!!a.categories[r]},e.getComponentMethod=function(t,r){var a=e.componentsRegistry[t];return a&&a[r]||n},e.call=function(){var t=arguments[0],n=[].slice.call(arguments,1);return e.apiMethodRegistry[t].apply(null,n)}}),jCe=Ee(e=>{var t,n,r=R8().timeFormat,a=xs(),i=Tz(),o=P8().mod,s=T0(),l=s.BADNUM,c=s.ONEDAY,u=s.ONEHOUR,d=s.ONEMIN,p=s.ONESEC,h=s.EPOCHJD,f=vo(),m=R8().utcFormat,g=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,y=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,b=(new Date).getFullYear()-70;function v(e){return e&&f.componentsRegistry.calendars&&"string"==typeof e&&"gregorian"!==e}function M(e,t){return String(e+Math.pow(10,t)).slice(1)}e.dateTick0=function(t,n){var r=function(e,t){return v(e)?t?f.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:f.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}(t,!!n);if(n<2)return r;var a=e.dateTime2ms(r,t);return a+=c*(n-1),e.ms2DateTime(a,0,t)},e.dfltRange=function(e){return v(e)?f.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]},e.isJSDate=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.getTime},e.dateTime2ms=function(r,a){if(e.isJSDate(r)){var i=r.getTimezoneOffset()*d,s=(r.getUTCMinutes()-r.getMinutes())*d+(r.getUTCSeconds()-r.getSeconds())*p+(r.getUTCMilliseconds()-r.getMilliseconds());if(s){var m=3*d;i=i-m/2+o(s-i+m/2,m)}return(r=Number(r)-i)>=t&&r<=n?r:l}if("string"!=typeof r&&"number"!=typeof r)return l;r=String(r);var M=v(a),x=r.charAt(0);M&&("G"===x||"g"===x)&&(r=r.slice(1),a="");var z=M&&"chinese"===a.slice(0,7),_=r.match(z?y:g);if(!_)return l;var A=_[1],O=_[3]||"1",w=Number(_[5]||1),k=Number(_[7]||0),T=Number(_[9]||0),S=Number(_[11]||0);if(M){if(2===A.length)return l;var C;A=Number(A);try{var E=f.getComponentMethod("calendars","getCal")(a);if(z){var q="i"===O.charAt(O.length-1);O=parseInt(O,10),C=E.newDate(A,E.toMonthIndex(A,O,q),w)}else C=E.newDate(A,Number(O),w)}catch{return l}return C?(C.toJD()-h)*c+k*u+T*d+S*p:l}A=2===A.length?(Number(A)+2e3-b)%100+b:Number(A),O-=1;var D=new Date(Date.UTC(2e3,O,w,k,T));return D.setUTCFullYear(A),D.getUTCMonth()!==O||D.getUTCDate()!==w?l:D.getTime()+S*p},t=e.MIN_MS=e.dateTime2ms("-9999"),n=e.MAX_MS=e.dateTime2ms("9999-12-31 23:59:59.9999"),e.isDateTime=function(t,n){return e.dateTime2ms(t,n)!==l};var x=90*c,z=3*u,_=5*d;function A(e,t,n,r,a){if((t||n||r||a)&&(e+=" "+M(t,2)+":"+M(n,2),(r||a)&&(e+=":"+M(r,2),a))){for(var i=4;a%10==0;)i-=1,a/=10;e+="."+M(a,i)}return e}e.ms2DateTime=function(e,r,a){if("number"!=typeof e||!(e>=t&&e<=n))return l;r||(r=0);var i,s,g,y,b,M,O=Math.floor(10*o(e+.05,1)),w=Math.round(e-O/10);if(v(a)){var k=Math.floor(w/c)+h,T=Math.floor(o(e,c));try{i=f.getComponentMethod("calendars","getCal")(a).fromJD(k).formatDate("yyyy-mm-dd")}catch{i=m("G%Y-%m-%d")(new Date(w))}if("-"===i.charAt(0))for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;s=r<x?Math.floor(T/u):0,g=r<x?Math.floor(T%u/d):0,y=r<z?Math.floor(T%d/p):0,b=r<_?T%p*10+O:0}else M=new Date(w),i=m("%Y-%m-%d")(M),s=r<x?M.getUTCHours():0,g=r<x?M.getUTCMinutes():0,y=r<z?M.getUTCSeconds():0,b=r<_?10*M.getUTCMilliseconds()+O:0;return A(i,s,g,y,b)},e.ms2DateTimeLocal=function(e){if(!(e>=t+c&&e<=n-c))return l;var a=Math.floor(10*o(e+.05,1)),i=new Date(Math.round(e-a/10));return A(r("%Y-%m-%d")(i),i.getHours(),i.getMinutes(),i.getSeconds(),10*i.getUTCMilliseconds()+a)},e.cleanDate=function(t,n,r){if(t===l)return n;if(e.isJSDate(t)||"number"==typeof t&&isFinite(t)){if(v(r))return i.error("JS Dates and milliseconds are incompatible with world calendars",t),n;if(!(t=e.ms2DateTimeLocal(+t))&&void 0!==n)return n}else if(!e.isDateTime(t,r))return i.error("unrecognized date",t),n;return t};var O=/%\d?f/g,w=/%h/g,k={1:"1",2:"1",3:"2",4:"2"};function T(e,t,n,r){e=e.replace(O,function(e){var n=Math.min(+e.charAt(1)||6,6);return(t/1e3%1+2).toFixed(n).slice(2).replace(/0+$/,"")||"0"});var a=new Date(Math.floor(t+.05));if(e=e.replace(w,function(){return k[n("%q")(a)]}),v(r))try{e=f.getComponentMethod("calendars","worldCalFmt")(e,t,r)}catch{return"Invalid"}return n(e)(a)}var S=[59,59.9,59.99,59.999,59.9999];e.formatDate=function(e,t,n,r,i,s){if(i=v(i)&&i,!t)if("y"===n)t=s.year;else if("m"===n)t=s.month;else{if("d"!==n)return function(e,t){var n=o(e+.05,c),r=M(Math.floor(n/u),2)+":"+M(o(Math.floor(n/d),60),2);if("M"!==t){a(t)||(t=0);var i=(100+Math.min(o(e/p,60),S[t])).toFixed(t).slice(1);t>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),r+=":"+i}return r}(e,n)+"\n"+T(s.dayMonthYear,e,r,i);t=s.dayMonth+"\n"+s.year}return T(t,e,r,i)};var C=3*c;e.incrementMonth=function(e,t,n){n=v(n)&&n;var r=o(e,c);if(e=Math.round(e-r),n)try{var a=Math.round(e/c)+h,s=f.getComponentMethod("calendars","getCal")(n),l=s.fromJD(a);return t%12?s.add(l,t,"m"):s.add(l,t/12,"y"),(l.toJD()-h)*c+r}catch{i.error("invalid ms "+e+" in calendar "+n)}var u=new Date(e+C);return u.setUTCMonth(u.getUTCMonth()+t)+r-C},e.findExactDates=function(e,t){for(var n,r,i=0,o=0,s=0,l=0,u=v(t)&&f.getComponentMethod("calendars","getCal")(t),d=0;d<e.length;d++)if(r=e[d],a(r)){if(!(r%c))if(u)try{1===(n=u.fromJD(r/c+h)).day()?1===n.month()?i++:o++:s++}catch{}else 1===(n=new Date(r)).getUTCDate()?0===n.getUTCMonth()?i++:o++:s++}else l++;s+=o+=i;var p=e.length-l;return{exactYears:i/p,exactMonths:o/p,exactDays:s/p}}}),cD=Ee((e,t)=>{t.exports=function(e){return e}}),lH=Ee(e=>{var t=xs(),n=Tz(),r=cD(),a=T0().BADNUM,i=1e-9;function o(e,t){return e<t}function s(e,t){return e<=t}function l(e,t){return e>t}function c(e,t){return e>=t}e.findBin=function(e,r,a){if(t(r.start))return a?Math.ceil((e-r.start)/r.size-i)-1:Math.floor((e-r.start)/r.size+i);var u,d,p=0,h=r.length,f=0,m=h>1?(r[h-1]-r[0])/(h-1):1;for(d=m>=0?a?o:s:a?c:l,e+=m*i*(a?-1:1)*(m>=0?1:-1);p<h&&f++<100;)d(r[u=Math.floor((p+h)/2)],e)?p=u+1:h=u;return f>90&&n.log("Long binary search..."),p-1},e.sorterAsc=function(e,t){return e-t},e.sorterDes=function(e,t){return t-e},e.distinctVals=function(t){var n,r=t.slice();for(r.sort(e.sorterAsc),n=r.length-1;n>-1&&r[n]===a;n--);for(var i,o=r[n]-r[0]||1,s=o/(n||1)/1e4,l=[],c=0;c<=n;c++){var u=r[c],d=u-i;void 0===i?(l.push(u),i=u):d>s&&(o=Math.min(o,d),l.push(u),i=u)}return{vals:l,minDiff:o}},e.roundUp=function(e,t,n){for(var r,a=0,i=t.length-1,o=0,s=n?0:1,l=n?1:0,c=n?Math.ceil:Math.floor;a<i&&o++<100;)t[r=c((a+i)/2)]<=e?a=r+s:i=r-l;return t[a]},e.sort=function(e,t){for(var n=0,r=0,a=1;a<e.length;a++){var i=t(e[a],e[a-1]);if(i<0?n=1:i>0&&(r=1),n&&r)return e.sort(t)}return r?e:e.reverse()},e.findIndexOfMin=function(e,t){t=t||r;for(var n,a=1/0,i=0;i<e.length;i++){var o=t(e[i]);o<a&&(a=o,n=i)}return n}}),qz=Ee((e,t)=>{t.exports=function(e){return Object.keys(e).sort()}}),YCe=Ee(e=>{var t=xs(),n=Lp().isArrayOrTypedArray;e.aggNums=function(r,a,i,o){var s,l;if((!o||o>i.length)&&(o=i.length),t(a)||(a=!1),n(i[0])){for(l=new Array(o),s=0;s<o;s++)l[s]=e.aggNums(r,a,i[s]);i=l}for(s=0;s<o;s++)t(a)?t(i[s])&&(a=r(+a,+i[s])):a=i[s];return a},e.len=function(t){return e.aggNums(function(e){return e+1},0,t)},e.mean=function(t,n){return n||(n=e.len(t)),e.aggNums(function(e,t){return e+t},0,t)/n},e.geometricMean=function(t,n){return n||(n=e.len(t)),Math.pow(e.aggNums(function(e,t){return e*t},1,t),1/n)},e.midRange=function(t){if(void 0!==t&&0!==t.length)return(e.aggNums(Math.max,null,t)+e.aggNums(Math.min,null,t))/2},e.variance=function(n,r,a){return r||(r=e.len(n)),t(a)||(a=e.mean(n,r)),e.aggNums(function(e,t){return e+Math.pow(t-a,2)},0,n)/r},e.stdev=function(t,n,r){return Math.sqrt(e.variance(t,n,r))},e.median=function(t){var n=t.slice().sort();return e.interp(n,.5)},e.interp=function(e,n){if(!t(n))throw"n should be a finite number";if((n=n*e.length-.5)<0)return e[0];if(n>e.length-1)return e[e.length-1];var r=n%1;return r*e[Math.ceil(n)]+(1-r)*e[Math.floor(n)]}}),QCe=Ee((e,t)=>{var n=P8(),r=n.mod,a=n.modHalf,i=Math.PI,o=2*i;function s(e){return Math.abs(e[1]-e[0])>o-1e-14}function l(e,t){return a(t-e,o)}function c(e,t){if(s(t))return!0;var n,a;t[0]<t[1]?(n=t[0],a=t[1]):(n=t[1],a=t[0]),(n=r(n,o))>(a=r(a,o))&&(a+=o);var i=r(e,o),l=i+o;return i>=n&&i<=a||l>=n&&l<=a}function u(e,t,n,r,a,l,c){a=a||0,l=l||0;var u,d,p,h,f,m=s([n,r]);function g(e,t){return[e*Math.cos(t)+a,l-e*Math.sin(t)]}m?(u=0,d=i,p=o):n<r?(u=n,p=r):(u=r,p=n),e<t?(h=e,f=t):(h=t,f=e);var y,b=Math.abs(p-u)<=i?0:1;function v(e,t,n){return"A"+[e,e]+" "+[0,b,n]+" "+g(e,t)}return m?y=null===h?"M"+g(f,u)+v(f,d,0)+v(f,p,0)+"Z":"M"+g(h,u)+v(h,d,0)+v(h,p,0)+"ZM"+g(f,u)+v(f,d,1)+v(f,p,1)+"Z":null===h?(y="M"+g(f,u)+v(f,p,0),c&&(y+="L0,0Z")):y="M"+g(h,u)+"L"+g(f,u)+v(f,p,0)+"L"+g(h,p)+v(h,u,1)+"Z",y}t.exports={deg2rad:function(e){return e/180*i},rad2deg:function(e){return e/i*180},angleDelta:l,angleDist:function(e,t){return Math.abs(l(e,t))},isFullCircle:s,isAngleInsideSector:c,isPtInsideSector:function(e,t,n,r){return!!c(t,r)&&(n[0]<n[1]?(a=n[0],i=n[1]):(a=n[1],i=n[0]),e>=a&&e<=i);var a,i},pathArc:function(e,t,n,r,a){return u(null,e,t,n,r,a,0)},pathSector:function(e,t,n,r,a){return u(null,e,t,n,r,a,1)},pathAnnulus:function(e,t,n,r,a,i){return u(e,t,n,r,a,i,1)}}}),eEe=Ee(e=>{e.isLeftAnchor=function(e){return"left"===e.xanchor||"auto"===e.xanchor&&e.x<=1/3},e.isCenterAnchor=function(e){return"center"===e.xanchor||"auto"===e.xanchor&&e.x>1/3&&e.x<2/3},e.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},e.isTopAnchor=function(e){return"top"===e.yanchor||"auto"===e.yanchor&&e.y>=2/3},e.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3},e.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3}}),nEe=Ee(e=>{var t,n,r,a=P8().mod;function i(e,t,n,r,a,i,o,s){var l=n-e,c=a-e,u=o-a,d=r-t,p=i-t,h=s-i,f=l*h-u*d;if(0===f)return null;var m=(c*h-u*p)/f,g=(c*d-l*p)/f;return g<0||g>1||m<0||m>1?null:{x:e+l*m,y:t+d*m}}function o(e,t,n,r,a){var i=r*e+a*t;if(i<0)return r*r+a*a;if(i>n){var o=r-e,s=a-t;return o*o+s*s}var l=r*t-a*e;return l*l/n}e.segmentsIntersect=i,e.segmentDistance=function(e,t,n,r,a,s,l,c){if(i(e,t,n,r,a,s,l,c))return 0;var u=n-e,d=r-t,p=l-a,h=c-s,f=u*u+d*d,m=p*p+h*h,g=Math.min(o(u,d,f,a-e,s-t),o(u,d,f,l-e,c-t),o(p,h,m,e-a,t-s),o(p,h,m,n-a,r-s));return Math.sqrt(g)},e.getTextLocation=function(e,i,o,s){if((e!==n||s!==r)&&(t={},n=e,r=s),t[o])return t[o];var l=e.getPointAtLength(a(o-s/2,i)),c=e.getPointAtLength(a(o+s/2,i)),u=Math.atan((c.y-l.y)/(c.x-l.x)),d=e.getPointAtLength(a(o,i)),p={x:(4*d.x+l.x+c.x)/6,y:(4*d.y+l.y+c.y)/6,theta:u};return t[o]=p,p},e.clearLocationCache=function(){n=null},e.getVisibleSegment=function(e,t,n){var r,a,i=t.left,o=t.right,s=t.top,l=t.bottom,c=0,u=e.getTotalLength(),d=u;function p(t){var n=e.getPointAtLength(t);0===t?r=n:t===u&&(a=n);var c=n.x<i?i-n.x:n.x>o?n.x-o:0,d=n.y<s?s-n.y:n.y>l?n.y-l:0;return Math.sqrt(c*c+d*d)}for(var h=p(c);h;){if((c+=h+n)>d)return;h=p(c)}for(h=p(d);h;){if(c>(d-=h+n))return;h=p(d)}return{min:c,max:d,len:d-c,total:u,isClosed:0===c&&d===u&&Math.abs(r.x-a.x)<.1&&Math.abs(r.y-a.y)<.1}},e.findPointOnPath=function(e,t,n,r){for(var a,i,o,s=(r=r||{}).pathLength||e.getTotalLength(),l=r.tolerance||.001,c=r.iterationLimit||30,u=e.getPointAtLength(0)[n]>e.getPointAtLength(s)[n]?-1:1,d=0,p=0,h=s;d<c;){if(a=(p+h)/2,o=(i=e.getPointAtLength(a))[n]-t,Math.abs(o)<l)return i;u*o>0?h=a:p=a,d++}return i}}),dH=Ee(e=>{var t={};function n(e){e&&null!==e.timer&&(clearTimeout(e.timer),e.timer=null)}e.throttle=function(e,r,a){var i=t[e],o=Date.now();if(!i){for(var s in t)t[s].ts<o-6e4&&delete t[s];i=t[e]={ts:0,timer:null}}function l(){a(),i.ts=Date.now(),i.onDone&&(i.onDone(),i.onDone=null)}n(i),o>i.ts+r?l():i.timer=setTimeout(function(){l(),i.timer=null},r)},e.done=function(e){var n=t[e];return n&&n.timer?new Promise(function(e){var t=n.onDone;n.onDone=function(){t&&t(),e(),n.onDone=null}}):Promise.resolve()},e.clear=function(r){if(r)n(t[r]),delete t[r];else for(var a in t)e.clear(a)}}),oEe=Ee((e,t)=>{t.exports=function(e){e._responsiveChartHandler&&(window.removeEventListener("resize",e._responsiveChartHandler),delete e._responsiveChartHandler)}}),sEe=Ee((e,t)=>{t.exports=i,t.exports.isMobile=i,t.exports.default=i;var n=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,a=/android|ipad|playbook|silk/i;function i(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&"string"==typeof t.headers["user-agent"]&&(t=t.headers["user-agent"]),"string"!=typeof t)return!1;let i=n.test(t)&&!r.test(t)||!!e.tablet&&a.test(t);return!i&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==t.indexOf("Macintosh")&&-1!==t.indexOf("Safari")&&(i=!0),i}}),cEe=Ee((e,t)=>{var n=xs(),r=sEe();t.exports=function(e){var t,a;if(e&&e.hasOwnProperty("userAgent")?t=e.userAgent:(typeof navigator<"u"&&(a=navigator.userAgent),a&&a.headers&&"string"==typeof a.headers["user-agent"]&&(a=a.headers["user-agent"]),t=a),"string"!=typeof t)return!0;var i=r({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!i)for(var o=t.split(" "),s=1;s<o.length;s++){if(-1!==o[s].indexOf("Safari"))for(var l=s-1;l>-1;l--){var c=o[l];if("Version/"===c.slice(0,8)){var u=c.slice(8).split(".")[0];if(n(u)&&(u=+u),u>=13)return!0}}}return i}}),dEe=Ee((e,t)=>{var n=mo();t.exports=function(e,t,r){var a=e.selectAll("g."+r.replace(/\s/g,".")).data(t,function(e){return e[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",r),a.order();var i=e.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(e){e[0][i]=n.select(this)}),a}}),hEe=Ee((e,t)=>{var n=vo();t.exports=function(e,t){for(var r=e._context.locale,a=0;a<2;a++){for(var i=e._context.locales,o=0;o<2;o++){var s=(i[r]||{}).dictionary;if(s){var l=s[t];if(l)return l}i=n.localeRegistry}var c=r.split("-")[0];if(c===r)break;r=c}return t}}),use=Ee((e,t)=>{t.exports=function(e){for(var t={},n=[],r=0,a=0;a<e.length;a++){var i=e[a];1!==t[i]&&(t[i]=1,n[r++]=i)}return n}}),vEe=Ee((e,t)=>{function n(e){return!0===e.visible}function r(e){var t=e[0].trace;return!0===t.visible&&0!==t._length}t.exports=function(e){for(var t=(s=e,Array.isArray(s)&&Array.isArray(s[0])&&s[0][0]&&s[0][0].trace?r:n),a=[],i=0;i<e.length;i++){var o=e[i];t(o)&&a.push(o)}var s;return a}}),yEe=Ee((e,t)=>{t.exports=function(e,t){if(!t)return e;var n=1/Math.abs(t),r=n>1?(n*e+n*t)/n:e+t,a=String(r).length;if(a>16){var i=String(t).length;if(a>=String(e).length+i){var o=parseFloat(r).toPrecision(12);-1===o.indexOf("e+")&&(r=+o)}}return r}}),MEe=Ee((e,t)=>{var n=xs(),r=T0().BADNUM,a=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;t.exports=function(e){return"string"==typeof e&&(e=e.replace(a,"")),n(e)?Number(e):r}}),Fr=Ee((e,t)=>{var n=mo(),r=R8().utcFormat,a=Eoe().format,i=xs(),o=T0(),s=o.FP_SAFE,l=-s,c=o.BADNUM,u=t.exports={};u.adjustFormat=function(e){return!e||/^\d[.]\df/.test(e)||/[.]\d%/.test(e)?e:"0.f"===e?"~f":/^\d%/.test(e)?"~%":/^\ds/.test(e)?"~s":!/^[~,.0$]/.test(e)&&/[&fps]/.test(e)?"~"+e:e};var d={};u.warnBadFormat=function(e){var t=String(e);d[t]||(d[t]=1,u.warn('encountered bad format: "'+t+'"'))},u.noFormat=function(e){return String(e)},u.numberFormat=function(e){var t;try{t=a(u.adjustFormat(e))}catch{return u.warnBadFormat(e),u.noFormat}return t},u.nestedProperty=$q(),u.keyedContainer=u9e(),u.relativeAttr=f9e(),u.isPlainObject=mx(),u.toLogRange=XU(),u.relinkPrivateKeys=v9e();var p=Lp();u.isArrayBuffer=p.isArrayBuffer,u.isTypedArray=p.isTypedArray,u.isArrayOrTypedArray=p.isArrayOrTypedArray,u.isArray1D=p.isArray1D,u.ensureArray=p.ensureArray,u.concat=p.concat,u.maxRowLength=p.maxRowLength,u.minRowLength=p.minRowLength;var h=P8();u.mod=h.mod,u.modHalf=h.modHalf;var f=P9e();u.valObjectMeta=f.valObjectMeta,u.coerce=f.coerce,u.coerce2=f.coerce2,u.coerceFont=f.coerceFont,u.coercePattern=f.coercePattern,u.coerceHoverinfo=f.coerceHoverinfo,u.coerceSelectionMarkerOpacity=f.coerceSelectionMarkerOpacity,u.validate=f.validate;var m=jCe();u.dateTime2ms=m.dateTime2ms,u.isDateTime=m.isDateTime,u.ms2DateTime=m.ms2DateTime,u.ms2DateTimeLocal=m.ms2DateTimeLocal,u.cleanDate=m.cleanDate,u.isJSDate=m.isJSDate,u.formatDate=m.formatDate,u.incrementMonth=m.incrementMonth,u.dateTick0=m.dateTick0,u.dfltRange=m.dfltRange,u.findExactDates=m.findExactDates,u.MIN_MS=m.MIN_MS,u.MAX_MS=m.MAX_MS;var g=lH();u.findBin=g.findBin,u.sorterAsc=g.sorterAsc,u.sorterDes=g.sorterDes,u.distinctVals=g.distinctVals,u.roundUp=g.roundUp,u.sort=g.sort,u.findIndexOfMin=g.findIndexOfMin,u.sortObjectKeys=qz();var y=YCe();u.aggNums=y.aggNums,u.len=y.len,u.mean=y.mean,u.geometricMean=y.geometricMean,u.median=y.median,u.midRange=y.midRange,u.variance=y.variance,u.stdev=y.stdev,u.interp=y.interp;var b=JU();u.init2dArray=b.init2dArray,u.transposeRagged=b.transposeRagged,u.dot=b.dot,u.translationMatrix=b.translationMatrix,u.rotationMatrix=b.rotationMatrix,u.rotationXYMatrix=b.rotationXYMatrix,u.apply3DTransform=b.apply3DTransform,u.apply2DTransform=b.apply2DTransform,u.apply2DTransform2=b.apply2DTransform2,u.convertCssMatrix=b.convertCssMatrix,u.inverseTransformMatrix=b.inverseTransformMatrix;var v=QCe();u.deg2rad=v.deg2rad,u.rad2deg=v.rad2deg,u.angleDelta=v.angleDelta,u.angleDist=v.angleDist,u.isFullCircle=v.isFullCircle,u.isAngleInsideSector=v.isAngleInsideSector,u.isPtInsideSector=v.isPtInsideSector,u.pathArc=v.pathArc,u.pathSector=v.pathSector,u.pathAnnulus=v.pathAnnulus;var M=eEe();u.isLeftAnchor=M.isLeftAnchor,u.isCenterAnchor=M.isCenterAnchor,u.isRightAnchor=M.isRightAnchor,u.isTopAnchor=M.isTopAnchor,u.isMiddleAnchor=M.isMiddleAnchor,u.isBottomAnchor=M.isBottomAnchor;var x=nEe();u.segmentsIntersect=x.segmentsIntersect,u.segmentDistance=x.segmentDistance,u.getTextLocation=x.getTextLocation,u.clearLocationCache=x.clearLocationCache,u.getVisibleSegment=x.getVisibleSegment,u.findPointOnPath=x.findPointOnPath;var z=ms();u.extendFlat=z.extendFlat,u.extendDeep=z.extendDeep,u.extendDeepAll=z.extendDeepAll,u.extendDeepNoArrays=z.extendDeepNoArrays;var _=Tz();u.log=_.log,u.warn=_.warn,u.error=_.error;var A=N8();u.counterRegex=A.counter;var O=dH();u.throttle=O.throttle,u.throttleDone=O.done,u.clearThrottle=O.clear;var w=iD();function k(e){var t={};for(var n in e)for(var r=e[n],a=0;a<r.length;a++)t[r[a]]=+n;return t}u.getGraphDiv=w.getGraphDiv,u.isPlotDiv=w.isPlotDiv,u.removeElement=w.removeElement,u.addStyleRule=w.addStyleRule,u.addRelatedStyleRule=w.addRelatedStyleRule,u.deleteRelatedStyleRule=w.deleteRelatedStyleRule,u.setStyleOnHover=w.setStyleOnHover,u.getFullTransformMatrix=w.getFullTransformMatrix,u.getElementTransformMatrix=w.getElementTransformMatrix,u.getElementAndAncestors=w.getElementAndAncestors,u.equalDomRects=w.equalDomRects,u.clearResponsive=oEe(),u.preserveDrawingBuffer=cEe(),u.makeTraceGroups=dEe(),u._=hEe(),u.notifier=Voe(),u.filterUnique=use(),u.filterVisible=vEe(),u.pushUnique=Xoe(),u.increment=yEe(),u.cleanNumber=MEe(),u.ensureNumber=function(e){return i(e)?(e=Number(e))>s||e<l?c:e:c},u.isIndex=function(e,t){return!(void 0!==t&&e>=t)&&(i(e)&&e>=0&&e%1==0)},u.noop=KU(),u.identity=cD(),u.repeat=function(e,t){for(var n=new Array(t),r=0;r<t;r++)n[r]=e;return n},u.swapAttrs=function(e,t,n,r){n||(n="x"),r||(r="y");for(var a=0;a<t.length;a++){var i=t[a],o=u.nestedProperty(e,i.replace("?",n)),s=u.nestedProperty(e,i.replace("?",r)),l=o.get();o.set(s.get()),s.set(l)}},u.raiseToTop=function(e){e.parentNode.appendChild(e)},u.cancelTransition=function(e){return e.transition().duration(0)},u.constrain=function(e,t,n){return t>n?Math.max(n,Math.min(t,e)):Math.max(t,Math.min(n,e))},u.bBoxIntersect=function(e,t,n){return n=n||0,e.left<=t.right+n&&t.left<=e.right+n&&e.top<=t.bottom+n&&t.top<=e.bottom+n},u.simpleMap=function(e,t,n,r,a){for(var i=e.length,o=new Array(i),s=0;s<i;s++)o[s]=t(e[s],n,r,a);return o},u.randstr=function e(t,n,r,a){if(r||(r=16),void 0===n&&(n=24),n<=0)return"0";var i,o,s=Math.log(Math.pow(2,n))/Math.log(r),l="";for(i=2;s===1/0;i*=2)s=Math.log(Math.pow(2,n/i))/Math.log(r)*i;var c=s-Math.floor(s);for(i=0;i<Math.floor(s);i++)l=Math.floor(Math.random()*r).toString(r)+l;c&&(o=Math.pow(r,c),l=Math.floor(Math.random()*o).toString(r)+l);var d=parseInt(l,r);return t&&t[l]||d!==1/0&&d>=Math.pow(2,n)?a>10?(u.warn("randstr failed uniqueness"),l):e(t,n,r,(a||0)+1):l},u.OptionControl=function(e,t){e||(e={}),t||(t="opt");var n={optionList:[],_newoption:function(r){r[t]=e,n[r.name]=r,n.optionList.push(r)}};return n["_"+t]=e,n},u.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var n,r,a,i,o=e.length,s=2*o,l=2*t-1,c=new Array(l),u=new Array(o);for(n=0;n<l;n++)c[n]=(1-Math.cos(Math.PI*(n+1)/t))/(2*t);for(n=0;n<o;n++){for(i=0,r=0;r<l;r++)(a=n+r+1-t)<-o?a-=s*Math.round(a/s):a>=s&&(a-=s*Math.floor(a/s)),a<0?a=-1-a:a>=o&&(a=s-1-a),i+=e[a]*c[r];u[n]=i}return u},u.syncOrAsync=function(e,t,n){var r;function a(){return u.syncOrAsync(e,t,n)}for(;e.length;)if((r=(0,e.splice(0,1)[0])(t))&&r.then)return r.then(a);return n&&n(t)},u.stripTrailingSlash=function(e){return"/"===e.slice(-1)?e.slice(0,-1):e},u.noneOrAll=function(e,t,n){if(e){var r,a=!1,i=!0;for(r=0;r<n.length;r++)null!=e[n[r]]?a=!0:i=!1;if(a&&!i)for(r=0;r<n.length;r++)e[n[r]]=t[n[r]]}},u.mergeArray=function(e,t,n,r){var a="function"==typeof r;if(u.isArrayOrTypedArray(e))for(var i=Math.min(e.length,t.length),o=0;o<i;o++){var s=e[o];t[o][n]=a?r(s):s}},u.mergeArrayCastPositive=function(e,t,n){return u.mergeArray(e,t,n,function(e){var t=+e;return isFinite(t)&&t>0?t:0})},u.fillArray=function(e,t,n,r){if(r=r||u.identity,u.isArrayOrTypedArray(e))for(var a=0;a<t.length;a++)t[a][n]=r(e[a])},u.castOption=function(e,t,n,r){r=r||u.identity;var a=u.nestedProperty(e,n).get();return u.isArrayOrTypedArray(a)?Array.isArray(t)&&u.isArrayOrTypedArray(a[t[0]])?r(a[t[0]][t[1]]):r(a[t]):a},u.extractOption=function(e,t,n,r){if(n in e)return e[n];var a=u.nestedProperty(t,r).get();return Array.isArray(a)?void 0:a},u.tagSelected=function(e,t,n){var r,a=t.selectedpoints,i=t._indexToPoints;function o(t){return void 0!==t&&t<e.length}i&&(r=k(i));for(var s=0;s<a.length;s++){var l=a[s];if(u.isIndex(l)||u.isArrayOrTypedArray(l)&&u.isIndex(l[0])&&u.isIndex(l[1])){var c=r?r[l]:l,d=n?n[c]:c;o(d)&&(e[d].selected=1)}}},u.selIndices2selPoints=function(e){var t=e.selectedpoints,n=e._indexToPoints;if(n){for(var r=k(n),a=[],i=0;i<t.length;i++){var o=t[i];if(u.isIndex(o)){var s=r[o];u.isIndex(s)&&a.push(s)}}return a}return t},u.getTargetArray=function(e,t){var n=t.target;if("string"==typeof n&&n){var r=u.nestedProperty(e,n).get();return!!u.isArrayOrTypedArray(r)&&r}return!!u.isArrayOrTypedArray(n)&&n},u.minExtend=function e(t,n,r){var a={};"object"!=typeof n&&(n={});var i,o,s,l="pieLike"===r?-1:3,c=Object.keys(t);for(i=0;i<c.length;i++)s=t[o=c[i]],"_"!==o.charAt(0)&&"function"!=typeof s&&("module"===o?a[o]=s:Array.isArray(s)?a[o]="colorscale"===o||-1===l?s.slice():s.slice(0,l):u.isTypedArray(s)?a[o]=-1===l?s.subarray():s.subarray(0,l):a[o]=s&&"object"==typeof s?e(t[o],n[o],r):s);for(c=Object.keys(n),i=0;i<c.length;i++)("object"!=typeof(s=n[o=c[i]])||!(o in a)||"object"!=typeof a[o])&&(a[o]=s);return a},u.titleCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},u.containsAny=function(e,t){for(var n=0;n<t.length;n++)if(-1!==e.indexOf(t[n]))return!0;return!1};var T=/Version\/[\d\.]+.*Safari/;u.isSafari=function(){return T.test(window.navigator.userAgent)};var S=/iPad|iPhone|iPod/;u.isIOS=function(){return S.test(window.navigator.userAgent)};var C=/Macintosh.+AppleWebKit.+Gecko\)$/;u.isMacWKWebView=()=>C.test(window.navigator.userAgent);var E=/Firefox\/(\d+)\.\d+/;u.getFirefoxVersion=function(){var e=E.exec(window.navigator.userAgent);if(e&&2===e.length){var t=parseInt(e[1]);if(!isNaN(t))return t}return null},u.isD3Selection=function(e){return e instanceof n.selection},u.ensureSingle=function(e,t,n,r){var a=e.select(t+(n?"."+n:""));if(a.size())return a;var i=e.append(t);return n&&i.classed(n,!0),r&&i.call(r),i},u.ensureSingleById=function(e,t,n,r){var a=e.select(t+"#"+n);if(a.size())return a;var i=e.append(t).attr("id",n);return r&&i.call(r),i},u.objectFromPath=function(e,t){for(var n,r=e.split("."),a=n={},i=0;i<r.length;i++){var o=r[i],s=null,l=r[i].match(/(.*)\[([0-9]+)\]/);l?(o=l[1],s=l[2],n=n[o]=[],i===r.length-1?n[s]=t:n[s]={},n=n[s]):(i===r.length-1?n[o]=t:n[o]={},n=n[o])}return a};var q=/^([^\[\.]+)\.(.+)?/,D=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function R(e){return"__"===e.slice(0,2)}u.expandObjectPaths=function(e){var t,n,r,a,i,o,s;if("object"==typeof e&&!Array.isArray(e))for(n in e)if(e.hasOwnProperty(n))if(t=n.match(q)){if(a=e[n],R(r=t[1]))continue;delete e[n],e[r]=u.extendDeepNoArrays(e[r]||{},u.objectFromPath(n,u.expandObjectPaths(a))[r])}else if(t=n.match(D)){if(a=e[n],R(r=t[1]))continue;if(i=parseInt(t[2]),delete e[n],e[r]=e[r]||[],"."===t[3])s=t[4],o=e[r][i]=e[r][i]||{},u.extendDeepNoArrays(o,u.objectFromPath(s,u.expandObjectPaths(a)));else{if(R(r))continue;e[r][i]=u.expandObjectPaths(a)}}else{if(R(n))continue;e[n]=u.expandObjectPaths(e[n])}return e},u.numSeparate=function(e,t,n){if(n||(n=!1),"string"!=typeof t||0===t.length)throw new Error("Separator string required for formatting!");"number"==typeof e&&(e=String(e));var r=/(\d+)(\d{3})/,a=t.charAt(0),i=t.charAt(1),o=e.split("."),s=o[0],l=o.length>1?a+o[1]:"";if(i&&(o.length>1||s.length>4||n))for(;r.test(s);)s=s.replace(r,"$1"+i+"$2");return s+l},u.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var L=/^\w*$/;u.templateString=function(e,t){var n={};return e.replace(u.TEMPLATE_STRING_REGEX,function(e,r){var a;return L.test(r)?a=t[r]:(n[r]=n[r]||u.nestedProperty(t,r).get,a=n[r](!0)),void 0!==a?a:""})};var I={max:10,count:0,name:"hovertemplate"};u.hovertemplateString=e=>F({...e,opts:I});var W={max:10,count:0,name:"texttemplate"};u.texttemplateString=e=>F({...e,opts:W});var N=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;var P={max:10,count:0,name:"texttemplate",parseMultDiv:!0};u.texttemplateStringForShapes=e=>F({...e,opts:P});var B=/^[:|\|]/;function F({data:e=[],locale:t,fallback:n,labels:a={},opts:i,template:o}){return o.replace(u.TEMPLATE_STRING_REGEX,(o,s,l)=>{let c=["xother","yother"].includes(s),d=["_xother","_yother"].includes(s),p=["_xother_","_yother_"].includes(s),h=["xother_","yother_"].includes(s),f=c||d||h||p;(d||p)&&(s=s.substring(1)),(h||p)&&(s=s.substring(0,s.length-1));let m,g=null,y=null;if(i.parseMultDiv){var b=function(e){var t=e.match(N);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}(s);s=b.key,g=b.op,y=b.number}if(f){if(void 0===a[s])return"";m=a[s]}else for(let t of e)if(t){if(t.hasOwnProperty(s)){m=t[s];break}if(L.test(s)||(m=u.nestedProperty(t,s).get(!0)),void 0!==m)break}if(void 0===m){let{count:e,max:t,name:r}=i,a=!1===n?o:n;return e<t&&u.warn([`Variable '${s}' in ${r} could not be found!`,"Please verify that the template is correct.",`Using value: '${a}'.`].join(" ")),e===t&&u.warn(`Too many '${r}' warnings - additional warnings will be suppressed.`),i.count++,a}if("*"===g&&(m*=y),"/"===g&&(m/=y),l){var v;if(":"===l[0]&&(v=t?t.numberFormat:u.numberFormat,""!==m&&(m=v(l.replace(B,""))(m))),"|"===l[0]){v=t?t.timeFormat:r;var M=u.dateTime2ms(m);m=u.formatDate(M,l.replace(B,""),!1,v)}}else{var x=s+"Label";a.hasOwnProperty(x)&&(m=a[x])}return f&&(m="("+m+")",(d||p)&&(m=" "+m),(h||p)&&(m+=" ")),m})}u.subplotSort=function(e,t){for(var n=Math.min(e.length,t.length)+1,r=0,a=0,i=0;i<n;i++){var o=e.charCodeAt(i)||0,s=t.charCodeAt(i)||0,l=o>=48&&o<=57,c=s>=48&&s<=57;if(l&&(r=10*r+o-48),c&&(a=10*a+s-48),!l||!c){if(r!==a)return r-a;if(o!==s)return o-s}}return a-r};var j=2e9;u.seedPseudoRandom=function(){j=2e9},u.pseudoRandom=function(){var e=j;return j=(69069*j+1)%4294967296,Math.abs(j-e)<429496729?u.pseudoRandom():j/4294967296},u.fillText=function(e,t,n){var r=Array.isArray(n)?function(e){n.push(e)}:function(e){n.text=e},a=u.extractOption(e,t,"htx","hovertext");if(u.isValidTextValue(a))return r(a);var i=u.extractOption(e,t,"tx","text");return u.isValidTextValue(i)?r(i):void 0},u.isValidTextValue=function(e){return e||0===e},u.formatPercent=function(e,t){t=t||0;for(var n=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",r=0;r<t;r++)-1!==n.indexOf(".")&&(n=(n=n.replace("0%","%")).replace(".%","%"));return n},u.isHidden=function(e){var t=window.getComputedStyle(e).display;return!t||"none"===t},u.strTranslate=function(e,t){return e||t?"translate("+e+","+t+")":""},u.strRotate=function(e){return e?"rotate("+e+")":""},u.strScale=function(e){return 1!==e?"scale("+e+")":""},u.getTextTransform=function(e){var t=e.noCenter,n=e.textX,r=e.textY,a=e.targetX,i=e.targetY,o=e.anchorX||0,s=e.anchorY||0,l=e.rotate,c=e.scale;return c?c>1&&(c=1):c=0,u.strTranslate(a-c*(n+o),i-c*(r+s))+u.strScale(c)+(l?"rotate("+l+(t?"":" "+n+" "+r)+")":"")},u.setTransormAndDisplay=function(e,t){e.attr("transform",u.getTextTransform(t)),e.style("display",t.scale?null:"none")},u.ensureUniformFontSize=function(e,t){var n=u.extendFlat({},t);return n.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),n},u.join2=function(e,t,n){var r=e.length;return r>1?e.slice(0,-1).join(t)+n+e[r-1]:e.join(t)},u.bigFont=function(e){return Math.round(1.2*e)};var U=u.getFirefoxVersion(),V=null!==U&&U<86;u.getPositionFromD3Event=function(){return V?[n.event.layerX,n.event.layerY]:[n.event.offsetX,n.event.offsetY]}}),PEe=Ee(()=>{var e,t,n=Fr(),r={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(t in r)e=t.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),n.addStyleRule(e,r[t])}),mse=Ee((e,t)=>{t.exports=!0}),gse=Ee((e,t)=>{var n,r=mse();n="function"==typeof global.matchMedia?!global.matchMedia("(hover: none)").matches:r,t.exports=n}),$8=Ee((e,t)=>{var n=require("events").EventEmitter,r={init:function(e){if(e._ev instanceof n)return e;var t=new n,r=new n;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(e,n){t.emit(e,n),r.emit(e,n)},"function"==typeof e.addEventListener&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,n){var r=e._ev;if(r){var a=r._events[t];if(a){var i;for(a=Array.isArray(a)?a:[a],i=0;i<a.length-1;i++)o(a[i]);return o(a[i])}}function o(e){return e.listener?(r.removeListener(t,e.listener),e.fired?void 0:(e.fired=!0,e.listener.apply(r,[n]))):e.apply(r,[n])}},purge:function(e){return delete e._ev,delete e.on,delete e.once,delete e.removeListener,delete e.removeAllListeners,delete e.emit,delete e._ev,delete e._internalEv,delete e._internalOn,delete e._internalOnce,delete e._removeInternalListener,delete e._removeAllInternalListeners,e}};t.exports=r}),UEe=Ee((e,t)=>{var n=Fr(),r=iw().dfltConfig;var a={add:function(e,t,n,a,i){var o,s;e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},s=e.undoQueue.index,e.autoplay?e.undoQueue.inSequence||(e.autoplay=!1):(!e.undoQueue.sequence||e.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(s,e.undoQueue.queue.length-s,o),e.undoQueue.index+=1):o=e.undoQueue.queue[s-1],e.undoQueue.beginSequence=!1,o&&(o.undo.calls.unshift(t),o.undo.args.unshift(n),o.redo.calls.push(a),o.redo.args.push(i)),e.undoQueue.queue.length>r.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--))},startSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},stopSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},undo:function(e){var t,n;if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index<=0)){for(e.undoQueue.index--,t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n<t.undo.calls.length;n++)a.plotDo(e,t.undo.calls[n],t.undo.args[n]);e.undoQueue.inSequence=!1,e.autoplay=!1}},redo:function(e){var t,n;if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index>=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n<t.redo.calls.length;n++)a.plotDo(e,t.redo.calls[n],t.redo.args[n]);e.undoQueue.inSequence=!1,e.autoplay=!1,e.undoQueue.index++}}};a.plotDo=function(e,t,r){e.autoplay=!0,r=function(e,t){for(var r,a=[],i=0;i<t.length;i++)r=t[i],a[i]=r===e?r:"object"==typeof r?Array.isArray(r)?n.extendDeep([],r):n.extendDeepAll({},r):r;return a}(e,r),t.apply(null,r)},t.exports=a}),bse=Ee((e,t)=>{t.exports={_isLinkedToArray:"frames_entry",group:{valType:"string",description:["An identifier that specifies the group to which the frame belongs,","used by animate to select a subset of frames."].join(" ")},name:{valType:"string",description:"A label by which to identify the frame"},traces:{valType:"any",description:["A list of trace indices that identify the respective traces in the","data attribute"].join(" ")},baseframe:{valType:"string",description:["The name of the frame into which this frame's properties are merged","before applying. This is used to unify properties and avoid needing","to specify the same values for the same properties in multiple frames."].join(" ")},data:{valType:"any",description:["A list of traces this frame modifies. The format is identical to the","normal trace definition."].join(" ")},layout:{valType:"any",description:["Layout properties which this frame modifies. The format is identical","to the normal layout definition."].join(" ")}}}),Q8=Ee(e=>{var t=vo(),n=Fr(),r=S1(),a=U8(),i=bse(),o=oD(),s=iw().configAttributes,l=Wu(),c=n.extendDeepAll,u=n.isPlainObject,d=n.isArrayOrTypedArray,p=n.nestedProperty,h=n.valObjectMeta,f="_isSubplotObj",m="_isLinkedToArray",g="_deprecated",y=[f,m,"_arrayAttrRegexps",g];function b(e,t,n){if(!e)return!1;if(e._isLinkedToArray)if(v(t[n]))n++;else if(n<t.length)return!1;for(;n<t.length;n++){var r=e[t[n]];if(!u(r))break;if(e=r,n===t.length-1)break;if(e._isLinkedToArray){if(!v(t[++n]))return!1}else if("info_array"===e.valType){var a=t[++n];if(!v(a))return!1;var i=e.items;if(Array.isArray(i)){if(a>=i.length)return!1;if(2===e.dimensions){if(n++,t.length===n)return e;var o=t[n];if(!v(o))return!1;e=i[a][o]}else e=i[a]}else e=i}}return e}function v(e){return e===Math.round(e)&&e>=0}function M(){var e,n,r={};for(e in c(r,a),t.subplotsRegistry)if((n=t.subplotsRegistry[e]).layoutAttributes)if(Array.isArray(n.attr))for(var i=0;i<n.attr.length;i++)_(r,n,n.attr[i]);else{_(r,n,"subplot"===n.attr?n.name:n.attr)}for(e in t.componentsRegistry){var o=(n=t.componentsRegistry[e]).schema;if(o&&(o.subplots||o.layout)){var s=o.subplots;if(s&&s.xaxis&&!s.yaxis)for(var l in s.xaxis)delete r.yaxis[l];delete r.xaxis.shift,delete r.xaxis.autoshift}else"colorscale"===n.name?c(r,n.layoutAttributes):n.layoutAttributes&&A(r,n.layoutAttributes,n.name)}return{layoutAttributes:z(r)}}function x(){var e={frames:c({},i)};return z(e),e.frames}function z(t){return function(t){function n(e){return{valType:"string",description:"Sets the source reference on Chart Studio Cloud for `"+e+"`.",editType:"none"}}function r(t,r,a){e.isValObject(t)?(!0===t.arrayOk||"data_array"===t.valType)&&(a[r+"src"]=n(r)):u(t)&&(t.role="object")}e.crawl(t,r)}(t),function(t){function n(e,t,n){if(e){var r=e[m];r&&(delete e[m],n[t]={items:{}},n[t].items[r]=e,n[t].role="object")}}e.crawl(t,n)}(t),function(e){function t(e){for(var n in e)if(u(e[n]))t(e[n]);else if(Array.isArray(e[n]))for(var r=0;r<e[n].length;r++)t(e[n][r]);else e[n]instanceof RegExp&&(e[n]=e[n].toString())}t(e)}(t),t}function _(e,t,n){var r=p(e,n),a=c({},t.layoutAttributes);a[f]=!0,r.set(a)}function A(e,t,n){var r=p(e,n);r.set(c(r.get()||{},t))}e.IS_SUBPLOT_OBJ=f,e.IS_LINKED_TO_ARRAY=m,e.DEPRECATED=g,e.UNDERSCORE_ATTRS=y,e.get=function(){var n={};return t.allTypes.forEach(function(a){n[a]=function(n){var a,i;a=t.modules[n]._module,i=a.basePlotModule;var o={type:null},s=c({},r),l=c({},a.attributes);e.crawl(l,function(e,t,n,r,a){p(s,a).set(void 0),void 0===e&&p(l,a).set(void 0)}),c(o,s),t.traceIs(n,"noOpacity")&&delete o.opacity,t.traceIs(n,"showLegend")||(delete o.showlegend,delete o.legendgroup),t.traceIs(n,"noHover")&&(delete o.hoverinfo,delete o.hoverlabel),a.selectPoints||delete o.selectedpoints,c(o,l),i.attributes&&c(o,i.attributes),o.type=n;var u={meta:a.meta||{},categories:a.categories||{},animatable:!!a.animatable,type:n,attributes:z(o)};if(a.layoutAttributes){var d={};c(d,a.layoutAttributes),u.layoutAttributes=z(d)}return a.animatable||e.crawl(u,function(t){e.isValObject(t)&&"anim"in t&&delete t.anim}),u}(a)}),{defs:{valObjects:h,metaKeys:y.concat(["description","role","editType","impliedEdits"]),editType:{traces:l.traces,layout:l.layout},impliedEdits:{description:["Sometimes when an attribute is changed, other attributes","must be altered as well in order to achieve the intended","result. For example, when `range` is specified, it is","important to set `autorange` to `false` or the new `range`","value would be lost in the redraw. `impliedEdits` is the","mechanism to do this: `impliedEdits: {autorange: false}`.","Each key is a relative paths to the attribute string to","change, using *^* to ascend into the parent container,","for example `range[0]` has `impliedEdits: {*^autorange*: false}`.","A value of `undefined` means that the attribute will not be","changed, but its previous value should be recorded in case","we want to reverse this change later. For example, `autorange`","has `impliedEdits: {*range[0]*: undefined, *range[1]*:undefined}","because the range will likely be changed by redraw."].join(" ")}},traces:n,layout:M(),frames:x(),animation:z(o),config:z(s)}},e.crawl=function(t,n,r,a){var i=r||0;a=a||"",Object.keys(t).forEach(function(r){var o=t[r];if(-1===y.indexOf(r)){var s=(a?a+".":"")+r;n(o,r,t,i,s),!e.isValObject(o)&&u(o)&&"impliedEdits"!==r&&e.crawl(o,n,i+1,s)}})},e.isValObject=function(e){return e&&void 0!==e.valType},e.findArrayAttributes=function(t){var n,a,i=[],o=[],s=[];function l(e,t,r,a){o=o.slice(0,a).concat([t]),s=s.slice(0,a).concat([e&&e._isLinkedToArray]),e&&("data_array"===e.valType||!0===e.arrayOk)&&!("colorbar"===o[a-1]&&("ticktext"===t||"tickvals"===t))&&c(n,0,"")}function c(e,t,n){var r=e[o[t]],l=n+o[t];if(t===o.length-1)d(r)&&i.push(a+l);else if(s[t]){if(Array.isArray(r))for(var p=0;p<r.length;p++)u(r[p])&&c(r[p],t+1,l+"["+p+"].")}else u(r)&&c(r,t+1,l+".")}return n=t,a="",e.crawl(r,l),t._module&&t._module.attributes&&e.crawl(t._module.attributes,l),i},e.getTraceValObject=function(e,n){var a,i,o=n[0],s=e._module;if(s||(s=(t.modules[e.type||r.type.dflt]||{})._module),!s)return!1;if(!(i=(a=s.attributes)&&a[o])){var l=s.basePlotModule;l&&l.attributes&&(i=l.attributes[o])}return i||(i=r[o]),b(i,n,1)},e.getLayoutValObject=function(e,n){var r=function(e,n){var r,i,o,s,l=e._basePlotModules;if(l){var c;for(r=0;r<l.length;r++){if((o=l[r]).attrRegex&&o.attrRegex.test(n)){if(o.layoutAttrOverrides)return o.layoutAttrOverrides;!c&&o.layoutAttributes&&(c=o.layoutAttributes)}var u=o.baseLayoutAttrOverrides;if(u&&n in u)return u[n]}if(c)return c}var d=e._modules;if(d)for(r=0;r<d.length;r++)if((s=d[r].layoutAttributes)&&n in s)return s[n];for(i in t.componentsRegistry){if("colorscale"===(o=t.componentsRegistry[i]).name&&0===n.indexOf("coloraxis"))return o.layoutAttributes[n];if(!o.schema&&n===o.name)return o.layoutAttributes}return n in a&&a[n]}(e,n[0]);return b(r,n,1)}}),Kl=Ee(e=>{var t=Fr(),n=S1(),r="templateitemname",a={name:{valType:"string",editType:"none",description:["When used in a template, named items are created in the output figure","in addition to any items the figure already has in this array.","You can modify these items in the output figure by making your own","item with `templateitemname` matching this `name`","alongside your modifications (including `visible: false` or","`enabled: false` to hide it).","Has no effect outside of a template."].join(" ")}};function i(e){return e&&"string"==typeof e}function o(e){var n=e.length-1;return"s"!==e.charAt(n)&&t.warn("bad argument to arrayDefaultKey: "+e),e.slice(0,-1)+"defaults"}a[r]={valType:"string",editType:"calc",description:["Used to refer to a named item in this array in the template. Named","items from the template will be created even without a matching item","in the input figure, but you can modify one by making an item with","`templateitemname` matching its `name`, alongside your modifications","(including `visible: false` or `enabled: false` to hide it).","If there is no template or no matching item, this item will be","hidden unless you explicitly show it with `visible: true`."].join(" ")},e.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=a.name,t[r]=a[r],t},e.traceTemplater=function(e){var r,a,i={};for(r in e)a=e[r],Array.isArray(a)&&a.length&&(i[r]=0);return{newTrace:function(o){var s={type:r=t.coerce(o,{},n,"type"),_template:null};if(r in i){a=e[r];var l=i[r]%a.length;i[r]++,s._template=a[l]}return s}}},e.newContainer=function(e,n,r){var a=e._template,i=a&&(a[n]||r&&a[r]);return t.isPlainObject(i)||(i=null),e[n]={_template:i}},e.arrayTemplater=function(e,t,n){var a=e._template,s=a&&a[o(t)],l=a&&a[t];(!Array.isArray(l)||!l.length)&&(l=[]);var c={};return{newItem:function(e){var t={name:e.name,_input:e},a=t[r]=e[r];if(!i(a))return t._template=s,t;for(var o=0;o<l.length;o++){var u=l[o];if(u.name===a)return c[a]=1,t._template=u,t}return t[n]=e[n]||!1,t._template=!1,t},defaultItems:function(){for(var e=[],t=0;t<l.length;t++){var n=l[t],a=n.name;if(i(a)&&!c[a]){var o={_template:n,name:a,_input:{_templateitemname:a}};o[r]=n[r],e.push(o),c[a]=1}}return e}}},e.arrayDefaultKey=o,e.arrayEditor=function(e,n,a){var i=(t.nestedProperty(e,n).get()||[]).length,o=a._index,s=o>=i&&(a._input||{})._templateitemname;s&&(o=i);var l,c=n+"["+o+"]";function u(){l={},s&&(l[c]={},l[c][r]=s)}function d(e,n){s?t.nestedProperty(l[c],e).set(n):l[c+"."+e]=n}function p(){var e=l;return u(),e}return u(),{modifyBase:function(e,t){l[e]=t},modifyItem:d,getUpdateObj:p,applyUpdate:function(n,r){n&&d(n,r);var a=p();for(var i in a)t.nestedProperty(e,i).set(a[i])}}}}),sh=Ee((e,t)=>{var n=N8().counter;t.exports={idRegex:{x:n("x","( domain)?"),y:n("y","( domain)?")},attrRegex:n("[xy]axis"),xAxisMatch:n("xaxis"),yAxisMatch:n("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}}),Ld=Ee(e=>{var t=vo(),n=sh();function r(e,t){if(t&&t.length)for(var n=0;n<t.length;n++)if(t[n][e])return!0;return!1}e.id2name=function(e){if("string"==typeof e&&e.match(n.AX_ID_PATTERN)){var t=e.split(" ")[0].slice(1);return"1"===t&&(t=""),e.charAt(0)+"axis"+t}},e.name2id=function(e){if(e.match(n.AX_NAME_PATTERN)){var t=e.slice(5);return"1"===t&&(t=""),e.charAt(0)+t}},e.cleanId=function(e,t,r){var a=/( domain)$/.test(e);if("string"==typeof e&&e.match(n.AX_ID_PATTERN)&&(!t||e.charAt(0)===t)&&(!a||r)){var i=e.split(" ")[0].slice(1).replace(/^0+/,"");return"1"===i&&(i=""),e.charAt(0)+i+(a&&r?" domain":"")}},e.list=function(t,n,r){var a=t._fullLayout;if(!a)return[];var i,o=e.listIds(t,n),s=new Array(o.length);for(i=0;i<o.length;i++){var l=o[i];s[i]=a[l.charAt(0)+"axis"+l.slice(1)]}if(!r){var c=a._subplots.gl3d||[];for(i=0;i<c.length;i++){var u=a[c[i]];n?s.push(u[n+"axis"]):s.push(u.xaxis,u.yaxis,u.zaxis)}}return s},e.listIds=function(e,t){var n=e._fullLayout;if(!n)return[];var r=n._subplots;return t?r[t+"axis"]:r.xaxis.concat(r.yaxis)},e.getFromId=function(t,n,r){var a=t._fullLayout;return n=void 0===n||"string"!=typeof n?n:n.replace(" domain",""),"x"===r?n=n.replace(/y[0-9]*/,""):"y"===r&&(n=n.replace(/x[0-9]*/,"")),a[e.id2name(n)]},e.getFromTrace=function(n,r,a){var i=n._fullLayout,o=null;if(t.traceIs(r,"gl3d")){var s=r.scene;"scene"===s.slice(0,5)&&(o=i[s][a+"axis"])}else o=e.getFromId(n,r[a+"axis"]||a);return o},e.idSort=function(e,t){var n=e.charAt(0),r=t.charAt(0);return n!==r?n>r?1:-1:+(e.slice(1)||1)-+(t.slice(1)||1)},e.ref2id=function(e){return!!/^[xyz]/.test(e)&&e.split(" ")[0]},e.isLinked=function(e,t){return r(t,e._axisMatchGroups)||r(t,e._axisConstraintGroups)}}),Iz=Ee((e,t)=>{t.exports={clearOutlineControllers:function(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()},clearOutline:function(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}}}),MH=Ee((e,t)=>{t.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc",description:["Determines how scatter points at the same location coordinate","are displayed on the graph.","With *group*, the scatter points are plotted next to one another","centered around the shared location.","With *overlay*, the scatter points are plotted over one another,","you might need to reduce *opacity* to see multiple scatter points."].join(" ")},scattergap:{valType:"number",min:0,max:1,editType:"calc",description:["Sets the gap (in plot fraction) between scatter points of","adjacent location coordinates.","Defaults to `bargap`."].join(" ")}}}),mp=Ee(e=>{var t=vo();sh().SUBPLOT_PATTERN;e.getSubplotCalcData=function(e,n,r){var a=t.subplotsRegistry[n];if(!a)return[];for(var i=a.attr,o=[],s=0;s<e.length;s++){var l=e[s];l[0].trace[i]===r&&o.push(l)}return o},e.getModuleCalcData=function(e,n,r){var a,i=[],o=[];if(!(a="string"==typeof n?t.getModule(n).plot:"function"==typeof n?n:n.plot))return[i,e];for(var s=r,l=0;l<e.length;l++){var c=e[l],u=c[0].trace,d=void 0!==u.zorder;!0!==u.visible||0===u._length||(!u._module||u._module.plot!==a||d&&u.zorder!==s?o.push(c):i.push(c))}return[i,o]},e.getSubplotData=function(e,n,r){if(!t.subplotsRegistry[n])return[];for(var a,i=t.subplotsRegistry[n].attr,o=[],s=0;s<e.length;s++)(a=e[s])[i]===r&&o.push(a);return o}}),nqe=Ee(e=>{var t=vo(),n=Fr();function r(e,t,r){var a,i,o,s=!1;if("data"===t.type)a=e._fullData[null!==t.traces?t.traces[0]:0];else{if("layout"!==t.type)return!1;a=e._fullLayout}return i=n.nestedProperty(a,t.prop).get(),(o=r[t.type]=r[t.type]||{}).hasOwnProperty(t.prop)&&o[t.prop]!==i&&(s=!0),o[t.prop]=i,{changed:s,value:i}}function a(e,t){var r=[],a=t[0],i={};if("string"==typeof a)i[a]=t[1];else{if(!n.isPlainObject(a))return r;i=a}return o(i,function(e,t,n){r.push({type:"layout",prop:e,value:n})},"",0),r}function i(e,t){var r,a,i,s,l=[];if(a=t[0],i=t[1],r=t[2],s={},"string"==typeof a)s[a]=i;else{if(!n.isPlainObject(a))return l;s=a,void 0===r&&(r=i)}return void 0===r&&(r=null),o(s,function(t,n,a){var i,o;if(Array.isArray(a)){o=a.slice();var s=Math.min(o.length,e.data.length);r&&(s=Math.min(s,r.length)),i=[];for(var c=0;c<s;c++)i[c]=r?r[c]:c}else o=a,i=r?r.slice():null;if(null===i)Array.isArray(o)&&(o=o[0]);else if(Array.isArray(i)){if(!Array.isArray(o)){var u=o;o=[];for(var d=0;d<i.length;d++)o[d]=u}o.length=Math.min(i.length,o.length)}l.push({type:"data",prop:t,traces:i,value:o})},"",0),l}function o(e,t,r,a){Object.keys(e).forEach(function(i){var s=e[i];if("_"!==i[0]){var l=r+(a>0?".":"")+i;n.isPlainObject(s)?o(s,t,l,a+1):t(l,i,s)}})}e.manageCommandObserver=function(t,a,i,o){var s={},l=!0;a&&a._commandObserver&&(s=a._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var c=e.hasSimpleAPICommandBindings(t,i,s.lookupTable);if(a&&a._commandObserver){if(c)return s;if(a._commandObserver.remove)return a._commandObserver.remove(),a._commandObserver=null,s}if(c){r(t,c,s.cache),s.check=function(){if(l){var e=r(t,c,s.cache);return e.changed&&o&&void 0!==s.lookupTable[e.value]&&(s.disable(),Promise.resolve(o({value:e.value,type:c.type,prop:c.prop,traces:c.traces,index:s.lookupTable[e.value]})).then(s.enable,s.enable)),e.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],d=0;d<u.length;d++)t._internalOn(u[d],s.check);s.remove=function(){for(var e=0;e<u.length;e++)t._removeInternalListener(u[e],s.check)}}else n.log("Unable to automatically bind plot updates to API command"),s.lookupTable={},s.remove=function(){};return s.disable=function(){l=!1},s.enable=function(){l=!0},a&&(a._commandObserver=s),s},e.hasSimpleAPICommandBindings=function(t,n,r){var a,i,o=n.length;for(a=0;a<o;a++){var s,l=n[a],c=l.method,u=l.args;if(Array.isArray(u)||(u=[]),!c)return!1;var d=e.computeAPICommandBindings(t,c,u);if(1!==d.length)return!1;if(i){if((s=d[0]).type!==i.type||s.prop!==i.prop)return!1;if(Array.isArray(i.traces)){if(!Array.isArray(s.traces))return!1;s.traces.sort();for(var p=0;p<i.traces.length;p++)if(i.traces[p]!==s.traces[p])return!1}else if(s.prop!==i.prop)return!1}else i=d[0],Array.isArray(i.traces)&&i.traces.sort();var h=(s=d[0]).value;if(Array.isArray(h)){if(1!==h.length)return!1;h=h[0]}r&&(r[h]=a)}return i},e.executeAPICommand=function(e,r,a){if("skip"===r)return Promise.resolve();var i=t.apiMethodRegistry[r],o=[e];Array.isArray(a)||(a=[]);for(var s=0;s<a.length;s++)o.push(a[s]);return i.apply(null,o).catch(function(e){return n.warn("API call to Plotly."+r+" rejected.",e),Promise.reject(e)})},e.computeAPICommandBindings=function(e,t,n){var r;switch(Array.isArray(n)||(n=[]),t){case"restyle":r=i(e,n);break;case"relayout":r=a(e,n);break;case"update":r=i(e,[n[0],n[2]]).concat(a(e,[n[1]]));break;case"animate":r=function(e,t){return Array.isArray(t[0])&&1===t[0].length&&-1!==["string","number"].indexOf(typeof t[0][0])?[{type:"layout",prop:"_currentFrame",value:t[0][0].toString()}]:[]}(0,n);break;default:r=[]}return r}}),td=Ee((e,t)=>{var n=mo(),r=R8().timeFormatLocale,a=Eoe().formatLocale,i=xs(),o=qoe(),s=vo(),l=Q8(),c=Kl(),u=Fr(),d=ao(),p=T0().BADNUM,h=Ld(),f=Iz().clearOutline,m=MH(),g=oD(),y=bse(),b=mp().getModuleCalcData,v=u.relinkPrivateKeys,M=u._,x=t.exports={};u.extendFlat(x,s),x.attributes=S1(),x.attributes.type.values=x.allTypes,x.fontAttrs=Mu(),x.layoutAttributes=U8();var z=nqe();x.executeAPICommand=z.executeAPICommand,x.computeAPICommandBindings=z.computeAPICommandBindings,x.manageCommandObserver=z.manageCommandObserver,x.hasSimpleAPICommandBindings=z.hasSimpleAPICommandBindings,x.redrawText=function(e){return e=u.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(s.getComponentMethod("annotations","draw")(e),s.getComponentMethod("legend","draw")(e),s.getComponentMethod("colorbar","draw")(e),t(x.previousPromises(e)))},300)})},x.resize=function(e){e=u.getGraphDiv(e);var t,n=new Promise(function(n,r){(!e||u.isHidden(e))&&r(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||u.isHidden(e))n(e);else{delete e.layout.width,delete e.layout.height;var t=e.changed;e.autoplay=!0,s.call("relayout",e,{autosize:!0}).then(function(){e.changed=t,e._resolveResize===n&&(delete e._resolveResize,n(e))})}},100)});return t&&t(n),n},x.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})},x.addLinks=function(e){if(e._context.showLink||e._context.showSources){var t=e._fullLayout,r=u.ensureSingle(t._paper,"text","js-plot-link-container",function(e){e.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:d.defaultLine,"pointer-events":"all"}).each(function(){var e=n.select(this);e.append("tspan").classed("js-link-to-tool",!0),e.append("tspan").classed("js-link-spacer",!0),e.append("tspan").classed("js-sourcelinks",!0)})}),a=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var o=r.select(".js-link-to-tool"),s=r.select(".js-link-spacer"),l=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&function(e,t){t.text("");var n=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" »");if(e._context.sendData)n.on("click",function(){x.sendDataToCloud(e)});else{var r=window.location.pathname.split("/"),a=window.location.search;n.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+r[2].split(".")[0]+"/"+r[1]+a})}}(e,o),s.text(o.text()&&l.text()?" - ":"")}},x.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=n.select(e).append("div").attr("id","hiddenform").style("display","none"),a=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return a.append("input").attr({type:"text",name:"data"}).node().value=x.graphJson(e,!1,"keepdata"),a.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var _=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],A=["year","month","dayMonth","dayMonthYear"];function O(e,t){var n=e._context.locale;n||(n="en-US");var r=!1,a={};function i(e){for(var n=!0,i=0;i<t.length;i++){var o=t[i];a[o]||(e[o]?a[o]=e[o]:n=!1)}n&&(r=!0)}for(var o=0;o<2;o++){for(var l=e._context.locales,c=0;c<2;c++){var u=(l[n]||{}).format;if(u&&(i(u),r))break;l=s.localeRegistry}var d=n.split("-")[0];if(r||d===n)break;n=d}return r||i(s.localeRegistry.en.format),a}function w(e,t){var n={_fullLayout:t},r="x"===e._id.charAt(0),a=e._mainAxis._anchorAxis,i="",o="",s="";if(a&&(s=a._mainAxis._id,i=r?e._id+s:s+e._id),!i||!t._plots[i]){i="";for(var l=e._counterAxes,c=0;c<l.length;c++){var u=l[c],d=r?e._id+u:u+e._id;o||(o=d);var p=h.getFromId(n,u);if(s&&p.overlaying===s){i=d;break}}}return i||o}function k(e){return"string"==typeof e&&"px"===e.slice(-2)&&parseFloat(e)}function T(e){var t=e.margin;if(!e._size){var n=e._size={l:Math.round(t.l),r:Math.round(t.r),t:Math.round(t.t),b:Math.round(t.b),p:Math.round(t.pad)};n.w=Math.round(e.width)-n.l-n.r,n.h=Math.round(e.height)-n.t-n.b}e._pushmargin||(e._pushmargin={}),e._pushmarginIds||(e._pushmarginIds={}),e._reservedMargin||(e._reservedMargin={})}x.supplyDefaults=function(e,t){var n=t&&t.skipUpdateCalc,i=e._fullLayout||{};if(i._skipDefaults)delete i._skipDefaults;else{var o,l=e._fullLayout={},c=e.layout||{},d=e._fullData||[],p=e._fullData=[],h=e.data||[],m=e.calcdata||[],g=e._context||{};e._transitionData||x.createTransitionData(e),l._dfltTitle={plot:M(e,"Click to enter Plot title"),subtitle:M(e,"Click to enter Plot subtitle"),x:M(e,"Click to enter X axis title"),y:M(e,"Click to enter Y axis title"),colorbar:M(e,"Click to enter Colorscale title"),annotation:M(e,"new text")},l._traceWord=M(e,"trace");var y=O(e,_);if(l._mapboxAccessToken=g.mapboxAccessToken,i._initialAutoSizeIsDone){var b=i.width,z=i.height;x.supplyLayoutGlobalDefaults(c,l,y),c.width||(l.width=b),c.height||(l.height=z),x.sanitizeMargins(l)}else{x.supplyLayoutGlobalDefaults(c,l,y);var w=!c.width||!c.height,k=l.autosize,S=g.autosizable;w&&(k||S)?x.plotAutoSize(e,c,l):w&&x.sanitizeMargins(l),!k&&w&&(c.width=l.width,c.height=l.height)}l._d3locale=function(e,t){return e.decimal=t.charAt(0),e.thousands=t.charAt(1),{numberFormat:function(t){try{t=a(e).format(u.adjustFormat(t))}catch{return u.warnBadFormat(t),u.noFormat}return t},timeFormat:r(e).utcFormat}}(y,l.separators),l._extraFormat=O(e,A),l._initialAutoSizeIsDone=!0,l._dataLength=h.length,l._modules=[],l._visibleModules=[],l._basePlotModules=[];var C=l._subplots=function(){var e,t,n=s.collectableSubplotTypes,r={};if(!n){n=[];var a=s.subplotsRegistry;for(var i in a){var o=a[i].attr;if(o&&(n.push(i),Array.isArray(o)))for(t=0;t<o.length;t++)u.pushUnique(n,o[t])}}for(e=0;e<n.length;e++)r[n[e]]=[];return r}(),E=l._splomAxes={x:{},y:{}},q=l._splomSubplots={};l._splomGridDflt={},l._scatterStackOpts={},l._firstScatter={},l._alignmentOpts={},l._colorAxes={},l._requestRangeslider={},l._traceUids=function(e,t){var n,r,a=t.length,i=[];for(n=0;n<e.length;n++){var o=e[n]._fullInput;o!==r&&i.push(o),r=o}var s=i.length,l=new Array(a),c={};function d(e,t){l[t]=e,c[e]=1}function p(e,t){if(e&&"string"==typeof e&&!c[e])return d(e,t),!0}for(n=0;n<a;n++){var h=t[n].uid;"number"==typeof h&&(h=String(h)),!p(h,n)&&(n<s&&p(i[n].uid,n)||d(u.randstr(c),n))}return l}(d,h),x.supplyDataDefaults(h,p,c,l);var D=Object.keys(E.x),R=Object.keys(E.y);if(D.length>1&&R.length>1){for(s.getComponentMethod("grid","sizeDefaults")(c,l),o=0;o<D.length;o++)u.pushUnique(C.xaxis,D[o]);for(o=0;o<R.length;o++)u.pushUnique(C.yaxis,R[o]);for(var L in q)u.pushUnique(C.cartesian,L)}if(l._has=x._hasPlotType.bind(l),d.length===p.length)for(o=0;o<p.length;o++)v(p[o],d[o]);x.supplyLayoutModuleDefaults(c,l,p,e._transitionData);var I=l._visibleModules,W=[];for(o=0;o<I.length;o++){var N=I[o].crossTraceDefaults;N&&u.pushUnique(W,N)}for(o=0;o<W.length;o++)W[o](p,l);l._hasOnlyLargeSploms=1===l._basePlotModules.length&&"splom"===l._basePlotModules[0].name&&D.length>15&&R.length>15&&0===l.shapes.length&&0===l.images.length,x.linkSubplots(p,l,d,i),x.cleanPlot(p,l,d,i);var P=!(!i._has||!i._has("cartesian")),B=!(!l._has||!l._has("cartesian"));P&&!B?i._bgLayer.remove():B&&!P&&(l._shouldCreateBgLayer=!0),i._zoomlayer&&!e._dragging&&f({_fullLayout:i}),function(e,t){var n,r=[];t.meta&&(n=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var a=0;a<e.length;a++){var i=e[a];i.meta?r[i.index]=i._meta={meta:i.meta}:t.meta&&(i._meta={meta:t.meta}),t.meta&&(i._meta.layout={meta:t.meta})}r.length&&(n||(n=t._meta={}),n.data=r)}(p,l),v(l,i),s.getComponentMethod("colorscale","crossTraceDefaults")(p,l),l._preGUI||(l._preGUI={}),l._tracePreGUI||(l._tracePreGUI={});var F,j=l._tracePreGUI,U={};for(F in j)U[F]="old";for(o=0;o<p.length;o++)U[F=p[o]._fullInput.uid]||(j[F]={}),U[F]="new";for(F in U)"old"===U[F]&&delete j[F];T(l),s.getComponentMethod("rangeslider","makeData")(l),!n&&m.length===p.length&&x.supplyDefaultsUpdateCalc(m,p)}},x.supplyDefaultsUpdateCalc=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],a=(e[n]||[])[0];if(a&&a.trace){var i=a.trace;if(i._hasCalcTransform){var o,s,l,c=i._arrayAttrs;for(o=0;o<c.length;o++)s=c[o],l=u.nestedProperty(i,s).get().slice(),u.nestedProperty(r,s).set(l)}a.trace=r}}},x.createTransitionData=function(e){e._transitionData||(e._transitionData={}),e._transitionData._frames||(e._transitionData._frames=[]),e._transitionData._frameHash||(e._transitionData._frameHash={}),e._transitionData._counter||(e._transitionData._counter=0),e._transitionData._interruptCallbacks||(e._transitionData._interruptCallbacks=[])},x._hasPlotType=function(e){var t,n=this._basePlotModules||[];for(t=0;t<n.length;t++)if(n[t].name===e)return!0;var r=this._modules||[];for(t=0;t<r.length;t++){var a=r[t].name;if(a===e)return!0;var i=s.modules[a];if(i&&i.categories[e])return!0}return!1},x.cleanPlot=function(e,t,n,r){var a,i,o=r._basePlotModules||[];for(a=0;a<o.length;a++){var s=o[a];s.clean&&s.clean(e,t,n,r)}var l=r._has&&r._has("gl"),c=t._has&&t._has("gl");l&&!c&&void 0!==r._glcontainer&&(r._glcontainer.selectAll(".gl-canvas").remove(),r._glcontainer.selectAll(".no-webgl").remove(),r._glcanvas=null);var u=!!r._infolayer;e:for(a=0;a<n.length;a++){var d=n[a].uid;for(i=0;i<e.length;i++){if(d===e[i].uid)continue e}u&&r._infolayer.select(".cb"+d).remove()}},x.linkSubplots=function(e,t,n,r){var a,i,o=r._plots||{},l=t._plots={},c={_fullData:e,_fullLayout:t},d=t._subplots.cartesian||[];for(a=0;a<d.length;a++){var p,f=d[a],m=o[f],g=h.getFromId(c,f,"x"),y=h.getFromId(c,f,"y");for(m?p=l[f]=m:(p=l[f]={}).id=f,g._counterAxes.push(y._id),y._counterAxes.push(g._id),g._subplotsWith.push(f),y._subplotsWith.push(f),p.xaxis=g,p.yaxis=y,p._hasClipOnAxisFalse=!1,i=0;i<e.length;i++){var b=e[i];if(b.xaxis===p.xaxis._id&&b.yaxis===p.yaxis._id&&!1===b.cliponaxis){p._hasClipOnAxisFalse=!0;break}}}var v,M=h.list(c,null,!0);for(a=0;a<M.length;a++){var x=null;(v=M[a]).overlaying&&((x=h.getFromId(c,v.overlaying))&&x.overlaying&&(v.overlaying=!1,x=null)),v._mainAxis=x||v,x&&(v.domain=x.domain.slice()),v._anchorAxis="free"===v.anchor?null:h.getFromId(c,v.anchor)}for(a=0;a<M.length;a++)if((v=M[a])._counterAxes.sort(h.idSort),v._subplotsWith.sort(u.subplotSort),v._mainSubplot=w(v,t),v._counterAxes.length&&(v.spikemode&&-1!==v.spikemode.indexOf("across")||v.automargin&&v.mirror&&"free"!==v.anchor||s.getComponentMethod("rangeslider","isVisible")(v))){var z=1,_=0;for(i=0;i<v._counterAxes.length;i++){var A=h.getFromId(c,v._counterAxes[i]);z=Math.min(z,A.domain[0]),_=Math.max(_,A.domain[1])}z<_&&(v._counterDomainMin=z,v._counterDomainMax=_)}},x.clearExpandedTraceDefaultColors=function(e){var t,n,r;for(n=[],(t=e._module._colorAttrs)||(e._module._colorAttrs=t=[],l.crawl(e._module.attributes,function(e,r,a,i){n[i]=r,n.length=i+1,"color"===e.valType&&void 0===e.dflt&&t.push(n.join("."))})),r=0;r<t.length;r++){u.nestedProperty(e,"_input."+t[r]).get()||u.nestedProperty(e,t[r]).set(null)}},x.supplyDataDefaults=function(e,t,n,r){var a,i,o,l=r._modules,d=r._visibleModules,p=r._basePlotModules,h=0;function f(e){t.push(e);var n=e._module;n&&(u.pushUnique(l,n),!0===e.visible&&u.pushUnique(d,n),u.pushUnique(p,e._module.basePlotModule),!1!==e._input.visible&&h++)}r._transformModules=[];var m={},g=[],y=(n.template||{}).data||{},b=c.traceTemplater(y);for(a=0;a<e.length;a++)o=e[a],(i=b.newTrace(o)).uid=r._traceUids[a],x.supplyTraceDefaults(o,i,h,r,a),i.index=a,i._input=o,i._fullInput=i,f(i),s.traceIs(i,"carpetAxis")&&(m[i.carpet]=i),s.traceIs(i,"carpetDependent")&&g.push(a);for(a=0;a<g.length;a++)if((i=t[g[a]]).visible){var v=m[i.carpet];if(i._carpet=v,!v||!v.visible){i.visible=!1;continue}i.xaxis=v.xaxis,i.yaxis=v.yaxis}},x.supplyAnimationDefaults=function(e){e=e||{};var t,n={};function r(t,r){return u.coerce(e||{},n,g,t,r)}if(r("mode"),r("direction"),r("fromcurrent"),Array.isArray(e.frame))for(n.frame=[],t=0;t<e.frame.length;t++)n.frame[t]=x.supplyAnimationFrameDefaults(e.frame[t]||{});else n.frame=x.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(n.transition=[],t=0;t<e.transition.length;t++)n.transition[t]=x.supplyAnimationTransitionDefaults(e.transition[t]||{});else n.transition=x.supplyAnimationTransitionDefaults(e.transition||{});return n},x.supplyAnimationFrameDefaults=function(e){var t={};function n(n,r){return u.coerce(e||{},t,g.frame,n,r)}return n("duration"),n("redraw"),t},x.supplyAnimationTransitionDefaults=function(e){var t={};function n(n,r){return u.coerce(e||{},t,g.transition,n,r)}return n("duration"),n("easing"),t},x.supplyFrameDefaults=function(e){var t={};function n(n,r){return u.coerce(e,t,y,n,r)}return n("group"),n("name"),n("traces"),n("baseframe"),n("data"),n("layout"),t},x.supplyTraceDefaults=function(e,t,n,r,a){var i,o=r.colorway||d.defaults,l=o[n%o.length];function c(n,r){return u.coerce(e,t,x.attributes,n,r)}var p=c("visible");c("type"),c("name",r._traceWord+" "+a),c("uirevision",r.uirevision);var h=x.getModule(t);if(t._module=h,h){var f=h.basePlotModule,m=f.attr,g=f.attributes;if(m&&g){var y=r._subplots,b="";if(Array.isArray(m))for(i=0;i<m.length;i++){var v=m[i],M=u.coerce(e,t,g,v);y[v]&&u.pushUnique(y[v],M),b+=M}else b=u.coerce(e,t,g,m);y[f.name]&&u.pushUnique(y[f.name],b)}}if(p&&(c("customdata"),c("ids"),c("meta"),s.traceIs(t,"showLegend")?(u.coerce(e,t,h.attributes.showlegend?h.attributes:x.attributes,"showlegend"),u.coerce(e,t,h.attributes.legend?h.attributes:x.attributes,"legend"),c("legendwidth"),c("legendgroup"),c("legendgrouptitle.text"),u.coerce(e,t,h.attributes.legend?h.attributes:x.attributes,"legendrank"),t._dfltShowLegend=!0):t._dfltShowLegend=!1,h&&h.supplyDefaults(e,t,l,r),s.traceIs(t,"noOpacity")||c("opacity"),s.traceIs(t,"notLegendIsolatable")&&(t.visible=!!t.visible),s.traceIs(t,"noHover")||(t.hovertemplate||u.coerceHoverinfo(e,t,r),"parcats"!==t.type&&s.getComponentMethod("fx","supplyDefaults")(e,t,l,r)),h&&h.selectPoints)){var z=c("selectedpoints");u.isTypedArray(z)&&(t.selectedpoints=Array.from(z))}return t},x.supplyLayoutGlobalDefaults=function(e,t,n){function r(n,r){return u.coerce(e,t,x.layoutAttributes,n,r)}var a=e.template;u.isPlainObject(a)&&(t.template=a,t._template=a.layout,t._dataTemplate=a.data),r("autotypenumbers");var i=u.coerceFont(r,"font"),o=i.size;u.coerceFont(r,"title.font",i,{overrideDflt:{size:Math.round(1.4*o)}}),r("title.text",t._dfltTitle.plot),r("title.xref");var l=r("title.yref");r("title.pad.t"),r("title.pad.r"),r("title.pad.b"),r("title.pad.l");var c=r("title.automargin");r("title.x"),r("title.xanchor"),r("title.y"),r("title.yanchor"),r("title.subtitle.text",t._dfltTitle.subtitle),u.coerceFont(r,"title.subtitle.font",i,{overrideDflt:{size:Math.round(.7*t.title.font.size)}}),c&&("paper"===l&&(0!==t.title.y&&(t.title.y=1),"auto"===t.title.yanchor&&(t.title.yanchor=0===t.title.y?"top":"bottom")),"container"===l&&("auto"===t.title.y&&(t.title.y=1),"auto"===t.title.yanchor&&(t.title.yanchor=t.title.y<.5?"bottom":"top"))),r("uniformtext.mode")&&r("uniformtext.minsize"),r("autosize",!(e.width&&e.height)),r("width"),r("height"),r("minreducedwidth"),r("minreducedheight"),r("margin.l"),r("margin.r"),r("margin.t"),r("margin.b"),r("margin.pad"),r("margin.autoexpand"),e.width&&e.height&&x.sanitizeMargins(t),s.getComponentMethod("grid","sizeDefaults")(e,t),r("paper_bgcolor"),r("separators",n.decimal+n.thousands),r("hidesources"),r("colorway"),r("datarevision");var d=r("uirevision");r("editrevision",d),r("selectionrevision",d),s.getComponentMethod("modebar","supplyLayoutDefaults")(e,t),s.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,t,r),s.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,t,r),r("meta"),u.isPlainObject(e.transition)&&(r("transition.duration"),r("transition.easing"),r("transition.ordering")),s.getComponentMethod("calendars","handleDefaults")(e,t,"calendar"),s.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,t,r),u.coerce(e,t,m,"scattermode")},x.plotAutoSize=function(e,t,n){var r,a,o=e._context||{},s=o.frameMargins,l=u.isPlotDiv(e);if(l&&e.emit("plotly_autosize"),o.fillFrame)r=window.innerWidth,a=window.innerHeight,document.body.style.overflow="hidden";else{var c=l?window.getComputedStyle(e):{};if(r=k(c.width)||k(c.maxWidth)||n.width,a=k(c.height)||k(c.maxHeight)||n.height,i(s)&&s>0){var d=1-2*s;r=Math.round(d*r),a=Math.round(d*a)}}var p=x.layoutAttributes.width.min,h=x.layoutAttributes.height.min;r<p&&(r=p),a<h&&(a=h);var f=!t.width&&Math.abs(n.width-r)>1,m=!t.height&&Math.abs(n.height-a)>1;(m||f)&&(f&&(n.width=r),m&&(n.height=a)),e._initialAutoSize||(e._initialAutoSize={width:r,height:a}),x.sanitizeMargins(n)},x.supplyLayoutModuleDefaults=function(e,t,n,r){var a,i,o,l=s.componentsRegistry,c=t._basePlotModules,d=s.subplotsRegistry.cartesian;for(a in l)(o=l[a]).includeBasePlot&&o.includeBasePlot(e,t);for(var p in c.length||c.push(d),t._has("cartesian")&&(s.getComponentMethod("grid","contentDefaults")(e,t),d.finalizeSubplots(e,t)),t._subplots)t._subplots[p].sort(u.subplotSort);for(i=0;i<c.length;i++)(o=c[i]).supplyLayoutDefaults&&o.supplyLayoutDefaults(e,t,n);var h=t._modules;for(i=0;i<h.length;i++)(o=h[i]).supplyLayoutDefaults&&o.supplyLayoutDefaults(e,t,n);var f=t._transformModules;for(i=0;i<f.length;i++)(o=f[i]).supplyLayoutDefaults&&o.supplyLayoutDefaults(e,t,n,r);for(a in l)(o=l[a]).supplyLayoutDefaults&&o.supplyLayoutDefaults(e,t,n)},x.purge=function(e){var t=e._fullLayout||{};void 0!==t._glcontainer&&(t._glcontainer.selectAll(".gl-canvas").remove(),t._glcontainer.remove(),t._glcanvas=null),t._modeBar&&t._modeBar.destroy(),e._transitionData&&(e._transitionData._interruptCallbacks&&(e._transitionData._interruptCallbacks.length=0),e._transitionData._animationRaf&&window.cancelAnimationFrame(e._transitionData._animationRaf)),u.clearThrottle(),u.clearResponsive(e),delete e.data,delete e.layout,delete e._fullData,delete e._fullLayout,delete e.calcdata,delete e.empty,delete e.fid,delete e.undoqueue,delete e.undonum,delete e.autoplay,delete e.changed,delete e._promises,delete e._redrawTimer,delete e._hmlumcount,delete e._hmpixcount,delete e._transitionData,delete e._transitioning,delete e._initialAutoSize,delete e._transitioningWithDuration,delete e._dragging,delete e._dragged,delete e._dragdata,delete e._hoverdata,delete e._snapshotInProgress,delete e._editing,delete e._mouseDownTime,delete e._legendMouseDownTime,e.removeAllListeners&&e.removeAllListeners()},x.style=function(e){var t,n=e._fullLayout._visibleModules,r=[];for(t=0;t<n.length;t++){var a=n[t];a.style&&u.pushUnique(r,a.style)}for(t=0;t<r.length;t++)r[t](e)},x.sanitizeMargins=function(e){if(e&&e.margin){var t,n=e.width,r=e.height,a=e.margin,i=n-(a.l+a.r),o=r-(a.t+a.b);i<0&&(t=(n-1)/(a.l+a.r),a.l=Math.floor(t*a.l),a.r=Math.floor(t*a.r)),o<0&&(t=(r-1)/(a.t+a.b),a.t=Math.floor(t*a.t),a.b=Math.floor(t*a.b))}},x.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}},x.allowAutoMargin=function(e,t){e._fullLayout._pushmarginIds[t]=1};x.autoMargin=function(e,t,n){var r=e._fullLayout,a=r.width,i=r.height,o=r.margin,s=r.minreducedwidth,l=r.minreducedheight,c=u.constrain(a-o.l-o.r,2,s),d=u.constrain(i-o.t-o.b,2,l),p=Math.max(0,a-c),h=Math.max(0,i-d),f=r._pushmargin,m=r._pushmarginIds;if(!1!==o.autoexpand){if(n){var g=n.pad;if(void 0===g&&(g=Math.min(12,o.l,o.r,o.t,o.b)),p){var y=(n.l+n.r)/p;y>1&&(n.l/=y,n.r/=y)}if(h){var b=(n.t+n.b)/h;b>1&&(n.t/=b,n.b/=b)}var v=void 0!==n.xl?n.xl:n.x,M=void 0!==n.xr?n.xr:n.x,z=void 0!==n.yt?n.yt:n.y,_=void 0!==n.yb?n.yb:n.y;f[t]={l:{val:v,size:n.l+g},r:{val:M,size:n.r+g},b:{val:_,size:n.b+g},t:{val:z,size:n.t+g}},m[t]=1}else delete f[t],delete m[t];if(!r._replotting)return x.doAutoMargin(e)}},x.doAutoMargin=function(e){var t=e._fullLayout,n=t.width,r=t.height;t._size||(t._size={}),T(t);var a=t._size,o=t.margin,l={t:0,b:0,l:0,r:0},c=u.extendFlat({},a),d=o.l,p=o.r,f=o.t,m=o.b,g=t._pushmargin,y=t._pushmarginIds,b=t.minreducedwidth,v=t.minreducedheight;if(!1!==o.autoexpand){for(var M in g)y[M]||delete g[M];var z=e._fullLayout._reservedMargin;for(var _ in z)for(var A in z[_]){var O=z[_][A];l[A]=Math.max(l[A],O)}for(var w in g.base={l:{val:0,size:d},r:{val:1,size:p},t:{val:1,size:f},b:{val:0,size:m}},l){var k=0;for(var S in g)"base"!==S&&i(g[S][w].size)&&(k=g[S][w].size>k?g[S][w].size:k);var C=Math.max(0,o[w]-k);l[w]=Math.max(0,l[w]-C)}for(var E in g){var q=g[E].l||{},D=g[E].b||{},R=q.val,L=q.size,I=D.val,W=D.size,N=n-l.r-l.l,P=r-l.t-l.b;for(var B in g){if(i(L)&&g[B].r){var F=g[B].r.val,j=g[B].r.size;if(F>R){var U=(L*F+(j-N)*R)/(F-R),V=(j*(1-R)+(L-N)*(1-F))/(F-R);U+V>d+p&&(d=U,p=V)}}if(i(W)&&g[B].t){var H=g[B].t.val,X=g[B].t.size;if(H>I){var G=(W*H+(X-P)*I)/(H-I),Y=(X*(1-I)+(W-P)*(1-H))/(H-I);G+Y>m+f&&(m=G,f=Y)}}}}}var Z=u.constrain(n-o.l-o.r,2,b),$=u.constrain(r-o.t-o.b,2,v),J=Math.max(0,n-Z),Q=Math.max(0,r-$);if(J){var K=(d+p)/J;K>1&&(d/=K,p/=K)}if(Q){var ee=(m+f)/Q;ee>1&&(m/=ee,f/=ee)}if(a.l=Math.round(d)+l.l,a.r=Math.round(p)+l.r,a.t=Math.round(f)+l.t,a.b=Math.round(m)+l.b,a.p=Math.round(o.pad),a.w=Math.round(n)-a.l-a.r,a.h=Math.round(r)-a.t-a.b,!t._replotting&&(x.didMarginChange(c,a)||function(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=h.list(e,"",!0);for(var n in t)if(t[n].autoshift||t[n].shift)return!0;return!1}(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var te=3*(1+Object.keys(y).length);if(t._redrawFromAutoMarginCount<te)return s.call("_doPlot",e);t._size=c,u.warn("Too many auto-margin redraws.")}!function(e){var t=h.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(e){for(var n=0;n<t.length;n++){var r=t[n][e];r&&r()}})}(e)};var S=["l","r","t","b","p","w","h"];function C(e,t,n){var r=!1;var a=[x.previousPromises,function(){if(e._transitionData)return e._transitioning=!1,function(e){var t=Promise.resolve();if(!e)return t;for(;e.length;)t=t.then(e.shift());return t}(e._transitionData._interruptCallbacks)},n.prepareFn,x.rehover,x.reselect,function(){return e.emit("plotly_transitioning",[]),new Promise(function(a){e._transitioning=!0,t.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){r=!0}),n.redraw&&e._transitionData._interruptCallbacks.push(function(){return s.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var i=0,o=0;function l(){return i++,function(){o++,!r&&o===i&&function(t){if(e._transitionData)(function(e){if(e)for(;e.length;)e.shift()})(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(n.redraw)return s.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(t)}(a)}}n.runFn(l),setTimeout(l())})}],i=u.syncOrAsync(a,e);return(!i||!i.then)&&(i=Promise.resolve()),i.then(function(){return e})}x.didMarginChange=function(e,t){for(var n=0;n<S.length;n++){var r=S[n],a=e[r],o=t[r];if(!i(a)||Math.abs(o-a)>1)return!0}return!1},x.graphJson=function(e,t,n,r,a,i){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&x.supplyDefaults(e);var s=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,c=(e._transitionData||{})._frames;function d(e,t){if("function"==typeof e)return t?"_function_":null;if(u.isPlainObject(e)){var r,a={};return Object.keys(e).sort().forEach(function(i){if(-1===["_","["].indexOf(i.charAt(0))){if("function"==typeof e[i])return void(t&&(a[i]="_function"));if("keepdata"===n){if("src"===i.slice(-3))return}else if("keepstream"===n){if("string"==typeof(r=e[i+"src"])&&r.indexOf(":")>0&&!u.isPlainObject(e.stream))return}else if("keepall"!==n&&("string"==typeof(r=e[i+"src"])&&r.indexOf(":")>0))return;a[i]=d(e[i],t)}}),a}var i=Array.isArray(e),s=u.isTypedArray(e);if((i||s)&&e.dtype&&e.shape){var l=e.bdata;return d({dtype:e.dtype,shape:e.shape,bdata:u.isArrayBuffer(l)?o.encode(l):l},t)}return i?e.map(function(e){return d(e,t)}):s?u.simpleMap(e,u.identity):u.isJSDate(e)?u.ms2DateTimeLocal(+e):e}var p={data:(s||[]).map(function(e){var n=d(e);return t&&delete n.fit,n})};if(!t&&(p.layout=d(l),a)){var h=l._size;p.layout.computed={margin:{b:h.b,l:h.l,r:h.r,t:h.t}}}return c&&(p.frames=d(c)),i&&(p.config=d(e._context,!0)),"object"===r?p:JSON.stringify(p)},x.modifyFrames=function(e,t){var n,r,a,i=e._transitionData._frames,o=e._transitionData._frameHash;for(n=0;n<t.length;n++)switch(r=t[n],r.type){case"replace":a=r.value;var s=(i[r.index]||{}).name,l=a.name;i[r.index]=o[l]=a,l!==s&&(delete o[s],o[l]=a);break;case"insert":o[(a=r.value).name]=a,i.splice(r.index,0,a);break;case"delete":delete o[(a=i[r.index]).name],i.splice(r.index,1)}return Promise.resolve()},x.computeFrame=function(e,t){var n,r,a,i,o=e._transitionData._frameHash;if(!t)throw new Error("computeFrame must be given a string frame name");var s=o[t.toString()];if(!s)return!1;for(var l=[s],c=[s.name];s.baseframe&&(s=o[s.baseframe.toString()])&&-1===c.indexOf(s.name);)l.push(s),c.push(s.name);for(var u={};s=l.pop();)if(s.layout&&(u.layout=x.extendLayout(u.layout,s.layout)),s.data){if(u.data||(u.data=[]),!(r=s.traces))for(r=[],n=0;n<s.data.length;n++)r[n]=n;for(u.traces||(u.traces=[]),n=0;n<s.data.length;n++)null!=(a=r[n])&&(-1===(i=u.traces.indexOf(a))&&(i=u.data.length,u.traces[i]=a),u.data[i]=x.extendTrace(u.data[i],s.data[n]))}return u},x.recomputeFrameHash=function(e){for(var t=e._transitionData._frameHash={},n=e._transitionData._frames,r=0;r<n.length;r++){var a=n[r];a&&a.name&&(t[a.name]=a)}},x.extendObjectWithContainers=function(e,t,n){var r,a,i,o,s,l,c,d=u.extendDeepNoArrays({},t||{}),p=u.expandObjectPaths(d),h={};if(n&&n.length)for(i=0;i<n.length;i++)void 0===(a=(r=u.nestedProperty(p,n[i])).get())?u.nestedProperty(h,n[i]).set(null):(r.set(null),u.nestedProperty(h,n[i]).set(a));if(e=u.extendDeepNoArrays(e||{},p),n&&n.length)for(i=0;i<n.length;i++)if(l=u.nestedProperty(h,n[i]).get()){for(c=(s=u.nestedProperty(e,n[i])).get(),Array.isArray(c)||(c=[],s.set(c)),o=0;o<l.length;o++){var f=l[o];c[o]=null===f?null:x.extendObjectWithContainers(c[o],f)}s.set(c)}return e},x.dataArrayContainers=["transforms","dimensions"],x.layoutArrayContainers=s.layoutArrayContainers,x.extendTrace=function(e,t){return x.extendObjectWithContainers(e,t,x.dataArrayContainers)},x.extendLayout=function(e,t){return x.extendObjectWithContainers(e,t,x.layoutArrayContainers)},x.transition=function(e,t,n,r,a,i){var o={redraw:a.redraw},s={},l=[];return o.prepareFn=function(){for(var a=Array.isArray(t)?t.length:0,i=r.slice(0,a),o=0;o<i.length;o++){var c=i[o],d=e._fullData[c]._module;if(d){if(d.animatable){var p=d.basePlotModule.name;s[p]||(s[p]=[]),s[p].push(c)}e.data[i[o]]=x.extendTrace(e.data[i[o]],t[o])}}var h=u.expandObjectPaths(u.extendDeepNoArrays({},n)),f=/^[xy]axis[0-9]*$/;for(var m in h)f.test(m)&&delete h[m].range;x.extendLayout(e.layout,h),delete e.calcdata,x.supplyDefaults(e),x.doCalcdata(e);var g=u.expandObjectPaths(n);if(g){var y=e._fullLayout._plots;for(var b in y){var v=y[b],M=v.xaxis,z=v.yaxis,_=M.range.slice(),A=z.range.slice(),O=null,w=null,k=null,T=null;Array.isArray(g[M._name+".range"])?O=g[M._name+".range"].slice():Array.isArray((g[M._name]||{}).range)&&(O=g[M._name].range.slice()),Array.isArray(g[z._name+".range"])?w=g[z._name+".range"].slice():Array.isArray((g[z._name]||{}).range)&&(w=g[z._name].range.slice()),_&&O&&(M.r2l(_[0])!==M.r2l(O[0])||M.r2l(_[1])!==M.r2l(O[1]))&&(k={xr0:_,xr1:O}),A&&w&&(z.r2l(A[0])!==z.r2l(w[0])||z.r2l(A[1])!==z.r2l(w[1]))&&(T={yr0:A,yr1:w}),(k||T)&&l.push(u.extendFlat({plotinfo:v},k,T))}}return Promise.resolve()},o.runFn=function(t){var r,a,o=e._fullLayout._basePlotModules,c=l.length;if(n)for(a=0;a<o.length;a++)o[a].transitionAxes&&o[a].transitionAxes(e,l,i,t);for(var d in c?((r=u.extendFlat({},i)).duration=0,delete s.cartesian):r=i,s){var p=s[d];e._fullData[p[0]]._module.basePlotModule.plot(e,p,r,t)}},C(e,i,o)},x.transitionFromReact=function(e,t,n,r){var a=e._fullLayout,i=a.transition,o={},s=[];return o.prepareFn=function(){var e=a._plots;for(var i in o.redraw=!1,"some"===t.anim&&(o.redraw=!0),"some"===n.anim&&(o.redraw=!0),e){var l=e[i],c=l.xaxis,d=l.yaxis,p=r[c._name].range.slice(),h=r[d._name].range.slice(),f=c.range.slice(),m=d.range.slice();c.setScale(),d.setScale();var g=null,y=null;(c.r2l(p[0])!==c.r2l(f[0])||c.r2l(p[1])!==c.r2l(f[1]))&&(g={xr0:p,xr1:f}),(d.r2l(h[0])!==d.r2l(m[0])||d.r2l(h[1])!==d.r2l(m[1]))&&(y={yr0:h,yr1:m}),(g||y)&&s.push(u.extendFlat({plotinfo:l},g,y))}return Promise.resolve()},o.runFn=function(n){for(var r,a,o,l=e._fullData,c=e._fullLayout._basePlotModules,d=[],p=0;p<l.length;p++)d.push(p);function h(){if(e._fullLayout)for(var t=0;t<c.length;t++)c[t].transitionAxes&&c[t].transitionAxes(e,s,r,n)}function f(){if(e._fullLayout)for(var t=0;t<c.length;t++)c[t].plot(e,o,a,n)}s.length&&t.anim?"traces first"===i.ordering?(r=u.extendFlat({},i,{duration:0}),o=d,a=i,setTimeout(h,i.duration),f()):(r=i,o=null,a=u.extendFlat({},i,{duration:0}),setTimeout(f,r.duration),h()):s.length?(r=i,h()):t.anim&&(o=d,a=i,f())},C(e,i,o)},x.doCalcdata=function(e,t){var n,r,a,i,o=h.list(e),c=e._fullData,d=e._fullLayout,f=new Array(c.length),m=(e.calcdata||[]).slice();for(e.calcdata=f,d._numBoxes=0,d._numViolins=0,d._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,d._piecolormap={},d._sunburstcolormap={},d._treemapcolormap={},d._iciclecolormap={},d._funnelareacolormap={},a=0;a<c.length;a++)if(Array.isArray(t)&&-1===t.indexOf(a)){f[a]=m[a];continue}for(a=0;a<c.length;a++)(n=c[a])._arrayAttrs=l.findArrayAttributes(n),n._extremes={};var g=d._subplots.polar||[];for(a=0;a<g.length;a++)o.push(d[g[a]].radialaxis,d[g[a]].angularaxis);for(var y in d._colorAxes){var b=d[y];!1!==b.cauto&&(delete b.cmin,delete b.cmax)}var v=!1;function M(t){if(n=c[t],r=n._module,!0===n.visible&&n.transforms){if(r&&r.calc){var a=r.calc(e,n);a[0]&&a[0].t&&a[0].t._scene&&delete a[0].t._scene.dirty}for(i=0;i<n.transforms.length;i++){var o=n.transforms[i];(r=transformsRegistry[o.type])&&r.calcTransform&&(n._hasCalcTransform=!0,v=!0,r.calcTransform(e,n,o))}}}function x(t,a){if(n=c[t],!!(r=n._module).isContainer===a){var o=[];if(!0===n.visible&&0!==n._length){delete n._indexToPoints;var s=n.transforms||[];for(i=s.length-1;i>=0;i--)if(s[i].enabled){n._indexToPoints=s[i]._indexToPoints;break}r&&r.calc&&(o=r.calc(e,n))}(!Array.isArray(o)||!o[0])&&(o=[{x:p,y:p}]),o[0].t||(o[0].t={}),o[0].trace=n,f[t]=o}}for(q(o,c,d),a=0;a<c.length;a++)x(a,!0);for(a=0;a<c.length;a++)M(a);for(v&&q(o,c,d),a=0;a<c.length;a++)x(a,!0);for(a=0;a<c.length;a++)x(a,!1);D(e);var z=function(e,t){var n,r,a,i,o,l=[];function c(e,n,r){var a=n._id.charAt(0);if("histogram2dcontour"===e){var i=n._counterAxes[0],o=h.getFromId(t,i),s="x"===a||"x"===i&&"category"===o.type,l="y"===a||"y"===i&&"category"===o.type;return function(e,t){return 0===e||0===t||s&&e===r[t].length-1||l&&t===r.length-1?-1:("y"===a?t:e)-1}}return function(e,t){return"y"===a?t:e}}var d={min:function(e){return u.aggNums(Math.min,null,e)},max:function(e){return u.aggNums(Math.max,null,e)},sum:function(e){return u.aggNums(function(e,t){return e+t},null,e)},total:function(e){return u.aggNums(function(e,t){return e+t},null,e)},mean:function(e){return u.mean(e)},"geometric mean":function(e){return u.geometricMean(e)},median:function(e){return u.median(e)}};function p(e,t){return e[1]-t[1]}function f(e,t){return t[1]-e[1]}for(n=0;n<e.length;n++){var m=e[n];if("category"===m.type){var g=m.categoryorder.match(E);if(g){var y=g[1],b=g[2],v=m._id.charAt(0),M="x"===v,x=[];for(r=0;r<m._categories.length;r++)x.push([m._categories[r],[]]);for(r=0;r<m._traceIndices.length;r++){var z=m._traceIndices[r],_=t._fullData[z];if(!0===_.visible){var A=_.type;s.traceIs(_,"histogram")&&(delete _._xautoBinFinished,delete _._yautoBinFinished);var O="splom"===A,w="scattergl"===A,k=t.calcdata[z];for(a=0;a<k.length;a++){var T,S,C=k[a];if(O){var q=_._axesDim[m._id];if(!M){var D=_._diag[q][0];D&&(m=t._fullLayout[h.id2name(D)])}var R=C.trace.dimensions[q].values;for(i=0;i<R.length;i++)for(T=m._categoriesMap[R[i]],o=0;o<C.trace.dimensions.length;o++)if(o!==q){var L=C.trace.dimensions[o];x[T][1].push(L.values[i])}}else if(w){for(i=0;i<C.t.x.length;i++)M?(T=C.t.x[i],S=C.t.y[i]):(T=C.t.y[i],S=C.t.x[i]),x[T][1].push(S);C.t&&C.t._scene&&delete C.t._scene.dirty}else if(C.hasOwnProperty("z")){S=C.z;var I=c(_.type,m,S);for(i=0;i<S.length;i++)for(o=0;o<S[i].length;o++)(T=I(o,i))+1&&x[T][1].push(S[i][o])}else for(void 0===(T=C.p)&&(T=C[v]),void 0===(S=C.s)&&(S=C.v),void 0===S&&(S=M?C.y:C.x),Array.isArray(S)||(S=void 0===S?[]:[S]),i=0;i<S.length;i++)x[T][1].push(S[i])}}}m._categoriesValue=x;var W=[];for(r=0;r<x.length;r++)W.push([x[r][0],d[y](x[r][1])]);W.sort("descending"===b?f:p),m._categoriesAggregatedValue=W,m._initialCategories=W.map(function(e){return e[0]}),l=l.concat(m.sortByInitialCategories())}}}return l}(o,e);if(z.length){for(d._numBoxes=0,d._numViolins=0,a=0;a<z.length;a++)x(z[a],!0);for(a=0;a<z.length;a++)x(z[a],!1);D(e)}s.getComponentMethod("fx","calc")(e),s.getComponentMethod("errorbars","calc")(e)};var E=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function q(e,t,n){var r={};function a(e){e.clearCalc(),"multicategory"===e.type&&e.setupMultiCategory(t),r[e._id]=1}u.simpleMap(e,a);for(var i=n._axisMatchGroups||[],o=0;o<i.length;o++)for(var s in i[o])r[s]||a(n[h.id2name(s)])}function D(e){var t,n,r,a=e._fullLayout,i=a._visibleModules,o={};for(n=0;n<i.length;n++){var s=i[n],l=s.crossTraceCalc;if(l){var c=s.basePlotModule.name;o[c]?u.pushUnique(o[c],l):o[c]=[l]}}for(r in o){var d=o[r],p=a._subplots[r];if(Array.isArray(p))for(t=0;t<p.length;t++){var h=p[t],f="cartesian"===r?a._plots[h]:a[h];for(n=0;n<d.length;n++)d[n](e,f,h)}else for(n=0;n<d.length;n++)d[n](e)}}x.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()},x.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()},x.reselect=function(e){var t=e._fullLayout,n=(e.layout||{}).selections,r=t._previousSelections;t._previousSelections=n;var a=t._reselect||JSON.stringify(n)!==JSON.stringify(r);s.getComponentMethod("selections","reselect")(e,a)},x.generalUpdatePerTraceModule=function(e,t,n,r){var a,i=t.traceHash,o={};for(a=0;a<n.length;a++){var s=n[a],l=s[0].trace;l.visible&&(o[l.type]=o[l.type]||[],o[l.type].push(s))}for(var c in i)if(!o[c]){var d=i[c][0];d[0].trace.visible=!1,o[c]=[d]}for(var p in o){var h=o[p];h[0][0].trace._module.plot(e,t,u.filterVisible(h),r)}t.traceHash=o},x.plotBasePlot=function(e,t,n,r,a){var i=s.getModule(e),o=b(t.calcdata,i)[0];i.plot(t,o,r,a)},x.cleanBasePlot=function(e,t,n,r,a){var i=a._has&&a._has(e),o=n._has&&n._has(e);i&&!o&&a["_"+e+"layer"].selectAll("g.trace").remove()}}),Dv=Ee(e=>{e.xmlns="http://www.w3.org/2000/xmlns/",e.svg="http://www.w3.org/2000/svg",e.xlink="http://www.w3.org/1999/xlink",e.svgAttrs={xmlns:e.svg,"xmlns:xlink":e.xlink}}),lh=Ee((e,t)=>{t.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}}),q1=Ee(e=>{var t=mo(),n=Fr(),r=n.strTranslate,a=Dv(),i=lh().LINE_SPACING,o=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;e.convertToTspans=function(f,O,w){var S=f.text(),C=!f.attr("data-notex")&&O&&O._context.typesetMath&&typeof MathJax<"u"&&S.match(o),E=t.select(f.node().parentNode);if(!E.empty()){var q=f.attr("class")?f.attr("class").split(" ")[0]:"text";return q+="-math",E.selectAll("svg."+q).remove(),E.selectAll("g."+q+"-group").remove(),f.style("display",null).attr({"data-unformatted":S,"data-math":"N"}),C?(O&&O._promises||[]).push(new Promise(function(e){f.style("display","none");var a=parseInt(f.node().style.fontSize,10),i={fontSize:a};!function(e,r,a){var i=parseInt((MathJax.version||"").split(".")[0]);if(2!==i&&3!==i)return void n.warn("No MathJax version:",MathJax.version);var o,u,d,p,h=function(){return u=n.extendDeepAll({},MathJax.Hub.config),d=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:c},displayAlign:"left"})},f=function(){u=n.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=c},m=function(){if("SVG"!==(o=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer("SVG")},g=function(){"svg"!==(o=MathJax.config.startup.output)&&(MathJax.config.startup.output="svg")},y=function(){var a="math-output-"+n.randstr({},64);p=t.select("body").append("div").attr({id:a}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(function(e){return e.replace(s,"\\lt ").replace(l,"\\gt ")}(e));var o=p.node();return 2===i?MathJax.Hub.Typeset(o):MathJax.typeset([o])},b=function(){var r=p.select(2===i?".MathJax_SVG":".MathJax"),o=!r.empty()&&p.select("svg").node();if(o){var s,l=o.getBoundingClientRect();s=2===i?t.select("body").select("#MathJax_SVG_glyphs"):r.select("defs"),a(r,s,l)}else n.log("There was an error in the tex syntax.",e),a();p.remove()},v=function(){if("SVG"!==o)return MathJax.Hub.setRenderer(o)},M=function(){"svg"!==o&&(MathJax.config.startup.output=o)},x=function(){return void 0!==d&&(MathJax.Hub.processSectionDelay=d),MathJax.Hub.Config(u)},z=function(){MathJax.config=u};2===i?MathJax.Hub.Queue(h,m,y,b,v,x):3===i&&(f(),g(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){y(),b(),M(),z()}))}(C[2],i,function(t,n,i){E.selectAll("svg."+q).remove(),E.selectAll("g."+q+"-group").remove();var o=t&&t.select("svg");if(!o||!o.node())return D(),void e();var s=E.append("g").classed(q+"-group",!0).attr({"pointer-events":"none","data-unformatted":S,"data-math":"Y"});s.node().appendChild(o.node()),n&&n.node()&&o.node().insertBefore(n.node().cloneNode(!0),o.node().firstChild);var l=i.width,c=i.height;o.attr({class:q,height:c,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var u=f.node().style.fill||"black",d=o.select("g");d.attr({fill:u,stroke:u});var p=d.node().getBoundingClientRect(),h=p.width,m=p.height;(h>l||m>c)&&(o.style("overflow","hidden"),h=(p=o.node().getBoundingClientRect()).width,m=p.height);var g=+f.attr("x"),y=+f.attr("y"),b=-(a||f.node().getBoundingClientRect().height)/4;if("y"===q[0])s.attr({transform:"rotate("+[-90,g,y]+")"+r(-h/2,b-m/2)});else if("l"===q[0])y=b-m/2;else if("a"===q[0]&&0!==q.indexOf("atitle"))g=0,y=b;else{var v=f.attr("text-anchor");g-=h*("middle"===v?.5:"end"===v?1:0),y=y+b-m/2}o.attr({x:g,y:y}),w&&w.call(f,s),e(s)})})):D(),f}function D(){E.empty()||(q=f.attr("class")+"-math",E.select("svg."+q).remove()),f.text("").style("white-space","pre");var r=function(e,r){r=r.replace(m," ");var o,s=!1,l=[],c=-1;function f(){c++;var n=document.createElementNS(a.svg,"tspan");t.select(n).attr({class:"line",dy:c*i+"em"}),e.appendChild(n),o=n;var r=l;if(l=[{node:n}],r.length>1)for(var s=1;s<r.length;s++)O(r[s])}function O(e){var n,r=e.type,i={};if("a"===r){n="a";var s=e.target,c=e.href,u=e.popup;c&&(i={"xlink:xlink:show":"_blank"===s||"_"!==s.charAt(0)?"new":"replace",target:s,"xlink:xlink:href":c},u&&(i.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+u+'");return false;'))}else n="tspan";e.style&&(i.style=e.style);var f=document.createElementNS(a.svg,n);if("sup"===r||"sub"===r){w(o,h),o.appendChild(f);var m=document.createElementNS(a.svg,"tspan");w(m,h),t.select(m).attr("dy",p[r]),i.dy=d[r],o.appendChild(f),o.appendChild(m)}else o.appendChild(f);t.select(f).attr(i),o=e.node=f,l.push(e)}function w(e,t){e.appendChild(document.createTextNode(t))}function S(e){if(1!==l.length){var t=l.pop();e!==t.type&&n.log("Start tag <"+t.type+"> doesnt match end tag <"+e+">. Pretending it did match.",r),o=l[l.length-1].node}else n.log("Ignoring unexpected end tag </"+e+">.",r)}var C=b.test(r);C?f():(o=e,l=[{node:e}]);for(var E=r.split(g),q=0;q<E.length;q++){var D=E[q],R=D.match(y),L=R&&R[2].toLowerCase(),I=u[L];if("br"===L)f();else if(void 0===I)w(o,k(D));else if(R[1])S(L);else{var W=R[4],N={type:L},P=_(W,v);if(P?(P=P.replace(A,"$1 fill:"),I&&(P+=";"+I)):I&&(P=I),P&&(N.style=P),"a"===L){s=!0;var B=_(W,M);if(B){var F=T(B);F&&(N.href=F,N.target=_(W,x)||"_blank",N.popup=_(W,z))}}O(N)}}return s}(f.node(),S);r&&f.style("pointer-events","all"),e.positionText(f),w&&w.call(f)}};var s=/(<|&lt;|&#60;)/g,l=/(>|&gt;|&#62;)/g;var c=[["$","$"],["\\(","\\)"]];var u={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},d={sub:"0.3em",sup:"-0.6em"},p={sub:"-0.21em",sup:"0.42em"},h="",f=["http:","https:","mailto:","",void 0,":"],m=e.NEWLINES=/(\r\n?|\n)/g,g=/(<[^<>]*>)/,y=/<(\/?)([^ >]*)(\s+(.*))?>/i,b=/<br(\s+.*)?>/i;e.BR_TAG_ALL=/<br(\s+.*)?>/gi;var v=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,M=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,x=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,z=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function _(e,t){if(!e)return null;var n=e.match(t),r=n&&(n[3]||n[4]);return r&&k(r)}var A=/(^|;)\s*color:/;e.plainText=function(e,t){for(var n=void 0!==(t=t||{}).len&&-1!==t.len?t.len:1/0,r=void 0!==t.allowedTags?t.allowedTags:["br"],a=e.split(g),i=[],o="",s=0,l=0;l<a.length;l++){var c=a[l],u=c.match(y),d=u&&u[2].toLowerCase();if(d)-1!==r.indexOf(d)&&(i.push(c),o=d);else{var p=c.length;if(s+p<n)i.push(c),s+=p;else if(s<n){var h=n-s;o&&("br"!==o||h<=3||p<=3)&&i.pop(),n>3?i.push(c.slice(0,Math.max(0,h-3))+"..."):i.push(c.slice(0,h));break}o=""}}return i.join("")};var O={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},w=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function k(e){return e.replace(w,function(e,t){var n;return n="#"===t.charAt(0)?function(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var n=String.fromCharCode;return e<=65535?n(e):n(55232+(e>>10),e%1024+56320)}}("x"===t.charAt(1)?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):O[t],n||e})}function T(e){var t=encodeURI(decodeURI(e)),n=document.createElement("a"),r=document.createElement("a");n.href=e,r.href=t;var a=n.protocol,i=r.protocol;return-1!==f.indexOf(a)&&-1!==f.indexOf(i)?t:""}function S(e,t,r){var a,i,o,s=r.horizontalAlign,l=r.verticalAlign||"top",c=e.node().getBoundingClientRect(),u=t.node().getBoundingClientRect();return i="bottom"===l?function(){return c.bottom-a.height}:"middle"===l?function(){return c.top+(c.height-a.height)/2}:function(){return c.top},o="right"===s?function(){return c.right-a.width}:"center"===s?function(){return c.left+(c.width-a.width)/2}:function(){return c.left},function(){a=this.node().getBoundingClientRect();var e=o()-u.left,t=i()-u.top,s=r.gd||{};if(r.gd){s._fullLayout._calcInverseTransform(s);var l=n.apply3DTransform(s._fullLayout._invTransform)(e,t);e=l[0],t=l[1]}return this.style({top:t+"px",left:e+"px","z-index":1e3}),this}}e.convertEntities=k,e.sanitizeHTML=function(e){e=e.replace(m," ");for(var n=document.createElement("p"),r=n,a=[],i=e.split(g),o=0;o<i.length;o++){var s=i[o],l=s.match(y),c=l&&l[2].toLowerCase();if(c in u)if(l[1])a.length&&(r=a.pop());else{var d=l[4],p=_(d,v),h=p?{style:p}:{};if("a"===c){var f=_(d,M);if(f){var b=T(f);if(b){h.href=b;var z=_(d,x);z&&(h.target=z)}}}var A=document.createElement(c);r.appendChild(A),t.select(A).attr(h),r=A,a.push(A)}else r.appendChild(document.createTextNode(k(s)))}return n.innerHTML},e.lineCount=function(e){return e.selectAll("tspan.line").size()||1},e.positionText=function(e,n,r){return e.each(function(){var e=t.select(this);function a(t,n){return void 0===n?null===(n=e.attr(t))&&(e.attr(t,0),n=0):e.attr(t,n),n}var i=a("x",n),o=a("y",r);"text"===this.nodeName&&e.selectAll("tspan.line").attr({x:i,y:o})})};var C="1px ";e.makeTextShadow=function(e){return C+C+C+e+", -"+C+"-"+C+C+e+", "+C+"-"+C+C+e+", -"+C+C+C+e},e.makeEditable=function(e,n){var r=n.gd,a=n.delegate,i=t.dispatch("edit","input","cancel"),o=a||e;if(e.style({"pointer-events":a?"none":"all"}),1!==e.size())throw new Error("boo");function s(){(function(){var a=t.select(r),o=a.select(".svg-container"),s=o.append("div"),c=e.node().style,u=parseFloat(c.fontSize||12),d=n.text;void 0===d&&(d=e.attr("data-unformatted")),s.classed("plugin-editable editable",!0).style({position:"absolute","font-family":c.fontFamily||"Arial","font-size":u,color:n.fill||c.fill||"black",opacity:1,"background-color":n.background||"transparent",outline:"#ffffff33 1px solid",margin:[-u/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(d).call(S(e,o,n)).on("blur",function(){r._editing=!1,e.text(this.textContent).style({opacity:1});var n,a=t.select(this).attr("class");(n=a?"."+a.split(" ")[0]+"-math-group":"[class*=-math-group]")&&t.select(e.node().parentNode).select(n).style({opacity:0});var o=this.textContent;t.select(this).transition().duration(0).remove(),t.select(document).on("mouseup",null),i.edit.call(e,o)}).on("focus",function(){var e=this;r._editing=!0,t.select(document).on("mouseup",function(){if(t.event.target===e)return!1;document.activeElement===s.node()&&s.node().blur()})}).on("keyup",function(){27===t.event.which?(r._editing=!1,e.style({opacity:1}),t.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),i.cancel.call(e,this.textContent)):(i.input.call(e,this.textContent),t.select(this).call(S(e,o,n)))}).on("keydown",function(){13===t.event.which&&this.blur()}).call(l)})(),e.style({opacity:0});var a,s=o.attr("class");(a=s?"."+s.split(" ")[0]+"-math-group":"[class*=-math-group]")&&t.select(e.node().parentNode).select(a).style({opacity:0})}function l(e){var t=e.node(),n=document.createRange();n.selectNodeContents(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(n),t.focus()}return n.immediate?s():o.on("click",s),t.rebind(e,i,"on")}}),d2=Ee((e,t)=>{var n=mo(),r=Vh(),a=xs(),i=Fr(),o=ao(),s=nw().isValid;var l=["showscale","autocolorscale","colorscale","reversescale","colorbar"],c=["min","max","mid","auto"];function u(e){var t,n,r,a=e._colorAx,i=a||e,o={};for(n=0;n<l.length;n++)o[r=l[n]]=i[r];if(a)for(t="c",n=0;n<c.length;n++)o[r=c[n]]=i["c"+r];else{var s;for(n=0;n<c.length;n++)((s="c"+(r=c[n]))in i||(s="z"+r)in i)&&(o[r]=i[s]);t=s.charAt(0)}return o._sync=function(e,n){var r=-1!==c.indexOf(e)?t+e:e;i[r]=i["_"+r]=n},o}function d(e){for(var t=u(e),n=t.min,r=t.max,a=t.reversescale?p(t.colorscale):t.colorscale,i=a.length,o=new Array(i),s=new Array(i),l=0;l<i;l++){var c=a[l];o[l]=n+c[0]*(r-n),s[l]=c[1]}return{domain:o,range:s}}function p(e){for(var t=e.length,n=new Array(t),r=t-1,a=0;r>=0;r--,a++){var i=e[r];n[a]=[1-i[0],i[1]]}return n}function h(e,t){t=t||{};for(var i=e.domain,s=e.range,l=s.length,c=new Array(l),u=0;u<l;u++){var d=r(s[u]).toRgb();c[u]=[d.r,d.g,d.b,d.a]}var p,h=n.scale.linear().domain(i).range(c).clamp(!0),m=t.noNumericCheck,g=t.returnArray;return(p=m&&g?h:m?function(e){return f(h(e))}:g?function(e){return a(e)?h(e):r(e).isValid()?e:o.defaultLine}:function(e){return a(e)?f(h(e)):r(e).isValid()?e:o.defaultLine}).domain=h.domain,p.range=function(){return s},p}function f(e){var t={r:e[0],g:e[1],b:e[2],a:e[3]};return r(t).toRgbString()}t.exports={hasColorscale:function(e,t,n){var r=t?i.nestedProperty(e,t).get()||{}:e,o=r[n||"color"];o&&o._inputArray&&(o=o._inputArray);var l=!1;if(i.isArrayOrTypedArray(o))for(var c=0;c<o.length;c++)if(a(o[c])){l=!0;break}return i.isPlainObject(r)&&(l||!0===r.showscale||a(r.cmin)&&a(r.cmax)||s(r.colorscale)||i.isPlainObject(r.colorbar))},extractOpts:u,extractScale:d,flipScale:p,makeColorScaleFunc:h,makeColorScaleFuncFromTrace:function(e,t){return h(d(e),t)}}}),Pd=Ee((e,t)=>{var n=Koe(),r=n.FORMAT_LINK,a=n.DATE_FORMAT_LINK;function i(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+r+"."].join(" ")}function o(e,t){return i(e,t)+[" And for dates see: "+a+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}t.exports={axisHoverFormat:function(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?i:o)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}},descriptionOnlyNumbers:i,descriptionWithDates:o}}),vp=Ee((e,t)=>{var n=Mu(),r=oh(),a=pp().dash,i=ms().extendFlat,o=Kl().templatedArray,s=p1().templateFormatStringDescription,l=Pd().descriptionWithDates,c=T0().ONEDAY,u=sh(),d=u.HOUR_PATTERN,p=u.WEEKDAY_PATTERN,h={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0},description:["Sets the tick mode for this axis.","If *auto*, the number of ticks is set via `nticks`.","If *linear*, the placement of the ticks is determined by","a starting position `tick0` and a tick step `dtick`","(*linear* is the default value if `tick0` and `dtick` are provided).","If *array*, the placement of the ticks is set via `tickvals`","and the tick text is `ticktext`.","(*array* is the default value if `tickvals` is provided)."].join(" ")},f=i({},h,{values:h.values.slice().concat(["sync"]),description:[h.description,"If *sync*, the number of ticks will sync with the overlayed axis","set by `overlaying` property."].join(" ")});function m(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks",description:["Specifies the maximum number of ticks for the particular axis.","The actual number of ticks will be chosen automatically to be","less than or equal to `nticks`.","Has an effect only if `tickmode` is set to *auto*."].join(" ")}}var g={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"},description:["Sets the placement of the first tick on this axis.","Use with `dtick`.","If the axis `type` is *log*, then you must take the log of your starting tick","(e.g. to set the starting tick to 100, set the `tick0` to 2)","except when `dtick`=*L<f>* (see `dtick` for more info).","If the axis `type` is *date*, it should be a date string, like date data.","If the axis `type` is *category*, it should be a number, using the scale where","each category is assigned a serial number from zero in the order it appears."].join(" ")},y={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"},description:["Sets the step in-between ticks on this axis. Use with `tick0`.","Must be a positive number, or special strings available to *log* and *date* axes.","If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n","is the tick number. For example,","to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1.","To set tick marks at 1, 100, 10000, ... set dtick to 2.","To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433.","*log* has several special values; *L<f>*, where `f` is a positive number,","gives ticks linearly spaced in value (but not position).","For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc.","To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5).","`tick0` is ignored for *D1* and *D2*.","If the axis `type` is *date*, then you must convert the time to milliseconds.","For example, to set the interval between ticks to one day,","set `dtick` to 86400000.0.","*date* also has special values *M<n>* gives ticks spaced by a number of months.","`n` must be a positive integer.","To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*.","To set ticks every 4 years, set `dtick` to *M48*"].join(" ")},b={valType:"data_array",editType:"ticks",description:["Sets the values at which ticks on this axis appear.","Only has an effect if `tickmode` is set to *array*.","Used with `ticktext`."].join(" ")},v={valType:"enumerated",values:["outside","inside",""],editType:"ticks",description:["Determines whether ticks are drawn or not.","If **, this axis' ticks are not drawn.","If *outside* (*inside*), this axis' are drawn outside (inside)","the axis lines."].join(" ")};function M(e){var t={valType:"number",min:0,editType:"ticks",description:"Sets the tick length (in px)."};return e||(t.dflt=5),t}function x(e){var t={valType:"number",min:0,editType:"ticks",description:"Sets the tick width (in px)."};return e||(t.dflt=1),t}var z={valType:"color",dflt:r.defaultLine,editType:"ticks",description:"Sets the tick color."},_={valType:"color",dflt:r.lightLine,editType:"ticks",description:"Sets the color of the grid lines."};function A(e){var t={valType:"number",min:0,editType:"ticks",description:"Sets the width (in px) of the grid lines."};return e||(t.dflt=1),t}var O=i({},a,{editType:"ticks"}),w={valType:"boolean",editType:"ticks",description:["Determines whether or not grid lines are drawn.","If *true*, the grid lines are drawn at every tick mark."].join(" ")};t.exports={visible:{valType:"boolean",editType:"plot",description:["A single toggle to hide the axis while preserving interaction like dragging.","Default is true when a cheater plot is present on the axis, otherwise","false"].join(" ")},color:{valType:"color",dflt:r.defaultLine,editType:"ticks",description:["Sets default for all colors associated with this axis","all at once: line, font, tick, and grid colors.","Grid color is lightened by blending this with the plot background","Individual pieces can override this."].join(" ")},title:{text:{valType:"string",editType:"ticks",description:"Sets the title of this axis."},font:n({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks",description:["Sets the standoff distance (in px) between the axis labels and the title text","The default value is a function of the axis tick labels, the title `font.size`","and the axis `linewidth`.","Note that the axis title position is always constrained within the margins,","so the actual standoff distance is always less than the set or default value.","By setting `standoff` and turning on `automargin`, plotly.js will push the","margins to fit the axis title at given standoff distance."].join(" ")},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0,description:["Sets the axis type.","By default, plotly attempts to determined the axis type","by looking into the data of the traces that referenced","the axis in question."].join(" ")},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc",description:["Using *strict* a numeric string in trace data is not converted to a number.","Using *convert types* a numeric string in trace data may be","treated as a number during automatic axis `type` detection.","Defaults to layout.autotypenumbers."].join(" ")},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Determines whether or not the range of this axis is","computed in relation to the input data.","See `rangemode` for more info.","If `range` is provided and it has a value for both the","lower and upper bound, `autorange` is set to *false*.","Using *min* applies autorange only to set the minimum.","Using *max* applies autorange only to set the maximum.","Using *min reversed* applies autorange only to set the minimum on a reversed axis.","Using *max reversed* applies autorange only to set the maximum on a reversed axis.","Using *reversed* applies autorange on both ends and reverses the axis direction."].join(" ")},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Use this value exactly as autorange minimum."].join(" ")},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Use this value exactly as autorange maximum."].join(" ")},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Clip autorange minimum if it goes beyond this value.","Has no effect when `autorangeoptions.minallowed` is provided."].join(" ")},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Clip autorange maximum if it goes beyond this value.","Has no effect when `autorangeoptions.maxallowed` is provided."].join(" ")},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Ensure this value is included in autorange."].join(" ")},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot",description:["If *normal*, the range is computed in relation to the extrema","of the input data.","If *tozero*, the range extends to 0,","regardless of the input data","If *nonnegative*, the range is non-negative,","regardless of the input data.","Applies only to linear axes."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0,description:["Sets the range of this axis.","If the axis `type` is *log*, then you must take the log of your","desired range (e.g. to set the range from 1 to 100,","set the range from 0 to 2).","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears.","Leaving either or both elements `null` impacts the default `autorange`."].join(" ")},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1},description:["Determines the minimum range of this axis."].join(" ")},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1},description:["Determines the maximum range of this axis."].join(" ")},fixedrange:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not this axis is zoom-able.","If true, then zoom is disabled."].join(" ")},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar",description:["Disables certain modebar buttons for this axis.","*autoscale* disables the autoscale buttons, *zoominout*","disables the zoom-in and zoom-out buttons."].join(" ")},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot",description:["Could be used to set the desired inside range of this axis","(excluding the labels) when `ticklabelposition` of","the anchored axis has *inside*.","Not implemented for axes with `type` *log*.","This would be ignored when `range` is provided."].join(" ")},scaleanchor:{valType:"enumerated",values:[u.idRegex.x.toString(),u.idRegex.y.toString(),!1],editType:"plot",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","changes together with the range of the corresponding axis","such that the scale of pixels per unit is in a constant ratio.","Both axes are still zoomable, but when you zoom one, the other will","zoom the same amount, keeping a fixed midpoint.","`constrain` and `constraintoward` determine how we enforce the constraint.","You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}`","but you can only link axes of the same `type`.","The linked axis can have the opposite letter (to constrain the aspect ratio)","or the same letter (to match scales across subplots).","Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant","and the last constraint encountered will be ignored to avoid possible","inconsistent constraints via `scaleratio`.","Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint","is currently forbidden.","Setting `false` allows to remove a default constraint (occasionally,","you may need to prevent a default `scaleanchor` constraint from",'being applied, eg. when having an image trace `yaxis: {scaleanchor: "x"}`',"is set automatically in order for pixels to be rendered as squares,","setting `yaxis: {scaleanchor: false}` allows to remove the constraint)."].join(" ")},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot",description:["If this axis is linked to another by `scaleanchor`, this determines the pixel","to unit scale ratio. For example, if this value is 10, then every unit on","this axis spans 10 times the number of pixels as a unit on the linked axis.","Use this for example to create an elevation profile where the vertical scale","is exaggerated a fixed amount with respect to the horizontal."].join(" ")},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines how that happens:","by increasing the *range*, or by decreasing the *domain*.","Default is *domain* for axes containing image traces, *range* otherwise."].join(" ")},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines which direction we push","the originally specified plot area. Options are *left*, *center* (default),","and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes."].join(" ")},matches:{valType:"enumerated",values:[u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"calc",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","will match the range of the corresponding axis in data-coordinates space.","Moreover, matching axes share auto-range values, category lists and","histogram auto-bins.","Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint","is currently forbidden.","Moreover, note that matching axes must have the same `type`."].join(" ")},rangebreaks:o("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether this axis rangebreak is enabled or disabled.","Please note that `rangebreaks` only work for *date* axis type."].join(" ")},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc",description:["Sets the lower and upper bounds of this axis rangebreak.","Can be used with `pattern`."].join(" ")},pattern:{valType:"enumerated",values:[p,d,""],editType:"calc",description:["Determines a pattern on the time line that generates breaks.","If *"+p+"* - days of the week in English e.g. 'Sunday' or `sun`","(matching is case-insensitive and considers only the first three characters),","as well as Sunday-based integers between 0 and 6.","If *"+d+"* - hour (24-hour clock) as decimal numbers between 0 and 24.","for more info.","Examples:","- { pattern: '"+p+"', bounds: [6, 1] }"," or simply { bounds: ['sat', 'mon'] }"," breaks from Saturday to Monday (i.e. skips the weekends).","- { pattern: '"+d+"', bounds: [17, 8] }"," breaks from 5pm to 8am (i.e. skips non-work hours)."].join(" ")},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"},description:["Sets the coordinate values corresponding to the rangebreaks.","An alternative to `bounds`.","Use `dvalue` to set the size of the values along the axis."].join(" ")},dvalue:{valType:"number",editType:"calc",min:0,dflt:c,description:["Sets the size of each `values` item.","The default is one day in milliseconds."].join(" ")},editType:"calc"}),tickmode:f,nticks:m(),tick0:g,dtick:y,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks",description:["Sets the spacing between tick labels as compared to the spacing between ticks.","A value of 1 (default) means each tick gets a label.","A value of 2 means shows every 2nd label.","A larger value n means only every nth tick is labeled.","`tick0` determines which labels are shown.","Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*."].join(" ")},tickvals:b,ticktext:{valType:"data_array",editType:"ticks",description:["Sets the text displayed at the ticks position via `tickvals`.","Only has an effect if `tickmode` is set to *array*.","Used with `tickvals`."].join(" ")},ticks:v,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks",description:["Determines where ticks and grid lines are drawn with respect to their","corresponding tick labels.","Only has an effect for axes of `type` *category* or *multicategory*.","When set to *boundaries*, ticks and grid lines are drawn half a category","to the left/bottom of labels."].join(" ")},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks",description:["Determines where tick labels are drawn with respect to their","corresponding ticks and grid lines.","Only has an effect for axes of `type` *date*","When set to *period*, tick labels are drawn in the middle of the period","between ticks."].join(" ")},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc",description:["Determines where tick labels are drawn with respect to the axis.","Please note that","top or bottom has no effect on x axes or when `ticklabelmode` is set to *period*","or when `tickson` is set to *boundaries*. Similarly,","left or right has no effect on y axes or when `ticklabelmode` is set to *period*","or when `tickson` is set to *boundaries*.","Has no effect on *multicategory* axes.","When used on axes linked by `matches` or `scaleanchor`,","no extra padding for inside labels would be added by autorange,","so that the scales could match."].join(" ")},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc",description:["Determines how we handle tick labels that would overflow either the graph div or the domain of the axis.","The default value for inside tick labels is *hide past domain*.","Otherwise on *category* and *multicategory* axes the default is *allow*.","In other cases the default is *hide past div*."].join(" ")},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks",description:["Shifts the tick labels by the specified number of pixels in parallel to the axis.","Positive values move the labels in the positive direction of the axis."].join(" ")},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks",description:["Sets the standoff distance (in px) between the axis tick labels and their default position.","A positive `ticklabelstandoff` moves the labels farther away from the plot area","if `ticklabelposition` is *outside*, and deeper into the plot area if","`ticklabelposition` is *inside*. A negative `ticklabelstandoff` works in the opposite","direction, moving outside ticks towards the plot area and inside ticks towards","the outside. If the negative value is large enough, inside ticks can even end up","outside and vice versa."].join(" ")},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc",description:["Only for axes with `type` *date* or *linear*.","Instead of drawing the major tick label, draw the label for the minor tick","that is n positions away from the major tick. E.g. to always draw the label for the","minor tick before each major tick, choose `ticklabelindex` -1. This is useful for date","axes with `ticklabelmode` *period* if you want to label the period that ends with each","major tick instead of the period that begins there."].join(" ")},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle",description:["Determines if the axis lines or/and ticks are mirrored to","the opposite side of the plotting area.","If *true*, the axis lines are mirrored.","If *ticks*, the axis lines and ticks are mirrored.","If *false*, mirroring is disable.","If *all*, axis lines are mirrored on all shared-axes subplots.","If *allticks*, axis lines and ticks are mirrored","on all shared-axes subplots."].join(" ")},ticklen:M(),tickwidth:x(),tickcolor:z,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks",description:"Determines whether or not the tick labels are drawn."},labelalias:{valType:"any",dflt:!1,editType:"ticks",description:["Replacement text for specific tick or hover labels.","For example using {US: 'USA', CA: 'Canada'} changes US to USA","and CA to Canada. The labels we would have shown must match","the keys exactly, after adding any tickprefix or ticksuffix.","For negative numbers the minus sign symbol used (U+2212) is wider than the regular ascii dash.","That means you need to use 1 instead of -1.","labelalias can be used with any axis type, and both keys (if needed)","and values (if desired) can include html-like tags or MathJax."].join(" ")},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks",description:["Determines whether long tick labels automatically grow the figure","margins."].join(" ")},showspikes:{valType:"boolean",dflt:!1,editType:"modebar",description:["Determines whether or not spikes (aka droplines) are drawn for this axis.","Note: This only takes affect when hovermode = closest"].join(" ")},spikecolor:{valType:"color",dflt:null,editType:"none",description:"Sets the spike color. If undefined, will use the series color"},spikethickness:{valType:"number",dflt:3,editType:"none",description:"Sets the width (in px) of the zero line."},spikedash:i({},a,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none",description:["Determines the drawing mode for the spike line","If *toaxis*, the line is drawn from the data point to the axis the ","series is plotted on.","If *across*, the line is drawn across the entire plot area, and","supercedes *toaxis*.","If *marker*, then a marker dot is drawn on the axis the series is","plotted on"].join(" ")},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none",description:"Determines whether spikelines are stuck to the cursor or to the closest datapoints."},tickfont:n({editType:"ticks",description:"Sets the tick font."}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks",description:["Sets the angle of the tick labels with respect to the horizontal.","For example, a `tickangle` of -90 draws the tick labels","vertically."].join(" ")},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks",description:["When `tickangle` is set to *auto*, it will be set to the first","angle in this array that is large enough to prevent label","overlap."].join(" ")},tickprefix:{valType:"string",dflt:"",editType:"ticks",description:"Sets a tick label prefix."},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:["If *all*, all tick labels are displayed with a prefix.","If *first*, only the first tick is displayed with a prefix.","If *last*, only the last tick is displayed with a suffix.","If *none*, tick prefixes are hidden."].join(" ")},ticksuffix:{valType:"string",dflt:"",editType:"ticks",description:"Sets a tick label suffix."},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:"Same as `showtickprefix` but for tick suffixes."},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks",description:["If *all*, all exponents are shown besides their significands.","If *first*, only the exponent of the first tick is shown.","If *last*, only the exponent of the last tick is shown.","If *none*, no exponents appear."].join(" ")},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks",description:["Determines a formatting rule for the tick exponents.","For example, consider the number 1,000,000,000.","If *none*, it appears as 1,000,000,000.","If *e*, 1e+9.","If *E*, 1E+9.","If *power*, 1x10^9 (with 9 in a super script).","If *SI*, 1G.","If *B*, 1B.",'*SI* uses prefixes from "femto" f (10^-15) to "tera" T (10^12).','*SI extended* covers instead the full SI range from "quecto" q (10^-30) to "quetta" Q (10^30).',"If *SI* or *SI extended* is used and the exponent is beyond the above ranges, the formatting rule","will automatically be switched to the power notation."].join(" ")},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks",description:["Hide SI prefix for 10^n if |n| is below this number.","This only has an effect when `tickformat` is *SI* or *B*."].join(" ")},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks",description:['If "true", even 4-digit integers are separated'].join(" ")},tickformat:{valType:"string",dflt:"",editType:"ticks",description:l("tick label")},tickformatstops:o("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks",description:["Determines whether or not this stop is used.","If `false`, this stop is ignored even within its `dtickrange`."].join(" ")},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks",description:["range [*min*, *max*], where *min*, *max* - dtick values","which describe some zoom level, it is possible to omit *min*","or *max* value by passing *null*"].join(" ")},value:{valType:"string",dflt:"",editType:"ticks",description:["string - dtickformat for described zoom level, the same as *tickformat*"].join(" ")},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:l("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none",description:["Template string used for rendering the title that appear on x or y unified hover box.",s()].join(" ")},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle",description:["Determines whether or not a line bounding this axis is drawn."].join(" ")},linecolor:{valType:"color",dflt:r.defaultLine,editType:"layoutstyle",description:"Sets the axis line color."},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle",description:"Sets the width (in px) of the axis line."},showgrid:w,gridcolor:_,gridwidth:A(),griddash:O,zeroline:{valType:"boolean",editType:"ticks",description:["Determines whether or not a line is drawn at along the 0 value","of this axis.","If *true*, the zero line is drawn on top of the grid lines."].join(" ")},zerolinecolor:{valType:"color",dflt:r.defaultLine,editType:"ticks",description:"Sets the line color of the zero line."},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot",description:["Sets the layer on which this zeroline is displayed.","If *above traces*, this zeroline is displayed above all the subplot's traces","If *below traces*, this zeroline is displayed below all the subplot's traces,","but above the grid lines. Limitation: *zerolinelayer* currently has no effect","if the *zorder* property is set on any trace."].join(" ")},zerolinewidth:{valType:"number",dflt:1,editType:"ticks",description:"Sets the width (in px) of the zero line."},showdividers:{valType:"boolean",dflt:!0,editType:"ticks",description:["Determines whether or not a dividers are drawn","between the category levels of this axis.","Only has an effect on *multicategory* axes."].join(" ")},dividercolor:{valType:"color",dflt:r.defaultLine,editType:"ticks",description:["Sets the color of the dividers","Only has an effect on *multicategory* axes."].join(" ")},dividerwidth:{valType:"number",dflt:1,editType:"ticks",description:["Sets the width (in px) of the dividers","Only has an effect on *multicategory* axes."].join(" ")},anchor:{valType:"enumerated",values:["free",u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"plot",description:["If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to","the corresponding opposite-letter axis.","If set to *free*, this axis' position is determined by `position`."].join(" ")},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot",description:["Determines whether a x (y) axis is positioned","at the *bottom* (*left*) or *top* (*right*)","of the plotting area."].join(" ")},overlaying:{valType:"enumerated",values:["free",u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"plot",description:["If set a same-letter axis id, this axis is overlaid on top of","the corresponding same-letter axis, with traces and axes visible for both","axes.","If *false*, this axis does not overlay any same-letter axes.","In this case, for axes with overlapping domains only the highest-numbered","axis will be visible."].join(" ")},minor:{tickmode:h,nticks:m("minor"),tick0:g,dtick:y,tickvals:b,ticks:v,ticklen:M("minor"),tickwidth:x("minor"),tickcolor:z,gridcolor:_,gridwidth:A("minor"),griddash:O,showgrid:w,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc",description:["Determines how minor log labels are displayed.","If *small digits*, small digits i.e. 2 or 5 are displayed.","If *complete*, complete digits are displayed.","If *none*, no labels are displayed."].join(" ")},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot",description:["Sets the layer on which this axis is displayed.","If *above traces*, this axis is displayed above all the subplot's traces","If *below traces*, this axis is displayed below all the subplot's traces,","but above the grid lines.","Useful when used together with scatter-like traces with `cliponaxis`","set to *false* to show markers and/or text nodes above this axis."].join(" ")},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot",description:["Sets the domain of this axis (in plot fraction)."].join(" ")},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot",description:["Sets the position of this axis in the plotting space","(in normalized coordinates).","Only has an effect if `anchor` is set to *free*."].join(" ")},autoshift:{valType:"boolean",dflt:!1,editType:"plot",description:["Automatically reposition the axis to avoid","overlap with other axes with the same `overlaying` value.","This repositioning will account for any `shift` amount applied to other","axes on the same side with `autoshift` is set to true.","Only has an effect if `anchor` is set to *free*."].join(" ")},shift:{valType:"number",editType:"plot",description:["Moves the axis a given number of pixels from where it would have been otherwise.","Accepts both positive and negative values, which will shift the axis either right","or left, respectively.","If `autoshift` is set to true, then this defaults to a padding of -3 if `side` is set to *left*.","and defaults to +3 if `side` is set to *right*. Defaults to 0 if `autoshift` is set to false.","Only has an effect if `anchor` is set to *free*."].join(" ")},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc",description:["Specifies the ordering logic for the case of categorical variables.","By default, plotly uses *trace*, which specifies the order that is present in the data supplied.","Set `categoryorder` to *category ascending* or *category descending* if order should be determined by","the alphanumerical order of the category names.","Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category","is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to","the *trace* mode. The unspecified categories will follow the categories in `categoryarray`.","Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the","numerical order of the values.","Similarly, the order can be determined by the min, max, sum, mean, geometric mean or median of all the values."].join(" ")},categoryarray:{valType:"data_array",editType:"calc",description:["Sets the order in which categories on this axis appear.","Only has an effect if `categoryorder` is set to *array*.","Used with `categoryorder`."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in axis `range`,","`autorange`, and `title` if in `editable: true` configuration.","Defaults to `layout.uirevision`."].join(" ")},editType:"calc"}}),kH=Ee((e,t)=>{var n=vp(),r=Mu(),a=ms().extendFlat,i=Wu().overrideAll;t.exports=i({orientation:{valType:"enumerated",values:["h","v"],dflt:"v",description:"Sets the orientation of the colorbar."},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",description:["Determines whether this color bar's thickness","(i.e. the measure in the constant color direction)","is set in units of plot *fraction* or in *pixels*.","Use `thickness` to set the value."].join(" ")},thickness:{valType:"number",min:0,dflt:30,description:["Sets the thickness of the color bar","This measure excludes the size of the padding, ticks and labels."].join(" ")},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction",description:["Determines whether this color bar's length","(i.e. the measure in the color variation direction)","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,description:["Sets the length of the color bar","This measure excludes the padding of both ends.","That is, the color bar length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",description:["Sets the x position with respect to `xref` of the color bar (in plot fraction).","When `xref` is *paper*, defaults to 1.02 when `orientation` is *v* and","0.5 when `orientation` is *h*.","When `xref` is *container*, defaults to *1* when `orientation` is *v* and","0.5 when `orientation` is *h*.","Must be between *0* and *1* if `xref` is *container*","and between *-2* and *3* if `xref` is *paper*."].join(" ")},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `x` refers to.","*container* spans the entire `width` of the plot.","*paper* refers to the width of the plotting area only."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],description:["Sets this color bar's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the color bar.","Defaults to *left* when `orientation` is *v* and","*center* when `orientation` is *h*."].join(" ")},xpad:{valType:"number",min:0,dflt:10,description:"Sets the amount of padding (in px) along the x direction."},y:{valType:"number",description:["Sets the y position with respect to `yref` of the color bar (in plot fraction).","When `yref` is *paper*, defaults to 0.5 when `orientation` is *v* and","1.02 when `orientation` is *h*.","When `yref` is *container*, defaults to 0.5 when `orientation` is *v* and","1 when `orientation` is *h*.","Must be between *0* and *1* if `yref` is *container*","and between *-2* and *3* if `yref` is *paper*."].join(" ")},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `y` refers to.","*container* spans the entire `height` of the plot.","*paper* refers to the height of the plotting area only."].join(" ")},yanchor:{valType:"enumerated",values:["top","middle","bottom"],description:["Sets this color bar's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the color bar.","Defaults to *middle* when `orientation` is *v* and","*bottom* when `orientation` is *h*."].join(" ")},ypad:{valType:"number",min:0,dflt:10,description:"Sets the amount of padding (in px) along the y direction."},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:"number",min:0,dflt:0,description:["Sets the width (in px) or the border enclosing this color bar."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",description:"Sets the color of padded area."},tickmode:n.minor.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:a({},n.ticks,{dflt:""}),ticklabeloverflow:a({},n.ticklabeloverflow,{description:["Determines how we handle tick labels that would overflow either the graph div or the domain of the axis.","The default value for inside tick labels is *hide past domain*.","In other cases the default is *hide past div*."].join(" ")}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",description:["Determines where tick labels are drawn relative to the ticks.","Left and right options are used when `orientation` is *h*,","top and bottom when `orientation` is *v*."].join(" ")},ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,ticklabelstep:n.ticklabelstep,showticklabels:n.showticklabels,labelalias:n.labelalias,tickfont:r({description:"Sets the color bar's tick label font"}),tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,minexponent:n.minexponent,showexponent:n.showexponent,title:{text:{valType:"string",description:"Sets the title of the color bar."},font:r({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"],description:["Determines the location of color bar's title","with respect to the color bar.","Defaults to *top* when `orientation` if *v* and ","defaults to *right* when `orientation` if *h*."].join(" ")}}},"colorbars","from-root")}),Oc=Ee((e,t)=>{var n=kH(),r=N8().counter,a=qz(),i=nw().scales,o=a(i);function s(e){return"`"+e+"`"}t.exports=function(e,t){e=e||"";var a,l,c=(t=t||{}).cLetter||"c",u="onlyIfNumerical"in t?t.onlyIfNumerical:!!e,d="noScale"in t?t.noScale:"marker.line"===e,p="showScaleDflt"in t?t.showScaleDflt:"z"===c,h="string"==typeof t.colorscaleDflt?i[t.colorscaleDflt]:null,f=t.editTypeOverride||"",m=e?e+".":"";"colorAttr"in t?(a=t.colorAttr,l=t.colorAttr):l="in "+s(m+(a={z:"z",c:"color"}[c]));var g=u?" Has an effect only if "+l+" is set to a numerical array.":"",y=c+"auto",b=c+"min",v=c+"max",M=c+"mid",x=s(m+y),z=s(m+b),_=s(m+v),A=z+" and "+_,O={};O[b]=O[v]=void 0;var w={};w[y]=!1;var k={};return"color"===a&&(k.color={valType:"color",arrayOk:!0,editType:f||"style",description:["Sets the",e,"color.","It accepts either a specific color","or an array of numbers that are mapped to the colorscale","relative to the max and min values of the array or relative to",A,"if set."].join(" ")},t.anim&&(k.color.anim=!0)),k[y]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:O,description:["Determines whether or not the color domain is computed","with respect to the input data (here "+l+") or the bounds set in",A+g,"Defaults to `false` when",A,"are set by the user."].join(" ")},k[b]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:w,description:["Sets the lower bound of the color domain."+g,"Value should have the same units as",l,"and if set,",_,"must be set as well."].join(" ")},k[v]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:w,description:["Sets the upper bound of the color domain."+g,"Value should have the same units as",l,"and if set,",z,"must be set as well."].join(" ")},k[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:O,description:["Sets the mid-point of the color domain by scaling",z,"and/or",_,"to be equidistant to this point."+g,"Value should have the same units as",l+".","Has no effect when",x,"is `false`."].join(" ")},k.colorscale={valType:"colorscale",editType:"calc",dflt:h,impliedEdits:{autocolorscale:!1},description:["Sets the colorscale."+g,"The colorscale must be an array containing","arrays mapping a normalized value to an","rgb, rgba, hex, hsl, hsv, or named color string.","At minimum, a mapping for the lowest (0) and highest (1)","values are required. For example,","`[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.","To control the bounds of the colorscale in color space,","use",A+".","Alternatively, `colorscale` may be a palette name string","of the following list: "+o+"."].join(" ")},k.autocolorscale={valType:"boolean",dflt:!1!==t.autoColorDflt,editType:"calc",impliedEdits:{colorscale:void 0},description:["Determines whether the colorscale is a default palette (`autocolorscale: true`)","or the palette determined by",s(m+"colorscale")+"."+g,"In case `colorscale` is unspecified or `autocolorscale` is true, the default","palette will be chosen according to whether numbers in the `color` array are","all positive, all negative or mixed."].join(" ")},k.reversescale={valType:"boolean",dflt:!1,editType:"plot",description:["Reverses the color mapping if true."+g,"If true,",z,"will correspond to the last color","in the array and",_,"will correspond to the first color."].join(" ")},d||(k.showscale={valType:"boolean",dflt:p,editType:"calc",description:["Determines whether or not a colorbar is displayed for this trace."+g].join(" ")},k.colorbar=n),t.noColorAxis||(k.coloraxis={valType:"subplotid",regex:r("coloraxis"),dflt:null,editType:"calc",description:["Sets a reference to a shared color axis.","References to these shared color axes are *coloraxis*, *coloraxis2*, *coloraxis3*, etc.","Settings for these shared color axes are set in the layout, under","`layout.coloraxis`, `layout.coloraxis2`, etc.","Note that multiple color scales can be linked to the same color axis."].join(" ")}),k}}),Ise=Ee((e,t)=>{var n=ms().extendFlat,r=Oc(),a=nw().scales,i="Note that `autocolorscale` must be true for this attribute to work.";t.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:a.Reds,editType:"calc",description:["Sets the default sequential colorscale for positive values.",i].join(" ")},sequentialminus:{valType:"colorscale",dflt:a.Blues,editType:"calc",description:["Sets the default sequential colorscale for negative values.",i].join(" ")},diverging:{valType:"colorscale",dflt:a.RdBu,editType:"calc",description:["Sets the default diverging colorscale.",i].join(" ")}},coloraxis:n({_isSubplotObj:!0,editType:"calc",description:[""].join(" ")},r("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}}),Nse=Ee((e,t)=>{var n=Fr();t.exports=function(e){return n.isPlainObject(e.colorbar)}}),Bse=Ee(e=>{var t=xs(),n=Fr(),r=T0(),a=r.ONEDAY,i=r.ONEWEEK;e.dtick=function(e,n){var r="log"===n,i="date"===n,o="category"===n,s=i?a:1;if(!e)return s;if(t(e))return(e=Number(e))<=0?s:o?Math.max(1,Math.round(e)):i?Math.max(.1,e):e;if("string"!=typeof e||!i&&!r)return s;var l=e.charAt(0),c=e.slice(1);return(c=t(c)?Number(c):0)<=0||!(i&&"M"===l&&c===Math.round(c)||r&&"L"===l||r&&"D"===l&&(1===c||2===c))?s:e},e.tick0=function(e,r,a,o){return"date"===r?n.cleanDate(e,n.dateTick0(a,o%i===0?1:0)):"D1"!==o&&"D2"!==o?t(e)?Number(e):0:void 0}}),mw=Ee((e,t)=>{var n=Bse(),r=Fr().isArrayOrTypedArray,a=Lp().isTypedArraySpec,i=Lp().decodeTypedArraySpec;t.exports=function(e,t,o,s,l){l||(l={});var c=l.isMinor,u=c?e.minor||{}:e,d=c?t.minor:t,p=c?"minor.":"";function h(e){var t=u[e];return a(t)&&(t=i(t)),void 0!==t?t:(d._template||{})[e]}var f=h("tick0"),m=h("dtick"),g=h("tickvals"),y=o(p+"tickmode",r(g)?"array":m?"linear":"auto");if("auto"===y||"sync"===y)o(p+"nticks");else if("linear"===y){var b=d.dtick=n.dtick(m,s);d.tick0=n.tick0(f,s,t.calendar,b)}else if("multicategory"!==s){void 0===o(p+"tickvals")?d.tickmode="auto":c||o("ticktext")}}}),nS=Ee((e,t)=>{var n=Fr(),r=vp();t.exports=function(e,t,a,i){var o=i.isMinor,s=o?e.minor||{}:e,l=o?t.minor:t,c=o?r.minor:r,u=o?"minor.":"",d=n.coerce2(s,l,c,"ticklen",o?.6*(t.ticklen||5):void 0),p=n.coerce2(s,l,c,"tickwidth",o?t.tickwidth||1:void 0),h=n.coerce2(s,l,c,"tickcolor",(o?t.tickcolor:void 0)||l.color);a(u+"ticks",!o&&i.outerTicks||d||p||h?"outside":"")||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}}),Hse=Ee((e,t)=>{t.exports=function(e){var t=["showexponent","showtickprefix","showticksuffix"].filter(function(t){return void 0!==e[t]});if(t.every(function(n){return e[n]===e[t[0]]})||1===t.length)return e[t[0]]}}),Pp=Ee((e,t)=>{var n=Fr(),r=Kl();t.exports=function(e,t,a){var i,o,s=a.name,l=a.inclusionAttr||"visible",c=t[s],u=n.isArrayOrTypedArray(e[s])?e[s]:[],d=t[s]=[],p=r.arrayTemplater(t,s,l);for(i=0;i<u.length;i++){var h=u[i];n.isPlainObject(h)?o=p.newItem(h):(o=p.newItem({}))[l]=!1,o._index=i,!1!==o[l]&&a.handleItemDefaults(h,o,t,a),d.push(o)}var f=p.defaultItems();for(i=0;i<f.length;i++)(o=f[i])._index=d.length,a.handleItemDefaults({},o,t,a,{}),d.push(o);if(n.isArrayOrTypedArray(c)){var m=Math.min(c.length,d.length);for(i=0;i<m;i++)n.relinkPrivateKeys(d[i],c[i])}return d}}),Nz=Ee((e,t)=>{var n=Fr(),r=ao().contrast,a=vp(),i=Hse(),o=Pp();function s(e,t){function r(r,i){return n.coerce(e,t,a.tickformatstops,r,i)}r("enabled")&&(r("dtickrange"),r("value"))}t.exports=function(e,t,l,c,u){u||(u={});var d=l("labelalias");n.isPlainObject(d)||delete t.labelalias;var p=i(e);if(l("showticklabels")){u.noTicklabelshift||l("ticklabelshift"),u.noTicklabelstandoff||l("ticklabelstandoff");var h=u.font||{},f=t.color,m=-1!==(t.ticklabelposition||"").indexOf("inside")?r(u.bgColor):f&&f!==a.color.dflt?f:h.color;if(n.coerceFont(l,"tickfont",h,{overrideDflt:{color:m}}),!u.noTicklabelstep&&"multicategory"!==c&&"log"!==c&&l("ticklabelstep"),!u.noAng){var g=l("tickangle");!u.noAutotickangles&&"auto"===g&&l("autotickangles")}if("category"!==c){var y=l("tickformat");o(e,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:s}),t.tickformatstops.length||delete t.tickformatstops,!u.noExp&&!y&&"date"!==c&&(l("showexponent",p),l("exponentformat"),l("minexponent"),l("separatethousands"))}!u.noMinorloglabels&&"log"===c&&l("minorloglabels")}}}),Wz=Ee((e,t)=>{var n=Hse();t.exports=function(e,t,r,a,i){i||(i={});var o=i.tickSuffixDflt,s=n(e);r("tickprefix")&&r("showtickprefix",s),r("ticksuffix",o)&&r("showticksuffix",s)}}),jse=Ee((e,t)=>{var n=Fr(),r=Kl(),a=mw(),i=nS(),o=Nz(),s=Wz(),l=kH();t.exports=function(e,t,c){var u=r.newContainer(t,"colorbar"),d=e.colorbar||{};function p(e,t){return n.coerce(d,u,l,e,t)}var h=c.margin||{t:0,b:0,l:0,r:0},f=c.width-h.l-h.r,m=c.height-h.t-h.b,g="v"===p("orientation"),y=p("thicknessmode");p("thickness","fraction"===y?30/(g?f:m):30);var b=p("lenmode");p("len","fraction"===b?1:g?m:f);var v,M,x,z="paper"===p("yref"),_="paper"===p("xref"),A="left";g?(x="middle",A=_?"left":"right",v=_?1.02:1,M=.5):(x=z?"bottom":"top",A="center",v=.5,M=z?1.02:1),n.coerce(d,u,{x:{valType:"number",min:_?-2:0,max:_?3:1,dflt:v}},"x"),n.coerce(d,u,{y:{valType:"number",min:z?-2:0,max:z?3:1,dflt:M}},"y"),p("xanchor",A),p("xpad"),p("yanchor",x),p("ypad"),n.noneOrAll(d,u,["x","y"]),p("outlinecolor"),p("outlinewidth"),p("bordercolor"),p("borderwidth"),p("bgcolor");var O=n.coerce(d,u,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:g?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");p("ticklabeloverflow",-1!==O.indexOf("inside")?"hide past domain":"hide past div"),a(d,u,p,"linear");var w=c.font,k={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:w};-1!==O.indexOf("inside")&&(k.bgColor="black"),s(d,u,p,"linear",k),o(d,u,p,"linear",k),i(d,u,p,"linear",k),p("title.text",c._dfltTitle.colorbar);var T=u.showticklabels?u.tickfont:w,S=n.extendFlat({},w,{family:T.family,size:n.bigFont(T.size)});n.coerceFont(p,"title.font",S),p("title.side",g?"top":"right")}}),kh=Ee((e,t)=>{var n=xs(),r=Fr(),a=Nse(),i=jse(),o=nw().isValid,s=vo().traceIs;function l(e,t){var n=t.slice(0,t.length-1);return t?r.nestedProperty(e,n).get()||{}:e}t.exports=function e(t,c,u,d,p){var h=p.prefix,f=p.cLetter,m="_module"in c,g=l(t,h),y=l(c,h),b=l(c._template||{},h)||{},v=function(){return delete t.coloraxis,delete c.coloraxis,e(t,c,u,d,p)};if(m){var M=u._colorAxes||{},x=d(h+"coloraxis");if(x){var z=s(c,"contour")&&r.nestedProperty(c,"contours.coloring").get()||"heatmap",_=M[x];return void(_?(_[2].push(v),_[0]!==z&&(_[0]=!1,r.warn(["Ignoring coloraxis:",x,"setting","as it is linked to incompatible colorscales."].join(" ")))):M[x]=[z,c,[v]])}}var A=g[f+"min"],O=g[f+"max"],w=n(A)&&n(O)&&A<O;d(h+f+"auto",!w)?d(h+f+"mid"):(d(h+f+"min"),d(h+f+"max"));var k,T,S=g.colorscale,C=b.colorscale;(void 0!==S&&(k=!o(S)),void 0!==C&&(k=!o(C)),d(h+"autocolorscale",k),d(h+"colorscale"),d(h+"reversescale"),"marker.line."!==h)&&(h&&m&&(T=a(g)),d(h+"showscale",T)&&(h&&b&&(y._template=b),i(g,y,u)))}}),SDe=Ee((e,t)=>{var n=Fr(),r=Kl(),a=Ise(),i=kh();t.exports=function(e,t){function o(r,i){return n.coerce(e,t,a,r,i)}o("colorscale.sequential"),o("colorscale.sequentialminus"),o("colorscale.diverging");var s,l,c=t._colorAxes;function u(e,t){return n.coerce(s,l,a.coloraxis,e,t)}for(var d in c){var p=c[d];if(p[0])s=e[d]||{},(l=r.newContainer(t,d,"coloraxis"))._name=d,i(s,l,t,u,{prefix:"",cLetter:"c"});else{for(var h=0;h<p[2].length;h++)p[2][h]();delete t._colorAxes[d]}}}}),CDe=Ee((e,t)=>{var n=Fr(),r=d2().hasColorscale,a=d2().extractOpts;t.exports=function(e,t){function i(e,t){var n=e["_"+t];void 0!==n&&(e[t]=n)}function o(e,r){var o=r.container?n.nestedProperty(e,r.container).get():e;if(o)if(o.coloraxis)o._colorAx=t[o.coloraxis];else{var s=a(o),l=s.auto;(l||void 0===s.min)&&i(o,r.min),(l||void 0===s.max)&&i(o,r.max),s.autocolorscale&&i(o,"colorscale")}}for(var s=0;s<e.length;s++){var l=e[s],c=l._module.colorbar;if(c)if(Array.isArray(c))for(var u=0;u<c.length;u++)o(l,c[u]);else o(l,c);r(l,"marker.line")&&o(l,{container:"marker.line",min:"cmin",max:"cmax"})}for(var d in t._colorAxes)o(t[d],{min:"cmin",max:"cmax"})}}),f2=Ee((e,t)=>{var n=xs(),r=Fr(),a=d2().extractOpts;t.exports=function(e,t,i){var o,s=e._fullLayout,l=i.vals,c=i.containerStr,u=c?r.nestedProperty(t,c).get():t,d=a(u),p=!1!==d.auto,h=d.min,f=d.max,m=d.mid,g=function(){return r.aggNums(Math.min,null,l)},y=function(){return r.aggNums(Math.max,null,l)};(void 0===h?h=g():p&&(h=u._colorAx&&n(h)?Math.min(h,g()):g()),void 0===f?f=y():p&&(f=u._colorAx&&n(f)?Math.max(f,y()):y()),p&&void 0!==m&&(f-m>m-h?h=m-(f-m):f-m<m-h&&(f=m+(m-h))),h===f&&(h-=.5,f+=.5),d._sync("min",h),d._sync("max",f),d.autocolorscale)&&(o=h*f<0?s.colorscale.diverging:h>=0?s.colorscale.sequential:s.colorscale.sequentialminus,d._sync("colorscale",o))}}),xu=Ee((e,t)=>{var n=nw(),r=d2();t.exports={moduleType:"component",name:"colorscale",attributes:Oc(),layoutAttributes:Ise(),supplyLayoutDefaults:SDe(),handleDefaults:kh(),crossTraceDefaults:CDe(),calc:f2(),scales:n.scales,defaultScale:n.defaultScale,getScale:n.get,isValidScale:n.isValid,hasColorscale:r.hasColorscale,extractOpts:r.extractOpts,extractScale:r.extractScale,flipScale:r.flipScale,makeColorScaleFunc:r.makeColorScaleFunc,makeColorScaleFuncFromTrace:r.makeColorScaleFuncFromTrace}}),Hc=Ee((e,t)=>{var n=Fr(),r=Lp().isTypedArraySpec;t.exports={hasLines:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("lines")},hasMarkers:function(e){return e.visible&&(e.mode&&-1!==e.mode.indexOf("markers")||"splom"===e.type)},hasText:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("text")},isBubble:function(e){var t=e.marker;return n.isPlainObject(t)&&(n.isArrayOrTypedArray(t.size)||r(t.size))}}}),iS=Ee((e,t)=>{var n=xs();t.exports=function(e,t){t||(t=2);var r=e.marker,a=r.sizeref||1,i=r.sizemin||0,o="area"===r.sizemode?function(e){return Math.sqrt(e/a)}:function(e){return e/a};return function(e){var r=o(e/t);return n(r)&&r>0?Math.max(r,i):0}}}),fm=Ee(e=>{var t=Fr();e.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo},e.isTraceInSubplots=function(t,n){if("splom"===t.type){for(var r=t.xaxes||[],a=t.yaxes||[],i=0;i<r.length;i++)for(var o=0;o<a.length;o++)if(-1!==n.indexOf(r[i]+a[o]))return!0;return!1}return-1!==n.indexOf(e.getSubplot(t))},e.flat=function(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)n[r]=t;return n},e.p2c=function(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r].p2c(t);return n},e.getDistanceFunction=function(t,n,r,a){return"closest"===t?a||e.quadrature(n,r):"x"===t.charAt(0)?n:r},e.getClosest=function(e,t,n){if(!1!==n.index)n.index>=0&&n.index<e.length?n.distance=0:n.index=!1;else for(var r=1/0,a=e.length,i=0;i<a;i++)(r=t(e[i]))<=n.distance&&(n.index=i,n.distance=r);return n},e.inbox=function(e,t,n){return e*t<0||0===e?n:1/0},e.quadrature=function(e,t){return function(n){var r=e(n),a=t(n);return Math.sqrt(r*r+a*a)}},e.makeEventData=function(t,n,r){var a="index"in t?t.index:t.pointNumber,i={data:n._input,fullData:n,curveNumber:n.index,pointNumber:a};if(n._indexToPoints){var o=n._indexToPoints[a];1===o.length?i.pointIndex=o[0]:i.pointIndices=o}else i.pointIndex=a;return n._module.eventData?i=n._module.eventData(i,t,n,r,a):("xVal"in t?i.x=t.xVal:"x"in t&&(i.x=t.x),"yVal"in t?i.y=t.yVal:"y"in t&&(i.y=t.y),t.xa&&(i.xaxis=t.xa),t.ya&&(i.yaxis=t.ya),void 0!==t.zLabelVal&&(i.z=t.zLabelVal)),e.appendArrayPointValue(i,n,a),i},e.appendArrayPointValue=function(e,n,i){var o=n._arrayAttrs;if(o)for(var s=0;s<o.length;s++){var l=o[s],c=r(l);if(void 0===e[c]){var u=a(t.nestedProperty(n,l).get(),i);void 0!==u&&(e[c]=u)}}},e.appendArrayMultiPointValues=function(e,n,i){var o=n._arrayAttrs;if(o)for(var s=0;s<o.length;s++){var l=o[s],c=r(l);if(void 0===e[c]){for(var u=t.nestedProperty(n,l).get(),d=new Array(i.length),p=0;p<i.length;p++)d[p]=a(u,i[p]);e[c]=d}}};var n={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function r(e){return n[e]||e}function a(e,n){return Array.isArray(n)?t.isArrayOrTypedArray(e)&&t.isArrayOrTypedArray(e[n[0]])?e[n[0]][n[1]]:void 0:e[n]}var i={x:!0,y:!0},o={"x unified":!0,"y unified":!0};e.isUnifiedHover=function(e){return"string"==typeof e&&!!o[e]},e.isXYhover=function(e){return"string"==typeof e&&!!i[e]}}),MD=Ee((e,t)=>{t.exports=function(e){var t=[];return e.replace(r,function(e,r,i){var o=r.toLowerCase();for(i=function(e){var t=e.match(a);return t?t.map(Number):[]}(i),"m"==o&&i.length>2&&(t.push([r].concat(i.splice(0,2))),o="l",r="m"==r?"l":"L");;){if(i.length==n[o])return i.unshift(r),t.push(i);if(i.length<n[o])throw new Error("malformed path data");t.push([r].concat(i.splice(0,n[o])))}}),t};var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},r=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var a=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi}),GDe=Ee((e,t)=>{var n,r,a,i,o=MD(),s=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},l="M0,0Z",c=Math.sqrt(2),u=Math.sqrt(3),d=Math.PI,p=Math.cos,h=Math.sin;function f(e){return null===e}function m(e,t,s){if(!(e&&e%360!=0||t))return s;if(a===e&&i===t&&n===s)return r;function l(e,n){var r=p(e),a=h(e),i=n[0],o=n[1]+(t||0);return[i*r-o*a,i*a+o*r]}a=e,i=t,n=s;for(var c=e/180*d,u=0,f=0,m=o(s),g="",y=0;y<m.length;y++){var b=m[y],v=b[0],M=u,x=f;if("M"===v||"L"===v)u=+b[1],f=+b[2];else if("m"===v||"l"===v)u+=+b[1],f+=+b[2];else if("H"===v)u=+b[1];else if("h"===v)u+=+b[1];else if("V"===v)f=+b[1];else if("v"===v)f+=+b[1];else if("A"===v){u=+b[1],f=+b[2];var z=l(c,[+b[6],+b[7]]);b[6]=z[0],b[7]=z[1],b[3]=+b[3]+e}("H"===v||"V"===v)&&(v="L"),("h"===v||"v"===v)&&(v="l"),("m"===v||"l"===v)&&(u-=M,f-=x);var _=l(c,[u,f]);("H"===v||"V"===v)&&(v="L"),("M"===v||"L"===v||"m"===v||"l"===v)&&(b[1]=_[0],b[2]=_[1]),b[0]=v,g+=b[0]+b.slice(1).join(",")}return r=g,g}t.exports={circle:{n:0,f:function(e,t,n){if(f(t))return l;var r=s(e,2),a="M"+r+",0A"+r+","+r+" 0 1,1 0,-"+r+"A"+r+","+r+" 0 0,1 "+r+",0Z";return n?m(t,n,a):a}},square:{n:1,f:function(e,t,n){if(f(t))return l;var r=s(e,2);return m(t,n,"M"+r+","+r+"H-"+r+"V-"+r+"H"+r+"Z")}},diamond:{n:2,f:function(e,t,n){if(f(t))return l;var r=s(1.3*e,2);return m(t,n,"M"+r+",0L0,"+r+"L-"+r+",0L0,-"+r+"Z")}},cross:{n:3,f:function(e,t,n){if(f(t))return l;var r=s(.4*e,2),a=s(1.2*e,2);return m(t,n,"M"+a+","+r+"H"+r+"V"+a+"H-"+r+"V"+r+"H-"+a+"V-"+r+"H-"+r+"V-"+a+"H"+r+"V-"+r+"H"+a+"Z")}},x:{n:4,f:function(e,t,n){if(f(t))return l;var r=s(.8*e/c,2),a="l"+r+","+r,i="l"+r+",-"+r,o="l-"+r+",-"+r,u="l-"+r+","+r;return m(t,n,"M0,"+r+a+i+o+i+o+u+o+u+a+u+a+"Z")}},"triangle-up":{n:5,f:function(e,t,n){if(f(t))return l;var r=s(2*e/u,2);return m(t,n,"M-"+r+","+s(e/2,2)+"H"+r+"L0,-"+s(e,2)+"Z")}},"triangle-down":{n:6,f:function(e,t,n){if(f(t))return l;var r=s(2*e/u,2);return m(t,n,"M-"+r+",-"+s(e/2,2)+"H"+r+"L0,"+s(e,2)+"Z")}},"triangle-left":{n:7,f:function(e,t,n){if(f(t))return l;var r=s(2*e/u,2);return m(t,n,"M"+s(e/2,2)+",-"+r+"V"+r+"L-"+s(e,2)+",0Z")}},"triangle-right":{n:8,f:function(e,t,n){if(f(t))return l;var r=s(2*e/u,2);return m(t,n,"M-"+s(e/2,2)+",-"+r+"V"+r+"L"+s(e,2)+",0Z")}},"triangle-ne":{n:9,f:function(e,t,n){if(f(t))return l;var r=s(.6*e,2),a=s(1.2*e,2);return m(t,n,"M-"+a+",-"+r+"H"+r+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,t,n){if(f(t))return l;var r=s(.6*e,2),a=s(1.2*e,2);return m(t,n,"M"+r+",-"+a+"V"+r+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,t,n){if(f(t))return l;var r=s(.6*e,2),a=s(1.2*e,2);return m(t,n,"M"+a+","+r+"H-"+r+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,t,n){if(f(t))return l;var r=s(.6*e,2),a=s(1.2*e,2);return m(t,n,"M-"+r+","+a+"V-"+r+"H"+a+"Z")}},pentagon:{n:13,f:function(e,t,n){if(f(t))return l;var r=s(.951*e,2),a=s(.588*e,2),i=s(-e,2),o=s(-.309*e,2);return m(t,n,"M"+r+","+o+"L"+a+","+s(.809*e,2)+"H-"+a+"L-"+r+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,t,n){if(f(t))return l;var r=s(e,2),a=s(e/2,2),i=s(e*u/2,2);return m(t,n,"M"+i+",-"+a+"V"+a+"L0,"+r+"L-"+i+","+a+"V-"+a+"L0,-"+r+"Z")}},hexagon2:{n:15,f:function(e,t,n){if(f(t))return l;var r=s(e,2),a=s(e/2,2),i=s(e*u/2,2);return m(t,n,"M-"+a+","+i+"H"+a+"L"+r+",0L"+a+",-"+i+"H-"+a+"L-"+r+",0Z")}},octagon:{n:16,f:function(e,t,n){if(f(t))return l;var r=s(.924*e,2),a=s(.383*e,2);return m(t,n,"M-"+a+",-"+r+"H"+a+"L"+r+",-"+a+"V"+a+"L"+a+","+r+"H-"+a+"L-"+r+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,t,n){if(f(t))return l;var r=1.4*e,a=s(.225*r,2),i=s(.951*r,2),o=s(.363*r,2),c=s(.588*r,2),u=s(-r,2),d=s(-.309*r,2),p=s(.118*r,2),h=s(.809*r,2);return m(t,n,"M"+a+","+d+"H"+i+"L"+o+","+p+"L"+c+","+h+"L0,"+s(.382*r,2)+"L-"+c+","+h+"L-"+o+","+p+"L-"+i+","+d+"H-"+a+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,t,n){if(f(t))return l;var r=s(.66*e,2),a=s(.38*e,2),i=s(.76*e,2);return m(t,n,"M-"+i+",0l-"+a+",-"+r+"h"+i+"l"+a+",-"+r+"l"+a+","+r+"h"+i+"l-"+a+","+r+"l"+a+","+r+"h-"+i+"l-"+a+","+r+"l-"+a+",-"+r+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,t,n){if(f(t))return l;var r=s(e*u*.8,2),a=s(.8*e,2),i=s(1.6*e,2),o=s(4*e,2),c="A "+o+","+o+" 0 0 1 ";return m(t,n,"M-"+r+","+a+c+r+","+a+c+"0,-"+i+c+"-"+r+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,t,n){if(f(t))return l;var r=s(e*u*.8,2),a=s(.8*e,2),i=s(1.6*e,2),o=s(4*e,2),c="A "+o+","+o+" 0 0 1 ";return m(t,n,"M"+r+",-"+a+c+"-"+r+",-"+a+c+"0,"+i+c+r+",-"+a+"Z")}},"star-square":{n:21,f:function(e,t,n){if(f(t))return l;var r=s(1.1*e,2),a=s(2*e,2),i="A "+a+","+a+" 0 0 1 ";return m(t,n,"M-"+r+",-"+r+i+"-"+r+","+r+i+r+","+r+i+r+",-"+r+i+"-"+r+",-"+r+"Z")}},"star-diamond":{n:22,f:function(e,t,n){if(f(t))return l;var r=s(1.4*e,2),a=s(1.9*e,2),i="A "+a+","+a+" 0 0 1 ";return m(t,n,"M-"+r+",0"+i+"0,"+r+i+r+",0"+i+"0,-"+r+i+"-"+r+",0Z")}},"diamond-tall":{n:23,f:function(e,t,n){if(f(t))return l;var r=s(.7*e,2),a=s(1.4*e,2);return m(t,n,"M0,"+a+"L"+r+",0L0,-"+a+"L-"+r+",0Z")}},"diamond-wide":{n:24,f:function(e,t,n){if(f(t))return l;var r=s(1.4*e,2),a=s(.7*e,2);return m(t,n,"M0,"+a+"L"+r+",0L0,-"+a+"L-"+r+",0Z")}},hourglass:{n:25,f:function(e,t,n){if(f(t))return l;var r=s(e,2);return m(t,n,"M"+r+","+r+"H-"+r+"L"+r+",-"+r+"H-"+r+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,n){if(f(t))return l;var r=s(e,2);return m(t,n,"M"+r+","+r+"V-"+r+"L-"+r+","+r+"V-"+r+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,n){if(f(t))return l;var r=s(e,2);return m(t,n,"M0,"+r+"V-"+r+"M"+r+",0H-"+r+"M"+r+",0A"+r+","+r+" 0 1,1 0,-"+r+"A"+r+","+r+" 0 0,1 "+r+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,n){if(f(t))return l;var r=s(e,2),a=s(e/c,2);return m(t,n,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+r+",0A"+r+","+r+" 0 1,1 0,-"+r+"A"+r+","+r+" 0 0,1 "+r+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,n){if(f(t))return l;var r=s(e,2);return m(t,n,"M0,"+r+"V-"+r+"M"+r+",0H-"+r+"M"+r+","+r+"H-"+r+"V-"+r+"H"+r+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,n){if(f(t))return l;var r=s(e,2);return m(t,n,"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r+"M"+r+","+r+"H-"+r+"V-"+r+"H"+r+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,n){if(f(t))return l;var r=s(1.3*e,2);return m(t,n,"M"+r+",0L0,"+r+"L-"+r+",0L0,-"+r+"ZM0,-"+r+"V"+r+"M-"+r+",0H"+r)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,n){if(f(t))return l;var r=s(1.3*e,2),a=s(.65*e,2);return m(t,n,"M"+r+",0L0,"+r+"L-"+r+",0L0,-"+r+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,n){if(f(t))return l;var r=s(1.4*e,2);return m(t,n,"M0,"+r+"V-"+r+"M"+r+",0H-"+r)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,n){if(f(t))return l;var r=s(e,2);return m(t,n,"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,n){if(f(t))return l;var r=s(1.2*e,2),a=s(.85*e,2);return m(t,n,"M0,"+r+"V-"+r+"M"+r+",0H-"+r+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,n){if(f(t))return l;var r=s(e/2,2),a=s(e,2);return m(t,n,"M"+r+","+a+"V-"+a+"M"+(r-a)+",-"+a+"V"+a+"M"+a+","+r+"H-"+a+"M-"+a+","+(r-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,n){if(f(t))return l;var r=s(1.2*e,2),a=s(1.6*e,2),i=s(.8*e,2);return m(t,n,"M-"+r+","+i+"L0,0M"+r+","+i+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,n){if(f(t))return l;var r=s(1.2*e,2),a=s(1.6*e,2),i=s(.8*e,2);return m(t,n,"M-"+r+",-"+i+"L0,0M"+r+",-"+i+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,n){if(f(t))return l;var r=s(1.2*e,2),a=s(1.6*e,2),i=s(.8*e,2);return m(t,n,"M"+i+","+r+"L0,0M"+i+",-"+r+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,n){if(f(t))return l;var r=s(1.2*e,2),a=s(1.6*e,2),i=s(.8*e,2);return m(t,n,"M-"+i+","+r+"L0,0M-"+i+",-"+r+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,n){if(f(t))return l;var r=s(1.4*e,2);return m(t,n,"M"+r+",0H-"+r)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,n){if(f(t))return l;var r=s(1.4*e,2);return m(t,n,"M0,"+r+"V-"+r)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,n){if(f(t))return l;var r=s(e,2);return m(t,n,"M"+r+",-"+r+"L-"+r+","+r)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,n){if(f(t))return l;var r=s(e,2);return m(t,n,"M"+r+","+r+"L-"+r+",-"+r)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,n){if(f(t))return l;var r=s(e,2);return m(t,n,"M0,0L-"+r+","+s(2*e,2)+"H"+r+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,n){if(f(t))return l;var r=s(e,2);return m(t,n,"M0,0L-"+r+",-"+s(2*e,2)+"H"+r+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,n){if(f(t))return l;var r=s(2*e,2),a=s(e,2);return m(t,n,"M0,0L"+r+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,n){if(f(t))return l;var r=s(2*e,2),a=s(e,2);return m(t,n,"M0,0L-"+r+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,n){if(f(t))return l;var r=s(e,2);return m(t,n,"M-"+r+",0H"+r+"M0,0L-"+r+","+s(2*e,2)+"H"+r+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,n){if(f(t))return l;var r=s(e,2);return m(t,n,"M-"+r+",0H"+r+"M0,0L-"+r+",-"+s(2*e,2)+"H"+r+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,n){if(f(t))return l;var r=s(2*e,2),a=s(e,2);return m(t,n,"M0,-"+a+"V"+a+"M0,0L"+r+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,n){if(f(t))return l;var r=s(2*e,2),a=s(e,2);return m(t,n,"M0,-"+a+"V"+a+"M0,0L-"+r+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,n){if(f(t))return l;var r=d/2.5,a=2*e*p(r),i=2*e*h(r);return m(t,n,"M0,0L"+-a+","+i+"L"+a+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,n){if(f(t))return l;var r=d/4,a=2*e*p(r),i=2*e*h(r);return m(t,n,"M0,0L"+-a+","+i+"A "+2*e+","+2*e+" 0 0 1 "+a+","+i+"Z")},backoff:.4,noDot:!0}}}),vs=Ee((e,t)=>{var n=mo(),r=Fr(),a=r.numberFormat,i=xs(),o=Vh(),s=vo(),l=ao(),c=xu(),u=r.strTranslate,d=q1(),p=Dv(),h=lh().LINE_SPACING,f=Az().DESELECTDIM,m=Hc(),g=iS(),y=fm().appendArrayPointValue,b=t.exports={};function v(e){return"none"===e?void 0:e}b.font=function(e,t){var n=t.variant,r=t.style,a=t.weight,i=t.color,o=t.size,s=t.family,c=t.shadow,u=t.lineposition,p=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),i&&e.call(l.fill,i),a&&e.style("font-weight",a),r&&e.style("font-style",r),n&&e.style("font-variant",n),p&&e.style("text-transform",v(function(e){return M[e]}(p))),c&&e.style("text-shadow","auto"===c?d.makeTextShadow(l.contrast(i)):v(c)),u&&e.style("text-decoration-line",v(function(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}(u)))};var M={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function x(e,t,n,r){var a=t.fillpattern,i=t.fillgradient,o=b.getPatternAttr,s=a&&(o(a.shape,0,"")||o(a.path,0,""));if(s){var c=o(a.bgcolor,0,null),u=o(a.fgcolor,0,null),d=a.fgopacity,p=o(a.size,0,8),h=o(a.solidity,0,.3),f=t.uid;b.pattern(e,"point",n,f,s,p,h,void 0,a.fillmode,c,u,d)}else if(i&&"none"!==i.type){var m,g,y=i.type,v="scatterfill-"+t.uid;if(r&&(v="legendfill-"+t.uid),r||void 0===i.start&&void 0===i.stop)"horizontal"===y&&(y+="reversed"),e.call(b.gradient,n,v,y,i.colorscale,"fill");else"horizontal"===y?(m={x:i.start,y:0},g={x:i.stop,y:0}):"vertical"===y&&(m={x:0,y:i.start},g={x:0,y:i.stop}),m.x=t._xA.c2p(void 0===m.x?t._extremes.x.min[0].val:m.x,!0),m.y=t._yA.c2p(void 0===m.y?t._extremes.y.min[0].val:m.y,!0),g.x=t._xA.c2p(void 0===g.x?t._extremes.x.max[0].val:g.x,!0),g.y=t._yA.c2p(void 0===g.y?t._extremes.y.max[0].val:g.y,!0),e.call(k,n,v,"linear",i.colorscale,"fill",m,g,!0,!1)}else t.fillcolor&&e.call(l.fill,t.fillcolor)}b.setPosition=function(e,t,n){e.attr("x",t).attr("y",n)},b.setSize=function(e,t,n){e.attr("width",t).attr("height",n)},b.setRect=function(e,t,n,r,a){e.call(b.setPosition,t,n).call(b.setSize,r,a)},b.translatePoint=function(e,t,n,r){var a=n.c2p(e.x),o=r.c2p(e.y);return!!(i(a)&&i(o)&&t.node())&&("text"===t.node().nodeName?t.attr("x",a).attr("y",o):t.attr("transform",u(a,o)),!0)},b.translatePoints=function(e,t,r){e.each(function(e){var a=n.select(this);b.translatePoint(e,a,t,r)})},b.hideOutsideRangePoint=function(e,t,n,r,a,i){t.attr("display",n.isPtWithinRange(e,a)&&r.isPtWithinRange(e,i)?null:"none")},b.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,a=t.yaxis;e.each(function(t){var i=t[0].trace,o=i.xcalendar,l=i.ycalendar,c=s.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(c).each(function(e){b.hideOutsideRangePoint(e,n.select(this),r,a,o,l)})})}},b.crispRound=function(e,t,n){return t&&i(t)?e._context.staticPlot?t:t<1?1:Math.round(t):n||0},b.singleLineStyle=function(e,t,n,r,a){t.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=n||i.width||0,s=a||i.dash||"";l.stroke(t,r||i.color),b.dashLine(t,s,o)},b.lineGroupStyle=function(e,t,r,a){e.style("fill","none").each(function(e){var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,s=a||i.dash||"";n.select(this).call(l.stroke,r||i.color).call(b.dashLine,s,o)})},b.dashLine=function(e,t,n){n=+n||0,t=b.dashStyle(t,n),e.style({"stroke-dasharray":t,"stroke-width":n+"px"})},b.dashStyle=function(e,t){t=+t||1;var n=Math.max(t,3);return"solid"===e?e="":"dot"===e?e=n+"px,"+n+"px":"dash"===e?e=3*n+"px,"+3*n+"px":"longdash"===e?e=5*n+"px,"+5*n+"px":"dashdot"===e?e=3*n+"px,"+n+"px,"+n+"px,"+n+"px":"longdashdot"===e&&(e=5*n+"px,"+2*n+"px,"+n+"px,"+2*n+"px"),e},b.singleFillStyle=function(e,t){var r=n.select(e.node());x(e,((r.data()[0]||[])[0]||{}).trace||{},t,!1)},b.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(e){var a=n.select(this);e[0].trace&&x(a,e[0].trace,t,r)})};var z=GDe();b.symbolNames=[],b.symbolFuncs=[],b.symbolBackOffs=[],b.symbolNeedLines={},b.symbolNoDot={},b.symbolNoFill={},b.symbolList=[],Object.keys(z).forEach(function(e){var t=z[e],n=t.n;b.symbolList.push(n,String(n),e,n+100,String(n+100),e+"-open"),b.symbolNames[n]=e,b.symbolFuncs[n]=t.f,b.symbolBackOffs[n]=t.backoff||0,t.needLine&&(b.symbolNeedLines[n]=!0),t.noDot?b.symbolNoDot[n]=!0:b.symbolList.push(n+200,String(n+200),e+"-dot",n+300,String(n+300),e+"-open-dot"),t.noFill&&(b.symbolNoFill[n]=!0)});var _=b.symbolNames.length;function A(e,t,n,r){var a=e%100;return b.symbolFuncs[a](t,n,r)+(e>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}b.symbolNumber=function(e){if(i(e))e=+e;else if("string"==typeof e){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),(e=b.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=_||e>=400?0:Math.floor(Math.max(e,0))};var O=a("~f"),w={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};function k(e,t,a,i,s,c,u,d,p,h){var f,m=s.length;"linear"===i?f={node:"linearGradient",attrs:{x1:u.x,y1:u.y,x2:d.x,y2:d.y,gradientUnits:p?"userSpaceOnUse":"objectBoundingBox"},reversed:h}:"radial"===i&&(f={node:"radialGradient",reversed:h});for(var g=new Array(m),y=0;y<m;y++)f.reversed?g[m-1-y]=[O(100*(1-s[y][0])),s[y][1]]:g[y]=[O(100*s[y][0]),s[y][1]];var b=t._fullLayout,v="g"+b._uid+"-"+a,M=b._defs.select(".gradients").selectAll("#"+v).data([i+g.join(";")],r.identity);M.exit().remove(),M.enter().append(f.node).each(function(){var e=n.select(this);f.attrs&&e.attr(f.attrs),e.attr("id",v);var t=e.selectAll("stop").data(g);t.exit().remove(),t.enter().append("stop"),t.each(function(e){var t=o(e[1]);n.select(this).attr({offset:e[0]+"%","stop-color":l.tinyRGB(t),"stop-opacity":t.getAlpha()})})}),e.style(c,j(v,t)).style(c+"-opacity",null),e.classed("gradient_filled",!0)}b.gradient=function(e,t,n,r,a,i){var o=w[r];return k(e,t,n,o.type,a,i,o.start,o.stop,!1,o.reversed)},b.pattern=function(e,t,a,i,s,c,u,d,p,h,f,m){var g="legend"===t;d&&("overlay"===p?(h=d,f=l.contrast(h)):(h=void 0,f=d));var y,b,v,M,x,z,_,A,O,w,k,T=a._fullLayout,S="p"+T._uid+"-"+i,C={},E=o(f),q=l.tinyRGB(E),D=m*E.getAlpha();switch(s){case"/":y=c*Math.sqrt(2),b=c*Math.sqrt(2),z="path",C={d:v="M-"+y/4+","+b/4+"l"+y/2+",-"+b/2+"M0,"+b+"L"+y+",0M"+y/4*3+","+b/4*5+"l"+y/2+",-"+b/2,opacity:D,stroke:q,"stroke-width":(M=u*c)+"px"};break;case"\\":y=c*Math.sqrt(2),b=c*Math.sqrt(2),z="path",C={d:v="M"+y/4*3+",-"+b/4+"l"+y/2+","+b/2+"M0,0L"+y+","+b+"M-"+y/4+","+b/4*3+"l"+y/2+","+b/2,opacity:D,stroke:q,"stroke-width":(M=u*c)+"px"};break;case"x":y=c*Math.sqrt(2),b=c*Math.sqrt(2),v="M-"+y/4+","+b/4+"l"+y/2+",-"+b/2+"M0,"+b+"L"+y+",0M"+y/4*3+","+b/4*5+"l"+y/2+",-"+b/2+"M"+y/4*3+",-"+b/4+"l"+y/2+","+b/2+"M0,0L"+y+","+b+"M-"+y/4+","+b/4*3+"l"+y/2+","+b/2,M=c-c*Math.sqrt(1-u),z="path",C={d:v,opacity:D,stroke:q,"stroke-width":M+"px"};break;case"|":z="path",z="path",C={d:v="M"+(y=c)/2+",0L"+y/2+","+(b=c),opacity:D,stroke:q,"stroke-width":(M=u*c)+"px"};break;case"-":z="path",z="path",C={d:v="M0,"+(b=c)/2+"L"+(y=c)+","+b/2,opacity:D,stroke:q,"stroke-width":(M=u*c)+"px"};break;case"+":z="path",v="M"+(y=c)/2+",0L"+y/2+","+(b=c)+"M0,"+b/2+"L"+y+","+b/2,M=c-c*Math.sqrt(1-u),z="path",C={d:v,opacity:D,stroke:q,"stroke-width":M+"px"};break;case".":y=c,b=c,u<Math.PI/4?x=Math.sqrt(u*c*c/Math.PI):(_=u,A=Math.PI/4,O=1,w=c/2,k=c/Math.sqrt(2),x=w+(k-w)*(_-A)/(O-A)),z="circle",C={cx:y/2,cy:b/2,r:x,opacity:D,fill:q};break;default:y=c,b=c,z="path",C={d:s,opacity:D,fill:q}}var R=[s||"noSh",h||"noBg",f||"noFg",c,u].join(";"),L=T._defs.select(".patterns").selectAll("#"+S).data([R],r.identity);L.exit().remove(),L.enter().append("pattern").each(function(){var e=n.select(this);if(e.attr({id:S,width:y+"px",height:b+"px",patternUnits:"userSpaceOnUse",patternTransform:g?"scale(0.8)":""}),h){var t=o(h),r=l.tinyRGB(t),a=t.getAlpha(),i=e.selectAll("rect").data([0]);i.exit().remove(),i.enter().append("rect").attr({width:y+"px",height:b+"px",fill:r,"fill-opacity":a})}var s=e.selectAll(z).data([0]);s.exit().remove(),s.enter().append(z).attr(C)}),e.style("fill",j(S,a)).style("fill-opacity",null),e.classed("pattern_filled",!0)},b.initGradients=function(e){var t=e._fullLayout;r.ensureSingle(t._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),n.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)},b.initPatterns=function(e){var t=e._fullLayout;r.ensureSingle(t._defs,"g","patterns").selectAll("pattern").remove(),n.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)},b.getPatternAttr=function(e,t,n){return e&&r.isArrayOrTypedArray(e)?t<e.length?e[t]:n:e},b.pointStyle=function(e,t,r,a){if(e.size()){var i=b.makePointStyleFns(t);e.each(function(e){b.singlePointStyle(e,n.select(this),t,i,r,a)})}},b.singlePointStyle=function(e,t,n,a,i,o){var s=n.marker,c=s.line;if(o&&o.i>=0&&void 0===e.i&&(e.i=o.i),t.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):void 0===e.mo?s.opacity:e.mo),a.ms2mrc){var u;u="various"===e.ms||"various"===s.size?3:a.ms2mrc(e.ms),e.mrc=u,a.selectedSizeFn&&(u=e.mrc=a.selectedSizeFn(e));var d=b.symbolNumber(e.mx||s.symbol)||0;e.om=d%200>=100;var p=ne(e,n),h=H(e,n);t.attr("d",A(d,u,p,h))}var f,m,g,y=!1;if(e.so)g=c.outlierwidth,m=c.outliercolor,f=s.outliercolor;else{var v=(c||{}).width;g=(e.mlw+1||v+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,m="mlc"in e?e.mlcc=a.lineScale(e.mlc):r.isArrayOrTypedArray(c.color)?l.defaultLine:c.color,r.isArrayOrTypedArray(s.color)&&(f=l.defaultLine,y=!0),f="mc"in e?e.mcc=a.markerScale(e.mc):s.color||s.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(f=a.selectedColorFn(e))}let M=e.mld||(c||{}).dash;if(M&&b.dashLine(t,M,g),e.om)t.call(l.stroke,f).style({"stroke-width":(g||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:g)+"px");var x=s.gradient,z=e.mgt;z?y=!0:z=x&&x.type,r.isArrayOrTypedArray(z)&&(z=z[0],w[z]||(z=0));var _=s.pattern,O=b.getPatternAttr,k=_&&(O(_.shape,e.i,"")||O(_.path,e.i,""));if(z&&"none"!==z){var T=e.mgc;T?y=!0:T=x.color;var S=n.uid;y&&(S+="-"+e.i),b.gradient(t,i,S,z,[[0,T],[1,f]],"fill")}else if(k){var C=!1,E=_.fgcolor;!E&&o&&o.color&&(E=o.color,C=!0);var q=O(E,e.i,o&&o.color||null),D=O(_.bgcolor,e.i,null),R=_.fgopacity,L=O(_.size,e.i,8),I=O(_.solidity,e.i,.3);C=C||e.mcc||r.isArrayOrTypedArray(_.shape)||r.isArrayOrTypedArray(_.path)||r.isArrayOrTypedArray(_.bgcolor)||r.isArrayOrTypedArray(_.fgcolor)||r.isArrayOrTypedArray(_.size)||r.isArrayOrTypedArray(_.solidity);var W=n.uid;C&&(W+="-"+e.i),b.pattern(t,"point",i,W,k,L,I,e.mcc,_.fillmode,D,q,R)}else r.isArrayOrTypedArray(f)?l.fill(t,f[e.i]):l.fill(t,f);g&&l.stroke(t,m)}},b.makePointStyleFns=function(e){var t={},n=e.marker;return t.markerScale=b.tryColorscale(n,""),t.lineScale=b.tryColorscale(n,"line"),s.traceIs(e,"symbols")&&(t.ms2mrc=m.isBubble(e)?g(e):function(){return(n.size||6)/2}),e.selectedpoints&&r.extendFlat(t,b.makeSelectedPointStyleFns(e)),t},b.makeSelectedPointStyleFns=function(e){var t={},n=e.selected||{},a=e.unselected||{},i=e.marker||{},o=n.marker||{},l=a.marker||{},c=i.opacity,u=o.opacity,d=l.opacity,p=void 0!==u,h=void 0!==d;(r.isArrayOrTypedArray(c)||p||h)&&(t.selectedOpacityFn=function(e){var t=void 0===e.mo?i.opacity:e.mo;return e.selected?p?u:t:h?d:f*t});var m=i.color,g=o.color,y=l.color;(g||y)&&(t.selectedColorFn=function(e){var t=e.mcc||m;return e.selected?g||t:y||t});var b=i.size,v=o.size,M=l.size,x=void 0!==v,z=void 0!==M;return s.traceIs(e,"symbols")&&(x||z)&&(t.selectedSizeFn=function(e){var t=e.mrc||b/2;return e.selected?x?v/2:t:z?M/2:t}),t},b.makeSelectedTextStyleFns=function(e){var t={},n=e.selected||{},r=e.unselected||{},a=e.textfont||{},i=n.textfont||{},o=r.textfont||{},s=a.color,c=i.color,u=o.color;return t.selectedTextColorFn=function(e){var t=e.tc||s;return e.selected?c||t:u||(c?t:l.addOpacity(t,f))},t},b.selectedPointStyle=function(e,t){if(e.size()&&t.selectedpoints){var r=b.makeSelectedPointStyleFns(t),a=t.marker||{},i=[];r.selectedOpacityFn&&i.push(function(e,t){e.style("opacity",r.selectedOpacityFn(t))}),r.selectedColorFn&&i.push(function(e,t){l.fill(e,r.selectedColorFn(t))}),r.selectedSizeFn&&i.push(function(e,n){var i=n.mx||a.symbol||0,o=r.selectedSizeFn(n);e.attr("d",A(b.symbolNumber(i),o,ne(n,t),H(n,t))),n.mrc2=o}),i.length&&e.each(function(e){for(var t=n.select(this),r=0;r<i.length;r++)i[r](t,e)})}},b.tryColorscale=function(e,t){var n=t?r.nestedProperty(e,t).get():e;if(n){var a=n.color;if((n.colorscale||n._colorAx)&&r.isArrayOrTypedArray(a))return c.makeColorScaleFuncFromTrace(n)}return r.identity};var T={start:1,end:-1,middle:0,bottom:1,top:-1};function S(e,t,r,a,i){var o=n.select(e.node().parentNode),s=-1!==t.indexOf("top")?"top":-1!==t.indexOf("bottom")?"bottom":"middle",l=-1!==t.indexOf("left")?"end":-1!==t.indexOf("right")?"start":"middle",c=a?a/.8+1:0,p=(d.lineCount(e)-1)*h+1,f=T[l]*c,m=.75*r+T[s]*c+(T[s]-1)*p*r/2;e.attr("text-anchor",l),i||o.attr("transform",u(f,m))}function C(e,t){var n=e.ts||t.textfont.size;return i(n)&&n>0?n:0}b.textPointStyle=function(e,t,a){if(e.size()){var i;if(t.selectedpoints){var o=b.makeSelectedTextStyleFns(t);i=o.selectedTextColorFn}var s=t.texttemplate,l=a._fullLayout;e.each(function(e){var o=n.select(this),c=s?r.extractOption(e,t,"txt","texttemplate"):r.extractOption(e,t,"tx","text");if(c||0===c){if(s){var u=t._module.formatLabels,p=u?u(e,t,l):{},h={};y(h,t,e.i),c=r.texttemplateString({data:[h,e,t._meta],fallback:t.texttemplatefallback,labels:p,locale:l._d3locale,template:c})}var f=e.tp||t.textposition,m=C(e,t),g=i?i(e):e.tc||t.textfont.color;o.call(b.font,{family:e.tf||t.textfont.family,weight:e.tw||t.textfont.weight,style:e.ty||t.textfont.style,variant:e.tv||t.textfont.variant,textcase:e.tC||t.textfont.textcase,lineposition:e.tE||t.textfont.lineposition,shadow:e.tS||t.textfont.shadow,size:m,color:g}).text(c).call(d.convertToTspans,a).call(S,f,m,e.mrc)}else o.remove()})}},b.selectedTextStyle=function(e,t){if(e.size()&&t.selectedpoints){var r=b.makeSelectedTextStyleFns(t);e.each(function(e){var a=n.select(this),i=r.selectedTextColorFn(e),o=e.tp||t.textposition,c=C(e,t);l.fill(a,i);var u=s.traceIs(t,"bar-like");S(a,o,c,e.mrc2||e.mrc,u)})}};var E,q;function D(e,t,n){return n&&(e=P(e)),t?L(e[1]):R(e[0])}function R(e){var t=n.round(e,2);return E=t,t}function L(e){var t=n.round(e,2);return q=t,t}function I(e,t,n,r){var a=e[0]-t[0],i=e[1]-t[1],o=n[0]-t[0],s=n[1]-t[1],l=Math.pow(a*a+i*i,.25),c=Math.pow(o*o+s*s,.25),u=(c*c*a-l*l*o)*r,d=(c*c*i-l*l*s)*r,p=3*c*(l+c),h=3*l*(l+c);return[[R(t[0]+(p&&u/p)),L(t[1]+(p&&d/p))],[R(t[0]-(h&&u/h)),L(t[1]-(h&&d/h))]]}b.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var n,r="M"+e[0],a=[];for(n=1;n<e.length-1;n++)a.push(I(e[n-1],e[n],e[n+1],t));for(r+="Q"+a[0][0]+" "+e[1],n=2;n<e.length-1;n++)r+="C"+a[n-2][1]+" "+a[n-1][0]+" "+e[n];return r+="Q"+a[e.length-3][1]+" "+e[e.length-1]},b.smoothclosed=function(e,t){if(e.length<3)return"M"+e.join("L")+"Z";var n,r="M"+e[0],a=e.length-1,i=[I(e[a],e[0],e[1],t)];for(n=1;n<a;n++)i.push(I(e[n-1],e[n],e[n+1],t));for(i.push(I(e[a-1],e[a],e[0],t)),n=1;n<=a;n++)r+="C"+i[n-1][1]+" "+i[n][0]+" "+e[n];return r+="C"+i[a][1]+" "+i[0][0]+" "+e[0]+"Z"};var W={hv:function(e,t,n){return"H"+R(t[0])+"V"+D(t,1,n)},vh:function(e,t,n){return"V"+L(t[1])+"H"+D(t,0,n)},hvh:function(e,t,n){return"H"+R((e[0]+t[0])/2)+"V"+L(t[1])+"H"+D(t,0,n)},vhv:function(e,t,n){return"V"+L((e[1]+t[1])/2)+"H"+R(t[0])+"V"+D(t,1,n)}},N=function(e,t,n){return"L"+D(t,0,n)+","+D(t,1,n)};function P(e,t){var n=e.backoff,a=e.trace,i=e.d,o=e.i;if(n&&a&&a.marker&&a.marker.angle%360==0&&a.line&&"spline"!==a.line.shape){var s=r.isArrayOrTypedArray(n),l=e,c=t?t[0]:E||0,u=t?t[1]:q||0,d=l[0],p=l[1],h=d-c,f=p-u,m=Math.atan2(f,h),g=s?n[o]:n;if("auto"===g){var y=l.i;"scatter"===a.type&&y--;var v=l.marker,M=v.symbol;r.isArrayOrTypedArray(M)&&(M=M[y]);var x=v.size;r.isArrayOrTypedArray(x)&&(x=x[y]),g=v?b.symbolBackOffs[b.symbolNumber(M)]*x:0,g+=b.getMarkerStandoff(i[y],a)||0}var z=d-g*Math.cos(m),_=p-g*Math.sin(m);(z<=d&&z>=c||z>=d&&z<=c)&&(_<=p&&_>=u||_>=p&&_<=u)&&(e=[z,_])}return e}b.steps=function(e){var t=W[e]||N;return function(e){for(var n="M"+R(e[0][0])+","+L(e[0][1]),r=e.length,a=1;a<r;a++)n+=t(e[a-1],e[a],a===r-1);return n}},b.applyBackoff=P,b.makeTester=function(){var e=r.ensureSingleById(n.select("body"),"svg","js-plotly-tester",function(e){e.attr(p.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=r.ensureSingle(e,"path","js-reference-point",function(e){e.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});b.tester=e,b.testref=t},b.savedBBoxes={};var B=0;function F(e){var t=e.getAttribute("data-unformatted");if(null!==t)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}function j(e,t){if(!e)return null;var n=t._context,r=n._exportedPlot?"":n._baseUrl||"";return r?"url('"+r+"#"+e+"')":"url(#"+e+")"}b.bBox=function(e,t,a){var i,o,s;if(a||(a=F(e)),a){if(i=b.savedBBoxes[a])return r.extendFlat({},i)}else if(1===e.childNodes.length){var l=e.childNodes[0];if(a=F(l)){var c=+l.getAttribute("x")||0,u=+l.getAttribute("y")||0,p=l.getAttribute("transform");if(!p){var h=b.bBox(l,!1,a);return c&&(h.left+=c,h.right+=c),u&&(h.top+=u,h.bottom+=u),h}if(a+="~"+c+"~"+u+"~"+p,i=b.savedBBoxes[a])return r.extendFlat({},i)}}t?o=e:(s=b.tester.node(),o=e.cloneNode(!0),s.appendChild(o)),n.select(o).attr("transform",null).call(d.positionText,0,0);var f=o.getBoundingClientRect(),m=b.testref.node().getBoundingClientRect();t||s.removeChild(o);var g={height:f.height,width:f.width,left:f.left-m.left,top:f.top-m.top,right:f.right-m.left,bottom:f.bottom-m.top};return B>=1e4&&(b.savedBBoxes={},B=0),a&&(b.savedBBoxes[a]=g),B++,r.extendFlat({},g)},b.setClipUrl=function(e,t,n){e.attr("clip-path",j(t,n))},b.getTranslate=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(e,t,n){return[t,n].join(" ")}).split(" ");return{x:+t[0]||0,y:+t[1]||0}},b.setTranslate=function(e,t,n){var r=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",i=e[r]("transform")||"";return t=t||0,n=n||0,i=i.replace(/(\btranslate\(.*?\);?)/,"").trim(),i=(i+=u(t,n)).trim(),e[a]("transform",i),i},b.getScale=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(e,t,n){return[t,n].join(" ")}).split(" ");return{x:+t[0]||1,y:+t[1]||1}},b.setScale=function(e,t,n){var r=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",i=e[r]("transform")||"";return t=t||1,n=n||1,i=i.replace(/(\bscale\(.*?\);?)/,"").trim(),i=(i+="scale("+t+","+n+")").trim(),e[a]("transform",i),i};var U=/\s*sc.*/;b.setPointGroupScale=function(e,t,n){if(t=t||1,n=n||1,e){var r=1===t&&1===n?"":"scale("+t+","+n+")";e.each(function(){var e=(this.getAttribute("transform")||"").replace(U,"");e=(e+=r).trim(),this.setAttribute("transform",e)})}};var V=/translate\([^)]*\)\s*$/;function H(e,t){var n;return e&&(n=e.mf),void 0===n&&(n=t.marker&&t.marker.standoff||0),t._geo||t._xA?n:-n}b.setTextPointsScale=function(e,t,r){e&&e.each(function(){var e,a=n.select(this),i=a.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),s=parseFloat(i.attr("y")||0),l=(a.attr("transform")||"").match(V);e=1===t&&1===r?[]:[u(o,s),"scale("+t+","+r+")",u(-o,-s)],l&&e.push(l),a.attr("transform",e.join(""))}})},b.getMarkerStandoff=H;var X,G,Y,Z,$,J,Q=Math.atan2,K=Math.cos,ee=Math.sin;function te(e,t){var n=t[0],r=t[1];return[n*K(e)-r*ee(e),n*ee(e)+r*K(e)]}function ne(e,t){var n=e.ma;void 0===n&&((!(n=t.marker.angle)||r.isArrayOrTypedArray(n))&&(n=0));var a,o,s=t.marker.angleref;if("previous"===s||"north"===s){if(t._geo){var l=t._geo.project(e.lonlat);a=l[0],o=l[1]}else{var c=t._xA,u=t._yA;if(!c||!u)return 90;a=c.c2p(e.x),o=u.c2p(e.y)}if(t._geo){var d,p=e.lonlat[0],h=e.lonlat[1],f=t._geo.project([p,h+1e-5]),m=t._geo.project([p+1e-5,h]),g=Q(m[1]-o,m[0]-a),y=Q(f[1]-o,f[0]-a);if("north"===s)d=n/180*Math.PI;else if("previous"===s){var b=p/180*Math.PI,v=h/180*Math.PI,M=X/180*Math.PI,x=G/180*Math.PI,z=M-b,_=K(x)*ee(z),A=ee(x)*K(v)-K(x)*ee(v)*K(z);d=-Q(_,A)-Math.PI,X=p,G=h}var O=te(g,[K(d),0]),w=te(y,[ee(d),0]);n=Q(O[1]+w[1],O[0]+w[0])/Math.PI*180,"previous"===s&&(J!==t.uid||e.i!==$+1)&&(n=null)}if("previous"===s&&!t._geo)if(J===t.uid&&e.i===$+1&&i(a)&&i(o)){var k=a-Y,T=o-Z,S=t.line&&t.line.shape||"",C=S.slice(S.length-1);"h"===C&&(T=0),"v"===C&&(k=0),n+=Q(T,k)/Math.PI*180+90}else n=null}return Y=a,Z=o,$=e.i,J=t.uid,n}b.getMarkerAngle=ne}),xw=Ee((e,t)=>{var n=mo(),r=xs(),a=td(),i=vo(),o=Fr(),s=o.strTranslate,l=vs(),c=ao(),u=q1(),d=Az(),p=lh().OPPOSITE_SIDE,h=/ [XY][0-9]* /;t.exports={draw:function(e,t,f){var m,g=e._fullLayout,y=f.propContainer,b=f.propName,v=f.placeholder,M=f.traceIndex,x=f.avoid||{},z=f.attributes,_=f.transform,A=f.containerGroup,O=1,w=y.title,k=(w&&w.text?w.text:"").trim(),T=!1,S=w&&w.font?w.font:{},C=S.family,E=S.size,q=S.color,D=S.weight,R=S.style,L=S.variant,I=S.textcase,W=S.lineposition,N=S.shadow,P=!!f.subtitlePropName,B=f.subtitlePlaceholder,F=(y.title||{}).subtitle||{text:"",font:{}},j=(F.text||"").trim(),U=!1,V=1,H=F.font,X=H.family,G=H.size,Y=H.color,Z=H.weight,$=H.style,J=H.variant,Q=H.textcase,K=H.lineposition,ee=H.shadow;"title.text"===b?m="titleText":-1!==b.indexOf("axis")?m="axisTitleText":-1!==b.indexOf("colorbar")&&(m="colorbarTitleText");var te=e._context.edits[m];function ne(e,t){return void 0!==e&&void 0!==t&&e.replace(h," % ")===t.replace(h," % ")}""===k?O=0:ne(k,v)&&(te||(k=""),O=.2,T=!0),P&&(""===j?V=0:ne(j,B)&&(te||(j=""),V=.2,U=!0)),f._meta?k=o.templateString(k,f._meta):g._meta&&(k=o.templateString(k,g._meta));var re,ae=k||j||te;A||(A=o.ensureSingle(g._infolayer,"g","g-"+t),re=g._hColorbarMoveTitle);var ie=A.selectAll("text."+t).data(ae?[0]:[]);ie.enter().append("text"),ie.text(k).attr("class",t),ie.exit().remove();var oe=null,se=t+"-subtitle",le=j||te;if(P&&((oe=A.selectAll("text."+se).data(le?[0]:[])).enter().append("text"),oe.text(j).attr("class",se),oe.exit().remove()),!ae)return A;function ce(e,t){o.syncOrAsync([ue,de],{title:e,subtitle:t})}function ue(r){var i,d=r.title,p=r.subtitle;if(!_&&re&&(_={}),_?(i="",_.rotate&&(i+="rotate("+[_.rotate,z.x,z.y]+")"),(_.offset||re)&&(i+=s(0,(_.offset||0)-(re||0)))):i=null,d.attr("transform",i),d.style("opacity",O*c.opacity(q)).call(l.font,{color:c.rgb(q),size:n.round(E,2),family:C,weight:D,style:R,variant:L,textcase:I,shadow:N,lineposition:W}).attr(z).call(u.convertToTspans,e,function(e){if(e){var t=n.select(e.node().parentNode).select("."+se);if(!t.empty()){var r=e.node().getBBox();if(r.height){var a=r.y+r.height+1.6*G;t.attr("y",a)}}}}),p&&!p.empty()){var h=A.select("."+t+"-math-group"),f=d.node().getBBox(),m=h.node()?h.node().getBBox():void 0,g=m?m.y+m.height+1.6*G:f.y+f.height+1.6*G,y=o.extendFlat({},z,{y:g});p.attr("transform",i),p.style("opacity",V*c.opacity(Y)).call(l.font,{color:c.rgb(Y),size:n.round(G,2),family:X,weight:Z,style:$,variant:J,textcase:Q,shadow:ee,lineposition:K}).attr(y).call(u.convertToTspans,e)}return a.previousPromises(e)}function de(t){var a=t.title,i=n.select(a.node().parentNode);if(x&&x.selection&&x.side&&k){i.attr("transform",null);var c=p[x.side],u="left"===x.side||"top"===x.side?-1:1,d=r(x.pad)?x.pad:2,h=l.bBox(i.node()),f={t:0,b:0,l:0,r:0},m=e._fullLayout._reservedMargin;for(var b in m)for(var v in m[b]){var M=m[b][v];f[v]=Math.max(f[v],M)}var z={left:f.l,top:f.t,right:g.width-f.r,bottom:g.height-f.b},_=x.maxShift||u*(z[x.side]-h[x.side]),A=0;if(_<0)A=_;else{var O=x.offsetLeft||0,w=x.offsetTop||0;h.left-=O,h.right-=O,h.top-=w,h.bottom-=w,x.selection.each(function(){var e=l.bBox(this);o.bBoxIntersect(h,e,d)&&(A=Math.max(A,u*(e[x.side]-h[c])+d))}),A=Math.min(_,A),y._titleScoot=Math.abs(A)}if(A>0||_<0){var T={left:[-A,0],right:[A,0],top:[0,-A],bottom:[0,A]}[x.side];i.attr("transform",s(T[0],T[1]))}}}function pe(e,t){e.text(t).on("mouseover.opacity",function(){n.select(this).transition().duration(d.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){n.select(this).transition().duration(d.HIDE_PLACEHOLDER).style("opacity",0)})}if(ie.call(ce,oe),te&&(k?ie.on(".opacity",null):(pe(ie,v),T=!0),ie.call(u.makeEditable,{gd:e}).on("edit",function(t){void 0!==M?i.call("_guiRestyle",e,b,t,M):i.call("_guiRelayout",e,b,t)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ce)}).on("input",function(e){this.text(e||" ").call(u.positionText,z.x,z.y)}),P)){if(P&&!k){var he=ie.node().getBBox(),fe=he.y+he.height+1.6*G;oe.attr("y",fe)}j?oe.on(".opacity",null):(pe(oe,B),U=!0),oe.call(u.makeEditable,{gd:e}).on("edit",function(t){i.call("_guiRelayout",e,"title.subtitle.text",t)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ce)}).on("input",function(e){this.text(e||" ").call(u.positionText,oe.attr("x"),oe.attr("y"))})}return ie.classed("js-placeholder",T),oe&&!oe.empty()&&oe.classed("js-placeholder",U),A},SUBTITLE_PADDING_EM:1.6,SUBTITLE_PADDING_MATHJAX_EM:1.6}}),g3=Ee((e,t)=>{var n=mo(),r=R8().utcFormat,a=Fr(),i=a.numberFormat,o=xs(),s=a.cleanNumber,l=a.ms2DateTime,c=a.dateTime2ms,u=a.ensureNumber,d=a.isArrayOrTypedArray,p=T0(),h=p.FP_SAFE,f=p.BADNUM,m=p.LOG_CLIP,g=p.ONEWEEK,y=p.ONEDAY,b=p.ONEHOUR,v=p.ONEMIN,M=p.ONESEC,x=Ld(),z=sh(),_=z.HOUR_PATTERN,A=z.WEEKDAY_PATTERN;function O(e){return Math.pow(10,e)}function w(e){return null!=e}t.exports=function(e,t){t=t||{};var p=e._id||"x",k=p.charAt(0);function T(t,n){if(t>0)return Math.log(t)/Math.LN10;if(t<=0&&n&&e.range&&2===e.range.length){var r=e.range[0],a=e.range[1];return.5*(r+a-2*m*Math.abs(r-a))}return f}function S(t,n,r,i){if((i||{}).msUTC&&o(t))return+t;var s=c(t,r||e.calendar);if(s===f){if(!o(t))return f;t=+t;var l=Math.floor(10*a.mod(t+.05,1)),u=Math.round(t-l/10);s=c(new Date(u))+l/10}return s}function C(t,n,r){return l(t,n,r||e.calendar)}function E(t){return e._categories[Math.round(t)]}function q(t){if(w(t)){if(void 0===e._categoriesMap&&(e._categoriesMap={}),void 0!==e._categoriesMap[t])return e._categoriesMap[t];e._categories.push("number"==typeof t?String(t):t);var n=e._categories.length-1;return e._categoriesMap[t]=n,n}return f}function D(t){if(e._categoriesMap)return e._categoriesMap[t]}function R(e){var t=D(e);return void 0!==t?t:o(e)?+e:void 0}function L(e){return o(e)?+e:D(e)}function I(e,t,r){return n.round(r+t*e,2)}function W(e,t,n){return(e-n)/t}var N=function(t){return o(t)?I(t,e._m,e._b):f},P=function(t){return W(t,e._m,e._b)};if(e.rangebreaks){var B="y"===k;N=function(t){if(!o(t))return f;var n=e._rangebreaks.length;if(!n)return I(t,e._m,e._b);var r=B;e.range[0]>e.range[1]&&(r=!r);for(var a=r?-1:1,i=a*t,s=0,l=0;l<n;l++){var c=a*e._rangebreaks[l].min,u=a*e._rangebreaks[l].max;if(i<c)break;if(!(i>u)){s=i<(c+u)/2?l:l+1;break}s=l+1}var d=e._B[s]||0;return isFinite(d)?I(t,e._m2,d):0},P=function(t){var n=e._rangebreaks.length;if(!n)return W(t,e._m,e._b);for(var r=0,a=0;a<n&&!(t<e._rangebreaks[a].pmin);a++)t>e._rangebreaks[a].pmax&&(r=a+1);return W(t,e._m2,e._B[r])}}e.c2l="log"===e.type?T:u,e.l2c="log"===e.type?O:u,e.l2p=N,e.p2l=P,e.c2p="log"===e.type?function(e,t){return N(T(e,t))}:N,e.p2c="log"===e.type?function(e){return O(P(e))}:P,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=s,e.c2d=e.c2r=e.l2d=e.l2r=u,e.d2p=e.r2p=function(t){return e.l2p(s(t))},e.p2d=e.p2r=P,e.cleanPos=u):"log"===e.type?(e.d2r=e.d2l=function(e,t){return T(s(e),t)},e.r2d=e.r2c=function(e){return O(s(e))},e.d2c=e.r2l=s,e.c2d=e.l2r=u,e.c2r=T,e.l2d=O,e.d2p=function(t,n){return e.l2p(e.d2r(t,n))},e.p2d=function(e){return O(P(e))},e.r2p=function(t){return e.l2p(s(t))},e.p2r=P,e.cleanPos=u):"date"===e.type?(e.d2r=e.r2d=a.identity,e.d2c=e.r2c=e.d2l=e.r2l=S,e.c2d=e.c2r=e.l2d=e.l2r=C,e.d2p=e.r2p=function(t,n,r){return e.l2p(S(t,0,r))},e.p2d=e.p2r=function(e,t,n){return C(P(e),t,n)},e.cleanPos=function(t){return a.cleanDate(t,f,e.calendar)}):"category"===e.type?(e.d2c=e.d2l=q,e.r2d=e.c2d=e.l2d=E,e.d2r=e.d2l_noadd=R,e.r2c=function(t){var n=L(t);return void 0!==n?n:e.fraction2r(.5)},e.l2r=e.c2r=u,e.r2l=L,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return E(P(e))},e.r2p=e.d2p,e.p2r=P,e.cleanPos=function(e){return"string"==typeof e&&""!==e?e:u(e)}):"multicategory"===e.type&&(e.r2d=e.c2d=e.l2d=E,e.d2r=e.d2l_noadd=R,e.r2c=function(t){var n=R(t);return void 0!==n?n:e.fraction2r(.5)},e.r2c_just_indices=D,e.l2r=e.c2r=u,e.r2l=R,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return E(P(e))},e.r2p=e.d2p,e.p2r=P,e.cleanPos=function(e){return Array.isArray(e)||"string"==typeof e&&""!==e?e:u(e)},e.setupMultiCategory=function(n){var r,i,o=e._traceIndices,s=e._matchGroup;if(s&&0===e._categories.length)for(var l in s)if(l!==p){var c=t[x.id2name(l)];o=o.concat(c._traceIndices)}var u=[[0,{}],[0,{}]],h=[];for(r=0;r<o.length;r++){var f=n[o[r]];if(k in f){var m=f[k],g=f._length||a.minRowLength(m);if(d(m[0])&&d(m[1]))for(i=0;i<g;i++){var y=m[0][i],b=m[1][i];w(y)&&w(b)&&(h.push([y,b]),y in u[0][1]||(u[0][1][y]=u[0][0]++),b in u[1][1]||(u[1][1][b]=u[1][0]++))}}}for(h.sort(function(e,t){var n=u[0][1],r=n[e[0]]-n[t[0]];if(r)return r;var a=u[1][1];return a[e[1]]-a[t[1]]}),r=0;r<h.length;r++)q(h[r])}),e.fraction2r=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return e.l2r(n+t*(r-n))},e.r2fraction=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return(e.r2l(t)-n)/(r-n)},e.limitRange=function(t){var n=e.minallowed,r=e.maxallowed;if(void 0!==n||void 0!==r){t||(t="range");var i=a.nestedProperty(e,t).get(),o=a.simpleMap(i,e.r2l),s=o[1]<o[0];s&&o.reverse();var l=a.simpleMap([n,r],e.r2l);if(void 0!==n&&o[0]<l[0]&&(i[s?1:0]=n,o[0]=l[0]),void 0!==r&&o[1]>l[1]&&(i[s?0:1]=r,o[1]=l[1]),o[0]>=o[1])if(void 0!==n){var c=l[0]+1;void 0!==r&&(c=Math.min(c,l[1])),i[s?0:1]=e.l2r(c)}else void 0!==r&&(i[s?1:0]=e.l2r(l[1]-1))}},e.cleanRange=function(t,n){e._cleanRange(t,n),e.limitRange(t)},e._cleanRange=function(t,n){n||(n={}),t||(t="range");var r,i,s=a.nestedProperty(e,t).get();if(i=(i="date"===e.type?a.dfltRange(e.calendar):"y"===k?z.DFLTRANGEY:"realaxis"===e._name?[0,1]:n.dfltRange||z.DFLTRANGEX).slice(),("tozero"===e.rangemode||"nonnegative"===e.rangemode)&&(i[0]=0),s&&2===s.length){var l=null===s[0],c=null===s[1];for("date"===e.type&&!e.autorange&&(s[0]=a.cleanDate(s[0],f,e.calendar),s[1]=a.cleanDate(s[1],f,e.calendar)),r=0;r<2;r++)if("date"===e.type){if(!a.isDateTime(s[r],e.calendar)){e[t]=i;break}if(e.r2l(s[0])===e.r2l(s[1])){var u=a.constrain(e.r2l(s[0]),a.MIN_MS+1e3,a.MAX_MS-1e3);s[0]=e.l2r(u-1e3),s[1]=e.l2r(u+1e3);break}}else{if(!o(s[r])){if(l||c||!o(s[1-r])){e[t]=i;break}s[r]=s[1-r]*(r?10:.1)}if(s[r]<-h?s[r]=-h:s[r]>h&&(s[r]=h),s[0]===s[1]){var d=Math.max(1,Math.abs(1e-6*s[0]));s[0]-=d,s[1]+=d}}}else a.nestedProperty(e,t).set(i)},e.setScale=function(n){var r=t._size;if(e.overlaying){var a=x.getFromId({_fullLayout:t},e.overlaying);e.domain=a.domain}var i=n&&e._r?"_r":"range",o=e.calendar;e.cleanRange(i);var s,l,c=e.r2l(e[i][0],o),u=e.r2l(e[i][1],o),d="y"===k;if((d?(e._offset=r.t+(1-e.domain[1])*r.h,e._length=r.h*(e.domain[1]-e.domain[0]),e._m=e._length/(c-u),e._b=-e._m*u):(e._offset=r.l+e.domain[0]*r.w,e._length=r.w*(e.domain[1]-e.domain[0]),e._m=e._length/(u-c),e._b=-e._m*c),e._rangebreaks=[],e._lBreaks=0,e._m2=0,e._B=[],e.rangebreaks)&&(e._rangebreaks=e.locateBreaks(Math.min(c,u),Math.max(c,u)),e._rangebreaks.length)){for(s=0;s<e._rangebreaks.length;s++)l=e._rangebreaks[s],e._lBreaks+=Math.abs(l.max-l.min);var p=d;c>u&&(p=!p),p&&e._rangebreaks.reverse();var h=p?-1:1;for(e._m2=h*e._length/(Math.abs(u-c)-e._lBreaks),e._B.push(-e._m2*(d?u:c)),s=0;s<e._rangebreaks.length;s++)l=e._rangebreaks[s],e._B.push(e._B[e._B.length-1]-h*e._m2*(l.max-l.min));for(s=0;s<e._rangebreaks.length;s++)(l=e._rangebreaks[s]).pmin=N(l.min),l.pmax=N(l.max)}if(!isFinite(e._m)||!isFinite(e._b)||e._length<0)throw t._replotting=!1,new Error("Something went wrong with axis scaling")},e.maskBreaks=function(t){var n,r,i,o,l,c=e.rangebreaks||[];c._cachedPatterns||(c._cachedPatterns=c.map(function(t){return t.enabled&&t.bounds?a.simpleMap(t.bounds,t.pattern?s:e.d2c):null})),c._cachedValues||(c._cachedValues=c.map(function(t){return t.enabled&&t.values?a.simpleMap(t.values,e.d2c).sort(a.sorterAsc):null}));for(var u=0;u<c.length;u++){var d=c[u];if(d.enabled)if(d.bounds){var p=d.pattern;switch(r=(n=c._cachedPatterns[u])[0],i=n[1],p){case A:o=(l=new Date(t)).getUTCDay(),r>i&&(i+=7,o<r&&(o+=7));break;case _:o=(l=new Date(t)).getUTCHours()+(l.getUTCMinutes()/60+l.getUTCSeconds()/3600+l.getUTCMilliseconds()/36e5),r>i&&(i+=24,o<r&&(o+=24));break;case"":o=t}if(o>=r&&o<i)return f}else for(var h=c._cachedValues[u],m=0;m<h.length;m++)if(i=(r=h[m])+d.dvalue,t>=r&&t<i)return f}return t},e.locateBreaks=function(t,n){var r,i,o,l,c=[];if(!e.rangebreaks)return c;var u=e.rangebreaks.slice().sort(function(e,t){return e.pattern===A&&t.pattern===_?-1:t.pattern===A&&e.pattern===_?1:0}),d=function(e,r){if((e=a.constrain(e,t,n))!==(r=a.constrain(r,t,n))){for(var i=!0,o=0;o<c.length;o++){var s=c[o];e<s.max&&r>=s.min&&(e<s.min&&(s.min=e),r>s.max&&(s.max=r),i=!1)}i&&c.push({min:e,max:r})}};for(r=0;r<u.length;r++){var p=u[r];if(p.enabled)if(p.bounds){var h=t,f=n;p.pattern&&(h=Math.floor(h)),o=(i=a.simpleMap(p.bounds,p.pattern?s:e.r2l))[0],l=i[1];var m,x,z=new Date(h);switch(p.pattern){case A:x=g,m=(l-o+(l<o?7:0))*y,h+=o*y-(z.getUTCDay()*y+z.getUTCHours()*b+z.getUTCMinutes()*v+z.getUTCSeconds()*M+z.getUTCMilliseconds());break;case _:x=y,m=(l-o+(l<o?24:0))*b,h+=o*b-(z.getUTCHours()*b+z.getUTCMinutes()*v+z.getUTCSeconds()*M+z.getUTCMilliseconds());break;default:h=Math.min(i[0],i[1]),m=x=(f=Math.max(i[0],i[1]))-h}for(var O=h;O<f;O+=x)d(O,O+m)}else for(var w=a.simpleMap(p.values,e.d2c),k=0;k<w.length;k++)d(o=w[k],l=o+p.dvalue)}return c.sort(function(e,t){return e.min-t.min}),c},e.makeCalcdata=function(t,n,r){var i,o,s,l,c=e.type,u="date"===c&&t[n+"calendar"];if(n in t){if(i=t[n],l=t._length||a.minRowLength(i),a.isTypedArray(i)&&("linear"===c||"log"===c)){if(l===i.length)return i;if(i.subarray)return i.subarray(0,l)}if("multicategory"===c)return function(e,t){for(var n=new Array(t),r=0;r<t;r++){var a=(e[0]||[])[r],i=(e[1]||[])[r];n[r]=D([a,i])}return n}(i,l);for(o=new Array(l),s=0;s<l;s++)o[s]=e.d2c(i[s],0,u,r)}else{var d=n+"0"in t?e.d2c(t[n+"0"],0,u):0,p=t["d"+n]?Number(t["d"+n]):1;for(i=t[{x:"y",y:"x"}[n]],l=t._length||i.length,o=new Array(l),s=0;s<l;s++)o[s]=d+s*p}if(e.rangebreaks)for(s=0;s<l;s++)o[s]=e.maskBreaks(o[s]);return o},e.isValidRange=function(t,n){return Array.isArray(t)&&2===t.length&&(n&&null===t[0]||o(e.r2l(t[0])))&&(n&&null===t[1]||o(e.r2l(t[1])))},e.getAutorangeDflt=function(t,n){var r=!e.isValidRange(t,"nullOk");return r&&n&&n.reverseDflt?r="reversed":t&&(null===t[0]&&null===t[1]?r=!0:null===t[0]&&null!==t[1]?r="min":null!==t[0]&&null===t[1]&&(r="max")),r},e.isReversed=function(){var t=e.autorange;return"reversed"===t||"min reversed"===t||"max reversed"===t},e.isPtWithinRange=function(t,n){var r=e.c2l(t[k],null,n),a=e.r2l(e.range[0]),i=e.r2l(e.range[1]);return a<i?a<=r&&r<=i:i<=r&&r<=a},e._emptyCategories=function(){e._categories=[],e._categoriesMap={}},e.clearCalc=function(){var n=e._matchGroup;if(n){var r=null,a=null;for(var i in n){var o=t[x.id2name(i)];if(o._categories){r=o._categories,a=o._categoriesMap;break}}r&&a?(e._categories=r,e._categoriesMap=a):e._emptyCategories()}else e._emptyCategories();if(e._initialCategories)for(var s=0;s<e._initialCategories.length;s++)q(e._initialCategories[s])},e.sortByInitialCategories=function(){var n=[];if(e._emptyCategories(),e._initialCategories)for(var r=0;r<e._initialCategories.length;r++)q(e._initialCategories[r]);n=n.concat(e._traceIndices);var a=e._matchGroup;for(var i in a)if(p!==i){var o=t[x.id2name(i)];o._categories=e._categories,o._categoriesMap=e._categoriesMap,n=n.concat(o._traceIndices)}return n};var F=t._d3locale;"date"===e.type&&(e._dateFormat=F?F.timeFormat:r,e._extraFormat=t._extraFormat),e._separators=t.separators,e._numFormat=F?F.numberFormat:i,delete e._minDtick,delete e._forceTick0}}),uS=Ee((e,t)=>{var n=xs(),r=Fr(),a=T0().BADNUM,i=r.isArrayOrTypedArray,o=r.isDateTime,s=r.cleanNumber,l=Math.round;function c(e,t){return t?n(e):"number"==typeof e}function u(e){return Math.max(1,(e-1)/1e3)}t.exports=function(e,t,r){var d,p=e,h=r.noMultiCategory;if(i(p)&&!p.length)return"-";if(!h&&(i((d=p)[0])&&i(d[1])))return"multicategory";if(h&&Array.isArray(p[0])){for(var f=[],m=0;m<p.length;m++)if(i(p[m]))for(var g=0;g<p[m].length;g++)f.push(p[m][g]);p=f}if(function(e,t){for(var r=e.length,a=u(r),i=0,s=0,c={},d=0;d<r;d+=a){var p=e[l(d)],h=String(p);c[h]||(c[h]=1,o(p,t)&&i++,n(p)&&s++)}return i>2*s}(p,t))return"date";var y="strict"!==r.autotypenumbers;return function(e,t){for(var n=e.length,r=u(n),i=0,o=0,c={},d=0;d<n;d+=r){var p=e[l(d)],h=String(p);if(!c[h]){c[h]=1;var f=typeof p;"boolean"===f?o++:(t?s(p)!==a:"number"===f)?i++:"string"===f&&o++}}return o>2*i}(p,y)?"category":function(e,t){for(var n=e.length,r=0;r<n;r++)if(c(e[r],t))return!0;return!1}(p,y)?"linear":"-"}}),$y=Ee((e,t)=>{var n=mo(),r=xs(),a=Fr(),i=T0().FP_SAFE,o=vo(),s=vs(),l=Ld(),c=l.getFromId,u=l.isLinked;function d(e,t){var n,r,i=[],o=e._fullLayout,s=h(o,t,0),l=h(o,t,1),c=m(e,t),u=c.min,d=c.max;if(0===u.length||0===d.length)return a.simpleMap(t.range,t.r2l);var f=u[0].val,g=d[0].val;for(n=1;n<u.length&&f===g;n++)f=Math.min(f,u[n].val);for(n=1;n<d.length&&f===g;n++)g=Math.max(g,d[n].val);var y=t.autorange,b="reversed"===y||"min reversed"===y||"max reversed"===y;if(!b&&t.range){var v=a.simpleMap(t.range,t.r2l);b=v[1]<v[0]}"reversed"===t.autorange&&(t.autorange=!0);var M,x,z,A,O,w,k=t.rangemode,T="tozero"===k,S="nonnegative"===k,C=t._length,E=C/10,q=0;for(n=0;n<u.length;n++)for(M=u[n],r=0;r<d.length;r++)(w=(x=d[r]).val-M.val-p(t,M.val,x.val))>0&&((O=C-s(M)-l(x))>E?w/O>q&&(z=M,A=x,q=w/O):w/C>q&&(z={val:M.val,nopad:1},A={val:x.val,nopad:1},q=w/C));if(f===g){var D=f-1,R=f+1;if(T)if(0===f)i=[0,1];else{var L=(f>0?d:u).reduce(function(e,t){return Math.max(e,l(t))},0),I=f/(1-Math.min(.5,L/C));i=f>0?[0,I]:[I,0]}else i=S?[Math.max(0,D),Math.max(1,R)]:[D,R]}else T?(z.val>=0&&(z={val:0,nopad:1}),A.val<=0&&(A={val:0,nopad:1})):S&&(z.val-q*s(z)<0&&(z={val:0,nopad:1}),A.val<=0&&(A={val:1,nopad:1})),q=(A.val-z.val-p(t,M.val,x.val))/(C-s(z)-l(A)),i=[z.val-q*s(z),A.val+q*l(A)];return i=_(i,t),t.limitRange&&t.limitRange(),b&&i.reverse(),a.simpleMap(i,t.l2r||Number)}function p(e,t,n){var r=0;if(e.rangebreaks)for(var a=e.locateBreaks(t,n),i=0;i<a.length;i++){var o=a[i];r+=o.max-o.min}return r}function h(e,t,r){var i=.05*t._length,o=t._anchorAxis||{};if(-1!==(t.ticklabelposition||"").indexOf("inside")||-1!==(o.ticklabelposition||"").indexOf("inside")){var l=t.isReversed();if(!l){var c=a.simpleMap(t.range,t.r2l);l=c[1]<c[0]}l&&(r=!r)}var d=0;return u(e,t._id)||(d=function(e,t,r){var i=0,o="x"===t._id.charAt(0);for(var l in e._plots){var c=e._plots[l];if(t._id===c.xaxis._id||t._id===c.yaxis._id){var u=(o?c.yaxis:c.xaxis)||{};if(-1!==(u.ticklabelposition||"").indexOf("inside")&&(!r&&("left"===u.side||"bottom"===u.side)||r&&("top"===u.side||"right"===u.side))){if(u._vals){var d=a.deg2rad(u._tickAngles[u._id+"tick"]||0),p=Math.abs(Math.cos(d)),h=Math.abs(Math.sin(d));if(!u._vals[0].bb){var m=u._id+"tick";u._selections[m].each(function(e){var t=n.select(this);t.select(".text-math-group").empty()&&(e.bb=s.bBox(t.node()))})}for(var g=0;g<u._vals.length;g++){var y=u._vals[g].bb;if(y){var b=2*f+y.width,v=2*f+y.height;i=Math.max(i,o?Math.max(b*p,v*h):Math.max(v*p,b*h))}}}"inside"===u.ticks&&"inside"===u.ticklabelposition&&(i+=u.ticklen||0)}}}return i}(e,t,r)),i=Math.max(d,i),"domain"===t.constrain&&t._inputDomain&&(i*=(t._inputDomain[1]-t._inputDomain[0])/(t.domain[1]-t.domain[0])),function(e){return e.nopad?0:e.pad+(e.extrapad?i:d)}}t.exports={applyAutorangeOptions:_,getAutoRange:d,makePadFn:h,doAutoRange:function(e,t,n){if(t.setScale(),t.autorange){t.range=n?n.slice():d(e,t),t._r=t.range.slice(),t._rl=a.simpleMap(t._r,t.r2l);var r=t._input,i={};i[t._attr+".range"]=t.range,i[t._attr+".autorange"]=t.autorange,o.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,i),r.range=t.range.slice(),r.autorange=t.autorange}var s=t._anchorAxis;if(s&&s.rangeslider){var l=s.rangeslider[t._name];l&&"auto"===l.rangemode&&(l.range=d(e,t)),s._input.rangeslider[t._name]=a.extendFlat({},l)}},findExtremes:function(e,t,n){n||(n={}),e._m||e.setScale();var a,o,s,l,c,u,d,p,h,f=[],m=[],b=t.length,M=n.padded||!1,x=n.tozero&&("linear"===e.type||"-"===e.type),z="log"===e.type,_=!1,A=n.vpadLinearized||!1;function O(e){if(Array.isArray(e))return _=!0,function(t){return Math.max(Number(e[t]||0),0)};var t=Math.max(Number(e||0),0);return function(){return t}}var w=O((e._m>0?n.ppadplus:n.ppadminus)||n.ppad||0),k=O((e._m>0?n.ppadminus:n.ppadplus)||n.ppad||0),T=O(n.vpadplus||n.vpad),S=O(n.vpadminus||n.vpad);if(!_){if(p=1/0,h=-1/0,z)for(a=0;a<b;a++)(o=t[a])<p&&o>0&&(p=o),o>h&&o<i&&(h=o);else for(a=0;a<b;a++)(o=t[a])<p&&o>-i&&(p=o),o>h&&o<i&&(h=o);t=[p,h],b=2}var C={tozero:x,extrapad:M};function E(n){s=t[n],r(s)&&(u=w(n),d=k(n),A?(l=e.c2l(s)-S(n),c=e.c2l(s)+T(n)):(p=s-S(n),h=s+T(n),z&&p<h/10&&(p=h/10),l=e.c2l(p),c=e.c2l(h)),x&&(l=Math.min(0,l),c=Math.max(0,c)),v(l)&&g(f,l,d,C),v(c)&&y(m,c,u,C))}var q=Math.min(6,b);for(a=0;a<q;a++)E(a);for(a=b-1;a>=q;a--)E(a);return{min:f,max:m,opts:n}},concatExtremes:m};var f=3;function m(e,t,n){var r,a,i,o=t._id,s=e._fullData,l=e._fullLayout,u=[],d=[];function p(e,t){for(r=0;r<t.length;r++){var n=e[t[r]],s=(n._extremes||{})[o];if(!0===n.visible&&s){for(a=0;a<s.min.length;a++)i=s.min[a],g(u,i.val,i.pad,{extrapad:i.extrapad});for(a=0;a<s.max.length;a++)i=s.max[a],y(d,i.val,i.pad,{extrapad:i.extrapad})}}}if(p(s,t._traceIndices),p(l.annotations||[],t._annIndices||[]),p(l.shapes||[],t._shapeIndices||[]),t._matchGroup&&!n)for(var h in t._matchGroup)if(h!==t._id){var f=c(e,h),b=m(e,f,!0),v=t._length/f._length;for(a=0;a<b.min.length;a++)i=b.min[a],g(u,i.val,i.pad*v,{extrapad:i.extrapad});for(a=0;a<b.max.length;a++)i=b.max[a],y(d,i.val,i.pad*v,{extrapad:i.extrapad})}return{min:u,max:d}}function g(e,t,n,r){b(e,t,n,r,M)}function y(e,t,n,r){b(e,t,n,r,x)}function b(e,t,n,r,a){for(var i=r.tozero,o=r.extrapad,s=!0,l=0;l<e.length&&s;l++){var c=e[l];if(a(c.val,t)&&c.pad>=n&&(c.extrapad||!o)){s=!1;break}a(t,c.val)&&c.pad<=n&&(o||!c.extrapad)&&(e.splice(l,1),l--)}if(s){var u=i&&0===t;e.push({val:t,pad:u?0:n,extrapad:!u&&o})}}function v(e){return r(e)&&Math.abs(e)<i}function M(e,t){return e<=t}function x(e,t){return e>=t}function z(e,t,n){return void 0===t||void 0===n||(t=e.d2l(t))<(n=e.d2l(n))}function _(e,t){if(!t||!t.autorangeoptions)return e;var n=e[0],r=e[1],i=t.autorangeoptions.include;if(void 0!==i){var o=t.d2l(n),s=t.d2l(r);a.isArrayOrTypedArray(i)||(i=[i]);for(var l=0;l<i.length;l++){var c=t.d2l(i[l]);o>=c&&(o=c,n=c),s<=c&&(s=c,r=c)}}return n=function(e,t){var n=t.autorangeoptions;return n&&void 0!==n.minallowed&&z(t,n.minallowed,n.maxallowed)?n.minallowed:n&&void 0!==n.clipmin&&z(t,n.clipmin,n.clipmax)?Math.max(e,t.d2l(n.clipmin)):e}(n,t),r=function(e,t){var n=t.autorangeoptions;return n&&void 0!==n.maxallowed&&z(t,n.minallowed,n.maxallowed)?n.maxallowed:n&&void 0!==n.clipmax&&z(t,n.clipmin,n.clipmax)?Math.min(e,t.d2l(n.clipmax)):e}(r,t),[n,r]}}),es=Ee((e,t)=>{var n=mo(),r=xs(),a=td(),i=vo(),o=Fr(),s=o.strTranslate,l=q1(),c=xw(),u=ao(),d=vs(),p=vp(),h=Bse(),f=(sh(),T0()),m=f.ONEMAXYEAR,g=f.ONEAVGYEAR,y=f.ONEMINYEAR,b=f.ONEMAXQUARTER,v=f.ONEAVGQUARTER,M=f.ONEMINQUARTER,x=f.ONEMAXMONTH,z=f.ONEAVGMONTH,_=f.ONEMINMONTH,A=f.ONEWEEK,O=f.ONEDAY,w=O/2,k=f.ONEHOUR,T=f.ONEMIN,S=f.ONESEC,C=f.ONEMILLI,E=f.ONEMICROSEC,q=f.MINUS_SIGN,D=f.BADNUM,R={K:"zeroline"},L={K:"gridline",L:"path"},I={K:"minor-gridline",L:"path"},W={K:"tick",L:"path"},N={K:"tick",L:"text"},P={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},B=lh(),F=B.MID_SHIFT,j=B.CAP_SHIFT,U=B.LINE_SPACING,V=B.OPPOSITE_SIDE,H=t.exports={};H.setConvert=g3();var X=uS(),G=Ld(),Y=G.idSort,Z=G.isLinked;H.id2name=G.id2name,H.name2id=G.name2id,H.cleanId=G.cleanId,H.list=G.list,H.listIds=G.listIds,H.getFromId=G.getFromId,H.getFromTrace=G.getFromTrace;var $=$y();H.getAutoRange=$.getAutoRange,H.findExtremes=$.findExtremes;function J(e){var t=1e-4*(e[1]-e[0]);return[e[0]-t,e[1]+t]}H.coerceRef=function(e,t,n,r,a,i){var s=r.charAt(r.length-1),l=n._fullLayout._subplots[s+"axis"],c=r+"ref",u={};return a||(a=l[0]||("string"==typeof i?i:i[0])),i||(i=a),l=l.concat(l.map(function(e){return e+" domain"})),u[c]={valType:"enumerated",values:l.concat(i?"string"==typeof i?[i]:i:[]),dflt:a},o.coerce(e,t,u,c)},H.coerceRefArray=function(e,t,n,r,a,i,s){let l=r.charAt(r.length-1);var c=n._fullLayout._subplots[l+"axis"];let u=r+"ref";var d=e[u];a||(a=c[0]||("string"==typeof i?i:i[0])),c=(c=c.concat(c.map(e=>e+" domain"))).concat(i||[]),d.length>s?(o.warn("Array attribute "+u+" has more entries than expected, truncating to "+s),d=d.slice(0,s)):d.length<s&&(o.warn("Array attribute "+u+" has fewer entries than expected, extending with default value"),d=d.concat(Array(s-d.length).fill(a)));for(var p=0;p<d.length;p++)d[p]=G.cleanId(d[p],l,!0)||d[p],c.includes(d[p])||(d[p]=a);return t[u]=d,d},H.getRefType=function(e){return void 0===e?e:Array.isArray(e)?"array":"paper"===e?"paper":"pixel"===e?"pixel":/( domain)$/.test(e)?"domain":"range"},H.coercePosition=function(e,t,n,r,a,i){var s,l;if("range"!==H.getRefType(r))s=o.ensureNumber,l=n(a,i);else{var c=H.getFromId(t,r);l=n(a,i=c.fraction2r(i)),s=c.cleanPos}e[a]=s(l)},H.cleanPosition=function(e,t,n){return("paper"===n||"pixel"===n?o.ensureNumber:H.getFromId(t,n).cleanPos)(e)},H.redrawComponents=function(e,t){t=t||H.listIds(e);var n=e._fullLayout;function r(r,a,o,s){for(var l=i.getComponentMethod(r,a),c={},u=0;u<t.length;u++)for(var d=n[H.id2name(t[u])][o],p=0;p<d.length;p++){var h=d[p];if(!c[h]&&(l(e,h),c[h]=1,s))return}}r("annotations","drawOne","_annIndices"),r("shapes","drawOne","_shapeIndices"),r("images","draw","_imgIndices",!0),r("selections","drawOne","_selectionIndices")};var Q=H.getDataConversions=function(e,t,n,r){var a,i="x"===n||"y"===n||"z"===n?n:r;if(o.isArrayOrTypedArray(i)){if(a={type:X(r,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},H.setConvert(a),"category"===a.type)for(var s=0;s<r.length;s++)a.d2c(r[s])}else a=H.getFromTrace(e,t,i);return a?{d2c:a.d2c,c2d:a.c2d}:"ids"===i?{d2c:ee,c2d:ee}:{d2c:K,c2d:K}};function K(e){return+e}function ee(e){return String(e)}function te(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function ne(e,t){return Math.abs(e/t-1)<.001}function re(e){return+e.substring(1)}function ae(e,t){return e.rangebreaks&&(t=t.filter(function(t){return e.maskBreaks(t.x)!==D})),t}function ie(e){var t=e._mainAxis,n=[];if(t._vals)for(var r=0;r<t._vals.length;r++)if(!t._vals[r].noTick){var a=t.l2p(t._vals[r].x),i=e.p2l(a),o=H.tickText(e,i);t._vals[r].minor&&(o.minor=!0,o.text=""),n.push(o)}return n=ae(e,n)}function oe(e,t){var n=J(o.simpleMap(e.range,e.r2l)),r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),i="category"===e.type?e.d2l_noadd:e.d2l;"log"===e.type&&"L"!==String(e.dtick).charAt(0)&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(var s=[],l=0;l<=1;l++)if((void 0===t||!(t&&l||!1===t&&!l))&&(!l||e.minor)){var c=l?e.minor.tickvals:e.tickvals,u=l?[]:e.ticktext;if(c){o.isArrayOrTypedArray(u)||(u=[]);for(var d=0;d<c.length;d++){var p=i(c[d]);if(p>r&&p<a){var h=H.tickText(e,p,!1,String(u[d]));l&&(h.minor=!0,h.text=""),s.push(h)}}}}return s=ae(e,s)}H.getDataToCoordFunc=function(e,t,n,r){return Q(e,t,n,r).d2c},H.counterLetter=function(e){var t=e.charAt(0);return"x"===t?"y":"y"===t?"x":void 0},H.minDtick=function(e,t,n,r){-1===["log","category","multicategory"].indexOf(e.type)&&r?void 0===e._minDtick?(e._minDtick=t,e._forceTick0=n):e._minDtick&&((e._minDtick/t+1e-6)%1<2e-6&&((n-e._forceTick0)/t%1+1.000001)%1<2e-6?(e._minDtick=t,e._forceTick0=n):((t/e._minDtick+1e-6)%1>2e-6||((n-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},H.saveRangeInitial=function(e,t){for(var n=H.list(e,"",!0),r=!1,a=0;a<n.length;a++){var i=n[a],o=void 0===i._rangeInitial0&&void 0===i._rangeInitial1,s=o||i.range[0]!==i._rangeInitial0||i.range[1]!==i._rangeInitial1,l=i.autorange;(o&&!0!==l||t&&s)&&(i._rangeInitial0="min"===l||"max reversed"===l?void 0:i.range[0],i._rangeInitial1="max"===l||"min reversed"===l?void 0:i.range[1],i._autorangeInitial=l,r=!0)}return r},H.saveShowSpikeInitial=function(e,t){for(var n=H.list(e,"",!0),r=!1,a="on",i=0;i<n.length;i++){var o=n[i],s=void 0===o._showSpikeInitial,l=s||o.showspikes!==o._showspikes;(s||t&&l)&&(o._showSpikeInitial=o.showspikes,r=!0),"on"===a&&!o.showspikes&&(a="off")}return e._fullLayout._cartesianSpikesEnabled=a,r},H.autoBin=function(e,t,n,a,i,s){var l,c=o.aggNums(Math.min,null,e),u=o.aggNums(Math.max,null,e);if("category"===t.type||"multicategory"===t.type)return{start:c-.5,end:u+.5,size:Math.max(1,Math.round(s)||1),_dataSpan:u-c};if(i||(i=t.calendar),l="log"===t.type?{type:"linear",range:[c,u]}:{type:t.type,range:o.simpleMap([c,u],t.c2r,0,i),calendar:i},H.setConvert(l),s=s&&h.dtick(s,l.type))l.dtick=s,l.tick0=h.tick0(void 0,l.type,i);else{var d;if(n)d=(u-c)/n;else{var p=o.distinctVals(e),f=Math.pow(10,Math.floor(Math.log(p.minDiff)/Math.LN10)),m=f*o.roundUp(p.minDiff/f,[.9,1.9,4.9,9.9],!0);d=Math.max(m,2*o.stdev(e)/Math.pow(e.length,a?.25:.4)),r(d)||(d=1)}H.autoTicks(l,d)}var g,y=l.dtick,b=H.tickIncrement(H.tickFirst(l),y,"reverse",i);if("number"==typeof y)b=function(e,t,n,a,i){var o=0,s=0,l=0,c=0;function u(t){return(1+100*(t-e)/n.dtick)%100<2}for(var d=0;d<t.length;d++)t[d]%1==0?l++:r(t[d])||c++,u(t[d])&&o++,u(t[d]+n.dtick/2)&&s++;var p=t.length-c;if(l===p&&"date"!==n.type)n.dtick<1?e=a-.5*n.dtick:(e-=.5,e+n.dtick<a&&(e+=n.dtick));else if(s<.1*p&&(o>.3*p||u(a)||u(i))){var h=n.dtick/2;e+=e+h<a?h:-h}return e}(b,e,l,c,u),g=b+(1+Math.floor((u-b)/y))*y;else for("M"===l.dtick.charAt(0)&&(b=function(e,t,n,r,a){var i=o.findExactDates(t,a),s=.8;if(i.exactDays>s){var l=Number(n.slice(1));i.exactYears>s&&l%12==0?e=H.tickIncrement(e,"M6","reverse")+1.5*O:i.exactMonths>s?e=H.tickIncrement(e,"M1","reverse")+15.5*O:e-=w;var c=H.tickIncrement(e,n);if(c<=r)return c}return e}(b,e,y,c,i)),g=b,0;g<=u;)g=H.tickIncrement(g,y,!1,i);return{start:t.c2r(b,0,i),end:t.c2r(g,0,i),size:y,_dataSpan:u-c}},H.prepMinorTicks=function(e,t,n){if(!t.minor?.dtick){delete e.dtick;var a,i=t.dtick&&r(t._tmin);if(i){var s=H.tickIncrement(t._tmin,t.dtick,!0);a=[t._tmin,.99*s+.01*t._tmin]}else{var l=o.simpleMap(t.range,t.r2l);a=[l[0],.8*l[0]+.2*l[1]]}if(e.range=o.simpleMap(a,t.l2r),e._isMinor=!0,H.prepTicks(e,n),i){var c=r(t.dtick),u=r(e.dtick),d=c?t.dtick:+t.dtick.substring(1),p=u?e.dtick:+e.dtick.substring(1);c&&u?te(d,p)?d===2*A&&p===2*O&&(e.dtick=A):d===2*A&&p===3*O?e.dtick=A:d!==A||(t._input.minor||{}).nticks?ne(d/p,2.5)?e.dtick=d/2:e.dtick=d:e.dtick=O:"M"===String(t.dtick).charAt(0)?u?e.dtick="M1":te(d,p)?d>=12&&2===p&&(e.dtick="M3"):e.dtick=t.dtick:"L"===String(e.dtick).charAt(0)?"L"===String(t.dtick).charAt(0)?te(d,p)||(e.dtick=ne(d/p,2.5)?t.dtick/2:t.dtick):e.dtick="D1":"D2"===e.dtick&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}void 0===t.minor?._tick0Init&&(e.tick0=t.tick0)},H.prepTicks=function(e,t){var n=o.simpleMap(e.range,e.r2l,void 0,void 0,t);if("auto"===e.tickmode||!e.dtick){var a,i=e.nticks;i||("category"===e.type||"multicategory"===e.type?(a=e.tickfont?o.bigFont(e.tickfont.size||12):15,i=e._length/a):(a="y"===e._id.charAt(0)?40:80,i=o.constrain(e._length/a,4,9)+1),"radialaxis"===e._name&&(i*=2)),e.minor&&"array"!==e.minor.tickmode||"array"===e.tickmode&&(i*=100),e._roughDTick=Math.abs(n[1]-n[0])/i,H.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}"period"===e.ticklabelmode&&function(e){var t;function n(){return!(r(e.dtick)||"M"!==e.dtick.charAt(0))}var a=n(),i=H.getTickFormat(e);if(i){var o=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(i)||(/%[HI]/.test(i)?(t=k,o&&!a&&e.dtick<k&&(e.dtick=k)):/%p/.test(i)?(t=w,o&&!a&&e.dtick<w&&(e.dtick=w)):/%[Aadejuwx]/.test(i)?(t=O,o&&!a&&e.dtick<O&&(e.dtick=O)):/%[UVW]/.test(i)?(t=A,o&&!a&&e.dtick<A&&(e.dtick=A)):/%[Bbm]/.test(i)?(t=z,o&&(a?re(e.dtick)<1:e.dtick<_)&&(e.dtick="M1")):/%[q]/.test(i)?(t=v,o&&(a?re(e.dtick)<3:e.dtick<M)&&(e.dtick="M3")):/%[Yy]/.test(i)&&(t=g,o&&(a?re(e.dtick)<12:e.dtick<y)&&(e.dtick="M12")))}a=n(),a&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=t}(e),e.tick0||(e.tick0="date"===e.type?"2000-01-01":0),"date"===e.type&&e.dtick<.1&&(e.dtick=.1),me(e)},H.calcTicks=function(e,t){for(var n=e.type,a=e.calendar,i=e.ticklabelstep,s="period"===e.ticklabelmode,l=e.range[0]>e.range[1],c=!e.ticklabelindex||o.isArrayOrTypedArray(e.ticklabelindex)?e.ticklabelindex:[e.ticklabelindex],u=o.simpleMap(e.range,e.r2l,void 0,void 0,t),d=u[1]<u[0],p=Math.min(u[0],u[1]),h=Math.max(u[0],u[1]),f=Math.max(1e3,e._length||0),q=[],R=[],L=[],I=[],W=[],N=e.minor&&(e.minor.ticks||e.minor.showgrid),P=N||c,B=1;B>=(P?0:1);B--){var F=!B;B?(e._dtickInit=e.dtick,e._tick0Init=e.tick0):P&&(e.minor._dtickInit=e.minor.dtick,e.minor._tick0Init=e.minor.tick0);var j=B?e:o.extendFlat({},e,P?e.minor:{minor:{}});if(F?H.prepMinorTicks(j,e,t):H.prepTicks(j,t),"array"!==j.tickmode)if("sync"!==j.tickmode){var U=J(u),V=U[0],X=U[1],G=r(j.dtick),Y="log"===n&&!(G||"L"===j.dtick.charAt(0)),Z=H.tickFirst(j,t);if(B){if(e._tmin=Z,Z<V!==d)break;("category"===n||"multicategory"===n)&&(X=d?Math.max(-.5,X):Math.min(e._categories.length-.5,X))}var $,Q,K=null,ee=Z;if(B)G?Q=e.dtick:"date"===n?"string"==typeof e.dtick&&"M"===e.dtick.charAt(0)&&(Q=z*e.dtick.substring(1)):Q=e._roughDTick,$=Math.round((e.r2l(ee)-e.r2l(e.tick0))/Q)-1;var te=j.dtick;for(j.rangebreaks&&j._tick0Init!==j.tick0&&(ee=We(ee,e),d||(ee=H.tickIncrement(ee,te,!d,a))),(B||c)&&s&&(ee=H.tickIncrement(ee,te,!d,a),B&&$--);d?ee>=X:ee<=X;ee=H.tickIncrement(ee,te,d,a)){if(B&&$++,j.rangebreaks&&!d){if(ee<V)continue;if(j.maskBreaks(ee)===D&&We(ee,j)>=h)break}if(L.length>f||ee===K)break;K=ee;var ne={value:ee};B?(Y&&ee!==(0|ee)&&(ne.simpleLabel=!0),i>1&&$%i&&(ne.skipLabel=!0),L.push(ne)):(ne.minor=!0,I.push(ne))}}else L=[],q=ie(e);else B?(L=[],q=oe(e,!F)):(I=[],R=oe(e,!F))}var re;!I||I.length<3?c=!1:function(e,t){return/%f/.test(t)?e>=E:/%L/.test(t)?e>=C:/%[SX]/.test(t)?e>=S:/%M/.test(t)?e>=T:/%[HI]/.test(t)?e>=k:/%p/.test(t)?e>=w:/%[Aadejuwx]/.test(t)?e>=O:/%[UVW]/.test(t)?e>=A:/%[Bbm]/.test(t)?e>=_:/%[q]/.test(t)?e>=M:!/%[Yy]/.test(t)||e>=y}((I[2].value-I[1].value)*(l?-1:1),e.tickformat)||(c=!1,I=I.slice(1));if(c){var ae=L.concat(I);s&&L.length&&(ae=ae.slice(1)),(ae=ae.sort(function(e,t){return e.value-t.value}).filter(function(e,t,n){return 0===t||e.value!==n[t-1].value})).map(function(e,t){return void 0!==e.minor||e.skipLabel?null:t}).filter(function(e){return null!==e}).forEach(function(e){c.map(function(t){var n=e+t;n>=0&&n<ae.length&&o.pushUnique(W,ae[n])})}),L.forEach(function(e){e.skipLabel=-1===W.indexOf(e)})}else W=L;if(N&&!("inside"===e.minor.ticks&&"outside"===e.ticks||"outside"===e.minor.ticks&&"inside"===e.ticks)){for(var se=L.map(function(e){return e.value}),le=[],ce=0;ce<I.length;ce++){var ue=I[ce],de=ue.value;if(-1===se.indexOf(de)){for(var pe=!1,he=0;!pe&&he<L.length;he++)1e7+L[he].value===1e7+de&&(pe=!0);pe||le.push(ue)}}I=le}if(s&&function(e,t,n){for(var r=0;r<e.length;r++){var a=e[r].value,i=r,o=r+1;r<e.length-1?(i=r,o=r+1):r>0?(i=r-1,o=r):(i=r,o=r);var s,l=e[i].value,c=e[o].value,u=Math.abs(c-l),d=n||u,p=0;d>=y?p=u>=y&&u<=m?u:g:n===v&&d>=M?p=u>=M&&u<=b?u:v:d>=_?p=u>=_&&u<=x?u:z:n===A&&d>=A?p=A:d>=O?p=O:n===w&&d>=w?p=w:n===k&&d>=k&&(p=k),p>=u&&(p=u,s=!0);var h=a+p;if(t.rangebreaks&&p>0){for(var f=0,T=0;T<84;T++){var S=(T+.5)/84;t.maskBreaks(a*(1-S)+S*h)!==D&&f++}(p*=f/84)||(e[r].drop=!0),s&&u>A&&(p=u)}(p>0||0===r)&&(e[r].periodX=a+p/2)}}(W,e,e._definedDelta),e.rangebreaks){var fe="y"===e._id.charAt(0),me=1;"auto"===e.tickmode&&(me=e.tickfont?e.tickfont.size:12);var ge=NaN;for(re=L.length-1;re>-1;re--)if(L[re].drop)L.splice(re,1);else{L[re].value=We(L[re].value,e);var ye=e.c2p(L[re].value);(fe?ge>ye-me:ge<ye+me)?L.splice(d?re+1:re,1):ge=ye}}Ie(e)&&360===Math.abs(u[1]-u[0])&&L.pop(),e._tmax=(L[L.length-1]||{}).value,e._prevDateHead="",e._inCalcTicks=!0;var be,ve,Me=function(t){t.text="",e._prevDateHead=be};function xe(e,t){var n=H.tickText(e,t.value,!1,t.simpleLabel),r=t.periodX;return void 0!==r&&(n.periodX=r,(r>h||r<p)&&(r>h&&(n.periodX=h),r<p&&(n.periodX=p),Me(n))),n}for(L=L.concat(I),re=0;re<L.length;re++){var ze=L[re].minor,_e=L[re].value;ze?((ve=c&&-1!==W.indexOf(L[re])?xe(e,L[re]):{x:_e}).minor=!0,R.push(ve)):(be=e._prevDateHead,ve=xe(e,L[re]),L[re].skipLabel&&Me(ve),q.push(ve))}return s&&c&&R.length&&(R[0].noTick=!0),q=q.concat(R),e._inCalcTicks=!1,s&&q.length&&(q[0].noTick=!0),q};var se=[2,5,10],le=[1,2,3,6,12],ce=[1,2,5,10,15,30],ue=[1,2,3,7,14],de=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],pe=[-.301,0,.301,.699,1],he=[15,30,45,90,180];function fe(e,t,n){return t*o.roundUp(e/t,n)}function me(e){var t=e.dtick;if(e._tickexponent=0,!r(t)&&"string"!=typeof t&&(t=1),("category"===e.type||"multicategory"===e.type)&&(e._tickround=null),"date"===e.type){var n=e.r2l(e.tick0),a=e.l2r(n).replace(/(^-|i)/g,""),i=a.length;if("M"===String(t).charAt(0))i>10||"01-01"!==a.slice(5)?e._tickround="d":e._tickround=+t.slice(1)%12==0?"y":"m";else if(t>=O&&i<=10||t>=15*O)e._tickround="d";else if(t>=T&&i<=16||t>=k)e._tickround="M";else if(t>=S&&i<=19||t>=T)e._tickround="S";else{var o=e.l2r(n+t).replace(/^-/,"").length;e._tickround=Math.max(i,o)-20,e._tickround<0&&(e._tickround=4)}}else if(r(t)||"L"===t.charAt(0)){var s=e.range.map(e.r2d||Number);r(t)||(t=Number(t.slice(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),c=Math.floor(Math.log(l)/Math.LN10+.01),u=void 0===e.minexponent?3:e.minexponent;Math.abs(c)>u&&(ve(e.exponentformat)&&"SI extended"!==e.exponentformat&&!Me(c)||ve(e.exponentformat)&&"SI extended"===e.exponentformat&&!xe(c)?e._tickexponent=3*Math.round((c-1)/3):e._tickexponent=c)}else e._tickround=null}function ge(e,t,n){var r=e.tickfont||{};return{x:t,dx:0,dy:0,text:n||"",fontSize:r.size,font:r.family,fontWeight:r.weight,fontStyle:r.style,fontVariant:r.variant,fontTextcase:r.textcase,fontLineposition:r.lineposition,fontShadow:r.shadow,fontColor:r.color}}H.autoTicks=function(e,t,n){var a;function i(e){return Math.pow(e,Math.floor(Math.log(t)/Math.LN10))}if("date"===e.type){e.tick0=o.dateTick0(e.calendar,0);var s=2*t;if(s>g)t/=g,a=i(10),e.dtick="M"+12*fe(t,a,se);else if(s>z)t/=z,e.dtick="M"+fe(t,1,le);else if(s>O){if(e.dtick=fe(t,O,e._hasDayOfWeekBreaks?[1,2,7,14]:ue),!n){var l=H.getTickFormat(e),c="period"===e.ticklabelmode;c&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=o.dateTick0(e.calendar,2):e.tick0=o.dateTick0(e.calendar,1),c&&(e._dowTick0=e.tick0)}}else s>k?e.dtick=fe(t,k,le):s>T?e.dtick=fe(t,T,ce):s>S?e.dtick=fe(t,S,ce):(a=i(10),e.dtick=fe(t,a,se))}else if("log"===e.type){e.tick0=0;var u=o.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(u[1]-u[0])<1){var d=1.5*Math.abs((u[1]-u[0])/t);t=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/d,a=i(10),e.dtick="L"+fe(t,a,se)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type||"multicategory"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):Ie(e)?(e.tick0=0,a=1,e.dtick=fe(t,a,he)):(e.tick0=0,a=i(10),e.dtick=fe(t,a,se));if(0===e.dtick&&(e.dtick=1),!r(e.dtick)&&"string"!=typeof e.dtick){var p=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(p)}},H.tickIncrement=function(e,t,a,i){var s=a?-1:1;if(r(t))return o.increment(e,s*t);var l=t.charAt(0),c=s*Number(t.slice(1));if("M"===l)return o.incrementMonth(e,c,i);if("L"===l)return Math.log(Math.pow(10,e)+c)/Math.LN10;if("D"===l){var u="D2"===t?pe:de,d=e+.01*s,p=o.roundUp(o.mod(d,1),u,a);return Math.floor(d)+Math.log(n.round(Math.pow(10,p),1))/Math.LN10}throw"unrecognized dtick "+String(t)},H.tickFirst=function(e,t){var a=e.r2l||Number,i=o.simpleMap(e.range,a,void 0,void 0,t),s=i[1]<i[0],l=s?Math.floor:Math.ceil,c=J(i)[0],u=e.dtick,d=a(e.tick0);if(r(u)){var p=l((c-d)/u)*u+d;return("category"===e.type||"multicategory"===e.type)&&(p=o.constrain(p,0,e._categories.length-1)),p}var h=u.charAt(0),f=Number(u.slice(1));if("M"===h){for(var m,g,y,b=0,v=d;b<10;){if(((m=H.tickIncrement(v,u,s,e.calendar))-c)*(v-c)<=0)return s?Math.min(v,m):Math.max(v,m);g=(c-(v+m)/2)/(m-v),y=h+(Math.abs(Math.round(g))||1)*f,v=H.tickIncrement(v,y,g<0?!s:s,e.calendar),b++}return o.error("tickFirst did not converge",e),v}if("L"===h)return Math.log(l((Math.pow(10,c)-d)/f)*f+d)/Math.LN10;if("D"===h){var M="D2"===u?pe:de,x=o.roundUp(o.mod(c,1),M,s);return Math.floor(c)+Math.log(n.round(Math.pow(10,x),1))/Math.LN10}throw"unrecognized dtick "+String(u)},H.tickText=function(e,t,n,a){var i,s=ge(e,t),l="array"===e.tickmode,c=n||l,u=e.type,d="category"===u?e.d2l_noadd:e.d2l,p=function(t){var n=e.l2p(t);return n>=0&&n<=e._length?t:null};if(l&&o.isArrayOrTypedArray(e.ticktext)){var h=o.simpleMap(e.range,e.r2l),f=(Math.abs(h[1]-h[0])-(e._lBreaks||0))/1e4;for(i=0;i<e.ticktext.length&&!(Math.abs(t-d(e.tickvals[i]))<f);i++);if(i<e.ticktext.length)return s.text=String(e.ticktext[i]),s.xbnd=[p(s.x-.5),p(s.x+e.dtick-.5)],s}function m(r){if(void 0===r)return!0;if(n)return"none"===r;var a={first:e._tmin,last:e._tmax}[r];return"all"!==r&&t!==a}var g=n?"never":"none"!==e.exponentformat&&m(e.showexponent)?"hide":"";if("date"===u?function(e,t,n,a){var i=e._tickround,s=n&&e.hoverformat||H.getTickFormat(e);a=!s&&a,a&&(i=r(i)?4:{y:"m",m:"d",d:"M",M:"S",S:4}[i]);var l,c=o.formatDate(t.x,s,i,e._dateFormat,e.calendar,e._extraFormat),u=c.indexOf("\n");if(-1!==u&&(l=c.slice(u+1),c=c.slice(0,u)),a&&(void 0===l||"00:00:00"!==c&&"00:00"!==c?8===c.length&&(c=c.replace(/:00$/,"")):(c=l,l="")),l)if(n)"d"===i?c+=", "+l:c=l+(c?", "+c:"");else if(e._inCalcTicks&&e._prevDateHead===l){var d=Ne(e),p=e._trueSide||e.side;(!d&&"top"===p||d&&"bottom"===p)&&(c+="<br> ")}else e._prevDateHead=l,c+="<br>"+l;t.text=c}(e,s,n,c):"log"===u?function(e,t,n,a,i){var s=e.dtick,l=t.x,c=e.tickformat,u="string"==typeof s&&s.charAt(0);if("never"===i&&(i=""),a&&"L"!==u&&(s="L3",u="L"),c||"L"===u)t.text=ze(Math.pow(10,l),e,i,a);else if(r(s)||"D"===u&&("complete"===e.minorloglabels||o.mod(l+.01,1)<.1)){"complete"===e.minorloglabels&&!(o.mod(l+.01,1)<.1)&&(t.fontSize*=.75);var d=Math.pow(10,l).toExponential(0).split("e"),p=+d[1],h=Math.abs(p),f=e.exponentformat;"power"===f||ve(f)&&"SI extended"!==f&&Me(p)||ve(f)&&"SI extended"===f&&xe(p)?(t.text=d[0],h>0&&(t.text+="x10"),"1x10"===t.text&&(t.text="10"),0!==p&&1!==p&&(t.text+="<sup>"+(p>0?"":q)+h+"</sup>"),t.fontSize*=1.25):("e"===f||"E"===f)&&h>2?t.text=d[0]+f+(p>0?"+":q)+h:(t.text=ze(Math.pow(10,l),e,"","fakehover"),"D1"===s&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6))}else{if("D"!==u)throw"unrecognized dtick "+String(s);t.text="none"===e.minorloglabels?"":String(Math.round(Math.pow(10,o.mod(l,1)))),t.fontSize*=.75}if("D1"===e.dtick){var m=String(t.text).charAt(0);("0"===m||"1"===m)&&("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(l<0?.5:.25)))}}(e,s,0,c,g):"category"===u?function(e,t){var n=e._categories[Math.round(t.x)];void 0===n&&(n=""),t.text=String(n)}(e,s):"multicategory"===u?function(e,t,n){var r=Math.round(t.x),a=e._categories[r]||[],i=void 0===a[1]?"":String(a[1]),o=void 0===a[0]?"":String(a[0]);n?t.text=o+" - "+i:(t.text=i,t.text2=o)}(e,s,n):Ie(e)?function(e,t,n,r,a){if("radians"!==e.thetaunit||n)t.text=ze(t.x,e,a,r);else{var i=t.x/180;if(0===i)t.text="0";else{var s=function(e){function t(e,t){return Math.abs(e-t)<=1e-6}function n(e,r){return t(r,0)?e:n(r,e%r)}function r(e){for(var n=1;!t(Math.round(e*n)/n,e);)n*=10;return n}var a=r(e),i=e*a,o=Math.abs(n(i,a));return[Math.round(i/o),Math.round(a/o)]}(i);if(s[1]>=100)t.text=ze(o.deg2rad(t.x),e,a,r);else{var l=t.x<0;1===s[1]?1===s[0]?t.text="π":t.text=s[0]+"π":t.text=["<sup>",s[0],"</sup>","","<sub>",s[1],"</sub>","π"].join(""),l&&(t.text=q+t.text)}}}}(e,s,n,c,g):function(e,t,n,r,a){"never"===a?a="":"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide"),t.text=ze(t.x,e,a,r)}(e,s,0,c,g),a||(e.tickprefix&&!m(e.showtickprefix)&&(s.text=e.tickprefix+s.text),e.ticksuffix&&!m(e.showticksuffix)&&(s.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(s.text)){var y=e.labelalias[s.text];"string"==typeof y&&(s.text=y)}return("boundaries"===e.tickson||e.showdividers)&&(s.xbnd=[p(s.x-.5),p(s.x+e.dtick-.5)]),s},H.hoverLabelText=function(e,t,n){n&&(e=o.extendFlat({},e,{hoverformat:n}));var r=o.isArrayOrTypedArray(t)?t[0]:t,a=o.isArrayOrTypedArray(t)?t[1]:void 0;if(void 0!==a&&a!==r)return H.hoverLabelText(e,r,n)+" - "+H.hoverLabelText(e,a,n);var i="log"===e.type&&r<=0,s=H.tickText(e,e.c2l(i?-r:r),"hover").text;return i?0===r?"0":q+s:s};var ye=["f","p","n","μ","m","","k","M","G","T"],be=["q","r","y","z","a",...ye,"P","E","Z","Y","R","Q"],ve=e=>["SI","SI extended","B"].includes(e);function Me(e){return e>14||e<-15}function xe(e){return e>32||e<-30}function ze(e,t,n,a){var i=e<0,s=t._tickround,l=n||t.exponentformat||"B",c=t._tickexponent,u=H.getTickFormat(t),d=t.separatethousands;if(a){var p={exponentformat:l,minexponent:t.minexponent,dtick:"none"===t.showexponent?t.dtick:r(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};me(p),s=(Number(p._tickround)||0)+4,c=p._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return t._numFormat(u)(e).replace(/-/g,q);var h,f=Math.pow(10,-s)/2;if("none"===l&&(c=0),(e=Math.abs(e))<f)e="0",i=!1;else{if(e+=f,c&&(e*=Math.pow(10,-c),s+=c),0===s)e=String(Math.floor(e));else if(s<0){e=(e=String(Math.round(e))).slice(0,Math.max(0,e.length+s));for(var m=s;m<0;m++)e+="0"}else{var g=(e=String(e)).indexOf(".")+1;g&&(e=e.slice(0,g+s).replace(/\.?0+$/,""))}e=o.numSeparate(e,t._separators,d)}c&&"hide"!==l&&(function(e,t){return!!ve(t)&&!!("SI extended"===t&&xe(e)||"SI extended"!==t&&Me(e))}(c,l)&&(l="power"),h=c<0?q+-c:"power"!==l?"+"+c:String(c),"e"===l||"E"===l?e+=l+h:"power"===l?e+="×10<sup>"+h+"</sup>":"B"===l&&9===c?e+="B":ve(l)&&(e+="SI extended"===l?be[c/3+10]:ye[c/3+5]));return i?q+e:e}function _e(e,t){if(e){var n=Object.keys(P).reduce(function(e,n){return-1!==t.indexOf(n)&&P[n].forEach(function(t){e[t]=1}),e},{});Object.keys(e).forEach(function(t){n[t]||(1===t.length?e[t]=0:delete e[t])})}}function Ae(e,t){for(var n=[],r={},a=0;a<t.length;a++){var i=t[a];r[i.text2]?r[i.text2].push(i.x):r[i.text2]=[i.x]}for(var s in r)n.push(ge(e,o.interp(r[s],.5),s));return n}function Oe(e){return void 0!==e.periodX?e.periodX:e.x}function we(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}function ke(e){var t=e.title.font.size,n=(e.title.text.match(l.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(j+n*U):n?t*(n+1)*U:t}function Te(e,t){var n=e.l2p(t);return n>1&&n<e._length-1}function Se(e){var t=n.select(e),r=t.select(".text-math-group");return r.empty()?t.select("text"):r}function Ce(e){return e._id+".automargin"}function Ee(e){return Ce(e)+".mirror"}function qe(e){return e._id+".rangeslider"}function De(e,t){for(var n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n])}function Re(e,t,n){var r,a,i=[],s=[],l=e.layout;for(r=0;r<t.length;r++)i.push(H.getFromId(e,t[r]));for(r=0;r<n.length;r++)s.push(H.getFromId(e,n[r]));var c=Object.keys(p),u=["anchor","domain","overlaying","position","side","tickangle","editType"],d=["linear","log"];for(r=0;r<c.length;r++){var h=c[r],f=i[0][h],m=s[0][h],g=!0,y=!1,b=!1;if("_"!==h.charAt(0)&&"function"!=typeof f&&-1===u.indexOf(h)){for(a=1;a<i.length&&g;a++){var v=i[a][h];"type"===h&&-1!==d.indexOf(f)&&-1!==d.indexOf(v)&&f!==v?y=!0:v!==f&&(g=!1)}for(a=1;a<s.length&&g;a++){var M=s[a][h];"type"===h&&-1!==d.indexOf(m)&&-1!==d.indexOf(M)&&m!==M?b=!0:s[a][h]!==m&&(g=!1)}g&&(y&&(l[i[0]._name].type="linear"),b&&(l[s[0]._name].type="linear"),Le(l,h,i,s,e._fullLayout._dfltTitle))}}for(r=0;r<e._fullLayout.annotations.length;r++){var x=e._fullLayout.annotations[r];-1!==t.indexOf(x.xref)&&-1!==n.indexOf(x.yref)&&o.swapAttrs(l.annotations[r],["?"])}}function Le(e,t,n,r,a){var i,s=o.nestedProperty,l=s(e[n[0]._name],t).get(),c=s(e[r[0]._name],t).get();for("title"===t&&(l&&l.text===a.x&&(l.text=a.y),c&&c.text===a.y&&(c.text=a.x)),i=0;i<n.length;i++)s(e,n[i]._name+"."+t).set(c);for(i=0;i<r.length;i++)s(e,r[i]._name+"."+t).set(l)}function Ie(e){return"angularaxis"===e._id}function We(e,t){for(var n=t._rangebreaks.length,r=0;r<n;r++){var a=t._rangebreaks[r];if(e>=a.min&&e<a.max)return a.max}return e}function Ne(e){return-1!==(e.ticklabelposition||"").indexOf("inside")}function Pe(e,t){Ne(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(t)}function Be(e,t,n,r){var a,i="free"===e.anchor||void 0!==e.overlaying&&!1!==e.overlaying?e.overlaying:e._id;a=r?"right"===e.side?t:-t:t,i in n||(n[i]={}),e.side in n[i]||(n[i][e.side]=0),n[i][e.side]+=a}H.getTickFormat=function(e){var t,n,r;function a(e){return"string"!=typeof e?e:Number(e.replace("M",""))*z}function i(e,t){var n=["L","D"];if(typeof e==typeof t){if("number"==typeof e)return e-t;var r=n.indexOf(e.charAt(0)),a=n.indexOf(t.charAt(0));return r===a?Number(e.replace(/(L|D)/g,""))-Number(t.replace(/(L|D)/g,"")):r-a}return"number"==typeof e?1:-1}function o(e,t,n){var r=n||function(e){return e},a=t[0],i=t[1];return(!a&&"number"!=typeof a||r(a)<=r(e))&&(!i&&"number"!=typeof i||r(i)>=r(e))}function s(e,t){var n=null===t[0],r=null===t[1],a=i(e,t[0])>=0,o=i(e,t[1])<=0;return(n||a)&&(r||o)}if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":for(t=0;t<e.tickformatstops.length;t++)if((r=e.tickformatstops[t]).enabled&&o(e.dtick,r.dtickrange,a)){n=r;break}break;case"log":for(t=0;t<e.tickformatstops.length;t++)if((r=e.tickformatstops[t]).enabled&&s(e.dtick,r.dtickrange)){n=r;break}}return n?n.value:e.tickformat},H.getSubplots=function(e,t){var n=e._fullLayout._subplots,r=n.cartesian.concat(n.gl2d||[]),a=t?H.findSubplotsWithAxis(r,t):r;return a.sort(function(e,t){var n=e.slice(1).split("y"),r=t.slice(1).split("y");return n[0]===r[0]?+n[1]-+r[1]:+n[0]-+r[0]}),a},H.findSubplotsWithAxis=function(e,t){for(var n=new RegExp("x"===t._id.charAt(0)?"^"+t._id+"y":t._id+"$"),r=[],a=0;a<e.length;a++){var i=e[a];n.test(i)&&r.push(i)}return r},H.makeClipPaths=function(e){var t=e._fullLayout;if(!t._hasOnlyLargeSploms){var r,a,i={_offset:0,_length:t.width,_id:""},o={_offset:0,_length:t.height,_id:""},s=H.list(e,"x",!0),l=H.list(e,"y",!0),c=[];for(r=0;r<s.length;r++)for(c.push({x:s[r],y:o}),a=0;a<l.length;a++)0===r&&c.push({x:i,y:l[a]}),c.push({x:s[r],y:l[a]});var u=t._clips.selectAll(".axesclip").data(c,function(e){return e.x._id+e.y._id});u.enter().append("clipPath").classed("axesclip",!0).attr("id",function(e){return"clip"+t._uid+e.x._id+e.y._id}).append("rect"),u.exit().remove(),u.each(function(e){n.select(this).select("rect").attr({x:e.x._offset||0,y:e.y._offset||0,width:e.x._length||1,height:e.y._length||1})})}},H.draw=function(e,t,n){var r=e._fullLayout;"redraw"===t&&r._paper.selectAll("g.subplot").each(function(e){var t=e[0],n=r._plots[t];if(n){var a=n.xaxis,i=n.yaxis;n.xaxislayer.selectAll("."+a._id+"tick").remove(),n.yaxislayer.selectAll("."+i._id+"tick").remove(),n.xaxislayer.selectAll("."+a._id+"tick2").remove(),n.yaxislayer.selectAll("."+i._id+"tick2").remove(),n.xaxislayer.selectAll("."+a._id+"divider").remove(),n.yaxislayer.selectAll("."+i._id+"divider").remove(),n.minorGridlayer&&n.minorGridlayer.selectAll("path").remove(),n.gridlayer&&n.gridlayer.selectAll("path").remove(),n.zerolinelayer&&n.zerolinelayer.selectAll("path").remove(),n.zerolinelayerAbove&&n.zerolinelayerAbove.selectAll("path").remove(),r._infolayer.select(".g-"+a._id+"title").remove(),r._infolayer.select(".g-"+i._id+"title").remove()}});var a=t&&"redraw"!==t?t:H.listIds(e),i=H.list(e).filter(function(e){return e.autoshift}).map(function(e){return e.overlaying});a.map(function(t){var n=H.getFromId(e,t);if("sync"===n.tickmode&&n.overlaying){var r=a.findIndex(function(e){return e===n.overlaying});r>=0&&a.unshift(a.splice(r,1).shift())}});var s={false:{left:0,right:0}};return o.syncOrAsync(a.map(function(t){return function(){if(t){var r=H.getFromId(e,t);n||(n={}),n.axShifts=s,n.overlayingShiftedAx=i;var a=H.drawOne(e,r,n);return r._shiftPusher&&Be(r,r._fullDepth||0,s,!0),r._r=r.range.slice(),r._rl=o.simpleMap(r._r,r.r2l),a}}}))},H.drawOne=function(e,t,n){var r,s,p,h=(n=n||{}).axShifts||{},f=n.overlayingShiftedAx||[];t.setScale();var m=e._fullLayout,g=t._id,y=g.charAt(0),b=H.counterLetter(g),v=m._plots[t._mainSubplot],M="above traces"===t.zerolinelayer;if(v){if(t._shiftPusher=t.autoshift||-1!==f.indexOf(t._id)||-1!==f.indexOf(t.overlaying),t._shiftPusher&"free"===t.anchor){var x=t.linewidth/2||0;"inside"===t.ticks&&(x+=t.ticklen),Be(t,x,h,!0),Be(t,t.shift||0,h,!1)}(!0!==n.skipTitle||void 0===t._shift)&&(t._shift=function(e,t){return e.autoshift?t[e.overlaying][e.side]:e.shift||0}(t,h));var z=v[y+"axislayer"],_=t._mainLinePosition,A=_+=t._shift,O=t._mainMirrorPosition,w=t._vals=H.calcTicks(t),k=[t.mirror,A,O].join("_");for(r=0;r<w.length;r++)w[r].axInfo=k;t._selections={},t._tickAngles&&(t._prevTickAngles=t._tickAngles),t._tickAngles={},t._depth=null;var T={};if(t.visible){var S,C,E=H.makeTransTickFn(t),q=H.makeTransTickLabelFn(t),D="inside"===t.ticks,R="outside"===t.ticks;if("boundaries"===t.tickson){var L=function(e,t){var n,r=[],a=function(e,t){var n=e.xbnd[t];null!==n&&r.push(o.extendFlat({},e,{x:n}))};if(t.length){for(n=0;n<t.length;n++)a(t[n],0);a(t[n-1],1)}return r}(0,w);C=H.clipEnds(t,L),S=D?C:L}else C=H.clipEnds(t,w),S=D&&"period"!==t.ticklabelmode?C:w;var I=t._gridVals=C,W=function(e,t){var n,r,a=[],i=t.length&&t[t.length-1].x<t[0].x,s=function(e,t){var n=e.xbnd[t];null!==n&&a.push(o.extendFlat({},e,{x:n}))};if(e.showdividers&&t.length){for(n=0;n<t.length;n++){var l=t[n];l.text2!==r&&s(l,i?1:0),r=l.text2}s(t[n-1],i?0:1)}return a}(t,w);if(!m._hasOnlyLargeSploms){var N=t._subplotsWith,P={};for(r=0;r<N.length;r++){s=N[r];var B=(p=m._plots[s])[b+"axis"],X=B._mainAxis._id;if(!P[X]){P[X]=1;var G="x"===y?"M0,"+B._offset+"v"+B._length:"M"+B._offset+",0h"+B._length;H.drawGrid(e,t,{vals:I,counterAxis:B,layer:p.gridlayer.select("."+g),minorLayer:p.minorGridlayer.select("."+g),path:G,transFn:E}),H.drawZeroLine(e,t,{counterAxis:B,layer:M?p.zerolinelayerAbove:p.zerolinelayer,path:G,transFn:E})}}}var Y,Z=H.getTickSigns(t),$=H.getTickSigns(t,"minor");if(t.ticks||t.minor&&t.minor.ticks){var J,Q,K,ee,te=H.makeTickPath(t,A,Z[2]),ne=H.makeTickPath(t,A,$[2],{minor:!0});if(t._anchorAxis&&t.mirror&&!0!==t.mirror?(J=H.makeTickPath(t,O,Z[3]),Q=H.makeTickPath(t,O,$[3],{minor:!0}),K=te+J,ee=ne+Q):(J="",Q="",K=te,ee=ne),t.showdividers&&R&&"boundaries"===t.tickson){var re={};for(r=0;r<W.length;r++)re[W[r].x]=1;Y=function(e){return re[e.x]?J:K}}else Y=function(e){return e.minor?ee:K}}if(H.drawTicks(e,t,{vals:S,layer:z,path:Y,transFn:E}),"allticks"===t.mirror){var ae=Object.keys(t._linepositions||{});for(r=0;r<ae.length;r++){s=ae[r],p=m._plots[s];var ie=t._linepositions[s]||[],oe=ie[0],se=ie[1],le=ie[2],ce=H.makeTickPath(t,oe,le?Z[0]:$[0],{minor:le})+H.makeTickPath(t,se,le?Z[1]:$[1],{minor:le});H.drawTicks(e,t,{vals:S,layer:p[y+"axislayer"],path:ce,transFn:E})}}var ue=[];if(ue.push(function(){return H.drawLabels(e,t,{vals:w,layer:z,plotinfo:p,transFn:q,labelFns:H.makeLabelFns(t,A)})}),"multicategory"===t.type){var de={x:2,y:10}[y];ue.push(function(){var n={x:"height",y:"width"}[y],r=he()[n]+de+(t._tickAngles[g+"tick"]?t.tickfont.size*U:0);return H.drawLabels(e,t,{vals:Ae(t,w),layer:z,cls:g+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:E,labelFns:H.makeLabelFns(t,A+r*Z[4])})}),ue.push(function(){return t._depth=Z[4]*(he("tick2")[t.side]-A),function(e,t,n){var r=t._id+"divider",a=n.vals,i=n.layer.selectAll("path."+r).data(a,we);i.exit().remove(),i.enter().insert("path",":first-child").classed(r,1).classed("crisp",1).call(u.stroke,t.dividercolor).style("stroke-width",d.crispRound(e,t.dividerwidth,1)+"px"),i.attr("transform",n.transFn).attr("d",n.path)}(e,t,{vals:W,layer:z,path:H.makeTickPath(t,A,Z[4],{len:t._depth}),transFn:E})})}else t.title.hasOwnProperty("standoff")&&ue.push(function(){t._depth=Z[4]*(he()[t.side]-A)});var pe=i.getComponentMethod("rangeslider","isVisible")(t);return!n.skipTitle&&!(pe&&"bottom"===t.side)&&ue.push(function(){return function(e,t){var n,r=e._fullLayout,a=t._id,i=a.charAt(0),o=t.title.font.size,s=(t.title.text.match(l.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))"bottom"===t.side||"right"===t.side?n=t._depth+t.title.standoff+o*j:("top"===t.side||"left"===t.side)&&(n=t._depth+t.title.standoff+o*(F+s*U));else{var u=Ne(t);if("multicategory"===t.type)n=t._depth;else{var p=1.5*o;u&&(p=.5*o,"outside"===t.ticks&&(p+=t.ticklen)),n=10+p+(t.linewidth?t.linewidth-1:0)}u||(n+="x"===i?"top"===t.side?o*(t.showticklabels?1:0):o*(t.showticklabels?1.5:.5):"right"===t.side?o*(t.showticklabels?1:.5):o*(t.showticklabels?.5:0))}var h,f,m,g,y=H.getPxPosition(e,t);if("x"===i?(f=t._offset+t._length/2,m="top"===t.side?y-n:y+n):(m=t._offset+t._length/2,f="right"===t.side?y+n:y-n,h={rotate:"-90",offset:0}),"multicategory"!==t.type){var b=t._selections[t._id+"tick"];if(g={selection:b,side:t.side},b&&b.node()&&b.node().parentNode){var v=d.getTranslate(b.node().parentNode);g.offsetLeft=v.x,g.offsetTop=v.y}t.title.hasOwnProperty("standoff")&&(g.pad=0)}return t._titleStandoff=n,c.draw(e,a+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:g,transform:h,attributes:{x:f,y:m,"text-anchor":"middle"}})}(e,t)}),ue.push(function(){var n,r,o,s,l=t.side.charAt(0),c=V[t.side].charAt(0),u=H.getPxPosition(e,t),d=R?t.ticklen:0;(t.automargin||pe||t._shiftPusher)&&("multicategory"===t.type?n=he("tick2"):(n=he(),"x"===y&&"b"===l&&(t._depth=Math.max(n.width>0?n.bottom-u:0,d))));var p=0,h=0;if(t._shiftPusher&&(p=Math.max(d,n.height>0?"l"===l?u-n.left:n.right-u:0),t.title.text!==m._dfltTitle[y]&&(h=(t._titleStandoff||0)+(t._titleScoot||0),"l"===l&&(h+=ke(t))),t._fullDepth=Math.max(p,h)),t.automargin){r={x:0,y:0,r:0,l:0,t:0,b:0};var f=[0,1],g="number"==typeof t._shift?t._shift:0;if("x"===y){if("b"===l?r[l]=t._depth:(r[l]=t._depth=Math.max(n.width>0?u-n.top:0,d),f.reverse()),n.width>0){var v=n.right-(t._offset+t._length);v>0&&(r.xr=1,r.r=v);var M=t._offset-n.left;M>0&&(r.xl=0,r.l=M)}}else if("l"===l?(t._depth=Math.max(n.height>0?u-n.left:0,d),r[l]=t._depth-g):(t._depth=Math.max(n.height>0?n.right-u:0,d),r[l]=t._depth+g,f.reverse()),n.height>0){var x=n.bottom-(t._offset+t._length);x>0&&(r.yb=0,r.b=x);var z=t._offset-n.top;z>0&&(r.yt=1,r.t=z)}r[b]="free"===t.anchor?t.position:t._anchorAxis.domain[f[0]],t.title.text!==m._dfltTitle[y]&&(r[l]+=ke(t)+(t.title.standoff||0)),t.mirror&&"free"!==t.anchor&&((o={x:0,y:0,r:0,l:0,t:0,b:0})[c]=t.linewidth,t.mirror&&!0!==t.mirror&&(o[c]+=d),!0===t.mirror||"ticks"===t.mirror?o[b]=t._anchorAxis.domain[f[1]]:("all"===t.mirror||"allticks"===t.mirror)&&(o[b]=[t._counterDomainMin,t._counterDomainMax][f[1]]))}pe&&(s=i.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),"string"==typeof t.automargin&&(_e(r,t.automargin),_e(o,t.automargin)),a.autoMargin(e,Ce(t),r),a.autoMargin(e,Ee(t),o),a.autoMargin(e,qe(t),s)}),o.syncOrAsync(ue)}}function he(e){var n=g+(e||"tick");return T[n]||(T[n]=function(e,t,n){var r,a,i,o;if(e._selections[t].size())r=1/0,a=-1/0,i=1/0,o=-1/0,e._selections[t].each(function(){var e=Se(this);if("none"!==e.node().style.display){var t=d.bBox(e.node().parentNode);r=Math.min(r,t.top),a=Math.max(a,t.bottom),i=Math.min(i,t.left),o=Math.max(o,t.right)}});else{var s=H.makeLabelFns(e,n);r=a=s.yFn({dx:0,dy:0,fontSize:0}),i=o=s.xFn({dx:0,dy:0,fontSize:0})}return{top:r,bottom:a,left:i,right:o,height:a-r,width:o-i}}(t,n,A)),T[n]}},H.getTickSigns=function(e,t){var n=e._id.charAt(0),r={x:"top",y:"right"}[n],a=e.side===r?1:-1,i=[-1,1,a,-a];return"inside"!==(t?(e.minor||{}).ticks:e.ticks)==("x"===n)&&(i=i.map(function(e){return-e})),e.side&&i.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),i},H.makeTransTickFn=function(e){return"x"===e._id.charAt(0)?function(t){return s(e._offset+e.l2p(t.x),0)}:function(t){return s(0,e._offset+e.l2p(t.x))}},H.makeTransTickLabelFn=function(e){var t=function(e){var t=e.ticklabelposition||"",n=e.tickson||"",r=function(e){return-1!==t.indexOf(e)},a=r("top"),i=r("left"),o=r("right"),s=r("bottom"),l=r("inside"),c="boundaries"!==n&&(s||i||a||o);if(!c&&!l)return[0,0];var u=e.side,d=c?(e.tickwidth||0)/2:0,p=3,h=e.tickfont?e.tickfont.size:12;return(s||a)&&(d+=h*j,p+=(e.linewidth||0)/2),(i||o)&&(d+=(e.linewidth||0)/2,p+=3),l&&"top"===u&&(p-=h*(1-j)),(i||a)&&(d=-d),("bottom"===u||"right"===u)&&(p=-p),[c?d:0,l?p:0]}(e),n=e.ticklabelshift||0,r=e.ticklabelstandoff||0,a=t[0],i=t[1],o=e.range[0]>e.range[1],l=e.ticklabelposition&&-1!==e.ticklabelposition.indexOf("inside"),c=!l;n&&(n*=o?-1:1);if(r){var u=e.side;r*=l&&("top"===u||"left"===u)||c&&("bottom"===u||"right"===u)?1:-1}return"x"===e._id.charAt(0)?function(t){return s(a+e._offset+e.l2p(Oe(t))+n,i+r)}:function(t){return s(i+r,a+e._offset+e.l2p(Oe(t))+n)}},H.makeTickPath=function(e,t,n,r){r||(r={});var a=r.minor;if(a&&!e.minor)return"";var i=void 0!==r.len?r.len:a?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return"x"===o?"M0,"+(t+s*n)+"v"+i*n:"M"+(t+s*n)+",0h"+i*n},H.makeLabelFns=function(e,t,n){var a=e.ticklabelposition||"",i=e.tickson||"",s=function(e){return-1!==a.indexOf(e)},l=s("top"),c=s("left"),u=s("right"),d=s("bottom"),p="boundaries"!==i&&(d||c||l||u),h=s("inside"),f="inside"===a&&"inside"===e.ticks||!h&&"outside"===e.ticks&&"boundaries"!==i,m=0,g=0,y=f?e.ticklen:0;if(h?y*=-1:p&&(y=0),f&&(m+=y,n)){var b=o.deg2rad(n);m=y*Math.cos(b)+1,g=y*Math.sin(b)}e.showticklabels&&(f||e.showline)&&(m+=.2*e.tickfont.size);var v,M,x,z,_,A={labelStandoff:m+=(e.linewidth||1)/2*(h?-1:1),labelShift:g},O=0,w=e.side,k=e._id.charAt(0),T=e.tickangle;if("x"===k)z=(_=!h&&"bottom"===w||h&&"top"===w)?1:-1,h&&(z*=-1),v=g*z,M=t+m*z,x=_?1:-.2,90===Math.abs(T)&&(h?x+=F:x=-90===T&&"bottom"===w?j:90===T&&"top"===w?F:.5,O=F/2*(T/90)),A.xFn=function(e){return e.dx+v+O*e.fontSize},A.yFn=function(e){return e.dy+M+e.fontSize*x},A.anchorFn=function(e,t){if(p){if(c)return"end";if(u)return"start"}return r(t)&&0!==t&&180!==t?t*z<0!==h?"end":"start":"middle"},A.heightFn=function(t,n,r){return n<-60||n>60?-.5*r:"top"===e.side!==h?-r:0};else if("y"===k){if(z=(_=!h&&"left"===w||h&&"right"===w)?1:-1,h&&(z*=-1),v=m,M=g*z,x=0,!h&&90===Math.abs(T)&&(x=-90===T&&"left"===w||90===T&&"right"===w?j:.5),h){var S=r(T)?+T:0;if(0!==S){var C=o.deg2rad(S);O=Math.abs(Math.sin(C))*j*z,x=0}}A.xFn=function(e){return e.dx+t-(v+e.fontSize*x)*z+O*e.fontSize},A.yFn=function(e){return e.dy+M+e.fontSize*F},A.anchorFn=function(e,t){return r(t)&&90===Math.abs(t)?"middle":_?"end":"start"},A.heightFn=function(t,n,r){return"right"===e.side&&(n*=-1),n<-30?-r:n<30?-.5*r:0}}return A},H.drawTicks=function(e,t,r){r=r||{};var a=t._id+"tick",i=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(e){return e.minor&&!e.noTick}):[]).concat(t.ticks?r.vals.filter(function(e){return!e.minor&&!e.noTick}):[]),o=r.layer.selectAll("path."+a).data(i,we);o.exit().remove(),o.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",!1!==r.crisp).each(function(e){return u.stroke(n.select(this),e.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(n){return d.crispRound(e,n.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),Pe(t,[W]),o.attr("transform",r.transFn)},H.drawGrid=function(e,t,r){if(r=r||{},"sync"!==t.tickmode){var a=t._id+"grid",i=t.minor&&t.minor.showgrid,o=i?r.vals.filter(function(e){return e.minor}):[],s=t.showgrid?r.vals.filter(function(e){return!e.minor}):[],l=r.counterAxis;if(l&&H.shouldShowZeroLine(e,t,l))for(var c="array"===t.tickmode,p=0;p<s.length;p++){var h=s[p].x;if(c?!h:Math.abs(h)<t.dtick/100){if(s=s.slice(0,p).concat(s.slice(p+1)),!c)break;p--}}t._gw=d.crispRound(e,t.gridwidth,1);for(var f=i?d.crispRound(e,t.minor.gridwidth,1):0,m=r.layer,g=r.minorLayer,y=1;y>=0;y--){var b=y?m:g;if(b){var v=b.selectAll("path."+a).data(y?s:o,we);v.exit().remove(),v.enter().append("path").classed(a,1).classed("crisp",!1!==r.crisp),v.attr("transform",r.transFn).attr("d",r.path).each(function(e){return u.stroke(n.select(this),e.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(e){return d.dashStyle(e.minor?t.minor.griddash:t.griddash,e.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(e){return(e.minor?f:t._gw)+"px"}).style("display",null),"function"==typeof r.path&&v.attr("d",r.path)}}Pe(t,[L,I])}},H.drawZeroLine=function(e,t,n){n=n||n;var r=t._id+"zl",a=H.shouldShowZeroLine(e,t,n.counterAxis),i=n.layer.selectAll("path."+r).data(a?[{x:0,id:t._id}]:[]);i.exit().remove(),i.enter().append("path").classed(r,1).classed("zl",1).classed("crisp",!1!==n.crisp).each(function(){n.layer.selectAll("path").sort(function(e,t){return Y(e.id,t.id)})}),i.attr("transform",n.transFn).attr("d",n.path).call(u.stroke,t.zerolinecolor||u.defaultLine).style("stroke-width",d.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),Pe(t,[R])},H.drawLabels=function(e,t,a){a=a||{};var i=e._fullLayout,c=t._id,u="above traces"===t.zerolinelayer,p=a.cls||c+"tick",h=a.vals.filter(function(e){return e.text}),f=a.labelFns,m=a.secondary?0:t.tickangle,g=(t._prevTickAngles||{})[p],y=a.layer.selectAll("g."+p).data(t.showticklabels?h:[],we),b=[];function v(e,i){e.each(function(e){var o=n.select(this),c=o.select(".text-math-group"),u=f.anchorFn(e,i),p=a.transFn.call(o.node(),e)+(r(i)&&0!=+i?" rotate("+i+","+f.xFn(e)+","+(f.yFn(e)-e.fontSize/2)+")":""),h=l.lineCount(o),m=U*e.fontSize,g=f.heightFn(e,r(i)?+i:0,(h-1)*m);if(g&&(p+=s(0,g)),c.empty()){var y=o.select("text");y.attr({transform:p,"text-anchor":u}),y.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var b=d.bBox(c.node()).width*{end:-.5,start:.5}[u];c.attr("transform",p+s(b,0))}})}y.enter().append("g").classed(p,1).append("text").attr("text-anchor","middle").each(function(t){var r=n.select(this),a=e._promises.length;r.call(l.positionText,f.xFn(t),f.yFn(t)).call(d.font,{family:t.font,size:t.fontSize,color:t.fontColor,weight:t.fontWeight,style:t.fontStyle,variant:t.fontVariant,textcase:t.fontTextcase,lineposition:t.fontLineposition,shadow:t.fontShadow}).text(t.text).call(l.convertToTspans,e),e._promises[a]?b.push(e._promises.pop().then(function(){v(r,m)})):v(r,m)}),Pe(t,[N]),y.exit().remove(),a.repositionOnUpdate&&y.each(function(e){n.select(this).select("text").call(l.positionText,f.xFn(e),f.yFn(e))}),t._adjustTickLabelsOverflow=function(){var r=t.ticklabeloverflow;if(r&&"allow"!==r){var a=-1!==r.indexOf("hide"),s="x"===t._id.charAt(0),l=0,c=s?e._fullLayout.width:e._fullLayout.height;if(-1!==r.indexOf("domain")){var u=o.simpleMap(t.range,t.r2l);l=t.l2p(u[0])+t._offset,c=t.l2p(u[1])+t._offset}var p=Math.min(l,c),h=Math.max(l,c),f=t.side,m=1/0,g=-1/0;for(var b in y.each(function(e){var r=n.select(this);if(r.select(".text-math-group").empty()){var i=d.bBox(r.node()),o=0;s?(i.right>h||i.left<p)&&(o=1):(i.bottom>h||i.top+(t.tickangle?0:e.fontSize/4)<p)&&(o=1);var l=r.select("text");o?a&&l.style("display","none"):"none"!==l.node().style.display&&(l.style("display",null),m="bottom"===f||"right"===f?Math.min(m,s?i.top:i.left):-1/0,g="top"===f||"left"===f?Math.max(g,s?i.bottom:i.right):1/0)}}),i._plots){var v=i._plots[b];if(t._id===v.xaxis._id||t._id===v.yaxis._id){var M=s?v.yaxis:v.xaxis;M&&(M["_visibleLabelMin_"+t._id]=m,M["_visibleLabelMax_"+t._id]=g)}}}},t._hideCounterAxisInsideTickLabels=function(e){var r="x"===t._id.charAt(0),a=[];for(var o in i._plots){var s=i._plots[o];t._id!==s.xaxis._id&&t._id!==s.yaxis._id||a.push(r?s.yaxis:s.xaxis)}a.forEach(function(r,a){r&&Ne(r)&&(e||[R,I,L,W,N]).forEach(function(e){var o,s="tick"===e.K&&"text"===e.L&&"period"===t.ticklabelmode,l=i._plots[t._mainSubplot];e.K===R.K?o=(u?l.zerolinelayerAbove:l.zerolinelayer).selectAll("."+t._id+"zl"):o=e.K===I.K?l.minorGridlayer.selectAll("."+t._id):e.K===L.K?l.gridlayer.selectAll("."+t._id):l[t._id.charAt(0)+"axislayer"];o.each(function(){var i=n.select(this);e.L&&(i=i.selectAll(e.L)),i.each(function(i){var o=t.l2p(s?Oe(i):i.x)+t._offset,l=n.select(this);o<t["_visibleLabelMax_"+r._id]&&o>t["_visibleLabelMin_"+r._id]?l.style("display","none"):"tick"===e.K&&!a&&"none"!==l.node().style.display&&l.style("display",null)})})})})},v(y,g+1?g:m);var M=null;t._selections&&(t._selections[p]=y);var x=[function(){return b.length&&Promise.all(b)}];t.automargin&&i._redrawFromAutoMarginCount&&90===g?(M=g,x.push(function(){v(y,g)})):x.push(function(){if(v(y,m),h.length&&t.autotickangles&&("log"!==t.type||"D"!==String(t.dtick).charAt(0))){M=t.autotickangles[0];var e,n=0,r=[],i=1;y.each(function(e){n=Math.max(n,e.fontSize);var a=t.l2p(e.x),o=Se(this),s=d.bBox(o.node());i=Math.max(i,l.lineCount(o)),r.push({top:0,bottom:10,height:10,left:a-s.width/2,right:a+s.width/2+2,width:s.width+2})});var s=("boundaries"===t.tickson||t.showdividers)&&!a.secondary,c=h.length,u=Math.abs((h[c-1].x-h[0].x)*t._m)/(c-1),p=s?u/2:u,f=s?t.ticklen:1.25*n*i,g=p/Math.sqrt(Math.pow(p,2)+Math.pow(f,2)),b=t.autotickangles.map(function(e){return e*Math.PI/180}),x=b.find(function(e){return Math.abs(Math.cos(e))<=g});void 0===x&&(x=b.reduce(function(e,t){return Math.abs(Math.cos(e))<Math.abs(Math.cos(t))?e:t},b[0]));var z=x*(180/Math.PI);if(s){var _=2;for(t.ticks&&(_+=t.tickwidth/2),e=0;e<r.length;e++){var A=h[e].xbnd,O=r[e];if(null!==A[0]&&O.left-t.l2p(A[0])<_||null!==A[1]&&t.l2p(A[1])-O.right<_){M=z;break}}}else{var w=t.ticklabelposition||"",k=t.tickson||"",T=function(e){return-1!==w.indexOf(e)},S=T("top"),C=T("left"),E=T("right"),q=T("bottom"),D="boundaries"!==k&&(q||C||S||E)?(t.tickwidth||0)+6:0;for(e=0;e<r.length-1;e++)if(o.bBoxIntersect(r[e],r[e+1],D)){M=z;break}}M&&v(y,M)}}),t._tickAngles&&x.push(function(){t._tickAngles[p]=null===M?r(m)?m:0:M});var z=function(){var e=0,n=0;return y.each(function(r,a){var i,o=Se(this);o.select(".text-math-group").empty()&&(t._vals[a]&&(i=t._vals[a].bb||d.bBox(o.node()),t._vals[a].bb=i),e=Math.max(e,i.width),n=Math.max(n,i.height))}),{labelsMaxW:e,labelsMaxH:n}},_=t._anchorAxis;if(_&&(_.autorange||_.insiderange)&&Ne(t)&&!Z(i,t._id)&&(i._insideTickLabelsUpdaterange||(i._insideTickLabelsUpdaterange={}),_.autorange&&(i._insideTickLabelsUpdaterange[_._name+".autorange"]=_.autorange,x.push(z)),_.insiderange)){var A=z(),O="y"===t._id.charAt(0)?A.labelsMaxW:A.labelsMaxH;O+=6,"inside"===t.ticklabelposition&&(O+=t.ticklen||0);var w="right"===t.side||"top"===t.side?1:-1,k=1===w?1:0,T=1===w?0:1,S=[];S[T]=_.range[T];var C=_.range,E=_.r2p(C[k]),q=_.r2p(C[T]),D=i._insideTickLabelsUpdaterange[_._name+".range"];if(D){var P=_.r2p(D[k]),B=_.r2p(D[T]),F=w*("y"===t._id.charAt(0)?1:-1);F*E<F*P&&(E=P,S[k]=C[k]=D[k]),F*q>F*B&&(q=B,S[T]=C[T]=D[T])}var j=Math.abs(q-E);j-O>0?O*=1+O/(j-=O):O=0,"y"!==t._id.charAt(0)&&(O=-O),S[k]=_.p2r(_.r2p(C[k])+w*O),"min"===_.autorange||"max reversed"===_.autorange?(S[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):("max"===_.autorange||"min reversed"===_.autorange)&&(S[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),i._insideTickLabelsUpdaterange[_._name+".range"]=S}var V=o.syncOrAsync(x);return V&&V.then&&e._promises.push(V),V},H.getPxPosition=function(e,t){var n,r=e._fullLayout._size,a=t._id.charAt(0),i=t.side;return"free"!==t.anchor?n=t._anchorAxis:"x"===a?n={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:"y"===a&&(n={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),"top"===i||"left"===i?n._offset:"bottom"===i||"right"===i?n._offset+n._length:void 0},H.shouldShowZeroLine=function(e,t,n){var r=o.simpleMap(t.range,t.r2l);return r[0]*r[1]<=0&&t.zeroline&&("linear"===t.type||"-"===t.type)&&!(t.rangebreaks&&t.maskBreaks(0)===D)&&(Te(t,0)||!function(e,t,n,r){var a=n._mainAxis;if(!a)return;var i=e._fullLayout,o=t._id.charAt(0),s=H.counterLetter(t._id),l=t._offset+(Math.abs(r[0])<Math.abs(r[1])==("x"===o)?0:t._length);function c(e){if(!e.showline||!e.linewidth)return!1;var n=Math.max((e.linewidth+t.zerolinewidth)/2,1);function r(e){return"number"==typeof e&&Math.abs(e-l)<n}if(r(e._mainLinePosition)||r(e._mainMirrorPosition))return!0;var a=e._linepositions||{};for(var i in a)if(r(a[i][0])||r(a[i][1]))return!0}var u=i._plots[n._mainSubplot];if(!(u.mainplotinfo||u).overlays.length)return c(n,l);for(var d=H.list(e,s),p=0;p<d.length;p++){var h=d[p];if(h._mainAxis===a&&c(h,l))return!0}}(e,t,n,r)||function(e,t){for(var n=e._fullData,r=t._mainSubplot,a=t._id.charAt(0),o=0;o<n.length;o++){var s=n[o];if(!0===s.visible&&s.xaxis+s.yaxis===r&&(i.traceIs(s,"bar-like")&&s.orientation==={x:"h",y:"v"}[a]||s.fill&&s.fill.charAt(s.fill.length-1)===a))return!0}return!1}(e,t))},H.clipEnds=function(e,t){return t.filter(function(t){return Te(e,t.x)})},H.allowAutoMargin=function(e){for(var t=H.list(e,"",!0),n=0;n<t.length;n++){var r=t[n];r.automargin&&(a.allowAutoMargin(e,Ce(r)),r.mirror&&a.allowAutoMargin(e,Ee(r))),i.getComponentMethod("rangeslider","isVisible")(r)&&a.allowAutoMargin(e,qe(r))}},H.swap=function(e,t){for(var n=function(e,t){var n,r,a=[];for(n=0;n<t.length;n++){var i=[],o=e._fullData[t[n]].xaxis,s=e._fullData[t[n]].yaxis;if(o&&s){for(r=0;r<a.length;r++)(-1!==a[r].x.indexOf(o)||-1!==a[r].y.indexOf(s))&&i.push(r);if(!i.length){a.push({x:[o],y:[s]});continue}var l,c=a[i[0]];if(i.length>1)for(r=1;r<i.length;r++)l=a[i[r]],De(c.x,l.x),De(c.y,l.y);De(c.x,[o]),De(c.y,[s])}}return a}(e,t),r=0;r<n.length;r++)Re(e,n[r].x,n[r].y)}}),D0e=Ee((e,t)=>{t.exports=function(e,t,n){var r,a;if(n){var i="reversed"===t||"min reversed"===t||"max reversed"===t;r=n[i?1:0],a=n[i?0:1]}var o=e("autorangeoptions.minallowed",null===a?r:void 0),s=e("autorangeoptions.maxallowed",null===r?a:void 0);void 0===o&&e("autorangeoptions.clipmin"),void 0===s&&e("autorangeoptions.clipmax"),e("autorangeoptions.include")}}),R0e=Ee((e,t)=>{var n=D0e();t.exports=function(e,t,r,a){var i=t._template||{},o=t.type||i.type||"-";r("minallowed"),r("maxallowed");var s,l=r("range");l||!a.noInsiderange&&"log"!==o&&((s=r("insiderange"))&&(null===s[0]||null===s[1])&&(t.insiderange=!1,s=void 0),s&&(l=r("range",s)));var c,u=t.getAutorangeDflt(l,a),d=r("autorange",u);l&&(null===l[0]&&null===l[1]||(null===l[0]||null===l[1])&&("reversed"===d||!0===d)||null!==l[0]&&("min"===d||"max reversed"===d)||null!==l[1]&&("max"===d||"min reversed"===d))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(d=r("autorange",u=t.getAutorangeDflt(l,a))),d&&(n(r,d,l),("linear"===o||"-"===o)&&r("rangemode")),t.cleanRange()}}),oLe=Ee((e,t)=>{var n={left:0,top:0};t.exports=function(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var a=e.clientX||0,i=e.clientY||0,o=function(e){return e===window||e===document||e===document.body?n:e.getBoundingClientRect()}(t);return r[0]=a-o.left,r[1]=i-o.top,r}}),oV=Ee((e,t)=>{var n=mse();t.exports=n&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{e=!1}return e}()}),cLe=Ee((e,t)=>{t.exports=function(e,t,n,r,a){var i=(e-n)/(r-n),o=i+t/(r-n),s=(i+o)/2;return"left"===a||"bottom"===a?i:"center"===a||"middle"===a?s:"right"===a||"top"===a?o:i<2/3-s?i:o>4/3-s?o:s}}),fLe=Ee((e,t)=>{var n=Fr(),r=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];t.exports=function(e,t,a,i){return e="left"===a?0:"center"===a?1:"right"===a?2:n.constrain(Math.floor(3*e),0,2),t="bottom"===i?0:"middle"===i?1:"top"===i?2:n.constrain(Math.floor(3*t),0,2),r[t][e]}}),pLe=Ee((e,t)=>{var n=$8(),r=dH(),a=iD().getGraphDiv,i=tD(),o=t.exports={};o.wrapped=function(e,t,n){(e=a(e))._fullLayout&&r.clear(e._fullLayout._uid+i.HOVERID),o.raw(e,t,n)},o.raw=function(e,t){var r=e._fullLayout,a=e._hoverdata;t||(t={}),(!t.target||e._dragged||!1!==n.triggerHandler(e,"plotly_beforehover",t))&&(r._hoverlayer.selectAll("g").remove(),r._hoverlayer.selectAll("line").remove(),r._hoverlayer.selectAll("circle").remove(),e._hoverdata=void 0,t.target&&a&&e.emit("plotly_unhover",{event:t,points:a}))}}),p2=Ee((e,t)=>{var n=oLe(),r=gse(),a=oV(),i=Fr().removeElement,o=sh(),s=t.exports={};s.align=cLe(),s.getCursor=fLe();var l=pLe();function c(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}function u(e){return n(e.changedTouches?e.changedTouches[0]:e,document.body)}s.unhover=l.wrapped,s.unhoverRaw=l.raw,s.init=function(e){var t,n,l,d,p,h,f,m,g=e.gd,y=1,b=g._context.doubleClickDelay,v=e.element;g._mouseDownTime||(g._mouseDownTime=0),v.style.pointerEvents="all",v.onmousedown=x,a?(v._ontouchstart&&v.removeEventListener("touchstart",v._ontouchstart),v._ontouchstart=x,v.addEventListener("touchstart",x,{passive:!1})):v.ontouchstart=x;var M=e.clampFn||function(e,t,n){return Math.abs(e)<n&&(e=0),Math.abs(t)<n&&(t=0),[e,t]};function x(a){g._dragged=!1,g._dragging=!0;var i=u(a);t=i[0],n=i[1],f=a.target,h=a,m=2===a.buttons||a.ctrlKey,typeof a.clientX>"u"&&typeof a.clientY>"u"&&(a.clientX=t,a.clientY=n),(l=(new Date).getTime())-g._mouseDownTime<b?y+=1:(y=1,g._mouseDownTime=l),e.prepFn&&e.prepFn(a,t,n),r&&!m?(p=c()).style.cursor=window.getComputedStyle(v).cursor:r||(p=document,d=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(v).cursor),document.addEventListener("mouseup",_),document.addEventListener("touchend",_),!1!==e.dragmode&&(a.preventDefault(),document.addEventListener("mousemove",z),document.addEventListener("touchmove",z,{passive:!1}))}function z(r){r.preventDefault();var a=u(r),i=e.minDrag||o.MINDRAG,l=M(a[0]-t,a[1]-n,i),c=l[0],d=l[1];(c||d)&&(g._dragged=!0,s.unhover(g,r)),g._dragged&&e.moveFn&&!m&&(g._dragdata={element:v,dx:c,dy:d},e.moveFn(c,d))}function _(t){if(delete g._dragdata,!1!==e.dragmode&&(t.preventDefault(),document.removeEventListener("mousemove",z),document.removeEventListener("touchmove",z)),document.removeEventListener("mouseup",_),document.removeEventListener("touchend",_),r?i(p):d&&(p.documentElement.style.cursor=d,d=null),g._dragging){var n;if(g._dragging=!1,(new Date).getTime()-g._mouseDownTime>b&&(y=Math.max(y-1,1)),g._dragged)e.doneFn&&e.doneFn();else h.target===f?n=h:(n={target:f,srcElement:f,toElement:f},Object.keys(h).concat(Object.keys(h.__proto__)).forEach(e=>{var t=h[e];!n[e]&&"function"!=typeof t&&(n[e]=t)})),e.clickFn&&e.clickFn(y,n),m||f.dispatchEvent(new MouseEvent("click",t));g._dragging=!1,g._dragged=!1}else g._dragged=!1}},s.coverSlip=c}),Ky=Ee((e,t)=>{t.exports=function(e,t){(e.attr("class")||"").split(" ").forEach(function(t){0===t.indexOf("cursor-")&&e.classed(t,!1)}),t&&e.classed("cursor-"+t,!0)}}),_Le=Ee((e,t)=>{var n=Ky(),r="data-savedcursor";t.exports=function(e,t){var a=e.attr(r);if(t){if(!a){for(var i=(e.attr("class")||"").split(" "),o=0;o<i.length;o++){var s=i[o];0===s.indexOf("cursor-")&&e.attr(r,s.slice(7)).classed(s,!1)}e.attr(r)||e.attr(r,"!!")}n(e,t)}else a&&(e.attr(r,null),"!!"===a?n(e):n(e,a))}}),W0e=Ee((e,t)=>{var n=Mu(),r=oh();t.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend",description:["Determines whether or not this legend is visible."].join(" ")},bgcolor:{valType:"color",editType:"legend",description:["Sets the legend background color.","Defaults to `layout.paper_bgcolor`."].join(" ")},bordercolor:{valType:"color",dflt:r.defaultLine,editType:"legend",description:"Sets the color of the border enclosing the legend."},maxheight:{valType:"number",min:0,editType:"legend",description:["Sets the max height (in px) of the legend, or max height ratio (reference height * ratio) if less than or equal to 1.","Default value is: 0.5 for horizontal legends; 1 for vertical legends. The minimum allowed height is 30px.","For a ratio of 0.5, the legend will take up to 50% of the reference height before displaying a scrollbar.","The reference height is the full layout height with the following exception: vertically oriented legends with",'a `yref` of `"paper", located to the side of the plot. In this case, the reference height is the plot height.'].join(" ")},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend",description:"Sets the width (in px) of the border enclosing the legend."},font:n({editType:"legend",description:"Sets the font used to text the legend items."}),grouptitlefont:n({editType:"legend",description:["Sets the font for group titles in legend.","Defaults to `legend.font` with its size increased about 10%."].join(" ")}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend",description:"Sets the orientation of the legend."},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend",description:["Determines the order at which the legend items are displayed.","If *normal*, the items are displayed top-to-bottom in the same","order as the input data.","If *reversed*, the items are displayed in the opposite order","as *normal*.","If *grouped*, the items are displayed in groups","(when a trace `legendgroup` is provided).","if *grouped+reversed*, the items are displayed in the opposite order","as *grouped*."].join(" ")},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend",description:["Sets the amount of vertical space (in px) between legend groups."].join(" ")},entrywidth:{valType:"number",min:0,editType:"legend",description:["Sets the width (in px or fraction) of the legend.","Use 0 to size the entry based on the text width,","when `entrywidthmode` is set to *pixels*."].join(" ")},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend",description:"Determines what entrywidth means."},indentation:{valType:"number",min:-15,dflt:0,editType:"legend",description:"Sets the indentation (in px) of the legend entries."},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend",description:["Determines if the legend items symbols scale with their corresponding *trace* attributes","or remain *constant* independent of the symbol size on the graph."].join(" ")},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend",description:"Sets the width (in px) of the legend item symbols (the part other than the title.text)."},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend",description:["Determines the behavior on legend item click.","*toggle* toggles the visibility of the item clicked on the graph.","*toggleothers* makes the clicked item the sole visible item on the graph.","*false* disables legend item click interactions."].join(" ")},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend",description:["Determines the behavior on legend item double-click.","*toggle* toggles the visibility of the item clicked on the graph.","*toggleothers* makes the clicked item the sole visible item on the graph.","*false* disables legend item double-click interactions."].join(" ")},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend",description:["Determines the behavior on legend group item click.","*toggleitem* toggles the visibility of the individual item clicked on the graph.","*togglegroup* toggles the visibility of all items in the same legendgroup as the item clicked on the graph."].join(" ")},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend",description:["Determines the behavior on legend title click.","*toggle* toggles the visibility of all items in the legend.","*toggleothers* toggles the visibility of all other legends.","*false* disables legend title click interactions.","Defaults to *toggle* when there are multiple legends, *false* otherwise.","Not supported for legends containing pie and pie-like traces."].join(" ")},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend",description:["Determines the behavior on legend title double-click.","*toggle* toggles the visibility of all items in the legend.","*toggleothers* toggles the visibility of all other legends.","*false* disables legend title double-click interactions.","Defaults to *toggleothers* when there are multiple legends, *false* otherwise.","Not supported for legends containing pie and pie-like traces."].join(" ")},x:{valType:"number",editType:"legend",description:["Sets the x position with respect to `xref` (in normalized coordinates) of the legend.","When `xref` is *paper*, defaults to *1.02* for vertical legends and","defaults to *0* for horizontal legends.","When `xref` is *container*, defaults to *1* for vertical legends and","defaults to *0* for horizontal legends.","Must be between *0* and *1* if `xref` is *container*.","and between *-2* and *3* if `xref` is *paper*."].join(" ")},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `x` refers to.","*container* spans the entire `width` of the plot.","*paper* refers to the width of the plotting area only."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend",description:["Sets the legend's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the legend.","Value *auto* anchors legends to the right for `x` values greater than or equal to 2/3,","anchors legends to the left for `x` values less than or equal to 1/3 and","anchors legends with respect to their center otherwise."].join(" ")},y:{valType:"number",editType:"legend",description:["Sets the y position with respect to `yref` (in normalized coordinates) of the legend.","When `yref` is *paper*, defaults to *1* for vertical legends,","defaults to *-0.1* for horizontal legends on graphs w/o range sliders and","defaults to *1.1* for horizontal legends on graph with one or multiple range sliders.","When `yref` is *container*, defaults to *1*.","Must be between *0* and *1* if `yref` is *container*","and between *-2* and *3* if `yref` is *paper*."].join(" ")},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle",description:["Sets the container `y` refers to.","*container* spans the entire `height` of the plot.","*paper* refers to the height of the plotting area only."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend",description:["Sets the legend's vertical position anchor.","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the legend.","Value *auto* anchors legends at their bottom for `y` values less than or equal to 1/3,","anchors legends to at their top for `y` values greater than or equal to 2/3 and","anchors legends with respect to their middle otherwise."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of legend-driven changes in trace and pie label","visibility. Defaults to `layout.uirevision`."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend",description:["Sets the vertical alignment of the symbols with respect to their associated text."].join(" ")},title:{text:{valType:"string",dflt:"",editType:"legend",description:["Sets the title of the legend."].join(" ")},font:n({editType:"legend",description:["Sets this legend's title font.","Defaults to `legend.font` with its size increased about 20%."].join(" ")}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend",description:["Determines the location of legend's title","with respect to the legend items.","Defaulted to *top* with `orientation` is *h*.","Defaulted to *left* with `orientation` is *v*.","The *top left* options could be used to expand","top center and top right are for horizontal alignment","legend area in both x and y sides."].join(" ")},editType:"legend"},editType:"legend"}}),DD=Ee(e=>{e.isGrouped=function(e){return-1!==(e.traceorder||"").indexOf("grouped")},e.isVertical=function(e){return"h"!==e.orientation},e.isReversed=function(e){return-1!==(e.traceorder||"").indexOf("reversed")},e.getId=function(e){return e._id||"legend"}}),B0e=Ee((e,t)=>{var n=vo(),r=Fr(),a=Kl(),i=S1(),o=W0e(),s=U8(),l=DD();function c(e,t,c,u,d){var p=t[e]||{},h=a.newContainer(c,e);function f(e,t){return r.coerce(p,h,o,e,t)}var m=r.coerceFont(f,"font",c.font);if(f("bgcolor",c.paper_bgcolor),f("bordercolor"),f("visible")){var g,y=function(e,t){var n=g._input,a=g;return r.coerce(n,a,i,e,t)},b=c.font||{},v=r.coerceFont(f,"grouptitlefont",b,{overrideDflt:{size:Math.round(1.1*b.size)}}),M=0,x=!1,z="normal",_=(c.shapes||[]).filter(function(e){return e.showlegend});u.filter(I).forEach(function(t){t.visible&&M++;for(var n=0;n<t._length;n++){((Array.isArray(t.legend)?t.legend[n]:t.legend)||"legend")===e&&((Array.isArray(t.showlegend)?t.showlegend[n]:t.showlegend)||t._dfltShowLegend)&&(x=!0,M++)}if("legend"===e&&t._length>t.legend.length)for(var r=t.legend.length;r<t._length;r++)x=!0,M++});for(var A=u.concat(_).filter(function(t){return!I(g)&&e===(t.legend||"legend")}),O=0;O<A.length;O++)if((g=A[O]).visible){var w=g._isShape;(g.showlegend||g._dfltShowLegend&&!(g._module&&g._module.attributes&&g._module.attributes.showlegend&&!1===g._module.attributes.showlegend.dflt))&&(M++,g.showlegend&&(x=!0,(!w&&n.traceIs(g,"pie-like")||!0===g._input.showlegend)&&M++),r.coerceFont(y,"legendgrouptitle.font",v)),(!w&&n.traceIs(g,"bar")&&"stack"===c.barmode||-1!==["tonextx","tonexty"].indexOf(g.fill))&&(z=l.isGrouped({traceorder:z})?"grouped+reversed":"reversed"),void 0!==g.legendgroup&&""!==g.legendgroup&&(z=l.isReversed({traceorder:z})?"reversed+grouped":"grouped")}var k=r.coerce(t,c,s,"showlegend",c.showlegend||x&&M>("legend"===e?1:0));if(!1===k&&(c[e]=void 0),(!1!==k||p.uirevision)&&(f("uirevision",c.uirevision),!1!==k)){f("borderwidth");var T,S,C,E="h"===f("orientation"),q="paper"===f("yref"),D="paper"===f("xref"),R="left";if(E?(T=0,n.getComponentMethod("rangeslider","isVisible")(t.xaxis)?q?(S=1.1,C="bottom"):(S=1,C="top"):q?(S=-.1,C="top"):(S=0,C="bottom")):(S=1,C="auto",D?T=1.02:(T=1,R="right")),r.coerce(p,h,{x:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:T}},"x"),r.coerce(p,h,{y:{valType:"number",editType:"legend",min:q?-2:0,max:q?3:1,dflt:S}},"y"),f("traceorder",z),l.isGrouped(c[e])&&f("tracegroupgap"),f("entrywidth"),f("entrywidthmode"),f("indentation"),f("itemsizing"),f("itemwidth"),f("itemclick"),f("itemdoubleclick"),f("groupclick"),f("xanchor",R),f("yanchor",C),f("maxheight"),f("valign"),r.noneOrAll(p,h,["x","y"]),f("title.text")){f("title.side",E?"left":"top");var L=r.extendFlat({},m,{size:r.bigFont(m.size)});r.coerceFont(f,"title.font",L);let e=d>1;f("titleclick",!!e&&"toggle"),f("titledoubleclick",!!e&&"toggleothers")}}}function I(e){return n.traceIs(e,"pie-like")&&null!=e._length&&(Array.isArray(e.legend)||Array.isArray(e.showlegend))}}t.exports=function(e,t,n){var a,i=n.slice(),o=t.shapes;if(o)for(a=0;a<o.length;a++){var s=o[a];if(s.showlegend){var l={_input:s._input,visible:s.visible,showlegend:s.showlegend,legend:s.legend};i.push(l)}}var u=["legend"];for(a=0;a<i.length;a++)Array.isArray(i[a].legend)?u=u.concat(i[a].legend):r.pushUnique(u,i[a].legend);for(t._legends=[],a=0;a<u.length;a++){var d=u[a];c(d,e,t,i,u.length),t[d]&&(t[d]._id=d),t._legends.push(d)}}}),V0e=Ee(e=>{var t=vo(),n=Fr(),r=n.pushUnique,a=DD(),i=!0;e.handleItemClick=function(e,a,o,s){var l=a._fullLayout;if(a._dragged||a._editing)return;var c=e.data()[0][0];if(c.groupTitle&&c.noClick)return;var u=o.groupclick;"toggle"===s&&"toggleothers"===o.itemdoubleclick&&i&&a.data&&a._context.showTips&&(n.notifier(n._(a,"Double-click on legend to isolate one trace"),"long",a),i=!1);var d="togglegroup"===u,p=l.hiddenlabels?l.hiddenlabels.slice():[],h=a._fullData;let f=(l.shapes||[]).filter(e=>e.showlegend||e.legendgroup);var m=h.concat(f),g=c.trace;g._isShape&&(g=g._fullInput);var y,b,v,M,x,z=g.legendgroup,_={},A=[],O=[],w=[];var k=(l.shapes||[]).map(function(e){return e._input}),T=!1;function S(e,t){if(!c.groupTitle||d){var n=e._fullInput||e,r=n._isShape,a=n.index;void 0===a&&(a=n._index);var i=!1!==n.visible&&t;r?function(e,t){k[e].visible=t,T=!0}(a,i):function(e,t){var n=A.indexOf(e),r=_.visible;r||(r=_.visible=[]),-1===A.indexOf(e)&&(A.push(e),n=A.length-1),r[n]=t}(a,i)}}var C=g.legend,E=g._fullInput;if(!(E&&E._isShape)&&t.traceIs(g,"pie-like")){var q=c.label,D=p.indexOf(q);if("toggle"===s)-1===D?p.push(q):p.splice(D,1);else if("toggleothers"===s){var R=-1!==D,L=[];for(y=0;y<a.calcdata.length;y++){var I=a.calcdata[y];for(b=0;b<I.length;b++){var W=I[b].label;C===I[0].trace.legend&&q!==W&&(-1===p.indexOf(W)&&(R=!0),r(p,W),L.push(W))}}if(!R)for(var N=0;N<L.length;N++){var P=p.indexOf(L[N]);-1!==P&&p.splice(P,1)}}t.call("_guiRelayout",a,"hiddenlabels",p)}else{var B,F=z&&z.length,j=[];if(F)for(y=0;y<m.length;y++)(B=m[y]).visible&&B.legendgroup===z&&j.push(y);if("toggle"===s){var U;switch(g.visible){case!0:U="legendonly";break;case!1:U=!1;break;case"legendonly":U=!0}if(F)if(d)for(y=0;y<m.length;y++){var V=m[y];!1!==V.visible&&V.legendgroup===z&&S(V,U)}else S(g,U);else S(g,U)}else if("toggleothers"===s){var H,X,G,Y,Z,$=!0;for(y=0;y<m.length;y++)if(H=(Z=m[y])===g,G=!0!==Z.showlegend,!(H||G||(X=F&&Z.legendgroup===z,X||Z.legend!==C||!0!==Z.visible||t.traceIs(Z,"notLegendIsolatable")))){$=!1;break}for(y=0;y<m.length;y++)if(!1!==(Z=m[y]).visible&&Z.legend===C&&!t.traceIs(Z,"notLegendIsolatable"))switch(g.visible){case"legendonly":S(Z,!0);break;case!0:Y=!!$||"legendonly",H=Z===g,G=!0!==Z.showlegend&&!Z.legendgroup,S(Z,!(!(X=H||F&&Z.legendgroup===z)&&!G)||Y)}}for(y=0;y<O.length;y++)if(v=O[y]){var J=v.constructUpdate(),Q=Object.keys(J);for(b=0;b<Q.length;b++)M=Q[b],(_[M]=_[M]||[])[w[y]]=J[M]}for(x=Object.keys(_),y=0;y<x.length;y++)for(M=x[y],b=0;b<A.length;b++)_[M].hasOwnProperty(b)||(_[M][b]=void 0);T?t.call("_guiUpdate",a,_,{shapes:k},A):t.call("_guiRestyle",a,_,A)}},e.handleTitleClick=function(e,n,r){let i=e._fullLayout,o=e._fullData,s=a.getId(n),l=(i.shapes||[]).filter(e=>e.showlegend||e.legendgroup),c=o.concat(l);function u(e){return(e.legend||"legend")===s}var d,p;if("toggle"===r)d=!c.some(function(e){return u(e)&&!0===e.visible}),p=!1;else{d=!0,p=!c.some(function(e){return!u(e)&&!0===e.visible&&!1!==e.showlegend})}let h={visible:[]},f=[],m=(i.shapes||[]).map(function(e){return e._input});for(var g=!1,y=0;y<c.length;y++){let e=c[y],t=u(e);if(!t){let t=!0!==e.showlegend&&!e.legendgroup;if("toggle"===r||t)continue}let n=!!(t?d:p)||"legendonly";!1!==e.visible&&e.visible!==n&&(e._isShape?(m[e._index].visible=n,g=!0):(f.push(e.index),h.visible.push(n)))}g?t.call("_guiUpdate",e,h,{shapes:m},f):f.length&&t.call("_guiRestyle",e,h,f)}}),j0e=Ee((e,t)=>{t.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}}),kLe=Ee((e,t)=>{var{isArrayOrTypedArray:n}=Lp(),r=vo(),a=DD();t.exports=function(e,t,i){var o,s,l=t._inHover,c=a.isGrouped(t),u=a.isReversed(t),d={},p=[],h=!1,f={},m=0,g=0;function y(e,n,r){if(!1!==t.visible&&(!i||e===t._id))if(""!==n&&a.isGrouped(t))-1===p.indexOf(n)?(p.push(n),h=!0,d[n]=[r]):d[n].push(r);else{var o="~~i"+m;p.push(o),d[o]=[r],m++}}for(o=0;o<e.length;o++){var b=e[o],v=b[0],M=v.trace,x=M.legend,z=M.legendgroup;if(l||M.visible&&M.showlegend)if(r.traceIs(M,"pie-like")){var _=Array.isArray(M.legend),A=Array.isArray(M.showlegend);for(f[z]||(f[z]={}),s=0;s<b.length;s++)if(!A||!1!==M.showlegend[b[s].i]){_&&(x=M.legend[b[s].i]||"legend");var O=b[s].label;f[z][O]||(y(x,z,{label:O,color:b[s].color,i:b[s].i,trace:M,pts:b[s].pts}),f[z][O]=!0,g=Math.max(g,(O||"").length))}}else y(x,z,v),g=Math.max(g,(M.name||"").length)}if(!p.length)return[];var w=!h||!c,k=[];for(o=0;o<p.length;o++){var T=d[p[o]];w?k.push(T[0]):k.push(T)}for(w&&(k=[k]),o=0;o<k.length;o++){var S=1/0;for(s=0;s<k[o].length;s++){var C=k[o][s].trace.legendrank,E=n(C)?Math.min(C):C;S>E&&(S=E)}k[o][0]._groupMinRank=S,k[o][0]._preGroupSort=o}var q=function(e,t){return(n(e.trace.legendrank)?e.trace.legendrank[e.i]:e.trace.legendrank)-(n(t.trace.legendrank)?t.trace.legendrank[t.i]:t.trace.legendrank)||e._preSort-t._preSort};for(k.forEach(function(e,t){e[0]._preGroupSort=t}),k.sort(function(e,t){return e[0]._groupMinRank-t[0]._groupMinRank||e[0]._preGroupSort-t[0]._preGroupSort}),o=0;o<k.length;o++){k[o].forEach(function(e,t){e._preSort=t}),k[o].sort(q);var D=k[o][0].trace,R=null;for(s=0;s<k[o].length;s++){var L=k[o][s].trace.legendgrouptitle;if(L&&L.text){R=L,l&&(L.font=t._groupTitleFont);break}}if(u&&k[o].reverse(),R){var I=!1;for(s=0;s<k[o].length;s++)if(r.traceIs(k[o][s].trace,"pie-like")){I=!0;break}k[o].unshift({i:-1,groupTitle:R,noClick:I,trace:{showlegend:D.showlegend,legendgroup:D.legendgroup,legend:D.legend,visible:"toggleitem"===t.groupclick||D.visible}})}for(s=0;s<k[o].length;s++)k[o][s]=[k[o][s]]}return t._lgroupsLength=k.length,t._maxNameLength=g,k}}),Xz=Ee(e=>{var t=Fr();function n(e){return-1!==e.indexOf("e")?e.replace(/[.]?0+e/,"e"):-1!==e.indexOf(".")?e.replace(/[.]?0+$/,""):e}e.formatPiePercent=function(e,r){var a=n((100*e).toPrecision(3));return t.numSeparate(a,r)+"%"},e.formatPieValue=function(e,r){var a=n(e.toPrecision(10));return t.numSeparate(a,r)},e.getFirstFilled=function(e,n){if(t.isArrayOrTypedArray(e))for(var r=0;r<n.length;r++){var a=e[n[r]];if(a||0===a||""===a)return a}},e.castOption=function(n,r){return t.isArrayOrTypedArray(n)?e.getFirstFilled(n,r):n||void 0},e.getRotationAngle=function(e){return("auto"===e?0:e)*Math.PI/180}}),qLe=Ee((e,t)=>{var n=vs(),r=ao();t.exports=function(e,t,a,i){var o=a.marker.pattern;o&&o.shape?n.pointStyle(e,a,i,t):r.fill(e,t.color)}}),mS=Ee((e,t)=>{var n=ao(),r=Xz().castOption,a=qLe();t.exports=function(e,t,i,o){var s=i.marker.line,l=r(s.color,t.pts)||n.defaultLine,c=r(s.width,t.pts)||0;e.call(a,t,i,o).style("stroke-width",c).call(n.stroke,l)}}),K0e=Ee((e,t)=>{var n=mo(),r=vo(),a=Fr(),i=a.strTranslate,o=vs(),s=ao(),l=d2().extractOpts,c=Hc(),u=mS(),d=Xz().castOption,p=j0e();function h(e,t){return(t?"radial":"horizontal")+(e?"":"reversed")}function f(e){var t=e[0].trace,n=t.contours,r=c.hasLines(t),a=c.hasMarkers(t),i=t.visible&&t.fill&&"none"!==t.fill,o=!1,s=!1;if(n){var l=n.coloring;"lines"===l?o=!0:r="none"===l||"heatmap"===l||n.showlines,"constraint"===n.type?i="="!==n._operation:("fill"===l||"heatmap"===l)&&(s=!0)}return{showMarker:a,showLine:r,showFill:i,showGradientLine:o,showGradientFill:s,anyLine:r||o,anyFill:i||s}}function m(e,t,n){return e&&a.isArrayOrTypedArray(e)?t:e>n?n:e}t.exports=function(e,t,g){var y=t._fullLayout;g||(g=y.legend);var b="constant"===g.itemsizing,v=g.itemwidth,M=(v+2*p.itemGap)/2,x=i(M,0),z=function(e,t,n,r){var a;if(e+1)a=e;else{if(!(t&&t.width>0))return 0;a=t.width}return b?r:Math.min(a,n)};function _(e,a,i){var c=e[0].trace,u=c.marker||{},d=u.line||{},p=u.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",h=i?c.visible&&c.type===i:r.traceIs(c,"bar"),f=n.select(a).select("g.legendpoints").selectAll("path.legend"+i).data(h?[e]:[]);f.enter().append("path").classed("legend"+i,!0).attr("d",p).attr("transform",x),f.exit().remove(),f.each(function(e){var r=n.select(this),a=e[0],i=z(a.mlw,u.line,5,2);r.style("stroke-width",i+"px");var p=a.mcc;if(!g._inHover&&"mc"in a){var h=l(u),f=h.mid;void 0===f&&(f=(h.max+h.min)/2),p=o.tryColorscale(u,"")(f)}var y=p||a.mc||u.color,b=u.pattern,v=o.getPatternAttr,M=b&&(v(b.shape,0,"")||v(b.path,0,""));if(M){var x=v(b.bgcolor,0,null),_=v(b.fgcolor,0,null),A=b.fgopacity,O=m(b.size,8,10),w=m(b.solidity,.5,1),k="legend-"+c.uid;r.call(o.pattern,"legend",t,k,M,O,w,p,b.fillmode,x,_,A)}else r.call(s.fill,y);i&&s.stroke(r,a.mlc||d.color)})}function A(e,i,o){var s=e[0],l=s.trace,c=o?l.visible&&l.type===o:r.traceIs(l,o),p=n.select(i).select("g.legendpoints").selectAll("path.legend"+o).data(c?[e]:[]);if(p.enter().append("path").classed("legend"+o,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",x),p.exit().remove(),p.size()){var h=l.marker||{},f=z(d(h.line.width,s.pts),h.line,5,2),m="pieLike",g=a.minExtend(l,{marker:{line:{width:f}}},m),y=a.minExtend(s,{trace:g},m);u(p,y,g,t)}}e.each(function(e){var t=n.select(this),r=a.ensureSingle(t,"g","layers");r.style("opacity",e[0].trace.opacity);var o=g.indentation,s=g.valign,l=e[0].lineHeight,c=e[0].height;if("middle"===s&&0===o||!l||!c)r.attr("transform",null);else{var u={top:1,bottom:-1}[s]*(.5*(l-c+3))||0,d=g.indentation;r.attr("transform",i(d,u))}r.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),r.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var p=r.selectAll("g.legendsymbols").data([e]);p.enter().append("g").classed("legendsymbols",!0),p.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)}).each(function(e){var r,i=e[0].trace,c=[];if(i.visible)switch(i.type){case"histogram2d":case"heatmap":c=[["M-15,-2V4H15V-2Z"]],r=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":c=[["M-6,-6V6H6V-6Z"]],r=!0;break;case"densitymapbox":case"densitymap":c=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],r="radial";break;case"cone":c=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],r=!1;break;case"streamtube":c=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],r=!1;break;case"surface":c=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],r=!0;break;case"mesh3d":c=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!1;break;case"volume":c=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!0;break;case"isosurface":c=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],r=!1}var u=n.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(c);u.enter().append("path").classed("legend3dandfriends",!0).attr("transform",x).style("stroke-miterlimit",1),u.exit().remove(),u.each(function(e,c){var u,d=n.select(this),p=l(i),f=p.colorscale,m=p.reversescale;if(f){if(!r){var g=f.length;u=0===c?f[m?g-1:0][1]:1===c?f[m?0:g-1][1]:f[Math.floor((g-1)/2)][1]}}else{var y=i.vertexcolor||i.facecolor||i.color;u=a.isArrayOrTypedArray(y)?y[c]||y[0]:y}d.attr("d",e[0]),u?d.call(s.fill,u):d.call(function(e){if(e.size()){var n="legendfill-"+i.uid;o.gradient(e,t,n,h(m,"radial"===r),f,"fill")}})})}).each(function(e){var t=e[0].trace,r="waterfall"===t.type;if(e[0]._distinct&&r){var a=e[0].trace[e[0].dir].marker;return e[0].mc=a.color,e[0].mlw=a.line.width,e[0].mlc=a.line.color,_(e,this,"waterfall")}var i=[];t.visible&&r&&(i=e[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var o=n.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(i);o.enter().append("path").classed("legendwaterfall",!0).attr("transform",x).style("stroke-miterlimit",1),o.exit().remove(),o.each(function(e){var r=n.select(this),a=t[e[0]].marker,i=z(void 0,a.line,5,2);r.attr("d",e[1]).style("stroke-width",i+"px").call(s.fill,a.color),i&&r.call(s.stroke,a.line.color)})}).each(function(e){_(e,this,"funnel")}).each(function(e){_(e,this)}).each(function(e){var i=e[0].trace,l=n.select(this).select("g.legendpoints").selectAll("path.legendbox").data(i.visible&&r.traceIs(i,"box-violin")?[e]:[]);l.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",x),l.exit().remove(),l.each(function(){var e=n.select(this);if("all"!==i.boxpoints&&"all"!==i.points||0!==s.opacity(i.fillcolor)||0!==s.opacity((i.line||{}).color)){var r=z(void 0,i.line,5,2);e.style("stroke-width",r+"px").call(s.fill,i.fillcolor),r&&s.stroke(e,i.line.color)}else{var c=a.minExtend(i,{marker:{size:b?12:a.constrain(i.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});l.call(o.pointStyle,c,t)}})}).each(function(e){A(e,this,"funnelarea")}).each(function(e){A(e,this,"pie")}).each(function(e){var r,i,s=f(e),u=s.showFill,d=s.showLine,p=s.showGradientLine,m=s.showGradientFill,g=s.anyFill,y=s.anyLine,b=e[0],M=b.trace,x=l(M),_=x.colorscale,A=x.reversescale,O=c.hasMarkers(M)||!g?"M5,0":y?"M5,-2":"M5,-3",w=n.select(this),k=w.select(".legendfill").selectAll("path").data(u||m?[e]:[]);if(k.enter().append("path").classed("js-fill",!0),k.exit().remove(),k.attr("d",O+"h"+v+"v6h-"+v+"z").call(function(e){if(e.size())if(u)o.fillGroupStyle(e,t,!0);else{var n="legendfill-"+M.uid;o.gradient(e,t,n,h(A),_,"fill")}}),d||p){var T=z(void 0,M.line,10,5);i=a.minExtend(M,{line:{width:T}}),r=[a.minExtend(b,{trace:i})]}var S=w.select(".legendlines").selectAll("path").data(d||p?[r]:[]);S.enter().append("path").classed("js-line",!0),S.exit().remove(),S.attr("d",O+(p?"l"+v+",0.0001":"h"+v)).call(d?o.lineGroupStyle:function(e){if(e.size()){var n="legendline-"+M.uid;o.lineGroupStyle(e),o.gradient(e,t,n,h(A),_,"stroke")}})}).each(function(e){var r,i,s=f(e),l=s.anyFill,u=s.anyLine,d=s.showLine,p=s.showMarker,h=e[0],m=h.trace,g=!p&&!u&&!l&&c.hasText(m);function y(e,t,n,r){var i=a.nestedProperty(m,e).get(),o=a.isArrayOrTypedArray(i)&&t?t(i):i;if(b&&o&&void 0!==r&&(o=r),n){if(o<n[0])return n[0];if(o>n[1])return n[1]}return o}function v(e){return h._distinct&&h.index&&e[h.index]?e[h.index]:e[0]}if(p||g||d){var M={},z={};if(p){M.mc=y("marker.color",v),M.mx=y("marker.symbol",v),M.mo=y("marker.opacity",a.mean,[.2,1]),M.mlc=y("marker.line.color",v),M.mlw=y("marker.line.width",a.mean,[0,5],2),M.mld=m._isShape?"solid":y("marker.line.dash",v),z.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var _=y("marker.size",a.mean,[2,16],12);M.ms=_,z.marker.size=_}d&&(z.line={width:y("line.width",v,[0,10],5)}),g&&(M.tx="Aa",M.tp=y("textposition",v),M.ts=10,M.tc=y("textfont.color",v),M.tf=y("textfont.family",v),M.tw=y("textfont.weight",v),M.ty=y("textfont.style",v),M.tv=y("textfont.variant",v),M.tC=y("textfont.textcase",v),M.tE=y("textfont.lineposition",v),M.tS=y("textfont.shadow",v)),r=[a.minExtend(h,M)],(i=a.minExtend(m,z)).selectedpoints=null,i.texttemplate=null}var A=n.select(this).select("g.legendpoints"),O=A.selectAll("path.scatterpts").data(p?r:[]);O.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",x),O.exit().remove(),O.call(o.pointStyle,i,t),p&&(r[0].mrc=3);var w=A.selectAll("g.pointtext").data(g?r:[]);w.enter().append("g").classed("pointtext",!0).append("text").attr("transform",x),w.exit().remove(),w.selectAll("text").call(o.textPointStyle,i,t)}).each(function(e){var t=e[0].trace,r=n.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(t.visible&&"candlestick"===t.type?[e,e]:[]);r.enter().append("path").classed("legendcandle",!0).attr("d",function(e,t){return t?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",x).style("stroke-miterlimit",1),r.exit().remove(),r.each(function(e,r){var a=n.select(this),i=t[r?"increasing":"decreasing"],o=z(void 0,i.line,5,2);a.style("stroke-width",o+"px").call(s.fill,i.fillcolor),o&&s.stroke(a,i.line.color)})}).each(function(e){var t=e[0].trace,r=n.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(t.visible&&"ohlc"===t.type?[e,e]:[]);r.enter().append("path").classed("legendohlc",!0).attr("d",function(e,t){return t?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",x).style("stroke-miterlimit",1),r.exit().remove(),r.each(function(e,r){var a=n.select(this),i=t[r?"increasing":"decreasing"],l=z(void 0,i.line,5,2);a.style("fill","none").call(o.dashLine,i.line.dash,l),l&&s.stroke(a,i.line.color)})})}}),tle=Ee((e,t)=>{var n=mo(),r=Fr(),a=td(),i=vo(),o=$8(),s=p2(),l=vs(),c=ao(),u=q1(),d=V0e().handleItemClick,p=V0e().handleTitleClick,h=j0e(),f=lh(),m=f.LINE_SPACING,g=f.FROM_TL,y=f.FROM_BR,b=kLe(),v=K0e(),M=DD(),x=/^legend[0-9]*$/;function z(e,t){var d,f,x=t||{},z=e._fullLayout,w=M.getId(x),E=x._inHover;if(E?(f=x.layer,d="hover"):(f=z._infolayer,d=w),f){var q;if(d+=z._uid,e._legendMouseDownTime||(e._legendMouseDownTime=0),E){if(!x.entries)return;q=b(x.entries,x)}else{for(var D=(e.calcdata||[]).slice(),R=z.shapes,L=0;L<R.length;L++){var I=R[L];if(I.showlegend){var W={_isShape:!0,_fullInput:I,index:I._index,name:I.name||I.label.text||"shape "+I._index,legend:I.legend,legendgroup:I.legendgroup,legendgrouptitle:I.legendgrouptitle,legendrank:I.legendrank,legendwidth:I.legendwidth,showlegend:I.showlegend,visible:I.visible,opacity:I.opacity,mode:"line"===I.type?"lines":"markers",line:I.line,marker:{line:I.line,color:I.fillcolor,size:12,symbol:"rect"===I.type?"square":"circle"===I.type?"circle":"hexagon2"}};D.push([{trace:W}])}}q=z.showlegend&&b(D,x,z._legends.length>1)}var N=z.hiddenlabels||[];if(!(E||z.showlegend&&q.length))return f.selectAll("."+w).remove(),z._topdefs.select("#"+d).remove(),a.autoMargin(e,w);var P=r.ensureSingle(f,"g",w,function(e){E||e.attr("pointer-events","all")}),B=r.ensureSingleById(z._topdefs,"clipPath",d,function(e){e.append("rect")}),F=r.ensureSingle(P,"rect","bg",function(e){e.attr("shape-rendering","crispEdges")});F.call(c.stroke,x.bordercolor).call(c.fill,x.bgcolor).style("stroke-width",x.borderwidth+"px");var j,U=r.ensureSingle(P,"g","scrollbox"),V=x.title;x._titleWidth=0,x._titleHeight=0,V.text?((j=r.ensureSingle(U,"text",w+"titletext")).attr("text-anchor","start").call(l.font,V.font).text(V.text),T(j,U,e,x,1),!E&&(x.titleclick||x.titledoubleclick)&&function(e,t,a,s){if(t._fullData.some(function(e){let t=e.legend||"legend";return(Array.isArray(t)?t.includes(s):t===s)&&i.traceIs(e,"pie-like")}))return;let l=t._context.doubleClickDelay;var u,d=1;let h=r.ensureSingle(e,"rect",s+"titletoggle",function(e){t._context.staticPlot||e.style("cursor","pointer").attr("pointer-events","all"),e.call(c.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(h.on("mousedown",function(){(u=(new Date).getTime())-t._legendMouseDownTime<l?d+=1:(d=1,t._legendMouseDownTime=u)}),h.on("mouseup",function(){if(t._dragged||t._editing)return;(new Date).getTime()-t._legendMouseDownTime>l&&(d=Math.max(d-1,1));let e={event:n.event,legendId:s,data:t.data,layout:t.layout,fullData:t._fullData,fullLayout:t._fullLayout};if(1===d&&a.titleclick){if(!1===o.triggerHandler(t,"plotly_legendtitleclick",e))return;a._titleClickTimeout=setTimeout(function(){t._fullLayout&&p(t,a,a.titleclick)},l)}else 2===d&&(a._titleClickTimeout&&clearTimeout(a._titleClickTimeout),t._legendMouseDownTime=0,!1!==o.triggerHandler(t,"plotly_legendtitledoubleclick",e)&&a.titledoubleclick&&p(t,a,a.titledoubleclick))}))}(U,e,x,w)):(U.selectAll("."+w+"titletext").remove(),U.selectAll("."+w+"titletoggle").remove());var H=r.ensureSingle(P,"rect","scrollbar",function(e){e.attr(h.scrollBarEnterAttrs).call(c.fill,h.scrollBarColor)}),X=U.selectAll("g.groups").data(q);X.enter().append("g").attr("class","groups"),X.exit().remove();var G=X.selectAll("g.traces").data(r.identity);G.enter().append("g").attr("class","traces"),G.exit().remove(),G.style("opacity",function(t){let n=t[0],r=n.trace;if(n.groupTitle){let t=r.legendgroup,n=(z.shapes||[]).filter(function(e){return e.showlegend});return e._fullData.concat(n).some(function(e){return e.legendgroup===t&&(e.legend||"legend")===w&&!0===e.visible})?1:.5}return i.traceIs(r,"pie-like")?-1!==N.indexOf(t[0].label)?.5:1:"legendonly"===r.visible?.5:1}).each(function(){n.select(this).call(O,e,x)}).call(v,e,x).each(function(t){E||t[0].groupTitle&&"toggleitem"===x.groupclick||n.select(this).call(k,e,w)}),r.syncOrAsync([a.previousPromises,function(){return function(e,t,r,a,i){var o=e._fullLayout,s=M.getId(a);a||(a=o[s]);var c=o._size,d=M.isVertical(a),p=M.isGrouped(a),f="fraction"===a.entrywidthmode,g=a.borderwidth,y=2*g,b=h.itemGap,v=a.indentation+a.itemwidth+2*b,x=2*(g+b),z=C(a),A=a.y<0||0===a.y&&"top"===z,O=a.y>1||1===a.y&&"bottom"===z,w=a.tracegroupgap,k={};let{orientation:T,yref:E}=a,{maxheight:q}=a,D=A||O||"v"!==T||"paper"!==E;q||=D?.5:1;let R=D?o.height:c.h;a._maxHeight=Math.max(q>1?q:q*R,30);var L=0;a._width=0,a._height=0;var I=function(e){var t=0,n=0,r=e.title.side;return r&&(-1!==r.indexOf("left")&&(t=e._titleWidth),-1!==r.indexOf("top")&&(n=e._titleHeight)),[t,n]}(a);if(d)r.each(function(e){var t=e[0].height;l.setTranslate(this,g+I[0],g+I[1]+a._height+t/2+b),a._height+=t,a._width=Math.max(a._width,e[0].width)}),L=v+a._width,a._width+=b+v+y,a._height+=x,p&&(t.each(function(e,t){l.setTranslate(this,0,t*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var W=S(a),N=a.x<0||0===a.x&&"right"===W,P=a.x>1||1===a.x&&"left"===W,B=O||A,F=o.width/2;a._maxWidth=Math.max(N?B&&"left"===W?c.l+c.w:F:P?B&&"right"===W?c.r+c.w:F:c.w,2*v);var j=0,U=0;r.each(function(e){var t=_(e,a,v);j=Math.max(j,t),U+=t}),L=null;var V=0;if(p){var H=0,X=0,G=0;t.each(function(){var e=0,t=0;n.select(this).selectAll("g.traces").each(function(n){var r=_(n,a,v),i=n[0].height;l.setTranslate(this,I[0],I[1]+g+b+i/2+t),t+=i,e=Math.max(e,r),k[n[0].trace.legendgroup]=e});var r=e+b;X>0&&r+g+X>a._maxWidth?(V=Math.max(V,X),X=0,G+=H+w,H=t):H=Math.max(H,t),l.setTranslate(this,X,G),X+=r}),a._width=Math.max(V,X)+g,a._height=G+H+x}else{var Y=r.size(),Z=U+y+(Y-1)*b<a._maxWidth,$=0,J=0,Q=0,K=0;r.each(function(e){var t=e[0].height,n=_(e,a,v),r=Z?n:j;f||(r+=b),r+g+J-b>=a._maxWidth&&(V=Math.max(V,K),J=0,Q+=$,a._height+=$,$=0),l.setTranslate(this,I[0]+g+J,I[1]+g+Q+t/2+b),K=J+n+b,J+=r,$=Math.max($,t)}),Z?(a._width=J+y,a._height=$+x):(a._width=Math.max(V,K)+y,a._height+=$+x)}}a._width=Math.ceil(Math.max(a._width+I[0],a._titleWidth+2*(g+h.titlePad))),a._height=Math.ceil(Math.max(a._height+I[1],a._titleHeight+2*(g+h.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var ee=e._context.edits,te=ee.legendText||ee.legendPosition;r.each(function(e){var t=n.select(this).select("."+s+"toggle"),r=e[0].height,i=e[0].trace.legendgroup,o=_(e,a,v);p&&""!==i&&(o=k[i]);var c=te?v:L||o;!d&&!f&&(c+=b/2),l.setRect(t,0,-r/2,c,r)});var ne=i.select("."+s+"titletext");ne.node()&&function(e,t,n){if("top center"===t.title.side||"top right"===t.title.side){var r=t.title.font.size*m,a=0,i=e.node(),o=l.bBox(i).width;"top center"===t.title.side?a=.5*(t._width-2*n-2*h.titlePad-o):"top right"===t.title.side&&(a=t._width-2*n-2*h.titlePad-o),u.positionText(e,n+h.titlePad+a,n+r)}}(ne,a,g);var re=i.select("."+s+"titletoggle");if(re.size()&&ne.node()){var ae=ne.attr("x")||0,ie=h.titlePad;l.setRect(re,ae-ie,g,a._titleWidth+2*ie,a._titleHeight+2*ie)}}(e,X,G,x,U)},function(){var t,o,c,u,p=z._size,m=x.borderwidth,b="paper"===x.xref,v="paper"===x.yref;if(V.text){let t=(z.shapes||[]).filter(function(e){return e.showlegend}),n=e._fullData.concat(t).some(function(e){let t=e.legend||"legend";return(Array.isArray(t)?t.includes(w):t===w)&&!0===e.visible});j.style("opacity",n?1:.5)}if(!E){var M,_;M=b?p.l+p.w*x.x-g[S(x)]*x._width:z.width*x.x-g[S(x)]*x._width,_=v?p.t+p.h*(1-x.y)-g[C(x)]*x._effHeight:z.height*(1-x.y)-g[C(x)]*x._effHeight;var O=function(e,t,n,r){var i=e._fullLayout,o=i[t],s=S(o),l=C(o),c="paper"===o.xref,u="paper"===o.yref;e._fullLayout._reservedMargin[t]={};var d=o.y<.5?"b":"t",p=o.x<.5?"l":"r",h={r:i.width-n,l:n+o._width,b:i.height-r,t:r+o._effHeight};if(c&&u)return a.autoMargin(e,t,{x:o.x,y:o.y,l:o._width*g[s],r:o._width*y[s],b:o._effHeight*y[l],t:o._effHeight*g[l]});c?e._fullLayout._reservedMargin[t][d]=h[d]:u||"v"===o.orientation?e._fullLayout._reservedMargin[t][p]=h[p]:e._fullLayout._reservedMargin[t][d]=h[d]}(e,w,M,_);if(O)return;if(z.margin.autoexpand){var k=M,T=_;M=b?r.constrain(M,0,z.width-x._width):k,_=v?r.constrain(_,0,z.height-x._effHeight):T,M!==k&&r.log("Constrain "+w+".x to make legend fit inside graph"),_!==T&&r.log("Constrain "+w+".y to make legend fit inside graph")}l.setTranslate(P,M,_)}if(H.on(".drag",null),P.on("wheel",null),E||x._height<=x._maxHeight||e._context.staticPlot){var q=x._effHeight;E&&(q=x._height),F.attr({width:x._width-m,height:q-m,x:m/2,y:m/2}),l.setTranslate(U,0,0),B.select("rect").attr({width:x._width-2*m,height:q-2*m,x:m,y:m}),l.setClipUrl(U,d,e),l.setRect(H,0,0,0,0),delete x._scrollY}else{var D=Math.max(h.scrollBarMinHeight,x._effHeight*x._effHeight/x._height),R=x._effHeight-D-2*h.scrollBarMargin,L=x._height-x._effHeight,I=R/L,W=Math.min(x._scrollY||0,L);F.attr({width:x._width-2*m+h.scrollBarWidth+h.scrollBarMargin,height:x._effHeight-m,x:m/2,y:m/2}),B.select("rect").attr({width:x._width-2*m+h.scrollBarWidth+h.scrollBarMargin,height:x._effHeight-2*m,x:m,y:m+W}),l.setClipUrl(U,d,e),$(W,D,I),P.on("wheel",function(){$(W=r.constrain(x._scrollY+n.event.deltaY/L*R,0,L),D,I),0!==W&&W!==L&&n.event.preventDefault()});var N,X,G,Y=n.behavior.drag().on("dragstart",function(){var e=n.event.sourceEvent;N="touchstart"===e.type?e.changedTouches[0].clientY:e.clientY,G=W}).on("drag",function(){var e=n.event.sourceEvent;2===e.buttons||e.ctrlKey||(X="touchmove"===e.type?e.changedTouches[0].clientY:e.clientY,W=function(e,t,n){var a=(n-t)/I+e;return r.constrain(a,0,L)}(G,N,X),$(W,D,I))});H.call(Y);var Z=n.behavior.drag().on("dragstart",function(){var e=n.event.sourceEvent;"touchstart"===e.type&&(N=e.changedTouches[0].clientY,G=W)}).on("drag",function(){var e=n.event.sourceEvent;"touchmove"===e.type&&(X=e.changedTouches[0].clientY,W=function(e,t,n){var a=(t-n)/I+e;return r.constrain(a,0,L)}(G,N,X),$(W,D,I))});U.call(Z)}function $(t,n,r){x._scrollY=e._fullLayout[w]._scrollY=t,l.setTranslate(U,0,-t),l.setRect(H,x._width,h.scrollBarMargin+t*r,h.scrollBarWidth,n),B.select("rect").attr("y",m+t)}e._context.edits.legendPosition&&(P.classed("cursor-move",!0),s.init({element:P.node(),gd:e,prepFn:function(e){if(e.target!==H.node()){var t=l.getTranslate(P);c=t.x,u=t.y}},moveFn:function(e,n){if(void 0!==c&&void 0!==u){var r=c+e,a=u+n;l.setTranslate(P,r,a),t=s.align(r,x._width,p.l,p.l+p.w,x.xanchor),o=s.align(a+x._height,-x._height,p.t+p.h,p.t,x.yanchor)}},doneFn:function(){if(void 0!==t&&void 0!==o){var n={};n[w+".x"]=t,n[w+".y"]=o,i.call("_guiRelayout",e,n)}},clickFn:function(t,n){var r=f.selectAll("g.traces").filter(function(){var e=this.getBoundingClientRect();return n.clientX>=e.left&&n.clientX<=e.right&&n.clientY>=e.top&&n.clientY<=e.bottom});r.size()>0&&A(e,x,r,t,n)}}))}],e)}}function _(e,t,n){var r=e[0],a=r.width,i=t.entrywidthmode,o=r.trace.legendwidth||t.entrywidth;return"fraction"===i?t._maxWidth*o:n+(o||a)}function A(e,t,n,r,a){var s=e._fullLayout,l=n.data()[0][0].trace,c=t.itemclick,u=t.itemdoubleclick,p={event:a,node:n.node(),curveNumber:l.index,expandedIndex:l.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:s};l._group&&(p.group=l._group),i.traceIs(l,"pie-like")&&(p.label=n.datum()[0].label);var h=o.triggerHandler(e,"plotly_legendclick",p);if(1===r){if(!1===h)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&c&&d(n,e,t,c)},e._context.doubleClickDelay)}else if(2===r){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0,!1!==o.triggerHandler(e,"plotly_legenddoubleclick",p)&&!1!==h&&u&&d(n,e,t,u)}}function O(e,t,n){var a,o,s=M.getId(n),c=e.data()[0][0],d=c.trace,p=i.traceIs(d,"pie-like"),f=!n._inHover&&t._context.edits.legendText&&!p,m=n._maxNameLength;c.groupTitle?(a=c.groupTitle.text,o=c.groupTitle.font):(o=n.font,n.entries?a=c.text:(a=p?c.label:d.name,d._meta&&(a=r.templateString(a,d._meta))));var g=r.ensureSingle(e,"text",s+"text");g.attr("text-anchor","start").call(l.font,o).text(f?w(a,m):a);var y=n.indentation+n.itemwidth+2*h.itemGap;u.positionText(g,y,0),f?g.call(u.makeEditable,{gd:t,text:a}).call(T,e,t,n).on("edit",function(r){this.text(w(r,m)).call(T,e,t,n);var a=c.trace._fullInput||{},o={};return o.name=r,a._isShape?i.call("_guiRelayout",t,"shapes["+d.index+"].name",o.name):i.call("_guiRestyle",t,o,d.index)}):T(g,e,t,n)}function w(e,t){var n=Math.max(4,t);if(e&&e.trim().length>=n/2)return e;for(var r=n-(e=e||"").length;r>0;r--)e+=" ";return e}function k(e,t,a){var i,o=t._context.doubleClickDelay,s=1,l=r.ensureSingle(e,"rect",a+"toggle",function(e){t._context.staticPlot||e.style("cursor","pointer").attr("pointer-events","all"),e.call(c.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(l.on("mousedown",function(){(i=(new Date).getTime())-t._legendMouseDownTime<o?s+=1:(s=1,t._legendMouseDownTime=i)}),l.on("mouseup",function(){if(!t._dragged&&!t._editing){var r=t._fullLayout[a];(new Date).getTime()-t._legendMouseDownTime>o&&(s=Math.max(s-1,1)),A(t,r,e,s,n.event)}}))}function T(e,t,n,r,a){r._inHover&&e.attr("data-notex",!0),u.convertToTspans(e,n,function(){!function(e,t,n,r){var a=e.data()[0][0],i=a&&a.trace.showlegend;if(Array.isArray(i)&&(i=!1!==i[a.i]),!n._inHover&&a&&!i)return void e.remove();var o=e.select("g[class*=math-group]"),s=o.node(),c=M.getId(n);n||(n=t._fullLayout[c]);var d,p=n.borderwidth;d=1===r?n.title.font:a.groupTitle?a.groupTitle.font:n.font;var f,g,y=d.size*m;if(s){var b=l.bBox(s);f=b.height,g=b.width,1===r?l.setTranslate(o,p,p+.75*f):l.setTranslate(o,0,.25*f)}else{var v="."+c+(1===r?"title":"")+"text",x=e.select(v),z=u.lineCount(x),_=x.node();if(f=y*z,g=_?l.bBox(_).width:0,1===r)"left"===n.title.side&&(g+=2*h.itemGap),u.positionText(x,p+h.titlePad,p+y);else{var A=2*h.itemGap+n.indentation+n.itemwidth;a.groupTitle&&(A=h.itemGap,g-=n.indentation+n.itemwidth),u.positionText(x,A,-y*((z-1)/2-.3))}}1===r?(n._titleWidth=g,n._titleHeight=f):(a.lineHeight=y,a.height=Math.max(f,16)+3,a.width=g)}(t,n,r,a)})}function S(e){return r.isRightAnchor(e)?"right":r.isCenterAnchor(e)?"center":"left"}function C(e){return r.isBottomAnchor(e)?"bottom":r.isMiddleAnchor(e)?"middle":"top"}t.exports=function(e,t){if(t)z(e,t);else{var r=e._fullLayout,a=r._legends;r._infolayer.selectAll('[class^="legend"]').each(function(){var e=n.select(this),t=e.attr("class").split(" ")[0];t.match(x)&&-1===a.indexOf(t)&&e.remove()});for(var i=0;i<a.length;i++){var o=a[i];z(e,e._fullLayout[o])}}}}),ile=Ee(e=>{var t=mo(),n=xs(),r=Vh(),a=Fr(),i=a.pushUnique,o=a.strTranslate,s=a.strRotate,l=$8(),c=q1(),u=_Le(),d=vs(),p=ao(),h=p2(),f=es(),m=sh().zindexSeparator,g=vo(),y=fm(),b=tD(),v=B0e(),M=tle(),x=b.YANGLE,z=Math.PI*x/180,_=1/Math.sin(z),A=Math.cos(z),O=Math.sin(z),w=b.HOVERARROWSIZE,k=b.HOVERTEXTPAD,T={box:!0,ohlc:!0,violin:!0,candlestick:!0},S={scatter:!0,scattergl:!0,splom:!0};function C(e,t){return e.distance-t.distance}function E(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}e.hover=function(e,r,o,s){e=a.getGraphDiv(e);var c=r.target;a.throttle(e._fullLayout._uid+b.HOVERID,b.HOVERMINTIME,function(){!function(e,r,o,s,c){o||(o="xy"),"string"==typeof o&&(o=o.split(m)[0]);var d,b,v,M=Array.isArray(o)?o:[o],x=e._fullLayout,z=x.hoversubplots,A=x._plots||[],O=A[o],k=x._has("cartesian"),q=r.hovermode||x.hovermode,R="x"===(q||"").charAt(0),B="y"===(q||"").charAt(0);if(k&&(R||B)&&"axis"===z)for(var V=M.length,H=0;H<V;H++)if(A[d=M[H]]){b=f.getFromId(e,d,"x"),v=f.getFromId(e,d,"y");var X=(R?b:v)._subplotsWith;if(X&&X.length)for(var G=0;G<X.length;G++)i(M,X[G])}if(O&&"single"!==z){var Y=O.overlays.map(function(e){return e.id});M=M.concat(Y)}for(var Z=M.length,$=new Array(Z),J=new Array(Z),Q=!1,K=0;K<Z;K++)if(d=M[K],A[d])Q=!0,$[K]=A[d].xaxis,J[K]=A[d].yaxis;else{if(!x[d]||!x[d]._subplot)return void a.warn("Unrecognized subplot: "+d);var ee=x[d]._subplot;$[K]=ee.xaxis,J[K]=ee.yaxis}if(q&&!Q&&(q="closest"),-1===["x","y","closest","x unified","y unified"].indexOf(q)||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return h.unhoverRaw(e,r);var te=x.hoverdistance;-1===te&&(te=1/0);var ne=x.spikedistance;-1===ne&&(ne=1/0);var re,ae,ie,oe,se,le,ce,ue,de,pe,he,fe,me,ge=[],ye=[],be={hLinePoint:null,vLinePoint:null},ve=!1;if(Array.isArray(r))for(q="array",ie=0;ie<r.length;ie++)(se=e.calcdata[r[ie].curveNumber||0])&&(le=se[0].trace,"skip"!==se[0].trace.hoverinfo&&(ye.push(se),"h"===le.orientation&&(ve=!0)));else{var Me,xe,ze=e.calcdata.slice();for(ze.sort(function(e,t){return(e[0].trace.zorder||0)-(t[0].trace.zorder||0)}),oe=0;oe<ze.length;oe++)se=ze[oe],"skip"!==(le=se[0].trace).hoverinfo&&y.isTraceInSubplots(le,M)&&(ye.push(se),"h"===le.orientation&&(ve=!0));if(!c)Me="xpx"in r?r.xpx:$[0]._length/2,xe="ypx"in r?r.ypx:J[0]._length/2;else{if(!1===l.triggerHandler(e,"plotly_beforehover",r))return;var _e=c.getBoundingClientRect();Me=r.clientX-_e.left,xe=r.clientY-_e.top,x._calcInverseTransform(e);var Ae=a.apply3DTransform(x._invTransform)(Me,xe);if(Me=Ae[0],xe=Ae[1],Me<0||Me>$[0]._length||xe<0||xe>J[0]._length)return h.unhoverRaw(e,r)}if(r.pointerX=Me+$[0]._offset,r.pointerY=xe+J[0]._offset,re="xval"in r?y.flat(M,r.xval):y.p2c($,Me),ae="yval"in r?y.flat(M,r.yval):y.p2c(J,xe),!n(re[0])||!n(ae[0]))return a.warn("Fx.hover failed",r,e),h.unhoverRaw(e,r)}x.clickanywhere&&(e._hoverXVals=re,e._hoverYVals=ae,e._hoverXAxes=$,e._hoverYAxes=J);var Oe=1/0;function we(t,i){for(oe=0;oe<ye.length;oe++)if((se=ye[oe])&&se[0]&&se[0].trace&&(!0===(le=se[0].trace).visible&&0!==le._length&&-1===["carpet","contourcarpet"].indexOf(le._module.name))){if(de=q,y.isUnifiedHover(de)&&(de=de.charAt(0)),"splom"===le.type?ce=M[ue=0]:(ce=y.getSubplot(le),ue=M.indexOf(ce)),fe={cd:se,trace:le,xa:$[ue],ya:J[ue],maxHoverDistance:te,maxSpikeDistance:ne,index:!1,distance:Math.min(Oe,te),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:p.defaultLine,name:le.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},x[ce]&&(fe.subplot=x[ce]._subplot),x._splomScenes&&x._splomScenes[le.uid]&&(fe.scene=x._splomScenes[le.uid]),"array"===de){var o=r[oe];"pointNumber"in o?(fe.index=o.pointNumber,de="closest"):(de="","xval"in o&&(pe=o.xval,de="x"),"yval"in o&&(he=o.yval,de=de?"closest":"y"))}else void 0!==t&&void 0!==i?(pe=t,he=i):(pe=re[ue],he=ae[ue]);if(me=ge.length,0!==te)if(le._module&&le._module.hoverPoints){var s=le._module.hoverPoints(fe,pe,he,de,{finiteRange:!0,hoverLayer:x._hoverlayer,hoversubplots:z,gd:e});if(s)for(var l,c=0;c<s.length;c++)l=s[c],n(l.x0)&&n(l.y0)&&ge.push(W(l,q))}else a.log("Unrecognized trace type in hover:",le);if("closest"===q&&ge.length>me&&(ge.splice(0,me),Oe=ge[0].distance),k&&0!==ne&&0===ge.length){fe.distance=ne,fe.index=!1;var u=le._module.hoverPoints(fe,pe,he,"closest",{hoverLayer:x._hoverlayer});if(u&&(u=u.filter(function(e){return e.spikeDistance<=ne})),u&&u.length){var d,h=u.filter(function(e){return e.xa.showspikes&&"hovered data"!==e.xa.spikesnap});if(h.length){var f=h[0];n(f.x0)&&n(f.y0)&&(d=Te(f),(!be.vLinePoint||be.vLinePoint.spikeDistance>d.spikeDistance)&&(be.vLinePoint=d))}var m=u.filter(function(e){return e.ya.showspikes&&"hovered data"!==e.ya.spikesnap});if(m.length){var g=m[0];n(g.x0)&&n(g.y0)&&(d=Te(g),(!be.hLinePoint||be.hLinePoint.spikeDistance>d.spikeDistance)&&(be.hLinePoint=d))}}}}}function ke(e,t,n){for(var r,a=null,i=1/0,o=0;o<e.length;o++)b&&b._id!==e[o].xa._id||v&&v._id!==e[o].ya._id||(r=e[o].spikeDistance,n&&0===o&&(r=-1/0),r<=i&&r<=t&&(a=e[o],i=r));return a}function Te(e){return e?{xa:e.xa,ya:e.ya,x:void 0!==e.xSpike?e.xSpike:(e.x0+e.x1)/2,y:void 0!==e.ySpike?e.ySpike:(e.y0+e.y1)/2,distance:e.distance,spikeDistance:e.spikeDistance,curveNumber:e.trace.index,color:e.color,pointNumber:e.index}:null}we();var Se={fullLayout:x,container:x._hoverlayer,event:r},Ce=e._spikepoints,Ee={vLinePoint:be.vLinePoint,hLinePoint:be.hLinePoint};e._spikepoints=Ee;var qe=function(){var e=ge.filter(function(e){return b&&b._id===e.xa._id&&v&&v._id===e.ya._id}),t=ge.filter(function(e){return!(b&&b._id===e.xa._id&&v&&v._id===e.ya._id)});e.sort(C),t.sort(C),ge=function(e,t){for(var n=t.charAt(0),r=[],a=[],i=[],o=0;o<e.length;o++){var s=e[o];g.traceIs(s.trace,"bar-like")||g.traceIs(s.trace,"box-violin")?i.push(s):s.trace[n+"period"]?a.push(s):r.push(s)}return r.concat(a).concat(i)}(ge=e.concat(t),q)};qe();var De=q.charAt(0),Re=("x"===De||"y"===De)&&ge[0]&&S[ge[0].trace.type];if(k&&0!==ne&&0!==ge.length){var Le=ke(ge.filter(function(e){return e.ya.showspikes}),ne,Re);be.hLinePoint=Te(Le);var Ie=ke(ge.filter(function(e){return e.xa.showspikes}),ne,Re);be.vLinePoint=Te(Ie)}if(0===ge.length){var We=h.unhoverRaw(e,r);if(k&&(null!==be.hLinePoint||null!==be.vLinePoint)&&P(Ce)&&N(e,be,Se),x.hoveranywhere&&!s&&c){var Ne=e._hoverdata;Ne&&Ne.length&&(e.emit("plotly_unhover",{event:r,points:Ne}),e._hoverdata=[]),pt([])}return We}if(k&&P(Ce)&&N(e,be,Se),y.isXYhover(de)&&0!==ge[0].length&&"splom"!==ge[0].trace.type){var Pe=ge[0],Be=(ge=T[Pe.trace.type]?ge.filter(e=>e.trace.index===Pe.trace.index):[Pe]).length;we(F("x",Pe,x),F("y",Pe,x));var Fe,je=[],Ue={},Ve=0,He=function(e){var t=T[e.trace.type]?E(e):e.trace.index;if(Ue[t]){var n=Ue[t]-1,r=je[n];n>0&&Math.abs(e.distance)<Math.abs(r.distance)&&(je[n]=e)}else Ve++,Ue[t]=Ve,je.push(e)};for(Fe=0;Fe<Be;Fe++)He(ge[Fe]);for(Fe=ge.length-1;Fe>Be-1;Fe--)He(ge[Fe]);ge=je,qe()}var Xe=e._hoverdata,Ge=[],Ye=j(e),Ze=U(e);for(let e of ge){var $e=y.makeEventData(e,e.trace,e.cd);if(!1!==e.hovertemplate){var Je=!1;e.cd[e.index]&&e.cd[e.index].ht&&(Je=e.cd[e.index].ht),e.hovertemplate=Je||e.trace.hovertemplate||!1}if(e.xa&&e.ya){var Qe=e.x0+e.xa._offset,Ke=e.x1+e.xa._offset,et=e.y0+e.ya._offset,tt=e.y1+e.ya._offset,nt=Math.min(Qe,Ke),rt=Math.max(Qe,Ke),at=Math.min(et,tt),it=Math.max(et,tt);$e.bbox={x0:nt+Ze,x1:rt+Ze,y0:at+Ye,y1:it+Ye},$e.xPixel=(Qe+Ke)/2,$e.yPixel=(et+tt)/2}e.eventData=[$e],Ge.push($e)}e._hoverdata=Ge;var ot="y"===q&&(ye.length>1||ge.length>1)||"closest"===q&&ve&&ge.length>1,st=p.combine(x.plot_bgcolor||p.background,x.paper_bgcolor),lt=D(ge,{gd:e,hovermode:q,rotateLabels:ot,bgColor:st,container:x._hoverlayer,outerContainer:x._paper.node(),commonLabelOpts:x.hoverlabel,hoverdistance:x.hoverdistance}),ct=lt.hoverLabels;if(y.isUnifiedHover(q)||(function(e,t,n,r){var a,i,o,s,l,c,u,d=t?"xa":"ya",p=t?"ya":"xa",h=0,f=1,m=e.size(),g=new Array(m),y=0,b=r.minX,v=r.maxX,M=r.minY,x=r.maxY,z=function(e){return e*n._invScaleX},A=function(e){return e*n._invScaleY};function O(e){var t=e[0],n=e[e.length-1];if(i=t.pmin-t.pos-t.dp+t.size,o=n.pos+n.dp+n.size-t.pmax,i>.01){for(l=e.length-1;l>=0;l--)e[l].dp+=i;a=!1}if(!(o<.01)){if(i<-.01){for(l=e.length-1;l>=0;l--)e[l].dp-=o;a=!1}if(a){var r=0;for(s=0;s<e.length;s++)(c=e[s]).pos+c.dp+c.size>t.pmax&&r++;for(s=e.length-1;s>=0&&!(r<=0);s--)(c=e[s]).pos>t.pmax-1&&(c.del=!0,r--);for(s=0;s<e.length&&!(r<=0);s++)if((c=e[s]).pos<t.pmin+1)for(c.del=!0,r--,o=2*c.size,l=e.length-1;l>=0;l--)e[l].dp-=o;for(s=e.length-1;s>=0&&!(r<=0);s--)(c=e[s]).pos+c.dp+c.size>t.pmax&&(c.del=!0,r--)}}}for(e.each(function(e){var r=e[d],a=e[p],i="x"===r._id.charAt(0),o=r.range;0===y&&o&&o[0]>o[1]!==i&&(f=-1);var s=0,l=i?n.width:n.height;if("x"===n.hovermode||"y"===n.hovermode){var c,u,h=L(e,t),m=e.anchor,O="end"===m?-1:1;if("middle"===m)u=(c=e.crossPos+(i?A(h.y-e.by/2):z(e.bx/2+e.tx2width/2)))+(i?A(e.by):z(e.bx));else if(i)u=(c=e.crossPos+A(w+h.y)-A(e.by/2-w))+A(e.by);else{var k=z(O*w+h.x),T=k+z(O*e.bx);c=e.crossPos+Math.min(k,T),u=e.crossPos+Math.max(k,T)}i?void 0!==M&&void 0!==x&&Math.min(u,x)-Math.max(c,M)>1&&("left"===a.side?(s=a._mainLinePosition,l=n.width):l=a._mainLinePosition):void 0!==b&&void 0!==v&&Math.min(u,v)-Math.max(c,b)>1&&("top"===a.side?(s=a._mainLinePosition,l=n.height):l=a._mainLinePosition)}g[y++]=[{datum:e,traceIndex:e.trace.index,dp:0,pos:e.pos,posref:e.posref,size:e.by*(i?_:1)/2,pmin:s,pmax:l}]}),g.sort(function(e,t){return e[0].posref-t[0].posref||f*(t[0].traceIndex-e[0].traceIndex)});!a&&h<=m;){for(h++,a=!0,s=0;s<g.length-1;){var k=g[s],T=g[s+1],S=k[k.length-1],C=T[0];if((i=S.pos+S.dp+S.size-C.pos-C.dp+C.size)>.01){for(l=T.length-1;l>=0;l--)T[l].dp+=i;for(k.push.apply(k,T),g.splice(s+1,1),u=0,l=k.length-1;l>=0;l--)u+=k[l].dp;for(o=u/k.length,l=k.length-1;l>=0;l--)k[l].dp-=o;a=!1}else s++}g.forEach(O)}for(s=g.length-1;s>=0;s--){var E=g[s];for(l=E.length-1;l>=0;l--){var q=E[l],D=q.datum;D.offset=q.dp,D.del=q.del}}}(ct,ot,x,lt.commonLabelBoundingBox),I(ct,ot,x._invScaleX,x._invScaleY)),c&&c.tagName){var ut=g.getComponentMethod("annotations","hasClickToShow")(e,Ge);u(t.select(c),ut?"pointer":"")}var dt=function(e,t,n){if(!n||n.length!==e._hoverdata.length)return!0;for(var r=n.length-1;r>=0;r--){var a=n[r],i=e._hoverdata[r];if(a.curveNumber!==i.curveNumber||String(a.pointNumber)!==String(i.pointNumber)||String(a.pointNumbers)!==String(i.pointNumbers)||a.binNumber!==i.binNumber)return!0}return!1}(e,0,Xe);if(!c||s||!dt&&!x.hoveranywhere)return;function pt(t){e.emit("plotly_hover",{event:r,points:t,xaxes:$,yaxes:J,xvals:re,yvals:ae})}Xe&&dt&&e.emit("plotly_unhover",{event:r,points:Xe}),pt(e._hoverdata)}(e,r,o,s,c)})},e.loneHover=function(e,n){var r=!0;Array.isArray(e)||(r=!1,e=[e]);var a=n.gd,i=j(a),o=U(a),s=!1,l=D(e.map(function(e){var t=e._x0||e.x0||e.x||0,r=e._x1||e.x1||e.x||0,s=e._y0||e.y0||e.y||0,l=e._y1||e.y1||e.y||0,c=e.eventData;if(c){var u=Math.min(t,r),d=Math.max(t,r),h=Math.min(s,l),f=Math.max(s,l),m=e.trace;if(g.traceIs(m,"gl3d")){var y=a._fullLayout[m.scene]._scene.container,b=y.offsetLeft,v=y.offsetTop;u+=b,d+=b,h+=v,f+=v}c.bbox={x0:u+o,x1:d+o,y0:h+i,y1:f+i},c.xPixel=(t+r)/2,c.yPixel=(s+l)/2,n.inOut_bbox&&n.inOut_bbox.push(c.bbox)}else c=!1;return{color:e.color||p.defaultLine,x0:e.x0||e.x||0,x1:e.x1||e.x||0,y0:e.y0||e.y||0,y1:e.y1||e.y||0,xLabel:e.xLabel,yLabel:e.yLabel,zLabel:e.zLabel,text:e.text,name:e.name,idealAlign:e.idealAlign,borderColor:e.borderColor,fontFamily:e.fontFamily,fontSize:e.fontSize,fontColor:e.fontColor,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontVariant:e.fontVariant,nameLength:e.nameLength,textAlign:e.textAlign,trace:e.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:e.hovertemplate||!1,hovertemplateLabels:e.hovertemplateLabels||!1,eventData:c}}),{gd:a,hovermode:"closest",rotateLabels:s,bgColor:n.bgColor||p.background,container:t.select(n.container),outerContainer:n.outerContainer||n.container}).hoverLabels,c=0,u=0;return l.sort(function(e,t){return e.y0-t.y0}).each(function(e,t){var r=e.y0-e.by/2;e.offset=r-5<c?c-r+5:0,c=r+e.by+e.offset,t===n.anchorIndex&&(u=e.offset)}).each(function(e){e.offset-=u}),I(l,s,a._fullLayout._invScaleX,a._fullLayout._invScaleY),r?l:l.node()};var q=/<extra>([\s\S]*)<\/extra>/;function D(e,n){var r=n.gd,i=r._fullLayout,l=n.hovermode,u=n.rotateLabels,h=n.bgColor,f=n.container,m=n.outerContainer,z=n.commonLabelOpts||{};if(0===e.length)return[[]];var _=n.fontFamily||b.HOVERFONT,A=n.fontSize||b.HOVERFONTSIZE,O=n.fontWeight||i.font.weight,T=n.fontStyle||i.font.style,S=n.fontVariant||i.font.variant,C=n.fontTextcase||i.font.textcase,q=n.fontLineposition||i.font.lineposition,D=n.fontShadow||i.font.shadow,L=e[0],I=L.xa,W=L.ya,N=l.charAt(0),P=N+"Label",B=L[P];if(void 0===B&&"multicategory"===I.type)for(var F=0;F<e.length&&void 0===(B=e[F][P]);F++);var j=V(r,m),U=j.top,H=j.width,X=j.height,G=void 0!==B&&L.distance<=n.hoverdistance&&("x"===l||"y"===l);if(G){var Y,Z,$=!0;for(Y=0;Y<e.length;Y++)if($&&void 0===e[Y].zLabel&&($=!1),Z=e[Y].hoverinfo||e[Y].trace.hoverinfo){var J=Array.isArray(Z)?Z:Z.split("+");if(-1===J.indexOf("all")&&-1===J.indexOf(l)){G=!1;break}}$&&(G=!1)}var Q=f.selectAll("g.axistext").data(G?[0]:[]);Q.enter().append("g").classed("axistext",!0),Q.exit().remove();var K={minX:0,maxX:0,minY:0,maxY:0};if(Q.each(function(){var e=t.select(this),n=a.ensureSingle(e,"path","",function(e){e.style({"stroke-width":"1px"})}),s=a.ensureSingle(e,"text","",function(e){e.attr("data-notex",1)}),u=z.bgcolor||p.defaultLine,h=z.bordercolor||p.contrast(u),f=p.contrast(u),m=z.font,g={weight:m.weight||O,style:m.style||T,variant:m.variant||S,textcase:m.textcase||C,lineposition:m.lineposition||q,shadow:m.shadow||D,family:m.family||_,size:m.size||A,color:m.color||f};n.style({fill:u,stroke:h}),s.text(B).call(d.font,g).call(c.positionText,0,0).call(c.convertToTspans,r),e.attr("transform","");var y,b,v=V(r,s.node());if("x"===l){var M="top"===I.side?"-":"";s.attr("text-anchor","middle").call(c.positionText,0,"top"===I.side?U-v.bottom-w-k:U-v.top+w+k),y=I._offset+(L.x0+L.x1)/2,b=W._offset+("top"===I.side?0:W._length);var x=v.width/2+k,E=y;y<x?E=x:y>i.width-x&&(E=i.width-x),n.attr("d","M"+(y-E)+",0L"+(y-E+w)+","+M+w+"H"+x+"v"+M+(2*k+v.height)+"H"+-x+"V"+M+w+"H"+(y-E-w)+"Z"),y=E,K.minX=y-x,K.maxX=y+x,"top"===I.side?(K.minY=b-(2*k+v.height),K.maxY=b-k):(K.minY=b+k,K.maxY=b+(2*k+v.height))}else{var R,N,P;"right"===W.side?(R="start",N=1,P="",y=I._offset+I._length):(R="end",N=-1,P="-",y=I._offset),b=W._offset+(L.y0+L.y1)/2,s.attr("text-anchor",R),n.attr("d","M0,0L"+P+w+","+w+"V"+(k+v.height/2)+"h"+P+(2*k+v.width)+"V-"+(k+v.height/2)+"H"+P+w+"V-"+w+"Z"),K.minY=b-(k+v.height/2),K.maxY=b+(k+v.height/2),"right"===W.side?(K.minX=y+w,K.maxX=y+w+(2*k+v.width)):(K.minX=y-w-(2*k+v.width),K.maxX=y-w);var F,j=v.height/2,H=U-v.top-j,X="clip"+i._uid+"commonlabel"+W._id;if(y<v.width+2*k+w){F="M-"+(w+k)+"-"+j+"h-"+(v.width-k)+"V"+j+"h"+(v.width-k)+"Z";var G=v.width-y+k;c.positionText(s,G,H),"end"===R&&s.selectAll("tspan").each(function(){var e=t.select(this),n=d.tester.append("text").text(e.text()).call(d.font,g),a=V(r,n.node());Math.round(a.width)<Math.round(v.width)&&e.attr("x",G-a.width),n.remove()})}else c.positionText(s,N*(k+w),H),F=null;var Y=i._topclips.selectAll("#"+X).data(F?[0]:[]);Y.enter().append("clipPath").attr("id",X).append("path"),Y.exit().remove(),Y.select("path").attr("d",F),d.setClipUrl(s,F?X:null,r)}e.attr("transform",o(y,b))}),y.isUnifiedHover(l)){f.selectAll("g.hovertext").remove();let t=e.filter(e=>"none"!==e.hoverinfo);if(0===t.length)return[];var ee=i.hoverlabel,te=ee.font,ne=t[0],re=(("x unified"===l?ne.xa:ne.ya).unifiedhovertitle||{}).text,ae={showlegend:!0,legend:{title:{text:re?a.hovertemplateString({data:"x unified"===l?[{xa:ne.xa,x:ne.xVal}]:[{ya:ne.ya,y:ne.yVal}],fallback:ne.trace.hovertemplatefallback,locale:i._d3locale,template:re}):B,font:te},font:te,bgcolor:ee.bgcolor,bordercolor:ee.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:"v"}},ie={font:te};v(ae,ie,r._fullData);var oe=ie.legend;oe.entries=[];for(var se=0;se<t.length;se++){var le=t[se];if("none"!==le.hoverinfo){var ce=R(le,!0,l,i,B),ue=ce[0],de=ce[1];le.name=de,le.text=""!==de?de+" : "+ue:ue;var pe=le.cd[le.index];pe&&(pe.mc&&(le.mc=pe.mc),pe.mcc&&(le.mc=pe.mcc),pe.mlc&&(le.mlc=pe.mlc),pe.mlcc&&(le.mlc=pe.mlcc),pe.mlw&&(le.mlw=pe.mlw),pe.mrc&&(le.mrc=pe.mrc),pe.dir&&(le.dir=pe.dir)),le._distinct=!0,oe.entries.push([le])}}oe.entries.sort(function(e,t){var n=i.hoversort;if("value descending"===n||"value ascending"===n){var r="x"===l.charAt(0)?"y":"x",a=e[0][r+"LabelVal"],o=t[0][r+"LabelVal"];if(a!==o)return"value descending"===n?o-a:a-o}return e[0].trace.index-t[0].trace.index}),oe.layer=f,oe._inHover=!0,oe._groupTitleFont=ee.grouptitlefont,M(r,oe);var he,fe,me,ge,ye=f.select("g.legend"),be=V(r,ye.node()),ve=be.width+2*k,Me=be.height+2*k,xe=t[0],ze=(xe.x0+xe.x1)/2,_e=(xe.y0+xe.y1)/2,Ae=!(g.traceIs(xe.trace,"bar-like")||g.traceIs(xe.trace,"box-violin"));"y"===N?Ae?(fe=_e-k,he=_e+k):(fe=Math.min.apply(null,t.map(function(e){return Math.min(e.y0,e.y1)})),he=Math.max.apply(null,t.map(function(e){return Math.max(e.y0,e.y1)}))):fe=he=a.mean(t.map(function(e){return(e.y0+e.y1)/2}))-Me/2,"x"===N?Ae?(me=ze+k,ge=ze-k):(me=Math.max.apply(null,t.map(function(e){return Math.max(e.x0,e.x1)})),ge=Math.min.apply(null,t.map(function(e){return Math.min(e.x0,e.x1)}))):me=ge=a.mean(t.map(function(e){return(e.x0+e.x1)/2}))-ve/2;var Oe,we,ke=I._offset,Te=W._offset;return ge+=ke-ve,fe+=Te-Me,Oe=(me+=ke)+ve<H&&me>=0?me:ge+ve<H&&ge>=0?ge:ke+ve<H?ke:me-ze<ze-ge+ve?H-ve:0,Oe+=k,we=(he+=Te)+Me<X&&he>=0?he:fe+Me<X&&fe>=0?fe:Te+Me<X?Te:he-_e<_e-fe+Me?X-Me:0,we+=k,ye.attr("transform",o(Oe-1,we-1)),ye}var Se=f.selectAll("g.hovertext").data(e,function(e){return E(e)});return Se.enter().append("g").classed("hovertext",!0).each(function(){var e=t.select(this);e.append("rect").call(p.fill,p.addOpacity(h,.8)),e.append("text").classed("name",!0),e.append("path").style("stroke-width","1px"),e.append("text").classed("nums",!0).call(d.font,{weight:O,style:T,variant:S,textcase:C,lineposition:q,shadow:D,family:_,size:A})}),Se.exit().remove(),Se.each(function(e){var n=t.select(this).attr("transform",""),a=e.color;Array.isArray(a)&&(a=a[e.eventData[0].pointNumber]);var f=e.bgcolor||a,m=p.combine(p.opacity(f)?f:p.defaultLine,h),g=p.combine(p.opacity(a)?a:p.defaultLine,h),y=e.borderColor||p.contrast(m),b=R(e,G,l,i,B,n),v=b[0],M=b[1],z=n.select("text.nums").call(d.font,{family:e.fontFamily||_,size:e.fontSize||A,color:e.fontColor||y,weight:e.fontWeight||O,style:e.fontStyle||T,variant:e.fontVariant||S,textcase:e.fontTextcase||C,lineposition:e.fontLineposition||q,shadow:e.fontShadow||D}).text(v).attr("data-notex",1).call(c.positionText,0,0).call(c.convertToTspans,r),E=n.select("text.name"),L=0,I=0;if(M&&M!==v){E.call(d.font,{family:e.fontFamily||_,size:e.fontSize||A,color:g,weight:e.fontWeight||O,style:e.fontStyle||T,variant:e.fontVariant||S,textcase:e.fontTextcase||C,lineposition:e.fontLineposition||q,shadow:e.fontShadow||D}).text(M).attr("data-notex",1).call(c.positionText,0,0).call(c.convertToTspans,r);var W=V(r,E.node());L=W.width+2*k,I=W.height+2*k}else E.remove(),n.select("rect").remove();n.select("path").style({fill:m,stroke:y});var N=e.xa._offset+(e.x0+e.x1)/2,P=e.ya._offset+(e.y0+e.y1)/2,F=Math.abs(e.x1-e.x0),j=Math.abs(e.y1-e.y0),Y=V(r,z.node()),Z=Y.width/i._invScaleX,$=Y.height/i._invScaleY;e.ty0=(U-Y.top)/i._invScaleY,e.bx=Z+2*k,e.by=Math.max($+2*k,I),e.anchor="start",e.txwidth=Z,e.tx2width=L,e.offset=0;var J,Q,K=(Z+w+k+L)*i._invScaleX;if(u)e.pos=N,J=P+j/2+K<=X,Q=P-j/2-K>=0,"top"!==e.idealAlign&&J||!Q?J?(P+=j/2,e.anchor="start"):e.anchor="middle":(P-=j/2,e.anchor="end"),e.crossPos=P;else{if(e.pos=P,J=N+F/2+K<=H,Q=N-F/2-K>=0,"left"!==e.idealAlign&&J||!Q)if(J)N+=F/2,e.anchor="start";else{e.anchor="middle";var ee=K/2,te=N+ee-H,ne=N-ee;te>0&&(N-=te),ne<0&&(N+=-ne)}else N-=F/2,e.anchor="end";e.crossPos=N}z.attr("text-anchor",e.anchor),L&&E.attr("text-anchor",e.anchor),n.attr("transform",o(N,P)+(u?s(x):""))}),{hoverLabels:Se,commonLabelBoundingBox:K}}function R(e,t,n,r,i,o){var s="",l="";void 0!==e.nameOverride&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=a.templateString(e.name,e.trace._meta)),s=B(e.name,e.nameLength));var c=n.charAt(0),u="x"===c?"y":"x";void 0!==e.zLabel?(void 0!==e.xLabel&&(l+="x: "+e.xLabel+"<br>"),void 0!==e.yLabel&&(l+="y: "+e.yLabel+"<br>"),"choropleth"!==e.trace.type&&"choroplethmapbox"!==e.trace.type&&"choroplethmap"!==e.trace.type&&(l+=(l?"z: ":"")+e.zLabel)):t&&e[c+"Label"]===i?l=e[u+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&"scattercarpet"!==e.trace.type&&(l=e.yLabel):l=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",(e.text||0===e.text)&&!Array.isArray(e.text)&&(l+=(l?"<br>":"")+e.text),void 0!==e.extraText&&(l+=(l?"<br>":"")+e.extraText),o&&""===l&&!e.hovertemplate&&(""===s&&o.remove(),l=s),e.trace?.hoverlabel?.split&&(e.hovertemplate="");let{hovertemplate:d=!1}=e;if(d){let t=e.hovertemplateLabels||e;e[c+"Label"]!==i&&(t[c+"other"]=t[c+"Val"],t[c+"otherLabel"]=t[c+"Label"]),l=(l=a.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:t,locale:r._d3locale,template:d})).replace(q,(t,n)=>(s=B(n,e.nameLength),""))}return[l,s]}function L(e,t){var n=0,r=e.offset;return t&&(r*=-O,n=e.offset*A),{x:n,y:r}}function I(e,n,r,a){var i=function(e){return e*r},o=function(e){return e*a};e.each(function(e){var r=t.select(this);if(e.del)return r.remove();var a,s=r.select("text.nums"),l=e.anchor,u="end"===l?-1:1,p=function(e){var t={start:1,end:-1,middle:0}[e.anchor],n=t*(w+k),r=n+t*(e.txwidth+k);return"middle"===e.anchor&&(n-=e.tx2width/2,r+=e.txwidth/2+k),{alignShift:t,textShiftX:n,text2ShiftX:r}}(e),h=L(e,n),f=h.x,m=h.y,g="middle"===l,y=!("hoverlabel"in e.trace)||e.trace.hoverlabel.showarrow;a=g?"M-"+i(e.bx/2+e.tx2width/2)+","+o(m-e.by/2)+"h"+i(e.bx)+"v"+o(e.by)+"h-"+i(e.bx)+"Z":y?"M0,0L"+i(u*w+f)+","+o(w+m)+"v"+o(e.by/2-w)+"h"+i(u*e.bx)+"v-"+o(e.by)+"H"+i(u*w+f)+"V"+o(m-w)+"Z":"M"+i(u*w+f)+","+o(m-e.by/2)+"h"+i(u*e.bx)+"v"+o(e.by)+"h"+i(-u*e.bx)+"Z",r.select("path").attr("d",a);var b=f+p.textShiftX,v=m+e.ty0-e.by/2+k,M=e.textAlign||"auto";"auto"!==M&&("left"===M&&"start"!==l?(s.attr("text-anchor","start"),b=g?-e.bx/2-e.tx2width/2+k:-e.bx-k):"right"===M&&"end"!==l&&(s.attr("text-anchor","end"),b=g?e.bx/2-e.tx2width/2-k:e.bx+k)),s.call(c.positionText,i(b),o(v)),e.tx2width&&(r.select("text.name").call(c.positionText,i(p.text2ShiftX+p.alignShift*k+f),o(m+e.ty0-e.by/2+k)),r.select("rect").call(d.setRect,i(p.text2ShiftX+(p.alignShift-1)*e.tx2width/2+f),o(m-e.by/2-1),i(e.tx2width),o(e.by+2)))})}function W(e,t){var r=e.index,i=e.trace||{},o=e.cd[0],s=e.cd[r]||{};function l(e){return e||n(e)&&0===e}var c=Array.isArray(r)?function(e,t){var n=a.castOption(o,r,e);return l(n)?n:a.extractOption({},i,"",t)}:function(e,t){return a.extractOption(s,i,e,t)};function u(t,n,r){var a=c(n,r);l(a)&&(e[t]=a)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref="y"===t||"closest"===t&&"h"===i.orientation?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=a.constrain(e.x0,0,e.xa._length),e.x1=a.constrain(e.x1,0,e.xa._length),e.y0=a.constrain(e.y0,0,e.ya._length),e.y1=a.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal&&(e.xLabel="xLabel"in e?e.xLabel:f.hoverLabelText(e.xa,e.xLabelVal,i.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),void 0!==e.yLabelVal&&(e.yLabel="yLabel"in e?e.yLabel:f.hoverLabelText(e.ya,e.yLabelVal,i.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),void 0!==e.zLabelVal&&void 0===e.zLabel&&(e.zLabel=String(e.zLabelVal)),!(isNaN(e.xerr)||"log"===e.xa.type&&e.xerr<=0)){var d=f.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+d+" / -"+f.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ± "+d,"x"===t&&(e.distance+=1)}if(!(isNaN(e.yerr)||"log"===e.ya.type&&e.yerr<=0)){var p=f.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+p+" / -"+f.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ± "+p,"y"===t&&(e.distance+=1)}var h=e.hoverinfo||e.trace.hoverinfo;return h&&"all"!==h&&(-1===(h=Array.isArray(h)?h:h.split("+")).indexOf("x")&&(e.xLabel=void 0),-1===h.indexOf("y")&&(e.yLabel=void 0),-1===h.indexOf("z")&&(e.zLabel=void 0),-1===h.indexOf("text")&&(e.text=void 0),-1===h.indexOf("name")&&(e.name=void 0)),e}function N(e,t,n){var a,i,o=n.container,s=n.fullLayout,l=s._size,c=n.event,u=!!t.hLinePoint,h=!!t.vLinePoint;if(o.selectAll(".spikeline").remove(),h||u){var m=p.combine(s.plot_bgcolor,s.paper_bgcolor);if(u){var g,y,b=t.hLinePoint;a=b&&b.xa,"cursor"===(i=b&&b.ya).spikesnap?(g=c.pointerX,y=c.pointerY):(g=a._offset+b.x,y=i._offset+b.y);var v,M,x=r.readability(b.color,m)<1.5?p.contrast(m):b.color,z=i.spikemode,_=i.spikethickness,A=i.spikecolor||x,O=f.getPxPosition(e,i);if(-1!==z.indexOf("toaxis")||-1!==z.indexOf("across")){if(-1!==z.indexOf("toaxis")&&(v=O,M=g),-1!==z.indexOf("across")){var w=i._counterDomainMin,k=i._counterDomainMax;"free"===i.anchor&&(w=Math.min(w,i.position),k=Math.max(k,i.position)),v=l.l+w*l.w,M=l.l+k*l.w}o.insert("line",":first-child").attr({x1:v,x2:M,y1:y,y2:y,"stroke-width":_,stroke:A,"stroke-dasharray":d.dashStyle(i.spikedash,_)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:v,x2:M,y1:y,y2:y,"stroke-width":_+2,stroke:m}).classed("spikeline",!0).classed("crisp",!0)}-1!==z.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:O+("right"!==i.side?_:-_),cy:y,r:_,fill:A}).classed("spikeline",!0)}if(h){var T,S,C=t.vLinePoint;a=C&&C.xa,i=C&&C.ya,"cursor"===a.spikesnap?(T=c.pointerX,S=c.pointerY):(T=a._offset+C.x,S=i._offset+C.y);var E,q,D=r.readability(C.color,m)<1.5?p.contrast(m):C.color,R=a.spikemode,L=a.spikethickness,I=a.spikecolor||D,W=f.getPxPosition(e,a);if(-1!==R.indexOf("toaxis")||-1!==R.indexOf("across")){if(-1!==R.indexOf("toaxis")&&(E=W,q=S),-1!==R.indexOf("across")){var N=a._counterDomainMin,P=a._counterDomainMax;"free"===a.anchor&&(N=Math.min(N,a.position),P=Math.max(P,a.position)),E=l.t+(1-P)*l.h,q=l.t+(1-N)*l.h}o.insert("line",":first-child").attr({x1:T,x2:T,y1:E,y2:q,"stroke-width":L,stroke:I,"stroke-dasharray":d.dashStyle(a.spikedash,L)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:T,x2:T,y1:E,y2:q,"stroke-width":L+2,stroke:m}).classed("spikeline",!0).classed("crisp",!0)}-1!==R.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:T,cy:W-("top"!==a.side?L:-L),r:L,fill:I}).classed("spikeline",!0)}}}function P(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function B(e,t){return c.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function F(e,t,n){var r=t[e+"a"],a=t[e+"Val"],i=t.cd[0];if("category"===r.type||"multicategory"===r.type)a=r._categoriesMap[a];else if("date"===r.type){var o=t.trace[e+"periodalignment"];if(o){var s=t.cd[t.index],l=s[e+"Start"];void 0===l&&(l=s[e]);var c=s[e+"End"];void 0===c&&(c=s[e]);var u=c-l;"end"===o?a+=u:"middle"===o&&(a+=u/2)}a=r.d2c(a)}return i&&i.t&&i.t.posLetter===r._id&&("group"===n.boxmode||"group"===n.violinmode)&&(a+=i.t.dPos),a}var j=e=>e.offsetTop+e.clientTop,U=e=>e.offsetLeft+e.clientLeft;function V(e,t){var n=e._fullLayout,r=t.getBoundingClientRect(),i=r.left,o=r.top,s=i+r.width,l=o+r.height,c=a.apply3DTransform(n._invTransform)(i,o),u=a.apply3DTransform(n._invTransform)(s,l),d=c[0],p=c[1],h=u[0],f=u[1];return{x:d,y:p,width:h-d,height:f-p,top:Math.min(p,f),left:Math.min(d,h),right:Math.max(d,h),bottom:Math.max(p,f)}}}),LD=Ee((e,t)=>{var n=Fr(),r=ao(),a=fm().isUnifiedHover;t.exports=function(e,t,i,o){o=o||{};var s=t.legend;function l(e){o.font[e]||(o.font[e]=s?t.legend.font[e]:t.font[e])}t&&a(t.hovermode)&&(o.font||(o.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),s?(o.bgcolor||(o.bgcolor=r.combine(t.legend.bgcolor,t.paper_bgcolor)),o.bordercolor||(o.bordercolor=t.legend.bordercolor)):o.bgcolor||(o.bgcolor=t.paper_bgcolor)),i("hoverlabel.bgcolor",o.bgcolor),i("hoverlabel.bordercolor",o.bordercolor),i("hoverlabel.namelength",o.namelength),i("hoverlabel.showarrow",o.showarrow),n.coerceFont(i,"hoverlabel.font",o.font),i("hoverlabel.align",o.align)}}),pPe=Ee((e,t)=>{var n=Fr(),r=LD(),a=zz();t.exports=function(e,t){r(e,t,function(r,i){return n.coerce(e,t,a,r,i)})}}),gPe=Ee((e,t)=>{var n=Fr(),r=I8(),a=LD();t.exports=function(e,t,i,o){var s=n.extendFlat({},o.hoverlabel);t.hovertemplate&&(s.namelength=-1),a(e,t,function(a,i){return n.coerce(e,t,r,a,i)},s)}}),ole=Ee((e,t)=>{var n=Fr(),r=zz();t.exports=function(e,t){function a(a,i){return void 0!==t[a]?t[a]:n.coerce(e,t,r,a,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}}),xPe=Ee((e,t)=>{var n=Fr(),r=zz(),a=ole(),i=LD();t.exports=function(e,t){function o(a,i){return n.coerce(e,t,r,a,i)}var s=a(e,t);s&&(o("hoverdistance"),o("spikedistance"),-1!==s.indexOf("unified")&&o("hoversort")),"select"===o("dragmode")&&o("selectdirection");var l=t._has("mapbox"),c=t._has("map"),u=t._has("geo"),d=t._basePlotModules.length;"zoom"===t.dragmode&&((l||c||u)&&1===d||(l||c)&&u&&2===d)&&(t.dragmode="pan"),i(e,t,o),n.coerceFont(o,"hoverlabel.grouptitlefont",t.hoverlabel.font)}}),APe=Ee((e,t)=>{var n=Fr(),r=vo();function a(e,t,r,a){a=a||n.identity,Array.isArray(e)&&(t[0][r]=a(e))}t.exports=function(e){var t=e.calcdata,i=e._fullLayout;function o(e){return function(t){return n.coerceHoverinfo({hoverinfo:t},{_module:e._module},i)}}for(var s=0;s<t.length;s++){var l=t[s],c=l[0].trace;if(!r.traceIs(c,"pie-like")){var u=r.traceIs(c,"2dMap")?a:n.fillArray;u(c.hoverinfo,l,"hi",o(c)),c.hovertemplate&&u(c.hovertemplate,l,"ht"),c.hoverlabel&&(u(c.hoverlabel.bgcolor,l,"hbg"),u(c.hoverlabel.bordercolor,l,"hbc"),u(c.hoverlabel.font.size,l,"hts"),u(c.hoverlabel.font.color,l,"htc"),u(c.hoverlabel.font.family,l,"htf"),u(c.hoverlabel.font.weight,l,"htw"),u(c.hoverlabel.font.style,l,"hty"),u(c.hoverlabel.font.variant,l,"htv"),u(c.hoverlabel.namelength,l,"hnl"),u(c.hoverlabel.align,l,"hta"),u(c.hoverlabel.showarrow,l,"htsa"))}}}}),OPe=Ee((e,t)=>{var n=vo(),r=ile().hover;t.exports=function(e,t,a){var i=n.getComponentMethod("annotations","onClick")(e,e._hoverdata),o=e._fullLayout;function s(){var n={points:e._hoverdata,event:t};n.xaxes??=e._hoverXAxes,n.yaxes??=e._hoverYAxes,n.xvals??=e._hoverXVals,n.yvals??=e._hoverYVals,e.emit("plotly_click",n)}void 0!==a&&r(e,t,a,!0),(e._hoverdata||o.clickanywhere)&&t&&t.target&&(e._hoverdata||(e._hoverdata=[]),i&&i.then?i.then(s):s(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}}),_d=Ee((e,t)=>{var n=mo(),r=Fr(),a=p2(),i=fm(),o=zz(),s=ile();t.exports={moduleType:"component",name:"fx",constants:tD(),schema:{layout:o},attributes:I8(),layoutAttributes:o,supplyLayoutGlobalDefaults:pPe(),supplyDefaults:gPe(),supplyLayoutDefaults:xPe(),calc:APe(),getDistanceFunction:i.getDistanceFunction,getClosest:i.getClosest,inbox:i.inbox,quadrature:i.quadrature,appendArrayPointValue:i.appendArrayPointValue,castHoverOption:function(e,t,n){return r.castOption(e,t,"hoverlabel."+n)},castHoverinfo:function(e,t,n){return r.castOption(e,n,"hoverinfo",function(n){return r.coerceHoverinfo({hoverinfo:n},{_module:e._module},t)})},hover:s.hover,unhover:a.unhover,loneHover:s.loneHover,loneUnhover:function(e){var t=r.isD3Selection(e)?e:n.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()},click:OPe()}}),Qy=Ee(e=>{e.selectMode=function(e){return"lasso"===e||"select"===e},e.drawMode=function(e){return"drawclosedpath"===e||"drawopenpath"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},e.openMode=function(e){return"drawline"===e||"drawopenpath"===e},e.rectMode=function(e){return"select"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},e.freeMode=function(e){return"lasso"===e||"drawclosedpath"===e||"drawopenpath"===e},e.selectingOrDrawing=function(t){return e.freeMode(t)||e.rectMode(t)}}),ID=Ee((e,t)=>{t.exports=function(e){var t=e._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(e){e.regl&&e.regl.clear({color:!0,depth:!0})})}}),gV=Ee((e,t)=>{t.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:["<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'>"," <title>plotly-logomark</title>"," <g id='symbol'>"," <rect fill='#000' x='0' y='0' width='132' height='132' rx='18' ry='18'/>"," <circle fill='#9EF' cx='102' cy='30' r='6'/>"," <circle fill='#BAC' cx='78' cy='30' r='6'/>"," <circle fill='#BAC' cx='78' cy='54' r='6'/>"," <circle fill='#D69' cx='54' cy='30' r='6'/>"," <circle fill='#F26' cx='30' cy='30' r='6'/>"," <circle fill='#F26' cx='30' cy='54' r='6'/>"," <path fill='#FFF' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/>"," <path fill='#FFF' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/>"," <path fill='#FFF' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/>"," <path fill='#FFF' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/>"," </g>","</svg>"].join("")}}}),bV=Ee((e,t)=>{t.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}}),MV=Ee((e,t)=>{var n=Fr().strTranslate;function r(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}t.exports={p2r:r,r2p:function(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}},axValue:function(e){var t="y"===e._id.charAt(0)?1:0;return function(n){return r(e,n[t])}},getTransform:function(e){return n(e.xaxis._offset,e.yaxis._offset)}}}),Yz=Ee(e=>{var t=MD(),n=bV(),r=n.CIRCLE_SIDES,a=n.SQRT2,i=MV(),o=i.p2r,s=i.r2p,l=[0,3,4,5,6,1,2],c=[0,3,4,1,2];function u(e,t){return Math.abs(e-t)<=1e-6}function d(e,t){var n=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(n*n+r*r)}e.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var n="",r=0;r<t;r++)for(var a=e[r].length,i=0;i<a;i++){var o=e[r][i][0];if("Z"===o)n+="Z";else for(var s=e[r][i].length,u=0;u<s;u++){var d=u;"Q"===o||"S"===o?d=c[u]:"C"===o&&(d=l[u]),n+=e[r][i][d],u>0&&u<s-1&&(n+=",")}}return n},e.readPaths=function(e,n,a,i){var l,c,u,d=t(e),p=[],h=-1,f=function(){h++,p[h]=[]},m=0,g=0,y=function(){c=m,u=g};y();for(var b=0;b<d.length;b++){var v,M,x,z,_=[],A=d[b][0],O=A;switch(A){case"M":f(),m=+d[b][1],g=+d[b][2],_.push([O,m,g]),y();break;case"Q":case"S":v=+d[b][1],x=+d[b][2],m=+d[b][3],g=+d[b][4],_.push([O,m,g,v,x]);break;case"C":v=+d[b][1],x=+d[b][2],M=+d[b][3],z=+d[b][4],m=+d[b][5],g=+d[b][6],_.push([O,m,g,v,x,M,z]);break;case"T":case"L":m=+d[b][1],g=+d[b][2],_.push([O,m,g]);break;case"H":O="L",m=+d[b][1],_.push([O,m,g]);break;case"V":O="L",g=+d[b][1],_.push([O,m,g]);break;case"A":O="L";var w=+d[b][1],k=+d[b][2];+d[b][4]||(w=-w,k=-k);var T=m-w,S=g;for(l=1;l<=r/2;l++){var C=2*Math.PI*l/r;_.push([O,T+w*Math.cos(C),S+k*Math.sin(C)])}break;case"Z":(m!==c||g!==u)&&(m=c,g=u,_.push([O,m,g]))}for(var E=(a||{}).domain,q=n._fullLayout._size,D=a&&"pixel"===a.xsizemode,R=a&&"pixel"===a.ysizemode,L=!1===i,I=0;I<_.length;I++){for(l=0;l+2<7;l+=2){var W=_[I][l+1],N=_[I][l+2];void 0===W||void 0===N||(m=W,g=N,a&&(a.xaxis&&a.xaxis.p2r?(L&&(W-=a.xaxis._offset),W=D?s(a.xaxis,a.xanchor)+W:o(a.xaxis,W)):(L&&(W-=q.l),E?W=E.x[0]+W/q.w:W/=q.w),a.yaxis&&a.yaxis.p2r?(L&&(N-=a.yaxis._offset),N=R?s(a.yaxis,a.yanchor)-N:o(a.yaxis,N)):(L&&(N-=q.t),N=E?E.y[1]-N/q.h:1-N/q.h)),_[I][l+1]=W,_[I][l+2]=N)}p[h].push(_[I].slice())}}return p},e.pointsOnRectangle=function(e){if(5!==e.length)return!1;for(var t=1;t<3;t++){if(!u(e[0][t]-e[1][t],e[3][t]-e[2][t]))return!1;if(!u(e[0][t]-e[3][t],e[1][t]-e[2][t]))return!1}return!(!u(e[0][1],e[1][1])&&!u(e[0][1],e[3][1]))&&!!(d(e[0],e[1])*d(e[0],e[3]))},e.pointsOnEllipse=function(e){var t=e.length;if(t!==r+1)return!1;t=r;for(var n=0;n<t;n++){var a=(2*t-n)%t,i=(t/2+a)%t,o=(t/2+n)%t;if(!u(d(e[n],e[o]),d(e[a],e[i])))return!1}return!0},e.handleEllipse=function(t,n,i){if(!t)return[n,i];var o=e.ellipseOver({x0:n[0],y0:n[1],x1:i[0],y1:i[1]}),s=(o.x1+o.x0)/2,l=(o.y1+o.y0)/2,c=(o.x1-o.x0)/2,u=(o.y1-o.y0)/2;c||(c=u/=a),u||(u=c/=a);for(var d=[],p=0;p<r;p++){var h=2*p*Math.PI/r;d.push([s+c*Math.cos(h),l+u*Math.sin(h)])}return d},e.ellipseOver=function(e){var t=e.x0,n=e.y0,r=e.x1,i=e.y1,o=r-t,s=i-n,l=((t-=o)+r)/2,c=((n-=s)+i)/2;return{x0:l-(o*=a),y0:c-(s*=a),x1:l+o,y1:c+s}},e.fixDatesForPaths=function(e,t,n){var r="date"===t.type,a="date"===n.type;if(!r&&!a)return e;for(var i=0;i<e.length;i++)for(var o=0;o<e[i].length;o++)for(var s=0;s+2<e[i][o].length;s+=2)r&&(e[i][o][s+1]=e[i][o][s+1].replace(" ","_")),a&&(e[i][o][s+2]=e[i][o][s+2].replace(" ","_"));return e}}),AV=Ee((e,t)=>{var n=Ld(),r=Qy(),a=r.drawMode,i=r.openMode,o=bV(),s=o.i000,l=o.i090,c=o.i180,u=o.i270,d=o.cos45,p=o.sin45,h=MV(),f=h.p2r,m=h.r2p,g=Iz().clearOutline,y=Yz(),b=y.readPaths,v=y.writePaths,M=y.ellipseOver,x=y.fixDatesForPaths;function z(e,t,n){var r,a=e[0][0],o=t.gd,h=a.getAttribute("d"),g=o._fullLayout.newshape,y=t.plotinfo,z=t.isActiveShape,_=y.xaxis,A=y.yaxis,O=!!y.domain||!y.xaxis,w=!!y.domain||!y.yaxis,k=i(n),T=b(h,o,y,z),S={editable:!0,visible:g.visible,name:g.name,showlegend:g.showlegend,legend:g.legend,legendwidth:g.legendwidth,legendgroup:g.legendgroup,legendgrouptitle:{text:g.legendgrouptitle.text,font:g.legendgrouptitle.font},legendrank:g.legendrank,label:g.label,xref:O?"paper":_._id,yref:w?"paper":A._id,layer:g.layer,opacity:g.opacity,line:{color:g.line.color,width:g.line.width,dash:g.line.dash}};if(k||(S.fillcolor=g.fillcolor,S.fillrule=g.fillrule),1===T.length&&(r=T[0]),r&&5===r.length&&"drawrect"===n)S.type="rect",S.x0=r[0][1],S.y0=r[0][2],S.x1=r[2][1],S.y1=r[2][2];else if(r&&"drawline"===n)S.type="line",S.x0=r[0][1],S.y0=r[0][2],S.x1=r[1][1],S.y1=r[1][2];else if(r&&"drawcircle"===n){S.type="circle";var C=r[s][1],E=r[l][1],q=r[c][1],D=r[u][1],R=r[s][2],L=r[l][2],I=r[c][2],W=r[u][2],N=y.xaxis&&("date"===y.xaxis.type||"log"===y.xaxis.type),P=y.yaxis&&("date"===y.yaxis.type||"log"===y.yaxis.type);N&&(C=m(y.xaxis,C),E=m(y.xaxis,E),q=m(y.xaxis,q),D=m(y.xaxis,D)),P&&(R=m(y.yaxis,R),L=m(y.yaxis,L),I=m(y.yaxis,I),W=m(y.yaxis,W));var B=(E+D)/2,F=(R+I)/2,j=M({x0:B,y0:F,x1:B+(D-E+q-C)/2*d,y1:F+(W-L+I-R)/2*p});N&&(j.x0=f(y.xaxis,j.x0),j.x1=f(y.xaxis,j.x1)),P&&(j.y0=f(y.yaxis,j.y0),j.y1=f(y.yaxis,j.y1)),S.x0=j.x0,S.y0=j.y0,S.x1=j.x1,S.y1=j.y1}else S.type="path",_&&A&&x(T,_,A),S.path=v(T),r=null;return S}t.exports={newShapes:function(e,t){if(e.length&&e[0][0]){var r=t.gd,i=t.isActiveShape,o=t.dragmode,s=(r.layout||{}).shapes||[];if(!a(o)&&void 0!==i){var l=r._fullLayout._activeShapeIndex;if(l<s.length)switch(r._fullLayout.shapes[l].type){case"rect":o="drawrect";break;case"circle":o="drawcircle";break;case"line":o="drawline";break;case"path":var c=s[l].path||"";o="Z"===c[c.length-1]?"drawclosedpath":"drawopenpath"}}var u=z(e,t,o);g(r);for(var d=t.editHelpers,p=(d||{}).modifyItem,h=[],f=0;f<s.length;f++){var m=r._fullLayout.shapes[f];if(h[f]=m._input,void 0!==i&&f===r._fullLayout._activeShapeIndex){var y=u;switch(m.type){case"line":case"rect":case"circle":var b=n.getFromId(r,m.xref);"x"===m.xref.charAt(0)&&b.type.includes("category")?(p("x0",y.x0-(m.x0shift||0)),p("x1",y.x1-(m.x1shift||0))):(p("x0",y.x0),p("x1",y.x1));var v=n.getFromId(r,m.yref);"y"===m.yref.charAt(0)&&v.type.includes("category")?(p("y0",y.y0-(m.y0shift||0)),p("y1",y.y1-(m.y1shift||0))):(p("y0",y.y0),p("y1",y.y1));break;case"path":p("path",y.path)}}}return void 0===i?(h.push(u),h):d?d.getUpdateObj():{}}},createShapeObj:z}}),ule=Ee((e,t)=>{var n=Qy().selectMode,r=Iz().clearOutline,a=Yz(),i=a.readPaths,o=a.writePaths,s=a.fixDatesForPaths;t.exports=function(e,t){if(e.length){var a=e[0][0];if(a){var l=a.getAttribute("d"),c=t.gd,u=c._fullLayout.newselection,d=t.plotinfo,p=d.xaxis,h=d.yaxis,f=t.isActiveSelection,m=t.dragmode,g=(c.layout||{}).selections||[];if(!n(m)&&void 0!==f){var y=c._fullLayout._activeSelectionIndex;if(y<g.length)switch(c._fullLayout.selections[y].type){case"rect":m="select";break;case"path":m="lasso"}}var b,v=i(l,c,d,f),M={xref:p._id,yref:h._id,opacity:u.opacity,line:{color:u.line.color,width:u.line.width,dash:u.line.dash}};1===v.length&&(b=v[0]),b&&5===b.length&&"select"===m?(M.type="rect",M.x0=b[0][1],M.y0=b[0][2],M.x1=b[2][1],M.y1=b[2][2]):(M.type="path",p&&h&&s(v,p,h),M.path=o(v),b=null),r(c);for(var x=t.editHelpers,z=(x||{}).modifyItem,_=[],A=0;A<g.length;A++){var O=c._fullLayout.selections[A];if(O){if(_[A]=O._input,void 0!==f&&A===c._fullLayout._activeSelectionIndex){var w=M;switch(O.type){case"rect":z("x0",w.x0),z("x1",w.x1),z("y0",w.y0),z("y1",w.y1);break;case"path":z("path",w.path)}}}else _[A]=O}return void 0===f?(_.push(M),_):x?x.getUpdateObj():{}}}}}),WD=Ee((e,t)=>{t.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}}),Kz=Ee(e=>{var t=WD(),n=Fr(),r=es();function a(e,t){var n=0;return(t=t||0)&&e&&("category"===e.type||"multicategory"===e.type)&&(n=(e.r2p(1)-e.r2p(0))*t),n}e.rangeToShapePosition=function(e){return"log"===e.type?e.r2d:function(e){return e}},e.shapePositionToRange=function(e){return"log"===e.type?e.d2r:function(e){return e}},e.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}},e.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}},e.extractPathCoords=function(e,r,a){var i=[];return e.match(t.segmentRE).forEach(function(e){var o=r[e.charAt(0)].drawn;if(void 0!==o){var s=e.slice(1).match(t.paramRE);if(s&&!(s.length<o)){var l=s[o],c=a?l:n.cleanNumber(l);i.push(c)}}}),i},e.countDefiningCoords=function(e,n,r){if("path"!==e)return 2;if(!n)return 0;let a=n.match(t.segmentRE);if(!a)return 0;let i="x"===r?t.paramIsX:t.paramIsY;return a.reduce((e,t)=>{let n=t.charAt(0);return e+(void 0!==i[n].drawn?1:0)},0)},e.getDataToPixel=function(t,n,r,i,o){var s,l=t._fullLayout._size;if(n)if("domain"===o)s=function(e){return n._length*(i?1-e:e)+n._offset};else{var c=e.shapePositionToRange(n);s=function(e){var t=a(n,r);return n._offset+n.r2p(c(e,!0))+t},"date"===n.type&&(s=e.decodeDate(s))}else s=i?function(e){return l.t+l.h*(1-e)}:function(e){return l.l+l.w*e};return s},e.getPixelToData=function(t,n,r,a){var i,o=t._fullLayout._size;if(n)if("domain"===a)i=function(e){var t=(e-n._offset)/n._length;return r?1-t:t};else{var s=e.rangeToShapePosition(n);i=function(e){return s(n.p2r(e-n._offset))}}else i=r?function(e){return 1-(e-o.t)/o.h}:function(e){return(e-o.l)/o.w};return i},e.roundPositionForSharpStrokeRendering=function(e,t){var n=1===Math.round(t%2),r=Math.round(e);return n?r+.5:r},e.makeShapesOptionsAndPlotinfo=function(e,t){var n=e._fullLayout.shapes[t]||{},r=e._fullLayout._plots[n.xref+n.yref];return!!r?r._hadPlotinfo=!0:(r={},n.xref&&"paper"!==n.xref&&(r.xaxis=e._fullLayout[n.xref+"axis"]),n.yref&&"paper"!==n.yref&&(r.yaxis=e._fullLayout[n.yref+"axis"])),r.xsizemode=n.xsizemode,r.ysizemode=n.ysizemode,r.xanchor=n.xanchor,r.yanchor=n.yanchor,{options:n,plotinfo:r}},e.makeSelectionsOptionsAndPlotinfo=function(e,t){var n=e._fullLayout.selections[t]||{},r=e._fullLayout._plots[n.xref+n.yref];return!!r?r._hadPlotinfo=!0:(r={},n.xref&&(r.xaxis=e._fullLayout[n.xref+"axis"]),n.yref&&(r.yaxis=e._fullLayout[n.yref+"axis"])),{options:n,plotinfo:r}},e.getPathString=function(i,o){let s=o.type,l=r.getRefType(o.xref),c=r.getRefType(o.yref),u=i._fullLayout._size;var d,p,h,f,m,g,y,b,v,M,x,z;function _(t,n,r,a){var i;if(t)if("domain"===n)i=a?function(e){return t._offset+t._length*(1-e)}:function(e){return t._offset+t._length*e};else{let n=e.shapePositionToRange(t);i=function(e){return t._offset+t.r2p(n(e,!0))},"path"===r&&"date"===t.type&&(i=e.decodeDate(i))}else i=a?function(e){return u.t+u.h*(1-e)}:function(e){return u.l+u.w*e};return i}if("array"===l?(y=[],d=o.xref.map(function(e){return r.getFromId(i,e)}),y=o.xref.map(function(e,t){return _(d[t],r.getRefType(e),s,!1)})):y=_(d=r.getFromId(i,o.xref),l,s,!1),"array"===c?(b=[],p=o.yref.map(function(e){return r.getFromId(i,e)}),b=o.yref.map(function(e,t){return _(p[t],r.getRefType(e),s,!0)})):b=_(p=r.getFromId(i,o.yref),c,s,!0),"path"===s)return function(e,r,a){let i=e.path,o=e.xsizemode,s=e.ysizemode,l=e.xanchor,c=e.yanchor,u=Array.isArray(e.xref),d=Array.isArray(e.yref);var p=0,h=0;return i.replace(t.segmentRE,function(e){var i=0,f=e.charAt(0),m=t.paramIsX[f],g=t.paramIsY[f],y=t.numParams[f];let b=void 0!==m.drawn,v=void 0!==g.drawn,M=u?r[p]:r,x=d?a[h]:a;var z=e.slice(1).replace(t.paramRE,function(e){return m[i]?e="pixel"===o?M(l)+Number(e):M(e):g[i]&&(e="pixel"===s?x(c)-Number(e):x(e)),++i>y&&(e="X"),e});return i>y&&(z=z.replace(/[\s,]*X.*/,""),n.log("Ignoring extra params in segment "+e)),b&&p++,v&&h++,f+z})}(o,y,b);if("array"===l)h=a(d[0],o.x0shift),f=a(d[1],o.x1shift),v=y[0](o.x0)+h,M=y[1](o.x1)+f;else if(h=a(d,o.x0shift),f=a(d,o.x1shift),"pixel"===o.xsizemode){let e=y(o.xanchor);v=e+o.x0+h,M=e+o.x1+f}else v=y(o.x0)+h,M=y(o.x1)+f;if("array"===c)m=a(p[0],o.y0shift),g=a(p[1],o.y1shift),x=b[0](o.y0)+m,z=b[1](o.y1)+g;else if(m=a(p,o.y0shift),g=a(p,o.y1shift),"pixel"===o.ysizemode){let e=b(o.yanchor);x=e-o.y0+m,z=e-o.y1+g}else x=b(o.y0)+m,z=b(o.y1)+g;if("line"===s)return"M"+v+","+x+"L"+M+","+z;if("rect"===s)return"M"+v+","+x+"H"+M+"V"+z+"H"+v+"Z";var A=(v+M)/2,O=(x+z)/2,w=Math.abs(A-v),k=Math.abs(O-x),T="A"+w+","+k,S=A+w+","+O;return"M"+S+T+" 0 1,1 "+(A+","+(O-k))+T+" 0 0,1 "+S+"Z"},e.getPixelShift=a}),dle=Ee((e,t)=>{var n=Fr(),r=es(),a=q1(),i=vs(),o=Yz().readPaths,s=Kz(),l=s.getPathString,c=tH(),u=lh().FROM_TL;t.exports=function(e,t,d,p){if(p.selectAll(".shape-label").remove(),d.label.text||d.label.texttemplate){var h;if(d.label.texttemplate){var f={};if("path"!==d.type){var m=r.getFromId(e,d.xref),g=r.getFromId(e,d.yref);let t=Array.isArray(d.xref),n=Array.isArray(d.yref);for(var y in c){var b="function"==typeof c[y],v=!t||c.simpleXVariables.includes(y),M=!n||c.simpleYVariables.includes(y);if(b&&v&&M){var x=c[y](d,m,g);void 0!==x&&(f[y]=x)}}}h=n.texttemplateStringForShapes({data:[f],fallback:d.label.texttemplatefallback,locale:e._fullLayout._d3locale,template:d.label.texttemplate})}else h=d.label.text;var z,_,A,O,w={"data-index":t},k=d.label.font,T=p.append("g").attr(w).classed("shape-label",!0).append("text").attr({"data-notex":1}).classed("shape-label-text",!0).text(h);if(d.path){var S=l(e,d),C=o(S,e);z=1/0,A=1/0,_=-1/0,O=-1/0;for(var E=0;E<C.length;E++)for(var q=0;q<C[E].length;q++)for(var D=C[E][q],R=1;R<D.length;R+=2){var L=D[R],I=D[R+1];z=Math.min(z,L),_=Math.max(_,L),A=Math.min(A,I),O=Math.max(O,I)}}else{let t=Array.isArray(d.xref),n=Array.isArray(d.yref),a=r.getFromId(e,t?d.xref[0]:d.xref),i=r.getFromId(e,t?d.xref[1]:d.xref),o=r.getFromId(e,n?d.yref[0]:d.yref),l=r.getFromId(e,n?d.yref[1]:d.yref),c=r.getRefType(t?d.xref[0]:d.xref),u=r.getRefType(t?d.xref[1]:d.xref),p=r.getRefType(n?d.yref[0]:d.yref),h=r.getRefType(n?d.yref[1]:d.yref),f=(t,n,r,a)=>s.getDataToPixel(e,r,n,!1,a)(t),m=(t,n,r,a)=>s.getDataToPixel(e,r,n,!0,a)(t);if("pixel"===d.xsizemode){let e=f(d.xanchor,void 0,a,c),t=s.getPixelShift(a,d.x0shift),n=s.getPixelShift(a,d.x1shift);z=e+d.x0+t,_=e+d.x1+n}else z=f(d.x0,d.x0shift,a,c),_=f(d.x1,d.x1shift,i,u);if("pixel"===d.ysizemode){let e=m(d.yanchor,void 0,o,p),t=s.getPixelShift(o,d.y0shift),n=s.getPixelShift(o,d.y1shift);A=e-d.y0+t,O=e-d.y1+n}else A=m(d.y0,d.y0shift,o,p),O=m(d.y1,d.y1shift,l,h)}var W=d.label.textangle;"auto"===W&&(W="line"===d.type?function(e,t,n,r){var a,i;return i=Math.abs(n-e),a=n>=e?t-r:r-t,-180/Math.PI*Math.atan2(a,i)}(z,A,_,O):0),T.call(function(t){return t.call(i.font,k).attr({}),a.convertToTspans(t,e),t});var N=function(e,t,n,r,a,i,o){var s,l,c,d,p=a.label.textposition,h=a.label.textangle,f=a.label.padding,m=a.type,g=Math.PI/180*i,y=Math.sin(g),b=Math.cos(g),v=a.label.xanchor,M=a.label.yanchor;if("line"===m){"start"===p?(s=e,l=t):"end"===p?(s=n,l=r):(s=(e+n)/2,l=(t+r)/2),"auto"===v&&(v="start"===p?"auto"===h?n>e?"left":n<e?"right":"center":n>e?"right":n<e?"left":"center":"end"===p?"auto"===h?n>e?"right":n<e?"left":"center":n>e?"left":n<e?"right":"center":"center");var x={left:1,center:0,right:-1},z={bottom:-1,middle:0,top:1};if("auto"===h){var _=z[M];c=-f*y*_,d=f*b*_}else{c=f*x[v],d=f*z[M]}s+=c,l+=d}else c=f+3,-1!==p.indexOf("right")?(s=Math.max(e,n)-c,"auto"===v&&(v="right")):-1!==p.indexOf("left")?(s=Math.min(e,n)+c,"auto"===v&&(v="left")):(s=(e+n)/2,"auto"===v&&(v="center")),l=-1!==p.indexOf("top")?Math.min(t,r):-1!==p.indexOf("bottom")?Math.max(t,r):(t+r)/2,d=f,"bottom"===M?l-=d:"top"===M&&(l+=d);var A=u[M],O=a.label.font.size,w=o.height,k=(w*A-O)*y,T=-(w*A-O)*b;return{textx:s+k,texty:l+T,xanchor:v}}(z,A,_,O,d,W,i.bBox(T.node())),P=N.textx,B=N.texty,F=N.xanchor;T.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[F],y:B,x:P,transform:"rotate("+W+","+P+","+B+")"}).call(a.positionText,P,B)}}}),TV=Ee((e,t)=>{var n=Fr().strTranslate,r=p2(),a=Qy(),i=a.drawMode,o=a.selectMode,s=vo(),l=ao(),c=bV(),u=c.i000,d=c.i090,p=c.i180,h=c.i270,f=Iz().clearOutlineControllers,m=Yz(),g=m.pointsOnRectangle,y=m.pointsOnEllipse,b=m.writePaths,v=AV().newShapes,M=AV().createShapeObj,x=ule(),z=dle();function _(e,t){var n,r,a,i=e[t][1],o=e[t][2],s=e.length;return r=e[n=(t+1)%s][1],a=e[n][2],r===i&&a===o&&(r=e[n=(t+2)%s][1],a=e[n][2]),[n,r,a]}t.exports=function e(t,a,c,m){m||(m=0);var A=c.gd;function O(){e(t,a,c,m++),(y(t[0])||c.hasText)&&w({redrawing:!0})}function w(e){var t={};void 0!==c.isActiveShape&&(c.isActiveShape=!1,t=v(a,c)),void 0!==c.isActiveSelection&&(c.isActiveSelection=!1,t=x(a,c),A._fullLayout._reselect=!0),Object.keys(t).length&&s.call((e||{}).redrawing?"relayout":"_guiRelayout",A,t)}var k,T,S,C,E,q=A._fullLayout._zoomlayer,D=c.dragmode,R=i(D),L=o(D);((R||L)&&(A._fullLayout._outlining=!0),f(A),a.attr("d",b(t)),m||!c.isActiveShape&&!c.isActiveSelection)||(E=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];e[n]=[];for(var a=0;a<r.length;a++){e[n][a]=[];for(var i=0;i<r[a].length;i++)e[n][a][i]=r[a][i]}}return e}([],t),function(e){k=[];for(var a=0;a<t.length;a++){var i=t[a],o=g(i),s=!o&&y(i);k[a]=[];for(var f=i.length,m=0;m<f;m++)if("Z"!==i[m][0]&&(!s||m===u||m===d||m===p||m===h)){var b,v=o&&c.isActiveSelection;v&&(b=_(i,m));var M=i[m][1],x=i[m][2],z=e.append(v?"rect":"circle").attr("data-i",a).attr("data-j",m).style({fill:l.background,stroke:l.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(v){var O=b[1]-M,w=b[2]-x,T=w?5:Math.max(Math.min(25,Math.abs(O)-5),5),S=O?5:Math.max(Math.min(25,Math.abs(w)-5),5);z.classed(w?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",T).attr("height",S).attr("x",M-T/2).attr("y",x-S/2).attr("transform",n(O/2,w/2))}else z.classed("cursor-grab",!0).attr("r",5).attr("cx",M).attr("cy",x);k[a][m]={element:z.node(),gd:A,prepFn:N,doneFn:B,clickFn:F},r.init(k[a][m])}}}(q.append("g").attr("class","outline-controllers")),function(){if(T=[],t.length){var e=0;T[e]={element:a[0][0],gd:A,prepFn:U,doneFn:V,clickFn:H},r.init(T[e])}}());if(R&&c.hasText){var I=q.select(".label-temp"),W=M(a,c,c.dragmode);z(A,"label-temp",W,I)}function N(e){S=+e.srcElement.getAttribute("data-i"),C=+e.srcElement.getAttribute("data-j"),k[S][C].moveFn=P}function P(e,n){if(t.length){var r=E[S][C][1],a=E[S][C][2],i=t[S],o=i.length;if(g(i)){var s=e,l=n;if(c.isActiveSelection)_(i,C)[1]===i[C][1]?l=0:s=0;for(var u=0;u<o;u++)if(u!==C){var d=i[u];d[1]===i[C][1]&&(d[1]=r+s),d[2]===i[C][2]&&(d[2]=a+l)}if(i[C][1]=r+s,i[C][2]=a+l,!g(i))for(var p=0;p<o;p++)for(var h=0;h<i[p].length;h++)i[p][h]=E[S][p][h]}else i[C][1]=r+e,i[C][2]=a+n;O()}}function B(){w()}function F(e,n){if(2===e){S=+n.srcElement.getAttribute("data-i"),C=+n.srcElement.getAttribute("data-j");var r=t[S];!g(r)&&!y(r)&&function(){if(t.length&&t[S]&&t[S].length){for(var e=[],n=0;n<t[S].length;n++)n!==C&&e.push(t[S][n]);e.length>1&&(2!==e.length||"Z"!==e[1][0])&&(0===C&&(e[0][0]="M"),t[S]=e,O(),w())}}()}}function j(e,n){(function(e,n){if(t.length)for(var r=0;r<t.length;r++)for(var a=0;a<t[r].length;a++)for(var i=0;i+2<t[r][a].length;i+=2)t[r][a][i+1]=E[r][a][i+1]+e,t[r][a][i+2]=E[r][a][i+2]+n})(e,n),O()}function U(e){(S=+e.srcElement.getAttribute("data-i"))||(S=0),T[S].moveFn=j}function V(){w()}function H(e){2===e&&function(e){if(o(e._fullLayout.dragmode)){f(e);var t=e._fullLayout._activeSelectionIndex,n=(e.layout||{}).selections||[];if(t<n.length){for(var r=[],a=0;a<n.length;a++)a!==t&&r.push(n[a]);delete e._fullLayout._activeSelectionIndex;var i=e._fullLayout.selections[t];e._fullLayout._deselect={xref:i.xref,yref:i.yref},s.call("_guiRelayout",e,{selections:r})}}}(A)}}}),qV=Ee((e,t)=>{var n=mo(),r=vo(),a=Fr(),i=es(),o=Yz().readPaths,s=TV(),l=dle(),c=Iz().clearOutlineControllers,u=ao(),d=vs(),p=Kl().arrayEditor,h=p2(),f=_d(),m=Ky(),g=WD(),y=Kz(),b=y.getPathString;function v(e){var t=e._fullLayout;for(var n in t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove(),t._plots){var r=t._plots[n].shapelayer;r&&(r.selectAll("path").remove(),r.selectAll("text").remove())}for(var a=0;a<t.shapes.length;a++)!0===t.shapes[a].visible&&z(e,a)}function M(e){return!!e._fullLayout._outlining}function x(e){return!e._context.edits.shapePosition}function z(e,t){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+t+'"]').remove();var c=y.makeShapesOptionsAndPlotinfo(e,t),z=c.options,w=c.plotinfo;if(!z._input||!0!==z.visible)return;let k=Array.isArray(z.xref)||Array.isArray(z.yref);if("above"===z.layer)T(e._fullLayout._shapeUpperLayer);else if(z.xref.includes("paper")||z.yref.includes("paper"))T(e._fullLayout._shapeLowerLayer);else if("between"!==z.layer||k)if(w._hadPlotinfo){T((w.mainplotinfo||w).shapelayer)}else T(e._fullLayout._shapeLowerLayer);else T(w.shapelayerBetween);function T(c){var k=b(e,z),T={"data-index":t,"fill-rule":z.fillrule,d:k},S=z.opacity,C=z.fillcolor,E=z.line.width?z.line.color:"rgba(0,0,0,0)",q=z.line.width,D=z.line.dash;!q&&!0===z.editable&&(q=5,D="solid");var R="Z"!==k[k.length-1],L=x(e)&&z.editable&&e._fullLayout._activeShapeIndex===t;L&&(C=R?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,S=e._fullLayout.activeshape.opacity);var I,W=c.append("g").classed("shape-group",!0).attr({"data-index":t}),N=W.append("path").attr(T).style("opacity",S).call(u.stroke,E).call(u.fill,C).call(d.dashLine,D,q);if(_(W,e,z),l(e,t,z,W),(L||e._context.edits.shapePosition)&&(I=p(e.layout,"shapes",z)),L){N.style({cursor:"move"});var P={element:N.node(),plotinfo:w,gd:e,editHelpers:I,hasText:z.label.text||z.label.texttemplate,isActiveShape:!0},B=o(k,e);s(B,N,P)}else e._context.edits.shapePosition?function(e,t,o,s,c,u){var p,f,v,x,z,O,w,k,T,S,C,E,q,D,R,L,I=10,W=10,N="pixel"===o.xsizemode,P="pixel"===o.ysizemode,B="line"===o.type,F="path"===o.type,j=u.modifyItem,U=n.select(t.node().parentNode),V=i.getFromId(e,o.xref),H=i.getRefType(o.xref),X=i.getFromId(e,o.yref),G=i.getRefType(o.yref),Y=o.x0shift,Z=o.x1shift,$=o.y0shift,J=o.y1shift,Q=function(t,n){return y.getDataToPixel(e,V,n,!1,H)(t)},K=function(t,n){return y.getDataToPixel(e,X,n,!0,G)(t)},ee=y.getPixelToData(e,V,!1,H),te=y.getPixelToData(e,X,!0,G),ne=ae(),re={element:ne.node(),gd:e,prepFn:se,doneFn:le,clickFn:ce};function ae(){return B?ie():t}function ie(){var e=10,n=Math.max(o.line.width,e),r=c.append("g").attr("data-index",s).attr("drag-helper",!0);r.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":n,"stroke-opacity":"0"});var a={"fill-opacity":"0"},i=Math.max(n/2,e);return r.append("circle").attr({"data-line-point":"start-point",cx:N?Q(o.xanchor)+o.x0:Q(o.x0,Y),cy:P?K(o.yanchor)-o.y0:K(o.y0,$),r:i}).style(a).classed("cursor-grab",!0),r.append("circle").attr({"data-line-point":"end-point",cx:N?Q(o.xanchor)+o.x1:Q(o.x1,Z),cy:P?K(o.yanchor)-o.y1:K(o.y1,J),r:i}).style(a).classed("cursor-grab",!0),r}function oe(n){if(M(e))L=null;else if(B)L="path"===n.target.tagName?"move":"start-point"===n.target.attributes["data-line-point"].value?"resize-over-start-point":"resize-over-end-point";else{var r=re.element.getBoundingClientRect(),a=r.right-r.left,i=r.bottom-r.top,o=n.clientX-r.left,s=n.clientY-r.top,l=!F&&a>I&&i>W&&!n.shiftKey?h.getCursor(o/a,1-s/i):"move";m(t,l),L=l.split("-")[0]}}function se(n){M(e)||(N&&(z=Q(o.xanchor)),P&&(O=K(o.yanchor)),"path"===o.type?R=o.path:(p=N?o.x0:Q(o.x0),f=P?o.y0:K(o.y0),v=N?o.x1:Q(o.x1),x=P?o.y1:K(o.y1)),p<v?(T=p,q="x0",S=v,D="x1"):(T=v,q="x1",S=p,D="x0"),!P&&f<x||P&&f>x?(w=f,C="y0",k=x,E="y1"):(w=x,C="y1",k=f,E="y0"),oe(n),pe(c,o),fe(t,o,e),re.moveFn="move"===L?ue:de,re.altKey=n.altKey)}function le(){M(e)||(m(t),he(c),_(t,e,o),r.call("_guiRelayout",e,u.getUpdateObj()))}function ce(){M(e)||he(c)}function ue(n,r){if("path"===o.type){var a=function(e){return e},i=a,u=a;N?j("xanchor",o.xanchor=ee(z+n)):(i=function(e){return ee(Q(e)+n)},V&&"date"===V.type&&(i=y.encodeDate(i))),P?j("yanchor",o.yanchor=te(O+r)):(u=function(e){return te(K(e)+r)},X&&"date"===X.type&&(u=y.encodeDate(u))),j("path",o.path=A(R,i,u))}else N?j("xanchor",o.xanchor=ee(z+n)):(j("x0",o.x0=ee(p+n)),j("x1",o.x1=ee(v+n))),P?j("yanchor",o.yanchor=te(O+r)):(j("y0",o.y0=te(f+r)),j("y1",o.y1=te(x+r)));t.attr("d",b(e,o)),pe(c,o),l(e,s,o,U)}function de(n,r){if(F){var a=function(e){return e},i=a,u=a;N?j("xanchor",o.xanchor=ee(z+n)):(i=function(e){return ee(Q(e)+n)},V&&"date"===V.type&&(i=y.encodeDate(i))),P?j("yanchor",o.yanchor=te(O+r)):(u=function(e){return te(K(e)+r)},X&&"date"===X.type&&(u=y.encodeDate(u))),j("path",o.path=A(R,i,u))}else if(B){if("resize-over-start-point"===L){var d=p+n,h=P?f-r:f+r;j("x0",o.x0=N?d:ee(d)),j("y0",o.y0=P?h:te(h))}else if("resize-over-end-point"===L){var m=v+n,g=P?x-r:x+r;j("x1",o.x1=N?m:ee(m)),j("y1",o.y1=P?g:te(g))}}else{var M=function(e){return-1!==L.indexOf(e)},_=M("n"),H=M("s"),G=M("w"),Y=M("e"),Z=_?w+r:w,$=H?k+r:k,J=G?T+n:T,ne=Y?S+n:S;P&&(_&&(Z=w-r),H&&($=k-r)),(!P&&$-Z>W||P&&Z-$>W)&&(j(C,o[C]=P?Z:te(Z)),j(E,o[E]=P?$:te($))),ne-J>I&&(j(q,o[q]=N?J:ee(J)),j(D,o[D]=N?ne:ee(ne)))}t.attr("d",b(e,o)),pe(c,o),l(e,s,o,U)}function pe(e,t){function n(){var n="path"!==t.type,r=e.selectAll(".visual-cue").data([0]),i=1;r.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":i}).classed("visual-cue",!0);var o=Q(N?t.xanchor:a.midRange(n?[t.x0,t.x1]:y.extractPathCoords(t.path,g.paramIsX))),s=K(P?t.yanchor:a.midRange(n?[t.y0,t.y1]:y.extractPathCoords(t.path,g.paramIsY)));if(o=y.roundPositionForSharpStrokeRendering(o,i),s=y.roundPositionForSharpStrokeRendering(s,i),N&&P){var l="M"+(o-1-i)+","+(s-1-i)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";r.attr("d",l)}else if(N){var c="M"+(o-1-i)+","+(s-9-i)+"v18 h2 v-18 Z";r.attr("d",c)}else{var u="M"+(o-9-i)+","+(s-1-i)+"h18 v2 h-18 Z";r.attr("d",u)}}(N||P)&&n()}function he(e){e.selectAll(".visual-cue").remove()}function fe(e,t,n){var r=t.xref,a=t.yref,o=i.getFromId(n,r),s=i.getFromId(n,a),l="";"paper"!==r&&!o.autorange&&(l+=r),"paper"!==a&&!s.autorange&&(l+=a),d.setClipUrl(e,l?"clip"+n._fullLayout._uid+l:null,n)}h.init(re),ne.node().onmousemove=oe}(e,N,z,t,c,I):!0===z.editable&&N.style("pointer-events",R||u.opacity(C)*S<=.5?"stroke":"all");N.node().addEventListener("click",function(){return function(e,t){if(x(e)){var n=+t.node().getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex)return void O(e);e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=O,v(e)}}}(e,N)}),function(e,t,n){if(!n?.id)return;let r=t.node();function a(e){let t=(n.mainplotinfo||n)?.draglayer?.select(".nsewdrag").node();return t?{clientX:e.clientX,clientY:e.clientY,target:t}:null}r.addEventListener("mousemove",t=>{if(!e._dragging&&e._fullLayout.hoveranywhere){let r=a(t);r&&f.hover(e,r,n.id)}}),r.addEventListener("click",t=>{if(!e._dragged&&e._fullLayout.clickanywhere){let r=a(t);r&&f.click(e,r,n.id)}})}(e,N,w)}}function _(e,t,n){let r=n.xref,o=n.yref;if(Array.isArray(r)||Array.isArray(o)){let s="clip"+t._fullLayout._uid+"shape"+n._index,l=function(e,t,n){let r=e._fullLayout._size;function a(t,n){let a=(Array.isArray(t)?t:[t]).map(t=>i.getFromId(e,t)).filter(Boolean);if(!a.length)return n?[r.t,r.t+r.h]:[r.l,r.l+r.w];let o=a.map(function(e){return e._offset}),s=a.map(function(e){return e._offset+e._length});return[Math.min(...o),Math.max(...s)]}let o=a(t,!1),s=a(n,!0);return{x:o[0],y:s[0],width:o[1]-o[0],height:s[1]-s[0]}}(t,r,o);a.ensureSingleById(t._fullLayout._clips,"clipPath",s,function(e){e.append("rect")}).select("rect").attr(l),d.setClipUrl(e,s,t)}else{let n=(r+o).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");d.setClipUrl(e,n?"clip"+t._fullLayout._uid+n:null,t)}}function A(e,t,n){return e.replace(g.segmentRE,function(e){var r=0,a=e.charAt(0),i=g.paramIsX[a],o=g.paramIsY[a],s=g.numParams[a];return a+e.slice(1).replace(g.paramRE,function(e){return r>=s||(i[r]?e=t(e):o[r]&&(e=n(e)),r++),e})})}function O(e){x(e)&&(e._fullLayout._activeShapeIndex>=0&&(c(e),delete e._fullLayout._activeShapeIndex,v(e)))}t.exports={draw:v,drawOne:z,eraseActiveShape:function(e){if(x(e)){c(e);var t=e._fullLayout._activeShapeIndex,n=(e.layout||{}).shapes||[];if(t<n.length){for(var a=[],i=0;i<n.length;i++)i!==t&&a.push(n[i]);return delete e._fullLayout._activeShapeIndex,r.call("_guiRelayout",e,{shapes:a})}}},drawLabel:l}}),Mle=Ee((e,t)=>{var n=vo(),r=td(),a=Ld(),i=gV(),o=qV().eraseActiveShape,s=Fr(),l=s._,c=t.exports={};function u(e,t){var r,i,o=t.currentTarget,s=o.getAttribute("data-attr"),l=o.getAttribute("data-val")||!0,c=e._fullLayout,u={},d=a.list(e,null,!0),p=c._cartesianSpikesEnabled;if("zoom"===s){var h,f="in"===l?.5:2,m=(1+f)/2,g=(1-f)/2;for(i=0;i<d.length;i++)if(("none"===(r=d[i]).modebardisable||-1===r.modebardisable.indexOf("auto"===l||"reset"===l?"autoscale":"zoominout"))&&!r.fixedrange)if(h=r._name,"auto"===l)u[h+".autorange"]=!0;else if("reset"===l)void 0===r._rangeInitial0&&void 0===r._rangeInitial1?u[h+".autorange"]=!0:void 0===r._rangeInitial0?(u[h+".autorange"]=r._autorangeInitial,u[h+".range"]=[null,r._rangeInitial1]):void 0===r._rangeInitial1?(u[h+".range"]=[r._rangeInitial0,null],u[h+".autorange"]=r._autorangeInitial):u[h+".range"]=[r._rangeInitial0,r._rangeInitial1],void 0!==r._showSpikeInitial&&(u[h+".showspikes"]=r._showSpikeInitial,"on"===p&&!r._showSpikeInitial&&(p="off"));else{var y=[r.r2l(r.range[0]),r.r2l(r.range[1])],b=[m*y[0]+g*y[1],m*y[1]+g*y[0]];u[h+".range[0]"]=r.l2r(b[0]),u[h+".range[1]"]=r.l2r(b[1])}}else"hovermode"===s&&("x"===l||"y"===l)&&(l=c._isHoriz?"y":"x",o.setAttribute("data-val",l)),u[s]=l;c._cartesianSpikesEnabled=p,n.call("_guiRelayout",e,u)}function d(e,t){for(var r=t.currentTarget,a=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,o=e._fullLayout._subplots.gl3d||[],s={},l=a.split("."),c=0;c<o.length;c++)s[o[c]+"."+l[1]]=i;var u="pan"===i?i:"zoom";s.dragmode=u,n.call("_guiRelayout",e,s)}function p(e,t){for(var r=t.currentTarget.getAttribute("data-attr"),a="resetLastSave"===r,i="resetDefault"===r,o=e._fullLayout,s=o._subplots.gl3d||[],l={},c=0;c<s.length;c++){var u,d=s[c],p=d+".camera",h=d+".aspectratio",f=d+".aspectmode",m=o[d]._scene;a?(l[p+".up"]=m.viewInitial.up,l[p+".eye"]=m.viewInitial.eye,l[p+".center"]=m.viewInitial.center,u=!0):i&&(l[p+".up"]=null,l[p+".eye"]=null,l[p+".center"]=null,u=!0),u&&(l[h+".x"]=m.viewInitial.aspectratio.x,l[h+".y"]=m.viewInitial.aspectratio.y,l[h+".z"]=m.viewInitial.aspectratio.z,l[f]=m.viewInitial.aspectmode)}n.call("_guiRelayout",e,l)}function h(e,t){var n=t.currentTarget,r=n._previousVal,a=e._fullLayout,i=a._subplots.gl3d||[],o=["xaxis","yaxis","zaxis"],s={},l={};if(r)l=r,n._previousVal=null;else{for(var c=0;c<i.length;c++){var u=i[c],d=a[u],p=u+".hovermode";s[p]=d.hovermode,l[p]=!1;for(var h=0;h<3;h++){var f=o[h],m=u+"."+f+".showspikes";l[m]=!1,s[m]=d[f].showspikes}}n._previousVal=s}return l}function f(e,t){for(var r=t.currentTarget,a=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,o=e._fullLayout,s=o._subplots.geo||[],l=0;l<s.length;l++){var c=s[l],u=o[c];if("zoom"===a){var d=u.projection.scale,p="in"===i?2*d:.5*d;n.call("_guiRelayout",e,c+".projection.scale",p)}}"reset"===a&&M(e,"geo")}function m(e){var t=e._fullLayout;return!t.hovermode&&(t._has("cartesian")?t._isHoriz?"y":"x":"closest")}function g(e){var t=m(e);n.call("_guiRelayout",e,"hovermode",t)}function y(e,t){v(e,t,"mapbox")}function b(e,t){v(e,t,"map")}function v(e,t,r){for(var a=t.currentTarget.getAttribute("data-val"),i=e._fullLayout,o=i._subplots[r]||[],s={},l=0;l<o.length;l++){var c=o[l],u=i[c].zoom,d="in"===a?1.05*u:u/1.05;s[c+".zoom"]=d}n.call("_guiRelayout",e,s)}function M(e,t){for(var r=e._fullLayout,a=r._subplots[t]||[],i={},o=0;o<a.length;o++)for(var s=a[o],l=r[s]._subplot.viewInitial,c=Object.keys(l),u=0;u<c.length;u++){var d=c[u];i[s+"."+d]=l[d]}n.call("_guiRelayout",e,i)}c.toImage={name:"toImage",title:function(e){var t=(e._context.toImageButtonOptions||{}).format||"png";return l(e,"png"===t?"Download plot as a PNG":"Download plot")},icon:i.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};s.notifier(l(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(e){e in t&&(r[e]=t[e])}),n.call("downloadImage",e,r).then(function(t){s.notifier(l(e,"Snapshot succeeded")+" - "+t,"long",e)}).catch(function(){s.notifier(l(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}},c.sendDataToCloud={name:"sendDataToCloud",title:function(e){return l(e,"Edit in Chart Studio")},icon:i.disk,click:function(e){r.sendDataToCloud(e)}},c.editInChartStudio={name:"editInChartStudio",title:function(e){return l(e,"Edit in Chart Studio")},icon:i.pencil,click:function(e){r.sendDataToCloud(e)}},c.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return l(e,"Zoom")},attr:"dragmode",val:"zoom",icon:i.zoombox,click:u},c.pan2d={name:"pan2d",_cat:"pan",title:function(e){return l(e,"Pan")},attr:"dragmode",val:"pan",icon:i.pan,click:u},c.select2d={name:"select2d",_cat:"select",title:function(e){return l(e,"Box Select")},attr:"dragmode",val:"select",icon:i.selectbox,click:u},c.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return l(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:i.lasso,click:u},c.drawclosedpath={name:"drawclosedpath",title:function(e){return l(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:i.drawclosedpath,click:u},c.drawopenpath={name:"drawopenpath",title:function(e){return l(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:i.drawopenpath,click:u},c.drawline={name:"drawline",title:function(e){return l(e,"Draw line")},attr:"dragmode",val:"drawline",icon:i.drawline,click:u},c.drawrect={name:"drawrect",title:function(e){return l(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:i.drawrect,click:u},c.drawcircle={name:"drawcircle",title:function(e){return l(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:i.drawcircle,click:u},c.eraseshape={name:"eraseshape",title:function(e){return l(e,"Erase active shape")},icon:i.eraseshape,click:o},c.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return l(e,"Zoom in")},attr:"zoom",val:"in",icon:i.zoom_plus,click:u},c.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return l(e,"Zoom out")},attr:"zoom",val:"out",icon:i.zoom_minus,click:u},c.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return l(e,"Autoscale")},attr:"zoom",val:"auto",icon:i.autoscale,click:u},c.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return l(e,"Reset axes")},attr:"zoom",val:"reset",icon:i.home,click:u},c.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return l(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:i.tooltip_basic,gravity:"ne",click:u},c.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return l(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:i.tooltip_compare,gravity:"ne",click:u},c.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return l(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:i.zoombox,click:d},c.pan3d={name:"pan3d",_cat:"pan",title:function(e){return l(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:i.pan,click:d},c.orbitRotation={name:"orbitRotation",title:function(e){return l(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:i["3d_rotate"],click:d},c.tableRotation={name:"tableRotation",title:function(e){return l(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:i["z-axis"],click:d},c.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return l(e,"Reset camera to default")},attr:"resetDefault",icon:i.home,click:p},c.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return l(e,"Reset camera to last save")},attr:"resetLastSave",icon:i.movie,click:p},c.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return l(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:i.tooltip_basic,gravity:"ne",click:function(e,t){var r=h(e,t);n.call("_guiRelayout",e,r)}},c.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return l(e,"Zoom in")},attr:"zoom",val:"in",icon:i.zoom_plus,click:f},c.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return l(e,"Zoom out")},attr:"zoom",val:"out",icon:i.zoom_minus,click:f},c.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return l(e,"Reset")},attr:"reset",val:null,icon:i.autoscale,click:f},c.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return l(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:i.tooltip_basic,gravity:"ne",click:g},c.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return l(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:i.tooltip_basic,gravity:"ne",click:g},c.resetViewSankey={name:"resetSankeyGroup",title:function(e){return l(e,"Reset view")},icon:i.home,click:function(e){for(var t={"node.groups":[],"node.x":[],"node.y":[]},r=0;r<e._fullData.length;r++){var a=e._fullData[r]._viewInitial;t["node.groups"].push(a.node.groups.slice()),t["node.x"].push(a.node.x.slice()),t["node.y"].push(a.node.y.slice())}n.call("restyle",e,t)}},c.toggleHover={name:"toggleHover",title:function(e){return l(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:i.tooltip_basic,gravity:"ne",click:function(e,t){var r=h(e,t);r.hovermode=m(e),n.call("_guiRelayout",e,r)}},c.resetViews={name:"resetViews",title:function(e){return l(e,"Reset views")},icon:i.home,click:function(e,t){var n=t.currentTarget;n.setAttribute("data-attr","zoom"),n.setAttribute("data-val","reset"),u(e,t),n.setAttribute("data-attr","resetLastSave"),p(e,t),M(e,"geo"),M(e,"mapbox"),M(e,"map")}},c.toggleSpikelines={name:"toggleSpikelines",title:function(e){return l(e,"Toggle Spike Lines")},icon:i.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var t=e._fullLayout,r=t._cartesianSpikesEnabled;t._cartesianSpikesEnabled="on"===r?"off":"on",n.call("_guiRelayout",e,function(e){for(var t="on"===e._fullLayout._cartesianSpikesEnabled,n=a.list(e,null,!0),r={},i=0;i<n.length;i++){var o=n[i];r[o._name+".showspikes"]=!!t||o._showSpikeInitial}return r}(e))}},c.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(e){return l(e,"Reset view")},attr:"reset",icon:i.home,click:function(e){M(e,"mapbox")}},c.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(e){return l(e,"Reset view")},attr:"reset",icon:i.home,click:function(e){M(e,"map")}},c.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(e){return l(e,"Zoom in")},attr:"zoom",val:"in",icon:i.zoom_plus,click:y},c.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(e){return l(e,"Zoom in")},attr:"zoom",val:"in",icon:i.zoom_plus,click:b},c.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(e){return l(e,"Zoom out")},attr:"zoom",val:"out",icon:i.zoom_minus,click:y},c.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(e){return l(e,"Zoom out")},attr:"zoom",val:"out",icon:i.zoom_minus,click:b}}),xle=Ee((e,t)=>{var n=Mle(),r=Object.keys(n),a=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],i=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(a),o=[];r.forEach(function(e){!function(e){if(-1===i.indexOf(e._cat||e.name)){var t=e.name,n=(e._cat||e.name).toLowerCase();-1===o.indexOf(t)&&o.push(t),-1===o.indexOf(n)&&o.push(n)}}(n[e])}),o.sort(),t.exports={DRAW_MODES:a,backButtons:i,foreButtons:o}}),_le=Ee((e,t)=>{var n=xle();t.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.","This may include *"+n.backButtons.join("*, *")+"*."].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.","This may include *"+n.foreButtons.join("*, *")+"*."].join(" ")}}}),RIe=Ee((e,t)=>{var n=Fr(),r=ao(),a=Kl(),i=_le();t.exports=function(e,t){var o=e.modebar||{},s=a.newContainer(t,"modebar");function l(e,t){return n.coerce(o,s,i,e,t)}l("orientation"),l("bgcolor",r.addOpacity(t.paper_bgcolor,.5));var c=r.contrast(r.rgb(t.modebar.bgcolor));l("color",r.addOpacity(c,.3)),l("activecolor",r.addOpacity(c,.7)),l("uirevision",t.uirevision),l("add"),l("remove")}}),NIe=Ee((e,t)=>{var n=mo(),r=xs(),a=Fr(),i=gV(),o=NU().version,s=new DOMParser;function l(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var c=l.prototype;c.update=function(e,t){this.graphInfo=e;var n=this.graphInfo._context,r=this.graphInfo._fullLayout,i="modebar-"+r._uid;this.element.setAttribute("id",i),this.element.setAttribute("role","toolbar"),this._uid=i,this.element.className="modebar modebar--custom","hover"===n.displayModeBar&&(this.element.className+=" modebar--hover ease-bg"),"v"===r.modebar.orientation&&(this.element.className+=" vertical",t=t.reverse());var o=r.modebar,s="#"+i+" .modebar-group";document.querySelectorAll(s).forEach(function(e){e.style.backgroundColor=o.bgcolor});var l=!this.hasButtons(t),c=this.hasLogo!==n.displaylogo,u=this.locale!==n.locale;if(this.locale=n.locale,(l||c||u)&&(this.removeAllButtons(),this.updateButtons(t),n.watermark||n.displaylogo)){var d=this.getLogo();n.watermark&&(d.className=d.className+" watermark"),"v"===r.modebar.orientation?this.element.insertBefore(d,this.element.childNodes[0]):this.element.appendChild(d),this.hasLogo=!0}this.updateActiveButton(),a.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+o.activecolor,"fill: "+o.color,this.element)},c.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(e){var n=t.createGroup();e.forEach(function(e){var r=e.name;if(!r)throw new Error("must provide button 'name' in button config");if(-1!==t.buttonsNames.indexOf(r))throw new Error("button name '"+r+"' is taken");t.buttonsNames.push(r);var a=t.createButton(e);t.buttonElements.push(a),n.appendChild(a)}),t.element.appendChild(n)})},c.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e},c.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var a=e.title;void 0===a?a=e.name:"function"==typeof a&&(a=a(this.graphInfo)),(a||0===a)&&(r.setAttribute("data-title",a),r.setAttribute("aria-label",a)),void 0!==e.attr&&r.setAttribute("data-attr",e.attr);var o=e.val;if(void 0!==o&&("function"==typeof o&&(o=o(this.graphInfo)),r.setAttribute("data-val",o)),"function"!=typeof e.click)throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(n){e.click(t.graphInfo,n),t.updateActiveButton(n.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&n.select(r).classed("active",!0);var s=e.icon;return"function"==typeof s?r.appendChild(s()):r.appendChild(this.createIcon(s||i.question)),r.setAttribute("data-gravity",e.gravity||"n"),r},c.createIcon=function(e){var t,n=r(e.height)?Number(e.height):e.ascent-e.descent,a="http://www.w3.org/2000/svg";if(e.path){(t=document.createElementNS(a,"svg")).setAttribute("viewBox",[0,0,e.width,n].join(" ")),t.setAttribute("class","icon");var i=document.createElementNS(a,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):void 0!==e.ascent&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),t.appendChild(i)}e.svg&&(t=s.parseFromString(e.svg,"application/xml").childNodes[0]);return t.setAttribute("height","1em"),t.setAttribute("width","1em"),t},c.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=void 0!==e?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(e){var i=e.getAttribute("data-val")||!0,o=e.getAttribute("data-attr"),s="true"===e.getAttribute("data-toggle"),l=n.select(e),c=function(e,n){var r=t.modebar,a=e.querySelector(".icon path");a&&(n||e.matches(":hover")?a.style.fill=r.activecolor:a.style.fill=r.color)};if(s){if(o===r){var u=!l.classed("active");l.classed("active",u),c(e,u)}}else{var d=null===o?o:a.nestedProperty(t,o).get();l.classed("active",d===i),c(e,d===i)}})},c.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var n=0;n<e.length;++n){if(e[n].length!==t[n].length)return!1;for(var r=0;r<e[n].length;r++)if(e[n][r].name!==t[n][r].name)return!1}return!0},c.getLogo=function(){var e=this.createGroup(),t=document.createElement("a");return t.href="https://plotly.com/",t.target="_blank",t.setAttribute("data-title",function(e){return e+" (v"+o+")"}(a._(this.graphInfo,"Produced with Plotly.js"))),t.className="modebar-btn plotlyjsicon modebar-btn--logo",t.appendChild(this.createIcon(i.newplotlylogo)),e.appendChild(t),e},c.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},c.destroy=function(){a.removeElement(this.container.querySelector(".modebar"))},t.exports=function(e,t){var r=e._fullLayout,a=new l({graphInfo:e,container:r._modebardiv.node(),buttons:t});return r._privateplot&&n.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}}),BIe=Ee((e,t)=>{var n=Ld(),r=Hc(),a=vo(),i=fm().isUnifiedHover,o=NIe(),s=Mle(),l=xle().DRAW_MODES,c=Fr().extendDeep;t.exports=function(e){var t=e._fullLayout,u=e._context,d=t._modeBar;if(u.displayModeBar||u.watermark){if(!Array.isArray(u.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(u.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var p,h=u.modeBarButtons;p=Array.isArray(h)&&h.length?function(e){for(var t=c([],e),n=0;n<t.length;n++)for(var r=t[n],a=0;a<r.length;a++){var i=r[a];if("string"==typeof i){if(void 0===s[i])throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "));t[n][a]=s[i]}}return t}(h):!u.displayModeBar&&u.watermark?[]:function(e){var t=e._fullLayout,o=e._fullData,c=e._context;function u(e,t){if("string"==typeof t){if(t.toLowerCase()===e.toLowerCase())return!0}else{var n=t.name,r=t._cat||t.name;if(n===e||r===e.toLowerCase())return!0}return!1}var d=t.modebar.add;"string"==typeof d&&(d=[d]);var p=t.modebar.remove;"string"==typeof p&&(p=[p]);var h=c.modeBarButtonsToAdd.concat(d.filter(function(e){for(var t=0;t<c.modeBarButtonsToRemove.length;t++)if(u(e,c.modeBarButtonsToRemove[t]))return!1;return!0})),f=c.modeBarButtonsToRemove.concat(p.filter(function(e){for(var t=0;t<c.modeBarButtonsToAdd.length;t++)if(u(e,c.modeBarButtonsToAdd[t]))return!1;return!0})),m=t._has("cartesian"),g=t._has("gl3d"),y=t._has("geo"),b=t._has("pie"),v=t._has("funnelarea"),M=t._has("ternary"),x=t._has("mapbox"),z=t._has("map"),_=t._has("polar"),A=t._has("smith"),O=t._has("sankey"),w=function(e){for(var t=n.list({_fullLayout:e},null,!0),r=0;r<t.length;r++){var a=t[r].modebardisable;if(!t[r].fixedrange&&"autoscale+zoominout"!==a&&"zoominout+autoscale"!==a)return!1}return!0}(t),k=i(t.hovermode),T=[];function S(e){if(e.length){for(var t=[],n=0;n<e.length;n++){for(var r=e[n],a=s[r],i=a.name.toLowerCase(),o=(a._cat||a.name).toLowerCase(),l=!1,c=0;c<f.length;c++){var u=f[c].toLowerCase();if(u===i||u===o){l=!0;break}}l||t.push(s[r])}T.push(t)}}var C=["toImage"];c.showEditInChartStudio?C.push("editInChartStudio"):c.showSendToCloud&&C.push("sendDataToCloud"),S(C);var E=[],q=[],D=[],R=[];(m||b||v||M)+y+g+x+z+_+A>1?(q=["toggleHover"],D=["resetViews"]):y?(E=["zoomInGeo","zoomOutGeo"],q=["hoverClosestGeo"],D=["resetGeo"]):g?(q=["hoverClosest3d"],D=["resetCameraDefault3d","resetCameraLastSave3d"]):x?(E=["zoomInMapbox","zoomOutMapbox"],q=["toggleHover"],D=["resetViewMapbox"]):z?(E=["zoomInMap","zoomOutMap"],q=["toggleHover"],D=["resetViewMap"]):b?q=["hoverClosestPie"]:O?(q=["hoverClosestCartesian","hoverCompareCartesian"],D=["resetViewSankey"]):q=["toggleHover"],m&&q.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(function(e){for(var t=0;t<e.length;t++)if(!a.traceIs(e[t],"noHover"))return!1;return!0}(o)||k)&&(q=[]),m&&!w&&(E=["zoomIn2d","zoomOut2d","autoScale2d"],"resetViews"!==D[0]&&(D=["resetScale2d"])),g?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:m&&!w||M?R=["zoom2d","pan2d"]:x||z||y?R=["pan2d"]:_&&(R=["zoom2d"]),function(e){for(var t=!1,n=0;n<e.length&&!t;n++){var i=e[n];!i._module||!i._module.selectPoints||(a.traceIs(i,"scatter-like")?(r.hasMarkers(i)||r.hasText(i))&&(t=!0):a.traceIs(i,"box-violin")?("all"===i.boxpoints||"all"===i.points)&&(t=!0):t=!0)}return t}(o)&&R.push("select2d","lasso2d");var L=[],I=function(e){-1===L.indexOf(e)&&-1!==q.indexOf(e)&&L.push(e)};if(Array.isArray(h)){for(var W=[],N=0;N<h.length;N++){var P=h[N];"string"==typeof P?(P=P.toLowerCase(),-1!==l.indexOf(P)?(t._has("mapbox")||t._has("map")||t._has("cartesian"))&&R.push(P):"togglespikelines"===P?I("toggleSpikelines"):"togglehover"===P?I("toggleHover"):"hovercompare"===P?I("hoverCompareCartesian"):"hoverclosest"===P?(I("hoverClosestCartesian"),I("hoverClosestGeo"),I("hoverClosest3d"),I("hoverClosestPie")):"v1hovermode"===P&&(I("hoverClosestCartesian"),I("hoverCompareCartesian"),I("hoverClosestGeo"),I("hoverClosest3d"),I("hoverClosestPie"))):W.push(P)}h=W}return S(R),S(E.concat(D)),S(L),function(e,t){if(t.length)if(Array.isArray(t[0]))for(var n=0;n<t.length;n++)e.push(t[n]);else e.push(t);return e}(T,h)}(e),d?d.update(e,p):t._modeBar=o(e,p)}else d&&(d.destroy(),delete t._modeBar)}}),wle=Ee((e,t)=>{t.exports={moduleType:"component",name:"modebar",layoutAttributes:_le(),supplyLayoutDefaults:RIe(),manage:BIe()}}),Ole=Ee((e,t)=>{var n=lh().FROM_BL;t.exports=function(e,t,r){void 0===r&&(r=n[e.constraintoward||"center"]);var a=[e.r2l(e.range[0]),e.r2l(e.range[1])],i=a[0]+(a[1]-a[0])*r;e.range=e._input.range=[e.l2r(i+(a[0]-i)*t),e.l2r(i+(a[1]-i)*t)],e.setScale()}}),Pw=Ee(e=>{var t=Fr(),n=$y(),r=Ld().id2name,a=vp(),i=Ole(),o=g3(),s=T0().ALMOST_EQUAL,l=lh().FROM_BL;function c(e,n,i){var o=i.axIds,s=i.layoutOut,l=i.hasImage,c=s._axisConstraintGroups,h=s._axisMatchGroups,f=n._id,m=f.charAt(0),g=((s._splomAxes||{})[m]||{})[f]||{},y=n._id,b="x"===y.charAt(0);function v(r,i){return t.coerce(e,n,a,r,i)}n._matchGroup=null,n._constraintGroup=null,v("constrain",l?"domain":"range"),t.coerce(e,n,{constraintoward:{valType:"enumerated",values:b?["left","center","right"]:["bottom","middle","top"],dflt:b?"center":"middle"}},"constraintoward");var M,x,z=n.type,_=[];for(M=0;M<o.length;M++)if((x=o[M])!==y){s[r(x)].type===z&&_.push(x)}var A=d(c,y);if(A){var O=[];for(M=0;M<_.length;M++)A[x=_[M]]||O.push(x);_=O}var w,k,T=_.length;T&&(e.matches||g.matches)&&(w=t.coerce(e,n,{matches:{valType:"enumerated",values:_,dflt:-1!==_.indexOf(g.matches)?g.matches:void 0}},"matches"));var S=l&&!b?n.anchor:void 0;if(T&&!w&&(e.scaleanchor||S)&&(k=t.coerce(e,n,{scaleanchor:{valType:"enumerated",values:_.concat([!1])}},"scaleanchor",S)),w){n._matchGroup=p(h,y,w,1);var C=s[r(w)],E=u(s,n)/u(s,C);b!==("x"===w.charAt(0))&&(E=(b?"x":"y")+E),p(c,y,w,E)}else e.matches&&-1!==o.indexOf(e.matches)&&t.warn("ignored "+n._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(k){var q=v("scaleratio");q||(q=n.scaleratio=1),p(c,y,k,q)}else e.scaleanchor&&-1!==o.indexOf(e.scaleanchor)&&t.warn("ignored "+n._name+'.scaleanchor: "'+e.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function u(e,t){var n=t.domain;return n||(n=e[r(t.overlaying)].domain),n[1]-n[0]}function d(e,t){for(var n=0;n<e.length;n++)if(e[n][t])return e[n];return null}function p(e,t,n,r){var a,i,o,s,l,c=d(e,t);null===c?((c={})[t]=1,l=e.length,e.push(c)):l=e.indexOf(c);var u=Object.keys(c);for(a=0;a<e.length;a++)if(o=e[a],a!==l&&o[n]){var p=o[n];for(i=0;i<u.length;i++)o[s=u[i]]=h(p,h(r,c[s]));return void e.splice(l,1)}if(1!==r)for(i=0;i<u.length;i++){var f=u[i];c[f]=h(r,c[f])}c[n]=1}function h(e,t){var n,r,a="",i="";"string"==typeof e&&(n=(a=e.match(/^[xy]*/)[0]).length,e=+e.slice(n)),"string"==typeof t&&(r=(i=t.match(/^[xy]*/)[0]).length,t=+t.slice(r));var o=e*t;return n||r?n&&r&&a.charAt(0)!==i.charAt(0)?n===r?o:(n>r?a.slice(r):i.slice(n))+o:a+i+e*t:o}function f(e,t){for(var n=t._size,r=n.h/n.w,a={},i=Object.keys(e),o=0;o<i.length;o++){var s=i[o],l=e[s];if("string"==typeof l){var c=l.match(/^[xy]*/)[0],u=c.length;l=+l.slice(u);for(var d="y"===c.charAt(0)?r:1/r,p=0;p<u;p++)l*=d}a[s]=l}return a}function m(e,t){var n=e._inputDomain,r=l[e.constraintoward],a=n[0]+(n[1]-n[0])*r;e.domain=e._input.domain=[a+(n[0]-a)/t,a+(n[1]-a)/t],e.setScale()}e.handleDefaults=function(e,n,a){var i,s,l,u,d,p,h,f,m=a.axIds,g=a.axHasImage,y=n._axisConstraintGroups=[],b=n._axisMatchGroups=[];for(i=0;i<m.length;i++)c(d=e[u=r(m[i])],p=n[u],{axIds:m,layoutOut:n,hasImage:g[u]});function v(e,t){for(i=0;i<e.length;i++)for(l in s=e[i])n[r(l)][t]=s}for(v(b,"_matchGroup"),i=0;i<y.length;i++)for(l in s=y[i])if((p=n[r(l)]).fixedrange){for(var M in s){var x=r(M);!1===(e[x]||{}).fixedrange&&t.warn("fixedrange was specified as false for axis "+x+" but was overridden because another axis in its constraint group has fixedrange true"),n[x].fixedrange=!0}break}for(i=0;i<y.length;){for(l in s=y[i]){(p=n[r(l)])._matchGroup&&Object.keys(p._matchGroup).length===Object.keys(s).length&&(y.splice(i,1),i--);break}i++}v(y,"_constraintGroup");var z=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],_=!1,A=!1;function O(){f=p[h],"rangebreaks"===h&&(A=p._hasDayOfWeekBreaks)}for(i=0;i<b.length;i++){s=b[i];for(var w=0;w<z.length;w++){var k;for(l in h=z[w],f=null,s)if(d=e[u=r(l)],p=n[u],h in p){if(!p.matches&&(k=p,h in d)){O();break}null===f&&h in d&&O()}if("range"===h&&f&&d.range&&2===d.range.length&&null!==d.range[0]&&null!==d.range[1]&&(_=!0),"autorange"===h&&null===f&&_&&(f=!1),null===f&&h in k&&(f=k[h]),null!==f)for(l in s)(p=n[r(l)])[h]="range"===h?f.slice():f,"rangebreaks"===h&&(p._hasDayOfWeekBreaks=A,o(p,n))}}},e.enforce=function(e){var t,a,o,l,c,u,d,p,h=e._fullLayout,g=h._axisConstraintGroups||[];for(t=0;t<g.length;t++){o=f(g[t],h);var y=Object.keys(o),b=1/0,v=0,M=1/0,x={},z={},_=!1;for(a=0;a<y.length;a++)z[l=y[a]]=c=h[r(l)],c._inputDomain?c.domain=c._inputDomain.slice():c._inputDomain=c.domain.slice(),c._inputRange||(c._inputRange=c.range.slice()),c.setScale(),x[l]=u=Math.abs(c._m)/o[l],b=Math.min(b,u),("domain"===c.constrain||!c._constraintShrinkable)&&(M=Math.min(M,u)),delete c._constraintShrinkable,v=Math.max(v,u),"domain"===c.constrain&&(_=!0);if(!(b>s*v)||_)for(a=0;a<y.length;a++)if(u=x[l=y[a]],d=(c=z[l]).constrain,u!==M||"domain"===d)if(p=u/M,"range"===d)i(c,p);else{var A=c._inputDomain,O=(c.domain[1]-c.domain[0])/(A[1]-A[0]),w=(c.r2l(c.range[1])-c.r2l(c.range[0]))/(c.r2l(c._inputRange[1])-c.r2l(c._inputRange[0]));if((p/=O)*w<1){c.domain=c._input.domain=A.slice(),i(c,p);continue}if(w<1&&(c.range=c._input.range=c._inputRange.slice(),p*=w),c.autorange){var k=c.r2l(c.range[0]),T=c.r2l(c.range[1]),S=(k+T)/2,C=S,E=S,q=Math.abs(T-S),D=S-q*p*1.0001,R=S+q*p*1.0001,L=n.makePadFn(h,c,0),I=n.makePadFn(h,c,1);m(c,p);var W,N,P=Math.abs(c._m),B=n.concatExtremes(e,c),F=B.min,j=B.max;for(N=0;N<F.length;N++)(W=F[N].val-L(F[N])/P)>D&&W<C&&(C=W);for(N=0;N<j.length;N++)(W=j[N].val+I(j[N])/P)<R&&W>E&&(E=W);p/=(E-C)/(2*q),C=c.l2r(C),E=c.l2r(E),c.range=c._input.range=k<T?[C,E]:[E,C]}m(c,p)}}},e.getAxisGroup=function(e,t){for(var n=e._axisMatchGroups,r=0;r<n.length;r++){if(n[r][t])return"g"+r}return t},e.clean=function(e,t){if(t._inputDomain){for(var n=!1,r=t._id,a=e._fullLayout._axisConstraintGroups,i=0;i<a.length;i++)if(a[i][r]){n=!0;break}(!n||"domain"!==t.constrain)&&(t._input.domain=t.domain=t._inputDomain,delete t._inputDomain)}}}),jD=Ee(e=>{var t=mo(),n=vo(),r=td(),a=Fr(),i=q1(),o=ID(),s=ao(),l=vs(),c=xw(),u=wle(),d=es(),p=lh(),h=Pw(),f=h.enforce,m=h.clean,g=$y().doAutoRange,y="start",b="middle",v="end",M=sh().zindexSeparator;function x(e,t,n){for(var r=0;r<n.length;r++){var a=n[r][0],i=n[r][1];if(!(a[0]>=e[1]||a[1]<=e[0])&&i[0]<t[1]&&i[1]>t[0])return!0}return!1}function z(n){var i,o,c,h,f,m,g=n._fullLayout,y=g._size,b=y.p,v=d.list(n,"",!0);if(g._paperdiv.style({width:n._context.responsive&&g.autosize&&!n._context._hasZeroWidth&&!n.layout.width?"100%":g.width+"px",height:n._context.responsive&&g.autosize&&!n._context._hasZeroHeight&&!n.layout.height?"100%":g.height+"px"}).selectAll(".main-svg").call(l.setSize,g.width,g.height),n._context.setBackground(n,g.paper_bgcolor),e.drawMainTitle(n),u.manage(n),!g._has("cartesian"))return r.previousPromises(n);function z(e,t,n){var r=e._lw/2;return"x"===e._id.charAt(0)?t?"top"===n?t._offset-b-r:t._offset+t._length+b+r:y.t+y.h*(1-(e.position||0))+r%1:t?"right"===n?t._offset+t._length+b+r:t._offset-b-r:y.l+y.w*(e.position||0)+r%1}for(i=0;i<v.length;i++){var A=(h=v[i])._anchorAxis;h._linepositions={},h._lw=l.crispRound(n,h.linewidth,1),h._mainLinePosition=z(h,A,h.side),h._mainMirrorPosition=h.mirror&&A?z(h,A,p.OPPOSITE_SIDE[h.side]):null}var w=[],k=[],T=[],S=1===s.opacity(g.paper_bgcolor)&&1===s.opacity(g.plot_bgcolor)&&g.paper_bgcolor===g.plot_bgcolor;for(o in g._plots)if((c=g._plots[o]).mainplot)c.bg&&c.bg.remove(),c.bg=void 0;else{var C=c.xaxis.domain,E=c.yaxis.domain,q=c.plotgroup;if(x(C,E,T)&&-1===o.indexOf(M)){var D=q.node(),R=c.bg=a.ensureSingle(q,"rect","bg");D.insertBefore(R.node(),D.childNodes[0]),k.push(o)}else q.select("rect.bg").remove(),T.push([C,E]),S||(w.push(o),k.push(o))}var L,I,W,N,P,B,F,j,U,V,H,X,G,Y=g._bgLayer.selectAll(".bg").data(w);for(Y.enter().append("rect").classed("bg",!0),Y.exit().remove(),Y.each(function(e){g._plots[e].bg=t.select(this)}),i=0;i<k.length;i++)c=g._plots[k[i]],f=c.xaxis,m=c.yaxis,c.bg&&void 0!==f._offset&&void 0!==m._offset&&c.bg.call(l.setRect,f._offset-b,m._offset-b,f._length+2*b,m._length+2*b).call(s.fill,g.plot_bgcolor).style("stroke-width",0);if(!g._hasOnlyLargeSploms)for(o in g._plots){c=g._plots[o],f=c.xaxis,m=c.yaxis;var Z,$,J=c.clipId="clip"+g._uid+o+"plot",Q=a.ensureSingleById(g._clips,"clipPath",J,function(e){e.classed("plotclip",!0).append("rect")});c.clipRect=Q.select("rect").attr({width:f._length,height:m._length}),l.setTranslate(c.plot,f._offset,m._offset),c._hasClipOnAxisFalse?(Z=null,$=J):(Z=J,$=null),l.setClipUrl(c.plot,Z,n),c.layerClipId=$}function K(e){return"M"+L+","+e+"H"+I}function ee(e){return"M"+f._offset+","+e+"h"+f._length}function te(e){return"M"+e+","+j+"V"+F}function ne(e){return void 0!==m._shift&&(e+=m._shift),"M"+e+","+m._offset+"v"+m._length}function re(e,t,n){if(!e.showline||o!==e._mainSubplot)return"";if(!e._anchorAxis)return n(e._mainLinePosition);var r=t(e._mainLinePosition);return e.mirror&&(r+=t(e._mainMirrorPosition)),r}for(o in g._plots){c=g._plots[o],f=c.xaxis,m=c.yaxis;var ae="M0,0";_(f,o)&&(P=O(f,"left",m,v),L=f._offset-(P?b+P:0),B=O(f,"right",m,v),I=f._offset+f._length+(B?b+B:0),W=z(f,m,"bottom"),N=z(f,m,"top"),(G=!f._anchorAxis||o!==f._mainSubplot)&&("allticks"===f.mirror||"all"===f.mirror)&&(f._linepositions[o]=[W,N]),ae=re(f,K,ee),G&&f.showline&&("all"===f.mirror||"allticks"===f.mirror)&&(ae+=K(W)+K(N)),c.xlines.style("stroke-width",f._lw+"px").call(s.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),c.xlines.attr("d",ae);var ie="M0,0";_(m,o)&&(H=O(m,"bottom",f,v),F=m._offset+m._length+(H?b:0),X=O(m,"top",f,v),j=m._offset-(X?b:0),U=z(m,f,"left"),V=z(m,f,"right"),(G=!m._anchorAxis||o!==m._mainSubplot)&&("allticks"===m.mirror||"all"===m.mirror)&&(m._linepositions[o]=[U,V]),ie=re(m,te,ne),G&&m.showline&&("all"===m.mirror||"allticks"===m.mirror)&&(ie+=te(U)+te(V)),c.ylines.style("stroke-width",m._lw+"px").call(s.stroke,m.showline?m.linecolor:"rgba(0,0,0,0)")),c.ylines.attr("d",ie)}return d.makeClipPaths(n),r.previousPromises(n)}function _(e,t){return(e.ticks||e.showline)&&(t===e._mainSubplot||"all"===e.mirror||"allticks"===e.mirror)}function A(e,t,n){if(!n.showline||!n._lw)return!1;if("all"===n.mirror||"allticks"===n.mirror)return!0;var r=n._anchorAxis;if(!r)return!1;var a=p.FROM_BL[t];return n.side===t?r.domain[a]===e.domain[a]:n.mirror&&r.domain[1-a]===e.domain[1-a]}function O(e,t,n,r){if(A(e,t,n))return n._lw;for(var a=0;a<r.length;a++){var i=r[a];if(i._mainAxis===n._mainAxis&&A(e,t,i))return i._lw}return 0}function w(e){return"top"===e?p.CAP_SHIFT+.3+"em":"bottom"===e?"-0.3em":p.MID_SHIFT+"em"}e.layoutStyles=function(e){return a.syncOrAsync([r.doAutoMargin,z],e)},e.drawMainTitle=function(e){var n=e._fullLayout.title,o=e._fullLayout,s=function(e){var t=e.title,n=b;return a.isRightAnchor(t)?n=v:a.isLeftAnchor(t)&&(n=y),n}(o),u=function(e){var t=e.title,n="0em";return a.isTopAnchor(t)?n=p.CAP_SHIFT+"em":a.isMiddleAnchor(t)&&(n=p.MID_SHIFT+"em"),n}(o),d=function(e,t){var n=e.title,r=e._size,a=0;return"0em"!==t&&t?t===p.CAP_SHIFT+"em"&&(a=n.pad.t):a=-n.pad.b,"auto"===n.y?r.t/2:"paper"===n.yref?r.t+r.h-r.h*n.y+a:e.height-e.height*n.y+a}(o,u),h=function(e,t){var n=e.title,r=e._size,a=0;return t===y?a=n.pad.l:t===v&&(a=-n.pad.r),"paper"===n.xref?r.l+r.w*n.x+a:e.width*n.x+a}(o,s);if(c.draw(e,"gtitle",{propContainer:o,propName:"title.text",subtitlePropName:"title.subtitle.text",placeholder:o._dfltTitle.plot,subtitlePlaceholder:o._dfltTitle.subtitle,attributes:{x:h,y:d,"text-anchor":s,dy:u}}),n.text&&n.automargin){var f=t.select(e).selectAll(".gtitle"),m=l.bBox(t.select(e).selectAll(".g-gtitle").node()).height,g=function(e,t,n){var r=t.y,a=t.yanchor,i=r>.5?"t":"b",o=e._fullLayout.margin[i],s=0;return"paper"===t.yref?s=n+t.pad.t+t.pad.b:"container"===t.yref&&(s=function(e,t,n,r,a){var i=0;return"middle"===n&&(i+=a/2),"t"===e?("top"===n&&(i+=a),i+=r-t*r):("bottom"===n&&(i+=a),i+=t*r),i}(i,r,a,e._fullLayout.height,n)+t.pad.t+t.pad.b),s>o?s:0}(e,n,m);if(g>0){(function(e,t,n,i){var o="title.automargin",s=e._fullLayout.title,l=s.y>.5?"t":"b",c={x:s.x,y:s.y,t:0,b:0},u={};"paper"===s.yref&&function(e,t,n,r,i){var o="paper"===t.yref?e._fullLayout._size.h:e._fullLayout.height,s=a.isTopAnchor(t)?r:r-i,l="b"===n?o-s:s;return!(a.isTopAnchor(t)&&"t"===n||a.isBottomAnchor(t)&&"b"===n)&&l<i}(e,s,l,t,i)?c[l]=n:"container"===s.yref&&(u[l]=n,e._fullLayout._reservedMargin[o]=u),r.allowAutoMargin(e,o),r.autoMargin(e,o,c)})(e,d,g,m),f.attr({x:h,y:d,"text-anchor":s,dy:w(n.yanchor)}).call(i.positionText,h,d);var M=(n.text.match(i.BR_TAG_ALL)||[]).length;if(M){var x=p.LINE_SPACING*M+p.MID_SHIFT;0===n.y&&(x=-x),f.selectAll(".line").each(function(){var e=+this.getAttribute("dy").slice(0,-2)-x+"em";this.setAttribute("dy",e)})}var z=t.select(e).selectAll(".gtitle-subtitle");if(z.node()){var _=f.node().getBBox(),A=_.y+_.height+c.SUBTITLE_PADDING_EM*n.subtitle.font.size;z.attr({x:h,y:A,"text-anchor":s,dy:w(n.yanchor)}).call(i.positionText,h,A)}}}},e.doTraceStyle=function(t){var a,i=t.calcdata,s=[];for(a=0;a<i.length;a++){var l=i[a],c=l[0]||{},u=c.trace||{},d=u._module||{},p=d.arraysToCalcdata;p&&p(l,u);var h=d.editStyle;h&&s.push({fn:h,cd0:c})}if(s.length){for(a=0;a<s.length;a++){var f=s[a];f.fn(t,f.cd0)}o(t),e.redrawReglTraces(t)}return r.style(t),n.getComponentMethod("legend","draw")(t),r.previousPromises(t)},e.doColorBars=function(e){return n.getComponentMethod("colorbar","draw")(e),r.previousPromises(e)},e.layoutReplot=function(e){var t=e.layout;return e.layout=void 0,n.call("_doPlot",e,"",t)},e.doLegend=function(e){return n.getComponentMethod("legend","draw")(e),r.previousPromises(e)},e.doTicksRelayout=function(t){return d.draw(t,"redraw"),t._fullLayout._hasOnlyLargeSploms&&(n.subplotsRegistry.splom.updateGrid(t),o(t),e.redrawReglTraces(t)),e.drawMainTitle(t),r.previousPromises(t)},e.doModeBar=function(e){var t=e._fullLayout;u.manage(e);for(var n=0;n<t._basePlotModules.length;n++){var a=t._basePlotModules[n].updateFx;a&&a(e)}return r.previousPromises(e)},e.doCamera=function(e){for(var t=e._fullLayout,n=t._subplots.gl3d,r=0;r<n.length;r++){var a=t[n[r]];a._scene.setViewport(a)}},e.drawData=function(t){var a=t._fullLayout;o(t);for(var i=a._basePlotModules,s=0;s<i.length;s++)i[s].plot(t);return e.redrawReglTraces(t),r.style(t),n.getComponentMethod("selections","draw")(t),n.getComponentMethod("shapes","draw")(t),n.getComponentMethod("annotations","draw")(t),n.getComponentMethod("images","draw")(t),a._replotting=!1,r.previousPromises(t)},e.redrawReglTraces=function(e){var t=e._fullLayout;if(t._has("regl")){var n,r,i=e._fullData,o=[],s=[];for(t._hasOnlyLargeSploms&&t._splomGrid.draw(),n=0;n<i.length;n++){var l=i[n];!0===l.visible&&0!==l._length&&("splom"===l.type?t._splomScenes[l.uid].draw():"scattergl"===l.type?a.pushUnique(o,l.xaxis+l.yaxis):"scatterpolargl"===l.type&&a.pushUnique(s,l.subplot))}for(n=0;n<o.length;n++)(r=t._plots[o[n]])._scene&&r._scene.draw();for(n=0;n<s.length;n++)(r=t[s[n]]._subplot)._scene&&r._scene.draw()}},e.doAutoRangeAndConstraints=function(e){for(var t,n=d.list(e,"",!0),r={},a=0;a<n.length;a++)if(!r[(t=n[a])._id]){r[t._id]=1,m(e,t),g(e,t);var i=t._matchGroup;if(i)for(var o in i){var s=d.getFromId(e,o);g(e,s,t.range),r[o]=1}}f(e)},e.finalDraw=function(e){n.getComponentMethod("rangeslider","draw")(e),n.getComponentMethod("rangeselector","draw")(e)},e.drawMarginPushers=function(e){n.getComponentMethod("legend","draw")(e),n.getComponentMethod("rangeselector","draw")(e),n.getComponentMethod("sliders","draw")(e),n.getComponentMethod("updatemenus","draw")(e),n.getComponentMethod("colorbar","draw")(e)}}),Rle=Ee((e,t)=>{var n=Yz().readPaths,r=TV(),a=Iz().clearOutlineControllers,i=ao(),o=vs(),s=Kl().arrayEditor,l=Kz(),c=l.getPathString;function u(e){var t=e._fullLayout;for(var n in a(e),t._selectionLayer.selectAll("path").remove(),t._plots){var r=t._plots[n].selectionLayer;r&&r.selectAll("path").remove()}for(var i=0;i<t.selections.length;i++)p(e,i)}function d(e){return e._context.editSelection}function p(e,t){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+t+'"]').remove();var a=l.makeSelectionsOptionsAndPlotinfo(e,t),p=a.options,m=a.plotinfo;p._input&&function(a){var l=c(e,p),g={"data-index":t,"fill-rule":"evenodd",d:l},y=p.opacity,b="rgba(0,0,0,0)",v=p.line.color||i.contrast(e._fullLayout.plot_bgcolor),M=p.line.width,x=p.line.dash;M||(M=5,x="solid");var z=d(e)&&e._fullLayout._activeSelectionIndex===t;z&&(b=e._fullLayout.activeselection.fillcolor,y=e._fullLayout.activeselection.opacity);for(var _=[],A=1;A>=0;A--){var O=a.append("path").attr(g).style("opacity",A?.1:y).call(i.stroke,v).call(i.fill,b).call(o.dashLine,A?"solid":x,A?4+M:M);if(h(O,e,p),z){var w=s(e.layout,"selections",p);O.style({cursor:"move"});var k={element:O.node(),plotinfo:m,gd:e,editHelpers:w,isActiveSelection:!0},T=n(l,e);r(T,O,k)}else O.style("pointer-events",A?"all":"none");_[A]=O}var S=_[0];_[1].node().addEventListener("click",function(){return function(e,t){if(d(e)){var n=+t.node().getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex)return void f(e);e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=f,u(e)}}}(e,S)})}(e._fullLayout._selectionLayer)}function h(e,t,n){var r=n.xref+n.yref;o.setClipUrl(e,"clip"+t._fullLayout._uid+r,t)}function f(e){d(e)&&(e._fullLayout._activeSelectionIndex>=0&&(a(e),delete e._fullLayout._activeSelectionIndex,u(e)))}t.exports={draw:u,drawOne:p,activateLastSelection:function(e){if(d(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=f,u(e)}}}}),cNe=Ee((e,t)=>{t.exports=function(){var e,t=0,n=!1;function r(t,n){return e.list.push({type:t,data:n?JSON.parse(JSON.stringify(n)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(e,t){return r("check",{seg1:e,seg2:t})},segmentChop:function(e,t){return r("div_seg",{seg:e,pt:t}),r("chop",{seg:e,pt:t})},statusRemove:function(e){return r("pop_seg",{seg:e})},segmentUpdate:function(e){return r("seg_update",{seg:e})},segmentNew:function(e,t){return r("new_seg",{seg:e,primary:t})},segmentRemove:function(e){return r("rem_seg",{seg:e})},tempStatus:function(e,t,n){return r("temp_status",{seg:e,above:t,below:n})},rewind:function(e){return r("rewind",{seg:e})},status:function(e,t,n){return r("status",{seg:e,above:t,below:n})},vert:function(t){return t===n?e:(n=t,r("vert",{x:t}))},log:function(e){return"string"!=typeof e&&(e=JSON.stringify(e,!1," ")),r("log",{txt:e})},reset:function(){return r("reset")},selected:function(e){return r("selected",{segs:e})},chainStart:function(e){return r("chain_start",{seg:e})},chainRemoveHead:function(e,t){return r("chain_rem_head",{index:e,pt:t})},chainRemoveTail:function(e,t){return r("chain_rem_tail",{index:e,pt:t})},chainNew:function(e,t){return r("chain_new",{pt1:e,pt2:t})},chainMatch:function(e){return r("chain_match",{index:e})},chainClose:function(e){return r("chain_close",{index:e})},chainAddHead:function(e,t){return r("chain_add_head",{index:e,pt:t})},chainAddTail:function(e,t){return r("chain_add_tail",{index:e,pt:t})},chainConnect:function(e,t){return r("chain_con",{index1:e,index2:t})},chainReverse:function(e){return r("chain_rev",{index:e})},chainJoin:function(e,t){return r("chain_join",{index1:e,index2:t})},done:function(){return r("done")}}}}),dNe=Ee((e,t)=>{t.exports=function(e){"number"!=typeof e&&(e=1e-10);var t={epsilon:function(t){return"number"==typeof t&&(e=t),e},pointAboveOrOnLine:function(t,n,r){var a=n[0],i=n[1],o=r[0],s=r[1],l=t[0];return(o-a)*(t[1]-i)-(s-i)*(l-a)>=-e},pointBetween:function(t,n,r){var a=t[1]-n[1],i=r[0]-n[0],o=t[0]-n[0],s=r[1]-n[1],l=o*i+a*s;return!(l<e)&&!(l-(i*i+s*s)>-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])<e},pointsSameY:function(t,n){return Math.abs(t[1]-n[1])<e},pointsSame:function(e,n){return t.pointsSameX(e,n)&&t.pointsSameY(e,n)},pointsCompare:function(e,n){return t.pointsSameX(e,n)?t.pointsSameY(e,n)?0:e[1]<n[1]?-1:1:e[0]<n[0]?-1:1},pointsCollinear:function(t,n,r){var a=t[0]-n[0],i=t[1]-n[1],o=n[0]-r[0],s=n[1]-r[1];return Math.abs(a*s-o*i)<e},linesIntersect:function(t,n,r,a){var i=n[0]-t[0],o=n[1]-t[1],s=a[0]-r[0],l=a[1]-r[1],c=i*l-o*s;if(Math.abs(c)<e)return!1;var u=t[0]-r[0],d=t[1]-r[1],p=(s*d-l*u)/c,h=(i*d-o*u)/c,f={alongA:0,alongB:0,pt:[t[0]+p*i,t[1]+p*o]};return f.alongA=p<=-e?-2:p<e?-1:p-1<=-e?0:p-1<e?1:2,f.alongB=h<=-e?-2:h<e?-1:h-1<=-e?0:h-1<e?1:2,f},pointInsideRegion:function(t,n){for(var r=t[0],a=t[1],i=n[n.length-1][0],o=n[n.length-1][1],s=!1,l=0;l<n.length;l++){var c=n[l][0],u=n[l][1];u-a>e!=o-a>e&&(i-c)*(a-u)/(o-u)+c-r>e&&(s=!s),i=c,o=u}return s}};return t}}),hNe=Ee((e,t)=>{t.exports={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(null===t||t===e.root)},isEmpty:function(){return null===e.root.next},getHead:function(){return e.root.next},insertBefore:function(t,n){for(var r=e.root,a=e.root.next;null!==a;){if(n(a))return t.prev=a.prev,t.next=a,a.prev.next=t,void(a.prev=t);r=a,a=a.next}r.next=t,t.prev=r,t.next=null},findTransition:function(t){for(var n=e.root,r=e.root.next;null!==r&&!t(r);)n=r,r=r.next;return{before:n===e.root?null:n,after:r,insert:function(e){return e.prev=n,e.next=r,n.next=e,null!==r&&(r.prev=e),e}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}}}),mNe=Ee((e,t)=>{var n=hNe();t.exports=function(e,t,r){function a(e,t){return{id:r?r.segmentId():-1,start:e,end:t,myFill:{above:null,below:null},otherFill:null}}function i(e,t,n){return{id:r?r.segmentId():-1,start:e,end:t,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var o=n.create();function s(e,n){o.insertBefore(e,function(r){var a=function(e,n,r,a,i,o){var s=t.pointsCompare(n,i);return 0!==s?s:t.pointsSame(r,o)?0:e!==a?e?1:-1:t.pointAboveOrOnLine(r,a?i:o,a?o:i)?1:-1}(e.isStart,e.pt,n,r.isStart,r.pt,r.other.pt);return a<0})}function l(e,t){var r=function(e,t){var r=n.node({isStart:!0,pt:e.start,seg:e,primary:t,other:null,status:null});return s(r,e.end),r}(e,t);return function(e,t,r){var a=n.node({isStart:!1,pt:t.end,seg:t,primary:r,other:e,status:null});e.other=a,s(a,e.pt)}(r,e,t),r}function c(e,t){var n=i(t,e.seg.end,e.seg);return function(e,t){r&&r.segmentChop(e.seg,t),e.other.remove(),e.seg.end=t,e.other.pt=t,s(e.other,e.pt)}(e,t),l(n,e.primary)}function u(a,i){var s=n.create();function l(e){return s.findTransition(function(n){var r=function(e,n){var r=e.seg.start,a=e.seg.end,i=n.seg.start,o=n.seg.end;return t.pointsCollinear(r,i,o)?t.pointsCollinear(a,i,o)||t.pointAboveOrOnLine(a,i,o)?1:-1:t.pointAboveOrOnLine(r,i,o)?1:-1}(e,n.ev);return r>0})}function u(e,n){var a=e.seg,i=n.seg,o=a.start,s=a.end,l=i.start,u=i.end;r&&r.checkIntersection(a,i);var d=t.linesIntersect(o,s,l,u);if(!1===d){if(!t.pointsCollinear(o,s,l)||t.pointsSame(o,u)||t.pointsSame(s,l))return!1;var p=t.pointsSame(o,l),h=t.pointsSame(s,u);if(p&&h)return n;var f=!p&&t.pointBetween(o,l,u),m=!h&&t.pointBetween(s,l,u);if(p)return m?c(n,s):c(e,u),n;f&&(h||(m?c(n,s):c(e,u)),c(n,o))}else 0===d.alongA&&(-1===d.alongB?c(e,l):0===d.alongB?c(e,d.pt):1===d.alongB&&c(e,u)),0===d.alongB&&(-1===d.alongA?c(n,o):0===d.alongA?c(n,d.pt):1===d.alongA&&c(n,s));return!1}for(var d=[];!o.isEmpty();){var p=o.getHead();if(r&&r.vert(p.pt[0]),p.isStart){let t=function(){if(f){var e=u(p,f);if(e)return e}return!!m&&u(p,m)};r&&r.segmentNew(p.seg,p.primary);var h=l(p),f=h.before?h.before.ev:null,m=h.after?h.after.ev:null;r&&r.tempStatus(p.seg,!!f&&f.seg,!!m&&m.seg);var g=t();if(g){var y;if(e)(y=null===p.seg.myFill.below||p.seg.myFill.above!==p.seg.myFill.below)&&(g.seg.myFill.above=!g.seg.myFill.above);else g.seg.otherFill=p.seg.myFill;r&&r.segmentUpdate(g.seg),p.other.remove(),p.remove()}if(o.getHead()!==p){r&&r.rewind(p.seg);continue}if(e)y=null===p.seg.myFill.below||p.seg.myFill.above!==p.seg.myFill.below,p.seg.myFill.below=m?m.seg.myFill.above:a,p.seg.myFill.above=y?!p.seg.myFill.below:p.seg.myFill.below;else if(null===p.seg.otherFill){var b;b=m?p.primary===m.primary?m.seg.otherFill.above:m.seg.myFill.above:p.primary?i:a,p.seg.otherFill={above:b,below:b}}r&&r.status(p.seg,!!f&&f.seg,!!m&&m.seg),p.other.status=h.insert(n.node({ev:p}))}else{var v=p.status;if(null===v)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(s.exists(v.prev)&&s.exists(v.next)&&u(v.prev.ev,v.next.ev),r&&r.statusRemove(v.ev.seg),v.remove(),!p.primary){var M=p.seg.myFill;p.seg.myFill=p.seg.otherFill,p.seg.otherFill=M}d.push(p.seg)}o.getHead().remove()}return r&&r.done(),d}return e?{addRegion:function(e){for(var n,r=e[e.length-1],i=0;i<e.length;i++){n=r,r=e[i];var o=t.pointsCompare(n,r);0!==o&&l(a(o<0?n:r,o<0?r:n),!0)}},calculate:function(e){return u(e,!1)}}:{calculate:function(e,t,n,r){return e.forEach(function(e){l(i(e.start,e.end,e),!0)}),n.forEach(function(e){l(i(e.start,e.end,e),!1)}),u(t,r)}}}}),gNe=Ee((e,t)=>{t.exports=function(e,t,n){var r=[],a=[];return e.forEach(function(e){var i=e.start,o=e.end;if(t.pointsSame(i,o))console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");else{n&&n.chainStart(e);for(var s={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},c=s,u=0;u<r.length;u++){var d=(g=r[u])[0],p=(g[1],g[g.length-1]);g[g.length-2];if(t.pointsSame(d,i)){if(A(u,!0,!0))break}else if(t.pointsSame(d,o)){if(A(u,!0,!1))break}else if(t.pointsSame(p,i)){if(A(u,!1,!0))break}else if(t.pointsSame(p,o)&&A(u,!1,!1))break}if(c===s)return r.push([i,o]),void(n&&n.chainNew(i,o));if(c===l){n&&n.chainMatch(s.index);var h=s.index,f=s.matches_pt1?o:i,m=s.matches_head,g=r[h],y=m?g[0]:g[g.length-1],b=m?g[1]:g[g.length-2],v=m?g[g.length-1]:g[0],M=m?g[g.length-2]:g[1];return t.pointsCollinear(b,y,f)&&(m?(n&&n.chainRemoveHead(s.index,f),g.shift()):(n&&n.chainRemoveTail(s.index,f),g.pop()),y=b),t.pointsSame(v,f)?(r.splice(h,1),t.pointsCollinear(M,v,y)&&(m?(n&&n.chainRemoveTail(s.index,y),g.pop()):(n&&n.chainRemoveHead(s.index,y),g.shift())),n&&n.chainClose(s.index),void a.push(g)):void(m?(n&&n.chainAddHead(s.index,f),g.unshift(f)):(n&&n.chainAddTail(s.index,f),g.push(f)))}var x=s.index,z=l.index;n&&n.chainConnect(x,z);var _=r[x].length<r[z].length;s.matches_head?l.matches_head?_?(O(x),w(x,z)):(O(z),w(z,x)):w(z,x):l.matches_head?w(x,z):_?(O(x),w(z,x)):(O(z),w(x,z))}function A(e,t,n){return c.index=e,c.matches_head=t,c.matches_pt1=n,c===s?(c=l,!1):(c=null,!0)}function O(e){n&&n.chainReverse(e),r[e].reverse()}function w(e,a){var i=r[e],o=r[a],s=i[i.length-1],l=i[i.length-2],c=o[0],u=o[1];t.pointsCollinear(l,s,c)&&(n&&n.chainRemoveTail(e,s),i.pop(),s=l),t.pointsCollinear(s,c,u)&&(n&&n.chainRemoveHead(a,c),o.shift()),n&&n.chainJoin(e,a),r[e]=i.concat(o),r.splice(a,1)}}),a}}),bNe=Ee((e,t)=>{function n(e,t,n){var r=[];return e.forEach(function(e){var a=(e.myFill.above?8:0)+(e.myFill.below?4:0)+(e.otherFill&&e.otherFill.above?2:0)+(e.otherFill&&e.otherFill.below?1:0);0!==t[a]&&r.push({id:n?n.segmentId():-1,start:e.start,end:e.end,myFill:{above:1===t[a],below:2===t[a]},otherFill:null})}),n&&n.selected(r),r}var r={union:function(e,t){return n(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return n(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return n(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return n(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return n(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};t.exports=r}),xNe=Ee((e,t)=>{var n={toPolygon:function(e,t){function n(t){if(t.length<=0)return e.segments({inverted:!1,regions:[]});function n(t){var n=t.slice(0,t.length-1);return e.segments({inverted:!1,regions:[n]})}for(var r=n(t[0]),a=1;a<t.length;a++)r=e.selectDifference(e.combine(r,n(t[a])));return r}if("Polygon"===t.type)return e.polygon(n(t.coordinates));if("MultiPolygon"===t.type){for(var r=e.segments({inverted:!1,regions:[]}),a=0;a<t.coordinates.length;a++)r=e.selectUnion(e.combine(r,n(t.coordinates[a])));return e.polygon(r)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,n){function r(e,n){return t.pointInsideRegion([.5*(e[0][0]+e[1][0]),.5*(e[0][1]+e[1][1])],n)}function a(e){return{region:e,children:[]}}n=e.polygon(e.segments(n));var i=a(null);function o(e,t){for(var n=0;n<e.children.length;n++){if(r(t,(s=e.children[n]).region))return void o(s,t)}var i=a(t);for(n=0;n<e.children.length;n++){var s;r((s=e.children[n]).region,t)&&(i.children.push(s),e.children.splice(n,1),n--)}e.children.push(i)}for(var s=0;s<n.regions.length;s++){var l=n.regions[s];l.length<3||o(i,l)}function c(e,t){for(var n=0,r=e[e.length-1][0],a=e[e.length-1][1],i=[],o=0;o<e.length;o++){var s=e[o][0],l=e[o][1];i.push([s,l]),n+=l*r-s*a,r=s,a=l}return n<0!==t&&i.reverse(),i.push([i[0][0],i[0][1]]),i}var u=[];function d(e){var t=[c(e.region,!1)];u.push(t);for(var n=0;n<e.children.length;n++)t.push(p(e.children[n]))}function p(e){for(var t=0;t<e.children.length;t++)d(e.children[t]);return c(e.region,!0)}for(s=0;s<i.children.length;s++)d(i.children[s]);return u.length<=0?{type:"Polygon",coordinates:[]}:1==u.length?{type:"Polygon",coordinates:u[0]}:{type:"MultiPolygon",coordinates:u}}};t.exports=n}),wNe=Ee((e,t)=>{var n,r=cNe(),a=dNe(),i=mNe(),o=gNe(),s=bNe(),l=xNe(),c=!1,u=a();function d(e,t,r){var a=n.segments(e),i=n.segments(t),o=r(n.combine(a,i));return n.polygon(o)}n={buildLog:function(e){return!0===e?c=r():!1===e&&(c=!1),!1!==c&&c.list},epsilon:function(e){return u.epsilon(e)},segments:function(e){var t=i(!0,u,c);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){return{combined:i(!1,u,c).calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:s.union(e.combined,c),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:s.intersect(e.combined,c),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:s.difference(e.combined,c),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:s.differenceRev(e.combined,c),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:s.xor(e.combined,c),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:o(e.segments,u,c),inverted:e.inverted}},polygonFromGeoJSON:function(e){return l.toPolygon(n,e)},polygonToGeoJSON:function(e){return l.fromPolygon(n,u,e)},union:function(e,t){return d(e,t,n.selectUnion)},intersect:function(e,t){return d(e,t,n.selectIntersect)},difference:function(e,t){return d(e,t,n.selectDifference)},differenceRev:function(e,t){return d(e,t,n.selectDifferenceRev)},xor:function(e,t){return d(e,t,n.selectXor)}},"object"==typeof window&&(window.PolyBool=n),t.exports=n}),TNe=Ee((e,t)=>{t.exports=function(e,t,n,r){var a=e[0],i=e[1],o=!1;void 0===n&&(n=0),void 0===r&&(r=t.length);for(var s=r-n,l=0,c=s-1;l<s;c=l++){var u=t[l+n][0],d=t[l+n][1],p=t[c+n][0],h=t[c+n][1];d>i!=h>i&&a<(p-u)*(i-d)/(h-d)+u&&(o=!o)}return o}}),KD=Ee((e,t)=>{var n=JU().dot,r=T0().BADNUM,a=t.exports={};a.tester=function(e){var t,n=e.slice(),a=n[0][0],i=a,o=n[0][1],s=o;for((n[n.length-1][0]!==n[0][0]||n[n.length-1][1]!==n[0][1])&&n.push(n[0]),t=1;t<n.length;t++)a=Math.min(a,n[t][0]),i=Math.max(i,n[t][0]),o=Math.min(o,n[t][1]),s=Math.max(s,n[t][1]);var l,c=!1;5===n.length&&(n[0][0]===n[1][0]?n[2][0]===n[3][0]&&n[0][1]===n[3][1]&&n[1][1]===n[2][1]&&(c=!0,l=function(e){return e[0]===n[0][0]}):n[0][1]===n[1][1]&&n[2][1]===n[3][1]&&n[0][0]===n[3][0]&&n[1][0]===n[2][0]&&(c=!0,l=function(e){return e[1]===n[0][1]}));var u=!0,d=n[0];for(t=1;t<n.length;t++)if(d[0]!==n[t][0]||d[1]!==n[t][1]){u=!1;break}return{xmin:a,xmax:i,ymin:o,ymax:s,pts:n,contains:c?function(e,t){var n=e[0],c=e[1];return!(n===r||n<a||n>i||c===r||c<o||c>s||t&&l(e))}:function(e,t){var l=e[0],c=e[1];if(l===r||l<a||l>i||c===r||c<o||c>s)return!1;var u,d,p,h,f,m=n.length,g=n[0][0],y=n[0][1],b=0;for(u=1;u<m;u++)if(d=g,p=y,g=n[u][0],y=n[u][1],!(l<(h=Math.min(d,g))||l>Math.max(d,g)||c>Math.max(p,y)))if(c<Math.min(p,y))l!==h&&b++;else{if(c===(f=g===d?c:p+(l-d)*(y-p)/(g-d)))return!(1===u&&t);c<=f&&l!==h&&b++}return b%2==1},isRect:c,degenerate:u}},a.isSegmentBent=function(e,t,r,a){var i,o,s,l=e[t],c=[e[r][0]-l[0],e[r][1]-l[1]],u=n(c,c),d=Math.sqrt(u),p=[-c[1]/d,c[0]/d];for(i=t+1;i<r;i++)if(o=[e[i][0]-l[0],e[i][1]-l[1]],(s=n(o,c))<0||s>u||Math.abs(n(o,p))>a)return!0;return!1},a.filter=function(e,t){var n=[e[0]],r=0,i=0;function o(o){e.push(o);var s=n.length,l=r;n.splice(i+1);for(var c=l+1;c<e.length;c++)(c===e.length-1||a.isSegmentBent(e,l,c+1,t))&&(n.push(e[c]),n.length<s-2&&(r=c,i=n.length-1),l=c)}e.length>1&&o(e.pop());return{addPt:o,raw:e,filtered:n}}}),CNe=Ee((e,t)=>{t.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}}),JNe=Ee((e,t)=>{var n=wNe(),r=TNe(),a=vo(),i=vs().dashStyle,o=ao(),s=_d(),l=fm().makeEventData,c=Qy(),u=c.freeMode,d=c.rectMode,p=c.drawMode,h=c.openMode,f=c.selectMode,m=Kz(),g=WD(),y=TV(),b=Iz().clearOutline,v=Yz(),M=v.handleEllipse,x=v.readPaths,z=AV().newShapes,_=ule(),A=Rle().activateLastSelection,O=Fr(),w=O.sorterAsc,k=KD(),T=dH(),S=Ld().getFromId,C=ID(),E=jD().redrawReglTraces,q=CNe(),D=q.MINSELECT,R=k.filter,L=k.tester,I=MV(),W=I.p2r,N=I.axValue,P=I.getTransform;function B(e){return void 0!==e.subplot}function F(e,t,n,r,a,i,o){var s,l,c,u,d,p,f,m,g,b=t._hoverdata,v=t._fullLayout.clickmode.indexOf("event")>-1,M=[];if(function(e){return e&&Array.isArray(e)&&!0!==e[0].hoverOnBox}(b)){H(e,t,i);var x=function(e,t){var n,r,a=e[0],i=-1,o=[];for(r=0;r<t.length;r++)if(n=t[r],a.fullData.index===n.cd[0].trace.index){if(!0===a.hoverOnBox)break;void 0!==a.pointNumber?i=a.pointNumber:void 0!==a.binNumber&&(i=a.binNumber,o=a.pointNumbers);break}return{pointNumber:i,pointNumbers:o,searchInfo:n}}(b,s=Y(t,n,r,a));if(x.pointNumbers.length>0?function(e,t){var n,r,a,i,o=[];for(i=0;i<e.length;i++)(n=e[i]).cd[0].trace.selectedpoints&&n.cd[0].trace.selectedpoints.length>0&&o.push(n);if(1===o.length&&(a=o[0]===t.searchInfo,a&&(r=t.searchInfo.cd[0].trace,r.selectedpoints.length===t.pointNumbers.length))){for(i=0;i<t.pointNumbers.length;i++)if(r.selectedpoints.indexOf(t.pointNumbers[i])<0)return!1;return!0}return!1}(s,x):function(e){var t,n,r,a=0;for(r=0;r<e.length;r++)if(t=e[r],(n=t.cd[0].trace).selectedpoints&&(n.selectedpoints.length>1||(a+=n.selectedpoints.length)>1))return!1;return 1===a}(s)&&(p=$(x))){for(o&&o.remove(),g=0;g<s.length;g++)(l=s[g])._module.selectPoints(l,!1);J(t,s),X(i),v&&de(t)}else{for(f=e.shiftKey&&(void 0!==p?p:$(x)),c=function(e,t,n){return{pointNumber:e,searchInfo:t,subtract:!!n}}(x.pointNumber,x.searchInfo,f),u=V(i.selectionDefs.concat([c])),g=0;g<s.length;g++)if(d=K(s[g]._module.selectPoints(s[g],u),s[g]),M.length)for(var z=0;z<d.length;z++)M.push(d[z]);else M=d;if(J(t,s,m={points:M}),c&&i&&i.selectionDefs.push(c),o){var _=i.mergedPolygons,A=h(i.dragmode);y(ee(_,A),o,i)}v&&ue(t,m)}}}function j(e){return"pointNumber"in e&&"searchInfo"in e}function U(e){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(t,n,r,a){var i=e.searchInfo.cd[0].trace.index;return a.cd[0].trace.index===i&&r===e.pointNumber},isRect:!1,degenerate:!1,subtract:!!e.subtract}}function V(e){if(e.length){for(var t=[],n=j(e[0])?0:e[0][0][0],r=n,a=j(e[0])?0:e[0][0][1],i=a,o=0;o<e.length;o++)if(j(e[o]))t.push(U(e[o]));else{var s=L(e[o]);s.subtract=!!e[o].subtract,t.push(s),n=Math.min(n,s.xmin),r=Math.max(r,s.xmax),a=Math.min(a,s.ymin),i=Math.max(i,s.ymax)}return{xmin:n,xmax:r,ymin:a,ymax:i,pts:[],contains:function(e,n,r,a){for(var i=!1,o=0;o<t.length;o++)t[o].contains(e,n,r,a)&&(i=!t[o].subtract);return i},isRect:!1,degenerate:!1}}}function H(e,t,n){var r=t._fullLayout,a=n.plotinfo,i=n.dragmode,o=r._lastSelectedSubplot&&r._lastSelectedSubplot===a.id,s=(e.shiftKey||e.altKey)&&!(p(i)&&h(i));o&&s&&a.selection&&a.selection.selectionDefs&&!n.selectionDefs?(n.selectionDefs=a.selection.selectionDefs,n.mergedPolygons=a.selection.mergedPolygons):(!s||!a.selection)&&X(n),o||(b(t),r._lastSelectedSubplot=a.id)}function X(e,t){var n=e.dragmode,r=e.plotinfo,i=e.gd;(function(e){return e._fullLayout._activeShapeIndex>=0})(i)&&i._fullLayout._deactivateShape(i),function(e){return e._fullLayout._activeSelectionIndex>=0}(i)&&i._fullLayout._deactivateSelection(i);var o=i._fullLayout._zoomlayer,s=p(n),l=f(n);if(s||l){var c,u,d=o.selectAll(".select-outline-"+r.id);if(d&&i._fullLayout._outlining)s&&(c=z(d,e)),c&&a.call("_guiRelayout",i,{shapes:c}),l&&!B(e)&&(u=_(d,e)),u&&(i._fullLayout._noEmitSelectedAtStart=!0,a.call("_guiRelayout",i,{selections:u}).then(function(){t&&A(i)})),i._fullLayout._outlining=!1}r.selection={},r.selection.selectionDefs=e.selectionDefs=[],r.selection.mergedPolygons=e.mergedPolygons=[]}function G(e){return e._id}function Y(e,t,n,r){if(!e.calcdata)return[];var a,i,o,s=[],l=t.map(G),c=n.map(G);for(o=0;o<e.calcdata.length;o++)if(!0===(i=(a=e.calcdata[o])[0].trace).visible&&i._module&&i._module.selectPoints)if(!B({subplot:r})||i.subplot!==r&&i.geo!==r)if("splom"===i.type){if(i._xaxes[l[0]]&&i._yaxes[c[0]]){var u=Z(i._module,a,t[0],n[0]);u.scene=e._fullLayout._splomScenes[i.uid],s.push(u)}}else if("sankey"===i.type){var d=Z(i._module,a,t[0],n[0]);s.push(d)}else{if(!((-1!==l.indexOf(i.xaxis)||i._xA&&i._xA.overlaying)&&(-1!==c.indexOf(i.yaxis)||i._yA&&i._yA.overlaying)))continue;s.push(Z(i._module,a,S(e,i.xaxis),S(e,i.yaxis)))}else s.push(Z(i._module,a,t[0],n[0]));return s}function Z(e,t,n,r){return{_module:e,cd:t,xaxis:n,yaxis:r}}function $(e){var t=e.searchInfo.cd[0].trace,n=e.pointNumber,r=e.pointNumbers,a=r.length>0?r[0]:n;return!!t.selectedpoints&&t.selectedpoints.indexOf(a)>-1}function J(e,t,n){var r,i;for(r=0;r<t.length;r++){var o=t[r].cd[0].trace._fullInput,s=e._fullLayout._tracePreGUI[o.uid]||{};void 0===s.selectedpoints&&(s.selectedpoints=o._input.selectedpoints||null)}if(n){var l=n.points||[];for(r=0;r<t.length;r++)(i=t[r].cd[0].trace)._input.selectedpoints=i._fullInput.selectedpoints=[],i._fullInput!==i&&(i.selectedpoints=[]);for(var c=0;c<l.length;c++){var u=l[c],d=u.data,p=u.fullData,h=u.pointIndex,f=u.pointIndices;f?([].push.apply(d.selectedpoints,f),i._fullInput!==i&&[].push.apply(p.selectedpoints,f)):(d.selectedpoints.push(h),i._fullInput!==i&&p.selectedpoints.push(h))}}else for(r=0;r<t.length;r++)delete(i=t[r].cd[0].trace).selectedpoints,delete i._input.selectedpoints,i._fullInput!==i&&delete i._fullInput.selectedpoints;!function(e,t){for(var n=!1,r=0;r<t.length;r++){var i=t[r],o=i.cd;a.traceIs(o[0].trace,"regl")&&(n=!0);var s=i._module,l=s.styleOnSelect||s.style;l&&(l(e,o,o[0].node3),o[0].nodeRangePlot3&&l(e,o,o[0].nodeRangePlot3))}n&&(C(e),E(e))}(e,t)}function Q(e,t,r){for(var a=(r?n.difference:n.union)({regions:e},{regions:[t]}).regions.reverse(),i=0;i<a.length;i++){var o=a[i];o.subtract=oe(o,a.slice(0,i))}return a}function K(e,t){if(Array.isArray(e))for(var n=t.cd,r=t.cd[0].trace,a=0;a<e.length;a++)e[a]=l(e[a],r,n);return e}function ee(e,t){for(var n=[],r=0;r<e.length;r++){n[r]=[];for(var a=0;a<e[r].length;a++){n[r][a]=[],n[r][a][0]=a?"L":"M";for(var i=0;i<e[r][a].length;i++)n[r][a].push(e[r][a][i])}t||n[r].push(["Z",n[r][0][1],n[r][0][2]])}return n}function te(e,t){for(var n,r,a=[],i=[],o=0;o<t.length;o++){var s=t[o];r=s._module.selectPoints(s,e),i.push(r),n=K(r,s),a=a.concat(n)}return a}function ne(e,t,n,r,a){var i,o,s,l=!!r;a&&(i=a.plotinfo,o=a.xaxes[0]._id,s=a.yaxes[0]._id);var c=[],u=[],d=ie(e),h=e._fullLayout;if(i){var m=h._zoomlayer,g=h.dragmode,y=p(g),b=f(g);if(y||b){var v=S(e,o,"x"),M=S(e,s,"y");if(v&&M){var z=m.selectAll(".select-outline-"+i.id);if(z&&e._fullLayout._outlining&&z.length){for(var _=z[0][0].getAttribute("d"),A=x(_,e,i),O=[],w=0;w<A.length;w++){for(var k=A[w],T=[],C=0;C<k.length;C++)T.push([se(v,k[C][1]),se(M,k[C][2])]);T.xref=o,T.yref=s,T.subtract=oe(T,O),O.push(T)}d=d.concat(O)}}}}var E=o&&s?[o+s]:h._subplots.cartesian;!function(e){var t=e.calcdata;if(t)for(var n=0;n<t.length;n++){var r=t[n][0].trace,a=e._fullLayout._splomScenes;if(a){var i=a[r.uid];i&&(i.selectBatch=[])}}}(e);for(var q={},D=0;D<E.length;D++){var R=E[D],L=R.indexOf("y"),I=R.slice(0,L),W=R.slice(L),N=o&&s?n:void 0;if(N=ae(d,I,W,N)){var P=r;if(!l){var B=S(e,I,"x"),F=S(e,W,"y");P=Y(e,[B],[F],R);for(var j=0;j<P.length;j++){var U=P[j],V=U.cd[0],H=V.trace;if("scattergl"===U._module.name&&!V.t.xpx){var X=H.x,G=H.y,Z=H._length;V.t.xpx=[],V.t.ypx=[];for(var $=0;$<Z;$++)V.t.xpx[$]=B.c2p(X[$]),V.t.ypx[$]=F.c2p(G[$])}"splom"===U._module.name&&(q[H.uid]||(q[H.uid]=!0))}}var Q=te(N,P);c=c.concat(Q),u=u.concat(P)}}var K={points:c};J(e,u,K);var ee=h.clickmode.indexOf("event")>-1&&t;if(!i&&t){var ne=ie(e,!0);if(ne.length){var pe=ne[0].xref,he=ne[0].yref;if(pe&&he){var fe=le(ne);ce([S(e,pe,"x"),S(e,he,"y")])(K,fe)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ee&&ue(e,K),h._reselect=!1}if(!i&&h._deselect){var me=h._deselect;(function(e,t,n){for(var r=0;r<n.length;r++){var a=n[r];if(a.xaxis&&a.xaxis._id===e&&a.yaxis&&a.yaxis._id===t)return!0}return!1})(o=me.xref,s=me.yref,u)||re(e,o,s,r),ee&&(K.points.length?ue(e,K):de(e)),h._deselect=!1}return{eventData:K,selectionTesters:n}}function re(e,t,n,r){r=Y(e,[S(e,t,"x")],[S(e,n,"y")],t+n);for(var a=0;a<r.length;a++){var i=r[a];i._module.selectPoints(i,!1)}J(e,r)}function ae(e,t,n,r){for(var a,i=0;i<e.length;i++){var o=e[i];if(t===o.xref&&n===o.yref)if(a){r=V(a=Q(a,o,!!o.subtract))}else a=[o],r=L(o)}return r}function ie(e,t){for(var n=[],r=e._fullLayout,a=r.selections,i=a.length,o=0;o<i;o++)if(!t||o===r._activeSelectionIndex){var s=a[o];if(s){var l,c,u,d,p,h=s.xref,f=s.yref,y=S(e,h,"x"),b=S(e,f,"y");if("rect"===s.type){p=[];var v=se(y,s.x0),M=se(y,s.x1),x=se(b,s.y0),z=se(b,s.y1);p=[[v,x],[v,z],[M,z],[M,x]],l=Math.min(v,M),c=Math.max(v,M),u=Math.min(x,z),d=Math.max(x,z),p.xmin=l,p.xmax=c,p.ymin=u,p.ymax=d,p.xref=h,p.yref=f,p.subtract=!1,p.isRect=!0,n.push(p)}else if("path"===s.type)for(var _=s.path.split("Z"),A=[],O=0;O<_.length;O++){var w=_[O];if(w){w+="Z";var k=m.extractPathCoords(w,g.paramIsX,"raw"),T=m.extractPathCoords(w,g.paramIsY,"raw");l=1/0,c=-1/0,u=1/0,d=-1/0,p=[];for(var C=0;C<k.length;C++){var E=se(y,k[C]),q=se(b,T[C]);p.push([E,q]),l=Math.min(E,l),c=Math.max(E,c),u=Math.min(q,u),d=Math.max(q,d)}p.xmin=l,p.xmax=c,p.ymin=u,p.ymax=d,p.xref=h,p.yref=f,p.subtract=oe(p,A),A.push(p),n.push(p)}}}}return n}function oe(e,t){for(var n=!1,a=0;a<t.length;a++)for(var i=t[a],o=0;o<e.length;o++)if(r(e[o],i)){n=!n;break}return n}function se(e,t){return"date"===e.type&&(t=t.replace("_"," ")),"log"===e.type?e.c2p(t):e.r2p(t,null,e.calendar)}function le(e){for(var t=e.length,n=[],r=0;r<t;r++){var a=e[r];n=(n=n.concat(a)).concat([a[0]])}return function(e){return e.isRect=5===e.length&&e[0][0]===e[4][0]&&e[0][1]===e[4][1]&&e[0][0]===e[1][0]&&e[2][0]===e[3][0]&&e[0][1]===e[3][1]&&e[1][1]===e[2][1]||e[0][1]===e[1][1]&&e[2][1]===e[3][1]&&e[0][0]===e[3][0]&&e[1][0]===e[2][0],e.isRect&&(e.xmin=Math.min(e[0][0],e[2][0]),e.xmax=Math.max(e[0][0],e[2][0]),e.ymin=Math.min(e[0][1],e[2][1]),e.ymax=Math.max(e[0][1],e[2][1])),e}(n)}function ce(e){return function(t,n){for(var r,a,i=0;i<e.length;i++){var o=e[i],s=o._id,l=s.charAt(0);if(n.isRect){r||(r={});var c=n[l+"min"],u=n[l+"max"];void 0!==c&&void 0!==u&&(r[s]=[W(o,c),W(o,u)].sort(w))}else a||(a={}),a[s]=n.map(N(o))}r&&(t.range=r),a&&(t.lassoPoints=a)}}function ue(e,t){t&&(t.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",t)}function de(e){e.emit("plotly_deselect",null)}t.exports={reselect:ne,prepSelect:function(e,t,n,r,l){var c=!B(r),m=u(l),g=d(l),b=h(l),v=p(l),x=f(l),z="drawcircle"===l,_="drawline"===l||z,A=r.gd,w=A._fullLayout,k=x&&"immediate"===w.newselection.mode&&c,S=w._zoomlayer,C=r.element.getBoundingClientRect(),E=r.plotinfo,I=P(E),W=t-C.left,N=n-C.top;w._calcInverseTransform(A);var j=O.apply3DTransform(w._invTransform)(W,N);W=j[0],N=j[1];var U,G,Z,$,K,ae,ie,oe=w._invScaleX,se=w._invScaleY,pe=W,he=N,fe="M"+W+","+N,me=r.xaxes[0],ge=r.yaxes[0],ye=me._length,be=ge._length,ve=e.altKey&&!(p(l)&&b);H(e,A,r),m&&(U=R([[W,N]],q.BENDPX));var Me=S.selectAll("path.select-outline-"+E.id).data([1]),xe=v?w.newshape:w.newselection;v&&(r.hasText=xe.label.text||xe.label.texttemplate);var ze=v&&!b?xe.fillcolor:"rgba(0,0,0,0)",_e=xe.line.color||(c?o.contrast(A._fullLayout.plot_bgcolor):"#7f7f7f");Me.enter().append("path").attr("class","select-outline select-outline-"+E.id).style({opacity:v?xe.opacity/2:1,"stroke-dasharray":i(xe.line.dash,xe.line.width),"stroke-width":xe.line.width+"px","shape-rendering":"crispEdges"}).call(o.stroke,_e).call(o.fill,ze).attr("fill-rule","evenodd").classed("cursor-move",!!v).attr("transform",I).attr("d",fe+"Z");var Ae=S.append("path").attr("class","zoombox-corners").style({fill:o.background,stroke:o.defaultLine,"stroke-width":1}).attr("transform",I).attr("d","M0,0Z");if(v&&r.hasText){var Oe=S.select(".label-temp");Oe.empty()&&(Oe=S.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var we=w._uid+q.SELECTID,ke=[],Te=Y(A,r.xaxes,r.yaxes,r.subplot);k&&!e.shiftKey&&(r._clearSubplotSelections=function(){if(c){var e=me._id,t=ge._id;re(A,e,t,Te);for(var n=(A.layout||{}).selections||[],r=[],i=!1,o=0;o<n.length;o++){var s=w.selections[o];s&&s.xref===e&&s.yref===t?i=!0:r.push(n[o])}i&&(A._fullLayout._noEmitSelectedAtStart=!0,a.call("_guiRelayout",A,{selections:r}))}});var Se=function(e){var t=e.plotinfo;return t.fillRangeItems||ce(e.xaxes.concat(e.yaxes))}(r);r.moveFn=function(e,t){r._clearSubplotSelections&&(r._clearSubplotSelections(),r._clearSubplotSelections=void 0),pe=Math.max(0,Math.min(ye,oe*e+W)),he=Math.max(0,Math.min(be,se*t+N));var n=Math.abs(pe-W),a=Math.abs(he-N);if(g){var i,o,s;if(x){var l=w.selectdirection;switch(i="any"===l?a<Math.min(.6*n,D)?"h":n<Math.min(.6*a,D)?"v":"d":l){case"h":o=z?be/2:0,s=be;break;case"v":o=z?ye/2:0,s=ye}}if(v)switch(w.newshape.drawdirection){case"vertical":i="h",o=z?be/2:0,s=be;break;case"horizontal":i="v",o=z?ye/2:0,s=ye;break;case"ortho":n<a?(i="h",o=N,s=he):(i="v",o=W,s=pe);break;default:i="d"}"h"===i?(($=_?M(z,[pe,o],[pe,s]):[[W,o],[W,s],[pe,s],[pe,o]]).xmin=_?pe:Math.min(W,pe),$.xmax=_?pe:Math.max(W,pe),$.ymin=Math.min(o,s),$.ymax=Math.max(o,s),Ae.attr("d","M"+$.xmin+","+(N-D)+"h-4v"+2*D+"h4ZM"+($.xmax-1)+","+(N-D)+"h4v"+2*D+"h-4Z")):"v"===i?(($=_?M(z,[o,he],[s,he]):[[o,N],[o,he],[s,he],[s,N]]).xmin=Math.min(o,s),$.xmax=Math.max(o,s),$.ymin=_?he:Math.min(N,he),$.ymax=_?he:Math.max(N,he),Ae.attr("d","M"+(W-D)+","+$.ymin+"v-4h"+2*D+"v4ZM"+(W-D)+","+($.ymax-1)+"v4h"+2*D+"v-4Z")):"d"===i&&(($=_?M(z,[W,N],[pe,he]):[[W,N],[W,he],[pe,he],[pe,N]]).xmin=Math.min(W,pe),$.xmax=Math.max(W,pe),$.ymin=Math.min(N,he),$.ymax=Math.max(N,he),Ae.attr("d","M0,0Z"))}else m&&(U.addPt([pe,he]),$=U.filtered);if(r.selectionDefs&&r.selectionDefs.length?(Z=Q(r.mergedPolygons,$,ve),$.subtract=ve,G=V(r.selectionDefs.concat([$]))):(Z=[$],G=L($)),y(ee(Z,b),Me,r),x){var c,u=ne(A,!1),d=u.eventData?u.eventData.points.slice():[];u=ne(A,!1,G,Te,r),G=u.selectionTesters,ie=u.eventData,c=U?U.filtered:le(Z),T.throttle(we,q.SELECTDELAY,function(){for(var e=(ke=te(G,Te)).slice(),t=0;t<d.length;t++){for(var n=d[t],r=!1,a=0;a<e.length;a++)if(e[a].curveNumber===n.curveNumber&&e[a].pointNumber===n.pointNumber){r=!0;break}r||e.push(n)}e.length&&(ie||(ie={}),ie.points=e),Se(ie,c),function(e,t){e.emit("plotly_selecting",t)}(A,ie)})}},r.clickFn=function(e,t){if(Ae.remove(),A._fullLayout._activeShapeIndex>=0)A._fullLayout._deactivateShape(A);else if(!v){var n=w.clickmode;T.done(we).then(function(){if(T.clear(we),2===e){for(Me.remove(),K=0;K<Te.length;K++)(ae=Te[K])._module.selectPoints(ae,!1);if(J(A,Te),X(r),de(A),Te.length){var i=Te[0].xaxis,o=Te[0].yaxis;if(i&&o){for(var l=[],c=A._fullLayout.selections,u=0;u<c.length;u++){var d=c[u];d&&(d.xref!==i._id||d.yref!==o._id)&&l.push(d)}l.length<c.length&&(A._fullLayout._noEmitSelectedAtStart=!0,a.call("_guiRelayout",A,{selections:l}))}}}else n.indexOf("select")>-1&&F(t,A,r.xaxes,r.yaxes,r.subplot,r,Me),"event"===n&&ue(A,void 0);s.click(A,t,E.id)}).catch(O.error)}},r.doneFn=function(){Ae.remove(),T.done(we).then(function(){T.clear(we),!k&&$&&r.selectionDefs&&($.subtract=ve,r.selectionDefs.push($),r.mergedPolygons.length=0,[].push.apply(r.mergedPolygons,Z)),(k||v)&&X(r,k),r.doneFnCompleted&&r.doneFnCompleted(ke),x&&ue(A,ie)}).catch(O.error)}},clearOutline:b,clearSelectionsCache:X,selectOnClick:F}}),Xle=Ee((e,t)=>{t.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]}),oR=Ee((e,t)=>{t.exports={axisRefDescription:function(e,t,n){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+n+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",n,"of the domain of the","second",e,"axis."].join(" ")}}}),Iw=Ee((e,t)=>{var n=Xle(),r=Mu(),a=sh(),i=Kl().templatedArray,o=oR();function s(e){return["In order for absolute positioning of the arrow to work, *a"+e+"ref* must be exactly the same as *"+e+"ref*, otherwise *a"+e+"ref* will revert to *pixel* (explained next).","For relative positioning, *a"+e+"ref* can be set to *pixel*,","in which case the *a"+e+"* value is specified in pixels","relative to *"+e+"*.","Absolute positioning is useful","for trendline annotations which should continue to indicate","the correct trend when zoomed. Relative positioning is useful","for specifying the text offset for an annotated point."].join(" ")}function l(e,t,n){return["Sets the",e,"component of the arrow tail about the arrow head.","If `a"+e+"ref` is `pixel`, a positive (negative)","component corresponds to an arrow pointing","from",n,"to",t,"("+t,"to",n+").","If `a"+e+"ref` is not `pixel` and is exactly the same as `"+e+"ref`,","this is an absolute value on that axis,","like `"+e+"`, specified in the same coordinates as `"+e+"ref`."].join(" ")}t.exports=i("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not this annotation is visible."].join(" ")},text:{valType:"string",editType:"calc+arraydraw",description:["Sets the text associated with this annotation.","Plotly uses a subset of HTML tags to do things like","newline (`<br>`), bold (`<b></b>`), italics (`<i></i>`),","hyperlinks (`<a href='...'></a>`). Tags `<em>`, `<sup>`,","`<sub>`, `<s>`, `<u>`, and `<span>` are also supported."].join(" ")},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw",description:["Sets the angle at which the `text` is drawn","with respect to the horizontal."].join(" ")},font:r({editType:"calc+arraydraw",colorEditType:"arraydraw",description:"Sets the annotation text font."}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw",description:["Sets an explicit width for the text box. null (default) lets the","text set the box width. Wider text will be clipped.","There is no automatic wrapping; use <br> to start a new line."].join(" ")},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw",description:["Sets an explicit height for the text box. null (default) lets the","text set the box height. Taller text will be clipped."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the annotation (text + arrow)."},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw",description:["Sets the horizontal alignment of the `text` within the box.","Has an effect only if `text` spans two or more lines","(i.e. `text` contains one or more <br> HTML tags) or if an","explicit width is set to override the text width."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw",description:["Sets the vertical alignment of the `text` within the box.","Has an effect only if an explicit height is set to override","the text height."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:"Sets the background color of the annotation."},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:["Sets the color of the border enclosing the annotation `text`."].join(" ")},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw",description:["Sets the padding (in px) between the `text`","and the enclosing border."].join(" ")},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw",description:["Sets the width (in px) of the border enclosing","the annotation `text`."].join(" ")},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not the annotation is drawn with an arrow.","If *true*, `text` is placed near the arrow's tail.","If *false*, `text` lines up with the `x` and `y` provided."].join(" ")},arrowcolor:{valType:"color",editType:"arraydraw",description:"Sets the color of the annotation arrow."},arrowhead:{valType:"integer",min:0,max:n.length,dflt:1,editType:"arraydraw",description:"Sets the end annotation arrow head style."},startarrowhead:{valType:"integer",min:0,max:n.length,dflt:1,editType:"arraydraw",description:"Sets the start annotation arrow head style."},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw",description:"Sets the annotation arrow head position."},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw",description:["Sets the size of the end annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw",description:["Sets the size of the start annotation arrow head, relative to `arrowwidth`.","A value of 1 (default) gives a head about 3x as wide as the line."].join(" ")},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw",description:"Sets the width (in px) of annotation arrow line."},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the end arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw",description:["Sets a distance, in pixels, to move the start arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},ax:{valType:"any",editType:"calc+arraydraw",description:[l("x","left","right")].join(" ")},ay:{valType:"any",editType:"calc+arraydraw",description:[l("y","top","bottom")].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",a.idRegex.x.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",o.axisRefDescription("x","left","right"),s("x")].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",a.idRegex.y.toString()],editType:"calc",description:["Indicates in what coordinates the tail of the","annotation (ax,ay) is specified.",o.axisRefDescription("y","bottom","top"),s("y")].join(" ")},xref:{valType:"enumerated",values:["paper",a.idRegex.x.toString()],editType:"calc",description:["Sets the annotation's x coordinate axis.",o.axisRefDescription("x","left","right")].join(" ")},x:{valType:"any",editType:"calc+arraydraw",description:["Sets the annotation's x position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw",description:["Sets the text box's horizontal position anchor","This anchor binds the `x` position to the *left*, *center*","or *right* of the annotation.","For example, if `x` is set to 1, `xref` to *paper* and","`xanchor` to *right* then the right-most portion of the","annotation lines up with the right-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *center* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw",description:["Shifts the position of the whole annotation and arrow to the","right (positive) or left (negative) by this many pixels."].join(" ")},yref:{valType:"enumerated",values:["paper",a.idRegex.y.toString()],editType:"calc",description:["Sets the annotation's y coordinate axis.",o.axisRefDescription("y","bottom","top")].join(" ")},y:{valType:"any",editType:"calc+arraydraw",description:["Sets the annotation's y position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw",description:["Sets the text box's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the annotation.","For example, if `y` is set to 1, `yref` to *paper* and","`yanchor` to *top* then the top-most portion of the","annotation lines up with the top-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *middle* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw",description:["Shifts the position of the whole annotation and arrow up","(positive) or down (negative) by this many pixels."].join(" ")},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw",description:["Makes this annotation respond to clicks on the plot.","If you click a data point that exactly matches the `x` and `y`","values of this annotation, and it is hidden (visible: false),","it will appear. In *onoff* mode, you must click the same point","again to make it disappear, so if you click multiple points,","you can show multiple annotations. In *onout* mode, a click","anywhere else in the plot (on another data point or not) will","hide this annotation.","If you need to show/hide this annotation in response to different","`x` or `y` values, you can set `xclick` and/or `yclick`. This is","useful for example to label the side of a bar. To label markers","though, `standoff` is preferred over `xclick` and `yclick`."].join(" ")},xclick:{valType:"any",editType:"arraydraw",description:["Toggle this annotation when clicking a data point whose `x` value","is `xclick` rather than the annotation's `x` value."].join(" ")},yclick:{valType:"any",editType:"arraydraw",description:["Toggle this annotation when clicking a data point whose `y` value","is `yclick` rather than the annotation's `y` value."].join(" ")},hovertext:{valType:"string",editType:"arraydraw",description:["Sets text to appear when hovering over this annotation.","If omitted or blank, no hover label will appear."].join(" ")},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw",description:["Sets the background color of the hover label.","By default uses the annotation's `bgcolor` made opaque,","or white if it was transparent."].join(" ")},bordercolor:{valType:"color",editType:"arraydraw",description:["Sets the border color of the hover label.","By default uses either dark grey or white, for maximum","contrast with `hoverlabel.bgcolor`."].join(" ")},font:r({editType:"arraydraw",description:["Sets the hover label text font.","By default uses the global hover font and size,","with color from `hoverlabel.bordercolor`."].join(" ")}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw",description:["Determines whether the annotation text box captures mouse move","and click events, or allows those events to pass through to data","points in the plot that may be behind the annotation. By default","`captureevents` is *false* unless `hovertext` is provided.","If you use the event `plotly_clickannotation` without `hovertext`","you must explicitly enable `captureevents`."].join(" ")},editType:"calc"})}),S3=Ee((e,t)=>{t.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}}),tb=Ee((e,t)=>{t.exports=function(e){return{valType:"color",editType:"style",anim:!0,description:["Sets the fill color.","Defaults to a half-transparent variant of the line color,","marker color, or marker line color, whichever is available."+(e?" If fillgradient is specified, fillcolor is ignored except for setting the background color of the hover label, if any.":"")].join(" ")}}}),Id=Ee((e,t)=>{var n=Pd().axisHoverFormat,{hovertemplateAttrs:r,texttemplateAttrs:a,templatefallbackAttrs:i}=p1(),o=Oc(),s=Mu(),l=pp().dash,c=pp().pattern,u=vs(),d=S3(),p=ms().extendFlat,h=tb();function f(e){return{valType:"any",dflt:0,editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the period positioning in milliseconds or *M<n>* on the "+e+" axis.","Special values in the form of *M<n>* could be used to declare","the number of months. In this case `n` must be a positive integer."].join(" ")}}function m(e){return{valType:"any",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the base for period positioning in milliseconds or date string on the "+e+" axis.","When `"+e+"period` is round number of weeks,","the `"+e+"period0` by default would be on a Sunday i.e. 2000-01-02,","otherwise it would be at 2000-01-01."].join(" ")}}function g(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc",description:["Only relevant when the axis `type` is *date*.","Sets the alignment of data points on the "+e+" axis."].join(" ")}}t.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the x coordinates."},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0,description:["Alternate to `x`.","Builds a linear space of x coordinates.","Use with `dx`","where `x0` is the starting coordinate and `dx` the step."].join(" ")},dx:{valType:"number",dflt:1,editType:"calc",anim:!0,description:["Sets the x coordinate step.","See `x0` for more info."].join(" ")},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the y coordinates."},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0,description:["Alternate to `y`.","Builds a linear space of y coordinates.","Use with `dy`","where `y0` is the starting coordinate and `dy` the step."].join(" ")},dy:{valType:"number",dflt:1,editType:"calc",anim:!0,description:["Sets the y coordinate step.","See `y0` for more info."].join(" ")},xperiod:f("x"),yperiod:f("y"),xperiod0:m("x0"),yperiod0:m("y0"),xperiodalignment:g("x"),yperiodalignment:g("y"),xhoverformat:n("x"),yhoverformat:n("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several traces linked to the same position axis","or matching axes to the same","offsetgroup where bars of the same position coordinate will line up."].join(" ")},alignmentgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several traces linked to the same position axis","or matching axes to the same","alignmentgroup. This controls whether bars compute their positional","range dependently or independently."].join(" ")},stackgroup:{valType:"string",dflt:"",editType:"calc",description:["Set several scatter traces (on the same subplot) to the same","stackgroup in order to add their y values (or their x values if","`orientation` is *h*). If blank or omitted this trace will not be","stacked. Stacking also turns `fill` on by default, using *tonexty*","(*tonextx*) if `orientation` is *h* (*v*) and sets the default","`mode` to *lines* irrespective of point count.","You can only stack on a numeric (linear or log) axis.","Traces in a `stackgroup` will only fill to (or be filled to) other","traces in the same group. With multiple `stackgroup`s or some","traces stacked and some not, if fill-linked traces are not already","consecutive, the later ones will be pushed down in the drawing order."].join(" ")},orientation:{valType:"enumerated",values:["v","h"],editType:"calc",description:["Only relevant in the following cases:","1. when `scattermode` is set to *group*.","2. when `stackgroup` is used, and only the first","`orientation` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`. Sets the","stacking direction. With *v* (*h*), the y (x) values of subsequent","traces are added. Also affects the default value of `fill`."].join(" ")},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`groupnorm` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`.","Sets the normalization for the sum of this `stackgroup`.","With *fraction*, the value of each trace at each location is","divided by the sum of all trace values at that location.","*percent* is the same but multiplied by 100 to show percentages.","If there are multiple subplots, or multiple `stackgroup`s on one","subplot, each will be normalized within its own set."].join(" ")},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc",description:["Only relevant when `stackgroup` is used, and only the first","`stackgaps` found in the `stackgroup` will be used - including","if `visible` is *legendonly* but not if it is `false`.","Determines how we handle locations at which other traces in this","group have data but this one does not.","With *infer zero* we insert a zero at these locations.","With *interpolate* we linearly interpolate between existing","values, and extrapolate a constant beyond the existing values."].join(" ")},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:["Sets text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},texttemplate:a(),texttemplatefallback:i({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style",description:["Sets hover text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc",description:["Determines the drawing mode for this scatter trace.","If the provided `mode` includes *text* then the `text` elements","appear at the coordinates. Otherwise, the `text` elements","appear on hover.","If there are less than "+d.PTS_LINESONLY+" points","and the trace is not stacked","then the default is *lines+markers*. Otherwise, *lines*."].join(" ")},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style",description:["Do the hover effects highlight individual points (markers or","line points) or do they highlight filled regions?","If the fill is *toself* or *tonext* and there are no markers","or text, then the default is *fills*, otherwise it is *points*."].join(" ")},hovertemplate:r({},{keys:d.eventDataKeys}),hovertemplatefallback:i(),line:{color:{valType:"color",editType:"style",anim:!0,description:"Sets the line color."},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0,description:"Sets the line width (in px)."},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot",description:["Determines the line shape.","With *spline* the lines are drawn using spline interpolation.","The other available values correspond to step-wise line shapes."].join(" ")},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot",description:["Has an effect only if `shape` is set to *spline*","Sets the amount of smoothing.","*0* corresponds to no smoothing (equivalent to a *linear* shape)."].join(" ")},dash:p({},l,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot",description:["Sets the line back off from the end point of the nth line segment (in px).","This option is useful e.g. to avoid overlap with arrowhead markers.","With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*."].join(" ")},simplify:{valType:"boolean",dflt:!0,editType:"plot",description:["Simplifies lines by removing nearly-collinear points. When transitioning","lines, it may be desirable to disable this so that the number of points","along the resulting SVG path is unaffected."].join(" ")},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the provided data arrays are connected."].join(" ")},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot",description:["Determines whether or not markers and text nodes","are clipped about the subplot axes.","To show markers and text nodes above axis lines and tick labels,","make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*."].join(" ")},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc",description:["Sets the area to fill with a solid color.","Defaults to *none* unless this trace is stacked, then it gets","*tonexty* (*tonextx*) if `orientation` is *v* (*h*)","Use with `fillcolor` if not *none*.","*tozerox* and *tozeroy* fill to x=0 and y=0 respectively.","*tonextx* and *tonexty* fill between the endpoints of this","trace and the endpoints of the trace before it, connecting those","endpoints with straight lines (to make a stacked area graph);","if there is no trace before it, they behave like *tozerox* and","*tozeroy*.","*toself* connects the endpoints of the trace (or each segment","of the trace if it has gaps) into a closed shape.","*tonext* fills the space between two traces if one completely","encloses the other (eg consecutive contour lines), and behaves like","*toself* if there is no trace before it. *tonext* should not be","used if one trace does not enclose the other.","Traces in a `stackgroup` will only fill to (or be filled to) other","traces in the same group. With multiple `stackgroup`s or some","traces stacked and some not, if fill-linked traces are not already","consecutive, the later ones will be pushed down in the drawing order."].join(" ")},fillcolor:h(!0),fillgradient:p({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc",description:["Sets the type/orientation of the color gradient for the fill.","Defaults to *none*."].join(" ")},start:{valType:"number",editType:"calc",description:["Sets the gradient start value.","It is given as the absolute position on the axis determined by","the orientiation. E.g., if orientation is *horizontal*, the","gradient will be horizontal and start from the x-position","given by start. If omitted, the gradient starts at the lowest","value of the trace along the respective axis.","Ignored if orientation is *radial*."].join(" ")},stop:{valType:"number",editType:"calc",description:["Sets the gradient end value.","It is given as the absolute position on the axis determined by","the orientiation. E.g., if orientation is *horizontal*, the","gradient will be horizontal and end at the x-position","given by end. If omitted, the gradient ends at the highest","value of the trace along the respective axis.","Ignored if orientation is *radial*."].join(" ")},colorscale:{valType:"colorscale",editType:"style",description:["Sets the fill gradient colors as a color scale.","The color scale is interpreted as a gradient","applied in the direction specified by *orientation*,","from the lowest to the highest value of the scatter","plot along that axis, or from the center to the most","distant point from it, if orientation is *radial*."].join(" ")},editType:"calc",description:["Sets a fill gradient.","If not specified, the fillcolor is used instead."].join(" ")}),fillpattern:c,marker:p({symbol:{valType:"enumerated",values:u.symbolList,dflt:"circle",arrayOk:!0,editType:"style",description:["Sets the marker symbol type.","Adding 100 is equivalent to appending *-open* to a symbol name.","Adding 200 is equivalent to appending *-dot* to a symbol name.","Adding 300 is equivalent to appending *-open-dot*","or *dot-open* to a symbol name."].join(" ")},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0,description:"Sets the marker opacity."},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1,description:["Sets the marker angle in respect to `angleref`."].join(" ")},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1,description:["Sets the reference for marker angle.","With *previous*, angle 0 points along the line from the previous point to this one.","With *up*, angle 0 points toward the top of the screen."].join(" ")},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0,description:["Moves the marker away from the data point in the direction of `angle` (in px).","This can be useful for example if you have another marker at this","location and you want to point an arrowhead marker at it."].join(" ")},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0,description:"Sets the marker size (in px)."},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets a maximum number of points to be drawn on the graph.","*0* corresponds to no limit."].join(" ")},sizeref:{valType:"number",dflt:1,editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the scale factor used to determine the rendered size of","marker points. Use with `sizemin` and `sizemode`."].join(" ")},sizemin:{valType:"number",min:0,dflt:0,editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the minimum size (in px) of the rendered marker points."].join(" ")},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the rule for which the data in `size` is converted","to pixels."].join(" ")},line:p({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0,description:"Sets the width (in px) of the lines bounding the marker points."},dash:p({},l,{arrayOk:!0}),editType:"calc"},o("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc",description:["Sets the type of gradient used to fill the markers"].join(" ")},color:{valType:"color",arrayOk:!0,editType:"calc",description:["Sets the final color of the gradient fill:","the center color for radial, the right for horizontal,","or the bottom for vertical."].join(" ")},editType:"calc"},editType:"calc"},o("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style",description:"Sets the marker opacity of selected points."},color:{valType:"color",editType:"style",description:"Sets the marker color of selected points."},size:{valType:"number",min:0,editType:"style",description:"Sets the marker size of selected points."},editType:"style"},textfont:{color:{valType:"color",editType:"style",description:"Sets the text font color of selected points."},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style",description:"Sets the marker opacity of unselected points, applied only when a selection exists."},color:{valType:"color",editType:"style",description:"Sets the marker color of unselected points, applied only when a selection exists."},size:{valType:"number",min:0,editType:"style",description:"Sets the marker size of unselected points, applied only when a selection exists."},editType:"style"},textfont:{color:{valType:"color",editType:"style",description:"Sets the text font color of unselected points, applied only when a selection exists."},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc",description:["Sets the positions of the `text` elements","with respects to the (x,y) coordinates."].join(" ")},textfont:s({editType:"calc",colorEditType:"style",arrayOk:!0,description:"Sets the text font."}),zorder:{valType:"integer",dflt:0,editType:"plot",description:["Sets the layer on which this trace is displayed, relative to","other SVG traces on the same subplot. SVG traces with higher `zorder`","appear in front of those with lower `zorder`."].join(" ")}}}),Yle=Ee((e,t)=>{var n=Iw(),r=Id().line,a=pp().dash,i=ms().extendFlat,o=Wu().overrideAll,s=Kl().templatedArray,l=oR();t.exports=o(s("selection",{type:{valType:"enumerated",values:["rect","path"],description:["Specifies the selection type to be drawn.","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`) and (`x0`,`y1`).","If *path*, draw a custom SVG path using `path`."].join(" ")},xref:i({},n.xref,{description:["Sets the selection's x coordinate axis.",l.axisRefDescription("x","left","right")].join(" ")}),yref:i({},n.yref,{description:["Sets the selection's x coordinate axis.",l.axisRefDescription("y","bottom","top")].join(" ")}),x0:{valType:"any",description:"Sets the selection's starting x position."},x1:{valType:"any",description:"Sets the selection's end x position."},y0:{valType:"any",description:"Sets the selection's starting y position."},y1:{valType:"any",description:"Sets the selection's end y position."},path:{valType:"string",editType:"arraydraw",description:["For `type` *path* - a valid SVG path similar to `shapes.path` in data coordinates.","Allowed segments are: M, L and Z."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw",description:"Sets the opacity of the selection."},line:{color:r.color,width:i({},r.width,{min:1,dflt:1}),dash:i({},a,{dflt:"dot"})}}),"arraydraw","from-root")}),AWe=Ee((e,t)=>{var n=Fr(),r=es(),a=Pp(),i=Yle(),o=Kz();function s(e,t,a){function s(r,a){return n.coerce(e,t,i,r,a)}var l=s("path"),c="path"!==s("type",l?"path":"rect");c&&delete t.path,s("opacity"),s("line.color"),s("line.width"),s("line.dash");for(var u=["x","y"],d=0;d<2;d++){var p,h,f,m=u[d],g={_fullLayout:a},y=r.coerceRef(e,t,g,m);if((p=r.getFromId(g,y))._selectionIndices.push(t._index),f=o.rangeToShapePosition(p),h=o.shapePositionToRange(p),c){var b=m+"0",v=m+"1",M=e[b],x=e[v];e[b]=h(e[b],!0),e[v]=h(e[v],!0),r.coercePosition(t,g,s,y,b),r.coercePosition(t,g,s,y,v);var z=t[b],_=t[v];void 0!==z&&void 0!==_&&(t[b]=f(z),t[v]=f(_),e[b]=M,e[v]=x)}}c&&n.noneOrAll(e,t,["x0","x1","y0","y1"])}t.exports=function(e,t){a(e,t,{name:"selections",handleItemDefaults:s});for(var n=t.selections,r=0;r<n.length;r++){var i=n[r];i&&void 0===i.path&&(void 0===i.x0||void 0===i.x1||void 0===i.y0||void 0===i.y1)&&(t.selections[r]=null)}}}),OWe=Ee((e,t)=>{t.exports=function(e,t,n){n("newselection.mode"),n("newselection.line.width")&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}}),lR=Ee((e,t)=>{var n=vo(),r=Fr(),a=Ld();t.exports=function(e){return function(t,i){var o=t[e];if(Array.isArray(o))for(var s=n.subplotsRegistry.cartesian,l=s.idRegex,c=i._subplots,u=c.xaxis,d=c.yaxis,p=c.cartesian,h=i._has("cartesian"),f=0;f<o.length;f++){var m=o[f];if(r.isPlainObject(m)){var g=a.cleanId(m.xref,"x",!1),y=a.cleanId(m.yref,"y",!1),b=l.x.test(g),v=l.y.test(y);if(b||v){h||r.pushUnique(i._basePlotModules,s);var M=!1;b&&-1===u.indexOf(g)&&(u.push(g),M=!0),v&&-1===d.indexOf(y)&&(d.push(y),M=!0),M&&b&&v&&p.push(g+y)}}}}}}),uf=Ee((e,t)=>{var n=Rle(),r=JNe();t.exports={moduleType:"component",name:"selections",layoutAttributes:Yle(),supplyLayoutDefaults:AWe(),supplyDrawNewSelectionDefaults:OWe(),includeBasePlot:lR()("selections"),draw:n.draw,drawOne:n.drawOne,reselect:r.reselect,prepSelect:r.prepSelect,clearOutline:r.clearOutline,clearSelectionsCache:r.clearSelectionsCache,selectOnClick:r.selectOnClick}}),t1e=Ee((e,t)=>{var n=mo(),r=Fr(),a=r.numberFormat,i=Vh(),o=oV(),s=vo(),l=r.strTranslate,c=q1(),u=ao(),d=vs(),p=_d(),h=es(),f=Ky(),m=p2(),g=Qy(),y=g.selectingOrDrawing,b=g.freeMode,v=lh().FROM_TL,M=ID(),x=jD().redrawReglTraces,z=td(),_=Ld().getFromId,A=uf().prepSelect,O=uf().clearOutline,w=uf().selectOnClick,k=Ole(),T=sh(),S=T.MINDRAG,C=T.MINZOOM,E=!0;function q(e,t,n,a){var i=r.ensureSingle(e.draglayer,t,n,function(t){t.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)});return i.call(f,a),i.node()}function D(e,t,r,a,i,o,s){var l=q(e,"rect",t,r);return n.select(l).call(d.setRect,a,i,o,s),l}function R(e,t){for(var n=0;n<e.length;n++)if(!e[n].fixedrange)return t;return""}function L(e,t,n,r,a){for(var i=0;i<e.length;i++){var o=e[i];if(!o.fixedrange)if(o.rangebreaks){var s="y"===o._id.charAt(0),l=s?1-t:t,c=s?1-n:n;r[o._name+".range[0]"]=o.l2r(o.p2l(l*o._length)),r[o._name+".range[1]"]=o.l2r(o.p2l(c*o._length))}else{var u=o._rl[0],d=o._rl[1]-u;r[o._name+".range[0]"]=o.l2r(u+d*t),r[o._name+".range[1]"]=o.l2r(u+d*n)}}if(a&&a.length){var p=(t+(1-n))/2;L(a,p,1-p,r,[])}}function I(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(!r.fixedrange){if(r.rangebreaks){var a=r._length,i=(r.p2l(0+t)-r.p2l(0)+(r.p2l(a+t)-r.p2l(a)))/2;r.range=[r.l2r(r._rl[0]-i),r.l2r(r._rl[1]-i)]}else r.range=[r.l2r(r._rl[0]-t/r._m),r.l2r(r._rl[1]-t/r._m)];r.limitRange&&r.limitRange()}}}function W(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function N(e,t,n,r,a){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",l(n,r)).attr("d",a+"Z")}function P(e,t,n){return e.append("path").attr("class","zoombox-corners").style({fill:u.background,stroke:u.defaultLine,"stroke-width":1,opacity:0}).attr("transform",l(t,n)).attr("d","M0,0Z")}function B(e,t,n,r,a,i){e.attr("d",r+"M"+n.l+","+n.t+"v"+n.h+"h"+n.w+"v-"+n.h+"h-"+n.w+"Z"),F(e,t,a,i)}function F(e,t,n,r){n||(e.transition().style("fill",r>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function j(e){n.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function U(e){E&&e.data&&e._context.showTips&&(r.notifier(r._(e,"Double-click to zoom back out"),"long",e),E=!1)}function V(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,C)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function H(e,t,n,a,i){for(var o,s,l,c,u=!1,d={},p={},h=(i||{}).xaHash,f=(i||{}).yaHash,m=0;m<t.length;m++){var g=t[m];for(o in n)if(g[o]){for(l in g)(!i||!h[l]&&!f[l])&&!("x"===l.charAt(0)?n:a)[l]&&(d[l]=o);for(s in a)(!i||!h[s]&&!f[s])&&g[s]&&(u=!0)}for(s in a)if(g[s])for(c in g)(!i||!h[c]&&!f[c])&&!("x"===c.charAt(0)?n:a)[c]&&(p[c]=s)}u&&(r.extendFlat(d,p),p={});var y={},b=[];for(l in d){var v=_(e,l);b.push(v),y[v._id]=v}var M={},x=[];for(c in p){var z=_(e,c);x.push(z),M[z._id]=z}return{xaHash:y,yaHash:M,xaxes:b,yaxes:x,xLinks:d,yLinks:p,isSubplotConstrained:u}}function X(e,t){if(o){var n=void 0!==e.onwheel?"wheel":"mousewheel";e._onwheel&&e.removeEventListener(n,e._onwheel),e._onwheel=t,e.addEventListener(n,t,{passive:!1})}else void 0!==e.onwheel?e.onwheel=t:void 0!==e.onmousewheel?e.onmousewheel=t:e.isAddedWheelEvent||(e.isAddedWheelEvent=!0,e.addEventListener("wheel",t,{passive:!1}))}function G(e){var t=[];for(var n in e)t.push(e[n]);return t}t.exports={makeDragBox:function(e,t,o,l,u,f,g,E){var q,F,Y,Z,$,J,Q,K,ee,te,ne,re,ae,ie,oe,se,le,ce,ue,de,pe,he,fe,me=e._fullLayout._zoomlayer,ge=g+E==="nsew",ye=1===(g+E).length;function be(){if(q=t.xaxis,F=t.yaxis,ee=q._length,te=F._length,Q=q._offset,K=F._offset,(Y={})[q._id]=q,(Z={})[F._id]=F,g&&E)for(var n=t.overlays,r=0;r<n.length;r++){var a=n[r].xaxis;Y[a._id]=a;var i=n[r].yaxis;Z[i._id]=i}$=G(Y),J=G(Z),ae=R($,E),ie=R(J,g),oe=!ie&&!ae,re=H(e,e._fullLayout._axisMatchGroups,Y,Z);var o=(ne=H(e,e._fullLayout._axisConstraintGroups,Y,Z,re)).isSubplotConstrained||re.isSubplotConstrained;se=E||o,le=g||o;var s=e._fullLayout;ce=s._has("scattergl"),ue=s._has("splom"),de=s._has("svg")}o+=t.yaxis._shift,be();var ve=function(e,t,n){return e?"nsew"===e?n?"":"pan"===t?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}(ie+ae,e._fullLayout.dragmode,ge),Me=D(t,g+E+"drag",ve,o,l,u,f);if(oe&&!ge)return Me.onmousedown=null,Me.style.pointerEvents="none",Me;var xe,ze,_e,Ae,Oe,we,ke,Te,Se,Ce,Ee={element:Me,gd:e,plotinfo:t};function qe(){Ee.plotinfo.selection=!1,O(e)}function De(r,i){var o=Ee.gd;if(o._fullLayout._activeShapeIndex>=0)o._fullLayout._deactivateShape(o);else{var l=o._fullLayout.clickmode;if(j(o),2===r&&!ye&&function(){if(!e._transitioningWithDuration){var t=e._context.doubleClick,n=[];ae&&(n=n.concat($)),ie&&(n=n.concat(J)),re.xaxes&&(n=n.concat(re.xaxes)),re.yaxes&&(n=n.concat(re.yaxes));var r,a,i={};if("reset+autosize"===t)for(t="autosize",a=0;a<n.length;a++){var o=(r=n[a])._rangeInitial0,l=r._rangeInitial1,c=void 0!==o||void 0!==l;if(c&&(void 0!==o&&o!==r.range[0]||void 0!==l&&l!==r.range[1])||!c&&!0!==r.autorange){t="reset";break}}if("autosize"===t)for(a=0;a<n.length;a++)(r=n[a]).fixedrange||(i[r._name+".autorange"]=!0);else if("reset"===t)for((ae||ne.isSubplotConstrained)&&(n=n.concat(ne.xaxes)),ie&&!ne.isSubplotConstrained&&(n=n.concat(ne.yaxes)),ne.isSubplotConstrained&&(ae?ie||(n=n.concat(J)):n=n.concat($)),a=0;a<n.length;a++)if(!(r=n[a]).fixedrange){var u=r._name,d=r._autorangeInitial;void 0===r._rangeInitial0&&void 0===r._rangeInitial1?i[u+".autorange"]=!0:void 0===r._rangeInitial0?(i[u+".autorange"]=d,i[u+".range"]=[null,r._rangeInitial1]):void 0===r._rangeInitial1?(i[u+".range"]=[r._rangeInitial0,null],i[u+".autorange"]=d):i[u+".range"]=[r._rangeInitial0,r._rangeInitial1]}e.emit("plotly_doubleclick",null),s.call("_guiRelayout",e,i)}}(),ge)l.indexOf("select")>-1&&w(i,o,$,J,t.id,Ee),l.indexOf("event")>-1&&p.click(o,i,t.id);else if(1===r&&ye){var u=g?F:q,d="s"===g||"w"===E?0:1,h=u._name+".range["+d+"]",f=function(e,t){var n,r=e.range[t],i=Math.abs(r-e.range[1-t]);return"date"===e.type?r:"log"===e.type?(n=Math.ceil(Math.max(0,-Math.log(i)/Math.LN10))+3,a("."+n+"g")(Math.pow(10,r))):(n=Math.floor(Math.log(Math.abs(r))/Math.LN10)-Math.floor(Math.log(i)/Math.LN10)+4,a("."+String(n)+"g")(r))}(u,d),m="left",y="middle";if(u.fixedrange)return;g?(y="n"===g?"top":"bottom","right"===u.side&&(m="right")):"e"===E&&(m="right"),o._context.showAxisRangeEntryBoxes&&n.select(Me).call(c.makeEditable,{gd:o,immediate:!0,background:o._fullLayout.paper_bgcolor,text:String(f),fill:u.tickfont?u.tickfont.color:"#444",horizontalAlign:m,verticalAlign:y}).on("edit",function(e){var t=u.d2r(e);void 0!==t&&s.call("_guiRelayout",o,h,t)})}}}function Re(t,n){if(e._transitioningWithDuration)return!1;var r=Math.max(0,Math.min(ee,he*t+xe)),a=Math.max(0,Math.min(te,fe*n+ze)),i=Math.abs(r-xe),o=Math.abs(a-ze);function s(){ke="",_e.r=_e.l,_e.t=_e.b,Se.attr("d","M0,0Z")}if(_e.l=Math.min(xe,r),_e.r=Math.max(xe,r),_e.t=Math.min(ze,a),_e.b=Math.max(ze,a),ne.isSubplotConstrained)i>C||o>C?(ke="xy",i/ee>o/te?(o=i*te/ee,ze>a?_e.t=ze-o:_e.b=ze+o):(i=o*ee/te,xe>r?_e.l=xe-i:_e.r=xe+i),Se.attr("d",V(_e))):s();else if(re.isSubplotConstrained)if(i>C||o>C){ke="xy";var l=Math.min(_e.l/ee,(te-_e.b)/te),c=Math.max(_e.r/ee,(te-_e.t)/te);_e.l=l*ee,_e.r=c*ee,_e.b=(1-l)*te,_e.t=(1-c)*te,Se.attr("d",V(_e))}else s();else!ie||o<Math.min(Math.max(.6*i,S),C)?i<S||!ae?s():(_e.t=0,_e.b=te,ke="x",Se.attr("d",function(e,t){return"M"+(e.l-.5)+","+(t-C-.5)+"h-3v"+(2*C+1)+"h3ZM"+(e.r+.5)+","+(t-C-.5)+"h3v"+(2*C+1)+"h-3Z"}(_e,ze))):!ae||i<Math.min(.6*o,C)?(_e.l=0,_e.r=ee,ke="y",Se.attr("d",function(e,t){return"M"+(t-C-.5)+","+(e.t-.5)+"v-3h"+(2*C+1)+"v3ZM"+(t-C-.5)+","+(e.b+.5)+"v3h"+(2*C+1)+"v-3Z"}(_e,xe))):(ke="xy",Se.attr("d",V(_e)));_e.w=_e.r-_e.l,_e.h=_e.b-_e.t,ke&&(Ce=!0),e._dragged=Ce,B(Te,Se,_e,Oe,we,Ae),Le(),e.emit("plotly_relayouting",pe),we=!0}function Le(){pe={},("xy"===ke||"x"===ke)&&(L($,_e.l/ee,_e.r/ee,pe,ne.xaxes),je("x",pe)),("xy"===ke||"y"===ke)&&(L(J,(te-_e.b)/te,(te-_e.t)/te,pe,ne.yaxes),je("y",pe))}function Ie(){Le(),j(e),Ve(),U(e)}Ee.prepFn=function(t,n,a){var o=Ee.dragmode,s=e._fullLayout.dragmode;s!==o&&(Ee.dragmode=s),be(),he=e._fullLayout._invScaleX,fe=e._fullLayout._invScaleY,oe||(ge?t.shiftKey?"pan"===s?s="zoom":y(s)||(s="pan"):t.ctrlKey&&(s="pan"):s="pan"),b(s)?Ee.minDrag=1:Ee.minDrag=void 0,y(s)?(Ee.xaxes=$,Ee.yaxes=J,A(t,n,a,Ee,s)):(Ee.clickFn=De,y(o)&&qe(),oe||("zoom"===s?(Ee.moveFn=Re,Ee.doneFn=Ie,Ee.minDrag=1,function(t,n,a){var o=Me.getBoundingClientRect();xe=n-o.left,ze=a-o.top,e._fullLayout._calcInverseTransform(e);var s=r.apply3DTransform(e._fullLayout._invTransform)(xe,ze);xe=s[0],ze=s[1],_e={l:xe,r:xe,w:0,t:ze,b:ze,h:0},Ae=e._hmpixcount?e._hmlumcount/e._hmpixcount:i(e._fullLayout.plot_bgcolor).getLuminance(),we=!1,ke="xy",Ce=!1,Te=N(me,Ae,Q,K,Oe="M0,0H"+ee+"V"+te+"H0V0"),Se=P(me,Q,K)}(0,n,a)):"pan"===s&&(Ee.moveFn=Fe,Ee.doneFn=Ve))),e._fullLayout._redrag=function(){var t=e._dragdata;if(t&&t.element===Me){var n=e._fullLayout.dragmode;y(n)||(be(),He([0,0,ee,te]),Ee.moveFn(t.dx,t.dy))}}},m.init(Ee);var We=[0,0,ee,te],Ne=null,Pe=T.REDRAWDELAY,Be=t.mainplot?e._fullLayout._plots[t.mainplot]:t;function Fe(t,n){if(t*=he,n*=fe,!e._transitioningWithDuration){if(e._fullLayout._replotting=!0,"ew"===ae||"ns"===ie){var r=ae?-t:0,a=ie?-n:0;if(re.isSubplotConstrained){if(ae&&ie){var i=(t/ee-n/te)/2;r=-(t=i*ee),a=-(n=-i*te)}ie?r=-a*ee/te:a=-r*te/ee}return ae&&(I($,t),je("x")),ie&&(I(J,n),je("y")),He([r,a,ee,te]),Ue(),void e.emit("plotly_relayouting",pe)}var o,s,l="w"===ae==("n"===ie)?1:-1;if(ae&&ie&&(ne.isSubplotConstrained||re.isSubplotConstrained)){var c=(t/ee+l*n/te)/2;t=c*ee,n=l*c*te}if("w"===ae?t=h($,0,t):"e"===ae?t=h($,1,-t):ae||(t=0),"n"===ie?n=h(J,1,n):"s"===ie?n=h(J,0,-n):ie||(n=0),o="w"===ae?t:0,s="n"===ie?n:0,ne.isSubplotConstrained&&!re.isSubplotConstrained||re.isSubplotConstrained&&ae&&ie&&l>0){var u;if(re.isSubplotConstrained||!ae&&1===ie.length){for(u=0;u<$.length;u++)$[u].range=$[u]._r.slice(),k($[u],1-n/te);o=(t=n*ee/te)/2}if(re.isSubplotConstrained||!ie&&1===ae.length){for(u=0;u<J.length;u++)J[u].range=J[u]._r.slice(),k(J[u],1-t/ee);s=(n=t*te/ee)/2}}(!re.isSubplotConstrained||!ie)&&je("x"),(!re.isSubplotConstrained||!ae)&&je("y");var d=ee-t,p=te-n;re.isSubplotConstrained&&!(ae&&ie)&&(ae?(s=o?0:t*te/ee,p=d*te/ee):(o=s?0:n*ee/te,d=p*ee/te)),He([o,s,d,p]),Ue(),e.emit("plotly_relayouting",pe)}function h(e,t,n){for(var r,a,i=1-t,o=0;o<e.length;o++){var s=e[o];if(!s.fixedrange){r=s,a=s._rl[i]+(s._rl[t]-s._rl[i])/W(n/s._length);var l=s.l2r(a);!1!==l&&void 0!==l&&(s.range[t]=l)}}return r._length*(r._rl[t]-a)/(r._rl[t]-r._rl[i])}}function je(e,t){for(var n=re.isSubplotConstrained?{x:J,y:$}[e]:re[e+"axes"],r=re.isSubplotConstrained?{x:$,y:J}[e]:[],a=0;a<n.length;a++){var i=n[a],o=i._id,s=re.xLinks[o]||re.yLinks[o],l=r[0]||Y[s]||Z[s];l&&(t?(t[i._name+".range[0]"]=t[l._name+".range[0]"],t[i._name+".range[1]"]=t[l._name+".range[1]"]):i.range=l.range.slice())}}function Ue(){var n,r=[];function a(e){for(n=0;n<e.length;n++)e[n].fixedrange||r.push(e[n]._id)}function i(e,t){for(n=0;n<e.length;n++){var a=e[n],i=a[t];!a.fixedrange&&"sync"===i.tickmode&&r.push(i._id)}}for(se&&(a($),a(ne.xaxes),a(re.xaxes),i(t.overlays,"xaxis")),le&&(a(J),a(ne.yaxes),a(re.yaxes),i(t.overlays,"yaxis")),pe={},n=0;n<r.length;n++){var o=r[n],s=_(e,o);h.drawOne(e,s,{skipTitle:!0}),pe[s._name+".range[0]"]=s.range[0],pe[s._name+".range[1]"]=s.range[1]}h.redrawComponents(e,r)}function Ve(){He([0,0,ee,te]),r.syncOrAsync([z.previousPromises,function(){e._fullLayout._replotting=!1,s.call("_guiRelayout",e,pe)}],e)}function He(t){var n,a,i,o,l=e._fullLayout,c=l._plots,u=l._subplots.cartesian;if(ue&&s.subplotsRegistry.splom.drag(e),ce)for(n=0;n<u.length;n++)if(i=(a=c[u[n]]).xaxis,o=a.yaxis,a._scene){i.limitRange&&i.limitRange(),o.limitRange&&o.limitRange();var p=r.simpleMap(i.range,i.r2l),h=r.simpleMap(o.range,o.r2l);a._scene.update({range:[p[0],h[0],p[1],h[1]]})}if((ue||ce)&&(M(e),x(e)),de){var f=t[2]/q._length,m=t[3]/F._length;for(n=0;n<u.length;n++){i=(a=c[u[n]]).xaxis,o=a.yaxis;var y,b,v,z,_=(se||re.isSubplotConstrained)&&!i.fixedrange&&Y[i._id],A=(le||re.isSubplotConstrained)&&!o.fixedrange&&Z[o._id];if(_?(y=f,v=E||re.isSubplotConstrained?t[0]:Ye(i,y)):re.xaHash[i._id]?(y=f,v=t[0]*i._length/q._length):re.yaHash[i._id]?(y=m,v="ns"===ie?-t[1]*i._length/F._length:Ye(i,y,{n:"top",s:"bottom"}[ie])):v=Ge(i,y=Xe(i,f,m)),y>1&&(void 0!==i.maxallowed&&se===(i.range[0]<i.range[1]?"e":"w")||void 0!==i.minallowed&&se===(i.range[0]<i.range[1]?"w":"e"))&&(y=1,v=0),A?(b=m,z=g||re.isSubplotConstrained?t[1]:Ye(o,b)):re.yaHash[o._id]?(b=m,z=t[1]*o._length/F._length):re.xaHash[o._id]?(b=f,z="ew"===ae?-t[0]*o._length/q._length:Ye(o,b,{e:"right",w:"left"}[ae])):z=Ge(o,b=Xe(o,f,m)),b>1&&(void 0!==o.maxallowed&&le===(o.range[0]<o.range[1]?"n":"s")||void 0!==o.minallowed&&le===(o.range[0]<o.range[1]?"s":"n"))&&(b=1,z=0),y||b){y||(y=1),b||(b=1);var O=i._offset-v/y,w=o._offset-z/b;a.clipRect.call(d.setTranslate,v,z).call(d.setScale,y,b),a.plot.call(d.setTranslate,O,w).call(d.setScale,1/y,1/b),(y!==a.xScaleFactor||b!==a.yScaleFactor)&&(d.setPointGroupScale(a.zoomScalePts,y,b),d.setTextPointsScale(a.zoomScaleTxt,y,b)),d.hideOutsideRangePoints(a.clipOnAxisFalseTraces,a),a.xScaleFactor=y,a.yScaleFactor=b}}}}function Xe(e,t,n){return e.fixedrange?0:se&&ne.xaHash[e._id]?t:le&&(ne.isSubplotConstrained?ne.xaHash:ne.yaHash)[e._id]?n:0}function Ge(e,t){return t?(e.range=e._r.slice(),k(e,t),Ye(e,t)):0}function Ye(e,t,n){return e._length*(1-t)*v[n||e.constraintoward||"middle"]}return g.length*E.length!==1&&X(Me,function(t){if(e._context._scrollZoom.cartesian||e._fullLayout._enablescrollzoom){if(qe(),e._transitioningWithDuration)return t.preventDefault(),void t.stopPropagation();be(),clearTimeout(Ne);var n=-t.deltaY;if(isFinite(n)||(n=t.wheelDelta/10),isFinite(n)){var a,i=Math.exp(-Math.min(Math.max(n,-20),20)/200),o=Be.draglayer.select(".nsewdrag").node().getBoundingClientRect(),s=(t.clientX-o.left)/o.width,l=(o.bottom-t.clientY)/o.height;if(se){for(E||(s=.5),a=0;a<$.length;a++)c($[a],s,i);je("x"),We[2]*=i,We[0]+=We[2]*s*(1/i-1)}if(le){for(g||(l=.5),a=0;a<J.length;a++)c(J[a],l,i);je("y"),We[3]*=i,We[1]+=We[3]*(1-l)*(1/i-1)}He(We),Ue(),e.emit("plotly_relayouting",pe),Ne=setTimeout(function(){e._fullLayout&&(We=[0,0,ee,te],Ve())},Pe),t.preventDefault()}else r.log("Did not find wheel motion attributes: ",t)}function c(e,t,n){if(!e.fixedrange){var a=r.simpleMap(e.range,e.r2l),i=a[0]+(a[1]-a[0])*t;e.range=a.map(function(t){return e.l2r(i+(t-i)*n)})}}}),Me},makeDragger:q,makeRectDragger:D,makeZoombox:N,makeCorners:P,updateZoombox:B,xyCorners:V,transitionZoombox:F,removeZoombox:j,showDoubleClickNotifier:U,attachWheelEventHandler:X}}),r1e=Ee(e=>{var t=mo(),n=_d(),r=p2(),a=Ky(),i=t1e().makeDragBox,o=sh().DRAGGERSIZE;e.initInteractions=function(a){var s=a._fullLayout;if(a._context.staticPlot)t.select(a).selectAll(".drag").remove();else if(s._has("cartesian")||s._has("splom")){Object.keys(s._plots||{}).sort(function(e,t){if((s._plots[e].mainplot&&!0)===(s._plots[t].mainplot&&!0)){var n=e.split("y"),r=t.split("y");return n[0]===r[0]?Number(n[1]||1)-Number(r[1]||1):Number(n[0]||1)-Number(r[0]||1)}return s._plots[e].mainplot?1:-1}).forEach(function(e){var t=s._plots[e],l=t.xaxis,c=t.yaxis;if(!t.mainplot){var u=i(a,t,l._offset,c._offset,l._length,c._length,"ns","ew");u.onmousemove=function(t){a._fullLayout._rehover=function(){a._fullLayout._hoversubplot===e&&a._fullLayout._plots[e]&&n.hover(a,t,e)},n.hover(a,t,e),a._fullLayout._lasthover=u,a._fullLayout._hoversubplot=e},u.onmouseout=function(e){a._dragging||(a._fullLayout._hoversubplot=null,r.unhover(a,e))},a._context.showAxisDragHandles&&(i(a,t,l._offset-o,c._offset-o,o,o,"n","w"),i(a,t,l._offset+l._length,c._offset-o,o,o,"n","e"),i(a,t,l._offset-o,c._offset+c._length,o,o,"s","w"),i(a,t,l._offset+l._length,c._offset+c._length,o,o,"s","e"))}if(a._context.showAxisDragHandles){if(e===l._mainSubplot){var d=l._mainLinePosition;"top"===l.side&&(d-=o),i(a,t,l._offset+.1*l._length,d,.8*l._length,o,"","ew"),i(a,t,l._offset,d,.1*l._length,o,"","w"),i(a,t,l._offset+.9*l._length,d,.1*l._length,o,"","e")}if(e===c._mainSubplot){var p=c._mainLinePosition;"right"!==c.side&&(p-=o),i(a,t,p,c._offset+.1*c._length,o,.8*c._length,"ns",""),i(a,t,p,c._offset+.9*c._length,o,.1*c._length,"s",""),i(a,t,p,c._offset,o,.1*c._length,"n","")}}});var l=s._hoverlayer.node();l.onmousemove=function(e){e.target=a._fullLayout._lasthover,n.hover(a,e,s._hoversubplot)},l.onclick=function(e){e.target=a._fullLayout._lasthover,n.click(a,e)},l.onmousedown=function(e){a._fullLayout._lasthover.onmousedown(e)},e.updateFx(a)}},e.updateFx=function(e){var t=e._fullLayout,n="pan"===t.dragmode?"move":"crosshair";a(t._draggers,n)}}),eFe=Ee((e,t)=>{var n=vo();t.exports=function(e){for(var t,r,a=n.layoutArrayContainers,i=n.layoutArrayRegexes,o=e.split("[")[0],s=0;s<i.length;s++)if((r=e.match(i[s]))&&0===r.index){t=r[0];break}if(t||(t=a[a.indexOf(o)]),!t)return!1;var l=e.slice(t.length);return l?!!(r=l.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&&{array:t,index:Number(r[1]),property:r[3]||""}:{array:t,index:"",property:""}}}),rFe=Ee(e=>{var t=mx(),n=KU(),r=Tz(),a=lH().sorterAsc,i=vo();e.containerArrayMatch=eFe();var o=e.isAddVal=function(e){return"add"===e||t(e)},s=e.isRemoveVal=function(e){return null===e||"remove"===e};e.applyContainerArrayChanges=function(e,t,l,c,u){var d=t.astr,p=i.getComponentMethod(d,"supplyLayoutDefaults"),h=i.getComponentMethod(d,"draw"),f=i.getComponentMethod(d,"drawOne"),m=c.replot||c.recalc||p===n||h===n,g=e.layout,y=e._fullLayout;if(l[""]){Object.keys(l).length>1&&r.warn("Full array edits are incompatible with other edits",d);var b=l[""][""];if(s(b))t.set(null);else{if(!Array.isArray(b))return r.warn("Unrecognized full array edit value",d,b),!0;t.set(b)}return!m&&(p(g,y),h(e),!0)}var v,M,x,z,_,A,O,w,k=Object.keys(l).map(Number).sort(a),T=t.get(),S=T||[],C=u(y,d).get(),E=[],q=-1,D=S.length;for(v=0;v<k.length;v++)if(z=l[x=k[v]],_=Object.keys(z),A=z[""],O=o(A),x<0||x>S.length-(O?0:1))r.warn("index out of range",d,x);else if(void 0!==A)_.length>1&&r.warn("Insertion & removal are incompatible with edits to the same index.",d,x),s(A)?E.push(x):O?("add"===A&&(A={}),S.splice(x,0,A),C&&C.splice(x,0,{})):r.warn("Unrecognized full object edit value",d,x,A),-1===q&&(q=x);else for(M=0;M<_.length;M++)w=d+"["+x+"].",u(S[x],_[M],w).set(z[_[M]]);for(v=E.length-1;v>=0;v--)S.splice(E[v],1),C&&C.splice(E[v],1);if(S.length?T||t.set(S):t.set(null),m)return!1;if(p(g,y),f!==n){var R;if(-1===q)R=k;else{for(D=Math.max(S.length,D),R=[],v=0;v<k.length&&!((x=k[v])>=q);v++)R.push(x);for(v=q;v<D;v++)R.push(v)}for(v=0;v<R.length;v++)f(e,R[v])}else h(e);return!0}}),uFe=Ee(e=>{var t=xs(),n=vo(),r=Fr(),a=td(),i=Ld(),o=ao(),s=i.cleanId,l=i.getFromTrace,c=n.traceIs,u=["x","y","z"];function d(e,t,n=!1){var r=e[t],a=t.charAt(0);n&&Array.isArray(r)||r&&"paper"!==r&&(e[t]=s(r,a,!0))}function p(e){if(!r.isPlainObject(e))return!1;var t=e.name;return delete e.name,delete e.showlegend,("string"==typeof t||"number"==typeof t)&&String(t)}function h(e,t,n,r){if(n&&!r)return e;if(r&&!n||!e.trim())return t;if(!t.trim())return e;var a,i=Math.min(e.length,t.length);for(a=0;a<i&&e.charAt(a)===t.charAt(a);a++);return e.slice(0,a).trim()}function f(e){var t="middle",n="center";return"string"==typeof e&&(-1!==e.indexOf("top")?t="top":-1!==e.indexOf("bottom")&&(t="bottom"),-1!==e.indexOf("left")?n="left":-1!==e.indexOf("right")&&(n="right")),t+" "+n}function m(e,t){return t in e&&"object"==typeof e[t]&&0===Object.keys(e[t]).length}e.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&r.log("Clearing previous rejected promises from queue."),e._promises=[]},e.cleanLayout=function(t){var n;t||(t={}),t.xaxis1&&(t.xaxis||(t.xaxis=t.xaxis1),delete t.xaxis1),t.yaxis1&&(t.yaxis||(t.yaxis=t.yaxis1),delete t.yaxis1),t.scene1&&(t.scene||(t.scene=t.scene1),delete t.scene1);var i=(a.subplotsRegistry.cartesian||{}).attrRegex,l=((a.subplotsRegistry.polar||{}).attrRegex,(a.subplotsRegistry.ternary||{}).attrRegex,(a.subplotsRegistry.gl3d||{}).attrRegex,Object.keys(t));for(n=0;n<l.length;n++){var c=l[n];if(i&&i.test(c)){var u=t[c];u.anchor&&"free"!==u.anchor&&(u.anchor=s(u.anchor)),u.overlaying&&(u.overlaying=s(u.overlaying)),u.type||(u.isdate?u.type="date":u.islog?u.type="log":!1===u.isdate&&!1===u.islog&&(u.type="linear")),("withzero"===u.autorange||"tozero"===u.autorange)&&(u.autorange=!0,u.rangemode="tozero"),u.insiderange&&delete u.range,delete u.islog,delete u.isdate,delete u.categories,m(u,"domain")&&delete u.domain}}var p=Array.isArray(t.annotations)?t.annotations.length:0;for(n=0;n<p;n++){var h=t.annotations[n];r.isPlainObject(h)&&(d(h,"xref"),d(h,"yref"))}var f=Array.isArray(t.shapes)?t.shapes.length:0;for(n=0;n<f;n++){var g=t.shapes[n];r.isPlainObject(g)&&(d(g,"xref",!0),d(g,"yref",!0))}var y=Array.isArray(t.images)?t.images.length:0;for(n=0;n<y;n++){var b=t.images[n];r.isPlainObject(b)&&(d(b,"xref"),d(b,"yref"))}var v=t.legend;return v&&(v.x>3?(v.x=1.02,v.xanchor="left"):v.x<-2&&(v.x=-.02,v.xanchor="right"),v.y>3?(v.y=1.02,v.yanchor="bottom"):v.y<-2&&(v.y=-.02,v.yanchor="top")),"rotate"===t.dragmode&&(t.dragmode="orbit"),o.clean(t),t.template&&t.template.layout&&e.cleanLayout(t.template.layout),t},e.cleanData=function(t){for(var i=0;i<t.length;i++){var l,u=t[i];if("histogramy"===u.type&&"xbins"in u&&!("ybins"in u)&&(u.ybins=u.xbins,delete u.xbins),"histogramy"===u.type&&e.swapXYData(u),("histogramx"===u.type||"histogramy"===u.type)&&(u.type="histogram"),"scl"in u&&!("colorscale"in u)&&(u.colorscale=u.scl,delete u.scl),"reversescl"in u&&!("reversescale"in u)&&(u.reversescale=u.reversescl,delete u.reversescl),u.xaxis&&(u.xaxis=s(u.xaxis,"x")),u.yaxis&&(u.yaxis=s(u.yaxis,"y")),c(u,"gl3d")&&u.scene&&(u.scene=a.subplotsRegistry.gl3d.cleanId(u.scene)),!c(u,"pie-like")&&!c(u,"bar-like"))if(Array.isArray(u.textposition))for(l=0;l<u.textposition.length;l++)u.textposition[l]=f(u.textposition[l]);else u.textposition&&(u.textposition=f(u.textposition));var d=n.getModule(u);if(d&&d.colorbar){var g=d.colorbar.container,y=g?u[g]:u;y&&y.colorscale&&("YIGnBu"===y.colorscale&&(y.colorscale="YlGnBu"),"YIOrRd"===y.colorscale&&(y.colorscale="YlOrRd"))}if("surface"===u.type&&r.isPlainObject(u.contours)){var b=["x","y","z"];for(l=0;l<b.length;l++){var v=u.contours[b[l]];r.isPlainObject(v)&&(v.highlightColor&&(v.highlightcolor=v.highlightColor,delete v.highlightColor),v.highlightWidth&&(v.highlightwidth=v.highlightWidth,delete v.highlightWidth))}}if("candlestick"===u.type||"ohlc"===u.type){var M=!1!==(u.increasing||{}).showlegend,x=!1!==(u.decreasing||{}).showlegend,z=p(u.increasing),_=p(u.decreasing);if(!1!==z&&!1!==_){var A=h(z,_,M,x);A&&(u.name=A)}else(z||_)&&!u.name&&(u.name=z||_)}m(u,"line")&&delete u.line,"marker"in u&&(m(u.marker,"line")&&delete u.marker.line,m(u,"marker")&&delete u.marker),o.clean(u),u.autobinx&&(delete u.autobinx,delete u.xbins),u.autobiny&&(delete u.autobiny,delete u.ybins)}},e.swapXYData=function(e){var t;if(r.swapAttrs(e,["?","?0","d?","?bins","nbins?","autobin?","?src","error_?"]),Array.isArray(e.z)&&Array.isArray(e.z[0])&&(e.transpose?delete e.transpose:e.transpose=!0),e.error_x&&e.error_y){var n=e.error_y,a="copy_ystyle"in n?n.copy_ystyle:!(n.color||n.thickness||n.width);r.swapAttrs(e,["error_?.copy_ystyle"]),a&&r.swapAttrs(e,["error_?.color","error_?.thickness","error_?.width"])}if("string"==typeof e.hoverinfo){var i=e.hoverinfo.split("+");for(t=0;t<i.length;t++)"x"===i[t]?i[t]="y":"y"===i[t]&&(i[t]="x");e.hoverinfo=i.join("+")}},e.coerceTraceIndices=function(e,n){if(t(n))return[n];if(!Array.isArray(n)||!n.length)return e.data.map(function(e,t){return t});if(Array.isArray(n)){for(var a=[],i=0;i<n.length;i++)r.isIndex(n[i],e.data.length)?a.push(n[i]):r.warn("trace index (",n[i],") is not a number or is out of bounds");return a}return n},e.manageArrayContainers=function(e,n,a){var i=e.obj,o=e.parts,s=o.length,l=o[s-1],c=t(l);if(c&&null===n){var u=o.slice(0,s-1).join(".");r.nestedProperty(i,u).get().splice(l,1)}else c&&void 0===e.get()&&void 0===e.get()&&(a[e.astr]=null),e.set(n)};var g=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function y(e){var t=e.search(g);if(t>0)return e.slice(0,t)}e.hasParent=function(e,t){for(var n=y(t);n;){if(n in e)return!0;n=y(n)}return!1},e.clearAxisTypes=function(e,t,n){for(var a=0;a<t.length;a++)for(var i=e._fullData[a],o=0;o<3;o++){var s=l(e,i,u[o]);if(s&&"log"!==s.type){var c=s._name,d=s._id.slice(1);if("scene"===d.slice(0,5)){if(void 0!==n[d])continue;c=d+"."+c}var p=c+".type";void 0===n[c]&&void 0===n[p]&&r.nestedProperty(e.layout,p).set(null)}}};var b=(e,t)=>{let n=(...e)=>e.every(e=>r.isPlainObject(e))||e.every(e=>Array.isArray(e));if([e,t].every(e=>Array.isArray(e))){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!(a===i||n(a,i)&&b(a,i)))return!1}return!0}if([e,t].every(e=>r.isPlainObject(e))){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e){if(r.startsWith("_"))continue;let a=e[r],i=t[r];if(!(a===i||n(a,i)&&b(a,i)))return!1}return!0}return!1};e.collectionsAreEqual=b}),pj=Ee(e=>{var t=mo(),n=xs(),r=gse(),a=Fr(),i=a.nestedProperty,o=$8(),s=UEe(),l=vo(),c=Q8(),u=td(),d=es(),p=R0e(),h=vp(),f=vs(),m=ao(),g=r1e().initInteractions,y=Dv(),b=uf().clearOutline,v=iw().dfltConfig,M=rFe(),x=uFe(),z=jD(),_=Wu(),A=sh().AX_NAME_PATTERN,O=0;function w(e){var t=e._fullLayout;t._redrawFromAutoMarginCount?t._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function k(e,t){try{e._fullLayout._paper.style("background",t)}catch(e){a.error(e)}}function T(e,t){k(e,m.combine(t,"white"))}function S(e,n){if(!e._context){e._context=a.extendDeep({},v);var i=t.select("base");e._context._baseUrl=i.size()&&i.attr("href")?window.location.href.split("#")[0]:""}var o,s,l,c=e._context;if(n){for(s=Object.keys(n),o=0;o<s.length;o++)"editable"!==(l=s[o])&&"edits"!==l&&l in c&&("setBackground"===l&&"opaque"===n[l]?c[l]=T:c[l]=n[l]);var u=n.editable;if(void 0!==u)for(c.editable=u,s=Object.keys(c.edits),o=0;o<s.length;o++)c.edits[s[o]]=u;if(n.edits)for(s=Object.keys(n.edits),o=0;o<s.length;o++)(l=s[o])in c.edits&&(c.edits[l]=n.edits[l]);c._exportedPlot=n._exportedPlot}c.staticPlot&&(c.editable=!1,c.edits={},c.autosizable=!1,c.scrollZoom=!1,c.doubleClick=!1,c.showTips=!1,c.showLink=!1,c.displayModeBar=!1),"hover"===c.displayModeBar&&!r&&(c.displayModeBar=!0),("transparent"===c.setBackground||"function"!=typeof c.setBackground)&&(c.setBackground=k),c._hasZeroHeight=c._hasZeroHeight||0===e.clientHeight,c._hasZeroWidth=c._hasZeroWidth||0===e.clientWidth;var d=c.scrollZoom,p=c._scrollZoom={};if(!0===d)p.cartesian=1,p.gl3d=1,p.geo=1,p.mapbox=1,p.map=1;else if("string"==typeof d){var h=d.split("+");for(o=0;o<h.length;o++)p[h[o]]=1}else!1!==d&&(p.gl3d=1,p.geo=1,p.mapbox=1,p.map=1)}function C(e,t){var n,r,a=t+1,i=[];for(n=0;n<e.length;n++)(r=e[n])<0?i.push(a+r):i.push(r);return i}function E(e,t,n){var r,a;for(r=0;r<t.length;r++){if((a=t[r])!==parseInt(a,10))throw new Error("all values in "+n+" must be integers");if(a>=e.data.length||a<-e.data.length)throw new Error(n+" must be valid indices for gd.data.");if(t.indexOf(a,r+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+n+" must be unique.")}}function q(e,t,n){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),E(e,t,"currentIndices"),typeof n<"u"&&!Array.isArray(n)&&(n=[n]),typeof n<"u"&&E(e,n,"newIndices"),typeof n<"u"&&t.length!==n.length)throw new Error("current and new indices must be of equal length.")}function D(e,t,r,o,s){!function(e,t,n,r){var i=a.isPlainObject(r);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!a.isPlainObject(t))throw new Error("update must be a key:value object");if(typeof n>"u")throw new Error("indices must be an integer or array of integers");for(var o in E(e,n,"indices"),t){if(!Array.isArray(t[o])||t[o].length!==n.length)throw new Error("attribute "+o+" must be an array of length equal to indices array length");if(i&&(!(o in r)||!Array.isArray(r[o])||r[o].length!==t[o].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object")}}(e,t,r,o);for(var l=function(e,t,r,o){var s,l,c,u,d,p=a.isPlainObject(o),h=[];for(var f in Array.isArray(r)||(r=[r]),r=C(r,e.data.length-1),t)for(var m=0;m<r.length;m++){if(s=e.data[r[m]],l=(c=i(s,f)).get(),u=t[f][m],!a.isArrayOrTypedArray(u))throw new Error("attribute: "+f+" index: "+m+" must be an array");if(!a.isArrayOrTypedArray(l))throw new Error("cannot extend missing or non-array attribute: "+f);if(l.constructor!==u.constructor)throw new Error("cannot extend array with an array of a different type: "+f);d=p?o[f][m]:o,n(d)||(d=-1),h.push({prop:c,target:l,insert:u,maxp:Math.floor(d)})}return h}(e,t,r,o),c={},u={},d=0;d<l.length;d++){var p=l[d].prop,h=l[d].maxp,f=s(l[d].target,l[d].insert,h);p.set(f[0]),Array.isArray(c[p.astr])||(c[p.astr]=[]),c[p.astr].push(f[1]),Array.isArray(u[p.astr])||(u[p.astr]=[]),u[p.astr].push(l[d].target.length)}return{update:c,maxPoints:u}}function R(e,t){var n=new e.constructor(e.length+t.length);return n.set(e),n.set(t,e.length),n}function L(t,n,r,i){t=a.getGraphDiv(t),x.clearPromiseQueue(t);var o={};if("string"==typeof n)o[n]=r;else{if(!a.isPlainObject(n))return a.warn("Restyle fail.",n,r,i),Promise.reject();o=a.extendFlat({},n),void 0===i&&(i=r)}Object.keys(o).length&&(t.changed=!0);var l=x.coerceTraceIndices(t,i),c=P(t,o,l),d=c.flags;d.calc&&(t.calcdata=void 0),d.clearAxisTypes&&x.clearAxisTypes(t,l,{});var p=[];d.fullReplot?p.push(e._doPlot):(p.push(u.previousPromises),u.supplyDefaults(t),d.markerSize&&(u.doCalcdata(t),j(p)),d.style&&p.push(z.doTraceStyle),d.colorbars&&p.push(z.doColorBars),p.push(w)),p.push(u.rehover,u.redrag,u.reselect),s.add(t,L,[t,c.undoit,c.traces],L,[t,c.redoit,c.traces]);var h=a.syncOrAsync(p,t);return(!h||!h.then)&&(h=Promise.resolve()),h.then(function(){return t.emit("plotly_restyle",c.eventData),t})}function I(e){return void 0===e?null:e}function W(e,t){return t?function(t,n,r){var a=i(t,n),o=a.set;return a.set=function(t){N((r||"")+n,a.get(),t,e),o(t)},a}:i}function N(e,t,n,r){if(Array.isArray(t)||Array.isArray(n))for(var i=Array.isArray(t)?t:[],o=Array.isArray(n)?n:[],s=Math.max(i.length,o.length),l=0;l<s;l++)N(e+"["+l+"]",i[l],o[l],r);else if(a.isPlainObject(t)||a.isPlainObject(n)){var c=a.isPlainObject(t)?t:{},u=a.isPlainObject(n)?n:{},d=a.extendFlat({},c,u);for(var p in d)N(e+"."+p,c[p],u[p],r)}else void 0===r[e]&&(r[e]=I(t))}function P(e,t,n){var r,o,s=e._fullLayout,p=e._fullData,h=e.data,f=s._guiEditing,m=W(s._preGUI,f),g=a.extendDeepAll({},t),y=_.traceFlags(),b={},v={};function M(){return n.map(function(){})}function z(e){var t=d.id2name(e);-1===o.indexOf(t)&&o.push(t)}function A(e){return"LAYOUT"+e+".autorange"}function O(e){return"LAYOUT"+e+".range"}function w(e){for(var t=e;t<p.length;t++)if(p[t]._input===h[e])return p[t]}function k(r,a,i){if(Array.isArray(r))r.forEach(function(e){k(e,a,i)});else if(!(r in t)&&!x.hasParent(t,r)){var o;if("LAYOUT"===r.slice(0,6))o=m(e.layout,r.replace("LAYOUT",""));else{var l=n[i];o=W(s._tracePreGUI[w(l)._fullInput.uid],f)(h[l],r)}r in v||(v[r]=M()),void 0===v[r][i]&&(v[r][i]=I(o.get())),void 0!==a&&o.set(a)}}function T(e){return function(t){return p[t][e]}}function S(e){return function(t,r){return!1===t?p[n[r]][e]:null}}for(var C in t){if(x.hasParent(t,C))throw new Error("cannot set "+C+" and a parent attribute simultaneously");var E,q,D,R,L,N,P=t[C];if(("autobinx"===C||"autobiny"===C)&&(C=C.charAt(C.length-1)+"bins",P=Array.isArray(P)?P.map(S(C)):!1===P?n.map(T(C)):null),b[C]=P,"LAYOUT"!==C.slice(0,6)){for(v[C]=M(),r=0;r<n.length;r++){if(E=h[n[r]],q=w(n[r]),R=(D=W(s._tracePreGUI[q._fullInput.uid],f)(E,C)).get(),void 0!==(L=Array.isArray(P)?P[r%P.length]:P)){var B=D.parts[D.parts.length-1],F=C.slice(0,C.length-B.length-1),j=F?F+".":"",U=F?i(q,F).get():q;if((N=c.getTraceValObject(q,D.parts))&&N.impliedEdits&&null!==L)for(var V in N.impliedEdits)k(a.relativeAttr(C,V),N.impliedEdits[V],r);else if("thicknessmode"!==B&&"lenmode"!==B||R===L||"fraction"!==L&&"pixels"!==L||!U){if("type"===C&&("pie"===L!=("pie"===R)||"funnelarea"===L!=("funnelarea"===R))){var H="x",X="y";("bar"===L||"bar"===R)&&"h"===E.orientation&&(H="y",X="x"),a.swapAttrs(E,["?","?src"],"labels",H),a.swapAttrs(E,["d?","?0"],"label",H),a.swapAttrs(E,["?","?src"],"values",X),"pie"===R||"funnelarea"===R?(i(E,"marker.color").set(i(E,"marker.colors").get()),s._pielayer.selectAll("g.trace").remove()):l.traceIs(E,"cartesian")&&i(E,"marker.colors").set(i(E,"marker.color").get())}}else{var G=s._size,Y=U.orient,Z="top"===Y||"bottom"===Y;if("thicknessmode"===B){var $=Z?G.h:G.w;k(j+"thickness",U.thickness*("fraction"===L?1/$:$),r)}else{var J=Z?G.w:G.h;k(j+"len",U.len*("fraction"===L?1/J:J),r)}}v[C][r]=I(R);if(-1!==["swapxy","swapxyaxes","orientation","orientationaxes"].indexOf(C)){if("orientation"===C){D.set(L);var Q=E.x&&!E.y?"h":"v";if((D.get()||Q)===q.orientation)continue}else"orientationaxes"===C&&(E.orientation={v:"h",h:"v"}[q.orientation]);x.swapXYData(E),y.calc=y.clearAxisTypes=!0}else-1!==u.dataArrayContainers.indexOf(D.parts[0])?(x.manageArrayContainers(D,L,v),y.calc=!0):(N?N.arrayOk&&!l.traceIs(q,"regl")&&(a.isArrayOrTypedArray(L)||a.isArrayOrTypedArray(R))?y.calc=!0:_.update(y,N):y.calc=!0,D.set(L))}}if(-1!==["swapxyaxes","orientationaxes"].indexOf(C)&&d.swap(e,n),"orientationaxes"===C){var K=i(e.layout,"hovermode"),ee=K.get();"x"===ee?K.set("y"):"y"===ee?K.set("x"):"x unified"===ee?K.set("y unified"):"y unified"===ee&&K.set("x unified")}if(-1!==["orientation","type"].indexOf(C)){for(o=[],r=0;r<n.length;r++){var te=h[n[r]];l.traceIs(te,"cartesian")&&(z(te.xaxis||"x"),z(te.yaxis||"y"))}k(o.map(A),!0,0),k(o.map(O),[0,1],0)}}else D=m(e.layout,C.replace("LAYOUT","")),v[C]=[I(D.get())],D.set(Array.isArray(P)?P[0]:P),y.calc=!0}return(y.calc||y.plot)&&(y.fullReplot=!0),{flags:y,undoit:v,redoit:b,traces:n,eventData:a.extendDeepNoArrays([],[g,n])}}function B(e,t,n){e=a.getGraphDiv(e),x.clearPromiseQueue(e);var r={};if("string"==typeof t)r[t]=n;else{if(!a.isPlainObject(t))return a.warn("Relayout fail.",t,n),Promise.reject();r=a.extendFlat({},t)}Object.keys(r).length&&(e.changed=!0);var i=X(e,r),o=i.flags;o.calc&&(e.calcdata=void 0);var l=[u.previousPromises];o.layoutReplot?l.push(z.layoutReplot):Object.keys(r).length&&(F(e,o,i)||u.supplyDefaults(e),o.legend&&l.push(z.doLegend),o.layoutstyle&&l.push(z.layoutStyles),o.axrange&&j(l,i.rangesAltered),o.ticks&&l.push(z.doTicksRelayout),o.modebar&&l.push(z.doModeBar),o.camera&&l.push(z.doCamera),o.colorbars&&l.push(z.doColorBars),l.push(w)),l.push(u.rehover,u.redrag,u.reselect),s.add(e,B,[e,i.undoit],B,[e,i.redoit]);var c=a.syncOrAsync(l,e);return(!c||!c.then)&&(c=Promise.resolve(e)),c.then(function(){return e.emit("plotly_relayout",i.eventData),e})}function F(e,t,n){var r=e._fullLayout;if(!t.axrange)return!1;for(var i in t)if("axrange"!==i&&t[i])return!1;var o,s,l=function(e,t){return a.coerce(o,s,h,e,t)},c={};for(var u in n.rangesAltered){var f=d.id2name(u);if(o=e.layout[f],s=r[f],p(o,s,l,c),s._matchGroup)for(var m in s._matchGroup)if(m!==u){var g=r[d.id2name(m)];g.autorange=s.autorange,g.range=s.range.slice(),g._input.range=s.range.slice()}}return!0}function j(e,t){var n=t?function(e){var n=[];for(var r in t){var a=d.getFromId(e,r);if(n.push(r),-1!==(a.ticklabelposition||"").indexOf("inside")&&a._anchorAxis&&n.push(a._anchorAxis._id),a._matchGroup)for(var i in a._matchGroup)t[i]||n.push(i)}return d.draw(e,n,{skipTitle:!0})}:function(e){return d.draw(e,"redraw")};e.push(b,z.doAutoRangeAndConstraints,n,z.drawData,z.finalDraw)}var U=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,V=/^[xyz]axis[0-9]*\.autorange$/,H=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function X(e,t){var n,r,o,s=e.layout,u=e._fullLayout,p=u._guiEditing,h=W(u._preGUI,p),f=Object.keys(t),m=d.list(e),g=a.extendDeepAll({},t),y={};for(f=Object.keys(t),r=0;r<f.length;r++)if(0===f[r].indexOf("allaxes")){for(o=0;o<m.length;o++){var b=m[o]._id.slice(1),v=-1!==b.indexOf("scene")?b+".":"",z=f[r].replace("allaxes",v+m[o]._name);t[z]||(t[z]=t[f[r]])}delete t[f[r]]}var O=_.layoutFlags(),w={},k={};function T(e,n){if(Array.isArray(e))e.forEach(function(e){T(e,n)});else if(!(e in t)&&!x.hasParent(t,e)){var r=h(s,e);e in k||(k[e]=I(r.get())),void 0!==n&&r.set(n)}}var S,C={};function E(e){var t=d.name2id(e.split(".")[0]);return C[t]=1,t}for(var q in t){if(x.hasParent(t,q))throw new Error("cannot set "+q+" and a parent attribute simultaneously");for(var D=h(s,q),R=t[q],L=D.parts.length-1;L>0&&"string"!=typeof D.parts[L];)L--;var N=D.parts[L],P=D.parts[L-1]+"."+N,B=D.parts.slice(0,L).join("."),F=i(e.layout,B).get(),j=i(u,B).get(),X=D.get();if(void 0!==R){w[q]=R,k[q]="reverse"===N?R:I(X);var Y=c.getLayoutValObject(u,D.parts);if(Y&&Y.impliedEdits&&null!==R)for(var Z in Y.impliedEdits)T(a.relativeAttr(q,Z),Y.impliedEdits[Z]);if(-1!==["width","height"].indexOf(q))if(R){T("autosize",null);var $="height"===q?"width":"height";T($,u[$])}else u[q]=e._initialAutoSize[q];else if("autosize"===q)T("width",R?null:u.width),T("height",R?null:u.height);else if(P.match(U))E(P),i(u,B+"._inputRange").set(null);else if(P.match(V)){E(P),i(u,B+"._inputRange").set(null);var J=i(u,B).get();J._inputDomain&&(J._input.domain=J._inputDomain.slice())}else P.match(H)&&i(u,B+"._inputDomain").set(null);if("type"===N){S=F;var Q="linear"===j.type&&"log"===R,K="log"===j.type&&"linear"===R;if(Q||K){if(S&&S.range)if(j.autorange)Q&&(S.range=S.range[1]>S.range[0]?[1,2]:[2,1]);else{var ee=S.range[0],te=S.range[1];Q?(ee<=0&&te<=0&&T(B+".autorange",!0),ee<=0?ee=te/1e6:te<=0&&(te=ee/1e6),T(B+".range[0]",Math.log(ee)/Math.LN10),T(B+".range[1]",Math.log(te)/Math.LN10)):(T(B+".range[0]",Math.pow(10,ee)),T(B+".range[1]",Math.pow(10,te)))}else T(B+".autorange",!0);Array.isArray(u._subplots.polar)&&u._subplots.polar.length&&u[D.parts[0]]&&"radialaxis"===D.parts[1]&&delete u[D.parts[0]]._subplot.viewInitial["radialaxis.range"],l.getComponentMethod("annotations","convertCoords")(e,j,R,T),l.getComponentMethod("images","convertCoords")(e,j,R,T)}else T(B+".autorange",!0),T(B+".range",null);i(u,B+"._inputRange").set(null)}else if(N.match(A)){var ne=i(u,q).get(),re=(R||{}).type;(!re||"-"===re)&&(re="linear"),l.getComponentMethod("annotations","convertCoords")(e,ne,re,T),l.getComponentMethod("images","convertCoords")(e,ne,re,T)}var ae=M.containerArrayMatch(q);if(ae){n=ae.array,r=ae.index;var ie=ae.property,oe=Y||{editType:"calc"};""!==r&&""===ie&&(M.isAddVal(R)?k[q]=null:M.isRemoveVal(R)?k[q]=(i(s,n).get()||[])[r]:a.warn("unrecognized full object value",t)),_.update(O,oe),y[n]||(y[n]={});var se=y[n][r];se||(se=y[n][r]={}),se[ie]=R,delete t[q]}else"reverse"===N?(F.range?F.range.reverse():(T(B+".autorange",!0),F.range=[1,0]),j.autorange?O.calc=!0:O.plot=!0):("dragmode"===q&&(!1===R&&!1!==X||!1!==R&&!1===X)||u._has("scatter-like")&&u._has("regl")&&"dragmode"===q&&("lasso"===R||"select"===R)&&"lasso"!==X&&"select"!==X?O.plot=!0:Y?_.update(O,Y):O.calc=!0,D.set(R))}}for(n in y){M.applyContainerArrayChanges(e,h(s,n),y[n],O,h)||(O.plot=!0)}for(var le in C){var ce=(S=d.getFromId(e,le))&&S._constraintGroup;if(ce)for(var ue in O.calc=!0,ce)C[ue]||(d.getFromId(e,ue)._constraintShrinkable=!0)}(G(e)||t.height||t.width)&&(O.plot=!0);var de=u.shapes;for(r=0;r<de.length;r++)if(de[r].showlegend){O.calc=!0;break}return(O.plot||O.calc)&&(O.layoutReplot=!0),{flags:O,rangesAltered:C,undoit:k,redoit:w,eventData:g}}function G(e){var t=e._fullLayout,n=t.width,r=t.height;return e.layout.autosize&&u.plotAutoSize(e,e.layout,t),t.width!==n||t.height!==r}function Y(t,n,r,i){t=a.getGraphDiv(t),x.clearPromiseQueue(t),a.isPlainObject(n)||(n={}),a.isPlainObject(r)||(r={}),Object.keys(n).length&&(t.changed=!0),Object.keys(r).length&&(t.changed=!0);var o=x.coerceTraceIndices(t,i),l=P(t,a.extendFlat({},n),o),c=l.flags,d=X(t,a.extendFlat({},r)),p=d.flags;(c.calc||p.calc)&&(t.calcdata=void 0),c.clearAxisTypes&&x.clearAxisTypes(t,o,r);var h=[];p.layoutReplot?h.push(z.layoutReplot):c.fullReplot?h.push(e._doPlot):(h.push(u.previousPromises),F(t,p,d)||u.supplyDefaults(t),c.style&&h.push(z.doTraceStyle),(c.colorbars||p.colorbars)&&h.push(z.doColorBars),p.legend&&h.push(z.doLegend),p.layoutstyle&&h.push(z.layoutStyles),p.axrange&&j(h,d.rangesAltered),p.ticks&&h.push(z.doTicksRelayout),p.modebar&&h.push(z.doModeBar),p.camera&&h.push(z.doCamera),h.push(w)),h.push(u.rehover,u.redrag,u.reselect),s.add(t,Y,[t,l.undoit,d.undoit,l.traces],Y,[t,l.redoit,d.redoit,l.traces]);var f=a.syncOrAsync(h,t);return(!f||!f.then)&&(f=Promise.resolve(t)),f.then(function(){return t.emit("plotly_update",{data:l.eventData,layout:d.eventData}),t})}function Z(e){return function(t){t._fullLayout._guiEditing=!0;var n=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,n}}var $=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^(map\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],J=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n],a=e.match(r.pattern);if(a){var i=a[1]||"";return{head:i,tail:e.slice(i.length+1),attr:r.attr}}}}function K(e,t){var n=i(t,e).get();if(void 0!==n)return n;var r=e.split(".");for(r.pop();r.length>1;)if(r.pop(),void 0!==(n=i(t,r.join(".")+".uirevision").get()))return n;return t.uirevision}function ee(e,t){for(var n=0;n<t.length;n++)if(t[n]._fullInput.uid===e)return n;return-1}function te(e,t,n){for(var r=0;r<t.length;r++)if(t[r].uid===e)return r;return!t[n]||t[n].uid?-1:n}function ne(e,t){var n=a.isPlainObject(e),r=Array.isArray(e);return n||r?(n&&a.isPlainObject(t)||r&&Array.isArray(t))&&JSON.stringify(e)===JSON.stringify(t):e===t}function re(e,t,n,r){var i,o,s,l=r.getValObject,c=r.flags,u=r.immutable,d=r.inArray,p=r.arrayIndex;function h(){var e=i.editType;d&&-1!==e.indexOf("arraydraw")?a.pushUnique(c.arrays[d],p):(_.update(c,i),"none"!==e&&c.nChanges++,r.transition&&i.anim&&c.nChangesAnim++,(U.test(s)||V.test(s))&&(c.rangesAltered[n[0]]=1),"datarevision"===o&&(c.newDataRevision=1))}function f(e){return"data_array"===e.valType||e.arrayOk}for(o in e){if(c.calc&&!r.transition)return;var m=e[o],g=t[o],y=n.concat(o);if(s=y.join("."),"_"!==o.charAt(0)&&"function"!=typeof m&&m!==g){if(("tick0"===o||"dtick"===o)&&"geo"!==n[0]){var b=t.tickmode;if("auto"===b||"array"===b||!b)continue}if(("range"!==o||!t.autorange)&&("zmin"!==o&&"zmax"!==o||"contourcarpet"!==t.type)&&((i=l(y))&&(!i._compareAsJSON||JSON.stringify(m)!==JSON.stringify(g)))){var v,M=i.valType,x=f(i),z=Array.isArray(m),A=Array.isArray(g);if(z&&A){var O="_input_"+o,w=e[O],k=t[O];if(Array.isArray(w)&&w===k)continue}if(void 0===g)x&&z?c.calc=!0:h();else if(i._isLinkedToArray){var T=[],S=!1;d||(c.arrays[o]=T);var C=Math.min(m.length,g.length),E=Math.max(m.length,g.length);if(C!==E){if("arraydraw"!==i.editType){h();continue}S=!0}for(v=0;v<C;v++)re(m[v],g[v],y.concat(v),a.extendFlat({inArray:o,arrayIndex:v},r));if(S)for(v=C;v<E;v++)T.push(v)}else!M&&a.isPlainObject(m)?re(m,g,y,r):x?z&&A?(u&&(c.calc=!0),(u||r.newDataRevision)&&h()):z!==A?c.calc=!0:h():z&&A?(m.length!==g.length||String(m)!==String(g))&&h():h()}}}for(o in t)if(!(o in e)&&"_"!==o.charAt(0)&&"function"!=typeof t[o]){if(f(i=l(n.concat(o)))&&Array.isArray(t[o]))return void(c.calc=!0);h()}}function ae(e){var t=e._fullLayout,n=e.getBoundingClientRect();if(!a.equalDomRects(n,t._lastBBox)){var r=t._invTransform=a.inverseTransformMatrix(a.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(r[0][0]*r[0][0]+r[0][1]*r[0][1]+r[0][2]*r[0][2]),t._invScaleY=Math.sqrt(r[1][0]*r[1][0]+r[1][1]*r[1][1]+r[1][2]*r[1][2]),t._lastBBox=n}}e.animate=function(e,t,n){if(e=a.getGraphDiv(e),!a.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/");var r=e._transitionData;r._frameQueue||(r._frameQueue=[]);var i=(n=u.supplyAnimationDefaults(n)).transition,o=n.frame;function s(e){return Array.isArray(i)?e>=i.length?i[0]:i[e]:i}function l(e){return Array.isArray(o)?e>=o.length?o[0]:o[e]:o}function c(e,t){var n=0;return function(){if(e&&++n===t)return e()}}return void 0===r._frameWaitingCnt&&(r._frameWaitingCnt=0),new Promise(function(o,d){var p=0;function h(e){return Array.isArray(i)?p>=i.length?e.transitionOpts=i[p]:e.transitionOpts=i[0]:e.transitionOpts=i,p++,e}var f,m,g=[],y=null==t,b=Array.isArray(t);if(!y&&!b&&a.isPlainObject(t))g.push({type:"object",data:h(a.extendFlat({},t))});else if(y||-1!==["string","number"].indexOf(typeof t))for(f=0;f<r._frames.length;f++)(m=r._frames[f])&&(y||String(m.group)===String(t))&&g.push({type:"byname",name:String(m.name),data:h({name:m.name})});else if(b)for(f=0;f<t.length;f++){var v=t[f];-1!==["number","string"].indexOf(typeof v)?(v=String(v),g.push({type:"byname",name:v,data:h({name:v})})):a.isPlainObject(v)&&g.push({type:"object",data:h(a.extendFlat({},v))})}for(f=0;f<g.length;f++)if("byname"===(m=g[f]).type&&!r._frameHash[m.data.name])return a.warn('animate failure: frame not found: "'+m.data.name+'"'),void d();-1!==["next","immediate"].indexOf(n.mode)&&function(){if(0!==r._frameQueue.length){for(;r._frameQueue.length;){var t=r._frameQueue.pop();t.onInterrupt&&t.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}(),"reverse"===n.direction&&g.reverse();var M=e._fullLayout._currentFrame;if(M&&n.fromcurrent){var z=-1;for(f=0;f<g.length;f++)if("byname"===(m=g[f]).type&&m.name===M){z=f;break}if(z>0&&z<g.length-1){var _=[];for(f=0;f<g.length;f++)m=g[f],("byname"!==g[f].type||f>z)&&_.push(m);g=_}}g.length>0?function(t){if(0!==t.length){for(var a=0;a<t.length;a++){var i;i="byname"===t[a].type?u.computeFrame(e,t[a].name):t[a].data;var p=l(a),h=s(a);h.duration=Math.min(h.duration,p.duration);var f={frame:i,name:t[a].name,frameOpts:p,transitionOpts:h};a===t.length-1&&(f.onComplete=c(o,2),f.onInterrupt=d),r._frameQueue.push(f)}"immediate"===n.mode&&(r._lastFrameAt=-1/0),r._animationRaf||function(){e.emit("plotly_animating"),r._lastFrameAt=-1/0,r._timeToNext=0,r._runningTransitions=0,r._currentFrame=null;var t=function(){r._animationRaf=window.requestAnimationFrame(t),Date.now()-r._lastFrameAt>r._timeToNext&&function(){r._currentFrame&&r._currentFrame.onComplete&&r._currentFrame.onComplete();var t=r._currentFrame=r._frameQueue.shift();if(t){var n=t.name?t.name.toString():null;e._fullLayout._currentFrame=n,r._lastFrameAt=Date.now(),r._timeToNext=t.frameOpts.duration,u.transition(e,t.frame.data,t.frame.layout,x.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then(function(){t.onComplete&&t.onComplete()}),e.emit("plotly_animatingframe",{name:n,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else e.emit("plotly_animated"),window.cancelAnimationFrame(r._animationRaf),r._animationRaf=null}()};t()}()}}(g):(e.emit("plotly_animated"),o())})},e.addFrames=function(e,t,n){if(e=a.getGraphDiv(e),null==t)return Promise.resolve();if(!a.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var r,i,o,l,c=e._transitionData._frames,d=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var p=c.length+2*t.length,h=[],f={};for(r=t.length-1;r>=0;r--)if(a.isPlainObject(t[r])){var m=t[r].name,g=(d[m]||f[m]||{}).name,y=t[r].name,b=d[g]||f[g];g&&y&&"number"==typeof y&&b&&O<5&&(O++,a.warn('addFrames: overwriting frame "'+(d[g]||f[g]).name+'" with a frame whose name of type "number" also equates to "'+g+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===O&&a.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),f[m]={name:m},h.push({frame:u.supplyFrameDefaults(t[r]),index:n&&void 0!==n[r]&&null!==n[r]?n[r]:p+r})}h.sort(function(e,t){return e.index>t.index?-1:e.index<t.index?1:0});var v=[],M=[],x=c.length;for(r=h.length-1;r>=0;r--){if("number"==typeof(i=h[r].frame).name&&a.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;d[i.name="frame "+e._transitionData._counter++];);if(d[i.name]){for(o=0;o<c.length&&(c[o]||{}).name!==i.name;o++);v.push({type:"replace",index:o,value:i}),M.unshift({type:"replace",index:o,value:c[o]})}else l=Math.max(0,Math.min(h[r].index,x)),v.push({type:"insert",index:l,value:i}),M.unshift({type:"delete",index:l}),x++}var z=u.modifyFrames,_=u.modifyFrames,A=[e,M],w=[e,v];return s&&s.add(e,z,A,_,w),u.modifyFrames(e,v)},e.deleteFrames=function(e,t){if(e=a.getGraphDiv(e),!a.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);var n,r,i=e._transitionData._frames,o=[],l=[];if(!t)for(t=[],n=0;n<i.length;n++)t.push(n);for((t=t.slice()).sort(),n=t.length-1;n>=0;n--)r=t[n],o.push({type:"delete",index:r}),l.unshift({type:"insert",index:r,value:i[r]});var c=u.modifyFrames,d=u.modifyFrames,p=[e,l],h=[e,o];return s&&s.add(e,c,p,d,h),u.modifyFrames(e,o)},e.addTraces=function t(n,r,i){n=a.getGraphDiv(n);var o,l,c=[],u=e.deleteTraces,d=t,p=[n,c],h=[n,r];for(function(e,t,n){var r,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t>"u")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),r=0;r<t.length;r++)if("object"!=typeof(a=t[r])||Array.isArray(a)||null===a)throw new Error("all values in traces array must be non-array objects");if(typeof n<"u"&&!Array.isArray(n)&&(n=[n]),typeof n<"u"&&n.length!==t.length)throw new Error("if indices is specified, traces.length must equal indices.length")}(n,r,i),Array.isArray(r)||(r=[r]),r=r.map(function(e){return a.extendFlat({},e)}),x.cleanData(r),o=0;o<r.length;o++)n.data.push(r[o]);for(o=0;o<r.length;o++)c.push(-r.length+o);if(typeof i>"u")return l=e.redraw(n),s.add(n,u,p,d,h),l;Array.isArray(i)||(i=[i]);try{q(n,c,i)}catch(e){throw n.data.splice(n.data.length-r.length,r.length),e}return s.startSequence(n),s.add(n,u,p,d,h),l=e.moveTraces(n,c,i),s.stopSequence(n),l},e.deleteTraces=function t(n,r){n=a.getGraphDiv(n);var i,o,l=[],c=e.addTraces,u=t,d=[n,l,r],p=[n,r];if(typeof r>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(r)||(r=[r]),E(n,r,"indices"),(r=C(r,n.data.length-1)).sort(a.sorterDes),i=0;i<r.length;i+=1)o=n.data.splice(r[i],1)[0],l.push(o);var h=e.redraw(n);return s.add(n,c,d,u,p),h},e.extendTraces=function t(n,r,i,o){var l=D(n=a.getGraphDiv(n),r,i,o,function(e,t,n){var r,i;if(a.isTypedArray(e))if(n<0){var o=new e.constructor(0),s=R(e,t);n<0?(r=s,i=o):(r=o,i=s)}else if(r=new e.constructor(n),i=new e.constructor(e.length+t.length-n),n===t.length)r.set(t),i.set(e);else if(n<t.length){var l=t.length-n;r.set(t.subarray(l)),i.set(e),i.set(t.subarray(0,l),e.length)}else{var c=n-t.length,u=e.length-c;r.set(e.subarray(u)),r.set(t,c),i.set(e.subarray(0,u))}else r=e.concat(t),i=n>=0&&n<r.length?r.splice(0,r.length-n):[];return[r,i]}),c=e.redraw(n),u=[n,l.update,i,l.maxPoints];return s.add(n,e.prependTraces,u,t,arguments),c},e.moveTraces=function t(n,r,i){var o,l=[],c=[],u=t,d=t,p=[n=a.getGraphDiv(n),i,r],h=[n,r,i];if(q(n,r,i),r=Array.isArray(r)?r:[r],typeof i>"u")for(i=[],o=0;o<r.length;o++)i.push(-r.length+o);for(i=Array.isArray(i)?i:[i],r=C(r,n.data.length-1),i=C(i,n.data.length-1),o=0;o<n.data.length;o++)-1===r.indexOf(o)&&l.push(n.data[o]);for(o=0;o<r.length;o++)c.push({newIndex:i[o],trace:n.data[r[o]]});for(c.sort(function(e,t){return e.newIndex-t.newIndex}),o=0;o<c.length;o+=1)l.splice(c[o].newIndex,0,c[o].trace);n.data=l;var f=e.redraw(n);return s.add(n,u,p,d,h),f},e.prependTraces=function t(n,r,i,o){var l=D(n=a.getGraphDiv(n),r,i,o,function(e,t,n){var r,i;if(a.isTypedArray(e))if(n<=0){var o=new e.constructor(0),s=R(t,e);n<0?(r=s,i=o):(r=o,i=s)}else if(r=new e.constructor(n),i=new e.constructor(e.length+t.length-n),n===t.length)r.set(t),i.set(e);else if(n<t.length){var l=t.length-n;r.set(t.subarray(0,l)),i.set(t.subarray(l)),i.set(e,l)}else{var c=n-t.length;r.set(t),r.set(e.subarray(0,c),t.length),i.set(e.subarray(c))}else r=t.concat(e),i=n>=0&&n<r.length?r.splice(n,r.length):[];return[r,i]}),c=e.redraw(n),u=[n,l.update,i,l.maxPoints];return s.add(n,e.extendTraces,u,t,arguments),c},e.newPlot=function(t,n,r,i){return t=a.getGraphDiv(t),u.cleanPlot([],{},t._fullData||[],t._fullLayout||{}),u.purge(t),e._doPlot(t,n,r,i)},e._doPlot=function(n,r,i,s){var c;if(n=a.getGraphDiv(n),o.init(n),a.isPlainObject(r)){var p=r;r=p.data,i=p.layout,s=p.config,c=p.frames}if(!1===o.triggerHandler(n,"plotly_beforeplot",[r,i,s]))return Promise.reject();!r&&!i&&!a.isPlotDiv(n)&&a.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",n),S(n,s),i||(i={}),t.select(n).classed("js-plotly-plot",!0),f.makeTester(),Array.isArray(n._promises)||(n._promises=[]);var h=0===(n.data||[]).length&&Array.isArray(r);Array.isArray(r)&&(x.cleanData(r),h?n.data=r:n.data.push.apply(n.data,r),n.empty=!1),(!n.layout||h)&&(n.layout=x.cleanLayout(i)),u.supplyDefaults(n);var m=n._fullLayout,b=m._has("cartesian");m._replotting=!0,(h||m._shouldCreateBgLayer)&&(function(e){var n=t.select(e),r=e._fullLayout;if(r._calcInverseTransform=ae,r._calcInverseTransform(e),r._container=n.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var i={};t.selectAll("defs").each(function(){this.id&&(i[this.id.split("-")[1]]=1)}),r._uid=a.randstr(i)}r._paperdiv.selectAll(".main-svg").attr(y.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var o=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=o.append("g").classed("imagelayer",!0),r._shapeLowerLayer=o.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var s=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=s.append("g").classed("imagelayer",!0),r._shapeUpperLayer=s.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}(n),m._shouldCreateBgLayer&&delete m._shouldCreateBgLayer),f.initGradients(n),f.initPatterns(n),h&&d.saveShowSpikeInitial(n);var v=!n.calcdata||n.calcdata.length!==(n._fullData||[]).length;v&&u.doCalcdata(n);for(var M=0;M<n.calcdata.length;M++)n.calcdata[M][0].trace=n._fullData[M];n._context.responsive?n._responsiveChartHandler||(n._responsiveChartHandler=function(){a.isHidden(n)||u.resize(n)},window.addEventListener("resize",n._responsiveChartHandler)):a.clearResponsive(n);var _=a.extendFlat({},m._size),A=0;function O(){if(u.clearAutoMarginIds(n),z.drawMarginPushers(n),d.allowAutoMargin(n),n._fullLayout.title.text&&n._fullLayout.title.automargin&&u.allowAutoMargin(n,"title.automargin"),m._has("pie"))for(var e=n._fullData,t=0;t<e.length;t++){var r=e[t];"pie"===r.type&&r.automargin&&u.allowAutoMargin(n,"pie."+r.uid+".automargin")}return u.doAutoMargin(n),u.previousPromises(n)}function k(){n._transitioning||(z.doAutoRangeAndConstraints(n),h&&d.saveRangeInitial(n),l.getComponentMethod("rangeslider","calcAutorange")(n))}var T=[u.previousPromises,function(){if(c)return e.addFrames(n,c)},function e(){for(var t=m._basePlotModules,r=0;r<t.length;r++)t[r].drawFramework&&t[r].drawFramework(n);!m._glcanvas&&m._has("gl")&&(m._glcanvas=m._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],function(e){return e.key}),m._glcanvas.enter().append("canvas").attr("class",function(e){return"gl-canvas gl-canvas-"+e.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var i=n._context.plotGlPixelRatio;if(m._glcanvas){m._glcanvas.attr("width",m.width*i).attr("height",m.height*i).style("width",m.width+"px").style("height",m.height+"px");var o=m._glcanvas.data()[0].regl;if(o&&(Math.floor(m.width*i)!==o._gl.drawingBufferWidth||Math.floor(m.height*i)!==o._gl.drawingBufferHeight)){var s="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(!A)return a.log(s+" Clearing graph and plotting again."),u.cleanPlot([],{},n._fullData,m),u.supplyDefaults(n),m=n._fullLayout,u.doCalcdata(n),A++,e();a.error(s)}}return"h"===m.modebar.orientation?m._modebardiv.style("height",null).style("width","100%"):m._modebardiv.style("width",null).style("height",m.height+"px"),u.previousPromises(n)},O,function(){if(u.didMarginChange(_,m._size))return a.syncOrAsync([O,z.layoutStyles],n)}];b&&T.push(function(){if(v)return a.syncOrAsync([l.getComponentMethod("shapes","calcAutorange"),l.getComponentMethod("annotations","calcAutorange"),k],n);k()}),T.push(z.layoutStyles),b&&T.push(function(){return d.draw(n,h?"":"redraw")},function(e){var t=e._fullLayout._insideTickLabelsUpdaterange;if(t)return e._fullLayout._insideTickLabelsUpdaterange=void 0,B(e,t).then(function(){d.saveRangeInitial(e,!0)})}),T.push(z.drawData,z.finalDraw,g,u.addLinks,u.rehover,u.redrag,u.reselect,u.doAutoMargin,u.previousPromises);var C=a.syncOrAsync(T,n);return(!C||!C.then)&&(C=Promise.resolve()),C.then(function(){return w(n),n})},e.purge=function(e){var t=(e=a.getGraphDiv(e))._fullLayout||{},n=e._fullData||[];return u.cleanPlot([],{},n,t),u.purge(e),o.purge(e),t._container&&t._container.remove(),delete e._context,e},e.react=function(t,n,r,o){var s,d;t=a.getGraphDiv(t),x.clearPromiseQueue(t);var p=t._fullData,h=t._fullLayout;if(a.isPlotDiv(t)&&p&&h){if(a.isPlainObject(n)){var f=n;n=f.data,r=f.layout,o=f.config,s=f.frames}var m=!1;if(o){let e=a.extendDeepAll({},t._context);t._context=void 0,S(t,o),m=!x.collectionsAreEqual(e,t._context)}if(m){let a=t._ev.eventNames().map(e=>[e,t._ev.listeners(e)]);d=e.newPlot(t,n,r,o).then(()=>{for(let[e,n]of a)n.forEach(n=>t.on(e,n));return e.react(t,n,r,o)})}else{t.data=n||[],x.cleanData(t.data),t.layout=r||{},x.cleanLayout(t.layout),function(e,t,n,r){var o,s,l,c,u,d,p,h,f,m,g=r._preGUI,y=[],b={},v={};for(o in g){if(u=Q(o,$)){if(f=u.head,m=u.tail,s=u.attr||f+".uirevision",(c=(l=i(r,s).get())&&K(s,t))&&c===l){if(null===(d=g[o])&&(d=void 0),ne(h=(p=i(t,o)).get(),d)){void 0===h&&"autorange"===m&&y.push(f),p.set(I(i(r,o).get()));continue}if("autorange"===m||"range["===m.slice(0,6)){var M=g[f+".range[0]"],x=g[f+".range[1]"],z=g[f+".autorange"];if(z||null===z&&null===M&&null===x){if(!(f in b)){var _=i(t,f).get();b[f]=_&&(_.autorange||!1!==_.autorange&&(!_.range||2!==_.range.length))}if(b[f]){p.set(I(i(r,o).get()));continue}}}}}else a.warn("unrecognized GUI edit: "+o);delete g[o],u&&"range["===u.tail.slice(0,6)&&(v[u.head]=1)}for(var A=0;A<y.length;A++){var O=y[A];if(v[O]){var w=i(t,O).get();w&&delete w.autorange}}var k=r._tracePreGUI;for(var T in k){var S,C=k[T],E=null;for(o in C){if(!E){var q=ee(T,n);if(q<0){delete k[T];break}var D=te(T,e,(S=n[q]._fullInput).index);if(D<0){delete k[T];break}E=e[D]}if(u=Q(o,J)){if(u.attr?c=(l=i(r,u.attr).get())&&K(u.attr,t):(l=S.uirevision,void 0===(c=E.uirevision)&&(c=t.uirevision)),c&&c===l&&(null===(d=C[o])&&(d=void 0),ne(h=(p=i(E,o)).get(),d))){p.set(I(i(S,o).get()));continue}}else a.warn("unrecognized GUI edit: "+o+" in trace uid "+T);delete C[o]}}}(t.data,t.layout,p,h),u.supplyDefaults(t,{skipUpdateCalc:!0});var g=t._fullData,y=t._fullLayout,b=void 0===y.datarevision,v=y.transition,M=function(e,t,n,r,a){var i=_.layoutFlags();function o(e){return c.getLayoutValObject(n,e)}for(var s in i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0,n)if((s.startsWith("xaxis")||s.startsWith("yaxis"))&&t[s]){var l=n[s].domain,u=t[s].domain,d=t[s]._inputDomain;t[s]._inputDomain&&(l[0]===d[0]&&l[1]===d[1]?n[s].domain=t[s].domain:(l[0]!==u[0]||l[1]!==u[1])&&(n[s]._inputDomain=null))}var p={getValObject:o,flags:i,immutable:r,transition:a,gd:e};return re(t,n,[],p),(i.plot||i.calc)&&(i.layoutReplot=!0),a&&i.nChanges&&i.nChangesAnim&&(i.anim=i.nChanges===i.nChangesAnim?"all":"some"),i}(t,h,y,b,v),A=M.newDataRevision,O=function(e,t,n,r,a,i){var o=t.length===n.length;if(!a&&!o)return{fullReplot:!0,calc:!0};var s,l,u=_.traceFlags();function d(e){var t=c.getTraceValObject(l,e);return!l._module.animatable&&t.anim&&(t.anim=!1),t}u.arrays={},u.nChanges=0,u.nChangesAnim=0;var p={getValObject:d,flags:u,immutable:r,transition:a,newDataRevision:i,gd:e},h={};for(s=0;s<t.length;s++)if(n[s]){if(h[(l=n[s]._fullInput).uid])continue;h[l.uid]=1,re(t[s]._fullInput,l,[],p)}return(u.calc||u.plot)&&(u.fullReplot=!0),a&&u.nChanges&&u.nChangesAnim&&(u.anim=u.nChanges===u.nChangesAnim&&o?"all":"some"),u}(t,p,g,b,v,A);if(G(t)&&(M.layoutReplot=!0),O.calc||M.calc){t.calcdata=void 0;for(var k=Object.getOwnPropertyNames(y),T=0;T<k.length;T++){var C=k[T],E=C.substring(0,5);if("xaxis"===E||"yaxis"===E){var q=y[C]._emptyCategories;q&&q()}}}else u.supplyDefaultsUpdateCalc(t.calcdata,g);var D=[];if(s&&(t._transitionData={},u.createTransitionData(t),D.push(function(){return e.addFrames(t,s)})),y.transition&&(O.anim||M.anim))M.ticks&&D.push(z.doTicksRelayout),u.doCalcdata(t),z.doAutoRangeAndConstraints(t),D.push(function(){return u.transitionFromReact(t,O,M,h)});else if(O.fullReplot||M.layoutReplot)t._fullLayout._skipDefaults=!0,D.push(e._doPlot);else{for(var R in M.arrays){var L=M.arrays[R];if(L.length){var W=l.getComponentMethod(R,"drawOne");if(W!==a.noop)for(var N=0;N<L.length;N++)W(t,L[N]);else{var P=l.getComponentMethod(R,"draw");if(P===a.noop)throw new Error("cannot draw components: "+R);P(t)}}}D.push(u.previousPromises),O.style&&D.push(z.doTraceStyle),(O.colorbars||M.colorbars)&&D.push(z.doColorBars),M.legend&&D.push(z.doLegend),M.layoutstyle&&D.push(z.layoutStyles),M.axrange&&j(D),M.ticks&&D.push(z.doTicksRelayout),M.modebar&&D.push(z.doModeBar),M.camera&&D.push(z.doCamera),D.push(w)}D.push(u.rehover,u.redrag,u.reselect),(!(d=a.syncOrAsync(D,t))||!d.then)&&(d=Promise.resolve(t))}}else d=e.newPlot(t,n,r,o);return d.then(()=>(m||t.emit("plotly_react",{config:o,data:n,layout:r}),t))},e.redraw=function(t){if(t=a.getGraphDiv(t),!a.isPlotDiv(t))throw new Error("This element is not a Plotly plot: "+t);return x.cleanData(t.data),x.cleanLayout(t.layout),t.calcdata=void 0,e._doPlot(t).then(function(){return t.emit("plotly_redraw"),t})},e.relayout=B,e.restyle=L,e.setPlotConfig=function(e){return a.extendFlat(v,e)},e.update=Y,e._guiRelayout=Z(B),e._guiRestyle=Z(L),e._guiUpdate=Z(Y),e._storeDirectGUIEdit=function(e,t,n){for(var r in n){N(r,i(e,r).get(),n[r],t)}}}),Sx=Ee(e=>{var t=vo();e.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0},e.getRedrawFunc=function(e){return function(){t.getComponentMethod("colorbar","draw")(e)}},e.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)},e.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var n=window.URL||window.webkitURL;e.createObjectURL=function(e){return n.createObjectURL(e)},e.revokeObjectURL=function(e){return n.revokeObjectURL(e)},e.createBlob=function(e,t){if("svg"===t)return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if("full-json"===t)return new window.Blob([e],{type:"application/json;charset=utf-8"});var n=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),a=0;a<t;a++)r[a]=e.charCodeAt(a);return n}(window.atob(e));return new window.Blob([n],{type:"image/"+t})},e.octetStream=function(e){document.location.href="data:application/octet-stream"+e},e.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/}),mj=Ee((e,t)=>{var n=mo(),r=(Fr(),vs()),a=ao(),i=(Dv(),/"/g),o="TOBESTRIPPED",s=new RegExp('("'+o+")|("+o+'")',"g");t.exports=function(e,t,l){var c,u=e._fullLayout,d=u._paper,p=u._toppaper,h=u.width,f=u.height;d.insert("rect",":first-child").call(r.setRect,0,0,h,f).call(a.fill,u.paper_bgcolor);var m=u._basePlotModules||[];for(c=0;c<m.length;c++){var g=m[c];g.toSVG&&g.toSVG(e)}if(p){var y=p.node().childNodes,b=Array.prototype.slice.call(y);for(c=0;c<b.length;c++){var v=b[c];v.childNodes.length&&d.node().appendChild(v)}}u._draggers&&u._draggers.remove(),d.node().style.background="",d.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each(function(){var e=n.select(this);if("hidden"!==this.style.visibility&&"none"!==this.style.display){e.style({visibility:null,display:null});var t=this.style.fontFamily;t&&-1!==t.indexOf('"')&&e.style("font-family",t.replace(i,o));var r=this.style.fontWeight;r&&("normal"===r||"400"===r)&&e.style("font-weight",void 0);var a=this.style.fontStyle;a&&"normal"===a&&e.style("font-style",void 0);var s=this.style.fontVariant;s&&"normal"===s&&e.style("font-variant",void 0)}else e.remove()}),d.selectAll(".gradient_filled,.pattern_filled").each(function(){var e=n.select(this),t=this.style.fill;t&&-1!==t.indexOf("url(")&&e.style("fill",t.replace(i,o));var r=this.style.stroke;r&&-1!==r.indexOf("url(")&&e.style("stroke",r.replace(i,o))}),("pdf"===t||"eps"===t)&&d.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),"svg"===t&&l&&(d.attr("width",l*h),d.attr("height",l*f),d.attr("viewBox","0 0 "+h+" "+f));var M=(new window.XMLSerializer).serializeToString(d.node());return M=function(e){var t=n.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(e){return"&lt;"===e?"&#60;":"&rt;"===e?"&#62;":-1!==e.indexOf("<")||-1!==e.indexOf(">")?"":t.html(e).text()});return t.remove(),r}(M),M=(M=M.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&amp;")).replace(s,"'")}}),vj=Ee((e,t)=>{var n=Fr(),r=require("events").EventEmitter,a=Sx();t.exports=function(e){var t=e.emitter||new r,i=new Promise(function(r,i){var o,s,l=window.Image,c=e.svg,u=e.format||"png",d=e.canvas,p=e.scale||1,h=e.width||300,f=e.height||150,m=p*h,g=p*f,y=d.getContext("2d",{willReadFrequently:!0}),b=new l;"svg"===u||n.isSafari()?s=a.encodeSVG(c):(o=a.createBlob(c,"svg"),s=a.createObjectURL(o)),d.width=m,d.height=g,b.onload=function(){var n;switch(o=null,a.revokeObjectURL(s),"svg"!==u&&y.drawImage(b,0,0,m,g),u){case"jpeg":n=d.toDataURL("image/jpeg");break;case"png":n=d.toDataURL("image/png");break;case"webp":n=d.toDataURL("image/webp");break;case"svg":n=s;break;default:var l="Image format is not jpeg, png, svg or webp.";if(i(new Error(l)),!e.promise)return t.emit("error",l)}r(n),e.promise||t.emit("success",n)},b.onerror=function(n){if(o=null,a.revokeObjectURL(s),i(n),!e.promise)return t.emit("error",n)},b.src=s});return e.promise?i:t}}),m1e=Ee((e,t)=>{var n=xs(),r=pj(),a=td(),i=Fr(),o=Sx(),s=mj(),l=vj(),c=NU().version,u={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}};t.exports=function(e,t){var d,p,h,f;function m(e){return!(e in t)||i.validate(t[e],u[e])}if(t=t||{},i.isPlainObject(e)?(d=e.data||[],p=e.layout||{},h=e.config||{},f={}):(e=i.getGraphDiv(e),d=i.extendDeep([],e.data),p=i.extendDeep({},e.layout),h=e._context,f=e._fullLayout||{}),!m("width")&&null!==t.width||!m("height")&&null!==t.height)throw new Error("Height and width should be pixel values.");if(!m("format"))throw new Error("Export format is not "+i.join2(u.format.values,", "," or ")+".");var g={};function y(e,n){return i.coerce(t,g,u,e,n)}var b=y("format"),v=y("width"),M=y("height"),x=y("scale"),z=y("setBackground"),_=y("imageDataOnly"),A=document.createElement("div");A.style.position="absolute",A.style.left="-5000px",document.body.appendChild(A);var O=i.extendFlat({},p);v?O.width=v:null===t.width&&n(f.width)&&(O.width=f.width),M?O.height=M:null===t.height&&n(f.height)&&(O.height=f.height);var w=i.extendFlat({},h,{_exportedPlot:!0,staticPlot:!0,setBackground:z}),k=o.getRedrawFunc(A);function T(){return new Promise(function(e){setTimeout(e,o.getDelay(A._fullLayout))})}function S(){return new Promise(function(e,t){var n=s(A,b,x),u=A._fullLayout.width,d=A._fullLayout.height;function p(){r.purge(A),document.body.removeChild(A)}if("full-json"===b){var h=a.graphJson(A,!1,"keepdata","object",!0,!0);return h.version=c,h=JSON.stringify(h),p(),e(_?h:o.encodeJSON(h))}if(p(),"svg"===b)return e(_?n:o.encodeSVG(n));var f=document.createElement("canvas");f.id=i.randstr(),l({format:b,width:u,height:d,scale:x,canvas:f,svg:n,promise:!0}).then(e).catch(t)})}return new Promise(function(e,t){r.newPlot(A,d,O,w).then(k).then(T).then(S).then(function(t){e(function(e){return _?e.replace(o.IMAGE_URL_PREFIX,""):e}(t))}).catch(function(e){t(e)})})}}),WFe=Ee((e,t)=>{var n=Fr(),r=td(),a=Q8(),i=iw().dfltConfig,o=n.isPlainObject,s=Array.isArray,l=n.isArrayOrTypedArray;function c(e,t,r,a,i,u){u=u||[];for(var d=Object.keys(e),m=0;m<d.length;m++){var g=d[m],y=u.slice();y.push(g);var b=e[g],v=t[g],M=f(r,g),x=(M||{}).valType,z="info_array"===x,_="colorscale"===x,A=(M||{}).items;if(h(r,g))if(o(b)&&o(v)&&"any"!==x)c(b,v,M,a,i,y);else if(z&&s(b)){b.length>v.length&&a.push(p("unused",i,y.concat(v.length)));var O,w,k,T,S,C=v.length,E=Array.isArray(A);if(E&&(C=Math.min(C,A.length)),2===M.dimensions)for(w=0;w<C;w++)if(s(b[w])){b[w].length>v[w].length&&a.push(p("unused",i,y.concat(w,v[w].length)));var q=v[w].length;for(O=0;O<(E?Math.min(q,A[w].length):q);O++)k=E?A[w][O]:A,T=b[w][O],S=v[w][O],n.validate(T,k)?S!==T&&S!==+T&&a.push(p("dynamic",i,y.concat(w,O),T,S)):a.push(p("value",i,y.concat(w,O),T))}else a.push(p("array",i,y.concat(w),b[w]));else for(w=0;w<C;w++)k=E?A[w]:A,T=b[w],S=v[w],n.validate(T,k)?S!==T&&S!==+T&&a.push(p("dynamic",i,y.concat(w),T,S)):a.push(p("value",i,y.concat(w),T))}else if(M.items&&!z&&s(b)){var D,R,L=A[Object.keys(A)[0]],I=[];for(D=0;D<v.length;D++){var W=v[D]._index||D;if((R=y.slice()).push(W),o(b[W])&&o(v[D])){I.push(W);var N=b[W],P=v[D];o(N)&&!1!==N.visible&&!1===P.visible?a.push(p("invisible",i,R)):c(N,P,L,a,i,R)}}for(D=0;D<b.length;D++)(R=y.slice()).push(D),o(b[D])?-1===I.indexOf(D)&&a.push(p("unused",i,R)):a.push(p("object",i,R,b[D]))}else!o(b)&&o(v)?a.push(p("object",i,y,b)):l(b)||!l(v)||z||_?g in t?n.validate(b,M)?"enumerated"===M.valType&&(M.coerceNumber&&b!==+v||!l(b)&&b!==v||String(b)!==String(v))&&a.push(p("dynamic",i,y,b,v)):a.push(p("value",i,y,b)):a.push(p("unused",i,y,b)):a.push(p("array",i,y,b));else a.push(p("schema",i,y))}return a}t.exports=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={});var l,u,d=a.get(),h=[],f={_context:n.extendFlat({},i)};s(e)?(f.data=n.extendDeep([],e),l=e):(f.data=[],l=[],h.push(p("array","data"))),o(t)?(f.layout=n.extendDeep({},t),u=t):(f.layout={},u={},arguments.length>1&&h.push(p("object","layout"))),r.supplyDefaults(f);for(var m=f._fullData,g=l.length,y=0;y<g;y++){var b=l[y],v=["data",y];if(o(b)){var M=m[y],x=M.type,z=d.traces[x].attributes;z.type={valType:"enumerated",values:[x]},!1===M.visible&&!1!==b.visible&&h.push(p("invisible",v)),c(b,M,z,h,v)}else h.push(p("object",v))}var _=f._fullLayout,A=function(e,t){for(var r=e.layout.layoutAttributes,a=0;a<t.length;a++){var i=t[a],o=e.traces[i.type],s=o.layoutAttributes;s&&(i.subplot?n.extendFlat(r[o.attributes.subplot.dflt],s):n.extendFlat(r,s))}return r}(d,m);return c(u,_,A,h,"layout"),0===h.length?void 0:h};var u={object:function(e,t){return("layout"===e&&""===t?"The layout argument":"data"===e[0]&&""===t?"Trace "+e[1]+" in the data argument":d(e)+"key "+t)+" must be linked to an object container"},array:function(e,t){return("data"===e?"The data argument":d(e)+"key "+t)+" must be linked to an array container"},schema:function(e,t){return d(e)+"key "+t+" is not part of the schema"},unused:function(e,t,n){var r=o(n)?"container":"key";return d(e)+r+" "+t+" did not get coerced"},dynamic:function(e,t,n,r){return[d(e)+"key",t,"(set to '"+n+"')","got reset to","'"+r+"'","during defaults."].join(" ")},invisible:function(e,t){return(t?d(e)+"item "+t:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,t,n){return[d(e)+"key "+t,"is set to an invalid value ("+n+")"].join(" ")}};function d(e){return s(e)?"In data trace "+e[1]+", ":"In "+e+", "}function p(e,t,r,a,i){var o,l;r=r||"",s(t)?(o=t[0],l=t[1]):(o=t,l=null);var c=function(e){if(!s(e))return String(e);for(var t="",n=0;n<e.length;n++){var r=e[n];"number"==typeof r?t=t.slice(0,-1)+"["+r+"]":t+=r,n<e.length-1&&(t+=".")}return t}(r),d=u[e](t,c,a,i);return n.log(d),{code:e,container:o,trace:l,path:r,astr:c,msg:d}}function h(e,t){var n=g(t),r=n.keyMinusId,a=n.id;return!!(r in e&&e[r]._isSubplotObj&&a)||t in e}function f(e,t){return t in e?e[t]:e[g(t).keyMinusId]}var m=n.counterRegex("([a-z]+)");function g(e){var t=e.match(m);return{keyMinusId:t&&t[1],id:t&&t[2]}}}),BFe=Ee((e,t)=>{var n=Fr(),r=Sx();t.exports=function(e,t,a){var i=document.createElement("a"),o="download"in i;return new Promise(function(s,l){var c,u;if(o)return c=r.createBlob(e,a),u=r.createObjectURL(c),i.href=u,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),r.revokeObjectURL(u),c=null,s(t);if(n.isSafari()){var d="svg"===a?",":";base64,";return r.octetStream(d+encodeURIComponent(e)),s(t)}l(new Error("download error"))})}}),g1e=Ee((e,t)=>{var n=Fr(),r=m1e(),a=BFe();Sx();t.exports=function(e,t){var i;return n.isPlainObject(e)||(i=n.getGraphDiv(e)),(t=t||{}).format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(n,o){i&&i._snapshotInProgress&&o(new Error("Snapshotting already in progress.")),i&&(i._snapshotInProgress=!0);var s=r(e,t),l=t.filename||e.fn||"newplot";l+="."+t.format.replace("-","."),s.then(function(e){return i&&(i._snapshotInProgress=!1),a(e,l,t.format)}).then(function(e){n(e)}).catch(function(e){i&&(i._snapshotInProgress=!1),o(e)})})}}),YFe=Ee(e=>{var t=Fr(),n=t.isPlainObject,r=Q8(),a=td(),i=S1(),o=Kl(),s=iw().dfltConfig;function l(e,r){e=t.extendDeep({},e);var a,i,s=Object.keys(e).sort();function u(t,r,a){if(n(r)&&n(t))l(t,r);else if(Array.isArray(r)&&Array.isArray(t)){var s=o.arrayTemplater({_template:e},a);for(i=0;i<r.length;i++){var c=r[i],u=s.newItem(c)._template;u&&l(u,c)}var d=s.defaultItems();for(i=0;i<d.length;i++)r.push(d[i]._template);for(i=0;i<r.length;i++)delete r[i].templateitemname}}for(a=0;a<s.length;a++){var d=s[a],p=e[d];if(d in r?u(p,r[d],d):r[d]=p,c(d)===d)for(var h in r){var f=c(h);h!==f&&f===d&&!(h in e)&&u(p,r[h],d)}}}function c(e){return e.replace(/[0-9]+$/,"")}function u(e,r,a,i,s){var l=s&&a(s);for(var d in e){var p=e[d],f=h(e,d,i),m=h(e,d,s),g=a(m);if(!g){var y=c(d);y!==d&&(g=a(m=h(e,y,s)))}if(!(l&&l===g||!g||g._noTemplating||"data_array"===g.valType||g.arrayOk&&Array.isArray(p)))if(!g.valType&&n(p))u(p,r,a,f,m);else if(g._isLinkedToArray&&Array.isArray(p))for(var b=!1,v=0,M={},x=0;x<p.length;x++){var z=p[x];if(n(z)){var _=z.name;if(_)M[_]||(u(z,r,a,h(p,v,f),h(p,v,m)),v++,M[_]=1);else if(!b){var A=h(e,o.arrayDefaultKey(d),i),O=h(p,v,f);u(z,r,a,O,h(p,v,m));var w=t.nestedProperty(r,O);t.nestedProperty(r,A).set(w.get()),w.set(null),b=!0}}}else{t.nestedProperty(r,f).set(p)}}}function d(e,n){return r.getLayoutValObject(e,t.nestedProperty({},n).parts)}function p(e,n){return r.getTraceValObject(e,t.nestedProperty({},n).parts)}function h(e,t,n){return n?Array.isArray(e)?n+"["+t+"]":n+"."+t:t}function f(e){for(var t=0;t<e.length;t++)if(n(e[t]))return!0}function m(e){var t;switch(e.code){case"data":t="The template has no key data.";break;case"layout":t="The template has no key layout.";break;case"missing":t=e.path?"There are no templates for item "+e.path+" with name "+e.templateitemname:"There are no templates for trace "+e.index+", of type "+e.traceType+".";break;case"unused":t=e.path?"The template item at "+e.path+" was not used in constructing the plot.":e.dataCount?"Some of the templates of type "+e.traceType+" were not used. The template has "+e.templateCount+" traces, the data only has "+e.dataCount+" of this type.":"The template has "+e.templateCount+" traces of type "+e.traceType+" but there are none in the data.";break;case"reused":t="Some of the templates of type "+e.traceType+" were used more than once. The template has "+e.templateCount+" traces, the data has "+e.dataCount+" of this type."}return e.msg=t,e}e.makeTemplate=function(e){e=t.isPlainObject(e)?e:t.getGraphDiv(e),e=t.extendDeep({_context:s},{data:e.data,layout:e.layout}),a.supplyDefaults(e);var r=e.data||[],o=e.layout||{};o._basePlotModules=e._fullLayout._basePlotModules,o._modules=e._fullLayout._modules;var c={data:{},layout:{}};r.forEach(function(e){var n={};u(e,n,p.bind(null,e));var r=t.coerce(e,{},i,"type"),a=c.data[r];a||(a=c.data[r]=[]),a.push(n)}),u(o,c.layout,d.bind(null,o)),delete c.layout.template;var h=o.template;if(n(h)){var f,m,g,y,b,v,M=h.layout;n(M)&&l(M,c.layout);var x=h.data;if(n(x)){for(m in c.data)if(g=x[m],Array.isArray(g)){for(v=(b=c.data[m]).length,y=g.length,f=0;f<v;f++)l(g[f%y],b[f]);for(f=v;f<y;f++)b.push(t.extendDeep({},g[f]))}for(m in x)m in c.data||(c.data[m]=t.extendDeep([],x[m]))}}return c},e.validateTemplate=function(e,r){var i=t.extendDeep({},{_context:s,data:e.data,layout:e.layout}),o=i.layout||{};n(r)||(r=o.template||{});var l=r.layout,u=r.data,d=[];i.layout=o,i.layout.template=r,a.supplyDefaults(i);var p=i._fullLayout,g=i._fullData,y={};if(n(l)?(function e(t,r){for(var a in t)if("_"!==a.charAt(0)&&n(t[a])){var i,o=c(a),s=[];for(i=0;i<r.length;i++)s.push(h(t,a,r[i])),o!==a&&s.push(h(t,o,r[i]));for(i=0;i<s.length;i++)y[s[i]]=1;e(t[a],s)}}(p,["layout"]),function e(t,r){for(var a in t)if(-1===a.indexOf("defaults")&&n(t[a])){var i=h(t,a,r);y[i]?e(t[a],i):d.push({code:"unused",path:i})}}(l,"layout")):d.push({code:"layout"}),n(u)){for(var b,v={},M=0;M<g.length;M++){var x=g[M];v[b=x.type]=(v[b]||0)+1,x._fullInput._template||d.push({code:"missing",index:x.index,traceType:b})}for(b in u){var z=u[b].length,_=v[b]||0;z>_?d.push({code:"unused",traceType:b,templateCount:z,dataCount:_}):_>z&&d.push({code:"reused",traceType:b,templateCount:z,dataCount:_})}}else d.push({code:"data"});if(function e(t,r){for(var a in t)if("_"!==a.charAt(0)){var i=t[a],o=h(t,a,r);n(i)?(Array.isArray(t)&&!1===i._template&&i.templateitemname&&d.push({code:"missing",path:o,templateitemname:i.templateitemname}),e(i,o)):Array.isArray(i)&&f(i)&&e(i,o)}}({data:g,layout:p},""),d.length)return d.map(m)}}),$Fe=Ee(e=>{var t=pj();e._doPlot=t._doPlot,e.newPlot=t.newPlot,e.restyle=t.restyle,e.relayout=t.relayout,e.redraw=t.redraw,e.update=t.update,e._guiRestyle=t._guiRestyle,e._guiRelayout=t._guiRelayout,e._guiUpdate=t._guiUpdate,e._storeDirectGUIEdit=t._storeDirectGUIEdit,e.react=t.react,e.extendTraces=t.extendTraces,e.prependTraces=t.prependTraces,e.addTraces=t.addTraces,e.deleteTraces=t.deleteTraces,e.moveTraces=t.moveTraces,e.purge=t.purge,e.addFrames=t.addFrames,e.deleteFrames=t.deleteFrames,e.animate=t.animate,e.setPlotConfig=t.setPlotConfig;var n=iD().getGraphDiv,r=qV().eraseActiveShape;e.deleteActiveShape=function(e){return r(n(e))},e.toImage=m1e(),e.validate=WFe(),e.downloadImage=g1e();var a=YFe();e.makeTemplate=a.makeTemplate,e.validateTemplate=a.validateTemplate}),SS=Ee((e,t)=>{var n=Fr(),r=vo();t.exports=function(e,t,a,i){var o,s=i("x"),l=i("y");if(r.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],a),s){var c=n.minRowLength(s);l?o=Math.min(c,n.minRowLength(l)):(o=c,i("y0"),i("dy"))}else{if(!l)return 0;o=n.minRowLength(l),i("x0"),i("dx")}return t._length=o,o}}),ab=Ee((e,t)=>{var n=Fr().dateTick0,r=T0().ONEWEEK;function a(e,t){return n(t,e%r===0?1:0)}t.exports=function(e,t,n,r,i){if(i||(i={x:!0,y:!0}),i.x){var o=r("xperiod");o&&(r("xperiod0",a(o,t.xcalendar)),r("xperiodalignment"))}if(i.y){var s=r("yperiod");s&&(r("yperiod0",a(s,t.ycalendar)),r("yperiodalignment"))}}}),nBe=Ee((e,t)=>{var n=["orientation","groupnorm","stackgaps"];t.exports=function(e,t,r,a){var i=r._scatterStackOpts,o=a("stackgroup");if(o){var s=t.xaxis+t.yaxis,l=i[s];l||(l=i[s]={});var c=l[o],u=!1;c?c.traces.push(t):(c=l[o]={traceIndices:[],traces:[t]},u=!0);for(var d={orientation:t.x&&!t.y?"h":"v"},p=0;p<n.length;p++){var h=n[p],f=h+"Found";if(!c[f]){var m=void 0!==e[h],g="orientation"===h;if((m||u)&&(c[h]=a(h,d[h]),g&&(c.fillDflt="h"===c[h]?"tonextx":"tonexty"),m&&(c[f]=!0,!u&&(delete c.traces[0][h],g))))for(var y=0;y<c.traces.length-1;y++){var b=c.traces[y];b._input.fill!==b.fill&&(b.fill=c.fillDflt)}}}return c}}}),Wv=Ee((e,t)=>{var n=ao(),r=d2().hasColorscale,a=kh(),i=Hc();t.exports=function(e,t,o,s,l,c={}){var u=i.isBubble(e),d=(e.line||{}).color;(d&&(o=d),l("marker.symbol"),l("marker.opacity",u?.7:1),l("marker.size"),c.noAngle||(l("marker.angle"),c.noAngleRef||l("marker.angleref"),c.noStandOff||l("marker.standoff")),l("marker.color",o),r(e,"marker")&&a(e,t,s,l,{prefix:"marker.",cLetter:"c"}),c.noSelect||(l("selected.marker.color"),l("unselected.marker.color"),l("selected.marker.size"),l("unselected.marker.size")),c.noLine||(l("marker.line.color",d&&!Array.isArray(d)&&t.marker.color!==d?d:u?n.background:n.defaultLine),r(e,"marker.line")&&a(e,t,s,l,{prefix:"marker.line.",cLetter:"c"}),l("marker.line.width",u?1:0),c.noLineDash||l("marker.line.dash")),u&&(l("marker.sizeref"),l("marker.sizemin"),l("marker.sizemode")),c.gradient)&&("none"!==l("marker.gradient.type")&&l("marker.gradient.color"))}}),Yg=Ee((e,t)=>{var n=Fr().isArrayOrTypedArray,r=d2().hasColorscale,a=kh();t.exports=function(e,t,i,o,s,l){l||(l={});var c=(e.marker||{}).color;(c&&c._inputArray&&(c=c._inputArray),s("line.color",i),r(e,"line"))?a(e,t,o,s,{prefix:"line.",cLetter:"c"}):s("line.color",!n(c)&&c||i);s("line.width"),l.noDash||s("line.dash"),l.backoff&&s("line.backoff")}}),kS=Ee((e,t)=>{t.exports=function(e,t,n){"spline"===n("line.shape")&&n("line.smoothing")}}),Zg=Ee((e,t)=>{var n=Fr();t.exports=function(e,t,r,a,i){i=i||{},a("textposition"),n.coerceFont(a,"textfont",i.font||r.font,i),i.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}}),ib=Ee((e,t)=>{var n=ao(),r=Fr().isArrayOrTypedArray;t.exports=function(e,t,a,i,o){o||(o={});var s,l=!1;if(t.marker){var c=t.marker.color,u=(t.marker.line||{}).color;c&&!r(c)?l=c:u&&!r(u)&&(l=u)}if(o.moduleHasFillgradient&&"none"!==i("fillgradient.type")){i("fillgradient.start"),i("fillgradient.stop");var d=i("fillgradient.colorscale");d&&(s=function(e){for(var t=n.interpolate(e[0][1],e[1][1],.5),r=2;r<e.length;r++){var a=n.interpolate(e[r-1][1],e[r][1],.5);t=n.interpolate(t,a,e[r-1][0]/e[r][0])}return t}(d))}i("fillcolor",n.addOpacity((t.line||{}).color||l||s||a,.5))}}),vBe=Ee((e,t)=>{var n=Fr(),r=vo(),a=Id(),i=S3(),o=Hc(),s=SS(),l=ab(),c=nBe(),u=Wv(),d=Yg(),p=kS(),h=Zg(),f=ib(),m=Fr().coercePattern;t.exports=function(e,t,g,y){function b(r,i){return n.coerce(e,t,a,r,i)}var v=s(e,t,y,b);if(v||(t.visible=!1),t.visible){l(e,t,y,b),b("xhoverformat"),b("yhoverformat"),b("zorder");var M=c(e,t,y,b);"group"===y.scattermode&&void 0===t.orientation&&b("orientation","v");var x=!M&&v<i.PTS_LINESONLY?"lines+markers":"lines";b("text"),b("hovertext"),b("mode",x),o.hasMarkers(t)&&u(e,t,g,y,b,{gradient:!0}),o.hasLines(t)&&(d(e,t,g,y,b,{backoff:!0}),p(e,t,b),b("connectgaps"),b("line.simplify")),o.hasText(t)&&(b("texttemplate"),b("texttemplatefallback"),h(e,t,y,b));var z=[];(o.hasMarkers(t)||o.hasText(t))&&(b("cliponaxis"),b("marker.maxdisplayed"),z.push("points")),b("fill",M?M.fillDflt:"none"),"none"!==t.fill&&(f(e,t,g,b,{moduleHasFillgradient:!0}),o.hasLines(t)||p(e,t,b),m(b,"fillpattern",t.fillcolor,!1));var _=(t.line||{}).color,A=(t.marker||{}).color;("tonext"===t.fill||"toself"===t.fill)&&z.push("fills"),b("hoveron",z.join("+")||"points"),"fills"!==t.hoveron&&(b("hovertemplate"),b("hovertemplatefallback"));var O=r.getComponentMethod("errorbars","supplyDefaults");O(e,t,_||A||g,{axis:"y"}),O(e,t,_||A||g,{axis:"x",inherit:"y"}),n.coerceSelectionMarkerOpacity(t,b)}}}),Fw=Ee((e,t)=>{var n=Pw().getAxisGroup;t.exports=function(e,t,r,a,i){var o=t.orientation,s=t[{v:"x",h:"y"}[o]+"axis"],l=n(r,s)+o,c=r._alignmentOpts||{},u=a("alignmentgroup"),d=c[l];d||(d=c[l]={});var p=d[u];p?p.traces.push(t):p=d[u]={traces:[t],alignmentIndex:Object.keys(d).length,offsetGroups:{}};var h=a("offsetgroup")||"",f=p.offsetGroups,m=f[h];t._offsetIndex=0,("group"!==i||h)&&(m||(m=f[h]={offsetIndex:Object.keys(f).length}),t._offsetIndex=m.offsetIndex)}}),M1e=Ee((e,t)=>{var n=Fr(),r=Fw(),a=Id();t.exports=function(e,t){var i,o,s,l=t.scattermode;function c(e){return n.coerce(o._input,o,a,e)}if("group"===t.scattermode)for(s=0;s<e.length;s++)"scatter"===(o=e[s]).type&&(i=o._input,r(i,o,t,c,l));for(s=0;s<e.length;s++){var u=e[s];if("scatter"===u.type){var d=u.fill;if("none"!==d&&"toself"!==d&&(u.opacity=void 0,"tonexty"===d||"tonextx"===d))for(var p=s-1;p>=0;p--){var h=e[p];if("scatter"===h.type&&h.xaxis===u.xaxis&&h.yaxis===u.yaxis){h.opacity=void 0;break}}}}}}),MBe=Ee((e,t)=>{var n=Fr(),r=MH();t.exports=function(e,t){var a,i,o="group"===t.barmode;"group"===t.scattermode&&(a="scattergap",i=o?t.bargap:.2,n.coerce(e,t,r,a,i))}}),ob=Ee((e,t)=>{var n=xs(),r=Fr(),a=r.dateTime2ms,i=r.incrementMonth,o=T0().ONEAVGMONTH;t.exports=function(e,t,r,s){if("date"!==t.type)return{vals:s};var l=e[r+"periodalignment"];if(!l)return{vals:s};var c,u=e[r+"period"];if(n(u)){if((u=+u)<=0)return{vals:s}}else if("string"==typeof u&&"M"===u.charAt(0)){var d=+u.substring(1);if(!(d>0&&Math.round(d)===d))return{vals:s};c=d}for(var p=t.calendar,h="start"===l,f="end"===l,m=e[r+"period0"],g=a(m,p)||0,y=[],b=[],v=[],M=s.length,x=0;x<M;x++){var z,_,A,O=s[x];if(c){for(z=Math.round((O-g)/(c*o)),A=i(g,c*z,p);A>O;)A=i(A,-c,p);for(;A<=O;)A=i(A,c,p);_=i(A,-c,p)}else{for(A=g+(z=Math.round((O-g)/u))*u;A>O;)A-=u;for(;A<=O;)A+=u;_=A-u}y[x]=h?_:f?A:(_+A)/2,b[x]=_,v[x]=A}return{vals:y,starts:b,ends:v}}}),$g=Ee((e,t)=>{var n=d2().hasColorscale,r=f2(),a=Hc();t.exports=function(e,t){a.hasLines(t)&&n(t,"line")&&r(e,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),a.hasMarkers(t)&&(n(t,"marker")&&r(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),n(t,"marker.line")&&r(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}}),E3=Ee((e,t)=>{var n=Fr();t.exports=function(e,t){for(var r=0;r<e.length;r++)e[r].i=r;n.mergeArray(t.text,e,"tx"),n.mergeArray(t.texttemplate,e,"txt"),n.mergeArray(t.hovertext,e,"htx"),n.mergeArray(t.customdata,e,"data"),n.mergeArray(t.textposition,e,"tp"),t.textfont&&(n.mergeArrayCastPositive(t.textfont.size,e,"ts"),n.mergeArray(t.textfont.color,e,"tc"),n.mergeArray(t.textfont.family,e,"tf"),n.mergeArray(t.textfont.weight,e,"tw"),n.mergeArray(t.textfont.style,e,"ty"),n.mergeArray(t.textfont.variant,e,"tv"),n.mergeArray(t.textfont.textcase,e,"tC"),n.mergeArray(t.textfont.lineposition,e,"tE"),n.mergeArray(t.textfont.shadow,e,"tS"));var a=t.marker;if(a){n.mergeArrayCastPositive(a.size,e,"ms"),n.mergeArrayCastPositive(a.opacity,e,"mo"),n.mergeArray(a.symbol,e,"mx"),n.mergeArray(a.angle,e,"ma"),n.mergeArray(a.standoff,e,"mf"),n.mergeArray(a.color,e,"mc");var i=a.line;a.line&&(n.mergeArray(i.color,e,"mlc"),n.mergeArrayCastPositive(i.width,e,"mlw"),n.mergeArray(i.dash,e,"mld"));var o=a.gradient;o&&"none"!==o.type&&(n.mergeArray(o.type,e,"mgt"),n.mergeArray(o.color,e,"mgc"))}}}),Kg=Ee((e,t)=>{var n=Fr();t.exports=function(e,t){n.isArrayOrTypedArray(t.selectedpoints)&&n.tagSelected(e,t)}}),Jg=Ee((e,t)=>{var n=xs(),r=Fr(),a=es(),i=ob(),o=T0().BADNUM,s=Hc(),l=$g(),c=E3(),u=Kg();function d(e,t,n,r,i,o,l){var c=t._length,u=e._fullLayout,d=n._id,p=r._id,h=u._firstScatter[f(t)]===t.uid,g=(m(t,u,n,r)||{}).orientation,y=t.fill;n._minDtick=0,r._minDtick=0;var b={padded:!0},v={padded:!0};l&&(b.ppad=v.ppad=l);var M=c<2||i[0]!==i[c-1]||o[0]!==o[c-1];M&&("tozerox"===y||"tonextx"===y&&(h||"h"===g))?b.tozero=!0:!(t.error_y||{}).visible&&("tonexty"===y||"tozeroy"===y||!s.hasMarkers(t)&&!s.hasText(t))&&(b.padded=!1,b.ppad=0),M&&("tozeroy"===y||"tonexty"===y&&(h||"v"===g))?v.tozero=!0:("tonextx"===y||"tozerox"===y)&&(v.padded=!1),d&&(t._extremes[d]=a.findExtremes(n,i,b)),p&&(t._extremes[p]=a.findExtremes(r,o,v))}function p(e,t){if(s.hasMarkers(e)){var n,i=e.marker,o=1.6*(e.marker.sizeref||1);if(n="area"===e.marker.sizemode?function(e){return Math.max(Math.sqrt((e||0)/o),3)}:function(e){return Math.max((e||0)/o,3)},r.isArrayOrTypedArray(i.size)){var l={type:"linear"};a.setConvert(l);for(var c=l.makeCalcdata(e.marker,"size"),u=new Array(t),d=0;d<t;d++)u[d]=n(c[d]);return u}return n(i.size)}}function h(e,t){var n=f(t),r=e._firstScatter;r[n]||(r[n]=t.uid)}function f(e){var t=e.stackgroup;return e.xaxis+e.yaxis+e.type+(t?"-"+t:"")}function m(e,t,n,r){var a=e.stackgroup;if(a){var i=t._scatterStackOpts[n._id+r._id][a],o="v"===i.orientation?r:n;if("linear"===o.type||"log"===o.type)return i}}t.exports={calc:function(e,t){var s,f,g,y,b,v,M=e._fullLayout,x=t._xA=a.getFromId(e,t.xaxis||"x","x"),z=t._yA=a.getFromId(e,t.yaxis||"y","y"),_=x.makeCalcdata(t,"x"),A=z.makeCalcdata(t,"y"),O=i(t,x,"x",_),w=i(t,z,"y",A),k=O.vals,T=w.vals,S=t._length,C=new Array(S),E=t.ids,q=m(t,M,x,z),D=!1;h(M,t);var R,L="x",I="y";q?(r.pushUnique(q.traceIndices,t.index),(s="v"===q.orientation)?(I="s",R="x"):(L="s",R="y"),b="interpolate"===q.stackgaps):d(e,t,x,z,k,T,p(t,S));var W=!!t.xperiodalignment,N=!!t.yperiodalignment;for(f=0;f<S;f++){var P=C[f]={},B=n(k[f]),F=n(T[f]);B&&F?(P[L]=k[f],P[I]=T[f],W&&(P.orig_x=_[f],P.xEnd=O.ends[f],P.xStart=O.starts[f]),N&&(P.orig_y=A[f],P.yEnd=w.ends[f],P.yStart=w.starts[f])):q&&(s?B:F)?(P[R]=s?k[f]:T[f],P.gap=!0,b?(P.s=o,D=!0):P.s=0):P[L]=P[I]=o,E&&(P.id=String(E[f]))}if(c(C,t),l(e,t),u(C,t),q){for(f=0;f<C.length;)C[f][R]===o?C.splice(f,1):f++;if(r.sort(C,function(e,t){return e[R]-t[R]||e.i-t.i}),D){for(f=0;f<C.length-1&&C[f].gap;)f++;for((v=C[f].s)||(v=C[f].s=0),g=0;g<f;g++)C[g].s=v;for(y=C.length-1;y>f&&C[y].gap;)y--;for(v=C[y].s,g=C.length-1;g>y;g--)C[g].s=v;for(;f<y;)if(C[++f].gap){for(g=f+1;C[g].gap;)g++;for(var j=C[f-1][R],U=C[f-1].s,V=(C[g].s-U)/(C[g][R]-j);f<g;)C[f].s=U+(C[f][R]-j)*V,f++}}}return C},calcMarkerSize:p,calcAxisExpansion:d,setFirstScatter:h,getStackOpts:m}}),PBe=Ee((e,t)=>{t.exports=r;var n=Fr().distinctVals;function r(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,a=t.posAxis._id.charAt(0),i=[],o=0;o<e.length;o++){for(var s=e[o],l=0;l<s.length;l++){var c=s[l],u=c.p;void 0===u&&(u=c[a]),void 0!==u&&i.push(u)}s[0]&&s[0].width1&&(r=Math.min(s[0].width1,r))}this.positions=i;var d=n(i);this.distinctPositions=d.vals,1===d.vals.length&&r!==1/0?this.minDiff=r:this.minDiff=Math.min(d.minDiff,r);var p=(t.posAxis||{}).type;("category"===p||"multicategory"===p)&&(this.minDiff=1),this.binWidth=this.minDiff,this.bins={}}r.prototype.put=function(e,t,n){var r=this.getLabel(e,t,n),a=this.bins[r]||0;return this.bins[r]=a+n,a},r.prototype.get=function(e,t,n){var r=this.getLabel(e,t,n);return this.bins[r]||0},r.prototype.getLabel=function(e,t,n){return(n<0&&this.sepNegVal?"v":"^")+(this.overlapNoMerge?e:Math.round(e/this.binWidth))+"g"+t}}),t4=Ee((e,t)=>{t.exports={TEXTPAD:3,eventDataKeys:["value","label"]}}),Bw=Ee((e,t)=>{var n=xs(),{isArrayOrTypedArray:r}=Fr(),{BADNUM:a}=T0(),i=vo(),o=es(),{getAxisGroup:s}=Pw(),l=PBe(),{TEXTPAD:c}=t4(),{LINE_SPACING:u}=lh(),{BR_TAG_ALL:d}=q1();function p(e,t,i,s,c){if(s.length){var u,d,p,m;switch(function(e,t){var a,i;for(a=0;a<t.length;a++){var o,s=t[a],l=s[0].trace,c="funnel"===l.type?l._base:l.base,u="h"===l.orientation?l.xcalendar:l.ycalendar,d="category"===e.type||"multicategory"===e.type?function(){return null}:e.d2c;if(r(c)){for(i=0;i<Math.min(c.length,s.length);i++)o=d(c[i],0,u),n(o)?(s[i].b=+o,s[i].hasB=1):s[i].b=0;for(;i<s.length;i++)s[i].b=0}else{o=d(c,0,u);var p=n(o);for(o=p?o:0,i=0;i<s.length;i++)s[i].b=o,p&&(s[i].hasB=1)}}}(i,s),c.mode){case"overlay":h(e,t,i,s,c);break;case"group":for(u=[],d=[],p=0;p<s.length;p++)void 0===(m=s[p])[0].trace.offset?d.push(m):u.push(m);d.length&&function(e,t,n,r,i){var o=new l(r,{posAxis:t,sepNegVal:!1,overlapNoMerge:!i.norm});f(e,t,o,i),function(e,t){for(var n=e.traces,r=0;r<n.length;r++){var i=n[r],o=i[0].trace,s=i[0].t.offsetindex;if(void 0===o.base)for(var c=new l([i],{posAxis:t,sepNegVal:!0,overlapNoMerge:!0}),u=0;u<i.length;u++){var d=i[u];if(d.p!==a){var p=c.put(d.p,s,d.b+d.s);p&&(d.b=p)}}}}(o,t),i.norm?(y(o),b(n,o,i)):g(n,o)}(e,t,i,d,c),u.length&&h(e,t,i,u,c);break;case"stack":case"relative":for(u=[],d=[],p=0;p<s.length;p++)void 0===(m=s[p])[0].trace.base?d.push(m):u.push(m);(function(e){if(!(e.length<2)){var t,r,a,i,o,s;for(t=0;t<e.length&&void 0===(i=(r=e[t][0].trace).marker?r.marker.cornerradius:void 0);t++);if(void 0!==i)for(o=n(i)?+i:+i.slice(0,-1),s=n(i)?"px":"%",t=0;t<e.length;t++)(a=e[t][0].t).cornerradiusvalue=o,a.cornerradiusform=s}})(d),d.length&&function(e,t,n,r,i){var s=new l(r,{posAxis:t,sepNegVal:"relative"===i.mode,overlapNoMerge:!(i.norm||"stack"===i.mode||"relative"===i.mode)});f(e,t,s,i),function(e,t,n){var r,i,s,l,c,u,d,p=M(e),h=t.traces;for(l=0;l<h.length;l++)if(r=h[l],"funnel"===(i=r[0].trace).type)for(d=r[0].t.offsetindex,c=0;c<r.length;c++)(u=r[c]).s!==a&&t.put(u.p,d,-.5*u.s);for(l=0;l<h.length;l++){s="funnel"===(i=(r=h[l])[0].trace).type,d="barpolar"===i.type?0:r[0].t.offsetindex;var f=[];for(c=0;c<r.length;c++)if((u=r[c]).s!==a){var m;m=s?u.s:u.s+u.b;var g=t.put(u.p,d,m),y=g+m;u.b=g,u[p]=y,n.norm||(f.push(y),u.hasB&&f.push(g))}if(!n.norm){let{ppadminus:t,ppadplus:n}=v(i,r);i._extremes[e._id]=o.findExtremes(e,f,{tozero:!0,padded:!0,ppadplus:n,ppadminus:t})}}}(n,s,i);for(var c=0;c<r.length;c++)for(var u=r[c],d=u[0].t.offsetindex,p=0;p<u.length;p++){var h=u[p];if(h.s!==a)h.b+h.s===s.get(h.p,d,h.s)&&(h._outmost=!0)}i.norm&&b(n,s,i)}(e,t,i,d,c),u.length&&h(e,t,i,u,c)}(function(e){var t,r,a,i,o,s,l;for(t=0;t<e.length;t++)r=e[t],a=r[0].trace,void 0===(i=r[0].t).cornerradiusvalue&&void 0!==(o=a.marker?a.marker.cornerradius:void 0)&&(s=n(o)?+o:+o.slice(0,-1),l=n(o)?"px":"%",i.cornerradiusvalue=s,i.cornerradiusform=l)})(s),function(e,t){var a,i,o,s=M(t),l={},c=1/0,u=-1/0;for(a=0;a<e.length;a++)for(o=e[a],i=0;i<o.length;i++){var d=o[i].p;n(d)&&(c=Math.min(c,d),u=Math.max(u,d))}var p=1e4/(u-c),h=l.round=function(e){return String(Math.round(p*(e-c)))},f={},m={},g=e.some(function(e){var t=e[0].trace;return"marker"in t&&t.marker.cornerradius});for(a=0;a<e.length;a++){(o=e[a])[0].t.extents=l;var y=o[0].t.poffset,b=r(y);for(i=0;i<o.length;i++){var v=o[i],x=v[s]-v.w/2;if(n(x)){var z=v[s]+v.w/2,_=h(v.p);l[_]?l[_]=[Math.min(x,l[_][0]),Math.max(z,l[_][1])]:l[_]=[x,z]}if(v.p0=v.p+(b?y[i]:y),v.p1=v.p0+v.w,v.s0=v.b,v.s1=v.s0+v.s,g){var A=Math.min(v.s0,v.s1)||0,O=Math.max(v.s0,v.s1)||0,w=v[s];f[w]=w in f?Math.min(f[w],A):A,m[w]=w in m?Math.max(m[w],O):O}}}g&&function(e,t,n,r){for(var a=M(r),i=0;i<e.length;i++)for(var o=e[i],s=0;s<o.length;s++){var l=o[s],c=l[a];l._sMin=t[c],l._sMax=n[c]}}(e,f,m,t)}(s,t)}}function h(e,t,n,r,a){for(var i=0;i<r.length;i++){var o=r[i],s=new l([o],{posAxis:t,sepNegVal:!1,overlapNoMerge:!a.norm});f(e,t,s,a),a.norm?(y(s),b(n,s,a)):g(n,s)}}function f(e,t,a,i){var o,l,c,u,d=e._fullLayout,p=a.positions,h=a.distinctPositions,f=a.minDiff,g=a.traces,y=g.length,b=p.length!==h.length,v=f*(1-i.gap);if("angularaxis"===t._id)c=-(l=(o=v)*(1-(i.groupgap||0)))/2;else{var x=s(d,t._id)+g[0][0].trace.orientation;u=d._alignmentOpts[x]||{}}for(var z=0;z<y;z++){var _=g[z],A=_[0].trace;if("angularaxis"!==t._id){var O=u[A.alignmentgroup]||{},w=Object.keys(O.offsetGroups||{}).length;l=(o=w?v/w:b?v/y:v)*(1-(i.groupgap||0)),c=w?((2*A._offsetIndex+1-w)*o-l)/2:b?((2*z+1-y)*o-l)/2:-l/2}var k=_[0].t;k.barwidth=l,k.offsetindex=A._offsetIndex||0,k.poffset=c,k.bargroupwidth=v,k.bardelta=f}a.binWidth=g[0][0].t.barwidth/100,function(e){var t,a,i=e.traces;for(t=0;t<i.length;t++){var o,s=i[t],l=s[0],c=l.trace,u=l.t,d=c._offset||c.offset,p=u.poffset;if(r(d)){for(o=Array.prototype.slice.call(d,0,s.length),a=0;a<o.length;a++)n(o[a])||(o[a]=p);for(a=o.length;a<s.length;a++)o.push(p);u.poffset=o}else void 0!==d&&(u.poffset=d);var h=c._width||c.width,f=u.barwidth;if(r(h)){var m=Array.prototype.slice.call(h,0,s.length);for(a=0;a<m.length;a++)n(m[a])||(m[a]=f);for(a=m.length;a<s.length;a++)m.push(f);if(u.barwidth=m,void 0===d){for(o=[],a=0;a<s.length;a++)o.push(p+(f-m[a])/2);u.poffset=o}}else void 0!==h&&(u.barwidth=h,void 0===d&&(u.poffset=p+(f-h)/2))}}(a),function(e,t){for(var n=t.traces,a=M(e),i=0;i<n.length;i++)for(var o=n[i],s=o[0].t,l=s.poffset,c=r(l),u=s.barwidth,d=r(u),p=0;p<o.length;p++){var h=o[p],f=h.w=d?u[p]:u;void 0===h.p&&(h.p=h[a],h["orig_"+a]=h[a]);var m=(c?l[p]:l)+f/2;h[a]=h.p+m}}(t,a),"angularaxis"===t._id?m(t,a):m(t,a,b)}function m(e,t,n){var a=t.traces,i=t.minDiff/2;o.minDtick(e,t.minDiff,t.distinctPositions[0],n);for(var s=0;s<a.length;s++){var l,c,u,d,p=a[s],h=p[0],f=h.trace,m=[];for(d=0;d<p.length;d++)c=(l=p[d]).p-i,u=l.p+i,m.push(c,u);if(f.width||f.offset){var g=h.t,y=g.poffset,b=g.barwidth,v=r(y),M=r(b);for(d=0;d<p.length;d++){l=p[d];var x=v?y[d]:y,z=M?b[d]:b;u=(c=l.p+x)+z,m.push(c,u)}}f._extremes[e._id]=o.findExtremes(e,m,{padded:!1})}}function g(e,t){for(var n=t.traces,r=M(e),a=0;a<n.length;a++){for(var i=n[a],s=i[0].trace,l="scatter"===s.type,c="v"===s.orientation,u=[],d=!1,p=0;p<i.length;p++){var h=i[p],f=l?0:h.b,m=l?c?h.y:h.x:f+h.s;h[r]=m,u.push(m),h.hasB&&u.push(f),(!h.hasB||!h.b)&&(d=!0)}let{ppadminus:t,ppadplus:g}=v(s,i);s._extremes[e._id]=o.findExtremes(e,u,{tozero:d,padded:!0,ppadplus:g,ppadminus:t})}}function y(e){for(var t=e.traces,n=0;n<t.length;n++)for(var r=t[n],i=r[0].t.offsetindex,o=0;o<r.length;o++){var s=r[o];s.s!==a&&e.put(s.p,i,s.b+s.s)}}function b(e,t,r){var i=t.traces,s=M(e),l="fraction"===r.norm?1:100,c=l/1e9,u=e.l2c(e.c2l(0)),d="stack"===r.mode?l:u;function p(t){return n(e.c2l(t))&&(t<u-c||t>d+c||!n(u))}for(var h=0;h<i.length;h++){for(var f=i[h],m=f[0].t.offsetindex,g=f[0].trace,y=[],b=!1,x=!1,z=0;z<f.length;z++){var _=f[z];if(_.s!==a){var A=Math.abs(l/t.get(_.p,m,_.s));_.b*=A,_.s*=A;var O=_.b,w=O+_.s;_[s]=w,y.push(w),x=x||p(w),_.hasB&&(y.push(O),x=x||p(O)),(!_.hasB||!_.b)&&(b=!0)}}let{ppadminus:n,ppadplus:r}=v(g,f);g._extremes[e._id]=o.findExtremes(e,y,{tozero:b,padded:x,ppadplus:r,ppadminus:n})}}function v(e,t){if("v"===e.orientation&&(e.text||e.texttemplate)&&"outside"===e.textposition&&("auto"===e.textangle||0===e.textangle)){let a=function(e){return e&&"string"==typeof e?(e.match(d)||[]).length+1:0};var n;n=e.texttemplate?a(e.texttemplate):r(e.text)?Math.max(...e.text.map(e=>a(e))):a(e.text);let i=e.outsidetextfont.size*u*n+c;return{ppadplus:t.some(e=>e.s<0)?i:0,ppadminus:t.some(e=>e.s>=0)?i:0}}return{ppadplus:void 0,ppadminus:void 0}}function M(e){return e._id.charAt(0)}t.exports={crossTraceCalc:function(e,t){for(var n=t.xaxis,r=t.yaxis,a=e._fullLayout,o=e._fullData,s=e.calcdata,l=[],c=[],u=0;u<o.length;u++){var d=o[u];if(!0===d.visible&&i.traceIs(d,"bar")&&d.xaxis===n._id&&d.yaxis===r._id&&("h"===d.orientation?l.push(s[u]):c.push(s[u]),d._computePh))for(var h=e.calcdata[u],f=0;f<h.length;f++)"function"==typeof h[f].ph0&&(h[f].ph0=h[f].ph0()),"function"==typeof h[f].ph1&&(h[f].ph1=h[f].ph1())}var m={xCat:"category"===n.type||"multicategory"===n.type,yCat:"category"===r.type||"multicategory"===r.type,mode:a.barmode,norm:a.barnorm,gap:a.bargap,groupgap:a.bargroupgap};p(e,n,r,c,m),p(e,r,n,l,m)},setGroupPositions:p}}),jBe=Ee((e,t)=>{var n=Jg(),r=Bw().setGroupPositions;function a(e,t,n,r,a,i,o){a[r]=!0;var s={i:null,gap:!0,s:0};if(s[o]=n,e.splice(t,0,s),t&&n===e[t-1][o]){var l=e[t-1];s.s=l.s,s.i=l.i,s.gap=l.gap}else i&&(s.s=function(e,t,n,r){var a=e[t-1],i=e[t+1];return i?a?a.s+(i.s-a.s)*(n-a[r])/(i[r]-a[r]):i.s:a.s}(e,t,n,o));t||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}t.exports=function(e,t){"group"===e._fullLayout.scattermode&&function(e,t){for(var n=t.xaxis,a=t.yaxis,i=e._fullLayout,o=e._fullData,s=e.calcdata,l=[],c=[],u=0;u<o.length;u++){var d=o[u];!0===d.visible&&"scatter"===d.type&&d.xaxis===n._id&&d.yaxis===a._id&&("h"===d.orientation?l.push(s[u]):"v"===d.orientation&&c.push(s[u]))}var p={mode:i.scattermode,gap:i.scattergap};r(e,n,a,c,p),r(e,a,n,l,p)}(e,t);var i=t.xaxis,o=t.yaxis,s=i._id+o._id,l=e._fullLayout._scatterStackOpts[s];if(l){var c,u,d,p,h,f,m,g,y,b,v,M,x,z,_,A=e.calcdata;for(var O in l){var w=(b=l[O]).traceIndices;if(w.length){for(v="interpolate"===b.stackgaps,M=b.groupnorm,"v"===b.orientation?(x="x",z="y"):(x="y",z="x"),_=new Array(w.length),c=0;c<_.length;c++)_[c]=!1;f=A[w[0]];var k=new Array(f.length);for(c=0;c<f.length;c++)k[c]=f[c][x];for(c=1;c<w.length;c++){for(h=A[w[c]],u=d=0;u<h.length;u++){for(m=h[u][x];m>k[d]&&d<k.length;d++)a(h,u,k[d],c,_,v,x),u++;if(m!==k[d]){for(p=0;p<c;p++)a(A[w[p]],d,m,p,_,v,x);k.splice(d,0,m)}d++}for(;d<k.length;d++)a(h,u,k[d],c,_,v,x),u++}var T=k.length;for(u=0;u<f.length;u++){for(g=f[u][z]=f[u].s,c=1;c<w.length;c++)(h=A[w[c]])[0].trace._rawLength=h[0].trace._length,h[0].trace._length=T,g+=h[u].s,h[u][z]=g;if(M)for(y=("fraction"===M?g:g/100)||1,c=0;c<w.length;c++){var S=A[w[c]][u];S[z]/=y,S.sNorm=S.s/y}}for(c=0;c<w.length;c++){var C=(h=A[w[c]])[0].trace,E=n.calcMarkerSize(C,C._rawLength),q=Array.isArray(E);if(E&&_[c]||q){var D=E;for(E=new Array(T),u=0;u<T;u++)E[u]=h[u].gap?0:q?D[h[u].i]:D}var R=new Array(T),L=new Array(T);for(u=0;u<T;u++)R[u]=h[u].x,L[u]=h[u].y;n.calcAxisExpansion(e,C,i,o,R,L,E),h[0].t.orientation=b.orientation}}}}}}),R1e=Ee((e,t)=>{var n=vs(),r=T0(),a=r.BADNUM,i=r.LOG_CLIP,o=i+.5,s=i-.5,l=Fr(),c=l.segmentsIntersect,u=l.constrain,d=S3();t.exports=function(e,t){var r,i,p,h,f,m,g,y,b,v,M,x,z,_,A,O,w,k,T=t.trace||{},S=t.xaxis,C=t.yaxis,E="log"===S.type,q="log"===C.type,D=S._length,R=C._length,L=t.backoff,I=T.marker,W=t.connectGaps,N=t.baseTolerance,P=t.shape,B="linear"===P,F=T.fill&&"none"!==T.fill,j=[],U=d.minTolerance,V=e.length,H=new Array(V),X=0;function G(n){var r=e[n];if(!r)return!1;var i=t.linearized?S.l2p(r.x):S.c2p(r.x),l=t.linearized?C.l2p(r.y):C.c2p(r.y);if(i===a){if(E&&(i=S.c2p(r.x,!0)),i===a)return!1;q&&l===a&&(i*=Math.abs(S._m*R*(S._m>0?o:s)/(C._m*D*(C._m>0?o:s)))),i*=1e3}if(l===a){if(q&&(l=C.c2p(r.y,!0)),l===a)return!1;l*=1e3}return[i,l]}function Y(e,t,n,r){var a=n-e,i=r-t,o=.5-e,s=.5-t,l=a*a+i*i,c=a*o+i*s;if(c>0&&c<l){var u=o*i-s*a;if(u*u<l)return!0}}function Z(e,t){var n=e[0]/D,r=e[1]/R,a=Math.max(0,-n,n-1,-r,r-1);return a&&void 0!==w&&Y(n,r,w,k)&&(a=0),a&&t&&Y(n,r,t[0]/D,t[1]/R)&&(a=0),(1+d.toleranceGrowth*a)*N}function $(e,t){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}var J,Q,K,ee,te,ne,re,ae=d.maxScreensAway,ie=-D*ae,oe=D*(1+ae),se=-R*ae,le=R*(1+ae),ce=[[ie,se,oe,se],[oe,se,oe,le],[oe,le,ie,le],[ie,le,ie,se]];function ue(e){if(e[0]<ie||e[0]>oe||e[1]<se||e[1]>le)return[u(e[0],ie,oe),u(e[1],se,le)]}function de(e,t){if(e[0]===t[0]&&(e[0]===ie||e[0]===oe)||e[1]===t[1]&&(e[1]===se||e[1]===le))return!0}function pe(e,t,n){return function(r,a){var i=ue(r),o=ue(a),s=[];if(i&&o&&de(i,o))return s;i&&s.push(i),o&&s.push(o);var c=2*l.constrain((r[e]+a[e])/2,t,n)-((i||r)[e]+(o||a)[e]);c&&((i&&o?c>0==i[e]>o[e]?i:o:i||o)[e]+=c);return s}}function he(e){var t=e[0],n=e[1],r=t===H[X-1][0],a=n===H[X-1][1];if(!r||!a)if(X>1){var i=t===H[X-2][0],o=n===H[X-2][1];r&&(t===ie||t===oe)&&i?o?X--:H[X-1]=e:a&&(n===se||n===le)&&o?i?X--:H[X-1]=e:H[X++]=e}else H[X++]=e}function fe(e){H[X-1][0]!==e[0]&&H[X-1][1]!==e[1]&&he([K,ee]),he(e),te=null,K=ee=0}"linear"===P||"spline"===P?re=function(e,t){for(var n=[],r=0,a=0;a<4;a++){var i=ce[a],o=c(e[0],e[1],t[0],t[1],i[0],i[1],i[2],i[3]);o&&(!r||Math.abs(o.x-n[0][0])>1||Math.abs(o.y-n[0][1])>1)&&(o=[o.x,o.y],r&&$(o,e)<$(n[0],e)?n.unshift(o):n.push(o),r++)}return n}:"hv"===P||"vh"===P?re=function(e,t){var n=[],r=ue(e),a=ue(t);return r&&a&&de(r,a)||(r&&n.push(r),a&&n.push(a)),n}:"hvh"===P?re=pe(0,ie,oe):"vhv"===P&&(re=pe(1,se,le));var me=l.isArrayOrTypedArray(I);function ge(t){if(t&&L&&(t.i=r,t.d=e,t.trace=T,t.marker=me?I[t.i]:I,t.backoff=L),w=t[0]/D,k=t[1]/R,J=t[0]<ie?ie:t[0]>oe?oe:0,Q=t[1]<se?se:t[1]>le?le:0,J||Q){if(X)if(te){var n=re(te,t);n.length>1&&(fe(n[0]),H[X++]=n[1])}else ne=re(H[X-1],t)[0],H[X++]=ne;else H[X++]=[J||t[0],Q||t[1]];var a=H[X-1];J&&Q&&(a[0]!==J||a[1]!==Q)?(te&&(K!==J&&ee!==Q?he(K&&ee?function(e,t){var n=t[0]-e[0],r=(t[1]-e[1])/n;return(e[1]*t[0]-t[1]*e[0])/n>0?[r>0?ie:oe,le]:[r>0?oe:ie,se]}(te,t):[K||J,ee||Q]):K&&ee&&he([K,ee])),he([J,Q])):K-J&&ee-Q&&he([J||K,Q||ee]),te=t,K=J,ee=Q}else te&&fe(re(te,t)[0]),H[X++]=t}for(r=0;r<V;r++)if(i=G(r)){for(X=0,te=null,ge(i),r++;r<V;r++){if(!(h=G(r))){if(W)continue;break}if(B&&t.simplify){var ye=G(r+1);if(v=$(h,i),F&&(0===X||X===V-1)||!(v<Z(h,ye)*U)){for(y=[(h[0]-i[0])/v,(h[1]-i[1])/v],f=i,M=v,x=_=A=0,g=!1,p=h,r++;r<e.length;r++){if(m=ye,ye=G(r+1),!m){if(W)continue;break}if(O=(b=[m[0]-i[0],m[1]-i[1]])[0]*y[1]-b[1]*y[0],_=Math.min(_,O),(A=Math.max(A,O))-_>Z(m,ye))break;p=m,(z=b[0]*y[0]+b[1]*y[1])>M?(M=z,h=m,g=!1):z<x&&(x=z,f=m,g=!0)}if(g?(ge(h),p!==f&&ge(f)):(f!==i&&ge(f),p!==h&&ge(h)),ge(p),r>=e.length||!m)break;ge(m),i=m}}else ge(h)}te&&he([K||te[0],ee||te[1]]),j.push(H.slice(0,X))}var be=P.slice(P.length-1);if(L&&"h"!==be&&"v"!==be){for(var ve=!1,Me=-1,xe=[],ze=0;ze<j.length;ze++)for(var _e=0;_e<j[ze].length-1;_e++){var Ae=j[ze][_e],Oe=j[ze][_e+1],we=n.applyBackoff(Oe,Ae);(we[0]!==Oe[0]||we[1]!==Oe[1])&&(ve=!0),xe[Me+1]||(xe[++Me]=[Ae,[we[0],we[1]]])}return ve?xe:j}return j}}),L1e=Ee((e,t)=>{var n={tonextx:1,tonexty:1,tonext:1};t.exports=function(e,t,r){var a,i,o,s,l,c={},u=!1,d=-1,p=0,h=-1;for(i=0;i<r.length;i++)(o=(a=r[i][0].trace).stackgroup||"")?o in c?l=c[o]:(l=c[o]=p,p++):a.fill in n&&h>=0?l=h:(l=h=p,p++),l<d&&(u=!0),a._groupIndex=d=l;var f=r.slice();u&&f.sort(function(e,t){var n=e[0].trace,r=t[0].trace;return n._groupIndex-r._groupIndex||n.index-r.index});var m={};for(i=0;i<f.length;i++)o=(a=f[i][0].trace).stackgroup||"",!0===a.visible?(a._nexttrace=null,a.fill in n&&(s=m[o],a._prevtrace=s||null,s&&(s._nexttrace=a)),a._ownfill=a.fill&&("tozero"===a.fill.slice(0,6)||"toself"===a.fill||"to"===a.fill.slice(0,2)&&!a._prevtrace),m[o]=a):a._prevtrace=a._nexttrace=a._ownfill=null;return f}}),LS=Ee((e,t)=>{var n=mo(),r=vo(),a=Fr(),i=a.ensureSingle,o=a.identity,s=vs(),l=Hc(),c=R1e(),u=L1e(),d=KD().tester;function p(e,t,u,p,h,f,m){var g,y=e._context.staticPlot;!function(e,t,r,i,o){var s=r.xaxis,c=r.yaxis,u=n.extent(a.simpleMap(s.range,s.r2c)),d=n.extent(a.simpleMap(c.range,c.r2c)),p=i[0].trace;if(l.hasMarkers(p)){var h=p.marker.maxdisplayed;if(0!==h){var f=i.filter(function(e){return e.x>=u[0]&&e.x<=u[1]&&e.y>=d[0]&&e.y<=d[1]}),m=Math.ceil(f.length/h),g=0;o.forEach(function(e,n){var r=e[0].trace;l.hasMarkers(r)&&r.marker.maxdisplayed>0&&n<t&&g++});var y=Math.round(g*m/3+Math.floor(g/3)*m/7.1);i.forEach(function(e){delete e.vis}),f.forEach(function(e,t){0===Math.round((t+y)%m)&&(e.vis=!0)})}}}(0,t,u,p,h);var b=!!m&&m.duration>0;function v(e){return b?e.transition():e}var M=u.xaxis,x=u.yaxis,z=p[0].trace,_=z.line,A=n.select(f),O=i(A,"g","errorbars"),w=i(A,"g","lines"),k=i(A,"g","points"),T=i(A,"g","text");if(r.getComponentMethod("errorbars","plot")(e,O,u,m),!0===z.visible){v(A).style("opacity",z.opacity);var S,C,E,q,D=z.fill.charAt(z.fill.length-1);"x"!==D&&"y"!==D&&(D=""),"y"===D?(E=1,q=x.c2p(0,!0)):"x"===D&&(E=0,q=M.c2p(0,!0)),p[0][u.isRangePlot?"nodeRangePlot3":"node3"]=A;var R="",L=[],I=z._prevtrace,W=null,N=null;I&&(R=I._prevRevpath||"",C=I._nextFill,L=I._ownPolygons,W=I._fillsegments,N=I._fillElement);var P,B,F,j,U,V,H,X,G="",Y="",Z=[];z._polygons=[];var $=[],J=[],Q=a.noop;if(S=z._ownFill,l.hasLines(z)||"none"!==z.fill){C&&C.datum(p),-1!==["hv","vh","hvh","vhv"].indexOf(_.shape)?(F=s.steps(_.shape),j=s.steps(_.shape.split("").reverse().join(""))):F=j="spline"===_.shape?function(e){var t=e[e.length-1];return e.length>1&&e[0][0]===t[0]&&e[0][1]===t[1]?s.smoothclosed(e.slice(1),_.smoothing):s.smoothopen(e,_.smoothing)}:function(e){return"M"+e.join("L")},U=function(e){return j(e.reverse())},J=c(p,{xaxis:M,yaxis:x,trace:z,connectGaps:z.connectgaps,baseTolerance:Math.max(_.width||1,3)/4,shape:_.shape,backoff:_.backoff,simplify:_.simplify,fill:z.fill}),$=new Array(J.length);var K=0;for(g=0;g<J.length;g++){var ee,te=J[g];ee&&D?ee.push.apply(ee,te):(ee=te.slice(),$[K]=ee,K++)}z._fillElement=null,z._fillExclusionElement=N,z._fillsegments=$.slice(0,K),$=z._fillsegments,J.length&&(V=J[0][0].slice(),X=(H=J[J.length-1])[H.length-1].slice()),Q=function(e){return function(t){if(P=F(t),B=U(t),G?D?(G+="L"+P.slice(1),Y=B+"L"+Y.slice(1)):(G+="Z"+P,Y=B+"Z"+Y):(G=P,Y=B),l.hasLines(z)){var r=n.select(this);if(r.datum(p),e)v(r.style("opacity",0).attr("d",P).call(s.lineGroupStyle)).style("opacity",1);else{var a=v(r);a.attr("d",P),s.singleLineStyle(p,a)}}}}}var ne=w.selectAll(".js-line").data(J);v(ne.exit()).style("opacity",0).remove(),ne.each(Q(!1)),ne.enter().append("path").classed("js-line",!0).style("vector-effect",y?"none":"non-scaling-stroke").call(s.lineGroupStyle).each(Q(!0)),s.setClipUrl(ne,u.layerClipId,e);var re=function(){var e=new Array($.length);for(g=0;g<$.length;g++)e[g]=d($[g]);return e},ae=function(e){var t,n;if(e&&0!==e.length){for(t=new Array(e.length-1+$.length),n=0;n<e.length-1;n++)t[n]=d(e[n]);var r=e[e.length-1].slice();for(r.reverse(),n=0;n<$.length;n++)t[e.length-1+n]=d($[n].concat(r))}else for(t=new Array($.length),n=0;n<$.length;n++){var a=$[n][0].slice(),i=$[n][$[n].length-1].slice();a[E]=i[E]=q;var o=[i,a].concat($[n]);t[n]=d(o)}return t};J.length?(S?(S.datum(p),V&&X&&(D?(V[E]=X[E]=q,v(S).attr("d","M"+X+"L"+V+"L"+G.slice(1)).call(s.singleFillStyle,e),Z=ae(null)):(v(S).attr("d",G+"Z").call(s.singleFillStyle,e),Z=re())),z._polygons=Z,z._fillElement=S):C&&("tonext"===z.fill.slice(0,6)&&G&&R?("tonext"===z.fill?(v(C).attr("d",G+"Z"+R+"Z").call(s.singleFillStyle,e),Z=re(),z._polygons=Z.concat(L)):(v(C).attr("d",G+"L"+R.slice(1)+"Z").call(s.singleFillStyle,e),Z=ae(W),z._polygons=Z),z._fillElement=C):oe(C)),z._prevRevpath=Y):(S?oe(S):C&&oe(C),z._prevRevpath=null),z._ownPolygons=Z,k.datum(p),T.datum(p),function(t,r,a){var i,c=a[0].trace,d=l.hasMarkers(c),p=l.hasText(c),h=function(e){if(e.ids)return ue}(c),f=de,m=de;if(d||p){var g=o,y=c.stackgroup,z=y&&"infer zero"===e._fullLayout._scatterStackOpts[M._id+x._id][y].stackgaps;c.marker.maxdisplayed||c._needsCull?g=z?le:se:y&&!z&&(g=ce),d&&(f=g),p&&(m=g)}var _,A=(i=t.selectAll("path.point").data(f,h)).enter().append("path").classed("point",!0);b&&A.call(s.pointStyle,c,e).call(s.translatePoints,M,x).style("opacity",0).transition().style("opacity",1),i.order(),d&&(_=s.makePointStyleFns(c)),i.each(function(t){var r=n.select(this),a=v(r);s.translatePoint(t,a,M,x)?(s.singlePointStyle(t,a,c,_,e),u.layerClipId&&s.hideOutsideRangePoint(t,a,M,x,c.xcalendar,c.ycalendar),c.customdata&&r.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):a.remove()}),b?i.exit().transition().style("opacity",0).remove():i.exit().remove(),(i=r.selectAll("g").data(m,h)).enter().append("g").classed("textpoint",!0).append("text"),i.order(),i.each(function(e){var t=n.select(this),r=v(t.select("text"));s.translatePoint(e,r,M,x)?u.layerClipId&&s.hideOutsideRangePoint(e,t,M,x,c.xcalendar,c.ycalendar):t.remove()}),i.selectAll("text").call(s.textPointStyle,c,e).each(function(e){var t=M.c2p(e.x),r=x.c2p(e.y);n.select(this).selectAll("tspan.line").each(function(){v(n.select(this)).attr({x:t,y:r})})}),i.exit().remove()}(k,T,p);var ie=!1===z.cliponaxis?null:u.layerClipId;s.setClipUrl(k,ie,e),s.setClipUrl(T,ie,e)}function oe(e){v(e).attr("d","M0,0Z")}function se(e){return e.filter(function(e){return!e.gap&&e.vis})}function le(e){return e.filter(function(e){return e.vis})}function ce(e){return e.filter(function(e){return!e.gap})}function ue(e){return e.id}function de(){return!1}}t.exports=function(e,t,r,a,l,c){var d,h,f=!l,m=!!l&&l.duration>0,g=u(e,t,r);((d=a.selectAll("g.trace").data(g,function(e){return e[0].trace.uid})).enter().append("g").attr("class",function(e){return"trace scatter trace"+e[0].trace.uid}).style("stroke-miterlimit",2),d.order(),function(e,t,r){t.each(function(t){var a=i(n.select(this),"g","fills");s.setClipUrl(a,r.layerClipId,e);var l=t[0].trace;l._ownFill=null,l._nextFill=null;var c=[];l._ownfill&&c.push("_ownFill"),l._nexttrace&&c.push("_nextFill");var u=a.selectAll("g").data(c,o);u.enter().append("g"),u.exit().remove(),u.order().each(function(e){l[e]=i(n.select(this),"path","js-fill")})})}(e,d,t),m)?(c&&(h=c()),n.transition().duration(l.duration).ease(l.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).each(function(){a.selectAll("g.trace").each(function(n,r){p(e,r,t,n,g,this,l)})})):d.each(function(n,r){p(e,r,t,n,g,this,l)});f&&d.exit().remove(),a.selectAll("path:not([d])").remove()}}),Wp=Ee((e,t)=>{t.exports={container:"marker",min:"cmin",max:"cmax"}}),Sj=Ee((e,t)=>{var n=es();t.exports=function(e,t,r){var a={},i={_fullLayout:r},o=n.getFromTrace(i,t,"x"),s=n.getFromTrace(i,t,"y"),l=e.orig_x;void 0===l&&(l=e.x);var c=e.orig_y;return void 0===c&&(c=e.y),a.xLabel=n.tickText(o,o.c2l(l),!0).text,a.yLabel=n.tickText(s,s.c2l(c),!0).text,a}}),vm=Ee((e,t)=>{var n=mo(),r=vs(),a=vo();function i(e,t,n){r.pointStyle(e.selectAll("path.point"),t,n)}function o(e,t,n){r.textPointStyle(e.selectAll("text"),t,n)}t.exports={style:function(e){var t=n.select(e).selectAll("g.trace.scatter");t.style("opacity",function(e){return e[0].trace.opacity}),t.selectAll("g.points").each(function(t){i(n.select(this),t.trace||t[0].trace,e)}),t.selectAll("g.text").each(function(t){o(n.select(this),t.trace||t[0].trace,e)}),t.selectAll("g.trace path.js-line").call(r.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(r.fillGroupStyle,e,!1),a.getComponentMethod("errorbars","style")(t)},stylePoints:i,styleText:o,styleOnSelect:function(e,t,n){var a=t[0].trace;a.selectedpoints?(r.selectedPointStyle(n.selectAll("path.point"),a),r.selectedTextStyle(n.selectAll("text"),a)):(i(n,a,e),o(n,a,e))}}}),NS=Ee((e,t)=>{var n=ao(),r=Hc();t.exports=function(e,t){var a,i;if("lines"===e.mode)return(a=e.line.color)&&n.opacity(a)?a:e.fillcolor;if("none"===e.mode)return e.fill?e.fillcolor:"";var o=t.mcc||(e.marker||{}).color,s=t.mlcc||((e.marker||{}).line||{}).color;return(i=o&&n.opacity(o)?o:s&&n.opacity(s)&&(t.mlw||((e.marker||{}).line||{}).width)?s:"")?n.opacity(i)<.3?n.addOpacity(i,.3):i:(a=(e.line||{}).color)&&n.opacity(a)&&r.hasLines(e)&&e.line.width?a:e.fillcolor}}),WS=Ee((e,t)=>{var n=Fr(),r=_d(),a=vo(),i=NS(),o=ao(),s=n.fillText;t.exports=function(e,t,l,c){var u=e.cd,d=u[0].trace,p=e.xa,h=e.ya,f=p.c2p(t),m=h.c2p(l),g=[f,m],y=d.hoveron||"",b=-1!==d.mode.indexOf("markers")?3:.5,v=!!d.xperiodalignment,M=!!d.yperiodalignment;if(-1!==y.indexOf("points")){var x=function(e){var t=Math.max(b,e.mrc||0),n=p.c2p(e.x)-f,r=h.c2p(e.y)-m;return Math.max(Math.sqrt(n*n+r*r)-t,1-b/t)},z=r.getDistanceFunction(c,function(e){if(v){var t=p.c2p(e.xStart),n=p.c2p(e.xEnd);return f>=Math.min(t,n)&&f<=Math.max(t,n)?0:1/0}var r=Math.max(3,e.mrc||0),a=1-1/r,i=Math.abs(p.c2p(e.x)-f);return i<r?a*i/r:i-r+a},function(e){if(M){var t=h.c2p(e.yStart),n=h.c2p(e.yEnd);return m>=Math.min(t,n)&&m<=Math.max(t,n)?0:1/0}var r=Math.max(3,e.mrc||0),a=1-1/r,i=Math.abs(h.c2p(e.y)-m);return i<r?a*i/r:i-r+a},x);if(r.getClosest(u,z,e),!1!==e.index){var _=u[e.index],A=p.c2p(_.x,!0),O=h.c2p(_.y,!0),w=_.mrc||1;e.index=_.i;var k=u[0].t.orientation,T=k&&(_.sNorm||_.s),S="h"===k?T:void 0!==_.orig_x?_.orig_x:_.x,C="v"===k?T:void 0!==_.orig_y?_.orig_y:_.y;return n.extendFlat(e,{color:i(d,_),x0:A-w,x1:A+w,xLabelVal:S,y0:O-w,y1:O+w,yLabelVal:C,spikeDistance:x(_),hovertemplate:d.hovertemplate}),s(_,d,e),a.getComponentMethod("errorbars","hoverInfo")(_,d,e),[e]}}function E(e){if(!e)return!1;var t=e.node();try{var n=new DOMPoint(g[0],g[1]);return t.isPointInFill(n)}catch{var r=t.ownerSVGElement.createSVGPoint();return r.x=g[0],r.y=g[1],t.isPointInFill(r)}}if(-1!==y.indexOf("fills")&&d._fillElement&&(E(d._fillElement)&&!E(d._fillExclusionElement))){var q=function(e){var t,n,r,a,i,o,s,l,c,u=[],d=1/0,f=-1/0,m=1/0,y=-1/0;for(t=0;t<e.length;t++){var b=e[t];b.contains(g)&&(u.push(b),m=Math.min(m,b.ymin),y=Math.max(y,b.ymax))}if(0===u.length)return null;for(n=((m=Math.max(m,0))+(y=Math.min(y,h._length)))/2,t=0;t<u.length;t++)for(a=u[t].pts,r=1;r<a.length;r++)(l=a[r-1][1])>n!=(c=a[r][1])>=n&&(o=a[r-1][0],s=a[r][0],c-l&&(i=o+(s-o)*(n-l)/(c-l),d=Math.min(d,i),f=Math.max(f,i)));return{x0:d=Math.max(d,0),x1:f=Math.min(f,p._length),y0:n,y1:n}}(d._polygons);null===q&&(q={x0:g[0],x1:g[0],y0:g[1],y1:g[1]});var D=o.defaultLine;return o.opacity(d.fillcolor)?D=d.fillcolor:o.opacity((d.line||{}).color)&&(D=d.line.color),n.extendFlat(e,{distance:e.maxHoverDistance,x0:q.x0,x1:q.x1,y0:q.y0,y1:q.y1,color:D,hovertemplate:!1}),delete e.index,d.text&&!n.isArrayOrTypedArray(d.text)?e.text=String(d.text):e.text=d.name,[e]}}}),FS=Ee((e,t)=>{var n=Hc();t.exports=function(e,t){var r,a,i,o,s=e.cd,l=e.xaxis,c=e.yaxis,u=[],d=s[0].trace;if(!n.hasMarkers(d)&&!n.hasText(d))return[];if(!1===t)for(r=0;r<s.length;r++)s[r].selected=0;else for(r=0;r<s.length;r++)a=s[r],i=l.c2p(a.x),o=c.c2p(a.y),null!==a.i&&t.contains([i,o],!1,r,e)?(u.push({pointNumber:a.i,x:l.c2d(a.x),y:c.c2d(a.y)}),a.selected=1):a.selected=0;return u}}),fUe=Ee((e,t)=>{t.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's x coordinates and","a 2D cartesian x axis.","If *x* (the default value), the x coordinates refer to","`layout.xaxis`.","If *x2*, the x coordinates refer to `layout.xaxis2`, and so on."].join(" ")},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's y coordinates and","a 2D cartesian y axis.","If *y* (the default value), the y coordinates refer to","`layout.yaxis`.","If *y2*, the y coordinates refer to `layout.yaxis2`, and so on."].join(" ")}}}),B1e=Ee((e,t)=>{var n=vo().traceIs,r=uS();function a(e){return{v:"x",h:"y"}[e.orientation||"v"]}function i(e,t){var r=a(e),i=n(e,"box-violin"),o=n(e._fullInput||{},"candlestick");return i&&!o&&t===r&&void 0===e[r]&&void 0===e[r+"0"]}t.exports=function(e,t,o,s){o("autotypenumbers",s.autotypenumbersDflt),"-"===o("type",(s.splomStash||{}).type)&&(function(e,t){if("-"===e.type){var o,s=e._id,l=s.charAt(0);-1!==s.indexOf("scene")&&(s=l);var c=function(e,t,n){for(var r=0;r<e.length;r++){var a=e[r];if("splom"===a.type&&a._length>0&&(a["_"+n+"axes"]||{})[t])return a;if((a[n+"axis"]||n)===t){if(i(a,n))return a;if((a[n]||[]).length||a[n+"0"])return a}}}(t,s,l);if(c){if("histogram"===c.type&&l==={v:"y",h:"x"}[c.orientation||"v"])return void(e.type="linear");var u=l+"calendar",d=c[u],p={noMultiCategory:!n(c,"cartesian")||n(c,"noMultiCategory")};if("box"===c.type&&c._hasPreCompStats&&l==={h:"x",v:"y"}[c.orientation||"v"]&&(p.noMultiCategory=!0),p.autotypenumbers=e.autotypenumbers,i(c,l)){var h=a(c),f=[];for(o=0;o<t.length;o++){var m=t[o];!n(m,"box-violin")||(m[l+"axis"]||l)!==s||(void 0!==m[h]?f.push(m[h][0]):void 0!==m.name?f.push(m.name):f.push("text"),m[u]!==d&&(d=void 0))}e.type=r(f,d,p)}else if("splom"===c.type){var g=c.dimensions[c._axesDim[s]];g.visible&&(e.type=r(g.values,d,p))}else e.type=r(c[l]||[c[l+"0"]],d,p)}}}(t,s.data),"-"===t.type?t.type="linear":e.type=t.type)}}),Cj=Ee((e,t)=>{var n=Lp().isTypedArraySpec;t.exports=function(e,t,r,a){if("category"===t.type){var i,o=e.categoryarray,s=Array.isArray(o)&&o.length>0||n(o);s&&(i="array");var l,c=r("categoryorder",i);"array"===c&&(l=r("categoryarray")),!s&&"array"===c&&(c=t.categoryorder="trace"),"trace"===c?t._initialCategories=[]:"array"===c?t._initialCategories=l.slice():(l=function(e,t){var n,r,a,i=t.dataAttr||e._id.charAt(0),o={};if(t.axData)n=t.axData;else for(n=[],r=0;r<t.data.length;r++){var s=t.data[r];s[i+"axis"]===e._id&&n.push(s)}for(r=0;r<n.length;r++){var l=n[r][i];for(a=0;a<l.length;a++){var c=l[a];null!=c&&(o[c]=1)}}return Object.keys(o)}(t,a).sort(),"category ascending"===c?t._initialCategories=l:"category descending"===c&&(t._initialCategories=l.reverse()))}}}),wR=Ee((e,t)=>{var n=Vh().mix,r=oh(),a=Fr();t.exports=function(e,t,i,o){var s=(o=o||{}).dfltColor;function l(n,r){return a.coerce2(e,t,o.attributes,n,r)}var c=l("linecolor",s),u=l("linewidth");i("showline",o.showLine||!!c||!!u)||(delete t.linecolor,delete t.linewidth);var d=l("gridcolor",n(s,o.bgColor,o.blend||r.lightFraction).toRgbString()),p=l("gridwidth"),h=l("griddash");if(i("showgrid",o.showGrid||!!d||!!p||!!h)||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),o.hasMinor){var f=l("minor.gridcolor",n(t.gridcolor,o.bgColor,67).toRgbString()),m=l("minor.gridwidth",t.gridwidth||1),g=l("minor.griddash",t.griddash||"solid");i("minor.showgrid",!!f||!!m||!!g)||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!o.noZeroLine){l("zerolinelayer");var y=l("zerolinecolor",s),b=l("zerolinewidth");i("zeroline",o.showGrid||!!y||!!b)||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}}),TR=Ee((e,t)=>{var n=xs(),r=vo(),a=Fr(),i=Kl(),o=Pp(),s=vp(),l=mw(),c=nS(),u=Nz(),d=Wz(),p=Cj(),h=wR(),f=R0e(),m=g3(),g=sh().WEEKDAY_PATTERN,y=sh().HOUR_PATTERN;function b(e,t,r){function i(n,r){return a.coerce(e,t,s.rangebreaks,n,r)}if(i("enabled")){var o=i("bounds");if(o&&o.length>=2){var l,c,u="";if(2===o.length)for(l=0;l<2;l++)if(c=M(o[l])){u=g;break}var d=i("pattern",u);if(d===g)for(l=0;l<2;l++)(c=M(o[l]))&&(t.bounds[l]=o[l]=c-1);if(d)for(l=0;l<2;l++)switch(c=o[l],d){case g:if(!n(c))return void(t.enabled=!1);if((c=+c)!==Math.floor(c)||c<0||c>=7)return void(t.enabled=!1);t.bounds[l]=o[l]=c;break;case y:if(!n(c))return void(t.enabled=!1);if((c=+c)<0||c>24)return void(t.enabled=!1);t.bounds[l]=o[l]=c}if(!1===r.autorange){var p=r.range;if(p[0]<p[1]){if(o[0]<p[0]&&o[1]>p[1])return void(t.enabled=!1)}else if(o[0]>p[0]&&o[1]<p[1])return void(t.enabled=!1)}}else{var h=i("values");if(!h||!h.length)return void(t.enabled=!1);i("dvalue")}}}t.exports=function(e,t,n,y,v){var M,x=y.letter,z=y.font||{},_=y.splomStash||{},A=n("visible",!y.visibleDflt),O=t._template||{},w=t.type||O.type||"-";"date"===w&&(r.getComponentMethod("calendars","handleDefaults")(e,t,"calendar",y.calendar),y.noTicklabelmode||(M=n("ticklabelmode")));!y.noTicklabelindex&&("date"===w||"linear"===w)&&n("ticklabelindex");var k="";(!y.noTicklabelposition||"multicategory"===w)&&(k=a.coerce(e,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:"period"===M?["outside","inside"]:"x"===x?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),y.noTicklabeloverflow||n("ticklabeloverflow",-1!==k.indexOf("inside")?"hide past domain":"category"===w||"multicategory"===w?"allow":"hide past div"),m(t,v),f(e,t,n,y),p(e,t,n,y),y.noHover||("category"!==w&&n("hoverformat"),y.noUnifiedhovertitle||n("unifiedhovertitle.text"));var T=n("color"),S=T!==s.color.dflt?T:z.color,C=_.label||v._dfltTitle[x];if(d(e,t,n,w,y),!A)return t;n("title.text",C),a.coerceFont(n,"title.font",z,{overrideDflt:{size:a.bigFont(z.size),color:S}}),l(e,t,n,w);var E=y.hasMinor;if(E&&(i.newContainer(t,"minor"),l(e,t,n,w,{isMinor:!0})),u(e,t,n,w,y),c(e,t,n,y),E){var q=y.isMinor;y.isMinor=!0,c(e,t,n,y),y.isMinor=q}h(e,t,n,{dfltColor:T,bgColor:y.bgColor,showGrid:y.showGrid,hasMinor:E,attributes:s}),E&&null==t.ticklabelindex&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var D="multicategory"===w;(!y.noTickson&&("category"===w||D)&&(t.ticks||t.showgrid)&&(D?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),D)&&(n("showdividers")&&(n("dividercolor"),n("dividerwidth")));if("date"===w)if(o(e,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:b}),t.rangebreaks.length){for(var R=0;R<t.rangebreaks.length;R++)if(t.rangebreaks[R].pattern===g){t._hasDayOfWeekBreaks=!0;break}if(m(t,v),v._has("scattergl")||v._has("splom"))for(var L=0;L<y.data.length;L++){var I=y.data[L];("scattergl"===I.type||"splom"===I.type)&&(I.visible=!1,a.warn(I.type+" traces do not work on axes with rangebreaks. Setting trace "+I.index+" to `visible: false`."))}}else delete t.rangebreaks;return t};var v={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function M(e){if("string"==typeof e)return v[e.slice(0,3).toLowerCase()]}}),Dj=Ee((e,t)=>{var n=xs(),r=Fr();t.exports=function(e,t,a,i){var o,s,l,c,u,d,p=i.counterAxes||[],h=i.overlayableAxes||[],f=i.letter,m=i.grid,g=i.overlayingDomain;m&&(s=m._domains[f][m._axisMap[t._id]],o=m._anchors[t._id],s&&(l=m[f+"side"].split(" ")[0],c=m.domain[f]["right"===l||"top"===l?1:0])),s=s||[0,1],o=o||(n(e.position)?"free":p[0]||"free"),l=l||("x"===f?"bottom":"left"),c=c||0,u=0,d=!1;var y=r.coerce(e,t,{anchor:{valType:"enumerated",values:["free"].concat(p),dflt:o}},"anchor"),b=r.coerce(e,t,{side:{valType:"enumerated",values:"x"===f?["bottom","top"]:["left","right"],dflt:l}},"side");if("free"===y){if("y"===f)a("autoshift")&&(c="left"===b?g[0]:g[1],d=!t.automargin||t.automargin,u="left"===b?-3:3),a("shift",u);a("position",c)}a("automargin",d);var v=!1;if(h.length&&(v=r.coerce(e,t,{overlaying:{valType:"enumerated",values:[!1].concat(h),dflt:!1}},"overlaying")),!v){var M=a("domain",s);M[0]>M[1]-1/4096&&(t.domain=s),r.noneOrAll(e.domain,t.domain,s),"sync"===t.tickmode&&(t.tickmode="auto")}return a("layer"),t}}),RUe=Ee((e,t)=>{var n=Fr(),r=ao(),a=fm().isUnifiedHover,i=ole(),o=Kl(),s=U8(),l=vp(),c=B1e(),u=TR(),d=Pw(),p=Dj(),h=Ld(),f=h.id2name,m=h.name2id,g=sh().AX_ID_PATTERN,y=vo(),b=y.traceIs,v=y.getComponentMethod;function M(e,t,n){Array.isArray(e[t])?e[t].push(n):e[t]=[n]}t.exports=function(e,t,y){var x,z,_=t.autotypenumbers,A={},O={},w={},k={},T={},S={},C={},E={},q={},D={};for(x=0;x<y.length;x++){var R=y[x];if(b(R,"cartesian")){var L,I;if(R.xaxis)L=f(R.xaxis),M(A,L,R);else if(R.xaxes)for(z=0;z<R.xaxes.length;z++)M(A,f(R.xaxes[z]),R);if(R.yaxis)I=f(R.yaxis),M(A,I,R);else if(R.yaxes)for(z=0;z<R.yaxes.length;z++)M(A,f(R.yaxes[z]),R);if("funnel"===R.type?"h"===R.orientation?(L&&(O[L]=!0),I&&(C[I]=!0)):I&&(w[I]=!0):"image"===R.type?(I&&(E[I]=!0),L&&(E[L]=!0)):(I&&(T[I]=!0,S[I]=!0),(!b(R,"carpet")||"carpet"===R.type&&!R._cheater)&&L&&(k[L]=!0)),"carpet"===R.type&&R._cheater&&L&&(O[L]=!0),b(R,"2dMap")&&(q[L]=!0,q[I]=!0),b(R,"oriented"))D["h"===R.orientation?I:L]=!0}}var W=t._subplots,N=W.xaxis,P=W.yaxis,B=n.simpleMap(N,f),F=n.simpleMap(P,f),j=B.concat(F),U=r.background;N.length&&P.length&&(U=n.coerce(e,t,s,"plot_bgcolor"));var V,H,X,G,Y,Z=r.combine(U,t.paper_bgcolor);function $(){var e=A[V]||[];Y._traceIndices=e.map(function(e){return e.index}),Y._annIndices=[],Y._shapeIndices=[],Y._selectionIndices=[],Y._imgIndices=[],Y._subplotsWith=[],Y._counterAxes=[],Y._name=Y._attr=V,Y._id=H}function J(e,t){return n.coerce(G,Y,l,e,t)}function Q(e,t){return n.coerce2(G,Y,l,e,t)}function K(e){return"x"===e?P:N}function ee(t,n){for(var r="x"===t?B:F,a=[],i=0;i<r.length;i++){var o=r[i];o!==n&&!(e[o]||{}).overlaying&&a.push(m(o))}return a}var te={x:K("x"),y:K("y")},ne=te.x.concat(te.y),re={},ae=[];function ie(){var e=G.matches;g.test(e)&&-1===ne.indexOf(e)&&(re[e]=G.type,ae=Object.keys(re))}var oe=i(e,t),se=a(oe);for(x=0;x<j.length;x++){V=j[x],H=m(V),X=V.charAt(0),n.isPlainObject(e[V])||(e[V]={}),G=e[V],Y=o.newContainer(t,V,X+"axis"),$();var le="x"===X&&!k[V]&&O[V]||"y"===X&&!T[V]&&w[V],ce="y"===X&&(!S[V]&&C[V]||E[V]),ue={hasMinor:!0,letter:X,font:t.font,outerTicks:q[V],showGrid:!D[V],data:A[V]||[],bgColor:Z,calendar:t.calendar,automargin:!0,visibleDflt:le,reverseDflt:ce,autotypenumbersDflt:_,splomStash:((t._splomAxes||{})[X]||{})[H],noAutotickangles:"y"===X};J("uirevision",t.uirevision),c(G,Y,J,ue),u(G,Y,J,ue,t);var de=se&&X===oe.charAt(0),pe=Q("spikecolor",se?Y.color:void 0),he=Q("spikethickness",se?1.5:void 0),fe=Q("spikedash",se?"dot":void 0),me=Q("spikemode",se?"across":void 0),ge=Q("spikesnap");J("showspikes",!!(de||pe||he||fe||me||ge))||(delete Y.spikecolor,delete Y.spikethickness,delete Y.spikedash,delete Y.spikemode,delete Y.spikesnap);var ye=f(G.overlaying),be=[0,1];if(void 0!==t[ye]){var ve=f(t[ye].anchor);void 0!==t[ve]&&(be=t[ve].domain)}p(G,Y,J,{letter:X,counterAxes:te[X],overlayableAxes:ee(X,V),grid:t.grid,overlayingDomain:be}),J("title.standoff"),ie(),Y._input=G}for(x=0;x<ae.length;){H=ae[x++],X=(V=f(H)).charAt(0),n.isPlainObject(e[V])||(e[V]={}),G=e[V],Y=o.newContainer(t,V,X+"axis"),$();var Me={letter:X,font:t.font,outerTicks:q[V],showGrid:!D[V],data:[],bgColor:Z,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:_,splomStash:((t._splomAxes||{})[X]||{})[H]};J("uirevision",t.uirevision),Y.type=re[H]||"linear",u(G,Y,J,Me,t),p(G,Y,J,{letter:X,counterAxes:te[X],overlayableAxes:ee(X,V),grid:t.grid}),J("fixedrange"),J("modebardisable"),ie(),Y._input=G}var xe=v("rangeslider","handleDefaults"),ze=v("rangeselector","handleDefaults");for(x=0;x<B.length;x++)V=B[x],G=e[V],Y=t[V],xe(e,t,V),"date"===Y.type&&ze(G,Y,t,F,Y.calendar),J("fixedrange"),J("modebardisable");for(x=0;x<F.length;x++){V=F[x],G=e[V],Y=t[V];var _e=t[f(Y.anchor)];J("fixedrange",v("rangeslider","isVisible")(_e)),J("modebardisable")}d.handleDefaults(e,t,{axIds:ne.concat(ae).sort(h.idSort),axHasImage:E})}}),IUe=Ee((e,t)=>{var n=mo(),r=vo(),a=Fr(),i=vs(),o=es();t.exports=function(e,t,s,l){var c=e._fullLayout;if(0!==t.length){var u;l&&(u=l());var d,p,h,f=n.ease(s.easing);return e._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(h),h=null,function(){for(var n={},a=0;a<t.length;a++){var i=t[a],o=i.plotinfo.xaxis,s=i.plotinfo.yaxis;i.xr0&&(n[o._name+".range"]=i.xr0.slice()),i.yr0&&(n[s._name+".range"]=i.yr0.slice())}return r.call("relayout",e,n).then(function(){for(var e=0;e<t.length;e++)m(t[e].plotinfo)})}()}),d=Date.now(),h=window.requestAnimationFrame(function n(){p=Date.now();for(var a=Math.min(1,(p-d)/s.duration),i=f(a),o=0;o<t.length;o++)g(t[o],i);p-d>s.duration?(function(){for(var n={},a=0;a<t.length;a++){var i=t[a],o=i.plotinfo.xaxis,s=i.plotinfo.yaxis;i.xr1&&(n[o._name+".range"]=i.xr1.slice()),i.yr1&&(n[s._name+".range"]=i.yr1.slice())}u&&u(),r.call("relayout",e,n).then(function(){for(var e=0;e<t.length;e++)m(t[e].plotinfo)})}(),h=window.cancelAnimationFrame(n)):h=window.requestAnimationFrame(n)}),Promise.resolve()}function m(e){var t=e.xaxis,n=e.yaxis;c._defs.select("#"+e.clipId+"> rect").call(i.setTranslate,0,0).call(i.setScale,1,1),e.plot.call(i.setTranslate,t._offset,n._offset).call(i.setScale,1,1);var r=e.plot.selectAll(".scatterlayer .trace");r.selectAll(".point").call(i.setPointGroupScale,1,1),r.selectAll(".textpoint").call(i.setTextPointsScale,1,1),r.call(i.hideOutsideRangePoints,e)}function g(t,n){var r=t.plotinfo,s=r.xaxis,l=r.yaxis,c=s._length,u=l._length,d=!!t.xr1,p=!!t.yr1,h=[];if(d){var f=a.simpleMap(t.xr0,s.r2l),m=a.simpleMap(t.xr1,s.r2l),g=f[1]-f[0],y=m[1]-m[0];h[0]=(f[0]*(1-n)+n*m[0]-f[0])/(f[1]-f[0])*c,h[2]=c*(1-n+n*y/g),s.range[0]=s.l2r(f[0]*(1-n)+n*m[0]),s.range[1]=s.l2r(f[1]*(1-n)+n*m[1])}else h[0]=0,h[2]=c;if(p){var b=a.simpleMap(t.yr0,l.r2l),v=a.simpleMap(t.yr1,l.r2l),M=b[1]-b[0],x=v[1]-v[0];h[1]=(b[1]*(1-n)+n*v[1]-b[1])/(b[0]-b[1])*u,h[3]=u*(1-n+n*x/M),l.range[0]=s.l2r(b[0]*(1-n)+n*v[0]),l.range[1]=l.l2r(b[1]*(1-n)+n*v[1])}else h[1]=0,h[3]=u;o.drawOne(e,s,{skipTitle:!0}),o.drawOne(e,l,{skipTitle:!0}),o.redrawComponents(e,[s._id,l._id]);var z=d?c/h[2]:1,_=p?u/h[3]:1,A=d?h[0]:0,O=p?h[1]:0,w=d?h[0]/h[2]*c:0,k=p?h[1]/h[3]*u:0,T=s._offset-w,S=l._offset-k;r.clipRect.call(i.setTranslate,A,O).call(i.setScale,1/z,1/_),r.plot.call(i.setTranslate,T,S).call(i.setScale,z,_),i.setPointGroupScale(r.zoomScalePts,1/z,1/_),i.setTextPointsScale(r.zoomScaleTxt,1/z,1/_)}o.redrawComponents(e)}}),Bf=Ee(e=>{var t=mo(),n=vo(),r=Fr(),a=td(),i=vs(),o=mp().getModuleCalcData,s=Ld(),l=sh(),c=Dv(),u=r.ensureSingle;function d(e,t,n){return r.ensureSingle(e,t,n,function(e){e.datum(n)})}var p=l.zindexSeparator;function h(e,r,a,s,c){for(var u,d,p,h=l.traceLayerClasses,f=e._fullLayout,m=f._zindices,g=f._modules,y=[],b=[],v=0;v<m.length;v++)for(var M=m[v],x=0;x<g.length;x++){var z=(u=g[x]).name,_=n.modules[z].categories;if(_.svg){var A=u.layerName||z+"layer",O=A+(v?Number(v)+1:""),w=u.plot;p=(d=o(a,w,M))[0],a=d[1],p.length&&y.push({i:h.indexOf(A),zindex:v,className:O,plotMethod:w,cdModule:p}),_.zoomScale&&b.push("."+O)}}y.sort(function(e,t){return(e.zindex||0)-(t.zindex||0)||e.i-t.i});var k=r.plot.selectAll("g.mlayer").data(y,function(e){return e.className});if(k.enter().append("g").attr("class",function(e){return e.className}).classed("mlayer",!0).classed("rangeplot",r.isRangePlot),k.exit().remove(),k.order(),k.each(function(n){var a=t.select(this),o=n.className;n.plotMethod(e,r,n.cdModule,a,s,c),-1===l.clipOnAxisFalseQuery.indexOf("."+o)&&i.setClipUrl(a,r.layerClipId,e)}),f._has("scattergl")&&(u=n.getModule("scattergl"),p=o(a,u)[0],u.plot(e,r,p)),!e._context.staticPlot&&(r._hasClipOnAxisFalse&&(r.clipOnAxisFalseTraces=r.plot.selectAll(l.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),b.length)){var T=r.plot.selectAll(b.join(",")).selectAll(".trace");r.zoomScalePts=T.selectAll("path.point"),r.zoomScaleTxt=T.selectAll(".textpoint")}}function f(e,t){var n=e._fullLayout,r=t.plotgroup,a=t.id,i=-1!==a.indexOf(p),o=l.layerValue2layerClass[t.xaxis.layer],c=l.layerValue2layerClass[t.yaxis.layer],h=n._hasOnlyLargeSploms,f=n._zindices.length>1,m=t.mainplotinfo;if(!t.mainplot||f)if(h)t.xlines=u(r,"path","xlines-above"),t.ylines=u(r,"path","ylines-above"),t.xaxislayer=u(r,"g","xaxislayer-above"),t.yaxislayer=u(r,"g","yaxislayer-above");else{if(!i){var g=u(r,"g","layer-subplot");t.shapelayer=u(g,"g","shapelayer"),t.imagelayer=u(g,"g","imagelayer"),m&&f?(t.minorGridlayer=m.minorGridlayer,t.gridlayer=m.gridlayer,t.zerolinelayer=m.zerolinelayer):(t.minorGridlayer=u(r,"g","minor-gridlayer"),t.gridlayer=u(r,"g","gridlayer"),t.zerolinelayer=u(r,"g","zerolinelayer"));var y=u(r,"g","layer-between");t.shapelayerBetween=u(y,"g","shapelayer"),t.imagelayerBetween=u(y,"g","imagelayer"),u(r,"path","xlines-below"),u(r,"path","ylines-below"),t.overlinesBelow=u(r,"g","overlines-below"),u(r,"g","xaxislayer-below"),u(r,"g","yaxislayer-below"),t.overaxesBelow=u(r,"g","overaxes-below")}t.overplot=u(r,"g","overplot"),t.plot=u(t.overplot,"g",a),t.zerolinelayerAbove=m&&f?m.zerolinelayerAbove:u(r,"g","zerolinelayer-above"),i||(t.xlines=u(r,"path","xlines-above"),t.ylines=u(r,"path","ylines-above"),t.overlinesAbove=u(r,"g","overlines-above"),u(r,"g","xaxislayer-above"),u(r,"g","yaxislayer-above"),t.overaxesAbove=u(r,"g","overaxes-above"),t.xlines=r.select(".xlines-"+o),t.ylines=r.select(".ylines-"+c),t.xaxislayer=r.select(".xaxislayer-"+o),t.yaxislayer=r.select(".yaxislayer-"+c))}else{var b=m.plotgroup,v=a+"-x",M=a+"-y";t.minorGridlayer=m.minorGridlayer,t.gridlayer=m.gridlayer,t.zerolinelayer=m.zerolinelayer,t.zerolinelayerAbove=m.zerolinelayerAbove,u(m.overlinesBelow,"path",v),u(m.overlinesBelow,"path",M),u(m.overaxesBelow,"g",v),u(m.overaxesBelow,"g",M),t.plot=u(m.overplot,"g",a),u(m.overlinesAbove,"path",v),u(m.overlinesAbove,"path",M),u(m.overaxesAbove,"g",v),u(m.overaxesAbove,"g",M),t.xlines=b.select(".overlines-"+o).select("."+v),t.ylines=b.select(".overlines-"+c).select("."+M),t.xaxislayer=b.select(".overaxes-"+o).select("."+v),t.yaxislayer=b.select(".overaxes-"+c).select("."+M)}i||(h||(d(t.minorGridlayer,"g",t.xaxis._id),d(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(e){return e[0]}).sort(s.idSort),d(t.gridlayer,"g",t.xaxis._id),d(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(e){return e[0]}).sort(s.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function m(e,n){if(e){var r={};for(var a in e.each(function(e){var a=e[0];t.select(this).remove(),g(a,n),r[a]=!0}),n._plots)for(var i=n._plots[a].overlays||[],o=0;o<i.length;o++){var s=i[o];r[s.id]&&s.plot.selectAll(".trace").remove()}}}function g(e,t){t._draggers.selectAll("g."+e).remove(),t._defs.select("#clip"+t._uid+e+"plot").remove()}e.name="cartesian",e.attr=["xaxis","yaxis"],e.idRoot=["x","y"],e.idRegex=l.idRegex,e.attrRegex=l.attrRegex,e.attributes=fUe(),e.layoutAttributes=vp(),e.supplyLayoutDefaults=RUe(),e.transitionAxes=IUe(),e.finalizeSubplots=function(e,t){var n,a,i,o=t._subplots,c=o.xaxis,u=o.yaxis,d=o.cartesian,p=d,h={},f={};for(n=0;n<p.length;n++){var m=p[n].split("y");h[m[0]]=1,f["y"+m[1]]=1}for(n=0;n<c.length;n++)h[a=c[n]]||(i=(e[s.id2name(a)]||{}).anchor,l.idRegex.y.test(i)||(i="y"),d.push(a+i),p.push(a+i),f[i]||(f[i]=1,r.pushUnique(u,i)));for(n=0;n<u.length;n++)f[i=u[n]]||(a=(e[s.id2name(i)]||{}).anchor,l.idRegex.x.test(a)||(a="x"),d.push(a+i),p.push(a+i),h[a]||(h[a]=1,r.pushUnique(c,a)));if(!p.length){for(var g in a="",i="",e)if(l.attrRegex.test(g)){"x"===g.charAt(0)?(!a||+g.slice(5)<+a.slice(5))&&(a=g):(!i||+g.slice(5)<+i.slice(5))&&(i=g)}a=a?s.name2id(a):"x",i=i?s.name2id(i):"y",c.push(a),u.push(i),d.push(a+i)}},e.plot=function(e,t,n,a){var i,o=e._fullLayout,s=o._subplots.cartesian,l=e.calcdata;if(!Array.isArray(t))for(t=[],i=0;i<l.length;i++)t.push(i);for(var c=o._zindices,u=0;u<c.length;u++){var d=c[u];for(i=0;i<s.length;i++){var f=s[i],m=o._plots[f];if(u>0){var g=m.id;if(-1!==g.indexOf(p))continue;g+=p+(u+1),m=r.extendFlat({},m,{id:g,plot:o._cartesianlayer.selectAll(".subplot").select("."+g)})}for(var y,b=[],v=0;v<l.length;v++){var M=l[v],x=M[0].trace;d===(x.zorder||0)&&x.xaxis+x.yaxis===f&&((-1!==t.indexOf(x.index)||x.carpet)&&(y&&y[0].trace.xaxis+y[0].trace.yaxis===f&&-1!==["tonextx","tonexty","tonext"].indexOf(x.fill)&&-1===b.indexOf(y)&&b.push(y),b.push(M)),y=M)}h(e,m,b,n,a)}}},e.clean=function(e,t,n,r){var a,i,o,l=r._plots||{},c=t._plots||{},u=r._subplots||{};if(r._hasOnlyLargeSploms&&!t._hasOnlyLargeSploms)for(o in l)(a=l[o]).plotgroup&&a.plotgroup.remove();var d=r._has&&r._has("gl"),h=t._has&&t._has("gl");if(d&&!h)for(o in l)(a=l[o])._scene&&a._scene.destroy();if(u.xaxis&&u.yaxis){var f=s.listIds({_fullLayout:r});for(i=0;i<f.length;i++){var y=f[i];t[s.id2name(y)]||r._infolayer.selectAll(".g-"+y+"title").remove()}}var b=r._has&&r._has("cartesian"),v=t._has&&t._has("cartesian");if(b&&!v)m(r._cartesianlayer.selectAll(".subplot"),r),r._defs.selectAll(".axesclip").remove(),delete r._axisConstraintGroups,delete r._axisMatchGroups;else if(u.cartesian)for(i=0;i<u.cartesian.length;i++){var M=u.cartesian[i];if(-1===M.indexOf(p)&&!c[M]){var x="."+M+",."+M+"-x,."+M+"-y";r._cartesianlayer.selectAll(x).remove(),g(M,r)}}},e.drawFramework=function(e){var n,a=e._fullLayout,i=e.calcdata,o={};for(n=0;n<i.length;n++){var s=i[n][0],l=s.trace.zorder||0;o[l]||(o[l]=[]),o[l].push(s)}var c=Object.keys(o).map(Number).sort(r.sorterAsc);c.length||(c=[0]),a._zindices=c;var d=function(e){var t,n,r,a,i,o,s=e._fullLayout,l=s._zindices.length,c=s._subplots.cartesian,u=c.length,d=[],h=[];for(t=0;t<u;t++){r=c[t],i=(a=s._plots[r]).xaxis,o=a.yaxis;var f=i._mainAxis,m=o._mainAxis,g=f._id+m._id,y=s._plots[g];a.overlays=[],g!==r&&y?(a.mainplot=g,a.mainplotinfo=y,h.push(r)):(a.mainplot=void 0,a.mainplotinfo=void 0,d.push(r))}for(t=0;t<h.length;t++)r=h[t],(a=s._plots[r]).mainplotinfo.overlays.push(a);var b=d.concat(h),v=[];for(t=0;t<u;t++){r=b[t],i=(a=s._plots[r]).xaxis,o=a.yaxis;for(var M=[],x=1;x<=l;x++){var z="";for(x>1&&(z+=p+x),M.push(r+z),n=0;n<a.overlays.length;n++)M.push(a.overlays[n].id+z)}M=M.concat([i.layer,o.layer,i.overlaying||"",o.overlaying||""]),v.push(M)}return v}(e),h=d.length,g=[];for(n=0;n<h;n++)g[n]=d[n].slice();for(var y=1;y<c.length;y++){var b=[];for(n=0;n<h;n++)b[n]=d[n].slice(),b[n][0]+=p+(y+1);g=g.concat(b)}var v=a._cartesianlayer.selectAll(".subplot").data(g,String);v.enter().append("g").attr("class",function(e){return"subplot "+e[0]}),v.order(),v.exit().call(m,a),v.each(function(n){var i=n[0],o=i.indexOf(p),s=-1!==o,l=s?i.slice(0,o):i,c=a._plots[i];c||(c=r.extendFlat({},a._plots[l]))&&(c.id=i,a._plots[i]=c,a._subplots.cartesian.push(i)),c&&(c.plotgroup=t.select(this),f(e,c),s||(c.draglayer=u(a._draggers,"g",i)))})},e.rangePlot=function(e,t,n){f(e,t),h(e,t,n),a.style(e)},e.toSVG=function(e){var n=e._fullLayout._glimages,r=t.select(e).selectAll(".svg-container");r.filter(function(e,t){return t===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus").each(function(){var e=this,t=e.toDataURL("image/png");n.append("svg:image").attr({xmlns:c.svg,"xlink:href":t,preserveAspectRatio:"none",x:0,y:0,width:e.style.width,height:e.style.height})})},e.updateFx=r1e().updateFx}),jUe=Ee((e,t)=>{var n=Hc();t.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:Id(),layoutAttributes:MH(),supplyDefaults:vBe(),crossTraceDefaults:M1e(),supplyLayoutDefaults:MBe(),calc:Jg().calc,crossTraceCalc:jBe(),arraysToCalcdata:E3(),plot:LS(),colorbar:Wp(),formatLabels:Sj(),style:vm().style,styleOnSelect:vm().styleOnSelect,hoverPoints:WS(),selectPoints:FS(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Bf(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{description:["The scatter trace type encompasses line charts, scatter charts, text charts, and bubble charts.","The data visualized as scatter point or lines is set in `x` and `y`.","Text (appearing either on the chart or on hover only) is via `text`.","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","to numerical arrays."].join(" ")}}}),YUe=Ee((e,t)=>{var n=mo(),r=ao(),a=Xle(),i=Fr(),o=i.strScale,s=i.strRotate,l=i.strTranslate;t.exports=function(e,t,i){var c,u,d,p,h=e.node(),f=a[i.arrowhead||0],m=a[i.startarrowhead||0],g=(i.arrowwidth||1)*(i.arrowsize||1),y=(i.arrowwidth||1)*(i.startarrowsize||1),b=t.indexOf("start")>=0,v=t.indexOf("end")>=0,M=f.backoff*g+i.standoff,x=m.backoff*y+i.startstandoff;if("line"===h.nodeName){c={x:+e.attr("x1"),y:+e.attr("y1")},u={x:+e.attr("x2"),y:+e.attr("y2")};var z=c.x-u.x,_=c.y-u.y;if(p=(d=Math.atan2(_,z))+Math.PI,M&&x&&M+x>Math.sqrt(z*z+_*_))return void R();if(M){if(M*M>z*z+_*_)return void R();var A=M*Math.cos(d),O=M*Math.sin(d);u.x+=A,u.y+=O,e.attr({x2:u.x,y2:u.y})}if(x){if(x*x>z*z+_*_)return void R();var w=x*Math.cos(d),k=x*Math.sin(d);c.x-=w,c.y-=k,e.attr({x1:c.x,y1:c.y})}}else if("path"===h.nodeName){var T=h.getTotalLength(),S="";if(T<M+x)return void R();var C=h.getPointAtLength(0),E=h.getPointAtLength(.1);d=Math.atan2(C.y-E.y,C.x-E.x),c=h.getPointAtLength(Math.min(x,T)),S="0px,"+x+"px,";var q=h.getPointAtLength(T),D=h.getPointAtLength(T-.1);p=Math.atan2(q.y-D.y,q.x-D.x),u=h.getPointAtLength(Math.max(0,T-M)),S+=T-(S?x+M:M)+"px,"+T+"px",e.style("stroke-dasharray",S)}function R(){e.style("stroke-dasharray","0px,100px")}function L(t,a,c,u){t.path&&(t.noRotate&&(c=0),n.select(h.parentNode).append("path").attr({class:e.attr("class"),d:t.path,transform:l(a.x,a.y)+s(180*c/Math.PI)+o(u)}).style({fill:r.rgb(i.arrowcolor),"stroke-width":0}))}b&&L(m,c,d,y),v&&L(f,u,p,g)}}),Bj=Ee((e,t)=>{var n=mo(),r=vo(),a=td(),i=Fr(),o=i.strTranslate,s=es(),l=ao(),c=vs(),u=_d(),d=q1(),p=Ky(),h=p2(),f=Kl().arrayEditor,m=YUe();function g(e,t){var n=e._fullLayout.annotations[t]||{},r=s.getFromId(e,n.xref),a=s.getFromId(e,n.yref);r&&r.setScale(),a&&a.setScale(),b(e,n,t,!1,r,a)}function y(e,t,n,r,a){var i=a[n],o=a[n+"ref"],l=-1!==n.indexOf("y"),c="domain"===s.getRefType(o),u=l?r.h:r.w;return e?c?i+(l?-t:t)/e._length:e.p2r(e.r2p(i)+t):i+(l?-t:t)/u}function b(e,t,a,g,b,v){var M,x,z=e._fullLayout,_=e._fullLayout._size,A=e._context.edits;g?(M="annotation-"+g,x=g+".annotations"):(M="annotation",x="annotations");var O=f(e.layout,x,t),w=O.modifyBase,k=O.modifyItem,T=O.getUpdateObj;z._infolayer.selectAll("."+M+'[data-index="'+a+'"]').remove();var S="clip"+z._uid+"_ann"+a;if(t._input&&!1!==t.visible){var C={x:{},y:{}},E=+t.textangle||0,q=z._infolayer.append("g").classed(M,!0).attr("data-index",String(a)).style("opacity",t.opacity),D=q.append("g").classed("annotation-text-g",!0),R=A[t.showarrow?"annotationTail":"annotationPosition"],L=t.captureevents||A.annotationText||R,I=D.append("g").style("pointer-events",L?"all":null).call(p,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",X(n.event))});t.hovertext&&I.on("mouseover",function(){var n=t.hoverlabel,r=n.font,a=this.getBoundingClientRect(),i=e.getBoundingClientRect();u.loneHover({x0:a.left-i.left,x1:a.right-i.left,y:(a.top+a.bottom)/2-i.top,text:t.hovertext,color:n.bgcolor,borderColor:n.bordercolor,fontFamily:r.family,fontSize:r.size,fontColor:r.color,fontWeight:r.weight,fontStyle:r.style,fontVariant:r.variant,fontShadow:r.fontShadow,fontLineposition:r.fontLineposition,fontTextcase:r.fontTextcase},{container:z._hoverlayer.node(),outerContainer:z._paper.node(),gd:e})}).on("mouseout",function(){u.loneUnhover(z._hoverlayer.node())});var W=t.borderwidth,N=t.borderpad,P=W+N,B=I.append("rect").attr("class","bg").style("stroke-width",W+"px").call(l.stroke,t.bordercolor).call(l.fill,t.bgcolor),F=t.width||t.height,j=z._topclips.selectAll("#"+S).data(F?[0]:[]);j.enter().append("clipPath").classed("annclip",!0).attr("id",S).append("rect"),j.exit().remove();var U=t.font,V=z._meta?i.templateString(t.text,z._meta):t.text,H=I.append("text").classed("annotation-text",!0).text(V);A.annotationText?H.call(d.makeEditable,{delegate:I,gd:e}).call(G).on("edit",function(n){t.text=n,this.call(G),k("text",n),b&&b.autorange&&w(b._name+".autorange",!0),v&&v.autorange&&w(v._name+".autorange",!0),r.call("_guiRelayout",e,T())}):H.call(G)}else n.selectAll("#"+S).remove();function X(e){var n={index:a,annotation:t._input,fullAnnotation:t,event:e};return g&&(n.subplotId=g),n}function G(n){return n.call(c.font,U).attr({"text-anchor":{left:"start",right:"end"}[t.align]||"middle"}),d.convertToTspans(n,e,Y),n}function Y(){var n=H.selectAll("a");1===n.size()&&n.text()===H.text()&&I.insert("a",":first-child").attr({"xlink:xlink:href":n.attr("xlink:href"),"xlink:xlink:show":n.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(B.node());var a=I.select(".annotation-text-math-group"),u=!a.empty(),f=c.bBox((u?a:H).node()),M=f.width,x=f.height,O=t.width||M,L=t.height||x,N=Math.round(O+2*P),U=Math.round(L+2*P);function V(e,t){return"auto"===t&&(t=e<1/3?"left":e>2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}for(var G=!1,Y=["x","y"],Z=0;Z<Y.length;Z++){var $,J,Q,K,ee,te=Y[Z],ne=t[te+"ref"]||te,re=t["a"+te+"ref"],ae={x:b,y:v}[te],ie=(E+("x"===te?0:-90))*Math.PI/180,oe=N*Math.cos(ie),se=U*Math.sin(ie),le=Math.abs(oe)+Math.abs(se),ce=t[te+"anchor"],ue=t[te+"shift"]*("x"===te?1:-1),de=C[te],pe=s.getRefType(ne);if(ae&&"domain"!==pe){var he=ae.r2fraction(t[te]);(he<0||he>1)&&(re===ne?((he=ae.r2fraction(t["a"+te]))<0||he>1)&&(G=!0):G=!0),$=ae._offset+ae.r2p(t[te]),K=.5}else{var fe="domain"===pe;"x"===te?(Q=t[te],$=fe?ae._offset+ae._length*Q:$=_.l+_.w*Q):(Q=1-t[te],$=fe?ae._offset+ae._length*Q:$=_.t+_.h*Q),K=t.showarrow?.5:Q}if(t.showarrow){de.head=$;var me=t["a"+te];if(ee=oe*V(.5,t.xanchor)-se*V(.5,t.yanchor),re===ne){var ge=s.getRefType(re);"domain"===ge?("y"===te&&(me=1-me),de.tail=ae._offset+ae._length*me):"paper"===ge?"y"===te?(me=1-me,de.tail=_.t+_.h*me):de.tail=_.l+_.w*me:de.tail=ae._offset+ae.r2p(me),J=ee}else de.tail=$+me,J=ee+me;de.text=de.tail+ee;var ye=z["x"===te?"width":"height"];if("paper"===ne&&(de.head=i.constrain(de.head,1,ye-1)),"pixel"===re){var be=-Math.max(de.tail-3,de.text),ve=Math.min(de.tail+3,de.text)-ye;be>0?(de.tail+=be,de.text+=be):ve>0&&(de.tail-=ve,de.text-=ve)}de.tail+=ue,de.head+=ue}else J=ee=le*V(K,ce),de.text=$+ee;de.text+=ue,ee+=ue,J+=ue,t["_"+te+"padplus"]=le/2+J,t["_"+te+"padminus"]=le/2-J,t["_"+te+"size"]=le,t["_"+te+"shift"]=ee}if(G)I.remove();else{var Me=0,xe=0;if("left"!==t.align&&(Me=(O-M)*("center"===t.align?.5:1)),"top"!==t.valign&&(xe=(L-x)*("middle"===t.valign?.5:1)),u)a.select("svg").attr({x:P+Me-1,y:P+xe}).call(c.setClipUrl,F?S:null,e);else{var ze=P+xe-f.top,_e=P+Me-f.left;H.call(d.positionText,_e,ze).call(c.setClipUrl,F?S:null,e)}j.select("rect").call(c.setRect,P,P,O,L),B.call(c.setRect,W/2,W/2,N-W,U-W),I.call(c.setTranslate,Math.round(C.x.text-N/2),Math.round(C.y.text-U/2)),D.attr({transform:"rotate("+E+","+C.x.text+","+C.y.text+")"});var Ae,Oe=function(n,a){q.selectAll(".annotation-arrow-g").remove();var s=C.x.head,u=C.y.head,d=C.x.tail+n,p=C.y.tail+a,f=C.x.text+n,M=C.y.text+a,x=i.rotationXYMatrix(E,f,M),z=i.apply2DTransform(x),O=i.apply2DTransform2(x),S=+B.attr("width"),R=+B.attr("height"),L=f-.5*S,W=L+S,N=M-.5*R,P=N+R,F=[[L,N,L,P],[L,P,W,P],[W,P,W,N],[W,N,L,N]].map(O);if(!F.reduce(function(e,t){return e^!!i.segmentsIntersect(s,u,s+1e6,u+1e6,t[0],t[1],t[2],t[3])},!1)){F.forEach(function(e){var t=i.segmentsIntersect(d,p,s,u,e[0],e[1],e[2],e[3]);t&&(d=t.x,p=t.y)});var j=t.arrowwidth,U=t.arrowcolor,V=t.arrowside,H=q.append("g").style({opacity:l.opacity(U)}).classed("annotation-arrow-g",!0),X=H.append("path").attr("d","M"+d+","+p+"L"+s+","+u).style("stroke-width",j+"px").call(l.stroke,l.rgb(U));if(m(X,V,t),A.annotationPosition&&X.node().parentNode&&!g){var G=s,Y=u;if(t.standoff){var Z=Math.sqrt(Math.pow(s-d,2)+Math.pow(u-p,2));G+=t.standoff*(d-s)/Z,Y+=t.standoff*(p-u)/Z}var $,J,Q=H.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(d-G)+","+(p-Y),transform:o(G,Y)}).style("stroke-width",j+6+"px").call(l.stroke,"rgba(0,0,0,0)").call(l.fill,"rgba(0,0,0,0)");h.init({element:Q.node(),gd:e,prepFn:function(){var e=c.getTranslate(I);$=e.x,J=e.y,b&&b.autorange&&w(b._name+".autorange",!0),v&&v.autorange&&w(v._name+".autorange",!0)},moveFn:function(e,n){var r=z($,J),a=r[0]+e,i=r[1]+n;I.call(c.setTranslate,a,i),k("x",y(b,e,"x",_,t)),k("y",y(v,n,"y",_,t)),t.axref===t.xref&&k("ax",y(b,e,"ax",_,t)),t.ayref===t.yref&&k("ay",y(v,n,"ay",_,t)),H.attr("transform",o(e,n)),D.attr({transform:"rotate("+E+","+a+","+i+")"})},doneFn:function(){r.call("_guiRelayout",e,T());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}};if(t.showarrow&&Oe(0,0),R)h.init({element:I.node(),gd:e,prepFn:function(){Ae=D.attr("transform")},moveFn:function(e,n){var r="pointer";if(t.showarrow)t.axref===t.xref?k("ax",y(b,e,"ax",_,t)):k("ax",t.ax+e),t.ayref===t.yref?k("ay",y(v,n,"ay",_.w,t)):k("ay",t.ay+n),Oe(e,n);else{if(g)return;var a,i;if(b)a=y(b,e,"x",_,t);else{var s=t._xsize/_.w,l=t.x+(t._xshift-t.xshift)/_.w-s/2;a=h.align(l+e/_.w,s,0,1,t.xanchor)}if(v)i=y(v,n,"y",_,t);else{var c=t._ysize/_.h,u=t.y-(t._yshift+t.yshift)/_.h-c/2;i=h.align(u-n/_.h,c,0,1,t.yanchor)}k("x",a),k("y",i),(!b||!v)&&(r=h.getCursor(b?.5:a,v?.5:i,t.xanchor,t.yanchor))}D.attr({transform:o(e,n)+Ae}),p(I,r)},clickFn:function(n,r){t.captureevents&&e.emit("plotly_clickannotation",X(r))},doneFn:function(){p(I),r.call("_guiRelayout",e,T());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}}t.exports={draw:function(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var n=0;n<t.annotations.length;n++)t.annotations[n].visible&&g(e,n);return a.previousPromises(e)},drawOne:g,drawRaw:b}}),iHe=Ee((e,t)=>{var n=Fr(),r=vo(),a=Kl().arrayEditor;function i(e,t){var n,r,a,i,s,l,c,u=e._fullLayout.annotations,d=[],p=[],h=[],f=(t||[]).length;for(n=0;n<u.length;n++)if(i=(a=u[n]).clicktoshow){for(r=0;r<f;r++)if(l=(s=t[r]).xaxis,c=s.yaxis,l._id===a.xref&&c._id===a.yref&&l.d2r(s.x)===o(a._xclick,l)&&c.d2r(s.y)===o(a._yclick,c)){(a.visible?"onout"===i?p:h:d).push(n);break}r===f&&a.visible&&"onout"===i&&p.push(n)}return{on:d,off:p,explicitOff:h}}function o(e,t){return"log"===t.type?t.l2r(e):t.d2r(e)}t.exports={hasClickToShow:function(e,t){var n=i(e,t);return n.on.length>0||n.explicitOff.length>0},onClick:function(e,t){var o,s,l=i(e,t),c=l.on,u=l.off.concat(l.explicitOff),d={},p=e._fullLayout.annotations;if(c.length||u.length){for(o=0;o<c.length;o++)(s=a(e.layout,"annotations",p[c[o]])).modifyItem("visible",!0),n.extendFlat(d,s.getUpdateObj());for(o=0;o<u.length;o++)(s=a(e.layout,"annotations",p[u[o]])).modifyItem("visible",!1),n.extendFlat(d,s.getUpdateObj());return r.call("update",e,{},d)}}}}),K1e=Ee((e,t)=>{var n=Fr(),r=ao();t.exports=function(e,t,a,i){i("opacity");var o=i("bgcolor"),s=i("bordercolor"),l=r.opacity(s);i("borderpad");var c=i("borderwidth"),u=i("showarrow");if(i("text",u?" ":a._dfltTitle.annotation),i("textangle"),n.coerceFont(i,"font",a.font),i("width"),i("align"),i("height")&&i("valign"),u){var d,p,h=i("arrowside");-1!==h.indexOf("end")&&(d=i("arrowhead"),p=i("arrowsize")),-1!==h.indexOf("start")&&(i("startarrowhead",d),i("startarrowsize",p)),i("arrowcolor",l?t.bordercolor:r.defaultLine),i("arrowwidth",2*(l&&c||1)),i("standoff"),i("startstandoff")}var f=i("hovertext"),m=a.hoverlabel||{};if(f){var g=i("hoverlabel.bgcolor",m.bgcolor||(r.opacity(o)?r.rgb(o):r.defaultLine)),y=i("hoverlabel.bordercolor",m.bordercolor||r.contrast(g)),b=n.extendFlat({},m.font);b.color||(b.color=y),n.coerceFont(i,"hoverlabel.font",b)}i("captureevents",!!f)}}),lHe=Ee((e,t)=>{var n=Fr(),r=es(),a=Pp(),i=K1e(),o=Iw();function s(e,t,a){function s(r,a){return n.coerce(e,t,o,r,a)}var l=s("visible"),c=s("clicktoshow");if(l||c){i(e,t,a,s);for(var u=t.showarrow,d=["x","y"],p=[-10,-30],h={_fullLayout:a},f=0;f<2;f++){var m=d[f],g=r.coerceRef(e,t,h,m,"","paper");if("paper"!==g)r.getFromId(h,g)._annIndices.push(t._index);if(r.coercePosition(t,h,s,g,m,.5),u){var y="a"+m,b=r.coerceRef(e,t,h,y,"pixel",["pixel","paper"]);"pixel"!==b&&b!==g&&(b=t[y]="pixel");var v="pixel"===b?p[f]:.4;r.coercePosition(t,h,s,b,y,v)}s(m+"anchor"),s(m+"shift")}if(n.noneOrAll(e,t,["x","y"]),u&&n.noneOrAll(e,t,["ax","ay"]),c){var M=s("xclick"),x=s("yclick");t._xclick=void 0===M?t.x:r.cleanPosition(M,h,t.xref),t._yclick=void 0===x?t.y:r.cleanPosition(x,h,t.yref)}}}t.exports=function(e,t){a(e,t,{name:"annotations",handleItemDefaults:s})}}),dHe=Ee((e,t)=>{var n=Fr(),r=es(),a=Bj().draw;function i(e){var t=e._fullLayout;n.filterVisible(t.annotations).forEach(function(t){var n=r.getFromId(e,t.xref),a=r.getFromId(e,t.yref),i=r.getRefType(t.xref),s=r.getRefType(t.yref);t._extremes={},"range"===i&&o(t,n),"range"===s&&o(t,a)})}function o(e,t){var n,a=t._id,i=a.charAt(0),o=e[i],s=e["a"+i],l=e[i+"ref"],c=e["a"+i+"ref"],u=e["_"+i+"padplus"],d=e["_"+i+"padminus"],p={x:1,y:-1}[i]*e[i+"shift"],h=3*e.arrowsize*e.arrowwidth||0,f=h+p,m=h-p,g=3*e.startarrowsize*e.arrowwidth||0,y=g+p,b=g-p;if(c===l){var v=r.findExtremes(t,[t.r2c(o)],{ppadplus:f,ppadminus:m}),M=r.findExtremes(t,[t.r2c(s)],{ppadplus:Math.max(u,y),ppadminus:Math.max(d,b)});n={min:[v.min[0],M.min[0]],max:[v.max[0],M.max[0]]}}else y=s?y+s:y,b=s?b-s:b,n=r.findExtremes(t,[t.r2c(o)],{ppadplus:Math.max(u,f,y),ppadminus:Math.max(d,m,b)});e._extremes[a]=n}t.exports=function(e){var t=e._fullLayout;if(n.filterVisible(t.annotations).length&&e._fullData.length)return n.syncOrAsync([a,i],e)}}),hHe=Ee((e,t)=>{var n=xs(),r=XU();t.exports=function(e,t,a,i){t=t||{};var o="log"===a&&"linear"===t.type,s="linear"===a&&"log"===t.type;if(o||s)for(var l,c,u=e._fullLayout.annotations,d=t._id.charAt(0),p=0;p<u.length;p++)l=u[p],c="annotations["+p+"].",l[d+"ref"]===t._id&&h(d),l["a"+d+"ref"]===t._id&&h("a"+d);function h(e){var a=l[e],s=null;s=o?r(a,t.range):Math.pow(10,a),n(s)||(s=null),i(c+e,s)}}}),vHe=Ee((e,t)=>{var n=Bj(),r=iHe();t.exports={moduleType:"component",name:"annotations",layoutAttributes:Iw(),supplyLayoutDefaults:lHe(),includeBasePlot:lR()("annotations"),calcAutorange:dHe(),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:r.hasClickToShow,onClick:r.onClick,convertCoords:hHe()}}),Uj=Ee((e,t)=>{var n=Iw(),r=Wu().overrideAll,a=Kl().templatedArray;t.exports=r(a("annotation",{visible:n.visible,x:{valType:"any",description:["Sets the annotation's x position."].join(" ")},y:{valType:"any",description:["Sets the annotation's y position."].join(" ")},z:{valType:"any",description:["Sets the annotation's z position."].join(" ")},ax:{valType:"number",description:["Sets the x component of the arrow tail about the arrow head (in pixels)."].join(" ")},ay:{valType:"number",description:["Sets the y component of the arrow tail about the arrow head (in pixels)."].join(" ")},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,startarrowhead:n.startarrowhead,arrowside:n.arrowside,arrowsize:n.arrowsize,startarrowsize:n.startarrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,startstandoff:n.startstandoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents}),"calc","from-root")}),bHe=Ee((e,t)=>{var n=Fr(),r=es(),a=Pp(),i=K1e(),o=Uj();function s(e,t,a,s){function l(r,a){return n.coerce(e,t,o,r,a)}function c(e){var n=e+"axis",i={_fullLayout:{}};return i._fullLayout[n]=a[n],r.coercePosition(t,i,l,e,e,.5)}l("visible")&&(i(e,t,s.fullLayout,l),c("x"),c("y"),c("z"),n.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",l("xanchor"),l("yanchor"),l("xshift"),l("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",l("ax",-10),l("ay",-30),n.noneOrAll(e,t,["ax","ay"])))}t.exports=function(e,t,n){a(e,t,{name:"annotations",handleItemDefaults:s,fullLayout:n.fullLayout})}}),zHe=Ee((e,t)=>{var n=Fr(),r=es();function a(e,t){var a=t.fullSceneLayout.domain,i=t.fullLayout._size,o={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},n.extendFlat(e._xa,o),r.setConvert(e._xa),e._xa._offset=i.l+a.x[0]*i.w,e._xa.l2p=function(){return.5*(1+e._pdata[0]/e._pdata[3])*i.w*(a.x[1]-a.x[0])},e._ya={},n.extendFlat(e._ya,o),r.setConvert(e._ya),e._ya._offset=i.t+(1-a.y[1])*i.h,e._ya.l2p=function(){return.5*(1-e._pdata[1]/e._pdata[3])*i.h*(a.y[1]-a.y[0])}}t.exports=function(e){for(var t=e.fullSceneLayout.annotations,n=0;n<t.length;n++)a(t[n],e);e.fullLayout._infolayer.selectAll(".annotation-"+e.id).remove()}}),nce=Ee((e,t)=>{function n(e,t){var n,r,a=[0,0,0,0];for(n=0;n<4;++n)for(r=0;r<4;++r)a[r]+=e[4*n+r]*t[n];return a}t.exports=function(e,t){return n(e.projection,n(e.view,n(e.model,[t[0],t[1],t[2],1])))}}),OHe=Ee((e,t)=>{var n=Bj().drawRaw,r=nce(),a=["x","y","z"];t.exports=function(e){for(var t=e.fullSceneLayout,i=e.dataScale,o=t.annotations,s=0;s<o.length;s++){for(var l=o[s],c=!1,u=0;u<3;u++){var d=a[u],p=l[d],h=t[d+"axis"].r2fraction(p);if(h<0||h>1){c=!0;break}}c?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+s+'"]').remove():(l._pdata=r(e.glplot.cameraParams,[t.xaxis.r2l(l.x)*i[0],t.yaxis.r2l(l.y)*i[1],t.zaxis.r2l(l.z)*i[2]]),n(e.graphDiv,l,s,e.id,l._xa,l._ya))}}}),kHe=Ee((e,t)=>{var n=vo(),r=Fr();t.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Uj()}}},layoutAttributes:Uj(),handleDefaults:bHe(),includeBasePlot:function(e,t){var a=n.subplotsRegistry.gl3d;if(a)for(var i=a.attrRegex,o=Object.keys(e),s=0;s<o.length;s++){var l=o[s];i.test(l)&&(e[l].annotations||[]).length&&(r.pushUnique(t._basePlotModules,a),r.pushUnique(t._subplots.gl3d,l))}},convert:zHe(),draw:OHe()}}),ace=Ee((e,t)=>{sh();var n=Mu(),r=Id().line,a=pp().dash,i=ms().extendFlat,o=Kl().templatedArray,s=oR(),l=S1(),c=Iw(),{shapeTexttemplateAttrs:u,templatefallbackAttrs:d}=p1(),p=tH();t.exports=o("shape",{visible:i({},l.visible,{editType:"calc+arraydraw",description:["Determines whether or not this shape is visible.","If *legendonly*, the shape is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw",description:["Determines whether or not this","shape is shown in the legend."].join(" ")},legend:i({},l.legend,{editType:"calc+arraydraw",description:["Sets the reference to a legend to show this shape in.","References to these legends are *legend*, *legend2*, *legend3*, etc.","Settings for these legends are set in the layout, under","`layout.legend`, `layout.legend2`, etc."].join(" ")}),legendgroup:i({},l.legendgroup,{editType:"calc+arraydraw",description:["Sets the legend group for this shape.","Traces and shapes part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")}),legendgrouptitle:{text:i({},l.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:n({editType:"calc+arraydraw",description:["Sets this legend group's title font."].join(" ")}),editType:"calc+arraydraw"},legendrank:i({},l.legendrank,{editType:"calc+arraydraw",description:["Sets the legend rank for this shape.","Items and groups with smaller ranks are presented on top/left side while","with *reversed* `legend.traceorder` they are on bottom/right side.","The default legendrank is 1000,","so that you can use ranks less than 1000 to place certain items before all unranked items,","and ranks greater than 1000 to go after all unranked items.","When having unranked or equal rank items shapes would be displayed after traces","i.e. according to their order in data and layout."].join(" ")}),legendwidth:i({},l.legendwidth,{editType:"calc+arraydraw",description:"Sets the width (in px or fraction) of the legend for this shape."}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw",description:["Specifies the shape type to be drawn.","If *line*, a line is drawn from (`x0`,`y0`) to (`x1`,`y1`)","with respect to the axes' sizing mode.","If *circle*, a circle is drawn from","((`x0`+`x1`)/2, (`y0`+`y1`)/2))","with radius","(|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|)","with respect to the axes' sizing mode.","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`)","with respect to the axes' sizing mode.","If *path*, draw a custom SVG path using `path`.","with respect to the axes' sizing mode."].join(" ")},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw",description:["Specifies whether shapes are drawn below gridlines (*below*),","between gridlines and traces (*between*) or above traces (*above*)."].join(" ")},xref:i({},c.xref,{arrayOk:!0,description:["Sets the shape's x coordinate axis.",s.axisRefDescription("x","left","right"),"If an array of axis IDs is provided, each `x` value will refer to the corresponding axis,","e.g., ['x', 'x2'] for a rectangle, line, or circle means `x0` uses the `x` axis and `x1` uses the `x2` axis.","Path shapes using an array should have one entry for each x coordinate in the string."].join(" ")}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw",description:["Sets the shapes's sizing mode along the x axis.","If set to *scaled*, `x0`, `x1` and x coordinates within `path` refer to","data values on the x axis or a fraction of the plot area's width","(`xref` set to *paper*).","If set to *pixel*, `xanchor` specifies the x position in terms","of data or plot fraction but `x0`, `x1` and x coordinates within `path`","are pixels relative to `xanchor`. This way, the shape can have","a fixed width while maintaining a position relative to data or","plot fraction.","Note: `xsizemode` *pixel* is not supported when `xref` is an array."].join(" ")},xanchor:{valType:"any",editType:"calc+arraydraw",description:["Only relevant in conjunction with `xsizemode` set to *pixel*.","Specifies the anchor point on the x axis to which `x0`, `x1`","and x coordinates within `path` are relative to.","E.g. useful to attach a pixel sized shape to a certain data value.","No effect when `xsizemode` not set to *pixel*."].join(" ")},x0:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's starting x position.","See `type` and `xsizemode` for more info."].join(" ")},x1:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's end x position.","See `type` and `xsizemode` for more info."].join(" ")},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc",description:["Shifts `x0` away from the center of the category when `xref` is a *category* or","*multicategory* axis. -0.5 corresponds to the start of the category and 0.5","corresponds to the end of the category."].join(" ")},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc",description:["Shifts `x1` away from the center of the category when `xref` is a *category* or","*multicategory* axis. -0.5 corresponds to the start of the category and 0.5","corresponds to the end of the category."].join(" ")},yref:i({},c.yref,{arrayOk:!0,description:["Sets the shape's y coordinate axis.",s.axisRefDescription("y","bottom","top"),"If an array of axis IDs is provided, each `y` value will refer to the corresponding axis,","e.g., ['y', 'y2'] for a rectangle, line, or circle means `y0` uses the `y` axis and `y1` uses the `y2` axis.","Path shapes using an array should have one entry for each y coordinate in the string."].join(" ")}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw",description:["Sets the shapes's sizing mode along the y axis.","If set to *scaled*, `y0`, `y1` and y coordinates within `path` refer to","data values on the y axis or a fraction of the plot area's height","(`yref` set to *paper*).","If set to *pixel*, `yanchor` specifies the y position in terms","of data or plot fraction but `y0`, `y1` and y coordinates within `path`","are pixels relative to `yanchor`. This way, the shape can have","a fixed height while maintaining a position relative to data or","plot fraction.","Note: `ysizemode` *pixel* is not supported when `yref` is an array."].join(" ")},yanchor:{valType:"any",editType:"calc+arraydraw",description:["Only relevant in conjunction with `ysizemode` set to *pixel*.","Specifies the anchor point on the y axis to which `y0`, `y1`","and y coordinates within `path` are relative to.","E.g. useful to attach a pixel sized shape to a certain data value.","No effect when `ysizemode` not set to *pixel*."].join(" ")},y0:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's starting y position.","See `type` and `ysizemode` for more info."].join(" ")},y1:{valType:"any",editType:"calc+arraydraw",description:["Sets the shape's end y position.","See `type` and `ysizemode` for more info."].join(" ")},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc",description:["Shifts `y0` away from the center of the category when `yref` is a *category* or","*multicategory* axis. -0.5 corresponds to the start of the category and 0.5","corresponds to the end of the category."].join(" ")},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc",description:["Shifts `y1` away from the center of the category when `yref` is a *category* or","*multicategory* axis. -0.5 corresponds to the start of the category and 0.5","corresponds to the end of the category."].join(" ")},path:{valType:"string",editType:"calc+arraydraw",description:["For `type` *path* - a valid SVG path with the pixel values","replaced by data values in `xsizemode`/`ysizemode` being *scaled*","and taken unmodified as pixels relative to `xanchor` and `yanchor`","in case of *pixel* size mode.","There are a few restrictions / quirks","only absolute instructions, not relative. So the allowed segments","are: M, L, H, V, Q, C, T, S, and Z","arcs (A) are not allowed because radius rx and ry are relative.","In the future we could consider supporting relative commands,","but we would have to decide on how to handle date and log axes.","Note that even as is, Q and C Bezier paths that are smooth on","linear axes may not be smooth on log, and vice versa.",'no chained "polybezier" commands - specify the segment type for',"each one.","On category axes, values are numbers scaled to the serial numbers","of categories because using the categories themselves there would","be no way to describe fractional positions","On data axes: because space and T are both normal components of path","strings, we can't use either to separate date from time parts.","Therefore we'll use underscore for this purpose:","2015-02-21_13:45:56.789"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the shape."},line:{color:i({},r.color,{editType:"arraydraw"}),width:i({},r.width,{editType:"calc+arraydraw"}),dash:i({},a,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw",description:["Sets the color filling the shape's interior. Only applies to closed shapes."].join(" ")},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw",description:["Determines which regions of complex paths constitute the interior.","For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule"].join(" ")},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw",description:["Determines whether the shape could be activated for edit or not.","Has no effect when the older editable shapes mode is enabled via","`config.editable` or `config.edits.shapePosition`."].join(" ")},label:{text:{valType:"string",dflt:"",editType:"arraydraw",description:["Sets the text to display with shape.","It is also used for legend item if `name` is not provided."].join(" ")},texttemplate:u({},{keys:Object.keys(p)}),texttemplatefallback:d({editType:"arraydraw"}),font:n({editType:"calc+arraydraw",colorEditType:"arraydraw",description:"Sets the shape label text font."}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw",description:["Sets the position of the label text relative to the shape.","Supported values for rectangles, circles and paths are","*top left*, *top center*, *top right*, *middle left*,","*middle center*, *middle right*, *bottom left*, *bottom center*,","and *bottom right*.","Supported values for lines are *start*, *middle*, and *end*.","Default: *middle center* for rectangles, circles, and paths; *middle* for lines."].join(" ")},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw",description:["Sets the angle at which the label text is drawn","with respect to the horizontal. For lines, angle *auto*","is the same angle as the line. For all other shapes,","angle *auto* is horizontal."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw",description:["Sets the label's horizontal position anchor","This anchor binds the specified `textposition` to the *left*, *center*","or *right* of the label text.","For example, if `textposition` is set to *top right* and","`xanchor` to *right* then the right-most portion of the","label text lines up with the right-most edge of the","shape."].join(" ")},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw",description:["Sets the label's vertical position anchor","This anchor binds the specified `textposition` to the *top*, *middle*","or *bottom* of the label text.","For example, if `textposition` is set to *top right* and","`yanchor` to *top* then the top-most portion of the","label text lines up with the top-most edge of the","shape."].join(" ")},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw",description:"Sets padding (in px) between edge of label and edge of shape."},editType:"arraydraw"},editType:"arraydraw"})}),PHe=Ee((e,t)=>{var n=Fr(),r=es(),a=Pp(),i=ace(),o=Kz();function s(e,t,a){function s(r,a){return n.coerce(e,t,i,r,a)}if(t._isShape=!0,!s("visible"))return;var l=s("showlegend");s("legend"),s("legendgroup"),l&&(s("legendwidth"),s("legendgrouptitle.text"),n.coerceFont(s,"legendgrouptitle.font"),s("legendrank"));var c=s("path"),u=s("type",c?"path":"rect"),d="path"!==u;d&&delete t.path,s("editable"),s("layer"),s("opacity"),s("fillcolor"),s("fillrule"),s("line.width")&&(s("line.color"),s("line.dash"));var p=s("xsizemode"),h=s("ysizemode");let f=[.25,.75],m=[0,10];["x","y"].forEach(i=>{var l,g,y,b,v=i+"anchor",M="x"===i?p:h,x={_fullLayout:a};let z=e[i+"ref"];if(Array.isArray(z)&&z.length>0){let n=o.countDefiningCoords(u,c,i);b=r.coerceRefArray(e,t,x,i,void 0,"paper",n),t["_"+i+"refArray"]=!0}else b=r.coerceRef(e,t,x,i,void 0,"paper");if(Array.isArray(b))b.forEach(function(e){"range"===r.getRefType(e)&&((l=r.getFromId(x,e))&&-1===l._shapeIndices.indexOf(t._index)&&l._shapeIndices.push(t._index))}),d&&[0,1].forEach(function(a){let c=b[a];"range"===r.getRefType(c)?(l=r.getFromId(x,c),g=o.shapePositionToRange(l),y=o.rangeToShapePosition(l),("category"===l.type||"multicategory"===l.type)&&s(i+a+"shift")):g=y=n.identity;let u=i+a,d=e[u];if(e[u]=g(e[u],!0),"pixel"===M?s(u,m[a]):r.coercePosition(t,x,s,c,u,f[a]),t[u]=y(t[u]),e[u]=d,0===a&&"pixel"===M){let n=e[v];e[v]=g(e[v],!0),r.coercePosition(t,x,s,c,v,.25),t[v]=y(t[v]),e[v]=n}});else{if("range"===r.getRefType(b)?((l=r.getFromId(x,b))._shapeIndices.push(t._index),y=o.rangeToShapePosition(l),g=o.shapePositionToRange(l),d&&("category"===l.type||"multicategory"===l.type)&&(s(i+"0shift"),s(i+"1shift"))):g=y=n.identity,d){let n=i+"0",a=i+"1",o=e[n],l=e[a];e[n]=g(e[n],!0),e[a]=g(e[a],!0),"pixel"===M?(s(n,m[0]),s(a,m[1])):(r.coercePosition(t,x,s,b,n,f[0]),r.coercePosition(t,x,s,b,a,f[1])),t[n]=y(t[n]),t[a]=y(t[a]),e[n]=o,e[a]=l}if("pixel"===M){let n=e[v];e[v]=g(e[v],!0),r.coercePosition(t,x,s,b,v,.25),t[v]=y(t[v]),e[v]=n}}}),d&&n.noneOrAll(e,t,["x0","x1","y0","y1"]);var g,y,b="line"===u;if(d&&(g=s("label.texttemplate"),s("label.texttemplatefallback")),g||(y=s("label.text")),y||g){s("label.textangle");var v=s("label.textposition",b?"middle":"middle center");s("label.xanchor"),s("label.yanchor",function(e,t){return e?"bottom":-1!==t.indexOf("top")?"top":-1!==t.indexOf("bottom")?"bottom":"middle"}(b,v)),s("label.padding"),n.coerceFont(s,"label.font",a.font)}}t.exports=function(e,t){a(e,t,{name:"shapes",handleItemDefaults:s})}}),WHe=Ee((e,t)=>{var n=ao(),r=Fr();t.exports=function(e,t,a){if(a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),r.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity"),a("newshape.line.width")){var i=(e||{}).plot_bgcolor||"#FFF";a("newshape.line.color",n.contrast(i)),a("newshape.line.dash")}var o="drawline"===e.dragmode,s=a("newshape.label.text"),l=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),s||l){a("newshape.label.textangle");var c=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",function(e,t){return e?"bottom":-1!==t.indexOf("top")?"top":-1!==t.indexOf("bottom")?"bottom":"middle"}(o,c)),a("newshape.label.padding"),r.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}}),GHe=Ee((e,t)=>{var n=Fr(),r=es(),a=WD(),i=Kz();function o(e,t,n){let o=t[n+"ref"],s="x"===n?a.paramIsX:a.paramIsY;function l(e,t){"paper"===e||"domain"===r.getRefType(e)||(c[e]||(c[e]=[]),c[e].push(t))}let c={};if("path"===t.type&&t.path){let e=t.path.match(a.segmentRE)||[];for(var u=0,d=0;d<e.length;d++){let t=e[d],n=s[t.charAt(0)].drawn;if(void 0===n)continue;let r=t.slice(1).match(a.paramRE);r&&r.length>n&&(l(o[u],r[n]),u++)}}else l(o[0],t[n+"0"]),l(o[1],t[n+"1"]);let p={};for(let t in c){let n=r.getFromId(e,t);if(n){var h="category"===n.type||"multicategory"===n.type?n.r2c:n.d2c;"date"===n.type&&(h=i.decodeDate(h)),p[n._id]=c[t].map(h)}}return p}function s(e){return c(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function l(e){return c(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function c(e,t,r,o,s,l){var c=e/2,u=l;if("pixel"===t){var d=s?i.extractPathCoords(s,l?a.paramIsY:a.paramIsX):[r,o],p=n.aggNums(Math.max,null,d),h=n.aggNums(Math.min,null,d),f=h<0?Math.abs(h)+c:c,m=p>0?p+c:c;return{ppad:c,ppadplus:u?f:m,ppadminus:u?m:f}}return{ppad:c}}function u(e,t,n){var r,o,s="x"===e._id.charAt(0)?"x":"y",l="category"===e.type||"multicategory"===e.type,c=0,u=0,d=l?e.r2c:e.d2c;if("scaled"===t[s+"sizemode"]?(r=t[s+"0"],o=t[s+"1"],l&&(c=t[s+"0shift"],u=t[s+"1shift"])):(r=t[s+"anchor"],o=t[s+"anchor"]),void 0!==r)return[d(r)+c,d(o)+u];if(t.path){var p,h,f,m,g=1/0,y=-1/0,b=t.path.match(a.segmentRE);for("date"===e.type&&(d=i.decodeDate(d)),p=0;p<b.length;p++)void 0!==(h=n[b[p].charAt(0)].drawn)&&((f=b[p].slice(1).match(a.paramRE))&&!(f.length<h)&&((m=d(f[h]))<g&&(g=m),m>y&&(y=m)));if(y>=g)return[g,y]}}t.exports=function(e){var t=e._fullLayout,i=n.filterVisible(t.shapes);if(i.length&&e._fullData.length)for(var c=0;c<i.length;c++){var d=i[c];d._extremes={};var p,h,f=r.getRefType(d.xref),m=r.getRefType(d.yref);if("array"===f){let t=o(e,d,"x");Object.entries(t).forEach(([t,n])=>{p=r.getFromId(e,t),d._extremes[p._id]=r.findExtremes(p,n,s(d))})}else"paper"!==d.xref&&"domain"!==f&&((h=u(p=r.getFromId(e,d.xref),d,a.paramIsX))&&(d._extremes[p._id]=r.findExtremes(p,h,s(d))));if("array"===m){let t=o(e,d,"y");Object.entries(t).forEach(([t,n])=>{p=r.getFromId(e,t),d._extremes[p._id]=r.findExtremes(p,n,l(d))})}else"paper"!==d.yref&&"domain"!==m&&((h=u(p=r.getFromId(e,d.yref),d,a.paramIsY))&&(d._extremes[p._id]=r.findExtremes(p,h,l(d))))}}}),ZHe=Ee((e,t)=>{var n=qV();t.exports={moduleType:"component",name:"shapes",layoutAttributes:ace(),supplyLayoutDefaults:PHe(),supplyDrawNewShapeDefaults:WHe(),includeBasePlot:lR()("shapes"),calcAutorange:GHe(),draw:n.draw,drawOne:n.drawOne}}),sce=Ee((e,t)=>{var n=sh(),r=Kl().templatedArray,a=oR();t.exports=r("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw",description:["Determines whether or not this image is visible."].join(" ")},source:{valType:"string",editType:"arraydraw",description:["Specifies the URL of the image to be used.","The URL must be accessible from the domain where the","plot code is run, and can be either relative or absolute."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw",description:["Specifies whether images are drawn below or above traces.","When `xref` and `yref` are both set to `paper`,","image is drawn below the entire plot area."].join(" ")},sizex:{valType:"number",dflt:0,editType:"arraydraw",description:["Sets the image container size horizontally.","The image will be sized based on the `position` value.","When `xref` is set to `paper`, units are sized relative","to the plot width.","When `xref` ends with ` domain`, units are sized relative","to the axis width."].join(" ")},sizey:{valType:"number",dflt:0,editType:"arraydraw",description:["Sets the image container size vertically.","The image will be sized based on the `position` value.","When `yref` is set to `paper`, units are sized relative","to the plot height.","When `yref` ends with ` domain`, units are sized relative","to the axis height."].join(" ")},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw",description:["Specifies which dimension of the image to constrain."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the image."},x:{valType:"any",dflt:0,editType:"arraydraw",description:["Sets the image's x position.","When `xref` is set to `paper`, units are sized relative","to the plot height.","See `xref` for more info"].join(" ")},y:{valType:"any",dflt:0,editType:"arraydraw",description:["Sets the image's y position.","When `yref` is set to `paper`, units are sized relative","to the plot height.","See `yref` for more info"].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw",description:"Sets the anchor for the x position"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw",description:"Sets the anchor for the y position."},xref:{valType:"enumerated",values:["paper",n.idRegex.x.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's x coordinate axis.",a.axisRefDescription("x","left","right")].join(" ")},yref:{valType:"enumerated",values:["paper",n.idRegex.y.toString()],dflt:"paper",editType:"arraydraw",description:["Sets the images's y coordinate axis.",a.axisRefDescription("y","bottom","top")].join(" ")},editType:"arraydraw"})}),eVe=Ee((e,t)=>{var n=Fr(),r=es(),a=Pp(),i=sce();function o(e,t,a){function o(r,a){return n.coerce(e,t,i,r,a)}var s=o("source");if(!o("visible",!!s))return t;o("layer"),o("xanchor"),o("yanchor"),o("sizex"),o("sizey"),o("sizing"),o("opacity");for(var l={_fullLayout:a},c=["x","y"],u=0;u<2;u++){var d=c[u],p=r.coerceRef(e,t,l,d,"paper",void 0);if("paper"!==p)r.getFromId(l,p)._imgIndices.push(t._index);r.coercePosition(t,l,o,p,d,0)}return t}t.exports=function(e,t){a(e,t,{name:"images",handleItemDefaults:o})}}),aVe=Ee((e,t)=>{var n=mo(),r=vs(),a=es(),i=Ld(),o=Dv();t.exports=function(e){var t,s,l=e._fullLayout,c=[],u={},d=[];for(s=0;s<l.images.length;s++){var p=l.images[s];if(p.visible)if("below"===p.layer&&"paper"!==p.xref&&"paper"!==p.yref){t=i.ref2id(p.xref)+i.ref2id(p.yref);var h=l._plots[t];if(!h){d.push(p);continue}h.mainplot&&(t=h.mainplot.id),u[t]||(u[t]=[]),u[t].push(p)}else"above"===p.layer?c.push(p):d.push(p)}var f={left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-.5},right:{sizing:"xMax",offset:-1}},m={top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-.5},bottom:{sizing:"YMax",offset:-1}};function g(t){var r=n.select(this);if(this._imgSrc!==t.source)if(r.attr("xmlns",o.svg),!e._context.staticPlot||t.source&&"data:"===t.source.slice(0,5))r.attr("xlink:href",t.source),this._imgSrc=t.source;else{var a=new Promise(function(e){var n=new Image;function a(){r.remove(),e()}this.img=n,n.setAttribute("crossOrigin","anonymous"),n.onerror=a,n.onload=function(){var t=document.createElement("canvas");t.width=this.width,t.height=this.height,t.getContext("2d",{willReadFrequently:!0}).drawImage(this,0,0);var n=t.toDataURL("image/png");r.attr("xlink:href",n),e()},r.on("error",a),n.src=t.source,this._imgSrc=t.source}.bind(this));e._promises.push(a)}}function y(t){var i,o,s=n.select(this),c=a.getFromId(e,t.xref),u=a.getFromId(e,t.yref),d="domain"===a.getRefType(t.xref),p="domain"===a.getRefType(t.yref),h=l._size;i=void 0!==c?"string"==typeof t.xref&&d?c._length*t.sizex:Math.abs(c.l2p(t.sizex)-c.l2p(0)):t.sizex*h.w,o=void 0!==u?"string"==typeof t.yref&&p?u._length*t.sizey:Math.abs(u.l2p(t.sizey)-u.l2p(0)):t.sizey*h.h;var g,y,b=i*f[t.xanchor].offset,v=o*m[t.yanchor].offset,M=f[t.xanchor].sizing+m[t.yanchor].sizing;switch(g=void 0!==c?"string"==typeof t.xref&&d?c._length*t.x+c._offset:c.r2p(t.x)+c._offset:t.x*h.w+h.l,g+=b,y=void 0!==u?"string"==typeof t.yref&&p?u._length*(1-t.y)+u._offset:u.r2p(t.y)+u._offset:h.h-t.y*h.h+h.t,y+=v,t.sizing){case"fill":M+=" slice";break;case"stretch":M="none"}s.attr({x:g,y:y,width:i,height:o,preserveAspectRatio:M,opacity:t.opacity});var x=(c&&"domain"!==a.getRefType(t.xref)?c._id:"")+(u&&"domain"!==a.getRefType(t.yref)?u._id:"");r.setClipUrl(s,x?"clip"+l._uid+x:null,e)}function b(e){return[e.xref,e.x,e.sizex,e.yref,e.y,e.sizey].join("_")}function v(e,t){return e._index-t._index}var M=l._imageLowerLayer.selectAll("image").data(d,b),x=l._imageUpperLayer.selectAll("image").data(c,b);M.enter().append("image"),x.enter().append("image"),M.exit().remove(),x.exit().remove(),M.each(function(e){g.bind(this)(e),y.bind(this)(e)}),x.each(function(e){g.bind(this)(e),y.bind(this)(e)}),M.sort(v),x.sort(v);var z=Object.keys(l._plots);for(s=0;s<z.length;s++){t=z[s];var _=l._plots[t];if(_.imagelayer){var A=_.imagelayer.selectAll("image").data(u[t]||[],b);A.enter().append("image"),A.exit().remove(),A.each(function(e){g.bind(this)(e),y.bind(this)(e)}),A.sort(v)}}}}),sVe=Ee((e,t)=>{var n=xs(),r=XU();t.exports=function(e,t,a,i){t=t||{};var o="log"===a&&"linear"===t.type,s="linear"===a&&"log"===t.type;if(o||s)for(var l,c,u=e._fullLayout.images,d=t._id.charAt(0),p=0;p<u.length;p++)if(c="images["+p+"].",(l=u[p])[d+"ref"]===t._id){var h=l[d],f=l["size"+d],m=null,g=null;if(o){m=r(h,t.range);var y=f/Math.pow(10,m)/2;g=2*Math.log(y+Math.sqrt(1+y*y))/Math.LN10}else g=(m=Math.pow(10,h))*(Math.pow(10,f/2)-Math.pow(10,-f/2));n(m)?n(g)||(g=null):(m=null,g=null),i(c+d,m),i(c+"size"+d,g)}}}),cVe=Ee((e,t)=>{t.exports={moduleType:"component",name:"images",layoutAttributes:sce(),supplyLayoutDefaults:eVe(),includeBasePlot:lR()("images"),draw:aVe(),convertCoords:sVe()}}),Hj=Ee((e,t)=>{t.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}}),cce=Ee((e,t)=>{var n=Mu(),r=oh(),a=ms().extendFlat,i=Wu().overrideAll,o=rH(),s=Kl().templatedArray,l=s("button",{visible:{valType:"boolean",description:"Determines whether or not this button is visible."},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",description:["Sets the Plotly method to be called on click.","If the `skip` method is used, the API updatemenu will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","updatemenu events manually via JavaScript."].join(" ")},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on click."].join(" ")},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets a 2nd set of `args`,","these arguments values are passed to the Plotly","method set in `method` when clicking this button while in the active state.","Use this to create toggle buttons."].join(" ")},label:{valType:"string",dflt:"",description:"Sets the text label to appear on the button."},execute:{valType:"boolean",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_buttonclicked` method and executing the API command manually without losing","the benefit of the updatemenu automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}});t.exports=i(s("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean",description:["Determines whether or not the update menu is visible."].join(" ")},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown",description:["Determines whether the buttons are accessible via a dropdown menu","or whether the buttons are stacked horizontally or vertically"].join(" ")},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down",description:["Determines the direction in which the buttons are laid out, whether","in a dropdown menu or a row/column of buttons. For `left` and `up`,","the buttons will still appear in left-to-right or top-to-bottom order","respectively."].join(" ")},active:{valType:"integer",min:-1,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},showactive:{valType:"boolean",dflt:!0,description:"Highlights active dropdown item or active button if true."},buttons:l,x:{valType:"number",min:-2,max:3,dflt:-.05,description:"Sets the x position (in normalized coordinates) of the update menu."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right",description:["Sets the update menu's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,description:"Sets the y position (in normalized coordinates) of the update menu."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",description:["Sets the update menu's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},pad:a(o({editType:"arraydraw"}),{description:"Sets the padding around the buttons or dropdown menu."}),font:n({description:"Sets the font of the update menu button text."}),bgcolor:{valType:"color",description:"Sets the background color of the update menu buttons."},bordercolor:{valType:"color",dflt:r.borderLine,description:"Sets the color of the border enclosing the update menu."},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw",description:"Sets the width (in px) of the border enclosing the update menu."}}),"arraydraw","from-root")}),vVe=Ee((e,t)=>{var n=Fr(),r=Pp(),a=cce(),i=Hj().name,o=a.buttons;function s(e,t,i){function o(r,i){return n.coerce(e,t,a,r,i)}o("visible",r(e,t,{name:"buttons",handleItemDefaults:l}).length>0)&&(o("active"),o("direction"),o("type"),o("showactive"),o("x"),o("y"),n.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),n.coerceFont(o,"font",i.font),o("bgcolor",i.paper_bgcolor),o("bordercolor"),o("borderwidth"))}function l(e,t){function r(r,a){return n.coerce(e,t,o,r,a)}r("visible","skip"===e.method||Array.isArray(e.args))&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}t.exports=function(e,t){r(e,t,{name:i,handleItemDefaults:s})}}),bVe=Ee((e,t)=>{t.exports=o;var n=mo(),r=ao(),a=vs(),i=Fr();function o(e,t,n){this.gd=e,this.container=t,this.id=n,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}o.barWidth=2,o.barLength=20,o.barRadius=2,o.barPad=1,o.barColor="#808BA4",o.prototype.enable=function(e,t,i){var s=this.gd._fullLayout,l=s.width,c=s.height;this.position=e;var u,d,p,h,f=this.position.l,m=this.position.w,g=this.position.t,y=this.position.h,b=this.position.direction,v="down"===b,M="left"===b,x="up"===b,z=m,_=y;!v&&!M&&!("right"===b)&&!x&&(this.position.direction="down",v=!0),v||x?(d=(u=f)+z,v?(p=g,_=(h=Math.min(p+_,c))-p):_=(h=g+_)-(p=Math.max(h-_,0))):(h=(p=g)+_,M?z=(d=f+z)-(u=Math.max(d-z,0)):(u=f,z=(d=Math.min(u+z,l))-u)),this._box={l:u,t:p,w:z,h:_};var A=m>z,O=o.barLength+2*o.barPad,w=o.barWidth+2*o.barPad,k=f,T=g+y;T+w>c&&(T=c-w);var S=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);S.exit().on(".drag",null).remove(),S.enter().append("rect").classed("scrollbar-horizontal",!0).call(r.fill,o.barColor),A?(this.hbar=S.attr({rx:o.barRadius,ry:o.barRadius,x:k,y:T,width:O,height:w}),this._hbarXMin=k+O/2,this._hbarTranslateMax=z-O):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var C=y>_,E=o.barWidth+2*o.barPad,q=o.barLength+2*o.barPad,D=f+m,R=g;D+E>l&&(D=l-E);var L=this.container.selectAll("rect.scrollbar-vertical").data(C?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-vertical",!0).call(r.fill,o.barColor),C?(this.vbar=L.attr({rx:o.barRadius,ry:o.barRadius,x:D,y:R,width:E,height:q}),this._vbarYMin=R+q/2,this._vbarTranslateMax=_-q):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var I=this.id,W=u-.5,N=C?d+E+.5:d+.5,P=p-.5,B=A?h+w+.5:h+.5,F=s._topdefs.selectAll("#"+I).data(A||C?[0]:[]);if(F.exit().remove(),F.enter().append("clipPath").attr("id",I).append("rect"),A||C?(this._clipRect=F.select("rect").attr({x:Math.floor(W),y:Math.floor(P),width:Math.ceil(N)-Math.floor(W),height:Math.ceil(B)-Math.floor(P)}),this.container.call(a.setClipUrl,I,this.gd),this.bg.attr({x:f,y:g,width:m,height:y})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(a.setClipUrl,null),delete this._clipRect),A||C){var j=n.behavior.drag().on("dragstart",function(){n.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(j);var U=n.behavior.drag().on("dragstart",function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(U),C&&this.vbar.on(".drag",null).call(U)}this.setTranslate(t,i)},o.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(a.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},o.prototype._onBoxDrag=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e-=n.event.dx),this.vbar&&(t-=n.event.dy),this.setTranslate(e,t)},o.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=n.event.deltaY),this.vbar&&(t+=n.event.deltaY),this.setTranslate(e,t)},o.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var r=e+this._hbarXMin,a=r+this._hbarTranslateMax;e=(i.constrain(n.event.x,r,a)-r)/(a-r)*(this.position.w-this._box.w)}if(this.vbar){var o=t+this._vbarYMin,s=o+this._vbarTranslateMax;t=(i.constrain(n.event.y,o,s)-o)/(s-o)*(this.position.h-this._box.h)}this.setTranslate(e,t)},o.prototype.setTranslate=function(e,t){var n=this.position.w-this._box.w,r=this.position.h-this._box.h;if(e=i.constrain(e||0,0,n),t=i.constrain(t||0,0,r),this.translateX=e,this.translateY=t,this.container.call(a.setTranslate,this._box.l-this.position.l-e,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+e-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var o=e/n;this.hbar.call(a.setTranslate,e+o*this._hbarTranslateMax,t)}if(this.vbar){var s=t/r;this.vbar.call(a.setTranslate,e,t+s*this._vbarTranslateMax)}}}),kVe=Ee((e,t)=>{var n=mo(),r=td(),a=ao(),i=vs(),o=Fr(),s=q1(),l=Kl().arrayEditor,c=lh().LINE_SPACING,u=Hj(),d=bVe();function p(e){return e._index}function h(e,t){return+e.attr(u.menuIndexAttrName)===t._index}function f(e,t,n,r,a,i,o,s){t.active=o,l(e.layout,u.name,t).applyUpdate("active",o),"buttons"===t.type?g(e,r,null,null,t):"dropdown"===t.type&&(a.attr(u.menuIndexAttrName,"-1"),m(e,r,a,i,t),s||g(e,r,a,i,t))}function m(e,t,n,r,a){var s=o.ensureSingle(t,"g",u.headerClassName,function(e){e.style("pointer-events","all")}),l=a._dims,c=a.active,d=a.buttons[c]||u.blankHeaderOpts,p={y:a.pad.t,yPad:0,x:a.pad.l,xPad:0,index:0},f={width:l.headerWidth,height:l.headerHeight};s.call(y,a,d,e).call(O,a,p,f),o.ensureSingle(t,"text",u.headerArrowClassName,function(e){e.attr("text-anchor","end").call(i.font,a.font).text(u.arrowSymbol[a.direction])}).attr({x:l.headerWidth-u.arrowOffsetX+a.pad.l,y:l.headerHeight/2+u.textOffsetY+a.pad.t}),s.on("click",function(){n.call(w,String(h(n,a)?-1:a._index)),g(e,t,n,r,a)}),s.on("mouseover",function(){s.call(x)}),s.on("mouseout",function(){s.call(z,a)}),i.setTranslate(t,l.lx,l.ly)}function g(e,t,a,i,s){a||(a=t).attr("pointer-events","all");var l=function(e){return-1==+e.attr(u.menuIndexAttrName)}(a)&&"buttons"!==s.type?[]:s.buttons,c="dropdown"===s.type?u.dropdownButtonClassName:u.buttonClassName,d=a.selectAll("g."+c).data(o.filterVisible(l)),p=d.enter().append("g").classed(c,!0),h=d.exit();"dropdown"===s.type?(p.attr("opacity","0").transition().attr("opacity","1"),h.transition().attr("opacity","0").remove()):h.remove();var m=0,g=0,b=s._dims,v=-1!==["up","down"].indexOf(s.direction);"dropdown"===s.type&&(v?g=b.headerHeight+u.gapButtonHeader:m=b.headerWidth+u.gapButtonHeader),"dropdown"===s.type&&"up"===s.direction&&(g=-u.gapButtonHeader+u.gapButton-b.openHeight),"dropdown"===s.type&&"left"===s.direction&&(m=-u.gapButtonHeader+u.gapButton-b.openWidth);var _={x:b.lx+m+s.pad.l,y:b.ly+g+s.pad.t,yPad:u.gapButton,xPad:u.gapButton,index:0},A={l:_.x+s.borderwidth,t:_.y+s.borderwidth};d.each(function(o,l){var c=n.select(this);c.call(y,s,o,e).call(O,s,_),c.on("click",function(){n.event.defaultPrevented||(o.execute&&(o.args2&&s.active===l?(f(e,s,0,t,a,i,-1),r.executeAPICommand(e,o.method,o.args2)):(f(e,s,0,t,a,i,l),r.executeAPICommand(e,o.method,o.args))),e.emit("plotly_buttonclicked",{menu:s,button:o,active:s.active}))}),c.on("mouseover",function(){c.call(x)}),c.on("mouseout",function(){c.call(z,s),d.call(M,s)})}),d.call(M,s),v?(A.w=Math.max(b.openWidth,b.headerWidth),A.h=_.y-A.t):(A.w=_.x-A.l,A.h=Math.max(b.openHeight,b.headerHeight)),A.direction=s.direction,i&&(d.size()?function(e,t,n,r,a,i){var o,s,l,c=a.direction,d="up"===c||"down"===c,p=a._dims,h=a.active;if(d)for(s=0,l=0;l<h;l++)s+=p.heights[l]+u.gapButton;else for(o=0,l=0;l<h;l++)o+=p.widths[l]+u.gapButton;r.enable(i,o,s),r.hbar&&r.hbar.attr("opacity","0").transition().attr("opacity","1"),r.vbar&&r.vbar.attr("opacity","0").transition().attr("opacity","1")}(0,0,0,i,s,A):function(e){var t=!!e.hbar,n=!!e.vbar;t&&e.hbar.transition().attr("opacity","0").each("end",function(){t=!1,n||e.disable()}),n&&e.vbar.transition().attr("opacity","0").each("end",function(){n=!1,t||e.disable()})}(i))}function y(e,t,n,r){e.call(b,t).call(v,t,n,r)}function b(e,t){o.ensureSingle(e,"rect",u.itemRectClassName,function(e){e.attr({rx:u.rx,ry:u.ry,"shape-rendering":"crispEdges"})}).call(a.stroke,t.bordercolor).call(a.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function v(e,t,n,r){var a=o.ensureSingle(e,"text",u.itemTextClassName,function(e){e.attr({"text-anchor":"start","data-notex":1})}),l=n.label,c=r._fullLayout._meta;c&&(l=o.templateString(l,c)),a.call(i.font,t.font).text(l).call(s.convertToTspans,r)}function M(e,t){var r=t.active;e.each(function(e,i){var o=n.select(this);i===r&&t.showactive&&o.select("rect."+u.itemRectClassName).call(a.fill,u.activeColor)})}function x(e){e.select("rect."+u.itemRectClassName).call(a.fill,u.hoverColor)}function z(e,t){e.select("rect."+u.itemRectClassName).call(a.fill,t.bgcolor)}function _(e,t){var a=t._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},l=i.tester.selectAll("g."+u.dropdownButtonClassName).data(o.filterVisible(t.buttons));l.enter().append("g").classed(u.dropdownButtonClassName,!0);var d=-1!==["up","down"].indexOf(t.direction);l.each(function(r,o){var l=n.select(this);l.call(y,t,r,e);var p=l.select("."+u.itemTextClassName),h=p.node()&&i.bBox(p.node()).width,f=Math.max(h+u.textPadX,u.minWidth),m=t.font.size*c,g=s.lineCount(p),b=Math.max(m*g,u.minHeight)+u.textOffsetY;b=Math.ceil(b),f=Math.ceil(f),a.widths[o]=f,a.heights[o]=b,a.height1=Math.max(a.height1,b),a.width1=Math.max(a.width1,f),d?(a.totalWidth=Math.max(a.totalWidth,f),a.openWidth=a.totalWidth,a.totalHeight+=b+u.gapButton,a.openHeight+=b+u.gapButton):(a.totalWidth+=f+u.gapButton,a.openWidth+=f+u.gapButton,a.totalHeight=Math.max(a.totalHeight,b),a.openHeight=a.totalHeight)}),d?a.totalHeight-=u.gapButton:a.totalWidth-=u.gapButton,a.headerWidth=a.width1+u.arrowPadX,a.headerHeight=a.height1,"dropdown"===t.type&&(d?(a.width1+=u.arrowPadX,a.totalHeight=a.height1):a.totalWidth=a.width1,a.totalWidth+=u.arrowPadX),l.remove();var p=a.totalWidth+t.pad.l+t.pad.r,h=a.totalHeight+t.pad.t+t.pad.b,f=e._fullLayout._size;a.lx=f.l+f.w*t.x,a.ly=f.t+f.h*(1-t.y);var m="left";o.isRightAnchor(t)&&(a.lx-=p,m="right"),o.isCenterAnchor(t)&&(a.lx-=p/2,m="center");var g="top";o.isBottomAnchor(t)&&(a.ly-=h,g="bottom"),o.isMiddleAnchor(t)&&(a.ly-=h/2,g="middle"),a.totalWidth=Math.ceil(a.totalWidth),a.totalHeight=Math.ceil(a.totalHeight),a.lx=Math.round(a.lx),a.ly=Math.round(a.ly),r.autoMargin(e,A(t),{x:t.x,y:t.y,l:p*({right:1,center:.5}[m]||0),r:p*({left:1,center:.5}[m]||0),b:h*({top:1,middle:.5}[g]||0),t:h*({bottom:1,middle:.5}[g]||0)})}function A(e){return u.autoMarginIdRoot+e._index}function O(e,t,n,r){r=r||{};var a=e.select("."+u.itemRectClassName),o=e.select("."+u.itemTextClassName),l=t.borderwidth,d=n.index,p=t._dims;i.setTranslate(e,l+n.x,l+n.y);var h=-1!==["up","down"].indexOf(t.direction),f=r.height||(h?p.heights[d]:p.height1);a.attr({x:0,y:0,width:r.width||(h?p.width1:p.widths[d]),height:f});var m=t.font.size*c,g=(s.lineCount(o)-1)*m/2;s.positionText(o,u.textOffsetX,f/2-g+u.textOffsetY),h?n.y+=p.heights[d]+n.yPad:n.x+=p.widths[d]+n.xPad,n.index++}function w(e,t){e.attr(u.menuIndexAttrName,t||"-1").selectAll("g."+u.dropdownButtonClassName).remove()}t.exports=function(e){var t=e._fullLayout,a=o.filterVisible(t[u.name]);function i(t){r.autoMargin(e,A(t))}var s=t._menulayer.selectAll("g."+u.containerClassName).data(a.length>0?[0]:[]);if(s.enter().append("g").classed(u.containerClassName,!0).style("cursor","pointer"),s.exit().each(function(){n.select(this).selectAll("g."+u.headerGroupClassName).each(i)}).remove(),0!==a.length){var l=s.selectAll("g."+u.headerGroupClassName).data(a,p);l.enter().append("g").classed(u.headerGroupClassName,!0);for(var c=o.ensureSingle(s,"g",u.dropdownButtonGroupClassName,function(e){e.style("pointer-events","all")}),y=0;y<a.length;y++){var b=a[y];_(e,b)}var v="updatemenus"+t._uid,M=new d(e,c,v);l.enter().size()&&(c.node().parentNode.appendChild(c.node()),c.call(w)),l.exit().each(function(e){c.call(w),i(e)}).remove(),l.each(function(t){var a=n.select(this),i="dropdown"===t.type?c:null;r.manageCommandObserver(e,t,t.buttons,function(n){f(e,t,t.buttons[n.index],a,i,M,n.index,!0)}),"dropdown"===t.type?(m(e,a,c,M,t),h(c,t)&&g(e,a,c,M,t)):g(e,a,null,null,t)})}}}),EVe=Ee((e,t)=>{var n=Hj();t.exports={moduleType:"component",name:n.name,layoutAttributes:cce(),supplyLayoutDefaults:vVe(),draw:kVe()}}),RR=Ee((e,t)=>{t.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}}),hce=Ee((e,t)=>{var n=Mu(),r=rH(),a=ms().extendDeepAll,i=Wu().overrideAll,o=oD(),s=Kl().templatedArray,l=RR(),c=s("step",{visible:{valType:"boolean",dflt:!0,description:["Determines whether or not this step is included in the slider."].join(" ")},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",description:["Sets the Plotly method to be called when the slider value is changed.","If the `skip` method is used, the API slider will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","slider events manually via JavaScript."].join(" ")},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on slide."].join(" ")},label:{valType:"string",description:"Sets the text label to appear on the slider"},value:{valType:"string",description:["Sets the value of the slider step, used to refer to the step programatically.","Defaults to the slider label if not provided."].join(" ")},execute:{valType:"boolean",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_sliderchange` method and executing the API command manually without losing","the benefit of the slider automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}});t.exports=i(s("slider",{visible:{valType:"boolean",dflt:!0,description:["Determines whether or not the slider is visible."].join(" ")},active:{valType:"number",min:0,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},steps:c,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction",description:["Determines whether this slider length","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,description:["Sets the length of the slider","This measure excludes the padding of both ends.","That is, the slider's length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:0,description:"Sets the x position (in normalized coordinates) of the slider."},pad:a(r({editType:"arraydraw"}),{description:"Set the padding of the slider component along each side."},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",description:["Sets the slider's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:0,description:"Sets the y position (in normalized coordinates) of the slider."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",description:["Sets the slider's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},transition:{duration:{valType:"number",min:0,dflt:150,description:"Sets the duration of the slider transition"},easing:{valType:"enumerated",values:o.transition.easing.values,dflt:"cubic-in-out",description:"Sets the easing function of the slider transition"}},currentvalue:{visible:{valType:"boolean",dflt:!0,description:["Shows the currently-selected value above the slider."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",description:["The alignment of the value readout relative to the length of the slider."].join(" ")},offset:{valType:"number",dflt:10,description:["The amount of space, in pixels, between the current value label","and the slider."].join(" ")},prefix:{valType:"string",description:"When currentvalue.visible is true, this sets the prefix of the label."},suffix:{valType:"string",description:"When currentvalue.visible is true, this sets the suffix of the label."},font:n({description:"Sets the font of the current value label text."})},font:n({description:"Sets the font of the slider step labels."}),activebgcolor:{valType:"color",dflt:l.gripBgActiveColor,description:["Sets the background color of the slider grip","while dragging."].join(" ")},bgcolor:{valType:"color",dflt:l.railBgColor,description:"Sets the background color of the slider."},bordercolor:{valType:"color",dflt:l.railBorderColor,description:"Sets the color of the border enclosing the slider."},borderwidth:{valType:"number",min:0,dflt:l.railBorderWidth,description:"Sets the width (in px) of the border enclosing the slider."},ticklen:{valType:"number",min:0,dflt:l.tickLength,description:"Sets the length in pixels of step tick marks"},tickcolor:{valType:"color",dflt:l.tickColor,description:"Sets the color of the border enclosing the slider."},tickwidth:{valType:"number",min:0,dflt:1,description:"Sets the tick width (in px)."},minorticklen:{valType:"number",min:0,dflt:l.minorTickLength,description:"Sets the length in pixels of minor step tick marks"}}),"arraydraw","from-root")}),WVe=Ee((e,t)=>{var n=Fr(),r=Pp(),a=hce(),i=RR().name,o=a.steps;function s(e,t,i){function o(r,i){return n.coerce(e,t,a,r,i)}for(var s=r(e,t,{name:"steps",handleItemDefaults:l}),c=0,u=0;u<s.length;u++)s[u].visible&&c++;if(c<2?t.visible=!1:o("visible")){t._stepCount=c;var d=t._visibleSteps=n.filterVisible(s);(s[o("active")]||{}).visible||(t.active=d[0]._index),o("x"),o("y"),n.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("len"),o("lenmode"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),n.coerceFont(o,"font",i.font),o("currentvalue.visible")&&(o("currentvalue.xanchor"),o("currentvalue.prefix"),o("currentvalue.suffix"),o("currentvalue.offset"),n.coerceFont(o,"currentvalue.font",t.font)),o("transition.duration"),o("transition.easing"),o("bgcolor"),o("activebgcolor"),o("bordercolor"),o("borderwidth"),o("ticklen"),o("tickwidth"),o("tickcolor"),o("minorticklen")}}function l(e,t){function r(r,a){return n.coerce(e,t,o,r,a)}if("skip"===e.method||Array.isArray(e.args)?r("visible"):t.visible=!1){r("method"),r("args");var a=r("label","step-"+t._index);r("value",a),r("execute")}}t.exports=function(e,t){r(e,t,{name:i,handleItemDefaults:s})}}),ZVe=Ee((e,t)=>{var n=mo(),r=td(),a=ao(),i=vs(),o=Fr(),s=o.strTranslate,l=q1(),c=Kl().arrayEditor,u=RR(),d=lh(),p=d.LINE_SPACING,h=d.FROM_TL,f=d.FROM_BR;function m(e){return u.autoMarginIdRoot+e._index}function g(e){return e._index}function y(e,t){var a=i.tester.selectAll("g."+u.labelGroupClass).data(t._visibleSteps);a.enter().append("g").classed(u.labelGroupClass,!0);var s=0,c=0;a.each(function(e){var r=M(n.select(this),{step:e},t).node();if(r){var a=i.bBox(r);c=Math.max(c,a.height),s=Math.max(s,a.width)}}),a.remove();var d=t._dims={};d.inputAreaWidth=Math.max(u.railWidth,u.gripHeight);var p=e._fullLayout._size;d.lx=p.l+p.w*t.x,d.ly=p.t+p.h*(1-t.y),"fraction"===t.lenmode?d.outerLength=Math.round(p.w*t.len):d.outerLength=t.len,d.inputAreaStart=0,d.inputAreaLength=Math.round(d.outerLength-t.pad.l-t.pad.r);var g=(d.inputAreaLength-2*u.stepInset)/(t._stepCount-1),y=s+u.labelPadding;if(d.labelStride=Math.max(1,Math.ceil(y/g)),d.labelHeight=c,d.currentValueMaxWidth=0,d.currentValueHeight=0,d.currentValueTotalHeight=0,d.currentValueMaxLines=1,t.currentvalue.visible){var v=i.tester.append("g");a.each(function(e){var n=b(v,t,e.label),r=n.node()&&i.bBox(n.node())||{width:0,height:0},a=l.lineCount(n);d.currentValueMaxWidth=Math.max(d.currentValueMaxWidth,Math.ceil(r.width)),d.currentValueHeight=Math.max(d.currentValueHeight,Math.ceil(r.height)),d.currentValueMaxLines=Math.max(d.currentValueMaxLines,a)}),d.currentValueTotalHeight=d.currentValueHeight+t.currentvalue.offset,v.remove()}d.height=d.currentValueTotalHeight+u.tickOffset+t.ticklen+u.labelOffset+d.labelHeight+t.pad.t+t.pad.b;var x="left";o.isRightAnchor(t)&&(d.lx-=d.outerLength,x="right"),o.isCenterAnchor(t)&&(d.lx-=d.outerLength/2,x="center");var z="top";o.isBottomAnchor(t)&&(d.ly-=d.height,z="bottom"),o.isMiddleAnchor(t)&&(d.ly-=d.height/2,z="middle"),d.outerLength=Math.ceil(d.outerLength),d.height=Math.ceil(d.height),d.lx=Math.round(d.lx),d.ly=Math.round(d.ly);var _={y:t.y,b:d.height*f[z],t:d.height*h[z]};"fraction"===t.lenmode?(_.l=0,_.xl=t.x-t.len*h[x],_.r=0,_.xr=t.x+t.len*f[x]):(_.x=t.x,_.l=d.outerLength*h[x],_.r=d.outerLength*f[x]),r.autoMargin(e,m(t),_)}function b(e,t,n){if(t.currentvalue.visible){var r,a,s=t._dims;switch(t.currentvalue.xanchor){case"right":r=s.inputAreaLength-u.currentValueInset-s.currentValueMaxWidth,a="left";break;case"center":r=.5*s.inputAreaLength,a="middle";break;default:r=u.currentValueInset,a="left"}var c=o.ensureSingle(e,"text",u.labelClass,function(e){e.attr({"text-anchor":a,"data-notex":1})}),d=t.currentvalue.prefix?t.currentvalue.prefix:"";if("string"==typeof n)d+=n;else{var h=t.steps[t.active].label,f=t._gd._fullLayout._meta;f&&(h=o.templateString(h,f)),d+=h}t.currentvalue.suffix&&(d+=t.currentvalue.suffix),c.call(i.font,t.currentvalue.font).text(d).call(l.convertToTspans,t._gd);var m=l.lineCount(c),g=(s.currentValueMaxLines+1-m)*t.currentvalue.font.size*p;return l.positionText(c,r,g),c}}function v(e,t,n){o.ensureSingle(e,"rect",u.gripRectClass,function(r){r.call(A,t,e,n).style("pointer-events","all")}).attr({width:u.gripWidth,height:u.gripHeight,rx:u.gripRadius,ry:u.gripRadius}).call(a.stroke,n.bordercolor).call(a.fill,n.bgcolor).style("stroke-width",n.borderwidth+"px")}function M(e,t,n){var r=o.ensureSingle(e,"text",u.labelClass,function(e){e.attr({"text-anchor":"middle","data-notex":1})}),a=t.step.label,s=n._gd._fullLayout._meta;return s&&(a=o.templateString(a,s)),r.call(i.font,n.font).text(a).call(l.convertToTspans,n._gd),r}function x(e,t){var r=o.ensureSingle(e,"g",u.labelsClass),a=t._dims,s=r.selectAll("g."+u.labelGroupClass).data(a.labelSteps);s.enter().append("g").classed(u.labelGroupClass,!0),s.exit().remove(),s.each(function(e){var r=n.select(this);r.call(M,e,t),i.setTranslate(r,k(t,e.fraction),u.tickOffset+t.ticklen+t.font.size*p+u.labelOffset+a.currentValueTotalHeight)})}function z(e,t,n,r,a){var i=Math.round(r*(n._stepCount-1)),o=n._visibleSteps[i]._index;o!==n.active&&_(e,t,n,o,!0,a)}function _(e,t,n,a,i,o){var s=n.active;n.active=a,c(e.layout,u.name,n).applyUpdate("active",a);var l=n.steps[n.active];t.call(w,n,o),t.call(b,n),e.emit("plotly_sliderchange",{slider:n,step:n.steps[n.active],interaction:i,previousActive:s}),l&&l.method&&i&&(t._nextMethod?(t._nextMethod.step=l,t._nextMethod.doCallback=i,t._nextMethod.doTransition=o):(t._nextMethod={step:l,doCallback:i,doTransition:o},t._nextMethodRaf=window.requestAnimationFrame(function(){var n=t._nextMethod.step;n.method&&(n.execute&&r.executeAPICommand(e,n.method,n.args),t._nextMethod=null,t._nextMethodRaf=null)})))}function A(e,t,r){if(!t._context.staticPlot){var i=r.node(),o=n.select(t);e.on("mousedown",l),e.on("touchstart",l)}function s(){return r.data()[0]}function l(){var e=s();t.emit("plotly_sliderstart",{slider:e});var l=r.select("."+u.gripRectClass);n.event.stopPropagation(),n.event.preventDefault(),l.call(a.fill,e.activebgcolor);var c=T(e,n.mouse(i)[0]);function d(){var e=s(),a=T(e,n.mouse(i)[0]);z(t,r,e,a,!1)}function p(){var e=s();e._dragging=!1,l.call(a.fill,e.bgcolor),o.on("mouseup",null),o.on("mousemove",null),o.on("touchend",null),o.on("touchmove",null),t.emit("plotly_sliderend",{slider:e,step:e.steps[e.active]})}z(t,r,e,c,!0),e._dragging=!0,o.on("mousemove",d),o.on("touchmove",d),o.on("mouseup",p),o.on("touchend",p)}}function O(e,t){var r=e.selectAll("rect."+u.tickRectClass).data(t._visibleSteps),o=t._dims;r.enter().append("rect").classed(u.tickRectClass,!0),r.exit().remove(),r.attr({width:t.tickwidth+"px","shape-rendering":"crispEdges"}),r.each(function(e,r){var s=r%o.labelStride===0,l=n.select(this);l.attr({height:s?t.ticklen:t.minorticklen}).call(a.fill,t.tickcolor),i.setTranslate(l,k(t,r/(t._stepCount-1))-.5*t.tickwidth,(s?u.tickOffset:u.minorTickOffset)+o.currentValueTotalHeight)})}function w(e,t,n){for(var r=e.select("rect."+u.gripRectClass),a=0,i=0;i<t._stepCount;i++)if(t._visibleSteps[i]._index===t.active){a=i;break}var o=k(t,a/(t._stepCount-1));if(!t._invokingCommand){var l=r;n&&t.transition.duration>0&&(l=l.transition().duration(t.transition.duration).ease(t.transition.easing)),l.attr("transform",s(o-.5*u.gripWidth,t._dims.currentValueTotalHeight))}}function k(e,t){var n=e._dims;return n.inputAreaStart+u.stepInset+(n.inputAreaLength-2*u.stepInset)*Math.min(1,Math.max(0,t))}function T(e,t){var n=e._dims;return Math.min(1,Math.max(0,(t-u.stepInset-n.inputAreaStart)/(n.inputAreaLength-2*u.stepInset-2*n.inputAreaStart)))}function S(e,t,n){var r=n._dims,s=o.ensureSingle(e,"rect",u.railTouchRectClass,function(r){r.call(A,t,e,n).style("pointer-events","all")});s.attr({width:r.inputAreaLength,height:Math.max(r.inputAreaWidth,u.tickOffset+n.ticklen+r.labelHeight)}).call(a.fill,n.bgcolor).attr("opacity",0),i.setTranslate(s,0,r.currentValueTotalHeight)}function C(e,t){var n=t._dims,r=n.inputAreaLength-2*u.railInset,s=o.ensureSingle(e,"rect",u.railRectClass);s.attr({width:r,height:u.railWidth,rx:u.railRadius,ry:u.railRadius,"shape-rendering":"crispEdges"}).call(a.stroke,t.bordercolor).call(a.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),i.setTranslate(s,u.railInset,.5*(n.inputAreaWidth-u.railWidth)+n.currentValueTotalHeight)}t.exports=function(e){var t=e._context.staticPlot,a=e._fullLayout,o=function(e,t){for(var n=e[u.name],r=[],a=0;a<n.length;a++){var i=n[a];i.visible&&(i._gd=t,r.push(i))}return r}(a,e),s=a._infolayer.selectAll("g."+u.containerClassName).data(o.length>0?[0]:[]);function l(t){t._commandObserver&&(t._commandObserver.remove(),delete t._commandObserver),r.autoMargin(e,m(t))}if(s.enter().append("g").classed(u.containerClassName,!0).style("cursor",t?null:"ew-resize"),s.exit().each(function(){n.select(this).selectAll("g."+u.groupClassName).each(l)}).remove(),0!==o.length){var c=s.selectAll("g."+u.groupClassName).data(o,g);c.enter().append("g").classed(u.groupClassName,!0),c.exit().each(l).remove();for(var d=0;d<o.length;d++){var p=o[d];y(e,p)}c.each(function(t){var a=n.select(this);(function(e){var t=e._dims;t.labelSteps=[];for(var n=e._stepCount,r=0;r<n;r+=t.labelStride)t.labelSteps.push({fraction:r/(n-1),step:e._visibleSteps[r]})})(t),r.manageCommandObserver(e,t,t._visibleSteps,function(t){var n=a.data()[0];n.active!==t.index&&(n._dragging||_(e,a,n,t.index,!1,!0))}),function(e,t,n){(n.steps[n.active]||{}).visible||(n.active=n._visibleSteps[0]._index),t.call(b,n).call(C,n).call(x,n).call(O,n).call(S,e,n).call(v,e,n);var r=n._dims;i.setTranslate(t,r.lx+n.pad.l,r.ly+n.pad.t),t.call(w,n,!1),t.call(b,n)}(e,n.select(this),t)})}}}),KVe=Ee((e,t)=>{var n=RR();t.exports={moduleType:"component",name:n.name,layoutAttributes:hce(),supplyLayoutDefaults:WVe(),draw:ZVe()}}),Zj=Ee((e,t)=>{var n=oh();t.exports={bgcolor:{valType:"color",dflt:n.background,editType:"plot",description:"Sets the background color of the range slider."},bordercolor:{valType:"color",dflt:n.defaultLine,editType:"plot",description:"Sets the border color of the range slider."},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot",description:"Sets the border width of the range slider."},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Determines whether or not the range slider range is","computed in relation to the input data.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1},description:["Sets the range of the range slider.","If not set, defaults to the full xaxis range.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot",description:["The height of the range slider as a fraction of the","total plot area height."].join(" ")},visible:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not the range slider will be visible.","If visible, perpendicular axes will be set to `fixedrange`"].join(" ")},editType:"calc"}}),yce=Ee((e,t)=>{t.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc",description:["Determines whether or not the range of this axis in","the rangeslider use the same value than in the main plot","when zooming in/out.","If *auto*, the autorange will be used.","If *fixed*, the `range` is used.","If *match*, the current range of the corresponding y-axis on the main subplot is used."].join(" ")},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot",description:["Sets the range of this axis for the rangeslider."].join(" ")},editType:"calc"}}),$j=Ee((e,t)=>{t.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}}),aje=Ee(e=>{var t=Ld(),n=q1(),r=$j(),a=lh().LINE_SPACING,i=r.name;function o(e){var t=e&&e[i];return t&&t.visible}e.isVisible=o,e.makeData=function(e){for(var n=t.list({_fullLayout:e},"x",!0),r=e.margin,a=[],s=0;s<n.length;s++){var l=n[s];if(o(l)){a.push(l);var c=l[i];c._id=i+l._id,c._height=(e.height-r.b-r.t)*c.thickness,c._offsetShift=Math.floor(c.borderwidth/2)}}e._rangeSliderData=a},e.autoMarginOpts=function(e,t){var o=e._fullLayout,s=t[i],l=t._id.charAt(0),c=0,u=0;"bottom"===t.side&&(c=t._depth,t.title.text!==o._dfltTitle[l])&&(u=1.5*t.title.font.size+10+s._offsetShift,u+=(t.title.text.match(n.BR_TAG_ALL)||[]).length*t.title.font.size*a);return{x:0,y:t._counterDomainMin,l:0,r:0,t:0,b:s._height+c+Math.max(o.margin.b,u),pad:r.extraPad+2*s._offsetShift}}}),lje=Ee((e,t)=>{var n=Fr(),r=Kl(),a=Ld(),i=Zj(),o=yce();t.exports=function(e,t,s){var l=e[s],c=t[s];if(l.rangeslider||t._requestRangeslider[c._id]){n.isPlainObject(l.rangeslider)||(l.rangeslider={});var u,d,p=l.rangeslider,h=r.newContainer(c,"rangeslider");if(x("visible")){x("bgcolor",t.plot_bgcolor),x("bordercolor"),x("borderwidth"),x("thickness"),x("autorange",!c.isValidRange(p.range)),x("range");var f=t._subplots;if(f)for(var m=f.cartesian.filter(function(e){return e.slice(0,Math.max(0,e.indexOf("y")))===a.name2id(s)}).map(function(e){return e.slice(e.indexOf("y"),e.length)}),g=n.simpleMap(m,a.id2name),y=0;y<g.length;y++){var b=g[y];u=p[b]||{},d=r.newContainer(h,b,"yaxis");var v,M=t[b];u.range&&M.isValidRange(u.range)&&(v="fixed"),"match"!==z("rangemode",v)&&z("range",M.range.slice())}h._input=p}}function x(e,t){return n.coerce(p,h,i,e,t)}function z(e,t){return n.coerce(u,d,o,e,t)}}}),uje=Ee((e,t)=>{var n=Ld().list,r=$y().getAutoRange,a=$j();t.exports=function(e){for(var t=n(e,"x",!0),i=0;i<t.length;i++){var o=t[i],s=o[a.name];s&&s.visible&&s.autorange&&(s._input.autorange=!0,s._input.range=s.range=r(e,o))}}}),pje=Ee((e,t)=>{var n=mo(),r=vo(),a=td(),i=Fr(),o=i.strTranslate,s=vs(),l=ao(),c=xw(),u=Bf(),d=Ld(),p=p2(),h=Ky(),f=$j();function m(e){return"number"==typeof e.clientX?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function g(e,t,n,r){var a=i.ensureSingle(e,"rect",f.bgClassName,function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),c=r.borderwidth%2==0?r.borderwidth:r.borderwidth-1,u=-r._offsetShift,d=s.crispRound(t,r.borderwidth);a.attr({width:r._width+c,height:r._height+c,transform:o(u,u),"stroke-width":d}).call(l.stroke,r.bordercolor).call(l.fill,r.bgcolor)}function y(e,t,n,r){var a=t._fullLayout;i.ensureSingleById(a._topdefs,"clipPath",r._clipId,function(e){e.append("rect").attr({x:0,y:0})}).select("rect").attr({width:r._width,height:r._height})}function b(e,t,r,o){var l,c=t.calcdata,p=e.selectAll("g."+f.rangePlotClassName).data(r._subplotsWith,i.identity);p.enter().append("g").attr("class",function(e){return f.rangePlotClassName+" "+e}).call(s.setClipUrl,o._clipId,t),p.order(),p.exit().remove(),p.each(function(e,i){var s=n.select(this),p=0===i,h=d.getFromId(t,e,"y"),f=h._name,m=o[f],g={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:o.range.slice(),calendar:r.calendar},width:o._width,height:o._height,margin:{t:0,b:0,l:0,r:0}},_context:t._context};r.rangebreaks&&(g.layout.xaxis.rangebreaks=r.rangebreaks),g.layout[f]={type:h.type,domain:[0,1],range:"match"!==m.rangemode?m.range.slice():h.range.slice(),calendar:h.calendar},h.rangebreaks&&(g.layout[f].rangebreaks=h.rangebreaks),a.supplyDefaults(g);var y=g._fullLayout.xaxis,b=g._fullLayout[f];y.clearCalc(),y.setScale(),b.clearCalc(),b.setScale();var v={id:e,plotgroup:s,xaxis:y,yaxis:b,isRangePlot:!0};p?l=v:(v.mainplot="xy",v.mainplotinfo=l),u.rangePlot(t,v,function(e,t){for(var n=[],r=0;r<e.length;r++){var a=e[r],i=a[0].trace;i.xaxis+i.yaxis===t&&n.push(a)}return n}(c,e))})}function v(e,t,n,r,a){(i.ensureSingle(e,"rect",f.maskMinClassName,function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})}).attr("height",r._height).call(l.fill,f.maskColor),i.ensureSingle(e,"rect",f.maskMaxClassName,function(e){e.attr({y:0,"shape-rendering":"crispEdges"})}).attr("height",r._height).call(l.fill,f.maskColor),"match"!==a.rangemode)&&(i.ensureSingle(e,"rect",f.maskMinOppAxisClassName,function(e){e.attr({y:0,"shape-rendering":"crispEdges"})}).attr("width",r._width).call(l.fill,f.maskOppAxisColor),i.ensureSingle(e,"rect",f.maskMaxOppAxisClassName,function(e){e.attr({y:0,"shape-rendering":"crispEdges"})}).attr("width",r._width).style("border-top",f.maskOppBorder).call(l.fill,f.maskOppAxisColor))}function M(e,t,n,r){t._context.staticPlot||i.ensureSingle(e,"rect",f.slideBoxClassName,function(e){e.attr({y:0,cursor:f.slideBoxCursor,"shape-rendering":"crispEdges"})}).attr({height:r._height,fill:f.slideBoxFill})}function x(e,t,n,r){var a=i.ensureSingle(e,"g",f.grabberMinClassName),o=i.ensureSingle(e,"g",f.grabberMaxClassName),s={x:0,width:f.handleWidth,rx:f.handleRadius,fill:l.background,stroke:l.defaultLine,"stroke-width":f.handleStrokeWidth,"shape-rendering":"crispEdges"},c={y:Math.round(r._height/4),height:Math.round(r._height/2)};i.ensureSingle(a,"rect",f.handleMinClassName,function(e){e.attr(s)}).attr(c),i.ensureSingle(o,"rect",f.handleMaxClassName,function(e){e.attr(s)}).attr(c);var u={width:f.grabAreaWidth,x:0,y:0,fill:f.grabAreaFill,cursor:t._context.staticPlot?void 0:f.grabAreaCursor};i.ensureSingle(a,"rect",f.grabAreaMinClassName,function(e){e.attr(u)}).attr("height",r._height),i.ensureSingle(o,"rect",f.grabAreaMaxClassName,function(e){e.attr(u)}).attr("height",r._height)}t.exports=function(e){for(var t=e._fullLayout,a=t._rangeSliderData,s=0;s<a.length;s++){var l=a[s][f.name];l._clipId=l._id+"-"+t._uid}var u=t._infolayer.selectAll("g."+f.containerClassName).data(a,function(e){return e._name});u.exit().each(function(e){var n=e[f.name];t._topdefs.select("#"+n._clipId).remove()}).remove(),0!==a.length&&(u.enter().append("g").classed(f.containerClassName,!0).attr("pointer-events","all"),u.each(function(a){var s=n.select(this),l=a[f.name],u=t[d.id2name(a.anchor)],z=l[d.id2name(a.anchor)];if(l.range){var _,A=i.simpleMap(l.range,a.r2l),O=i.simpleMap(a.range,a.r2l);_=O[0]<O[1]?[Math.min(A[0],O[0]),Math.max(A[1],O[1])]:[Math.max(A[0],O[0]),Math.min(A[1],O[1])],l.range=l._input.range=i.simpleMap(_,a.l2r)}a.cleanRange("rangeslider.range");var w=t._size,k=a.domain;l._width=w.w*(k[1]-k[0]);var T=Math.round(w.l+w.w*k[0]),S=Math.round(w.t+w.h*(1-a._counterDomainMin)+("bottom"===a.side?a._depth:0)+l._offsetShift+f.extraPad);s.attr("transform",o(T,S)),l._rl=i.simpleMap(l.range,a.r2l);var C=l._rl[0],E=l._rl[1],q=E-C;if(l.p2d=function(e){return e/l._width*q+C},l.d2p=function(e){return(e-C)/q*l._width},a.rangebreaks){var D=a.locateBreaks(C,E);if(D.length){var R,L,I=0;for(R=0;R<D.length;R++)I+=(L=D[R]).max-L.min;var W=l._width/(E-C-I),N=[-W*C];for(R=0;R<D.length;R++)L=D[R],N.push(N[N.length-1]-W*(L.max-L.min));for(l.d2p=function(e){for(var t=N[0],n=0;n<D.length;n++){var r=D[n];if(e>=r.max)t=N[n+1];else if(e<r.min)break}return t+W*e},R=0;R<D.length;R++)(L=D[R]).pmin=l.d2p(L.min),L.pmax=l.d2p(L.max);l.p2d=function(e){for(var t=N[0],n=0;n<D.length;n++){var r=D[n];if(e>=r.pmax)t=N[n+1];else if(e<r.pmin)break}return(e-t)/W}}}if("match"!==z.rangemode){var P=u.r2l(z.range[0]),B=u.r2l(z.range[1])-P;l.d2pOppAxis=function(e){return(e-P)/B*l._height}}s.call(g,e,a,l).call(y,e,a,l).call(b,e,a,l).call(v,e,a,l,z).call(M,e,a,l).call(x,e,a,l),function(e,t,a,o){if(t._context.staticPlot)return;var s=e.select("rect."+f.slideBoxClassName).node(),l=e.select("rect."+f.grabAreaMinClassName).node(),c=e.select("rect."+f.grabAreaMaxClassName).node();function u(){var u=n.event,d=u.target,f=m(u),g=f-e.node().getBoundingClientRect().left,y=o.d2p(a._rl[0]),b=o.d2p(a._rl[1]),v=p.coverSlip();function M(e){var u,p,M,x=+m(e)-f;switch(d){case s:if(M="ew-resize",y+x>a._length||b+x<0)return;u=y+x,p=b+x;break;case l:if(M="col-resize",y+x>a._length)return;u=y+x,p=b;break;case c:if(M="col-resize",b+x<0)return;u=y,p=b+x;break;default:M="ew-resize",u=g,p=g+x}if(p<u){var z=p;p=u,u=z}o._pixelMin=u,o._pixelMax=p,h(n.select(v),M),function(e,t,n,a){function o(e){return n.l2r(i.constrain(e,a._rl[0],a._rl[1]))}var s=o(a.p2d(a._pixelMin)),l=o(a.p2d(a._pixelMax));window.requestAnimationFrame(function(){r.call("_guiRelayout",t,n._name+".range",[s,l])})}(0,t,a,o)}function x(){v.removeEventListener("mousemove",M),v.removeEventListener("mouseup",x),this.removeEventListener("touchmove",M),this.removeEventListener("touchend",x),i.removeElement(v)}this.addEventListener("touchmove",M),this.addEventListener("touchend",x),v.addEventListener("mousemove",M),v.addEventListener("mouseup",x)}e.on("mousedown",u),e.on("touchstart",u)}(s,e,a,l),function(e,t,n,r,a,s){var l=f.handleWidth/2;function c(e){return i.constrain(e,0,r._width)}function u(e){return i.constrain(e,0,r._height)}function d(e){return i.constrain(e,-l,r._width+l)}var p=c(r.d2p(n._rl[0])),h=c(r.d2p(n._rl[1]));if(e.select("rect."+f.slideBoxClassName).attr("x",p).attr("width",h-p),e.select("rect."+f.maskMinClassName).attr("width",p),e.select("rect."+f.maskMaxClassName).attr("x",h).attr("width",r._width-h),"match"!==s.rangemode){var m=r._height-u(r.d2pOppAxis(a._rl[1])),g=r._height-u(r.d2pOppAxis(a._rl[0]));e.select("rect."+f.maskMinOppAxisClassName).attr("x",p).attr("height",m).attr("width",h-p),e.select("rect."+f.maskMaxOppAxisClassName).attr("x",p).attr("y",g).attr("height",r._height-g).attr("width",h-p),e.select("rect."+f.slideBoxClassName).attr("y",m).attr("height",g-m)}var y=.5,b=Math.round(d(p-l))-y,v=Math.round(d(h-l))+y;e.select("g."+f.grabberMinClassName).attr("transform",o(b,y)),e.select("g."+f.grabberMaxClassName).attr("transform",o(v,y))}(s,0,a,l,u,z),"bottom"===a.side&&c.draw(e,a._id+"title",{propContainer:a,propName:a._name+".title.text",placeholder:t._dfltTitle.x,attributes:{x:a._offset+a._length/2,y:S+l._height+l._offsetShift+10+1.5*a.title.font.size,"text-anchor":"middle"}})}))}}),vje=Ee((e,t)=>{var n=Fr(),r=Zj(),a=yce(),i=aje();t.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:n.extendFlat({},r,{yaxis:a})}}},layoutAttributes:Zj(),handleDefaults:lje(),calcAutorange:uje(),draw:pje(),isVisible:i.isVisible,makeData:i.makeData,autoMarginOpts:i.autoMarginOpts}}),rG=Ee((e,t)=>{var n=Mu(),r=oh(),a=(0,Kl().templatedArray)("button",{visible:{valType:"boolean",dflt:!0,editType:"plot",description:"Determines whether or not this button is visible."},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot",description:["The unit of measurement that the `count` value will set the range by."].join(" ")},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot",description:["Sets the range update mode.","If *backward*, the range update shifts the start of range","back *count* times *step* milliseconds.","If *todate*, the range update shifts the start of range","back to the first timestamp from *count* times","*step* milliseconds back.","For example, with `step` set to *year* and `count` set to *1*","the range update shifts the start of the range back to","January 01 of the current year.","Month and year *todate* are currently available only","for the built-in (Gregorian) calendar."].join(" ")},count:{valType:"number",min:0,dflt:1,editType:"plot",description:["Sets the number of steps to take to update the range.","Use with `step` to specify the update interval."].join(" ")},label:{valType:"string",editType:"plot",description:"Sets the text label to appear on the button."},editType:"plot",description:["Sets the specifications for each buttons.","By default, a range selector comes with no buttons."].join(" ")});t.exports={visible:{valType:"boolean",editType:"plot",description:["Determines whether or not this range selector is visible.","Note that range selectors are only available for x axes of","`type` set to or auto-typed to *date*."].join(" ")},buttons:a,x:{valType:"number",min:-2,max:3,editType:"plot",description:"Sets the x position (in normalized coordinates) of the range selector."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot",description:["Sets the range selector's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,editType:"plot",description:"Sets the y position (in normalized coordinates) of the range selector."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot",description:["Sets the range selector's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},font:n({editType:"plot",description:"Sets the font of the range selector button text."}),bgcolor:{valType:"color",dflt:r.lightLine,editType:"plot",description:"Sets the background color of the range selector buttons."},activecolor:{valType:"color",editType:"plot",description:"Sets the background color of the active range selector button."},bordercolor:{valType:"color",dflt:r.defaultLine,editType:"plot",description:"Sets the color of the border enclosing the range selector."},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot",description:"Sets the width (in px) of the border enclosing the range selector."},editType:"plot"}}),xce=Ee((e,t)=>{t.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}}),_je=Ee((e,t)=>{var n=Fr(),r=ao(),a=Kl(),i=Pp(),o=rG(),s=xce();function l(e,t,r,a){var i=a.calendar;function s(r,a){return n.coerce(e,t,o.buttons,r,a)}if(s("visible")){var l=s("step");"all"!==l&&(!i||"gregorian"===i||"month"!==l&&"year"!==l?s("stepmode"):t.stepmode="backward",s("count")),s("label")}}t.exports=function(e,t,c,u,d){var p=e.rangeselector||{},h=a.newContainer(t,"rangeselector");function f(e,t){return n.coerce(p,h,o,e,t)}if(f("visible",i(p,h,{name:"buttons",handleItemDefaults:l,calendar:d}).length>0)){var m=function(e,t,n){for(var r=n.filter(function(n){return t[n].anchor===e._id}),a=0,i=0;i<r.length;i++){var o=t[r[i]].domain;o&&(a=Math.max(o[1],a))}return[e.domain[0],a+s.yPad]}(t,c,u);f("x",m[0]),f("y",m[1]),n.noneOrAll(e,t,["x","y"]),f("xanchor"),f("yanchor"),n.coerceFont(f,"font",c.font);var g=f("bgcolor");f("activecolor",r.contrast(g,s.lightAmount,s.darkAmount)),f("bordercolor"),f("borderwidth")}}}),Aje=Ee((e,t)=>{var n=Coe(),r=Fr().titleCase;t.exports=function(e,t){var a=e._name,i={};if("all"===t.step)i[a+".autorange"]=!0;else{var o=function(e,t){var a,i=e.range,o=new Date(e.r2l(i[1])),s=t.step,l=n["utc"+r(s)],c=t.count;switch(t.stepmode){case"backward":a=e.l2r(+l.offset(o,-c));break;case"todate":var u=l.offset(o,-c);a=e.l2r(+l.ceil(u))}var d=i[1];return[a,d]}(e,t);i[a+".range[0]"]=o[0],i[a+".range[1]"]=o[1]}return i}}),qje=Ee((e,t)=>{var n=mo(),r=vo(),a=td(),i=ao(),o=vs(),s=Fr(),l=s.strTranslate,c=q1(),u=Ld(),d=lh(),p=d.LINE_SPACING,h=d.FROM_TL,f=d.FROM_BR,m=xce(),g=Aje();function y(e){return e._id}function b(e,t,n){var r=s.ensureSingle(e,"rect","selector-rect",function(e){e.attr("shape-rendering","crispEdges")});r.attr({rx:m.rx,ry:m.ry}),r.call(i.stroke,t.bordercolor).call(i.fill,function(e,t){return t._isActive||t._isHovered?e.activecolor:e.bgcolor}(t,n)).style("stroke-width",t.borderwidth+"px")}function v(e,t,n,r){s.ensureSingle(e,"text","selector-text",function(e){e.attr("text-anchor","middle")}).call(o.font,t.font).text(function(e,t){return e.label?t?s.templateString(e.label,t):e.label:"all"===e.step?"all":e.count+e.step.charAt(0)}(n,r._fullLayout._meta)).call(function(e){c.convertToTspans(e,r)})}t.exports=function(e){var t=e._fullLayout._infolayer.selectAll(".rangeselector").data(function(e){for(var t=u.list(e,"x",!0),n=[],r=0;r<t.length;r++){var a=t[r];a.rangeselector&&a.rangeselector.visible&&n.push(a)}return n}(e),y);t.enter().append("g").classed("rangeselector",!0),t.exit().remove(),t.style({cursor:"pointer","pointer-events":"all"}),t.each(function(t){var i=n.select(this),u=t,d=u.rangeselector,y=i.selectAll("g.button").data(s.filterVisible(d.buttons));y.enter().append("g").classed("button",!0),y.exit().remove(),y.each(function(t){var a=n.select(this),i=g(u,t);t._isActive=function(e,t,n){if("all"===t.step)return!0===e.autorange;var r=Object.keys(n);return e.range[0]===n[r[0]]&&e.range[1]===n[r[1]]}(u,t,i),a.call(b,d,t),a.call(v,d,t,e),a.on("click",function(){e._dragged||r.call("_guiRelayout",e,i)}),a.on("mouseover",function(){t._isHovered=!0,a.call(b,d,t)}),a.on("mouseout",function(){t._isHovered=!1,a.call(b,d,t)})}),function(e,t,r,i,u){var d=0,g=0,y=r.borderwidth;t.each(function(){var e=n.select(this).select(".selector-text"),t=r.font.size*p,a=Math.max(t*c.lineCount(e),16)+3;g=Math.max(g,a)}),t.each(function(){var e=n.select(this),t=e.select(".selector-rect"),a=e.select(".selector-text"),i=a.node()&&o.bBox(a.node()).width,s=r.font.size*p,u=c.lineCount(a),h=Math.max(i+10,m.minButtonWidth);e.attr("transform",l(y+d,y)),t.attr({x:0,y:0,width:h,height:g}),c.positionText(a,h/2,g/2-(u-1)*s/2+3),d+=h+5});var b=e._fullLayout._size,v=b.l+b.w*r.x,M=b.t+b.h*(1-r.y),x="left";s.isRightAnchor(r)&&(v-=d,x="right"),s.isCenterAnchor(r)&&(v-=d/2,x="center");var z="top";s.isBottomAnchor(r)&&(M-=g,z="bottom"),s.isMiddleAnchor(r)&&(M-=g/2,z="middle"),d=Math.ceil(d),g=Math.ceil(g),v=Math.round(v),M=Math.round(M),a.autoMargin(e,i+"-range-selector",{x:r.x,y:r.y,l:d*h[x],r:d*f[x],b:g*f[z],t:g*h[z]}),u.attr("transform",l(v,M))}(e,y,d,u._name,i)})}}),Rje=Ee((e,t)=>{t.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:rG()}}},layoutAttributes:rG(),handleDefaults:_je(),draw:qje()}}),ad=Ee(e=>{var t=ms().extendFlat;e.attributes=function(e,n){n=n||{};var r={valType:"info_array",editType:(e=e||{}).editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",o=n.description?" "+n.description:"",s={x:t({},r,{description:["Sets the horizontal domain of this ",a,i,"(in plot fraction).",o].join("")}),y:t({},r,{description:["Sets the vertical domain of this ",a,i,"(in plot fraction).",o].join("")}),editType:e.editType};return e.noGridCell||(s.row={valType:"integer",min:0,dflt:0,editType:e.editType,description:["If there is a layout grid, use the domain ","for this row in the grid for this ",a,i,".",o].join("")},s.column={valType:"integer",min:0,dflt:0,editType:e.editType,description:["If there is a layout grid, use the domain ","for this column in the grid for this ",a,i,".",o].join("")}),s},e.defaults=function(e,t,n,r){var a=r&&r.x||[0,1],i=r&&r.y||[0,1],o=t.grid;if(o){var s=n("domain.column");void 0!==s&&(s<o.columns?a=o._domains.x[s]:delete e.domain.column);var l=n("domain.row");void 0!==l&&(l<o.rows?i=o._domains.y[l]:delete e.domain.row)}var c=n("domain.x",a),u=n("domain.y",i);c[0]<c[1]||(e.domain.x=a.slice()),u[0]<u[1]||(e.domain.y=i.slice())}}),Sce=Ee((e,t)=>{var n=Fr(),r=N8().counter,a=ad().attributes,i=sh().idRegex,o=Kl(),s={rows:{valType:"integer",min:1,editType:"plot",description:["The number of rows in the grid. If you provide a 2D `subplots`","array or a `yaxes` array, its length is used as the default.","But it's also possible to have a different length, if you","want to leave a row at the end for non-cartesian subplots."].join(" ")},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot",description:["Is the first row the top or the bottom? Note that columns","are always enumerated from left to right."].join(" ")},columns:{valType:"integer",min:1,editType:"plot",description:["The number of columns in the grid. If you provide a 2D `subplots`","array, the length of its longest row is used as the default.","If you give an `xaxes` array, its length is used as the default.","But it's also possible to have a different length, if you","want to leave a row at the end for non-cartesian subplots."].join(" ")},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[r("xy").toString(),""],editType:"plot"},editType:"plot",description:["Used for freeform grids, where some axes may be shared across subplots","but others are not. Each entry should be a cartesian subplot id, like","*xy* or *x3y2*, or ** to leave that cell empty. You may reuse x axes","within the same column, and y axes within the same row.","Non-cartesian subplots and traces that support `domain` can place themselves","in this grid separately using the `gridcell` attribute."].join(" ")},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[i.x.toString(),""],editType:"plot"},editType:"plot",description:["Used with `yaxes` when the x and y axes are shared across columns and rows.","Each entry should be an x axis id like *x*, *x2*, etc., or ** to","not put an x axis in that column. Entries other than ** must be unique.","Ignored if `subplots` is present. If missing but `yaxes` is present,","will generate consecutive IDs."].join(" ")},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[i.y.toString(),""],editType:"plot"},editType:"plot",description:["Used with `yaxes` when the x and y axes are shared across columns and rows.","Each entry should be an y axis id like *y*, *y2*, etc., or ** to","not put a y axis in that row. Entries other than ** must be unique.","Ignored if `subplots` is present. If missing but `xaxes` is present,","will generate consecutive IDs."].join(" ")},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot",description:["If no `subplots`, `xaxes`, or `yaxes` are given but we do have `rows` and `columns`,","we can generate defaults using consecutive axis IDs, in two ways:","*coupled* gives one x axis per column and one y axis per row.","*independent* uses a new xy pair for each cell, left-to-right across each row","then iterating rows according to `roworder`."].join(" ")},xgap:{valType:"number",min:0,max:1,editType:"plot",description:["Horizontal space between grid cells, expressed as a fraction","of the total width available to one cell. Defaults to 0.1","for coupled-axes grids and 0.2 for independent grids."].join(" ")},ygap:{valType:"number",min:0,max:1,editType:"plot",description:["Vertical space between grid cells, expressed as a fraction","of the total height available to one cell. Defaults to 0.1","for coupled-axes grids and 0.3 for independent grids."].join(" ")},domain:a({name:"grid",editType:"plot",noGridCell:!0},{description:["The first and last cells end exactly at the domain","edges, with no grout around the edges."].join(" ")}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot",description:["Sets where the x axis labels and titles go. *bottom* means","the very bottom of the grid. *bottom plot* is the lowest plot","that each x axis is used in. *top* and *top plot* are similar."].join(" ")},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot",description:["Sets where the y axis labels and titles go. *left* means","the very left edge of the grid. *left plot* is the leftmost plot","that each y axis is used in. *right* and *right plot* are similar."].join(" ")},editType:"plot"};function l(e,t,n){var r=t[n+"axes"],a=Object.keys((e._splomAxes||{})[n]||{});return Array.isArray(r)?r:a.length?a:void 0}function c(e,t,n,r,a,i){var o=t(e+"gap",n),s=t("domain."+e);t(e+"side",r);for(var l=new Array(a),c=s[0],u=(s[1]-c)/(a-o),d=u*(1-o),p=0;p<a;p++){var h=c+u*p;l[i?a-1-p:p]=[h,h+d]}return l}function u(e,t,n,r,a){var i,o=new Array(n);function s(e,n){-1!==t.indexOf(n)&&void 0===r[n]?(o[e]=n,r[n]=e):o[e]=""}if(Array.isArray(e))for(i=0;i<n;i++)s(i,e[i]);else for(s(0,a),i=1;i<n;i++)s(i,a+(i+1));return o}t.exports={moduleType:"component",name:"grid",schema:{layout:{grid:s}},layoutAttributes:s,sizeDefaults:function(e,t){var r=e.grid||{},a=l(t,r,"x"),i=l(t,r,"y");if(e.grid||a||i){var u,d,p=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),h=Array.isArray(a),f=Array.isArray(i),m=h&&a!==r.xaxes&&f&&i!==r.yaxes;p?(u=r.subplots.length,d=r.subplots[0].length):(f&&(u=i.length),h&&(d=a.length));var g=o.newContainer(t,"grid"),y=A("rows",u),b=A("columns",d);if(y*b>1){if(!p&&!h&&!f)"independent"===A("pattern")&&(p=!0);g._hasSubplotGrid=p;var v,M,x="top to bottom"===A("roworder"),z=p?.2:.1,_=p?.3:.1;m&&t._splomGridDflt&&(v=t._splomGridDflt.xside,M=t._splomGridDflt.yside),g._domains={x:c("x",A,z,v,b),y:c("y",A,_,M,y,x)}}else delete t.grid}function A(e,t){return n.coerce(r,g,s,e,t)}},contentDefaults:function(e,t){var n=t.grid;if(n&&n._domains){var r,a,i,o,s,c,d,p=e.grid||{},h=t._subplots,f=n._hasSubplotGrid,m=n.rows,g=n.columns,y="independent"===n.pattern,b=n._axisMap={};if(f){var v=p.subplots||[];c=n.subplots=new Array(m);var M=1;for(r=0;r<m;r++){var x=c[r]=new Array(g),z=v[r]||[];for(a=0;a<g;a++)if(y?(s=1===M?"xy":"x"+M+"y"+M,M++):s=z[a],x[a]="",-1!==h.cartesian.indexOf(s)){if(d=s.indexOf("y"),i=s.slice(0,d),o=s.slice(d),void 0!==b[i]&&b[i]!==a||void 0!==b[o]&&b[o]!==r)continue;x[a]=s,b[i]=a,b[o]=r}}}else{var _=l(t,p,"x"),A=l(t,p,"y");n.xaxes=u(_,h.xaxis,g,b,"x"),n.yaxes=u(A,h.yaxis,m,b,"y")}var O=n._anchors={},w="top to bottom"===n.roworder;for(var k in b){var T,S,C,E=k.charAt(0),q=n[E+"side"];if(q.length<8)O[k]="free";else if("x"===E){if("t"===q.charAt(0)===w?(T=0,S=1,C=m):(T=m-1,S=-1,C=-1),f){var D=b[k];for(r=T;r!==C;r+=S)if((s=c[r][D])&&(d=s.indexOf("y"),s.slice(0,d)===k)){O[k]=s.slice(d);break}}else for(r=T;r!==C;r+=S)if(o=n.yaxes[r],-1!==h.cartesian.indexOf(k+o)){O[k]=o;break}}else if("l"===q.charAt(0)?(T=0,S=1,C=g):(T=g-1,S=-1,C=-1),f){var R=b[k];for(r=T;r!==C;r+=S)if((s=c[R][r])&&(d=s.indexOf("y"),s.slice(d)===k)){O[k]=s.slice(0,d);break}}else for(r=T;r!==C;r+=S)if(i=n.xaxes[r],-1!==h.cartesian.indexOf(i+k)){O[k]=i;break}}}}}}),kce=Ee((e,t)=>{t.exports={visible:{valType:"boolean",editType:"calc",description:["Determines whether or not this set of error bars is visible."].join(" ")},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc",description:["Determines the rule used to generate the error bars.","If *constant*, the bar lengths are of a constant value.","Set this constant in `value`.","If *percent*, the bar lengths correspond to a percentage of","underlying data. Set this percentage in `value`.","If *sqrt*, the bar lengths correspond to the square of the","underlying data.","If *data*, the bar lengths are set with data set `array`."].join(" ")},symmetric:{valType:"boolean",editType:"calc",description:["Determines whether or not the error bars have the same length","in both direction","(top/bottom for vertical bars, left/right for horizontal bars."].join(" ")},array:{valType:"data_array",editType:"calc",description:["Sets the data corresponding the length of each error bar.","Values are plotted relative to the underlying data."].join(" ")},arrayminus:{valType:"data_array",editType:"calc",description:["Sets the data corresponding the length of each error bar in the","bottom (left) direction for vertical (horizontal) bars","Values are plotted relative to the underlying data."].join(" ")},value:{valType:"number",min:0,dflt:10,editType:"calc",description:["Sets the value of either the percentage","(if `type` is set to *percent*) or the constant","(if `type` is set to *constant*) corresponding to the lengths of","the error bars."].join(" ")},valueminus:{valType:"number",min:0,dflt:10,editType:"calc",description:["Sets the value of either the percentage","(if `type` is set to *percent*) or the constant","(if `type` is set to *constant*) corresponding to the lengths of","the error bars in the","bottom (left) direction for vertical (horizontal) bars"].join(" ")},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style",description:"Sets the stroke color of the error bars."},thickness:{valType:"number",min:0,dflt:2,editType:"style",description:"Sets the thickness (in px) of the error bars."},width:{valType:"number",min:0,editType:"plot",description:["Sets the width (in px) of the cross-bar at both ends","of the error bars."].join(" ")},editType:"calc"}}),Hje=Ee((e,t)=>{var n=xs(),r=vo(),a=Fr(),i=Kl(),o=kce();t.exports=function(e,t,s,l){var c="error_"+l.axis,u=i.newContainer(t,c),d=e[c]||{};function p(e,t){return a.coerce(d,u,o,e,t)}if(!1!==p("visible",void 0!==d.array||void 0!==d.value||"sqrt"===d.type)){var h=p("type","array"in d?"data":"percent"),f=!0;"sqrt"!==h&&(f=p("symmetric",!(("data"===h?"arrayminus":"valueminus")in d))),"data"===h?(p("array"),p("traceref"),f||(p("arrayminus"),p("tracerefminus"))):("percent"===h||"constant"===h)&&(p("value"),f||p("valueminus"));var m="copy_"+l.inherit+"style";if(l.inherit)(t["error_"+l.inherit]||{}).visible&&p(m,!(d.color||n(d.thickness)||n(d.width)));(!l.inherit||!u[m])&&(p("color",s),p("thickness"),p("width",r.traceIs(t,"gl3d")?0:4))}}}),Cce=Ee((e,t)=>{function n(e,t){return"percent"===e?function(e){return Math.abs(e*t/100)}:"constant"===e?function(){return Math.abs(t)}:"sqrt"===e?function(e){return Math.sqrt(Math.abs(e))}:void 0}t.exports=function(e){var t=e.type,r=e.symmetric;if("data"===t){var a=e.array||[];if(r)return function(e,t){var n=+a[t];return[n,n]};var i=e.arrayminus||[];return function(e,t){var n=+a[t],r=+i[t];return isNaN(n)&&isNaN(r)?[NaN,NaN]:[r||0,n||0]}}var o=n(t,e.value),s=n(t,e.valueminus);return r||void 0===e.valueminus?function(e){var t=o(e);return[t,t]}:function(e){return[s(e),o(e)]}}}),Yje=Ee((e,t)=>{var n=xs(),r=vo(),a=es(),i=Fr(),o=Cce();function s(e,t,r,s){var l=t["error_"+s]||{},c=[];if(l.visible&&-1!==["linear","log"].indexOf(r.type)){for(var u=o(l),d=0;d<e.length;d++){var p=e[d],h=p.i;if(void 0===h)h=d;else if(null===h)continue;var f=p[s];if(n(r.c2l(f))){var m=u(f,h);if(n(m[0])&&n(m[1])){var g=p[s+"s"]=f-m[0],y=p[s+"h"]=f+m[1];c.push(g,y)}}}var b=r._id,v=t._extremes[b],M=a.findExtremes(r,c,i.extendFlat({tozero:v.opts.tozero},{padded:!0}));v.min=v.min.concat(M.min),v.max=v.max.concat(M.max)}}t.exports=function(e){for(var t=e.calcdata,n=0;n<t.length;n++){var i=t[n],o=i[0].trace;if(!0===o.visible&&r.traceIs(o,"errorBarsOK")){var l=a.getFromId(e,o.xaxis),c=a.getFromId(e,o.yaxis);s(i,o,l,"x"),s(i,o,c,"y")}}}}),Kje=Ee((e,t)=>{var n=mo(),r=xs(),a=vs(),i=Hc();t.exports=function(e,t,o,s){var l=o.xaxis,c=o.yaxis,u=s&&s.duration>0,d=e._context.staticPlot;t.each(function(t){var p,h=t[0].trace,f=h.error_x||{},m=h.error_y||{};h.ids&&(p=function(e){return e.id});var g=i.hasMarkers(h)&&h.marker.maxdisplayed>0;!m.visible&&!f.visible&&(t=[]);var y=n.select(this).selectAll("g.errorbar").data(t,p);if(y.exit().remove(),t.length){f.visible||y.selectAll("path.xerror").remove(),m.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var b=y.enter().append("g").classed("errorbar",!0);u&&b.style("opacity",0).transition().duration(s.duration).style("opacity",1),a.setClipUrl(y,o.layerClipId,e),y.each(function(e){var t=n.select(this),a=function(e,t,n){var a={x:t.c2p(e.x),y:n.c2p(e.y)};return void 0!==e.yh&&(a.yh=n.c2p(e.yh),a.ys=n.c2p(e.ys),r(a.ys)||(a.noYS=!0,a.ys=n.c2p(e.ys,!0))),void 0!==e.xh&&(a.xh=t.c2p(e.xh),a.xs=t.c2p(e.xs),r(a.xs)||(a.noXS=!0,a.xs=t.c2p(e.xs,!0))),a}(e,l,c);if(!g||e.vis){var i,o=t.select("path.yerror");if(m.visible&&r(a.x)&&r(a.yh)&&r(a.ys)){var p=m.width;i="M"+(a.x-p)+","+a.yh+"h"+2*p+"m-"+p+",0V"+a.ys,a.noYS||(i+="m-"+p+",0h"+2*p),!o.size()?o=t.append("path").style("vector-effect",d?"none":"non-scaling-stroke").classed("yerror",!0):u&&(o=o.transition().duration(s.duration).ease(s.easing)),o.attr("d",i)}else o.remove();var h=t.select("path.xerror");if(f.visible&&r(a.y)&&r(a.xh)&&r(a.xs)){var y=(f.copy_ystyle?m:f).width;i="M"+a.xh+","+(a.y-y)+"v"+2*y+"m0,-"+y+"H"+a.xs,a.noXS||(i+="m0,-"+y+"v"+2*y),!h.size()?h=t.append("path").style("vector-effect",d?"none":"non-scaling-stroke").classed("xerror",!0):u&&(h=h.transition().duration(s.duration).ease(s.easing)),h.attr("d",i)}else h.remove()}})}})}}),eGe=Ee((e,t)=>{var n=mo(),r=ao();t.exports=function(e){e.each(function(e){var t=e[0].trace,a=t.error_y||{},i=t.error_x||{},o=n.select(this);o.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(r.stroke,a.color),i.copy_ystyle&&(i=a),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(r.stroke,i.color)})}}),nGe=Ee((e,t)=>{var n=Fr(),r=Wu().overrideAll,a=kce(),i={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a)};delete i.error_x.copy_zstyle,delete i.error_y.copy_zstyle,delete i.error_y.copy_ystyle;var o={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a),error_z:n.extendFlat({},a)};delete o.error_x.copy_ystyle,delete o.error_y.copy_ystyle,delete o.error_z.copy_ystyle,delete o.error_z.copy_zstyle,t.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:i,bar:i,histogram:i,scatter3d:r(o,"calc","nested"),scattergl:r(i,"calc","nested")}},supplyDefaults:Hje(),calc:Yje(),makeComputeError:Cce(),plot:Kje(),style:eGe(),hoverInfo:function(e,t,n){(t.error_y||{}).visible&&(n.yerr=e.yh-e.y,t.error_y.symmetric||(n.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(n.xerr=e.xh-e.x,t.error_x.symmetric||(n.xerrneg=e.x-e.xs))}}}),iGe=Ee((e,t)=>{t.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}}),fGe=Ee((e,t)=>{var n=mo(),r=Vh(),a=td(),i=vo(),o=es(),s=p2(),l=Fr(),c=l.strTranslate,u=ms().extendFlat,d=Ky(),p=vs(),h=ao(),f=xw(),m=q1(),g=d2().flipScale,y=TR(),b=Dj(),v=vp(),M=lh(),x=M.LINE_SPACING,z=M.FROM_TL,_=M.FROM_BR,A=iGe().cn;t.exports={draw:function(e){var t=e._fullLayout._infolayer.selectAll("g."+A.colorbar).data(function(e){var t,n,r,a,i=e._fullLayout,o=e.calcdata,s=[];function l(e){return u(e,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){"function"==typeof a.calc?a.calc(e,r,t):(t._fillgradient=n.reversescale?g(n.colorscale):n.colorscale,t._zrange=[n[a.min],n[a.max]])}for(var d=0;d<o.length;d++){var p=o[d];if((r=p[0].trace)._module){var h=r._module.colorbar;if(!0===r.visible&&h)for(var f=Array.isArray(h),m=f?h:[h],y=0;y<m.length;y++){var b=(a=m[y]).container;(n=b?r[b]:r)&&n.showscale&&((t=l(n.colorbar))._id="cb"+r.uid+(f&&b?"-"+b:""),t._traceIndex=r.index,t._propPrefix=(b?b+".":"")+"colorbar.",t._meta=r._meta,c(),s.push(t))}}}for(var v in i._colorAxes)if((n=i[v]).showscale){var M=i._colorAxes[v];(t=l(n.colorbar))._id="cb"+v,t._propPrefix=v+".colorbar.",t._meta=i._meta,a={min:"cmin",max:"cmax"},"heatmap"!==M[0]&&(r=M[1],a.calc=r._module.colorbar.calc),c(),s.push(t)}return s}(e),function(e){return e._id});t.enter().append("g").attr("class",function(e){return e._id}).classed(A.colorbar,!0),t.each(function(t){var g=n.select(this);l.ensureSingle(g,"rect",A.cbbg),l.ensureSingle(g,"g",A.cbfills),l.ensureSingle(g,"g",A.cblines),l.ensureSingle(g,"g",A.cbaxis,function(e){e.classed(A.crisp,!0)}),l.ensureSingle(g,"g",A.cbtitleunshift,function(e){e.append("g").classed(A.cbtitle,!0)}),l.ensureSingle(g,"rect",A.cboutline);var M=function(e,t,i){var s="v"===t.orientation,d=t.len,g=t.lenmode,M=t.thickness,O=t.thicknessmode,w=t.outlinewidth,k=t.borderwidth,T=t.bgcolor,S=t.xanchor,C=t.yanchor,E=t.xpad,q=t.ypad,D=t.x,R=s?t.y:1-t.y,L="paper"===t.yref,I="paper"===t.xref,W=i._fullLayout,N=W._size,P=t._fillcolor,B=t._line,F=t.title,j=F.side,U=t._zrange||n.extent(("function"==typeof P?P:B.color).domain()),V="function"==typeof B.color?B.color:function(){return B.color},H="function"==typeof P?P:function(){return P},X=t._levels,G=function(e,t,n){var r,a,i=t._levels,o=[],s=[],l=i.end+i.size/100,c=i.size,u=1.001*n[0]-.001*n[1],d=1.001*n[1]-.001*n[0];for(a=0;a<1e5&&(r=i.start+a*c,!(c>0?r>=l:r<=l));a++)r>u&&r<d&&o.push(r);if(t._fillgradient)s=[0];else if("function"==typeof t._fillcolor){var p=t._filllevels;if(p)for(l=p.end+p.size/100,c=p.size,a=0;a<1e5&&(r=p.start+a*c,!(c>0?r>=l:r<=l));a++)r>n[0]&&r<n[1]&&s.push(r);else s=o.map(function(e){return e-i.size/2}),s.push(s[s.length-1]+i.size)}else t._fillcolor&&"string"==typeof t._fillcolor&&(s=[0]);return i.size<0&&(o.reverse(),s.reverse()),{line:o,fill:s}}(0,t,U),Y=G.fill,Z=G.line,$=Math.round(M*("fraction"===O?s?N.w:N.h:1)),J=$/(s?N.w:N.h),Q=Math.round(d*("fraction"===g?s?N.h:N.w:1)),K=Q/(s?N.h:N.w),ee=I?N.w:i._fullLayout.width,te=L?N.h:i._fullLayout.height,ne=Math.round(s?D*ee+E:R*te+q),re={center:.5,right:1}[S]||0,ae={top:1,middle:.5}[C]||0,ie=s?D-re*J:R-ae*J,oe=s?R-ae*K:D-re*K,se=Math.round(s?te*(1-oe):ee*oe);t._lenFrac=K,t._thickFrac=J,t._uFrac=ie,t._vFrac=oe;var le=t._axis=function(e,t,n){var r=e._fullLayout,a="v"===t.orientation,i={type:"linear",range:n,tickmode:t.tickmode,nticks:t.nticks,tick0:t.tick0,dtick:t.dtick,tickvals:t.tickvals,ticktext:t.ticktext,ticks:t.ticks,ticklen:t.ticklen,tickwidth:t.tickwidth,tickcolor:t.tickcolor,showticklabels:t.showticklabels,labelalias:t.labelalias,ticklabelposition:t.ticklabelposition,ticklabeloverflow:t.ticklabeloverflow,ticklabelstep:t.ticklabelstep,tickfont:t.tickfont,tickangle:t.tickangle,tickformat:t.tickformat,exponentformat:t.exponentformat,minexponent:t.minexponent,separatethousands:t.separatethousands,showexponent:t.showexponent,showtickprefix:t.showtickprefix,tickprefix:t.tickprefix,showticksuffix:t.showticksuffix,ticksuffix:t.ticksuffix,title:t.title,showline:!0,anchor:"free",side:a?"right":"bottom",position:1},o=a?"y":"x",s={type:"linear",_id:o+t._id},c={letter:o,font:r.font,noAutotickangles:"y"===o,noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:r.calendar};function u(e,t){return l.coerce(i,s,v,e,t)}return y(i,s,u,c,r),b(i,s,u,c),s}(i,t,U);le.position=J+(s?D+E/N.w:R+q/N.h);var ce=-1!==["top","bottom"].indexOf(j);if(s&&ce&&(le.title.side=j,le.titlex=D+E/N.w,le.titley=oe+("top"===F.side?K-q/N.h:q/N.h)),!s&&!ce&&(le.title.side=j,le.titley=R+q/N.h,le.titlex=oe+E/N.w),B.color&&"auto"===t.tickmode){le.tickmode="linear",le.tick0=X.start;var ue=X.size,de=l.constrain(Q/50,4,15)+1,pe=(U[1]-U[0])/((t.nticks||de)*ue);if(pe>1){var he=Math.pow(10,Math.floor(Math.log(pe)/Math.LN10));ue*=he*l.roundUp(pe/he,[2,5,10]),(Math.abs(X.start)/X.size+1e-6)%1<2e-6&&(le.tick0=0)}le.dtick=ue}le.domain=s?[oe+q/N.h,oe+K-q/N.h]:[oe+E/N.w,oe+K-E/N.w],le.setScale(),e.attr("transform",c(Math.round(N.l),Math.round(N.t)));var fe,me=e.select("."+A.cbtitleunshift).attr("transform",c(-Math.round(N.l),-Math.round(N.t))),ge=le.ticklabelposition,ye=le.title.font.size,be=e.select("."+A.cbaxis),ve=0,Me=0;function xe(n,r){var a={propContainer:le,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:W._dfltTitle.colorbar,containerGroup:e.select("."+A.cbtitle)},o="h"===n.charAt(0)?n.slice(1):"h"+n;e.selectAll("."+o+",."+o+"-math-group").remove(),f.draw(i,n,u(a,r||{}))}function ze(){var e,t;(s&&ce||!s&&!ce)&&("top"===j&&(e=E+N.l+ee*D,t=q+N.t+te*(1-oe-K)+3+.75*ye),"bottom"===j&&(e=E+N.l+ee*D,t=q+N.t+te*(1-oe)-3-.25*ye),"right"===j&&(t=q+N.t+te*R+3+.75*ye,e=E+N.l+ee*oe),xe(le._id+"title",{attributes:{x:e,y:t,"text-anchor":s?"start":"middle"}}))}function _e(){if(s&&!ce||!s&&ce){var e,r,a=le.position||0,o=le._offset+le._length/2;if("right"===j)r=o,e=N.l+ee*a+10+ye*(le.showticklabels?1:.5);else if(e=o,"bottom"===j&&(r=N.t+te*a+10+(-1===ge.indexOf("inside")?le.tickfont.size:0)+("inside"!==le.ticks&&t.ticklen||0)),"top"===j){var l=F.text.split("<br>").length;r=N.t+te*a+10-$-x*ye*l}xe((s?"h":"v")+le._id+"title",{avoid:{selection:n.select(i).selectAll("g."+le._id+"tick"),side:j,offsetTop:s?0:N.t,offsetLeft:s?N.l:0,maxShift:s?W.width:W.height},attributes:{x:e,y:r,"text-anchor":"middle"},transform:{rotate:s?-90:0,offset:0}})}}function Ae(){if(!s&&!ce||s&&ce){var a,u=e.select("."+A.cbtitle),d=u.select("text"),h=[-w/2,w/2],f=u.select(".h"+le._id+"title-math-group").node(),g=15.6;if(d.node()&&(g=parseInt(d.node().style.fontSize,10)*x),f?(a=p.bBox(f),Me=a.width,(ve=a.height)>g&&(h[1]-=(ve-g)/2)):d.node()&&!d.classed(A.jsPlaceholder)&&(a=p.bBox(d.node()),Me=a.width,ve=a.height),s){if(ve){if(ve+=5,"top"===j)le.domain[1]-=ve/N.h,h[1]*=-1;else{le.domain[0]+=ve/N.h;var y=m.lineCount(d);h[1]+=(1-y)*g}u.attr("transform",c(h[0],h[1])),le.setScale()}}else Me&&("right"===j&&(le.domain[0]+=(Me+ye/2)/N.w),u.attr("transform",c(h[0],h[1])),le.setScale())}e.selectAll("."+A.cbfills+",."+A.cblines).attr("transform",s?c(0,Math.round(N.h*(1-le.domain[1]))):c(Math.round(N.w*le.domain[0]),0)),be.attr("transform",s?c(0,Math.round(-N.t)):c(Math.round(-N.l),0));var b=e.select("."+A.cbfills).selectAll("rect."+A.cbfill).attr("style","").data(Y);b.enter().append("rect").classed(A.cbfill,!0).attr("style",""),b.exit().remove();var v=U.map(le.c2p).map(Math.round).sort(function(e,t){return e-t});b.each(function(e,a){var o=[0===a?U[0]:(Y[a]+Y[a-1])/2,a===Y.length-1?U[1]:(Y[a]+Y[a+1])/2].map(le.c2p).map(Math.round);s&&(o[1]=l.constrain(o[1]+(o[1]>o[0])?1:-1,v[0],v[1]));var c=n.select(this).attr(s?"x":"y",ne).attr(s?"y":"x",n.min(o)).attr(s?"width":"height",Math.max($,2)).attr(s?"height":"width",Math.max(n.max(o)-n.min(o),2));if(t._fillgradient)p.gradient(c,i,t._id,s?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var u=H(e).replace("e-","");c.attr("fill",r(u).toHexString())}});var M=e.select("."+A.cblines).selectAll("path."+A.cbline).data(B.color&&B.width?Z:[]);M.enter().append("path").classed(A.cbline,!0),M.exit().remove(),M.each(function(e){var t=ne,r=Math.round(le.c2p(e))+B.width/2%1;n.select(this).attr("d","M"+(s?t+","+r:r+","+t)+(s?"h":"v")+$).call(p.lineGroupStyle,B.width,V(e),B.dash)}),be.selectAll("g."+le._id+"tick,path").remove();var z=ne+$+(w||0)/2-("outside"===t.ticks?1:0),_=o.calcTicks(le),O=o.getTickSigns(le)[2];return o.drawTicks(i,le,{vals:"inside"===le.ticks?o.clipEnds(le,_):_,layer:be,path:o.makeTickPath(le,z,O),transFn:o.makeTransTickFn(le)}),o.drawLabels(i,le,{vals:_,layer:be,transFn:o.makeTransTickLabelFn(le),labelFns:o.makeLabelFns(le,z)})}function Oe(){var n,o=$+w/2;-1===ge.indexOf("inside")&&(n=p.bBox(be.node()),o+=s?n.width:n.height),fe=me.select("text");var l=0,u=s&&"top"===j,f=!s&&"right"===j,m=0;if(fe.node()&&!fe.classed(A.jsPlaceholder)){var y,b=me.select(".h"+le._id+"title-math-group").node();b&&(s&&ce||!s&&!ce)?(l=(n=p.bBox(b)).width,y=n.height):(l=(n=p.bBox(me.node())).right-N.l-(s?ne:se),y=n.bottom-N.t-(s?se:ne),!s&&"top"===j&&(o+=n.height,m=n.height)),f&&(fe.attr("transform",c(l/2+ye/2,0)),l*=2),o=Math.max(o,s?l:y)}var v=2*(s?E:q)+o+k+w/2,x=0;!s&&F.text&&"bottom"===C&&R<=0&&(v+=x=v/2,m+=x),W._hColorbarMoveTitle=x,W._hColorbarMoveCBTitle=m;var P=k+w,B=(s?ne:se)-P/2-(s?E:0),U=(s?se:ne)-(s?Q:q+m-x);e.select("."+A.cbbg).attr("x",B).attr("y",U).attr(s?"width":"height",Math.max(v-x,2)).attr(s?"height":"width",Math.max(Q+P,2)).call(h.fill,T).call(h.stroke,t.bordercolor).style("stroke-width",k);var V=f?Math.max(l-10,0):0;e.selectAll("."+A.cboutline).attr("x",(s?ne:se+E)+V).attr("y",(s?se+q-Q:ne)+(u?ve:0)).attr(s?"width":"height",Math.max($,2)).attr(s?"height":"width",Math.max(Q-(s?2*q+ve:2*E+V),2)).call(h.stroke,t.outlinecolor).style({fill:"none","stroke-width":w});var H=s?re*v:0,X=s?0:(1-ae)*v-m;if(H=I?N.l-H:-H,X=L?N.t-X:-X,e.attr("transform",c(H,X)),!s&&(k||r(T).getAlpha()&&!r.equals(W.paper_bgcolor,T))){var G=be.selectAll("text"),Y=G[0].length,Z=e.select("."+A.cbbg).node(),J=p.bBox(Z),K=p.getTranslate(e),ee=2;G.each(function(e,t){var n=0,r=Y-1;if(t===n||t===r){var a,i=p.bBox(this),o=p.getTranslate(this);if(t===r){var s=i.right+o.x;(a=J.right+K.x+se-k-ee+D-s)>0&&(a=0)}else if(t===n){var l=i.left+o.x;(a=J.left+K.x+se+k+ee-l)<0&&(a=0)}a&&(Y<3?this.setAttribute("transform","translate("+a+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var te={},ie=z[S],oe=_[S],ue=z[C],de=_[C],pe=v-$;s?("pixels"===g?(te.y=R,te.t=Q*ue,te.b=Q*de):(te.t=te.b=0,te.yt=R+d*ue,te.yb=R-d*de),"pixels"===O?(te.x=D,te.l=v*ie,te.r=v*oe):(te.l=pe*ie,te.r=pe*oe,te.xl=D-M*ie,te.xr=D+M*oe)):("pixels"===g?(te.x=D,te.l=Q*ie,te.r=Q*oe):(te.l=te.r=0,te.xl=D+d*ie,te.xr=D-d*oe),"pixels"===O?(te.y=1-R,te.t=v*ue,te.b=v*de):(te.t=pe*ue,te.b=pe*de,te.yt=R-M*ue,te.yb=R+M*de));var he=t.y<.5?"b":"t",Me=t.x<.5?"l":"r";i._fullLayout._reservedMargin[t._id]={};var xe={r:W.width-B-H,l:B+te.r,b:W.height-U-X,t:U+te.b};I&&L?a.autoMargin(i,t._id,te):I?i._fullLayout._reservedMargin[t._id][he]=xe[he]:L||s?i._fullLayout._reservedMargin[t._id][Me]=xe[Me]:i._fullLayout._reservedMargin[t._id][he]=xe[he]}return l.syncOrAsync([a.previousPromises,ze,Ae,_e,a.previousPromises,Oe],i)}(g,t,e);M&&M.then&&(e._promises||[]).push(M),e._context.edits.colorbarPosition&&function(e,t,n){var r,a,o,l="v"===t.orientation,u=n._fullLayout,p=u._size;s.init({element:e.node(),gd:n,prepFn:function(){r=e.attr("transform"),d(e)},moveFn:function(n,i){e.attr("transform",r+c(n,i)),a=s.align((l?t._uFrac:t._vFrac)+n/p.w,l?t._thickFrac:t._lenFrac,0,1,t.xanchor),o=s.align((l?t._vFrac:1-t._uFrac)-i/p.h,l?t._lenFrac:t._thickFrac,0,1,t.yanchor);var u=s.getCursor(a,o,t.xanchor,t.yanchor);d(e,u)},doneFn:function(){if(d(e),void 0!==a&&void 0!==o){var r={};r[t._propPrefix+"x"]=a,r[t._propPrefix+"y"]=o,void 0!==t._traceIndex?i.call("_guiRestyle",n,r,t._traceIndex):i.call("_guiRelayout",n,r)}}})}(g,t,e)}),t.exit().each(function(t){a.autoMargin(e,t._id)}).remove(),t.order()}}}),pGe=Ee((e,t)=>{t.exports={moduleType:"component",name:"colorbar",attributes:kH(),supplyDefaults:jse(),draw:fGe().draw,hasColorbar:Nse()}}),vGe=Ee((e,t)=>{t.exports={moduleType:"component",name:"legend",layoutAttributes:W0e(),supplyLayoutDefaults:B0e(),draw:tle(),style:K0e()}}),yGe=Ee((e,t)=>{t.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}}),MGe=Ee((e,t)=>{t.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}}),Nce=Ee((e,t)=>{var n=vo(),r=Fr(),a=r.extendFlat,i=r.extendDeep;function o(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function s(e){return["xaxis","yaxis","zaxis"].indexOf(e.slice(0,5))>-1}t.exports=function(e,t){var r,l=e.data,c=e.layout,u=i([],l),d=i({},c,o(t.tileClass)),p=e._context||{};if(t.width&&(d.width=t.width),t.height&&(d.height=t.height),"thumbnail"===t.tileClass||"themes__thumb"===t.tileClass){d.annotations=[];var h=Object.keys(d);for(r=0;r<h.length;r++)s(h[r])&&(d[h[r]].title={text:""});for(r=0;r<u.length;r++){var f=u[r];f.showscale=!1,f.marker&&(f.marker.showscale=!1),n.traceIs(f,"pie-like")&&(f.textposition="none")}}if(Array.isArray(t.annotations))for(r=0;r<t.annotations.length;r++)d.annotations.push(t.annotations[r]);var m=Object.keys(d).filter(function(e){return e.match(/^scene\d*$/)});if(m.length){var g={};for("thumbnail"===t.tileClass&&(g={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),r=0;r<m.length;r++){var y=d[m[r]];y.xaxis||(y.xaxis={}),y.yaxis||(y.yaxis={}),y.zaxis||(y.zaxis={}),a(y.xaxis,g),a(y.yaxis,g),a(y.zaxis,g),y._scene=null}}var b=document.createElement("div");t.tileClass&&(b.className=t.tileClass);var v={gd:b,td:b,layout:d,data:u,config:{staticPlot:void 0===t.staticPlot||t.staticPlot,plotGlPixelRatio:void 0===t.plotGlPixelRatio?2:t.plotGlPixelRatio,displaylogo:t.displaylogo||!1,showLink:t.showLink||!1,showTips:t.showTips||!1,mapboxAccessToken:p.mapboxAccessToken}};return"transparent"!==t.setBackground&&(v.config.setBackground=t.setBackground||"opaque"),v.gd.defaultLayout=o(t.tileClass),v}}),TGe=Ee((e,t)=>{var n=require("events").EventEmitter,r=vo(),a=Fr(),i=Sx(),o=Nce(),s=mj(),l=vj();t.exports=function(e,t){var c=new n,u=o(e,{format:"png"}),d=u.gd;d.style.position="absolute",d.style.left="-5000px",document.body.appendChild(d);var p=i.getRedrawFunc(d);return r.call("_doPlot",d,u.data,u.layout,u.config).then(p).then(function(){var e=i.getDelay(d._fullLayout);setTimeout(function(){var e=s(d),n=document.createElement("canvas");n.id=a.randstr(),(c=l({format:t.format,width:d._fullLayout.width,height:d._fullLayout.height,canvas:n,emitter:c,svg:e})).clean=function(){d&&document.body.removeChild(d)}},e)}).catch(function(e){c.emit("error",e)}),c}}),CGe=Ee((e,t)=>{var n=Sx(),r={getDelay:n.getDelay,getRedrawFunc:n.getRedrawFunc,clone:Nce(),toSVG:mj(),svgToImg:vj(),toImage:TGe(),downloadImage:g1e()};t.exports=r}),qGe=Ee(e=>{e.version=NU().version,Vke(),PEe();var t,n,r=vo(),a=e.register=r.register,i=$Fe(),o=Object.keys(i);for(n=0;n<o.length;n++)"_"!==(t=o[n]).charAt(0)&&(e[t]=i[t]),a({moduleType:"apiMethod",name:t,fn:i[t]});a(jUe()),a([vHe(),kHe(),uf(),ZHe(),cVe(),EVe(),KVe(),vje(),Rje(),Sce(),nGe(),xu(),pGe(),vGe(),_d(),wle()]),a([yGe(),MGe()]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(a(window.PlotlyLocales),delete window.PlotlyLocales),e.Icons=gV();var s=_d(),l=td();e.Plots={resize:l.resize,graphJson:l.graphJson,sendDataToCloud:l.sendDataToCloud},e.Fx={hover:s.hover,unhover:s.unhover,loneHover:s.loneHover,loneUnhover:s.loneUnhover},e.Snapshot=CGe(),e.PlotSchema=Q8()}),RGe=Ee((e,t)=>{t.exports=qGe()}),R3=Ee((e,t)=>{var n=Id(),r=Pd().axisHoverFormat,{hovertemplateAttrs:a,texttemplateAttrs:i,templatefallbackAttrs:o}=p1(),s=Oc(),l=Mu(),c=t4(),u=pp().pattern,d=ms().extendFlat,p=l({editType:"calc",arrayOk:!0,colorEditType:"style",description:""}),h=d({},n.marker.line.width,{dflt:0}),f=d({width:h,editType:"calc"},s("marker.line")),m=d({line:f,editType:"calc"},s("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style",description:"Sets the opacity of the bars."},pattern:u,cornerradius:{valType:"any",editType:"calc",description:["Sets the rounding of corners. May be an integer number of pixels,","or a percentage of bar width (as a string ending in %). Defaults to `layout.barcornerradius`.","In stack or relative barmode, the first trace to set cornerradius is used for the whole stack."].join(" ")}});t.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:r("x"),yhoverformat:r("y"),text:n.text,texttemplate:i({editType:"plot"},{keys:c.eventDataKeys}),texttemplatefallback:o({editType:"plot"}),hovertext:n.hovertext,hovertemplate:a({},{keys:c.eventDataKeys}),hovertemplatefallback:o(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc",description:["Specifies the location of the `text`.","*inside* positions `text` inside, next to the bar end","(rotated and scaled if needed).","*outside* positions `text` outside, next to the bar end","(scaled if needed), unless there is another bar stacked on","this one, then the text gets pushed inside.","*auto* tries to position `text` inside the bar, but if","the bar is too small and no bar is stacked on this one","the text is moved outside.","If *none*, no text appears."].join(" ")},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot",description:["Determines if texts are kept at center or start/end points in `textposition` *inside* mode."].join(" ")},textangle:{valType:"angle",dflt:"auto",editType:"plot",description:["Sets the angle of the tick labels with respect to the bar.","For example, a `tickangle` of -90 draws the tick labels","vertically. With *auto* the texts may automatically be","rotated to fit with the maximum size in bars."].join(" ")},textfont:d({},p,{description:"Sets the font used for `text`."}),insidetextfont:d({},p,{description:"Sets the font used for `text` lying inside the bar."}),outsidetextfont:d({},p,{description:"Sets the font used for `text` lying outside the bar."}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc",description:["Constrain the size of text inside or outside a bar to be no","larger than the bar itself."].join(" ")},cliponaxis:d({},n.cliponaxis,{description:["Determines whether the text nodes","are clipped about the subplot axes.","To show the text nodes above axis lines and tick labels,","make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*."].join(" ")}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes",description:["Sets the orientation of the bars.","With *v* (*h*), the value of the each bar spans","along the vertical (horizontal)."].join(" ")},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc",description:["Sets where the bar base is drawn (in position axis units).","In *stack* or *relative* barmode,","traces that set *base* will be excluded","and drawn in *overlay* mode instead."].join(" ")},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc",description:["Shifts the position where the bar is drawn","(in position axis units).","In *group* barmode,","traces that set *offset* will be excluded","and drawn in *overlay* mode instead."].join(" ")},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc",description:["Sets the bar width (in position axis units)."].join(" ")},marker:m,offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:{marker:{opacity:n.selected.marker.opacity,color:n.selected.marker.color,editType:"style"},textfont:n.selected.textfont,editType:"style"},unselected:{marker:{opacity:n.unselected.marker.opacity,color:n.unselected.marker.color,editType:"style"},textfont:n.unselected.textfont,editType:"style"},zorder:n.zorder}}),dG=Ee((e,t)=>{t.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc",description:["Determines how bars at the same location coordinate","are displayed on the graph.","With *stack*, the bars are stacked on top of one another","With *relative*, the bars are stacked on top of one another,","with negative values below the axis, positive values above","With *group*, the bars are plotted next to one another","centered around the shared location.","With *overlay*, the bars are plotted over one another,","you might need to reduce *opacity* to see multiple bars."].join(" ")},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc",description:["Sets the normalization for bar traces on the graph.","With *fraction*, the value of each bar is divided by the sum of all","values at that location coordinate.","*percent* is the same but multiplied by 100 to show percentages."].join(" ")},bargap:{valType:"number",min:0,max:1,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","adjacent location coordinates."].join(" ")},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","the same location coordinate."].join(" ")},barcornerradius:{valType:"any",editType:"calc",description:["Sets the rounding of bar corners. May be an integer number of pixels,","or a percentage of bar width (as a string ending in %)."].join(" ")}}}),fG=Ee((e,t)=>{var n=ao(),r=d2().hasColorscale,a=kh(),i=Fr().coercePattern;t.exports=function(e,t,o,s,l){var c=o("marker.color",s),u=r(e,"marker");u&&a(e,t,l,o,{prefix:"marker.",cLetter:"c"}),o("marker.line.color",n.defaultLine),r(e,"marker.line")&&a(e,t,l,o,{prefix:"marker.line.",cLetter:"c"}),o("marker.line.width"),o("marker.opacity"),i(o,"marker.pattern",c,u),o("selected.marker.color"),o("unselected.marker.color")}}),Vv=Ee((e,t)=>{var n=xs(),r=Fr(),a=ao(),i=vo(),o=SS(),s=ab(),l=fG(),c=Fw(),u=R3(),d=r.coerceFont;function p(e){if(n(e)){if((e=+e)>=0)return e}else if("string"==typeof e&&("%"===(e=e.trim()).slice(-1)&&n(e.slice(0,-1))&&(e=+e.slice(0,-1))>=0))return e+"%"}function h(e,t,n,a,i,o){var s=!1!==(o=o||{}).moduleHasSelected,l=!1!==o.moduleHasUnselected,c=!1!==o.moduleHasConstrain,u=!1!==o.moduleHasCliponaxis,p=!1!==o.moduleHasTextangle,h=!1!==o.moduleHasInsideanchor,f=!!o.hasPathbar,m=Array.isArray(i)||"auto"===i,g=m||"inside"===i,y=m||"outside"===i;if(g||y){var b=d(a,"textfont",n.font),v=r.extendFlat({},b),M=!(e.textfont&&e.textfont.color);if(M&&delete v.color,d(a,"insidetextfont",v),f){var x=r.extendFlat({},b);M&&delete x.color,d(a,"pathbar.textfont",x)}y&&d(a,"outsidetextfont",b),s&&a("selected.textfont.color"),l&&a("unselected.textfont.color"),c&&a("constraintext"),u&&a("cliponaxis"),p&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}g&&h&&a("insidetextanchor")}t.exports={supplyDefaults:function(e,t,n,c){function d(n,a){return r.coerce(e,t,u,n,a)}if(o(e,t,c,d)){s(e,t,c,d),d("xhoverformat"),d("yhoverformat"),d("zorder"),d("orientation",t.x&&!t.y?"h":"v"),d("base"),d("offset"),d("width"),d("text"),d("hovertext"),d("hovertemplate"),d("hovertemplatefallback");var p=d("textposition");h(e,t,c,d,p,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),l(e,t,d,n,c);var f=(t.marker.line||{}).color,m=i.getComponentMethod("errorbars","supplyDefaults");m(e,t,f||a.defaultLine,{axis:"y"}),m(e,t,f||a.defaultLine,{axis:"x",inherit:"y"}),r.coerceSelectionMarkerOpacity(t,d)}else t.visible=!1},crossTraceDefaults:function(e,t){var n,a;function i(e,t){return r.coerce(a._input,a,u,e,t)}for(var o=0;o<e.length;o++)if("bar"===(a=e[o]).type){n=a._input;var s=i("marker.cornerradius",t.barcornerradius);a.marker&&(a.marker.cornerradius=p(s)),c(n,a,t,i,t.barmode)}},handleText:h,validateCornerradius:p}}),Uce=Ee((e,t)=>{var n=vo(),r=es(),a=Fr(),i=dG(),o=Vv().validateCornerradius;t.exports=function(e,t,s){function l(n,r){return a.coerce(e,t,i,n,r)}for(var c=!1,u=!1,d=!1,p={},h=l("barmode"),f="group"===h,m=0;m<s.length;m++){var g=s[m];if(n.traceIs(g,"bar")&&g.visible){c=!0;var y=g.xaxis+g.yaxis;if(f?(p[y]&&(d=!0),p[y]=!0):(y+=g._input.offsetgroup,p.length>0&&!p[y]&&(d=!0),p[y]=!0),g.visible&&"histogram"===g.type)"category"!==r.getFromId({_fullLayout:t},g["v"===g.orientation?"xaxis":"yaxis"]).type&&(u=!0)}}if(c){"overlay"!==h&&l("barnorm"),l("bargap",u&&!d?0:.2),l("bargroupgap");var b=l("barcornerradius");t.barcornerradius=o(b)}else delete t.barmode}}),FR=Ee((e,t)=>{var n=Fr();t.exports=function(e,t){for(var r=0;r<e.length;r++)e[r].i=r;n.mergeArray(t.text,e,"tx"),n.mergeArray(t.hovertext,e,"htx");var a=t.marker;if(a){n.mergeArray(a.opacity,e,"mo",!0),n.mergeArray(a.color,e,"mc");var i=a.line;i&&(n.mergeArray(i.color,e,"mlc"),n.mergeArrayCastPositive(i.width,e,"mlw"))}}}),nXe=Ee((e,t)=>{var n=es(),r=ob(),a=d2().hasColorscale,i=f2(),o=FR(),s=Kg();t.exports=function(e,t){var l,c,u,d,p,h,f=n.getFromId(e,t.xaxis||"x"),m=n.getFromId(e,t.yaxis||"y"),g={msUTC:!(!t.base&&0!==t.base)};"h"===t.orientation?(l=f.makeCalcdata(t,"x",g),u=m.makeCalcdata(t,"y"),d=r(t,m,"y",u),p=!!t.yperiodalignment,h="y"):(l=m.makeCalcdata(t,"y",g),u=f.makeCalcdata(t,"x"),d=r(t,f,"x",u),p=!!t.xperiodalignment,h="x"),c=d.vals;for(var y=Math.min(c.length,l.length),b=new Array(y),v=0;v<y;v++)b[v]={p:c[v],s:l[v]},p&&(b[v].orig_p=u[v],b[v][h+"End"]=d.ends[v],b[v][h+"Start"]=d.starts[v]),t.ids&&(b[v].id=String(t.ids[v]));return a(t,"marker")&&i(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),a(t,"marker.line")&&i(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),o(b,t),s(b,t),b}}),g2=Ee((e,t)=>{var n=mo(),r=Fr();function a(e){return"_"+e+"Text_minsize"}t.exports={recordMinTextSize:function(e,t,n){if(n.uniformtext.mode){var r=a(e),i=n.uniformtext.minsize,o=t.scale*t.fontSize;t.hide=o<i,n[r]=n[r]||1/0,t.hide||(n[r]=Math.min(n[r],Math.max(o,i)))}},clearMinTextSize:function(e,t){t[a(e)]=void 0},resizeText:function(e,t,a){var i=e._fullLayout,o=i["_"+a+"Text_minsize"];if(o){var s,l="hide"===i.uniformtext.mode;switch(a){case"funnelarea":case"pie":case"sunburst":s="g.slice";break;case"treemap":case"icicle":s="g.slice, g.pathbar";break;default:s="g.points > g.point"}t.selectAll(s).each(function(e){var t=e.transform;if(t){t.scale=l&&t.hide?0:o/t.fontSize;var a=n.select(this).select("text");r.setTransormAndDisplay(a,t)}})}}}}),pG=Ee(e=>{var t=xs(),n=Vh(),r=Fr().isArrayOrTypedArray;e.coerceString=function(e,t,n){if("string"==typeof t){if(t||!e.noBlank)return t}else if(("number"==typeof t||!0===t)&&!e.strict)return String(t);return void 0!==n?n:e.dflt},e.coerceNumber=function(e,n,r){if(t(n)){n=+n;var a=e.min,i=e.max;if(!(void 0!==a&&n<a||void 0!==i&&n>i))return n}return void 0!==r?r:e.dflt},e.coerceColor=function(e,t,r){return n(t).isValid()?t:void 0!==r?r:e.dflt},e.coerceEnumerated=function(e,t,n){return e.coerceNumber&&(t=+t),-1!==e.values.indexOf(t)?t:void 0!==n?n:e.dflt},e.getValue=function(e,t){var n;return r(e)?t<e.length&&(n=e[t]):n=e,n},e.getLineWidth=function(e,t){return 0<t.mlw?t.mlw:r(e.marker.line.width)?0:e.marker.line.width}}),ry=Ee((e,t)=>{var n=mo(),r=ao(),a=vs(),i=Fr(),o=vo(),s=g2().resizeText,l=R3(),c=l.textfont,u=l.insidetextfont,d=l.outsidetextfont,p=pG();function h(e,t,n){a.pointStyle(e.selectAll("path"),t,n),f(e,t,n)}function f(e,t,r){e.selectAll("text").each(function(e){var o=n.select(this),s=i.ensureUniformFontSize(r,m(o,e,t,r));a.font(o,s)})}function m(e,t,n,r){var a=r._fullLayout.font,i=n.textfont;if(e.classed("bartext-inside")){var o=M(t,n);i=y(n,t.i,a,o)}else e.classed("bartext-outside")&&(i=b(n,t.i,a));return i}function g(e,t,n){return v(c,e.textfont,t,n)}function y(e,t,n,a){var i=g(e,t,n);return(void 0===e._input.textfont||void 0===e._input.textfont.color||Array.isArray(e.textfont.color)&&void 0===e.textfont.color[t])&&(i={color:r.contrast(a),family:i.family,size:i.size,weight:i.weight,style:i.style,variant:i.variant,textcase:i.textcase,lineposition:i.lineposition,shadow:i.shadow}),v(u,e.insidetextfont,t,i)}function b(e,t,n){var r=g(e,t,n);return v(d,e.outsidetextfont,t,r)}function v(e,t,n,r){t=t||{};var a=p.getValue(t.family,n),i=p.getValue(t.size,n),o=p.getValue(t.color,n),s=p.getValue(t.weight,n),l=p.getValue(t.style,n),c=p.getValue(t.variant,n),u=p.getValue(t.textcase,n),d=p.getValue(t.lineposition,n),h=p.getValue(t.shadow,n);return{family:p.coerceString(e.family,a,r.family),size:p.coerceNumber(e.size,i,r.size),color:p.coerceColor(e.color,o,r.color),weight:p.coerceString(e.weight,s,r.weight),style:p.coerceString(e.style,l,r.style),variant:p.coerceString(e.variant,c,r.variant),textcase:p.coerceString(e.variant,u,r.textcase),lineposition:p.coerceString(e.variant,d,r.lineposition),shadow:p.coerceString(e.variant,h,r.shadow)}}function M(e,t){return"waterfall"===t.type?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}t.exports={style:function(e){var t=n.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");s(e,t,"bar");var r=t.size(),a=e._fullLayout;t.style("opacity",function(e){return e[0].trace.opacity}).each(function(e){("stack"===a.barmode&&r>1||0===a.bargap&&0===a.bargroupgap&&!e[0].trace.marker.line.width)&&n.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(t){h(n.select(this),t[0].trace,e)}),o.getComponentMethod("errorbars","style")(t)},styleTextPoints:f,styleOnSelect:function(e,t,r){var s=t[0].trace;s.selectedpoints?function(e,t,r){a.selectedPointStyle(e.selectAll("path"),t),function(e,t,r){e.each(function(e){var o,s=n.select(this);if(e.selected){o=i.ensureUniformFontSize(r,m(s,e,t,r));var l=t.selected.textfont&&t.selected.textfont.color;l&&(o.color=l),a.font(s,o)}else a.selectedTextStyle(s,t)})}(e.selectAll("text"),t,r)}(r,s,e):(h(r,s,e),o.getComponentMethod("errorbars","style")(r))},getInsideTextFont:y,getOutsideTextFont:b,getBarColor:M,resizeText:s}}),Qw=Ee((e,t)=>{var n=mo(),r=xs(),a=Fr(),i=q1(),o=ao(),s=vs(),l=vo(),c=es().tickText,u=g2(),d=u.recordMinTextSize,p=u.clearMinTextSize,h=ry(),f=pG(),m=t4(),g=R3(),y=g.text,b=g.textposition,v=fm().appendArrayPointValue,M=m.TEXTPAD;function x(e){return e.id}function z(e){return(e>0)-(e<0)}function _(e,t){return e<t?1:-1}function A(e,t,n,r){var a;return!t.uniformtext.mode&&O(n)?(r&&(a=r()),e.transition().duration(n.duration).ease(n.easing).each("end",function(){a&&a()}).each("interrupt",function(){a&&a()})):e}function O(e){return e&&e.duration>0}function w(e,t,n,r,a){return!(e<0||t<0)&&(n<=e&&r<=t||n<=t&&r<=e||(a?e>=n*(t/r):t>=r*(e/n)))}function k(e){return"auto"===e?0:e}function T(e,t){var n=Math.PI/180*t,r=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));return{x:e.width*a+e.height*r,y:e.width*r+e.height*a}}function S(e,t,n,r,a,i){var o=!!i.isHorizontal,s=!!i.constrained,l=i.angle||0,c=i.anchor,u="end"===c,d="start"===c,p=((i.leftToRight||0)+1)/2,h=1-p,f=i.hasB,m=i.r,g=i.overhead,y=a.width,b=a.height,v=Math.abs(t-e),x=Math.abs(r-n),z=v>2*M&&x>2*M?M:0;v-=2*z,x-=2*z;var A=k(l);"auto"===l&&!(y<=v&&b<=x)&&(y>v||b>x)&&(!(y>x||b>v)||y<b!=v<x)&&(A+=90);var O,w,S=T(a,A);if(m&&m-g>M){var C=function(e,t,n,r,a,i,o,s,l){var c,u,d,p,h,f=Math.max(0,Math.abs(t-e)-2*M),m=Math.max(0,Math.abs(r-n)-2*M),g=i-M,y=o?g-Math.sqrt(g*g-(g-o)*(g-o)):g,b=l?2*g:s?g-o:2*y,v=l?2*g:s?2*y:g-o;return a.y/a.x>=m/(f-b)?p=m/a.y:a.y/a.x<=(m-v)/f?p=f/a.x:!l&&s?(c=a.x*a.x+a.y*a.y/4,u=-2*a.x*(f-g)-a.y*(m/2-g),d=(f-g)*(f-g)+(m/2-g)*(m/2-g)-g*g,p=(-u+Math.sqrt(u*u-4*c*d))/(2*c)):l?(c=(a.x*a.x+a.y*a.y)/4,u=-a.x*(f/2-g)-a.y*(m/2-g),d=(f/2-g)*(f/2-g)+(m/2-g)*(m/2-g)-g*g,p=(-u+Math.sqrt(u*u-4*c*d))/(2*c)):(c=a.x*a.x/4+a.y*a.y,u=-a.x*(f/2-g)-2*a.y*(m-g),d=(f/2-g)*(f/2-g)+(m-g)*(m-g)-g*g,p=(-u+Math.sqrt(u*u-4*c*d))/(2*c)),p=Math.min(1,p),h=s?Math.max(0,g-Math.sqrt(Math.max(0,g*g-(g-(m-a.y*p)/2)*(g-(m-a.y*p)/2)))-o):Math.max(0,g-Math.sqrt(Math.max(0,g*g-(g-(f-a.x*p)/2)*(g-(f-a.x*p)/2)))-o),{scale:p,pad:h}}(e,t,n,r,S,m,g,o,f);O=C.scale,w=C.pad}else O=1,s&&(O=Math.min(1,v/S.x,x/S.y)),w=0;var E=a.left*h+a.right*p,q=(a.top+a.bottom)/2,D=(e+M)*h+(t-M)*p,R=(n+r)/2,L=0,I=0;if(d||u){var W=(o?S.x:S.y)/2;m&&(u||f)&&(z+=w);var N=o?_(e,t):_(n,r);o?d?(D=e+N*z,L=-N*W):(D=t-N*z,L=N*W):d?(R=n+N*z,I=-N*W):(R=r-N*z,I=N*W)}return{textX:E,textY:q,targetX:D,targetY:R,anchorX:L,anchorY:I,scale:O,rotate:A}}t.exports={plot:function(e,t,u,m,g,C){var E=t.xaxis,q=t.yaxis,D=e._fullLayout,R=e._context.staticPlot;g||(g={mode:D.barmode,norm:D.barmode,gap:D.bargap,groupgap:D.bargroupgap},p("bar",D));var L=a.makeTraceGroups(m,u,"trace bars").each(function(l){var u=n.select(this),p=l[0].trace,m=l[0].t,L="waterfall"===p.type,I="funnel"===p.type,W="histogram"===p.type,N="bar"===p.type,P=N||I,B=0;L&&p.connector.visible&&"between"===p.connector.mode&&(B=p.connector.line.width/2);var F="h"===p.orientation,j=O(g),U=a.ensureSingle(u,"g","points"),V=function(e){if(e.ids)return x}(p),H=U.selectAll("g.point").data(a.identity,V);H.enter().append("g").classed("point",!0),H.exit().remove(),H.each(function(u,x){var O,L,I=n.select(this),U=function(e,t,n,r){var a=[],i=[],o=r?t:n,s=r?n:t;return a[0]=o.c2p(e.s0,!0),i[0]=s.c2p(e.p0,!0),a[1]=o.c2p(e.s1,!0),i[1]=s.c2p(e.p1,!0),r?[a,i]:[i,a]}(u,E,q,F),V=U[0][0],H=U[0][1],X=U[1][0],G=U[1][1],Y=0===(F?H-V:G-X);if(Y&&P&&f.getLineWidth(p,u)&&(Y=!1),Y||(Y=!(r(V)&&r(H)&&r(X)&&r(G))),u.isBlank=Y,Y&&(F?H=V:G=X),B&&!Y&&(F?(V-=_(V,H)*B,H+=_(V,H)*B):(X-=_(X,G)*B,G+=_(X,G)*B)),"waterfall"===p.type){if(!Y){var Z=p[u.dir].marker;O=Z.line.width,L=Z.color}}else O=f.getLineWidth(p,u),L=u.mc||p.marker.color;function $(e){var t=n.round(O/2%1,2);return 0===g.gap&&0===g.groupgap?n.round(Math.round(e)-t,2):e}var J=o.opacity(L)<1||O>.01?$:function(e,t,n){return n&&e===t?e:Math.abs(e-t)>=2?$(e):e>t?Math.ceil(e):Math.floor(e)};e._context.staticPlot||(V=J(V,H,F),H=J(H,V,F),X=J(X,G,!F),G=J(G,X,!F));var Q,K=F?E.c2p:q.c2p;Q=u.s0>0?u._sMax:u.s0<0?u._sMin:u.s1>0?u._sMax:u._sMin;var ee,te,ne=N||W?function(e,t){if(!e)return 0;var n,r=Math.abs(F?G-X:H-V),a=Math.abs(F?H-V:G-X),i=J(Math.abs(K(Q,!0)-K(0,!0))),o=u.hasB?Math.min(r/2,a/2):Math.min(r/2,i);return n="%"===t?r*(Math.min(50,e)/100):e,J(Math.max(Math.min(n,o),0))}(m.cornerradiusvalue,m.cornerradiusform):0,re="M"+V+","+X+"V"+G+"H"+H+"V"+X+"Z",ae=0;if(ne&&u.s){var ie=0===z(u.s0)||z(u.s)===z(u.s0)?u.s1:u.s0;if((ae=J(u.hasB?0:Math.abs(K(Q,!0)-K(ie,!0))))<ne){var oe=_(V,H),se=_(X,G),le=oe===-se?1:0;if(F)if(u.hasB)ee="M"+(V+ne*oe)+","+X+"A "+ne+","+ne+" 0 0 "+le+" "+V+","+(X+ne*se)+"V"+(G-ne*se)+"A "+ne+","+ne+" 0 0 "+le+" "+(V+ne*oe)+","+G+"H"+(H-ne*oe)+"A "+ne+","+ne+" 0 0 "+le+" "+H+","+(G-ne*se)+"V"+(X+ne*se)+"A "+ne+","+ne+" 0 0 "+le+" "+(H-ne*oe)+","+X+"Z";else{var ce=(te=Math.abs(H-V)+ae)<ne?ne-Math.sqrt(te*(2*ne-te)):0,ue=ae>0?Math.sqrt(ae*(2*ne-ae)):0,de=oe>0?Math.max:Math.min;ee="M"+V+","+X+"V"+(G-ce*se)+"H"+de(H-(ne-ae)*oe,V)+"A "+ne+","+ne+" 0 0 "+le+" "+H+","+(G-ne*se-ue)+"V"+(X+ne*se+ue)+"A "+ne+","+ne+" 0 0 "+le+" "+de(H-(ne-ae)*oe,V)+","+(X+ce*se)+"Z"}else if(u.hasB)ee="M"+(V+ne*oe)+","+X+"A "+ne+","+ne+" 0 0 "+le+" "+V+","+(X+ne*se)+"V"+(G-ne*se)+"A "+ne+","+ne+" 0 0 "+le+" "+(V+ne*oe)+","+G+"H"+(H-ne*oe)+"A "+ne+","+ne+" 0 0 "+le+" "+H+","+(G-ne*se)+"V"+(X+ne*se)+"A "+ne+","+ne+" 0 0 "+le+" "+(H-ne*oe)+","+X+"Z";else{var pe=(te=Math.abs(G-X)+ae)<ne?ne-Math.sqrt(te*(2*ne-te)):0,he=ae>0?Math.sqrt(ae*(2*ne-ae)):0,fe=se>0?Math.max:Math.min;ee="M"+(V+pe*oe)+","+X+"V"+fe(G-(ne-ae)*se,X)+"A "+ne+","+ne+" 0 0 "+le+" "+(V+ne*oe-he)+","+G+"H"+(H-ne*oe+he)+"A "+ne+","+ne+" 0 0 "+le+" "+(H-pe*oe)+","+fe(G-(ne-ae)*se,X)+"V"+X+"Z"}}else ee=re}else ee=re;var me=A(a.ensureSingle(I,"path"),D,g,C);if(me.style("vector-effect",R?"none":"non-scaling-stroke").attr("d",isNaN((H-V)*(G-X))||Y&&e._context.staticPlot?"M0,0Z":ee).call(s.setClipUrl,t.layerClipId,e),!D.uniformtext.mode&&j){var ge=s.makePointStyleFns(p);s.singlePointStyle(u,me,p,ge,e)}(function(e,t,n,r,o,l,u,p,m,g,x,z,O){var C,E=t.xaxis,q=t.yaxis,D=e._fullLayout;function R(t,n,r){return a.ensureSingle(t,"text").text(n).attr({class:"bartext bartext-"+C,"text-anchor":"middle","data-notex":1}).call(s.font,r).call(i.convertToTspans,e)}var L=r[0].trace,I="h"===L.orientation,W=function(e,t,n,r,i){var o,s=t[0].trace,l=s.texttemplate;return o=l?function(e,t,n,r,i){var o=t[0].trace,s=a.castOption(o,n,"texttemplate");if(!s)return"";var l,u,d,p,h="histogram"===o.type,f="waterfall"===o.type,m="funnel"===o.type,g="h"===o.orientation;function y(e){return c(u,u.c2l(e),!0).text}function b(e){return c(p,p.c2l(e),!0).text}g?(l="y",u=i,d="x",p=r):(l="x",u=r,d="y",p=i);var M=t[n],x={};x.label=M.p,x.labelLabel=x[l+"Label"]=y(M.p);var z=a.castOption(o,M.i,"text");(0===z||z)&&(x.text=z),x.value=M.s,x.valueLabel=x[d+"Label"]=b(M.s);var _={};v(_,o,M.i),(h||void 0===_.x)&&(_.x=g?x.value:x.label),(h||void 0===_.y)&&(_.y=g?x.label:x.value),(h||void 0===_.xLabel)&&(_.xLabel=g?x.valueLabel:x.labelLabel),(h||void 0===_.yLabel)&&(_.yLabel=g?x.labelLabel:x.valueLabel),f&&(x.delta=+M.rawS||M.s,x.deltaLabel=b(x.delta),x.final=M.v,x.finalLabel=b(x.final),x.initial=x.final-x.delta,x.initialLabel=b(x.initial)),m&&(x.value=M.s,x.valueLabel=b(x.value),x.percentInitial=M.begR,x.percentInitialLabel=a.formatPercent(M.begR),x.percentPrevious=M.difR,x.percentPreviousLabel=a.formatPercent(M.difR),x.percentTotal=M.sumR,x.percenTotalLabel=a.formatPercent(M.sumR));var A=a.castOption(o,M.i,"customdata");return A&&(x.customdata=A),a.texttemplateString({data:[_,x,o._meta],fallback:o.texttemplatefallback,labels:x,locale:e._d3locale,template:s})}(e,t,n,r,i):s.textinfo?function(e,t,n,r){var i=e[0].trace,o="h"===i.orientation,s="waterfall"===i.type,l="funnel"===i.type;function u(e){return c(o?r:n,e,!0).text}function d(e){return c(o?n:r,+e,!0).text}var p,h=i.textinfo,f=e[t],m=h.split("+"),g=[],y=function(e){return-1!==m.indexOf(e)};if(y("label")&&g.push(u(e[t].p)),y("text")&&(p=a.castOption(i,f.i,"text"),(0===p||p)&&g.push(p)),s){var b=+f.rawS||f.s,v=f.v,M=v-b;y("initial")&&g.push(d(M)),y("delta")&&g.push(d(b)),y("final")&&g.push(d(v))}if(l){y("value")&&g.push(d(f.s));var x=0;y("percent initial")&&x++,y("percent previous")&&x++,y("percent total")&&x++;var z=x>1;y("percent initial")&&(p=a.formatPercent(f.begR),z&&(p+=" of initial"),g.push(p)),y("percent previous")&&(p=a.formatPercent(f.difR),z&&(p+=" of previous"),g.push(p)),y("percent total")&&(p=a.formatPercent(f.sumR),z&&(p+=" of total"),g.push(p))}return g.join("<br>")}(t,n,r,i):f.getValue(s.text,n),f.coerceString(y,o)}(D,r,o,E,q);C=function(e,t){var n=f.getValue(e.textposition,t);return f.coerceEnumerated(b,n)}(L,o);var N="stack"===z.mode||"relative"===z.mode,P=r[o],B=!N||P._outmost,F=P.hasB,j=g&&g-x>M;if(!W||"none"===C||(P.isBlank||l===u||p===m)&&("auto"===C||"inside"===C))return void n.select("text").remove();var U=D.font,V=h.getBarColor(r[o],L),H=h.getInsideTextFont(L,o,U,V),X=h.getOutsideTextFont(L,o,U),G=L.insidetextanchor||"end",Y=n.datum();I?"log"===E.type&&Y.s0<=0&&(l=E.range[0]<E.range[1]?0:E._length):"log"===q.type&&Y.s0<=0&&(p=q.range[0]<q.range[1]?q._length:0);var Z,$,J,Q,K,ee=Math.abs(u-l),te=Math.abs(m-p),ne=ee-2*M,re=te-2*M;if("outside"===C&&!B&&!P.hasB&&(C="inside"),"auto"===C)if(B){C="inside",Z=R(n,W,K=a.ensureUniformFontSize(e,H)),J=($=s.bBox(Z.node())).width,Q=$.height;var ae,ie=J>0&&Q>0;ae=j?F?w(ne-2*g,re,J,Q,I)||w(ne,re-2*g,J,Q,I):I?w(ne-(g-x),re,J,Q,I)||w(ne,re-2*(g-x),J,Q,I):w(ne,re-(g-x),J,Q,I)||w(ne-2*(g-x),re,J,Q,I):w(ne,re,J,Q,I),ie&&ae?C="inside":(C="outside",Z.remove(),Z=null)}else C="inside";if(!Z){var oe=(Z=R(n,W,K=a.ensureUniformFontSize(e,"outside"===C?X:H))).attr("transform");if(Z.attr("transform",""),J=($=s.bBox(Z.node())).width,Q=$.height,Z.attr("transform",oe),J<=0||Q<=0)return void Z.remove()}var se,le,ce=L.textangle;"outside"===C?(le="both"===L.constraintext||"outside"===L.constraintext,se=function(e,t,n,r,a,i){var o,s=!!i.isHorizontal,l=!!i.constrained,c=i.angle||0,u=a.width,d=a.height,p=Math.abs(t-e),h=Math.abs(r-n);o=s?h>2*M?M:0:p>2*M?M:0;var f=1;l&&(f=s?Math.min(1,h/d):Math.min(1,p/u));var m=k(c),g=T(a,m),y=(s?g.x:g.y)/2,b=(a.left+a.right)/2,v=(a.top+a.bottom)/2,x=(e+t)/2,z=(n+r)/2,A=0,O=0,w=s?_(t,e):_(n,r);return s?(x=t-w*o,A=w*y):(z=r+w*o,O=-w*y),{textX:b,textY:v,targetX:x,targetY:z,anchorX:A,anchorY:O,scale:f,rotate:m}}(l,u,p,m,$,{isHorizontal:I,constrained:le,angle:ce})):(le="both"===L.constraintext||"inside"===L.constraintext,se=S(l,u,p,m,$,{isHorizontal:I,constrained:le,angle:ce,anchor:G,hasB:F,r:g,overhead:x})),se.fontSize=K.size,d("histogram"===L.type?"bar":L.type,se,D),P.transform=se;var ue=A(Z,D,z,O);a.setTransormAndDisplay(ue,se)})(e,t,I,l,x,V,H,X,G,ne,ae,g,C),t.layerClipId&&s.hideOutsideRangePoint(u,I.select("text"),E,q,p.xcalendar,p.ycalendar)});var X=!1===p.cliponaxis;s.setClipUrl(u,X?null:t.layerClipId,e)});l.getComponentMethod("errorbars","plot")(e,L,t,g)},toMoveInsideBar:S}}),QS=Ee((e,t)=>{var n=_d(),r=vo(),a=ao(),i=Fr().fillText,o=pG().getLineWidth,s=es().hoverLabelText,l=T0().BADNUM;function c(e,t,r,a,o){var c,u,d,p,h,f,m,g=e.cd,y=g[0].trace,b=g[0].t,v="closest"===a,M="waterfall"===y.type,x=e.maxHoverDistance,z=e.maxSpikeDistance;"h"===y.orientation?(c=r,u=t,d="y",p="x",h=R,f=q):(c=t,u=r,d="x",p="y",f=R,h=q);var _=y[d+"period"],A=v||_;function O(e){return k(e,-1)}function w(e){return k(e,1)}function k(e,t){var n=e.w;return e[d]+t*n/2}function T(e){return e[d+"End"]-e[d+"Start"]}var S=v?O:_?function(e){return e.p-T(e)/2}:function(e){return Math.min(O(e),e.p-b.bardelta/2)},C=v?w:_?function(e){return e.p+T(e)/2}:function(e){return Math.max(w(e),e.p+b.bardelta/2)};function E(e,t,r){return o.finiteRange&&(r=0),n.inbox(e-c,t-c,r+Math.min(1,Math.abs(t-e)/m)-1)}function q(e){return E(S(e),C(e),x)}function D(e){var t=e[p];if(M){var n=Math.abs(e.rawS)||0;u>0?t+=n:u<0&&(t-=n)}return t}function R(e){var t=u,r=e.b,a=D(e);return n.inbox(r-t,a-t,x+(a-t)/(a-r)-1)}var L=e[d+"a"],I=e[p+"a"];m=Math.abs(L.r2c(L.range[1])-L.r2c(L.range[0]));var W,N,P,B,F=n.getDistanceFunction(a,h,f,function(e){return(h(e)+f(e))/2});if(n.getClosest(g,F,e),!1!==e.index&&g[e.index].p!==l){A||(S=function(e){return Math.min(O(e),e.p-b.bargroupwidth/2)},C=function(e){return Math.max(w(e),e.p+b.bargroupwidth/2)});var j=g[e.index],U=y.base?j.b+j.s:j.s;e[p+"0"]=e[p+"1"]=I.c2p(j[p],!0),e[p+"LabelVal"]=U;var V=b.extents[b.extents.round(j.p)];e[d+"0"]=L.c2p(v?S(j):V[0],!0),e[d+"1"]=L.c2p(v?C(j):V[1],!0);var H=void 0!==j.orig_p;return e[d+"LabelVal"]=H?j.orig_p:j.p,e.labelLabel=s(L,e[d+"LabelVal"],y[d+"hoverformat"]),e.valueLabel=s(I,e[p+"LabelVal"],y[p+"hoverformat"]),e.baseLabel=s(I,j.b,y[p+"hoverformat"]),e.spikeDistance=(N=u,P=(W=j).b,B=D(W),(n.inbox(P-N,B-N,z+(B-N)/(B-P)-1)+function(e){return E(O(e),w(e),z)}(j))/2),e[d+"Spike"]=L.c2p(j.p,!0),i(j,y,e),e.hovertemplate=y.hovertemplate,e}}function u(e,t){var n=t.mcc||e.marker.color,r=t.mlcc||e.marker.line.color,i=o(e,t);return a.opacity(n)?n:a.opacity(r)&&i?r:void 0}t.exports={hoverPoints:function(e,t,n,a,i){var o=c(e,t,n,a,i);if(o){var s=o.cd,l=s[0].trace,d=s[o.index];return o.color=u(l,d),r.getComponentMethod("errorbars","hoverInfo")(d,l,o),[o]}},hoverOnBars:c,getTraceColor:u}}),EXe=Ee((e,t)=>{t.exports=function(e,t,n){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),"h"===n.orientation?(e.label=e.y,e.value=e.x):(e.label=e.x,e.value=e.y),e}}),ek=Ee((e,t)=>{function n(e,t,n,r,a){var i=t.c2p(r?e.s0:e.p0,!0),o=t.c2p(r?e.s1:e.p1,!0),s=n.c2p(r?e.p0:e.s0,!0),l=n.c2p(r?e.p1:e.s1,!0);return a?[(i+o)/2,(s+l)/2]:r?[o,(s+l)/2]:[(i+o)/2,l]}t.exports=function(e,t){var r,a=e.cd,i=e.xaxis,o=e.yaxis,s=a[0].trace,l="funnel"===s.type,c="h"===s.orientation,u=[];if(!1===t)for(r=0;r<a.length;r++)a[r].selected=0;else for(r=0;r<a.length;r++){var d=a[r],p="ct"in d?d.ct:n(d,i,o,c,l);t.contains(p,!1,r,e)?(u.push({pointNumber:r,x:i.c2d(d.x),y:o.c2d(d.y)}),d.selected=1):d.selected=0}return u}}),RXe=Ee((e,t)=>{t.exports={attributes:R3(),layoutAttributes:dG(),supplyDefaults:Vv().supplyDefaults,crossTraceDefaults:Vv().crossTraceDefaults,supplyLayoutDefaults:Uce(),calc:nXe(),crossTraceCalc:Bw().crossTraceCalc,colorbar:Wp(),arraysToCalcdata:FR(),plot:Qw().plot,style:ry().style,styleOnSelect:ry().styleOnSelect,hoverPoints:QS().hoverPoints,eventData:EXe(),selectPoints:ek(),moduleType:"trace",name:"bar",basePlotModule:Bf(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{description:["The data visualized by the span of the bars is set in `y`","if `orientation` is set to *v* (the default)","and the labels are set in `x`.","By setting `orientation` to *h*, the roles are interchanged."].join(" ")}}}),PXe=Ee((e,t)=>{t.exports=RXe()}),VR=Ee((e,t)=>{var n=tb(),r=Id(),a=R3(),i=oh(),o=Pd().axisHoverFormat,{hovertemplateAttrs:s,templatefallbackAttrs:l}=p1(),c=ms().extendFlat,u=r.marker,d=u.line;t.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes",description:"Sets the y sample data or coordinates. See overview for more info."},x:{valType:"data_array",editType:"calc+clearAxisTypes",description:"Sets the x sample data or coordinates. See overview for more info."},x0:{valType:"any",editType:"calc+clearAxisTypes",description:["Sets the x coordinate for single-box traces","or the starting coordinate for multi-box traces","set using q1/median/q3.","See overview for more info."].join(" ")},y0:{valType:"any",editType:"calc+clearAxisTypes",description:["Sets the y coordinate for single-box traces","or the starting coordinate for multi-box traces","set using q1/median/q3.","See overview for more info."].join(" ")},dx:{valType:"number",editType:"calc",description:"Sets the x coordinate step for multi-box traces set using q1/median/q3."},dy:{valType:"number",editType:"calc",description:"Sets the y coordinate step for multi-box traces set using q1/median/q3."},xperiod:r.xperiod,yperiod:r.yperiod,xperiod0:r.xperiod0,yperiod0:r.yperiod0,xperiodalignment:r.xperiodalignment,yperiodalignment:r.yperiodalignment,xhoverformat:o("x"),yhoverformat:o("y"),name:{valType:"string",editType:"calc+clearAxisTypes",description:["Sets the trace name.","The trace name appears as the legend item and on hover.","For box traces, the name will also be used for the position","coordinate, if `x` and `x0` (`y` and `y0` if horizontal) are","missing and the position axis is categorical"].join(" ")},q1:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the Quartile 1 values.","There should be as many items as the number of boxes desired."].join(" ")},median:{valType:"data_array",editType:"calc+clearAxisTypes",description:"Sets the median values. There should be as many items as the number of boxes desired."},q3:{valType:"data_array",editType:"calc+clearAxisTypes",description:"Sets the Quartile 3 values. There should be as many items as the number of boxes desired."},lowerfence:{valType:"data_array",editType:"calc",description:["Sets the lower fence values.","There should be as many items as the number of boxes desired.","This attribute has effect only under the q1/median/q3 signature.","If `lowerfence` is not provided but a sample (in `y` or `x`) is set,","we compute the lower as the last sample point below 1.5 times the IQR."].join(" ")},upperfence:{valType:"data_array",editType:"calc",description:["Sets the upper fence values.","There should be as many items as the number of boxes desired.","This attribute has effect only under the q1/median/q3 signature.","If `upperfence` is not provided but a sample (in `y` or `x`) is set,","we compute the upper as the last sample point above 1.5 times the IQR."].join(" ")},notched:{valType:"boolean",editType:"calc",description:["Determines whether or not notches are drawn.","Notches displays a confidence interval around the median.","We compute the confidence interval as median +/- 1.57 * IQR / sqrt(N),","where IQR is the interquartile range and N is the sample size.","If two boxes' notches do not overlap there is 95% confidence their medians differ.","See https://sites.google.com/site/davidsstatistics/home/notched-box-plots for more info.","Defaults to *false* unless `notchwidth` or `notchspan` is set."].join(" ")},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc",description:["Sets the width of the notches relative to","the box width.","For example, with 0, the notches are as wide as the box(es)."].join(" ")},notchspan:{valType:"data_array",editType:"calc",description:["Sets the notch span from the boxes' `median` values.","There should be as many items as the number of boxes desired.","This attribute has effect only under the q1/median/q3 signature.","If `notchspan` is not provided but a sample (in `y` or `x`) is set,","we compute it as 1.57 * IQR / sqrt(N),","where N is the sample size."].join(" ")},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc",description:["If *outliers*, only the sample points lying outside the whiskers","are shown","If *suspectedoutliers*, the outlier points are shown and","points either less than 4*Q1-3*Q3 or greater than 4*Q3-3*Q1","are highlighted (see `outliercolor`)","If *all*, all sample points are shown","If *false*, only the box(es) are shown with no sample points","Defaults to *suspectedoutliers* when `marker.outliercolor` or","`marker.line.outliercolor` is set.","Defaults to *all* under the q1/median/q3 signature.","Otherwise defaults to *outliers*."].join(" ")},jitter:{valType:"number",min:0,max:1,editType:"calc",description:["Sets the amount of jitter in the sample points drawn.","If *0*, the sample points align along the distribution axis.","If *1*, the sample points are drawn in a random jitter of width","equal to the width of the box(es)."].join(" ")},pointpos:{valType:"number",min:-2,max:2,editType:"calc",description:["Sets the position of the sample points in relation to the box(es).","If *0*, the sample points are places over the center of the box(es).","Positive (negative) values correspond to positions to the","right (left) for vertical boxes and above (below) for horizontal boxes"].join(" ")},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1,description:["Scales the box size when sizemode=sd","Allowing boxes to be drawn across any stddev range","For example 1-stddev, 3-stddev, 5-stddev"].join(" ")},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles",description:["Sets the upper and lower bound for the boxes","quartiles means box is drawn between Q1 and Q3","SD means the box is drawn between Mean +- Standard Deviation","Argument sdmultiple (default 1) to scale the box size","So it could be drawn 1-stddev, 3-stddev etc"].join(" ")},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc",description:["If *true*, the mean of the box(es)' underlying distribution is","drawn as a dashed line inside the box(es).","If *sd* the standard deviation is also drawn.","Defaults to *true* when `mean` is set.","Defaults to *sd* when `sd` is set","Otherwise defaults to *false*."].join(" ")},mean:{valType:"data_array",editType:"calc",description:["Sets the mean values.","There should be as many items as the number of boxes desired.","This attribute has effect only under the q1/median/q3 signature.","If `mean` is not provided but a sample (in `y` or `x`) is set,","we compute the mean for each box using the sample values."].join(" ")},sd:{valType:"data_array",editType:"calc",description:["Sets the standard deviation values.","There should be as many items as the number of boxes desired.","This attribute has effect only under the q1/median/q3 signature.","If `sd` is not provided but a sample (in `y` or `x`) is set,","we compute the standard deviation for each box using the sample values."].join(" ")},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes",description:["Sets the orientation of the box(es).","If *v* (*h*), the distribution is visualized along","the vertical (horizontal)."].join(" ")},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc",description:["Sets the method used to compute the sample's Q1 and Q3 quartiles.","The *linear* method uses the 25th percentile for Q1 and 75th percentile for Q3","as computed using method #10 (listed on http://jse.amstat.org/v14n3/langford.html).","The *exclusive* method uses the median to divide the ordered dataset into two halves","if the sample is odd, it does not include the median in either half -","Q1 is then the median of the lower half and","Q3 the median of the upper half.","The *inclusive* method also uses the median to divide the ordered dataset into two halves","but if the sample is odd, it includes the median in both halves -","Q1 is then the median of the lower half and","Q3 the median of the upper half."].join(" ")},width:{valType:"number",min:0,dflt:0,editType:"calc",description:["Sets the width of the box in data coordinate","If *0* (default value) the width is automatically selected based on the positions","of other box traces in the same subplot."].join(" ")},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style",description:"Sets the color of the outlier sample points."},symbol:c({},u.symbol,{arrayOk:!1,editType:"plot"}),opacity:c({},u.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:c({},u.angle,{arrayOk:!1,editType:"calc"}),size:c({},u.size,{arrayOk:!1,editType:"calc"}),color:c({},u.color,{arrayOk:!1,editType:"style"}),line:{color:c({},d.color,{arrayOk:!1,dflt:i.defaultLine,editType:"style"}),width:c({},d.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style",description:["Sets the border line color of the outlier sample points.","Defaults to marker.color"].join(" ")},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style",description:"Sets the border line width (in px) of the outlier sample points."},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style",description:"Sets the color of line bounding the box(es)."},width:{valType:"number",min:0,dflt:2,editType:"style",description:"Sets the width (in px) of line bounding the box(es)."},editType:"plot"},fillcolor:n(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc",description:["Sets the width of the whiskers relative to","the box width.","For example, with 1, the whiskers are as wide as the box(es)."].join(" ")},showwhiskers:{valType:"boolean",editType:"calc",description:["Determines whether or not whiskers are visible.","Defaults to true for `sizemode` *quartiles*, false for *sd*."].join(" ")},offsetgroup:a.offsetgroup,alignmentgroup:a.alignmentgroup,selected:{marker:r.selected.marker,editType:"style"},unselected:{marker:r.unselected.marker,editType:"style"},text:c({},r.text,{description:["Sets the text elements associated with each sample value.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")}),hovertext:c({},r.hovertext,{description:"Same as `text`."}),hovertemplate:s({description:"N.B. This only has an effect when hovering on points."}),hovertemplatefallback:l(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style",description:"Do the hover effects highlight individual boxes or sample points or both?"},zorder:r.zorder}}),jR=Ee((e,t)=>{t.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc",description:["Determines how boxes at the same location coordinate","are displayed on the graph.","If *group*, the boxes are plotted next to one another","centered around the shared location.","If *overlay*, the boxes are plotted over one another,","you might need to set *opacity* to see them multiple boxes.","Has no effect on traces that have *width* set."].join(" ")},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc",description:["Sets the gap (in plot fraction) between boxes of","adjacent location coordinates.","Has no effect on traces that have *width* set."].join(" ")},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc",description:["Sets the gap (in plot fraction) between boxes of","the same location coordinate.","Has no effect on traces that have *width* set."].join(" ")}}}),XR=Ee((e,t)=>{var n=Fr(),r=vo(),a=ao(),i=ab(),o=Fw(),s=uS(),l=VR();function c(e,t,a,i){function o(e){var t=0;return e&&e.length&&(t+=1,n.isArrayOrTypedArray(e[0])&&e[0].length&&(t+=1)),t}function c(t){return n.validate(e[t],l[t])}var u,d=a("y"),p=a("x");if("box"===t.type){var h=a("q1"),f=a("median"),m=a("q3");t._hasPreCompStats=h&&h.length&&f&&f.length&&m&&m.length,u=Math.min(n.minRowLength(h),n.minRowLength(f),n.minRowLength(m))}else t._hasPreCompStats=!1;var g,y,b=o(d),v=o(p),M=b&&n.minRowLength(d),x=v&&n.minRowLength(p),z=i.calendar,_={autotypenumbers:i.autotypenumbers};if(t._hasPreCompStats)switch(String(v)+String(b)){case"00":var A=c("x0")||c("dx");g=(c("y0")||c("dy"))&&!A?"h":"v",y=u;break;case"10":g="v",y=Math.min(u,x);break;case"20":g="h",y=Math.min(u,p.length);break;case"01":g="h",y=Math.min(u,M);break;case"02":g="v",y=Math.min(u,d.length);break;case"12":g="v",y=Math.min(u,x,d.length);break;case"21":g="h",y=Math.min(u,p.length,M);break;case"11":y=0;break;case"22":var O,w=!1;for(O=0;O<p.length;O++)if("category"===s(p[O],z,_)){w=!0;break}if(w)g="v",y=Math.min(u,x,d.length);else{for(O=0;O<d.length;O++)if("category"===s(d[O],z,_)){w=!0;break}w?(g="h",y=Math.min(u,p.length,M)):(g="v",y=Math.min(u,x,d.length))}}else b>0?(g="v",y=v>0?Math.min(x,M):Math.min(M)):v>0?(g="h",y=Math.min(x)):y=0;if(y){t._length=y;var k=a("orientation",g);t._hasPreCompStats?"v"===k&&0===v?(a("x0",0),a("dx",1)):"h"===k&&0===b&&(a("y0",0),a("dy",1)):"v"===k&&0===v?a("x0"):"h"===k&&0===b&&a("y0"),r.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],i)}else t.visible=!1}function u(e,t,r,a){var i=a.prefix,o=n.coerce2(e,t,l,"marker.outliercolor"),s=r("marker.line.outliercolor"),c="outliers";t._hasPreCompStats?c="all":(o||s)&&(c="suspectedoutliers");var u=r(i+"points",c);u?(r("jitter","all"===u?.3:0),r("pointpos","all"===u?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),"suspectedoutliers"===u&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var d=r("hoveron");("all"===d||-1!==d.indexOf("points"))&&(r("hovertemplate"),r("hovertemplatefallback")),n.coerceSelectionMarkerOpacity(t,r)}t.exports={supplyDefaults:function(e,t,r,o){function s(r,a){return n.coerce(e,t,l,r,a)}if(c(e,t,s,o),!1!==t.visible){i(e,t,o,s),s("xhoverformat"),s("yhoverformat");var d=t._hasPreCompStats;d&&(s("lowerfence"),s("upperfence")),s("line.color",(e.marker||{}).color||r),s("line.width"),s("fillcolor",a.addOpacity(t.line.color,.5));var p=!1;if(d){var h=s("mean"),f=s("sd");h&&h.length&&(p=!0,f&&f.length&&(p="sd"))}s("whiskerwidth");var m,g=s("sizemode");"quartiles"===g&&(m=s("boxmean",p)),s("showwhiskers","quartiles"===g),("sd"===g||"sd"===m)&&s("sdmultiple"),s("width"),s("quartilemethod");var y=!1;if(d){var b=s("notchspan");b&&b.length&&(y=!0)}else n.validate(e.notchwidth,l.notchwidth)&&(y=!0);s("notched",y)&&s("notchwidth"),u(e,t,s,{prefix:"box"}),s("zorder")}},crossTraceDefaults:function(e,t){var r,a;function i(e){return n.coerce(a._input,a,l,e)}for(var s=0;s<e.length;s++){var c=(a=e[s]).type;if("box"===c||"violin"===c){r=a._input;var u=t[c+"mode"];"group"===u&&o(r,a,t,i,u)}}},handleSampleDefaults:c,handlePointsDefaults:u}}),yG=Ee((e,t)=>{var n=vo(),r=Fr(),a=jR();function i(e,t,r,a,i){for(var o=i+"Layout",s=!1,l=0;l<r.length;l++){var c=r[l];if(n.traceIs(c,o)){s=!0;break}}s&&(a(i+"mode"),a(i+"gap"),a(i+"groupgap"))}t.exports={supplyLayoutDefaults:function(e,t,n){i(0,0,n,function(n,i){return r.coerce(e,t,a,n,i)},"box")},_supply:i}}),$ce=Ee((e,t)=>{var n=xs(),r=es(),a=ob(),i=Fr(),o=T0().BADNUM,s=i._;t.exports=function(e,t){var l,y,b,v,M,x,z,_=e._fullLayout,A=r.getFromId(e,t.xaxis||"x"),O=r.getFromId(e,t.yaxis||"y"),w=[],k="violin"===t.type?"_numViolins":"_numBoxes";"h"===t.orientation?(b=A,v="x",M=O,x="y",z=!!t.yperiodalignment):(b=O,v="y",M=A,x="x",z=!!t.xperiodalignment);var T,S,C,E,q,D,R=function(e,t,r,o){var s,l=t in e,c=t+"0"in e,u="d"+t in e;if(l||c&&u){var d=r.makeCalcdata(e,t);return[a(e,r,t,d).vals,d]}s=c?e[t+"0"]:"name"in e&&("category"===r.type||n(e.name)&&-1!==["linear","log"].indexOf(r.type)||i.isDateTime(e.name)&&"date"===r.type)?e.name:o;for(var p="multicategory"===r.type?r.r2c_just_indices(s):r.d2c(s,0,e[t+"calendar"]),h=e._length,f=new Array(h),m=0;m<h;m++)f[m]=p;return[f]}(t,x,M,_[k]),L=R[0],I=R[1],W=i.distinctVals(L,M),N=W.vals,P=W.minDiff/2,B="all"===(t.boxpoints||t.points)?i.identity:function(e){return e.v<T.lf||e.v>T.uf};if(t._hasPreCompStats){var F=t[v],j=function(e){return b.d2c((t[e]||[])[l])},U=1/0,V=-1/0;for(l=0;l<t._length;l++){var H=L[l];if(n(H)){if((T={}).pos=T[x]=H,z&&I&&(T.orig_p=I[l]),T.q1=j("q1"),T.med=j("median"),T.q3=j("q3"),S=[],F&&i.isArrayOrTypedArray(F[l]))for(y=0;y<F[l].length;y++)(D=b.d2c(F[l][y]))!==o&&(c(q={v:D,i:[l,y]},t,[l,y]),S.push(q));if(T.pts=S.sort(u),E=(C=T[v]=S.map(d)).length,T.med!==o&&T.q1!==o&&T.q3!==o&&T.med>=T.q1&&T.q3>=T.med){var X=j("lowerfence");T.lf=X!==o&&X<=T.q1?X:p(T,C,E);var G=j("upperfence");T.uf=G!==o&&G>=T.q3?G:h(T,C,E);var Y=j("mean");T.mean=Y!==o?Y:E?i.mean(C,E):(T.q1+T.q3)/2;var Z=j("sd");T.sd=Y!==o&&Z>=0?Z:E?i.stdev(C,E,T.mean):T.q3-T.q1,T.lo=f(T),T.uo=m(T);var $=j("notchspan");$=$!==o&&$>0?$:g(T,E),T.ln=T.med-$,T.un=T.med+$;var J=T.lf,Q=T.uf;t.boxpoints&&C.length&&(J=Math.min(J,C[0]),Q=Math.max(Q,C[E-1])),t.notched&&(J=Math.min(J,T.ln),Q=Math.max(Q,T.un)),T.min=J,T.max=Q}else{var K;i.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+T.q1,"median = "+T.med,"q3 = "+T.q3].join("\n")),K=T.med!==o?T.med:T.q1!==o?T.q3!==o?(T.q1+T.q3)/2:T.q1:T.q3!==o?T.q3:0,T.med=K,T.q1=T.q3=K,T.lf=T.uf=K,T.mean=T.sd=K,T.ln=T.un=K,T.min=T.max=K}U=Math.min(U,T.min),V=Math.max(V,T.max),T.pts2=S.filter(B),w.push(T)}}t._extremes[b._id]=r.findExtremes(b,[U,V],{padded:!0})}else{var ee=b.makeCalcdata(t,v),te=function(e,t){for(var n=e.length,r=new Array(n+1),a=0;a<n;a++)r[a]=e[a]-t;return r[n]=e[n-1]+t,r}(N,P),ne=N.length,re=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}(ne);for(l=0;l<t._length;l++)if(D=ee[l],n(D)){var ae=i.findBin(L[l],te);ae>=0&&ae<ne&&(c(q={v:D,i:l},t,l),re[ae].push(q))}var ie=1/0,oe=-1/0,se=t.quartilemethod,le="exclusive"===se,ce="inclusive"===se;for(l=0;l<ne;l++)if(re[l].length>0){var ue,de;if((T={}).pos=T[x]=N[l],S=T.pts=re[l].sort(u),E=(C=T[v]=S.map(d)).length,T.min=C[0],T.max=C[E-1],T.mean=i.mean(C,E),T.sd=i.stdev(C,E,T.mean)*t.sdmultiple,T.med=i.interp(C,.5),E%2&&(le||ce))le?(ue=C.slice(0,E/2),de=C.slice(E/2+1)):ce&&(ue=C.slice(0,E/2+1),de=C.slice(E/2)),T.q1=i.interp(ue,.5),T.q3=i.interp(de,.5);else T.q1=i.interp(C,.25),T.q3=i.interp(C,.75);T.lf=p(T,C,E),T.uf=h(T,C,E),T.lo=f(T),T.uo=m(T);var pe=g(T,E);T.ln=T.med-pe,T.un=T.med+pe,ie=Math.min(ie,T.ln),oe=Math.max(oe,T.un),T.pts2=S.filter(B),w.push(T)}t.notched&&i.isTypedArray(ee)&&(ee=Array.from(ee)),t._extremes[b._id]=r.findExtremes(b,t.notched?ee.concat([ie,oe]):ee,{padded:!0})}return function(e,t){if(i.isArrayOrTypedArray(t.selectedpoints))for(var n=0;n<e.length;n++){for(var r=e[n].pts||[],a={},o=0;o<r.length;o++)a[r[o].i]=o;i.tagSelected(r,t,a)}}(w,t),w.length>0?(w[0].t={num:_[k],dPos:P,posLetter:x,valLetter:v,labels:{med:s(e,"median:"),min:s(e,"min:"),q1:s(e,"q1:"),q3:s(e,"q3:"),max:s(e,"max:"),mean:"sd"===t.boxmean||"sd"===t.sizemode?s(e,"mean ± σ:").replace("σ",1===t.sdmultiple?"σ":t.sdmultiple+"σ"):s(e,"mean:"),lf:s(e,"lower fence:"),uf:s(e,"upper fence:")}},_[k]++,w):[{t:{empty:!0}}]};var l={text:"tx",hovertext:"htx"};function c(e,t,n){for(var r in l)i.isArrayOrTypedArray(t[r])&&(Array.isArray(n)?i.isArrayOrTypedArray(t[r][n[0]])&&(e[l[r]]=t[r][n[0]][n[1]]):e[l[r]]=t[r][n])}function u(e,t){return e.v-t.v}function d(e){return e.v}function p(e,t,n){return 0===n?e.q1:Math.min(e.q1,t[Math.min(i.findBin(2.5*e.q1-1.5*e.q3,t,!0)+1,n-1)])}function h(e,t,n){return 0===n?e.q3:Math.max(e.q3,t[Math.max(i.findBin(2.5*e.q3-1.5*e.q1,t),0)])}function f(e){return 4*e.q1-3*e.q3}function m(e){return 4*e.q3-3*e.q1}function g(e,t){return 0===t?0:1.57*(e.q3-e.q1)/Math.sqrt(t)}}),MG=Ee((e,t)=>{var n=es(),r=Fr(),a=Pw().getAxisGroup,i=["v","h"];function o(e,t,i,o){var s,l,c,u=t.calcdata,d=t._fullLayout,p=o._id,h=p.charAt(0),f=[],m=0;for(s=0;s<i.length;s++)for(c=u[i[s]],l=0;l<c.length;l++)f.push(o.c2l(c[l].pos,!0)),m+=(c[l].pts2||[]).length;if(f.length){var g=r.distinctVals(f);("category"===o.type||"multicategory"===o.type)&&(g.minDiff=1);var y=g.minDiff/2;n.minDtick(o,g.minDiff,g.vals[0],!0);var b=d["violin"===e?"_numViolins":"_numBoxes"],v="group"===d[e+"mode"]&&b>1,M=1-d[e+"gap"],x=1-d[e+"groupgap"];for(s=0;s<i.length;s++){var z,_,A,O,w=(c=u[i[s]])[0].trace,k=c[0].t,T=w.width,S=w.side;if(T)z=_=O=T/2,A=0;else if(z=y,v){var C=a(d,o._id)+w.orientation,E=(d._alignmentOpts[C]||{})[w.alignmentgroup]||{},q=Object.keys(E.offsetGroups||{}).length,D=q||b;_=z*M*x/D,A=2*z*(((q?w._offsetIndex:k.num)+.5)/D-.5)*M,O=z*M/D}else _=z*M*x,A=0,O=z;k.dPos=z,k.bPos=A,k.bdPos=_,k.wHover=O;var R,L,I,W,N,P,B,F,j=A+_,U=!!T;if("positive"===S?(R=z*(T?1:.5),I=j,L=I=A):"negative"===S?(R=I=A,L=z*(T?1:.5),W=j):(R=L=z,I=W=j),(w.boxpoints||w.points)&&m>0){var V=w.pointpos,H=w.jitter,X=w.marker.size/2,G=0;V+H>=0&&((G=j*(V+H))>R?(U=!0,B=X,N=G):G>I&&(B=X,N=R)),G<=R&&(N=R);var Y=0;V-H<=0&&((Y=-j*(V-H))>L?(U=!0,F=X,P=Y):Y>W&&(F=X,P=L)),Y<=L&&(P=L)}else N=R,P=L;var Z=new Array(c.length);for(l=0;l<c.length;l++)Z[l]=c[l].pos;w._extremes[p]=n.findExtremes(o,Z,{padded:U,vpadminus:P,vpadplus:N,vpadLinearized:!0,ppadminus:{x:F,y:B}[h],ppadplus:{x:B,y:F}[h]})}}}t.exports={crossTraceCalc:function(e,t){for(var n=e.calcdata,r=t.xaxis,a=t.yaxis,s=0;s<i.length;s++){for(var l=i[s],c="h"===l?a:r,u=[],d=0;d<n.length;d++){var p=n[d],h=p[0].t,f=p[0].trace;!0===f.visible&&("box"===f.type||"candlestick"===f.type)&&!h.empty&&(f.orientation||"v")===l&&f.xaxis===r._id&&f.yaxis===a._id&&u.push(d)}o("box",e,u,c)}},setPositionOffset:o}}),xG=Ee((e,t)=>{var n=mo(),r=Fr(),a=vs();function i(e,t,a,i,o){var s,l,c="h"===a.orientation,u=t.val,d=t.pos,p=!!d.rangebreaks,h=i.bPos,f=i.wdPos||0,m=i.bPosPxOffset||0,g=a.whiskerwidth||0,y=!1!==a.showwhiskers,b=a.notched||!1,v=b?1-2*a.notchwidth:1;Array.isArray(i.bdPos)?(s=i.bdPos[0],l=i.bdPos[1]):(s=i.bdPos,l=i.bdPos);var M=e.selectAll("path.box").data("violin"!==a.type||a.box.visible?r.identity:[]);M.enter().append("path").style("vector-effect",o?"none":"non-scaling-stroke").attr("class","box"),M.exit().remove(),M.each(function(e){if(e.empty)return n.select(this).attr("d","M0,0Z");var t=d.c2l(e.pos+h,!0),i=d.l2p(t-s)+m,o=d.l2p(t+l)+m,M=p?(i+o)/2:d.l2p(t)+m,x=a.whiskerwidth,z=p?i*x+(1-x)*M:d.l2p(t-f)+m,_=p?o*x+(1-x)*M:d.l2p(t+f)+m,A=d.l2p(t-s*v)+m,O=d.l2p(t+l*v)+m,w="sd"===a.sizemode,k=u.c2p(w?e.mean-e.sd:e.q1,!0),T=w?u.c2p(e.mean+e.sd,!0):u.c2p(e.q3,!0),S=r.constrain(w?u.c2p(e.mean,!0):u.c2p(e.med,!0),Math.min(k,T)+1,Math.max(k,T)-1),C=void 0===e.lf||!1===a.boxpoints||w,E=u.c2p(C?e.min:e.lf,!0),q=u.c2p(C?e.max:e.uf,!0),D=u.c2p(e.ln,!0),R=u.c2p(e.un,!0);c?n.select(this).attr("d","M"+S+","+A+"V"+O+"M"+k+","+i+"V"+o+(b?"H"+D+"L"+S+","+O+"L"+R+","+o:"")+"H"+T+"V"+i+(b?"H"+R+"L"+S+","+A+"L"+D+","+i:"")+"Z"+(y?"M"+k+","+M+"H"+E+"M"+T+","+M+"H"+q+(0===g?"":"M"+E+","+z+"V"+_+"M"+q+","+z+"V"+_):"")):n.select(this).attr("d","M"+A+","+S+"H"+O+"M"+i+","+k+"H"+o+(b?"V"+D+"L"+O+","+S+"L"+o+","+R:"")+"V"+T+"H"+i+(b?"V"+R+"L"+A+","+S+"L"+i+","+D:"")+"Z"+(y?"M"+M+","+k+"V"+E+"M"+M+","+T+"V"+q+(0===g?"":"M"+z+","+E+"H"+_+"M"+z+","+q+"H"+_):""))})}function o(e,t,n,i){var o=t.x,s=t.y,l=i.bdPos,c=i.bPos,u=n.boxpoints||n.points;r.seedPseudoRandom();var d=e.selectAll("g.points").data(u?function(e){return e.forEach(function(e){e.t=i,e.trace=n}),e}:[]);d.enter().append("g").attr("class","points"),d.exit().remove();var p=d.selectAll("path").data(function(e){var t,a,i=e.pts2,o=Math.max((e.max-e.min)/10,e.q3-e.q1),s=1e-9*o,d=.01*o,p=[],h=0;if(n.jitter){if(0===o)for(h=1,p=new Array(i.length),t=0;t<i.length;t++)p[t]=1;else for(t=0;t<i.length;t++){var f=Math.max(0,t-5),m=i[f].v,g=Math.min(i.length-1,t+5),y=i[g].v;"all"!==u&&(i[t].v<e.lf?y=Math.min(y,e.lf):m=Math.max(m,e.uf));var b=Math.sqrt(d*(g-f)/(y-m+s))||0;b=r.constrain(Math.abs(b),0,1),p.push(b),h=Math.max(b,h)}a=2*n.jitter/(h||1)}for(t=0;t<i.length;t++){var v=i[t],M=v.v,x=n.jitter?a*p[t]*(r.pseudoRandom()-.5):0,z=e.pos+c+l*(n.pointpos+x);"h"===n.orientation?(v.y=z,v.x=M):(v.x=z,v.y=M),"suspectedoutliers"===u&&M<e.uo&&M>e.lo&&(v.so=!0)}return i});p.enter().append("path").classed("point",!0),p.exit().remove(),p.call(a.translatePoints,o,s)}function s(e,t,a,i){var o,s,l=t.val,c=t.pos,u=!!c.rangebreaks,d=i.bPos,p=i.bPosPxOffset||0,h=a.boxmean||(a.meanline||{}).visible;Array.isArray(i.bdPos)?(o=i.bdPos[0],s=i.bdPos[1]):(o=i.bdPos,s=i.bdPos);var f=e.selectAll("path.mean").data("box"===a.type&&a.boxmean||"violin"===a.type&&a.box.visible&&a.meanline.visible?r.identity:[]);f.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),f.exit().remove(),f.each(function(e){var t=c.c2l(e.pos+d,!0),r=c.l2p(t-o)+p,i=c.l2p(t+s)+p,f=u?(r+i)/2:c.l2p(t)+p,m=l.c2p(e.mean,!0),g=l.c2p(e.mean-e.sd,!0),y=l.c2p(e.mean+e.sd,!0);"h"===a.orientation?n.select(this).attr("d","M"+m+","+r+"V"+i+("sd"===h?"m0,0L"+g+","+f+"L"+m+","+r+"L"+y+","+f+"Z":"")):n.select(this).attr("d","M"+r+","+m+"H"+i+("sd"===h?"m0,0L"+f+","+g+"L"+r+","+m+"L"+f+","+y+"Z":""))})}t.exports={plot:function(e,t,a,l){var c=e._context.staticPlot,u=t.xaxis,d=t.yaxis;r.makeTraceGroups(l,a,"trace boxes").each(function(e){var t,r,a=n.select(this),l=e[0],p=l.t,h=l.trace;(p.wdPos=p.bdPos*h.whiskerwidth,!0!==h.visible||p.empty)?a.remove():("h"===h.orientation?(t=d,r=u):(t=u,r=d),i(a,{pos:t,val:r},h,p,c),o(a,{x:u,y:d},h,p),s(a,{pos:t,val:r},h,p))})},plotBoxAndWhiskers:i,plotPoints:o,plotBoxMean:s}}),_G=Ee((e,t)=>{var n=mo(),r=ao(),a=vs();t.exports={style:function(e,t,i){var o=i||n.select(e).selectAll("g.trace.boxes");o.style("opacity",function(e){return e[0].trace.opacity}),o.each(function(t){var i=n.select(this),o=t[0].trace,s=o.line.width;function l(e,t,n,a){e.style("stroke-width",t+"px").call(r.stroke,n).call(r.fill,a)}var c=i.selectAll("path.box");if("candlestick"===o.type)c.each(function(e){if(!e.empty){var t=n.select(this),r=o[e.dir];l(t,r.line.width,r.line.color,r.fillcolor),t.style("opacity",o.selectedpoints&&!e.selected?.3:1)}});else{l(c,s,o.line.color,o.fillcolor),i.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(r.stroke,o.line.color);var u=i.selectAll("path.point");a.pointStyle(u,o,e)}})},styleOnSelect:function(e,t,n){var r=t[0].trace,i=n.selectAll("path.point");r.selectedpoints?a.selectedPointStyle(i,r):a.pointStyle(i,r,e)}}}),tue=Ee((e,t)=>{var n=es(),r=Fr(),a=_d(),i=ao(),o=r.fillText;function s(e,t,o,s){var l,c,u,d,p,h,f,m,g,y,b,v,M,x,z=e.cd,_=e.xa,A=e.ya,O=z[0].trace,w=z[0].t,k="violin"===O.type,T=w.bdPos,S=w.wHover,C=function(e){return u.c2l(e.pos)+w.bPos-u.c2l(h)};k&&"both"!==O.side?("positive"===O.side&&(g=function(e){var t=C(e);return a.inbox(t,t+S,y)},v=T,M=0),"negative"===O.side&&(g=function(e){var t=C(e);return a.inbox(t-S,t,y)},v=0,M=T)):(g=function(e){var t=C(e);return a.inbox(t-S,t+S,y)},v=M=T),x=k?function(e){return a.inbox(e.span[0]-p,e.span[1]-p,y)}:function(e){return a.inbox(e.min-p,e.max-p,y)},"h"===O.orientation?(p=t,h=o,f=x,m=g,l="y",u=A,c="x",d=_):(p=o,h=t,f=g,m=x,l="x",u=_,c="y",d=A);var E=Math.min(1,T/Math.abs(u.r2c(u.range[1])-u.r2c(u.range[0])));function q(e){return(f(e)+m(e))/2}y=e.maxHoverDistance-E,b=e.maxSpikeDistance-E;var D=a.getDistanceFunction(s,f,m,q);if(a.getClosest(z,D,e),!1===e.index)return[];var R=z[e.index],L=O.line.color,I=(O.marker||{}).color;i.opacity(L)&&O.line.width?e.color=L:i.opacity(I)&&O.boxpoints?e.color=I:e.color=O.fillcolor,e[l+"0"]=u.c2p(R.pos+w.bPos-M,!0),e[l+"1"]=u.c2p(R.pos+w.bPos+v,!0),e[l+"LabelVal"]=void 0!==R.orig_p?R.orig_p:R.pos;var W=l+"Spike";e.spikeDistance=q(R)*b/y,e[W]=u.c2p(R.pos,!0);var N=O.boxmean||"sd"===O.sizemode||(O.meanline||{}).visible,P=O.boxpoints||O.points,B=P&&N?["max","uf","q3","med","mean","q1","lf","min"]:P&&!N?["max","uf","q3","med","q1","lf","min"]:!P&&N?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],F=d.range[1]<d.range[0];O.orientation===(F?"v":"h")&&B.reverse();for(var j=e.spikeDistance,U=e[W],V=[],H=0;H<B.length;H++){var X=B[H];if(X in R){var G=R[X],Y=d.c2p(G,!0),Z=r.extendFlat({},e);Z.attr=X,Z[c+"0"]=Z[c+"1"]=Y,Z[c+"LabelVal"]=G,Z[c+"Label"]=(w.labels?w.labels[X]+" ":"")+n.hoverLabelText(d,G,O[c+"hoverformat"]),Z.hoverOnBox=!0,"mean"===X&&"sd"in R&&("sd"===O.boxmean||"sd"===O.sizemode)&&(Z[c+"err"]=R.sd),Z.hovertemplate=!1,V.push(Z)}}e.name="",e.spikeDistance=void 0,e[W]=void 0;for(var $=0;$<V.length;$++)"med"!==V[$].attr?(V[$].name="",V[$].spikeDistance=void 0,V[$][W]=void 0):(V[$].spikeDistance=j,V[$][W]=U);return V}function l(e,t,n){for(var i,s,l,c=e.cd,u=e.xa,d=e.ya,p=c[0].trace,h=u.c2p(t),f=d.c2p(n),m=a.quadrature(function(e){var t=Math.max(3,e.mrc||0);return Math.max(Math.abs(u.c2p(e.x)-h)-t,1-3/t)},function(e){var t=Math.max(3,e.mrc||0);return Math.max(Math.abs(d.c2p(e.y)-f)-t,1-3/t)}),g=!1,y=0;y<c.length;y++){s=c[y];for(var b=0;b<(s.pts||[]).length;b++){var v=m(l=s.pts[b]);v<=e.distance&&(e.distance=v,g=[y,b])}}if(!g)return!1;l=(s=c[g[0]]).pts[g[1]];var M=u.c2p(l.x,!0),x=d.c2p(l.y,!0),z=l.mrc||1;i=r.extendFlat({},e,{index:l.i,color:(p.marker||{}).color,name:p.name,x0:M-z,x1:M+z,y0:x-z,y1:x+z,spikeDistance:e.distance,hovertemplate:p.hovertemplate});var _,A=s.orig_p,O=void 0!==A?A:s.pos;return"h"===p.orientation?(_=d,i.xLabelVal=l.x,i.yLabelVal=O):(_=u,i.xLabelVal=O,i.yLabelVal=l.y),i[_._id.charAt(0)+"Spike"]=_.c2p(s.pos,!0),o(l,p,i),i}t.exports={hoverPoints:function(e,t,n,r){var a,i=e.cd[0].trace.hoveron,o=[];return-1!==i.indexOf("boxes")&&(o=o.concat(s(e,t,n,r))),-1!==i.indexOf("points")&&(a=l(e,t,n)),"closest"===r?a?[a]:o:(a&&o.push(a),o)},hoverOnBoxes:s,hoverOnPoints:l}}),yYe=Ee((e,t)=>{t.exports=function(e,t){return t.hoverOnBox&&(e.hoverOnBox=t.hoverOnBox),"xVal"in t&&(e.x=t.xVal),"yVal"in t&&(e.y=t.yVal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),e}}),rue=Ee((e,t)=>{t.exports=function(e,t){var n,r,a=e.cd,i=e.xaxis,o=e.yaxis,s=[];if(!1===t)for(n=0;n<a.length;n++)for(r=0;r<(a[n].pts||[]).length;r++)a[n].pts[r].selected=0;else for(n=0;n<a.length;n++)for(r=0;r<(a[n].pts||[]).length;r++){var l=a[n].pts[r],c=i.c2p(l.x),u=o.c2p(l.y);t.contains([c,u],null,l.i,e)?(s.push({pointNumber:l.i,x:i.c2d(l.x),y:o.c2d(l.y)}),l.selected=1):l.selected=0}return s}}),xYe=Ee((e,t)=>{t.exports={attributes:VR(),layoutAttributes:jR(),supplyDefaults:XR().supplyDefaults,crossTraceDefaults:XR().crossTraceDefaults,supplyLayoutDefaults:yG().supplyLayoutDefaults,calc:$ce(),crossTraceCalc:MG().crossTraceCalc,plot:xG().plot,style:_G().style,styleOnSelect:_G().styleOnSelect,hoverPoints:tue().hoverPoints,eventData:yYe(),selectPoints:rue(),moduleType:"trace",name:"box",basePlotModule:Bf(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{description:["Each box spans from quartile 1 (Q1) to quartile 3 (Q3).","The second quartile (Q2, i.e. the median) is marked by a line inside the box.","The fences grow outward from the boxes' edges,","by default they span +/- 1.5 times the interquartile range (IQR: Q3-Q1),","The sample mean and standard deviation as well as notches and","the sample, outlier and suspected outliers points can be optionally","added to the box plot.","The values and positions corresponding to each boxes can be input","using two signatures.","The first signature expects users to supply the sample values in the `y`","data array for vertical boxes (`x` for horizontal boxes).","By supplying an `x` (`y`) array, one box per distinct `x` (`y`) value is drawn","If no `x` (`y`) {array} is provided, a single box is drawn.","In this case, the box is positioned with the trace `name` or with `x0` (`y0`) if provided.","The second signature expects users to supply the boxes corresponding Q1, median and Q3","statistics in the `q1`, `median` and `q3` data arrays respectively.","Other box features relying on statistics namely `lowerfence`, `upperfence`, `notchspan`","can be set directly by the users.","To have plotly compute them or to show sample points besides the boxes,","users can set the `y` data array for vertical boxes (`x` for horizontal boxes)","to a 2D array with the outer length corresponding","to the number of boxes in the traces and the inner length corresponding the sample size."].join(" ")}}}),zYe=Ee((e,t)=>{t.exports=xYe()}),nk=Ee((e,t)=>{var n=Oc(),{extendFlat:r}=ms(),a=S1(),{axisHoverFormat:i}=Pd(),o=Mu(),{hovertemplateAttrs:s,templatefallbackAttrs:l,texttemplateAttrs:c}=p1(),u=Id();t.exports=r({z:{valType:"data_array",editType:"calc",description:"Sets the z data."},x:r({},u.x,{impliedEdits:{xtype:"array"}}),x0:r({},u.x0,{impliedEdits:{xtype:"scaled"}}),dx:r({},u.dx,{impliedEdits:{xtype:"scaled"}}),y:r({},u.y,{impliedEdits:{ytype:"array"}}),y0:r({},u.y0,{impliedEdits:{ytype:"scaled"}}),dy:r({},u.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:r({},u.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:r({},u.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:r({},u.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:r({},u.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:r({},u.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:r({},u.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc",description:"Sets the text elements associated with each z value."},hovertext:{valType:"data_array",editType:"calc",description:"Same as `text`."},transpose:{valType:"boolean",dflt:!1,editType:"calc",description:"Transposes the z data."},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes",description:["If *array*, the heatmap's x coordinates are given by *x*","(the default behavior when `x` is provided).","If *scaled*, the heatmap's x coordinates are given by *x0* and *dx*","(the default behavior when `x` is not provided)."].join(" ")},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes",description:["If *array*, the heatmap's y coordinates are given by *y*","(the default behavior when `y` is provided)","If *scaled*, the heatmap's y coordinates are given by *y0* and *dy*","(the default behavior when `y` is not provided)"].join(" ")},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc",description:["Picks a smoothing algorithm use to smooth `z` data."].join(" ")},hoverongaps:{valType:"boolean",dflt:!0,editType:"none",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the `z` data have hover labels associated with them."].join(" ")},connectgaps:{valType:"boolean",editType:"calc",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the `z` data are filled in.","It is defaulted to true if `z` is a","one dimensional array and `zsmooth` is not false;","otherwise it is defaulted to false."].join(" ")},xgap:{valType:"number",dflt:0,min:0,editType:"plot",description:"Sets the horizontal gap (in pixels) between bricks."},ygap:{valType:"number",dflt:0,min:0,editType:"plot",description:"Sets the vertical gap (in pixels) between bricks."},xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z",1),hovertemplate:s(),hovertemplatefallback:l(),texttemplate:c({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:l({editType:"plot"}),textfont:o({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style",description:"Sets the text font."}),showlegend:r({},a.showlegend,{dflt:!1}),zorder:u.zorder},n("",{cLetter:"z",autoColorDflt:!1}))}),AG=Ee((e,t)=>{var n=xs(),r=Fr(),a=vo();function i(e,t){var n=t(e);return"scaled"===(n?t(e+"type","array"):"scaled")&&(t(e+"0"),t("d"+e)),n}t.exports=function(e,t,o,s,l,c){var u,d,p=o("z");if(l=l||"x",c=c||"y",void 0===p||!p.length)return 0;if(r.isArray1D(p)){u=o(l),d=o(c);var h=r.minRowLength(u),f=r.minRowLength(d);if(0===h||0===f)return 0;t._length=Math.min(h,f,p.length)}else{if(u=i(l,o),d=i(c,o),!function(e){for(var t,a=!0,i=!1,o=!1,s=0;s<e.length;s++){if(t=e[s],!r.isArrayOrTypedArray(t)){a=!1;break}t.length>0&&(i=!0);for(var l=0;l<t.length;l++)if(n(t[l])){o=!0;break}}return a&&i&&o}(p))return 0;o("transpose"),t._length=null}return a.getComponentMethod("calendars","handleTraceDefaults")(e,t,[l,c],s),!0}}),YR=Ee((e,t)=>{var n=Fr();t.exports=function(e,t){e("texttemplate"),e("texttemplatefallback");var r=n.extendFlat({},t.font,{color:"auto",size:"auto"});n.coerceFont(e,"textfont",r)}}),aue=Ee((e,t)=>{t.exports=function(e,t,n){!1===n("zsmooth")&&(n("xgap"),n("ygap")),n("zhoverformat")}}),DYe=Ee((e,t)=>{var n=Fr(),r=AG(),a=YR(),i=ab(),o=aue(),s=kh(),l=nk();t.exports=function(e,t,c,u){function d(r,a){return n.coerce(e,t,l,r,a)}r(e,t,d,u)?(i(e,t,u,d),d("xhoverformat"),d("yhoverformat"),d("text"),d("hovertext"),d("hovertemplate"),d("hovertemplatefallback"),a(d,u),o(e,t,d,u),d("hoverongaps"),d("connectgaps",n.isArray1D(t.z)&&!1!==t.zsmooth),s(e,t,u,d,{prefix:"",cLetter:"z"}),d("zorder")):t.visible=!1}}),iue=Ee((e,t)=>{var n=xs();t.exports={count:function(e,t,n){return n[e]++,1},sum:function(e,t,r,a){var i=a[t];return n(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,a,i){var o=a[t];return n(o)&&(o=Number(o),r[e]+=o,i[e]++),0},min:function(e,t,r,a){var i=a[t];if(n(i)){if(i=Number(i),!n(r[e]))return r[e]=i,i;if(r[e]>i){var o=i-r[e];return r[e]=i,o}}return 0},max:function(e,t,r,a){var i=a[t];if(n(i)){if(i=Number(i),!n(r[e]))return r[e]=i,i;if(r[e]<i){var o=i-r[e];return r[e]=i,o}}return 0}}}),oue=Ee((e,t)=>{t.exports={percent:function(e,t){for(var n=e.length,r=100/t,a=0;a<n;a++)e[a]*=r},probability:function(e,t){for(var n=e.length,r=0;r<n;r++)e[r]/=t},density:function(e,t,n,r){var a=e.length;r=r||1;for(var i=0;i<a;i++)e[i]*=n[i]*r},"probability density":function(e,t,n,r){var a=e.length;r&&(t/=r);for(var i=0;i<a;i++)e[i]*=n[i]/t}}}),sue=Ee((e,t)=>{t.exports=function(e,t){for(var n=e.length,r=0,a=0;a<n;a++)t[a]?(e[a]/=t[a],r+=e[a]):e[a]=null;return r}}),lue=Ee((e,t)=>{var n=T0(),r=n.ONEAVGYEAR,a=n.ONEAVGMONTH,i=n.ONEDAY,o=n.ONEHOUR,s=n.ONEMIN,l=n.ONESEC,c=es().tickIncrement;function u(e,t,n,r){if(e*t<=0)return 1/0;for(var a=Math.abs(t-e),i="date"===n.type,o=d(a,i),s=0;s<10;s++){var l=d(80*o,i);if(o===l)break;if(!p(l,e,t,i,n,r))break;o=l}return o}function d(e,t){return t&&e>l?e>i?e>1.1*r?r:e>1.1*a?a:i:e>o?o:e>s?s:l:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function p(e,t,n,a,o,s){if(a&&e>i){var l=h(t,o,s),c=h(n,o,s),u=e===r?0:1;return l[u]!==c[u]}return Math.floor(n/e)-Math.floor(t/e)>.1}function h(e,t,n){var a=t.c2d(e,r,n).split("-");return""===a[0]&&(a.unshift(),a[0]="-"+a[0]),a}t.exports=function(e,t,n,a,o){var s,l,d=-1.1*t,p=-.1*t,h=e-p,f=n[0],m=n[1],g=Math.min(u(f+p,f+h,a,o),u(m+p,m+h,a,o)),y=Math.min(u(f+d,f+p,a,o),u(m+d,m+p,a,o));if(g>y&&y<Math.abs(m-f)/4e3?(s=g,l=!1):(s=Math.min(g,y),l=!0),"date"===a.type&&s>i){var b=s===r?1:6,v=s===r?"M12":"M1";return function(t,n){var i=a.c2d(t,r,o),s=i.indexOf("-",b);s>0&&(i=i.slice(0,s));var u=a.d2c(i,0,o);if(u<t){var d=c(u,v,!1,o);(u+d)/2<t+e&&(u=d)}return n&&l?c(u,v,!0,o):u}}return function(t,n){var r=s*Math.round(t/s);return r+s/10<t&&r+.9*s<t+e&&(r+=s),n&&l&&(r-=s),r}}}),due=Ee((e,t)=>{var n=xs(),r=Fr(),a=vo(),i=es(),{hasColorscale:o}=d2(),s=f2(),l=FR(),c=iue(),u=oue(),d=sue(),p=lue();function h(e,t,o,s,l){var c,u,d,p,f,m,g,y=s+"bins",b=e._fullLayout,v=t["_"+s+"bingroup"],M=b._histogramBinOpts[v],x="overlay"===b.barmode,z=function(e){return o.r2c(e,0,p)},_=function(e){return o.c2r(e,0,p)},A="date"===o.type?function(e){return e||0===e?r.cleanDate(e,null,p):null}:function(e){return n(e)?Number(e):null};function O(e,t,n){t[e+"Found"]?(t[e]=A(t[e]),null===t[e]&&(t[e]=n[e])):(m[e]=t[e]=n[e],r.nestedProperty(u[0],y+"."+e).set(n[e]))}if(t["_"+s+"autoBinFinished"])delete t["_"+s+"autoBinFinished"];else{u=M.traces;var w=[],k=!0,T=!1,S=!1;for(c=0;c<u.length;c++)if((d=u[c]).visible){var C=M.dirs[c];f=d["_"+C+"pos0"]=o.makeCalcdata(d,C),w=r.concat(w,f),delete d["_"+s+"autoBinFinished"],!0===t.visible&&(k?k=!1:(delete d._autoBin,d["_"+s+"autoBinFinished"]=1),a.traceIs(d,"2dMap")&&(T=!0),"histogram2dcontour"===d.type&&(S=!0))}p=u[0][s+"calendar"];var E=i.autoBin(w,o,M.nbins,T,p,M.sizeFound&&M.size),q=u[0]._autoBin={};if(m=q[M.dirs[0]]={},S&&(M.size||(E.start=_(i.tickIncrement(z(E.start),E.size,!0,p))),void 0===M.end&&(E.end=_(i.tickIncrement(z(E.end),E.size,!1,p)))),x&&!a.traceIs(t,"2dMap")&&0===E._dataSpan&&"category"!==o.type&&"multicategory"!==o.type&&""===t.bingroup&&typeof t.xbins>"u"){if(l)return[E,f,!0];E=function(e,t,n,a,i){var o,s,l,c=e._fullLayout,u=function(e,t){for(var n=t.xaxis,r=t.yaxis,a=t.orientation,i=[],o=e._fullData,s=0;s<o.length;s++){var l=o[s];"histogram"===l.type&&!0===l.visible&&l.orientation===a&&l.xaxis===n&&l.yaxis===r&&i.push(l)}return i}(e,t),d=!1,p=1/0,f=[t];for(o=0;o<u.length;o++)if((s=u[o])===t)d=!0;else if(d){var m=h(e,s,n,a,!0),g=m[0],y=m[2];s["_"+a+"autoBinFinished"]=1,s["_"+a+"pos0"]=m[1],y?f.push(s):p=Math.min(p,g.size)}else l=c._histogramBinOpts[s["_"+a+"bingroup"]],p=Math.min(p,l.size||s[i].size);var b=new Array(f.length);for(o=0;o<f.length;o++)for(var v=f[o]["_"+a+"pos0"],M=0;M<v.length;M++)if(void 0!==v[M]){b[o]=v[M];break}for(isFinite(p)||(p=r.distinctVals(b).minDiff),o=0;o<f.length;o++){var x=(s=f[o])[a+"calendar"],z={start:n.c2r(b[o]-p/2,0,x),end:n.c2r(b[o]+p/2,0,x),size:p};s._input[i]=s[i]=z,(l=c._histogramBinOpts[s["_"+a+"bingroup"]])&&r.extendFlat(l,z)}return t[i]}(e,t,o,s,y)}(g=d.cumulative||{}).enabled&&"include"!==g.currentbin&&("decreasing"===g.direction?E.start=_(i.tickIncrement(z(E.start),E.size,!0,p)):E.end=_(i.tickIncrement(z(E.end),E.size,!1,p))),M.size=E.size,M.sizeFound||(m.size=E.size,r.nestedProperty(u[0],y+".size").set(E.size)),O("start",M,E),O("end",M,E)}f=t["_"+s+"pos0"],delete t["_"+s+"pos0"];var D=t._input[y]||{},R=r.extendFlat({},M),L=M.start,I=o.r2l(D.start),W=void 0!==I;if((M.startFound||W)&&I!==o.r2l(L)){var N=W?I:r.aggNums(Math.min,null,f),P={type:"category"===o.type||"multicategory"===o.type?"linear":o.type,r2l:o.r2l,dtick:M.size,tick0:L,calendar:p,range:[N,i.tickIncrement(N,M.size,!1,p)].map(o.l2r)},B=i.tickFirst(P);B>o.r2l(N)&&(B=i.tickIncrement(B,M.size,!0,p)),R.start=o.l2r(B),W||r.nestedProperty(t,y+".start").set(R.start)}var F=M.end,j=o.r2l(D.end),U=void 0!==j;if((M.endFound||U)&&j!==o.r2l(F)){var V=U?j:r.aggNums(Math.max,null,f);R.end=o.l2r(V),U||r.nestedProperty(t,y+".start").set(R.end)}var H="autobin"+s;return!1===t._input[H]&&(t._input[y]=r.extendFlat({},t[y]||{}),delete t._input[H],delete t[H]),[R,f]}t.exports={calc:function(e,t){var a,f,m,g,y=[],b=[],v="h"===t.orientation,M=i.getFromId(e,v?t.yaxis:t.xaxis),x=v?"y":"x",z={x:"y",y:"x"}[x],_=t[x+"calendar"],A=t.cumulative,O=h(e,t,M,x),w=O[0],k=O[1],T="string"==typeof w.size,S=[],C=T?S:w,E=[],q=[],D=[],R=0,L=t.histnorm,I=t.histfunc,W=-1!==L.indexOf("density");A.enabled&&W&&(L=L.replace(/ ?density$/,""),W=!1);var N,P="max"===I||"min"===I?null:0,B=c.count,F=u[L],j=!1,U=function(e){return M.r2c(e,0,_)};for(r.isArrayOrTypedArray(t[z])&&"count"!==I&&(N=t[z],j="avg"===I,B=c[I]),a=U(w.start),m=U(w.end)+(a-i.tickIncrement(a,w.size,!1,_))/1e6;a<m&&y.length<1e6&&(f=i.tickIncrement(a,w.size,!1,_),y.push((a+f)/2),b.push(P),D.push([]),S.push(a),W&&E.push(1/(f-a)),j&&q.push(0),!(f<=a));)a=f;S.push(a),!T&&"date"===M.type&&(C={start:U(C.start),end:U(C.end),size:C.size}),e._fullLayout._roundFnOpts||(e._fullLayout._roundFnOpts={});var V=t["_"+x+"bingroup"],H={leftGap:1/0,rightGap:1/0};V&&(e._fullLayout._roundFnOpts[V]||(e._fullLayout._roundFnOpts[V]=H),H=e._fullLayout._roundFnOpts[V]);var X,G=b.length,Y=!0,Z=H.leftGap,$=H.rightGap,J={};for(a=0;a<k.length;a++){var Q=k[a];(g=r.findBin(Q,C))>=0&&g<G&&(R+=B(g,a,b,N,q),Y&&D[g].length&&Q!==k[D[g][0]]&&(Y=!1),D[g].push(a),J[a]=g,Z=Math.min(Z,Q-S[g]),$=Math.min($,S[g+1]-Q))}H.leftGap=Z,H.rightGap=$,Y||(X=function(t,n){return function(){var r=e._fullLayout._roundFnOpts[V];return p(r.leftGap,r.rightGap,S,M,_)(t,n)}}),j&&(R=d(b,q)),F&&F(b,R,E),A.enabled&&function(e,t,n){var r,a,i;function o(t){i=e[t],e[t]/=2}function s(t){a=e[t],e[t]=i+a/2,i+=a}if("half"===n)if("increasing"===t)for(o(0),r=1;r<e.length;r++)s(r);else for(o(e.length-1),r=e.length-2;r>=0;r--)s(r);else if("increasing"===t){for(r=1;r<e.length;r++)e[r]+=e[r-1];"exclude"===n&&(e.unshift(0),e.pop())}else{for(r=e.length-2;r>=0;r--)e[r]+=e[r+1];"exclude"===n&&(e.push(0),e.shift())}}(b,A.direction,A.currentbin);var K=Math.min(y.length,b.length),ee=[],te=0,ne=K-1;for(a=0;a<K;a++)if(b[a]){te=a;break}for(a=K-1;a>=te;a--)if(b[a]){ne=a;break}for(a=te;a<=ne;a++)if(n(y[a])&&n(b[a])){var re={p:y[a],s:b[a],b:0};A.enabled||(re.pts=D[a],Y?re.ph0=re.ph1=D[a].length?k[D[a][0]]:y[a]:(t._computePh=!0,re.ph0=X(S[a]),re.ph1=X(S[a+1],!0))),ee.push(re)}return 1===ee.length&&(ee[0].width1=i.tickIncrement(ee[0].p,w.size,!1,_)-ee[0].p),o(t,"marker")&&s(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),o(t,"marker.line")&&s(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),l(ee,t),r.isArrayOrTypedArray(t.selectedpoints)&&r.tagSelected(ee,t,J),ee},calcAllAutoBins:h}}),nZe=Ee((e,t)=>{var n=Fr(),r=es(),a=iue(),i=oue(),o=sue(),s=lue(),l=due().calcAllAutoBins;function c(e,t,n,r){var a,i=new Array(e);if(r)for(a=0;a<e;a++)i[a]=1/(t[a+1]-t[a]);else{var o=1/n;for(a=0;a<e;a++)i[a]=o}return i}function u(e,t){return{start:e(t.start),end:e(t.end),size:t.size}}function d(e,t,n,r,a,i){var o,l=e.length-1,c=new Array(l),u=s(n,r,e,a,i);for(o=0;o<l;o++){var d=(t||[])[o];c[o]=void 0===d?[u(e[o]),u(e[o+1],!0)]:[d,d]}return c}t.exports=function(e,t){var s,p,h,f,m=r.getFromId(e,t.xaxis),g=r.getFromId(e,t.yaxis),y=t.xcalendar,b=t.ycalendar,v=function(e){return m.r2c(e,0,y)},M=function(e){return g.r2c(e,0,b)},x=l(e,t,m,"x"),z=x[0],_=x[1],A=l(e,t,g,"y"),O=A[0],w=A[1],k=t._length;_.length>k&&_.splice(k,_.length-k),w.length>k&&w.splice(k,w.length-k);var T=[],S=[],C=[],E="string"==typeof z.size,q="string"==typeof O.size,D=[],R=[],L=E?D:z,I=q?R:O,W=0,N=[],P=[],B=t.histnorm,F=t.histfunc,j=-1!==B.indexOf("density"),U="max"===F||"min"===F?null:0,V=a.count,H=i[B],X=!1,G=[],Y=[],Z="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";Z&&"count"!==F&&(X="avg"===F,V=a[F]);var $=z.size,J=v(z.start),Q=v(z.end)+(J-r.tickIncrement(J,$,!1,y))/1e6;for(s=J;s<Q;s=r.tickIncrement(s,$,!1,y))S.push(U),D.push(s),X&&C.push(0);D.push(s);var K,ee=S.length,te=(s-J)/ee,ne=(K=J+te/2,m.c2r(K,0,y)),re=O.size,ae=M(O.start),ie=M(O.end)+(ae-r.tickIncrement(ae,re,!1,b))/1e6;for(s=ae;s<ie;s=r.tickIncrement(s,re,!1,b)){T.push(S.slice()),R.push(s);var oe=new Array(ee);for(p=0;p<ee;p++)oe[p]=[];P.push(oe),X&&N.push(C.slice())}R.push(s);var se=T.length,le=(s-ae)/se,ce=function(e){return g.c2r(e,0,b)}(ae+le/2);j&&(G=c(S.length,L,te,E),Y=c(T.length,I,le,q)),!E&&"date"===m.type&&(L=u(v,L)),!q&&"date"===g.type&&(I=u(M,I));var ue=!0,de=!0,pe=new Array(ee),he=new Array(se),fe=1/0,me=1/0,ge=1/0,ye=1/0;for(s=0;s<k;s++){var be=_[s],ve=w[s];h=n.findBin(be,L),f=n.findBin(ve,I),h>=0&&h<ee&&f>=0&&f<se&&(W+=V(h,s,T[f],Z,N[f]),P[f][h].push(s),ue&&(void 0===pe[h]?pe[h]=be:pe[h]!==be&&(ue=!1)),de&&(void 0===he[f]?he[f]=ve:he[f]!==ve&&(de=!1)),fe=Math.min(fe,be-D[h]),me=Math.min(me,D[h+1]-be),ge=Math.min(ge,ve-R[f]),ye=Math.min(ye,R[f+1]-ve))}if(X)for(f=0;f<se;f++)W+=o(T[f],N[f]);if(H)for(f=0;f<se;f++)H(T[f],W,G,Y[f]);return{x:_,xRanges:d(D,ue&&pe,fe,me,m,y),x0:ne,dx:te,y:w,yRanges:d(R,de&&he,ge,ye,g,b),y0:ce,dy:le,z:T,pts:P}}}),TG=Ee((e,t)=>{var n=Fr(),r=T0().BADNUM,a=ob();t.exports=function(e,t,i,o,s,l){var c=e._length,u=t.makeCalcdata(e,o),d=i.makeCalcdata(e,s);u=a(e,t,o,u).vals,d=a(e,i,s,d).vals;var p,h,f,m,g=e.text,y=void 0!==g&&n.isArray1D(g),b=e.hovertext,v=void 0!==b&&n.isArray1D(b),M=n.distinctVals(u),x=M.vals,z=n.distinctVals(d),_=z.vals,A=[],O=_.length,w=x.length;for(p=0;p<l.length;p++)A[p]=n.init2dArray(O,w);y&&(f=n.init2dArray(O,w)),v&&(m=n.init2dArray(O,w));var k=n.init2dArray(O,w);for(p=0;p<c;p++)if(u[p]!==r&&d[p]!==r){var T=n.findBin(u[p]+M.minDiff/2,x),S=n.findBin(d[p]+z.minDiff/2,_);for(h=0;h<l.length;h++){var C=e[l[h]];A[h][S][T]=C[p],k[S][T]=p}y&&(f[S][T]=g[p]),v&&(m[S][T]=b[p])}for(e["_"+o]=x,e["_"+s]=_,h=0;h<l.length;h++)e["_"+l[h]]=A[h];y&&(e._text=f),v&&(e._hovertext=m),t&&"category"===t.type&&(e["_"+o+"CategoryMap"]=x.map(function(e){return t._categories[e]})),i&&"category"===i.type&&(e["_"+s+"CategoryMap"]=_.map(function(e){return i._categories[e]})),e._after2before=k}}),kG=Ee((e,t)=>{var n=xs(),r=Fr(),a=T0().BADNUM;t.exports=function(e,t,i,o){var s,l,c,u,d,p;function h(e){if(n(e))return+e}if(t&&t.transpose){for(s=0,d=0;d<e.length;d++)s=Math.max(s,e[d].length);if(0===s)return!1;c=function(e){return e.length},u=function(e,t,n){return(e[n]||[])[t]}}else s=e.length,c=function(e,t){return e[t].length},u=function(e,t,n){return(e[t]||[])[n]};var f=function(e,t,n){return t===a||n===a?a:u(e,t,n)};function m(e){if(t&&"carpet"!==t.type&&"contourcarpet"!==t.type&&e&&"category"===e.type&&t["_"+e._id.charAt(0)].length){var n=e._id.charAt(0),i={},o=t["_"+n+"CategoryMap"]||t[n];for(d=0;d<o.length;d++)i[o[d]]=d;return function(t){var n=i[e._categories[t]];return n+1?n:a}}return r.identity}var g=m(i),y=m(o);o&&"category"===o.type&&(s=o._categories.length);var b=new Array(s);for(d=0;d<s;d++)for(l=i&&"category"===i.type?i._categories.length:c(e,d),b[d]=new Array(l),p=0;p<l;p++)b[d][p]=h(f(e,y(d),g(p)));return b}}),CG=Ee((e,t)=>{var n=Fr(),r=[[-1,0],[1,0],[0,-1],[0,1]];function a(e){return.5-.25*Math.min(1,.5*e)}function i(e,t,n){var a,i,o,s,l,c,u,d,p,h,f,m,g,y=0;for(s=0;s<t.length;s++){for(i=(a=t[s])[0],o=a[1],f=e[i][o],h=0,p=0,l=0;l<4;l++)(u=e[i+(c=r[l])[0]])&&(void 0!==(d=u[o+c[1]])&&(0===h?m=g=d:(m=Math.min(m,d),g=Math.max(g,d)),p++,h+=d));if(0===p)throw"iterateInterp2d order is wrong: no defined neighbors";e[i][o]=h/p,void 0===f?p<4&&(y=1):(e[i][o]=(1+n)*e[i][o]-n*f,g>m&&(y=Math.max(y,Math.abs(e[i][o]-f)/(g-m))))}return y}t.exports=function(e,t){var r,o=1;for(i(e,t),r=0;r<t.length&&!(t[r][2]<4);r++);for(t=t.slice(r),r=0;r<100&&o>.01;r++)o=i(e,t,a(o));return o>.01&&n.log("interp2d didn't converge quickly",o),e}}),EG=Ee((e,t)=>{var n=Fr().maxRowLength;t.exports=function(e){var t,r,a,i,o,s,l,c,u=[],d={},p=[],h=e[0],f=[],m=[0,0,0],g=n(e);for(r=0;r<e.length;r++)for(t=f,f=h,h=e[r+1]||[],a=0;a<g;a++)void 0===f[a]&&((s=(void 0!==f[a-1]?1:0)+(void 0!==f[a+1]?1:0)+(void 0!==t[a]?1:0)+(void 0!==h[a]?1:0))?(0===r&&s++,0===a&&s++,r===e.length-1&&s++,a===f.length-1&&s++,s<4&&(d[[r,a]]=[r,a,s]),u.push([r,a,s])):p.push([r,a]));for(;p.length;){for(l={},c=!1,o=p.length-1;o>=0;o--)(s=((d[[(r=(i=p[o])[0])-1,a=i[1]]]||m)[2]+(d[[r+1,a]]||m)[2]+(d[[r,a-1]]||m)[2]+(d[[r,a+1]]||m)[2])/20)&&(l[i]=[r,a,s],p.splice(o,1),c=!0);if(!c)throw"findEmpties iterated with no new neighbors";for(i in l)d[i]=l[i],u.push(l[i])}return u.sort(function(e,t){return t[2]-e[2]})}}),fue=Ee((e,t)=>{var n=vo(),r=Fr().isArrayOrTypedArray;t.exports=function(e,t,a,i,o,s){var l,c,u,d=[],p=n.traceIs(e,"contour"),h=n.traceIs(e,"histogram");if(r(t)&&t.length>1&&!h&&"category"!==s.type){var f=t.length;if(!(f<=o))return p?t.slice(0,o):t.slice(0,o+1);if(p)d=Array.from(t).slice(0,o);else if(1===o)d="log"===s.type?[.5*t[0],2*t[0]]:[t[0]-.5,t[0]+.5];else if("log"===s.type){for(d=[Math.pow(t[0],1.5)/Math.pow(t[1],.5)],u=1;u<f;u++)d.push(Math.sqrt(t[u-1]*t[u]));d.push(Math.pow(t[f-1],1.5)/Math.pow(t[f-2],.5))}else{for(d=[1.5*t[0]-.5*t[1]],u=1;u<f;u++)d.push(.5*(t[u-1]+t[u]));d.push(1.5*t[f-1]-.5*t[f-2])}if(f<o){var m,g=d[d.length-1];if("log"===s.type)for(m=g/d[d.length-2],u=f;u<o;u++)g*=m,d.push(g);else for(m=g-d[d.length-2],u=f;u<o;u++)g+=m,d.push(g)}}else{var y=e[s._id.charAt(0)+"calendar"];if(h)l=s.r2c(a,0,y);else if(r(t)&&1===t.length)l=t[0];else if(void 0===a)l=0;else{l=("log"===s.type?s.d2c:s.r2c)(a,0,y)}for(c=i||1,u=p?0:-.5;u<o;u++)d.push(l+c*u)}return d}}),RG=Ee((e,t)=>{var n=vo(),r=Fr(),a=es(),i=ob(),o=nZe(),s=f2(),l=TG(),c=kG(),u=CG(),d=EG(),p=fue(),h=T0().BADNUM;function f(e){for(var t=[],n=e.length,r=0;r<n;r++){var a=e[r];a!==h&&t.push(a)}return t}t.exports=function(e,t){var m,g,y,b,v,M,x,z,_,A,O,w=a.getFromId(e,t.xaxis||"x"),k=a.getFromId(e,t.yaxis||"y"),T=n.traceIs(t,"contour"),S=n.traceIs(t,"histogram"),C=T?"best":t.zsmooth;if(w._minDtick=0,k._minDtick=0,S)b=(O=o(e,t)).orig_x,m=O.x,g=O.x0,y=O.dx,z=O.orig_y,v=O.y,M=O.y0,x=O.dy,_=O.z;else{var E=t.z;r.isArray1D(E)?(l(t,w,k,"x","y",["z"]),m=t._x,v=t._y,E=t._z):(b=t.x?w.makeCalcdata(t,"x"):[],z=t.y?k.makeCalcdata(t,"y"):[],m=i(t,w,"x",b).vals,v=i(t,k,"y",z).vals,t._x=m,t._y=v),g=t.x0,y=t.dx,M=t.y0,x=t.dy,_=c(E,t,w,k)}function q(e){C=t._input.zsmooth=t.zsmooth=!1,r.warn('cannot use zsmooth: "fast": '+e)}function D(e){if(e.length>1){var t=(e[e.length-1]-e[0])/(e.length-1),n=Math.abs(t/100);for(A=0;A<e.length-1;A++)if(Math.abs(e[A+1]-e[A]-t)>n)return!1}return!0}(w.rangebreaks||k.rangebreaks)&&(_=function(e,t,n){for(var r=[],a=-1,i=0;i<n.length;i++)if(t[i]!==h){r[++a]=[];for(var o=0;o<n[i].length;o++)e[o]!==h&&r[a].push(n[i][o])}return r}(m,v,_),S||(m=f(m),v=f(v),t._x=m,t._y=v)),!S&&(T||t.connectgaps)&&(t._emptypoints=d(_),u(_,t._emptypoints)),t._islinear=!1,"log"===w.type||"log"===k.type?"fast"===C&&q("log axis found"):D(m)?D(v)?t._islinear=!0:"fast"===C&&q("y scale is not linear"):"fast"===C&&q("x scale is not linear");var R=r.maxRowLength(_),L="scaled"===t.xtype?"":m,I=p(t,L,g,y,R,w),W="scaled"===t.ytype?"":v,N=p(t,W,M,x,_.length,k);t._extremes[w._id]=a.findExtremes(w,I),t._extremes[k._id]=a.findExtremes(k,N);var P={x:I,y:N,z:_,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&b&&(P.orig_x=b),t.yperiodalignment&&z&&(P.orig_y=z),L&&L.length===I.length-1&&(P.xCenter=L),W&&W.length===N.length-1&&(P.yCenter=W),S&&(P.xRanges=O.xRanges,P.yRanges=O.yRanges,P.pts=O.pts),T||s(e,t,{vals:_,cLetter:"z"}),T&&t.contours&&"heatmap"===t.contours.coloring){var B={type:"contour"===t.type?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};P.xfill=p(B,L,g,y,R,w),P.yfill=p(B,W,M,x,_.length,k)}return[P]}}),PG=Ee(e=>{e.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],e.STYLE=e.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")}),vue=Ee((e,t)=>{var n=PG(),r=vs(),a=Fr(),i=null;t.exports=function(){if(null!==i)return i;i=!1;var e=a.isSafari()||a.isMacWKWebView()||a.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(n.CSS_DECLARATIONS).reverse(),o=window.CSS&&window.CSS.supports||window.supportsCSS;if("function"==typeof o)i=t.some(function(e){return o.apply(null,e)});else{var s=r.tester.append("image").attr("style",n.STYLE),l=window.getComputedStyle(s.node()).imageRendering;i=t.some(function(e){var t=e[1];return l===t||l===t.toLowerCase()}),s.remove()}}return i}}),IG=Ee((e,t)=>{var n=mo(),r=Vh(),a=vo(),i=vs(),o=es(),s=Fr(),l=q1(),c=Sj(),u=ao(),d=xu().extractOpts,p=xu().makeColorScaleFuncFromTrace,h=Dv(),f=lh().LINE_SPACING,m=vue(),g=PG().STYLE,y="heatmap-label";function b(e){return e.selectAll("g."+y)}function v(e){b(e).remove()}function M(e,t){var n=t.length-2,r=s.constrain(s.findBin(e,t),0,n),a=t[r],i=t[r+1],o=s.constrain(r+(e-a)/(i-a)-.5,0,n),l=Math.round(o),c=Math.abs(o-l);return o&&o!==n&&c?{bin0:l,frac:c,bin1:Math.round(l+c/(o-l))}:{bin0:l,bin1:l,frac:0}}function x(e,t){var n=t.length-1,r=s.constrain(s.findBin(e,t),0,n),a=t[r],i=(e-a)/(t[r+1]-a)||0;return i<=0?{bin0:r,bin1:r,frac:0}:i<.5?{bin0:r,bin1:r+1,frac:i}:{bin0:r+1,bin1:r,frac:1-i}}function z(e,t,n){e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=Math.round(255*n[3])}t.exports=function(e,t,_,A){var O=t.xaxis,w=t.yaxis;s.makeTraceGroups(A,_,"hm").each(function(t){var _,A,k,T,S,C,E,q,D=n.select(this),R=t[0],L=R.trace,I=L.xgap||0,W=L.ygap||0,N=R.z,P=R.x,B=R.y,F=R.xCenter,j=R.yCenter,U=a.traceIs(L,"contour"),V=U?"best":L.zsmooth,H=N.length,X=s.maxRowLength(N),G=!1,Y=!1;for(C=0;void 0===_&&C<P.length-1;)_=O.c2p(P[C]),C++;for(C=P.length-1;void 0===A&&C>0;)A=O.c2p(P[C]),C--;for(A<_&&(k=A,A=_,_=k,G=!0),C=0;void 0===T&&C<B.length-1;)T=w.c2p(B[C]),C++;for(C=B.length-1;void 0===S&&C>0;)S=w.c2p(B[C]),C--;S<T&&(k=T,T=S,S=k,Y=!0),U&&(F=P,j=B,P=R.xfill,B=R.yfill);var Z="default";if(V?Z="best"===V?"smooth":"fast":L._islinear&&0===I&&0===W&&m()&&(Z="fast"),"fast"!==Z){var $="best"===V?0:.5;_=Math.max(-$*O._length,_),A=Math.min((1+$)*O._length,A),T=Math.max(-$*w._length,T),S=Math.min((1+$)*w._length,S)}var J,Q,K=Math.round(A-_),ee=Math.round(S-T);if(_>=O._length||A<=0||T>=w._length||S<=0)return D.selectAll("image").data([]).exit().remove(),void v(D);"fast"===Z?(J=X,Q=H):(J=K,Q=ee);var te=document.createElement("canvas");te.width=J,te.height=Q;var ne,re,ae=te.getContext("2d",{willReadFrequently:!0}),ie=p(L,{noNumericCheck:!0,returnArray:!0});"fast"===Z?(ne=G?function(e){return X-1-e}:s.identity,re=Y?function(e){return H-1-e}:s.identity):(ne=function(e){return s.constrain(Math.round(O.c2p(P[e])-_),0,K)},re=function(e){return s.constrain(Math.round(w.c2p(B[e])-T),0,ee)});var oe,se,le,ce,ue=re(0),de=[ue,ue],pe=G?0:1,he=Y?0:1,fe=0,me=0,ge=0,ye=0;function be(e,t){if(void 0!==e){var n=ie(e);return n[0]=Math.round(n[0]),n[1]=Math.round(n[1]),n[2]=Math.round(n[2]),fe+=t,me+=n[0]*t,ge+=n[1]*t,ye+=n[2]*t,n}return[0,0,0,0]}function ve(e,t,n,r){var a=e[n.bin0];if(void 0===a)return be(void 0,1);var i,o=e[n.bin1],s=t[n.bin0],l=t[n.bin1],c=o-a||0,u=s-a||0;return i=void 0===o?void 0===l?0:void 0===s?2*(l-a):2*(2*l-s-a)/3:void 0===l?void 0===s?0:2*(2*a-o-s)/3:void 0===s?2*(2*l-o-a)/3:l+a-o-s,be(a+n.frac*c+r.frac*(u+n.frac*i))}if("default"!==Z){var Me,xe=0;try{Me=new Uint8Array(J*Q*4)}catch{Me=new Array(J*Q*4)}if("smooth"===Z){var ze,_e,Ae,Oe=F||P,we=j||B,ke=new Array(Oe.length),Te=new Array(we.length),Se=new Array(K),Ce=F?x:M,Ee=j?x:M;for(C=0;C<Oe.length;C++)ke[C]=Math.round(O.c2p(Oe[C])-_);for(C=0;C<we.length;C++)Te[C]=Math.round(w.c2p(we[C])-T);for(C=0;C<K;C++)Se[C]=Ce(C,ke);for(E=0;E<ee;E++)for(_e=N[(ze=Ee(E,Te)).bin0],Ae=N[ze.bin1],C=0;C<K;C++,xe+=4)z(Me,xe,ce=ve(_e,Ae,Se[C],ze))}else for(E=0;E<H;E++)for(le=N[E],de=re(E),C=0;C<X;C++)ce=be(le[C],1),z(Me,xe=4*(de*X+ne(C)),ce);var qe=ae.createImageData(J,Q);try{qe.data.set(Me)}catch{var De=qe.data,Re=De.length;for(E=0;E<Re;E++)De[E]=Me[E]}ae.putImageData(qe,0,0)}else{var Le=Math.floor(I/2),Ie=Math.floor(W/2);for(E=0;E<H;E++)if(le=N[E],de.reverse(),de[he]=re(E+1),de[0]!==de[1]&&void 0!==de[0]&&void 0!==de[1])for(oe=[se=ne(0),se],C=0;C<X;C++)oe.reverse(),oe[pe]=ne(C+1),oe[0]!==oe[1]&&void 0!==oe[0]&&void 0!==oe[1]&&(ce=be(le[C],(oe[1]-oe[0])*(de[1]-de[0])),ae.fillStyle="rgba("+ce.join(",")+")",ae.fillRect(oe[0]+Le,de[0]+Ie,oe[1]-oe[0]-I,de[1]-de[0]-W))}me=Math.round(me/fe),ge=Math.round(ge/fe),ye=Math.round(ye/fe);var We=r("rgb("+me+","+ge+","+ye+")");e._hmpixcount=(e._hmpixcount||0)+fe,e._hmlumcount=(e._hmlumcount||0)+fe*We.getLuminance();var Ne=D.selectAll("image").data(t);Ne.enter().append("svg:image").attr({xmlns:h.svg,preserveAspectRatio:"none"}),Ne.attr({height:ee,width:K,x:_,y:T,"xlink:href":te.toDataURL("image/png")}),"fast"===Z&&!V&&Ne.attr("style",g),v(D);var Pe=L.texttemplate;if(Pe){var Be=d(L),Fe={type:"linear",range:[Be.min,Be.max],_separators:O._separators,_numFormat:O._numFormat},je="histogram2dcontour"===L.type,Ue="contour"===L.type,Ve=Ue?H-1:H,He=Ue?1:0,Xe=Ue?X-1:X,Ge=[];for(C=Ue?1:0;C<Ve;C++){var Ye;if(Ue)Ye=R.y[C];else if(je){if(0===C||C===H-1)continue;Ye=R.y[C]}else if(R.yCenter)Ye=R.yCenter[C];else{if(C+1===H&&void 0===R.y[C+1])continue;Ye=(R.y[C]+R.y[C+1])/2}var Ze=Math.round(w.c2p(Ye));if(!(0>Ze||Ze>w._length))for(E=He;E<Xe;E++){var $e;if(Ue)$e=R.x[E];else if(je){if(0===E||E===X-1)continue;$e=R.x[E]}else if(R.xCenter)$e=R.xCenter[E];else{if(E+1===X&&void 0===R.x[E+1])continue;$e=(R.x[E]+R.x[E+1])/2}var Je=Math.round(O.c2p($e));if(!(0>Je||Je>O._length)){var Qe=c({x:$e,y:Ye},L,e._fullLayout);Qe.x=$e,Qe.y=Ye;var Ke=R.z[C][E];void 0===Ke?(Qe.z="",Qe.zLabel=""):(Qe.z=Ke,Qe.zLabel=o.tickText(Fe,Ke,"hover").text);var et=R.text&&R.text[C]&&R.text[C][E];(void 0===et||!1===et)&&(et=""),Qe.text=et;var tt=s.texttemplateString({data:[Qe,L._meta],fallback:L.texttemplatefallback,labels:Qe,locale:e._fullLayout._d3locale,template:Pe});if(tt){var nt=tt.split("<br>"),rt=nt.length,at=0;for(q=0;q<rt;q++)at=Math.max(at,nt[q].length);Ge.push({l:rt,c:at,t:tt,x:Je,y:Ze,z:Ke})}}}}var it=L.textfont,ot=it.size,st=e._fullLayout.font.size;if(!ot||"auto"===ot){var lt=1/0,ct=1/0,ut=0,dt=0;for(q=0;q<Ge.length;q++){var pt=Ge[q];if(ut=Math.max(ut,pt.l),dt=Math.max(dt,pt.c),q<Ge.length-1){var ht=Ge[q+1],ft=Math.abs(ht.x-pt.x),mt=Math.abs(ht.y-pt.y);ft&&(lt=Math.min(lt,ft)),mt&&(ct=Math.min(ct,mt))}}isFinite(lt)&&isFinite(ct)?(lt-=I,ct-=W,lt/=dt,ct/=ut,lt/=f/2,ct/=f,ot=Math.min(Math.floor(lt),Math.floor(ct),st)):ot=st}if(ot<=0||!isFinite(ot))return;b(D).data(Ge).enter().append("g").classed(y,1).append("text").attr("text-anchor","middle").each(function(t){var r=n.select(this),a=it.color;(!a||"auto"===a)&&(a=u.contrast(void 0===t.z?e._fullLayout.plot_bgcolor:"rgba("+ie(t.z).join()+")")),r.attr("data-notex",1).call(l.positionText,function(e){return e.x}(t),function(e){return e.y-ot*(e.l*f/2-1)}(t)).call(i.font,{family:it.family,size:ot,color:a,weight:it.weight,style:it.style,variant:it.variant,textcase:it.textcase,lineposition:it.lineposition,shadow:it.shadow}).text(t.t).call(l.convertToTspans,e)})}})}}),d4=Ee((e,t)=>{t.exports={min:"zmin",max:"zmax"}}),NG=Ee((e,t)=>{var n=mo();t.exports=function(e){n.select(e).selectAll(".hm image").style("opacity",function(e){return e.trace.opacity})}}),FG=Ee((e,t)=>{var n=_d(),r=Fr(),a=r.isArrayOrTypedArray,i=es(),o=xu().extractOpts;t.exports=function(e,t,s,l,c){c||(c={});var u,d,p,h,f=c.isContour,m=e.cd[0],g=m.trace,y=e.xa,b=e.ya,v=m.x,M=m.y,x=m.z,z=m.xCenter,_=m.yCenter,A=m.zmask,O=g.zhoverformat,w=v,k=M;if(!1!==e.index){try{p=Math.round(e.index[1]),h=Math.round(e.index[0])}catch{return void r.error("Error hovering on heatmap, pointNumber must be [row,col], found:",e.index)}if(p<0||p>=x[0].length||h<0||h>x.length)return}else{if(n.inbox(t-v[0],t-v[v.length-1],0)>0||n.inbox(s-M[0],s-M[M.length-1],0)>0)return;if(f){var T;for(w=[2*v[0]-v[1]],T=1;T<v.length;T++)w.push((v[T]+v[T-1])/2);for(w.push([2*v[v.length-1]-v[v.length-2]]),k=[2*M[0]-M[1]],T=1;T<M.length;T++)k.push((M[T]+M[T-1])/2);k.push([2*M[M.length-1]-M[M.length-2]])}p=Math.max(0,Math.min(w.length-2,r.findBin(t,w))),h=Math.max(0,Math.min(k.length-2,r.findBin(s,k)))}var S,C,E=y.c2p(v[p]),q=y.c2p(v[p+1]),D=b.c2p(M[h]),R=b.c2p(M[h+1]);f?(S=m.orig_x||v,C=m.orig_y||M,q=E,u=S[p],R=D,d=C[h]):(S=m.orig_x||z||v,C=m.orig_y||_||M,u=z?S[p]:(S[p]+S[p+1])/2,d=_?C[h]:(C[h]+C[h+1])/2,y&&"category"===y.type&&(u=v[p]),b&&"category"===b.type&&(d=M[h]),g.zsmooth&&(E=q=y.c2p(u),D=R=b.c2p(d)));var L=x[h][p];if(A&&!A[h][p]&&(L=void 0),void 0!==L||g.hoverongaps){var I;a(m.hovertext)&&a(m.hovertext[h])?I=m.hovertext[h][p]:a(m.text)&&a(m.text[h])&&(I=m.text[h][p]);var W=o(g),N={type:"linear",range:[W.min,W.max],hoverformat:O,_separators:y._separators,_numFormat:y._numFormat},P=i.tickText(N,L,"hover").text;return[r.extendFlat(e,{index:g._after2before?g._after2before[h][p]:[h,p],distance:e.maxHoverDistance,spikeDistance:e.maxSpikeDistance,x0:E,x1:q,y0:D,y1:R,xLabelVal:u,yLabelVal:d,zLabelVal:L,zLabel:P,text:I})]}}}),LZe=Ee((e,t)=>{t.exports={attributes:nk(),supplyDefaults:DYe(),calc:RG(),plot:IG(),colorbar:d4(),style:NG(),hoverPoints:FG(),moduleType:"trace",name:"heatmap",basePlotModule:Bf(),categories:["cartesian","svg","2dMap","showLegend"],meta:{description:["The data that describes the heatmap value-to-color mapping","is set in `z`.","Data in `z` can either be a {2D array} of values (ragged or not)","or a 1D array of values.","In the case where `z` is a {2D array},","say that `z` has N rows and M columns.","Then, by default, the resulting heatmap will have N partitions along","the y axis and M partitions along the x axis.","In other words, the i-th row/ j-th column cell in `z`","is mapped to the i-th partition of the y axis","(starting from the bottom of the plot) and the j-th partition","of the x-axis (starting from the left of the plot).","This behavior can be flipped by using `transpose`.","Moreover, `x` (`y`) can be provided with M or M+1 (N or N+1) elements.","If M (N), then the coordinates correspond to the center of the","heatmap cells and the cells have equal width.","If M+1 (N+1), then the coordinates correspond to the edges of the","heatmap cells.","In the case where `z` is a 1D {array}, the x and y coordinates must be","provided in `x` and `y` respectively to form data triplets."].join(" ")}}}),IZe=Ee((e,t)=>{t.exports=LZe()}),yue=Ee((e,t)=>{t.exports=function(e,t){return{start:{valType:"any",editType:"calc",description:["Sets the starting value for the",e,"axis bins. Defaults to the minimum data value,","shifted down if necessary to make nice round values","and to remove ambiguous bin edges. For example, if most of the","data is integers we shift the bin edges 0.5 down, so a `size`","of 5 would have a default `start` of -0.5, so it is clear","that 0-4 are in the first bin, 5-9 in the second, but","continuous data gets a start of 0 and bins [0,5), [5,10) etc.","Dates behave similarly, and `start` should be a date string.","For category data, `start` is based on the category serial","numbers, and defaults to -0.5.",t?"If multiple non-overlaying histograms share a subplot, the first explicit `start` is used exactly and all others are shifted down (if necessary) to differ from that one by an integer number of bins.":""].join(" ")},end:{valType:"any",editType:"calc",description:["Sets the end value for the",e,"axis bins. The last bin may not end exactly at this value,","we increment the bin edge by `size` from `start` until we","reach or exceed `end`. Defaults to the maximum data value.","Like `start`, for dates use a date string, and for category","data `end` is based on the category serial numbers."].join(" ")},size:{valType:"any",editType:"calc",description:["Sets the size of each",e,"axis bin.","Default behavior: If `nbins"+e+"` is 0 or omitted,","we choose a nice round bin size such that the number of bins","is about the same as the typical number of samples in each bin.","If `nbins"+e+"` is provided, we choose a nice round","bin size giving no more than that many bins.","For date data, use milliseconds or *M<n>* for months, as in","`axis.dtick`. For category data, the number of categories to","bin together (always defaults to 1).",t?"If multiple non-overlaying histograms share a subplot, the first explicit `size` is used and all others discarded. If no `size` is provided,the sample data from all traces is combined to determine `size` as described above.":""].join(" ")},editType:"calc"}}}),FZe=Ee((e,t)=>{t.exports={eventDataKeys:["binNumber"]}}),BG=Ee((e,t)=>{var n=R3(),r=Pd().axisHoverFormat,{hovertemplateAttrs:a,texttemplateAttrs:i,templatefallbackAttrs:o}=p1(),s=Mu(),l=yue(),c=FZe(),u=ms().extendFlat;t.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the sample data to be binned on the x axis."].join(" ")},y:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the sample data to be binned on the y axis."].join(" ")},xhoverformat:r("x"),yhoverformat:r("y"),text:u({},n.text,{description:["Sets hover text elements associated with each bar.","If a single string, the same string appears over all bars.","If an array of string, the items are mapped in order to the","this trace's coordinates."].join(" ")}),hovertext:u({},n.hovertext,{description:"Same as `text`."}),orientation:n.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc",description:["Specifies the binning function used for this histogram trace.","If *count*, the histogram values are computed by counting the","number of values lying inside each bin.","If *sum*, *avg*, *min*, *max*,","the histogram values are computed using","the sum, the average, the minimum or the maximum","of the values lying inside each bin respectively."].join(" ")},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc",description:["Specifies the type of normalization used for this histogram trace.","If **, the span of each bar corresponds to the number of","occurrences (i.e. the number of data points lying inside the bins).","If *percent* / *probability*, the span of each bar corresponds to","the percentage / fraction of occurrences with respect to the total","number of sample points","(here, the sum of all bin HEIGHTS equals 100% / 1).","If *density*, the span of each bar corresponds to the number of","occurrences in a bin divided by the size of the bin interval","(here, the sum of all bin AREAS equals the","total number of sample points).","If *probability density*, the area of each bar corresponds to the","probability that an event will fall into the corresponding bin","(here, the sum of all bin AREAS equals 1)."].join(" ")},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc",description:["If true, display the cumulative distribution by summing the","binned values. Use the `direction` and `centralbin` attributes","to tune the accumulation method.","Note: in this mode, the *density* `histnorm` settings behave","the same as their equivalents without *density*:","** and *density* both rise to the number of data points, and","*probability* and *probability density* both rise to the","number of sample points."].join(" ")},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc",description:["Only applies if cumulative is enabled.","If *increasing* (default) we sum all prior bins, so the result","increases from left to right. If *decreasing* we sum later bins","so the result decreases from left to right."].join(" ")},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc",description:["Only applies if cumulative is enabled.","Sets whether the current bin is included, excluded, or has half","of its value included in the current cumulative value.","*include* is the default for compatibility with various other","tools, however it introduces a half-bin bias to the results.","*exclude* makes the opposite half-bin bias, and *half* removes","it."].join(" ")},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc",description:["Specifies the maximum number of desired bins. This value will be used","in an algorithm that will decide the optimal bin size such that the","histogram best visualizes the distribution of the data.","Ignored if `xbins.size` is provided."].join(" ")},xbins:l("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc",description:["Specifies the maximum number of desired bins. This value will be used","in an algorithm that will decide the optimal bin size such that the","histogram best visualizes the distribution of the data.","Ignored if `ybins.size` is provided."].join(" ")},ybins:l("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc",description:["Obsolete: since v1.42 each bin attribute is auto-determined","separately and `autobinx` is not needed. However, we accept","`autobinx: true` or `false` and will update `xbins` accordingly","before deleting `autobinx` from the trace."].join(" ")},autobiny:{valType:"boolean",dflt:null,editType:"calc",description:["Obsolete: since v1.42 each bin attribute is auto-determined","separately and `autobiny` is not needed. However, we accept","`autobiny: true` or `false` and will update `ybins` accordingly","before deleting `autobiny` from the trace."].join(" ")},bingroup:{valType:"string",dflt:"",editType:"calc",description:["Set a group of histogram traces which will have compatible bin settings.","Note that traces on the same subplot and with the same *orientation*","under `barmode` *stack*, *relative* and *group* are forced into the same bingroup,","Using `bingroup`, traces under `barmode` *overlay* and on different axes","(of the same axis type) can have compatible bin settings.","Note that histogram and histogram2d* trace can share the same `bingroup`"].join(" ")},hovertemplate:a({},{keys:c.eventDataKeys}),hovertemplatefallback:o(),texttemplate:i({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:o({editType:"plot"}),textposition:u({},n.textposition,{arrayOk:!1}),textfont:s({arrayOk:!1,editType:"plot",colorEditType:"style",description:"Sets the text font."}),outsidetextfont:s({arrayOk:!1,editType:"plot",colorEditType:"style",description:"Sets the font used for `text` lying outside the bar."}),insidetextfont:s({arrayOk:!1,editType:"plot",colorEditType:"style",description:"Sets the font used for `text` lying inside the bar."}),insidetextanchor:n.insidetextanchor,textangle:n.textangle,cliponaxis:n.cliponaxis,constraintext:n.constraintext,marker:n.marker,offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,zorder:n.zorder}}),YZe=Ee((e,t)=>{var n=vo(),r=Fr(),a=ao(),i=Vv().handleText,o=fG(),s=BG();t.exports=function(e,t,l,c){function u(n,a){return r.coerce(e,t,s,n,a)}var d=u("x"),p=u("y");u("cumulative.enabled")&&(u("cumulative.direction"),u("cumulative.currentbin")),u("text");var h=u("textposition");i(e,t,c,u,h,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),u("hovertext"),u("hovertemplate"),u("hovertemplatefallback"),u("xhoverformat"),u("yhoverformat");var f=u("orientation",p&&!d?"h":"v"),m="v"===f?"x":"y",g="v"===f?"y":"x",y=d&&p?Math.min(r.minRowLength(d)&&r.minRowLength(p)):r.minRowLength(t[m]||[]);if(y){t._length=y,n.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],c),t[g]&&u("histfunc"),u("histnorm"),u("autobin"+m),o(e,t,u,l,c),r.coerceSelectionMarkerOpacity(t,u);var b=(t.marker.line||{}).color,v=n.getComponentMethod("errorbars","supplyDefaults");v(e,t,b||a.defaultLine,{axis:"y"}),v(e,t,b||a.defaultLine,{axis:"x",inherit:"y"}),u("zorder")}else t.visible=!1}}),HG=Ee((e,t)=>{var n=Fr(),r=Ld(),a=vo().traceIs,i=Fw(),o=Vv().validateCornerradius,s=n.nestedProperty,l=Pw().getAxisGroup,c=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],u=["x","y"];t.exports=function(e,t){var d,p,h,f,m,g,y,b=t._histogramBinOpts={},v=[],M={},x=[];function z(e,t){return n.coerce(d._input,d,d._module.attributes,e,t)}function _(e){return"v"===e.orientation?"x":"y"}function A(e,a,i){var o=e.uid+"__"+i;a||(a=o);var s=function(e,n){return r.getFromTrace({_fullLayout:t},e,n).type}(e,i),l=e[i+"calendar"]||"",c=b[a],u=!0;c&&(s===c.axType&&l===c.calendar?(u=!1,c.traces.push(e),c.dirs.push(i)):(a=o,s!==c.axType&&n.warn(["Attempted to group the bins of trace",e.index,"set on a","type:"+s,"axis","with bins on","type:"+c.axType,"axis."].join(" ")),l!==c.calendar&&n.warn(["Attempted to group the bins of trace",e.index,"set with a",l,"calendar","with bins",c.calendar?"on a "+c.calendar+" calendar":"w/o a set calendar"].join(" ")))),u&&(b[a]={traces:[e],dirs:[i],axType:s,calendar:e[i+"calendar"]||""}),e["_"+i+"bingroup"]=a}for(m=0;m<e.length;m++)if(d=e[m],a(d,"histogram")){if(v.push(d),delete d._xautoBinFinished,delete d._yautoBinFinished,"histogram"===d.type){var O=z("marker.cornerradius",t.barcornerradius);d.marker&&(d.marker.cornerradius=o(O))}a(d,"2dMap")||i(d._input,d,t,z,t.barmode)}var w=t._alignmentOpts||{};for(m=0;m<v.length;m++){if(d=v[m],h="",!a(d,"2dMap")){if(f=_(d),"group"===t.barmode&&d.alignmentgroup){var k=d[f+"axis"],T=l(t,k)+d.orientation;(w[T]||{})[d.alignmentgroup]&&(h=T)}!h&&"overlay"!==t.barmode&&(h=l(t,d.xaxis)+l(t,d.yaxis)+_(d))}h?(M[h]||(M[h]=[]),M[h].push(d)):x.push(d)}for(h in M)if(1!==(p=M[h]).length){var S=!1;for(p.length&&(d=p[0],S=z("bingroup")),h=S||h,m=0;m<p.length;m++){var C=(d=p[m])._input.bingroup;C&&C!==h&&n.warn(["Trace",d.index,"must match","within bingroup",h+".","Ignoring its bingroup:",C,"setting."].join(" ")),d.bingroup=h,A(d,h,_(d))}}else x.push(p[0]);for(m=0;m<x.length;m++){d=x[m];var E=z("bingroup");if(a(d,"2dMap"))for(y=0;y<2;y++){var q=z((f=u[y])+"bingroup",E?E+"__"+f:null);A(d,q,f)}else A(d,E,_(d))}for(h in b){var D=b[h];for(p=D.traces,g=0;g<c.length;g++){var R,L,I=c[g],W=I.name;if("nbins"!==W||!D.sizeFound){for(m=0;m<p.length;m++){if(d=p[m],f=D.dirs[m],R=I.aStr[f],void 0!==s(d._input,R).get()){D[W]=z(R),D[W+"Found"]=!0;break}(L=(d._autoBin||{})[f]||{})[W]&&s(d,R).set(L[W])}if("start"===W||"end"===W)for(;m<p.length;m++)(d=p[m])["_"+f+"bingroup"]&&z(R,(L=(d._autoBin||{})[f]||{})[W]);"nbins"===W&&!D.sizeFound&&!D.nbinsFound&&(d=p[0],D[W]=z(R))}}}}}),QZe=Ee((e,t)=>{var n=QS().hoverPoints,r=es().hoverLabelText;t.exports=function(e,t,a,i,o){var s=n(e,t,a,i,o);if(s){var l=(e=s[0]).cd[e.index],c=e.cd[0].trace;if(!c.cumulative.enabled){var u="h"===c.orientation?"y":"x";e[u+"Label"]=r(e[u+"a"],[l.ph0,l.ph1],c[u+"hoverformat"])}return s}}}),_ue=Ee((e,t)=>{t.exports=function(e,t,n,r,a){if(e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(e.z=t.zLabelVal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),!(n.cumulative||{}).enabled){var i,o=Array.isArray(a)?r[0].pts[a[0]][a[1]]:r[a].pts;if(e.pointNumbers=o,e.binNumber=e.pointNumber,delete e.pointNumber,delete e.pointIndex,n._indexToPoints){i=[];for(var s=0;s<o.length;s++)i=i.concat(n._indexToPoints[o[s]])}else i=o;e.pointIndices=i}return e}}),r$e=Ee((e,t)=>{t.exports={attributes:BG(),layoutAttributes:dG(),supplyDefaults:YZe(),crossTraceDefaults:HG(),supplyLayoutDefaults:Uce(),calc:due().calc,crossTraceCalc:Bw().crossTraceCalc,plot:Qw().plot,layerName:"barlayer",style:ry().style,styleOnSelect:ry().styleOnSelect,colorbar:Wp(),hoverPoints:QZe(),selectPoints:ek(),eventData:_ue(),moduleType:"trace",name:"histogram",basePlotModule:Bf(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{description:["The sample data from which statistics are computed is set in `x`","for vertically spanning histograms and","in `y` for horizontally spanning histograms.","Binning options are set `xbins` and `ybins` respectively","if no aggregation data is provided."].join(" ")}}}),a$e=Ee((e,t)=>{t.exports=r$e()}),jG=Ee((e,t)=>{var n=BG(),r=yue(),a=nk(),i=S1(),o=Pd().axisHoverFormat,{hovertemplateAttrs:s,texttemplateAttrs:l,templatefallbackAttrs:c}=p1(),u=Oc(),d=ms().extendFlat;t.exports=d({x:n.x,y:n.y,z:{valType:"data_array",editType:"calc",description:"Sets the aggregation data."},marker:{color:{valType:"data_array",editType:"calc",description:"Sets the aggregation data."},editType:"calc"},histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:r("x"),nbinsy:n.nbinsy,ybins:r("y"),autobinx:n.autobinx,autobiny:n.autobiny,bingroup:d({},n.bingroup,{description:["Set the `xbingroup` and `ybingroup` default prefix","For example, setting a `bingroup` of *1* on two histogram2d traces","will make them their x-bins and y-bins match separately."].join(" ")}),xbingroup:d({},n.bingroup,{description:["Set a group of histogram traces which will have compatible x-bin settings.","Using `xbingroup`, histogram2d and histogram2dcontour traces ","(on axes of the same axis type) can have compatible x-bin settings.","Note that the same `xbingroup` value can be used to set (1D) histogram `bingroup`"].join(" ")}),ybingroup:d({},n.bingroup,{description:["Set a group of histogram traces which will have compatible y-bin settings.","Using `ybingroup`, histogram2d and histogram2dcontour traces ","(on axes of the same axis type) can have compatible y-bin settings.","Note that the same `ybingroup` value can be used to set (1D) histogram `bingroup`"].join(" ")}),xgap:a.xgap,ygap:a.ygap,zsmooth:a.zsmooth,xhoverformat:o("x"),yhoverformat:o("y"),zhoverformat:o("z",1),hovertemplate:s({},{keys:["z"]}),hovertemplatefallback:c(),texttemplate:l({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:c({editType:"plot"}),textfont:a.textfont,showlegend:d({},i.showlegend,{dflt:!1})},u("",{cLetter:"z",autoColorDflt:!1}))}),Aue=Ee((e,t)=>{var n=vo(),r=Fr();t.exports=function(e,t,a,i){var o=a("x"),s=a("y"),l=r.minRowLength(o),c=r.minRowLength(s);l&&c?(t._length=Math.min(l,c),n.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],i),(a("z")||a("marker.color"))&&a("histfunc"),a("histnorm"),a("autobinx"),a("autobiny")):t.visible=!1}}),d$e=Ee((e,t)=>{var n=Fr(),r=Aue(),a=aue(),i=kh(),o=YR(),s=jG();t.exports=function(e,t,l,c){function u(r,a){return n.coerce(e,t,s,r,a)}r(e,t,u,c),!1!==t.visible&&(a(e,t,u,c),i(e,t,c,u,{prefix:"",cLetter:"z"}),u("hovertemplate"),u("hovertemplatefallback"),o(u,c),u("xhoverformat"),u("yhoverformat"))}}),p$e=Ee((e,t)=>{var n=FG(),r=es().hoverLabelText;t.exports=function(e,t,a,i,o){var s=n(e,t,a,i,o);if(s){var l=(e=s[0]).index,c=l[0],u=l[1],d=e.cd[0],p=d.trace,h=d.xRanges[u],f=d.yRanges[c];return e.xLabel=r(e.xa,[h[0],h[1]],p.xhoverformat),e.yLabel=r(e.ya,[f[0],f[1]],p.yhoverformat),s}}}),v$e=Ee((e,t)=>{t.exports={attributes:jG(),supplyDefaults:d$e(),crossTraceDefaults:HG(),calc:RG(),plot:IG(),layerName:"heatmaplayer",colorbar:d4(),style:NG(),hoverPoints:p$e(),eventData:_ue(),moduleType:"trace",name:"histogram2d",basePlotModule:Bf(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{hrName:"histogram_2d",description:["The sample data from which statistics are computed is set in `x`","and `y` (where `x` and `y` represent marginal distributions,","binning is set in `xbins` and `ybins` in this case)","or `z` (where `z` represent the 2D distribution and binning set,","binning is set by `x` and `y` in this case).","The resulting distribution is visualized as a heatmap."].join(" ")}}}),y$e=Ee((e,t)=>{t.exports=v$e()}),GG=Ee((e,t)=>{t.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}}),QR=Ee((e,t)=>{var n=nk(),r=Id(),a=Pd(),i=a.axisHoverFormat,o=a.descriptionOnlyNumbers,s=Oc(),l=pp().dash,c=Mu(),u=ms().extendFlat,d=GG(),p=d.COMPARISON_OPS2,h=d.INTERVAL_OPS,f=r.line;t.exports=u({z:n.z,x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:r.xperiod0,yperiod0:r.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,text:n.text,hovertext:n.hovertext,transpose:n.transpose,xtype:n.xtype,ytype:n.ytype,xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z",1),hovertemplate:n.hovertemplate,hovertemplatefallback:n.hovertemplatefallback,texttemplate:u({},n.texttemplate,{description:["For this trace it only has an effect if `coloring` is set to *heatmap*.",n.texttemplate.description].join(" ")}),texttemplatefallback:n.texttemplatefallback,textfont:u({},n.textfont,{description:["For this trace it only has an effect if `coloring` is set to *heatmap*.",n.textfont.description].join(" ")}),hoverongaps:n.hoverongaps,connectgaps:u({},n.connectgaps,{description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the `z` data are filled in.","It is defaulted to true if `z` is a","one dimensional array","otherwise it is defaulted to false."].join(" ")}),fillcolor:{valType:"color",editType:"calc",description:["Sets the fill color if `contours.type` is *constraint*.","Defaults to a half-transparent variant of the line color,","marker color, or marker line color, whichever is available."].join(" ")},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0},description:["Determines whether or not the contour level attributes are","picked by an algorithm.","If *true*, the number of contour levels can be set in `ncontours`.","If *false*, set the contour level attributes in `contours`."].join(" ")},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc",description:["Sets the maximum number of contour levels. The actual number","of contours will be chosen automatically to be less than or","equal to the value of `ncontours`.","Has an effect only if `autocontour` is *true* or if","`contours.size` is missing."].join(" ")},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc",description:["If `levels`, the data is represented as a contour plot with multiple","levels displayed. If `constraint`, the data is represented as constraints","with the invalid region shaded as specified by the `operation` and","`value` parameters."].join(" ")},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1},description:["Sets the starting contour level value.","Must be less than `contours.end`"].join(" ")},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1},description:["Sets the end contour level value.","Must be more than `contours.start`"].join(" ")},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1},description:["Sets the step between each contour level.","Must be positive."].join(" ")},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc",description:["Determines the coloring method showing the contour values.","If *fill*, coloring is done evenly between each contour level","If *heatmap*, a heatmap gradient coloring is applied","between each contour level.","If *lines*, coloring is done on the contour lines.","If *none*, no coloring is applied on this trace."].join(" ")},showlines:{valType:"boolean",dflt:!0,editType:"plot",description:["Determines whether or not the contour lines are drawn.","Has an effect only if `contours.coloring` is set to *fill*."].join(" ")},showlabels:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines whether to label the contour lines with their values."].join(" ")},labelfont:c({editType:"plot",colorEditType:"style",description:["Sets the font used for labeling the contour levels.","The default color comes from the lines, if shown.","The default family and size come from `layout.font`."].join(" ")}),labelformat:{valType:"string",dflt:"",editType:"plot",description:o("contour label")},operation:{valType:"enumerated",values:[].concat(p).concat(h),dflt:"=",editType:"calc",description:["Sets the constraint operation.","*=* keeps regions equal to `value`","*<* and *<=* keep regions less than `value`","*>* and *>=* keep regions greater than `value`","*[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]`","*][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]`","Open vs. closed intervals make no difference to constraint display, but","all versions are allowed for consistency with filter transforms."].join(" ")},value:{valType:"any",dflt:0,editType:"calc",description:["Sets the value or values of the constraint boundary.","When `operation` is set to one of the comparison values","(`"+p+"`)","*value* is expected to be a number.","When `operation` is set to one of the interval values","(`"+h+"`)","*value* is expected to be an array of two numbers where the first","is the lower bound and the second is the upper bound."].join(" ")},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:u({},f.color,{editType:"style+colorbars",description:["Sets the color of the contour level.","Has no effect if `contours.coloring` is set to *lines*."].join(" ")}),width:{valType:"number",min:0,editType:"style+colorbars",description:["Sets the contour line width in (in px)","Defaults to *0.5* when `contours.type` is *levels*.","Defaults to *2* when `contour.type` is *constraint*."].join(" ")},dash:l,smoothing:u({},f.smoothing,{description:["Sets the amount of smoothing for the contour lines,","where *0* corresponds to no smoothing."].join(" ")}),editType:"plot"},zorder:r.zorder},s("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))}),Tue=Ee((e,t)=>{var n=jG(),r=QR(),a=Oc(),i=Pd().axisHoverFormat,o=ms().extendFlat;t.exports=o({x:n.x,y:n.y,z:n.z,marker:n.marker,histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:n.xbins,nbinsy:n.nbinsy,ybins:n.ybins,autobinx:n.autobinx,autobiny:n.autobiny,bingroup:n.bingroup,xbingroup:n.xbingroup,ybingroup:n.ybingroup,autocontour:r.autocontour,ncontours:r.ncontours,contours:r.contours,line:{color:r.line.color,width:o({},r.line.width,{dflt:.5,description:"Sets the contour line width in (in px)"}),dash:r.line.dash,smoothing:r.line.smoothing,editType:"plot"},xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z",1),hovertemplate:n.hovertemplate,hovertemplatefallback:n.hovertemplatefallback,texttemplate:r.texttemplate,texttemplatefallback:r.texttemplatefallback,textfont:r.textfont},a("",{cLetter:"z",editTypeOverride:"calc"}))}),YG=Ee((e,t)=>{t.exports=function(e,t,n,r){var a=r("contours.start"),i=r("contours.end"),o=!1===a||!1===i,s=n("contours.size");((o?t.autocontour=!0:n("autocontour",!1))||!s)&&n("ncontours")}}),Sue=Ee((e,t)=>{var n=Fr();t.exports=function(e,t,r,a){if(a||(a={}),e("contours.showlabels")){var i=t.font;n.coerceFont(e,"contours.labelfont",i,{overrideDflt:{color:r}}),e("contours.labelformat")}!1!==a.hasHover&&e("zhoverformat")}}),ZG=Ee((e,t)=>{var n=kh(),r=Sue();t.exports=function(e,t,a,i,o){var s,l=a("contours.coloring"),c="";"fill"===l&&(s=a("contours.showlines")),!1!==s&&("lines"!==l&&(c=a("line.color","#000")),a("line.width",.5),a("line.dash")),"none"!==l&&(!0!==e.showlegend&&(t.showlegend=!1),t._dfltShowLegend=!1,n(e,t,i,a,{prefix:"",cLetter:"z"})),a("line.smoothing"),r(a,i,c,o)}}),R$e=Ee((e,t)=>{var n=Fr(),r=Aue(),a=YG(),i=ZG(),o=YR(),s=Tue();t.exports=function(e,t,l,c){function u(r,a){return n.coerce(e,t,s,r,a)}r(e,t,u,c),!1!==t.visible&&(a(e,t,u,function(r){return n.coerce2(e,t,s,r)}),i(e,t,u,c),u("xhoverformat"),u("yhoverformat"),u("hovertemplate"),u("hovertemplatefallback"),t.contours&&"heatmap"===t.contours.coloring&&o(u,c))}}),Eue=Ee((e,t)=>{var n=es(),r=Fr();function a(e,t,r){var a={type:"linear",range:[e,t]};return n.autoTicks(a,(t-e)/(r||15)),a}t.exports=function(e,t){var i=e.contours;if(e.autocontour){var o=e.zmin,s=e.zmax;(e.zauto||void 0===o)&&(o=r.aggNums(Math.min,null,t)),(e.zauto||void 0===s)&&(s=r.aggNums(Math.max,null,t));var l=a(o,s,e.ncontours);i.size=l.dtick,i.start=n.tickFirst(l),l.range.reverse(),i.end=n.tickFirst(l),i.start===o&&(i.start+=i.size),i.end===s&&(i.end-=i.size),i.start>i.end&&(i.start=i.end=(i.start+i.end)/2),e._input.contours||(e._input.contours={}),r.extendFlat(e._input.contours,{start:i.start,end:i.end,size:i.size}),e._input.autocontour=!0}else if("constraint"!==i.type){var c,u=i.start,d=i.end,p=e._input.contours;if(u>d&&(i.start=p.start=d,d=i.end=p.end=u,u=i.start),!(i.size>0))c=u===d?1:a(u,d,e.ncontours).dtick,p.size=i.size=c}}}),eL=Ee((e,t)=>{t.exports=function(e){return e.end+e.size/1e6}}),que=Ee((e,t)=>{var n=xu(),r=RG(),a=Eue(),i=eL();t.exports=function(e,t){var o=r(e,t),s=o[0].z;a(t,s);var l,c=t.contours,u=n.extractOpts(t);if("heatmap"===c.coloring&&u.auto&&!1===t.autocontour){var d=c.start,p=i(c),h=c.size||1,f=Math.floor((p-d)/h)+1;isFinite(h)||(h=1,f=1);var m=d-h/2;l=[m,m+f*h]}else l=s;return n.calc(e,t,{vals:l,cLetter:"z"}),o}}),tL=Ee((e,t)=>{t.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}}),Due=Ee((e,t)=>{var n=tL();function r(e,t){var n=(t[0][0]>e?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);return 5===n||10===n?e>(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4?5===n?713:1114:5===n?104:208:15===n?0:n}t.exports=function(e){var t,a,i,o,s,l,c,u,d,p=e[0].z,h=p.length,f=p[0].length,m=2===h||2===f;for(a=0;a<h-1;a++)for(o=[],0===a&&(o=o.concat(n.BOTTOMSTART)),a===h-2&&(o=o.concat(n.TOPSTART)),t=0;t<f-1;t++)for(i=o.slice(),0===t&&(i=i.concat(n.LEFTSTART)),t===f-2&&(i=i.concat(n.RIGHTSTART)),s=t+","+a,l=[[p[a][t],p[a][t+1]],[p[a+1][t],p[a+1][t+1]]],d=0;d<e.length;d++)(c=r((u=e[d]).level,l))&&(u.crossings[s]=c,-1!==i.indexOf(c)&&(u.starts.push([t,a]),m&&-1!==i.indexOf(c,i.indexOf(c)+1)&&u.starts.push([t,a])))}}),Rue=Ee((e,t)=>{var n=Fr(),r=tL();function a(e,t,n,r){return Math.abs(e[0]-t[0])<n&&Math.abs(e[1]-t[1])<r}function i(e,t){var n=e[2]-t[2],r=e[3]-t[3];return Math.sqrt(n*n+r*r)}function o(e,t,o,l,c){var u,d=t.join(","),p=e.crossings[d],h=function(e,t,n){var a=0,i=0;return e>20&&t?208===e||1114===e?a=0===n[0]?1:-1:i=0===n[1]?1:-1:-1!==r.BOTTOMSTART.indexOf(e)?i=1:-1!==r.LEFTSTART.indexOf(e)?a=1:-1!==r.TOPSTART.indexOf(e)?i=-1:a=-1,[a,i]}(p,o,t),f=[s(e,t,[-h[0],-h[1]])],m=e.z.length,g=e.z[0].length,y=t.slice(),b=h.slice();for(u=0;u<1e4;u++){if(p>20?(p=r.CHOOSESADDLE[p][(h[0]||h[1])<0?0:1],e.crossings[d]=r.SADDLEREMAINDER[p]):delete e.crossings[d],!(h=r.NEWDELTA[p])){n.log("Found bad marching index:",p,t,e.level);break}f.push(s(e,t,h)),t[0]+=h[0],t[1]+=h[1],d=t.join(","),a(f[f.length-1],f[f.length-2],l,c)&&f.pop();var v=h[0]&&(t[0]<0||t[0]>g-2)||h[1]&&(t[1]<0||t[1]>m-2);if(t[0]===y[0]&&t[1]===y[1]&&h[0]===b[0]&&h[1]===b[1]||o&&v)break;p=e.crossings[d]}1e4===u&&n.log("Infinite loop in contour?");var M,x,z,_,A,O,w,k,T,S,C,E=a(f[0],f[f.length-1],l,c),q=0,D=.2*e.smoothing,R=[],L=0;for(u=1;u<f.length;u++)q+=w=i(f[u],f[u-1]),R.push(w);var I=q/R.length*D;function W(e){return f[e%f.length]}for(u=f.length-2;u>=L;u--)if((M=R[u])<I){for(z=0,x=u-1;x>=L&&M+R[x]<I;x--)M+=R[x];if(E&&u===f.length-2)for(z=0;z<x&&M+R[z]<I;z++)M+=R[z];A=u-x+z+1,O=Math.floor((u+x+z+2)/2),_=E||u!==f.length-2?E||-1!==x?A%2?W(O):[(W(O)[0]+W(O+1)[0])/2,(W(O)[1]+W(O+1)[1])/2]:f[0]:f[f.length-1],f.splice(x+1,u-x+1,_),u=x+1,z&&(L=z),E&&(u===f.length-2?f[z]=f[f.length-1]:0===u&&(f[f.length-1]=f[0]))}for(f.splice(0,L),u=0;u<f.length;u++)f[u].length=2;if(!(f.length<2))if(E)f.pop(),e.paths.push(f);else{o||n.log("Unclosed interior contour?",e.level,y.join(","),f.join("L"));var N=!1;for(k=0;k<e.edgepaths.length;k++)if(S=e.edgepaths[k],!N&&a(S[0],f[f.length-1],l,c)){f.pop(),N=!0;var P=!1;for(T=0;T<e.edgepaths.length;T++)if(a((C=e.edgepaths[T])[C.length-1],f[0],l,c)){P=!0,f.shift(),e.edgepaths.splice(k,1),T===k?e.paths.push(f.concat(C)):(T>k&&T--,e.edgepaths[T]=C.concat(f,S));break}P||(e.edgepaths[k]=f.concat(S))}for(k=0;k<e.edgepaths.length&&!N;k++)a((S=e.edgepaths[k])[S.length-1],f[0],l,c)&&(f.shift(),e.edgepaths[k]=S.concat(f),N=!0);N||e.edgepaths.push(f)}}function s(e,t,n){var r=t[0]+Math.max(n[0],0),a=t[1]+Math.max(n[1],0),i=e.z[a][r],o=e.xaxis,s=e.yaxis;if(n[1]){var l=(e.level-i)/(e.z[a][r+1]-i),c=(1!==l?(1-l)*o.c2l(e.x[r]):0)+(0!==l?l*o.c2l(e.x[r+1]):0);return[o.c2p(o.l2c(c),!0),s.c2p(e.y[a],!0),r+l,a]}var u=(e.level-i)/(e.z[a+1][r]-i),d=(1!==u?(1-u)*s.c2l(e.y[a]):0)+(0!==u?u*s.c2l(e.y[a+1]):0);return[o.c2p(e.x[r],!0),s.c2p(s.l2c(d),!0),r,a+u]}t.exports=function(e,t,r){var a,i,s,l;for(t=t||.01,r=r||.01,i=0;i<e.length;i++){for(s=e[i],l=0;l<s.starts.length;l++)o(s,s.starts[l],"edge",t,r);for(a=0;Object.keys(s.crossings).length&&a<1e4;)a++,o(s,Object.keys(s.crossings)[0].split(",").map(Number),void 0,t,r);1e4===a&&n.log("Infinite loop in contour?")}}}),Y$e=Ee((e,t)=>{var n=GG(),r=xs();function a(e,t){var a,i=Array.isArray(t);function o(e){return r(e)?+e:null}return-1!==n.COMPARISON_OPS2.indexOf(e)?a=o(i?t[0]:t):-1!==n.INTERVAL_OPS.indexOf(e)?a=i?[o(t[0]),o(t[1])]:[o(t),o(t)]:-1!==n.SET_OPS.indexOf(e)&&(a=i?t.map(o):[o(t)]),a}function i(e){return function(t){t=a(e,t);var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return{start:n,end:r,size:r-n}}}function o(e){return function(t){return{start:t=a(e,t),end:1/0,size:1/0}}}t.exports={"[]":i("[]"),"][":i("]["),">":o(">"),"<":o("<"),"=":o("=")}}),Iue=Ee((e,t)=>{var n=Fr(),r=Y$e(),a=eL();t.exports=function(e,t,i){for(var o="constraint"===e.type?r[e._operation](e.value):e,s=o.size,l=[],c=a(o),u=i.trace._carpetTrace,d=u?{xaxis:u.aaxis,yaxis:u.baxis,x:i.a,y:i.b}:{xaxis:t.xaxis,yaxis:t.yaxis,x:i.x,y:i.y},p=o.start;p<c;p+=s)if(l.push(n.extendFlat({level:p,crossings:{},starts:[],edgepaths:[],paths:[],z:i.z,smoothing:i.trace.line.smoothing},d)),l.length>1e3){n.warn("Too many contours, clipping at 1000",e);break}return l}}),Nue=Ee((e,t)=>{var n=Fr();function r(e){return n.extendFlat({},e,{edgepaths:n.extendDeep([],e.edgepaths),paths:n.extendDeep([],e.paths),starts:n.extendDeep([],e.starts)})}t.exports=function(e,t){var a,i,o,s=function(e){return e.reverse()},l=function(e){return e};switch(t){case"=":case"<":return e;case">":for(1!==e.length&&n.warn("Contour data invalid for the specified inequality operation."),i=e[0],a=0;a<i.edgepaths.length;a++)i.edgepaths[a]=s(i.edgepaths[a]);for(a=0;a<i.paths.length;a++)i.paths[a]=s(i.paths[a]);for(a=0;a<i.starts.length;a++)i.starts[a]=s(i.starts[a]);return e;case"][":var c=s;s=l,l=c;case"[]":for(2!==e.length&&n.warn("Contour data invalid for the specified inequality range operation."),i=r(e[0]),o=r(e[1]),a=0;a<i.edgepaths.length;a++)i.edgepaths[a]=s(i.edgepaths[a]);for(a=0;a<i.paths.length;a++)i.paths[a]=s(i.paths[a]);for(a=0;a<i.starts.length;a++)i.starts[a]=s(i.starts[a]);for(;o.edgepaths.length;)i.edgepaths.push(l(o.edgepaths.shift()));for(;o.paths.length;)i.paths.push(l(o.paths.shift()));for(;o.starts.length;)i.starts.push(l(o.starts.shift()));return[i]}}}),Wue=Ee((e,t)=>{t.exports=function(e,t){var n,r=e[0],a=r.z;switch(t.type){case"levels":var i=Math.min(a[0][0],a[0][1]);for(n=0;n<e.length;n++){var o=e[n];o.prefixBoundary=!o.edgepaths.length&&(i>o.level||o.starts.length&&i===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,l=r.y.length,c=-1/0,u=1/0;for(n=0;n<l;n++)u=Math.min(u,a[n][0]),u=Math.min(u,a[n][s-1]),c=Math.max(c,a[n][0]),c=Math.max(c,a[n][s-1]);for(n=1;n<s-1;n++)u=Math.min(u,a[0][n]),u=Math.min(u,a[l-1][n]),c=Math.max(c,a[0][n]),c=Math.max(c,a[l-1][n]);var d,p,h=t.value;switch(t._operation){case">":h>c&&(r.prefixBoundary=!0);break;case"<":(h<u||r.starts.length&&h===u)&&(r.prefixBoundary=!0);break;case"[]":d=Math.min(h[0],h[1]),((p=Math.max(h[0],h[1]))<u||d>c||r.starts.length&&p===u)&&(r.prefixBoundary=!0);break;case"][":d=Math.min(h[0],h[1]),p=Math.max(h[0],h[1]),d<u&&p>c&&(r.prefixBoundary=!0)}}}}),JG=Ee(e=>{var t=mo(),n=Fr(),r=vs(),a=xu(),i=q1(),o=es(),s=g3(),l=IG(),c=Due(),u=Rue(),d=Iue(),p=Nue(),h=Wue(),f=tL(),m=f.LABELOPTIMIZER;function g(e,t){var a,i,o,s,l,c,u="",d=0,p=e.edgepaths.map(function(e,t){return t}),h=!0;function f(e){return Math.abs(e[1]-t[0][1])<.01}function m(e){return Math.abs(e[1]-t[2][1])<.01}function g(e){return Math.abs(e[0]-t[0][0])<.01}function y(e){return Math.abs(e[0]-t[2][0])<.01}for(;p.length;){for(c=r.smoothopen(e.edgepaths[d],e.smoothing),u+=h?c:c.replace(/^M/,"L"),p.splice(p.indexOf(d),1),a=e.edgepaths[d][e.edgepaths[d].length-1],s=-1,o=0;o<4;o++){if(!a){n.log("Missing end?",d,e);break}for(f(a)&&!y(a)?i=t[1]:g(a)?i=t[0]:m(a)?i=t[3]:y(a)&&(i=t[2]),l=0;l<e.edgepaths.length;l++){var b=e.edgepaths[l][0];Math.abs(a[0]-i[0])<.01?Math.abs(a[0]-b[0])<.01&&(b[1]-a[1])*(i[1]-b[1])>=0&&(i=b,s=l):Math.abs(a[1]-i[1])<.01?Math.abs(a[1]-b[1])<.01&&(b[0]-a[0])*(i[0]-b[0])>=0&&(i=b,s=l):n.log("endpt to newendpt is not vert. or horz.",a,i,b)}if(a=i,s>=0)break;u+="L"+i}if(s===e.edgepaths.length){n.log("unclosed perimeter path");break}d=s,(h=-1===p.indexOf(d))&&(d=p[0],u+="Z")}for(d=0;d<e.paths.length;d++)u+=r.smoothclosed(e.paths[d],e.smoothing);return u}function y(e,t,r,a){var i=t.width/2,o=t.height/2,s=e.x,l=e.y,c=e.theta,u=Math.cos(c)*i,d=Math.sin(c)*i,p=(s>a.center?a.right-s:s-a.left)/(u+Math.abs(Math.sin(c)*o)),h=(l>a.middle?a.bottom-l:l-a.top)/(Math.abs(d)+Math.cos(c)*o);if(p<1||h<1)return 1/0;var f=m.EDGECOST*(1/(p-1)+1/(h-1));f+=m.ANGLECOST*c*c;for(var g=s-u,y=l-d,b=s+u,v=l+d,M=0;M<r.length;M++){var x=r[M],z=Math.cos(x.theta)*x.width/2,_=Math.sin(x.theta)*x.width/2,A=2*n.segmentDistance(g,y,b,v,x.x-z,x.y-_,x.x+z,x.y+_)/(t.height+x.height),O=x.level===t.level,w=O?m.SAMELEVELDISTANCE:1;if(A<=w)return 1/0;f+=m.NEIGHBORCOST*(O?m.SAMELEVELFACTOR:1)/(A-w)}return f}function b(e){var t,n,r=e.trace._emptypoints,a=[],i=e.z.length,o=e.z[0].length,s=[];for(t=0;t<o;t++)s.push(1);for(t=0;t<i;t++)a.push(s.slice());for(t=0;t<r.length;t++)a[(n=r[t])[0]][n[1]]=0;return e.zmask=a,a}e.plot=function(a,i,o,s){var m=i.xaxis,y=i.yaxis;n.makeTraceGroups(s,o,"contour").each(function(o){var s=t.select(this),v=o[0],M=v.trace,x=v.x,z=v.y,_=M.contours,A=d(_,i,v),O=n.ensureSingle(s,"g","heatmapcoloring"),w=[];"heatmap"===_.coloring&&(w=[o]),l(a,i,w,O),c(A),u(A);var k=m.c2p(x[0],!0),T=m.c2p(x[x.length-1],!0),S=y.c2p(z[0],!0),C=y.c2p(z[z.length-1],!0),E=[[k,C],[T,C],[T,S],[k,S]],q=A;"constraint"===_.type&&(q=p(A,_._operation)),function(e,t,r){var a=n.ensureSingle(e,"g","contourbg"),i=a.selectAll("path").data("fill"===r.coloring?[0]:[]);i.enter().append("path"),i.exit().remove(),i.attr("d","M"+t.join("L")+"Z").style("stroke","none")}(s,E,_),function(e,r,a,i){var o="fill"===i.coloring||"constraint"===i.type&&"="!==i._operation,s="M"+a.join("L")+"Z";o&&h(r,i);var l=n.ensureSingle(e,"g","contourfill"),c=l.selectAll("path").data(o?r:[]);c.enter().append("path"),c.exit().remove(),c.each(function(e){var n=(e.prefixBoundary?s:"")+g(e,a);n?t.select(this).attr("d",n).style("stroke","none"):t.select(this).remove()})}(s,q,E,_),function(a,i,o,s,l){var c=o._context.staticPlot,u=n.ensureSingle(a,"g","contourlines"),d=!1!==l.showlines,p=l.showlabels,h=d&&p,m=e.createLines(u,d||p,i,c),g=e.createLineClip(u,h,o,s.trace.uid),y=a.selectAll("g.contourlabels").data(p?[0]:[]);if(y.exit().remove(),y.enter().append("g").classed("contourlabels",!0),p){var b=[],v=[];n.clearLocationCache();var M=e.labelFormatter(o,s),x=r.tester.append("text").attr("data-notex",1).call(r.font,l.labelfont),z=i[0].xaxis,_=i[0].yaxis,A=z._length,O=_._length,w=z.range,k=_.range,T=n.aggNums(Math.min,null,s.x),S=n.aggNums(Math.max,null,s.x),C=n.aggNums(Math.min,null,s.y),E=n.aggNums(Math.max,null,s.y),q=Math.max(z.c2p(T,!0),0),D=Math.min(z.c2p(S,!0),A),R=Math.max(_.c2p(E,!0),0),L=Math.min(_.c2p(C,!0),O),I={};w[0]<w[1]?(I.left=q,I.right=D):(I.left=D,I.right=q),k[0]<k[1]?(I.top=R,I.bottom=L):(I.top=L,I.bottom=R),I.middle=(I.top+I.bottom)/2,I.center=(I.left+I.right)/2,b.push([[I.left,I.top],[I.right,I.top],[I.right,I.bottom],[I.left,I.bottom]]);var W=Math.sqrt(A*A+O*O),N=f.LABELDISTANCE*W/Math.max(1,i.length/f.LABELINCREASE);m.each(function(r){var a=e.calcTextOpts(r.level,M,x,o);t.select(this).selectAll("path").each(function(){var t=this,r=n.getVisibleSegment(t,I,a.height/2);if(r&&!(r.len<(a.width+a.height)*f.LABELMIN))for(var i=Math.min(Math.ceil(r.len/N),f.LABELMAX),o=0;o<i;o++){var s=e.findBestTextLocation(t,r,a,v,I);if(!s)break;e.addLabelData(s,a,v,b)}})}),x.remove(),e.drawLabels(y,v,o,g,h?b:null)}p&&!d&&m.remove()}(s,A,a,v,_),function(e,t,a,i,o){var s=i.trace,l=a._fullLayout._clips,d="clip"+s.uid,p=l.selectAll("#"+d).data(s.connectgaps?[]:[0]);if(p.enter().append("clipPath").classed("contourclip",!0).attr("id",d),p.exit().remove(),!1===s.connectgaps){var f={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:t.xaxis,yaxis:t.yaxis,x:i.x,y:i.y,z:b(i),smoothing:0};c([f]),u([f]),h([f],{type:"levels"}),n.ensureSingle(p,"path","").attr("d",(f.prefixBoundary?"M"+o.join("L")+"Z":"")+g(f,o))}else d=null;r.setClipUrl(e,d,a)}(s,i,a,v,E)})},e.createLines=function(e,t,n,a){var i=n[0].smoothing,o=e.selectAll("g.contourlevel").data(t?n:[]);if(o.exit().remove(),o.enter().append("g").classed("contourlevel",!0),t){var s=o.selectAll("path.openline").data(function(e){return e.pedgepaths||e.edgepaths});s.exit().remove(),s.enter().append("path").classed("openline",!0),s.attr("d",function(e){return r.smoothopen(e,i)}).style("stroke-miterlimit",1).style("vector-effect",a?"none":"non-scaling-stroke");var l=o.selectAll("path.closedline").data(function(e){return e.ppaths||e.paths});l.exit().remove(),l.enter().append("path").classed("closedline",!0),l.attr("d",function(e){return r.smoothclosed(e,i)}).style("stroke-miterlimit",1).style("vector-effect",a?"none":"non-scaling-stroke")}return o},e.createLineClip=function(e,t,n,a){var i=t?"clipline"+a:null,o=n._fullLayout._clips.selectAll("#"+i).data(t?[0]:[]);return o.exit().remove(),o.enter().append("clipPath").classed("contourlineclip",!0).attr("id",i),r.setClipUrl(e,i,n),o},e.labelFormatter=function(e,t){var r=e._fullLayout,i=t.trace,l=i.contours,c={type:"linear",_id:"ycontour",showexponent:"all",exponentformat:"B"};if(l.labelformat)c.tickformat=l.labelformat,s(c,r);else{var u=a.extractOpts(i);if(u&&u.colorbar&&u.colorbar._axis)c=u.colorbar._axis;else{if("constraint"===l.type){var d=l.value;n.isArrayOrTypedArray(d)?c.range=[d[0],d[d.length-1]]:c.range=[d,d]}else c.range=[l.start,l.end],c.nticks=(l.end-l.start)/l.size;c.range[0]===c.range[1]&&(c.range[1]+=c.range[0]||1),c.nticks||(c.nticks=1e3),s(c,r),o.prepTicks(c),c._tmin=null,c._tmax=null}}return function(e){return o.tickText(c,e).text}},e.calcTextOpts=function(e,t,n,a){var o=t(e);n.text(o).call(i.convertToTspans,a);var s=n.node(),l=r.bBox(s,!0);return{text:o,width:l.width,height:l.height,fontSize:+s.style["font-size"].replace("px",""),level:e,dy:(l.top+l.bottom)/2}},e.findBestTextLocation=function(e,t,r,a,i){var o,s,l,c,u,d=r.width;t.isClosed?(s=t.len/m.INITIALSEARCHPOINTS,o=t.min+s/2,l=t.max):(s=(t.len-d)/(m.INITIALSEARCHPOINTS+1),o=t.min+s+d/2,l=t.max-(s+d)/2);for(var p=1/0,h=0;h<m.ITERATIONS;h++){for(var f=o;f<l;f+=s){var g=n.getTextLocation(e,t.total,f,d),b=y(g,r,a,i);b<p&&(p=b,u=g,c=f)}if(p>2*m.MAXCOST)break;h&&(s/=2),l=(o=c-s/2)+1.5*s}if(p<=m.MAXCOST)return u},e.addLabelData=function(e,t,n,r){var a=t.fontSize,i=t.width+a/3,o=Math.max(0,t.height-a/3),s=e.x,l=e.y,c=e.theta,u=Math.sin(c),d=Math.cos(c),p=function(e,t){return[s+e*d-t*u,l+e*u+t*d]},h=[p(-i/2,-o/2),p(-i/2,o/2),p(i/2,o/2),p(i/2,-o/2)];n.push({text:t.text,x:s,y:l,dy:t.dy,theta:c,level:t.level,width:i,height:o}),r.push(h)},e.drawLabels=function(e,r,a,o,s){var l=e.selectAll("text").data(r,function(e){return e.text+","+e.x+","+e.y+","+e.theta});if(l.exit().remove(),l.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function(e){var n=e.x+Math.sin(e.theta)*e.dy,r=e.y-Math.cos(e.theta)*e.dy;t.select(this).text(e.text).attr({x:n,y:r,transform:"rotate("+180*e.theta/Math.PI+" "+n+" "+r+")"}).call(i.convertToTspans,a)}),s){for(var c="",u=0;u<s.length;u++)c+="M"+s[u].join("L")+"Z";n.ensureSingle(o,"path","").attr("d",c)}}}),Bue=Ee((e,t)=>{var n=mo(),r=xu(),a=eL();t.exports=function(e){var t=e.contours,i=t.start,o=a(t),s=t.size||1,l=Math.floor((o-i)/s)+1,c="lines"===t.coloring?0:1,u=r.extractOpts(e);isFinite(s)||(s=1,l=1);var d,p,h=u.reversescale?r.flipScale(u.colorscale):u.colorscale,f=h.length,m=new Array(f),g=new Array(f),y=u.min,b=u.max;if("heatmap"===t.coloring){for(p=0;p<f;p++)d=h[p],m[p]=d[0]*(b-y)+y,g[p]=d[1];var v=n.extent([y,b,t.start,t.start+s*(l-1)]),M=v[y<b?0:1],x=v[y<b?1:0];M!==y&&(m.splice(0,0,M),g.splice(0,0,g[0])),x!==b&&(m.push(x),g.push(g[g.length-1]))}else{var z=e._input&&"number"==typeof e._input.zmin&&"number"==typeof e._input.zmax;for(z&&(i<=y||o>=b)&&(i<=y&&(i=y),o>=b&&(o=b),l=Math.floor((o-i)/s)+1,c=0),p=0;p<f;p++)d=h[p],m[p]=(d[0]*(l+c-1)-c/2)*s+i,g[p]=d[1];(z||e.autocontour)&&(m[0]>y&&(m.unshift(y),g.unshift(g[0])),m[m.length-1]<b&&(m.push(b),g.push(g[g.length-1])))}return r.makeColorScaleFunc({domain:m,range:g},{noNumericCheck:!0})}}),eX=Ee((e,t)=>{var n=mo(),r=vs(),a=NG(),i=Bue();t.exports=function(e){var t=n.select(e).selectAll("g.contour");t.style("opacity",function(e){return e[0].trace.opacity}),t.each(function(e){var t=n.select(this),a=e[0].trace,o=a.contours,s=a.line,l=o.size||1,c=o.start,u="constraint"===o.type,d=!u&&"lines"===o.coloring,p=!u&&"fill"===o.coloring,h=d||p?i(a):null;t.selectAll("g.contourlevel").each(function(e){n.select(this).selectAll("path").call(r.lineGroupStyle,s.width,d?h(e.level):s.color,s.dash)});var f=o.labelfont;if(t.selectAll("g.contourlabels text").each(function(e){r.font(n.select(this),{weight:f.weight,style:f.style,variant:f.variant,textcase:f.textcase,lineposition:f.lineposition,shadow:f.shadow,family:f.family,size:f.size,color:f.color||(d?h(e.level):s.color)})}),u)t.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(p){var m;t.selectAll("g.contourfill path").style("fill",function(e){return void 0===m&&(m=e.level),h(e.level+.5*l)}),void 0===m&&(m=c),t.selectAll("g.contourbg path").style("fill",h(m-.5*l))}}),a(e)}}),tX=Ee((e,t)=>{var n=xu(),r=Bue(),a=eL();t.exports={min:"zmin",max:"zmax",calc:function(e,t,i){var o=t.contours,s=t.line,l=o.size||1,c=o.coloring,u=r(t,{isColorbar:!0});if("heatmap"===c){var d=n.extractOpts(t);i._fillgradient=d.reversescale?n.flipScale(d.colorscale):d.colorscale,i._zrange=[d.min,d.max]}else"fill"===c&&(i._fillcolor=u);i._line={color:"lines"===c?u:s.color,width:!1!==o.showlines?s.width:0,dash:s.dash},i._levels={start:o.start,end:a(o),size:l}}}}),Uue=Ee((e,t)=>{var n=ao(),r=FG();t.exports=function(e,t,a,i,o){o||(o={}),o.isContour=!0;var s=r(e,t,a,i,o);return s&&s.forEach(function(e){var t=e.trace;"constraint"===t.contours.type&&(t.fillcolor&&n.opacity(t.fillcolor)?e.color=n.addOpacity(t.fillcolor,1):t.contours.showlines&&n.opacity(t.line.color)&&(e.color=n.addOpacity(t.line.color,1)))}),s}}),pKe=Ee((e,t)=>{t.exports={attributes:Tue(),supplyDefaults:R$e(),crossTraceDefaults:HG(),calc:que(),plot:JG().plot,layerName:"contourlayer",style:eX(),colorbar:tX(),hoverPoints:Uue(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:Bf(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{hrName:"histogram_2d_contour",description:["The sample data from which statistics are computed is set in `x`","and `y` (where `x` and `y` represent marginal distributions,","binning is set in `xbins` and `ybins` in this case)","or `z` (where `z` represent the 2D distribution and binning set,","binning is set by `x` and `y` in this case).","The resulting distribution is visualized as a contour plot."].join(" ")}}}),vKe=Ee((e,t)=>{t.exports=pKe()}),Hue=Ee((e,t)=>{var n=xs(),r=Sue(),a=ao(),i=a.addOpacity,o=a.opacity,s=GG(),l=Fr().isArrayOrTypedArray,c=s.CONSTRAINT_REDUCTION,u=s.COMPARISON_OPS2;t.exports=function(e,t,a,s,d,p){var h,f,m,g=t.contours,y=a("contours.operation");(g._operation=c[y],function(e,t){var r;-1===u.indexOf(t.operation)?(e("contours.value",[0,1]),l(t.value)?t.value.length>2?t.value=t.value.slice(2):0===t.length?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:n(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),n(t.value)||(l(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}(a,g),"="===y?h=g.showlines=!0:(h=a("contours.showlines"),m=a("fillcolor",i((e.line||{}).color||d,.5))),h)&&(f=a("line.color",m&&o(m)?i(t.fillcolor,1):d),a("line.width",2),a("line.dash"));a("line.smoothing"),r(a,s,f,p)}}),wKe=Ee((e,t)=>{var n=Fr(),r=AG(),a=ab(),i=Hue(),o=YG(),s=ZG(),l=YR(),c=QR();t.exports=function(e,t,u,d){function p(r,a){return n.coerce(e,t,c,r,a)}if(r(e,t,p,d)){a(e,t,d,p),p("xhoverformat"),p("yhoverformat"),p("text"),p("hovertext"),p("hoverongaps"),p("hovertemplate"),p("hovertemplatefallback");var h="constraint"===p("contours.type");p("connectgaps",n.isArray1D(t.z)),h?i(e,t,p,d,u):(o(e,t,p,function(r){return n.coerce2(e,t,c,r)}),s(e,t,p,d)),t.contours&&"heatmap"===t.contours.coloring&&l(p,d),p("zorder")}else t.visible=!1}}),TKe=Ee((e,t)=>{t.exports={attributes:QR(),supplyDefaults:wKe(),calc:que(),plot:JG().plot,style:eX(),colorbar:tX(),hoverPoints:Uue(),moduleType:"trace",name:"contour",basePlotModule:Bf(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{description:["The data from which contour lines are computed is set in `z`.","Data in `z` must be a {2D array} of numbers.","Say that `z` has N rows and M columns, then by default,","these N rows correspond to N y coordinates","(set in `y` or auto-generated) and the M columns","correspond to M x coordinates (set in `x` or auto-generated).","By setting `transpose` to *true*, the above behavior is flipped."].join(" ")}}}),kKe=Ee((e,t)=>{t.exports=TKe()}),jue=Ee((e,t)=>{var{hovertemplateAttrs:n,texttemplateAttrs:r,templatefallbackAttrs:a}=p1(),i=tb(),o=Id(),s=S1(),l=Oc(),c=pp().dash,u=ms().extendFlat,d=o.marker,p=o.line,h=d.line;t.exports={a:{valType:"data_array",editType:"calc",description:["Sets the quantity of component `a` in each data point.","If `a`, `b`, and `c` are all provided, they need not be","normalized, only the relative values matter. If only two","arrays are provided they must be normalized to match","`ternary<i>.sum`."].join(" ")},b:{valType:"data_array",editType:"calc",description:["Sets the quantity of component `a` in each data point.","If `a`, `b`, and `c` are all provided, they need not be","normalized, only the relative values matter. If only two","arrays are provided they must be normalized to match","`ternary<i>.sum`."].join(" ")},c:{valType:"data_array",editType:"calc",description:["Sets the quantity of component `a` in each data point.","If `a`, `b`, and `c` are all provided, they need not be","normalized, only the relative values matter. If only two","arrays are provided they must be normalized to match","`ternary<i>.sum`."].join(" ")},sum:{valType:"number",dflt:0,min:0,editType:"calc",description:["The number each triplet should sum to,","if only two of `a`, `b`, and `c` are provided.","This overrides `ternary<i>.sum` to normalize this specific","trace, but does not affect the values displayed on the axes.","0 (or missing) means to use ternary<i>.sum"].join(" ")},mode:u({},o.mode,{dflt:"markers"}),text:u({},o.text,{description:["Sets text elements associated with each (a,b,c) point.","If a single string, the same string appears over","all the data points.","If an array of strings, the items are mapped in order to the","the data points in (a,b,c).","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")}),texttemplate:r({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:a({editType:"plot"}),hovertext:u({},o.hovertext,{description:["Sets hover text elements associated with each (a,b,c) point.","If a single string, the same string appears over","all the data points.","If an array of strings, the items are mapped in order to the","the data points in (a,b,c).","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")}),line:{color:p.color,width:p.width,dash:c,backoff:p.backoff,shape:u({},p.shape,{values:["linear","spline"]}),smoothing:p.smoothing,editType:"calc"},connectgaps:o.connectgaps,cliponaxis:o.cliponaxis,fill:u({},o.fill,{values:["none","toself","tonext"],dflt:"none",description:["Sets the area to fill with a solid color.","Use with `fillcolor` if not *none*.","scatterternary has a subset of the options available to scatter.","*toself* connects the endpoints of the trace (or each segment","of the trace if it has gaps) into a closed shape.","*tonext* fills the space between two traces if one completely","encloses the other (eg consecutive contour lines), and behaves like","*toself* if there is no trace before it. *tonext* should not be","used if one trace does not enclose the other."].join(" ")}),fillcolor:i(),marker:u({symbol:d.symbol,opacity:d.opacity,angle:d.angle,angleref:d.angleref,standoff:d.standoff,maxdisplayed:d.maxdisplayed,size:d.size,sizeref:d.sizeref,sizemin:d.sizemin,sizemode:d.sizemode,line:u({width:h.width,dash:h.dash,editType:"calc"},l("marker.line")),gradient:d.gradient,editType:"calc"},l("marker")),textfont:o.textfont,textposition:o.textposition,selected:o.selected,unselected:o.unselected,hoverinfo:u({},s.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:o.hoveron,hovertemplate:n(),hovertemplatefallback:a()}}),IKe=Ee((e,t)=>{var n=Fr(),r=S3(),a=Hc(),i=Wv(),o=Yg(),s=kS(),l=Zg(),c=ib(),u=jue();t.exports=function(e,t,d,p){function h(r,a){return n.coerce(e,t,u,r,a)}var f,m=h("a"),g=h("b"),y=h("c");if(m?(f=m.length,g?(f=Math.min(f,g.length),y&&(f=Math.min(f,y.length))):f=y?Math.min(f,y.length):0):g&&y&&(f=Math.min(g.length,y.length)),f){t._length=f,h("sum"),h("text"),h("hovertext"),"fills"!==t.hoveron&&(h("hovertemplate"),h("hovertemplatefallback")),h("mode",f<r.PTS_LINESONLY?"lines+markers":"lines"),a.hasMarkers(t)&&i(e,t,d,p,h,{gradient:!0}),a.hasLines(t)&&(o(e,t,d,p,h,{backoff:!0}),s(e,t,h),h("connectgaps")),a.hasText(t)&&(h("texttemplate"),h("texttemplatefallback"),l(e,t,p,h));var b=[];(a.hasMarkers(t)||a.hasText(t))&&(h("cliponaxis"),h("marker.maxdisplayed"),b.push("points")),h("fill"),"none"!==t.fill&&(c(e,t,d,h),a.hasLines(t)||s(e,t,h)),("tonext"===t.fill||"toself"===t.fill)&&b.push("fills"),h("hoveron",b.join("+")||"points"),n.coerceSelectionMarkerOpacity(t,h)}else t.visible=!1}}),WKe=Ee((e,t)=>{var n=es();t.exports=function(e,t,r){var a={},i=r[t.subplot]._subplot;return a.aLabel=n.tickText(i.aaxis,e.a,!0).text,a.bLabel=n.tickText(i.baxis,e.b,!0).text,a.cLabel=n.tickText(i.caxis,e.c,!0).text,a}}),HKe=Ee((e,t)=>{var n=xs(),r=$g(),a=E3(),i=Kg(),o=Jg().calcMarkerSize,s=["a","b","c"],l={a:["b","c"],b:["a","c"],c:["a","b"]};t.exports=function(e,t){var c,u,d,p,h,f,m=e._fullLayout[t.subplot].sum,g=t.sum||m,y={a:t.a,b:t.b,c:t.c},b=t.ids;for(c=0;c<s.length;c++)if(!y[d=s[c]]){for(h=y[l[d][0]],f=y[l[d][1]],p=new Array(h.length),u=0;u<h.length;u++)p[u]=g-h[u]-f[u];y[d]=p}var v,M,x,z,_,A,O=t._length,w=new Array(O);for(c=0;c<O;c++)v=y.a[c],M=y.b[c],x=y.c[c],n(v)&&n(M)&&n(x)?(1!==(z=m/((v=+v)+(M=+M)+(x=+x)))&&(v*=z,M*=z,x*=z),A=v,_=x-M,w[c]={x:_,y:A,a:v,b:M,c:x},b&&(w[c].id=b[c])):w[c]={x:!1,y:!1};return o(t,O),r(e,t),a(w,t),i(w,t),w}}),jKe=Ee((e,t)=>{var n=LS();t.exports=function(e,t,r){var a=t.plotContainer;a.select(".scatterlayer").selectAll("*").remove();for(var i=t.xaxis,o=t.yaxis,s={xaxis:i,yaxis:o,plot:a,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},l=t.layers.frontplot.select("g.scatterlayer"),c=0;c<r.length;c++){var u=r[c];u.length&&(u[0].trace._xA=i,u[0].trace._yA=o)}n(e,s,r,l)}}),XKe=Ee((e,t)=>{var n=WS();t.exports=function(e,t,r,a){var i=n(e,t,r,a);if(i&&!1!==i[0].index){var o=i[0];if(void 0===o.index){var s=1-o.y0/e.ya._length,l=e.xa._length,c=l*s/2,u=l-c;return o.x0=Math.max(Math.min(o.x0,u),c),o.x1=Math.max(Math.min(o.x1,u),c),i}var d=o.cd[o.index],p=o.trace,h=o.subplot;o.a=d.a,o.b=d.b,o.c=d.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var f={};f[p.subplot]={_subplot:h};var m=p._module.formatLabels(d,p,f);o.aLabel=m.aLabel,o.bLabel=m.bLabel,o.cLabel=m.cLabel;var g=d.hi||p.hoverinfo,y=[];if(!p.hovertemplate){var b=g.split("+");-1!==b.indexOf("all")&&(b=["a","b","c"]),-1!==b.indexOf("a")&&v(h.aaxis,o.aLabel),-1!==b.indexOf("b")&&v(h.baxis,o.bLabel),-1!==b.indexOf("c")&&v(h.caxis,o.cLabel)}return o.extraText=y.join("<br>"),o.hovertemplate=p.hovertemplate,i}function v(e,t){y.push(e._hovertitle+": "+t)}}}),ZKe=Ee((e,t)=>{t.exports=function(e,t,n,r,a){if(t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),r[a]){var i=r[a];e.a=i.a,e.b=i.b,e.c=i.c}else e.a=t.a,e.b=t.b,e.c=t.c;return e}}),oJe=Ee((e,t)=>{var n=mo(),r=Vh(),a=vo(),i=Fr(),o=i.strTranslate,s=i._,l=ao(),c=vs(),u=g3(),d=ms().extendFlat,p=td(),h=es(),f=p2(),m=_d(),g=Qy(),y=g.freeMode,b=g.rectMode,v=xw(),M=uf().prepSelect,x=uf().selectOnClick,z=uf().clearOutline,_=uf().clearSelectionsCache,A=sh();function O(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}t.exports=O;var w=O.prototype;w.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}},w.plot=function(e,t){var n=this,r=t[n.id],a=t._size;n._hasClipOnAxisFalse=!1;for(var i=0;i<e.length;i++){if(!1===e[i][0].trace.cliponaxis){n._hasClipOnAxisFalse=!0;break}}n.updateLayers(r),n.adjustLayout(r,a),p.generalUpdatePerTraceModule(n.graphDiv,n,e,r),n.layers.plotbg.select("path").call(l.fill,r.bgcolor)},w.makeFramework=function(e){var t=this,n=t.graphDiv,r=e[t.id],a=t.clipId="clip"+t.layoutId+t.id,o=t.clipIdRelative="clip-relative"+t.layoutId+t.id;t.clipDef=i.ensureSingleById(e._clips,"clipPath",a,function(e){e.append("path").attr("d","M0,0Z")}),t.clipDefRelative=i.ensureSingleById(e._clips,"clipPath",o,function(e){e.append("path").attr("d","M0,0Z")}),t.plotContainer=i.ensureSingle(t.container,"g",t.id),t.updateLayers(r),c.setClipUrl(t.layers.backplot,a,n),c.setClipUrl(t.layers.grids,a,n)},w.updateFx=function(e){e._ternarylayer.selectAll("g.toplevel").style("cursor","pan"===e.dragmode?"move":"crosshair")},w.updateLayers=function(e){var t=this.layers,r=["draglayer","plotbg","backplot","grids"];"below traces"===e.aaxis.layer&&r.push("aaxis","aline"),"below traces"===e.baxis.layer&&r.push("baxis","bline"),"below traces"===e.caxis.layer&&r.push("caxis","cline"),r.push("frontplot"),"above traces"===e.aaxis.layer&&r.push("aaxis","aline"),"above traces"===e.baxis.layer&&r.push("baxis","bline"),"above traces"===e.caxis.layer&&r.push("caxis","cline");var a=this.plotContainer.selectAll("g.toplevel").data(r,String),i=["agrid","bgrid","cgrid"];a.enter().append("g").attr("class",function(e){return"toplevel "+e}).each(function(e){var r=n.select(this);t[e]=r,"frontplot"===e?r.append("g").classed("scatterlayer",!0):"backplot"===e?r.append("g").classed("maplayer",!0):"plotbg"===e?r.append("path").attr("d","M0,0Z"):"aline"===e||"bline"===e||"cline"===e?r.append("path"):"grids"===e&&i.forEach(function(e){t[e]=r.append("g").classed("grid "+e,!0)})}),a.order()};var k=Math.sqrt(4/3);w.adjustLayout=function(e,t){var n,r,a,i,s,p,h=this,f=e.domain,m=(f.x[0]+f.x[1])/2,g=(f.y[0]+f.y[1])/2,y=f.x[1]-f.x[0],b=f.y[1]-f.y[0],v=y*t.w,M=b*t.h,x=e.sum,z=e.aaxis.min,_=e.baxis.min,A=e.caxis.min;v>k*M?a=(i=M)*k:i=(a=v)/k,s=y*a/v,p=b*i/M,n=t.l+t.w*m-a/2,r=t.t+t.h*(1-g)-i/2,h.x0=n,h.y0=r,h.w=a,h.h=i,h.sum=x,h.xaxis={type:"linear",range:[z+2*A-x,x-z-2*_],domain:[m-s/2,m+s/2],_id:"x"},u(h.xaxis,h.graphDiv._fullLayout),h.xaxis.setScale(),h.xaxis.isPtWithinRange=function(e){return e.a>=h.aaxis.range[0]&&e.a<=h.aaxis.range[1]&&e.b>=h.baxis.range[1]&&e.b<=h.baxis.range[0]&&e.c>=h.caxis.range[1]&&e.c<=h.caxis.range[0]},h.yaxis={type:"linear",range:[z,x-_-A],domain:[g-p/2,g+p/2],_id:"y"},u(h.yaxis,h.graphDiv._fullLayout),h.yaxis.setScale(),h.yaxis.isPtWithinRange=function(){return!0};var O=h.yaxis.domain[0],w=h.aaxis=d({},e.aaxis,{range:[z,x-_-A],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[O,O+p*k],anchor:"free",position:0,_id:"y",_length:a});u(w,h.graphDiv._fullLayout),w.setScale();var T=h.baxis=d({},e.baxis,{range:[x-z-A,_],side:"bottom",domain:h.xaxis.domain,anchor:"free",position:0,_id:"x",_length:a});u(T,h.graphDiv._fullLayout),T.setScale();var S=h.caxis=d({},e.caxis,{range:[x-z-_,A],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[O,O+p*k],anchor:"free",position:0,_id:"y",_length:a});u(S,h.graphDiv._fullLayout),S.setScale();var C="M"+n+","+(r+i)+"h"+a+"l-"+a/2+",-"+i+"Z";h.clipDef.select("path").attr("d",C),h.layers.plotbg.select("path").attr("d",C);var E="M0,"+i+"h"+a+"l-"+a/2+",-"+i+"Z";h.clipDefRelative.select("path").attr("d",E);var q=o(n,r);h.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",q),h.clipDefRelative.select("path").attr("transform",null);var D=o(n-T._offset,r+i);h.layers.baxis.attr("transform",D),h.layers.bgrid.attr("transform",D);var R=o(n+a/2,r)+"rotate(30)"+o(0,-w._offset);h.layers.aaxis.attr("transform",R),h.layers.agrid.attr("transform",R);var L=o(n+a/2,r)+"rotate(-30)"+o(0,-S._offset);h.layers.caxis.attr("transform",L),h.layers.cgrid.attr("transform",L),h.drawAxes(!0),h.layers.aline.select("path").attr("d",w.showline?"M"+n+","+(r+i)+"l"+a/2+",-"+i:"M0,0").call(l.stroke,w.linecolor||"#000").style("stroke-width",(w.linewidth||0)+"px"),h.layers.bline.select("path").attr("d",T.showline?"M"+n+","+(r+i)+"h"+a:"M0,0").call(l.stroke,T.linecolor||"#000").style("stroke-width",(T.linewidth||0)+"px"),h.layers.cline.select("path").attr("d",S.showline?"M"+(n+a/2)+","+r+"l"+a/2+","+i:"M0,0").call(l.stroke,S.linecolor||"#000").style("stroke-width",(S.linewidth||0)+"px"),h.graphDiv._context.staticPlot||h.initInteractions(),c.setClipUrl(h.layers.frontplot,h._hasClipOnAxisFalse?null:h.clipId,h.graphDiv)},w.drawAxes=function(e){var t=this,n=t.graphDiv,r=t.id.slice(7)+"title",a=t.layers,i=t.aaxis,o=t.baxis,l=t.caxis;if(t.drawAx(i),t.drawAx(o),t.drawAx(l),e){var c=Math.max(i.showticklabels?i.tickfont.size/2:0,(l.showticklabels?.75*l.tickfont.size:0)+("outside"===l.ticks?.87*l.ticklen:0)),u=(o.showticklabels?o.tickfont.size:0)+("outside"===o.ticks?o.ticklen:0)+3;a["a-title"]=v.draw(n,"a"+r,{propContainer:i,propName:t.id+".aaxis.title.text",placeholder:s(n,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-i.title.font.size/3-c,"text-anchor":"middle"}}),a["b-title"]=v.draw(n,"b"+r,{propContainer:o,propName:t.id+".baxis.title.text",placeholder:s(n,"Click to enter Component B title"),attributes:{x:t.x0-u,y:t.y0+t.h+.83*o.title.font.size+u,"text-anchor":"middle"}}),a["c-title"]=v.draw(n,"c"+r,{propContainer:l,propName:t.id+".caxis.title.text",placeholder:s(n,"Click to enter Component C title"),attributes:{x:t.x0+t.w+u,y:t.y0+t.h+.83*l.title.font.size+u,"text-anchor":"middle"}})}},w.drawAx=function(e){var t=this,n=t.graphDiv,r=e._name,a=r.charAt(0),o=e._id,s=t.layers[r],l=a+"tickLayout",c=function(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}(e);t[l]!==c&&(s.selectAll("."+o+"tick").remove(),t[l]=c),e.setScale();var u=h.calcTicks(e),d=h.clipEnds(e,u),p=h.makeTransTickFn(e),f=h.getTickSigns(e)[2],m=i.deg2rad(30),g=f*(e.linewidth||1)/2,y=f*e.ticklen,b=t.w,v=t.h,M="b"===a?"M0,"+g+"l"+Math.sin(m)*y+","+Math.cos(m)*y:"M"+g+",0l"+Math.cos(m)*y+","+-Math.sin(m)*y,x={a:"M0,0l"+v+",-"+b/2,b:"M0,0l-"+b/2+",-"+v,c:"M0,0l-"+v+","+b/2}[a];h.drawTicks(n,e,{vals:"inside"===e.ticks?d:u,layer:s,path:M,transFn:p,crisp:!1}),h.drawGrid(n,e,{vals:d,layer:t.layers[a+"grid"],path:x,transFn:p,crisp:!1}),h.drawLabels(n,e,{vals:u,layer:s,transFn:p,labelFns:h.makeLabelFns(e,0,30)})};var T=A.MINZOOM/2+.87,S="m-0.87,.5h"+T+"v3h-"+(T+5.2)+"l"+(T/2+2.6)+",-"+(.87*T+4.5)+"l2.6,1.5l-"+T/2+","+.87*T+"Z",C="m0.87,.5h-"+T+"v3h"+(T+5.2)+"l-"+(T/2+2.6)+",-"+(.87*T+4.5)+"l-2.6,1.5l"+T/2+","+.87*T+"Z",E="m0,1l"+T/2+","+.87*T+"l2.6,-1.5l-"+(T/2+2.6)+",-"+(.87*T+4.5)+"l-"+(T/2+2.6)+","+(.87*T+4.5)+"l2.6,1.5l"+T/2+",-"+.87*T+"Z",q=!0;function D(e){n.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}w.clearOutline=function(){_(this.dragOptions),z(this.dragOptions.gd)},w.initInteractions=function(){var e,t,n,u,d,p,h,g,v,z,_,O,w=this,T=w.layers.plotbg.select("path").node(),R=w.graphDiv,L=R._fullLayout._zoomlayer;function I(e){var t={};return t[w.id+".aaxis.min"]=e.a,t[w.id+".baxis.min"]=e.b,t[w.id+".caxis.min"]=e.c,t}function W(e,t){var n=R._fullLayout.clickmode;D(R),2===e&&(R.emit("plotly_doubleclick",null),a.call("_guiRelayout",R,I({a:0,b:0,c:0}))),n.indexOf("select")>-1&&1===e&&x(t,R,[w.xaxis],[w.yaxis],w.id,w.dragOptions),n.indexOf("event")>-1&&m.click(R,t,w.id)}function N(e,t){return 1-t/w.h}function P(e,t){return 1-(e+(w.h-t)/Math.sqrt(3))/w.w}function B(e,t){return(e-(w.h-t)/Math.sqrt(3))/w.w}function F(r,a){var i=n+r*e,o=u+a*t,s=Math.max(0,Math.min(1,N(0,u),N(0,o))),l=Math.max(0,Math.min(1,P(n,u),P(i,o))),c=Math.max(0,Math.min(1,B(n,u),B(i,o))),f=(s/2+c)*w.w,m=(1-s/2-l)*w.w,y=(f+m)/2,b=m-f,M=(1-s)*w.h,x=M-b/k;b<A.MINZOOM?(h=d,_.attr("d",v),O.attr("d","M0,0Z")):(h={a:d.a+s*p,b:d.b+l*p,c:d.c+c*p},_.attr("d",v+"M"+f+","+M+"H"+m+"L"+y+","+x+"L"+f+","+M+"Z"),O.attr("d","M"+n+","+u+"m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2ZM"+f+","+M+S+"M"+m+","+M+C+"M"+y+","+x+E)),z||(_.transition().style("fill",g>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),O.transition().style("opacity",1).duration(200),z=!0),R.emit("plotly_relayouting",I(h))}function j(){D(R),h!==d&&(a.call("_guiRelayout",R,I(h)),q&&R.data&&R._context.showTips&&(i.notifier(s(R,"Double-click to zoom back out"),"long",R),q=!1))}function U(e,t){var n=e/w.xaxis._m,r=t/w.yaxis._m,a=[(h={a:d.a-r,b:d.b+(n+r)/2,c:d.c-(n-r)/2}).a,h.b,h.c].sort(i.sorterAsc),s=a.indexOf(h.a),l=a.indexOf(h.b),u=a.indexOf(h.c);a[0]<0&&(a[1]+a[0]/2<0?(a[2]+=a[0]+a[1],a[0]=a[1]=0):(a[2]+=a[0]/2,a[1]+=a[0]/2,a[0]=0),h={a:a[s],b:a[l],c:a[u]},t=(d.a-h.a)*w.yaxis._m,e=(d.c-h.c-d.b+h.b)*w.xaxis._m);var p=o(w.x0+e,w.y0+t);w.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",p);var f=o(-e,-t);w.clipDefRelative.select("path").attr("transform",f),w.aaxis.range=[h.a,w.sum-h.b-h.c],w.baxis.range=[w.sum-h.a-h.c,h.b],w.caxis.range=[w.sum-h.a-h.b,h.c],w.drawAxes(!1),w._hasClipOnAxisFalse&&w.plotContainer.select(".scatterlayer").selectAll(".trace").call(c.hideOutsideRangePoints,w),R.emit("plotly_relayouting",I(h))}function V(){a.call("_guiRelayout",R,I(h))}this.dragOptions={element:T,gd:R,plotinfo:{id:w.id,domain:R._fullLayout[w.id].domain,xaxis:w.xaxis,yaxis:w.yaxis},subplot:w.id,prepFn:function(a,s,c){w.dragOptions.xaxes=[w.xaxis],w.dragOptions.yaxes=[w.yaxis],e=R._fullLayout._invScaleX,t=R._fullLayout._invScaleY;var f=w.dragOptions.dragmode=R._fullLayout.dragmode;y(f)?w.dragOptions.minDrag=1:w.dragOptions.minDrag=void 0,"zoom"===f?(w.dragOptions.moveFn=F,w.dragOptions.clickFn=W,w.dragOptions.doneFn=j,function(e,t,a){var s=T.getBoundingClientRect();n=t-s.left,u=a-s.top,R._fullLayout._calcInverseTransform(R);var c=R._fullLayout._invTransform,f=i.apply3DTransform(c)(n,u);n=f[0],u=f[1],d={a:w.aaxis.range[0],b:w.baxis.range[1],c:w.caxis.range[1]},h=d,p=w.aaxis.range[1]-d.a,g=r(w.graphDiv._fullLayout[w.id].bgcolor).getLuminance(),v="M0,"+w.h+"L"+w.w/2+", 0L"+w.w+","+w.h+"Z",z=!1,_=L.append("path").attr("class","zoombox").attr("transform",o(w.x0,w.y0)).style({fill:g>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",v),O=L.append("path").attr("class","zoombox-corners").attr("transform",o(w.x0,w.y0)).style({fill:l.background,stroke:l.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),w.clearOutline(R)}(0,s,c)):"pan"===f?(w.dragOptions.moveFn=U,w.dragOptions.clickFn=W,w.dragOptions.doneFn=V,d={a:w.aaxis.range[0],b:w.baxis.range[1],c:w.caxis.range[1]},h=d,w.clearOutline(R)):(b(f)||y(f))&&M(a,s,c,w.dragOptions,f)}},T.onmousemove=function(e){m.hover(R,e,w.id),R._fullLayout._lasthover=T,R._fullLayout._hoversubplot=w.id},T.onmouseout=function(e){R._dragging||f.unhover(R,e)},f.init(this.dragOptions)}}),Que=Ee((e,t)=>{var n=oh(),r=ad().attributes,a=vp(),i=Wu().overrideAll,o=ms().extendFlat,s={title:{text:a.title.text,font:a.title.font},color:a.color,tickmode:a.minor.tickmode,nticks:o({},a.nticks,{dflt:6,min:1}),tick0:a.tick0,dtick:a.dtick,tickvals:a.tickvals,ticktext:a.ticktext,ticks:a.ticks,ticklen:a.ticklen,tickwidth:a.tickwidth,tickcolor:a.tickcolor,ticklabelstep:a.ticklabelstep,showticklabels:a.showticklabels,labelalias:a.labelalias,showtickprefix:a.showtickprefix,tickprefix:a.tickprefix,showticksuffix:a.showticksuffix,ticksuffix:a.ticksuffix,showexponent:a.showexponent,exponentformat:a.exponentformat,minexponent:a.minexponent,separatethousands:a.separatethousands,tickfont:a.tickfont,tickangle:a.tickangle,tickformat:a.tickformat,tickformatstops:a.tickformatstops,hoverformat:a.hoverformat,showline:o({},a.showline,{dflt:!0}),linecolor:a.linecolor,linewidth:a.linewidth,showgrid:o({},a.showgrid,{dflt:!0}),gridcolor:a.gridcolor,gridwidth:a.gridwidth,griddash:a.griddash,layer:a.layer,min:{valType:"number",dflt:0,min:0,description:["The minimum value visible on this axis.","The maximum is determined by the sum minus the minimum","values of the other two axes. The full view corresponds to","all the minima set to zero."].join(" ")}},l=t.exports=i({domain:r({name:"ternary"}),bgcolor:{valType:"color",dflt:n.background,description:"Set the background color of the subplot"},sum:{valType:"number",dflt:1,min:0,description:["The number each triplet should sum to,","and the maximum range of each axis"].join(" ")},aaxis:s,baxis:s,caxis:s},"plot","from-root");l.uirevision={valType:"any",editType:"none",description:["Controls persistence of user-driven changes in axis `min` and `title`,","if not overridden in the individual axes.","Defaults to `layout.uirevision`."].join(" ")},l.aaxis.uirevision=l.baxis.uirevision=l.caxis.uirevision={valType:"any",editType:"none",description:["Controls persistence of user-driven changes in axis `min`,","and `title` if in `editable: true` configuration.","Defaults to `ternary<N>.uirevision`."].join(" ")}}),p4=Ee((e,t)=>{var n=Fr(),r=Kl(),a=ad().defaults;t.exports=function(e,t,i,o){var s,l,c=o.type,u=o.attributes,d=o.handleDefaults,p=o.partition||"x",h=t._subplots[c],f=h.length,m=f&&h[0].replace(/\d+$/,"");function g(e,t){return n.coerce(s,l,u,e,t)}for(var y=0;y<f;y++){var b=h[y];s=e[b]?e[b]:e[b]={},l=r.newContainer(t,b,m),o.noUirevision||g("uirevision",t.uirevision);var v={};v[p]=[y/f,(y+1)/f],a(l,t,g,v),o.id=b,d(s,l,g,o)}}}),fJe=Ee((e,t)=>{var n=ao(),r=Kl(),a=Fr(),i=p4(),o=Nz(),s=Wz(),l=nS(),c=mw(),u=wR(),d=Que(),p=["aaxis","baxis","caxis"];function h(e,t,a,i){var o=a("bgcolor"),s=a("sum");i.bgColor=n.combine(o,i.paper_bgcolor);for(var l,c,u,d=0;d<p.length;d++)c=e[l=p[d]]||{},(u=r.newContainer(t,l))._name=l,f(c,u,i,t);var h=t.aaxis,m=t.baxis,g=t.caxis;h.min+m.min+g.min>=s&&(h.min=0,m.min=0,g.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function f(e,t,n,r){var i=d[t._name];function p(n,r){return a.coerce(e,t,i,n,r)}p("uirevision",r.uirevision),t.type="linear";var h=p("color"),f=h!==i.color.dflt?h:n.font.color,m=t._name.charAt(0).toUpperCase(),g="Component "+m,y=p("title.text",g);t._hovertitle=y===g?y:m,a.coerceFont(p,"title.font",n.font,{overrideDflt:{size:a.bigFont(n.font.size),color:f}}),p("min"),c(e,t,p,"linear"),s(e,t,p,"linear"),o(e,t,p,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),l(e,t,p,{outerTicks:!0}),p("showticklabels")&&(a.coerceFont(p,"tickfont",n.font,{overrideDflt:{color:f}}),p("tickangle"),p("tickformat")),u(e,t,p,{dfltColor:h,bgColor:n.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),p("hoverformat"),p("layer")}t.exports=function(e,t,n){i(e,t,n,{type:"ternary",attributes:d,handleDefaults:h,font:t.font,paper_bgcolor:t.paper_bgcolor})}}),hJe=Ee(e=>{var t=oJe(),n=mp().getSubplotCalcData,r=Fr().counterRegex,a="ternary";e.name=a;var i=e.attr="subplot";e.idRoot=a,e.idRegex=e.attrRegex=r(a),(e.attributes={})[i]={valType:"subplotid",dflt:"ternary",editType:"calc",description:["Sets a reference between this trace's data coordinates and","a ternary subplot.","If *ternary* (the default value), the data refer to `layout.ternary`.","If *ternary2*, the data refer to `layout.ternary2`, and so on."].join(" ")},e.layoutAttributes=Que(),e.supplyLayoutDefaults=fJe(),e.plot=function(e){for(var r=e._fullLayout,i=e.calcdata,o=r._subplots[a],s=0;s<o.length;s++){var l=o[s],c=n(i,a,l),u=r[l]._subplot;u||(u=new t({id:l,graphDiv:e,container:r._ternarylayer.node()},r),r[l]._subplot=u),u.plot(c,r,e._promises)}},e.clean=function(e,t,n,r){for(var i=r._subplots[a]||[],o=0;o<i.length;o++){var s=i[o],l=r[s]._subplot;!t[s]&&l&&(l.plotContainer.remove(),l.clipDef.remove(),l.clipDefRelative.remove(),l.layers["a-title"].remove(),l.layers["b-title"].remove(),l.layers["c-title"].remove())}},e.updateFx=function(e){var t=e._fullLayout;t._ternarylayer.selectAll("g.toplevel").style("cursor","pan"===t.dragmode?"move":"crosshair")}}),mJe=Ee((e,t)=>{t.exports={attributes:jue(),supplyDefaults:IKe(),colorbar:Wp(),formatLabels:WKe(),calc:HKe(),plot:jKe(),style:vm().style,styleOnSelect:vm().styleOnSelect,hoverPoints:XKe(),selectPoints:FS(),eventData:ZKe(),moduleType:"trace",name:"scatterternary",basePlotModule:hJe(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{hrName:"scatter_ternary",description:["Provides similar functionality to the *scatter* type but on a ternary phase diagram.","The data is provided by at least two arrays out of `a`, `b`, `c` triplets."].join(" ")}}}),gJe=Ee((e,t)=>{t.exports=mJe()}),ede=Ee((e,t)=>{var n=VR(),r=ms().extendFlat,a=Pd().axisHoverFormat;t.exports={y:n.y,x:n.x,x0:n.x0,y0:n.y0,xhoverformat:a("x"),yhoverformat:a("y"),name:r({},n.name,{description:["Sets the trace name.","The trace name appears as the legend item and on hover.","For violin traces, the name will also be used for the position","coordinate, if `x` and `x0` (`y` and `y0` if horizontal) are","missing and the position axis is categorical.","Note that the trace name is also used as a default value","for attribute `scalegroup` (please see its description for details)."].join(" ")}),orientation:r({},n.orientation,{description:["Sets the orientation of the violin(s).","If *v* (*h*), the distribution is visualized along","the vertical (horizontal)."].join(" ")}),bandwidth:{valType:"number",min:0,editType:"calc",description:["Sets the bandwidth used to compute the kernel density estimate.","By default, the bandwidth is determined by Silverman's rule of thumb."].join(" ")},scalegroup:{valType:"string",dflt:"",editType:"calc",description:["If there are multiple violins that should be sized according to","to some metric (see `scalemode`), link them by providing a non-empty group id here","shared by every trace in the same group.","If a violin's `width` is undefined, `scalegroup` will default to the trace's name.","In this case, violins with the same names will be linked together"].join(" ")},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc",description:["Sets the metric by which the width of each violin is determined.","*width* means each violin has the same (max) width","*count* means the violins are scaled by the number of sample points making","up each violin."].join(" ")},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc",description:["Sets the method by which the span in data space where the density function will be computed.","*soft* means the span goes from the sample's minimum value minus two bandwidths","to the sample's maximum value plus two bandwidths.","*hard* means the span goes from the sample's minimum to its maximum value.","For custom span settings, use mode *manual* and fill in the `span` attribute."].join(" ")},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc",description:["Sets the span in data space for which the density function will be computed.","Has an effect only when `spanmode` is set to *manual*."].join(" ")},line:{color:{valType:"color",editType:"style",description:"Sets the color of line bounding the violin(s)."},width:{valType:"number",min:0,dflt:2,editType:"style",description:"Sets the width (in px) of line bounding the violin(s)."},editType:"plot"},fillcolor:n.fillcolor,points:r({},n.boxpoints,{description:["If *outliers*, only the sample points lying outside the whiskers","are shown","If *suspectedoutliers*, the outlier points are shown and","points either less than 4*Q1-3*Q3 or greater than 4*Q3-3*Q1","are highlighted (see `outliercolor`)","If *all*, all sample points are shown","If *false*, only the violins are shown with no sample points.","Defaults to *suspectedoutliers* when `marker.outliercolor` or","`marker.line.outliercolor` is set,","otherwise defaults to *outliers*."].join(" ")}),jitter:r({},n.jitter,{description:["Sets the amount of jitter in the sample points drawn.","If *0*, the sample points align along the distribution axis.","If *1*, the sample points are drawn in a random jitter of width","equal to the width of the violins."].join(" ")}),pointpos:r({},n.pointpos,{description:["Sets the position of the sample points in relation to the violins.","If *0*, the sample points are places over the center of the violins.","Positive (negative) values correspond to positions to the","right (left) for vertical violins and above (below) for horizontal violins."].join(" ")}),width:r({},n.width,{description:["Sets the width of the violin in data coordinates.","If *0* (default value) the width is automatically selected based on the positions","of other violin traces in the same subplot."].join(" ")}),marker:n.marker,text:n.text,hovertext:n.hovertext,hovertemplate:n.hovertemplate,hovertemplatefallback:n.hovertemplatefallback,quartilemethod:n.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines if an miniature box plot is drawn inside the violins. "].join(" ")},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot",description:["Sets the width of the inner box plots relative to","the violins' width.","For example, with 1, the inner box plots are as wide as the violins."].join(" ")},fillcolor:{valType:"color",editType:"style",description:"Sets the inner box plot fill color."},line:{color:{valType:"color",editType:"style",description:"Sets the inner box plot bounding line color."},width:{valType:"number",min:0,editType:"style",description:"Sets the inner box plot bounding line width."},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines if a line corresponding to the sample's mean is shown","inside the violins.","If `box.visible` is turned on, the mean line is drawn inside the inner box.","Otherwise, the mean line is drawn from one side of the violin to other."].join(" ")},color:{valType:"color",editType:"style",description:"Sets the mean line color."},width:{valType:"number",min:0,editType:"style",description:"Sets the mean line width."},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc",description:["Determines on which side of the position value the density function making up","one half of a violin is plotted.","Useful when comparing two violin traces under *overlay* mode, where one trace","has `side` set to *positive* and the other to *negative*."].join(" ")},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style",description:["Do the hover effects highlight individual violins","or sample points or the kernel density estimate or any combination of them?"].join(" ")},zorder:n.zorder}}),nde=Ee((e,t)=>{var n=jR(),r=Fr().extendFlat;t.exports={violinmode:r({},n.boxmode,{description:["Determines how violins at the same location coordinate","are displayed on the graph.","If *group*, the violins are plotted next to one another","centered around the shared location.","If *overlay*, the violins are plotted over one another,","you might need to set *opacity* to see them multiple violins.","Has no effect on traces that have *width* set."].join(" ")}),violingap:r({},n.boxgap,{description:["Sets the gap (in plot fraction) between violins of","adjacent location coordinates.","Has no effect on traces that have *width* set."].join(" ")}),violingroupgap:r({},n.boxgroupgap,{description:["Sets the gap (in plot fraction) between violins of","the same location coordinate.","Has no effect on traces that have *width* set."].join(" ")})}}),wJe=Ee((e,t)=>{var n=Fr(),r=ao(),a=XR(),i=ede();t.exports=function(e,t,o,s){function l(r,a){return n.coerce(e,t,i,r,a)}function c(r,a){return n.coerce2(e,t,i,r,a)}if(a.handleSampleDefaults(e,t,l,s),!1!==t.visible){l("bandwidth"),l("side"),l("width")||(l("scalegroup",t.name),l("scalemode"));var u,d=l("span");Array.isArray(d)&&(u="manual"),l("spanmode",u);var p=l("line.color",(e.marker||{}).color||o),h=l("line.width"),f=l("fillcolor",r.addOpacity(t.line.color,.5));a.handlePointsDefaults(e,t,l,{prefix:""});var m=c("box.width"),g=c("box.fillcolor",f),y=c("box.line.color",p),b=c("box.line.width",h);l("box.visible",!!(m||g||y||b))||(t.box={visible:!1});var v=c("meanline.color",p),M=c("meanline.width",h);l("meanline.visible",!(!v&&!M))||(t.meanline={visible:!1}),l("quartilemethod"),l("zorder")}}}),TJe=Ee((e,t)=>{var n=Fr(),r=nde(),a=yG();t.exports=function(e,t,i){a._supply(e,t,i,function(a,i){return n.coerce(e,t,r,a,i)},"violin")}}),sX=Ee(e=>{var t=Fr(),n=function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)};e.makeKDE=function(e,t,r){var a=r.length,i=n,o=e.bandwidth,s=1/(a*o);return function(e){for(var t=0,n=0;n<a;n++)t+=i((e-r[n])/o);return s*t}},e.getPositionOnKdePath=function(e,n,r){var a,i;"h"===n.orientation?(a="y",i="x"):(a="x",i="y");var o=t.findPointOnPath(e.path,r,i,{pathLength:e.pathLength}),s=e.posCenterPx,l=o[a];return[l,"both"===n.side?2*s-l:s]},e.getKdeValue=function(t,n,r){var a=t.pts.map(e.extractVal);return e.makeKDE(t,n,a)(r)/t.posDensityScale},e.extractVal=function(e){return e.v}}),CJe=Ee((e,t)=>{var n=Fr(),r=es(),a=$ce(),i=sX(),o=T0().BADNUM;function s(e,t,r){var a=t.max-t.min;if(!a)return e.bandwidth?e.bandwidth:0;if(e.bandwidth)return Math.max(e.bandwidth,a/1e4);var i=r.length,o=n.stdev(r,i-1,t.mean);return Math.max(function(e,t,n){return 1.059*Math.min(t,n/1.349)*Math.pow(e,-.2)}(i,o,t.q3-t.q1),a/100)}function l(e,t,n,a){var i,s=e.spanmode,l=e.span||[],c=[t.min,t.max],u=[t.min-2*a,t.max+2*a];function d(r){var a=l[r],i="multicategory"===n.type?n.r2c(a):n.d2c(a,0,e[t.valLetter+"calendar"]);return i===o?u[r]:i}var p={type:"linear",range:i="soft"===s?u:"hard"===s?c:[d(0),d(1)]};return r.setConvert(p),p.cleanRange(),i}t.exports=function(e,t){var o=a(e,t);if(o[0].t.empty)return o;for(var c=e._fullLayout,u=r.getFromId(e,t["h"===t.orientation?"xaxis":"yaxis"]),d=1/0,p=-1/0,h=0,f=0,m=0;m<o.length;m++){var g=o[m],y=g.pts.map(i.extractVal),b=g.bandwidth=s(t,g,y),v=g.span=l(t,g,u,b);if(g.min===g.max&&0===b)v=g.span=[g.min,g.max],g.density=[{v:1,t:v[0]}],g.bandwidth=b,h=Math.max(h,1);else{var M=v[1]-v[0],x=Math.ceil(M/(b/3)),z=M/x;if(!isFinite(z)||!isFinite(x))return n.error("Something went wrong with computing the violin span"),o[0].t.empty=!0,o;var _=i.makeKDE(g,t,y);g.density=new Array(x+1);for(var A=0;A<g.density.length;A++){var O=v[0]+A*z,w=_(O);g.density[A]={v:w,t:O},h=Math.max(h,w)}}f=Math.max(f,y.length),d=Math.min(d,v[0]),p=Math.max(p,v[1])}var k=r.findExtremes(u,[d,p],{padded:!0});if(t._extremes[u._id]=k,t.width)o[0].t.maxKDE=h;else{var T=c._violinScaleGroupStats,S=t.scalegroup,C=T[S];C?(C.maxKDE=Math.max(C.maxKDE,h),C.maxCount=Math.max(C.maxCount,f)):T[S]={maxKDE:h,maxCount:f}}return o[0].t.labels.kde=n._(e,"kde:"),o}}),DJe=Ee((e,t)=>{var n=MG().setPositionOffset,r=["v","h"];t.exports=function(e,t){for(var a=e.calcdata,i=t.xaxis,o=t.yaxis,s=0;s<r.length;s++){for(var l=r[s],c="h"===l?o:i,u=[],d=0;d<a.length;d++){var p=a[d],h=p[0].t,f=p[0].trace;!0===f.visible&&"violin"===f.type&&!h.empty&&f.orientation===l&&f.xaxis===i._id&&f.yaxis===o._id&&u.push(d)}n("violin",e,u,c)}}}),LJe=Ee((e,t)=>{var n=mo(),r=Fr(),a=vs(),i=xG(),o=R1e(),s=sX();t.exports=function(e,t,l,c){var u=e._context.staticPlot,d=e._fullLayout,p=t.xaxis,h=t.yaxis;function f(e,t){var n=o(e,{xaxis:p,yaxis:h,trace:t,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return a.smoothopen(n[0],1)}r.makeTraceGroups(c,l,"trace violins").each(function(e){var a=n.select(this),o=e[0],l=o.t,c=o.trace;if(!0!==c.visible||l.empty)a.remove();else{var m=l.bPos,g=l.bdPos,y=t[l.valLetter+"axis"],b=t[l.posLetter+"axis"],v="both"===c.side,M=v||"positive"===c.side,x=v||"negative"===c.side,z=a.selectAll("path.violin").data(r.identity);z.enter().append("path").style("vector-effect",u?"none":"non-scaling-stroke").attr("class","violin"),z.exit().remove(),z.each(function(e){var t,r,a,i,o,s,u,p,h=n.select(this),z=e.density,_=z.length,A=b.c2l(e.pos+m,!0),O=b.l2p(A);if(c.width)t=l.maxKDE/g;else{var w=d._violinScaleGroupStats[c.scalegroup];t="count"===c.scalemode?w.maxKDE/g*(w.maxCount/e.pts.length):w.maxKDE/g}if(M){for(u=new Array(_),o=0;o<_;o++)(p=u[o]={})[l.posLetter]=A+z[o].v/t,p[l.valLetter]=y.c2l(z[o].t,!0);r=f(u,c)}if(x){for(u=new Array(_),s=0,o=_-1;s<_;s++,o--)(p=u[s]={})[l.posLetter]=A-z[o].v/t,p[l.valLetter]=y.c2l(z[o].t,!0);a=f(u,c)}if(v)i=r+"L"+a.slice(1)+"Z";else{var k=[O,y.c2p(z[0].t)],T=[O,y.c2p(z[_-1].t)];"h"===c.orientation&&(k.reverse(),T.reverse()),i=M?"M"+k+"L"+r.slice(1)+"L"+T:"M"+T+"L"+a.slice(1)+"L"+k}h.attr("d",i),e.posCenterPx=O,e.posDensityScale=t*g,e.path=h.node(),e.pathLength=e.path.getTotalLength()/(v?2:1)});var _,A,O,w=c.box,k=w.width,T=(w.line||{}).width;v?(_=g*k,A=0):M?(_=[0,g*k/2],A=T*{x:1,y:-1}[l.posLetter]):(_=[g*k/2,0],A=T*{x:-1,y:1}[l.posLetter]),i.plotBoxAndWhiskers(a,{pos:b,val:y},c,{bPos:m,bdPos:_,bPosPxOffset:A}),i.plotBoxMean(a,{pos:b,val:y},c,{bPos:m,bdPos:_,bPosPxOffset:A}),!c.box.visible&&c.meanline.visible&&(O=r.identity);var S=a.selectAll("path.meanline").data(O||[]);S.enter().append("path").attr("class","meanline").style("fill","none").style("vector-effect",u?"none":"non-scaling-stroke"),S.exit().remove(),S.each(function(e){var t=y.c2p(e.mean,!0),r=s.getPositionOnKdePath(e,c,t);n.select(this).attr("d","h"===c.orientation?"M"+t+","+r[0]+"V"+r[1]:"M"+r[0]+","+t+"H"+r[1])}),i.plotPoints(a,{x:p,y:h},c,l)}})}}),NJe=Ee((e,t)=>{var n=mo(),r=ao(),a=vm().stylePoints;t.exports=function(e){var t=n.select(e).selectAll("g.trace.violins");t.style("opacity",function(e){return e[0].trace.opacity}),t.each(function(t){var i=t[0].trace,o=n.select(this),s=i.box||{},l=s.line||{},c=i.meanline||{},u=c.width;o.selectAll("path.violin").style("stroke-width",i.line.width+"px").call(r.stroke,i.line.color).call(r.fill,i.fillcolor),o.selectAll("path.box").style("stroke-width",l.width+"px").call(r.stroke,l.color).call(r.fill,s.fillcolor);var d={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};o.selectAll("path.mean").style(d).call(r.stroke,c.color),o.selectAll("path.meanline").style(d).call(r.stroke,c.color),a(o,i,e)})}}),UJe=Ee((e,t)=>{var n=ao(),r=Fr(),a=es(),i=tue(),o=sX();t.exports=function(e,t,s,l,c){c||(c={});var u,d,p=c.hoverLayer,h=e.cd,f=h[0].trace,m=f.hoveron,g=-1!==m.indexOf("violins"),y=-1!==m.indexOf("kde"),b=[];if(g||y){var v=i.hoverOnBoxes(e,t,s,l);if(y&&v.length>0){var M,x,z,_,A,O=e.xa,w=e.ya;"h"===f.orientation?(A=t,M="y",z=w,x="x",_=O):(A=s,M="x",z=O,x="y",_=w);var k=h[e.index];if(A>=k.span[0]&&A<=k.span[1]){var T=r.extendFlat({},e),S=_.c2p(A,!0),C=o.getKdeValue(k,f,A),E=o.getPositionOnKdePath(k,f,S),q=z._offset,D=z._length;T[M+"0"]=E[0],T[M+"1"]=E[1],T[x+"0"]=T[x+"1"]=S,T[x+"Label"]=x+": "+a.hoverLabelText(_,A,f[x+"hoverformat"])+", "+h[0].t.labels.kde+" "+C.toFixed(3);for(var R=0,L=0;L<v.length;L++)if("med"===v[L].attr){R=L;break}T.spikeDistance=v[R].spikeDistance;var I=M+"Spike";T[I]=v[R][I],v[R].spikeDistance=void 0,v[R][I]=void 0,T.hovertemplate=!1,b.push(T),(d={})[M+"1"]=r.constrain(q+E[0],q,q+D),d[M+"2"]=r.constrain(q+E[1],q,q+D),d[x+"1"]=d[x+"2"]=_._offset+S}}g&&(b=b.concat(v))}-1!==m.indexOf("points")&&(u=i.hoverOnPoints(e,t,s));var W=p.selectAll(".violinline-"+f.uid).data(d?[0]:[]);return W.enter().append("line").classed("violinline-"+f.uid,!0).attr("stroke-width",1.5),W.exit().remove(),W.attr(d).call(n.stroke,e.color),"closest"===l?u?[u]:b:(u&&b.push(u),b)}}),VJe=Ee((e,t)=>{t.exports={attributes:ede(),layoutAttributes:nde(),supplyDefaults:wJe(),crossTraceDefaults:XR().crossTraceDefaults,supplyLayoutDefaults:TJe(),calc:CJe(),crossTraceCalc:DJe(),plot:LJe(),style:NJe(),styleOnSelect:vm().styleOnSelect,hoverPoints:UJe(),selectPoints:rue(),moduleType:"trace",name:"violin",basePlotModule:Bf(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{description:["In vertical (horizontal) violin plots,","statistics are computed using `y` (`x`) values.","By supplying an `x` (`y`) array, one violin per distinct x (y) value","is drawn","If no `x` (`y`) {array} is provided, a single violin is drawn.","That violin position is then positioned with","with `name` or with `x0` (`y0`) if provided."].join(" ")}}}),GJe=Ee((e,t)=>{t.exports=VJe()}),YJe=Ee((e,t)=>{t.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}}),dde=Ee((e,t)=>{var n,r=R3(),a=Id().line,i=S1(),o=Pd().axisHoverFormat,{hovertemplateAttrs:s,texttemplateAttrs:l,templatefallbackAttrs:c}=p1(),u=YJe(),d=ms().extendFlat,p=ao();t.exports={x:r.x,x0:r.x0,dx:r.dx,y:r.y,y0:r.y0,dy:r.dy,xperiod:r.xperiod,yperiod:r.yperiod,xperiod0:r.xperiod0,yperiod0:r.yperiod0,xperiodalignment:r.xperiodalignment,yperiodalignment:r.yperiodalignment,xhoverformat:o("x"),yhoverformat:o("y"),hovertext:r.hovertext,hovertemplate:s({},{keys:u.eventDataKeys}),hovertemplatefallback:c(),hoverinfo:d({},i.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1,description:["Determines which trace information appear on the graph.","In the case of having multiple funnels, percentages & totals","are computed separately (per trace)."].join(" ")},texttemplate:l({editType:"plot"},{keys:u.eventDataKeys.concat(["label","value"])}),texttemplatefallback:c({editType:"plot"}),text:r.text,textposition:r.textposition,insidetextanchor:d({},r.insidetextanchor,{dflt:"middle"}),textangle:d({},r.textangle,{dflt:0}),textfont:r.textfont,insidetextfont:r.insidetextfont,outsidetextfont:r.outsidetextfont,constraintext:r.constraintext,cliponaxis:r.cliponaxis,orientation:d({},r.orientation,{description:["Sets the orientation of the funnels.","With *v* (*h*), the value of the each bar spans","along the vertical (horizontal).","By default funnels are tend to be oriented horizontally;","unless only *y* array is presented or orientation is set to *v*.","Also regarding graphs including only 'horizontal' funnels,","*autorange* on the *y-axis* are set to *reversed*."].join(" ")}),offset:d({},r.offset,{arrayOk:!1}),width:d({},r.width,{arrayOk:!1}),marker:(n=d({},r.marker),delete n.pattern,delete n.cornerradius,n),connector:{fillcolor:{valType:"color",editType:"style",description:["Sets the fill color."].join(" ")},line:{color:d({},a.color,{dflt:p.defaultLine}),width:d({},a.width,{dflt:0,editType:"plot"}),dash:a.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot",description:["Determines if connector regions and lines are drawn."].join(" ")},editType:"plot"},offsetgroup:r.offsetgroup,alignmentgroup:r.alignmentgroup,zorder:r.zorder}}),fde=Ee((e,t)=>{t.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc",description:["Determines how bars at the same location coordinate","are displayed on the graph.","With *stack*, the bars are stacked on top of one another","With *group*, the bars are plotted next to one another","centered around the shared location.","With *overlay*, the bars are plotted over one another,","you might need to reduce *opacity* to see multiple bars."].join(" ")},funnelgap:{valType:"number",min:0,max:1,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","adjacent location coordinates."].join(" ")},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","the same location coordinate."].join(" ")}}}),pde=Ee((e,t)=>{var n=Fr(),r=Fw(),a=Vv().handleText,i=SS(),o=ab(),s=dde(),l=ao();t.exports={supplyDefaults:function(e,t,r,c){function u(r,a){return n.coerce(e,t,s,r,a)}if(i(e,t,c,u)){o(e,t,c,u),u("xhoverformat"),u("yhoverformat"),u("orientation",t.y&&!t.x?"v":"h"),u("offset"),u("width");var d=u("text");u("hovertext"),u("hovertemplate"),u("hovertemplatefallback");var p=u("textposition");a(e,t,c,u,p,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),"none"!==t.textposition&&!t.texttemplate&&u("textinfo",n.isArrayOrTypedArray(d)?"text+value":"value");var h=u("marker.color",r);if(u("marker.line.color",l.defaultLine),u("marker.line.width"),u("connector.visible"))u("connector.fillcolor",function(e){var t=n.isArrayOrTypedArray(e)?"#000":e;return l.addOpacity(t,.5*l.opacity(t))}(h)),u("connector.line.width")&&(u("connector.line.color"),u("connector.line.dash"));u("zorder")}else t.visible=!1},crossTraceDefaults:function(e,t){var a,i;function o(e){return n.coerce(i._input,i,s,e)}for(var l=0;l<e.length;l++)"funnel"===(i=e[l]).type&&(a=i._input,r(a,i,t,o,t.funnelmode))}}}),nQe=Ee((e,t)=>{var n=Fr(),r=fde();t.exports=function(e,t,a){var i=!1;function o(a,i){return n.coerce(e,t,r,a,i)}for(var s=0;s<a.length;s++){var l=a[s];if(l.visible&&"funnel"===l.type){i=!0;break}}i&&(o("funnelmode"),o("funnelgap",.2),o("funnelgroupgap"))}}),iQe=Ee((e,t)=>{var n=Fr();t.exports=function(e,t){for(var r=0;r<e.length;r++)e[r].i=r;n.mergeArray(t.text,e,"tx"),n.mergeArray(t.hovertext,e,"htx");var a=t.marker;if(a){n.mergeArray(a.opacity,e,"mo"),n.mergeArray(a.color,e,"mc");var i=a.line;i&&(n.mergeArray(i.color,e,"mlc"),n.mergeArrayCastPositive(i.width,e,"mlw"))}}}),cQe=Ee((e,t)=>{var n=es(),r=ob(),a=iQe(),i=Kg(),o=T0().BADNUM;function s(e){return e===o?0:e}t.exports=function(e,t){var l,c,u,d,p,h,f,m,g=n.getFromId(e,t.xaxis||"x"),y=n.getFromId(e,t.yaxis||"y");"h"===t.orientation?(l=g.makeCalcdata(t,"x"),u=y.makeCalcdata(t,"y"),d=r(t,y,"y",u),p=!!t.yperiodalignment,h="y"):(l=y.makeCalcdata(t,"y"),u=g.makeCalcdata(t,"x"),d=r(t,g,"x",u),p=!!t.xperiodalignment,h="x"),c=d.vals;var b,v=Math.min(c.length,l.length),M=new Array(v);for(t._base=[],f=0;f<v;f++){l[f]<0&&(l[f]=o);var x=!1;l[f]!==o&&f+1<v&&l[f+1]!==o&&(x=!0),m=M[f]={p:c[f],s:l[f],cNext:x},t._base[f]=-.5*m.s,p&&(M[f].orig_p=u[f],M[f][h+"End"]=d.ends[f],M[f][h+"Start"]=d.starts[f]),t.ids&&(m.id=String(t.ids[f])),0===f&&(M[0].vTotal=0),M[0].vTotal+=s(m.s),m.begR=s(m.s)/s(M[0].s)}for(f=0;f<v;f++)(m=M[f]).s!==o&&(m.sumR=m.s/M[0].vTotal,m.difR=void 0!==b?m.s/b:1,b=m.s);return a(M,t),i(M,t),M}}),fQe=Ee((e,t)=>{var n=Bw().setGroupPositions;t.exports=function(e,t){var r,a,i=e._fullLayout,o=e._fullData,s=e.calcdata,l=t.xaxis,c=t.yaxis,u=[],d=[],p=[];for(a=0;a<o.length;a++){var h=o[a],f="h"===h.orientation;!0===h.visible&&h.xaxis===l._id&&h.yaxis===c._id&&"funnel"===h.type&&(r=s[a],f?p.push(r):d.push(r),u.push(r))}var m={mode:i.funnelmode,norm:i.funnelnorm,gap:i.funnelgap,groupgap:i.funnelgroupgap};for(n(e,l,c,d,m),n(e,c,l,p,m),a=0;a<u.length;a++){r=u[a];for(var g=0;g<r.length;g++)g+1<r.length&&(r[g].nextP0=r[g+1].p0,r[g].nextS0=r[g+1].s0,r[g].nextP1=r[g+1].p1,r[g].nextS1=r[g+1].s1)}}}),vQe=Ee((e,t)=>{var n=mo(),r=Fr(),a=vs(),i=T0().BADNUM,o=Qw(),s=g2().clearMinTextSize;function l(e,t,n,r){var a=[],i=[],o=r?t:n,s=r?n:t;return a[0]=o.c2p(e.s0,!0),i[0]=s.c2p(e.p0,!0),a[1]=o.c2p(e.s1,!0),i[1]=s.c2p(e.p1,!0),a[2]=o.c2p(e.nextS0,!0),i[2]=s.c2p(e.nextP0,!0),a[3]=o.c2p(e.nextS1,!0),i[3]=s.c2p(e.nextP1,!0),r?[a,i]:[i,a]}t.exports=function(e,t,c,u){var d=e._fullLayout;s("funnel",d),function(e,t,o,s){var c=t.xaxis,u=t.yaxis;r.makeTraceGroups(s,o,"trace bars").each(function(o){var s=n.select(this),d=o[0].trace,p=r.ensureSingle(s,"g","regions");if(d.connector&&d.connector.visible){var h="h"===d.orientation,f=p.selectAll("g.region").data(r.identity);f.enter().append("g").classed("region",!0),f.exit().remove();var m=f.size();f.each(function(o,s){if(s===m-1||o.cNext){var d=l(o,c,u,h),p=d[0],f=d[1],g="";p[0]!==i&&f[0]!==i&&p[1]!==i&&f[1]!==i&&p[2]!==i&&f[2]!==i&&p[3]!==i&&f[3]!==i&&(g+=h?"M"+p[0]+","+f[1]+"L"+p[2]+","+f[2]+"H"+p[3]+"L"+p[1]+","+f[1]+"Z":"M"+p[1]+","+f[1]+"L"+p[2]+","+f[3]+"V"+f[2]+"L"+p[1]+","+f[0]+"Z"),""===g&&(g="M0,0Z"),r.ensureSingle(n.select(this),"path").attr("d",g).call(a.setClipUrl,t.layerClipId,e)}})}else p.remove()})}(e,t,c,u),function(e,t,i,o){var s=t.xaxis,c=t.yaxis;r.makeTraceGroups(o,i,"trace bars").each(function(i){var o=n.select(this),u=i[0].trace,d=r.ensureSingle(o,"g","lines");if(u.connector&&u.connector.visible&&u.connector.line.width){var p="h"===u.orientation,h=d.selectAll("g.line").data(r.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var f=h.size();h.each(function(i,o){if(o===f-1||i.cNext){var u=l(i,s,c,p),d=u[0],h=u[1],m="";void 0!==d[3]&&void 0!==h[3]&&(p?(m+="M"+d[0]+","+h[1]+"L"+d[2]+","+h[2],m+="M"+d[1]+","+h[1]+"L"+d[3]+","+h[2]):(m+="M"+d[1]+","+h[1]+"L"+d[2]+","+h[3],m+="M"+d[1]+","+h[0]+"L"+d[2]+","+h[2])),""===m&&(m="M0,0Z"),r.ensureSingle(n.select(this),"path").attr("d",m).call(a.setClipUrl,t.layerClipId,e)}})}else d.remove()})}(e,t,c,u),o.plot(e,t,c,u,{mode:d.funnelmode,norm:d.funnelmode,gap:d.funnelgap,groupgap:d.funnelgroupgap})}}),bQe=Ee((e,t)=>{var n=mo(),r=vs(),a=ao(),i=Az().DESELECTDIM,o=ry(),s=g2().resizeText,l=o.styleTextPoints;t.exports={style:function(e,t,o){var c=o||n.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");s(e,c,"funnel"),c.style("opacity",function(e){return e[0].trace.opacity}),c.each(function(t){var o=n.select(this),s=t[0].trace;o.selectAll(".point > path").each(function(e){if(!e.isBlank){var t=s.marker;n.select(this).call(a.fill,e.mc||t.color).call(a.stroke,e.mlc||t.line.color).call(r.dashLine,t.line.dash,e.mlw||t.line.width).style("opacity",s.selectedpoints&&!e.selected?i:1)}}),l(o,s,e),o.selectAll(".regions").each(function(){n.select(this).selectAll("path").style("stroke-width",0).call(a.fill,s.connector.fillcolor)}),o.selectAll(".lines").each(function(){var e=s.connector.line;r.lineGroupStyle(n.select(this).selectAll("path"),e.width,e.color,e.dash)})})}}}),_Qe=Ee((e,t)=>{var n=ao().opacity,r=QS().hoverOnBars,a=Fr().formatPercent;t.exports=function(e,t,i,o,s){var l=r(e,t,i,o,s);if(l){var c=l.cd,u=c[0].trace,d="h"===u.orientation,p=c[l.index];l[(d?"x":"y")+"LabelVal"]=p.s,l.percentInitial=p.begR,l.percentInitialLabel=a(p.begR,1),l.percentPrevious=p.difR,l.percentPreviousLabel=a(p.difR,1),l.percentTotal=p.sumR,l.percentTotalLabel=a(p.sumR,1);var h=p.hi||u.hoverinfo,f=[];if(h&&"none"!==h&&"skip"!==h){var m="all"===h,g=h.split("+"),y=function(e){return m||-1!==g.indexOf(e)};y("percent initial")&&f.push(l.percentInitialLabel+" of initial"),y("percent previous")&&f.push(l.percentPreviousLabel+" of previous"),y("percent total")&&f.push(l.percentTotalLabel+" of total")}return l.extraText=f.join("<br>"),l.color=function(e,t){var r=e.marker,a=t.mc||r.color,i=t.mlc||r.line.color,o=t.mlw||r.line.width;if(n(a))return a;if(n(i)&&o)return i}(u,p),[l]}}}),AQe=Ee((e,t)=>{t.exports=function(e,t){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,"percentInitial"in t&&(e.percentInitial=t.percentInitial),"percentPrevious"in t&&(e.percentPrevious=t.percentPrevious),"percentTotal"in t&&(e.percentTotal=t.percentTotal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),e}}),OQe=Ee((e,t)=>{t.exports={attributes:dde(),layoutAttributes:fde(),supplyDefaults:pde().supplyDefaults,crossTraceDefaults:pde().crossTraceDefaults,supplyLayoutDefaults:nQe(),calc:cQe(),crossTraceCalc:fQe(),plot:vQe(),style:bQe().style,hoverPoints:_Qe(),eventData:AQe(),selectPoints:ek(),moduleType:"trace",name:"funnel",basePlotModule:Bf(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{description:["Visualize stages in a process using length-encoded bars. This trace can be used","to show data in either a part-to-whole representation wherein each item appears",'in a single stage, or in a "drop-off" representation wherein each item appears in','each stage it traversed. See also the "funnelarea" trace type for a different',"approach to visualizing funnel data."].join(" ")}}}),SQe=Ee((e,t)=>{t.exports=OQe()}),CQe=Ee((e,t)=>{t.exports={eventDataKeys:["initial","delta","final"]}}),Mde=Ee((e,t)=>{var n=R3(),r=Id().line,a=S1(),i=Pd().axisHoverFormat,{hovertemplateAttrs:o,texttemplateAttrs:s,templatefallbackAttrs:l}=p1(),c=CQe(),u=ms().extendFlat,d=ao();function p(e){return{marker:{color:u({},n.marker.color,{arrayOk:!1,editType:"style",description:"Sets the marker color of all "+e+" values."}),line:{color:u({},n.marker.line.color,{arrayOk:!1,editType:"style",description:"Sets the line color of all "+e+" values."}),width:u({},n.marker.line.width,{arrayOk:!1,editType:"style",description:"Sets the line width of all "+e+" values."}),editType:"style"},editType:"style"},editType:"style"}}t.exports={measure:{valType:"data_array",dflt:[],editType:"calc",description:["An array containing types of values.","By default the values are considered as 'relative'.","However; it is possible to use 'total' to compute the sums.","Also 'absolute' could be applied to reset the computed total","or to declare an initial value where needed."].join(" ")},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc",description:["Sets where the bar base is drawn (in position axis units)."].join(" ")},x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:i("x"),yhoverformat:i("y"),hovertext:n.hovertext,hovertemplate:o({},{keys:c.eventDataKeys}),hovertemplatefallback:l(),hoverinfo:u({},a.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1,description:["Determines which trace information appear on the graph.","In the case of having multiple waterfalls, totals","are computed separately (per trace)."].join(" ")},texttemplate:s({editType:"plot"},{keys:c.eventDataKeys.concat(["label"])}),texttemplatefallback:l({editType:"plot"}),text:n.text,textposition:n.textposition,insidetextanchor:n.insidetextanchor,textangle:n.textangle,textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:n.orientation,offset:n.offset,width:n.width,increasing:p("increasing"),decreasing:p("decreasing"),totals:p("intermediate sums and total"),connector:{line:{color:u({},r.color,{dflt:d.defaultLine}),width:u({},r.width,{editType:"plot"}),dash:r.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot",description:["Sets the shape of connector lines."].join(" ")},visible:{valType:"boolean",dflt:!0,editType:"plot",description:["Determines if connector lines are drawn. "].join(" ")},editType:"plot"},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,zorder:n.zorder}}),xde=Ee((e,t)=>{t.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc",description:["Determines how bars at the same location coordinate","are displayed on the graph.","With *group*, the bars are plotted next to one another","centered around the shared location.","With *overlay*, the bars are plotted over one another,","you might need to reduce *opacity* to see multiple bars."].join(" ")},waterfallgap:{valType:"number",min:0,max:1,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","adjacent location coordinates."].join(" ")},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","the same location coordinate."].join(" ")}}}),bk=Ee((e,t)=>{t.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}}),zde=Ee((e,t)=>{var n=Fr(),r=Fw(),a=Vv().handleText,i=SS(),o=ab(),s=Mde(),l=ao(),c=bk(),u=c.INCREASING.COLOR,d=c.DECREASING.COLOR;function p(e,t,n){e(t+".marker.color",n),e(t+".marker.line.color",l.defaultLine),e(t+".marker.line.width")}t.exports={supplyDefaults:function(e,t,r,l){function c(r,a){return n.coerce(e,t,s,r,a)}if(i(e,t,l,c)){o(e,t,l,c),c("xhoverformat"),c("yhoverformat"),c("measure"),c("orientation",t.x&&!t.y?"h":"v"),c("base"),c("offset"),c("width"),c("text"),c("hovertext"),c("hovertemplate"),c("hovertemplatefallback");var h=c("textposition");if(a(e,t,l,c,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),"none"!==t.textposition&&(c("texttemplate"),c("texttemplatefallback"),t.texttemplate||c("textinfo")),p(c,"increasing",u),p(c,"decreasing",d),p(c,"totals","#4499FF"),c("connector.visible"))c("connector.mode"),c("connector.line.width")&&(c("connector.line.color"),c("connector.line.dash"));c("zorder")}else t.visible=!1},crossTraceDefaults:function(e,t){var a,i;function o(e){return n.coerce(i._input,i,s,e)}if("group"===t.waterfallmode)for(var l=0;l<e.length;l++)a=(i=e[l])._input,r(a,i,t,o,t.waterfallmode)}}}),UQe=Ee((e,t)=>{var n=Fr(),r=xde();t.exports=function(e,t,a){var i=!1;function o(a,i){return n.coerce(e,t,r,a,i)}for(var s=0;s<a.length;s++){var l=a[s];if(l.visible&&"waterfall"===l.type){i=!0;break}}i&&(o("waterfallmode"),o("waterfallgap",.2),o("waterfallgroupgap"))}}),YQe=Ee((e,t)=>{var n=es(),r=ob(),a=Fr().mergeArray,i=Kg(),o=T0().BADNUM;function s(e){return"a"===e||"absolute"===e}function l(e){return"t"===e||"total"===e}t.exports=function(e,t){var c,u,d,p,h,f,m=n.getFromId(e,t.xaxis||"x"),g=n.getFromId(e,t.yaxis||"y");"h"===t.orientation?(c=m.makeCalcdata(t,"x"),d=g.makeCalcdata(t,"y"),p=r(t,g,"y",d),h=!!t.yperiodalignment,f="y"):(c=g.makeCalcdata(t,"y"),d=m.makeCalcdata(t,"x"),p=r(t,m,"x",d),h=!!t.xperiodalignment,f="x"),u=p.vals;for(var y,b=Math.min(u.length,c.length),v=new Array(b),M=0,x=!1,z=0;z<b;z++){var _=c[z]||0,A=!1;(c[z]!==o||l(t.measure[z])||s(t.measure[z]))&&z+1<b&&(c[z+1]!==o||l(t.measure[z+1])||s(t.measure[z+1]))&&(A=!0);var O=v[z]={i:z,p:u[z],s:_,rawS:_,cNext:A};s(t.measure[z])?(M=O.s,O.isSum=!0,O.dir="totals",O.s=M):l(t.measure[z])?(O.isSum=!0,O.dir="totals",O.s=M):(O.isSum=!1,O.dir=O.rawS<0?"decreasing":"increasing",y=O.s,O.s=M+y,M+=y),"totals"===O.dir&&(x=!0),h&&(v[z].orig_p=d[z],v[z][f+"End"]=p.ends[z],v[z][f+"Start"]=p.starts[z]),t.ids&&(O.id=String(t.ids[z])),O.v=(t.base||0)+M}return v.length&&(v[0].hasTotals=x),a(t.text,v,"tx"),a(t.hovertext,v,"htx"),i(v,t),v}}),KQe=Ee((e,t)=>{var n=Bw().setGroupPositions;t.exports=function(e,t){var r,a,i=e._fullLayout,o=e._fullData,s=e.calcdata,l=t.xaxis,c=t.yaxis,u=[],d=[],p=[];for(a=0;a<o.length;a++){var h=o[a];!0===h.visible&&h.xaxis===l._id&&h.yaxis===c._id&&"waterfall"===h.type&&(r=s[a],"h"===h.orientation?p.push(r):d.push(r),u.push(r))}var f={mode:i.waterfallmode,norm:i.waterfallnorm,gap:i.waterfallgap,groupgap:i.waterfallgroupgap};for(n(e,l,c,d,f),n(e,c,l,p,f),a=0;a<u.length;a++){r=u[a];for(var m=0;m<r.length;m++){var g=r[m];!1===g.isSum&&(g.s0+=0===m?0:r[m-1].s),m+1<r.length&&(r[m].nextP0=r[m+1].p0,r[m].nextS0=r[m+1].s0)}}}}),eet=Ee((e,t)=>{var n=mo(),r=Fr(),a=vs(),i=T0().BADNUM,o=Qw(),s=g2().clearMinTextSize;t.exports=function(e,t,l,c){var u=e._fullLayout;s("waterfall",u),o.plot(e,t,l,c,{mode:u.waterfallmode,norm:u.waterfallmode,gap:u.waterfallgap,groupgap:u.waterfallgroupgap}),function(e,t,o,s){var l=t.xaxis,c=t.yaxis;r.makeTraceGroups(s,o,"trace bars").each(function(o){var s=n.select(this),u=o[0].trace,d=r.ensureSingle(s,"g","lines");if(u.connector&&u.connector.visible){var p="h"===u.orientation,h=u.connector.mode,f=d.selectAll("g.line").data(r.identity);f.enter().append("g").classed("line",!0),f.exit().remove();var m=f.size();f.each(function(o,s){if(s===m-1||o.cNext){var u=function(e,t,n,r){var a=[],i=[],o=r?t:n,s=r?n:t;return a[0]=o.c2p(e.s0,!0),i[0]=s.c2p(e.p0,!0),a[1]=o.c2p(e.s1,!0),i[1]=s.c2p(e.p1,!0),a[2]=o.c2p(e.nextS0,!0),i[2]=s.c2p(e.nextP0,!0),r?[a,i]:[i,a]}(o,l,c,p),d=u[0],f=u[1],g="";d[0]!==i&&f[0]!==i&&d[1]!==i&&f[1]!==i&&("spanning"===h&&!o.isSum&&s>0&&(g+=p?"M"+d[0]+","+f[1]+"V"+f[0]:"M"+d[1]+","+f[0]+"H"+d[0]),"between"!==h&&(o.isSum||s<m-1)&&(g+=p?"M"+d[1]+","+f[0]+"V"+f[1]:"M"+d[0]+","+f[1]+"H"+d[1]),d[2]!==i&&f[2]!==i&&(g+=p?"M"+d[1]+","+f[1]+"V"+f[2]:"M"+d[1]+","+f[1]+"H"+d[2])),""===g&&(g="M0,0Z"),r.ensureSingle(n.select(this),"path").attr("d",g).call(a.setClipUrl,t.layerClipId,e)}})}else d.remove()})}(e,t,l,c)}}),aet=Ee((e,t)=>{var n=mo(),r=vs(),a=ao(),i=Az().DESELECTDIM,o=ry(),s=g2().resizeText,l=o.styleTextPoints;t.exports={style:function(e,t,o){var c=o||n.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");s(e,c,"waterfall"),c.style("opacity",function(e){return e[0].trace.opacity}),c.each(function(t){var o=n.select(this),s=t[0].trace;o.selectAll(".point > path").each(function(e){if(!e.isBlank){var t=s[e.dir].marker;n.select(this).call(a.fill,t.color).call(a.stroke,t.line.color).call(r.dashLine,t.line.dash,t.line.width).style("opacity",s.selectedpoints&&!e.selected?i:1)}}),l(o,s,e),o.selectAll(".lines").each(function(){var e=s.connector.line;r.lineGroupStyle(n.select(this).selectAll("path"),e.width,e.color,e.dash)})})}}}),uet=Ee((e,t)=>{var n=es().hoverLabelText,r=ao().opacity,a=QS().hoverOnBars,i=bk(),o=i.INCREASING.SYMBOL,s=i.DECREASING.SYMBOL;t.exports=function(e,t,i,l,c){var u=a(e,t,i,l,c);if(u){var d=u.cd,p=d[0].trace,h="h"===p.orientation,f=h?"x":"y",m=h?e.xa:e.ya,g=d[u.index],y=g.isSum?g.b+g.s:g.rawS;u.initial=g.b+g.s-y,u.delta=y,u.final=u.initial+u.delta;var b=A(Math.abs(u.delta));u.deltaLabel=y<0?"("+b+")":b,u.finalLabel=A(u.final),u.initialLabel=A(u.initial);var v=g.hi||p.hoverinfo,M=[];if(v&&"none"!==v&&"skip"!==v){var x="all"===v,z=v.split("+"),_=function(e){return x||-1!==z.indexOf(e)};g.isSum||(_("final")&&(h?!_("x"):!_("y"))&&M.push(u.finalLabel),_("delta")&&(y<0?M.push(u.deltaLabel+" "+s):M.push(u.deltaLabel+" "+o)),_("initial")&&M.push("Initial: "+u.initialLabel))}return M.length&&(u.extraText=M.join("<br>")),u.color=function(e,t){var n=e[t.dir].marker,a=n.color,i=n.line.color,o=n.line.width;if(r(a))return a;if(r(i)&&o)return i}(p,g),[u]}function A(e){return n(m,e,p[f+"hoverformat"])}}}),fet=Ee((e,t)=>{t.exports=function(e,t){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,"initial"in t&&(e.initial=t.initial),"delta"in t&&(e.delta=t.delta),"final"in t&&(e.final=t.final),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),e}}),pet=Ee((e,t)=>{t.exports={attributes:Mde(),layoutAttributes:xde(),supplyDefaults:zde().supplyDefaults,crossTraceDefaults:zde().crossTraceDefaults,supplyLayoutDefaults:UQe(),calc:YQe(),crossTraceCalc:KQe(),plot:eet(),style:aet().style,hoverPoints:uet(),eventData:fet(),selectPoints:ek(),moduleType:"trace",name:"waterfall",basePlotModule:Bf(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{description:["Draws waterfall trace which is useful graph to displays the","contribution of various elements (either positive or negative)","in a bar chart. The data visualized by the span of the bars is","set in `y` if `orientation` is set to *v* (the default) and the","labels are set in `x`.","By setting `orientation` to *h*, the roles are interchanged."].join(" ")}}}),vet=Ee((e,t)=>{t.exports=pet()}),xk=Ee((e,t)=>{t.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["°","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["°","%","%",""]}}}}),Ode=Ee((e,t)=>{var n,r,a=S1(),i=Id().zorder,{hovertemplateAttrs:o,templatefallbackAttrs:s}=p1(),l=ms().extendFlat,c=xk().colormodel,u=["rgb","rgba","rgba256","hsl","hsla"],d=[],p=[];for(r=0;r<u.length;r++)n=c[u[r]],d.push("For the `"+u[r]+"` colormodel, it is ["+(n.zminDflt||n.min).join(", ")+"]."),p.push("For the `"+u[r]+"` colormodel, it is ["+(n.zmaxDflt||n.max).join(", ")+"].");t.exports=l({source:{valType:"string",editType:"calc",description:["Specifies the data URI of the image to be visualized.",'The URI consists of "data:image/[<media subtype\\\\>][;base64\\\\],<data\\\\>"'].join(" ")},z:{valType:"data_array",editType:"calc",description:["A 2-dimensional array in which each element is an array of 3 or 4 numbers representing a color."].join(" ")},colormodel:{valType:"enumerated",values:u,editType:"calc",description:["Color model used to map the numerical color components described in `z` into colors.","If `source` is specified, this attribute will be set to `rgba256`","otherwise it defaults to `rgb`."].join(" ")},zsmooth:{valType:"enumerated",values:["fast",!1],dflt:!1,editType:"plot",description:["Picks a smoothing algorithm used to smooth `z` data.","This only applies for image traces that use the `source` attribute."].join(" ")},zmin:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the lower bound for each color component.","Note that the default value will depend on the colormodel.",d.join(" ")].join(" ")},zmax:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the higher bound for each color component.","Note that the default value will depend on the colormodel.",p.join(" ")].join(" ")},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Set the image's x position. The left edge of the image","(or the right edge if the x axis is reversed or dx is negative)","will be found at xmin=x0-dx/2"].join(" ")},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Set the image's y position. The top edge of the image","(or the bottom edge if the y axis is NOT reversed or if dy is negative)","will be found at ymin=y0-dy/2. By default when an image trace is","included, the y axis will be reversed so that the image is right-side-up,","but you can disable this by setting yaxis.autorange=true or by providing","an explicit y axis range."].join(" ")},dx:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's horizontal size."},dy:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's vertical size"},text:{valType:"data_array",editType:"plot",description:"Sets the text elements associated with each z value."},hovertext:{valType:"data_array",editType:"plot",description:"Same as `text`."},hoverinfo:l({},a.hoverinfo,{flags:["x","y","z","color","name","text"],dflt:"x+y+z+text+name"}),hovertemplate:o({},{keys:["z","color","colormodel"]}),hovertemplatefallback:s(),zorder:i})}),Aet=Ee((e,t)=>{var n=Fr(),r=Ode(),a=xk(),i=Sx().IMAGE_URL_PREFIX;t.exports=function(e,t){function o(a,i){return n.coerce(e,t,r,a,i)}o("source"),t.source&&!t.source.match(i)&&delete t.source,t._hasSource=!!t.source;var s,l=o("z");(t._hasZ=!(void 0===l||!l.length||!l[0]||!l[0].length),t._hasZ||t._hasSource)?(o("x0"),o("y0"),o("dx"),o("dy"),t._hasZ?(o("colormodel","rgb"),o("zmin",(s=a.colormodel[t.colormodel]).zminDflt||s.min),o("zmax",s.zmaxDflt||s.max)):t._hasSource&&(t.colormodel="rgba256",s=a.colormodel[t.colormodel],t.zmin=s.zminDflt,t.zmax=s.zmaxDflt),o("zsmooth"),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),t._length=null,o("zorder")):t.visible=!1}}),Oet=Ee((e,t)=>{var n=1e3,r=6e4,a=60*r,i=24*a,o=365.25*i;function s(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}t.exports=function(e,t){t=t||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*o;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*a;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===l&&!1===isNaN(e))return t.long?function(e){return s(e,i,"day")||s(e,a,"hour")||s(e,r,"minute")||s(e,n,"second")||e+" ms"}(e):function(e){return e>=i?Math.round(e/i)+"d":e>=a?Math.round(e/a)+"h":e>=r?Math.round(e/r)+"m":e>=n?Math.round(e/n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}}),ket=Ee((e,t)=>{var n;function r(t){function r(){if(r.enabled){var t=r,a=+new Date,i=a-(n||a);t.diff=i,t.prev=n,t.curr=a,n=a;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=e.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var l=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;l++;var a=e.formatters[r];if("function"==typeof a){var i=o[l];n=a.call(t,i),o.splice(l,1),l--}return n}),e.formatArgs.call(t,o),(r.log||e.log||console.log.bind(console)).apply(t,o)}}return r.namespace=t,r.enabled=e.enabled(t),r.useColors=e.useColors(),r.color=function(t){var n,r=0;for(n in t)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]}(t),"function"==typeof e.init&&e.init(r),r}(e=t.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},e.disable=function(){e.enable("")},e.enable=function(t){e.save(t),e.names=[],e.skips=[];for(var n=("string"==typeof t?t:"").split(/[\s,]+/),r=n.length,a=0;a<r;a++)n[a]&&("-"===(t=n[a].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=Oet(),e.names=[],e.skips=[],e.formatters={}}),qet=Ee((e,t)=>{function n(){var t;try{t=e.storage.debug}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}(e=t.exports=ket()).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var a=0,i=0;t[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(a++,"%c"===e&&(i=a))}),t.splice(i,0,r)}},e.save=function(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch{}},e.load=n,e.useColors=function(){return!!(typeof window<"u"&&window.process&&"renderer"===window.process.type)||(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},e.enable(n())}),Fet=Ee((e,t)=>{var n=require("assert"),r=qet()("stream-parser");t.exports=function(e){var t=e&&"function"==typeof e._transform,n=e&&"function"==typeof e._write;if(!t&&!n)throw new Error("must pass a Writable or Transform stream in");r("extending Parser into stream"),e._bytes=c,e._skipBytes=u,t&&(e._passthrough=d),t?e._transform=h:e._write=p};var a=-1,i=0,o=1,s=2;function l(e){r("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=a,e._parserCallback=null,"function"==typeof e.push&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function c(e,t){n(!this._parserCallback,'there is already a "callback" set!'),n(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||l(this),r("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=i}function u(e,t){n(!this._parserCallback,'there is already a "callback" set!'),n(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||l(this),r("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=o}function d(e,t){n(!this._parserCallback,'There is already a "callback" set!'),n(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||l(this),r("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=s}function p(e,t,n){this._parserInit||l(this),r("write(%o bytes)",e.length),"function"==typeof t&&(n=t),m(this,e,null,n)}function h(e,t,n){this._parserInit||l(this),r("transform(%o bytes)",e.length),"function"!=typeof t&&(t=this._parserOutput),m(this,e,t,n)}function f(e,t,n,o){if(e._parserBytesLeft-=t.length,r("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===i?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===s&&n(t),0!==e._parserBytesLeft)return o;var l=e._parserCallback;if(l&&e._parserState===i&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==i&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=a,e._parserBuffers.splice(0),l){var c=[];t&&c.push(t),n&&c.push(n);var u=l.length>c.length;u&&c.push(g(o));var d=l.apply(e,c);if(!u||o===d)return o}}var m=g(function e(t,n,r,a){return t._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):n.length<=t._parserBytesLeft?function(){return f(t,n,r,a)}:function(){var i=n.slice(0,t._parserBytesLeft);return f(t,i,r,function(o){return o?a(o):n.length>i.length?function(){return e(t,n.slice(i.length),r,a)}:void 0})}});function g(e){return function(){for(var t=e.apply(this,arguments);"function"==typeof t;)t=t();return t}}}),jc=Ee(e=>{var t=require("stream").Transform,n=Fet();function r(){t.call(this,{readableObjectMode:!0})}function a(e,t,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||"",this.name=this.constructor.name,this.message=e,t&&(this.code=t),n&&(this.statusCode=n)}r.prototype=Object.create(t.prototype),r.prototype.constructor=r,n(r.prototype),e.ParserStream=r,e.sliceEq=function(e,t,n){for(var r=t,a=0;a<n.length;)if(e[r++]!==n[a++])return!1;return!0},e.str2arr=function(e,t){var n=[],r=0;if(t&&"hex"===t)for(;r<e.length;)n.push(parseInt(e.slice(r,r+2),16)),r+=2;else for(;r<e.length;r++)n.push(255&e.charCodeAt(r));return n},e.readUInt16LE=function(e,t){return e[t]|e[t+1]<<8},e.readUInt16BE=function(e,t){return e[t]<<8|e[t+1]},e.readInt16LE=function(t,n){return e.readUInt16LE(t,n)<<16>>16},e.readInt16BE=function(t,n){return e.readUInt16BE(t,n)<<16>>16},e.readUInt32LE=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]},e.readUInt32BE=function(e,t){return 16777216*e[t]+(e[t+1]<<16|e[t+2]<<8|e[t+3])},e.readInt32LE=function(t,n){return 0|e.readUInt32LE(t,n)},e.readInt32BE=function(t,n){return 0|e.readUInt32BE(t,n)},a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,e.ProbeError=a}),Uet=Ee((e,t)=>{var n=jc().readUInt16BE,r=jc().readUInt32BE;function a(e,t){if(e.length<4+t)return null;var n=r(e,t);return e.length<n+t||n<8?null:{boxtype:String.fromCharCode.apply(null,e.slice(t+4,t+8)),data:e.slice(t+8,t+n),end:t+n}}function i(e,t){for(var n=0;;){var i=a(e,n);if(!i)break;switch(i.boxtype){case"ispe":t.sizes.push({width:r(i.data,4),height:r(i.data,8)});break;case"irot":t.transforms.push({type:"irot",value:3&i.data[0]});break;case"imir":t.transforms.push({type:"imir",value:1&i.data[0]})}n=i.end}}function o(e,t,n){for(var r=0,a=0;a<n;a++)r=256*r+(e[t+a]||0);return r}function s(e,t){for(var r=e[4]>>4&15,a=15&e[4],i=e[5]>>4&15,s=n(e,6),l=8,c=0;c<s;c++){var u=n(e,l),d=n(e,l+=2),p=o(e,l+=2,i),h=n(e,l+=i);if(l+=2,0===d&&1===h){var f=o(e,l,r),m=o(e,l+r,a);t.item_loc[u]={length:m,offset:f+p}}l+=h*(r+a)}}function l(e,t){for(var r=n(e,4),i=6,o=0;o<r;o++){var s=a(e,i);if(!s)break;if("infe"===s.boxtype){for(var l=n(s.data,4),c="",u=8;u<s.data.length&&s.data[u];u++)c+=String.fromCharCode(s.data[u]);t.item_inf[c]=l}i=s.end}}function c(e,t){for(var n=0;;){var r=a(e,n);if(!r)break;"ipco"===r.boxtype&&i(r.data,t),n=r.end}}t.exports.unbox=a,t.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(function(e,t){for(var n=4;;){var r=a(e,n);if(!r)break;"iprp"===r.boxtype&&c(r.data,t),"iloc"===r.boxtype&&s(r.data,t),"iinf"===r.boxtype&&l(r.data,t),n=r.end}}(e,t),t.sizes.length){var n=function(e){var t=e.reduce(function(e,t){return e.width>t.width||e.width===t.width&&e.height>t.height?e:t}),n=e.reduce(function(e,t){return e.height>t.height||e.height===t.height&&e.width>t.width?e:t});return t.width>n.height||t.width===n.height&&t.height>n.width?t:n}(t.sizes),r=1;t.transforms.forEach(function(e){var t={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},n={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if("imir"===e.type&&(0===e.value?r=n[r]:r=t[r=t[r=n[r]]]),"irot"===e.type)for(var a=0;a<e.value;a++)r=t[r]});var i=null;return t.item_inf.Exif&&(i=t.item_loc[t.item_inf.Exif]),{width:n.width,height:n.height,orientation:t.transforms.length?r:null,variants:t.sizes,exif_location:i}}},t.exports.getMimeType=function(e){var t=String.fromCharCode.apply(null,e.slice(0,4)),n={};n[t]=!0;for(var r=8;r<e.length;r+=4)n[String.fromCharCode.apply(null,e.slice(r,r+4))]=!0;if(n.mif1||n.msf1||n.miaf)return"avif"===t||"avis"===t||"avio"===t?{type:"avif",mime:"image/avif"}:"heic"===t||"heix"===t?{type:"heic",mime:"image/heic"}:"hevc"===t||"hevx"===t?{type:"heic",mime:"image/heic-sequence"}:n.avif||n.avis?{type:"avif",mime:"image/avif"}:n.heic||n.heix||n.hevc||n.hevx||n.heis?n.msf1?{type:"heif",mime:"image/heif-sequence"}:{type:"heif",mime:"image/heif"}:{type:"avif",mime:"image/avif"}}}),gX=Ee((e,t)=>{function n(e,t){var n=new Error(e);return n.code=t,n}function r(e){try{return decodeURIComponent(escape(e))}catch{return e}}function a(e,t,r){this.input=e.subarray(t,r),this.start=t;var a=String.fromCharCode.apply(null,this.input.subarray(0,4));if("II*\0"!==a&&"MM\0*"!==a)throw n("invalid TIFF signature","EBADDATA");this.big_endian="M"===a[0]}a.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var n=this.ifds_to_read.shift();n.offset&&this.scan_ifd(n.id,n.offset,e)}},a.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw n("unexpected EOF","EBADDATA");return this.big_endian?256*t[e]+t[e+1]:t[e]+256*t[e+1]},a.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw n("unexpected EOF","EBADDATA");return this.big_endian?16777216*t[e]+65536*t[e+1]+256*t[e+2]+t[e+3]:t[e]+256*t[e+1]+65536*t[e+2]+16777216*t[e+3]},a.prototype.is_subifd_link=function(e,t){return 0===e&&34665===t||0===e&&34853===t||34665===e&&40965===t},a.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},a.prototype.exif_format_read=function(e,t){var n;switch(e){case 1:case 2:return n=this.input[t];case 6:return(n=this.input[t])|33554430*(128&n);case 3:return n=this.read_uint16(t);case 8:return(n=this.read_uint16(t))|131070*(32768&n);case 4:return n=this.read_uint32(t);case 9:return 0|(n=this.read_uint32(t));default:return null}},a.prototype.scan_ifd=function(e,t,a){var i=this.read_uint16(t);t+=2;for(var o=0;o<i;o++){var s=this.read_uint16(t),l=this.read_uint16(t+2),c=this.read_uint32(t+4),u=this.exif_format_length(l),d=c*u,p=d<=4?t+8:this.read_uint32(t+8),h=!1;if(p+d>this.input.length)throw n("unexpected EOF","EBADDATA");for(var f=[],m=p,g=0;g<c;g++,m+=u){var y=this.exif_format_read(l,m);if(null===y){f=null;break}f.push(y)}if(Array.isArray(f)&&2===l&&((f=r(String.fromCharCode.apply(null,f)))&&"\0"===f[f.length-1]&&(f=f.slice(0,-1))),this.is_subifd_link(e,s)&&Array.isArray(f)&&Number.isInteger(f[0])&&f[0]>0&&(this.ifds_to_read.push({id:s,offset:f[0]}),h=!0),!1===a({is_big_endian:this.big_endian,ifd:e,tag:s,format:l,count:c,entry_offset:t+this.start,data_length:d,data_offset:p+this.start,value:f,is_subifd_link:h}))return void(this.aborted=!0);t+=12}0===e&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})},t.exports.ExifParser=a,t.exports.get_orientation=function(e){var t=0;try{return new a(e,0,e.length).each(function(e){if(0===e.ifd&&274===e.tag&&Array.isArray(e.value))return t=e.value[0],!1}),t}catch{return-1}}}),Vet=Ee((e,t)=>{var n=jc().str2arr,r=jc().sliceEq,a=jc().readUInt32BE,i=Uet(),o=gX(),s=n("ftyp");t.exports=function(e){if(r(e,4,s)){var t=i.unbox(e,0);if(t){var n=i.getMimeType(t.data);if(n){for(var l,c=t.end;;){var u=i.unbox(e,c);if(!u)break;if(c=u.end,"mdat"===u.boxtype)return;if("meta"===u.boxtype){l=u.data;break}}if(l){var d=i.readSizeFromMeta(l);if(d){var p={width:d.width,height:d.height,type:n.type,mime:n.mime,wUnits:"px",hUnits:"px"};if(d.variants.length>1&&(p.variants=d.variants),d.orientation&&(p.orientation=d.orientation),d.exif_location&&d.exif_location.offset+d.exif_location.length<=e.length){var h=a(e,d.exif_location.offset),f=e.slice(d.exif_location.offset+h+4,d.exif_location.offset+d.exif_location.length),m=o.get_orientation(f);m>0&&(p.orientation=m)}return p}}}}}}}),Yet=Ee((e,t)=>{var n=jc().str2arr,r=jc().sliceEq,a=jc().readInt16LE,i=jc().readInt32LE,o=jc().readUInt32LE,s=n("BM");t.exports=function(e){if(!(e.length<26)&&r(e,0,s)){var t,n,l=o(e,14);if(12===l)n=a(e,18),t=a(e,20);else{if(!(l>12))return;n=i(e,18),t=i(e,22)}return{width:n,height:Math.abs(t),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}}}),Qet=Ee((e,t)=>{var n=jc().str2arr,r=jc().sliceEq,a=jc().readUInt16LE,i=n("GIF87a"),o=n("GIF89a");t.exports=function(e){if(!(e.length<10)&&(r(e,0,i)||r(e,0,o)))return{width:a(e,6),height:a(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}}),ttt=Ee((e,t)=>{var n=jc().readUInt16LE;t.exports=function(e){var t=n(e,0),r=n(e,2),a=n(e,4);if(0===t&&1===r&&a&&!(e.length<6+16*a)){for(var i=[],o={width:0,height:0},s=0;s<a;s++){var l=e[6+16*s]||256,c=e[6+16*s+1]||256,u={width:l,height:c};i.push(u),(l>o.width||c>o.height)&&(o=u)}return{width:o.width,height:o.height,variants:i,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}}),ntt=Ee((e,t)=>{var n=jc().readUInt16BE,r=jc().str2arr,a=jc().sliceEq,i=gX(),o=r("Exif\0\0");t.exports=function(e){if(!(e.length<2)&&255===e[0]&&216===e[1]&&255===e[2])for(var t=2;;){for(;;){if(e.length-t<2)return;if(255===e[t++])break}for(var r,s=e[t++];255===s;)s=e[t++];if(s>=208&&s<=217||1===s)r=0;else{if(!(s>=192&&s<=254))return;if(e.length-t<2)return;r=n(e,t)-2,t+=2}if(217===s||218===s)return;var l;if(225===s&&r>=10&&a(e,t,o)&&(l=i.get_orientation(e.slice(t+6,t+r))),r>=5&&s>=192&&s<=207&&196!==s&&200!==s&&204!==s){if(e.length-t<r)return;var c={width:n(e,t+3),height:n(e,t+1),type:"jpg",mime:"image/jpeg",wUnits:"px",hUnits:"px"};return l>0&&(c.orientation=l),c}t+=r}}}),ltt=Ee((e,t)=>{var n=jc().str2arr,r=jc().sliceEq,a=jc().readUInt32BE,i=n("‰PNG\r\n\n"),o=n("IHDR");t.exports=function(e){if(!(e.length<24)&&r(e,0,i)&&r(e,12,o))return{width:a(e,16),height:a(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}}),dtt=Ee((e,t)=>{var n=jc().str2arr,r=jc().sliceEq,a=jc().readUInt32BE,i=n("8BPS\0");t.exports=function(e){if(!(e.length<22)&&r(e,0,i))return{width:a(e,18),height:a(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}}),ptt=Ee((e,t)=>{function n(e){return 32===e||9===e||13===e||10===e}function r(e){return"number"==typeof e&&isFinite(e)&&e>0}var a=/<[-_.:a-zA-Z0-9][^>]*>/,i=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,o=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,s=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,l=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,c=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function u(e){return c.test(e)?e.match(c)[0]:"px"}t.exports=function(e){if(function(e){var t=0,r=e.length;for(239===e[0]&&187===e[1]&&191===e[2]&&(t=3);t<r&&n(e[t]);)t++;return t!==r&&60===e[t]}(e)){for(var t="",c=0;c<e.length;c++)t+=String.fromCharCode(e[c]);var d=(t.match(a)||[""])[0];if(i.test(d)){var p=function(e){var t=e.match(o),n=e.match(s),r=e.match(l);return{width:t&&(t[1]||t[2]),height:n&&(n[1]||n[2]),viewbox:r&&(r[1]||r[2])}}(d),h=parseFloat(p.width),f=parseFloat(p.height);if(p.width&&p.height)return r(h)&&r(f)?{width:h,height:f,type:"svg",mime:"image/svg+xml",wUnits:u(p.width),hUnits:u(p.height)}:void 0;var m=(p.viewbox||"").split(" "),g={width:m[2],height:m[3]},y=parseFloat(g.width),b=parseFloat(g.height);if(r(y)&&r(b)&&u(g.width)===u(g.height)){var v=y/b;return p.width?r(h)?{width:h,height:h/v,type:"svg",mime:"image/svg+xml",wUnits:u(p.width),hUnits:u(p.width)}:void 0:p.height?r(f)?{width:f*v,height:f,type:"svg",mime:"image/svg+xml",wUnits:u(p.height),hUnits:u(p.height)}:void 0:{width:y,height:b,type:"svg",mime:"image/svg+xml",wUnits:u(g.width),hUnits:u(g.height)}}}}}}),btt=Ee((e,t)=>{var n=jc().str2arr,r=jc().sliceEq,a=jc().readUInt16LE,i=jc().readUInt16BE,o=jc().readUInt32LE,s=jc().readUInt32BE,l=n("II*\0"),c=n("MM\0*");function u(e,t,n){return n?i(e,t):a(e,t)}function d(e,t,n){return n?s(e,t):o(e,t)}function p(e,t,n){var r=u(e,t+2,n);return 1!==d(e,t+4,n)||3!==r&&4!==r?null:3===r?u(e,t+8,n):d(e,t+8,n)}t.exports=function(e){if(!(e.length<8)&&(r(e,0,l)||r(e,0,c))){var t=77===e[0],n=d(e,4,t)-8;if(!(n<0)){var a=n+8;if(!(e.length-a<2)){var i=12*u(e,a+0,t);if(!(i<=0||(a+=2,e.length-a<i))){var o,s,h,f;for(o=0;o<i;o+=12)256===(f=u(e,a+o,t))?s=p(e,a+o,t):257===f&&(h=p(e,a+o,t));if(s&&h)return{width:s,height:h,type:"tiff",mime:"image/tiff",wUnits:"px",hUnits:"px"}}}}}}}),Att=Ee((e,t)=>{var n=jc().str2arr,r=jc().sliceEq,a=jc().readUInt16LE,i=jc().readUInt32LE,o=gX(),s=n("RIFF"),l=n("WEBP");function c(e,t){if(157===e[t+3]&&1===e[t+4]&&42===e[t+5])return{width:16383&a(e,t+6),height:16383&a(e,t+8),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function u(e,t){if(47===e[t]){var n=i(e,t+1);return{width:1+(16383&n),height:1+(n>>14&16383),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function d(e,t){return{width:1+(e[t+6]<<16|e[t+5]<<8|e[t+4]),height:1+(e[t+9]<<16|e[t+8]<<8|e[t+7]),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}t.exports=function(e){if(!(e.length<16)&&r(e,0,s)&&r(e,8,l)){var t=12,n=null,a=0,p=i(e,4)+8;if(!(p>e.length)){for(;t+8<p;)if(0!==e[t]){var h=String.fromCharCode.apply(null,e.slice(t,t+4)),f=i(e,t+4);"VP8 "===h&&f>=10?n=n||c(e,t+8):"VP8L"===h&&f>=5?n=n||u(e,t+8):"VP8X"===h&&f>=10?n=n||d(e,t+8):"EXIF"===h&&(a=o.get_orientation(e.slice(t+8,t+8+f)),t=1/0),t+=8+f}else t++;if(n)return a>0&&(n.orientation=a),n}}}}),Ott=Ee((e,t)=>{t.exports={avif:Vet(),bmp:Yet(),gif:Qet(),ico:ttt(),jpeg:ntt(),png:ltt(),psd:dtt(),svg:ptt(),tiff:btt(),webp:Att()}}),Ttt=Ee((e,t)=>{var n=Ott();t.exports=function(e){return function(e){for(var t=Object.keys(n),r=0;r<t.length;r++){var a=n[t[r]](e);if(a)return a.width>0&&a.height>0?a:null}return null}(e)},t.exports.parsers=n}),ktt=Ee(e=>{var t=Ttt(),n=Sx().IMAGE_URL_PREFIX,r=require("buffer/").Buffer;e.getImageSize=function(e){var a=e.replace(n,""),i=new r(a,"base64");return t(i)}}),qtt=Ee((e,t)=>{var n=Fr(),r=xk(),a=xs(),i=es(),o=Fr().maxRowLength,s=ktt().getImageSize;function l(e,t,r,a){return function(i){return n.constrain((i-e)*t,r,a)}}function c(e,t){return function(r){return n.constrain(r,e,t)}}t.exports=function(e,t){var n,u;if(t._hasZ)n=t.z.length,u=o(t.z);else if(t._hasSource){var d=s(t.source);n=d.height,u=d.width}var p,h=i.getFromId(e,t.xaxis||"x"),f=i.getFromId(e,t.yaxis||"y"),m=h.d2c(t.x0)-t.dx/2,g=f.d2c(t.y0)-t.dy/2,y=[m,m+u*t.dx],b=[g,g+n*t.dy];if(h&&"log"===h.type)for(p=0;p<u;p++)y.push(m+p*t.dx);if(f&&"log"===f.type)for(p=0;p<n;p++)b.push(g+p*t.dy);return t._extremes[h._id]=i.findExtremes(h,y),t._extremes[f._id]=i.findExtremes(f,b),t._scaler=function(e){var t=r.colormodel[e.colormodel],n=t.colormodel||e.colormodel,i=n.length;e._sArray=[];for(var o=0;o<i;o++)t.min[o]!==e.zmin[o]||t.max[o]!==e.zmax[o]?e._sArray.push(l(e.zmin[o],(t.max[o]-t.min[o])/(e.zmax[o]-e.zmin[o]),t.min[o],t.max[o])):e._sArray.push(c(t.min[o],t.max[o]));return function(t){for(var n=t.slice(0,i),r=0;r<i;r++){var o=n[r];if(!a(o))return!1;n[r]=e._sArray[r](o)}return n}}(t),[{x0:m,y0:g,z:t.z,w:u,h:n}]}}),Ltt=Ee((e,t)=>{var n=mo(),r=Fr(),a=r.strTranslate,i=Dv(),o=xk(),s=vue(),l=PG().STYLE;t.exports=function(e,t,c,u){var d=t.xaxis,p=t.yaxis,h=!e._context._exportedPlot&&s();r.makeTraceGroups(u,c,"im").each(function(t){var s=n.select(this),c=t[0],u=c.trace,f=("fast"===u.zsmooth||!1===u.zsmooth&&h)&&!u._hasZ&&u._hasSource&&"linear"===d.type&&"linear"===p.type;u._realImage=f;var m,g,y,b,v,M,x=c.z,z=c.x0,_=c.y0,A=c.w,O=c.h,w=u.dx,k=u.dy;for(M=0;void 0===m&&M<A;)m=d.c2p(z+M*w),M++;for(M=A;void 0===g&&M>0;)g=d.c2p(z+M*w),M--;for(M=0;void 0===b&&M<O;)b=p.c2p(_+M*k),M++;for(M=O;void 0===v&&M>0;)v=p.c2p(_+M*k),M--;if(g<m&&(y=g,g=m,m=y),v<b&&(y=b,b=v,v=y),!f){var T=.5;m=Math.max(-T*d._length,m),g=Math.min(1.5*d._length,g),b=Math.max(-T*p._length,b),v=Math.min(1.5*p._length,v)}var S=Math.round(g-m),C=Math.round(v-b);if(S<=0||C<=0){s.selectAll("image").data([]).exit().remove()}else{var E=s.selectAll("image").data([t]);E.enter().append("svg:image").attr({xmlns:i.svg,preserveAspectRatio:"none"}),E.exit().remove();var q=!1===u.zsmooth?l:"";if(f){var D=r.simpleMap(d.range,d.r2l),R=r.simpleMap(p.range,p.r2l),L=D[1]<D[0],I=R[1]>R[0];if(L||I){var W=m+S/2,N=b+C/2;q+="transform:"+a(W+"px",N+"px")+"scale("+(L?-1:1)+","+(I?-1:1)+")"+a(-W+"px",-N+"px")+";"}}E.attr("style",q);var P=new Promise(function(e){if(u._hasZ)e();else if(u._hasSource)if(u._canvas&&u._canvas.el.width===A&&u._canvas.el.height===O&&u._canvas.source===u.source)e();else{var t=document.createElement("canvas");t.width=A,t.height=O;var n=t.getContext("2d",{willReadFrequently:!0});u._image=u._image||new Image;var r=u._image;r.onload=function(){n.drawImage(r,0,0),u._canvas={el:t,source:u.source},e()},r.setAttribute("src",u.source)}}).then(function(){var e;if(u._hasZ)e=B(function(e,t){var n=x[t][e];return r.isTypedArray(n)&&(n=Array.from(n)),n}).toDataURL("image/png");else if(u._hasSource)if(f)e=u.source;else{var t=u._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,A,O).data;e=B(function(e,n){var r=4*(n*A+e);return[t[r],t[r+1],t[r+2],t[r+3]]}).toDataURL("image/png")}E.attr({"xlink:href":e,height:C,width:S,x:m,y:b})});e._promises.push(P)}function B(e){var t=document.createElement("canvas");t.width=S,t.height=C;var n,a=t.getContext("2d",{willReadFrequently:!0}),i=function(e){return r.constrain(Math.round(d.c2p(z+e*w)-m),0,S)},s=function(e){return r.constrain(Math.round(p.c2p(_+e*k)-b),0,C)},l=o.colormodel[u.colormodel],h=l.colormodel||u.colormodel,f=l.fmt;for(M=0;M<c.w;M++){var g=i(M),y=i(M+1);if(y!==g&&!isNaN(y)&&!isNaN(g))for(var v=0;v<c.h;v++){var x=s(v),A=s(v+1);A===x||isNaN(A)||isNaN(x)||!e(M,v)||(n=u._scaler(e(M,v)),a.fillStyle=n?h+"("+f(n).join(",")+")":"rgba(0,0,0,0)",a.fillRect(g,x,y-g,A-x))}}return t}})}}),Itt=Ee((e,t)=>{var n=mo();t.exports=function(e){n.select(e).selectAll(".im image").style("opacity",function(e){return e[0].trace.opacity})}}),Btt=Ee((e,t)=>{var n=_d(),r=Fr(),a=r.isArrayOrTypedArray,i=xk();t.exports=function(e,t,o){var s=e.cd[0],l=s.trace,c=e.xa,u=e.ya;if(!(n.inbox(t-s.x0,t-(s.x0+s.w*l.dx),0)>0||n.inbox(o-s.y0,o-(s.y0+s.h*l.dy),0)>0)){var d,p=Math.floor((t-s.x0)/l.dx),h=Math.floor(Math.abs(o-s.y0)/l.dy);if(l._hasZ?d=s.z[h][p]:l._hasSource&&(d=l._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(p,h,1,1).data),d){var f,m=s.hi||l.hoverinfo;if(m){var g=m.split("+");-1!==g.indexOf("all")&&(g=["color"]),-1!==g.indexOf("color")&&(f=!0)}var y,b=i.colormodel[l.colormodel],v=b.colormodel||l.colormodel,M=v.length,x=l._scaler(d),z=b.suffix,_=[];(l.hovertemplate||f)&&(_.push("["+[x[0]+z[0],x[1]+z[1],x[2]+z[2]].join(", ")),4===M&&_.push(", "+x[3]+z[3]),_.push("]"),_=_.join(""),e.extraText=v.toUpperCase()+": "+_),a(l.hovertext)&&a(l.hovertext[h])?y=l.hovertext[h][p]:a(l.text)&&a(l.text[h])&&(y=l.text[h][p]);var A=u.c2p(s.y0+(h+.5)*l.dy),O=s.x0+(p+.5)*l.dx,w=s.y0+(h+.5)*l.dy,k="["+d.slice(0,l.colormodel.length).join(", ")+"]";return[r.extendFlat(e,{index:[h,p],x0:c.c2p(s.x0+p*l.dx),x1:c.c2p(s.x0+(p+1)*l.dx),y0:A,y1:A,color:x,xVal:O,xLabelVal:O,yVal:w,yLabelVal:w,zLabelVal:k,text:y,hovertemplateLabels:{zLabel:k,colorLabel:_,"color[0]Label":x[0]+z[0],"color[1]Label":x[1]+z[1],"color[2]Label":x[2]+z[2],"color[3]Label":x[3]+z[3]}})]}}}}),Htt=Ee((e,t)=>{t.exports=function(e,t){return"xVal"in t&&(e.x=t.xVal),"yVal"in t&&(e.y=t.yVal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),e.color=t.color,e.colormodel=t.trace.colormodel,e.z||(e.z=t.color),e}}),jtt=Ee((e,t)=>{t.exports={attributes:Ode(),supplyDefaults:Aet(),calc:qtt(),plot:Ltt(),style:Itt(),hoverPoints:Btt(),eventData:Htt(),moduleType:"trace",name:"image",basePlotModule:Bf(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{description:["Display an image, i.e. data on a 2D regular raster.","By default, when an image is displayed in a subplot,","its y axis will be reversed (ie. `autorange: 'reversed'`),","constrained to the domain (ie. `constrain: 'domain'`)","and it will have the same scale as its x axis (ie. `scaleanchor: 'x,`)","in order for pixels to be rendered as squares."].join(" ")}}}),Xtt=Ee((e,t)=>{t.exports=jtt()}),aO=Ee((e,t)=>{var n=S1(),r=ad().attributes,a=Mu(),i=oh(),{hovertemplateAttrs:o,texttemplateAttrs:s,templatefallbackAttrs:l}=p1(),c=ms().extendFlat,u=pp().pattern,d=a({editType:"plot",arrayOk:!0,colorEditType:"plot",description:"Sets the font used for `textinfo`."});t.exports={labels:{valType:"data_array",editType:"calc",description:["Sets the sector labels.","If `labels` entries are duplicated, we sum associated `values`","or simply count occurrences if `values` is not provided.","For other array attributes (including color) we use the first","non-empty entry among all occurrences of the label."].join(" ")},label0:{valType:"number",dflt:0,editType:"calc",description:["Alternate to `labels`.","Builds a numeric set of labels.","Use with `dlabel`","where `label0` is the starting label and `dlabel` the step."].join(" ")},dlabel:{valType:"number",dflt:1,editType:"calc",description:"Sets the label step. See `label0` for more info."},values:{valType:"data_array",editType:"calc",description:["Sets the values of the sectors.","If omitted, we count occurrences of each label."].join(" ")},marker:{colors:{valType:"data_array",editType:"calc",description:["Sets the color of each sector.","If not specified, the default trace color set is used","to pick the sector colors."].join(" ")},line:{color:{valType:"color",dflt:i.defaultLine,arrayOk:!0,editType:"style",description:["Sets the color of the line enclosing each sector."].join(" ")},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style",description:["Sets the width (in px) of the line enclosing each sector."].join(" ")},editType:"calc"},pattern:u,editType:"calc"},text:{valType:"data_array",editType:"plot",description:["Sets text elements associated with each sector.","If trace `textinfo` contains a *text* flag, these elements will be seen","on the chart.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style",description:["Sets hover text elements associated with each sector.","If a single string, the same string appears for","all data points.","If an array of string, the items are mapped in order of","this trace's sectors.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")},scalegroup:{valType:"string",dflt:"",editType:"calc",description:["If there are multiple pie charts that should be sized according to","their totals, link them by providing a non-empty group id here","shared by every trace in the same group."].join(" ")},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc",description:["Determines which trace information appear on the graph."].join(" ")},hoverinfo:c({},n.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:o({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:l(),texttemplate:s({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:l({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot",description:["Specifies the location of the `textinfo`."].join(" ")},textfont:c({},d,{description:"Sets the font used for `textinfo`."}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot",description:["Controls the orientation of the text inside chart sectors.","When set to *auto*, text may be oriented in any direction in order","to be as big as possible in the middle of a sector.","The *horizontal* option orients text to be parallel with the bottom","of the chart, and may make text smaller in order to achieve that goal.","The *radial* option orients text along the radius of the sector.","The *tangential* option orients text perpendicular to the radius of the sector."].join(" ")},insidetextfont:c({},d,{description:"Sets the font used for `textinfo` lying inside the sector."}),outsidetextfont:c({},d,{description:"Sets the font used for `textinfo` lying outside the sector."}),automargin:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines whether outside text labels can push the margins."].join(" ")},showlegend:c({},n.showlegend,{arrayOk:!0,description:["Determines whether or not items corresponding to the pie slices are shown in the","legend. Can be an array if `values` is set. In that case, each entry specifies","appearance in the legend for one slice."].join(" ")}),legend:c({},n.legend,{arrayOk:!0,description:["Sets the reference to a legend to show the pie slices in. Can be an array if `values`","is set. In that case, each entry specifies the legend reference for one slice.","References to these legends are *legend*, *legend2*, *legend3*, etc.","Settings for these legends are set in the layout, under","`layout.legend`, `layout.legend2`, etc."].join(" ")}),legendrank:c({},n.legendrank,{arrayOk:!0,description:["Sets the legend rank for this pie. If passed as an array, this will set the legend","rank of the individual pie slices.","Items and groups with smaller ranks are presented on top/left side while","with *reversed* `legend.traceorder` they are on bottom/right side.","The default legendrank is 1000,","so that you can use ranks less than 1000 to place certain items before all unranked items,","and ranks greater than 1000 to go after all unranked items.","When having unranked or equal rank items shapes would be displayed after traces","i.e. according to their order in data and layout."].join(" ")}),title:{text:{valType:"string",dflt:"",editType:"plot",description:["Sets the title of the chart.","If it is empty, no title is displayed."].join(" ")},font:c({},d,{description:"Sets the font used for `title`."}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot",description:["Specifies the location of the `title`."].join(" ")},editType:"plot"},domain:r({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc",description:["Sets the fraction of the radius to cut out of the pie.","Use this to make a donut chart."].join(" ")},sort:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not the sectors are reordered","from largest to smallest."].join(" ")},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc",description:["Specifies the direction at which succeeding sectors follow","one another."].join(" ")},rotation:{valType:"angle",dflt:0,editType:"calc",description:["Instead of the first slice starting at 12 o'clock,","rotate to some other angle."].join(" ")},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc",description:["Sets the fraction of larger radius to pull the sectors","out from the center. This can be a constant","to pull all slices apart from each other equally","or an array to highlight one or more slices."].join(" ")}}}),iO=Ee((e,t)=>{var n=xs(),r=Fr(),a=aO(),i=ad().defaults,o=Vv().handleText,s=Fr().coercePattern;function l(e,t){var a=r.isArrayOrTypedArray(e),i=r.isArrayOrTypedArray(t),o=Math.min(a?e.length:1/0,i?t.length:1/0);if(isFinite(o)||(o=0),o&&i){for(var s,l=0;l<o;l++){var c=t[l];if(n(c)&&c>0){s=!0;break}}s||(o=0)}return{hasLabels:a,hasValues:i,len:o}}function c(e,t,n,r,a){r("marker.line.width")&&r("marker.line.color",a?void 0:n.paper_bgcolor);var i=r("marker.colors");s(r,"marker.pattern",i),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=n.paper_bgcolor)}t.exports={handleLabelsAndValues:l,handleMarkerDefaults:c,supplyDefaults:function(e,t,n,s){function u(n,i){return r.coerce(e,t,a,n,i)}var d=l(u("labels"),u("values")),p=d.len;if(t._hasLabels=d.hasLabels,t._hasValues=d.hasValues,!t._hasLabels&&t._hasValues&&(u("label0"),u("dlabel")),p){t._length=p,c(e,t,s,u,!0),u("scalegroup");var h,f=u("text"),m=u("texttemplate");if(u("texttemplatefallback"),m||(h=u("textinfo",r.isArrayOrTypedArray(f)?"text+percent":"percent")),u("hovertext"),u("hovertemplate"),u("hovertemplatefallback"),m||h&&"none"!==h){var g=u("textposition");o(e,t,s,u,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||"auto"===g||"outside"===g)&&u("automargin"),("inside"===g||"auto"===g||Array.isArray(g))&&u("insidetextorientation")}else"none"===h&&u("textposition","none");i(t,s,u);var y=u("hole");if(u("title.text")){var b=u("title.position",y?"middle center":"top center");!y&&"middle center"===b&&(t.title.position="top center"),r.coerceFont(u,"title.font",s.font)}u("sort"),u("direction"),u("rotation"),u("pull")}else t.visible=!1}}}),AX=Ee((e,t)=>{t.exports={hiddenlabels:{valType:"data_array",editType:"calc",description:["hiddenlabels is the funnelarea & pie chart analog of","visible:'legendonly'","but it can contain many labels, and can simultaneously","hide slices from several pies/funnelarea charts"].join(" ")},piecolorway:{valType:"colorlist",editType:"calc",description:["Sets the default pie slice colors. Defaults to the main","`colorway` used for trace colors. If you specify a new","list here it can still be extended with lighter and darker","colors, see `extendpiecolors`."].join(" ")},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc",description:["If `true`, the pie slice colors (whether given by `piecolorway` or","inherited from `colorway`) will be extended to three times its","original length by first repeating every color 20% lighter then","each color 20% darker. This is intended to reduce the likelihood","of reusing the same color when you have many slices, but you can","set `false` to disable.","Colors provided in the trace, using `marker.colors`, are never","extended."].join(" ")}}}),trt=Ee((e,t)=>{var n=Fr(),r=AX();t.exports=function(e,t){function a(a,i){return n.coerce(e,t,r,a,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}}),Ok=Ee((e,t)=>{var n=xs(),r=Vh(),a=ao(),i={};function o(e){return function(t,n){return!(!t||(t=r(t),!t.isValid()))&&(t=a.addOpacity(t,t.getAlpha()),e[n]||(e[n]=t),t)}}function s(e,t){var n,a=JSON.stringify(e),i=t[a];if(!i){for(i=e.slice(),n=0;n<e.length;n++)i.push(r(e[n]).lighten(20).toHexString());for(n=0;n<e.length;n++)i.push(r(e[n]).darken(20).toHexString());t[a]=i}return i}t.exports={calc:function(e,t){var r,a,i=[],s=e._fullLayout,l=s.hiddenlabels||[],c=t.labels,u=t.marker.colors||[],d=t.values,p=t._length,h=t._hasValues&&p;if(t.dlabel)for(c=new Array(p),r=0;r<p;r++)c[r]=String(t.label0+r*t.dlabel);var f={},m=o(s["_"+t.type+"colormap"]),g=0,y=!1;for(r=0;r<p;r++){var b,v,M;if(h){if(b=d[r],!n(b))continue;b=+b}else b=1;(void 0===(v=c[r])||""===v)&&(v=r);var x=f[v=String(v)];void 0===x?(f[v]=i.length,(M=-1!==l.indexOf(v))||(g+=b),i.push({v:b,label:v,color:m(u[r],v),i:r,pts:[r],hidden:M})):(y=!0,(a=i[x]).v+=b,a.pts.push(r),a.hidden||(g+=b),!1===a.color&&u[r]&&(a.color=m(u[r],v)))}return i=i.filter(function(e){return e.v>=0}),("funnelarea"===t.type?y:t.sort)&&i.sort(function(e,t){return t.v-e.v}),i[0]&&(i[0].vTotal=g),i},crossTraceCalc:function(e,t){var n=(t||{}).type;n||(n="pie");var r=e._fullLayout,a=e.calcdata,o=r[n+"colorway"],l=r["_"+n+"colormap"];r["extend"+n+"colors"]&&(o=s(o,i));for(var c=0,u=0;u<a.length;u++){var d=a[u];if(d[0].trace.type===n)for(var p=0;p<d.length;p++){var h=d[p];!1===h.color&&(l[h.label]?h.color=l[h.label]:(l[h.label]=h.color=o[c%o.length],c++))}}},makePullColorFn:o,generateExtendedColors:s}}),ort=Ee((e,t)=>{var n=fm().appendArrayMultiPointValues;t.exports=function(e,t){var r={curveNumber:t.index,pointNumbers:e.pts,data:t._input,fullData:t,label:e.label,color:e.color,value:e.v,percent:e.percent,text:e.text,bbox:e.bbox,v:e.v};return 1===e.pts.length&&(r.pointNumber=r.i=e.pts[0]),n(r,t,e.pts),"funnelarea"===t.type&&(delete r.v,delete r.i),r}}),SX=Ee((e,t)=>{var n=mo(),r=td(),a=_d(),i=ao(),o=vs(),s=Fr(),l=s.strScale,c=s.strTranslate,u=q1(),d=g2(),p=d.recordMinTextSize,h=d.clearMinTextSize,f=t4().TEXTPAD,m=Xz(),g=ort(),y=Fr().isValidTextValue;function b(e,t,r){var i=r[0],o=i.cx,l=i.cy,c=i.trace,u="funnelarea"===c.type;"_hasHoverLabel"in c||(c._hasHoverLabel=!1),"_hasHoverEvent"in c||(c._hasHoverEvent=!1),e.on("mouseover",function(e){var r=t._fullLayout,d=t._fullData[c.index];if(!t._dragging&&!1!==r.hovermode){var p=d.hoverinfo;if(Array.isArray(p)&&(p=a.castHoverinfo({hoverinfo:[m.castOption(p,e.pts)],_module:c._module},r,0)),"all"===p&&(p="label+text+value+percent+name"),d.hovertemplate||"none"!==p&&"skip"!==p&&p){var h=e.rInscribed||0,f=o+e.pxmid[0]*(1-h),y=l+e.pxmid[1]*(1-h),b=r.separators,v=[];if(p&&-1!==p.indexOf("label")&&v.push(e.label),e.text=m.castOption(d.hovertext||d.text,e.pts),p&&-1!==p.indexOf("text")){var M=e.text;s.isValidTextValue(M)&&v.push(M)}e.value=e.v,e.valueLabel=m.formatPieValue(e.v,b),p&&-1!==p.indexOf("value")&&v.push(e.valueLabel),e.percent=e.v/i.vTotal,e.percentLabel=m.formatPiePercent(e.percent,b),p&&-1!==p.indexOf("percent")&&v.push(e.percentLabel);var x=d.hoverlabel,z=x.font,_=[];a.loneHover({trace:c,x0:f-h*i.r,x1:f+h*i.r,y:y,_x0:u?o+e.TL[0]:f-h*i.r,_x1:u?o+e.TR[0]:f+h*i.r,_y0:u?l+e.TL[1]:y-h*i.r,_y1:u?l+e.BL[1]:y+h*i.r,text:v.join("<br>"),name:d.hovertemplate||-1!==p.indexOf("name")?d.name:void 0,idealAlign:e.pxmid[0]<0?"left":"right",color:m.castOption(x.bgcolor,e.pts)||e.color,borderColor:m.castOption(x.bordercolor,e.pts),fontFamily:m.castOption(z.family,e.pts),fontSize:m.castOption(z.size,e.pts),fontColor:m.castOption(z.color,e.pts),nameLength:m.castOption(x.namelength,e.pts),textAlign:m.castOption(x.align,e.pts),hovertemplate:m.castOption(d.hovertemplate,e.pts),hovertemplateLabels:e,eventData:[g(e,d)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t,inOut_bbox:_}),e.bbox=_[0],c._hasHoverLabel=!0}c._hasHoverEvent=!0,t.emit("plotly_hover",{points:[g(e,d)],event:n.event})}}),e.on("mouseout",function(e){var r=t._fullLayout,i=t._fullData[c.index],o=n.select(this).datum();c._hasHoverEvent&&(e.originalEvent=n.event,t.emit("plotly_unhover",{points:[g(o,i)],event:n.event}),c._hasHoverEvent=!1),c._hasHoverLabel&&(a.loneUnhover(r._hoverlayer.node()),c._hasHoverLabel=!1)}),e.on("click",function(e){var r=t._fullLayout,i=t._fullData[c.index];t._dragging||!1===r.hovermode||(t._hoverdata=[g(e,i)],a.click(t,n.event))})}function v(e,t,n){var r=m.castOption(e.insidetextfont.color,t.pts);!r&&e._input.textfont&&(r=m.castOption(e._input.textfont.color,t.pts));var a=m.castOption(e.insidetextfont.family,t.pts)||m.castOption(e.textfont.family,t.pts)||n.family,o=m.castOption(e.insidetextfont.size,t.pts)||m.castOption(e.textfont.size,t.pts)||n.size,s=m.castOption(e.insidetextfont.weight,t.pts)||m.castOption(e.textfont.weight,t.pts)||n.weight,l=m.castOption(e.insidetextfont.style,t.pts)||m.castOption(e.textfont.style,t.pts)||n.style,c=m.castOption(e.insidetextfont.variant,t.pts)||m.castOption(e.textfont.variant,t.pts)||n.variant,u=m.castOption(e.insidetextfont.textcase,t.pts)||m.castOption(e.textfont.textcase,t.pts)||n.textcase,d=m.castOption(e.insidetextfont.lineposition,t.pts)||m.castOption(e.textfont.lineposition,t.pts)||n.lineposition,p=m.castOption(e.insidetextfont.shadow,t.pts)||m.castOption(e.textfont.shadow,t.pts)||n.shadow;return{color:r||i.contrast(t.color),family:a,size:o,weight:s,style:l,variant:c,textcase:u,lineposition:d,shadow:p}}function M(e,t){for(var n,r,a=0;a<e.length;a++)if((r=(n=e[a][0]).trace).title.text){var i=r.title.text;r._meta&&(i=s.templateString(i,r._meta));var l=o.tester.append("text").attr("data-notex",1).text(i).call(o.font,r.title.font).call(u.convertToTspans,t),c=o.bBox(l.node(),!0);n.titleBox={width:c.width,height:c.height},l.remove()}}function x(e,t,n){var r=n.r||t.rpx1,a=t.rInscribed;if(t.startangle===t.stopangle)return{rCenter:1-a,scale:0,rotate:0,textPosAngle:0};var i,o=t.ring,s=1===o&&Math.abs(t.startangle-t.stopangle)===2*Math.PI,l=t.halfangle,c=t.midangle,u=n.trace.insidetextorientation,d="horizontal"===u,p="tangential"===u,h="radial"===u,f="auto"===u,m=[];if(!f){var g,y=function(n,a){if(function(e,t){var n=e.startangle,r=e.stopangle;return n>t&&t>r||n<t&&t<r}(t,n)){var s=Math.abs(n-t.startangle),l=Math.abs(n-t.stopangle),c=s<l?s:l;(i="tan"===a?_(e,r,o,c,0):z(e,r,o,c,Math.PI/2)).textPosAngle=n,m.push(i)}};if(d||p){for(g=4;g>=-4;g-=2)y(Math.PI*g,"tan");for(g=4;g>=-4;g-=2)y(Math.PI*(g+1),"tan")}if(d||h){for(g=4;g>=-4;g-=2)y(Math.PI*(g+1.5),"rad");for(g=4;g>=-4;g-=2)y(Math.PI*(g+.5),"rad")}}if(s||f||d){var b=Math.sqrt(e.width*e.width+e.height*e.height);if((i={scale:a*r*2/b,rCenter:1-a,rotate:0}).textPosAngle=(t.startangle+t.stopangle)/2,i.scale>=1)return i;m.push(i)}(f||h)&&((i=z(e,r,o,l,c)).textPosAngle=(t.startangle+t.stopangle)/2,m.push(i)),(f||p)&&((i=_(e,r,o,l,c)).textPosAngle=(t.startangle+t.stopangle)/2,m.push(i));for(var v=0,M=0,x=0;x<m.length;x++){var A=m[x].scale;if(M<A&&(M=A,v=x),!f&&M>=1)break}return m[v]}function z(e,t,n,r,a){t=Math.max(0,t-2*f);var i=e.width/e.height,o=w(i,r,t,n);return{scale:2*o/e.height,rCenter:A(i,o/t),rotate:O(a)}}function _(e,t,n,r,a){t=Math.max(0,t-2*f);var i=e.height/e.width,o=w(i,r,t,n);return{scale:2*o/e.width,rCenter:A(i,o/t),rotate:O(a+Math.PI/2)}}function A(e,t){return Math.cos(t)-e*t}function O(e){return(180/Math.PI*e+720)%180-90}function w(e,t,n,r){var a=e+1/(2*Math.tan(t));return n*Math.min(1/(Math.sqrt(a*a+.5)+a),r/(Math.sqrt(e*e+r/2)+e))}function k(e,t){return e.v!==t.vTotal||t.trace.hole?Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2):1}function T(e,t){var n=t.pxmid[0],r=t.pxmid[1],a=e.width/2,i=e.height/2;return n<0&&(a*=-1),r<0&&(i*=-1),{scale:1,rCenter:1,rotate:0,x:a+Math.abs(i)*(a>0?1:-1)/2,y:i/(1+n*n/(r*r)),outside:!0}}function S(e,t){var n,r,a,i=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=i.title.font.size,a=E(i),-1!==i.title.position.indexOf("top")?(o.y-=(1+a)*e.r,s.ty-=e.titleBox.height):-1!==i.title.position.indexOf("bottom")&&(o.y+=(1+a)*e.r);var l=function(e,t){return e/(void 0===t?1:t)}(e.r,e.trace.aspectratio),c=t.w*(i.domain.x[1]-i.domain.x[0])/2;return-1!==i.title.position.indexOf("left")?(c+=l,o.x-=(1+a)*l,s.tx+=e.titleBox.width/2):-1!==i.title.position.indexOf("center")?c*=2:-1!==i.title.position.indexOf("right")&&(c+=l,o.x+=(1+a)*l,s.tx-=e.titleBox.width/2),n=c/e.titleBox.width,r=C(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(n,r),tx:s.tx,ty:s.ty}}function C(e,t){var n=e.trace,r=t.h*(n.domain.y[1]-n.domain.y[0]);return Math.min(e.titleBox.height,r/2)}function E(e){var t,n=e.pull;if(!n)return 0;if(s.isArrayOrTypedArray(n))for(n=0,t=0;t<e.pull.length;t++)e.pull[t]>n&&(n=e.pull[t]);return n}function q(e,t){for(var n=[],r=0;r<e.length;r++){var a=e[r][0],i=a.trace,o=i.domain,s=t.w*(o.x[1]-o.x[0]),l=t.h*(o.y[1]-o.y[0]);i.title.text&&"middle center"!==i.title.position&&(l-=C(a,t));var c=s/2,u=l/2;"funnelarea"===i.type&&!i.scalegroup&&(u/=i.aspectratio),a.r=Math.min(c,u)/(1+E(i)),a.cx=t.l+t.w*(i.domain.x[1]+i.domain.x[0])/2,a.cy=t.t+t.h*(1-i.domain.y[0])-l/2,i.title.text&&-1!==i.title.position.indexOf("bottom")&&(a.cy-=C(a,t)),i.scalegroup&&-1===n.indexOf(i.scalegroup)&&n.push(i.scalegroup)}!function(e,t){for(var n,r,a,i=0;i<t.length;i++){var o=1/0,s=t[i];for(r=0;r<e.length;r++)if((a=(n=e[r][0]).trace).scalegroup===s){var l;if("pie"===a.type)l=n.r*n.r;else if("funnelarea"===a.type){var c,u;a.aspectratio>1?u=(c=n.r)/a.aspectratio:c=(u=n.r)*a.aspectratio,l=(c*=(1+a.baseratio)/2)*u}o=Math.min(o,l/n.vTotal)}for(r=0;r<e.length;r++)if((a=(n=e[r][0]).trace).scalegroup===s){var d=o*n.vTotal;"funnelarea"===a.type&&(d/=(1+a.baseratio)/2,d/=a.aspectratio),n.r=Math.sqrt(d)}}}(e,n)}function D(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function R(e,t,n){var r,a=e._fullLayout,i=n.trace,o=i.texttemplate,l=i.textinfo;if(!o&&l&&"none"!==l){var c,u=l.split("+"),d=function(e){return-1!==u.indexOf(e)},p=d("label"),h=d("text"),f=d("value"),g=d("percent"),b=a.separators;if(c=p?[t.label]:[],h){var v=m.getFirstFilled(i.text,t.pts);y(v)&&c.push(v)}f&&c.push(m.formatPieValue(t.v,b)),g&&c.push(m.formatPiePercent(t.v/n.vTotal,b)),t.text=c.join("<br>")}if(o){var M=s.castOption(i,t.i,"texttemplate");if(M){var x={label:(r=t).label,value:r.v,valueLabel:m.formatPieValue(r.v,a.separators),percent:r.v/n.vTotal,percentLabel:m.formatPiePercent(r.v/n.vTotal,a.separators),color:r.color,text:r.text,customdata:s.castOption(i,r.i,"customdata")},z=m.getFirstFilled(i.text,t.pts);(y(z)||""===z)&&(x.text=z),t.text=s.texttemplateString({data:[x,i._meta],fallback:i.texttemplatefallback,labels:x,locale:e._fullLayout._d3locale,template:M})}else t.text=""}}function L(e,t){var n=e.rotate*Math.PI/180,r=Math.cos(n),a=Math.sin(n),i=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=i*r-o*a,e.textY=i*a+o*r,e.noCenter=!0}t.exports={plot:function(e,t){var a=e._context.staticPlot,d=e._fullLayout,f=d._size;h("pie",d),M(t,e),q(t,f);var g=s.makeTraceGroups(d._pielayer,t,"trace").each(function(t){var h=n.select(this),g=t[0],y=g.trace;(function(e){var t,n,r,a=e[0],i=a.r,o=a.trace,s=m.getRotationAngle(o.rotation),l=2*Math.PI/a.vTotal,c="px0",u="px1";if("counterclockwise"===o.direction){for(t=0;t<e.length&&e[t].hidden;t++);if(t===e.length)return;s+=l*e[t].v,l*=-1,c="px1",u="px0"}for(r=D(i,s),t=0;t<e.length;t++)!(n=e[t]).hidden&&(n[c]=r,n.startangle=s,s+=l*n.v/2,n.pxmid=D(i,s),n.midangle=s,s+=l*n.v/2,r=D(i,s),n.stopangle=s,n[u]=r,n.largeArc=n.v>a.vTotal/2?1:0,n.halfangle=Math.PI*Math.min(n.v/a.vTotal,.5),n.ring=1-o.hole,n.rInscribed=k(n,a))})(t),h.attr("stroke-linejoin","round"),h.each(function(){var M=n.select(this).selectAll("g.slice").data(t);M.enter().append("g").classed("slice",!0),M.exit().remove();var z=[[[],[]],[[],[]]],_=!1;M.each(function(r,i){if(r.hidden)n.select(this).selectAll("path,g").remove();else{r.pointNumber=r.i,r.curveNumber=y.index,z[r.pxmid[1]<0?0:1][r.pxmid[0]<0?0:1].push(r);var l=g.cx,c=g.cy,h=n.select(this),f=h.selectAll("path.surface").data([r]);if(f.enter().append("path").classed("surface",!0).style({"pointer-events":a?"none":"all"}),h.call(b,e,t),y.pull){var M=+m.castOption(y.pull,r.pts)||0;M>0&&(l+=M*r.pxmid[0],c+=M*r.pxmid[1])}r.cxFinal=l,r.cyFinal=c;var A=y.hole;if(r.v===g.vTotal){var O="M"+(l+r.px0[0])+","+(c+r.px0[1])+E(r.px0,r.pxmid,!0,1)+E(r.pxmid,r.px0,!0,1)+"Z";A?f.attr("d","M"+(l+A*r.px0[0])+","+(c+A*r.px0[1])+E(r.px0,r.pxmid,!1,A)+E(r.pxmid,r.px0,!1,A)+"Z"+O):f.attr("d",O)}else{var w=E(r.px0,r.px1,!0,1);if(A){var k=1-A;f.attr("d","M"+(l+A*r.px1[0])+","+(c+A*r.px1[1])+E(r.px1,r.px0,!1,A)+"l"+k*r.px0[0]+","+k*r.px0[1]+w+"Z")}else f.attr("d","M"+l+","+c+"l"+r.px0[0]+","+r.px0[1]+w+"Z")}R(e,r,g);var S=m.castOption(y.textposition,r.pts),C=h.selectAll("g.slicetext").data(r.text&&"none"!==S?[0]:[]);C.enter().append("g").classed("slicetext",!0),C.exit().remove(),C.each(function(){var a=s.ensureSingle(n.select(this),"text","",function(e){e.attr("data-notex",1)}),h=s.ensureUniformFontSize(e,"outside"===S?function(e,t,n){var r=m.castOption(e.outsidetextfont.color,t.pts)||m.castOption(e.textfont.color,t.pts)||n.color,a=m.castOption(e.outsidetextfont.family,t.pts)||m.castOption(e.textfont.family,t.pts)||n.family,i=m.castOption(e.outsidetextfont.size,t.pts)||m.castOption(e.textfont.size,t.pts)||n.size,o=m.castOption(e.outsidetextfont.weight,t.pts)||m.castOption(e.textfont.weight,t.pts)||n.weight,s=m.castOption(e.outsidetextfont.style,t.pts)||m.castOption(e.textfont.style,t.pts)||n.style,l=m.castOption(e.outsidetextfont.variant,t.pts)||m.castOption(e.textfont.variant,t.pts)||n.variant,c=m.castOption(e.outsidetextfont.textcase,t.pts)||m.castOption(e.textfont.textcase,t.pts)||n.textcase,u=m.castOption(e.outsidetextfont.lineposition,t.pts)||m.castOption(e.textfont.lineposition,t.pts)||n.lineposition,d=m.castOption(e.outsidetextfont.shadow,t.pts)||m.castOption(e.textfont.shadow,t.pts)||n.shadow;return{color:r,family:a,size:i,weight:o,style:s,variant:l,textcase:c,lineposition:u,shadow:d}}(y,r,d.font):v(y,r,d.font));a.text(r.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(o.font,h).call(u.convertToTspans,e);var f,b=o.bBox(a.node());if("outside"===S)f=T(b,r);else if(f=x(b,r,g),"auto"===S&&f.scale<1){var M=s.ensureUniformFontSize(e,y.outsidetextfont);a.call(o.font,M),f=T(b=o.bBox(a.node()),r)}var z=f.textPosAngle,A=void 0===z?r.pxmid:D(g.r,z);if(f.targetX=l+A[0]*f.rCenter+(f.x||0),f.targetY=c+A[1]*f.rCenter+(f.y||0),L(f,b),f.outside){var O=f.targetY;r.yLabelMin=O-b.height/2,r.yLabelMid=O,r.yLabelMax=O+b.height/2,r.labelExtraX=0,r.labelExtraY=0,_=!0}f.fontSize=h.size,p(y.type,f,d),t[i].transform=f,s.setTransormAndDisplay(a,f)})}function E(e,t,n,a){var i=a*(t[0]-e[0]),o=a*(t[1]-e[1]);return"a"+a*g.r+","+a*g.r+" 0 "+r.largeArc+(n?" 1 ":" 0 ")+i+","+o}});var A=n.select(this).selectAll("g.titletext").data(y.title.text?[0]:[]);if(A.enter().append("g").classed("titletext",!0),A.exit().remove(),A.each(function(){var t,r=s.ensureSingle(n.select(this),"text","",function(e){e.attr("data-notex",1)}),a=y.title.text;y._meta&&(a=s.templateString(a,y._meta)),r.text(a).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(o.font,y.title.font).call(u.convertToTspans,e),t="middle center"===y.title.position?function(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}(g):S(g,f),r.attr("transform",c(t.x,t.y)+l(Math.min(1,t.scale))+c(t.tx,t.ty))}),_&&function(e,t){var n,r,a,i,o,l,c,u,d,p,h,f,g;function y(e,t){return e.pxmid[1]-t.pxmid[1]}function b(e,t){return t.pxmid[1]-e.pxmid[1]}function v(e,n){n||(n={});var a,u,d,h,f=n.labelExtraY+(r?n.yLabelMax:n.yLabelMin),g=r?e.yLabelMin:e.yLabelMax,y=r?e.yLabelMax:e.yLabelMin,b=e.cyFinal+o(e.px0[1],e.px1[1]),v=f-g;if(v*c>0&&(e.labelExtraY=v),s.isArrayOrTypedArray(t.pull))for(u=0;u<p.length;u++)!((d=p[u])===e||(m.castOption(t.pull,e.pts)||0)>=(m.castOption(t.pull,d.pts)||0))&&((e.pxmid[1]-d.pxmid[1])*c>0?(v=d.cyFinal+o(d.px0[1],d.px1[1])-g-e.labelExtraY)*c>0&&(e.labelExtraY+=v):(y+e.labelExtraY-b)*c>0&&(a=3*l*Math.abs(u-p.indexOf(e)),(h=d.cxFinal+i(d.px0[0],d.px1[0])+a-(e.cxFinal+e.pxmid[0])-e.labelExtraX)*l>0&&(e.labelExtraX+=h)))}for(r=0;r<2;r++)for(a=r?y:b,o=r?Math.max:Math.min,c=r?1:-1,n=0;n<2;n++){for(i=n?Math.max:Math.min,l=n?1:-1,(u=e[r][n]).sort(a),d=e[1-r][n],p=d.concat(u),f=[],h=0;h<u.length;h++)void 0!==u[h].yLabelMid&&f.push(u[h]);for(g=!1,h=0;r&&h<d.length;h++)if(void 0!==d[h].yLabelMid){g=d[h];break}for(h=0;h<f.length;h++){var M=h&&f[h-1];g&&!h&&(M=g),v(f[h],M)}}}(z,y),function(e,t){e.each(function(e){var r=n.select(this);if(e.labelExtraX||e.labelExtraY){var a=r.select("g.slicetext text");e.transform.targetX+=e.labelExtraX,e.transform.targetY+=e.labelExtraY,s.setTransormAndDisplay(a,e.transform);var o=e.cxFinal+e.pxmid[0],l="M"+o+","+(e.cyFinal+e.pxmid[1]),c=(e.yLabelMax-e.yLabelMin)*(e.pxmid[0]<0?-1:1)/4;if(e.labelExtraX){var u=e.labelExtraX*e.pxmid[1]/e.pxmid[0],d=e.yLabelMid+e.labelExtraY-(e.cyFinal+e.pxmid[1]);Math.abs(u)>Math.abs(d)?l+="l"+d*e.pxmid[0]/e.pxmid[1]+","+d+"H"+(o+e.labelExtraX+c):l+="l"+e.labelExtraX+","+u+"v"+(d-u)+"h"+c}else l+="V"+(e.yLabelMid+e.labelExtraY)+"h"+c;s.ensureSingle(r,"path","textline").call(i.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:l,fill:"none"})}else r.select("path.textline").remove()})}(M,y),_&&y.automargin){var O=o.bBox(h.node()),w=y.domain,k=f.w*(w.x[1]-w.x[0]),C=f.h*(w.y[1]-w.y[0]),E=(.5*k-g.r)/f.w,q=(.5*C-g.r)/f.h;r.autoMargin(e,"pie."+y.uid+".automargin",{xl:w.x[0]-E,xr:w.x[1]+E,yb:w.y[0]-q,yt:w.y[1]+q,l:Math.max(g.cx-g.r-O.left,0),r:Math.max(O.right-(g.cx+g.r),0),b:Math.max(O.bottom-(g.cy+g.r),0),t:Math.max(g.cy-g.r-O.top,0),pad:5})}})});setTimeout(function(){g.selectAll("tspan").each(function(){var e=n.select(this);e.attr("dy")&&e.attr("dy",e.attr("dy"))})},0)},formatSliceLabel:R,transformInsideText:x,determineInsideTextFont:v,positionTitleOutside:S,prerenderTitles:M,layoutAreas:q,attachFxHandlers:b,computeTransform:L}}),Crt=Ee((e,t)=>{var n=mo(),r=mS(),a=g2().resizeText;t.exports=function(e){var t=e._fullLayout._pielayer.selectAll(".trace");a(e,t,"pie"),t.each(function(t){var a=t[0].trace,i=n.select(this);i.style({opacity:a.opacity}),i.selectAll("path.surface").each(function(t){n.select(this).call(r,t,a,e)})})}}),qrt=Ee(e=>{var t=td();e.name="pie",e.plot=function(n,r,a,i){t.plotBasePlot(e.name,n,r,a,i)},e.clean=function(n,r,a,i){t.cleanBasePlot(e.name,n,r,a,i)}}),Rrt=Ee((e,t)=>{t.exports={attributes:aO(),supplyDefaults:iO().supplyDefaults,supplyLayoutDefaults:trt(),layoutAttributes:AX(),calc:Ok().calc,crossTraceCalc:Ok().crossTraceCalc,plot:SX().plot,style:Crt(),styleOne:mS(),moduleType:"trace",name:"pie",basePlotModule:qrt(),categories:["pie-like","pie","showLegend"],meta:{description:["A data visualized by the sectors of the pie is set in `values`.","The sector labels are set in `labels`.","The sector colors are set in `marker.colors`"].join(" ")}}}),Prt=Ee((e,t)=>{t.exports=Rrt()}),Nrt=Ee(e=>{var t=td();e.name="sunburst",e.plot=function(n,r,a,i){t.plotBasePlot(e.name,n,r,a,i)},e.clean=function(n,r,a,i){t.cleanBasePlot(e.name,n,r,a,i)}}),Ude=Ee((e,t)=>{t.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}}),ML=Ee((e,t)=>{var n=S1(),{hovertemplateAttrs:r,texttemplateAttrs:a,templatefallbackAttrs:i}=p1(),o=Oc(),s=ad().attributes,l=aO(),c=Ude(),u=ms().extendFlat,d=pp().pattern;t.exports={labels:{valType:"data_array",editType:"calc",description:["Sets the labels of each of the sectors."].join(" ")},parents:{valType:"data_array",editType:"calc",description:["Sets the parent sectors for each of the sectors.","Empty string items '' are understood to reference","the root node in the hierarchy.",'If `ids` is filled, `parents` items are understood to be "ids" themselves.',"When `ids` is not set, plotly attempts to find matching items in `labels`,","but beware they must be unique."].join(" ")},values:{valType:"data_array",editType:"calc",description:["Sets the values associated with each of the sectors.","Use with `branchvalues` to determine how the values are summed."].join(" ")},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc",description:["Determines how the items in `values` are summed.","When set to *total*, items in `values` are taken to be value of all its descendants.","When set to *remainder*, items in `values` corresponding to the root and the branches sectors","are taken to be the extra part not part of the sum of the values at their leaves."].join(" ")},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc",description:["Determines default for `values` when it is not provided,","by inferring a 1 for each of the *leaves* and/or *branches*, otherwise 0."].join(" ")},level:{valType:"any",editType:"plot",anim:!0,description:["Sets the level from which this trace hierarchy is rendered.","Set `level` to `''` to start from the root node in the hierarchy.",'Must be an "id" if `ids` is filled in, otherwise plotly attempts to find a matching',"item in `labels`."].join(" ")},maxdepth:{valType:"integer",editType:"plot",dflt:-1,description:["Sets the number of rendered sectors from any given `level`.","Set `maxdepth` to *-1* to render all the levels in the hierarchy."].join(" ")},marker:u({colors:{valType:"data_array",editType:"calc",description:["Sets the color of each sector of this trace.","If not specified, the default trace color set is used","to pick the sector colors."].join(" ")},line:{color:u({},l.marker.line.color,{dflt:null,description:["Sets the color of the line enclosing each sector.","Defaults to the `paper_bgcolor` value."].join(" ")}),width:u({},l.marker.line.width,{dflt:1}),editType:"calc"},pattern:d,editType:"calc"},o("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1,description:["Sets the opacity of the leaves. With colorscale","it is defaulted to 1; otherwise it is defaulted to 0.7"].join(" ")},editType:"plot"},text:l.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot",description:["Determines which trace information appear on the graph."].join(" ")},texttemplate:a({editType:"plot"},{keys:c.eventDataKeys.concat(["label","value"])}),texttemplatefallback:i({editType:"plot"}),hovertext:l.hovertext,hoverinfo:u({},n.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:r({},{keys:c.eventDataKeys}),hovertemplatefallback:i(),textfont:l.textfont,insidetextorientation:l.insidetextorientation,insidetextfont:l.insidetextfont,outsidetextfont:u({},l.outsidetextfont,{description:["Sets the font used for `textinfo` lying outside the sector.","This option refers to the root of the hierarchy","presented at the center of a sunburst graph.","Please note that if a hierarchy has multiple root nodes,","this option won't have any effect and `insidetextfont` would be used."].join(" ")}),rotation:{valType:"angle",dflt:0,editType:"plot",description:["Rotates the whole diagram counterclockwise by some angle.","By default the first slice starts at 3 o'clock."].join(" ")},sort:l.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)",description:["sets the color of the root node for a sunburst/treemap/icicle trace.","this has no effect when a colorscale is used to set the markers."].join(" ")},editType:"calc"},domain:s({name:"sunburst",trace:!0,editType:"calc"})}}),Hde=Ee((e,t)=>{t.exports={sunburstcolorway:{valType:"colorlist",editType:"calc",description:["Sets the default sunburst slice colors. Defaults to the main","`colorway` used for trace colors. If you specify a new","list here it can still be extended with lighter and darker","colors, see `extendsunburstcolors`."].join(" ")},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc",description:["If `true`, the sunburst slice colors (whether given by `sunburstcolorway` or","inherited from `colorway`) will be extended to three times its","original length by first repeating every color 20% lighter then","each color 20% darker. This is intended to reduce the likelihood","of reusing the same color when you have many slices, but you can","set `false` to disable.","Colors provided in the trace, using `marker.colors`, are never","extended."].join(" ")}}}),Xrt=Ee((e,t)=>{var n=Fr(),r=ML(),a=ad().defaults,i=Vv().handleText,o=iO().handleMarkerDefaults,s=xu(),l=s.hasColorscale,c=s.handleDefaults;t.exports=function(e,t,s,u){function d(a,i){return n.coerce(e,t,r,a,i)}var p=d("labels"),h=d("parents");if(p&&p.length&&h&&h.length){var f=d("values");f&&f.length?d("branchvalues"):d("count"),d("level"),d("maxdepth"),o(e,t,u,d);var m=t._hasColorscale=l(e,"marker","colors")||(e.marker||{}).coloraxis;m&&c(e,t,u,d,{prefix:"marker.",cLetter:"c"}),d("leaf.opacity",m?1:.7);var g=d("text");d("texttemplate"),d("texttemplatefallback"),t.texttemplate||d("textinfo",n.isArrayOrTypedArray(g)?"text+label":"label"),d("hovertext"),d("hovertemplate"),d("hovertemplatefallback");i(e,t,u,d,"auto",{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),d("insidetextorientation"),d("sort"),d("rotation"),d("root.color"),a(t,u,d),t._length=null}else t.visible=!1}}),Zrt=Ee((e,t)=>{var n=Fr(),r=Hde();t.exports=function(e,t){function a(a,i){return n.coerce(e,t,r,a,i)}a("sunburstcolorway",t.colorway),a("extendsunburstcolors")}}),xL=Ee((e,t)=>{var n,r;n=e,r=function(e){function t(e,t){return e.parent===t.parent?1:2}function n(e,t){return e+t.x}function r(e,t){return Math.max(e,t.y)}function a(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function i(e,t){var n,r,a,i,s,u=new c(e),d=+e.value&&(u.value=e.value),p=[u];for(null==t&&(t=o);n=p.pop();)if(d&&(n.value=+n.data.value),(a=t(n.data))&&(s=a.length))for(n.children=new Array(s),i=s-1;i>=0;--i)p.push(r=n.children[i]=new c(a[i])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(l)}function o(e){return e.children}function s(e){e.data=e.data.data}function l(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function c(e){this.data=e,this.depth=this.height=0,this.parent=null}c.prototype=i.prototype={constructor:c,count:function(){return this.eachAfter(a)},each:function(e){var t,n,r,a,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(e(i),n=i.children)for(r=0,a=n.length;r<a;++r)o.push(n[r])}while(o.length);return this},eachAfter:function(e){for(var t,n,r,a=this,i=[a],o=[];a=i.pop();)if(o.push(a),t=a.children)for(n=0,r=t.length;n<r;++n)i.push(t[n]);for(;a=o.pop();)e(a);return this},eachBefore:function(e){for(var t,n,r=this,a=[r];r=a.pop();)if(e(r),t=r.children)for(n=t.length-1;n>=0;--n)a.push(t[n]);return this},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,a=r&&r.length;--a>=0;)n+=r[a].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),a=null;for(e=n.pop(),t=r.pop();e===t;)a=e,e=n.pop(),t=r.pop();return a}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var a=r.length;e!==n;)r.splice(a,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each(function(t){e.push(t)}),e},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return i(this).eachBefore(s)}};var u=Array.prototype.slice;function d(e){for(var t,n,r=0,a=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(u.call(e))).length,i=[];r<a;)t=e[r],n&&f(n,t)?++r:(n=g(i=p(i,t)),r=0);return n}function p(e,t){var n,r;if(m(t,e))return[t];for(n=0;n<e.length;++n)if(h(t,e[n])&&m(y(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(h(y(e[n],e[r]),t)&&h(y(e[n],t),e[r])&&h(y(e[r],t),e[n])&&m(b(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function h(e,t){var n=e.r-t.r,r=t.x-e.x,a=t.y-e.y;return n<0||n*n<r*r+a*a}function f(e,t){var n=e.r-t.r+1e-6,r=t.x-e.x,a=t.y-e.y;return n>0&&n*n>r*r+a*a}function m(e,t){for(var n=0;n<t.length;++n)if(!f(e,t[n]))return!1;return!0}function g(e){switch(e.length){case 1:return function(e){return{x:e.x,y:e.y,r:e.r}}(e[0]);case 2:return y(e[0],e[1]);case 3:return b(e[0],e[1],e[2])}}function y(e,t){var n=e.x,r=e.y,a=e.r,i=t.x,o=t.y,s=t.r,l=i-n,c=o-r,u=s-a,d=Math.sqrt(l*l+c*c);return{x:(n+i+l/d*u)/2,y:(r+o+c/d*u)/2,r:(d+a+s)/2}}function b(e,t,n){var r=e.x,a=e.y,i=e.r,o=t.x,s=t.y,l=t.r,c=n.x,u=n.y,d=n.r,p=r-o,h=r-c,f=a-s,m=a-u,g=l-i,y=d-i,b=r*r+a*a-i*i,v=b-o*o-s*s+l*l,M=b-c*c-u*u+d*d,x=h*f-p*m,z=(f*M-m*v)/(2*x)-r,_=(m*g-f*y)/x,A=(h*v-p*M)/(2*x)-a,O=(p*y-h*g)/x,w=_*_+O*O-1,k=2*(i+z*_+A*O),T=z*z+A*A-i*i,S=-(w?(k+Math.sqrt(k*k-4*w*T))/(2*w):T/k);return{x:r+z+_*S,y:a+A+O*S,r:S}}function v(e,t,n){var r,a,i,o,s=e.x-t.x,l=e.y-t.y,c=s*s+l*l;c?(a=t.r+n.r,a*=a,o=e.r+n.r,a>(o*=o)?(r=(c+o-a)/(2*c),i=Math.sqrt(Math.max(0,o/c-r*r)),n.x=e.x-r*s-i*l,n.y=e.y-r*l+i*s):(r=(c+a-o)/(2*c),i=Math.sqrt(Math.max(0,a/c-r*r)),n.x=t.x+r*s-i*l,n.y=t.y+r*l+i*s)):(n.x=t.x+n.r,n.y=t.y)}function M(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,a=t.y-e.y;return n>0&&n*n>r*r+a*a}function x(e){var t=e._,n=e.next._,r=t.r+n.r,a=(t.x*n.r+n.x*t.r)/r,i=(t.y*n.r+n.y*t.r)/r;return a*a+i*i}function z(e){this._=e,this.next=null,this.previous=null}function _(e){if(!(a=e.length))return 0;var t,n,r,a,i,o,s,l,c,u,p;if((t=e[0]).x=0,t.y=0,!(a>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(a>2))return t.r+n.r;v(n,t,r=e[2]),t=new z(t),n=new z(n),r=new z(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;s<a;++s){v(t._,n._,r=e[s]),r=new z(r),l=n.next,c=t.previous,u=n._.r,p=t._.r;do{if(u<=p){if(M(l._,r._)){n=l,t.next=n,n.previous=t,--s;continue e}u+=l._.r,l=l.next}else{if(M(c._,r._)){(t=c).next=n,n.previous=t,--s;continue e}p+=c._.r,c=c.previous}}while(l!==c.next);for(r.previous=t,r.next=n,t.next=n.previous=n=r,i=x(t);(r=r.next)!==n;)(o=x(r))<i&&(t=r,i=o);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(r=d(t),s=0;s<a;++s)(t=e[s]).x-=r.x,t.y-=r.y;return r.r}function A(e){if("function"!=typeof e)throw new Error;return e}function O(){return 0}function w(e){return function(){return e}}function k(e){return Math.sqrt(e.value)}function T(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function S(e,t){return function(n){if(r=n.children){var r,a,i,o=r.length,s=e(n)*t||0;if(s)for(a=0;a<o;++a)r[a].r+=s;if(i=_(r),s)for(a=0;a<o;++a)r[a].r-=s;n.r=i+s}}}function C(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function E(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function q(e,t,n,r,a){for(var i,o=e.children,s=-1,l=o.length,c=e.value&&(r-t)/e.value;++s<l;)(i=o[s]).y0=n,i.y1=a,i.x0=t,i.x1=t+=i.value*c}var D={depth:-1},R={};function L(e){return e.id}function I(e){return e.parentId}function W(e,t){return e.parent===t.parent?1:2}function N(e){var t=e.children;return t?t[0]:e.t}function P(e){var t=e.children;return t?t[t.length-1]:e.t}function B(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function F(e,t,n){return e.a.parent===t.parent?e.a:n}function j(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function U(e,t,n,r,a){for(var i,o=e.children,s=-1,l=o.length,c=e.value&&(a-n)/e.value;++s<l;)(i=o[s]).x0=t,i.x1=r,i.y0=n,i.y1=n+=i.value*c}j.prototype=Object.create(c.prototype);var V=(1+Math.sqrt(5))/2;function H(e,t,n,r,a,i){for(var o,s,l,c,u,d,p,h,f,m,g,y=[],b=t.children,v=0,M=0,x=b.length,z=t.value;v<x;){l=a-n,c=i-r;do{u=b[M++].value}while(!u&&M<x);for(d=p=u,g=u*u*(m=Math.max(c/l,l/c)/(z*e)),f=Math.max(p/g,g/d);M<x;++M){if(u+=s=b[M].value,s<d&&(d=s),s>p&&(p=s),g=u*u*m,(h=Math.max(p/g,g/d))>f){u-=s;break}f=h}y.push(o={value:u,dice:l<c,children:b.slice(v,M)}),o.dice?q(o,n,r,a,z?r+=c*u/z:i):U(o,n,r,z?n+=l*u/z:a,i),z-=u,v=M}return y}var X=function e(t){function n(e,n,r,a,i){H(t,e,n,r,a,i)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(V),G=function e(t){function n(e,n,r,a,i){if((o=e._squarify)&&o.ratio===t)for(var o,s,l,c,u,d=-1,p=o.length,h=e.value;++d<p;){for(l=(s=o[d]).children,c=s.value=0,u=l.length;c<u;++c)s.value+=l[c].value;s.dice?q(s,n,r,a,r+=(i-r)*s.value/h):U(s,n,r,n+=(a-n)*s.value/h,i),h-=s.value}else e._squarify=o=H(t,e,n,r,a,i),o.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(V);e.cluster=function(){var e=t,a=1,i=1,o=!1;function s(t){var s,l=0;t.eachAfter(function(t){var a=t.children;a?(t.x=function(e){return e.reduce(n,0)/e.length}(a),t.y=function(e){return 1+e.reduce(r,0)}(a)):(t.x=s?l+=e(t,s):0,t.y=0,s=t)});var c=function(e){for(var t;t=e.children;)e=t[0];return e}(t),u=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(t),d=c.x-e(c,u)/2,p=u.x+e(u,c)/2;return t.eachAfter(o?function(e){e.x=(e.x-t.x)*a,e.y=(t.y-e.y)*i}:function(e){e.x=(e.x-d)/(p-d)*a,e.y=(1-(t.y?e.y/t.y:1))*i})}return s.separation=function(t){return arguments.length?(e=t,s):e},s.size=function(e){return arguments.length?(o=!1,a=+e[0],i=+e[1],s):o?null:[a,i]},s.nodeSize=function(e){return arguments.length?(o=!0,a=+e[0],i=+e[1],s):o?[a,i]:null},s},e.hierarchy=i,e.pack=function(){var e=null,t=1,n=1,r=O;function a(a){return a.x=t/2,a.y=n/2,e?a.eachBefore(T(e)).eachAfter(S(r,.5)).eachBefore(C(1)):a.eachBefore(T(k)).eachAfter(S(O,1)).eachAfter(S(r,a.r/Math.min(t,n))).eachBefore(C(Math.min(t,n)/(2*a.r))),a}return a.radius=function(t){return arguments.length?(e=function(e){return null==e?null:A(e)}(t),a):e},a.size=function(e){return arguments.length?(t=+e[0],n=+e[1],a):[t,n]},a.padding=function(e){return arguments.length?(r="function"==typeof e?e:w(+e),a):r},a},e.packEnclose=d,e.packSiblings=function(e){return _(e),e},e.partition=function(){var e=1,t=1,n=0,r=!1;function a(a){var i=a.height+1;return a.x0=a.y0=n,a.x1=e,a.y1=t/i,a.eachBefore(function(e,t){return function(r){r.children&&q(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var a=r.x0,i=r.y0,o=r.x1-n,s=r.y1-n;o<a&&(a=o=(a+o)/2),s<i&&(i=s=(i+s)/2),r.x0=a,r.y0=i,r.x1=o,r.y1=s}}(t,i)),r&&a.eachBefore(E),a}return a.round=function(e){return arguments.length?(r=!!e,a):r},a.size=function(n){return arguments.length?(e=+n[0],t=+n[1],a):[e,t]},a.padding=function(e){return arguments.length?(n=+e,a):n},a},e.stratify=function(){var e=L,t=I;function n(n){var r,a,i,o,s,u,d,p=n.length,h=new Array(p),f={};for(a=0;a<p;++a)r=n[a],s=h[a]=new c(r),null!=(u=e(r,a,n))&&(u+="")&&(f[d="$"+(s.id=u)]=d in f?R:s);for(a=0;a<p;++a)if(s=h[a],null!=(u=t(n[a],a,n))&&(u+="")){if(!(o=f["$"+u]))throw new Error("missing: "+u);if(o===R)throw new Error("ambiguous: "+u);o.children?o.children.push(s):o.children=[s],s.parent=o}else{if(i)throw new Error("multiple roots");i=s}if(!i)throw new Error("no root");if(i.parent=D,i.eachBefore(function(e){e.depth=e.parent.depth+1,--p}).eachBefore(l),i.parent=null,p>0)throw new Error("cycle");return i}return n.id=function(t){return arguments.length?(e=A(t),n):e},n.parentId=function(e){return arguments.length?(t=A(e),n):t},n},e.tree=function(){var e=W,t=1,n=1,r=null;function a(a){var l=function(e){for(var t,n,r,a,i,o=new j(e,0),s=[o];t=s.pop();)if(r=t._.children)for(t.children=new Array(i=r.length),a=i-1;a>=0;--a)s.push(n=t.children[a]=new j(r[a],a)),n.parent=t;return(o.parent=new j(null,0)).children=[o],o}(a);if(l.eachAfter(i),l.parent.m=-l.z,l.eachBefore(o),r)a.eachBefore(s);else{var c=a,u=a,d=a;a.eachBefore(function(e){e.x<c.x&&(c=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)});var p=c===u?1:e(c,u)/2,h=p-c.x,f=t/(u.x+p+h),m=n/(d.depth||1);a.eachBefore(function(e){e.x=(e.x+h)*f,e.y=e.depth*m})}return a}function i(t){var n=t.children,r=t.parent.children,a=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,a=e.children,i=a.length;--i>=0;)(t=a[i]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var i=(n[0].z+n[n.length-1].z)/2;a?(t.z=a.z+e(t._,a._),t.m=t.z-i):t.z=i}else a&&(t.z=a.z+e(t._,a._));t.parent.A=function(t,n,r){if(n){for(var a,i=t,o=t,s=n,l=i.parent.children[0],c=i.m,u=o.m,d=s.m,p=l.m;s=P(s),i=N(i),s&&i;)l=N(l),(o=P(o)).a=t,(a=s.z+d-i.z-c+e(s._,i._))>0&&(B(F(s,t,r),t,a),c+=a,u+=a),d+=s.m,c+=i.m,p+=l.m,u+=o.m;s&&!P(o)&&(o.t=s,o.m+=d-u),i&&!N(l)&&(l.t=i,l.m+=c-p,r=t)}return r}(t,a,t.parent.A||r[0])}function o(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return a.separation=function(t){return arguments.length?(e=t,a):e},a.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],a):r?null:[t,n]},a.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],a):r?[t,n]:null},a},e.treemap=function(){var e=X,t=!1,n=1,r=1,a=[0],i=O,o=O,s=O,l=O,c=O;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),a=[0],t&&e.eachBefore(E),e}function d(t){var n=a[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,p=t.y1-n;d<r&&(r=d=(r+d)/2),p<u&&(u=p=(u+p)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=p,t.children&&(n=a[t.depth+1]=i(t)/2,r+=c(t)-n,u+=o(t)-n,(d-=s(t)-n)<r&&(r=d=(r+d)/2),(p-=l(t)-n)<u&&(u=p=(u+p)/2),e(t,r,u,d,p))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=A(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(i="function"==typeof e?e:w(+e),u):i},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o="function"==typeof e?e:w(+e),u):o},u.paddingRight=function(e){return arguments.length?(s="function"==typeof e?e:w(+e),u):s},u.paddingBottom=function(e){return arguments.length?(l="function"==typeof e?e:w(+e),u):l},u.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:w(+e),u):c},u},e.treemapBinary=function(e,t,n,r,a){var i,o,s=e.children,l=s.length,c=new Array(l+1);for(c[0]=o=i=0;i<l;++i)c[i+1]=o+=s[i].value;!function e(t,n,r,a,i,o,l){if(t>=n-1){var u=s[t];return u.x0=a,u.y0=i,u.x1=o,void(u.y1=l)}for(var d=c[t],p=r/2+d,h=t+1,f=n-1;h<f;){var m=h+f>>>1;c[m]<p?h=m+1:f=m}p-c[h-1]<c[h]-p&&t+1<h&&--h;var g=c[h]-d,y=r-g;if(o-a>l-i){var b=(a*y+o*g)/r;e(t,h,g,a,i,b,l),e(h,n,y,b,i,o,l)}else{var v=(i*y+l*g)/r;e(t,h,g,a,i,o,v),e(h,n,y,a,v,o,l)}}(0,l,e.value,t,n,r,a)},e.treemapDice=q,e.treemapResquarify=G,e.treemapSlice=U,e.treemapSliceDice=function(e,t,n,r,a){(1&e.depth?U:q)(e,t,n,r,a)},e.treemapSquarify=X,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?r(e):"function"==typeof define&&define.amd?define(["exports"],r):r((n=n||self).d3=n.d3||{})}),zL=Ee(e=>{var t=xL(),n=xs(),r=Fr(),a=xu().makeColorScaleFuncFromTrace,i=Ok().makePullColorFn,o=Ok().generateExtendedColors,s=xu().calc,l=T0().ALMOST_EQUAL,c={},u={},d={};function p(e,t,n){var r=0,a=e.children;if(a){for(var i=a.length,o=0;o<i;o++)r+=p(a[o],t,n);n.branches&&r++}else n.leaves&&r++;return e.value=e.data.data.value=r,t._values||(t._values=[]),t._values[e.data.data.i]=r,r}e.calc=function(e,o){var c,u,d,h,f=e._fullLayout,m=o.ids,g=r.isArrayOrTypedArray(m),y=o.labels,b=o.parents,v=o.values,M=r.isArrayOrTypedArray(v),x=[],z={},_={},A=function(e,t){z[e]?z[e].push(t):z[e]=[t],_[t]=1},O=function(e){return e||"number"==typeof e},w=function(e){return!M||n(v[e])&&v[e]>=0};g?(c=Math.min(m.length,b.length),u=function(e){return O(m[e])&&w(e)},d=function(e){return String(m[e])}):(c=Math.min(y.length,b.length),u=function(e){return O(y[e])&&w(e)},d=function(e){return String(y[e])}),M&&(c=Math.min(c,v.length));for(var k=0;k<c;k++)if(u(k)){var T=d(k),S=O(b[k])?String(b[k]):"",C={i:k,id:T,pid:S,label:O(y[k])?String(y[k]):""};M&&(C.v=+v[k]),x.push(C),A(S,T)}if(z[""]){if(z[""].length>1){for(var E=r.randstr(),q=0;q<x.length;q++)""===x[q].pid&&(x[q].pid=E);x.unshift({hasMultipleRoots:!0,id:E,pid:"",label:""})}}else{var D,R=[];for(D in z)_[D]||R.push(D);if(1!==R.length)return r.warn(["Multiple implied roots, cannot build",o.type,"hierarchy of",o.name+".","These roots include:",R.join(", ")].join(" "));D=R[0],x.unshift({hasImpliedRoot:!0,id:D,pid:"",label:D})}try{h=t.stratify().id(function(e){return e.id}).parentId(function(e){return e.pid})(x)}catch(e){return r.warn(["Failed to build",o.type,"hierarchy of",o.name+".","Error:",e.message].join(" "))}var L=t.hierarchy(h),I=!1;if(M)switch(o.branchvalues){case"remainder":L.sum(function(e){return e.data.v});break;case"total":L.each(function(e){var t=e.data.data,n=t.v;if(e.children){var a=e.children.reduce(function(e,t){return e+t.data.data.v},0);if((t.hasImpliedRoot||t.hasMultipleRoots)&&(n=a),n<a*l)return I=!0,r.warn(["Total value for node",e.data.data.id,"of",o.name,"is smaller than the sum of its children.","\nparent value =",n,"\nchildren sum =",a].join(" "))}e.value=n})}else p(L,o,{branches:-1!==o.count.indexOf("branches"),leaves:-1!==o.count.indexOf("leaves")});if(!I){o.sort&&L.sort(function(e,t){return t.value-e.value});var W,N,P=o.marker.colors||[],B=!!P.length;return o._hasColorscale?(B||(P=M?o.values:o._values),s(e,o,{vals:P,containerStr:"marker",cLetter:"c"}),N=a(o.marker)):W=i(f["_"+o.type+"colormap"]),L.each(function(e){var t=e.data.data;t.color=o._hasColorscale?N(P[t.i]):W(P[t.i],t.id)}),x[0].hierarchy=L,x}},e._runCrossTraceCalc=function(e,t){var n=t._fullLayout,r=t.calcdata,a=n[e+"colorway"],i=n["_"+e+"colormap"];n["extend"+e+"colors"]&&(a=o(a,"icicle"===e?d:"treemap"===e?u:c));var s,l=0;function p(e){var t=e.data.data,n=t.id;!1===t.color&&(i[n]?t.color=i[n]:e.parent?e.parent.parent?t.color=e.parent.data.data.color:(i[n]=t.color=a[l%a.length],l++):t.color=s)}for(var h=0;h<r.length;h++){var f=r[h][0];f.trace.type===e&&f.hierarchy&&(s=f.trace.root.color,f.hierarchy.each(p))}},e.crossTraceCalc=function(t){return e._runCrossTraceCalc("sunburst",t)}});function Ux(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function b4(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}var CX=kr(()=>{});function H3(){}function ent(){return this.rgb().formatHex()}function Phr(){return this.rgb().formatHex8()}function Ihr(){return snt(this).formatHsl()}function tnt(){return this.rgb().formatRgb()}function x4(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=khr.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?rnt(t):3===n?new Jh(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?EX(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?EX(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Chr.exec(e))?new Jh(t[1],t[2],t[3],1):(t=Ehr.exec(e))?new Jh(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=qhr.exec(e))?EX(t[1],t[2],t[3],t[4]):(t=Dhr.exec(e))?EX(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Rhr.exec(e))?int(t[1],t[2]/100,t[3]/100,1):(t=Lhr.exec(e))?int(t[1],t[2]/100,t[3]/100,t[4]):Qrt.hasOwnProperty(e)?rnt(Qrt[e]):"transparent"===e?new Jh(NaN,NaN,NaN,0):null}function rnt(e){return new Jh(e>>16&255,e>>8&255,255&e,1)}function EX(e,t,n,r){return r<=0&&(e=t=n=NaN),new Jh(e,t,n,r)}function wL(e){return e instanceof H3||(e=x4(e)),e?new Jh((e=e.rgb()).r,e.g,e.b,e.opacity):new Jh}function Ek(e,t,n,r){return 1===arguments.length?wL(e):new Jh(e,t,n,r??1)}function Jh(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function nnt(){return`#${oO(this.r)}${oO(this.g)}${oO(this.b)}`}function Nhr(){return`#${oO(this.r)}${oO(this.g)}${oO(this.b)}${oO(255*(isNaN(this.opacity)?1:this.opacity))}`}function ant(){let e=DX(this.opacity);return`${1===e?"rgb(":"rgba("}${sO(this.r)}, ${sO(this.g)}, ${sO(this.b)}${1===e?")":`, ${e})`}`}function DX(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function sO(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function oO(e){return((e=sO(e))<16?"0":"")+e.toString(16)}function int(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new vb(e,t,n,r)}function snt(e){if(e instanceof vb)return new vb(e.h,e.s,e.l,e.opacity);if(e instanceof H3||(e=x4(e)),!e)return new vb;if(e instanceof vb)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,l=(i+a)/2;return s?(o=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+a:2-i-a,o*=60):s=l>0&&l<1?0:o,new vb(o,s,l,e.opacity)}function OL(e,t,n,r){return 1===arguments.length?snt(e):new vb(e,t,n,r??1)}function vb(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ont(e){return(e=(e||0)%360)<0?e+360:e}function qX(e){return Math.max(0,Math.min(1,e||0))}function Vde(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}var M4,lO,Ck,AL,U3,khr,Chr,Ehr,qhr,Dhr,Rhr,Lhr,Qrt,LX,PX,RX=kr(()=>{CX(),lO=1/(M4=.7),Ck="\\s*([+-]?\\d+)\\s*",AL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",U3="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",khr=/^#([0-9a-f]{3,8})$/,Chr=new RegExp(`^rgb\\(${Ck},${Ck},${Ck}\\)$`),Ehr=new RegExp(`^rgb\\(${U3},${U3},${U3}\\)$`),qhr=new RegExp(`^rgba\\(${Ck},${Ck},${Ck},${AL}\\)$`),Dhr=new RegExp(`^rgba\\(${U3},${U3},${U3},${AL}\\)$`),Rhr=new RegExp(`^hsl\\(${AL},${U3},${U3}\\)$`),Lhr=new RegExp(`^hsla\\(${AL},${U3},${U3},${AL}\\)$`),Qrt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Ux(H3,x4,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ent,formatHex:ent,formatHex8:Phr,formatHsl:Ihr,formatRgb:tnt,toString:tnt}),Ux(Jh,Ek,b4(H3,{brighter(e){return e=null==e?lO:Math.pow(lO,e),new Jh(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?M4:Math.pow(M4,e),new Jh(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Jh(sO(this.r),sO(this.g),sO(this.b),DX(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:nnt,formatHex:nnt,formatHex8:Nhr,formatRgb:ant,toString:ant})),Ux(vb,OL,b4(H3,{brighter(e){return e=null==e?lO:Math.pow(lO,e),new vb(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?M4:Math.pow(M4,e),new vb(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new Jh(Vde(e>=240?e-240:e+120,a,r),Vde(e,a,r),Vde(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new vb(ont(this.h),qX(this.s),qX(this.l),DX(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=DX(this.opacity);return`${1===e?"hsl(":"hsla("}${ont(this.h)}, ${100*qX(this.s)}%, ${100*qX(this.l)}%${1===e?")":`, ${e})`}`}}))}),jde=kr(()=>{LX=Math.PI/180,PX=180/Math.PI});function hnt(e){if(e instanceof V3)return new V3(e.l,e.a,e.b,e.opacity);if(e instanceof Hx)return pnt(e);e instanceof Jh||(e=wL(e));var t,n,r=Zde(e.r),a=Zde(e.g),i=Zde(e.b),o=Gde((.2225045*r+.7168786*a+.0606169*i)/cnt);return r===a&&a===i?t=n=o:(t=Gde((.4360747*r+.3850649*a+.1430804*i)/lnt),n=Gde((.0139322*r+.0971045*a+.7141733*i)/unt)),new V3(116*o-16,500*(t-o),200*(o-n),e.opacity)}function Dk(e,t,n,r){return 1===arguments.length?hnt(e):new V3(e,t,n,r??1)}function V3(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Gde(e){return e>Whr?Math.pow(e,1/3):e/fnt+dnt}function Xde(e){return e>qk?e*e*e:fnt*(e-dnt)}function Yde(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Zde(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Fhr(e){if(e instanceof Hx)return new Hx(e.h,e.c,e.l,e.opacity);if(e instanceof V3||(e=hnt(e)),0===e.a&&0===e.b)return new Hx(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*PX;return new Hx(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function TL(e,t,n,r){return 1===arguments.length?Fhr(e):new Hx(e,t,n,r??1)}function Hx(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function pnt(e){if(isNaN(e.h))return new V3(e.l,0,0,e.opacity);var t=e.h*LX;return new V3(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}var IX,lnt,cnt,unt,dnt,qk,fnt,Whr,mnt=kr(()=>{CX(),RX(),jde(),IX=18,lnt=.96422,cnt=1,unt=.82521,dnt=4/29,fnt=3*(qk=6/29)*qk,Whr=qk*qk*qk,Ux(V3,Dk,b4(H3,{brighter(e){return new V3(this.l+IX*(e??1),this.a,this.b,this.opacity)},darker(e){return new V3(this.l-IX*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Jh(Yde(3.1338561*(t=lnt*Xde(t))-1.6168667*(e=cnt*Xde(e))-.4906146*(n=unt*Xde(n))),Yde(-.9787684*t+1.9161415*e+.033454*n),Yde(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ux(Hx,TL,b4(H3,{brighter(e){return new Hx(this.h,this.c,this.l+IX*(e??1),this.opacity)},darker(e){return new Hx(this.h,this.c,this.l-IX*(e??1),this.opacity)},rgb(){return pnt(this).rgb()}}))});function Bhr(e){if(e instanceof cO)return new cO(e.h,e.s,e.l,e.opacity);e instanceof Jh||(e=wL(e));var t=e.r/255,n=e.g/255,r=e.b/255,a=(ynt*r+vnt*t-gnt*n)/(ynt+vnt-gnt),i=r-a,o=(SL*(n-a)-Kde*i)/NX,s=Math.sqrt(o*o+i*i)/(SL*a*(1-a)),l=s?Math.atan2(o,i)*PX-120:NaN;return new cO(l<0?l+360:l,s,a,e.opacity)}function Rk(e,t,n,r){return 1===arguments.length?Bhr(e):new cO(e,t,n,r??1)}function cO(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}var bnt,$de,Kde,NX,SL,vnt,gnt,ynt,Mnt=kr(()=>{CX(),RX(),jde(),vnt=(SL=1.97294)*(NX=-.90649),gnt=SL*($de=1.78277),ynt=$de*(Kde=-.29227)-NX*(bnt=-.14861),Ux(cO,Rk,b4(H3,{brighter(e){return e=null==e?lO:Math.pow(lO,e),new cO(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?M4:Math.pow(M4,e),new cO(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*LX,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new Jh(255*(t+n*(bnt*r+$de*a)),255*(t+n*(Kde*r+NX*a)),255*(t+n*(SL*r)),this.opacity)}}))}),uO=kr(()=>{RX(),mnt(),Mnt()});function Jde(e,t,n,r,a){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*n+(1+3*e+3*i-3*o)*r+o*a)/6}function WX(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[r],i=e[r+1],o=r>0?e[r-1]:2*a-i,s=r<t-1?e[r+2]:2*i-a;return Jde((n-r/t)*t,o,a,i,s)}}var FX=kr(()=>{});function BX(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),a=e[(r+t-1)%t],i=e[r%t],o=e[(r+1)%t],s=e[(r+2)%t];return Jde((n-r/t)*t,a,i,o,s)}}var Lk,Qde=kr(()=>{FX()}),efe=kr(()=>{Lk=e=>()=>e});function xnt(e,t){return function(n){return e+n*t}}function Uhr(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function _4(e,t){var n=t-e;return n?xnt(e,n>180||n<-180?n-360*Math.round(n/360):n):Lk(isNaN(e)?t:e)}function _nt(e){return 1==(e=+e)?_f:function(t,n){return n-t?Uhr(t,n,e):Lk(isNaN(t)?n:t)}}function _f(e,t){var n=t-e;return n?xnt(e,n):Lk(isNaN(e)?t:e)}var dO=kr(()=>{efe()});function znt(e){return function(t){var n,r,a=t.length,i=new Array(a),o=new Array(a),s=new Array(a);for(n=0;n<a;++n)r=Ek(t[n]),i[n]=r.r||0,o[n]=r.g||0,s[n]=r.b||0;return i=e(i),o=e(o),s=e(s),r.opacity=1,function(e){return r.r=i(e),r.g=o(e),r.b=s(e),r+""}}}var kL,Ant,wnt,tfe=kr(()=>{uO(),FX(),Qde(),dO(),kL=function e(t){var n=_nt(t);function r(e,t){var r=n((e=Ek(e)).r,(t=Ek(t)).r),a=n(e.g,t.g),i=n(e.b,t.b),o=_f(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=a(t),e.b=i(t),e.opacity=o(t),e+""}}return r.gamma=e,r}(1),Ant=znt(WX),wnt=znt(BX)});function Pk(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,a=t.slice();return function(i){for(n=0;n<r;++n)a[n]=e[n]*(1-i)+t[n]*i;return a}}function UX(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var HX=kr(()=>{});function Ont(e,t){return(UX(t)?Pk:rfe)(e,t)}function rfe(e,t){var n,r=t?t.length:0,a=e?Math.min(r,e.length):0,i=new Array(a),o=new Array(r);for(n=0;n<a;++n)i[n]=z4(e[n],t[n]);for(;n<r;++n)o[n]=t[n];return function(e){for(n=0;n<a;++n)o[n]=i[n](e);return o}}var nfe=kr(()=>{CL(),HX()});function VX(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}var afe=kr(()=>{});function ov(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var EL=kr(()=>{});function jX(e,t){var n,r={},a={};for(n in(null===e||"object"!=typeof e)&&(e={}),(null===t||"object"!=typeof t)&&(t={}),t)n in e?r[n]=z4(e[n],t[n]):a[n]=t[n];return function(e){for(n in r)a[n]=r[n](e);return a}}var ife=kr(()=>{CL()});function Hhr(e){return function(){return e}}function Vhr(e){return function(t){return e(t)+""}}function GX(e,t){var n,r,a,i=sfe.lastIndex=ofe.lastIndex=0,o=-1,s=[],l=[];for(e+="",t+="";(n=sfe.exec(e))&&(r=ofe.exec(t));)(a=r.index)>i&&(a=t.slice(i,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,l.push({i:o,x:ov(n,r)})),i=ofe.lastIndex;return i<t.length&&(a=t.slice(i),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?Vhr(l[0].x):Hhr(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}var sfe,ofe,lfe=kr(()=>{EL(),sfe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ofe=new RegExp(sfe.source,"g")});function z4(e,t){var n,r=typeof t;return null==t||"boolean"===r?Lk(t):("number"===r?ov:"string"===r?(n=x4(t))?(t=n,kL):GX:t instanceof x4?kL:t instanceof Date?VX:UX(t)?Pk:Array.isArray(t)?rfe:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?jX:ov)(e,t)}var CL=kr(()=>{uO(),tfe(),nfe(),afe(),EL(),ife(),lfe(),efe(),HX()});function Tnt(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var Snt=kr(()=>{});function knt(e,t){var n=_4(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}var Cnt=kr(()=>{dO()});function Ent(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var qnt=kr(()=>{});function cfe(e,t,n,r,a,i){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,o=-o),{translateX:a,translateY:i,rotate:Math.atan2(t,e)*Dnt,skewX:Math.atan(l)*Dnt,scaleX:o,scaleY:s}}var Dnt,XX,Rnt=kr(()=>{Dnt=180/Math.PI,XX={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function Lnt(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?XX:cfe(t.a,t.b,t.c,t.d,t.e,t.f)}function Pnt(e){return null==e?XX:(YX||(YX=document.createElementNS("http://www.w3.org/2000/svg","g")),YX.setAttribute("transform",e),(e=YX.transform.baseVal.consolidate())?cfe((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):XX)}var YX,Int=kr(()=>{Rnt()});function Nnt(e,t,n,r){function a(e){return e.length?e.pop()+" ":""}return function(i,o){var s=[],l=[];return i=e(i),o=e(o),function(e,r,a,i,o,s){if(e!==a||r!==i){var l=o.push("translate(",null,t,null,n);s.push({i:l-4,x:ov(e,a)},{i:l-2,x:ov(r,i)})}else(a||i)&&o.push("translate("+a+t+i+n)}(i.translateX,i.translateY,o.translateX,o.translateY,s,l),function(e,t,n,i){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(a(n)+"rotate(",null,r)-2,x:ov(e,t)})):t&&n.push(a(n)+"rotate("+t+r)}(i.rotate,o.rotate,s,l),function(e,t,n,i){e!==t?i.push({i:n.push(a(n)+"skewX(",null,r)-2,x:ov(e,t)}):t&&n.push(a(n)+"skewX("+t+r)}(i.skewX,o.skewX,s,l),function(e,t,n,r,i,o){if(e!==n||t!==r){var s=i.push(a(i)+"scale(",null,",",null,")");o.push({i:s-4,x:ov(e,n)},{i:s-2,x:ov(t,r)})}else(1!==n||1!==r)&&i.push(a(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,o.scaleX,o.scaleY,s,l),i=o=null,function(e){for(var t,n=-1,r=l.length;++n<r;)s[(t=l[n]).i]=t.x(e);return s.join("")}}}var Wnt,Fnt,Bnt=kr(()=>{EL(),Int(),Wnt=Nnt(Lnt,"px, ","px)","deg)"),Fnt=Nnt(Pnt,", ",")",")")});function Unt(e){return((e=Math.exp(e))+1/e)/2}function Ghr(e){return((e=Math.exp(e))-1/e)/2}function Xhr(e){return((e=Math.exp(2*e))-1)/(e+1)}var jhr,Hnt,Vnt=kr(()=>{jhr=1e-12,Hnt=function e(t,n,r){function a(e,a){var i,o,s=e[0],l=e[1],c=e[2],u=a[0],d=a[1],p=a[2],h=u-s,f=d-l,m=h*h+f*f;if(m<jhr)o=Math.log(p/c)/t,i=function(e){return[s+e*h,l+e*f,c*Math.exp(t*e*o)]};else{var g=Math.sqrt(m),y=(p*p-c*c+r*m)/(2*c*n*g),b=(p*p-c*c-r*m)/(2*p*n*g),v=Math.log(Math.sqrt(y*y+1)-y),M=Math.log(Math.sqrt(b*b+1)-b);o=(M-v)/t,i=function(e){var r=e*o,a=Unt(v),i=c/(n*g)*(a*Xhr(t*r+v)-Ghr(v));return[s+i*h,l+i*f,c*a/Unt(t*r+v)]}}return i.duration=1e3*o*t/Math.SQRT2,i}return a.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},a}(Math.SQRT2,2,4)});function jnt(e){return function(t,n){var r=e((t=OL(t)).h,(n=OL(n)).h),a=_f(t.s,n.s),i=_f(t.l,n.l),o=_f(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=a(e),t.l=i(e),t.opacity=o(e),t+""}}}var Gnt,Xnt,Ynt=kr(()=>{uO(),dO(),Gnt=jnt(_4),Xnt=jnt(_f)});function ufe(e,t){var n=_f((e=Dk(e)).l,(t=Dk(t)).l),r=_f(e.a,t.a),a=_f(e.b,t.b),i=_f(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=a(t),e.opacity=i(t),e+""}}var Znt=kr(()=>{uO(),dO()});function $nt(e){return function(t,n){var r=e((t=TL(t)).h,(n=TL(n)).h),a=_f(t.c,n.c),i=_f(t.l,n.l),o=_f(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=a(e),t.l=i(e),t.opacity=o(e),t+""}}}var Knt,Jnt,Qnt=kr(()=>{uO(),dO(),Knt=$nt(_4),Jnt=$nt(_f)});function eat(e){return function t(n){function r(t,r){var a=e((t=Rk(t)).h,(r=Rk(r)).h),i=_f(t.s,r.s),o=_f(t.l,r.l),s=_f(t.opacity,r.opacity);return function(e){return t.h=a(e),t.s=i(e),t.l=o(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}var tat,rat,nat=kr(()=>{uO(),dO(),tat=eat(_4),rat=eat(_f)});function dfe(e,t){void 0===t&&(t=e,e=z4);for(var n=0,r=t.length-1,a=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(a,a=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}var aat=kr(()=>{CL()});function iat(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}var oat=kr(()=>{}),fO={};Zs(fO,{interpolate:()=>z4,interpolateArray:()=>Ont,interpolateBasis:()=>WX,interpolateBasisClosed:()=>BX,interpolateCubehelix:()=>tat,interpolateCubehelixLong:()=>rat,interpolateDate:()=>VX,interpolateDiscrete:()=>Tnt,interpolateHcl:()=>Knt,interpolateHclLong:()=>Jnt,interpolateHsl:()=>Gnt,interpolateHslLong:()=>Xnt,interpolateHue:()=>knt,interpolateLab:()=>ufe,interpolateNumber:()=>ov,interpolateNumberArray:()=>Pk,interpolateObject:()=>jX,interpolateRgb:()=>kL,interpolateRgbBasis:()=>Ant,interpolateRgbBasisClosed:()=>wnt,interpolateRound:()=>Ent,interpolateString:()=>GX,interpolateTransformCss:()=>Wnt,interpolateTransformSvg:()=>Fnt,interpolateZoom:()=>Hnt,piecewise:()=>dfe,quantize:()=>iat});var eme,tme,hO=kr(()=>{CL(),nfe(),FX(),Qde(),afe(),Snt(),Cnt(),EL(),HX(),ife(),qnt(),lfe(),Bnt(),Vnt(),tfe(),Ynt(),Znt(),Qnt(),nat(),aat(),oat()}),ZX=Ee((e,t)=>{var n=vs(),r=ao();t.exports=function(e,t,a,i,o){var s=t.data.data,l=s.i,c=o||s.color;if(l>=0){t.i=s.i;var u=a.marker;u.pattern?(!u.colors||!u.pattern.shape)&&(u.color=c,t.color=c):(u.color=c,t.color=c),n.pointStyle(e,a,i,t)}else r.fill(e,c)}}),ffe=Ee((e,t)=>{var n=mo(),r=ao(),a=Fr(),i=g2().resizeText,o=ZX();function s(e,t,n,i){var s=t.data.data,l=!t.children,c=s.i,u=a.castOption(n,c,"marker.line.color")||r.defaultLine,d=a.castOption(n,c,"marker.line.width")||0;e.call(o,t,n,i).style("stroke-width",d).call(r.stroke,u).style("opacity",l?n.leaf.opacity:null)}t.exports={style:function(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");i(e,t,"sunburst"),t.each(function(t){var r=n.select(this),a=t[0].trace;r.style("opacity",a.opacity),r.selectAll("path.surface").each(function(t){n.select(this).call(s,t,a,e)})})},styleOne:s}}),Vx=Ee(e=>{var t=Fr(),n=ao(),r=Ky(),a=Xz();function i(e){return e.data.data.pid}e.findEntryWithLevel=function(t,n){var r;return n&&t.eachAfter(function(t){if(e.getPtId(t)===n)return r=t.copy()}),r||t},e.findEntryWithChild=function(t,n){var r;return t.eachAfter(function(t){for(var a=t.children||[],i=0;i<a.length;i++){var o=a[i];if(e.getPtId(o)===n)return r=t.copy()}}),r||t},e.isEntry=function(e){return!e.parent},e.isLeaf=function(e){return!e.children},e.getPtId=function(e){return e.data.data.id},e.getPtLabel=function(e){return e.data.data.label},e.getValue=function(e){return e.value},e.isHierarchyRoot=function(e){return""===i(e)},e.setSliceCursor=function(t,n,a){var i=a.isTransitioning;if(!i){var o=t.datum();i=a.hideOnRoot&&e.isHierarchyRoot(o)||a.hideOnLeaves&&e.isLeaf(o)}r(t,i?null:"pointer")},e.getInsideTextFontKey=function(e,n,r,a,i){var o=(i||{}).onPathbar?"pathbar.textfont":"insidetextfont",s=r.data.data.i;return t.castOption(n,s,o+"."+e)||t.castOption(n,s,"textfont."+e)||a.size},e.getOutsideTextFontKey=function(e,n,r,a){var i=r.data.data.i;return t.castOption(n,i,"outsidetextfont."+e)||t.castOption(n,i,"textfont."+e)||a.size},e.isOutsideText=function(t,n){return!t._hasColorscale&&e.isHierarchyRoot(n)},e.determineTextFont=function(r,a,i,o){return e.isOutsideText(r,a)?function(t,n,r){return{color:e.getOutsideTextFontKey("color",t,n,r),family:e.getOutsideTextFontKey("family",t,n,r),size:e.getOutsideTextFontKey("size",t,n,r),weight:e.getOutsideTextFontKey("weight",t,n,r),style:e.getOutsideTextFontKey("style",t,n,r),variant:e.getOutsideTextFontKey("variant",t,n,r),textcase:e.getOutsideTextFontKey("textcase",t,n,r),lineposition:e.getOutsideTextFontKey("lineposition",t,n,r),shadow:e.getOutsideTextFontKey("shadow",t,n,r)}}(r,a,i):function(r,a,i,o){var s=(o||{}).onPathbar,l=a.data.data,c=l.i,u=t.castOption(r,c,(s?"pathbar.textfont":"insidetextfont")+".color");return!u&&r._input.textfont&&(u=t.castOption(r._input,c,"textfont.color")),{color:u||n.contrast(l.color),family:e.getInsideTextFontKey("family",r,a,i,o),size:e.getInsideTextFontKey("size",r,a,i,o),weight:e.getInsideTextFontKey("weight",r,a,i,o),style:e.getInsideTextFontKey("style",r,a,i,o),variant:e.getInsideTextFontKey("variant",r,a,i,o),textcase:e.getInsideTextFontKey("textcase",r,a,i,o),lineposition:e.getInsideTextFontKey("lineposition",r,a,i,o),shadow:e.getInsideTextFontKey("shadow",r,a,i,o)}}(r,a,i,o)},e.hasTransition=function(e){return!!(e&&e.duration>0)},e.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0},e.isHeader=function(t,n){return!(e.isLeaf(t)||t.depth===n._maxDepth-1)},e.getParent=function(t,n){return e.findEntryWithLevel(t,i(n))},e.listPath=function(t,n){var r=t.parent;if(!r)return[];var a=n?[r.data[n]]:[r];return e.listPath(r,n).concat(a)},e.getPath=function(t){return e.listPath(t,"label").join("/")+"/"},e.formatValue=a.formatPieValue,e.formatPercent=function(e,n){var r=t.formatPercent(e,0);return"0%"===r&&(r=a.formatPiePercent(e,n)),r}}),RL=Ee((e,t)=>{var n=mo(),r=vo(),a=fm().appendArrayPointValue,i=_d(),o=Fr(),s=$8(),l=Vx(),c=Xz().formatPieValue;function u(e,t,n){for(var r=e.data.data,i={curveNumber:t.index,pointNumber:r.i,data:t._input,fullData:t},o=0;o<n.length;o++){var s=n[o];s in e&&(i[s]=e[s])}return"parentString"in e&&!l.isHierarchyRoot(e)&&(i.parent=e.parentString),a(i,t,r.i),i}t.exports=function(e,t,a,d,p){var h=d[0],f=h.trace,m=h.hierarchy,g="sunburst"===f.type,y="treemap"===f.type||"icicle"===f.type;"_hasHoverLabel"in f||(f._hasHoverLabel=!1),"_hasHoverEvent"in f||(f._hasHoverEvent=!1);e.on("mouseover",function(r){var s=a._fullLayout;if(!a._dragging&&!1!==s.hovermode){var d,b=a._fullData[f.index],v=r.data.data,M=v.i,x=l.isHierarchyRoot(r),z=l.getParent(m,r),_=l.getValue(r),A=function(e){return o.castOption(b,M,e)},O=A("hovertemplate"),w=i.castHoverinfo(b,s,M),k=s.separators;if(O||w&&"none"!==w&&"skip"!==w){var T,S;g&&(T=h.cx+r.pxmid[0]*(1-r.rInscribed),S=h.cy+r.pxmid[1]*(1-r.rInscribed)),y&&(T=r._hoverX,S=r._hoverY);var C={},E=[],q=[],D=function(e){return-1!==E.indexOf(e)};w&&(E="all"===w?b._module.attributes.hoverinfo.flags:w.split("+")),C.label=v.label,D("label")&&C.label&&q.push(C.label),v.hasOwnProperty("v")&&(C.value=v.v,C.valueLabel=c(C.value,k),D("value")&&q.push(C.valueLabel)),C.currentPath=r.currentPath=l.getPath(r.data),D("current path")&&!x&&q.push(C.currentPath);var R,L=[],I=function(){-1===L.indexOf(R)&&(q.push(R),L.push(R))};C.percentParent=r.percentParent=_/l.getValue(z),C.parent=r.parentString=l.getPtLabel(z),D("percent parent")&&(R=l.formatPercent(C.percentParent,k)+" of "+C.parent,I()),C.percentEntry=r.percentEntry=_/l.getValue(t),C.entry=r.entry=l.getPtLabel(t),D("percent entry")&&!x&&!r.onPathbar&&(R=l.formatPercent(C.percentEntry,k)+" of "+C.entry,I()),C.percentRoot=r.percentRoot=_/l.getValue(m),C.root=r.root=l.getPtLabel(m),D("percent root")&&!x&&(R=l.formatPercent(C.percentRoot,k)+" of "+C.root,I()),C.text=A("hovertext")||A("text"),D("text")&&(R=C.text,o.isValidTextValue(R)&&q.push(R)),d=[u(r,b,p.eventDataKeys)];var W={trace:b,y:S,_x0:r._x0,_x1:r._x1,_y0:r._y0,_y1:r._y1,text:q.join("<br>"),name:O||D("name")?b.name:void 0,color:A("hoverlabel.bgcolor")||v.color,borderColor:A("hoverlabel.bordercolor"),fontFamily:A("hoverlabel.font.family"),fontSize:A("hoverlabel.font.size"),fontColor:A("hoverlabel.font.color"),fontWeight:A("hoverlabel.font.weight"),fontStyle:A("hoverlabel.font.style"),fontVariant:A("hoverlabel.font.variant"),nameLength:A("hoverlabel.namelength"),textAlign:A("hoverlabel.align"),hovertemplate:O,hovertemplateLabels:C,eventData:d};g&&(W.x0=T-r.rInscribed*r.rpx1,W.x1=T+r.rInscribed*r.rpx1,W.idealAlign=r.pxmid[0]<0?"left":"right"),y&&(W.x=T,W.idealAlign=T<0?"left":"right");var N=[];i.loneHover(W,{container:s._hoverlayer.node(),outerContainer:s._paper.node(),gd:a,inOut_bbox:N}),d[0].bbox=N[0],f._hasHoverLabel=!0}if(y){var P=e.select("path.surface");p.styleOne(P,r,b,a,{hovered:!0})}f._hasHoverEvent=!0,a.emit("plotly_hover",{points:d||[u(r,b,p.eventDataKeys)],event:n.event})}}),e.on("mouseout",function(t){var r=a._fullLayout,o=a._fullData[f.index],s=n.select(this).datum();if(f._hasHoverEvent&&(t.originalEvent=n.event,a.emit("plotly_unhover",{points:[u(s,o,p.eventDataKeys)],event:n.event}),f._hasHoverEvent=!1),f._hasHoverLabel&&(i.loneUnhover(r._hoverlayer.node()),f._hasHoverLabel=!1),y){var l=e.select("path.surface");p.styleOne(l,s,o,a,{hovered:!1})}}),e.on("click",function(e){var t=a._fullLayout,o=a._fullData[f.index],c=g&&(l.isHierarchyRoot(e)||l.isLeaf(e)),d=l.getPtId(e),h=l.isEntry(e)?l.findEntryWithChild(m,d):l.findEntryWithLevel(m,d),y=l.getPtId(h),b={points:[u(e,o,p.eventDataKeys)],event:n.event};c||(b.nextLevel=y);var v=s.triggerHandler(a,"plotly_"+f.type+"click",b);if(!1!==v&&t.hovermode&&(a._hoverdata=[u(e,o,p.eventDataKeys)],i.click(a,n.event)),!c&&!1!==v&&!a._dragging&&!a._transitioning){r.call("_storeDirectGUIEdit",o,t._tracePreGUI[o.uid],{level:o.level});var M={data:[{level:y}],traces:[f.index]},x={frame:{redraw:!1,duration:p.transitionTime},transition:{duration:p.transitionTime,easing:p.transitionEasing},mode:"immediate",fromcurrent:!0};i.loneUnhover(t._hoverlayer.node()),r.call("animate",a,M,x)}})}}),KX=Ee(e=>{var t=mo(),n=xL(),r=(hO(),E_(fO)).interpolate,a=vs(),i=Fr(),o=q1(),s=g2(),l=s.recordMinTextSize,c=s.clearMinTextSize,u=SX(),d=Xz().getRotationAngle,p=u.computeTransform,h=u.transformInsideText,f=ffe().styleOne,m=ry().resizeText,g=RL(),y=Ude(),b=Vx();function v(s,c,u,m){var v=s._context.staticPlot,x=s._fullLayout,z=!x.uniformtext.mode&&b.hasTransition(m),_=t.select(u).selectAll("g.slice"),A=c[0],O=A.trace,w=A.hierarchy,k=b.findEntryWithLevel(w,O.level),T=b.getMaxDepth(O),S=x._size,C=O.domain,E=S.w*(C.x[1]-C.x[0]),q=S.h*(C.y[1]-C.y[0]),D=.5*Math.min(E,q),R=A.cx=S.l+S.w*(C.x[1]+C.x[0])/2,L=A.cy=S.t+S.h*(1-C.y[0])-q/2;if(!k)return _.remove();var I=null,W={};z&&_.each(function(e){W[b.getPtId(e)]={rpx0:e.rpx0,rpx1:e.rpx1,x0:e.x0,x1:e.x1,transform:e.transform},!I&&b.isEntry(e)&&(I=e)});var N=function(e){return n.partition().size([2*Math.PI,e.height+1])(e)}(k).descendants(),P=k.height+1,B=0,F=T;A.hasMultipleRoots&&b.isHierarchyRoot(k)&&(N=N.slice(1),P-=1,B=1,F+=1),N=N.filter(function(e){return e.y1<=F});var j=d(O.rotation);j&&N.forEach(function(e){e.x0+=j,e.x1+=j});var U=Math.min(P,T),V=function(e){return(e-B)/U*D},H=function(e,t){return[e*Math.cos(t),-e*Math.sin(t)]},X=function(e){return i.pathAnnulus(e.rpx0,e.rpx1,e.x0,e.x1,R,L)},G=function(e){return R+M(e)[0]*(e.transform.rCenter||0)+(e.transform.x||0)},Y=function(e){return L+M(e)[1]*(e.transform.rCenter||0)+(e.transform.y||0)};(_=_.data(N,b.getPtId)).enter().append("g").classed("slice",!0),z?_.exit().transition().each(function(){var e=t.select(this);e.select("path.surface").transition().attrTween("d",function(e){var t=function(e){var t,n=b.getPtId(e),a=W[n],i=W[b.getPtId(k)];if(i){var o=(e.x1>i.x1?2*Math.PI:0)+j;t=e.rpx1<i.rpx1?{x0:e.x0,x1:e.x1,rpx0:0,rpx1:0}:{x0:o,x1:o,rpx0:e.rpx0,rpx1:e.rpx1}}else{var s,l=b.getPtId(e.parent);_.each(function(e){if(b.getPtId(e)===l)return s=e});var c,u=s.children;u.forEach(function(e,t){if(b.getPtId(e)===n)return c=t});var d=u.length,p=r(s.x0,s.x1);t={rpx0:D,rpx1:D,x0:p(c/d),x1:p((c+1)/d)}}return r(a,t)}(e);return function(e){return X(t(e))}}),e.select("g.slicetext").attr("opacity",0)}).remove():_.exit().remove(),_.order();var Z=null;if(z&&I){var $=b.getPtId(I);_.each(function(e){null===Z&&b.getPtId(e)===$&&(Z=e.x1)})}var J=_;function Q(e){var t=e.parent,n=W[b.getPtId(t)],a={};if(n){var i=t.children,o=i.indexOf(e),s=i.length,l=r(n.x0,n.x1);a.x0=l(o/s),a.x1=l(o/s)}else a.x0=a.x1=0;return a}z&&(J=J.transition().each("end",function(){var e=t.select(this);b.setSliceCursor(e,s,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),J.each(function(n){var u=t.select(this),d=i.ensureSingle(u,"path","surface",function(e){e.style("pointer-events",v?"none":"all")});n.rpx0=V(n.y0),n.rpx1=V(n.y1),n.xmid=(n.x0+n.x1)/2,n.pxmid=H(n.rpx1,n.xmid),n.midangle=-(n.xmid-Math.PI/2),n.startangle=-(n.x0-Math.PI/2),n.stopangle=-(n.x1-Math.PI/2),n.halfangle=.5*Math.min(i.angleDelta(n.x0,n.x1)||Math.PI,Math.PI),n.ring=1-n.rpx0/n.rpx1,n.rInscribed=function(e){return 0===e.rpx0&&i.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}(n),z?d.transition().attrTween("d",function(e){var t=function(e){var t,n=W[b.getPtId(e)],a={x0:e.x0,x1:e.x1,rpx0:e.rpx0,rpx1:e.rpx1};if(n)t=n;else if(I)if(e.parent)if(Z){var o=(e.x1>Z?2*Math.PI:0)+j;t={x0:o,x1:o}}else t={rpx0:D,rpx1:D},i.extendFlat(t,Q(e));else t={rpx0:0,rpx1:0};else t={x0:j,x1:j};return r(t,a)}(e);return function(e){return X(t(e))}}):d.attr("d",X),u.call(g,k,s,c,{eventDataKeys:y.eventDataKeys,transitionTime:y.CLICK_TRANSITION_TIME,transitionEasing:y.CLICK_TRANSITION_EASING}).call(b.setSliceCursor,s,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:s._transitioning}),d.call(f,n,O,s);var m=i.ensureSingle(u,"g","slicetext"),M=i.ensureSingle(m,"text","",function(e){e.attr("data-notex",1)}),_=i.ensureUniformFontSize(s,b.determineTextFont(O,n,x.font));M.text(e.formatSliceLabel(n,k,O,c,x)).classed("slicetext",!0).attr("text-anchor","middle").call(a.font,_).call(o.convertToTspans,s);var w=a.bBox(M.node());n.transform=h(w,n,A),n.transform.targetX=G(n),n.transform.targetY=Y(n);var T=function(e,t){var n=e.transform;return p(n,t),n.fontSize=_.size,l(O.type,n,x),i.getTextTransform(n)};z?M.transition().attrTween("transform",function(e){var t=function(e){var t,n=W[b.getPtId(e)],a=e.transform;if(n)t=n;else if(t={rpx1:e.rpx1,transform:{textPosAngle:a.textPosAngle,scale:0,rotate:a.rotate,rCenter:a.rCenter,x:a.x,y:a.y}},I)if(e.parent)if(Z){var o=e.x1>Z?2*Math.PI:0;t.x0=t.x1=o}else i.extendFlat(t,Q(e));else t.x0=t.x1=j;else t.x0=t.x1=j;var s=r(t.transform.textPosAngle,e.transform.textPosAngle),c=r(t.rpx1,e.rpx1),u=r(t.x0,e.x0),d=r(t.x1,e.x1),p=r(t.transform.scale,a.scale),h=r(t.transform.rotate,a.rotate),f=0===a.rCenter?3:0===t.transform.rCenter?1/3:1,m=r(t.transform.rCenter,a.rCenter),g=function(e){return m(Math.pow(e,f))};return function(e){var t=c(e),n=u(e),r=d(e),i=g(e),o={pxmid:H(t,(n+r)/2),rpx1:t,transform:{textPosAngle:s(e),rCenter:i,x:a.x,y:a.y}};return l(O.type,a,x),{transform:{targetX:G(o),targetY:Y(o),scale:p(e),rotate:h(e),rCenter:i}}}}(e);return function(e){return T(t(e),w)}}):M.attr("transform",T(n,w))})}function M(e){return function(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}(e.rpx1,e.transform.textPosAngle)}e.plot=function(e,n,r,a){var i,o,s=e._fullLayout,l=s._sunburstlayer,u=!r,d=!s.uniformtext.mode&&b.hasTransition(r);(c("sunburst",s),(i=l.selectAll("g.trace.sunburst").data(n,function(e){return e[0].trace.uid})).enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),i.order(),d)?(a&&(o=a()),t.transition().duration(r.duration).ease(r.easing).each("end",function(){o&&o()}).each("interrupt",function(){o&&o()}).each(function(){l.selectAll("g.trace").each(function(t){v(e,t,this,r)})})):(i.each(function(t){v(e,t,this,r)}),s.uniformtext.mode&&m(e,s._sunburstlayer.selectAll(".trace"),"sunburst"));u&&i.exit().remove()},e.formatSliceLabel=function(e,t,n,r,a){var o=n.texttemplate,s=n.textinfo;if(!(o||s&&"none"!==s))return"";var l=a.separators,c=r[0],u=e.data.data,d=c.hierarchy,p=b.isHierarchyRoot(e),h=b.getParent(d,e),f=b.getValue(e);if(!o){var m,g=s.split("+"),y=function(e){return-1!==g.indexOf(e)},v=[];if(y("label")&&u.label&&v.push(u.label),u.hasOwnProperty("v")&&y("value")&&v.push(b.formatValue(u.v,l)),!p){y("current path")&&v.push(b.getPath(e.data));var M=0;y("percent parent")&&M++,y("percent entry")&&M++,y("percent root")&&M++;var x=M>1;if(M){var z,_=function(e){m=b.formatPercent(z,l),x&&(m+=" of "+e),v.push(m)};y("percent parent")&&!p&&(z=f/b.getValue(h),_("parent")),y("percent entry")&&(z=f/b.getValue(t),_("entry")),y("percent root")&&(z=f/b.getValue(d),_("root"))}}return y("text")&&(m=i.castOption(n,u.i,"text"),i.isValidTextValue(m)&&v.push(m)),v.join("<br>")}var A=i.castOption(n,u.i,"texttemplate");if(!A)return"";var O={};u.label&&(O.label=u.label),u.hasOwnProperty("v")&&(O.value=u.v,O.valueLabel=b.formatValue(u.v,l)),O.currentPath=b.getPath(e.data),p||(O.percentParent=f/b.getValue(h),O.percentParentLabel=b.formatPercent(O.percentParent,l),O.parent=b.getPtLabel(h)),O.percentEntry=f/b.getValue(t),O.percentEntryLabel=b.formatPercent(O.percentEntry,l),O.entry=b.getPtLabel(t),O.percentRoot=f/b.getValue(d),O.percentRootLabel=b.formatPercent(O.percentRoot,l),O.root=b.getPtLabel(d),u.hasOwnProperty("color")&&(O.color=u.color);var w=i.castOption(n,u.i,"text");return(i.isValidTextValue(w)||""===w)&&(O.text=w),O.customdata=i.castOption(n,u.i,"customdata"),i.texttemplateString({data:[O,n._meta],fallback:n.texttemplatefallback,labels:O,locale:a._d3locale,template:A})}}),wat=Ee((e,t)=>{t.exports={moduleType:"trace",name:"sunburst",basePlotModule:Nrt(),categories:[],animatable:!0,attributes:ML(),layoutAttributes:Hde(),supplyDefaults:Xrt(),supplyLayoutDefaults:Zrt(),calc:zL().calc,crossTraceCalc:zL().crossTraceCalc,plot:KX().plot,style:ffe().style,colorbar:Wp(),meta:{description:["Visualize hierarchal data spanning outward radially from root to leaves.","The sunburst sectors are determined by the entries in *labels* or *ids*","and in *parents*."].join(" ")}}}),Tat=Ee((e,t)=>{t.exports=wat()}),kat=Ee(e=>{var t=td();e.name="treemap",e.plot=function(n,r,a,i){t.plotBasePlot(e.name,n,r,a,i)},e.clean=function(n,r,a,i){t.cleanBasePlot(e.name,n,r,a,i)}}),mO=Ee((e,t)=>{t.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}}),JX=Ee((e,t)=>{var{hovertemplateAttrs:n,texttemplateAttrs:r,templatefallbackAttrs:a}=p1(),i=Oc(),o=ad().attributes,s=aO(),l=ML(),c=mO(),u=ms().extendFlat,d=pp().pattern;t.exports={labels:l.labels,parents:l.parents,values:l.values,branchvalues:l.branchvalues,count:l.count,level:l.level,maxdepth:l.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot",description:["Determines d3 treemap solver.","For more info please refer to https://github.com/d3/d3-hierarchy#treemap-tiling"].join(" ")},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot",description:["When using *squarify* `packing` algorithm, according to https://github.com/d3/d3-hierarchy/blob/v3.1.1/README.md#squarify_ratio","this option specifies the desired aspect ratio of the generated rectangles.","The ratio must be specified as a number greater than or equal to one.","Note that the orientation of the generated rectangles (tall or wide)","is not implied by the ratio; for example, a ratio of two will attempt","to produce a mixture of rectangles whose width:height ratio is either 2:1 or 1:2.","When using *squarify*, unlike d3 which uses the Golden Ratio i.e. 1.618034,","Plotly applies 1 to increase squares in treemap layouts."].join(" ")},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot",description:["Determines if the positions obtained from solver are flipped on each axis."].join(" ")},pad:{valType:"number",min:0,dflt:3,editType:"plot",description:["Sets the inner padding (in px)."].join(" ")},editType:"calc"},marker:u({pad:{t:{valType:"number",min:0,editType:"plot",description:["Sets the padding form the top (in px)."].join(" ")},l:{valType:"number",min:0,editType:"plot",description:["Sets the padding form the left (in px)."].join(" ")},r:{valType:"number",min:0,editType:"plot",description:["Sets the padding form the right (in px)."].join(" ")},b:{valType:"number",min:0,editType:"plot",description:["Sets the padding form the bottom (in px)."].join(" ")},editType:"calc"},colors:l.marker.colors,pattern:d,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style",description:["Determines if the sector colors are faded towards","the background from the leaves up to the headers.","This option is unavailable when a `colorscale` is present,","defaults to false when `marker.colors` is set,","but otherwise defaults to true.","When set to *reversed*, the fading direction is inverted,","that is the top elements within hierarchy are drawn with fully saturated colors","while the leaves are faded towards the background color."].join(" ")},line:l.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets the maximum rounding of corners (in px)."].join(" ")},editType:"calc"},i("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot",description:["Determines if the path bar is drawn","i.e. outside the trace `domain` and","with one pixel gap."].join(" ")},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot",description:["Determines on which side of the the treemap the","`pathbar` should be presented."].join(" ")},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot",description:["Determines which shape is used for edges between `barpath` labels."].join(" ")},thickness:{valType:"number",min:12,editType:"plot",description:["Sets the thickness of `pathbar` (in px). If not specified the `pathbar.textfont.size` is used","with 3 pixles extra padding on each side."].join(" ")},textfont:u({},s.textfont,{description:"Sets the font used inside `pathbar`."}),editType:"calc"},text:s.text,textinfo:l.textinfo,texttemplate:r({editType:"plot"},{keys:c.eventDataKeys.concat(["label","value"])}),texttemplatefallback:a({editType:"plot"}),hovertext:s.hovertext,hoverinfo:l.hoverinfo,hovertemplate:n({},{keys:c.eventDataKeys}),hovertemplatefallback:a(),textfont:s.textfont,insidetextfont:s.insidetextfont,outsidetextfont:u({},s.outsidetextfont,{description:["Sets the font used for `textinfo` lying outside the sector.","This option refers to the root of the hierarchy","presented on top left corner of a treemap graph.","Please note that if a hierarchy has multiple root nodes,","this option won't have any effect and `insidetextfont` would be used."].join(" ")}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot",description:["Sets the positions of the `text` elements."].join(" ")},sort:s.sort,root:l.root,domain:o({name:"treemap",trace:!0,editType:"calc"})}}),mfe=Ee((e,t)=>{t.exports={treemapcolorway:{valType:"colorlist",editType:"calc",description:["Sets the default treemap slice colors. Defaults to the main","`colorway` used for trace colors. If you specify a new","list here it can still be extended with lighter and darker","colors, see `extendtreemapcolors`."].join(" ")},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc",description:["If `true`, the treemap slice colors (whether given by `treemapcolorway` or","inherited from `colorway`) will be extended to three times its","original length by first repeating every color 20% lighter then","each color 20% darker. This is intended to reduce the likelihood","of reusing the same color when you have many slices, but you can","set `false` to disable.","Colors provided in the trace, using `marker.colors`, are never","extended."].join(" ")}}}),Nat=Ee((e,t)=>{var n=Fr(),r=JX(),a=ao(),i=ad().defaults,o=Vv().handleText,s=t4().TEXTPAD,l=iO().handleMarkerDefaults,c=xu(),u=c.hasColorscale,d=c.handleDefaults;t.exports=function(e,t,c,p){function h(a,i){return n.coerce(e,t,r,a,i)}var f=h("labels"),m=h("parents");if(f&&f.length&&m&&m.length){var g=h("values");g&&g.length?h("branchvalues"):h("count"),h("level"),h("maxdepth"),"squarify"===h("tiling.packing")&&h("tiling.squarifyratio"),h("tiling.flip"),h("tiling.pad");var y=h("text");h("texttemplate"),h("texttemplatefallback"),t.texttemplate||h("textinfo",n.isArrayOrTypedArray(y)?"text+label":"label"),h("hovertext"),h("hovertemplate"),h("hovertemplatefallback");var b=h("pathbar.visible");o(e,t,p,h,"auto",{hasPathbar:b,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),h("textposition");var v=-1!==t.textposition.indexOf("bottom");l(e,t,p,h),(t._hasColorscale=u(e,"marker","colors")||(e.marker||{}).coloraxis)?d(e,t,p,h,{prefix:"marker.",cLetter:"c"}):h("marker.depthfade",!(t.marker.colors||[]).length);var M=2*t.textfont.size;h("marker.pad.t",v?M/4:M),h("marker.pad.l",M/4),h("marker.pad.r",M/4),h("marker.pad.b",v?M:M/4),h("marker.cornerradius"),t._hovered={marker:{line:{width:2,color:a.contrast(p.paper_bgcolor)}}},b&&(h("pathbar.thickness",t.pathbar.textfont.size+2*s),h("pathbar.side"),h("pathbar.edgeshape")),h("sort"),h("root.color"),i(t,p,h),t._length=null}else t.visible=!1}}),Fat=Ee((e,t)=>{var n=Fr(),r=mfe();t.exports=function(e,t){function a(a,i){return n.coerce(e,t,r,a,i)}a("treemapcolorway",t.colorway),a("extendtreemapcolors")}}),gfe=Ee(e=>{var t=zL();e.calc=function(e,n){return t.calc(e,n)},e.crossTraceCalc=function(e){return t._runCrossTraceCalc("treemap",e)}}),yfe=Ee((e,t)=>{t.exports=function e(t,n,r){var a;r.swapXY&&(a=t.x0,t.x0=t.y0,t.y0=a,a=t.x1,t.x1=t.y1,t.y1=a),r.flipX&&(a=t.x0,t.x0=n[0]-t.x1,t.x1=n[0]-a),r.flipY&&(a=t.y0,t.y0=n[1]-t.y1,t.y1=n[1]-a);var i=t.children;if(i)for(var o=0;o<i.length;o++)e(i[o],n,r)}}),bfe=Ee((e,t)=>{var n=xL(),r=yfe();t.exports=function(e,t,a){var i,o=a.flipX,s=a.flipY,l="dice-slice"===a.packing,c=a.pad[s?"bottom":"top"],u=a.pad[o?"right":"left"],d=a.pad[o?"left":"right"],p=a.pad[s?"top":"bottom"];l&&(i=u,u=c,c=i,i=d,d=p,p=i);var h=n.treemap().tile(function(e,t){switch(e){case"squarify":return n.treemapSquarify.ratio(t);case"binary":return n.treemapBinary;case"dice":return n.treemapDice;case"slice":return n.treemapSlice;default:return n.treemapSliceDice}}(a.packing,a.squarifyratio)).paddingInner(a.pad.inner).paddingLeft(u).paddingRight(d).paddingTop(c).paddingBottom(p).size(l?[t[1],t[0]]:t)(e);return(l||o||s)&&r(h,t,{swapXY:l,flipX:o,flipY:s}),h}}),QX=Ee((e,t)=>{var n=mo(),r=ao(),a=Fr(),i=Vx(),o=g2().resizeText,s=ZX();function l(e,t,n,o,l){var c,u,d=(l||{}).hovered,p=t.data.data,h=p.i,f=p.color,m=i.isHierarchyRoot(t),g=1;if(d)c=n._hovered.marker.line.color,u=n._hovered.marker.line.width;else if(m&&f===n.root.color)g=100,c="rgba(0,0,0,0)",u=0;else if(c=a.castOption(n,h,"marker.line.color")||r.defaultLine,u=a.castOption(n,h,"marker.line.width")||0,!n._hasColorscale&&!t.onPathbar){var y=n.marker.depthfade;if(y){var b,v=r.combine(r.addOpacity(n._backgroundColor,.75),f);if(!0===y){var M=i.getMaxDepth(n);b=isFinite(M)?i.isLeaf(t)?0:n._maxVisibleLayers-(t.data.depth-n._entryDepth):t.data.height+1}else b=t.data.depth-n._entryDepth,n._atRootLevel||b++;if(b>0)for(var x=0;x<b;x++){var z=.5*x/b;f=r.combine(r.addOpacity(v,z),f)}}}e.call(s,t,n,o,f).style("stroke-width",u).call(r.stroke,c).style("opacity",g)}t.exports={style:function(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");o(e,t,"treemap"),t.each(function(t){var r=n.select(this),a=t[0].trace;r.style("opacity",a.opacity),r.selectAll("path.surface").each(function(t){n.select(this).call(l,t,a,e,{hovered:!1})})})},styleOne:l}}),Jat=Ee((e,t)=>{var n=mo(),r=Fr(),a=vs(),i=q1(),o=bfe(),s=QX().styleOne,l=mO(),c=Vx(),u=RL(),d=!0;t.exports=function(e,t,p,h,f){var m=f.barDifY,g=f.width,y=f.height,b=f.viewX,v=f.viewY,M=f.pathSlice,x=f.toMoveInsideSlice,z=f.strTransform,_=f.hasTransition,A=f.handleSlicesExit,O=f.makeUpdateSliceInterpolator,w=f.makeUpdateTextInterpolator,k={},T=e._context.staticPlot,S=e._fullLayout,C=t[0],E=C.trace,q=C.hierarchy,D=g/E._entryDepth,R=c.listPath(p.data,"id"),L=o(q.copy(),[g,y],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();(L=L.filter(function(e){var t=R.indexOf(e.data.id);return-1!==t&&(e.x0=D*t,e.x1=D*(t+1),e.y0=m,e.y1=m+y,e.onPathbar=!0,!0)})).reverse(),(h=h.data(L,c.getPtId)).enter().append("g").classed("pathbar",!0),A(h,d,k,[g,y],M),h.order();var I=h;_&&(I=I.transition().each("end",function(){var t=n.select(this);c.setSliceCursor(t,e,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),I.each(function(o){o._x0=b(o.x0),o._x1=b(o.x1),o._y0=v(o.y0),o._y1=v(o.y1),o._hoverX=b(o.x1-Math.min(g,y)/2),o._hoverY=v(o.y1-y/2);var h=n.select(this),f=r.ensureSingle(h,"path","surface",function(e){e.style("pointer-events",T?"none":"all")});_?f.transition().attrTween("d",function(e){var t=O(e,d,k,[g,y]);return function(e){return M(t(e))}}):f.attr("d",M),h.call(u,p,e,t,{styleOne:s,eventDataKeys:l.eventDataKeys,transitionTime:l.CLICK_TRANSITION_TIME,transitionEasing:l.CLICK_TRANSITION_EASING}).call(c.setSliceCursor,e,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:e._transitioning}),f.call(s,o,E,e,{hovered:!1}),o._text=(c.getPtLabel(o)||"").split("<br>").join(" ")||"";var m=r.ensureSingle(h,"g","slicetext"),A=r.ensureSingle(m,"text","",function(e){e.attr("data-notex",1)}),C=r.ensureUniformFontSize(e,c.determineTextFont(E,o,S.font,{onPathbar:!0}));A.text(o._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(a.font,C).call(i.convertToTspans,e),o.textBB=a.bBox(A.node()),o.transform=x(o,{fontSize:C.size,onPathbar:!0}),o.transform.fontSize=C.size,_?A.transition().attrTween("transform",function(e){var t=w(e,d,k,[g,y]);return function(e){return z(t(e))}}):A.attr("transform",z(o))})}}),rit=Ee((e,t)=>{var n=mo(),r=(hO(),E_(fO)).interpolate,a=Vx(),i=Fr(),o=t4().TEXTPAD,s=Qw().toMoveInsideBar,l=g2().recordMinTextSize,c=mO(),u=Jat();function d(e){return a.isHierarchyRoot(e)?"":a.getPtId(e)}t.exports=function(e,t,p,h,f){var m=e._fullLayout,g=t[0],y=g.trace,b="icicle"===y.type,v=g.hierarchy,M=a.findEntryWithLevel(v,y.level),x=n.select(p),z=x.selectAll("g.pathbar"),_=x.selectAll("g.slice");if(!M)return z.remove(),void _.remove();var A=a.isHierarchyRoot(M),O=!m.uniformtext.mode&&a.hasTransition(h),w=a.getMaxDepth(y),k=m._size,T=y.domain,S=k.w*(T.x[1]-T.x[0]),C=k.h*(T.y[1]-T.y[0]),E=S,q=y.pathbar.thickness,D=y.marker.line.width+c.gapWithPathbar,R=y.pathbar.visible?y.pathbar.side.indexOf("bottom")>-1?C+D:-(q+D):0,L={x0:E,x1:E,y0:R,y1:R+q},I=function(e,t,n){var r=y.tiling.pad,a=function(e){return e-r<=t.x0},i=function(e){return e+r>=t.x1},o=function(e){return e-r<=t.y0},s=function(e){return e+r>=t.y1};return e.x0===t.x0&&e.x1===t.x1&&e.y0===t.y0&&e.y1===t.y1?{x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1}:{x0:a(e.x0-r)?0:i(e.x0-r)?n[0]:e.x0,x1:a(e.x1+r)?0:i(e.x1+r)?n[0]:e.x1,y0:o(e.y0-r)?0:s(e.y0-r)?n[1]:e.y0,y1:o(e.y1+r)?0:s(e.y1+r)?n[1]:e.y1}},W=null,N={},P={},B=null,F=function(e,t){return t?N[d(e)]:P[d(e)]},j=function(e,t,n,r){if(t)return N[d(v)]||L;var a=P[y.level]||n;return function(e){return e.data.depth-M.data.depth<w}(e)?I(e,a,r):{}};g.hasMultipleRoots&&A&&w++,y._maxDepth=w,y._backgroundColor=m.paper_bgcolor,y._entryDepth=M.data.depth,y._atRootLevel=A;var U=-S/2+k.l+k.w*(T.x[1]+T.x[0])/2,V=-C/2+k.t+k.h*(1-(T.y[1]+T.y[0])/2),H=function(e){return U+e},X=function(e){return V+e},G=X(0),Y=H(0),Z=function(e){return Y+e},$=function(e){return G+e};function J(e,t){return e+","+t}var Q=Z(0),K=function(e){e.x=Math.max(Q,e.x)},ee=y.pathbar.edgeshape,te=y[b?"tiling":"marker"].pad,ne=function(e){return-1!==y.textposition.indexOf(e)},re=ne("top"),ae=ne("left"),ie=ne("right"),oe=ne("bottom"),se=function(e,t){var n=e.x0,r=e.x1,a=e.y0,i=e.y1,c=e.textBB,u=re||t.isHeader&&!oe?"start":oe?"end":"middle",d=ne("right"),p=ne("left")||t.onPathbar?-1:d?1:0;if(t.isHeader){if((n+=(b?te:te.l)-o)>=(r-=(b?te:te.r)-o)){var h=(n+r)/2;n=h,r=h}var f;oe?a<(f=i-(b?te:te.b))&&f<i&&(a=f):a<(f=a+(b?te:te.t))&&f<i&&(i=f)}var g=s(n,r,a,i,c,{isHorizontal:!1,constrained:!0,angle:0,anchor:u,leftToRight:p});return g.fontSize=t.fontSize,g.targetX=H(g.targetX),g.targetY=X(g.targetY),isNaN(g.targetX)||isNaN(g.targetY)?{}:(n!==r&&a!==i&&l(y.type,g,m),{scale:g.scale,rotate:g.rotate,textX:g.textX,textY:g.textY,anchorX:g.anchorX,anchorY:g.anchorY,targetX:g.targetX,targetY:g.targetY})},le=function(e,t){for(var n,r=0,a=e;!n&&r<w;)r++,(a=a.parent)?n=F(a,t):r=w;return n||{}},ce=function(e,t,n,a,o){var s,l=F(e,t);if(l)s=l;else if(t)s=L;else if(W)if(e.parent){var c=B||n;c&&!t?s=I(e,c,a):(s={},i.extendFlat(s,le(e,t)))}else s=i.extendFlat({},e),b&&("h"===o.orientation?o.flipX?s.x0=e.x1:s.x1=0:o.flipY?s.y0=e.y1:s.y1=0);else s={};return r(s,{x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1})},ue=function(e,t,n,o){var s=F(e,t),c={},u=j(e,t,n,o);i.extendFlat(c,{transform:se({x0:u.x0,x1:u.x1,y0:u.y0,y1:u.y1,textBB:e.textBB,_text:e._text},{isHeader:a.isHeader(e,y)})}),s?c=s:e.parent&&i.extendFlat(c,le(e,t));var d=e.transform;return e.x0!==e.x1&&e.y0!==e.y1&&l(y.type,d,m),r(c,{transform:{scale:d.scale,rotate:d.rotate,textX:d.textX,textY:d.textY,anchorX:d.anchorX,anchorY:d.anchorY,targetX:d.targetX,targetY:d.targetY}})},de=function(e,t,a,i,o){var s=i[0],l=i[1];O?e.exit().transition().each(function(){var e=n.select(this);e.select("path.surface").transition().attrTween("d",function(e){var n=function(e,t,n,a){var i,o=F(e,t);if(t)i=L;else{var s=F(M,t);i=s?I(e,s,a):{}}return r(o,i)}(e,t,0,[s,l]);return function(e){return o(n(e))}}),e.select("g.slicetext").attr("opacity",0)}).remove():e.exit().remove()},pe=function(e){var t=e.transform;return e.x0!==e.x1&&e.y0!==e.y1&&l(y.type,t,m),i.getTextTransform({textX:t.textX,textY:t.textY,anchorX:t.anchorX,anchorY:t.anchorY,targetX:t.targetX,targetY:t.targetY,scale:t.scale,rotate:t.rotate})};O&&(z.each(function(e){N[d(e)]={x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1},e.transform&&(N[d(e)].transform={textX:e.transform.textX,textY:e.transform.textY,anchorX:e.transform.anchorX,anchorY:e.transform.anchorY,targetX:e.transform.targetX,targetY:e.transform.targetY,scale:e.transform.scale,rotate:e.transform.rotate})}),_.each(function(e){P[d(e)]={x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1},e.transform&&(P[d(e)].transform={textX:e.transform.textX,textY:e.transform.textY,anchorX:e.transform.anchorX,anchorY:e.transform.anchorY,targetX:e.transform.targetX,targetY:e.transform.targetY,scale:e.transform.scale,rotate:e.transform.rotate}),!W&&a.isEntry(e)&&(W=e)})),B=f(e,t,M,_,{width:S,height:C,viewX:H,viewY:X,pathSlice:function(e){var t=H(e.x0),n=H(e.x1),r=X(e.y0),a=X(e.y1),i=n-t,o=a-r;if(!i||!o)return"";var s=y.marker.cornerradius||0,l=Math.min(s,i/2,o/2);l&&e.data&&e.data.data&&e.data.data.label&&(re&&(l=Math.min(l,te.t)),ae&&(l=Math.min(l,te.l)),ie&&(l=Math.min(l,te.r)),oe&&(l=Math.min(l,te.b)));var c=function(e,t){return l?"a"+J(l,l)+" 0 0 1 "+J(e,t):""};return"M"+J(t,r+l)+c(l,-l)+"L"+J(n-l,r)+c(l,l)+"L"+J(n,a-l)+c(-l,l)+"L"+J(t+l,a)+c(-l,-l)+"Z"},toMoveInsideSlice:se,prevEntry:W,makeUpdateSliceInterpolator:ce,makeUpdateTextInterpolator:ue,handleSlicesExit:de,hasTransition:O,strTransform:pe}),y.pathbar.visible?u(e,t,M,z,{barDifY:R,width:E,height:q,viewX:Z,viewY:$,pathSlice:function(e){var t=Z(Math.max(Math.min(e.x0,e.x0),0)),n=Z(Math.min(Math.max(e.x1,e.x1),E)),r=$(e.y0),a=$(e.y1),i=q/2,o={},s={};o.x=t,s.x=n,o.y=s.y=(r+a)/2;var l={x:t,y:r},c={x:n,y:r},u={x:n,y:a},d={x:t,y:a};return">"===ee?(l.x-=i,c.x-=i,u.x-=i,d.x-=i):"/"===ee?(u.x-=i,d.x-=i,o.x-=i/2,s.x-=i/2):"\\"===ee?(l.x-=i,c.x-=i,o.x-=i/2,s.x-=i/2):"<"===ee&&(o.x-=i,s.x-=i),K(l),K(d),K(o),K(c),K(u),K(s),"M"+J(l.x,l.y)+"L"+J(c.x,c.y)+"L"+J(s.x,s.y)+"L"+J(u.x,u.y)+"L"+J(d.x,d.y)+"L"+J(o.x,o.y)+"Z"},toMoveInsideSlice:se,makeUpdateSliceInterpolator:ce,makeUpdateTextInterpolator:ue,handleSlicesExit:de,hasTransition:O,strTransform:pe}):z.remove()}}),wfe=Ee((e,t)=>{var n=mo(),r=Vx(),a=g2().clearMinTextSize,i=ry().resizeText,o=rit();t.exports=function(e,t,s,l,c){var u,d,p=c.type,h=c.drawDescendants,f=e._fullLayout,m=f["_"+p+"layer"],g=!s;(a(p,f),(u=m.selectAll("g.trace."+p).data(t,function(e){return e[0].trace.uid})).enter().append("g").classed("trace",!0).classed(p,!0),u.order(),!f.uniformtext.mode&&r.hasTransition(s))?(l&&(d=l()),n.transition().duration(s.duration).ease(s.easing).each("end",function(){d&&d()}).each("interrupt",function(){d&&d()}).each(function(){m.selectAll("g.trace").each(function(t){o(e,t,this,s,h)})})):(u.each(function(t){o(e,t,this,s,h)}),f.uniformtext.mode&&i(e,m.selectAll(".trace"),p));g&&u.exit().remove()}}),cit=Ee((e,t)=>{var n=mo(),r=Fr(),a=vs(),i=q1(),o=bfe(),s=QX().styleOne,l=mO(),c=Vx(),u=RL(),d=KX().formatSliceLabel,p=!1;t.exports=function(e,t,h,f,m){var g=m.width,y=m.height,b=m.viewX,v=m.viewY,M=m.pathSlice,x=m.toMoveInsideSlice,z=m.strTransform,_=m.hasTransition,A=m.handleSlicesExit,O=m.makeUpdateSliceInterpolator,w=m.makeUpdateTextInterpolator,k=m.prevEntry,T=e._context.staticPlot,S=e._fullLayout,C=t[0].trace,E=-1!==C.textposition.indexOf("left"),q=-1!==C.textposition.indexOf("right"),D=-1!==C.textposition.indexOf("bottom"),R=!D&&!C.marker.pad.t||D&&!C.marker.pad.b,L=o(h,[g,y],{packing:C.tiling.packing,squarifyratio:C.tiling.squarifyratio,flipX:C.tiling.flip.indexOf("x")>-1,flipY:C.tiling.flip.indexOf("y")>-1,pad:{inner:C.tiling.pad,top:C.marker.pad.t,left:C.marker.pad.l,right:C.marker.pad.r,bottom:C.marker.pad.b}}).descendants(),I=1/0,W=-1/0;L.forEach(function(e){var t=e.depth;t>=C._maxDepth?(e.x0=e.x1=(e.x0+e.x1)/2,e.y0=e.y1=(e.y0+e.y1)/2):(I=Math.min(I,t),W=Math.max(W,t))}),f=f.data(L,c.getPtId),C._maxVisibleLayers=isFinite(W)?W-I+1:0,f.enter().append("g").classed("slice",!0),A(f,p,{},[g,y],M),f.order();var N=null;if(_&&k){var P=c.getPtId(k);f.each(function(e){null===N&&c.getPtId(e)===P&&(N={x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1})})}var B=function(){return N||{x0:0,x1:g,y0:0,y1:y}},F=f;return _&&(F=F.transition().each("end",function(){var t=n.select(this);c.setSliceCursor(t,e,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),F.each(function(o){var f=c.isHeader(o,C);o._x0=b(o.x0),o._x1=b(o.x1),o._y0=v(o.y0),o._y1=v(o.y1),o._hoverX=b(o.x1-C.marker.pad.r),o._hoverY=v(D?o.y1-C.marker.pad.b/2:o.y0+C.marker.pad.t/2);var m=n.select(this),A=r.ensureSingle(m,"path","surface",function(e){e.style("pointer-events",T?"none":"all")});_?A.transition().attrTween("d",function(e){var t=O(e,p,B(),[g,y]);return function(e){return M(t(e))}}):A.attr("d",M),m.call(u,h,e,t,{styleOne:s,eventDataKeys:l.eventDataKeys,transitionTime:l.CLICK_TRANSITION_TIME,transitionEasing:l.CLICK_TRANSITION_EASING}).call(c.setSliceCursor,e,{isTransitioning:e._transitioning}),A.call(s,o,C,e,{hovered:!1}),o.x0===o.x1||o.y0===o.y1?o._text="":o._text=f?R?"":c.getPtLabel(o)||"":d(o,h,C,t,S)||"";var k=r.ensureSingle(m,"g","slicetext"),L=r.ensureSingle(k,"text","",function(e){e.attr("data-notex",1)}),I=r.ensureUniformFontSize(e,c.determineTextFont(C,o,S.font)),W=o._text||" ",N=f&&-1===W.indexOf("<br>");L.text(W).classed("slicetext",!0).attr("text-anchor",q?"end":E||N?"start":"middle").call(a.font,I).call(i.convertToTspans,e),o.textBB=a.bBox(L.node()),o.transform=x(o,{fontSize:I.size,isHeader:f}),o.transform.fontSize=I.size,_?L.transition().attrTween("transform",function(e){var t=w(e,p,B(),[g,y]);return function(e){return z(t(e))}}):L.attr("transform",z(o))}),N}}),dit=Ee((e,t)=>{var n=wfe(),r=cit();t.exports=function(e,t,a,i){return n(e,t,a,i,{type:"treemap",drawDescendants:r})}}),hit=Ee((e,t)=>{t.exports={moduleType:"trace",name:"treemap",basePlotModule:kat(),categories:[],animatable:!0,attributes:JX(),layoutAttributes:mfe(),supplyDefaults:Nat(),supplyLayoutDefaults:Fat(),calc:gfe().calc,crossTraceCalc:gfe().crossTraceCalc,plot:dit(),style:QX().style,colorbar:Wp(),meta:{description:["Visualize hierarchal data from leaves (and/or outer branches) towards root","with rectangles. The treemap sectors are determined by the entries in","*labels* or *ids* and in *parents*."].join(" ")}}}),mit=Ee((e,t)=>{t.exports=hit()}),git=Ee(e=>{var t=td();e.name="icicle",e.plot=function(n,r,a,i){t.plotBasePlot(e.name,n,r,a,i)},e.clean=function(n,r,a,i){t.cleanBasePlot(e.name,n,r,a,i)}}),Sfe=Ee((e,t)=>{var{hovertemplateAttrs:n,texttemplateAttrs:r,templatefallbackAttrs:a}=p1(),i=Oc(),o=ad().attributes,s=aO(),l=ML(),c=JX(),u=mO(),d=ms().extendFlat,p=pp().pattern;t.exports={labels:l.labels,parents:l.parents,values:l.values,branchvalues:l.branchvalues,count:l.count,level:l.level,maxdepth:l.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot",description:["When set in conjunction with `tiling.flip`, determines on","which side the root nodes are drawn in the chart. If","`tiling.orientation` is *v* and `tiling.flip` is **, the root","nodes appear at the top. If `tiling.orientation` is *v* and","`tiling.flip` is *y*, the root nodes appear at the bottom. If","`tiling.orientation` is *h* and `tiling.flip` is **, the","root nodes appear at the left. If `tiling.orientation` is *h*","and `tiling.flip` is *x*, the root nodes appear at the right."].join(" ")},flip:c.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets the inner padding (in px)."].join(" ")},editType:"calc"},marker:d({colors:l.marker.colors,line:l.marker.line,pattern:p,editType:"calc"},i("marker",{colorAttr:"colors",anim:!1})),leaf:l.leaf,pathbar:c.pathbar,text:s.text,textinfo:l.textinfo,texttemplate:r({editType:"plot"},{keys:u.eventDataKeys.concat(["label","value"])}),texttemplatefallback:a({editType:"plot"}),hovertext:s.hovertext,hoverinfo:l.hoverinfo,hovertemplate:n({},{keys:u.eventDataKeys}),hovertemplatefallback:a(),textfont:s.textfont,insidetextfont:s.insidetextfont,outsidetextfont:c.outsidetextfont,textposition:c.textposition,sort:s.sort,root:l.root,domain:o({name:"icicle",trace:!0,editType:"calc"})}}),kfe=Ee((e,t)=>{t.exports={iciclecolorway:{valType:"colorlist",editType:"calc",description:["Sets the default icicle slice colors. Defaults to the main","`colorway` used for trace colors. If you specify a new","list here it can still be extended with lighter and darker","colors, see `extendiciclecolors`."].join(" ")},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc",description:["If `true`, the icicle slice colors (whether given by `iciclecolorway` or","inherited from `colorway`) will be extended to three times its","original length by first repeating every color 20% lighter then","each color 20% darker. This is intended to reduce the likelihood","of reusing the same color when you have many slices, but you can","set `false` to disable.","Colors provided in the trace, using `marker.colors`, are never","extended."].join(" ")}}}),wit=Ee((e,t)=>{var n=Fr(),r=Sfe(),a=ao(),i=ad().defaults,o=Vv().handleText,s=t4().TEXTPAD,l=iO().handleMarkerDefaults,c=xu(),u=c.hasColorscale,d=c.handleDefaults;t.exports=function(e,t,c,p){function h(a,i){return n.coerce(e,t,r,a,i)}var f=h("labels"),m=h("parents");if(f&&f.length&&m&&m.length){var g=h("values");g&&g.length?h("branchvalues"):h("count"),h("level"),h("maxdepth"),h("tiling.orientation"),h("tiling.flip"),h("tiling.pad");var y=h("text");h("texttemplate"),h("texttemplatefallback"),t.texttemplate||h("textinfo",n.isArrayOrTypedArray(y)?"text+label":"label"),h("hovertext"),h("hovertemplate"),h("hovertemplatefallback");var b=h("pathbar.visible");o(e,t,p,h,"auto",{hasPathbar:b,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),h("textposition"),l(e,t,p,h);var v=t._hasColorscale=u(e,"marker","colors")||(e.marker||{}).coloraxis;v&&d(e,t,p,h,{prefix:"marker.",cLetter:"c"}),h("leaf.opacity",v?1:.7),t._hovered={marker:{line:{width:2,color:a.contrast(p.paper_bgcolor)}}},b&&(h("pathbar.thickness",t.pathbar.textfont.size+2*s),h("pathbar.side"),h("pathbar.edgeshape")),h("sort"),h("root.color"),i(t,p,h),t._length=null}else t.visible=!1}}),Tit=Ee((e,t)=>{var n=Fr(),r=kfe();t.exports=function(e,t){function a(a,i){return n.coerce(e,t,r,a,i)}a("iciclecolorway",t.colorway),a("extendiciclecolors")}}),Efe=Ee(e=>{var t=zL();e.calc=function(e,n){return t.calc(e,n)},e.crossTraceCalc=function(e){return t._runCrossTraceCalc("icicle",e)}}),Cit=Ee((e,t)=>{var n=xL(),r=yfe();t.exports=function(e,t,a){var i=a.flipX,o=a.flipY,s="h"===a.orientation,l=a.maxDepth,c=t[0],u=t[1];l&&(c=(e.height+1)*t[0]/Math.min(e.height+1,l),u=(e.height+1)*t[1]/Math.min(e.height+1,l));var d=n.partition().padding(a.pad.inner).size(s?[t[1],c]:[t[0],u])(e);return(s||i||o)&&r(d,t,{swapXY:s,flipX:i,flipY:o}),d}}),qfe=Ee((e,t)=>{var n=mo(),r=ao(),a=Fr(),i=g2().resizeText,o=ZX();function s(e,t,n,i){var s=t.data.data,l=!t.children,c=s.i,u=a.castOption(n,c,"marker.line.color")||r.defaultLine,d=a.castOption(n,c,"marker.line.width")||0;e.call(o,t,n,i).style("stroke-width",d).call(r.stroke,u).style("opacity",l?n.leaf.opacity:null)}t.exports={style:function(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");i(e,t,"icicle"),t.each(function(t){var r=n.select(this),a=t[0].trace;r.style("opacity",a.opacity),r.selectAll("path.surface").each(function(t){n.select(this).call(s,t,a,e)})})},styleOne:s}}),Fit=Ee((e,t)=>{var n=mo(),r=Fr(),a=vs(),i=q1(),o=Cit(),s=qfe().styleOne,l=mO(),c=Vx(),u=RL(),d=KX().formatSliceLabel,p=!1;t.exports=function(e,t,h,f,m){var g=m.width,y=m.height,b=m.viewX,v=m.viewY,M=m.pathSlice,x=m.toMoveInsideSlice,z=m.strTransform,_=m.hasTransition,A=m.handleSlicesExit,O=m.makeUpdateSliceInterpolator,w=m.makeUpdateTextInterpolator,k=m.prevEntry,T=e._context.staticPlot,S=e._fullLayout,C=t[0].trace,E=-1!==C.textposition.indexOf("left"),q=-1!==C.textposition.indexOf("right"),D=-1!==C.textposition.indexOf("bottom"),R=o(h,[g,y],{flipX:C.tiling.flip.indexOf("x")>-1,flipY:C.tiling.flip.indexOf("y")>-1,orientation:C.tiling.orientation,pad:{inner:C.tiling.pad},maxDepth:C._maxDepth}).descendants(),L=1/0,I=-1/0;R.forEach(function(e){var t=e.depth;t>=C._maxDepth?(e.x0=e.x1=(e.x0+e.x1)/2,e.y0=e.y1=(e.y0+e.y1)/2):(L=Math.min(L,t),I=Math.max(I,t))}),f=f.data(R,c.getPtId),C._maxVisibleLayers=isFinite(I)?I-L+1:0,f.enter().append("g").classed("slice",!0),A(f,p,{},[g,y],M),f.order();var W=null;if(_&&k){var N=c.getPtId(k);f.each(function(e){null===W&&c.getPtId(e)===N&&(W={x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1})})}var P=function(){return W||{x0:0,x1:g,y0:0,y1:y}},B=f;return _&&(B=B.transition().each("end",function(){var t=n.select(this);c.setSliceCursor(t,e,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),B.each(function(o){o._x0=b(o.x0),o._x1=b(o.x1),o._y0=v(o.y0),o._y1=v(o.y1),o._hoverX=b(o.x1-C.tiling.pad),o._hoverY=v(D?o.y1-C.tiling.pad/2:o.y0+C.tiling.pad/2);var f=n.select(this),m=r.ensureSingle(f,"path","surface",function(e){e.style("pointer-events",T?"none":"all")});_?m.transition().attrTween("d",function(e){var t=O(e,p,P(),[g,y],{orientation:C.tiling.orientation,flipX:C.tiling.flip.indexOf("x")>-1,flipY:C.tiling.flip.indexOf("y")>-1});return function(e){return M(t(e))}}):m.attr("d",M),f.call(u,h,e,t,{styleOne:s,eventDataKeys:l.eventDataKeys,transitionTime:l.CLICK_TRANSITION_TIME,transitionEasing:l.CLICK_TRANSITION_EASING}).call(c.setSliceCursor,e,{isTransitioning:e._transitioning}),m.call(s,o,C,e,{hovered:!1}),o.x0===o.x1||o.y0===o.y1?o._text="":o._text=d(o,h,C,t,S)||"";var A=r.ensureSingle(f,"g","slicetext"),k=r.ensureSingle(A,"text","",function(e){e.attr("data-notex",1)}),R=r.ensureUniformFontSize(e,c.determineTextFont(C,o,S.font));k.text(o._text||" ").classed("slicetext",!0).attr("text-anchor",q?"end":E?"start":"middle").call(a.font,R).call(i.convertToTspans,e),o.textBB=a.bBox(k.node()),o.transform=x(o,{fontSize:R.size}),o.transform.fontSize=R.size,_?k.transition().attrTween("transform",function(e){var t=w(e,p,P(),[g,y]);return function(e){return z(t(e))}}):k.attr("transform",z(o))}),W}}),Uit=Ee((e,t)=>{var n=wfe(),r=Fit();t.exports=function(e,t,a,i){return n(e,t,a,i,{type:"icicle",drawDescendants:r})}}),Vit=Ee((e,t)=>{t.exports={moduleType:"trace",name:"icicle",basePlotModule:git(),categories:[],animatable:!0,attributes:Sfe(),layoutAttributes:kfe(),supplyDefaults:wit(),supplyLayoutDefaults:Tit(),calc:Efe().calc,crossTraceCalc:Efe().crossTraceCalc,plot:Uit(),style:qfe().style,colorbar:Wp(),meta:{description:["Visualize hierarchal data from leaves (and/or outer branches) towards root","with rectangles. The icicle sectors are determined by the entries in","*labels* or *ids* and in *parents*."].join(" ")}}}),Git=Ee((e,t)=>{t.exports=Vit()}),Yit=Ee(e=>{var t=td();e.name="funnelarea",e.plot=function(n,r,a,i){t.plotBasePlot(e.name,n,r,a,i)},e.clean=function(n,r,a,i){t.cleanBasePlot(e.name,n,r,a,i)}}),Lfe=Ee((e,t)=>{var n=aO(),r=S1(),a=ad().attributes,{hovertemplateAttrs:i,texttemplateAttrs:o,templatefallbackAttrs:s}=p1(),l=ms().extendFlat;t.exports={labels:n.labels,label0:n.label0,dlabel:n.dlabel,values:n.values,marker:{colors:n.marker.colors,line:{color:l({},n.marker.line.color,{dflt:null,description:["Sets the color of the line enclosing each sector.","Defaults to the `paper_bgcolor` value."].join(" ")}),width:l({},n.marker.line.width,{dflt:1}),editType:"calc"},pattern:n.marker.pattern,editType:"calc"},text:n.text,hovertext:n.hovertext,scalegroup:l({},n.scalegroup,{description:["If there are multiple funnelareas that should be sized according to","their totals, link them by providing a non-empty group id here","shared by every trace in the same group."].join(" ")}),textinfo:l({},n.textinfo,{flags:["label","text","value","percent"]}),texttemplate:o({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:s({editType:"plot"}),hoverinfo:l({},r.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:i({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:s(),textposition:l({},n.textposition,{values:["inside","none"],dflt:"inside"}),textfont:n.textfont,insidetextfont:n.insidetextfont,title:{text:n.title.text,font:n.title.font,position:l({},n.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:a({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot",description:["Sets the ratio between height and width"].join(" ")},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot",description:["Sets the ratio between bottom length and maximum top length."].join(" ")}}}),Pfe=Ee((e,t)=>{var n=AX().hiddenlabels;t.exports={hiddenlabels:n,funnelareacolorway:{valType:"colorlist",editType:"calc",description:["Sets the default funnelarea slice colors. Defaults to the main","`colorway` used for trace colors. If you specify a new","list here it can still be extended with lighter and darker","colors, see `extendfunnelareacolors`."].join(" ")},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc",description:["If `true`, the funnelarea slice colors (whether given by `funnelareacolorway` or","inherited from `colorway`) will be extended to three times its","original length by first repeating every color 20% lighter then","each color 20% darker. This is intended to reduce the likelihood","of reusing the same color when you have many slices, but you can","set `false` to disable.","Colors provided in the trace, using `marker.colors`, are never","extended."].join(" ")}}}),eot=Ee((e,t)=>{var n=Fr(),r=Lfe(),a=ad().defaults,i=Vv().handleText,o=iO().handleLabelsAndValues,s=iO().handleMarkerDefaults;t.exports=function(e,t,l,c){function u(a,i){return n.coerce(e,t,r,a,i)}var d=u("labels"),p=u("values"),h=o(d,p),f=h.len;if(t._hasLabels=h.hasLabels,t._hasValues=h.hasValues,!t._hasLabels&&t._hasValues&&(u("label0"),u("dlabel")),f){t._length=f,s(e,t,c,u),u("scalegroup");var m,g=u("text"),y=u("texttemplate");if(u("texttemplatefallback"),y||(m=u("textinfo",Array.isArray(g)?"text+percent":"percent")),u("hovertext"),u("hovertemplate"),u("hovertemplatefallback"),y||m&&"none"!==m){var b=u("textposition");i(e,t,c,u,b,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else"none"===m&&u("textposition","none");a(t,c,u),u("title.text")&&(u("title.position"),n.coerceFont(u,"title.font",c.font)),u("aspectratio"),u("baseratio")}else t.visible=!1}}),rot=Ee((e,t)=>{var n=Fr(),r=Pfe();t.exports=function(e,t){function a(a,i){return n.coerce(e,t,r,a,i)}a("hiddenlabels"),a("funnelareacolorway",t.colorway),a("extendfunnelareacolors")}}),Ife=Ee((e,t)=>{var n=Ok();t.exports={calc:function(e,t){return n.calc(e,t)},crossTraceCalc:function(e){n.crossTraceCalc(e,{type:"funnelarea"})}}}),cot=Ee((e,t)=>{var n=mo(),r=vs(),a=Fr(),i=a.strScale,o=a.strTranslate,s=q1(),l=Qw().toMoveInsideBar,c=g2(),u=c.recordMinTextSize,d=c.clearMinTextSize,p=Xz(),h=SX(),f=h.attachFxHandlers,m=h.determineInsideTextFont,g=h.layoutAreas,y=h.prerenderTitles,b=h.positionTitleOutside,v=h.formatSliceLabel;function M(e,t){return"l"+(t[0]-e[0])+","+(t[1]-e[1])}function x(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}t.exports=function(e,t){var c=e._context.staticPlot,h=e._fullLayout;d("funnelarea",h),y(t,e),g(t,h._size),a.makeTraceGroups(h._funnelarealayer,t,"trace").each(function(t){var d=n.select(this),g=t[0],y=g.trace;(function(e){if(!e.length)return;var t=e[0],n=t.trace,r=n.aspectratio,a=n.baseratio;a>.999&&(a=.999);var i=Math.pow(a,2),o=t.vTotal,s=o*i/(1-i),l=o,c=s/o;function u(){var e=Math.sqrt(c);return{x:e,y:-e}}function d(){var e=u();return[e.x,e.y]}var p,h,f,m=[];for(m.push(d()),h=e.length-1;h>-1;h--)if(!(f=e[h]).hidden){var g=f.v/l;c+=g,m.push(d())}var y=1/0,b=-1/0;for(h=0;h<m.length;h++)p=m[h],y=Math.min(y,p[1]),b=Math.max(b,p[1]);for(h=0;h<m.length;h++)m[h][1]-=(b+y)/2;var v=m[m.length-1][0],M=t.r,z=(b-y)/2,_=M/v,A=M/z*r;for(t.r=A*z,h=0;h<m.length;h++)m[h][0]*=_,m[h][1]*=A;var O=[-(p=m[0])[0],p[1]],w=[p[0],p[1]],k=0;for(h=e.length-1;h>-1;h--)if(!(f=e[h]).hidden){var T=m[k+=1][0],S=m[k][1];f.TL=[-T,S],f.TR=[T,S],f.BL=O,f.BR=w,f.pxmid=x(f.TR,f.BR),O=f.TL,w=f.TR}})(t),d.each(function(){var d=n.select(this).selectAll("g.slice").data(t);d.enter().append("g").classed("slice",!0),d.exit().remove(),d.each(function(i,o){if(i.hidden)n.select(this).selectAll("path,g").remove();else{i.pointNumber=i.i,i.curveNumber=y.index;var d=g.cx,b=g.cy,x=n.select(this),z=x.selectAll("path.surface").data([i]);z.enter().append("path").classed("surface",!0).style({"pointer-events":c?"none":"all"}),x.call(f,e,t);var _="M"+(d+i.TR[0])+","+(b+i.TR[1])+M(i.TR,i.BR)+M(i.BR,i.BL)+M(i.BL,i.TL)+"Z";z.attr("d",_),v(e,i,g);var A=p.castOption(y.textposition,i.pts),O=x.selectAll("g.slicetext").data(i.text&&"none"!==A?[0]:[]);O.enter().append("g").classed("slicetext",!0),O.exit().remove(),O.each(function(){var c=a.ensureSingle(n.select(this),"text","",function(e){e.attr("data-notex",1)}),p=a.ensureUniformFontSize(e,m(y,i,h.font));c.text(i.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(r.font,p).call(s.convertToTspans,e);var f,g,v,M=r.bBox(c.node()),x=Math.min(i.BL[1],i.BR[1])+b,z=Math.max(i.TL[1],i.TR[1])+b;g=Math.max(i.TL[0],i.BL[0])+d,v=Math.min(i.TR[0],i.BR[0])+d,(f=l(g,v,x,z,M,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"})).fontSize=p.size,u(y.type,f,h),t[o].transform=f,a.setTransormAndDisplay(c,f)})}});var x=n.select(this).selectAll("g.titletext").data(y.title.text?[0]:[]);x.enter().append("g").classed("titletext",!0),x.exit().remove(),x.each(function(){var t=a.ensureSingle(n.select(this),"text","",function(e){e.attr("data-notex",1)}),l=y.title.text;y._meta&&(l=a.templateString(l,y._meta)),t.text(l).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(r.font,y.title.font).call(s.convertToTspans,e);var c=b(g,h._size);t.attr("transform",o(c.x,c.y)+i(Math.min(1,c.scale))+o(c.tx,c.ty))})})})}}),fot=Ee((e,t)=>{var n=mo(),r=mS(),a=g2().resizeText;t.exports=function(e){var t=e._fullLayout._funnelarealayer.selectAll(".trace");a(e,t,"funnelarea"),t.each(function(t){var a=t[0].trace,i=n.select(this);i.style({opacity:a.opacity}),i.selectAll("path.surface").each(function(t){n.select(this).call(r,t,a,e)})})}}),pot=Ee((e,t)=>{t.exports={moduleType:"trace",name:"funnelarea",basePlotModule:Yit(),categories:["pie-like","funnelarea","showLegend"],attributes:Lfe(),layoutAttributes:Pfe(),supplyDefaults:eot(),supplyLayoutDefaults:rot(),calc:Ife().calc,crossTraceCalc:Ife().crossTraceCalc,plot:cot(),style:fot(),styleOne:mS(),meta:{description:["Visualize stages in a process using area-encoded trapezoids. This trace can be used",'to show data in a part-to-whole representation similar to a "pie" trace, wherein','each item appears in a single stage. See also the "funnel" trace type for a different',"approach to visualizing funnel data."].join(" ")}}}),vot=Ee((e,t)=>{t.exports=pot()}),Mp=Ee((e,t)=>{!function(){var e={1964:function(e,t,n){e.exports={alpha_shape:n(3502),convex_hull:n(7352),delaunay_triangulate:n(7642),gl_cone3d:n(6405),gl_error3d:n(9165),gl_line3d:n(5714),gl_mesh3d:n(7201),gl_plot3d:n(4100),gl_scatter3d:n(8418),gl_streamtube3d:n(7815),gl_surface3d:n(9499),ndarray:n(9618),ndarray_linear_interpolate:n(4317)}},4793:function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=n(7507),i=n(3778),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=c,t.IS=50;var s=2147483647;function l(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|g(e,t),r=l(n),a=r.write(e,t);return a!==n&&(r=r.slice(0,a)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(j(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+r(e));if(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(j(e,SharedArrayBuffer)||e&&j(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var a=e.valueOf&&e.valueOf();if(null!=a&&a!==e)return c.from(a,t,n);var i=function(e){if(c.isBuffer(e)){var t=0|m(e.length),n=l(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||U(e.length)?l(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(i)return i;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+r(e))}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return d(e),l(e<0?0:0|m(e))}function h(e){for(var t=e.length<0?0:0|m(e.length),n=l(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,c.prototype),r}function m(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+r(e));var n=e.length,a=arguments.length>2&&!0===arguments[2];if(!a&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return P(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(e).length;default:if(i)return a?-1:P(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return E(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return S(this,t,n);case"latin1":case"binary":return C(this,t,n);case"base64":return w(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),U(n=+n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:M(e,t,n,r,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):M(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function M(e,t,n,r,a){var i,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var u=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*o}else-1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var d=!0,p=0;p<l;p++)if(c(e,i+p)!==c(t,p)){d=!1;break}if(d)return i}return-1}function x(e,t,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r))>a&&(r=a):r=a;var i=t.length;r>i/2&&(r=i/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(U(s))return o;e[n+o]=s}return o}function z(e,t,n,r){return F(P(t,e.length-n),e,n,r)}function _(e,t,n,r){return F(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function A(e,t,n,r){return F(B(t),e,n,r)}function O(e,t,n,r){return F(function(e,t){for(var n,r,a,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function w(e,t,n){return 0===t&&n===e.length?a.fromByteArray(e):a.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a<n;){var i,o,s,l,c=e[a],u=null,d=c>239?4:c>223?3:c>191?2:1;if(a+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[a+1]))&&((l=(31&c)<<6|63&i)>127&&(u=l));break;case 3:i=e[a+1],o=e[a+2],128==(192&i)&&128==(192&o)&&((l=(15&c)<<12|(63&i)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l));break;case 4:i=e[a+1],o=e[a+2],s=e[a+3],128==(192&i)&&128==(192&o)&&128==(192&s)&&((l=(15&c)<<18|(63&i)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l))}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),a+=d}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=T));return n}(r)}c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch{return!1}}(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return function(e,t,n){return d(e),e<=0?l(e):void 0!==t?"string"==typeof n?l(e).fill(t,n):l(e).fill(t):l(e)}(e,t,n)},c.allocUnsafe=function(e){return p(e)},c.allocUnsafeSlow=function(e){return p(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(j(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),j(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,a=0,i=Math.min(n,r);a<i;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),a=0;for(n=0;n<e.length;++n){var i=e[n];if(j(i,Uint8Array))a+i.length>r.length?c.from(i).copy(r,a):Uint8Array.prototype.set.call(r,i,a);else{if(!c.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,a)}a+=i.length}return r},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)b(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},c.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?k(this,0,e):y.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.IS;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,n,a,i){if(j(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+r(e));if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===a&&(a=0),void 0===i&&(i=this.length),t<0||n>e.length||a<0||i>this.length)throw new RangeError("out of range index");if(a>=i&&t>=n)return 0;if(a>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(a>>>=0),s=(n>>>=0)-(t>>>=0),l=Math.min(o,s),u=this.slice(a,i),d=e.slice(t,n),p=0;p<l;++p)if(u[p]!==d[p]){o=u[p],s=d[p];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return z(this,e,t,n);case"ascii":case"latin1":case"binary":return _(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function S(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(127&e[a]);return r}function C(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function E(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var a="",i=t;i<n;++i)a+=V[e[i]];return a}function q(e,t,n){for(var r=e.slice(t,n),a="",i=0;i<r.length-1;i+=2)a+=String.fromCharCode(r[i]+256*r[i+1]);return a}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,a,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function L(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(e,t,n,r,a){return t=+t,n>>>=0,a||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function W(e,t,n,r,a){return t=+t,n>>>=0,a||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],a=1,i=0;++i<t&&(a*=256);)r+=this[e+i]*a;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],a=1,i=0;++i<t&&(a*=256);)r+=this[e+i]*a;return r>=(a*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=t,a=1,i=this[e+--r];r>0&&(a*=256);)i+=this[e+--r]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[t]=255&e;++i<n&&(a*=256);)this[t+i]=e/a&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var a=n-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);R(this,e,t,n,a-1,-a)}var i=0,o=1,s=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);R(this,e,t,n,a-1,-a)}var i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,n){return I(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return I(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return W(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return W(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!r&&0!==r&&(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var a=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),a},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=c.isBuffer(e)?e:c.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%s]}return this};var N=/[^+/0-9A-Za-z-_]/g;function P(e,t){t=t||1/0;for(var n,r=e.length,a=null,i=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function B(e){return a.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function F(e,t,n,r){for(var a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function j(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function U(e){return e!=e}var V=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,a=0;a<16;++a)t[r+a]=e[n]+e[a];return t}()},9216:function(e){e.exports=a,e.exports.isMobile=a,e.exports.default=a;var t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,r=/android|ipad|playbook|silk/i;function a(e){e||(e={});var a=e.ua;if(!a&&typeof navigator<"u"&&(a=navigator.userAgent),a&&a.headers&&"string"==typeof a.headers["user-agent"]&&(a=a.headers["user-agent"]),"string"!=typeof a)return!1;var i=t.test(a)&&!n.test(a)||!!e.tablet&&r.test(a);return!i&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==a.indexOf("Macintosh")&&-1!==a.indexOf("Safari")&&(i=!0),i}},6296:function(e,t,n){e.exports=function(e){var t=(e=e||{}).eye||[0,0,1],n=e.center||[0,0,0],s=e.up||[0,1,0],l=e.distanceLimits||[0,1/0],c=e.mode||"turntable",u=r(),d=a(),p=i();return u.setDistanceLimits(l[0],l[1]),u.lookAt(0,t,n,s),d.setDistanceLimits(l[0],l[1]),d.lookAt(0,t,n,s),p.setDistanceLimits(l[0],l[1]),p.lookAt(0,t,n,s),new o({turntable:u,orbit:d,matrix:p},c)};var r=n(7261),a=n(9977),i=n(1811);function o(e,t){this._controllerNames=Object.keys(e),this._controllerList=this._controllerNames.map(function(t){return e[t]}),this._mode=t,this._active=e[t],this._active||(this._mode="turntable",this._active=e.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var s=o.prototype;s.flush=function(e){for(var t=this._controllerList,n=0;n<t.length;++n)t[n].flush(e)},s.idle=function(e){for(var t=this._controllerList,n=0;n<t.length;++n)t[n].idle(e)},s.lookAt=function(e,t,n,r){for(var a=this._controllerList,i=0;i<a.length;++i)a[i].lookAt(e,t,n,r)},s.rotate=function(e,t,n,r){for(var a=this._controllerList,i=0;i<a.length;++i)a[i].rotate(e,t,n,r)},s.pan=function(e,t,n,r){for(var a=this._controllerList,i=0;i<a.length;++i)a[i].pan(e,t,n,r)},s.translate=function(e,t,n,r){for(var a=this._controllerList,i=0;i<a.length;++i)a[i].translate(e,t,n,r)},s.setMatrix=function(e,t){for(var n=this._controllerList,r=0;r<n.length;++r)n[r].setMatrix(e,t)},s.setDistanceLimits=function(e,t){for(var n=this._controllerList,r=0;r<n.length;++r)n[r].setDistanceLimits(e,t)},s.setDistance=function(e,t){for(var n=this._controllerList,r=0;r<n.length;++r)n[r].setDistance(e,t)},s.recalcMatrix=function(e){this._active.recalcMatrix(e)},s.getDistance=function(e){return this._active.getDistance(e)},s.getDistanceLimits=function(e){return this._active.getDistanceLimits(e)},s.lastT=function(){return this._active.lastT()},s.setMode=function(e){if(e!==this._mode){var t=this._controllerNames.indexOf(e);if(!(t<0)){var n=this._active,r=this._controllerList[t],a=Math.max(n.lastT(),r.lastT());n.recalcMatrix(a),r.setMatrix(a,n.computedMatrix),this._active=r,this._mode=e,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}}},s.getMode=function(){return this._mode}},7169:function(e,t,n){var r=typeof WeakMap>"u"?n(1538):WeakMap,a=n(2762),i=n(8116),o=new r;e.exports=function(e){var t=o.get(e),n=t&&(t._triangleBuffer.handle||t._triangleBuffer.buffer);if(!n||!e.isBuffer(n)){var r=a(e,new Float32Array([-1,-1,-1,4,4,-1]));(t=i(e,[{buffer:r,type:e.FLOAT,size:2}]))._triangleBuffer=r,o.set(e,t)}t.bind(),e.drawArrays(e.TRIANGLES,0,3),t.unbind()}},1085:function(e,t,n){var r=n(1371);e.exports=function(e,t,n){t="number"==typeof t?t:1,n=n||": ";var a=e.split(/\r?\n/),i=String(a.length+t-1).length;return a.map(function(e,a){var o=a+t,s=String(o).length;return r(o,i-s)+n+e}).join("\n")}},3952:function(e,t,n){e.exports=function(e){var t=e.length;if(0===t)return[];if(1===t)return[0];for(var n=e[0].length,r=[e[0]],i=[0],o=1;o<t;++o)if(r.push(e[o]),a(r,n)){if(i.push(o),i.length===n+1)return i}else r.pop();return i};var r=n(3250);function a(e,t){for(var n=new Array(t+1),a=0;a<e.length;++a)n[a]=e[a];for(a=0;a<=e.length;++a){for(var i=e.length;i<=t;++i){for(var o=new Array(t),s=0;s<t;++s)o[s]=Math.pow(i+1-a,s);n[i]=o}if(r.apply(void 0,n))return!0}return!1}},5995:function(e,t,n){e.exports=function(e,t){return r(t).filter(function(n){for(var r=new Array(n.length),i=0;i<n.length;++i)r[i]=t[n[i]];return a(r)*e<1})};var r=n(7642),a=n(6037)},3502:function(e,t,n){e.exports=function(e,t){return a(r(e,t))};var r=n(5995),a=n(9127)},6468:function(e){e.exports=function(e){return atob(e)}},2642:function(e,t,n){e.exports=function(e,t){for(var n=t.length,i=new Array(n+1),o=0;o<n;++o){for(var s=new Array(n+1),l=0;l<=n;++l)s[l]=e[l][o];i[o]=s}i[n]=new Array(n+1);for(o=0;o<=n;++o)i[n][o]=1;var c=new Array(n+1);for(o=0;o<n;++o)c[o]=t[o];c[n]=1;var u=r(i,c),d=a(u[n+1]);0===d&&(d=1);var p=new Array(n+1);for(o=0;o<=n;++o)p[o]=a(u[o])/d;return p};var r=n(727);function a(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return t}},7507:function(e,t){t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=s(e),o=i[0],l=i[1],c=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,l)),u=0,d=l>0?o-4:o;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=16383,s=0,l=r-a;s<l;s+=o)i.push(c(e,s,s+o>l?l:s+o));return 1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],r=[],a=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=i[o],r[i.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function c(e,t,n){for(var r,a=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),a.push(l(r));return a.join("")}r[45]=62,r[95]=63},3865:function(e,t,n){var r=n(869);e.exports=function(e,t){return r(e[0].mul(t[1]).add(t[0].mul(e[1])),e[1].mul(t[1]))}},1318:function(e){e.exports=function(e,t){return e[0].mul(t[1]).cmp(t[0].mul(e[1]))}},8697:function(e,t,n){var r=n(869);e.exports=function(e,t){return r(e[0].mul(t[1]),e[1].mul(t[0]))}},7842:function(e,t,n){var r=n(6330),a=n(1533),i=n(2651),o=n(6768),s=n(869),l=n(8697);e.exports=function e(t,n){if(r(t))return n?l(t,e(n)):[t[0].clone(),t[1].clone()];var c,u,d=0;if(a(t))c=t.clone();else if("string"==typeof t)c=o(t);else{if(0===t)return[i(0),i(1)];if(t===Math.floor(t))c=i(t);else{for(;t!==Math.floor(t);)t*=Math.pow(2,256),d-=256;c=i(t)}}if(r(n))c.mul(n[1]),u=n[0].clone();else if(a(n))u=n.clone();else if("string"==typeof n)u=o(n);else if(n)if(n===Math.floor(n))u=i(n);else{for(;n!==Math.floor(n);)n*=Math.pow(2,256),d+=256;u=i(n)}else u=i(1);return d>0?c=c.ushln(d):d<0&&(u=u.ushln(-d)),s(c,u)}},6330:function(e,t,n){var r=n(1533);e.exports=function(e){return Array.isArray(e)&&2===e.length&&r(e[0])&&r(e[1])}},5716:function(e,t,n){var r=n(6859);e.exports=function(e){return e.cmp(new r(0))}},1369:function(e,t,n){var r=n(5716);e.exports=function(e){var t=e.length,n=e.words,a=0;if(1===t)a=n[0];else if(2===t)a=n[0]+67108864*n[1];else for(var i=0;i<t;i++){a+=n[i]*Math.pow(67108864,i)}return r(e)*a}},4025:function(e,t,n){var r=n(2361),a=n(8828).countTrailingZeros;e.exports=function(e){var t=a(r.lo(e));if(t<32)return t;var n=a(r.hi(e));return n>20?52:n+32}},1533:function(e,t,n){n(6859);e.exports=function(e){return e&&"object"==typeof e&&!!e.words}},2651:function(e,t,n){var r=n(6859),a=n(2361);e.exports=function(e){var t=a.exponent(e);return t<52?new r(e):new r(e*Math.pow(2,52-t)).ushln(t-52)}},869:function(e,t,n){var r=n(2651),a=n(5716);e.exports=function(e,t){var n=a(e),i=a(t);if(0===n)return[r(0),r(1)];if(0===i)return[r(0),r(0)];i<0&&(e=e.neg(),t=t.neg());var o=e.gcd(t);return o.cmpn(1)?[e.div(o),t.div(o)]:[e,t]}},6768:function(e,t,n){var r=n(6859);e.exports=function(e){return new r(e)}},6504:function(e,t,n){var r=n(869);e.exports=function(e,t){return r(e[0].mul(t[0]),e[1].mul(t[1]))}},7721:function(e,t,n){var r=n(5716);e.exports=function(e){return r(e[0])*r(e[1])}},5572:function(e,t,n){var r=n(869);e.exports=function(e,t){return r(e[0].mul(t[1]).sub(e[1].mul(t[0])),e[1].mul(t[1]))}},946:function(e,t,n){var r=n(1369),a=n(4025);e.exports=function(e){var t=e[0],n=e[1];if(0===t.cmpn(0))return 0;var i=t.abs().divmod(n.abs()),o=i.div,s=r(o),l=i.mod,c=t.negative!==n.negative?-1:1;if(0===l.cmpn(0))return c*s;if(s){var u=a(s)+4;return c*(s+(p=r(l.ushln(u).divRound(n)))*Math.pow(2,-u))}var d=n.bitLength()-l.bitLength()+53,p=r(l.ushln(d).divRound(n));return d<1023?c*p*Math.pow(2,-d):c*(p*=Math.pow(2,-1023))*Math.pow(2,1023-d)}},2478:function(e){function t(e,t,n,r,a){for(var i=a+1;r<=a;){var o=r+a>>>1,s=e[o];(void 0!==n?n(s,t):s-t)>=0?(i=o,a=o-1):r=o+1}return i}function n(e,t,n,r,a){for(var i=a+1;r<=a;){var o=r+a>>>1,s=e[o];(void 0!==n?n(s,t):s-t)>0?(i=o,a=o-1):r=o+1}return i}function r(e,t,n,r,a){for(var i=r-1;r<=a;){var o=r+a>>>1,s=e[o];(void 0!==n?n(s,t):s-t)<0?(i=o,r=o+1):a=o-1}return i}function a(e,t,n,r,a){for(var i=r-1;r<=a;){var o=r+a>>>1,s=e[o];(void 0!==n?n(s,t):s-t)<=0?(i=o,r=o+1):a=o-1}return i}function i(e,t,n,r,a){for(;r<=a;){var i=r+a>>>1,o=e[i],s=void 0!==n?n(o,t):o-t;if(0===s)return i;s<=0?r=i+1:a=i-1}return-1}function o(e,t,n,r,a,i){return"function"==typeof n?i(e,t,n,void 0===r?0:0|r,void 0===a?e.length-1:0|a):i(e,t,void 0,void 0===n?0:0|n,void 0===r?e.length-1:0|r)}e.exports={ge:function(e,n,r,a,i){return o(e,n,r,a,i,t)},gt:function(e,t,r,a,i){return o(e,t,r,a,i,n)},lt:function(e,t,n,a,i){return o(e,t,n,a,i,r)},le:function(e,t,n,r,i){return o(e,t,n,r,i,a)},eq:function(e,t,n,r,a){return o(e,t,n,r,a,i)}}},8828:function(e,t){function n(e){var t=32;return(e&=-e)&&t--,65535&e&&(t-=16),16711935&e&&(t-=8),252645135&e&&(t-=4),858993459&e&&(t-=2),1431655765&e&&(t-=1),t}t.INT_BITS=32,t.INT_MAX=2147483647,t.INT_MIN=-1<<31,t.sign=function(e){return(e>0)-(e<0)},t.abs=function(e){var t=e>>31;return(e^t)-t},t.min=function(e,t){return t^(e^t)&-(e<t)},t.max=function(e,t){return e^(e^t)&-(e<t)},t.isPow2=function(e){return!(e&e-1||!e)},t.log2=function(e){var t,n;return t=(e>65535)<<4,t|=n=((e>>>=t)>255)<<3,t|=n=((e>>>=n)>15)<<2,(t|=n=((e>>>=n)>3)<<1)|(e>>>=n)>>1},t.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0},t.popCount=function(e){return 16843009*((e=(858993459&(e-=e>>>1&1431655765))+(e>>>2&858993459))+(e>>>4)&252645135)>>>24},t.countTrailingZeros=n,t.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},t.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)-(e>>>1)},t.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,27030>>>(e&=15)&1};var r=new Array(256);(function(e){for(var t=0;t<256;++t){var n=t,r=t,a=7;for(n>>>=1;n;n>>>=1)r<<=1,r|=1&n,--a;e[t]=r<<a&255}})(r),t.reverse=function(e){return r[255&e]<<24|r[e>>>8&255]<<16|r[e>>>16&255]<<8|r[e>>>24&255]},t.interleave2=function(e,t){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))<<1},t.deinterleave2=function(e,t){return(e=65535&((e=16711935&((e=252645135&((e=858993459&((e=e>>>t&1431655765)|e>>>1))|e>>>2))|e>>>4))|e>>>16))<<16>>16},t.interleave3=function(e,t,n){return e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2),(e|=(t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2))<<1)|(n=1227133513&((n=3272356035&((n=251719695&((n=4278190335&((n&=1023)|n<<16))|n<<8))|n<<4))|n<<2))<<2},t.deinterleave3=function(e,t){return(e=1023&((e=4278190335&((e=251719695&((e=3272356035&((e=e>>>t&1227133513)|e>>>2))|e>>>4))|e>>>8))|e>>>16))<<22>>22},t.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>n(e)+1}},6859:function(e,t,n){(function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:n(7790).Buffer}catch{}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function l(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function c(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o<i;o++){var s=e.charCodeAt(o)-48;a*=r,a+=s>=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a<e.length&&(16===t?this._parseHex(e,a,n):(this._parseBase(e,t,a),"le"===n&&this._initArray(this.toArray(),t,n)))},i.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var i,o,s=0;if("be"===n)for(a=e.length-1,i=0;a>=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<<s&67108863,this.words[i+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a<e.length;a+=3)o=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=o<<s&67108863,this.words[i+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var a,i=0,o=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)a=l(e,t,r)<<i,this.words[o]|=67108863&a,i>=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)a=l(e,t,r)<<i,this.words[o]|=67108863&a,i>=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,l=0,u=n;u<s;u+=r)l=c(e,u,u+r,t),this.imuln(a),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==o){var d=1;for(l=c(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,l=o/67108864|0;n.words[0]=s;for(var c=1;c<r;c++){for(var u=l>>>26,d=67108863&l,p=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=p;h++){var f=c-h|0;u+=(o=(a=0|e.words[f])*(i=0|t.words[h])+d)/67108864|0,d=67108863&o}n.words[c]=0|d,l=0|u}return 0!==l?n.words[c]=0|l:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o<this.length;o++){var s=this.words[o],l=(16777215&(s<<a|i)).toString(16);i=s>>>24-a&16777215,(a+=2)>=26&&(a-=26,o--),n=0!==i||o!==this.length-1?u[6-l.length]+l+n:l+n}for(0!==i&&(n=i.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=d[e],h=p[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(h).toString(e);n=(f=f.idivn(h)).isZero()?m+n:u[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(typeof o<"u"),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,l="le"===t,c=new e(i),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s<i;s++)c[s]=0}else{for(s=0;s<i-a;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[i-s-1]=o}return c},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return!(8191&t)&&(n+=13,t>>>=13),!(127&t)&&(n+=7,t>>>=7),!(15&t)&&(n+=4,t>>>=4),!(3&t)&&(n+=2,t>>>=2),!(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},i.prototype.ior=function(e){return r(0===(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},i.prototype.iand=function(e){return r(0===(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},i.prototype.ixor=function(e){return r(0===(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a<t;a++)this.words[a]=67108863&~this.words[a];return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<a:this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i<r.length;i++)t=(0|n.words[i])+(0|r.words[i])+a,this.words[i]=67108863&t,a=t>>>26;for(;0!==a&&i<n.length;i++)t=(0|n.words[i])+a,this.words[i]=67108863&t,a=t>>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;i<n.length;i++)this.words[i]=n.words[i];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)i=(t=(0|n.words[o])-(0|r.words[o])+i)>>26,this.words[o]=67108863&t;for(;0!==i&&o<n.length;o++)i=(t=(0|n.words[o])+i)>>26,this.words[o]=67108863&t;if(0===i&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var f=function(e,t,n){var r,a,i,o=e.words,s=t.words,l=n.words,c=0,u=0|o[0],d=8191&u,p=u>>>13,h=0|o[1],f=8191&h,m=h>>>13,g=0|o[2],y=8191&g,b=g>>>13,v=0|o[3],M=8191&v,x=v>>>13,z=0|o[4],_=8191&z,A=z>>>13,O=0|o[5],w=8191&O,k=O>>>13,T=0|o[6],S=8191&T,C=T>>>13,E=0|o[7],q=8191&E,D=E>>>13,R=0|o[8],L=8191&R,I=R>>>13,W=0|o[9],N=8191&W,P=W>>>13,B=0|s[0],F=8191&B,j=B>>>13,U=0|s[1],V=8191&U,H=U>>>13,X=0|s[2],G=8191&X,Y=X>>>13,Z=0|s[3],$=8191&Z,J=Z>>>13,Q=0|s[4],K=8191&Q,ee=Q>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,pe=ue>>>13,he=0|s[9],fe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(c+(r=Math.imul(d,F))|0)+((8191&(a=(a=Math.imul(d,j))+Math.imul(p,F)|0))<<13)|0;c=((i=Math.imul(p,j))+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(f,F),a=(a=Math.imul(f,j))+Math.imul(m,F)|0,i=Math.imul(m,j);var ye=(c+(r=r+Math.imul(d,V)|0)|0)+((8191&(a=(a=a+Math.imul(d,H)|0)+Math.imul(p,V)|0))<<13)|0;c=((i=i+Math.imul(p,H)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,F),a=(a=Math.imul(y,j))+Math.imul(b,F)|0,i=Math.imul(b,j),r=r+Math.imul(f,V)|0,a=(a=a+Math.imul(f,H)|0)+Math.imul(m,V)|0,i=i+Math.imul(m,H)|0;var be=(c+(r=r+Math.imul(d,G)|0)|0)+((8191&(a=(a=a+Math.imul(d,Y)|0)+Math.imul(p,G)|0))<<13)|0;c=((i=i+Math.imul(p,Y)|0)+(a>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(M,F),a=(a=Math.imul(M,j))+Math.imul(x,F)|0,i=Math.imul(x,j),r=r+Math.imul(y,V)|0,a=(a=a+Math.imul(y,H)|0)+Math.imul(b,V)|0,i=i+Math.imul(b,H)|0,r=r+Math.imul(f,G)|0,a=(a=a+Math.imul(f,Y)|0)+Math.imul(m,G)|0,i=i+Math.imul(m,Y)|0;var ve=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(a=(a=a+Math.imul(d,J)|0)+Math.imul(p,$)|0))<<13)|0;c=((i=i+Math.imul(p,J)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(_,F),a=(a=Math.imul(_,j))+Math.imul(A,F)|0,i=Math.imul(A,j),r=r+Math.imul(M,V)|0,a=(a=a+Math.imul(M,H)|0)+Math.imul(x,V)|0,i=i+Math.imul(x,H)|0,r=r+Math.imul(y,G)|0,a=(a=a+Math.imul(y,Y)|0)+Math.imul(b,G)|0,i=i+Math.imul(b,Y)|0,r=r+Math.imul(f,$)|0,a=(a=a+Math.imul(f,J)|0)+Math.imul(m,$)|0,i=i+Math.imul(m,J)|0;var Me=(c+(r=r+Math.imul(d,K)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(p,K)|0))<<13)|0;c=((i=i+Math.imul(p,ee)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(w,F),a=(a=Math.imul(w,j))+Math.imul(k,F)|0,i=Math.imul(k,j),r=r+Math.imul(_,V)|0,a=(a=a+Math.imul(_,H)|0)+Math.imul(A,V)|0,i=i+Math.imul(A,H)|0,r=r+Math.imul(M,G)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(x,G)|0,i=i+Math.imul(x,Y)|0,r=r+Math.imul(y,$)|0,a=(a=a+Math.imul(y,J)|0)+Math.imul(b,$)|0,i=i+Math.imul(b,J)|0,r=r+Math.imul(f,K)|0,a=(a=a+Math.imul(f,ee)|0)+Math.imul(m,K)|0,i=i+Math.imul(m,ee)|0;var xe=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(a=(a=a+Math.imul(d,re)|0)+Math.imul(p,ne)|0))<<13)|0;c=((i=i+Math.imul(p,re)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(S,F),a=(a=Math.imul(S,j))+Math.imul(C,F)|0,i=Math.imul(C,j),r=r+Math.imul(w,V)|0,a=(a=a+Math.imul(w,H)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,H)|0,r=r+Math.imul(_,G)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(A,G)|0,i=i+Math.imul(A,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,J)|0)+Math.imul(x,$)|0,i=i+Math.imul(x,J)|0,r=r+Math.imul(y,K)|0,a=(a=a+Math.imul(y,ee)|0)+Math.imul(b,K)|0,i=i+Math.imul(b,ee)|0,r=r+Math.imul(f,ne)|0,a=(a=a+Math.imul(f,re)|0)+Math.imul(m,ne)|0,i=i+Math.imul(m,re)|0;var ze=(c+(r=r+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(p,ie)|0))<<13)|0;c=((i=i+Math.imul(p,oe)|0)+(a>>>13)|0)+(ze>>>26)|0,ze&=67108863,r=Math.imul(q,F),a=(a=Math.imul(q,j))+Math.imul(D,F)|0,i=Math.imul(D,j),r=r+Math.imul(S,V)|0,a=(a=a+Math.imul(S,H)|0)+Math.imul(C,V)|0,i=i+Math.imul(C,H)|0,r=r+Math.imul(w,G)|0,a=(a=a+Math.imul(w,Y)|0)+Math.imul(k,G)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,J)|0)+Math.imul(A,$)|0,i=i+Math.imul(A,J)|0,r=r+Math.imul(M,K)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(x,K)|0,i=i+Math.imul(x,ee)|0,r=r+Math.imul(y,ne)|0,a=(a=a+Math.imul(y,re)|0)+Math.imul(b,ne)|0,i=i+Math.imul(b,re)|0,r=r+Math.imul(f,ie)|0,a=(a=a+Math.imul(f,oe)|0)+Math.imul(m,ie)|0,i=i+Math.imul(m,oe)|0;var _e=(c+(r=r+Math.imul(d,le)|0)|0)+((8191&(a=(a=a+Math.imul(d,ce)|0)+Math.imul(p,le)|0))<<13)|0;c=((i=i+Math.imul(p,ce)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(L,F),a=(a=Math.imul(L,j))+Math.imul(I,F)|0,i=Math.imul(I,j),r=r+Math.imul(q,V)|0,a=(a=a+Math.imul(q,H)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,H)|0,r=r+Math.imul(S,G)|0,a=(a=a+Math.imul(S,Y)|0)+Math.imul(C,G)|0,i=i+Math.imul(C,Y)|0,r=r+Math.imul(w,$)|0,a=(a=a+Math.imul(w,J)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,J)|0,r=r+Math.imul(_,K)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(A,K)|0,i=i+Math.imul(A,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(x,ne)|0,i=i+Math.imul(x,re)|0,r=r+Math.imul(y,ie)|0,a=(a=a+Math.imul(y,oe)|0)+Math.imul(b,ie)|0,i=i+Math.imul(b,oe)|0,r=r+Math.imul(f,le)|0,a=(a=a+Math.imul(f,ce)|0)+Math.imul(m,le)|0,i=i+Math.imul(m,ce)|0;var Ae=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,pe)|0)+Math.imul(p,de)|0))<<13)|0;c=((i=i+Math.imul(p,pe)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,F),a=(a=Math.imul(N,j))+Math.imul(P,F)|0,i=Math.imul(P,j),r=r+Math.imul(L,V)|0,a=(a=a+Math.imul(L,H)|0)+Math.imul(I,V)|0,i=i+Math.imul(I,H)|0,r=r+Math.imul(q,G)|0,a=(a=a+Math.imul(q,Y)|0)+Math.imul(D,G)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(S,$)|0,a=(a=a+Math.imul(S,J)|0)+Math.imul(C,$)|0,i=i+Math.imul(C,J)|0,r=r+Math.imul(w,K)|0,a=(a=a+Math.imul(w,ee)|0)+Math.imul(k,K)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(A,ne)|0,i=i+Math.imul(A,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(x,ie)|0,i=i+Math.imul(x,oe)|0,r=r+Math.imul(y,le)|0,a=(a=a+Math.imul(y,ce)|0)+Math.imul(b,le)|0,i=i+Math.imul(b,ce)|0,r=r+Math.imul(f,de)|0,a=(a=a+Math.imul(f,pe)|0)+Math.imul(m,de)|0,i=i+Math.imul(m,pe)|0;var Oe=(c+(r=r+Math.imul(d,fe)|0)|0)+((8191&(a=(a=a+Math.imul(d,me)|0)+Math.imul(p,fe)|0))<<13)|0;c=((i=i+Math.imul(p,me)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(N,V),a=(a=Math.imul(N,H))+Math.imul(P,V)|0,i=Math.imul(P,H),r=r+Math.imul(L,G)|0,a=(a=a+Math.imul(L,Y)|0)+Math.imul(I,G)|0,i=i+Math.imul(I,Y)|0,r=r+Math.imul(q,$)|0,a=(a=a+Math.imul(q,J)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,J)|0,r=r+Math.imul(S,K)|0,a=(a=a+Math.imul(S,ee)|0)+Math.imul(C,K)|0,i=i+Math.imul(C,ee)|0,r=r+Math.imul(w,ne)|0,a=(a=a+Math.imul(w,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(A,ie)|0,i=i+Math.imul(A,oe)|0,r=r+Math.imul(M,le)|0,a=(a=a+Math.imul(M,ce)|0)+Math.imul(x,le)|0,i=i+Math.imul(x,ce)|0,r=r+Math.imul(y,de)|0,a=(a=a+Math.imul(y,pe)|0)+Math.imul(b,de)|0,i=i+Math.imul(b,pe)|0;var we=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(a=(a=a+Math.imul(f,me)|0)+Math.imul(m,fe)|0))<<13)|0;c=((i=i+Math.imul(m,me)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(N,G),a=(a=Math.imul(N,Y))+Math.imul(P,G)|0,i=Math.imul(P,Y),r=r+Math.imul(L,$)|0,a=(a=a+Math.imul(L,J)|0)+Math.imul(I,$)|0,i=i+Math.imul(I,J)|0,r=r+Math.imul(q,K)|0,a=(a=a+Math.imul(q,ee)|0)+Math.imul(D,K)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(S,ne)|0,a=(a=a+Math.imul(S,re)|0)+Math.imul(C,ne)|0,i=i+Math.imul(C,re)|0,r=r+Math.imul(w,ie)|0,a=(a=a+Math.imul(w,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(_,le)|0,a=(a=a+Math.imul(_,ce)|0)+Math.imul(A,le)|0,i=i+Math.imul(A,ce)|0,r=r+Math.imul(M,de)|0,a=(a=a+Math.imul(M,pe)|0)+Math.imul(x,de)|0,i=i+Math.imul(x,pe)|0;var ke=(c+(r=r+Math.imul(y,fe)|0)|0)+((8191&(a=(a=a+Math.imul(y,me)|0)+Math.imul(b,fe)|0))<<13)|0;c=((i=i+Math.imul(b,me)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(N,$),a=(a=Math.imul(N,J))+Math.imul(P,$)|0,i=Math.imul(P,J),r=r+Math.imul(L,K)|0,a=(a=a+Math.imul(L,ee)|0)+Math.imul(I,K)|0,i=i+Math.imul(I,ee)|0,r=r+Math.imul(q,ne)|0,a=(a=a+Math.imul(q,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(S,ie)|0,a=(a=a+Math.imul(S,oe)|0)+Math.imul(C,ie)|0,i=i+Math.imul(C,oe)|0,r=r+Math.imul(w,le)|0,a=(a=a+Math.imul(w,ce)|0)+Math.imul(k,le)|0,i=i+Math.imul(k,ce)|0,r=r+Math.imul(_,de)|0,a=(a=a+Math.imul(_,pe)|0)+Math.imul(A,de)|0,i=i+Math.imul(A,pe)|0;var Te=(c+(r=r+Math.imul(M,fe)|0)|0)+((8191&(a=(a=a+Math.imul(M,me)|0)+Math.imul(x,fe)|0))<<13)|0;c=((i=i+Math.imul(x,me)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(N,K),a=(a=Math.imul(N,ee))+Math.imul(P,K)|0,i=Math.imul(P,ee),r=r+Math.imul(L,ne)|0,a=(a=a+Math.imul(L,re)|0)+Math.imul(I,ne)|0,i=i+Math.imul(I,re)|0,r=r+Math.imul(q,ie)|0,a=(a=a+Math.imul(q,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(S,le)|0,a=(a=a+Math.imul(S,ce)|0)+Math.imul(C,le)|0,i=i+Math.imul(C,ce)|0,r=r+Math.imul(w,de)|0,a=(a=a+Math.imul(w,pe)|0)+Math.imul(k,de)|0,i=i+Math.imul(k,pe)|0;var Se=(c+(r=r+Math.imul(_,fe)|0)|0)+((8191&(a=(a=a+Math.imul(_,me)|0)+Math.imul(A,fe)|0))<<13)|0;c=((i=i+Math.imul(A,me)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(N,ne),a=(a=Math.imul(N,re))+Math.imul(P,ne)|0,i=Math.imul(P,re),r=r+Math.imul(L,ie)|0,a=(a=a+Math.imul(L,oe)|0)+Math.imul(I,ie)|0,i=i+Math.imul(I,oe)|0,r=r+Math.imul(q,le)|0,a=(a=a+Math.imul(q,ce)|0)+Math.imul(D,le)|0,i=i+Math.imul(D,ce)|0,r=r+Math.imul(S,de)|0,a=(a=a+Math.imul(S,pe)|0)+Math.imul(C,de)|0,i=i+Math.imul(C,pe)|0;var Ce=(c+(r=r+Math.imul(w,fe)|0)|0)+((8191&(a=(a=a+Math.imul(w,me)|0)+Math.imul(k,fe)|0))<<13)|0;c=((i=i+Math.imul(k,me)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(N,ie),a=(a=Math.imul(N,oe))+Math.imul(P,ie)|0,i=Math.imul(P,oe),r=r+Math.imul(L,le)|0,a=(a=a+Math.imul(L,ce)|0)+Math.imul(I,le)|0,i=i+Math.imul(I,ce)|0,r=r+Math.imul(q,de)|0,a=(a=a+Math.imul(q,pe)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,pe)|0;var Ee=(c+(r=r+Math.imul(S,fe)|0)|0)+((8191&(a=(a=a+Math.imul(S,me)|0)+Math.imul(C,fe)|0))<<13)|0;c=((i=i+Math.imul(C,me)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(N,le),a=(a=Math.imul(N,ce))+Math.imul(P,le)|0,i=Math.imul(P,ce),r=r+Math.imul(L,de)|0,a=(a=a+Math.imul(L,pe)|0)+Math.imul(I,de)|0,i=i+Math.imul(I,pe)|0;var qe=(c+(r=r+Math.imul(q,fe)|0)|0)+((8191&(a=(a=a+Math.imul(q,me)|0)+Math.imul(D,fe)|0))<<13)|0;c=((i=i+Math.imul(D,me)|0)+(a>>>13)|0)+(qe>>>26)|0,qe&=67108863,r=Math.imul(N,de),a=(a=Math.imul(N,pe))+Math.imul(P,de)|0,i=Math.imul(P,pe);var De=(c+(r=r+Math.imul(L,fe)|0)|0)+((8191&(a=(a=a+Math.imul(L,me)|0)+Math.imul(I,fe)|0))<<13)|0;c=((i=i+Math.imul(I,me)|0)+(a>>>13)|0)+(De>>>26)|0,De&=67108863;var Re=(c+(r=Math.imul(N,fe))|0)+((8191&(a=(a=Math.imul(N,me))+Math.imul(P,fe)|0))<<13)|0;return c=((i=Math.imul(P,me))+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,l[0]=ge,l[1]=ye,l[2]=be,l[3]=ve,l[4]=Me,l[5]=xe,l[6]=ze,l[7]=_e,l[8]=Ae,l[9]=Oe,l[10]=we,l[11]=ke,l[12]=Te,l[13]=Se,l[14]=Ce,l[15]=Ee,l[16]=qe,l[17]=De,l[18]=Re,0!==c&&(l[19]=c,n.length++),n};function m(e,t,n){return(new g).mulp(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(f=h),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?f(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i<n.length-1;i++){var o=a;a=0;for(var s=67108863&r,l=Math.min(i,t.length-1),c=Math.max(0,i-e.length+1);c<=l;c++){var u=i-c,d=(0|e.words[u])*(0|t.words[c]),p=67108863&d;s=67108863&(p=p+s|0),a+=(o=(o=o+(d/67108864|0)|0)+(p>>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):m(this,e,t),n},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},g.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,a=0;a<t;a++)r|=(1&e)<<t-a-1,e>>=1;return r},g.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o<i;o++)r[o]=t[e[o]],a[o]=n[e[o]]},g.prototype.transform=function(e,t,n,r,a,i){this.permute(i,e,t,n,r,a);for(var o=1;o<a;o<<=1)for(var s=o<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<a;u+=s)for(var d=l,p=c,h=0;h<o;h++){var f=n[u+h],m=r[u+h],g=n[u+h+o],y=r[u+h+o],b=d*g-p*y;y=d*y+p*g,g=b,n[u+h]=f+g,r[u+h]=m+y,n[u+h+o]=f-g,r[u+h+o]=m-y,h!==s&&(b=l*d-c*p,p=l*p+c*d,d=b)}},g.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,a=0;for(n=n/2|0;n;n>>>=1)a++;return 1<<a+1+r},g.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var a=e[r];e[r]=e[n-r-1],e[n-r-1]=a,a=t[r],t[r]=-t[n-r-1],t[n-r-1]=-a}},g.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var a=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&a,n=a<67108864?0:a/67108864|0}return e},g.prototype.convert13b=function(e,t,n,a){for(var i=0,o=0;o<t;o++)i+=0|e[o],n[2*o]=8191&i,i>>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o<a;++o)n[o]=0;r(0===i),r(!(-8192&i))},g.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},g.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),a=this.makeRBT(r),i=this.stub(r),o=new Array(r),s=new Array(r),l=new Array(r),c=new Array(r),u=new Array(r),d=new Array(r),p=n.words;p.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,c,r),this.transform(o,i,s,l,r,a),this.transform(c,i,u,d,r,a);for(var h=0;h<r;h++){var f=s[h]*u[h]-l[h]*d[h];l[h]=s[h]*d[h]+l[h]*u[h],s[h]=f}return this.conjugate(s,l,r),this.transform(s,l,p,i,r,a),this.conjugate(p,i,r),this.normalize13b(p,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),m(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var a=(0|this.words[n])*e,i=(67108863&a)+(67108863&t);t>>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this.length=0===e?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,a=n%26;t[n]=(e.words[r]&1<<a)>>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var a=n.sqr();r<t.length;r++,a=a.sqr())0!==t[r]&&(n=n.mul(a));return n},i.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&i,l=(0|this.words[t])-s<<n;this.words[t]=l|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t<a;t++)this.words[t]=0;this.length+=a}return this.strip()},i.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,n){var a;r("number"==typeof e&&e>=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<<i,l=n;if(a-=o,a=Math.max(0,a),l){for(var c=0;c<o;c++)l.words[c]=this.words[c];l.length=o}if(0!==o)if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=a);c--){var d=0|this.words[c];this.words[c]=u<<26-i|d>>>i,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<<t;return!(this.length<=n)&&!!(this.words[n]&a)},i.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<<t;this.words[this.length-1]&=a}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,n){var a,i=e.length+n;this._expand(i);var o,s=0;for(a=0;a<e.length;a++){o=(0|this.words[a+n])+s;var l=(0|e.words[a])*t;s=((o-=67108863&l)>>26)-(l/67108864|0),this.words[a+n]=67108863&o}for(;a<this.length-n;a++)s=(o=(0|this.words[a+n])+s)>>26,this.words[a+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a<this.length;a++)s=(o=-(0|this.words[a])+s)>>26,this.words[a]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!==(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,l=r.length-a.length;if("mod"!==t){(s=new i(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=r.clone()._ishlnsubmul(a,1,l);0===u.negative&&(r=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var p=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(p=Math.min(p/o|0,67108863),r._ishlnsubmul(a,p,d);0!==r.negative;)p--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=p)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),l=new i(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var p=0,h=1;0===(t.words[0]&h)&&p<26;++p,h<<=1);if(p>0)for(t.iushrn(p);p-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(u),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var f=0,m=1;0===(n.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(n.iushrn(f);f-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(l)):(n.isub(t),s.isub(a),l.isub(o))}return{a:s,b:l,gcd:n.iushln(c)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t,n=this,a=e.clone();n=0!==n.negative?n.umod(e):n.clone();for(var o=new i(1),s=new i(0),l=a.clone();n.cmpn(1)>0&&a.cmpn(1)>0;){for(var c=0,u=1;0===(n.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(n.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);for(var d=0,p=1;0===(a.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(a.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);n.cmp(a)>=0?(n.isub(a),o.isub(s)):(a.isub(n),s.isub(o))}return(t=0===n.cmpn(1)?o:s).cmpn(0)<0&&t.iadd(e),t},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var i=a,o=n;0!==i&&o<this.length;o++){var s=0|this.words[o];i=(s+=i)>>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:a<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){r<a?t=-1:r>a&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function z(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},a(v,b),v.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a<r;a++)t.words[a]=e.words[a];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=i&n,a=10;a<e.length;a++){var o=0|e.words[a];e.words[a-10]=(o&n)<<4|i>>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},a(M,b),a(x,b),a(z,b),z.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,a=67108863&r;r>>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new M;else if("p192"===e)t=new x;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new z}return y[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,a),p=this.pow(e,a.addn(1).iushrn(1)),h=this.pow(e,a),f=o;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<f);var y=this.pow(d,new i(1).iushln(f-g-1));p=p.redMul(y),d=y.redSqr(),h=h.redMul(d),f=g}return p},_.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},_.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var a=n[0],o=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],u=l-1;u>=0;u--){var d=c>>u&1;(a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o)?(o<<=1,o|=d,(4===++s||0===r&&0===u)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}l=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new A(e)},a(A,_),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(e=n.nmd(e),this)},6204:function(e){e.exports=function(e){var t,n,r,a=e.length,i=0;for(t=0;t<a;++t)i+=e[t].length;var o=new Array(i),s=0;for(t=0;t<a;++t){var l=e[t],c=l.length;for(n=0;n<c;++n){var u=o[s++]=new Array(c-1),d=0;for(r=0;r<c;++r)r!==n&&(u[d++]=l[r]);if(1&n){var p=u[1];u[1]=u[0],u[0]=p}}}return o}},6867:function(e,t,n){e.exports=function(e,t,n){switch(arguments.length){case 1:return function(e){return r=[],c(e,e,u,!0),r}(e);case 2:return"function"==typeof t?c(e,e,t,!0):function(e,t){return r=[],c(e,t,u,!1),r}(e,t);case 3:return c(e,t,n,!1);default:throw new Error("box-intersect: Invalid arguments")}};var r,a=n(1888),i=n(855),o=n(7150);function s(e,t){for(var n=0;n<e;++n)if(!(t[n]<=t[n+e]))return!0;return!1}function l(e,t,n,r){for(var a=0,i=0,o=0,l=e.length;o<l;++o){var c=e[o];if(!s(t,c)){for(var u=0;u<2*t;++u)n[a++]=c[u];r[i++]=o}}return i}function c(e,t,n,r){var s=e.length,c=t.length;if(!(s<=0||c<=0)){var u=e[0].length>>>1;if(!(u<=0)){var d,p=a.mallocDouble(2*u*s),h=a.mallocInt32(s);if((s=l(e,u,p,h))>0){if(1===u&&r)i.init(s),d=i.sweepComplete(u,n,0,s,p,h,0,s,p,h);else{var f=a.mallocDouble(2*u*c),m=a.mallocInt32(c);(c=l(t,u,f,m))>0&&(i.init(s+c),d=1===u?i.sweepBipartite(u,n,0,s,p,h,0,c,f,m):o(u,n,r,s,p,h,c,f,m),a.free(f),a.free(m))}a.free(p),a.free(h)}return d}}}function u(e,t){r.push([e,t])}},2455:function(e,t){function n(e){return e?function(e,t,n,r,a,i,o,s,l,c,u){return a-r>l-s?function(e,t,n,r,a,i,o,s,l,c,u){for(var d=2*e,p=r,h=d*r;p<a;++p,h+=d){var f=i[t+h],m=i[t+h+e],g=o[p];e:for(var y=s,b=d*s;y<l;++y,b+=d){var v=c[t+b],M=c[t+b+e],x=u[y];if(!(M<f||m<v)){for(var z=t+1;z<e;++z){var _=i[z+h],A=i[z+e+h],O=c[z+b],w=c[z+e+b];if(A<O||w<_)continue e}var k=n(g,x);if(void 0!==k)return k}}}}(e,t,n,r,a,i,o,s,l,c,u):function(e,t,n,r,a,i,o,s,l,c,u){for(var d=2*e,p=s,h=d*s;p<l;++p,h+=d){var f=c[t+h],m=c[t+h+e],g=u[p];e:for(var y=r,b=d*r;y<a;++y,b+=d){var v=i[t+b],M=i[t+b+e],x=o[y];if(!(m<v||M<f)){for(var z=t+1;z<e;++z){var _=i[z+b],A=i[z+e+b],O=c[z+h],w=c[z+e+h];if(A<O||w<_)continue e}var k=n(x,g);if(void 0!==k)return k}}}}(e,t,n,r,a,i,o,s,l,c,u)}:function(e,t,n,r,a,i,o,s,l,c,u,d){return i-a>c-l?r?function(e,t,n,r,a,i,o,s,l,c,u){for(var d=2*e,p=r,h=d*r;p<a;++p,h+=d){var f=i[t+h],m=i[t+h+e],g=o[p];e:for(var y=s,b=d*s;y<l;++y,b+=d){var v=c[t+b],M=u[y];if(!(v<=f||m<v)){for(var x=t+1;x<e;++x){var z=i[x+h],_=i[x+e+h],A=c[x+b],O=c[x+e+b];if(_<A||O<z)continue e}var w=n(M,g);if(void 0!==w)return w}}}}(e,t,n,a,i,o,s,l,c,u,d):function(e,t,n,r,a,i,o,s,l,c,u){for(var d=2*e,p=r,h=d*r;p<a;++p,h+=d){var f=i[t+h],m=i[t+h+e],g=o[p];e:for(var y=s,b=d*s;y<l;++y,b+=d){var v=c[t+b],M=u[y];if(!(v<f||m<v)){for(var x=t+1;x<e;++x){var z=i[x+h],_=i[x+e+h],A=c[x+b],O=c[x+e+b];if(_<A||O<z)continue e}var w=n(g,M);if(void 0!==w)return w}}}}(e,t,n,a,i,o,s,l,c,u,d):r?function(e,t,n,r,a,i,o,s,l,c,u){for(var d=2*e,p=s,h=d*s;p<l;++p,h+=d){var f=c[t+h],m=u[p];e:for(var g=r,y=d*r;g<a;++g,y+=d){var b=i[t+y],v=i[t+y+e],M=o[g];if(!(f<=b||v<f)){for(var x=t+1;x<e;++x){var z=i[x+y],_=i[x+e+y],A=c[x+h],O=c[x+e+h];if(_<A||O<z)continue e}var w=n(m,M);if(void 0!==w)return w}}}}(e,t,n,a,i,o,s,l,c,u,d):function(e,t,n,r,a,i,o,s,l,c,u){for(var d=2*e,p=s,h=d*s;p<l;++p,h+=d){var f=c[t+h],m=u[p];e:for(var g=r,y=d*r;g<a;++g,y+=d){var b=i[t+y],v=i[t+y+e],M=o[g];if(!(f<b||v<f)){for(var x=t+1;x<e;++x){var z=i[x+y],_=i[x+e+y],A=c[x+h],O=c[x+e+h];if(_<A||O<z)continue e}var w=n(M,m);if(void 0!==w)return w}}}}(e,t,n,a,i,o,s,l,c,u,d)}}t.partial=n(!1),t.full=n(!0)},7150:function(e,t,n){e.exports=function(e,t,n,i,u,k,T,S,C){!function(e,t){var n=8*a.log2(t+1)*(e+1)|0,i=a.nextPow2(M*n);z.length<i&&(r.free(z),z=r.mallocInt32(i));var o=a.nextPow2(x*n);_.length<o&&(r.free(_),_=r.mallocDouble(o))}(e,i+T);var E,q=0,D=2*e;for(A(q++,0,0,i,0,T,n?16:0,-1/0,1/0),n||A(q++,0,0,T,0,i,1,-1/0,1/0);q>0;){var R=(q-=1)*M,L=z[R],I=z[R+1],W=z[R+2],N=z[R+3],P=z[R+4],B=z[R+5],F=q*x,j=_[F],U=_[F+1],V=1&B,H=!!(16&B),X=u,G=k,Y=S,Z=C;if(V&&(X=S,G=C,Y=u,Z=k),!(2&B&&(W=g(e,L,I,W,X,G,U),I>=W)||4&B&&(I=y(e,L,I,W,X,G,j),I>=W))){var $=W-I,J=P-N;if(H){if(e*$*($+J)<h){if(void 0!==(E=l.scanComplete(e,L,t,I,W,X,G,N,P,Y,Z)))return E;continue}}else{if(e*Math.min($,J)<d){if(void 0!==(E=o(e,L,t,V,I,W,X,G,N,P,Y,Z)))return E;continue}if(e*$*J<p){if(void 0!==(E=l.scanBipartite(e,L,t,V,I,W,X,G,N,P,Y,Z)))return E;continue}}var Q=f(e,L,I,W,X,G,j,U);if(I<Q)if(e*(Q-I)<d){if(void 0!==(E=s(e,L+1,t,I,Q,X,G,N,P,Y,Z)))return E}else if(L===e-2){if(void 0!==(E=V?l.sweepBipartite(e,t,N,P,Y,Z,I,Q,X,G):l.sweepBipartite(e,t,I,Q,X,G,N,P,Y,Z)))return E}else A(q++,L+1,I,Q,N,P,V,-1/0,1/0),A(q++,L+1,N,P,I,Q,1^V,-1/0,1/0);if(Q<W){var K=c(e,L,N,P,Y,Z),ee=Y[D*K+L],te=m(e,L,K,P,Y,Z,ee);if(te<P&&A(q++,L,Q,W,te,P,(4|V)+(H?16:0),ee,U),N<K&&A(q++,L,Q,W,N,K,(2|V)+(H?16:0),j,ee),K+1===te){if(void 0!==(E=H?w(e,L,t,Q,W,X,G,K,Y,Z[K]):O(e,L,t,V,Q,W,X,G,K,Y,Z[K])))return E}else if(K<te){var ne;if(H){if(Q<(ne=b(e,L,Q,W,X,G,ee))){var re=m(e,L,Q,ne,X,G,ee);if(L===e-2){if(Q<re&&void 0!==(E=l.sweepComplete(e,t,Q,re,X,G,K,te,Y,Z))||re<ne&&void 0!==(E=l.sweepBipartite(e,t,re,ne,X,G,K,te,Y,Z)))return E}else Q<re&&A(q++,L+1,Q,re,K,te,16,-1/0,1/0),re<ne&&(A(q++,L+1,re,ne,K,te,0,-1/0,1/0),A(q++,L+1,K,te,re,ne,1,-1/0,1/0))}}else Q<(ne=V?v(e,L,Q,W,X,G,ee):b(e,L,Q,W,X,G,ee))&&(L===e-2?E=V?l.sweepBipartite(e,t,K,te,Y,Z,Q,ne,X,G):l.sweepBipartite(e,t,Q,ne,X,G,K,te,Y,Z):(A(q++,L+1,Q,ne,K,te,V,-1/0,1/0),A(q++,L+1,K,te,Q,ne,1^V,-1/0,1/0)))}}}}};var r=n(1888),a=n(8828),i=n(2455),o=i.partial,s=i.full,l=n(855),c=n(3545),u=n(8105),d=128,p=1<<22,h=1<<22,f=u("!(lo>=p0)&&!(p1>=hi)"),m=u("lo===p0"),g=u("lo<p0"),y=u("hi<=p0"),b=u("lo<=p0&&p0<=hi"),v=u("lo<p0&&p0<=hi"),M=6,x=2,z=r.mallocInt32(1024),_=r.mallocDouble(1024);function A(e,t,n,r,a,i,o,s,l){var c=M*e;z[c]=t,z[c+1]=n,z[c+2]=r,z[c+3]=a,z[c+4]=i,z[c+5]=o;var u=x*e;_[u]=s,_[u+1]=l}function O(e,t,n,r,a,i,o,s,l,c,u){var d=2*e,p=l*d,h=c[p+t];e:for(var f=a,m=a*d;f<i;++f,m+=d){var g=o[m+t],y=o[m+t+e];if(!(h<g||y<h||r&&h===g)){for(var b=s[f],v=t+1;v<e;++v){g=o[m+v],y=o[m+v+e];var M=c[p+v],x=c[p+v+e];if(y<M||x<g)continue e}var z;if(void 0!==(z=r?n(u,b):n(b,u)))return z}}}function w(e,t,n,r,a,i,o,s,l,c){var u=2*e,d=s*u,p=l[d+t];e:for(var h=r,f=r*u;h<a;++h,f+=u){var m=o[h];if(m!==c){var g=i[f+t],y=i[f+t+e];if(!(p<g||y<p)){for(var b=t+1;b<e;++b){g=i[f+b],y=i[f+b+e];var v=l[d+b],M=l[d+b+e];if(y<v||M<g)continue e}var x=n(m,c);if(void 0!==x)return x}}}}},3545:function(e,t,n){e.exports=function(e,t,n,o,s,l){if(o<=n+1)return n;for(var c=n,u=o,d=o+n>>>1,p=2*e,h=d,f=s[p*d+t];c<u;){if(u-c<a){i(e,t,c,u,s,l),f=s[p*d+t];break}var m=u-c,g=Math.random()*m+c|0,y=s[p*g+t],b=Math.random()*m+c|0,v=s[p*b+t],M=Math.random()*m+c|0,x=s[p*M+t];y<=v?x>=v?(h=b,f=v):y>=x?(h=g,f=y):(h=M,f=x):v>=x?(h=b,f=v):x>=y?(h=g,f=y):(h=M,f=x);for(var z=p*(u-1),_=p*h,A=0;A<p;++A,++z,++_){var O=s[z];s[z]=s[_],s[_]=O}var w=l[u-1];l[u-1]=l[h],l[h]=w;for(z=p*(u-1),_=p*(h=r(e,t,c,u-1,s,l,f)),A=0;A<p;++A,++z,++_){O=s[z];s[z]=s[_],s[_]=O}w=l[u-1];if(l[u-1]=l[h],l[h]=w,d<h){for(u=h-1;c<u&&s[p*(u-1)+t]===f;)u-=1;u+=1}else{if(!(h<d))break;for(c=h+1;c<u&&s[p*c+t]===f;)c+=1}}return r(e,t,n,d,s,l,s[p*d+t])};var r=n(8105)("lo<p0"),a=8;function i(e,t,n,r,a,i){for(var o=2*e,s=o*(n+1)+t,l=n+1;l<r;++l,s+=o)for(var c=a[s],u=l,d=o*(l-1);u>n&&a[d+t]>c;--u,d-=o){for(var p=d,h=d+o,f=0;f<o;++f,++p,++h){var m=a[p];a[p]=a[h],a[h]=m}var g=i[u];i[u]=i[u-1],i[u-1]=g}}},8105:function(e){e.exports=function(e){return t[e]};var t={"lo===p0":function(e,t,n,r,a,i,o){for(var s=2*e,l=s*n,c=l,u=n,d=t,p=n;r>p;++p,l+=s){if(a[l+d]===o)if(u===p)u+=1,c+=s;else{for(var h=0;s>h;++h){var f=a[l+h];a[l+h]=a[c],a[c++]=f}var m=i[p];i[p]=i[u],i[u++]=m}}return u},"lo<p0":function(e,t,n,r,a,i,o){for(var s=2*e,l=s*n,c=l,u=n,d=t,p=n;r>p;++p,l+=s){if(a[l+d]<o)if(u===p)u+=1,c+=s;else{for(var h=0;s>h;++h){var f=a[l+h];a[l+h]=a[c],a[c++]=f}var m=i[p];i[p]=i[u],i[u++]=m}}return u},"lo<=p0":function(e,t,n,r,a,i,o){for(var s=2*e,l=s*n,c=l,u=n,d=e+t,p=n;r>p;++p,l+=s){if(a[l+d]<=o)if(u===p)u+=1,c+=s;else{for(var h=0;s>h;++h){var f=a[l+h];a[l+h]=a[c],a[c++]=f}var m=i[p];i[p]=i[u],i[u++]=m}}return u},"hi<=p0":function(e,t,n,r,a,i,o){for(var s=2*e,l=s*n,c=l,u=n,d=e+t,p=n;r>p;++p,l+=s){if(a[l+d]<=o)if(u===p)u+=1,c+=s;else{for(var h=0;s>h;++h){var f=a[l+h];a[l+h]=a[c],a[c++]=f}var m=i[p];i[p]=i[u],i[u++]=m}}return u},"lo<p0&&p0<=hi":function(e,t,n,r,a,i,o){for(var s=2*e,l=s*n,c=l,u=n,d=t,p=e+t,h=n;r>h;++h,l+=s){var f=a[l+d],m=a[l+p];if(f<o&&o<=m)if(u===h)u+=1,c+=s;else{for(var g=0;s>g;++g){var y=a[l+g];a[l+g]=a[c],a[c++]=y}var b=i[h];i[h]=i[u],i[u++]=b}}return u},"lo<=p0&&p0<=hi":function(e,t,n,r,a,i,o){for(var s=2*e,l=s*n,c=l,u=n,d=t,p=e+t,h=n;r>h;++h,l+=s){var f=a[l+d],m=a[l+p];if(f<=o&&o<=m)if(u===h)u+=1,c+=s;else{for(var g=0;s>g;++g){var y=a[l+g];a[l+g]=a[c],a[c++]=y}var b=i[h];i[h]=i[u],i[u++]=b}}return u},"!(lo>=p0)&&!(p1>=hi)":function(e,t,n,r,a,i,o,s){for(var l=2*e,c=l*n,u=c,d=n,p=t,h=e+t,f=n;r>f;++f,c+=l){var m=a[c+p],g=a[c+h];if(!(m>=o||s>=g))if(d===f)d+=1,u+=l;else{for(var y=0;l>y;++y){var b=a[c+y];a[c+y]=a[u],a[u++]=b}var v=i[f];i[f]=i[d],i[d++]=v}}return d}}},4192:function(e){e.exports=function(e,r){r<=4*t?n(0,r-1,e):c(0,r-1,e)};var t=32;function n(e,t,n){for(var r=2*(e+1),a=e+1;a<=t;++a){for(var i=n[r++],o=n[r++],s=a,l=r-2;s-- >e;){var c=n[l-2],u=n[l-1];if(c<i)break;if(c===i&&u<o)break;n[l]=c,n[l+1]=u,l-=2}n[l]=i,n[l+1]=o}}function r(e,t,n){t*=2;var r=n[e*=2],a=n[e+1];n[e]=n[t],n[e+1]=n[t+1],n[t]=r,n[t+1]=a}function a(e,t,n){t*=2,n[e*=2]=n[t],n[e+1]=n[t+1]}function i(e,t,n,r){t*=2,n*=2;var a=r[e*=2],i=r[e+1];r[e]=r[t],r[e+1]=r[t+1],r[t]=r[n],r[t+1]=r[n+1],r[n]=a,r[n+1]=i}function o(e,t,n,r,a){t*=2,a[e*=2]=a[t],a[t]=n,a[e+1]=a[t+1],a[t+1]=r}function s(e,t,n){t*=2;var r=n[e*=2],a=n[t];return!(r<a)&&(r!==a||n[e+1]>n[t+1])}function l(e,t,n,r){var a=r[e*=2];return a<t||a===t&&r[e+1]<n}function c(e,u,d){var p=(u-e+1)/6|0,h=e+p,f=u-p,m=e+u>>1,g=m-p,y=m+p,b=h,v=g,M=m,x=y,z=f,_=e+1,A=u-1,O=0;s(b,v,d)&&(O=b,b=v,v=O),s(x,z,d)&&(O=x,x=z,z=O),s(b,M,d)&&(O=b,b=M,M=O),s(v,M,d)&&(O=v,v=M,M=O),s(b,x,d)&&(O=b,b=x,x=O),s(M,x,d)&&(O=M,M=x,x=O),s(v,z,d)&&(O=v,v=z,z=O),s(v,M,d)&&(O=v,v=M,M=O),s(x,z,d)&&(O=x,x=z,z=O);for(var w=d[2*v],k=d[2*v+1],T=d[2*x],S=d[2*x+1],C=2*b,E=2*M,q=2*z,D=2*h,R=2*m,L=2*f,I=0;I<2;++I){var W=d[C+I],N=d[E+I],P=d[q+I];d[D+I]=W,d[R+I]=N,d[L+I]=P}a(g,e,d),a(y,u,d);for(var B=_;B<=A;++B)if(l(B,w,k,d))B!==_&&r(B,_,d),++_;else if(!l(B,T,S,d))for(;;){if(l(A,T,S,d)){l(A,w,k,d)?(i(B,_,A,d),++_,--A):(r(B,A,d),--A);break}if(--A<B)break;continue}o(e,_-1,w,k,d),o(u,A+1,T,S,d),_-2-e<=t?n(e,_-2,d):c(e,_-2,d),u-(A+2)<=t?n(A+2,u,d):c(A+2,u,d),A-_<=t?n(_,A,d):c(_,A,d)}},855:function(e,t,n){e.exports={init:function(e){var t=a.nextPow2(e);l.length<t&&(r.free(l),l=r.mallocInt32(t)),c.length<t&&(r.free(c),c=r.mallocInt32(t)),u.length<t&&(r.free(u),u=r.mallocInt32(t)),d.length<t&&(r.free(d),d=r.mallocInt32(t)),p.length<t&&(r.free(p),p=r.mallocInt32(t)),h.length<t&&(r.free(h),h=r.mallocInt32(t));var n=8*t;f.length<n&&(r.free(f),f=r.mallocDouble(n))},sweepBipartite:function(e,t,n,r,a,s,p,h,y,b){for(var v=0,M=2*e,x=e-1,z=M-1,_=n;_<r;++_){var A=s[_],O=M*_;f[v++]=a[O+x],f[v++]=-(A+1),f[v++]=a[O+z],f[v++]=A}for(_=p;_<h;++_){A=b[_]+o;var w=M*_;f[v++]=y[w+x],f[v++]=-A,f[v++]=y[w+z],f[v++]=A}var k=v>>>1;i(f,k);var T=0,S=0;for(_=0;_<k;++_){var C=0|f[2*_+1];if(C>=o)m(u,d,S--,C=C-o|0);else if(C>=0)m(l,c,T--,C);else if(C<=-o){C=-C-o|0;for(var E=0;E<T;++E){if(void 0!==(q=t(l[E],C)))return q}g(u,d,S++,C)}else{C=-C-1|0;for(E=0;E<S;++E){var q;if(void 0!==(q=t(C,u[E])))return q}g(l,c,T++,C)}}},sweepComplete:function(e,t,n,r,a,o,s,y,b,v){for(var M=0,x=2*e,z=e-1,_=x-1,A=n;A<r;++A){var O=o[A]+1<<1,w=x*A;f[M++]=a[w+z],f[M++]=-O,f[M++]=a[w+_],f[M++]=O}for(A=s;A<y;++A){O=v[A]+1<<1;var k=x*A;f[M++]=b[k+z],f[M++]=1|-O,f[M++]=b[k+_],f[M++]=1|O}var T=M>>>1;i(f,T);var S=0,C=0,E=0;for(A=0;A<T;++A){var q=0|f[2*A+1],D=1&q;if(A<T-1&&q>>1==f[2*A+3]>>1&&(D=2,A+=1),q<0){for(var R=-(q>>1)-1,L=0;L<E;++L){if(void 0!==(I=t(p[L],R)))return I}if(0!==D)for(L=0;L<S;++L){if(void 0!==(I=t(l[L],R)))return I}if(1!==D)for(L=0;L<C;++L){var I;if(void 0!==(I=t(u[L],R)))return I}0===D?g(l,c,S++,R):1===D?g(u,d,C++,R):2===D&&g(p,h,E++,R)}else{R=(q>>1)-1;0===D?m(l,c,S--,R):1===D?m(u,d,C--,R):2===D&&m(p,h,E--,R)}}},scanBipartite:function(e,t,n,r,a,s,u,d,p,h,y,b){var v=0,M=2*e,x=t,z=t+e,_=1,A=1;r?A=o:_=o;for(var O=a;O<s;++O){var w=O+_,k=M*O;f[v++]=u[k+x],f[v++]=-w,f[v++]=u[k+z],f[v++]=w}for(O=p;O<h;++O){w=O+A;var T=M*O;f[v++]=y[T+x],f[v++]=-w}var S=v>>>1;i(f,S);var C=0;for(O=0;O<S;++O){var E=0|f[2*O+1];if(E<0){var q=!1;if((w=-E)>=o?(q=!r,w-=o):(q=!!r,w-=1),q)g(l,c,C++,w);else{var D=b[w],R=M*w,L=y[R+t+1],I=y[R+t+1+e];e:for(var W=0;W<C;++W){var N=l[W],P=M*N;if(!(I<u[P+t+1]||u[P+t+1+e]<L)){for(var B=t+2;B<e;++B)if(y[R+B+e]<u[P+B]||u[P+B+e]<y[R+B])continue e;var F,j=d[N];if(void 0!==(F=r?n(D,j):n(j,D)))return F}}}}else m(l,c,C--,E-_)}},scanComplete:function(e,t,n,r,a,s,c,u,d,p,h){for(var m=0,g=2*e,y=t,b=t+e,v=r;v<a;++v){var M=v+o,x=g*v;f[m++]=s[x+y],f[m++]=-M,f[m++]=s[x+b],f[m++]=M}for(v=u;v<d;++v){M=v+1;var z=g*v;f[m++]=p[z+y],f[m++]=-M}var _=m>>>1;i(f,_);var A=0;for(v=0;v<_;++v){var O=0|f[2*v+1];if(O<0){if((M=-O)>=o)l[A++]=M-o;else{var w=h[M-=1],k=g*M,T=p[k+t+1],S=p[k+t+1+e];e:for(var C=0;C<A;++C){var E=l[C],q=c[E];if(q===w)break;var D=g*E;if(!(S<s[D+t+1]||s[D+t+1+e]<T)){for(var R=t+2;R<e;++R)if(p[k+R+e]<s[D+R]||s[D+R+e]<p[k+R])continue e;var L=n(q,w);if(void 0!==L)return L}}}}else{for(M=O-o,C=A-1;C>=0;--C)if(l[C]===M){for(R=C+1;R<A;++R)l[R-1]=l[R];break}--A}}}};var r=n(1888),a=n(8828),i=n(4192),o=1<<28,s=1024,l=r.mallocInt32(s),c=r.mallocInt32(s),u=r.mallocInt32(s),d=r.mallocInt32(s),p=r.mallocInt32(s),h=r.mallocInt32(s),f=r.mallocDouble(8*s);function m(e,t,n,r){var a=t[r],i=e[n-1];e[a]=i,t[i]=a}function g(e,t,n,r){e[n]=r,t[r]=n}},2538:function(e,t,n){var r=n(8902),a=n(5542),i=n(2272),o=n(5023);function s(e){return[Math.min(e[0],e[1]),Math.max(e[0],e[1])]}function l(e,t){return e[0]-t[0]||e[1]-t[1]}function c(e,t,n){return t in e?e[t]:n}e.exports=function(e,t,n){Array.isArray(t)?(n=n||{},t=t||[]):(n=t||{},t=[]);var u=!!c(n,"delaunay",!0),d=!!c(n,"interior",!0),p=!!c(n,"exterior",!0),h=!!c(n,"infinity",!1);if(!d&&!p||0===e.length)return[];var f=r(e,t);if(u||d!==p||h){for(var m=a(e.length,function(e){return e.map(s).sort(l)}(t)),g=0;g<f.length;++g){var y=f[g];m.addTriangle(y[0],y[1],y[2])}return u&&i(e,m),p?d?h?o(m,0,h):m.cells():o(m,1,h):o(m,-1)}return f}},2272:function(e,t,n){var r=n(2646)[4];n(2478);function a(e,t,n,a,i,o){var s=t.opposite(a,i);if(!(s<0)){if(i<a){var l=a;a=i,i=l,l=o,o=s,s=l}t.isConstraint(a,i)||r(e[a],e[i],e[o],e[s])<0&&n.push(a,i)}}e.exports=function(e,t){for(var n=[],i=e.length,o=t.stars,s=0;s<i;++s)for(var l=o[s],c=1;c<l.length;c+=2){if(!((h=l[c])<s||t.isConstraint(s,h))){for(var u=l[c-1],d=-1,p=1;p<l.length;p+=2)if(l[p-1]===h){d=l[p];break}d<0||r(e[s],e[h],e[u],e[d])<0&&n.push(s,h)}}for(;n.length>0;){for(var h=n.pop(),f=(u=-1,d=-1,l=o[s=n.pop()],1);f<l.length;f+=2){var m=l[f-1],g=l[f];m===h?d=g:g===h&&(u=m)}u<0||d<0||r(e[s],e[h],e[u],e[d])>=0||(t.flip(s,h),a(e,t,n,u,s,d),a(e,t,n,s,d,u),a(e,t,n,d,h,u),a(e,t,n,h,u,d))}}},5023:function(e,t,n){var r,a=n(2478);function i(e,t,n,r,a,i,o){this.cells=e,this.neighbor=t,this.flags=r,this.constraint=n,this.active=a,this.next=i,this.boundary=o}function o(e,t){return e[0]-t[0]||e[1]-t[1]||e[2]-t[2]}e.exports=function(e,t,n){var r=function(e,t){for(var n=e.cells(),r=n.length,a=0;a<r;++a){var s=(y=n[a])[0],l=y[1],c=y[2];l<c?l<s&&(y[0]=l,y[1]=c,y[2]=s):c<s&&(y[0]=c,y[1]=s,y[2]=l)}n.sort(o);var u=new Array(r);for(a=0;a<u.length;++a)u[a]=0;var d=[],p=[],h=new Array(3*r),f=new Array(3*r),m=null;t&&(m=[]);var g=new i(n,h,f,u,d,p,m);for(a=0;a<r;++a)for(var y=n[a],b=0;b<3;++b){s=y[b],l=y[(b+1)%3];var v=h[3*a+b]=g.locate(l,s,e.opposite(l,s)),M=f[3*a+b]=e.isConstraint(s,l);v<0&&(M?p.push(a):(d.push(a),u[a]=1),t&&m.push([l,s,-1]))}return g}(e,n);if(0===t)return n?r.cells.concat(r.boundary):r.cells;for(var a=1,s=r.active,l=r.next,c=r.flags,u=r.cells,d=r.constraint,p=r.neighbor;s.length>0||l.length>0;){for(;s.length>0;){var h=s.pop();if(c[h]!==-a){c[h]=a;u[h];for(var f=0;f<3;++f){var m=p[3*h+f];m>=0&&0===c[m]&&(d[3*h+f]?l.push(m):(s.push(m),c[m]=a))}}}var g=l;l=s,s=g,l.length=0,a=-a}var y=function(e,t,n){for(var r=0,a=0;a<e.length;++a)t[a]===n&&(e[r++]=e[a]);return e.length=r,e}(u,c,t);return n?y.concat(r.boundary):y},i.prototype.locate=(r=[0,0,0],function(e,t,n){var i=e,s=t,l=n;return t<n?t<e&&(i=t,s=n,l=e):n<e&&(i=n,s=e,l=t),i<0?-1:(r[0]=i,r[1]=s,r[2]=l,a.eq(this.cells,r,o))})},8902:function(e,t,n){var r=n(2478),a=n(3250)[3];function i(e,t,n,r,a){this.a=e,this.b=t,this.idx=n,this.lowerIds=r,this.upperIds=a}function o(e,t,n,r){this.a=e,this.b=t,this.type=n,this.idx=r}function s(e,t){var n=e.a[0]-t.a[0]||e.a[1]-t.a[1]||e.type-t.type;return n||0!==e.type&&(n=a(e.a,e.b,t.b))?n:e.idx-t.idx}function l(e,t){return a(e.a,e.b,t)}function c(e,t,n,i,o){for(var s=r.lt(t,i,l),c=r.gt(t,i,l),u=s;u<c;++u){for(var d=t[u],p=d.lowerIds,h=p.length;h>1&&a(n[p[h-2]],n[p[h-1]],i)>0;)e.push([p[h-1],p[h-2],o]),h-=1;p.length=h,p.push(o);var f=d.upperIds;for(h=f.length;h>1&&a(n[f[h-2]],n[f[h-1]],i)<0;)e.push([f[h-2],f[h-1],o]),h-=1;f.length=h,f.push(o)}}function u(e,t){return(e.a[0]<t.a[0]?a(e.a,e.b,t.a):a(t.b,t.a,e.a))||((t.b[0]<e.b[0]?a(e.a,e.b,t.b):a(t.b,t.a,e.b))||e.idx-t.idx)}function d(e,t,n){var a=r.le(e,n,u),o=e[a],s=o.upperIds,l=s[s.length-1];o.upperIds=[l],e.splice(a+1,0,new i(n.a,n.b,n.idx,[l],s))}function p(e,t,n){var a=n.a;n.a=n.b,n.b=a;var i=r.eq(e,n,u),o=e[i];e[i-1].upperIds=o.upperIds,e.splice(i,1)}e.exports=function(e,t){for(var n=e.length,r=t.length,a=[],l=0;l<n;++l)a.push(new o(e[l],null,0,l));for(l=0;l<r;++l){var u=t[l],h=e[u[0]],f=e[u[1]];h[0]<f[0]?a.push(new o(h,f,2,l),new o(f,h,1,l)):h[0]>f[0]&&a.push(new o(f,h,2,l),new o(h,f,1,l))}a.sort(s);for(var m=a[0].a[0]-(1+Math.abs(a[0].a[0]))*Math.pow(2,-52),g=[new i([m,1],[m,0],-1,[],[],[],[])],y=[],b=(l=0,a.length);l<b;++l){var v=a[l],M=v.type;0===M?c(y,g,e,v.a,v.idx):2===M?d(g,e,v):p(g,e,v)}return y}},5542:function(e,t,n){var r=n(2478);function a(e,t){this.stars=e,this.edges=t}e.exports=function(e,t){for(var n=new Array(e),r=0;r<e;++r)n[r]=[];return new a(n,t)};var i=a.prototype;function o(e,t,n){for(var r=1,a=e.length;r<a;r+=2)if(e[r-1]===t&&e[r]===n)return e[r-1]=e[a-2],e[r]=e[a-1],void(e.length=a-2)}i.isConstraint=function(){var e=[0,0];function t(e,t){return e[0]-t[0]||e[1]-t[1]}return function(n,a){return e[0]=Math.min(n,a),e[1]=Math.max(n,a),r.eq(this.edges,e,t)>=0}}(),i.removeTriangle=function(e,t,n){var r=this.stars;o(r[e],t,n),o(r[t],n,e),o(r[n],e,t)},i.addTriangle=function(e,t,n){var r=this.stars;r[e].push(t,n),r[t].push(n,e),r[n].push(e,t)},i.opposite=function(e,t){for(var n=this.stars[t],r=1,a=n.length;r<a;r+=2)if(n[r]===e)return n[r-1];return-1},i.flip=function(e,t){var n=this.opposite(e,t),r=this.opposite(t,e);this.removeTriangle(e,t,n),this.removeTriangle(t,e,r),this.addTriangle(e,r,n),this.addTriangle(t,n,r)},i.edges=function(){for(var e=this.stars,t=[],n=0,r=e.length;n<r;++n)for(var a=e[n],i=0,o=a.length;i<o;i+=2)t.push([a[i],a[i+1]]);return t},i.cells=function(){for(var e=this.stars,t=[],n=0,r=e.length;n<r;++n)for(var a=e[n],i=0,o=a.length;i<o;i+=2){var s=a[i],l=a[i+1];n<Math.min(s,l)&&t.push([n,s,l])}return t}},2419:function(e){e.exports=function(e){for(var t=1,n=1;n<e.length;++n)for(var r=0;r<n;++r)if(e[n]<e[r])t=-t;else if(e[r]===e[n])return 0;return t}},3628:function(e,t,n){var r=n(1338),a=n(727);function i(e,t){for(var n=0,r=e.length,a=0;a<r;++a)n+=e[a]*t[a];return n}function o(e){var t=e.length;if(0===t)return[];e[0].length;var n=r([e.length+1,e.length+1],1),o=r([e.length+1],1);n[t][t]=0;for(var s=0;s<t;++s){for(var l=0;l<=s;++l)n[l][s]=n[s][l]=2*i(e[s],e[l]);o[s]=i(e[s],e[s])}var c=a(n,o),u=0,d=c[t+1];for(s=0;s<d.length;++s)u+=d[s];var p=new Array(t);for(s=0;s<t;++s){d=c[s];var h=0;for(l=0;l<d.length;++l)h+=d[l];p[s]=h/u}return p}function s(e){if(0===e.length)return[];for(var t=e[0].length,n=r([t]),a=o(e),i=0;i<e.length;++i)for(var s=0;s<t;++s)n[s]+=e[i][s]*a[i];return n}s.barycenetric=o,e.exports=s},6037:function(e,t,n){e.exports=function(e){for(var t=r(e),n=0,a=0;a<e.length;++a)for(var i=e[a],o=0;o<t.length;++o)n+=Math.pow(i[o]-t[o],2);return Math.sqrt(n/e.length)};var r=n(3628)},332:function(e,t,n){e.exports=function(e,t,n){var r;if(n){r=t;for(var a=new Array(t.length),i=0;i<t.length;++i){var o=t[i];a[i]=[o[0],o[1],n[i]]}t=a}for(var s=function(e,t,n){var r=f(e,[],h(e));return y(t,r,n),!!r}(e,t,!!n);b(e,t,!!n);)s=!0;if(n&&s){r.length=0,n.length=0;for(i=0;i<t.length;++i){o=t[i];r.push([o[0],o[1]]),n.push(o[2])}}return s};var r=n(1755),a=n(6867),i=n(1125),o=n(7842),s=n(1318),l=n(946),c=n(5838),u=n(1278),d=n(3637);function p(e){var t=l(e);return[u(t,-1/0),u(t,1/0)]}function h(e){for(var t=new Array(e.length),n=0;n<e.length;++n){var r=e[n];t[n]=[u(r[0],-1/0),u(r[1],-1/0),u(r[0],1/0),u(r[1],1/0)]}return t}function f(e,t,n){for(var i=t.length,o=new r(i),s=[],l=0;l<t.length;++l){var c=t[l],d=p(c[0]),h=p(c[1]);s.push([u(d[0],-1/0),u(h[0],-1/0),u(d[1],1/0),u(h[1],1/0)])}a(s,function(e,t){o.link(e,t)});var f=!0,m=new Array(i);for(l=0;l<i;++l){(y=o.find(l))!==l&&(f=!1,e[y]=[Math.min(e[l][0],e[y][0]),Math.min(e[l][1],e[y][1])])}if(f)return null;var g=0;for(l=0;l<i;++l){var y;(y=o.find(l))===l?(m[l]=g,e[g++]=e[l]):m[l]=-1}e.length=g;for(l=0;l<i;++l)m[l]<0&&(m[l]=m[o.find(l)]);return m}function m(e,t){return e[0]-t[0]||e[1]-t[1]}function g(e,t){return e[0]-t[0]||e[1]-t[1]||(e[2]<t[2]?-1:e[2]>t[2]?1:0)}function y(e,t,n){if(0!==e.length){if(t)for(var r=0;r<e.length;++r){var a=t[(o=e[r])[0]],i=t[o[1]];o[0]=Math.min(a,i),o[1]=Math.max(a,i)}else for(r=0;r<e.length;++r){var o;a=(o=e[r])[0],i=o[1];o[0]=Math.min(a,i),o[1]=Math.max(a,i)}n?e.sort(g):e.sort(m);var s=1;for(r=1;r<e.length;++r){var l=e[r-1],c=e[r];c[0]===l[0]&&c[1]===l[1]&&(!n||c[2]===l[2])||(e[s++]=c)}e.length=s}}function b(e,t,n){var r=function(e,t){for(var n=new Array(t.length),r=0;r<t.length;++r){var a=t[r],i=e[a[0]],o=e[a[1]];n[r]=[u(Math.min(i[0],o[0]),-1/0),u(Math.min(i[1],o[1]),-1/0),u(Math.max(i[0],o[0]),1/0),u(Math.max(i[1],o[1]),1/0)]}return n}(e,t),p=function(e,t,n){var r=[];return a(n,function(n,a){var o=t[n],s=t[a];if(o[0]!==s[0]&&o[0]!==s[1]&&o[1]!==s[0]&&o[1]!==s[1]){var l=e[o[0]],c=e[o[1]],u=e[s[0]],d=e[s[1]];i(l,c,u,d)&&r.push([n,a])}}),r}(e,t,r),m=h(e),g=function(e,t,n,r){var o=[];return a(n,r,function(n,r){var a=t[n];if(a[0]!==r&&a[1]!==r){var s=e[r],l=e[a[0]],c=e[a[1]];i(l,c,s,s)&&o.push([n,r])}}),o}(e,t,r,m),b=function(e,t,n,r,a){var i,u,p=e.map(function(e){return[o(e[0]),o(e[1])]});for(i=0;i<n.length;++i){var h=n[i];u=h[0];var f=h[1],m=t[u],g=t[f],y=d(c(e[m[0]]),c(e[m[1]]),c(e[g[0]]),c(e[g[1]]));if(y){var b=e.length;e.push([l(y[0]),l(y[1])]),p.push(y),r.push([u,b],[f,b])}}for(r.sort(function(e,t){if(e[0]!==t[0])return e[0]-t[0];var n=p[e[1]],r=p[t[1]];return s(n[0],r[0])||s(n[1],r[1])}),i=r.length-1;i>=0;--i){var v=t[u=(k=r[i])[0]],M=v[0],x=v[1],z=e[M],_=e[x];if((z[0]-_[0]||z[1]-_[1])<0){var A=M;M=x,x=A}v[0]=M;var O,w=v[1]=k[1];for(a&&(O=v[2]);i>0&&r[i-1][0]===u;){var k,T=(k=r[--i])[1];a?t.push([w,T,O]):t.push([w,T]),w=T}a?t.push([w,x,O]):t.push([w,x])}return p}(e,t,p,g,n),v=f(e,b);return y(t,v,n),!!v||(p.length>0||g.length>0)}},3637:function(e,t,n){e.exports=function(e,t,n,r){var i=s(t,e),d=s(r,n),p=u(i,d);if(0===o(p))return null;var h=s(e,n),f=u(d,h),m=a(f,p),g=c(i,m);return l(e,g)};var r=n(6504),a=n(8697),i=n(5572),o=n(7721),s=n(544),l=n(2653),c=n(8987);function u(e,t){return i(r(e[0],t[1]),r(e[1],t[0]))}},3642:function(e){e.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],"rainbow-soft":[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],"freesurface-blue":[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],"freesurface-red":[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],"velocity-blue":[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],"velocity-green":[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},6729:function(e,t,n){var r=n(3642),a=n(395);function i(e){return[e[0]/255,e[1]/255,e[2]/255,e[3]]}function o(e){for(var t,n="#",r=0;r<3;++r)n+=("00"+(t=(t=e[r]).toString(16))).substr(t.length);return n}function s(e){return"rgba("+e.join(",")+")"}e.exports=function(e){var t,n,l,c,u,d,p,h,f,m;if(e||(e={}),h=(e.nshades||72)-1,p=e.format||"hex",(d=e.colormap)||(d="jet"),"string"==typeof d){if(d=d.toLowerCase(),!r[d])throw Error(d+" not a supported colorscale");u=r[d]}else{if(!Array.isArray(d))throw Error("unsupported colormap option",d);u=d.slice()}if(u.length>h+1)throw new Error(d+" map requires nshades to be at least size "+u.length);f=Array.isArray(e.alpha)?2!==e.alpha.length?[1,1]:e.alpha.slice():"number"==typeof e.alpha?[e.alpha,e.alpha]:[1,1],t=u.map(function(e){return Math.round(e.index*h)}),f[0]=Math.min(Math.max(f[0],0),1),f[1]=Math.min(Math.max(f[1],0),1);var g=u.map(function(e,t){var n=u[t].index,r=u[t].rgb.slice();return 4===r.length&&r[3]>=0&&r[3]<=1||(r[3]=f[0]+(f[1]-f[0])*n),r}),y=[];for(m=0;m<t.length-1;++m){c=t[m+1]-t[m],n=g[m],l=g[m+1];for(var b=0;b<c;b++){var v=b/c;y.push([Math.round(a(n[0],l[0],v)),Math.round(a(n[1],l[1],v)),Math.round(a(n[2],l[2],v)),a(n[3],l[3],v)])}}return y.push(u[u.length-1].rgb.concat(f[1])),"hex"===p?y=y.map(o):"rgbaString"===p?y=y.map(s):"float"===p&&(y=y.map(i)),y}},3140:function(e,t,n){e.exports=function(e,t,n,i){var o=r(t,n,i);if(0===o){var s=a(r(e,t,n)),c=a(r(e,t,i));if(s===c){if(0===s){var u=l(e,t,n);return u===l(e,t,i)?0:u?1:-1}return 0}return 0===c?s>0||l(e,t,i)?-1:1:0===s?c>0||l(e,t,n)?1:-1:a(c-s)}var d=r(e,t,n);return d>0?o>0&&r(e,t,i)>0?1:-1:d<0?o>0||r(e,t,i)>0?1:-1:r(e,t,i)>0||l(e,t,n)?1:-1};var r=n(3250),a=n(8572),i=n(9362),o=n(5382),s=n(8210);function l(e,t,n){var r=i(e[0],-t[0]),a=i(e[1],-t[1]),l=i(n[0],-t[0]),c=i(n[1],-t[1]),u=s(o(r,l),o(a,c));return u[u.length-1]>=0}},8572:function(e){e.exports=function(e){return e<0?-1:e>0?1:0}},8507:function(e){e.exports=function(e,r){var a=e.length,i=e.length-r.length;if(i)return i;switch(a){case 0:return 0;case 1:return e[0]-r[0];case 2:return e[0]+e[1]-r[0]-r[1]||t(e[0],e[1])-t(r[0],r[1]);case 3:var o=e[0]+e[1],s=r[0]+r[1];if(i=o+e[2]-(s+r[2]))return i;var l=t(e[0],e[1]),c=t(r[0],r[1]);return t(l,e[2])-t(c,r[2])||t(l+e[2],o)-t(c+r[2],s);case 4:var u=e[0],d=e[1],p=e[2],h=e[3],f=r[0],m=r[1],g=r[2],y=r[3];return u+d+p+h-(f+m+g+y)||t(u,d,p,h)-t(f,m,g,y,f)||t(u+d,u+p,u+h,d+p,d+h,p+h)-t(f+m,f+g,f+y,m+g,m+y,g+y)||t(u+d+p,u+d+h,u+p+h,d+p+h)-t(f+m+g,f+m+y,f+g+y,m+g+y);default:for(var b=e.slice().sort(n),v=r.slice().sort(n),M=0;M<a;++M)if(i=b[M]-v[M])return i;return 0}};var t=Math.min;function n(e,t){return e-t}},3788:function(e,t,n){var r=n(8507),a=n(2419);e.exports=function(e,t){return r(e,t)||a(e)-a(t)}},7352:function(e,t,n){var r=n(5721),a=n(4750),i=n(2690);e.exports=function(e){var t=e.length;if(0===t)return[];if(1===t)return[[0]];var n=e[0].length;return 0===n?[]:1===n?r(e):2===n?a(e):i(e,n)}},5721:function(e){e.exports=function(e){for(var t=0,n=0,r=1;r<e.length;++r)e[r][0]<e[t][0]&&(t=r),e[r][0]>e[n][0]&&(n=r);return t<n?[[t],[n]]:t>n?[[n],[t]]:[[t]]}},4750:function(e,t,n){e.exports=function(e){var t=r(e),n=t.length;if(n<=2)return[];for(var a=new Array(n),i=t[n-1],o=0;o<n;++o){var s=t[o];a[o]=[i,s],i=s}return a};var r=n(3090)},2690:function(e,t,n){e.exports=function(e,t){try{return r(e,!0)}catch{var n=a(e);if(n.length<=t)return[];var i=function(e,t){for(var n=e.length,r=new Array(n),a=0;a<t.length;++a)r[a]=e[t[a]];var i=t.length;for(a=0;a<n;++a)t.indexOf(a)<0&&(r[i++]=e[a]);return r}(e,n);return function(e,t){for(var n=e.length,r=t.length,a=0;a<n;++a)for(var i=e[a],o=0;o<i.length;++o){var s=i[o];if(s<r)i[o]=t[s];else{s-=r;for(var l=0;l<r;++l)s>=t[l]&&(s+=1);i[o]=s}}return e}(r(i,!0),n)}};var r=n(8954),a=n(3952)},4769:function(e){e.exports=function(e,t,n,r,a,i){var o=a-1,s=a*a,l=o*o,c=(1+2*a)*l,u=a*l,d=s*(3-2*a),p=s*o;if(e.length){i||(i=new Array(e.length));for(var h=e.length-1;h>=0;--h)i[h]=c*e[h]+u*t[h]+d*n[h]+p*r[h];return i}return c*e+u*t+d*n+p*r},e.exports.derivative=function(e,t,n,r,a,i){var o=6*a*a-6*a,s=3*a*a-4*a+1,l=-6*a*a+6*a,c=3*a*a-2*a;if(e.length){i||(i=new Array(e.length));for(var u=e.length-1;u>=0;--u)i[u]=o*e[u]+s*t[u]+l*n[u]+c*r[u];return i}return o*e+s*t+l*n[u]+c*r}},7642:function(e,t,n){var r=n(8954),a=n(1682);function i(e,t){this.point=e,this.index=t}function o(e,t){for(var n=e.point,r=t.point,a=n.length,i=0;i<a;++i){var o=r[i]-n[i];if(o)return o}return 0}e.exports=function(e,t){var n=e.length;if(0===n)return[];var s=e[0].length;if(s<1)return[];if(1===s)return function(e,t,n){if(1===e)return n?[[-1,0]]:[];var r=t.map(function(e,t){return[e[0],t]});r.sort(function(e,t){return e[0]-t[0]});for(var a=new Array(e-1),i=1;i<e;++i){var o=r[i-1],s=r[i];a[i-1]=[o[1],s[1]]}return n&&a.push([-1,a[0][1]],[a[e-1][1],-1]),a}(n,e,t);for(var l=new Array(n),c=1,u=0;u<n;++u){for(var d=e[u],p=new Array(s+1),h=0,f=0;f<s;++f){var m=d[f];p[f]=m,h+=m*m}p[s]=h,l[u]=new i(p,u),c=Math.max(h,c)}a(l,o),n=l.length;var g=new Array(n+s+1),y=new Array(n+s+1),b=(s+1)*(s+1)*c,v=new Array(s+1);for(u=0;u<=s;++u)v[u]=0;v[s]=b,g[0]=v.slice(),y[0]=-1;for(u=0;u<=s;++u){(p=v.slice())[u]=1,g[u+1]=p,y[u+1]=-1}for(u=0;u<n;++u){var M=l[u];g[u+s+1]=M.point,y[u+s+1]=M.index}var x=r(g,!1);if(x=t?x.filter(function(e){for(var t=0,n=0;n<=s;++n){var r=y[e[n]];if(r<0&&++t>=2)return!1;e[n]=r}return!0}):x.filter(function(e){for(var t=0;t<=s;++t){var n=y[e[t]];if(n<0)return!1;e[t]=n}return!0}),1&s)for(u=0;u<x.length;++u){p=(M=x[u])[0];M[0]=M[1],M[1]=p}return x}},2361:function(e){var t=!1;if(typeof Float64Array<"u"){var n=new Float64Array(1),r=new Uint32Array(n.buffer);if(n[0]=1,t=!0,1072693248===r[1]){let t=function(e,t){return r[0]=e,r[1]=t,n[0]},a=function(e){return n[0]=e,r[0]},i=function(e){return n[0]=e,r[1]};e.exports=function(e){return n[0]=e,[r[0],r[1]]},e.exports.pack=t,e.exports.lo=a,e.exports.hi=i}else if(1072693248===r[0]){let t=function(e,t){return r[1]=e,r[0]=t,n[0]},a=function(e){return n[0]=e,r[1]},i=function(e){return n[0]=e,r[0]};e.exports=function(e){return n[0]=e,[r[1],r[0]]},e.exports.pack=t,e.exports.lo=a,e.exports.hi=i}else t=!1}if(!t){let t=function(e,t){return a.writeUInt32LE(e,0,!0),a.writeUInt32LE(t,4,!0),a.readDoubleLE(0,!0)},n=function(e){return a.writeDoubleLE(e,0,!0),a.readUInt32LE(0,!0)},r=function(e){return a.writeDoubleLE(e,0,!0),a.readUInt32LE(4,!0)};var a=new Buffer(8);e.exports=function(e){return a.writeDoubleLE(e,0,!0),[a.readUInt32LE(0,!0),a.readUInt32LE(4,!0)]},e.exports.pack=t,e.exports.lo=n,e.exports.hi=r}e.exports.sign=function(t){return e.exports.hi(t)>>>31},e.exports.exponent=function(t){return(e.exports.hi(t)<<1>>>21)-1023},e.exports.fraction=function(t){var n=e.exports.lo(t),r=e.exports.hi(t),a=1048575&r;return 2146435072&r&&(a+=1048576),[n,a]},e.exports.denormalized=function(t){return!(2146435072&e.exports.hi(t))}},1338:function(e){function t(e,n,r){var a=0|e[r];if(a<=0)return[];var i,o=new Array(a);if(r===e.length-1)for(i=0;i<a;++i)o[i]=n;else for(i=0;i<a;++i)o[i]=t(e,n,r+1);return o}e.exports=function(e,n){switch(typeof n>"u"&&(n=0),typeof e){case"number":if(e>0)return function(e,t){var n,r;for(n=new Array(e),r=0;r<e;++r)n[r]=t;return n}(0|e,n);break;case"object":if("number"==typeof e.length)return t(e,n,0)}return[]}},3134:function(e,t,n){e.exports=function(e,t){var n=e.length;if("number"!=typeof t){t=0;for(var a=0;a<n;++a){var i=e[a];t=Math.max(t,i[0],i[1])}t=1+(0|t)}t|=0;var o=new Array(t);for(a=0;a<t;++a)o[a]=[];for(a=0;a<n;++a){o[(i=e[a])[0]].push(i[1]),o[i[1]].push(i[0])}for(var s=0;s<t;++s)r(o[s],function(e,t){return e-t});return o};var r=n(1682)},5033:function(e){e.exports=function(e,t,n){var r=t||0,a=n||1;return[[e[12]+e[0],e[13]+e[1],e[14]+e[2],e[15]+e[3]],[e[12]-e[0],e[13]-e[1],e[14]-e[2],e[15]-e[3]],[e[12]+e[4],e[13]+e[5],e[14]+e[6],e[15]+e[7]],[e[12]-e[4],e[13]-e[5],e[14]-e[6],e[15]-e[7]],[r*e[12]+e[8],r*e[13]+e[9],r*e[14]+e[10],r*e[15]+e[11]],[a*e[12]-e[8],a*e[13]-e[9],a*e[14]-e[10],a*e[15]-e[11]]]}},9215:function(e,t,n){e.exports=function(e,t,n){switch(arguments.length){case 0:return new o([0],[0],0);case 1:return"number"==typeof e?new o(r=l(e),r,0):new o(e,l(e.length),0);case 2:var r;if("number"==typeof t)return new o(e,r=l(e.length),+t);n=0;case 3:if(e.length!==t.length)throw new Error("state and velocity lengths must match");return new o(e,t,n)}};var r=n(4769),a=n(2478);function i(e,t,n){return Math.min(t,Math.max(e,n))}function o(e,t,n){this.dimension=e.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var r=0;r<this.dimension;++r)this.bounds[0][r]=-1/0,this.bounds[1][r]=1/0;this._state=e.slice().reverse(),this._velocity=t.slice().reverse(),this._time=[n],this._scratch=[e.slice(),e.slice(),e.slice(),e.slice(),e.slice()]}var s=o.prototype;function l(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=0;return t}s.flush=function(e){var t=a.gt(this._time,e)-1;t<=0||(this._time.splice(0,t),this._state.splice(0,t*this.dimension),this._velocity.splice(0,t*this.dimension))},s.curve=function(e){var t=this._time,n=t.length,o=a.le(t,e),s=this._scratch[0],l=this._state,c=this._velocity,u=this.dimension,d=this.bounds;if(o<0)for(var p=u-1,h=0;h<u;++h,--p)s[h]=l[p];else if(o>=n-1){p=l.length-1;var f=e-t[n-1];for(h=0;h<u;++h,--p)s[h]=l[p]+f*c[p]}else{p=u*(o+1)-1;var m=t[o],g=t[o+1]-m||1,y=this._scratch[1],b=this._scratch[2],v=this._scratch[3],M=this._scratch[4],x=!0;for(h=0;h<u;++h,--p)y[h]=l[p],v[h]=c[p]*g,b[h]=l[p+u],M[h]=c[p+u]*g,x=x&&y[h]===b[h]&&v[h]===M[h]&&0===v[h];if(x)for(h=0;h<u;++h)s[h]=y[h];else r(y,v,b,M,(e-m)/g,s)}var z=d[0],_=d[1];for(h=0;h<u;++h)s[h]=i(z[h],_[h],s[h]);return s},s.dcurve=function(e){var t=this._time,n=t.length,i=a.le(t,e),o=this._scratch[0],s=this._state,l=this._velocity,c=this.dimension;if(i>=n-1)for(var u=s.length-1,d=(t[n-1],0);d<c;++d,--u)o[d]=l[u];else{u=c*(i+1)-1;var p=t[i],h=t[i+1]-p||1,f=this._scratch[1],m=this._scratch[2],g=this._scratch[3],y=this._scratch[4],b=!0;for(d=0;d<c;++d,--u)f[d]=s[u],g[d]=l[u]*h,m[d]=s[u+c],y[d]=l[u+c]*h,b=b&&f[d]===m[d]&&g[d]===y[d]&&0===g[d];if(b)for(d=0;d<c;++d)o[d]=0;else{r.derivative(f,g,m,y,(e-p)/h,o);for(d=0;d<c;++d)o[d]/=h}}return o},s.lastT=function(){var e=this._time;return e[e.length-1]},s.stable=function(){for(var e=this._velocity,t=e.length,n=this.dimension-1;n>=0;--n)if(e[--t])return!1;return!0},s.jump=function(e){var t=this.lastT(),n=this.dimension;if(!(e<t||arguments.length!==n+1)){var r=this._state,a=this._velocity,o=r.length-this.dimension,s=this.bounds,l=s[0],c=s[1];this._time.push(t,e);for(var u=0;u<2;++u)for(var d=0;d<n;++d)r.push(r[o++]),a.push(0);this._time.push(e);for(d=n;d>0;--d)r.push(i(l[d-1],c[d-1],arguments[d])),a.push(0)}},s.push=function(e){var t=this.lastT(),n=this.dimension;if(!(e<t||arguments.length!==n+1)){var r=this._state,a=this._velocity,o=r.length-this.dimension,s=e-t,l=this.bounds,c=l[0],u=l[1],d=s>1e-6?1/s:0;this._time.push(e);for(var p=n;p>0;--p){var h=i(c[p-1],u[p-1],arguments[p]);r.push(h),a.push((h-r[o++])*d)}}},s.set=function(e){var t=this.dimension;if(!(e<this.lastT()||arguments.length!==t+1)){var n=this._state,r=this._velocity,a=this.bounds,o=a[0],s=a[1];this._time.push(e);for(var l=t;l>0;--l)n.push(i(o[l-1],s[l-1],arguments[l])),r.push(0)}},s.move=function(e){var t=this.lastT(),n=this.dimension;if(!(e<=t||arguments.length!==n+1)){var r=this._state,a=this._velocity,o=r.length-this.dimension,s=this.bounds,l=s[0],c=s[1],u=e-t,d=u>1e-6?1/u:0;this._time.push(e);for(var p=n;p>0;--p){var h=arguments[p];r.push(i(l[p-1],c[p-1],r[o++]+h)),a.push(h*d)}}},s.idle=function(e){var t=this.lastT();if(!(e<t)){var n=this.dimension,r=this._state,a=this._velocity,o=r.length-n,s=this.bounds,l=s[0],c=s[1],u=e-t;this._time.push(e);for(var d=n-1;d>=0;--d)r.push(i(l[d],c[d],r[o]+u*a[o])),a.push(0),o+=1}}},3840:function(e){e.exports=function(e){return new i(e||h,null)};function t(e,t,n,r,a,i){this._color=e,this.key=t,this.value=n,this.left=r,this.right=a,this._count=i}function n(e){return new t(e._color,e.key,e.value,e.left,e.right,e._count)}function r(e,n){return new t(e,n.key,n.value,n.left,n.right,n._count)}function a(e){e._count=1+(e.left?e.left._count:0)+(e.right?e.right._count:0)}function i(e,t){this._compare=e,this.root=t}var o=i.prototype;function s(e,t){var n;if(t.left&&(n=s(e,t.left)))return n;return(n=e(t.key,t.value))||(t.right?s(e,t.right):void 0)}function l(e,t,n,r){if(t(e,r.key)<=0){var a;if(r.left)if(a=l(e,t,n,r.left))return a;if(a=n(r.key,r.value))return a}if(r.right)return l(e,t,n,r.right)}function c(e,t,n,r,a){var i,o=n(e,a.key),s=n(t,a.key);return o<=0&&(a.left&&(i=c(e,t,n,r,a.left))||s>0&&(i=r(a.key,a.value)))?i:s>0&&a.right?c(e,t,n,r,a.right):void 0}function u(e,t){this.tree=e,this._stack=t}Object.defineProperty(o,"keys",{get:function(){var e=[];return this.forEach(function(t,n){e.push(t)}),e}}),Object.defineProperty(o,"values",{get:function(){var e=[];return this.forEach(function(t,n){e.push(n)}),e}}),Object.defineProperty(o,"length",{get:function(){return this.root?this.root._count:0}}),o.insert=function(e,n){for(var o=this._compare,s=this.root,l=[],c=[];s;){var u=o(e,s.key);l.push(s),c.push(u),s=u<=0?s.left:s.right}l.push(new t(0,e,n,null,null,1));for(var d=l.length-2;d>=0;--d){s=l[d];c[d]<=0?l[d]=new t(s._color,s.key,s.value,l[d+1],s.right,s._count+1):l[d]=new t(s._color,s.key,s.value,s.left,l[d+1],s._count+1)}for(d=l.length-1;d>1;--d){var p=l[d-1];s=l[d];if(1===p._color||1===s._color)break;var h=l[d-2];if(h.left===p)if(p.left===s){if(!(f=h.right)||0!==f._color){if(h._color=0,h.left=p.right,p._color=1,p.right=h,l[d-2]=p,l[d-1]=s,a(h),a(p),d>=3)(m=l[d-3]).left===h?m.left=p:m.right=p;break}p._color=1,h.right=r(1,f),h._color=0,d-=1}else{if(!(f=h.right)||0!==f._color){if(p.right=s.left,h._color=0,h.left=s.right,s._color=1,s.left=p,s.right=h,l[d-2]=s,l[d-1]=p,a(h),a(p),a(s),d>=3)(m=l[d-3]).left===h?m.left=s:m.right=s;break}p._color=1,h.right=r(1,f),h._color=0,d-=1}else if(p.right===s){if(!(f=h.left)||0!==f._color){if(h._color=0,h.right=p.left,p._color=1,p.left=h,l[d-2]=p,l[d-1]=s,a(h),a(p),d>=3)(m=l[d-3]).right===h?m.right=p:m.left=p;break}p._color=1,h.left=r(1,f),h._color=0,d-=1}else{var f;if(!(f=h.left)||0!==f._color){var m;if(p.left=s.right,h._color=0,h.right=s.left,s._color=1,s.right=p,s.left=h,l[d-2]=s,l[d-1]=p,a(h),a(p),a(s),d>=3)(m=l[d-3]).right===h?m.right=s:m.left=s;break}p._color=1,h.left=r(1,f),h._color=0,d-=1}}return l[0]._color=1,new i(o,l[0])},o.forEach=function(e,t,n){if(this.root)switch(arguments.length){case 1:return s(e,this.root);case 2:return l(t,this._compare,e,this.root);case 3:return this._compare(t,n)>=0?void 0:c(t,n,this._compare,e,this.root)}},Object.defineProperty(o,"begin",{get:function(){for(var e=[],t=this.root;t;)e.push(t),t=t.left;return new u(this,e)}}),Object.defineProperty(o,"end",{get:function(){for(var e=[],t=this.root;t;)e.push(t),t=t.right;return new u(this,e)}}),o.at=function(e){if(e<0)return new u(this,[]);for(var t=this.root,n=[];;){if(n.push(t),t.left){if(e<t.left._count){t=t.left;continue}e-=t.left._count}if(!e)return new u(this,n);if(e-=1,!t.right)break;if(e>=t.right._count)break;t=t.right}return new u(this,[])},o.ge=function(e){for(var t=this._compare,n=this.root,r=[],a=0;n;){var i=t(e,n.key);r.push(n),i<=0&&(a=r.length),n=i<=0?n.left:n.right}return r.length=a,new u(this,r)},o.gt=function(e){for(var t=this._compare,n=this.root,r=[],a=0;n;){var i=t(e,n.key);r.push(n),i<0&&(a=r.length),n=i<0?n.left:n.right}return r.length=a,new u(this,r)},o.lt=function(e){for(var t=this._compare,n=this.root,r=[],a=0;n;){var i=t(e,n.key);r.push(n),i>0&&(a=r.length),n=i<=0?n.left:n.right}return r.length=a,new u(this,r)},o.le=function(e){for(var t=this._compare,n=this.root,r=[],a=0;n;){var i=t(e,n.key);r.push(n),i>=0&&(a=r.length),n=i<0?n.left:n.right}return r.length=a,new u(this,r)},o.find=function(e){for(var t=this._compare,n=this.root,r=[];n;){var a=t(e,n.key);if(r.push(n),0===a)return new u(this,r);n=a<=0?n.left:n.right}return new u(this,[])},o.remove=function(e){var t=this.find(e);return t?t.remove():this},o.get=function(e){for(var t=this._compare,n=this.root;n;){var r=t(e,n.key);if(0===r)return n.value;n=r<=0?n.left:n.right}};var d=u.prototype;function p(e,t){e.key=t.key,e.value=t.value,e.left=t.left,e.right=t.right,e._color=t._color,e._count=t._count}function h(e,t){return e<t?-1:e>t?1:0}Object.defineProperty(d,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(d,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),d.clone=function(){return new u(this.tree,this._stack.slice())},d.remove=function(){var e=this._stack;if(0===e.length)return this.tree;var o=new Array(e.length),s=e[e.length-1];o[o.length-1]=new t(s._color,s.key,s.value,s.left,s.right,s._count);for(var l=e.length-2;l>=0;--l){(s=e[l]).left===e[l+1]?o[l]=new t(s._color,s.key,s.value,o[l+1],s.right,s._count):o[l]=new t(s._color,s.key,s.value,s.left,o[l+1],s._count)}if((s=o[o.length-1]).left&&s.right){var c=o.length;for(s=s.left;s.right;)o.push(s),s=s.right;var u=o[c-1];o.push(new t(s._color,u.key,u.value,s.left,s.right,s._count)),o[c-1].key=s.key,o[c-1].value=s.value;for(l=o.length-2;l>=c;--l)s=o[l],o[l]=new t(s._color,s.key,s.value,s.left,o[l+1],s._count);o[c-1].left=o[c]}if(0===(s=o[o.length-1])._color){var d=o[o.length-2];d.left===s?d.left=null:d.right===s&&(d.right=null),o.pop();for(l=0;l<o.length;++l)o[l]._count--;return new i(this.tree._compare,o[0])}if(s.left||s.right){s.left?p(s,s.left):s.right&&p(s,s.right),s._color=1;for(l=0;l<o.length-1;++l)o[l]._count--;return new i(this.tree._compare,o[0])}if(1===o.length)return new i(this.tree._compare,null);for(l=0;l<o.length;++l)o[l]._count--;var h=o[o.length-2];return function(e){for(var t,i,o,s,l=e.length-1;l>=0;--l){if(t=e[l],0===l)return void(t._color=1);if((i=e[l-1]).left===t){if((o=i.right).right&&0===o.right._color)return s=(o=i.right=n(o)).right=n(o.right),i.right=o.left,o.left=i,o.right=s,o._color=i._color,t._color=1,i._color=1,s._color=1,a(i),a(o),l>1&&((c=e[l-2]).left===i?c.left=o:c.right=o),void(e[l-1]=o);if(o.left&&0===o.left._color)return s=(o=i.right=n(o)).left=n(o.left),i.right=s.left,o.left=s.right,s.left=i,s.right=o,s._color=i._color,i._color=1,o._color=1,t._color=1,a(i),a(o),a(s),l>1&&((c=e[l-2]).left===i?c.left=s:c.right=s),void(e[l-1]=s);if(1===o._color){if(0===i._color)return i._color=1,void(i.right=r(0,o));i.right=r(0,o);continue}o=n(o),i.right=o.left,o.left=i,o._color=i._color,i._color=0,a(i),a(o),l>1&&((c=e[l-2]).left===i?c.left=o:c.right=o),e[l-1]=o,e[l]=i,l+1<e.length?e[l+1]=t:e.push(t),l+=2}else{if((o=i.left).left&&0===o.left._color)return s=(o=i.left=n(o)).left=n(o.left),i.left=o.right,o.right=i,o.left=s,o._color=i._color,t._color=1,i._color=1,s._color=1,a(i),a(o),l>1&&((c=e[l-2]).right===i?c.right=o:c.left=o),void(e[l-1]=o);if(o.right&&0===o.right._color)return s=(o=i.left=n(o)).right=n(o.right),i.left=s.right,o.right=s.left,s.right=i,s.left=o,s._color=i._color,i._color=1,o._color=1,t._color=1,a(i),a(o),a(s),l>1&&((c=e[l-2]).right===i?c.right=s:c.left=s),void(e[l-1]=s);if(1===o._color){if(0===i._color)return i._color=1,void(i.left=r(0,o));i.left=r(0,o);continue}var c;o=n(o),i.left=o.right,o.right=i,o._color=i._color,i._color=0,a(i),a(o),l>1&&((c=e[l-2]).right===i?c.right=o:c.left=o),e[l-1]=o,e[l]=i,l+1<e.length?e[l+1]=t:e.push(t),l+=2}}}(o),h.left===s?h.left=null:h.right=null,new i(this.tree._compare,o[0])},Object.defineProperty(d,"key",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(d,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(d,"index",{get:function(){var e=0,t=this._stack;if(0===t.length){var n=this.tree.root;return n?n._count:0}t[t.length-1].left&&(e=t[t.length-1].left._count);for(var r=t.length-2;r>=0;--r)t[r+1]===t[r].right&&(++e,t[r].left&&(e+=t[r].left._count));return e},enumerable:!0}),d.next=function(){var e=this._stack;if(0!==e.length){var t=e[e.length-1];if(t.right)for(t=t.right;t;)e.push(t),t=t.left;else for(e.pop();e.length>0&&e[e.length-1].right===t;)t=e[e.length-1],e.pop()}},Object.defineProperty(d,"hasNext",{get:function(){var e=this._stack;if(0===e.length)return!1;if(e[e.length-1].right)return!0;for(var t=e.length-1;t>0;--t)if(e[t-1].left===e[t])return!0;return!1}}),d.update=function(e){var n=this._stack;if(0===n.length)throw new Error("Can't update empty node!");var r=new Array(n.length),a=n[n.length-1];r[r.length-1]=new t(a._color,a.key,e,a.left,a.right,a._count);for(var o=n.length-2;o>=0;--o)(a=n[o]).left===n[o+1]?r[o]=new t(a._color,a.key,a.value,r[o+1],a.right,a._count):r[o]=new t(a._color,a.key,a.value,a.left,r[o+1],a._count);return new i(this.tree._compare,r[0])},d.prev=function(){var e=this._stack;if(0!==e.length){var t=e[e.length-1];if(t.left)for(t=t.left;t;)e.push(t),t=t.right;else for(e.pop();e.length>0&&e[e.length-1].left===t;)t=e[e.length-1],e.pop()}},Object.defineProperty(d,"hasPrev",{get:function(){var e=this._stack;if(0===e.length)return!1;if(e[e.length-1].left)return!0;for(var t=e.length-1;t>0;--t)if(e[t-1].right===e[t])return!0;return!1}})},3837:function(e,t,n){e.exports=function(e,t){var n=new h(e);return n.update(t),n};var r=n(4935),a=n(501),i=n(5304),o=n(6429),s=n(6444),l=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),c=ArrayBuffer,u=DataView;function d(e){return Array.isArray(e)||function(e){return c.isView(e)&&!(e instanceof u)}(e)}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function h(e){this.gl=e,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=i(e)}var f=h.prototype;function m(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}f.update=function(e){function t(t,n,r){if(r in e){var a,i=e[r],o=this[r];(t?d(i)&&d(i[0]):d(i))?this[r]=a=[n(i[0]),n(i[1]),n(i[2])]:this[r]=a=[n(i),n(i),n(i)];for(var s=0;s<3;++s)if(a[s]!==o[s])return!0}return!1}e=e||{};var n,i=t.bind(this,!1,Number),o=t.bind(this,!1,Boolean),l=t.bind(this,!1,String),c=t.bind(this,!0,function(e){if(d(e)){if(3===e.length)return[+e[0],+e[1],+e[2],1];if(4===e.length)return[+e[0],+e[1],+e[2],+e[3]]}return[0,0,0,1]}),u=!1,p=!1;if("bounds"in e)for(var h=e.bounds,f=0;f<2;++f)for(var m=0;m<3;++m)h[f][m]!==this.bounds[f][m]&&(p=!0),this.bounds[f][m]=h[f][m];if("ticks"in e){n=e.ticks,u=!0,this.autoTicks=!1;for(f=0;f<3;++f)this.tickSpacing[f]=0}else i("tickSpacing")&&(this.autoTicks=!0,p=!0);if(this._firstInit&&("ticks"in e||"tickSpacing"in e||(this.autoTicks=!0),p=!0,u=!0,this._firstInit=!1),p&&this.autoTicks&&(n=s.create(this.bounds,this.tickSpacing),u=!0),u){for(f=0;f<3;++f)n[f].sort(function(e,t){return e.x-t.x});s.equal(n,this.ticks)?u=!1:this.ticks=n}o("tickEnable"),l("tickFont")&&(u=!0),l("tickFontStyle")&&(u=!0),l("tickFontWeight")&&(u=!0),l("tickFontVariant")&&(u=!0),i("tickSize"),i("tickAngle"),i("tickPad"),c("tickColor");var g=l("labels");l("labelFont")&&(g=!0),l("labelFontStyle")&&(g=!0),l("labelFontWeight")&&(g=!0),l("labelFontVariant")&&(g=!0),o("labelEnable"),i("labelSize"),i("labelPad"),c("labelColor"),o("lineEnable"),o("lineMirror"),i("lineWidth"),c("lineColor"),o("lineTickEnable"),o("lineTickMirror"),i("lineTickLength"),i("lineTickWidth"),c("lineTickColor"),o("gridEnable"),i("gridWidth"),c("gridColor"),o("zeroEnable"),c("zeroLineColor"),i("zeroLineWidth"),o("backgroundEnable"),c("backgroundColor");var y=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],b=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(g||u)&&this._text.update(this.bounds,this.labels,y,this.ticks,b):this._text=r(this.gl,this.bounds,this.labels,y,this.ticks,b),this._lines&&u&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=a(this.gl,this.bounds,this.ticks))};var g=[new m,new m,new m];function y(e,t,n,r,a){for(var i=e.primalOffset,o=e.primalMinor,s=e.mirrorOffset,l=e.mirrorMinor,c=r[t],u=0;u<3;++u)if(t!==u){var d=i,p=s,h=o,f=l;c&1<<u&&(d=s,p=i,h=l,f=o),d[u]=n[0][u],p[u]=n[1][u],a[u]>0?(h[u]=-1,f[u]=0):(h[u]=0,f[u]=1)}}var b=[0,0,0],v={model:l,view:l,projection:l,_ortho:!1};f.isOpaque=function(){return!0},f.isTransparent=function(){return!1},f.drawTransparent=function(e){};var M=[0,0,0],x=[0,0,0],z=[0,0,0];f.draw=function(e){e=e||v;for(var t=this.gl,n=e.model||l,r=e.view||l,a=e.projection||l,i=this.bounds,s=e._ortho||!1,c=o(n,r,a,i,s),u=c.cubeEdges,d=c.axis,h=r[12],f=r[13],m=r[14],_=r[15],A=(s?2:1)*this.pixelRatio*(a[3]*h+a[7]*f+a[11]*m+a[15]*_)/t.drawingBufferHeight,O=0;O<3;++O)this.lastCubeProps.cubeEdges[O]=u[O],this.lastCubeProps.axis[O]=d[O];var w=g;for(O=0;O<3;++O)y(g[O],O,this.bounds,u,d);t=this.gl;var k=b;for(O=0;O<3;++O)this.backgroundEnable[O]?k[O]=d[O]:k[O]=0;this._background.draw(n,r,a,i,k,this.backgroundColor),this._lines.bind(n,r,a,this);for(O=0;O<3;++O){var T=[0,0,0];d[O]>0?T[O]=i[1][O]:T[O]=i[0][O];for(var S=0;S<2;++S){var C=(O+1+S)%3,E=(O+1+(1^S))%3;this.gridEnable[C]&&this._lines.drawGrid(C,E,this.bounds,T,this.gridColor[C],this.gridWidth[C]*this.pixelRatio)}for(S=0;S<2;++S){C=(O+1+S)%3,E=(O+1+(1^S))%3;this.zeroEnable[E]&&Math.min(i[0][E],i[1][E])<=0&&Math.max(i[0][E],i[1][E])>=0&&this._lines.drawZero(C,E,this.bounds,T,this.zeroLineColor[E],this.zeroLineWidth[E]*this.pixelRatio)}}for(O=0;O<3;++O){this.lineEnable[O]&&this._lines.drawAxisLine(O,this.bounds,w[O].primalOffset,this.lineColor[O],this.lineWidth[O]*this.pixelRatio),this.lineMirror[O]&&this._lines.drawAxisLine(O,this.bounds,w[O].mirrorOffset,this.lineColor[O],this.lineWidth[O]*this.pixelRatio);var q=p(M,w[O].primalMinor),D=p(x,w[O].mirrorMinor),R=this.lineTickLength;for(S=0;S<3;++S){var L=A/n[5*S];q[S]*=R[S]*L,D[S]*=R[S]*L}this.lineTickEnable[O]&&this._lines.drawAxisTicks(O,w[O].primalOffset,q,this.lineTickColor[O],this.lineTickWidth[O]*this.pixelRatio),this.lineTickMirror[O]&&this._lines.drawAxisTicks(O,w[O].mirrorOffset,D,this.lineTickColor[O],this.lineTickWidth[O]*this.pixelRatio)}this._lines.unbind(),this._text.bind(n,r,a,this.pixelRatio);var I,W,N;function P(e){(N=[0,0,0])[e]=1}function B(e,t,n){var r=(e+1)%3,a=(e+2)%3,i=t[r],o=t[a],s=n[r],l=n[a];i>0&&l>0||i>0&&l<0||i<0&&l>0||i<0&&l<0?P(r):(o>0&&s>0||o>0&&s<0||o<0&&s>0||o<0&&s<0)&&P(a)}for(O=0;O<3;++O){var F=w[O].primalMinor,j=w[O].mirrorMinor,U=p(z,w[O].primalOffset);for(S=0;S<3;++S)this.lineTickEnable[O]&&(U[S]+=A*F[S]*Math.max(this.lineTickLength[S],0)/n[5*S]);var V=[0,0,0];if(V[O]=1,this.tickEnable[O]){-3600===this.tickAngle[O]?(this.tickAngle[O]=0,this.tickAlign[O]="auto"):this.tickAlign[O]=-1,W=1,"auto"===(I=[this.tickAlign[O],.5,W])[0]?I[0]=0:I[0]=parseInt(""+I[0]),N=[0,0,0],B(O,F,j);for(S=0;S<3;++S)U[S]+=A*F[S]*this.tickPad[S]/n[5*S];this._text.drawTicks(O,this.tickSize[O],this.tickAngle[O],U,this.tickColor[O],V,N,I)}if(this.labelEnable[O]){W=0,N=[0,0,0],this.labels[O].length>4&&(P(O),W=1),"auto"===(I=[this.labelAlign[O],.5,W])[0]?I[0]=0:I[0]=parseInt(""+I[0]);for(S=0;S<3;++S)U[S]+=A*F[S]*this.labelPad[S]/n[5*S];U[O]+=.5*(i[0][O]+i[1][O]),this._text.drawLabel(O,this.labelSize[O],this.labelAngle[O],U,this.labelColor[O],[0,0,0],N,I)}}this._text.unbind()},f.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},5304:function(e,t,n){e.exports=function(e){for(var t=[],n=[],s=0,l=0;l<3;++l)for(var c=(l+1)%3,u=(l+2)%3,d=[0,0,0],p=[0,0,0],h=-1;h<=1;h+=2){n.push(s,s+2,s+1,s+1,s+2,s+3),d[l]=h,p[l]=h;for(var f=-1;f<=1;f+=2){d[c]=f;for(var m=-1;m<=1;m+=2)d[u]=m,t.push(d[0],d[1],d[2],p[0],p[1],p[2]),s+=1}var g=c;c=u,u=g}var y=r(e,new Float32Array(t)),b=r(e,new Uint16Array(n),e.ELEMENT_ARRAY_BUFFER),v=a(e,[{buffer:y,type:e.FLOAT,size:3,offset:0,stride:24},{buffer:y,type:e.FLOAT,size:3,offset:12,stride:24}],b),M=i(e);return M.attributes.position.location=0,M.attributes.normal.location=1,new o(e,y,v,M)};var r=n(2762),a=n(8116),i=n(1879).bg;function o(e,t,n,r){this.gl=e,this.buffer=t,this.vao=n,this.shader=r}var s=o.prototype;s.draw=function(e,t,n,r,a,i){for(var o=!1,s=0;s<3;++s)o=o||a[s];if(o){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:e,view:t,projection:n,bounds:r,enable:a,colors:i},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),l.disable(l.POLYGON_OFFSET_FILL)}},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},6429:function(e,t,n){e.exports=function(e,t,n,i,h){a(s,t,e),a(s,n,s);for(var b=0,v=0;v<2;++v){u[2]=i[v][2];for(var M=0;M<2;++M){u[1]=i[M][1];for(var x=0;x<2;++x)u[0]=i[x][0],p(l[b],u,s),b+=1}}var z=-1;for(v=0;v<8;++v){for(var _=l[v][3],A=0;A<3;++A)c[v][A]=l[v][A]/_;h&&(c[v][2]*=-1),_<0&&(z<0||c[v][2]<c[z][2])&&(z=v)}if(z<0){z=0;for(var O=0;O<3;++O){for(var w=(O+2)%3,k=(O+1)%3,T=-1,S=-1,C=0;C<2;++C){var E=(D=C<<O)+(C<<w)+(1-C<<k),q=D+(1-C<<w)+(C<<k);o(c[D],c[E],c[q],d)<0||(C?T=1:S=1)}if(T<0||S<0)S>T&&(z|=1<<O);else{for(C=0;C<2;++C){E=(D=C<<O)+(C<<w)+(1-C<<k),q=D+(1-C<<w)+(C<<k);var D,R=f([l[D],l[E],l[q],l[D+(1<<w)+(1<<k)]]);C?T=R:S=R}S>T&&(z|=1<<O)}}}var L=7^z,I=-1;for(v=0;v<8;++v)v===z||v===L||(I<0||c[I][1]>c[v][1])&&(I=v);var W=-1;for(v=0;v<3;++v){if((P=I^1<<v)!==z&&P!==L)W<0&&(W=P),(k=c[P])[0]<c[W][0]&&(W=P)}var N=-1;for(v=0;v<3;++v){var P;if((P=I^1<<v)!==z&&P!==L&&P!==W)N<0&&(N=P),(k=c[P])[0]>c[N][0]&&(N=P)}var B=m;B[0]=B[1]=B[2]=0,B[r.log2(W^I)]=I&W,B[r.log2(I^N)]=I&N;var F=7^N;F===z||F===L?(F=7^W,B[r.log2(N^F)]=F&N):B[r.log2(W^F)]=F&W;var j=g,U=z;for(O=0;O<3;++O)j[O]=U&1<<O?-1:1;return y};var r=n(8828),a=n(6760),i=n(5202),o=n(3250),s=new Array(16),l=new Array(8),c=new Array(8),u=new Array(3),d=[0,0,0];function p(e,t,n){for(var r=0;r<4;++r){e[r]=n[12+r];for(var a=0;a<3;++a)e[r]+=t[a]*n[4*a+r]}}!function(){for(var e=0;e<8;++e)l[e]=[1,1,1,1],c[e]=[1,1,1]}();var h=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function f(e){for(var t=0;t<h.length;++t)if((e=i.positive(e,h[t])).length<3)return 0;var n=e[0],r=n[0]/n[3],a=n[1]/n[3],o=0;for(t=1;t+1<e.length;++t){var s=e[t],l=e[t+1],c=s[0]/s[3]-r,u=s[1]/s[3]-a,d=l[0]/l[3]-r,p=l[1]/l[3]-a;o+=Math.abs(c*p-u*d)}return o}var m=[1,1,1],g=[0,0,0],y={cubeEdges:m,axis:g}},501:function(e,t,n){e.exports=function(e,t,n){var o=[],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[0,0,0];o.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var d=0;d<3;++d){for(var p=o.length/3|0,f=0;f<n[d].length;++f){var m=+n[d][f].x;o.push(m,0,1,m,1,1,m,0,-1,m,0,-1,m,1,1,m,1,-1)}var g=o.length/3|0;s[d]=p,l[d]=g-p;p=o.length/3|0;for(var y=0;y<n[d].length;++y){m=+n[d][y].x;o.push(m,0,1,m,1,1,m,0,-1,m,0,-1,m,1,1,m,1,-1)}g=o.length/3|0;c[d]=p,u[d]=g-p}var b=r(e,new Float32Array(o)),v=a(e,[{buffer:b,type:e.FLOAT,size:3,stride:0,offset:0}]),M=i(e);return M.attributes.position.location=0,new h(e,b,v,M,l,s,u,c)};var r=n(2762),a=n(8116),i=n(1879).n,o=[0,0,0],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[1,1];function d(e){return e[0]=e[1]=e[2]=0,e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function h(e,t,n,r,a,i,o,s){this.gl=e,this.vertBuffer=t,this.vao=n,this.shader=r,this.tickCount=a,this.tickOffset=i,this.gridCount=o,this.gridOffset=s}var f=h.prototype;f.bind=function(e,t,n){this.shader.bind(),this.shader.uniforms.model=e,this.shader.uniforms.view=t,this.shader.uniforms.projection=n,u[0]=this.gl.drawingBufferWidth,u[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=u,this.vao.bind()},f.unbind=function(){this.vao.unbind()},f.drawAxisLine=function(e,t,n,r,a){var i=d(s);this.shader.uniforms.majorAxis=s,i[e]=t[1][e]-t[0][e],this.shader.uniforms.minorAxis=i;var o,u=p(c,n);u[e]+=t[0][e],this.shader.uniforms.offset=u,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=r,(o=d(l))[(e+2)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6),(o=d(l))[(e+1)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6)},f.drawAxisTicks=function(e,t,n,r,a){if(this.tickCount[e]){var i=d(o);i[e]=1,this.shader.uniforms.majorAxis=i,this.shader.uniforms.offset=t,this.shader.uniforms.minorAxis=n,this.shader.uniforms.color=r,this.shader.uniforms.lineWidth=a;var s=d(l);s[e]=1,this.shader.uniforms.screenAxis=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[e],this.tickOffset[e])}},f.drawGrid=function(e,t,n,r,a,i){if(this.gridCount[e]){var u=d(s);u[t]=n[1][t]-n[0][t],this.shader.uniforms.minorAxis=u;var h=p(c,r);h[t]+=n[0][t],this.shader.uniforms.offset=h;var f=d(o);f[e]=1,this.shader.uniforms.majorAxis=f;var m=d(l);m[e]=1,this.shader.uniforms.screenAxis=m,this.shader.uniforms.lineWidth=i,this.shader.uniforms.color=a,this.vao.draw(this.gl.TRIANGLES,this.gridCount[e],this.gridOffset[e])}},f.drawZero=function(e,t,n,r,a,i){var o=d(s);this.shader.uniforms.majorAxis=o,o[e]=n[1][e]-n[0][e],this.shader.uniforms.minorAxis=o;var u=p(c,r);u[e]+=n[0][e],this.shader.uniforms.offset=u;var h=d(l);h[t]=1,this.shader.uniforms.screenAxis=h,this.shader.uniforms.lineWidth=i,this.shader.uniforms.color=a,this.vao.draw(this.gl.TRIANGLES,6)},f.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()}},1879:function(e,t,n){var r=n(3236),a=n(9405),i=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, majorAxis, minorAxis, screenAxis;\nuniform float lineWidth;\nuniform vec2 screenShape;\n\nvec3 project(vec3 p) {\n vec4 pp = projection * (view * (model * vec4(p, 1.0)));\n return pp.xyz / max(pp.w, 0.0001);\n}\n\nvoid main() {\n vec3 major = position.x * majorAxis;\n vec3 minor = position.y * minorAxis;\n\n vec3 vPosition = major + minor + offset;\n vec3 pPosition = project(vPosition);\n vec3 offset = project(vPosition + screenAxis * position.z);\n\n vec2 screen = normalize((offset - pPosition).xy * screenShape) / screenShape;\n\n gl_Position = vec4(pPosition + vec3(0.5 * screen * lineWidth, 0), 1.0);\n}\n"]),o=r(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n gl_FragColor = color;\n}"]);t.n=function(e){return a(e,i,o,null,[{name:"position",type:"vec3"}])};var s=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, axis, alignDir, alignOpt;\nuniform float scale, angle, pixelScale;\nuniform vec2 resolution;\n\nvec3 project(vec3 p) {\n vec4 pp = projection * (view * (model * vec4(p, 1.0)));\n return pp.xyz / max(pp.w, 0.0001);\n}\n\nfloat computeViewAngle(vec3 a, vec3 b) {\n vec3 A = project(a);\n vec3 B = project(b);\n\n return atan(\n (B.y - A.y) * resolution.y,\n (B.x - A.x) * resolution.x\n );\n}\n\nconst float PI = 3.141592;\nconst float TWO_PI = 2.0 * PI;\nconst float HALF_PI = 0.5 * PI;\nconst float ONE_AND_HALF_PI = 1.5 * PI;\n\nint option = int(floor(alignOpt.x + 0.001));\nfloat hv_ratio = alignOpt.y;\nbool enableAlign = (alignOpt.z != 0.0);\n\nfloat mod_angle(float a) {\n return mod(a, PI);\n}\n\nfloat positive_angle(float a) {\n return mod_angle((a < 0.0) ?\n a + TWO_PI :\n a\n );\n}\n\nfloat look_upwards(float a) {\n float b = positive_angle(a);\n return ((b > HALF_PI) && (b <= ONE_AND_HALF_PI)) ?\n b - PI :\n b;\n}\n\nfloat look_horizontal_or_vertical(float a, float ratio) {\n // ratio controls the ratio between being horizontal to (vertical + horizontal)\n // if ratio is set to 0.5 then it is 50%, 50%.\n // when using a higher ratio e.g. 0.75 the result would\n // likely be more horizontal than vertical.\n\n float b = positive_angle(a);\n\n return\n (b < ( ratio) * HALF_PI) ? 0.0 :\n (b < (2.0 - ratio) * HALF_PI) ? -HALF_PI :\n (b < (2.0 + ratio) * HALF_PI) ? 0.0 :\n (b < (4.0 - ratio) * HALF_PI) ? HALF_PI :\n 0.0;\n}\n\nfloat roundTo(float a, float b) {\n return float(b * floor((a + 0.5 * b) / b));\n}\n\nfloat look_round_n_directions(float a, int n) {\n float b = positive_angle(a);\n float div = TWO_PI / float(n);\n float c = roundTo(b, div);\n return look_upwards(c);\n}\n\nfloat applyAlignOption(float rawAngle, float delta) {\n return\n (option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions\n (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\n (option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis\n (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\n (option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal\n rawAngle; // otherwise return back raw input angle\n}\n\nbool isAxisTitle = (axis.x == 0.0) &&\n (axis.y == 0.0) &&\n (axis.z == 0.0);\n\nvoid main() {\n //Compute world offset\n float axisDistance = position.z;\n vec3 dataPosition = axisDistance * axis + offset;\n\n float beta = angle; // i.e. user defined attributes for each tick\n\n float axisAngle;\n float clipAngle;\n float flip;\n\n if (enableAlign) {\n axisAngle = (isAxisTitle) ? HALF_PI :\n computeViewAngle(dataPosition, dataPosition + axis);\n clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\n\n axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0;\n clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0;\n\n flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\n vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0;\n\n beta += applyAlignOption(clipAngle, flip * PI);\n }\n\n //Compute plane offset\n vec2 planeCoord = position.xy * pixelScale;\n\n mat2 planeXform = scale * mat2(\n cos(beta), sin(beta),\n -sin(beta), cos(beta)\n );\n\n vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\n\n //Compute clip position\n vec3 clipPosition = project(dataPosition);\n\n //Apply text offset in clip coordinates\n clipPosition += vec3(viewOffset, 0.0);\n\n //Done\n gl_Position = vec4(clipPosition, 1.0);\n}\n"]),l=r(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n gl_FragColor = color;\n}"]);t.Q=function(e){return a(e,s,l,null,[{name:"position",type:"vec3"}])};var c=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec3 normal;\n\nuniform mat4 model, view, projection;\nuniform vec3 enable;\nuniform vec3 bounds[2];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n\n vec3 signAxis = sign(bounds[1] - bounds[0]);\n\n vec3 realNormal = signAxis * normal;\n\n if(dot(realNormal, enable) > 0.0) {\n vec3 minRange = min(bounds[0], bounds[1]);\n vec3 maxRange = max(bounds[0], bounds[1]);\n vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\n gl_Position = projection * (view * (model * vec4(nPosition, 1.0)));\n } else {\n gl_Position = vec4(0,0,0,0);\n }\n\n colorChannel = abs(realNormal);\n}\n"]),u=r(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 colors[3];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n gl_FragColor = colorChannel.x * colors[0] +\n colorChannel.y * colors[1] +\n colorChannel.z * colors[2];\n}"]);t.bg=function(e){return a(e,c,u,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},4935:function(e,t,n){e.exports=function(e,t,n,i,s,l){var u=r(e),d=a(e,[{buffer:u,size:3}]),p=o(e);p.attributes.position.location=0;var h=new c(e,p,u,d);return h.update(t,n,i,s,l),h};var r=n(2762),a=n(8116),i=n(4359),o=n(1879).Q,s=window||process.global||{},l=s.__TEXT_CACHE||{};s.__TEXT_CACHE={};function c(e,t,n,r){this.gl=e,this.shader=t,this.buffer=n,this.vao=r,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var u=c.prototype,d=[0,0];u.bind=function(e,t,n,r){this.vao.bind(),this.shader.bind();var a=this.shader.uniforms;a.model=e,a.view=t,a.projection=n,a.pixelScale=r,d[0]=this.gl.drawingBufferWidth,d[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=d},u.unbind=function(){this.vao.unbind()},u.update=function(e,t,n,r,a){var o=[];function s(e,t,n,r,a,s){var c=[n.style,n.weight,n.variant,n.family].join("_"),u=l[c];u||(u=l[c]={});var d=u[t];d||(d=u[t]=function(e,t){try{return i(e,t)}catch(t){return console.warn('error vectorizing text:"'+e+'" error:',t),{cells:[],positions:[]}}}(t,{triangles:!0,font:n.family,fontStyle:n.style,fontWeight:n.weight,fontVariant:n.variant,textAlign:"center",textBaseline:"middle",lineSpacing:a,styletags:s}));for(var p=(r||12)/12,h=d.positions,f=d.cells,m=0,g=f.length;m<g;++m)for(var y=f[m],b=2;b>=0;--b){var v=h[y[b]];o.push(p*v[0],-p*v[1],e)}}for(var c=[0,0,0],u=[0,0,0],d=[0,0,0],p=[0,0,0],h={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},f=0;f<3;++f){d[f]=o.length/3|0,s(.5*(e[0][f]+e[1][f]),t[f],n[f],12,1.25,h),p[f]=(o.length/3|0)-d[f],c[f]=o.length/3|0;for(var m=0;m<r[f].length;++m)if(r[f][m].text){var g={family:r[f][m].font||a[f].family,style:a[f].fontStyle||a[f].style,weight:a[f].fontWeight||a[f].weight,variant:a[f].fontVariant||a[f].variant};s(r[f][m].x,r[f][m].text,g,r[f][m].fontSize||12,1.25,h)}u[f]=(o.length/3|0)-c[f]}this.buffer.update(o),this.tickOffset=c,this.tickCount=u,this.labelOffset=d,this.labelCount=p},u.drawTicks=function(e,t,n,r,a,i,o,s){this.tickCount[e]&&(this.shader.uniforms.axis=i,this.shader.uniforms.color=a,this.shader.uniforms.angle=n,this.shader.uniforms.scale=t,this.shader.uniforms.offset=r,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[e],this.tickOffset[e]))},u.drawLabel=function(e,t,n,r,a,i,o,s){this.labelCount[e]&&(this.shader.uniforms.axis=i,this.shader.uniforms.color=a,this.shader.uniforms.angle=n,this.shader.uniforms.scale=t,this.shader.uniforms.offset=r,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.labelCount[e],this.labelOffset[e]))},u.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()}},6444:function(e,t){function n(e,t){var n=e+"",r=n.indexOf("."),a=0;r>=0&&(a=n.length-r-1);var i=Math.pow(10,a),o=Math.round(e*t*i),s=o+"";if(s.indexOf("e")>=0)return s;var l=o/i,c=o%i;o<0?(l=0|-Math.ceil(l),c=0|-c):(l=0|Math.floor(l),c|=0);var u=""+l;if(o<0&&(u="-"+u),a){for(var d=""+c;d.length<a;)d="0"+d;return u+"."+d}return u}t.create=function(e,t){for(var r=[],a=0;a<3;++a){for(var i=[],o=(e[0][a],e[1][a],0);o*t[a]<=e[1][a];++o)i.push({x:o*t[a],text:n(t[a],o)});for(o=-1;o*t[a]>=e[0][a];--o)i.push({x:o*t[a],text:n(t[a],o)});r.push(i)}return r},t.equal=function(e,t){for(var n=0;n<3;++n){if(e[n].length!==t[n].length)return!1;for(var r=0;r<e[n].length;++r){var a=e[n][r],i=t[n][r];if(a.x!==i.x||a.text!==i.text||a.font!==i.font||a.fontColor!==i.fontColor||a.fontSize!==i.fontSize||a.dx!==i.dx||a.dy!==i.dy)return!1}}return!0}},5445:function(e,t,n){e.exports=function(e,t,n,l,d){var p=t.model||c,h=t.view||c,y=t.projection||c,b=t._ortho||!1,v=e.bounds,M=(d=d||i(p,h,y,v,b)).axis;o(u,h,p),o(u,y,u);for(var x=m,z=0;z<3;++z)x[z].lo=1/0,x[z].hi=-1/0,x[z].pixelsPerDataUnit=1/0;var _=r(s(u,u));s(u,u);for(var A=0;A<3;++A){var O=(A+1)%3,w=(A+2)%3,k=g;e:for(z=0;z<2;++z){var T=[];if(M[A]<0!=!!z){k[A]=v[z][A];for(var S=0;S<2;++S){k[O]=v[S^z][O];for(var C=0;C<2;++C)k[w]=v[C^S^z][w],T.push(k.slice())}var E=b?5:4;for(S=E;S===E;++S){if(0===T.length)continue e;T=a.positive(T,_[S])}for(S=0;S<T.length;++S){w=T[S];var q=f(g,u,w,n,l);for(C=0;C<3;++C)x[C].lo=Math.min(x[C].lo,w[C]),x[C].hi=Math.max(x[C].hi,w[C]),C!==A&&(x[C].pixelsPerDataUnit=Math.min(x[C].pixelsPerDataUnit,Math.abs(q[C])))}}}}return x};var r=n(5033),a=n(5202),i=n(6429),o=n(6760),s=n(5665),l=n(5352),c=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),u=new Float32Array(16);function d(e,t,n){this.lo=e,this.hi=t,this.pixelsPerDataUnit=n}var p=[0,0,0,1],h=[0,0,0,1];function f(e,t,n,r,a){for(var i=0;i<3;++i){for(var o=p,s=h,c=0;c<3;++c)s[c]=o[c]=n[c];s[3]=o[3]=1,s[i]+=1,l(s,s,t),s[3]<0&&(e[i]=1/0),o[i]-=1,l(o,o,t),o[3]<0&&(e[i]=1/0);var u=(o[0]/o[3]-s[0]/s[3])*r,d=(o[1]/o[3]-s[1]/s[3])*a;e[i]=.25*Math.sqrt(u*u+d*d)}return e}var m=[new d(1/0,-1/0,1/0),new d(1/0,-1/0,1/0),new d(1/0,-1/0,1/0)],g=[0,0,0]},2762:function(e,t,n){var r=n(1888),a=n(5298),i=n(9618),o=["uint8","uint8_clamped","uint16","uint32","int8","int16","int32","float32"];function s(e,t,n,r,a){this.gl=e,this.type=t,this.handle=n,this.length=r,this.usage=a}var l=s.prototype;function c(e,t,n,r,a,i){var o=a.length*a.BYTES_PER_ELEMENT;if(i<0)return e.bufferData(t,a,r),o;if(o+i>n)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return e.bufferSubData(t,i,a),n}function u(e,t){for(var n=r.malloc(e.length,t),a=e.length,i=0;i<a;++i)n[i]=e[i];return n}l.bind=function(){this.gl.bindBuffer(this.type,this.handle)},l.unbind=function(){this.gl.bindBuffer(this.type,null)},l.dispose=function(){this.gl.deleteBuffer(this.handle)},l.update=function(e,t){if("number"!=typeof t&&(t=-1),this.bind(),"object"==typeof e&&typeof e.shape<"u"){var n=e.dtype;if(o.indexOf(n)<0&&(n="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER)n=gl.getExtension("OES_element_index_uint")&&"uint16"!==n?"uint32":"uint16";if(n===e.dtype&&function(e,t){for(var n=1,r=t.length-1;r>=0;--r){if(t[r]!==n)return!1;n*=e[r]}return!0}(e.shape,e.stride))0===e.offset&&e.data.length===e.shape[0]?this.length=c(this.gl,this.type,this.length,this.usage,e.data,t):this.length=c(this.gl,this.type,this.length,this.usage,e.data.subarray(e.offset,e.shape[0]),t);else{var s=r.malloc(e.size,n),l=i(s,e.shape);a.assign(l,e),this.length=c(this.gl,this.type,this.length,this.usage,t<0?s:s.subarray(0,e.size),t),r.free(s)}}else if(Array.isArray(e)){var d;d=this.type===this.gl.ELEMENT_ARRAY_BUFFER?u(e,"uint16"):u(e,"float32"),this.length=c(this.gl,this.type,this.length,this.usage,t<0?d:d.subarray(0,e.length),t),r.free(d)}else if("object"==typeof e&&"number"==typeof e.length)this.length=c(this.gl,this.type,this.length,this.usage,e,t);else{if("number"!=typeof e&&void 0!==e)throw new Error("gl-buffer: Invalid data type");if(t>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");(e|=0)<=0&&(e=1),this.gl.bufferData(this.type,0|e,this.usage),this.length=e}},e.exports=function(e,t,n,r){if(n=n||e.ARRAY_BUFFER,r=r||e.DYNAMIC_DRAW,n!==e.ARRAY_BUFFER&&n!==e.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(r!==e.DYNAMIC_DRAW&&r!==e.STATIC_DRAW&&r!==e.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var a=e.createBuffer(),i=new s(e,n,a,0,r);return i.update(t),i}},6405:function(e,t,n){var r=n(2931);e.exports=function(e,t){var n=e.positions,a=e.vectors,i={positions:[],vertexIntensity:[],vertexIntensityBounds:e.vertexIntensityBounds,vectors:[],cells:[],coneOffset:e.coneOffset,colormap:e.colormap};if(0===e.positions.length)return t&&(t[0]=[0,0,0],t[1]=[0,0,0]),i;for(var o=0,s=1/0,l=-1/0,c=1/0,u=-1/0,d=1/0,p=-1/0,h=null,f=null,m=[],g=1/0,y=!1,b="raw"===e.coneSizemode,v=0;v<n.length;v++){var M=n[v];s=Math.min(M[0],s),l=Math.max(M[0],l),c=Math.min(M[1],c),u=Math.max(M[1],u),d=Math.min(M[2],d),p=Math.max(M[2],p);var x=a[v];if(r.length(x)>o&&(o=r.length(x)),v&&!b){var z=2*r.distance(h,M)/(r.length(f)+r.length(x));z?(g=Math.min(g,z),y=!1):y=!0}y||(h=M,f=x),m.push(x)}var _=[s,c,d],A=[l,u,p];t&&(t[0]=_,t[1]=A),0===o&&(o=1);var O=1/o;isFinite(g)||(g=1),i.vectorScale=g;var w=e.coneSize||(b?1:.5);e.absoluteConeSize&&(w=e.absoluteConeSize*O),i.coneScale=w;v=0;for(var k=0;v<n.length;v++)for(var T=(M=n[v])[0],S=M[1],C=M[2],E=m[v],q=r.length(E)*O,D=0;D<8;D++){i.positions.push([T,S,C,k++]),i.positions.push([T,S,C,k++]),i.positions.push([T,S,C,k++]),i.positions.push([T,S,C,k++]),i.positions.push([T,S,C,k++]),i.positions.push([T,S,C,k++]),i.vectors.push(E),i.vectors.push(E),i.vectors.push(E),i.vectors.push(E),i.vectors.push(E),i.vectors.push(E),i.vertexIntensity.push(q,q,q),i.vertexIntensity.push(q,q,q);var R=i.positions.length;i.cells.push([R-6,R-5,R-4],[R-3,R-2,R-1])}return i};var a=n(614);e.exports.createMesh=n(9060),e.exports.createConeMesh=function(t,n){return e.exports.createMesh(t,n,{shaders:a,traceType:"cone"})}},9060:function(e,t,n){var r=n(9405),a=n(2762),i=n(8116),o=n(7766),s=n(6760),l=n(7608),c=n(9618),u=n(6729),d=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function p(e,t,n,r,a,i,o,s,l,c,u){this.gl=e,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=t,this.dirty=!0,this.triShader=n,this.pickShader=r,this.trianglePositions=a,this.triangleVectors=i,this.triangleColors=s,this.triangleUVs=l,this.triangleIds=o,this.triangleVAO=c,this.triangleCount=0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.traceType=u,this.tubeScale=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=d,this._view=d,this._projection=d,this._resolution=[1,1]}var h=p.prototype;h.isOpaque=function(){return this.opacity>=1},h.isTransparent=function(){return this.opacity<1},h.pickSlots=1,h.setPickBase=function(e){this.pickId=e},h.update=function(e){e=e||{};var t=this.gl;this.dirty=!0,"lightPosition"in e&&(this.lightPosition=e.lightPosition),"opacity"in e&&(this.opacity=e.opacity),"ambient"in e&&(this.ambientLight=e.ambient),"diffuse"in e&&(this.diffuseLight=e.diffuse),"specular"in e&&(this.specularLight=e.specular),"roughness"in e&&(this.roughness=e.roughness),"fresnel"in e&&(this.fresnel=e.fresnel),void 0!==e.tubeScale&&(this.tubeScale=e.tubeScale),void 0!==e.vectorScale&&(this.vectorScale=e.vectorScale),void 0!==e.coneScale&&(this.coneScale=e.coneScale),void 0!==e.coneOffset&&(this.coneOffset=e.coneOffset),e.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=t.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=t.LINEAR,this.texture.setPixels(function(e){for(var t=u({colormap:e,nshades:256,format:"rgba"}),n=new Uint8Array(1024),r=0;r<256;++r){for(var a=t[r],i=0;i<3;++i)n[4*r+i]=a[i];n[4*r+3]=255*a[3]}return c(n,[256,256,4],[4,0,1])}(e.colormap)),this.texture.generateMipmap());var n=e.cells,r=e.positions,a=e.vectors;if(r&&n&&a){var i=[],o=[],s=[],l=[],d=[];this.cells=n,this.positions=r,this.vectors=a;var p=e.meshColor||[1,1,1,1],h=e.vertexIntensity,f=1/0,m=-1/0;if(h)if(e.vertexIntensityBounds)f=+e.vertexIntensityBounds[0],m=+e.vertexIntensityBounds[1];else for(var g=0;g<h.length;++g){var y=h[g];f=Math.min(f,y),m=Math.max(m,y)}else for(g=0;g<r.length;++g){y=r[g][2];f=Math.min(f,y),m=Math.max(m,y)}this.intensity=h||function(e){for(var t=e.length,n=new Array(t),r=0;r<t;++r)n[r]=e[r][2];return n}(r),this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(g=0;g<r.length;++g)for(var b=r[g],v=0;v<3;++v)isNaN(b[v])||!isFinite(b[v])||(this.bounds[0][v]=Math.min(this.bounds[0][v],b[v]),this.bounds[1][v]=Math.max(this.bounds[1][v],b[v]));var M=0;e:for(g=0;g<n.length;++g){var x=n[g];if(3===x.length){for(v=0;v<3;++v){b=r[_=x[v]];for(var z=0;z<3;++z)if(isNaN(b[z])||!isFinite(b[z]))continue e}for(v=0;v<3;++v){var _;b=r[_=x[2-v]];i.push(b[0],b[1],b[2],b[3]);var A=a[_];o.push(A[0],A[1],A[2],A[3]||0);var O,w=p;3===w.length?s.push(w[0],w[1],w[2],1):s.push(w[0],w[1],w[2],w[3]),O=h?[(h[_]-f)/(m-f),0]:[(b[2]-f)/(m-f),0],l.push(O[0],O[1]),d.push(g)}M+=1}}this.triangleCount=M,this.trianglePositions.update(i),this.triangleVectors.update(o),this.triangleColors.update(s),this.triangleUVs.update(l),this.triangleIds.update(new Uint32Array(d))}},h.drawTransparent=h.draw=function(e){e=e||{};for(var t=this.gl,n=e.model||d,r=e.view||d,a=e.projection||d,i=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)i[0][o]=Math.max(i[0][o],this.clipBounds[0][o]),i[1][o]=Math.min(i[1][o],this.clipBounds[1][o]);var c={model:n,view:r,projection:a,inverseModel:d.slice(),clipBounds:i,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,texture:0};c.inverseModel=l(c.inverseModel,c.model),t.disable(t.CULL_FACE),this.texture.bind(0);var u=new Array(16);s(u,c.view,c.model),s(u,c.projection,u),l(u,u);for(o=0;o<3;++o)c.eyePosition[o]=u[12+o]/u[15];var p=u[15];for(o=0;o<3;++o)p+=this.lightPosition[o]*u[4*o+3];for(o=0;o<3;++o){for(var h=u[12+o],f=0;f<3;++f)h+=u[4*f+o]*this.lightPosition[f];c.lightPosition[o]=h/p}if(this.triangleCount>0){var m=this.triShader;m.bind(),m.uniforms=c,this.triangleVAO.bind(),t.drawArrays(t.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}},h.drawPick=function(e){e=e||{};for(var t=this.gl,n=e.model||d,r=e.view||d,a=e.projection||d,i=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)i[0][o]=Math.max(i[0][o],this.clipBounds[0][o]),i[1][o]=Math.min(i[1][o],this.clipBounds[1][o]);this._model=[].slice.call(n),this._view=[].slice.call(r),this._projection=[].slice.call(a),this._resolution=[t.drawingBufferWidth,t.drawingBufferHeight];var s={model:n,view:r,projection:a,clipBounds:i,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},l=this.pickShader;l.bind(),l.uniforms=s,this.triangleCount>0&&(this.triangleVAO.bind(),t.drawArrays(t.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind())},h.pick=function(e){if(!e||e.id!==this.pickId)return null;var t=e.value[0]+256*e.value[1]+65536*e.value[2],n=this.cells[t],r=this.positions[n[1]].slice(0,3),a={position:r,dataCoordinate:r,index:Math.floor(n[1]/48)};return"cone"===this.traceType?a.index=Math.floor(n[1]/48):"streamtube"===this.traceType&&(a.intensity=this.intensity[n[1]],a.velocity=this.vectors[n[1]].slice(0,3),a.divergence=this.vectors[n[1]][3],a.index=t),a},h.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()},e.exports=function(e,t,n){var s=n.shaders;1===arguments.length&&(e=(t=e).gl);var l=function(e,t){var n=r(e,t.meshShader.vertex,t.meshShader.fragment,null,t.meshShader.attributes);return n.attributes.position.location=0,n.attributes.color.location=2,n.attributes.uv.location=3,n.attributes.vector.location=4,n}(e,s),u=function(e,t){var n=r(e,t.pickShader.vertex,t.pickShader.fragment,null,t.pickShader.attributes);return n.attributes.position.location=0,n.attributes.id.location=1,n.attributes.vector.location=4,n}(e,s),d=o(e,c(new Uint8Array([255,255,255,255]),[1,1,4]));d.generateMipmap(),d.minFilter=e.LINEAR_MIPMAP_LINEAR,d.magFilter=e.LINEAR;var h=a(e),f=a(e),m=a(e),g=a(e),y=a(e),b=new p(e,d,l,u,h,f,y,m,g,i(e,[{buffer:h,type:e.FLOAT,size:4},{buffer:y,type:e.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:m,type:e.FLOAT,size:4},{buffer:g,type:e.FLOAT,size:2},{buffer:f,type:e.FLOAT,size:4}]),n.traceType||"cone");return b.update(t),b}},614:function(e,t,n){var r=n(3236),a=r(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * conePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(conePosition, 1.0);\n vec4 t_position = view * conePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = conePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]),i=r(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]),o=r(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float vectorScale, coneScale, coneOffset;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n gl_Position = projection * (view * conePosition);\n f_id = id;\n f_position = position.xyz;\n}\n"]),s=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]);t.meshShader={vertex:a,fragment:i,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},t.pickShader={vertex:o,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(e){e.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},5171:function(e,t,n){var r=n(737);e.exports=function(e){return r[e]}},9165:function(e,t,n){e.exports=function(e){var t=e.gl,n=r(t),o=a(t,[{buffer:n,type:t.FLOAT,size:3,offset:0,stride:40},{buffer:n,type:t.FLOAT,size:4,offset:12,stride:40},{buffer:n,type:t.FLOAT,size:3,offset:28,stride:40}]),l=i(t);l.attributes.position.location=0,l.attributes.color.location=1,l.attributes.offset.location=2;var c=new s(t,n,o,l);return c.update(e),c};var r=n(2762),a=n(8116),i=n(3436),o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(e,t,n,r){this.gl=e,this.shader=r,this.buffer=t,this.vao=n,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var l=s.prototype;function c(e,t){for(var n=0;n<3;++n)e[0][n]=Math.min(e[0][n],t[n]),e[1][n]=Math.max(e[1][n],t[n])}l.isOpaque=function(){return!this.hasAlpha},l.isTransparent=function(){return this.hasAlpha},l.drawTransparent=l.draw=function(e){var t=this.gl,n=this.shader.uniforms;this.shader.bind();var r=n.view=e.view||o,a=n.projection=e.projection||o;n.model=e.model||o,n.clipBounds=this.clipBounds,n.opacity=this.opacity;var i=r[12],s=r[13],l=r[14],c=r[15],u=(e._ortho||!1?2:1)*this.pixelRatio*(a[3]*i+a[7]*s+a[11]*l+a[15]*c)/t.drawingBufferHeight;this.vao.bind();for(var d=0;d<3;++d)t.lineWidth(this.lineWidth[d]*this.pixelRatio),n.capSize=this.capSize[d]*u,this.lineCount[d]&&t.drawArrays(t.LINES,this.lineOffset[d],this.lineCount[d]);this.vao.unbind()};var u=function(){for(var e=new Array(3),t=0;t<3;++t){for(var n=[],r=1;r<=2;++r)for(var a=-1;a<=1;a+=2){var i=[0,0,0];i[(r+t)%3]=a,n.push(i)}e[t]=n}return e}();function d(e,t,n,r){for(var a=u[r],i=0;i<a.length;++i){var o=a[i];e.push(t[0],t[1],t[2],n[0],n[1],n[2],n[3],o[0],o[1],o[2])}return a.length}l.update=function(e){"lineWidth"in(e=e||{})&&(this.lineWidth=e.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),"capSize"in e&&(this.capSize=e.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),this.hasAlpha=!1,"opacity"in e&&(this.opacity=+e.opacity,this.opacity<1&&(this.hasAlpha=!0));var t=e.color||[[0,0,0],[0,0,0],[0,0,0]],n=e.position,r=e.error;if(Array.isArray(t[0])||(t=[t,t,t]),n&&r){var a=[],i=n.length,o=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var s=0;s<3;++s){this.lineOffset[s]=o;e:for(var l=0;l<i;++l){for(var u=n[l],p=0;p<3;++p)if(isNaN(u[p])||!isFinite(u[p]))continue e;var h=r[l],f=t[s];if(Array.isArray(f[0])&&(f=t[l]),3===f.length?f=[f[0],f[1],f[2],1]:4===f.length&&(f=[f[0],f[1],f[2],f[3]],!this.hasAlpha&&f[3]<1&&(this.hasAlpha=!0)),!isNaN(h[0][s])&&!isNaN(h[1][s])){var m;if(h[0][s]<0)(m=u.slice())[s]+=h[0][s],a.push(u[0],u[1],u[2],f[0],f[1],f[2],f[3],0,0,0,m[0],m[1],m[2],f[0],f[1],f[2],f[3],0,0,0),c(this.bounds,m),o+=2+d(a,m,f,s);if(h[1][s]>0)(m=u.slice())[s]+=h[1][s],a.push(u[0],u[1],u[2],f[0],f[1],f[2],f[3],0,0,0,m[0],m[1],m[2],f[0],f[1],f[2],f[3],0,0,0),c(this.bounds,m),o+=2+d(a,m,f,s)}}this.lineCount[s]=o-this.lineOffset[s]}this.buffer.update(a)}},l.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},3436:function(e,t,n){var r=n(3236),a=n(9405),i=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, offset;\nattribute vec4 color;\nuniform mat4 model, view, projection;\nuniform float capSize;\nvarying vec4 fragColor;\nvarying vec3 fragPosition;\n\nvoid main() {\n vec4 worldPosition = model * vec4(position, 1.0);\n worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\n gl_Position = projection * (view * worldPosition);\n fragColor = color;\n fragPosition = position;\n}"]),o=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float opacity;\nvarying vec3 fragPosition;\nvarying vec4 fragColor;\n\nvoid main() {\n if (\n outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||\n fragColor.a * opacity == 0.\n ) discard;\n\n gl_FragColor = opacity * fragColor;\n}"]);e.exports=function(e){return a(e,i,o,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260:function(e,t,n){var r=n(7766);e.exports=function(e,t,n,r){a||(a=e.FRAMEBUFFER_UNSUPPORTED,i=e.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,o=e.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,s=e.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var c=e.getExtension("WEBGL_draw_buffers");if(!l&&c&&function(e,t){var n=e.getParameter(t.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(n+1);for(var r=0;r<=n;++r){for(var a=new Array(n),i=0;i<r;++i)a[i]=e.COLOR_ATTACHMENT0+i;for(i=r;i<n;++i)a[i]=e.NONE;l[r]=a}}(e,c),Array.isArray(t)&&(r=n,n=0|t[1],t=0|t[0]),"number"!=typeof t)throw new Error("gl-fbo: Missing shape parameter");var u=e.getParameter(e.MAX_RENDERBUFFER_SIZE);if(t<0||t>u||n<0||n>u)throw new Error("gl-fbo: Parameters are too large for FBO");var d=1;if("color"in(r=r||{})){if((d=Math.max(0|r.color,0))<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(d>1){if(!c)throw new Error("gl-fbo: Multiple draw buffer extension not supported");if(d>e.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+d+" draw buffers")}}var p=e.UNSIGNED_BYTE,h=e.getExtension("OES_texture_float");if(r.float&&d>0){if(!h)throw new Error("gl-fbo: Context does not support floating point textures");p=e.FLOAT}else r.preferFloat&&d>0&&h&&(p=e.FLOAT);var m=!0;"depth"in r&&(m=!!r.depth);var g=!1;return"stencil"in r&&(g=!!r.stencil),new f(e,t,n,p,d,m,g,c)};var a,i,o,s,l=null;function c(e){return[e.getParameter(e.FRAMEBUFFER_BINDING),e.getParameter(e.RENDERBUFFER_BINDING),e.getParameter(e.TEXTURE_BINDING_2D)]}function u(e,t){e.bindFramebuffer(e.FRAMEBUFFER,t[0]),e.bindRenderbuffer(e.RENDERBUFFER,t[1]),e.bindTexture(e.TEXTURE_2D,t[2])}function d(e){switch(e){case a:throw new Error("gl-fbo: Framebuffer unsupported");case i:throw new Error("gl-fbo: Framebuffer incomplete attachment");case o:throw new Error("gl-fbo: Framebuffer incomplete dimensions");case s:throw new Error("gl-fbo: Framebuffer incomplete missing attachment");default:throw new Error("gl-fbo: Framebuffer failed for unspecified reason")}}function p(e,t,n,a,i,o){if(!a)return null;var s=r(e,t,n,i,a);return s.magFilter=e.NEAREST,s.minFilter=e.NEAREST,s.mipSamples=1,s.bind(),e.framebufferTexture2D(e.FRAMEBUFFER,o,e.TEXTURE_2D,s.handle,0),s}function h(e,t,n,r,a){var i=e.createRenderbuffer();return e.bindRenderbuffer(e.RENDERBUFFER,i),e.renderbufferStorage(e.RENDERBUFFER,r,t,n),e.framebufferRenderbuffer(e.FRAMEBUFFER,a,e.RENDERBUFFER,i),i}function f(e,t,n,r,a,i,o,s){this.gl=e,this._shape=[0|t,0|n],this._destroyed=!1,this._ext=s,this.color=new Array(a);for(var f=0;f<a;++f)this.color[f]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=r,this._useDepth=i,this._useStencil=o;var m=this,g=[0|t,0|n];Object.defineProperties(g,{0:{get:function(){return m._shape[0]},set:function(e){return m.width=e}},1:{get:function(){return m._shape[1]},set:function(e){return m.height=e}}}),this._shapeVector=g,function(e){var t=c(e.gl),n=e.gl,r=e.handle=n.createFramebuffer(),a=e._shape[0],i=e._shape[1],o=e.color.length,s=e._ext,f=e._useStencil,m=e._useDepth,g=e._colorType;n.bindFramebuffer(n.FRAMEBUFFER,r);for(var y=0;y<o;++y)e.color[y]=p(n,a,i,g,n.RGBA,n.COLOR_ATTACHMENT0+y);0===o?(e._color_rb=h(n,a,i,n.RGBA4,n.COLOR_ATTACHMENT0),s&&s.drawBuffersWEBGL(l[0])):o>1&&s.drawBuffersWEBGL(l[o]);var b=n.getExtension("WEBGL_depth_texture");b?f?e.depth=p(n,a,i,b.UNSIGNED_INT_24_8_WEBGL,n.DEPTH_STENCIL,n.DEPTH_STENCIL_ATTACHMENT):m&&(e.depth=p(n,a,i,n.UNSIGNED_SHORT,n.DEPTH_COMPONENT,n.DEPTH_ATTACHMENT)):m&&f?e._depth_rb=h(n,a,i,n.DEPTH_STENCIL,n.DEPTH_STENCIL_ATTACHMENT):m?e._depth_rb=h(n,a,i,n.DEPTH_COMPONENT16,n.DEPTH_ATTACHMENT):f&&(e._depth_rb=h(n,a,i,n.STENCIL_INDEX,n.STENCIL_ATTACHMENT));var v=n.checkFramebufferStatus(n.FRAMEBUFFER);if(v!==n.FRAMEBUFFER_COMPLETE){for(e._destroyed=!0,n.bindFramebuffer(n.FRAMEBUFFER,null),n.deleteFramebuffer(e.handle),e.handle=null,e.depth&&(e.depth.dispose(),e.depth=null),e._depth_rb&&(n.deleteRenderbuffer(e._depth_rb),e._depth_rb=null),y=0;y<e.color.length;++y)e.color[y].dispose(),e.color[y]=null;e._color_rb&&(n.deleteRenderbuffer(e._color_rb),e._color_rb=null),u(n,t),d(v)}u(n,t)}(this)}var m=f.prototype;function g(e,t,n){if(e._destroyed)throw new Error("gl-fbo: Can't resize destroyed FBO");if(e._shape[0]!==t||e._shape[1]!==n){var r=e.gl,a=r.getParameter(r.MAX_RENDERBUFFER_SIZE);if(t<0||t>a||n<0||n>a)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");e._shape[0]=t,e._shape[1]=n;for(var i=c(r),o=0;o<e.color.length;++o)e.color[o].shape=e._shape;e._color_rb&&(r.bindRenderbuffer(r.RENDERBUFFER,e._color_rb),r.renderbufferStorage(r.RENDERBUFFER,r.RGBA4,e._shape[0],e._shape[1])),e.depth&&(e.depth.shape=e._shape),e._depth_rb&&(r.bindRenderbuffer(r.RENDERBUFFER,e._depth_rb),e._useDepth&&e._useStencil?r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,e._shape[0],e._shape[1]):e._useDepth?r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_COMPONENT16,e._shape[0],e._shape[1]):e._useStencil&&r.renderbufferStorage(r.RENDERBUFFER,r.STENCIL_INDEX,e._shape[0],e._shape[1])),r.bindFramebuffer(r.FRAMEBUFFER,e.handle);var s=r.checkFramebufferStatus(r.FRAMEBUFFER);s!==r.FRAMEBUFFER_COMPLETE&&(e.dispose(),u(r,i),d(s)),u(r,i)}}Object.defineProperties(m,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(e){if(Array.isArray(e)||(e=[0|e,0|e]),2!==e.length)throw new Error("gl-fbo: Shape vector must be length 2");var t=0|e[0],n=0|e[1];return g(this,t,n),[t,n]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(e){return g(this,e|=0,this._shape[1]),e},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(e){return e|=0,g(this,this._shape[0],e),e},enumerable:!1}}),m.bind=function(){if(!this._destroyed){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,this.handle),e.viewport(0,0,this._shape[0],this._shape[1])}},m.dispose=function(){if(!this._destroyed){this._destroyed=!0;var e=this.gl;e.deleteFramebuffer(this.handle),this.handle=null,this.depth&&(this.depth.dispose(),this.depth=null),this._depth_rb&&(e.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var t=0;t<this.color.length;++t)this.color[t].dispose(),this.color[t]=null;this._color_rb&&(e.deleteRenderbuffer(this._color_rb),this._color_rb=null)}}},2992:function(e,t,n){var r=n(3387).sprintf,a=n(5171),i=n(1848),o=n(1085);e.exports=function(e,t,n){var s=i(t)||"of unknown name (see npm glsl-shader-name)",l="unknown type";void 0!==n&&(l=n===a.FRAGMENT_SHADER?"fragment":"vertex");for(var c=r("Error compiling %s shader %s:\n",l,s),u=r("%s%s",c,e),d=e.split("\n"),p={},h=0;h<d.length;h++){var f=d[h];if(""!==f&&"\0"!==f){var m=parseInt(f.split(":")[2]);if(isNaN(m))throw new Error(r("Could not parse error: %s",f));p[m]=f}}var g=o(t).split("\n");for(h=0;h<g.length;h++)if(p[h+3]||p[h+2]||p[h+1]){if(c+=g[h]+"\n",p[h+1]){var y=p[h+1];y=y.substr(y.split(":",3).join(":").length+1).trim(),c+=r("^^^ %s\n\n",y)}}return{long:c.trim(),short:u.trim()}}},7319:function(e,t,n){var r=n(3236),a=n(9405),i=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvec4 project(vec3 p) {\n return projection * (view * (model * vec4(p, 1.0)));\n}\n\nvoid main() {\n vec4 startPoint = project(position);\n vec4 endPoint = project(nextPosition);\n\n vec2 A = startPoint.xy / startPoint.w;\n vec2 B = endPoint.xy / endPoint.w;\n\n float clipAngle = atan(\n (B.y - A.y) * screenShape.y,\n (B.x - A.x) * screenShape.x\n );\n\n vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\n sin(clipAngle),\n -cos(clipAngle)\n ) / screenShape;\n\n gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\n\n worldPosition = position;\n pixelArcLength = arcLength;\n fragColor = color;\n}\n"]),o=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D dashTexture;\nuniform float dashScale;\nuniform float opacity;\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if (\n outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\n fragColor.a * opacity == 0.\n ) discard;\n\n float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\n if(dashWeight < 0.5) {\n discard;\n }\n gl_FragColor = fragColor * opacity;\n}\n"]),s=r(["precision highp float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX 1.70141184e38\n#define FLOAT_MIN 1.17549435e-38\n\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl\nvec4 packFloat(float v) {\n float av = abs(v);\n\n //Handle special cases\n if(av < FLOAT_MIN) {\n return vec4(0.0, 0.0, 0.0, 0.0);\n } else if(v > FLOAT_MAX) {\n return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n } else if(v < -FLOAT_MAX) {\n return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n }\n\n vec4 c = vec4(0,0,0,0);\n\n //Compute exponent and mantissa\n float e = floor(log2(av));\n float m = av * pow(2.0, -e) - 1.0;\n\n //Unpack mantissa\n c[1] = floor(128.0 * m);\n m -= c[1] / 128.0;\n c[2] = floor(32768.0 * m);\n m -= c[2] / 32768.0;\n c[3] = floor(8388608.0 * m);\n\n //Unpack exponent\n float ebias = e + 127.0;\n c[0] = floor(ebias / 2.0);\n ebias -= c[0] * 2.0;\n c[1] += floor(ebias) * 128.0;\n\n //Unpack sign bit\n c[0] += 128.0 * step(0.0, -v);\n\n //Scale back to range\n return c / 255.0;\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\n\n gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);\n}"]),l=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];t.createShader=function(e){return a(e,i,o,null,l)},t.createPickShader=function(e){return a(e,i,s,null,l)}},5714:function(e,t,n){e.exports=function(e){var t=e.gl||e.scene&&e.scene.gl,n=d(t);n.attributes.position.location=0,n.attributes.nextPosition.location=1,n.attributes.arcLength.location=2,n.attributes.lineWidth.location=3,n.attributes.color.location=4;var o=p(t);o.attributes.position.location=0,o.attributes.nextPosition.location=1,o.attributes.arcLength.location=2,o.attributes.lineWidth.location=3,o.attributes.color.location=4;for(var s=r(t),l=a(t,[{buffer:s,size:3,offset:0,stride:48},{buffer:s,size:3,offset:12,stride:48},{buffer:s,size:1,offset:24,stride:48},{buffer:s,size:1,offset:28,stride:48},{buffer:s,size:4,offset:32,stride:48}]),u=c(new Array(1024),[256,1,4]),h=0;h<1024;++h)u.data[h]=255;var f=i(t,u);f.wrap=t.REPEAT;var m=new y(t,n,o,s,l,f);return m.update(e),m};var r=n(2762),a=n(8116),i=n(7766),o=new Uint8Array(4),s=new Float32Array(o.buffer);var l=n(2478),c=n(9618),u=n(7319),d=u.createShader,p=u.createPickShader,h=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function f(e,t){for(var n=0,r=0;r<3;++r){var a=e[r]-t[r];n+=a*a}return Math.sqrt(n)}function m(e){for(var t=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],n=0;n<3;++n)t[0][n]=Math.max(e[0][n],t[0][n]),t[1][n]=Math.min(e[1][n],t[1][n]);return t}function g(e,t,n,r){this.arcLength=e,this.position=t,this.index=n,this.dataCoordinate=r}function y(e,t,n,r,a,i){this.gl=e,this.shader=t,this.pickShader=n,this.buffer=r,this.vao=a,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=i,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var b=y.prototype;b.isTransparent=function(){return this.hasAlpha},b.isOpaque=function(){return!this.hasAlpha},b.pickSlots=1,b.setPickBase=function(e){this.pickId=e},b.drawTransparent=b.draw=function(e){if(this.vertexCount){var t=this.gl,n=this.shader,r=this.vao;n.bind(),n.uniforms={model:e.model||h,view:e.view||h,projection:e.projection||h,clipBounds:m(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[t.drawingBufferWidth,t.drawingBufferHeight],pixelRatio:this.pixelRatio},r.bind(),r.draw(t.TRIANGLE_STRIP,this.vertexCount),r.unbind()}},b.drawPick=function(e){if(this.vertexCount){var t=this.gl,n=this.pickShader,r=this.vao;n.bind(),n.uniforms={model:e.model||h,view:e.view||h,projection:e.projection||h,pickId:this.pickId,clipBounds:m(this.clipBounds),screenShape:[t.drawingBufferWidth,t.drawingBufferHeight],pixelRatio:this.pixelRatio},r.bind(),r.draw(t.TRIANGLE_STRIP,this.vertexCount),r.unbind()}},b.update=function(e){var t,n;this.dirty=!0;var r=!!e.connectGaps;"dashScale"in e&&(this.dashScale=e.dashScale),this.hasAlpha=!1,"opacity"in e&&(this.opacity=+e.opacity,this.opacity<1&&(this.hasAlpha=!0));var a=[],i=[],o=[],s=0,u=0,d=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],p=e.position||e.positions;if(p){var h=e.color||e.colors||[0,0,0,1],m=e.lineWidth||1,g=!1;e:for(t=1;t<p.length;++t){var y,b,v,M=p[t-1],x=p[t];for(i.push(s),o.push(M.slice()),n=0;n<3;++n){if(isNaN(M[n])||isNaN(x[n])||!isFinite(M[n])||!isFinite(x[n])){if(!r&&a.length>0){for(var z=0;z<24;++z)a.push(a[a.length-12]);u+=2,g=!0}continue e}d[0][n]=Math.min(d[0][n],M[n],x[n]),d[1][n]=Math.max(d[1][n],M[n],x[n])}Array.isArray(h[0])?(y=h.length>t-1?h[t-1]:h.length>0?h[h.length-1]:[0,0,0,1],b=h.length>t?h[t]:h.length>0?h[h.length-1]:[0,0,0,1]):y=b=h,3===y.length&&(y=[y[0],y[1],y[2],1]),3===b.length&&(b=[b[0],b[1],b[2],1]),!this.hasAlpha&&y[3]<1&&(this.hasAlpha=!0),v=Array.isArray(m)?m.length>t-1?m[t-1]:m.length>0?m[m.length-1]:[0,0,0,1]:m;var _=s;if(s+=f(M,x),g){for(n=0;n<2;++n)a.push(M[0],M[1],M[2],x[0],x[1],x[2],_,v,y[0],y[1],y[2],y[3]);u+=2,g=!1}a.push(M[0],M[1],M[2],x[0],x[1],x[2],_,v,y[0],y[1],y[2],y[3],M[0],M[1],M[2],x[0],x[1],x[2],_,-v,y[0],y[1],y[2],y[3],x[0],x[1],x[2],M[0],M[1],M[2],s,-v,b[0],b[1],b[2],b[3],x[0],x[1],x[2],M[0],M[1],M[2],s,v,b[0],b[1],b[2],b[3]),u+=4}}if(this.buffer.update(a),i.push(s),o.push(p[p.length-1].slice()),this.bounds=d,this.vertexCount=u,this.points=o,this.arcLength=i,"dashes"in e){var A=e.dashes.slice();for(A.unshift(0),t=1;t<A.length;++t)A[t]=A[t-1]+A[t];var O=c(new Array(1024),[256,1,4]);for(t=0;t<256;++t){for(n=0;n<4;++n)O.set(t,0,n,0);1&l.le(A,A[A.length-1]*t/255)?O.set(t,0,0,0):O.set(t,0,0,255)}this.texture.setPixels(O)}},b.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},b.pick=function(e){if(!e||e.id!==this.pickId)return null;var t=function(e,t,n,r){return o[0]=r,o[1]=n,o[2]=t,o[3]=e,s[0]}(e.value[0],e.value[1],e.value[2],0),n=l.le(this.arcLength,t);if(n<0)return null;if(n===this.arcLength.length-1)return new g(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),n);for(var r=this.points[n],a=this.points[Math.min(n+1,this.points.length-1)],i=(t-this.arcLength[n])/(this.arcLength[n+1]-this.arcLength[n]),c=1-i,u=[0,0,0],d=0;d<3;++d)u[d]=c*r[d]+i*a[d];var p=Math.min(i<.5?n:n+1,this.points.length-1);return new g(t,u,p,this.points[p])}},1903:function(e){e.exports=function(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},6864:function(e){e.exports=function(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},9921:function(e){e.exports=function(e){var t=e[0],n=e[1],r=e[2],a=e[3],i=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],d=e[10],p=e[11],h=e[12],f=e[13],m=e[14],g=e[15];return(t*o-n*i)*(d*g-p*m)-(t*s-r*i)*(u*g-p*f)+(t*l-a*i)*(u*m-d*f)+(n*s-r*o)*(c*g-p*h)-(n*l-a*o)*(c*m-d*h)+(r*l-a*s)*(c*f-u*h)}},7399:function(e){e.exports=function(e,t){var n=t[0],r=t[1],a=t[2],i=t[3],o=n+n,s=r+r,l=a+a,c=n*o,u=r*o,d=r*s,p=a*o,h=a*s,f=a*l,m=i*o,g=i*s,y=i*l;return e[0]=1-d-f,e[1]=u+y,e[2]=p-g,e[3]=0,e[4]=u-y,e[5]=1-c-f,e[6]=h+m,e[7]=0,e[8]=p+g,e[9]=h-m,e[10]=1-c-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},6743:function(e){e.exports=function(e,t,n){var r=t[0],a=t[1],i=t[2],o=t[3],s=r+r,l=a+a,c=i+i,u=r*s,d=r*l,p=r*c,h=a*l,f=a*c,m=i*c,g=o*s,y=o*l,b=o*c;return e[0]=1-(h+m),e[1]=d+b,e[2]=p-y,e[3]=0,e[4]=d-b,e[5]=1-(u+m),e[6]=f+g,e[7]=0,e[8]=p+y,e[9]=f-g,e[10]=1-(u+h),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}},7894:function(e){e.exports=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},7608:function(e){e.exports=function(e,t){var n=t[0],r=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=t[9],p=t[10],h=t[11],f=t[12],m=t[13],g=t[14],y=t[15],b=n*s-r*o,v=n*l-a*o,M=n*c-i*o,x=r*l-a*s,z=r*c-i*s,_=a*c-i*l,A=u*m-d*f,O=u*g-p*f,w=u*y-h*f,k=d*g-p*m,T=d*y-h*m,S=p*y-h*g,C=b*S-v*T+M*k+x*w-z*O+_*A;return C?(C=1/C,e[0]=(s*S-l*T+c*k)*C,e[1]=(a*T-r*S-i*k)*C,e[2]=(m*_-g*z+y*x)*C,e[3]=(p*z-d*_-h*x)*C,e[4]=(l*w-o*S-c*O)*C,e[5]=(n*S-a*w+i*O)*C,e[6]=(g*M-f*_-y*v)*C,e[7]=(u*_-p*M+h*v)*C,e[8]=(o*T-s*w+c*A)*C,e[9]=(r*w-n*T-i*A)*C,e[10]=(f*z-m*M+y*b)*C,e[11]=(d*M-u*z-h*b)*C,e[12]=(s*O-o*k-l*A)*C,e[13]=(n*k-r*O+a*A)*C,e[14]=(m*v-f*x-g*b)*C,e[15]=(u*x-d*v+p*b)*C,e):null}},6582:function(e,t,n){var r=n(7894);e.exports=function(e,t,n,a){var i,o,s,l,c,u,d,p,h,f,m=t[0],g=t[1],y=t[2],b=a[0],v=a[1],M=a[2],x=n[0],z=n[1],_=n[2];return Math.abs(m-x)<1e-6&&Math.abs(g-z)<1e-6&&Math.abs(y-_)<1e-6?r(e):(d=m-x,p=g-z,h=y-_,f=1/Math.sqrt(d*d+p*p+h*h),i=v*(h*=f)-M*(p*=f),o=M*(d*=f)-b*h,s=b*p-v*d,(f=Math.sqrt(i*i+o*o+s*s))?(i*=f=1/f,o*=f,s*=f):(i=0,o=0,s=0),l=p*s-h*o,c=h*i-d*s,u=d*o-p*i,(f=Math.sqrt(l*l+c*c+u*u))?(l*=f=1/f,c*=f,u*=f):(l=0,c=0,u=0),e[0]=i,e[1]=l,e[2]=d,e[3]=0,e[4]=o,e[5]=c,e[6]=p,e[7]=0,e[8]=s,e[9]=u,e[10]=h,e[11]=0,e[12]=-(i*m+o*g+s*y),e[13]=-(l*m+c*g+u*y),e[14]=-(d*m+p*g+h*y),e[15]=1,e)}},6760:function(e){e.exports=function(e,t,n){var r=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],p=t[9],h=t[10],f=t[11],m=t[12],g=t[13],y=t[14],b=t[15],v=n[0],M=n[1],x=n[2],z=n[3];return e[0]=v*r+M*s+x*d+z*m,e[1]=v*a+M*l+x*p+z*g,e[2]=v*i+M*c+x*h+z*y,e[3]=v*o+M*u+x*f+z*b,v=n[4],M=n[5],x=n[6],z=n[7],e[4]=v*r+M*s+x*d+z*m,e[5]=v*a+M*l+x*p+z*g,e[6]=v*i+M*c+x*h+z*y,e[7]=v*o+M*u+x*f+z*b,v=n[8],M=n[9],x=n[10],z=n[11],e[8]=v*r+M*s+x*d+z*m,e[9]=v*a+M*l+x*p+z*g,e[10]=v*i+M*c+x*h+z*y,e[11]=v*o+M*u+x*f+z*b,v=n[12],M=n[13],x=n[14],z=n[15],e[12]=v*r+M*s+x*d+z*m,e[13]=v*a+M*l+x*p+z*g,e[14]=v*i+M*c+x*h+z*y,e[15]=v*o+M*u+x*f+z*b,e}},4040:function(e){e.exports=function(e,t,n,r,a,i,o){var s=1/(t-n),l=1/(r-a),c=1/(i-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+n)*s,e[13]=(a+r)*l,e[14]=(o+i)*c,e[15]=1,e}},4772:function(e){e.exports=function(e,t,n,r,a){var i=1/Math.tan(t/2),o=1/(r-a);return e[0]=i/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+r)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*r*o,e[15]=0,e}},6079:function(e){e.exports=function(e,t,n,r){var a,i,o,s,l,c,u,d,p,h,f,m,g,y,b,v,M,x,z,_,A,O,w,k,T=r[0],S=r[1],C=r[2],E=Math.sqrt(T*T+S*S+C*C);return Math.abs(E)<1e-6?null:(T*=E=1/E,S*=E,C*=E,a=Math.sin(n),i=Math.cos(n),o=1-i,s=t[0],l=t[1],c=t[2],u=t[3],d=t[4],p=t[5],h=t[6],f=t[7],m=t[8],g=t[9],y=t[10],b=t[11],v=T*T*o+i,M=S*T*o+C*a,x=C*T*o-S*a,z=T*S*o-C*a,_=S*S*o+i,A=C*S*o+T*a,O=T*C*o+S*a,w=S*C*o-T*a,k=C*C*o+i,e[0]=s*v+d*M+m*x,e[1]=l*v+p*M+g*x,e[2]=c*v+h*M+y*x,e[3]=u*v+f*M+b*x,e[4]=s*z+d*_+m*A,e[5]=l*z+p*_+g*A,e[6]=c*z+h*_+y*A,e[7]=u*z+f*_+b*A,e[8]=s*O+d*w+m*k,e[9]=l*O+p*w+g*k,e[10]=c*O+h*w+y*k,e[11]=u*O+f*w+b*k,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}},5567:function(e){e.exports=function(e,t,n){var r=Math.sin(n),a=Math.cos(n),i=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],d=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*a+c*r,e[5]=o*a+u*r,e[6]=s*a+d*r,e[7]=l*a+p*r,e[8]=c*a-i*r,e[9]=u*a-o*r,e[10]=d*a-s*r,e[11]=p*a-l*r,e}},2408:function(e){e.exports=function(e,t,n){var r=Math.sin(n),a=Math.cos(n),i=t[0],o=t[1],s=t[2],l=t[3],c=t[8],u=t[9],d=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*a-c*r,e[1]=o*a-u*r,e[2]=s*a-d*r,e[3]=l*a-p*r,e[8]=i*r+c*a,e[9]=o*r+u*a,e[10]=s*r+d*a,e[11]=l*r+p*a,e}},7089:function(e){e.exports=function(e,t,n){var r=Math.sin(n),a=Math.cos(n),i=t[0],o=t[1],s=t[2],l=t[3],c=t[4],u=t[5],d=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*a+c*r,e[1]=o*a+u*r,e[2]=s*a+d*r,e[3]=l*a+p*r,e[4]=c*a-i*r,e[5]=u*a-o*r,e[6]=d*a-s*r,e[7]=p*a-l*r,e}},2504:function(e){e.exports=function(e,t,n){var r=n[0],a=n[1],i=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},7656:function(e){e.exports=function(e,t,n){var r,a,i,o,s,l,c,u,d,p,h,f,m=n[0],g=n[1],y=n[2];return t===e?(e[12]=t[0]*m+t[4]*g+t[8]*y+t[12],e[13]=t[1]*m+t[5]*g+t[9]*y+t[13],e[14]=t[2]*m+t[6]*g+t[10]*y+t[14],e[15]=t[3]*m+t[7]*g+t[11]*y+t[15]):(r=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],p=t[9],h=t[10],f=t[11],e[0]=r,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e[6]=c,e[7]=u,e[8]=d,e[9]=p,e[10]=h,e[11]=f,e[12]=r*m+s*g+d*y+t[12],e[13]=a*m+l*g+p*y+t[13],e[14]=i*m+c*g+h*y+t[14],e[15]=o*m+u*g+f*y+t[15]),e}},5665:function(e){e.exports=function(e,t){if(e===t){var n=t[1],r=t[2],a=t[3],i=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=i,e[11]=t[14],e[12]=a,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}},7626:function(e,t,n){var r=n(2642),a=n(9346);function i(e,t){for(var n=[0,0,0,0],r=0;r<4;++r)for(var a=0;a<4;++a)n[a]+=e[4*r+a]*t[r];return n}function o(e,t,n,r,a){for(var o=i(r,i(n,i(t,[e[0],e[1],e[2],1]))),s=0;s<3;++s)o[s]/=o[3];return[.5*a[0]*(1+o[0]),.5*a[1]*(1-o[1])]}function s(e,t){for(var n=[0,0,0],r=0;r<e.length;++r)for(var a=e[r],i=t[r],o=0;o<3;++o)n[o]+=i*a[o];return n}e.exports=function(e,t,n,i,l,c){if(1===e.length)return[0,e[0].slice()];for(var u=new Array(e.length),d=0;d<e.length;++d)u[d]=o(e[d],n,i,l,c);var p=0,h=1/0;for(d=0;d<u.length;++d){for(var f=0,m=0;m<2;++m)f+=Math.pow(u[d][m]-t[m],2);f<h&&(h=f,p=d)}var g=function(e,t){if(2===e.length){for(var n=0,i=0,o=0;o<2;++o)n+=Math.pow(t[o]-e[0][o],2),i+=Math.pow(t[o]-e[1][o],2);return(n=Math.sqrt(n))+(i=Math.sqrt(i))<1e-6?[1,0]:[i/(n+i),n/(i+n)]}if(3===e.length){var s=[0,0];return a(e[0],e[1],e[2],t,s),r(e,s)}return[]}(u,t),y=0;for(d=0;d<3;++d){if(g[d]<-.001||g[d]>1.0001)return null;y+=g[d]}return Math.abs(y-1)>.001?null:[p,s(e,g),g]}},840:function(e,t,n){var r=n(3236),a=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n , view\n , projection\n , inverseModel;\nuniform vec3 eyePosition\n , lightPosition;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n return projection * (view * (model * vec4(p, 1.0)));\n}\n\nvoid main() {\n gl_Position = project(position);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * vec4(position , 1.0);\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n f_color = color;\n f_data = position;\n f_uv = uv;\n}\n"]),i=r(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n , fresnel\n , kambient\n , kdiffuse\n , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (f_color.a == 0.0 ||\n outOfRange(clipBounds[0], clipBounds[1], f_data)\n ) discard;\n\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * f_color.a;\n}\n"]),o=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model, view, projection;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n gl_Position = projection * (view * (model * vec4(position, 1.0)));\n f_color = color;\n f_data = position;\n f_uv = uv;\n}"]),s=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\n\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}"]),l=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\nattribute float pointSize;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0);\n } else {\n gl_Position = projection * (view * (model * vec4(position, 1.0)));\n }\n gl_PointSize = pointSize;\n f_color = color;\n f_uv = uv;\n}"]),c=r(["precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5);\n if(dot(pointR, pointR) > 0.25) {\n discard;\n }\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}"]),u=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n gl_Position = projection * (view * (model * vec4(position, 1.0)));\n f_id = id;\n f_position = position;\n}"]),d=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]),p=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute float pointSize;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0.0, 0.0, 0.0, 0.0);\n } else {\n gl_Position = projection * (view * (model * vec4(position, 1.0)));\n gl_PointSize = pointSize;\n }\n f_id = id;\n f_position = position;\n}"]),h=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\n\nvoid main() {\n gl_Position = projection * (view * (model * vec4(position, 1.0)));\n}"]),f=r(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec3 contourColor;\n\nvoid main() {\n gl_FragColor = vec4(contourColor, 1.0);\n}\n"]);t.meshShader={vertex:a,fragment:i,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},t.wireShader={vertex:o,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},t.pointShader={vertex:l,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},t.pickShader={vertex:u,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},t.pointPickShader={vertex:p,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},t.contourShader={vertex:h,fragment:f,attributes:[{name:"position",type:"vec3"}]}},7201:function(e,t,n){var r=n(9405),a=n(2762),i=n(8116),o=n(7766),s=n(8406),l=n(6760),c=n(7608),u=n(9618),d=n(6729),p=n(7765),h=n(1888),f=n(840),m=n(7626),g=f.meshShader,y=f.wireShader,b=f.pointShader,v=f.pickShader,M=f.pointPickShader,x=f.contourShader,z=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function _(e,t,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g,y,b,v,M,x,_,A,O,w,k){this.gl=e,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=t,this.dirty=!0,this.triShader=n,this.lineShader=r,this.pointShader=a,this.pickShader=i,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleColors=u,this.triangleNormals=p,this.triangleUVs=d,this.triangleIds=c,this.triangleVAO=h,this.triangleCount=0,this.lineWidth=1,this.edgePositions=f,this.edgeColors=g,this.edgeUVs=y,this.edgeIds=m,this.edgeVAO=b,this.edgeCount=0,this.pointPositions=v,this.pointColors=x,this.pointUVs=_,this.pointSizes=A,this.pointIds=M,this.pointVAO=O,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=w,this.contourVAO=k,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=z,this._view=z,this._projection=z,this._resolution=[1,1]}var A=_.prototype;function O(e,t){if(!t||!t.length)return 1;for(var n=0;n<t.length;++n){if(t.length<2)return 1;if(t[n][0]===e)return t[n][1];if(t[n][0]>e&&n>0){var r=(t[n][0]-e)/(t[n][0]-t[n-1][0]);return t[n][1]*(1-r)+r*t[n-1][1]}}return 1}A.isOpaque=function(){return!this.hasAlpha},A.isTransparent=function(){return this.hasAlpha},A.pickSlots=1,A.setPickBase=function(e){this.pickId=e},A.highlight=function(e){if(e&&this.contourEnable){for(var t=p(this.cells,this.intensity,e.intensity),n=t.cells,r=t.vertexIds,a=t.vertexWeights,i=n.length,o=h.mallocFloat32(6*i),s=0,l=0;l<i;++l)for(var c=n[l],u=0;u<2;++u){var d=c[0];2===c.length&&(d=c[u]);for(var f=r[d][0],m=r[d][1],g=a[d],y=1-g,b=this.positions[f],v=this.positions[m],M=0;M<3;++M)o[s++]=g*b[M]+y*v[M]}this.contourCount=s/3|0,this.contourPositions.update(o.subarray(0,s)),h.free(o)}else this.contourCount=0},A.update=function(e){e=e||{};var t=this.gl;this.dirty=!0,"contourEnable"in e&&(this.contourEnable=e.contourEnable),"contourColor"in e&&(this.contourColor=e.contourColor),"lineWidth"in e&&(this.lineWidth=e.lineWidth),"lightPosition"in e&&(this.lightPosition=e.lightPosition),this.hasAlpha=!1,"opacity"in e&&(this.opacity=e.opacity,this.opacity<1&&(this.hasAlpha=!0)),"opacityscale"in e&&(this.opacityscale=e.opacityscale,this.hasAlpha=!0),"ambient"in e&&(this.ambientLight=e.ambient),"diffuse"in e&&(this.diffuseLight=e.diffuse),"specular"in e&&(this.specularLight=e.specular),"roughness"in e&&(this.roughness=e.roughness),"fresnel"in e&&(this.fresnel=e.fresnel),e.texture?(this.texture.dispose(),this.texture=o(t,e.texture)):e.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=t.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=t.LINEAR,this.texture.setPixels(function(e,t){for(var n=d({colormap:e,nshades:256,format:"rgba"}),r=new Uint8Array(1024),a=0;a<256;++a){for(var i=n[a],o=0;o<3;++o)r[4*a+o]=i[o];r[4*a+3]=t?255*O(a/255,t):255*i[3]}return u(r,[256,256,4],[4,0,1])}(e.colormap,this.opacityscale)),this.texture.generateMipmap());var n=e.cells,r=e.positions;if(r&&n){var a=[],i=[],l=[],c=[],p=[],h=[],f=[],m=[],g=[],y=[],b=[],v=[],M=[],x=[];this.cells=n,this.positions=r;var z=e.vertexNormals,_=e.cellNormals,A=void 0===e.vertexNormalsEpsilon?1e-6:e.vertexNormalsEpsilon,w=void 0===e.faceNormalsEpsilon?1e-6:e.faceNormalsEpsilon;e.useFacetNormals&&!_&&(_=s.faceNormals(n,r,w)),!_&&!z&&(z=s.vertexNormals(n,r,A));var k=e.vertexColors,T=e.cellColors,S=e.meshColor||[1,1,1,1],C=e.vertexUVs,E=e.vertexIntensity,q=e.cellUVs,D=e.cellIntensity,R=1/0,L=-1/0;if(!C&&!q)if(E)if(e.vertexIntensityBounds)R=+e.vertexIntensityBounds[0],L=+e.vertexIntensityBounds[1];else for(var I=0;I<E.length;++I){var W=E[I];R=Math.min(R,W),L=Math.max(L,W)}else if(D)if(e.cellIntensityBounds)R=+e.cellIntensityBounds[0],L=+e.cellIntensityBounds[1];else for(I=0;I<D.length;++I){W=D[I];R=Math.min(R,W),L=Math.max(L,W)}else for(I=0;I<r.length;++I){W=r[I][2];R=Math.min(R,W),L=Math.max(L,W)}this.intensity=E||(D||function(e){for(var t=e.length,n=new Array(t),r=0;r<t;++r)n[r]=e[r][2];return n}(r)),this.pickVertex=!(D||T);var N=e.pointSizes,P=e.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(I=0;I<r.length;++I)for(var B=r[I],F=0;F<3;++F)isNaN(B[F])||!isFinite(B[F])||(this.bounds[0][F]=Math.min(this.bounds[0][F],B[F]),this.bounds[1][F]=Math.max(this.bounds[1][F],B[F]));var j=0,U=0,V=0;e:for(I=0;I<n.length;++I){var H=n[I];switch(H.length){case 1:for(B=r[G=H[0]],F=0;F<3;++F)if(isNaN(B[F])||!isFinite(B[F]))continue e;y.push(B[0],B[1],B[2]),Y=k?k[G]:T?T[I]:S,this.opacityscale&&E?i.push(Y[0],Y[1],Y[2],this.opacity*O((E[G]-R)/(L-R),this.opacityscale)):3===Y.length?b.push(Y[0],Y[1],Y[2],this.opacity):(b.push(Y[0],Y[1],Y[2],Y[3]*this.opacity),Y[3]<1&&(this.hasAlpha=!0)),Z=C?C[G]:E?[(E[G]-R)/(L-R),0]:q?q[I]:D?[(D[I]-R)/(L-R),0]:[(B[2]-R)/(L-R),0],v.push(Z[0],Z[1]),N?M.push(N[G]):M.push(P),x.push(I),V+=1;break;case 2:for(F=0;F<2;++F){B=r[G=H[F]];for(var X=0;X<3;++X)if(isNaN(B[X])||!isFinite(B[X]))continue e}for(F=0;F<2;++F){B=r[G=H[F]];h.push(B[0],B[1],B[2]),Y=k?k[G]:T?T[I]:S,this.opacityscale&&E?i.push(Y[0],Y[1],Y[2],this.opacity*O((E[G]-R)/(L-R),this.opacityscale)):3===Y.length?f.push(Y[0],Y[1],Y[2],this.opacity):(f.push(Y[0],Y[1],Y[2],Y[3]*this.opacity),Y[3]<1&&(this.hasAlpha=!0)),Z=C?C[G]:E?[(E[G]-R)/(L-R),0]:q?q[I]:D?[(D[I]-R)/(L-R),0]:[(B[2]-R)/(L-R),0],m.push(Z[0],Z[1]),g.push(I)}U+=1;break;case 3:for(F=0;F<3;++F)for(B=r[G=H[F]],X=0;X<3;++X)if(isNaN(B[X])||!isFinite(B[X]))continue e;for(F=0;F<3;++F){var G,Y,Z,$;B=r[G=H[2-F]];a.push(B[0],B[1],B[2]),(Y=k?k[G]:T?T[I]:S)?this.opacityscale&&E?i.push(Y[0],Y[1],Y[2],this.opacity*O((E[G]-R)/(L-R),this.opacityscale)):3===Y.length?i.push(Y[0],Y[1],Y[2],this.opacity):(i.push(Y[0],Y[1],Y[2],Y[3]*this.opacity),Y[3]<1&&(this.hasAlpha=!0)):i.push(.5,.5,.5,1),Z=C?C[G]:E?[(E[G]-R)/(L-R),0]:q?q[I]:D?[(D[I]-R)/(L-R),0]:[(B[2]-R)/(L-R),0],c.push(Z[0],Z[1]),$=z?z[G]:_[I],l.push($[0],$[1],$[2]),p.push(I)}j+=1}}this.pointCount=V,this.edgeCount=U,this.triangleCount=j,this.pointPositions.update(y),this.pointColors.update(b),this.pointUVs.update(v),this.pointSizes.update(M),this.pointIds.update(new Uint32Array(x)),this.edgePositions.update(h),this.edgeColors.update(f),this.edgeUVs.update(m),this.edgeIds.update(new Uint32Array(g)),this.trianglePositions.update(a),this.triangleColors.update(i),this.triangleUVs.update(c),this.triangleNormals.update(l),this.triangleIds.update(new Uint32Array(p))}},A.drawTransparent=A.draw=function(e){e=e||{};for(var t=this.gl,n=e.model||z,r=e.view||z,a=e.projection||z,i=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)i[0][o]=Math.max(i[0][o],this.clipBounds[0][o]),i[1][o]=Math.min(i[1][o],this.clipBounds[1][o]);var s={model:n,view:r,projection:a,inverseModel:z.slice(),clipBounds:i,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],contourColor:this.contourColor,texture:0};s.inverseModel=c(s.inverseModel,s.model),t.disable(t.CULL_FACE),this.texture.bind(0);var u,d=new Array(16);l(d,s.view,s.model),l(d,s.projection,d),c(d,d);for(o=0;o<3;++o)s.eyePosition[o]=d[12+o]/d[15];var p=d[15];for(o=0;o<3;++o)p+=this.lightPosition[o]*d[4*o+3];for(o=0;o<3;++o){for(var h=d[12+o],f=0;f<3;++f)h+=d[4*f+o]*this.lightPosition[f];s.lightPosition[o]=h/p}this.triangleCount>0&&((u=this.triShader).bind(),u.uniforms=s,this.triangleVAO.bind(),t.drawArrays(t.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount>0&&this.lineWidth>0&&((u=this.lineShader).bind(),u.uniforms=s,this.edgeVAO.bind(),t.lineWidth(this.lineWidth*this.pixelRatio),t.drawArrays(t.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount>0&&((u=this.pointShader).bind(),u.uniforms=s,this.pointVAO.bind(),t.drawArrays(t.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0&&((u=this.contourShader).bind(),u.uniforms=s,this.contourVAO.bind(),t.drawArrays(t.LINES,0,this.contourCount),this.contourVAO.unbind())},A.drawPick=function(e){e=e||{};for(var t=this.gl,n=e.model||z,r=e.view||z,a=e.projection||z,i=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o<3;++o)i[0][o]=Math.max(i[0][o],this.clipBounds[0][o]),i[1][o]=Math.min(i[1][o],this.clipBounds[1][o]);this._model=[].slice.call(n),this._view=[].slice.call(r),this._projection=[].slice.call(a),this._resolution=[t.drawingBufferWidth,t.drawingBufferHeight];var s,l={model:n,view:r,projection:a,clipBounds:i,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount>0&&(this.triangleVAO.bind(),t.drawArrays(t.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),t.lineWidth(this.lineWidth*this.pixelRatio),t.drawArrays(t.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount>0)&&((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),t.drawArrays(t.POINTS,0,this.pointCount),this.pointVAO.unbind())},A.pick=function(e){if(!e||e.id!==this.pickId)return null;for(var t=e.value[0]+256*e.value[1]+65536*e.value[2],n=this.cells[t],r=this.positions,a=new Array(n.length),i=0;i<n.length;++i)a[i]=r[n[i]];var o=e.coord[0],s=e.coord[1];if(!this.pickVertex){var l=this.positions[n[0]],c=this.positions[n[1]],u=this.positions[n[2]],d=[(l[0]+c[0]+u[0])/3,(l[1]+c[1]+u[1])/3,(l[2]+c[2]+u[2])/3];return{_cellCenter:!0,position:[o,s],index:t,cell:n,cellId:t,intensity:this.intensity[t],dataCoordinate:d}}var p=m(a,[o*this.pixelRatio,this._resolution[1]-s*this.pixelRatio],this._model,this._view,this._projection,this._resolution);if(!p)return null;var h=p[2],f=0;for(i=0;i<n.length;++i)f+=h[i]*this.intensity[n[i]];return{position:p[1],index:n[p[0]],cell:n,cellId:t,intensity:f,dataCoordinate:this.positions[n[p[0]]]}},A.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.lineShader.dispose(),this.pointShader.dispose(),this.pickShader.dispose(),this.pointPickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose(),this.contourShader.dispose()},e.exports=function(e,t){if(1===arguments.length&&(e=(t=e).gl),!(e.getExtension("OES_standard_derivatives")||e.getExtension("MOZ_OES_standard_derivatives")||e.getExtension("WEBKIT_OES_standard_derivatives")))throw new Error("derivatives not supported");var n=function(e){var t=r(e,g.vertex,g.fragment);return t.attributes.position.location=0,t.attributes.color.location=2,t.attributes.uv.location=3,t.attributes.normal.location=4,t}(e),s=function(e){var t=r(e,y.vertex,y.fragment);return t.attributes.position.location=0,t.attributes.color.location=2,t.attributes.uv.location=3,t}(e),l=function(e){var t=r(e,b.vertex,b.fragment);return t.attributes.position.location=0,t.attributes.color.location=2,t.attributes.uv.location=3,t.attributes.pointSize.location=4,t}(e),c=function(e){var t=r(e,v.vertex,v.fragment);return t.attributes.position.location=0,t.attributes.id.location=1,t}(e),d=function(e){var t=r(e,M.vertex,M.fragment);return t.attributes.position.location=0,t.attributes.id.location=1,t.attributes.pointSize.location=4,t}(e),p=function(e){var t=r(e,x.vertex,x.fragment);return t.attributes.position.location=0,t}(e),h=o(e,u(new Uint8Array([255,255,255,255]),[1,1,4]));h.generateMipmap(),h.minFilter=e.LINEAR_MIPMAP_LINEAR,h.magFilter=e.LINEAR;var f=a(e),m=a(e),z=a(e),A=a(e),O=a(e),w=i(e,[{buffer:f,type:e.FLOAT,size:3},{buffer:O,type:e.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:m,type:e.FLOAT,size:4},{buffer:z,type:e.FLOAT,size:2},{buffer:A,type:e.FLOAT,size:3}]),k=a(e),T=a(e),S=a(e),C=a(e),E=i(e,[{buffer:k,type:e.FLOAT,size:3},{buffer:C,type:e.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:T,type:e.FLOAT,size:4},{buffer:S,type:e.FLOAT,size:2}]),q=a(e),D=a(e),R=a(e),L=a(e),I=a(e),W=i(e,[{buffer:q,type:e.FLOAT,size:3},{buffer:I,type:e.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:D,type:e.FLOAT,size:4},{buffer:R,type:e.FLOAT,size:2},{buffer:L,type:e.FLOAT,size:1}]),N=a(e),P=new _(e,h,n,s,l,c,d,p,f,O,m,z,A,w,k,C,T,S,E,q,I,D,R,L,W,N,i(e,[{buffer:N,type:e.FLOAT,size:3}]));return P.update(t),P}},4437:function(e,t,n){e.exports=function(e,t){e=e||document.body;var n=[.01,1/0];"distanceLimits"in(t=t||{})&&(n[0]=t.distanceLimits[0],n[1]=t.distanceLimits[1]),"zoomMin"in t&&(n[0]=t.zoomMin),"zoomMax"in t&&(n[1]=t.zoomMax);var c=a({center:t.center||[0,0,0],up:t.up||[0,1,0],eye:t.eye||[0,0,10],mode:t.mode||"orbit",distanceLimits:n}),u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d=0,p=e.clientWidth,h=e.clientHeight,f={keyBindingMode:"rotate",enableWheel:!0,view:c,element:e,delay:t.delay||16,rotateSpeed:t.rotateSpeed||1,zoomSpeed:t.zoomSpeed||1,translateSpeed:t.translateSpeed||1,flipX:!!t.flipX,flipY:!!t.flipY,modes:c.modes,_ortho:t._ortho||t.projection&&"orthographic"===t.projection.type||!1,tick:function(){var t=r(),n=this.delay,a=t-2*n;c.idle(t-n),c.recalcMatrix(a),c.flush(t-(100+2*n));for(var i=!0,o=c.computedMatrix,s=0;s<16;++s)i=i&&u[s]===o[s],u[s]=o[s];var l=e.clientWidth===p&&e.clientHeight===h;return p=e.clientWidth,h=e.clientHeight,i?!l:(d=Math.exp(c.computedRadius[0]),!0)},lookAt:function(e,t,n){c.lookAt(c.lastT(),e,t,n)},rotate:function(e,t,n){c.rotate(c.lastT(),e,t,n)},pan:function(e,t,n){c.pan(c.lastT(),e,t,n)},translate:function(e,t,n){c.translate(c.lastT(),e,t,n)}};return Object.defineProperties(f,{matrix:{get:function(){return c.computedMatrix},set:function(e){return c.setMatrix(c.lastT(),e),c.computedMatrix},enumerable:!0},mode:{get:function(){return c.getMode()},set:function(e){var t=c.computedUp.slice(),n=c.computedEye.slice(),a=c.computedCenter.slice();if(c.setMode(e),"turntable"===e){var i=r();c._active.lookAt(i,n,a,t),c._active.lookAt(i+500,n,a,[0,0,1]),c._active.flush(i)}return c.getMode()},enumerable:!0},center:{get:function(){return c.computedCenter},set:function(e){return c.lookAt(c.lastT(),null,e),c.computedCenter},enumerable:!0},eye:{get:function(){return c.computedEye},set:function(e){return c.lookAt(c.lastT(),e),c.computedEye},enumerable:!0},up:{get:function(){return c.computedUp},set:function(e){return c.lookAt(c.lastT(),null,null,e),c.computedUp},enumerable:!0},distance:{get:function(){return d},set:function(e){return c.setDistance(c.lastT(),e),e},enumerable:!0},distanceLimits:{get:function(){return c.getDistanceLimits(n)},set:function(e){return c.setDistanceLimits(e),e},enumerable:!0}}),e.addEventListener("contextmenu",function(e){return e.preventDefault(),!1}),f._lastX=-1,f._lastY=-1,f._lastMods={shift:!1,control:!1,alt:!1,meta:!1},f.enableMouseListeners=function(){function t(t,n,a,i){var o=f.keyBindingMode;if(!1!==o){var s="rotate"===o,l="pan"===o,u="zoom"===o,p=!!i.control,h=!!i.alt,m=!!i.shift,g=!!(1&t),y=!!(2&t),b=!!(4&t),v=1/e.clientHeight,M=v*(n-f._lastX),x=v*(a-f._lastY),z=f.flipX?1:-1,_=f.flipY?1:-1,A=Math.PI*f.rotateSpeed,O=r();if(-1!==f._lastX&&-1!==f._lastY&&((s&&g&&!p&&!h&&!m||g&&!p&&!h&&m)&&c.rotate(O,z*A*M,-_*A*x,0),(l&&g&&!p&&!h&&!m||y||g&&p&&!h&&!m)&&c.pan(O,-f.translateSpeed*M*d,f.translateSpeed*x*d,0),u&&g&&!p&&!h&&!m||b||g&&!p&&h&&!m)){var w=-f.zoomSpeed*x/window.innerHeight*(O-c.lastT())*100;c.pan(O,0,0,d*(Math.exp(w)-1))}return f._lastX=n,f._lastY=a,f._lastMods=i,!0}}f.mouseListener=i(e,t),e.addEventListener("touchstart",function(n){var r=s(n.changedTouches[0],e);t(0,r[0],r[1],f._lastMods),t(1,r[0],r[1],f._lastMods)},!!l&&{passive:!0}),e.addEventListener("touchmove",function(n){var r=s(n.changedTouches[0],e);t(1,r[0],r[1],f._lastMods),n.preventDefault()},!!l&&{passive:!1}),e.addEventListener("touchend",function(e){t(0,f._lastX,f._lastY,f._lastMods)},!!l&&{passive:!0}),f.wheelListener=o(e,function(e,t){if(!1!==f.keyBindingMode&&f.enableWheel){var n=f.flipX?1:-1,a=f.flipY?1:-1,i=r();if(Math.abs(e)>Math.abs(t))c.rotate(i,0,0,-e*n*Math.PI*f.rotateSpeed/window.innerWidth);else if(!f._ortho){var o=-f.zoomSpeed*a*t/window.innerHeight*(i-c.lastT())/20;c.pan(i,0,0,d*(Math.exp(o)-1))}}},!0)},f.enableMouseListeners(),f};var r=n(3025),a=n(6296),i=n(351),o=n(8512),s=n(24),l=n(7520)},799:function(e,t,n){var r=n(3236),a=n(9405),i=r(["precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n uv = position;\n gl_Position = vec4(position, 0, 1);\n}"]),o=r(["precision mediump float;\n#define GLSLIFY 1\n\nuniform sampler2D accumBuffer;\nvarying vec2 uv;\n\nvoid main() {\n vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\n gl_FragColor = min(vec4(1,1,1,1), accum);\n}"]);e.exports=function(e){return a(e,i,o,null,[{name:"position",type:"vec2"}])}},4100:function(e,t,n){var r=n(4437),a=n(3837),i=n(5445),o=n(4449),s=n(3589),l=n(2260),c=n(7169),u=n(351),d=n(4772),p=n(4040),h=n(799),f=n(9216)({tablet:!0,featureDetect:!0});function m(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function g(e){var t=Math.round(Math.log(Math.abs(e))/Math.log(10));if(t<0){var n=Math.round(Math.pow(10,-t));return Math.ceil(e*n)/n}if(t>0){n=Math.round(Math.pow(10,t));return Math.ceil(e/n)*n}return Math.ceil(e)}function y(e){return"boolean"!=typeof e||e}e.exports={createScene:function(e){(e=e||{}).camera=e.camera||{};var t=e.canvas;if(!t)if(t=document.createElement("canvas"),e.container){e.container.appendChild(t)}else document.body.appendChild(t);var n=e.gl;if(n||(e.glOptions&&(f=!!e.glOptions.preserveDrawingBuffer),n=function(e,t){var n=null;try{(n=e.getContext("webgl",t))||(n=e.getContext("experimental-webgl",t))}catch{return null}return n}(t,e.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:f})),!n)throw new Error("webgl not supported");var b=e.bounds||[[-10,-10,-10],[10,10,10]],v=new m,M=l(n,n.drawingBufferWidth,n.drawingBufferHeight,{preferFloat:!f}),x=h(n),z=e.cameraObject&&!0===e.cameraObject._ortho||e.camera.projection&&"orthographic"===e.camera.projection.type||!1,_={eye:e.camera.eye||[2,0,0],center:e.camera.center||[0,0,0],up:e.camera.up||[0,1,0],zoomMin:e.camera.zoomMax||.1,zoomMax:e.camera.zoomMin||100,mode:e.camera.mode||"turntable",_ortho:z},A=e.axes||{},O=a(n,A);O.enable=!A.disable;var w=e.spikes||{},k=o(n,w),T=[],S=[],C=[],E=[],q=!0,D=!0,R=new Array(16),L=new Array(16),I={view:null,projection:R,model:L,_ortho:!1},W=(D=!0,[n.drawingBufferWidth,n.drawingBufferHeight]),N=e.cameraObject||r(t,_),P={gl:n,contextLost:!1,pixelRatio:e.pixelRatio||1,canvas:t,selection:v,camera:N,axes:O,axesPixels:null,spikes:k,bounds:b,objects:T,shape:W,aspect:e.aspectRatio||[1,1,1],pickRadius:e.pickRadius||10,zNear:e.zNear||.01,zFar:e.zFar||1e3,fovy:e.fovy||Math.PI/4,clearColor:e.clearColor||[0,0,0,0],autoResize:y(e.autoResize),autoBounds:y(e.autoBounds),autoScale:!!e.autoScale,autoCenter:y(e.autoCenter),clipToBounds:y(e.clipToBounds),snapToData:!!e.snapToData,onselect:e.onselect||null,onrender:e.onrender||null,onclick:e.onclick||null,cameraParams:I,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(e){this.aspect[0]=e.x,this.aspect[1]=e.y,this.aspect[2]=e.z,D=!0},setBounds:function(e,t){this.bounds[0][e]=t.min,this.bounds[1][e]=t.max},setClearColor:function(e){this.clearColor=e},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},B=[n.drawingBufferWidth/P.pixelRatio|0,n.drawingBufferHeight/P.pixelRatio|0];function F(){if(!P._stopped&&P.autoResize){var e=t.parentNode,n=1,r=1;e&&e!==document.body?(n=e.clientWidth,r=e.clientHeight):(n=window.innerWidth,r=window.innerHeight);var a=0|Math.ceil(n*P.pixelRatio),i=0|Math.ceil(r*P.pixelRatio);if(a!==t.width||i!==t.height){t.width=a,t.height=i;var o=t.style;o.position=o.position||"absolute",o.left="0px",o.top="0px",o.width=n+"px",o.height=r+"px",q=!0}}}function j(){for(var e=T.length,t=E.length,r=0;r<t;++r)C[r]=0;e:for(r=0;r<e;++r){var a=T[r],i=a.pickSlots;if(i){for(var o=0;o<t;++o)if(C[o]+i<255){S[r]=o,a.setPickBase(C[o]+1),C[o]+=i;continue e}var l=s(n,W);S[r]=t,E.push(l),C.push(i),a.setPickBase(1),t+=1}else S[r]=-1}for(;t>0&&0===C[t-1];)C.pop(),E.pop().dispose()}function U(){if(P.contextLost)return!0;n.isContextLost()&&(P.contextLost=!0,P.mouseListener.enabled=!1,P.selection.object=null,P.oncontextloss&&P.oncontextloss())}P.autoResize&&F(),window.addEventListener("resize",F),P.update=function(e){P._stopped||(e=e||{},q=!0,D=!0)},P.add=function(e){P._stopped||(e.axes=O,T.push(e),S.push(-1),q=!0,D=!0,j())},P.remove=function(e){if(!P._stopped){var t=T.indexOf(e);t<0||(T.splice(t,1),S.pop(),q=!0,D=!0,j())}},P.dispose=function(){if(!P._stopped&&(P._stopped=!0,window.removeEventListener("resize",F),t.removeEventListener("webglcontextlost",U),P.mouseListener.enabled=!1,!P.contextLost)){O.dispose(),k.dispose();for(var e=0;e<T.length;++e)T[e].dispose();M.dispose();for(e=0;e<E.length;++e)E[e].dispose();x.dispose(),n=null,O=null,k=null,T=[]}},P._mouseRotating=!1,P._prevButtons=0,P.enableMouseListeners=function(){P.mouseListener=u(t,function(e,t,n){if(!P._stopped){var r=E.length,a=T.length,i=v.object;v.distance=1/0,v.mouse[0]=t,v.mouse[1]=n,v.object=null,v.screen=null,v.dataCoordinate=v.dataPosition=null;var o=!1;if(e&&P._prevButtons)P._mouseRotating=!0;else{P._mouseRotating&&(D=!0),P._mouseRotating=!1;for(var s=0;s<r;++s){var l=E[s].query(t,B[1]-n-1,P.pickRadius);if(l){if(l.distance>v.distance)continue;for(var c=0;c<a;++c){var u=T[c];if(S[c]===s){var d=u.pick(l);d&&(v.buttons=e,v.screen=l.coord,v.distance=l.distance,v.object=u,v.index=d.distance,v.dataPosition=d.position,v.dataCoordinate=d.dataCoordinate,v.data=d,o=!0)}}}}}i&&i!==v.object&&(i.highlight&&i.highlight(null),q=!0),v.object&&(v.object.highlight&&v.object.highlight(v.data),q=!0),(o=o||v.object!==i)&&P.onselect&&P.onselect(v),1&e&&!(1&P._prevButtons)&&P.onclick&&P.onclick(v),P._prevButtons=e}})},t.addEventListener("webglcontextlost",U);var V=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],H=[V[0].slice(),V[1].slice()];function X(){if(!U()){F();var e=P.camera.tick();I.view=P.camera.matrix,q=q||e,D=D||e,O.pixelRatio=P.pixelRatio,k.pixelRatio=P.pixelRatio;var t=T.length,r=V[0],a=V[1];r[0]=r[1]=r[2]=1/0,a[0]=a[1]=a[2]=-1/0;for(var o=0;o<t;++o){(C=T[o]).pixelRatio=P.pixelRatio,C.axes=P.axes,q=q||!!C.dirty,D=D||!!C.dirty;var s=C.bounds;if(s)for(var l=s[0],u=s[1],h=0;h<3;++h)r[h]=Math.min(r[h],l[h]),a[h]=Math.max(a[h],u[h])}var f=P.bounds;if(P.autoBounds)for(h=0;h<3;++h){if(a[h]<r[h])r[h]=-1,a[h]=1;else{r[h]===a[h]&&(r[h]-=1,a[h]+=1);var m=.05*(a[h]-r[h]);r[h]=r[h]-m,a[h]=a[h]+m}f[0][h]=r[h],f[1][h]=a[h]}var y=!1;for(h=0;h<3;++h)y=y||H[0][h]!==f[0][h]||H[1][h]!==f[1][h],H[0][h]=f[0][h],H[1][h]=f[1][h];if(D=D||y,q=q||y){if(y){var b=[0,0,0];for(o=0;o<3;++o)b[o]=g((f[1][o]-f[0][o])/10);O.autoTicks?O.update({bounds:f,tickSpacing:b}):O.update({bounds:f})}var _=n.drawingBufferWidth,A=n.drawingBufferHeight;W[0]=_,W[1]=A,B[0]=0|Math.max(_/P.pixelRatio,1),B[1]=0|Math.max(A/P.pixelRatio,1),function(e,t){var n=e.bounds,r=e.cameraParams,a=r.projection,i=r.model,o=e.gl.drawingBufferWidth,s=e.gl.drawingBufferHeight,l=e.zNear,c=e.zFar,u=e.fovy,h=o/s;t?(p(a,-h,h,-1,1,l,c),r._ortho=!0):(d(a,u,h,l,c),r._ortho=!1);for(var f=0;f<16;++f)i[f]=0;i[15]=1;var m=0;for(f=0;f<3;++f)m=Math.max(m,n[1][f]-n[0][f]);for(f=0;f<3;++f)e.autoScale?i[5*f]=e.aspect[f]/(n[1][f]-n[0][f]):i[5*f]=1/m,e.autoCenter&&(i[12+f]=.5*-i[5*f]*(n[0][f]+n[1][f]))}(P,z);for(o=0;o<t;++o){(C=T[o]).axesBounds=f,P.clipToBounds&&(C.clipBounds=f)}v.object&&(P.snapToData?k.position=v.dataCoordinate:k.position=v.dataPosition,k.bounds=f),D&&(D=!1,function(){if(!U()){n.colorMask(!0,!0,!0,!0),n.depthMask(!0),n.disable(n.BLEND),n.enable(n.DEPTH_TEST),n.depthFunc(n.LEQUAL);for(var e=T.length,t=E.length,r=0;r<t;++r){var a=E[r];a.shape=B,a.begin();for(var i=0;i<e;++i)if(S[i]===r){var o=T[i];o.drawPick&&(o.pixelRatio=1,o.drawPick(I))}a.end()}}}()),P.axesPixels=i(P.axes,I,_,A),P.onrender&&P.onrender(),n.bindFramebuffer(n.FRAMEBUFFER,null),n.viewport(0,0,_,A),P.clearRGBA(),n.depthMask(!0),n.colorMask(!0,!0,!0,!0),n.enable(n.DEPTH_TEST),n.depthFunc(n.LEQUAL),n.disable(n.BLEND),n.disable(n.CULL_FACE);var w=!1;O.enable&&(w=w||O.isTransparent(),O.draw(I)),k.axes=O,v.object&&k.draw(I),n.disable(n.CULL_FACE);for(o=0;o<t;++o){(C=T[o]).axes=O,C.pixelRatio=P.pixelRatio,C.isOpaque&&C.isOpaque()&&C.draw(I),C.isTransparent&&C.isTransparent()&&(w=!0)}if(w){M.shape=W,M.bind(),n.clear(n.DEPTH_BUFFER_BIT),n.colorMask(!1,!1,!1,!1),n.depthMask(!0),n.depthFunc(n.LESS),O.enable&&O.isTransparent()&&O.drawTransparent(I);for(o=0;o<t;++o){(C=T[o]).isOpaque&&C.isOpaque()&&C.draw(I)}n.enable(n.BLEND),n.blendEquation(n.FUNC_ADD),n.blendFunc(n.ONE,n.ONE_MINUS_SRC_ALPHA),n.colorMask(!0,!0,!0,!0),n.depthMask(!1),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),O.isTransparent()&&O.drawTransparent(I);for(o=0;o<t;++o){var C;(C=T[o]).isTransparent&&C.isTransparent()&&C.drawTransparent(I)}n.bindFramebuffer(n.FRAMEBUFFER,null),n.blendFunc(n.ONE,n.ONE_MINUS_SRC_ALPHA),n.disable(n.DEPTH_TEST),x.bind(),M.color[0].bind(0),x.uniforms.accumBuffer=0,c(n),n.disable(n.BLEND)}q=!1;for(o=0;o<t;++o)T[o].dirty=!1}}}return P.enableMouseListeners(),function e(){P._stopped||P.contextLost||(X(),requestAnimationFrame(e))}(),P.redraw=function(){P._stopped||(q=!0,X())},P},createCamera:r}},783:function(e){e.exports=function(e,t,n,r){var a,i,o,s,l,c=t[0],u=t[1],d=t[2],p=t[3],h=n[0],f=n[1],m=n[2],g=n[3];return(i=c*h+u*f+d*m+p*g)<0&&(i=-i,h=-h,f=-f,m=-m,g=-g),1-i>1e-6?(a=Math.acos(i),o=Math.sin(a),s=Math.sin((1-r)*a)/o,l=Math.sin(r*a)/o):(s=1-r,l=r),e[0]=s*c+l*h,e[1]=s*u+l*f,e[2]=s*d+l*m,e[3]=s*p+l*g,e}},5964:function(e){e.exports=function(e){return e||0===e?e.toString():""}},9366:function(e,t,n){var r=n(4359);e.exports=function(e,t,n){var i=[t.style,t.weight,t.variant,t.family].join("_"),o=a[i];if(o||(o=a[i]={}),e in o)return o[e];var s={textAlign:"center",textBaseline:"middle",lineHeight:1,font:t.family,fontStyle:t.style,fontWeight:t.weight,fontVariant:t.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},triangles:!0},l=r(e,s);s.triangles=!1;var c,u,d=r(e,s);if(n&&1!==n){for(c=0;c<l.positions.length;++c)for(u=0;u<l.positions[c].length;++u)l.positions[c][u]/=n;for(c=0;c<d.positions.length;++c)for(u=0;u<d.positions[c].length;++u)d.positions[c][u]/=n}var p=[[1/0,1/0],[-1/0,-1/0]],h=d.positions.length;for(c=0;c<h;++c){var f=d.positions[c];for(u=0;u<2;++u)p[0][u]=Math.min(p[0][u],f[u]),p[1][u]=Math.max(p[1][u],f[u])}return o[e]=[l,d,p]};var a={}},1283:function(e,t,n){var r=n(9405),a=n(3236),i=a(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float scale = 1.0;\n if(distance(highlightId, id) < 0.0001) {\n scale = highlightScale;\n }\n\n vec4 worldPosition = model * vec4(position, 1);\n vec4 viewPosition = view * worldPosition;\n viewPosition = viewPosition / viewPosition.w;\n vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n gl_Position = clipPosition;\n interpColor = color;\n pickId = id;\n dataCoordinate = position;\n }\n}"]),o=a(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float highlightScale, pixelRatio;\nuniform vec4 highlightId;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float scale = pixelRatio;\n if(distance(highlightId.bgr, id.bgr) < 0.001) {\n scale *= highlightScale;\n }\n\n vec4 worldPosition = model * vec4(position, 1.0);\n vec4 viewPosition = view * worldPosition;\n vec4 clipPosition = projection * viewPosition;\n clipPosition /= clipPosition.w;\n\n gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\n interpColor = color;\n pickId = id;\n dataCoordinate = position;\n }\n}"]),s=a(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform float highlightScale;\nuniform vec4 highlightId;\nuniform vec3 axes[2];\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float scale, pixelRatio;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float lscale = pixelRatio * scale;\n if(distance(highlightId, id) < 0.0001) {\n lscale *= highlightScale;\n }\n\n vec4 clipCenter = projection * (view * (model * vec4(position, 1)));\n vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\n vec4 clipPosition = projection * (view * (model * vec4(dataPosition, 1)));\n\n gl_Position = clipPosition;\n interpColor = color;\n pickId = id;\n dataCoordinate = dataPosition;\n }\n}\n"]),l=a(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float opacity;\n\nvarying vec4 interpColor;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (\n outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) ||\n interpColor.a * opacity == 0.\n ) discard;\n gl_FragColor = interpColor * opacity;\n}\n"]),c=a(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float pickGroup;\n\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\n\n gl_FragColor = vec4(pickGroup, pickId.bgr);\n}"]),u=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],d={vertex:i,fragment:l,attributes:u},p={vertex:o,fragment:l,attributes:u},h={vertex:s,fragment:l,attributes:u},f={vertex:i,fragment:c,attributes:u},m={vertex:o,fragment:c,attributes:u},g={vertex:s,fragment:c,attributes:u};function y(e,t){var n=r(e,t),a=n.attributes;return a.position.location=0,a.color.location=1,a.glyph.location=2,a.id.location=3,n}t.createPerspective=function(e){return y(e,d)},t.createOrtho=function(e){return y(e,p)},t.createProject=function(e){return y(e,h)},t.createPickPerspective=function(e){return y(e,f)},t.createPickOrtho=function(e){return y(e,m)},t.createPickProject=function(e){return y(e,g)}},8418:function(e,t,n){var r=n(5219),a=n(2762),i=n(8116),o=n(1888),s=n(6760),l=n(1283),c=n(9366),u=n(5964),d=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],p=ArrayBuffer,h=DataView;function f(e){return Array.isArray(e)||function(e){return p.isView(e)&&!(e instanceof h)}(e)}function m(e,t){var n=e[0],r=e[1],a=e[2],i=e[3];return e[0]=t[0]*n+t[4]*r+t[8]*a+t[12]*i,e[1]=t[1]*n+t[5]*r+t[9]*a+t[13]*i,e[2]=t[2]*n+t[6]*r+t[10]*a+t[14]*i,e[3]=t[3]*n+t[7]*r+t[11]*a+t[15]*i,e}function g(e,t,n,r){return m(r,r),m(r,r),m(r,r)}function y(e,t){this.index=e,this.dataCoordinate=this.position=t}function b(e){return!0===e||e>1?1:e}function v(e,t,n,r,a,i,o,s,l,c,u,d){this.gl=e,this.pixelRatio=1,this.shader=t,this.orthoShader=n,this.projectShader=r,this.pointBuffer=a,this.colorBuffer=i,this.glyphBuffer=o,this.idBuffer=s,this.vao=l,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=c,this.pickOrthoShader=u,this.pickProjectShader=d,this.points=[],this._selectResult=new y(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}e.exports=function(e){var t=e.gl,n=l.createPerspective(t),r=l.createOrtho(t),o=l.createProject(t),s=l.createPickPerspective(t),c=l.createPickOrtho(t),u=l.createPickProject(t),d=a(t),p=a(t),h=a(t),f=a(t),m=i(t,[{buffer:d,size:3,type:t.FLOAT},{buffer:p,size:4,type:t.FLOAT},{buffer:h,size:2,type:t.FLOAT},{buffer:f,size:4,type:t.UNSIGNED_BYTE,normalized:!0}]),g=new v(t,n,r,o,d,p,h,f,m,s,c,u);return g.update(e),g};var M=v.prototype;M.pickSlots=1,M.setPickBase=function(e){this.pickId=e},M.isTransparent=function(){if(this.hasAlpha)return!0;for(var e=0;e<3;++e)if(this.axesProject[e]&&this.projectHasAlpha)return!0;return!1},M.isOpaque=function(){if(!this.hasAlpha)return!0;for(var e=0;e<3;++e)if(this.axesProject[e]&&!this.projectHasAlpha)return!0;return!1};var x=[0,0],z=[0,0,0],_=[0,0,0],A=[0,0,0,1],O=[0,0,0,1],w=d.slice(),k=[0,0,0],T=[[0,0,0],[0,0,0]];function S(e){return e[0]=e[1]=e[2]=0,e}function C(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=1,e}function E(e,t,n,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[n]=r,e}function q(e,t,n,r){var a,i=t.axesProject,o=t.gl,l=e.uniforms,c=n.model||d,u=n.view||d,p=n.projection||d,h=t.axesBounds,f=function(e){for(var t=T,n=0;n<2;++n)for(var r=0;r<3;++r)t[n][r]=Math.max(Math.min(e[n][r],1e8),-1e8);return t}(t.clipBounds);a=t.axes&&t.axes.lastCubeProps?t.axes.lastCubeProps.axis:[1,1,1],x[0]=2/o.drawingBufferWidth,x[1]=2/o.drawingBufferHeight,e.bind(),l.view=u,l.projection=p,l.screenSize=x,l.highlightId=t.highlightId,l.highlightScale=t.highlightScale,l.clipBounds=f,l.pickGroup=t.pickId/255,l.pixelRatio=r;for(var m=0;m<3;++m)if(i[m]){l.scale=t.projectScale[m],l.opacity=t.projectOpacity[m];for(var y=w,b=0;b<16;++b)y[b]=0;for(b=0;b<4;++b)y[5*b]=1;y[5*m]=0,a[m]<0?y[12+m]=h[0][m]:y[12+m]=h[1][m],s(y,c,y),l.model=y;var v=(m+1)%3,M=(m+2)%3,q=S(z),D=S(_);q[v]=1,D[M]=1;var R=g(0,0,0,C(A,q)),L=g(0,0,0,C(O,D));if(Math.abs(R[1])>Math.abs(L[1])){var I=R;R=L,L=I,I=q,q=D,D=I;var W=v;v=M,M=W}R[0]<0&&(q[v]=-1),L[1]>0&&(D[M]=-1);var N=0,P=0;for(b=0;b<4;++b)N+=Math.pow(c[4*v+b],2),P+=Math.pow(c[4*M+b],2);q[v]/=Math.sqrt(N),D[M]/=Math.sqrt(P),l.axes[0]=q,l.axes[1]=D,l.fragClipBounds[0]=E(k,f[0],m,-1e8),l.fragClipBounds[1]=E(k,f[1],m,1e8),t.vao.bind(),t.vao.draw(o.TRIANGLES,t.vertexCount),t.lineWidth>0&&(o.lineWidth(t.lineWidth*r),t.vao.draw(o.LINES,t.lineVertexCount,t.vertexCount)),t.vao.unbind()}}var D=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function R(e,t,n,r,a,i,o){var s=n.gl;if((i===n.projectHasAlpha||o)&&q(t,n,r,a),i===n.hasAlpha||o){e.bind();var l=e.uniforms;l.model=r.model||d,l.view=r.view||d,l.projection=r.projection||d,x[0]=2/s.drawingBufferWidth,x[1]=2/s.drawingBufferHeight,l.screenSize=x,l.highlightId=n.highlightId,l.highlightScale=n.highlightScale,l.fragClipBounds=D,l.clipBounds=n.axes.bounds,l.opacity=n.opacity,l.pickGroup=n.pickId/255,l.pixelRatio=a,n.vao.bind(),n.vao.draw(s.TRIANGLES,n.vertexCount),n.lineWidth>0&&(s.lineWidth(n.lineWidth*a),n.vao.draw(s.LINES,n.lineVertexCount,n.vertexCount)),n.vao.unbind()}}function L(e,t,n,a){var i;i=f(e)?t<e.length?e[t]:void 0:e,i=u(i);var o=!0;r(i)&&(i="▼",o=!1),n||(n={});var s=n.family;f(s)&&(s=s[t]),s||(s="normal");var l=n.weight;f(l)&&(l=l[t]),l||(l="normal");var d=n.style;f(d)&&(d=d[t]),d||(d="normal");var p=n.variant;f(p)&&(p=p[t]),p||(p="normal");var h=c(i,{family:s,weight:l,style:d,variant:p},a);return{mesh:(h=c(i,n,a))[0],lines:h[1],bounds:h[2],visible:o}}M.draw=function(e){R(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,e,this.pixelRatio,!1,!1)},M.drawTransparent=function(e){R(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,e,this.pixelRatio,!0,!1)},M.drawPick=function(e){R(this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader,this.pickProjectShader,this,e,1,!0,!0)},M.pick=function(e){if(!e||e.id!==this.pickId)return null;var t=e.value[2]+(e.value[1]<<8)+(e.value[0]<<16);if(t>=this.pointCount||t<0)return null;var n=this.points[t],r=this._selectResult;r.index=t;for(var a=0;a<3;++a)r.position[a]=r.dataCoordinate[a]=n[a];return r},M.highlight=function(e){if(e){var t=e.index,n=255&t,r=t>>8&255,a=t>>16&255;this.highlightId=[n/255,r/255,a/255,0]}else this.highlightId=[1,1,1,1]},M.update=function(e){if("perspective"in(e=e||{})&&(this.useOrtho=!e.perspective),"orthographic"in e&&(this.useOrtho=!!e.orthographic),"lineWidth"in e&&(this.lineWidth=e.lineWidth),"project"in e)if(f(e.project))this.axesProject=e.project;else{var t=!!e.project;this.axesProject=[t,t,t]}if("projectScale"in e)if(f(e.projectScale))this.projectScale=e.projectScale.slice();else{var n=+e.projectScale;this.projectScale=[n,n,n]}if(this.projectHasAlpha=!1,"projectOpacity"in e){if(f(e.projectOpacity))this.projectOpacity=e.projectOpacity.slice();else{n=+e.projectOpacity;this.projectOpacity=[n,n,n]}for(var r=0;r<3;++r)this.projectOpacity[r]=b(this.projectOpacity[r]),this.projectOpacity[r]<1&&(this.projectHasAlpha=!0)}this.hasAlpha=!1,"opacity"in e&&(this.opacity=b(e.opacity),this.opacity<1&&(this.hasAlpha=!0)),this.dirty=!0;var a,i,s=e.position,l={family:e.font||"normal",style:e.fontStyle||"normal",weight:e.fontWeight||"normal",variant:e.fontVariant||"normal"},c=e.alignment||[0,0];if(2===c.length)a=c[0],i=c[1];else{a=[],i=[];for(r=0;r<c.length;++r)a[r]=c[r][0],i[r]=c[r][1]}var u=[1/0,1/0,1/0],d=[-1/0,-1/0,-1/0],p=e.glyph,h=e.color,m=e.size,g=e.angle,y=e.lineColor,v=-1,M=0,x=0,z=0;if(s.length){z=s.length;e:for(r=0;r<z;++r){for(var _=s[r],A=0;A<3;++A)if(isNaN(_[A])||!isFinite(_[A]))continue e;var O=(B=L(p,r,l,this.pixelRatio)).mesh,w=B.lines,k=B.bounds;M+=3*O.cells.length,x+=2*w.edges.length}}var T=M+x,S=o.mallocFloat(3*T),C=o.mallocFloat(4*T),E=o.mallocFloat(2*T),q=o.mallocUint32(T);if(T>0){var D=0,R=M,I=[0,0,0,1],W=[0,0,0,1],N=f(h)&&f(h[0]),P=f(y)&&f(y[0]);e:for(r=0;r<z;++r){v+=1;for(_=s[r],A=0;A<3;++A){if(isNaN(_[A])||!isFinite(_[A]))continue e;d[A]=Math.max(d[A],_[A]),u[A]=Math.min(u[A],_[A])}O=(B=L(p,r,l,this.pixelRatio)).mesh,w=B.lines,k=B.bounds;var B,F=B.visible;if(F)if(f(h)){if(3===(j=N?r<h.length?h[r]:[0,0,0,0]:h).length){for(A=0;A<3;++A)I[A]=j[A];I[3]=1}else if(4===j.length){for(A=0;A<4;++A)I[A]=j[A];!this.hasAlpha&&j[3]<1&&(this.hasAlpha=!0)}}else I[0]=I[1]=I[2]=0,I[3]=1;else I=[1,1,1,0];if(F)if(f(y)){var j;if(3===(j=P?r<y.length?y[r]:[0,0,0,0]:y).length){for(A=0;A<3;++A)W[A]=j[A];W[A]=1}else if(4===j.length){for(A=0;A<4;++A)W[A]=j[A];!this.hasAlpha&&j[3]<1&&(this.hasAlpha=!0)}}else W[0]=W[1]=W[2]=0,W[3]=1;else W=[1,1,1,0];var U=.5;F?f(m)?U=r<m.length?+m[r]:12:m?U=+m:this.useOrtho&&(U=12):U=0;var V=0;f(g)?V=r<g.length?+g[r]:0:g&&(V=+g);var H=Math.cos(V),X=Math.sin(V);for(_=s[r],A=0;A<3;++A)d[A]=Math.max(d[A],_[A]),u[A]=Math.min(u[A],_[A]);var G=a,Y=i;G=0;f(a)?G=r<a.length?a[r]:0:a&&(G=a);Y=0;f(i)?Y=r<i.length?i[r]:0:i&&(Y=i);var Z=[G*=G>0?1-k[0][0]:G<0?1+k[1][0]:1,Y*=Y>0?1-k[0][1]:Y<0?1+k[1][1]:1],$=O.cells||[],J=O.positions||[];for(A=0;A<$.length;++A)for(var Q=$[A],K=0;K<3;++K){for(var ee=0;ee<3;++ee)S[3*D+ee]=_[ee];for(ee=0;ee<4;++ee)C[4*D+ee]=I[ee];q[D]=v;var te=J[Q[K]];E[2*D]=U*(H*te[0]-X*te[1]+Z[0]),E[2*D+1]=U*(X*te[0]+H*te[1]+Z[1]),D+=1}for($=w.edges,J=w.positions,A=0;A<$.length;++A)for(Q=$[A],K=0;K<2;++K){for(ee=0;ee<3;++ee)S[3*R+ee]=_[ee];for(ee=0;ee<4;++ee)C[4*R+ee]=W[ee];q[R]=v;te=J[Q[K]];E[2*R]=U*(H*te[0]-X*te[1]+Z[0]),E[2*R+1]=U*(X*te[0]+H*te[1]+Z[1]),R+=1}}}this.bounds=[u,d],this.points=s,this.pointCount=s.length,this.vertexCount=M,this.lineVertexCount=x,this.pointBuffer.update(S),this.colorBuffer.update(C),this.glyphBuffer.update(E),this.idBuffer.update(q),o.free(S),o.free(C),o.free(E),o.free(q)},M.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()}},3589:function(e,t,n){e.exports=function(e,t){var n=t[0],i=t[1],o=r(e,n,i,{}),s=a.mallocUint8(n*i*4);return new l(e,o,s)};var r=n(2260),a=n(1888),i=n(9618),o=n(8828).nextPow2;function s(e,t,n,r,a){this.coord=[e,t],this.id=n,this.value=r,this.distance=a}function l(e,t,n){this.gl=e,this.fbo=t,this.buffer=n,this._readTimeout=null;var r=this;this._readCallback=function(){r.gl&&(t.bind(),e.readPixels(0,0,t.shape[0],t.shape[1],e.RGBA,e.UNSIGNED_BYTE,r.buffer),r._readTimeout=null)}}var c=l.prototype;Object.defineProperty(c,"shape",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(e){if(this.gl){this.fbo.shape=e;var t=this.fbo.shape[0],n=this.fbo.shape[1];if(n*t*4>this.buffer.length){a.free(this.buffer);for(var r=this.buffer=a.mallocUint8(o(n*t*4)),i=0;i<n*t*4;++i)r[i]=255}return e}}}),c.begin=function(){var e=this.gl;this.shape;e&&(this.fbo.bind(),e.clearColor(1,1,1,1),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT))},c.end=function(){var e=this.gl;e&&(e.bindFramebuffer(e.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},c.query=function(e,t,n){if(!this.gl)return null;var r=this.fbo.shape.slice();e|=0,t|=0,"number"!=typeof n&&(n=1);var a=0|Math.min(Math.max(e-n,0),r[0]),o=0|Math.min(Math.max(e+n,0),r[0]),l=0|Math.min(Math.max(t-n,0),r[1]),c=0|Math.min(Math.max(t+n,0),r[1]);if(o<=a||c<=l)return null;var u=[o-a,c-l],d=i(this.buffer,[u[0],u[1],4],[4,4*r[0],1],4*(a+r[0]*l)),p=function(e,t,n){for(var r=1e8,a=-1,i=-1,o=e.shape[0],s=e.shape[1],l=0;l<o;l++)for(var c=0;c<s;c++){var u=e.get(l,c,0),d=e.get(l,c,1),p=e.get(l,c,2),h=e.get(l,c,3);if(u<255||d<255||p<255||h<255){var f=t-l,m=n-c,g=f*f+m*m;g<r&&(r=g,a=l,i=c)}}return[a,i,r]}(d.hi(u[0],u[1],1),n,n),h=p[0],f=p[1];return h<0||Math.pow(this.radius,2)<p[2]?null:new s(h+a|0,f+l|0,d.get(h,f,0),[d.get(h,f,1),d.get(h,f,2),d.get(h,f,3)],Math.sqrt(p[2]))},c.dispose=function(){this.gl&&(this.fbo.dispose(),a.free(this.buffer),this.gl=null,this._readTimeout&&clearTimeout(this._readTimeout))}},9405:function(e,t,n){var r=n(3327),a=n(8731),i=n(216),o=n(5091),s=n(2145),l=n(8866);function c(e){this.gl=e,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}var u=c.prototype;function d(e,t){return e.name<t.name?-1:1}u.bind=function(){this.program||this._relink();var e,t=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),n=this.gl.lastAttribCount;if(t>n)for(e=n;e<t;e++)this.gl.enableVertexAttribArray(e);else if(n>t)for(e=t;e<n;e++)this.gl.disableVertexAttribArray(e);this.gl.lastAttribCount=t,this.gl.useProgram(this.program)},u.dispose=function(){for(var e=this.gl.lastAttribCount,t=0;t<e;t++)this.gl.disableVertexAttribArray(t);this.gl.lastAttribCount=0,this._fref&&this._fref.dispose(),this._vref&&this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},u.update=function(e,t,n,c){if(!t||1===arguments.length){var u=e;e=u.vertex,t=u.fragment,n=u.uniforms,c=u.attributes}var p=this,h=p.gl,f=p._vref;p._vref=o.shader(h,h.VERTEX_SHADER,e),f&&f.dispose(),p.vertShader=p._vref.shader;var m=this._fref;if(p._fref=o.shader(h,h.FRAGMENT_SHADER,t),m&&m.dispose(),p.fragShader=p._fref.shader,!n||!c){var g=h.createProgram();if(h.attachShader(g,p.fragShader),h.attachShader(g,p.vertShader),h.linkProgram(g),!h.getProgramParameter(g,h.LINK_STATUS)){var y=h.getProgramInfoLog(g);throw new l(y,"Error linking program:"+y)}n=n||s.uniforms(h,g),c=c||s.attributes(h,g),h.deleteProgram(g)}(c=c.slice()).sort(d);var b,v=[],M=[],x=[];for(b=0;b<c.length;++b){var z=c[b];if(z.type.indexOf("mat")>=0){for(var _=0|z.type.charAt(z.type.length-1),A=new Array(_),O=0;O<_;++O)A[O]=x.length,M.push(z.name+"["+O+"]"),"number"==typeof z.location?x.push(z.location+O):Array.isArray(z.location)&&z.location.length===_&&"number"==typeof z.location[O]?x.push(0|z.location[O]):x.push(-1);v.push({name:z.name,type:z.type,locations:A})}else v.push({name:z.name,type:z.type,locations:[x.length]}),M.push(z.name),"number"==typeof z.location?x.push(0|z.location):x.push(-1)}var w=0;for(b=0;b<x.length;++b)if(x[b]<0){for(;x.indexOf(w)>=0;)w+=1;x[b]=w}var k=new Array(n.length);function T(){p.program=o.program(h,p._vref,p._fref,M,x);for(var e=0;e<n.length;++e)k[e]=h.getUniformLocation(p.program,n[e].name)}T(),p._relink=T,p.types={uniforms:i(n),attributes:i(c)},p.attributes=a(h,p,v,x),Object.defineProperty(p,"uniforms",r(h,p,n,k))},e.exports=function(e,t,n,r,a){var i=new c(e);return i.update(t,n,r,a),i}},8866:function(e){function t(e,t,n){this.shortMessage=t||"",this.longMessage=n||"",this.rawError=e||"",this.message="gl-shader: "+(t||e||"")+(n?"\n"+n:""),this.stack=(new Error).stack}t.prototype=new Error,t.prototype.name="GLError",t.prototype.constructor=t,e.exports=t},8731:function(e,t,n){e.exports=function(e,t,n,a){for(var i={},o=0,c=n.length;o<c;++o){var u=n[o],d=u.name,p=u.type,h=u.locations;switch(p){case"bool":case"int":case"float":s(e,t,h[0],a,1,i,d);break;default:if(p.indexOf("vec")>=0){if((f=p.charCodeAt(p.length-1)-48)<2||f>4)throw new r("","Invalid data type for attribute "+d+": "+p);s(e,t,h[0],a,f,i,d)}else{if(!(p.indexOf("mat")>=0))throw new r("","Unknown data type for attribute "+d+": "+p);var f;if((f=p.charCodeAt(p.length-1)-48)<2||f>4)throw new r("","Invalid data type for attribute "+d+": "+p);l(e,t,h,a,f,i,d)}}}return i};var r=n(8866);function a(e,t,n,r,a,i){this._gl=e,this._wrapper=t,this._index=n,this._locations=r,this._dimension=a,this._constFunc=i}var i=a.prototype;i.pointer=function(e,t,n,r){var a=this,i=a._gl,o=a._locations[a._index];i.vertexAttribPointer(o,a._dimension,e||i.FLOAT,!!t,n||0,r||0),i.enableVertexAttribArray(o)},i.set=function(e,t,n,r){return this._constFunc(this._locations[this._index],e,t,n,r)},Object.defineProperty(i,"location",{get:function(){return this._locations[this._index]},set:function(e){return e!==this._locations[this._index]&&(this._locations[this._index]=0|e,this._wrapper.program=null),0|e}});var o=[function(e,t,n){return void 0===n.length?e.vertexAttrib1f(t,n):e.vertexAttrib1fv(t,n)},function(e,t,n,r){return void 0===n.length?e.vertexAttrib2f(t,n,r):e.vertexAttrib2fv(t,n)},function(e,t,n,r,a){return void 0===n.length?e.vertexAttrib3f(t,n,r,a):e.vertexAttrib3fv(t,n)},function(e,t,n,r,a,i){return void 0===n.length?e.vertexAttrib4f(t,n,r,a,i):e.vertexAttrib4fv(t,n)}];function s(e,t,n,r,i,s,l){var c=o[i],u=new a(e,t,n,r,i,c);Object.defineProperty(s,l,{set:function(t){return e.disableVertexAttribArray(r[n]),c(e,r[n],t),t},get:function(){return u},enumerable:!0})}function l(e,t,n,r,a,i,o){for(var l=new Array(a),c=new Array(a),u=0;u<a;++u)s(e,t,n[u],r,a,l,u),c[u]=l[u];Object.defineProperty(l,"location",{set:function(e){if(Array.isArray(e))for(var t=0;t<a;++t)c[t].location=e[t];else for(t=0;t<a;++t)c[t].location=e+t;return e},get:function(){for(var e=new Array(a),t=0;t<a;++t)e[t]=r[n[t]];return e},enumerable:!0}),l.pointer=function(t,i,o,s){t=t||e.FLOAT,i=!!i,o=o||a*a,s=s||0;for(var l=0;l<a;++l){var c=r[n[l]];e.vertexAttribPointer(c,a,t,i,o,s+l*a),e.enableVertexAttribArray(c)}};var d=new Array(a),p=e["vertexAttrib"+a+"fv"];Object.defineProperty(i,o,{set:function(t){for(var i=0;i<a;++i){var o=r[n[i]];if(e.disableVertexAttribArray(o),Array.isArray(t[0]))p.call(e,o,t[i]);else{for(var s=0;s<a;++s)d[s]=t[a*i+s];p.call(e,o,d)}}return t},get:function(){return l},enumerable:!0})}},3327:function(e,t,n){var r=n(216),a=n(8866);function i(e){return function(){return e}}function o(e,t){for(var n=new Array(e),r=0;r<e;++r)n[r]=t;return n}e.exports=function(e,t,n,s){function l(e){return function(t,n,r){return t.getUniform(n.program,r[e])}}function c(t){return function(r){for(var i=u("",t),o=0;o<i.length;++o){var l=i[o],c=l[0],d=l[1];if(s[d]){var p=r;if("string"==typeof c&&(0===c.indexOf(".")||0===c.indexOf("["))){var h=c;if(0===c.indexOf(".")&&(h=c.slice(1)),h.indexOf("]")===h.length-1){var f=h.indexOf("["),m=h.slice(0,f),g=h.slice(f+1,h.length-1);p=m?r[m][g]:r[g]}else p=r[h]}var y,b=n[d].type;switch(b){case"bool":case"int":case"sampler2D":case"samplerCube":e.uniform1i(s[d],p);break;case"float":e.uniform1f(s[d],p);break;default:var v=b.indexOf("vec");if(!(0<=v&&v<=1&&b.length===4+v)){if(0===b.indexOf("mat")&&4===b.length){if((y=b.charCodeAt(b.length-1)-48)<2||y>4)throw new a("","Invalid uniform dimension type for matrix "+name+": "+b);e["uniformMatrix"+y+"fv"](s[d],!1,p);break}throw new a("","Unknown uniform data type for "+name+": "+b)}if((y=b.charCodeAt(b.length-1)-48)<2||y>4)throw new a("","Invalid data type");switch(b.charAt(0)){case"b":case"i":e["uniform"+y+"iv"](s[d],p);break;case"v":e["uniform"+y+"fv"](s[d],p);break;default:throw new a("","Unrecognized data type for vector "+name+": "+b)}}}}}}function u(e,t){if("object"!=typeof t)return[[e,t]];var n=[];for(var r in t){var a=t[r],i=e;parseInt(r)+""===r?i+="["+r+"]":i+="."+r,"object"==typeof a?n.push.apply(n,u(i,a)):n.push([i,a])}return n}function d(e,t,r){if("object"==typeof r){var u=p(r);Object.defineProperty(e,t,{get:i(u),set:c(r),enumerable:!0,configurable:!1})}else s[r]?Object.defineProperty(e,t,{get:l(r),set:c(r),enumerable:!0,configurable:!1}):e[t]=function(e){switch(e){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":case"float":return 0;default:var t=e.indexOf("vec");if(0<=t&&t<=1&&e.length===4+t){if((n=e.charCodeAt(e.length-1)-48)<2||n>4)throw new a("","Invalid data type");return"b"===e.charAt(0)?o(n,!1):o(n,0)}if(0===e.indexOf("mat")&&4===e.length){var n;if((n=e.charCodeAt(e.length-1)-48)<2||n>4)throw new a("","Invalid uniform dimension type for matrix "+name+": "+e);return o(n*n,0)}throw new a("","Unknown uniform data type for "+name+": "+e)}}(n[r].type)}function p(e){var t;if(Array.isArray(e)){t=new Array(e.length);for(var n=0;n<e.length;++n)d(t,n,e[n])}else for(var r in t={},e)d(t,r,e[r]);return t}var h=r(n,!0);return{get:i(p(h)),set:c(h),enumerable:!0,configurable:!0}}},216:function(e){e.exports=function(e,t){for(var n={},r=0;r<e.length;++r)for(var a=e[r].name.split("."),i=n,o=0;o<a.length;++o){var s=a[o].split("[");if(s.length>1){s[0]in i||(i[s[0]]=[]),i=i[s[0]];for(var l=1;l<s.length;++l){var c=parseInt(s[l]);l<s.length-1||o<a.length-1?(c in i||(l<s.length-1?i[c]=[]:i[c]={}),i=i[c]):i[c]=t?r:e[r].type}}else o<a.length-1?(s[0]in i||(i[s[0]]={}),i=i[s[0]]):i[s[0]]=t?r:e[r].type}return n}},2145:function(e,t){t.uniforms=function(e,t){for(var n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),r=[],i=0;i<n;++i){var o=e.getActiveUniform(t,i);if(o){var s=a(e,o.type);if(o.size>1)for(var l=0;l<o.size;++l)r.push({name:o.name.replace("[0]","["+l+"]"),type:s});else r.push({name:o.name,type:s})}}return r},t.attributes=function(e,t){for(var n=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),r=[],i=0;i<n;++i){var o=e.getActiveAttrib(t,i);o&&r.push({name:o.name,type:a(e,o.type)})}return r};var n={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube"},r=null;function a(e,t){if(!r){var a=Object.keys(n);r={};for(var i=0;i<a.length;++i){var o=a[i];r[e[o]]=n[o]}}return r[t]}},5091:function(e,t,n){t.shader=function(e,t,n){return u(e).getShaderReference(t,n)},t.program=function(e,t,n,r,a){return u(e).getProgram(t,n,r,a)};var r=n(8866),a=n(2992),i=new(typeof WeakMap>"u"?n(606):WeakMap),o=0;function s(e,t,n,r,a,i,o){this.id=e,this.src=t,this.type=n,this.shader=r,this.count=i,this.programs=[],this.cache=o}function l(e){this.gl=e,this.shaders=[{},{}],this.programs={}}s.prototype.dispose=function(){if(0===--this.count){for(var e=this.cache,t=e.gl,n=this.programs,r=0,a=n.length;r<a;++r){var i=e.programs[n[r]];i&&(delete e.programs[r],t.deleteProgram(i))}t.deleteShader(this.shader),delete e.shaders[this.type===t.FRAGMENT_SHADER|0][this.src]}};var c=l.prototype;function u(e){var t=i.get(e);return t||(t=new l(e),i.set(e,t)),t}c.getShaderReference=function(e,t){var n=this.gl,i=this.shaders[e===n.FRAGMENT_SHADER|0],l=i[t];if(l&&n.isShader(l.shader))l.count+=1;else{var c=function(e,t,n){var i=e.createShader(t);if(e.shaderSource(i,n),e.compileShader(i),!e.getShaderParameter(i,e.COMPILE_STATUS)){var o=e.getShaderInfoLog(i);try{var s=a(o,n,t)}catch(e){throw console.warn("Failed to format compiler error: "+e),new r(o,"Error compiling shader:\n"+o)}throw new r(o,s.short,s.long)}return i}(n,e,t);l=i[t]=new s(o++,t,e,c,[],1,this)}return l},c.getProgram=function(e,t,n,a){var i=[e.id,t.id,n.join(":"),a.join(":")].join("@"),o=this.programs[i];return(!o||!this.gl.isProgram(o))&&(this.programs[i]=o=function(e,t,n,a,i){var o=e.createProgram();e.attachShader(o,t),e.attachShader(o,n);for(var s=0;s<a.length;++s)e.bindAttribLocation(o,i[s],a[s]);if(e.linkProgram(o),!e.getProgramParameter(o,e.LINK_STATUS)){var l=e.getProgramInfoLog(o);throw new r(l,"Error linking program: "+l)}return o}(this.gl,e.shader,t.shader,n,a),e.programs.push(i),t.programs.push(i)),o}},1493:function(e,t,n){var r=n(3236),a=n(9405),i=r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position, color;\nattribute float weight;\n\nuniform mat4 model, view, projection;\nuniform vec3 coordinates[3];\nuniform vec4 colors[3];\nuniform vec2 screenShape;\nuniform float lineWidth;\n\nvarying vec4 fragColor;\n\nvoid main() {\n vec3 vertexPosition = mix(coordinates[0],\n mix(coordinates[2], coordinates[1], 0.5 * (position + 1.0)), abs(position));\n\n vec4 clipPos = projection * (view * (model * vec4(vertexPosition, 1.0)));\n vec2 clipOffset = (projection * (view * (model * vec4(color, 0.0)))).xy;\n vec2 delta = weight * clipOffset * screenShape;\n vec2 lineOffset = normalize(vec2(delta.y, -delta.x)) / screenShape;\n\n gl_Position = vec4(clipPos.xy + clipPos.w * 0.5 * lineWidth * lineOffset, clipPos.z, clipPos.w);\n fragColor = color.x * colors[0] + color.y * colors[1] + color.z * colors[2];\n}\n"]),o=r(["precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n gl_FragColor = fragColor;\n}"]);e.exports=function(e){return a(e,i,o,null,[{name:"position",type:"vec3"},{name:"color",type:"vec3"},{name:"weight",type:"float"}])}},4449:function(e,t,n){var r=n(2762),a=n(8116),i=n(1493);e.exports=function(e,t){var n=[];function o(e,t,r,a,i,o){var s=[e,t,r,0,0,0,1];s[a+3]=1,s[a]=i,n.push.apply(n,s),s[6]=-1,n.push.apply(n,s),s[a]=o,n.push.apply(n,s),n.push.apply(n,s),s[6]=1,n.push.apply(n,s),s[a]=i,n.push.apply(n,s)}o(0,0,0,0,0,1),o(0,0,0,1,0,1),o(0,0,0,2,0,1),o(1,0,0,1,-1,1),o(1,0,0,2,-1,1),o(0,1,0,0,-1,1),o(0,1,0,2,-1,1),o(0,0,1,0,-1,1),o(0,0,1,1,-1,1);var l=r(e,n),c=a(e,[{type:e.FLOAT,buffer:l,size:3,offset:0,stride:28},{type:e.FLOAT,buffer:l,size:3,offset:12,stride:28},{type:e.FLOAT,buffer:l,size:1,offset:24,stride:28}]),u=i(e);u.attributes.position.location=0,u.attributes.color.location=1,u.attributes.weight.location=2;var d=new s(e,l,c,u);return d.update(t),d};var o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(e,t,n,r){this.gl=e,this.buffer=t,this.vao=n,this.shader=r,this.pixelRatio=1,this.bounds=[[-1e3,-1e3,-1e3],[1e3,1e3,1e3]],this.position=[0,0,0],this.lineWidth=[2,2,2],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.enabled=[!0,!0,!0],this.drawSides=[!0,!0,!0],this.axes=null}var l=s.prototype,c=[0,0,0],u=[0,0,0],d=[0,0];l.isTransparent=function(){return!1},l.drawTransparent=function(e){},l.draw=function(e){var t=this.gl,n=this.vao,r=this.shader;n.bind(),r.bind();var a,i=e.model||o,s=e.view||o,l=e.projection||o;this.axes&&(a=this.axes.lastCubeProps.axis);for(var p=c,h=u,f=0;f<3;++f)a&&a[f]<0?(p[f]=this.bounds[0][f],h[f]=this.bounds[1][f]):(p[f]=this.bounds[1][f],h[f]=this.bounds[0][f]);d[0]=t.drawingBufferWidth,d[1]=t.drawingBufferHeight,r.uniforms.model=i,r.uniforms.view=s,r.uniforms.projection=l,r.uniforms.coordinates=[this.position,p,h],r.uniforms.colors=this.colors,r.uniforms.screenShape=d;for(f=0;f<3;++f)r.uniforms.lineWidth=this.lineWidth[f]*this.pixelRatio,this.enabled[f]&&(n.draw(t.TRIANGLES,6,6*f),this.drawSides[f]&&n.draw(t.TRIANGLES,12,18+12*f));n.unbind()},l.update=function(e){e&&("bounds"in e&&(this.bounds=e.bounds),"position"in e&&(this.position=e.position),"lineWidth"in e&&(this.lineWidth=e.lineWidth),"colors"in e&&(this.colors=e.colors),"enabled"in e&&(this.enabled=e.enabled),"drawSides"in e&&(this.drawSides=e.drawSides))},l.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},6740:function(e,t,n){var r=n(3236),a=r(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n float segmentCount = 8.0;\n\n float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d);\n vec3 y = v * sin(angle) * length(d);\n vec3 v3 = x + y;\n\n normal = normalize(v3);\n\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * tubePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(tubePosition, 1.0);\n vec4 t_position = view * tubePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = tubePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]),i=r(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]),o=r(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n float segmentCount = 8.0;\n\n float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d);\n vec3 y = v * sin(angle) * length(d);\n vec3 v3 = x + y;\n\n normal = normalize(v3);\n\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float tubeScale;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n vec3 normal;\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n gl_Position = projection * (view * tubePosition);\n f_id = id;\n f_position = position.xyz;\n}\n"]),s=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]);t.meshShader={vertex:a,fragment:i,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},t.pickShader={vertex:o,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7815:function(e,t,n){var r=n(2931),a=n(9970),i=["xyz","xzy","yxz","yzx","zxy","zyx"],o=function(e,t,n,i){for(var o=0,s=0;s<e.length;s++)for(var l=e[s].velocities,c=0;c<l.length;c++)o=Math.max(o,r.length(l[c]));var u=e.map(function(e){return function(e,t,n,i){for(var o=e.points,s=e.velocities,l=e.divergences,c=[],u=[],d=[],p=[],h=[],f=[],m=0,g=0,y=a.create(),b=a.create(),v=0;v<o.length;v++){var M=o[v],x=s[v],z=l[v];0===t&&(z=.05*n),g=r.length(x)/i,y=a.create(),r.copy(y,x),y[3]=z;for(var _=0;_<8;_++)h[_]=[M[0],M[1],M[2],_];if(p.length>0)for(_=0;_<8;_++){var A=(_+1)%8;c.push(p[_],h[_],h[A],h[A],p[A],p[_]),d.push(b,y,y,y,b,b),f.push(m,g,g,g,m,m);var O=c.length;u.push([O-6,O-5,O-4],[O-3,O-2,O-1])}var w=p;p=h,h=w;var k=b;b=y,y=k;var T=m;m=g,g=T}return{positions:c,cells:u,vectors:d,vertexIntensity:f}}(e,n,i,o)}),d=[],p=[],h=[],f=[];for(s=0;s<u.length;s++){var m=u[s],g=d.length;d=d.concat(m.positions),h=h.concat(m.vectors),f=f.concat(m.vertexIntensity);for(c=0;c<m.cells.length;c++){var y=m.cells[c],b=[];p.push(b);for(var v=0;v<y.length;v++)b.push(y[v]+g)}}return{positions:d,cells:p,vectors:h,vertexIntensity:f,colormap:t}},s=function(e,t){var n,r=e.length;for(n=0;n<r;n++){var a=e[n];if(a===t)return n;if(a>t)return n-1}return n},l=function(e,t,n){return e<t?t:e>n?n:e},c=function(e){var t=1/0;e.sort(function(e,t){return e-t});for(var n=e.length,r=1;r<n;r++){var a=Math.abs(e[r]-e[r-1]);a<t&&(t=a)}return t};e.exports=function(e,t){var n=e.startingPositions,a=e.maxLength||1e3,u=e.tubeSize||1,d=e.absoluteTubeSize,p=e.gridFill||"+x+y+z",h={};-1!==p.indexOf("-x")&&(h.reversedX=!0),-1!==p.indexOf("-y")&&(h.reversedY=!0),-1!==p.indexOf("-z")&&(h.reversedZ=!0),h.filled=i.indexOf(p.replace(/-/g,"").replace(/\+/g,""));var f=e.getVelocity||function(t){return function(e,t,n){var a=t.vectors,i=t.meshgrid,o=e[0],c=e[1],u=e[2],d=i[0].length,p=i[1].length,h=i[2].length,f=s(i[0],o),m=s(i[1],c),g=s(i[2],u),y=f+1,b=m+1,v=g+1;if(f=l(f,0,d-1),y=l(y,0,d-1),m=l(m,0,p-1),b=l(b,0,p-1),g=l(g,0,h-1),v=l(v,0,h-1),f<0||m<0||g<0||y>d-1||b>p-1||v>h-1)return r.create();var M,x,z,_,A,O,w=i[0][f],k=i[0][y],T=i[1][m],S=i[1][b],C=i[2][g],E=(o-w)/(k-w),q=(c-T)/(S-T),D=(u-C)/(i[2][v]-C);switch(isFinite(E)||(E=.5),isFinite(q)||(q=.5),isFinite(D)||(D=.5),n.reversedX&&(f=d-1-f,y=d-1-y),n.reversedY&&(m=p-1-m,b=p-1-b),n.reversedZ&&(g=h-1-g,v=h-1-v),n.filled){case 5:A=g,O=v,z=m*h,_=b*h,M=f*h*p,x=y*h*p;break;case 4:A=g,O=v,M=f*h,x=y*h,z=m*h*d,_=b*h*d;break;case 3:z=m,_=b,A=g*p,O=v*p,M=f*p*h,x=y*p*h;break;case 2:z=m,_=b,M=f*p,x=y*p,A=g*p*d,O=v*p*d;break;case 1:M=f,x=y,A=g*d,O=v*d,z=m*d*h,_=b*d*h;break;default:M=f,x=y,z=m*d,_=b*d,A=g*d*p,O=v*d*p}var R=a[M+z+A],L=a[M+z+O],I=a[M+_+A],W=a[M+_+O],N=a[x+z+A],P=a[x+z+O],B=a[x+_+A],F=a[x+_+O],j=r.create(),U=r.create(),V=r.create(),H=r.create();r.lerp(j,R,N,E),r.lerp(U,L,P,E),r.lerp(V,I,B,E),r.lerp(H,W,F,E);var X=r.create(),G=r.create();r.lerp(X,j,V,q),r.lerp(G,U,H,q);var Y=r.create();return r.lerp(Y,X,G,D),Y}(t,e,h)},m=e.getDivergence||function(e,t){var n=r.create(),a=1e-4;r.add(n,e,[a,0,0]);var i=f(n);r.subtract(i,i,t),r.scale(i,i,1/a),r.add(n,e,[0,a,0]);var o=f(n);r.subtract(o,o,t),r.scale(o,o,1/a),r.add(n,e,[0,0,a]);var s=f(n);return r.subtract(s,s,t),r.scale(s,s,1/a),r.add(n,i,o),r.add(n,n,s),n},g=[],y=t[0][0],b=t[0][1],v=t[0][2],M=t[1][0],x=t[1][1],z=t[1][2],_=function(e){var t=e[0],n=e[1],r=e[2];return!(t<y||t>M||n<b||n>x||r<v||r>z)},A=10*r.distance(t[0],t[1])/a,O=A*A,w=1,k=0,T=n.length;T>1&&(w=function(e){for(var t=[],n=[],r=[],a={},i={},o={},s=e.length,l=0;l<s;l++){var u=e[l],d=u[0],p=u[1],h=u[2];a[d]||(t.push(d),a[d]=!0),i[p]||(n.push(p),i[p]=!0),o[h]||(r.push(h),o[h]=!0)}var f=c(t),m=c(n),g=c(r),y=Math.min(f,m,g);return isFinite(y)?y:1}(n));for(var S=0;S<T;S++){var C=r.create();r.copy(C,n[S]);var E=[C],q=[],D=f(C),R=C;q.push(D);var L=[],I=m(C,D),W=r.length(I);isFinite(W)&&W>k&&(k=W),L.push(W),g.push({points:E,velocities:q,divergences:L});for(var N=0;N<100*a&&E.length<a&&_(C);){N++;var P=r.clone(D),B=r.squaredLength(P);if(0===B)break;if(B>O&&r.scale(P,P,A/Math.sqrt(B)),r.add(P,P,C),D=f(P),r.squaredDistance(R,P)-O>-1e-4*O){E.push(P),R=P,q.push(D);I=m(P,D),W=r.length(I);isFinite(W)&&W>k&&(k=W),L.push(W)}C=P}}var F=o(g,e.colormap,k,w);return d?F.tubeScale=d:(0===k&&(k=1),F.tubeScale=.5*u*w/k),F};var u=n(6740),d=n(6405).createMesh;e.exports.createTubeMesh=function(e,t){return d(e,t,{shaders:u,traceType:"streamtube"})}},990:function(e,t,n){var r=n(9405),a=n(3236),i=a(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform vec3 objectOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n vec3 localCoordinate = vec3(uv.zw, f.x);\n worldCoordinate = objectOffset + localCoordinate;\n mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0));\n vec4 worldPosition = (model * objectOffsetTranslation) * vec4(localCoordinate, 1.0);\n vec4 clipPosition = projection * (view * worldPosition);\n gl_Position = clipPosition;\n kill = f.y;\n value = f.z;\n planeCoordinate = uv.xy;\n\n vColor = texture2D(colormap, vec2(value, value));\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * worldPosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n lightDirection = lightPosition - cameraCoordinate.xyz;\n eyeDirection = eyePosition - cameraCoordinate.xyz;\n surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n"]),o=a(["precision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat beckmannSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness) {\n return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 lowerBound, upperBound;\nuniform float contourTint;\nuniform vec4 contourColor;\nuniform sampler2D colormap;\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform float vertexColor;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n if (\n kill > 0.0 ||\n vColor.a == 0.0 ||\n outOfRange(clipBounds[0], clipBounds[1], worldCoordinate)\n ) discard;\n\n vec3 N = normalize(surfaceNormal);\n vec3 V = normalize(eyeDirection);\n vec3 L = normalize(lightDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n //decide how to interpolate color — in vertex or in fragment\n vec4 surfaceColor =\n step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) +\n step(.5, vertexColor) * vColor;\n\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\n}\n"]),s=a(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute float f;\n\nuniform vec3 objectOffset;\nuniform mat3 permutation;\nuniform mat4 model, view, projection;\nuniform float height, zOffset;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n vec3 dataCoordinate = permutation * vec3(uv.xy, height);\n worldCoordinate = objectOffset + dataCoordinate;\n mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0));\n vec4 worldPosition = (model * objectOffsetTranslation) * vec4(dataCoordinate, 1.0);\n\n vec4 clipPosition = projection * (view * worldPosition);\n clipPosition.z += zOffset;\n\n gl_Position = clipPosition;\n value = f + objectOffset.z;\n kill = -1.0;\n planeCoordinate = uv.zw;\n\n vColor = texture2D(colormap, vec2(value, value));\n\n //Don't do lighting for contours\n surfaceNormal = vec3(1,0,0);\n eyeDirection = vec3(0,1,0);\n lightDirection = vec3(0,0,1);\n}\n"]),l=a(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec2 shape;\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 surfaceNormal;\n\nvec2 splitFloat(float v) {\n float vh = 255.0 * v;\n float upper = floor(vh);\n float lower = fract(vh);\n return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\n}\n\nvoid main() {\n if ((kill > 0.0) ||\n (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\n\n vec2 ux = splitFloat(planeCoordinate.x / shape.x);\n vec2 uy = splitFloat(planeCoordinate.y / shape.y);\n gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\n}\n"]);t.createShader=function(e){var t=r(e,i,o,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return t.attributes.uv.location=0,t.attributes.f.location=1,t.attributes.normal.location=2,t},t.createPickShader=function(e){var t=r(e,i,l,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return t.attributes.uv.location=0,t.attributes.f.location=1,t.attributes.normal.location=2,t},t.createContourShader=function(e){var t=r(e,s,o,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return t.attributes.uv.location=0,t.attributes.f.location=1,t},t.createPickContourShader=function(e){var t=r(e,s,l,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return t.attributes.uv.location=0,t.attributes.f.location=1,t}},9499:function(e,t,n){e.exports=function(e){var t=e.gl,n=b(t),r=M(t),s=v(t),l=x(t),c=a(t),u=i(t,[{buffer:c,size:4,stride:z,offset:0},{buffer:c,size:3,stride:z,offset:16},{buffer:c,size:3,stride:z,offset:28}]),d=a(t),p=i(t,[{buffer:d,size:4,stride:20,offset:0},{buffer:d,size:1,stride:20,offset:16}]),h=a(t),f=i(t,[{buffer:h,size:2,type:t.FLOAT}]),m=o(t,1,k,t.RGBA,t.UNSIGNED_BYTE);m.minFilter=t.LINEAR,m.magFilter=t.LINEAR;var g=new T(t,[0,0],[[0,0,0],[0,0,0]],n,r,c,u,m,s,l,d,p,h,f,[0,0,0]),y={levels:[[],[],[]]};for(var _ in e)y[_]=e[_];return y.colormap=y.colormap||"jet",g.update(y),g};var r=n(8828),a=n(2762),i=n(8116),o=n(7766),s=n(1888),l=n(6729),c=n(5298),u=n(9994),d=n(9618),p=n(3711),h=n(6760),f=n(7608),m=n(2478),g=n(6199),y=n(990),b=y.createShader,v=y.createContourShader,M=y.createPickShader,x=y.createPickContourShader,z=40,_=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],A=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],O=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];function w(e,t,n,r,a){this.position=e,this.index=t,this.uv=n,this.level=r,this.dataCoordinate=a}!function(){for(var e=0;e<3;++e){var t=O[e],n=(e+2)%3;t[(e+1)%3+0]=1,t[n+3]=1,t[e+6]=1}}();var k=256;function T(e,t,n,r,a,i,o,l,c,u,p,h,f,m,g){this.gl=e,this.shape=t,this.bounds=n,this.objectOffset=g,this.intensityBounds=[],this._shader=r,this._pickShader=a,this._coordinateBuffer=i,this._vao=o,this._colorMap=l,this._contourShader=c,this._contourPickShader=u,this._contourBuffer=p,this._contourVAO=h,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new w([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=f,this._dynamicVAO=m,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[d(s.mallocFloat(1024),[0,0]),d(s.mallocFloat(1024),[0,0]),d(s.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var S=T.prototype;S.genColormap=function(e,t){var n=!1,r=u([l({colormap:e,nshades:k,format:"rgba"}).map(function(e,r){var a=t?function(e,t){if(!t||!t.length)return 1;for(var n=0;n<t.length;++n){if(t.length<2)return 1;if(t[n][0]===e)return t[n][1];if(t[n][0]>e&&n>0){var r=(t[n][0]-e)/(t[n][0]-t[n-1][0]);return t[n][1]*(1-r)+r*t[n-1][1]}}return 1}(r/255,t):e[3];return a<1&&(n=!0),[e[0],e[1],e[2],255*a]})]);return c.divseq(r,255),this.hasAlphaScale=n,r},S.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},S.isOpaque=function(){return!this.isTransparent()},S.pickSlots=1,S.setPickBase=function(e){this.pickId=e};var C=[0,0,0],E={showSurface:!1,showContour:!1,projections:[_.slice(),_.slice(),_.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function q(e,t){var n,r,a,i=t.axes&&t.axes.lastCubeProps.axis||C,o=t.showSurface,s=t.showContour;for(n=0;n<3;++n)for(o=o||t.surfaceProject[n],r=0;r<3;++r)s=s||t.contourProject[n][r];for(n=0;n<3;++n){var l=E.projections[n];for(r=0;r<16;++r)l[r]=0;for(r=0;r<4;++r)l[5*r]=1;l[5*n]=0,l[12+n]=t.axesBounds[+(i[n]>0)][n],h(l,e.model,l);var c=E.clipBounds[n];for(a=0;a<2;++a)for(r=0;r<3;++r)c[a][r]=e.clipBounds[a][r];c[0][n]=-1e8,c[1][n]=1e8}return E.showSurface=o,E.showContour=s,E}var D={model:_,view:_,projection:_,inverseModel:_.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},R=_.slice(),L=[1,0,0,0,1,0,0,0,1];function I(e,t){e=e||{};var n=this.gl;n.disable(n.CULL_FACE),this._colorMap.bind(0);var r=D;r.model=e.model||_,r.view=e.view||_,r.projection=e.projection||_,r.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],r.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],r.objectOffset=this.objectOffset,r.contourColor=this.contourColor[0],r.inverseModel=f(r.inverseModel,r.model);for(var a=0;a<2;++a)for(var i=r.clipBounds[a],o=0;o<3;++o)i[o]=Math.min(Math.max(this.clipBounds[a][o],-1e8),1e8);r.kambient=this.ambientLight,r.kdiffuse=this.diffuseLight,r.kspecular=this.specularLight,r.roughness=this.roughness,r.fresnel=this.fresnel,r.opacity=this.opacity,r.height=0,r.permutation=L,r.vertexColor=this.vertexColor;var s=R;for(h(s,r.view,r.model),h(s,r.projection,s),f(s,s),a=0;a<3;++a)r.eyePosition[a]=s[12+a]/s[15];var l=s[15];for(a=0;a<3;++a)l+=this.lightPosition[a]*s[4*a+3];for(a=0;a<3;++a){var c=s[12+a];for(o=0;o<3;++o)c+=s[4*o+a]*this.lightPosition[o];r.lightPosition[a]=c/l}var u=q(r,this);if(u.showSurface){for(this._shader.bind(),this._shader.uniforms=r,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(n.TRIANGLES,this._vertexCount),a=0;a<3;++a)!this.surfaceProject[a]||!this.vertexCount||(this._shader.uniforms.model=u.projections[a],this._shader.uniforms.clipBounds=u.clipBounds[a],this._vao.draw(n.TRIANGLES,this._vertexCount));this._vao.unbind()}if(u.showContour){var d=this._contourShader;r.kambient=1,r.kdiffuse=0,r.kspecular=0,r.opacity=1,d.bind(),d.uniforms=r;var p=this._contourVAO;for(p.bind(),a=0;a<3;++a)for(d.uniforms.permutation=O[a],n.lineWidth(this.contourWidth[a]*this.pixelRatio),o=0;o<this.contourLevels[a].length;++o)o===this.highlightLevel[a]?(d.uniforms.contourColor=this.highlightColor[a],d.uniforms.contourTint=this.highlightTint[a]):(0===o||o-1===this.highlightLevel[a])&&(d.uniforms.contourColor=this.contourColor[a],d.uniforms.contourTint=this.contourTint[a]),this._contourCounts[a][o]&&(d.uniforms.height=this.contourLevels[a][o],p.draw(n.LINES,this._contourCounts[a][o],this._contourOffsets[a][o]));for(a=0;a<3;++a)for(d.uniforms.model=u.projections[a],d.uniforms.clipBounds=u.clipBounds[a],o=0;o<3;++o)if(this.contourProject[a][o]){d.uniforms.permutation=O[o],n.lineWidth(this.contourWidth[o]*this.pixelRatio);for(var m=0;m<this.contourLevels[o].length;++m)m===this.highlightLevel[o]?(d.uniforms.contourColor=this.highlightColor[o],d.uniforms.contourTint=this.highlightTint[o]):(0===m||m-1===this.highlightLevel[o])&&(d.uniforms.contourColor=this.contourColor[o],d.uniforms.contourTint=this.contourTint[o]),this._contourCounts[o][m]&&(d.uniforms.height=this.contourLevels[o][m],p.draw(n.LINES,this._contourCounts[o][m],this._contourOffsets[o][m]))}for(p.unbind(),(p=this._dynamicVAO).bind(),a=0;a<3;++a)if(0!==this._dynamicCounts[a])for(d.uniforms.model=r.model,d.uniforms.clipBounds=r.clipBounds,d.uniforms.permutation=O[a],n.lineWidth(this.dynamicWidth[a]*this.pixelRatio),d.uniforms.contourColor=this.dynamicColor[a],d.uniforms.contourTint=this.dynamicTint[a],d.uniforms.height=this.dynamicLevel[a],p.draw(n.LINES,this._dynamicCounts[a],this._dynamicOffsets[a]),o=0;o<3;++o)this.contourProject[o][a]&&(d.uniforms.model=u.projections[o],d.uniforms.clipBounds=u.clipBounds[o],p.draw(n.LINES,this._dynamicCounts[a],this._dynamicOffsets[a]));p.unbind()}}S.draw=function(e){return I.call(this,e,!1)},S.drawTransparent=function(e){return I.call(this,e,!0)};var W={model:_,view:_,projection:_,inverseModel:_,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,objectOffset:[0,0,0],permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};function N(e,t){return Array.isArray(e)?[t(e[0]),t(e[1]),t(e[2])]:[t(e),t(e),t(e)]}function P(e){return Array.isArray(e)?3===e.length?[e[0],e[1],e[2],1]:[e[0],e[1],e[2],e[3]]:[0,0,0,1]}function B(e){if(Array.isArray(e)){if(Array.isArray(e))return[P(e[0]),P(e[1]),P(e[2])];var t=P(e);return[t.slice(),t.slice(),t.slice()]}}S.drawPick=function(e){e=e||{};var t=this.gl;t.disable(t.CULL_FACE);var n=W;n.model=e.model||_,n.view=e.view||_,n.projection=e.projection||_,n.shape=this._field[2].shape,n.pickId=this.pickId/255,n.lowerBound=this.bounds[0],n.upperBound=this.bounds[1],n.objectOffset=this.objectOffset,n.permutation=L;for(var r=0;r<2;++r)for(var a=n.clipBounds[r],i=0;i<3;++i)a[i]=Math.min(Math.max(this.clipBounds[r][i],-1e8),1e8);var o=q(n,this);if(o.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=n,this._vao.bind(),this._vao.draw(t.TRIANGLES,this._vertexCount),r=0;r<3;++r)this.surfaceProject[r]&&(this._pickShader.uniforms.model=o.projections[r],this._pickShader.uniforms.clipBounds=o.clipBounds[r],this._vao.draw(t.TRIANGLES,this._vertexCount));this._vao.unbind()}if(o.showContour){var s=this._contourPickShader;s.bind(),s.uniforms=n;var l=this._contourVAO;for(l.bind(),i=0;i<3;++i)for(t.lineWidth(this.contourWidth[i]*this.pixelRatio),s.uniforms.permutation=O[i],r=0;r<this.contourLevels[i].length;++r)this._contourCounts[i][r]&&(s.uniforms.height=this.contourLevels[i][r],l.draw(t.LINES,this._contourCounts[i][r],this._contourOffsets[i][r]));for(r=0;r<3;++r)for(s.uniforms.model=o.projections[r],s.uniforms.clipBounds=o.clipBounds[r],i=0;i<3;++i)if(this.contourProject[r][i]){s.uniforms.permutation=O[i],t.lineWidth(this.contourWidth[i]*this.pixelRatio);for(var c=0;c<this.contourLevels[i].length;++c)this._contourCounts[i][c]&&(s.uniforms.height=this.contourLevels[i][c],l.draw(t.LINES,this._contourCounts[i][c],this._contourOffsets[i][c]))}l.unbind()}},S.pick=function(e){if(!e||e.id!==this.pickId)return null;var t=this._field[2].shape,n=this._pickResult,r=t[0]*(e.value[0]+(e.value[2]>>4)/16)/255,a=Math.floor(r),i=r-a,o=t[1]*(e.value[1]+(15&e.value[2])/16)/255,s=Math.floor(o),l=o-s;a+=1,s+=1;var c=n.position;c[0]=c[1]=c[2]=0;for(var u=0;u<2;++u)for(var d=u?i:1-i,p=0;p<2;++p)for(var h=a+u,f=s+p,g=d*(p?l:1-l),y=0;y<3;++y)c[y]+=this._field[y].get(h,f)*g;for(var b=this._pickResult.level,v=0;v<3;++v)if(b[v]=m.le(this.contourLevels[v],c[v]),b[v]<0)this.contourLevels[v].length>0&&(b[v]=0);else if(b[v]<this.contourLevels[v].length-1){var M=this.contourLevels[v][b[v]],x=this.contourLevels[v][b[v]+1];Math.abs(M-c[v])>Math.abs(x-c[v])&&(b[v]+=1)}for(n.index[0]=i<.5?a:a+1,n.index[1]=l<.5?s:s+1,n.uv[0]=r/t[0],n.uv[1]=o/t[1],y=0;y<3;++y)n.dataCoordinate[y]=this._field[y].get(n.index[0],n.index[1]);return n},S.padField=function(e,t){var n=t.shape.slice(),r=e.shape.slice();c.assign(e.lo(1,1).hi(n[0],n[1]),t),c.assign(e.lo(1).hi(n[0],1),t.hi(n[0],1)),c.assign(e.lo(1,r[1]-1).hi(n[0],1),t.lo(0,n[1]-1).hi(n[0],1)),c.assign(e.lo(0,1).hi(1,n[1]),t.hi(1)),c.assign(e.lo(r[0]-1,1).hi(1,n[1]),t.lo(n[0]-1)),e.set(0,0,t.get(0,0)),e.set(0,r[1]-1,t.get(0,n[1]-1)),e.set(r[0]-1,0,t.get(n[0]-1,0)),e.set(r[0]-1,r[1]-1,t.get(n[0]-1,n[1]-1))},S.update=function(e){e=e||{},this.objectOffset=e.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in e&&(this.contourWidth=N(e.contourWidth,Number)),"showContour"in e&&(this.showContour=N(e.showContour,Boolean)),"showSurface"in e&&(this.showSurface=!!e.showSurface),"contourTint"in e&&(this.contourTint=N(e.contourTint,Boolean)),"contourColor"in e&&(this.contourColor=B(e.contourColor)),"contourProject"in e&&(this.contourProject=N(e.contourProject,function(e){return N(e,Boolean)})),"surfaceProject"in e&&(this.surfaceProject=e.surfaceProject),"dynamicColor"in e&&(this.dynamicColor=B(e.dynamicColor)),"dynamicTint"in e&&(this.dynamicTint=N(e.dynamicTint,Number)),"dynamicWidth"in e&&(this.dynamicWidth=N(e.dynamicWidth,Number)),"opacity"in e&&(this.opacity=e.opacity),"opacityscale"in e&&(this.opacityscale=e.opacityscale),"colorBounds"in e&&(this.colorBounds=e.colorBounds),"vertexColor"in e&&(this.vertexColor=e.vertexColor?1:0),"colormap"in e&&this._colorMap.setPixels(this.genColormap(e.colormap,this.opacityscale));var t=e.field||e.coords&&e.coords[2]||null,n=!1;if(t||(t=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),"field"in e||"coords"in e){var a=(t.shape[0]+2)*(t.shape[1]+2);a>this._field[2].data.length&&(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(r.nextPow2(a))),this._field[2]=d(this._field[2].data,[t.shape[0]+2,t.shape[1]+2]),this.padField(this._field[2],t),this.shape=t.shape.slice();for(var i=this.shape,o=0;o<2;++o)this._field[2].size>this._field[o].data.length&&(s.freeFloat(this._field[o].data),this._field[o].data=s.mallocFloat(this._field[2].size)),this._field[o]=d(this._field[o].data,[i[0]+2,i[1]+2]);if(e.coords){var l=e.coords;if(!Array.isArray(l)||3!==l.length)throw new Error("gl-surface: invalid coordinates for x/y");for(o=0;o<2;++o){var c=l[o];for(y=0;y<2;++y)if(c.shape[y]!==i[y])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[o],c)}}else if(e.ticks){var u=e.ticks;if(!Array.isArray(u)||2!==u.length)throw new Error("gl-surface: invalid ticks");for(o=0;o<2;++o){var h=u[o];if((Array.isArray(h)||h.length)&&(h=d(h)),h.shape[0]!==i[o])throw new Error("gl-surface: invalid tick length");var f=d(h.data,i);f.stride[o]=h.stride[0],f.stride[1^o]=0,this.padField(this._field[o],f)}}else{for(o=0;o<2;++o){var m=[0,0];m[o]=1,this._field[o]=d(this._field[o].data,[i[0]+2,i[1]+2],m,0)}this._field[0].set(0,0,0);for(var y=0;y<i[0];++y)this._field[0].set(y+1,0,y);for(this._field[0].set(i[0]+1,0,i[0]-1),this._field[1].set(0,0,0),y=0;y<i[1];++y)this._field[1].set(0,y+1,y);this._field[1].set(0,i[1]+1,i[1]-1)}var b=this._field,v=d(s.mallocFloat(3*b[2].size*2),[3,i[0]+2,i[1]+2,2]);for(o=0;o<3;++o)g(v.pick(o),b[o],"mirror");var M=d(s.mallocFloat(3*b[2].size),[i[0]+2,i[1]+2,3]);for(o=0;o<i[0]+2;++o)for(y=0;y<i[1]+2;++y){var x=v.get(0,o,y,0),z=v.get(0,o,y,1),_=v.get(1,o,y,0),O=v.get(1,o,y,1),w=v.get(2,o,y,0),k=v.get(2,o,y,1),T=_*k-O*w,S=w*z-k*x,C=x*O-z*_,E=Math.sqrt(T*T+S*S+C*C);E<1e-8?(E=Math.max(Math.abs(T),Math.abs(S),Math.abs(C)))<1e-8?(C=1,S=T=0,E=1):E=1/E:E=1/Math.sqrt(E),M.set(o,y,0,T*E),M.set(o,y,1,S*E),M.set(o,y,2,C*E)}s.free(v.data);var q=[1/0,1/0,1/0],D=[-1/0,-1/0,-1/0],R=1/0,L=-1/0,I=(i[0]-1)*(i[1]-1)*6,W=s.mallocFloat(r.nextPow2(10*I)),P=0,F=0;for(o=0;o<i[0]-1;++o)e:for(y=0;y<i[1]-1;++y){for(var j=0;j<2;++j)for(var U=0;U<2;++U)for(var V=0;V<3;++V){var H=this._field[V].get(1+o+j,1+y+U);if(isNaN(H)||!isFinite(H))continue e}for(V=0;V<6;++V){var X=o+A[V][0],G=y+A[V][1],Y=this._field[0].get(X+1,G+1),Z=this._field[1].get(X+1,G+1);H=this._field[2].get(X+1,G+1),T=M.get(X+1,G+1,0),S=M.get(X+1,G+1,1),C=M.get(X+1,G+1,2),e.intensity&&($=e.intensity.get(X,G));var $=e.intensity?e.intensity.get(X,G):H+this.objectOffset[2];W[P++]=X,W[P++]=G,W[P++]=Y,W[P++]=Z,W[P++]=H,W[P++]=0,W[P++]=$,W[P++]=T,W[P++]=S,W[P++]=C,q[0]=Math.min(q[0],Y+this.objectOffset[0]),q[1]=Math.min(q[1],Z+this.objectOffset[1]),q[2]=Math.min(q[2],H+this.objectOffset[2]),R=Math.min(R,$),D[0]=Math.max(D[0],Y+this.objectOffset[0]),D[1]=Math.max(D[1],Z+this.objectOffset[1]),D[2]=Math.max(D[2],H+this.objectOffset[2]),L=Math.max(L,$),F+=1}}for(e.intensityBounds&&(R=+e.intensityBounds[0],L=+e.intensityBounds[1]),o=6;o<P;o+=10)W[o]=(W[o]-R)/(L-R);this._vertexCount=F,this._coordinateBuffer.update(W.subarray(0,P)),s.freeFloat(W),s.free(M.data),this.bounds=[q,D],this.intensity=e.intensity||this._field[2],(this.intensityBounds[0]!==R||this.intensityBounds[1]!==L)&&(n=!0),this.intensityBounds=[R,L]}if("levels"in e){var J=e.levels;for(J=Array.isArray(J[0])?J.slice():[[],[],J],o=0;o<3;++o)J[o]=J[o].slice(),J[o].sort(function(e,t){return e-t});for(o=0;o<3;++o)for(y=0;y<J[o].length;++y)J[o][y]-=this.objectOffset[o];e:for(o=0;o<3;++o){if(J[o].length!==this.contourLevels[o].length){n=!0;break}for(y=0;y<J[o].length;++y)if(J[o][y]!==this.contourLevels[o][y]){n=!0;break e}}this.contourLevels=J}if(n){b=this._field,i=this.shape;for(var Q=[],K=0;K<3;++K){var ee=this.contourLevels[K],te=[],ne=[],re=[0,0,0];for(o=0;o<ee.length;++o){var ae=p(this._field[K],ee[o]);te.push(Q.length/5|0),F=0;e:for(y=0;y<ae.cells.length;++y){var ie=ae.cells[y];for(V=0;V<2;++V){var oe=ae.positions[ie[V]],se=oe[0],le=0|Math.floor(se),ce=se-le,ue=oe[1],de=0|Math.floor(ue),pe=ue-de,he=!1;t:for(var fe=0;fe<3;++fe){re[fe]=0;var me=(K+fe+1)%3;for(j=0;j<2;++j){var ge=j?ce:1-ce;for(X=0|Math.min(Math.max(le+j,0),i[0]),U=0;U<2;++U){var ye=U?pe:1-pe;if(G=0|Math.min(Math.max(de+U,0),i[1]),H=fe<2?this._field[me].get(X,G):(this.intensity.get(X,G)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(H)||isNaN(H)){he=!0;break t}var be=ge*ye;re[fe]+=be*H}}}if(he){if(V>0){for(var ve=0;ve<5;++ve)Q.pop();F-=1}continue e}Q.push(re[0],re[1],oe[0],oe[1],re[2]),F+=1}}ne.push(F)}this._contourOffsets[K]=te,this._contourCounts[K]=ne}var Me=s.mallocFloat(Q.length);for(o=0;o<Q.length;++o)Me[o]=Q[o];this._contourBuffer.update(Me),s.freeFloat(Me)}},S.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var e=0;e<3;++e)s.freeFloat(this._field[e].data)},S.highlight=function(e){var t,n;if(!e)return this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],void(this.highlightLevel=[-1,-1,-1]);for(t=0;t<3;++t)this.enableHighlight[t]?this.highlightLevel[t]=e.level[t]:this.highlightLevel[t]=-1;for(n=this.snapToData?e.dataCoordinate:e.position,t=0;t<3;++t)n[t]-=this.objectOffset[t];if(this.enableDynamic[0]&&n[0]!==this.dynamicLevel[0]||this.enableDynamic[1]&&n[1]!==this.dynamicLevel[1]||this.enableDynamic[2]&&n[2]!==this.dynamicLevel[2]){for(var r=0,a=this.shape,i=s.mallocFloat(12*a[0]*a[1]),o=0;o<3;++o)if(this.enableDynamic[o]){this.dynamicLevel[o]=n[o];var l=(o+1)%3,c=(o+2)%3,u=this._field[o],d=this._field[l],h=this._field[c],f=p(u,n[o]),m=f.cells,g=f.positions;for(this._dynamicOffsets[o]=r,t=0;t<m.length;++t)for(var y=m[t],b=0;b<2;++b){var v=g[y[b]],M=+v[0],x=0|M,z=0|Math.min(x+1,a[0]),_=M-x,A=1-_,O=+v[1],w=0|O,k=0|Math.min(w+1,a[1]),T=O-w,S=1-T,C=A*S,E=A*T,q=_*S,D=_*T,R=C*d.get(x,w)+E*d.get(x,k)+q*d.get(z,w)+D*d.get(z,k),L=C*h.get(x,w)+E*h.get(x,k)+q*h.get(z,w)+D*h.get(z,k);if(isNaN(R)||isNaN(L)){b&&(r-=1);break}i[2*r+0]=R,i[2*r+1]=L,r+=1}this._dynamicCounts[o]=r-this._dynamicOffsets[o]}else this.dynamicLevel[o]=NaN,this._dynamicCounts[o]=0;this._dynamicBuffer.update(i.subarray(0,2*r)),s.freeFloat(i)}}},7766:function(e,t,n){var r=n(9618),a=n(5298),i=n(1888);e.exports=function(e){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(o||function(e){o=[e.LINEAR,e.NEAREST_MIPMAP_LINEAR,e.LINEAR_MIPMAP_NEAREST,e.LINEAR_MIPMAP_NEAREST],s=[e.NEAREST,e.LINEAR,e.NEAREST_MIPMAP_NEAREST,e.NEAREST_MIPMAP_LINEAR,e.LINEAR_MIPMAP_NEAREST,e.LINEAR_MIPMAP_LINEAR],l=[e.REPEAT,e.CLAMP_TO_EDGE,e.MIRRORED_REPEAT]}(e),"number"==typeof arguments[1])return g(e,arguments[1],arguments[2],arguments[3]||e.RGBA,arguments[4]||e.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return g(e,0|arguments[1][0],0|arguments[1][1],arguments[2]||e.RGBA,arguments[3]||e.UNSIGNED_BYTE);if("object"==typeof arguments[1]){var t=arguments[1],n=c(t)?t:t.raw;if(n)return function(e,t,n,r,a,i){var o=m(e);return e.texImage2D(e.TEXTURE_2D,0,a,a,i,t),new p(e,o,n,r,a,i)}(e,n,0|t.width,0|t.height,arguments[2]||e.RGBA,arguments[3]||e.UNSIGNED_BYTE);if(t.shape&&t.data&&t.stride)return function(e,t){var n=t.dtype,o=t.shape.slice(),s=e.getParameter(e.MAX_TEXTURE_SIZE);if(o[0]<0||o[0]>s||o[1]<0||o[1]>s)throw new Error("gl-texture2d: Invalid texture size");var l=f(o,t.stride.slice()),c=0;"float32"===n?c=e.FLOAT:"float64"===n?(c=e.FLOAT,l=!1,n="float32"):"uint8"===n?c=e.UNSIGNED_BYTE:(c=e.UNSIGNED_BYTE,l=!1,n="uint8");var d=0;if(2===o.length)d=e.LUMINANCE,o=[o[0],o[1],1],t=r(t.data,o,[t.stride[0],t.stride[1],1],t.offset);else{if(3!==o.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===o[2])d=e.ALPHA;else if(2===o[2])d=e.LUMINANCE_ALPHA;else if(3===o[2])d=e.RGB;else{if(4!==o[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");d=e.RGBA}}c===e.FLOAT&&!e.getExtension("OES_texture_float")&&(c=e.UNSIGNED_BYTE,l=!1);var h,g,y=t.size;if(l)h=0===t.offset&&t.data.length===y?t.data:t.data.subarray(t.offset,t.offset+y);else{var b=[o[2],o[2]*o[0],1];g=i.malloc(y,n);var v=r(g,o,b,0);"float32"!==n&&"float64"!==n||c!==e.UNSIGNED_BYTE?a.assign(v,t):u(v,t),h=g.subarray(0,y)}var M=m(e);return e.texImage2D(e.TEXTURE_2D,0,d,o[0],o[1],0,d,c,h),l||i.free(g),new p(e,M,o[0],o[1],d,c)}(e,t)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")};var o=null,s=null,l=null;function c(e){return typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLVideoElement<"u"&&e instanceof HTMLVideoElement||typeof ImageData<"u"&&e instanceof ImageData}var u=function(e,t){a.muls(e,t,255)};function d(e,t,n){var r=e.gl,a=r.getParameter(r.MAX_TEXTURE_SIZE);if(t<0||t>a||n<0||n>a)throw new Error("gl-texture2d: Invalid texture size");return e._shape=[t,n],e.bind(),r.texImage2D(r.TEXTURE_2D,0,e.format,t,n,0,e.format,e.type,null),e._mipLevels=[0],e}function p(e,t,n,r,a,i){this.gl=e,this.handle=t,this.format=a,this.type=i,this._shape=[n,r],this._mipLevels=[0],this._magFilter=e.NEAREST,this._minFilter=e.NEAREST,this._wrapS=e.CLAMP_TO_EDGE,this._wrapT=e.CLAMP_TO_EDGE,this._anisoSamples=1;var o=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return o._wrapS},set:function(e){return o.wrapS=e}},{get:function(){return o._wrapT},set:function(e){return o.wrapT=e}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return o._shape[0]},set:function(e){return o.width=e}},{get:function(){return o._shape[1]},set:function(e){return o.height=e}}]),this._shapeVector=l}var h=p.prototype;function f(e,t){return 3===e.length?1===t[2]&&t[1]===e[0]*e[2]&&t[0]===e[2]:1===t[0]&&t[1]===e[0]}function m(e){var t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),t}function g(e,t,n,r,a){var i=e.getParameter(e.MAX_TEXTURE_SIZE);if(t<0||t>i||n<0||n>i)throw new Error("gl-texture2d: Invalid texture shape");if(a===e.FLOAT&&!e.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var o=m(e);return e.texImage2D(e.TEXTURE_2D,0,r,t,n,0,r,a,null),new p(e,o,t,n,r,a)}Object.defineProperties(h,{minFilter:{get:function(){return this._minFilter},set:function(e){this.bind();var t=this.gl;if(this.type===t.FLOAT&&o.indexOf(e)>=0&&(t.getExtension("OES_texture_float_linear")||(e=t.NEAREST)),s.indexOf(e)<0)throw new Error("gl-texture2d: Unknown filter mode "+e);return t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,e),this._minFilter=e}},magFilter:{get:function(){return this._magFilter},set:function(e){this.bind();var t=this.gl;if(this.type===t.FLOAT&&o.indexOf(e)>=0&&(t.getExtension("OES_texture_float_linear")||(e=t.NEAREST)),s.indexOf(e)<0)throw new Error("gl-texture2d: Unknown filter mode "+e);return t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,e),this._magFilter=e}},mipSamples:{get:function(){return this._anisoSamples},set:function(e){var t=this._anisoSamples;if(this._anisoSamples=0|Math.max(e,1),t!==this._anisoSamples){var n=this.gl.getExtension("EXT_texture_filter_anisotropic");n&&this.gl.texParameterf(this.gl.TEXTURE_2D,n.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(e){if(this.bind(),l.indexOf(e)<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,e),this._wrapS=e}},wrapT:{get:function(){return this._wrapT},set:function(e){if(this.bind(),l.indexOf(e)<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,e),this._wrapT=e}},wrap:{get:function(){return this._wrapVector},set:function(e){if(Array.isArray(e)||(e=[e,e]),2!==e.length)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var t=0;t<2;++t)if(l.indexOf(e[t])<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);this._wrapS=e[0],this._wrapT=e[1];var n=this.gl;return this.bind(),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,this._wrapS),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,this._wrapT),e}},shape:{get:function(){return this._shapeVector},set:function(e){if(Array.isArray(e)){if(2!==e.length)throw new Error("gl-texture2d: Invalid texture shape")}else e=[0|e,0|e];return d(this,0|e[0],0|e[1]),[0|e[0],0|e[1]]}},width:{get:function(){return this._shape[0]},set:function(e){return d(this,e|=0,this._shape[1]),e}},height:{get:function(){return this._shape[1]},set:function(e){return e|=0,d(this,this._shape[0],e),e}}}),h.bind=function(e){var t=this.gl;return void 0!==e&&t.activeTexture(t.TEXTURE0+(0|e)),t.bindTexture(t.TEXTURE_2D,this.handle),void 0!==e?0|e:t.getParameter(t.ACTIVE_TEXTURE)-t.TEXTURE0},h.dispose=function(){this.gl.deleteTexture(this.handle)},h.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var e=Math.min(this._shape[0],this._shape[1]),t=0;e>0;++t,e>>>=1)this._mipLevels.indexOf(t)<0&&this._mipLevels.push(t)},h.setPixels=function(e,t,n,o){var s=this.gl;this.bind(),Array.isArray(t)?(o=n,n=0|t[1],t=0|t[0]):(t=t||0,n=n||0),o=o||0;var l=c(e)?e:e.raw;if(l){this._mipLevels.indexOf(o)<0?(s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,this.type,l),this._mipLevels.push(o)):s.texSubImage2D(s.TEXTURE_2D,o,t,n,this.format,this.type,l)}else{if(!(e.shape&&e.stride&&e.data))throw new Error("gl-texture2d: Unsupported data type");if(e.shape.length<2||t+e.shape[1]>this._shape[1]>>>o||n+e.shape[0]>this._shape[0]>>>o||t<0||n<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");!function(e,t,n,o,s,l,c,d){var p=d.dtype,h=d.shape.slice();if(h.length<2||h.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var m=0,g=0,y=f(h,d.stride.slice());"float32"===p?m=e.FLOAT:"float64"===p?(m=e.FLOAT,y=!1,p="float32"):"uint8"===p?m=e.UNSIGNED_BYTE:(m=e.UNSIGNED_BYTE,y=!1,p="uint8");if(2===h.length)g=e.LUMINANCE,h=[h[0],h[1],1],d=r(d.data,h,[d.stride[0],d.stride[1],1],d.offset);else{if(3!==h.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===h[2])g=e.ALPHA;else if(2===h[2])g=e.LUMINANCE_ALPHA;else if(3===h[2])g=e.RGB;else{if(4!==h[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");g=e.RGBA}h[2]}if((g===e.LUMINANCE||g===e.ALPHA)&&(s===e.LUMINANCE||s===e.ALPHA)&&(g=s),g!==s)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var b=d.size,v=c.indexOf(o)<0;if(v&&c.push(o),m===l&&y)0===d.offset&&d.data.length===b?v?e.texImage2D(e.TEXTURE_2D,o,s,h[0],h[1],0,s,l,d.data):e.texSubImage2D(e.TEXTURE_2D,o,t,n,h[0],h[1],s,l,d.data):v?e.texImage2D(e.TEXTURE_2D,o,s,h[0],h[1],0,s,l,d.data.subarray(d.offset,d.offset+b)):e.texSubImage2D(e.TEXTURE_2D,o,t,n,h[0],h[1],s,l,d.data.subarray(d.offset,d.offset+b));else{var M;M=l===e.FLOAT?i.mallocFloat32(b):i.mallocUint8(b);var x=r(M,h,[h[2],h[2]*h[0],1]);m===e.FLOAT&&l===e.UNSIGNED_BYTE?u(x,d):a.assign(x,d),v?e.texImage2D(e.TEXTURE_2D,o,s,h[0],h[1],0,s,l,M.subarray(0,b)):e.texSubImage2D(e.TEXTURE_2D,o,t,n,h[0],h[1],s,l,M.subarray(0,b)),l===e.FLOAT?i.freeFloat32(M):i.freeUint8(M)}}(s,t,n,o,this.format,this.type,this._mipLevels,e)}}},1433:function(e){e.exports=function(e,t,n){t?t.bind():e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,null);var r=0|e.getParameter(e.MAX_VERTEX_ATTRIBS);if(n){if(n.length>r)throw new Error("gl-vao: Too many vertex attributes");for(var a=0;a<n.length;++a){var i=n[a];if(i.buffer){var o=i.buffer,s=i.size||4,l=i.type||e.FLOAT,c=!!i.normalized,u=i.stride||0,d=i.offset||0;o.bind(),e.enableVertexAttribArray(a),e.vertexAttribPointer(a,s,l,c,u,d)}else{if("number"==typeof i)e.vertexAttrib1f(a,i);else if(1===i.length)e.vertexAttrib1f(a,i[0]);else if(2===i.length)e.vertexAttrib2f(a,i[0],i[1]);else if(3===i.length)e.vertexAttrib3f(a,i[0],i[1],i[2]);else{if(4!==i.length)throw new Error("gl-vao: Invalid vertex attribute");e.vertexAttrib4f(a,i[0],i[1],i[2],i[3])}e.disableVertexAttribArray(a)}}for(;a<r;++a)e.disableVertexAttribArray(a)}else{e.bindBuffer(e.ARRAY_BUFFER,null);for(a=0;a<r;++a)e.disableVertexAttribArray(a)}}},870:function(e,t,n){var r=n(1433);function a(e){this.gl=e,this._elements=null,this._attributes=null,this._elementsType=e.UNSIGNED_SHORT}a.prototype.bind=function(){r(this.gl,this._elements,this._attributes)},a.prototype.update=function(e,t,n){this._elements=t,this._attributes=e,this._elementsType=n||this.gl.UNSIGNED_SHORT},a.prototype.dispose=function(){},a.prototype.unbind=function(){},a.prototype.draw=function(e,t,n){n=n||0;var r=this.gl;this._elements?r.drawElements(e,t,this._elementsType,n):r.drawArrays(e,n,t)},e.exports=function(e){return new a(e)}},7518:function(e,t,n){var r=n(1433);function a(e,t,n,r,a,i){this.location=e,this.dimension=t,this.a=n,this.b=r,this.c=a,this.d=i}function i(e,t,n){this.gl=e,this._ext=t,this.handle=n,this._attribs=[],this._useElements=!1,this._elementsType=e.UNSIGNED_SHORT}a.prototype.bind=function(e){switch(this.dimension){case 1:e.vertexAttrib1f(this.location,this.a);break;case 2:e.vertexAttrib2f(this.location,this.a,this.b);break;case 3:e.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:e.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d)}},i.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var e=0;e<this._attribs.length;++e)this._attribs[e].bind(this.gl)},i.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},i.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},i.prototype.update=function(e,t,n){if(this.bind(),r(this.gl,t,e),this.unbind(),this._attribs.length=0,e)for(var i=0;i<e.length;++i){var o=e[i];"number"==typeof o?this._attribs.push(new a(i,1,o)):Array.isArray(o)&&this._attribs.push(new a(i,o.length,o[0],o[1],o[2],o[3]))}this._useElements=!!t,this._elementsType=n||this.gl.UNSIGNED_SHORT},i.prototype.draw=function(e,t,n){n=n||0;var r=this.gl;this._useElements?r.drawElements(e,t,this._elementsType,n):r.drawArrays(e,n,t)},e.exports=function(e,t){return new i(e,t,t.createVertexArrayOES())}},8116:function(e,t,n){var r=n(7518),a=n(870);function i(e){this.bindVertexArrayOES=e.bindVertexArray.bind(e),this.createVertexArrayOES=e.createVertexArray.bind(e),this.deleteVertexArrayOES=e.deleteVertexArray.bind(e)}e.exports=function(e,t,n,o){var s,l=e.createVertexArray?new i(e):e.getExtension("OES_vertex_array_object");return(s=l?r(e,l):a(e)).update(t,n,o),s}},5632:function(e){e.exports=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}},8192:function(e,t,n){e.exports=function(e,t){var n=r(e[0],e[1],e[2]),o=r(t[0],t[1],t[2]);a(n,n),a(o,o);var s=i(n,o);return s>1?0:Math.acos(s)};var r=n(2825),a=n(3536),i=n(244)},9226:function(e){e.exports=function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e}},3126:function(e){e.exports=function(e){var t=new Float32Array(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},3990:function(e){e.exports=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},1091:function(e){e.exports=function(){var e=new Float32Array(3);return e[0]=0,e[1]=0,e[2]=0,e}},5911:function(e){e.exports=function(e,t,n){var r=t[0],a=t[1],i=t[2],o=n[0],s=n[1],l=n[2];return e[0]=a*l-i*s,e[1]=i*o-r*l,e[2]=r*s-a*o,e}},5455:function(e,t,n){e.exports=n(7056)},7056:function(e){e.exports=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],a=t[2]-e[2];return Math.sqrt(n*n+r*r+a*a)}},4008:function(e,t,n){e.exports=n(6690)},6690:function(e){e.exports=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}},244:function(e){e.exports=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}},2613:function(e){e.exports=1e-6},9922:function(e,t,n){e.exports=function(e,t){var n=e[0],a=e[1],i=e[2],o=t[0],s=t[1],l=t[2];return Math.abs(n-o)<=r*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(a-s)<=r*Math.max(1,Math.abs(a),Math.abs(s))&&Math.abs(i-l)<=r*Math.max(1,Math.abs(i),Math.abs(l))};var r=n(2613)},9265:function(e){e.exports=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}},2681:function(e){e.exports=function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e}},5137:function(e,t,n){e.exports=function(e,t,n,a,i,o){var s,l;for(t||(t=3),n||(n=0),l=a?Math.min(a*t+n,e.length):e.length,s=n;s<l;s+=t)r[0]=e[s],r[1]=e[s+1],r[2]=e[s+2],i(r,r,o),e[s]=r[0],e[s+1]=r[1],e[s+2]=r[2];return e};var r=n(1091)()},2825:function(e){e.exports=function(e,t,n){var r=new Float32Array(3);return r[0]=e,r[1]=t,r[2]=n,r}},2931:function(e,t,n){e.exports={EPSILON:n(2613),create:n(1091),clone:n(3126),angle:n(8192),fromValues:n(2825),copy:n(3990),set:n(1463),equals:n(9922),exactEquals:n(9265),add:n(5632),subtract:n(6843),sub:n(2229),multiply:n(5847),mul:n(4505),divide:n(6690),div:n(4008),min:n(8107),max:n(7417),floor:n(2681),ceil:n(9226),round:n(2447),scale:n(6621),scaleAndAdd:n(8489),distance:n(7056),dist:n(5455),squaredDistance:n(2953),sqrDist:n(6141),length:n(1387),len:n(868),squaredLength:n(3066),sqrLen:n(5486),negate:n(5093),inverse:n(811),normalize:n(3536),dot:n(244),cross:n(5911),lerp:n(6658),random:n(7636),transformMat4:n(5673),transformMat3:n(492),transformQuat:n(264),rotateX:n(6894),rotateY:n(109),rotateZ:n(8692),forEach:n(5137)}},811:function(e){e.exports=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}},868:function(e,t,n){e.exports=n(1387)},1387:function(e){e.exports=function(e){var t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}},6658:function(e){e.exports=function(e,t,n,r){var a=t[0],i=t[1],o=t[2];return e[0]=a+r*(n[0]-a),e[1]=i+r*(n[1]-i),e[2]=o+r*(n[2]-o),e}},7417:function(e){e.exports=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}},8107:function(e){e.exports=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}},4505:function(e,t,n){e.exports=n(5847)},5847:function(e){e.exports=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}},5093:function(e){e.exports=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}},3536:function(e){e.exports=function(e,t){var n=t[0],r=t[1],a=t[2],i=n*n+r*r+a*a;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i),e}},7636:function(e){e.exports=function(e,t){t=t||1;var n=2*Math.random()*Math.PI,r=2*Math.random()-1,a=Math.sqrt(1-r*r)*t;return e[0]=Math.cos(n)*a,e[1]=Math.sin(n)*a,e[2]=r*t,e}},6894:function(e){e.exports=function(e,t,n,r){var a=n[1],i=n[2],o=t[1]-a,s=t[2]-i,l=Math.sin(r),c=Math.cos(r);return e[0]=t[0],e[1]=a+o*c-s*l,e[2]=i+o*l+s*c,e}},109:function(e){e.exports=function(e,t,n,r){var a=n[0],i=n[2],o=t[0]-a,s=t[2]-i,l=Math.sin(r),c=Math.cos(r);return e[0]=a+s*l+o*c,e[1]=t[1],e[2]=i+s*c-o*l,e}},8692:function(e){e.exports=function(e,t,n,r){var a=n[0],i=n[1],o=t[0]-a,s=t[1]-i,l=Math.sin(r),c=Math.cos(r);return e[0]=a+o*c-s*l,e[1]=i+o*l+s*c,e[2]=t[2],e}},2447:function(e){e.exports=function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e}},6621:function(e){e.exports=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}},8489:function(e){e.exports=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}},1463:function(e){e.exports=function(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}},6141:function(e,t,n){e.exports=n(2953)},5486:function(e,t,n){e.exports=n(3066)},2953:function(e){e.exports=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],a=t[2]-e[2];return n*n+r*r+a*a}},3066:function(e){e.exports=function(e){var t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}},2229:function(e,t,n){e.exports=n(6843)},6843:function(e){e.exports=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}},492:function(e){e.exports=function(e,t,n){var r=t[0],a=t[1],i=t[2];return e[0]=r*n[0]+a*n[3]+i*n[6],e[1]=r*n[1]+a*n[4]+i*n[7],e[2]=r*n[2]+a*n[5]+i*n[8],e}},5673:function(e){e.exports=function(e,t,n){var r=t[0],a=t[1],i=t[2],o=n[3]*r+n[7]*a+n[11]*i+n[15];return o=o||1,e[0]=(n[0]*r+n[4]*a+n[8]*i+n[12])/o,e[1]=(n[1]*r+n[5]*a+n[9]*i+n[13])/o,e[2]=(n[2]*r+n[6]*a+n[10]*i+n[14])/o,e}},264:function(e){e.exports=function(e,t,n){var r=t[0],a=t[1],i=t[2],o=n[0],s=n[1],l=n[2],c=n[3],u=c*r+s*i-l*a,d=c*a+l*r-o*i,p=c*i+o*a-s*r,h=-o*r-s*a-l*i;return e[0]=u*c+h*-o+d*-l-p*-s,e[1]=d*c+h*-s+p*-o-u*-l,e[2]=p*c+h*-l+u*-s-d*-o,e}},4361:function(e){e.exports=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e}},2335:function(e){e.exports=function(e){var t=new Float32Array(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},2933:function(e){e.exports=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},7536:function(e){e.exports=function(){var e=new Float32Array(4);return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e}},4691:function(e){e.exports=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],a=t[2]-e[2],i=t[3]-e[3];return Math.sqrt(n*n+r*r+a*a+i*i)}},1373:function(e){e.exports=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e}},3750:function(e){e.exports=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}},3390:function(e){e.exports=function(e,t,n,r){var a=new Float32Array(4);return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a}},9970:function(e,t,n){e.exports={create:n(7536),clone:n(2335),fromValues:n(3390),copy:n(2933),set:n(4578),add:n(4361),subtract:n(6860),multiply:n(3576),divide:n(1373),min:n(2334),max:n(160),scale:n(9288),scaleAndAdd:n(4844),distance:n(4691),squaredDistance:n(7960),length:n(6808),squaredLength:n(483),negate:n(1498),inverse:n(4494),normalize:n(5177),dot:n(3750),lerp:n(2573),random:n(9131),transformMat4:n(5352),transformQuat:n(4041)}},4494:function(e){e.exports=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e}},6808:function(e){e.exports=function(e){var t=e[0],n=e[1],r=e[2],a=e[3];return Math.sqrt(t*t+n*n+r*r+a*a)}},2573:function(e){e.exports=function(e,t,n,r){var a=t[0],i=t[1],o=t[2],s=t[3];return e[0]=a+r*(n[0]-a),e[1]=i+r*(n[1]-i),e[2]=o+r*(n[2]-o),e[3]=s+r*(n[3]-s),e}},160:function(e){e.exports=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e}},2334:function(e){e.exports=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.min(t[3],n[3]),e}},3576:function(e){e.exports=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}},1498:function(e){e.exports=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e}},5177:function(e){e.exports=function(e,t){var n=t[0],r=t[1],a=t[2],i=t[3],o=n*n+r*r+a*a+i*i;return o>0&&(o=1/Math.sqrt(o),e[0]=n*o,e[1]=r*o,e[2]=a*o,e[3]=i*o),e}},9131:function(e,t,n){var r=n(5177),a=n(9288);e.exports=function(e,t){return t=t||1,e[0]=Math.random(),e[1]=Math.random(),e[2]=Math.random(),e[3]=Math.random(),r(e,e),a(e,e,t),e}},9288:function(e){e.exports=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}},4844:function(e){e.exports=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e}},4578:function(e){e.exports=function(e,t,n,r,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=a,e}},7960:function(e){e.exports=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],a=t[2]-e[2],i=t[3]-e[3];return n*n+r*r+a*a+i*i}},483:function(e){e.exports=function(e){var t=e[0],n=e[1],r=e[2],a=e[3];return t*t+n*n+r*r+a*a}},6860:function(e){e.exports=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}},5352:function(e){e.exports=function(e,t,n){var r=t[0],a=t[1],i=t[2],o=t[3];return e[0]=n[0]*r+n[4]*a+n[8]*i+n[12]*o,e[1]=n[1]*r+n[5]*a+n[9]*i+n[13]*o,e[2]=n[2]*r+n[6]*a+n[10]*i+n[14]*o,e[3]=n[3]*r+n[7]*a+n[11]*i+n[15]*o,e}},4041:function(e){e.exports=function(e,t,n){var r=t[0],a=t[1],i=t[2],o=n[0],s=n[1],l=n[2],c=n[3],u=c*r+s*i-l*a,d=c*a+l*r-o*i,p=c*i+o*a-s*r,h=-o*r-s*a-l*i;return e[0]=u*c+h*-o+d*-l-p*-s,e[1]=d*c+h*-s+p*-o-u*-l,e[2]=p*c+h*-l+u*-s-d*-o,e[3]=t[3],e}},1848:function(e,t,n){var r=n(4905),a=n(6468);e.exports=function(e){for(var t=Array.isArray(e)?e:r(e),n=0;n<t.length;n++){var i=t[n];if("preprocessor"===i.type){var o=i.data.match(/\#define\s+SHADER_NAME(_B64)?\s+(.+)$/);if(o&&o[2]){var s=o[1],l=o[2];return(s?a(l):l).trim()}}}}},5874:function(e,t,n){e.exports=function(e){var t,n,_,A=0,O=0,w=l,k=[],T=[],S=1,C=0,E=0,q=!1,D=!1,R="",L=i,I=r;"300 es"===(e=e||{}).version&&(L=s,I=o);var W={},N={};for(A=0;A<L.length;A++)W[L[A]]=!0;for(A=0;A<I.length;A++)N[I[A]]=!0;return function(e){return T=[],null!==e?function(e){A=0,e.toString&&(e=e.toString()),R+=e.replace(/\r\n/g,"\n"),_=R.length;for(var n;t=R[A],A<_;){switch(n=A,w){case u:A=V();break;case d:A=U();break;case p:A=j();break;case h:A=H();break;case f:A=Y();break;case x:A=G();break;case m:A=Z();break;case c:A=$();break;case v:A=F();break;case l:A=B()}n!==A&&("\n"===R[n]?(C=0,++S):++C)}return O+=A,R=R.slice(A),T}(e):(k.length&&P(k.join("")),w=M,P("(eof)"),T)};function P(e){e.length&&T.push({type:z[w],data:e,position:E,line:S,column:C})}function B(){return k=k.length?[]:k,"/"===n&&"*"===t?(E=O+A-1,w=u,n=t,A+1):"/"===n&&"/"===t?(E=O+A-1,w=d,n=t,A+1):"#"===t?(w=p,E=O+A,A):/\s/.test(t)?(w=v,E=O+A,A):(q=/\d/.test(t),D=/[^\w_]/.test(t),E=O+A,w=q?f:D?h:c,A)}function F(){return/[^\s]/g.test(t)?(P(k.join("")),w=l,A):(k.push(t),n=t,A+1)}function j(){return"\r"!==t&&"\n"!==t||"\\"===n?(k.push(t),n=t,A+1):(P(k.join("")),w=l,A)}function U(){return j()}function V(){return"/"===t&&"*"===n?(k.push(t),P(k.join("")),w=l,A+1):(k.push(t),n=t,A+1)}function H(){if("."===n&&/\d/.test(t))return w=m,A;if("/"===n&&"*"===t)return w=u,A;if("/"===n&&"/"===t)return w=d,A;if("."===t&&k.length){for(;X(k););return w=m,A}if(";"===t||")"===t||"("===t){if(k.length)for(;X(k););return P(t),w=l,A+1}var e=2===k.length&&"="!==t;if(/[\w_\d\s]/.test(t)||e){for(;X(k););return w=l,A}return k.push(t),n=t,A+1}function X(e){for(var t,n,r=0;;){if(t=a.indexOf(e.slice(0,e.length+r).join("")),n=a[t],-1===t){if(r--+e.length>0)continue;n=e.slice(0,1).join("")}return P(n),E+=n.length,(k=k.slice(n.length)).length}}function G(){return/[^a-fA-F0-9]/.test(t)?(P(k.join("")),w=l,A):(k.push(t),n=t,A+1)}function Y(){return"."===t||/[eE]/.test(t)?(k.push(t),w=m,n=t,A+1):"x"===t&&1===k.length&&"0"===k[0]?(w=x,k.push(t),n=t,A+1):/[^\d]/.test(t)?(P(k.join("")),w=l,A):(k.push(t),n=t,A+1)}function Z(){return"f"===t&&(k.push(t),n=t,A+=1),/[eE]/.test(t)||("-"===t||"+"===t)&&/[eE]/.test(n)?(k.push(t),n=t,A+1):/[^\d]/.test(t)?(P(k.join("")),w=l,A):(k.push(t),n=t,A+1)}function $(){if(/[^\d\w_]/.test(t)){var e=k.join("");return w=N[e]?b:W[e]?y:g,P(k.join("")),w=l,A}return k.push(t),n=t,A+1}};var r=n(620),a=n(7827),i=n(6852),o=n(7932),s=n(3508),l=999,c=9999,u=0,d=1,p=2,h=3,f=4,m=5,g=6,y=7,b=8,v=9,M=10,x=11,z=["block-comment","line-comment","preprocessor","operator","integer","float","ident","builtin","keyword","whitespace","eof","integer"]},3508:function(e,t,n){var r=n(6852);r=r.slice().filter(function(e){return!/^(gl\_|texture)/.test(e)}),e.exports=r.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(e){e.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(e,t,n){var r=n(620);e.exports=r.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(e){e.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(e){e.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(e,t,n){var r=n(5874);e.exports=function(e,t){var n=r(t),a=[];return a=(a=a.concat(n(e))).concat(n(null))}},3236:function(e){e.exports=function(e){"string"==typeof e&&(e=[e]);for(var t=[].slice.call(arguments,1),n=[],r=0;r<e.length-1;r++)n.push(e[r],t[r]||"");return n.push(e[r]),n.join("")}},7520:function(e,t,n){var r=n(9507);e.exports=r&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{e=!1}return e}()},3778:function(e,t){t.read=function(e,t,n,r,a){var i,o,s=8*a-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?a-1:0,p=n?-1:1,h=e[t+d];for(d+=p,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=p,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=p,u-=8);if(0===i)i=1-c;else{if(i===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),i-=c}return(h?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,s,l,c=8*i-a-1,u=(1<<c)-1,d=u>>1,p=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,a),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[n+h]=255&s,h+=f,s/=256,a-=8);for(o=o<<a|s,c+=a;c>0;e[n+h]=255&o,h+=f,o/=256,c-=8);e[n+h-f]|=128*m}},8954:function(e,t,n){e.exports=function(e,t){var n=e.length;if(0===n)throw new Error("Must have at least d+1 points");var a=e[0].length;if(n<=a)throw new Error("Must input at least d+1 points");var o=e.slice(0,a+1),s=r.apply(void 0,o);if(0===s)throw new Error("Input not in general position");for(var l=new Array(a+1),u=0;u<=a;++u)l[u]=u;s<0&&(l[0]=1,l[1]=0);var d=new i(l,new Array(a+1),!1),p=d.adjacent,h=new Array(a+2);for(u=0;u<=a;++u){for(var f=l.slice(),m=0;m<=a;++m)m===u&&(f[m]=-1);var g=f[0];f[0]=f[1],f[1]=g;var y=new i(f,new Array(a+1),!0);p[u]=y,h[u]=y}h[a+1]=d;for(u=0;u<=a;++u){f=p[u].vertices;var b=p[u].adjacent;for(m=0;m<=a;++m){var v=f[m];if(v<0)b[m]=d;else for(var M=0;M<=a;++M)p[M].vertices.indexOf(v)<0&&(b[m]=p[M])}}var x=new c(a,o,h),z=!!t;for(u=a+1;u<n;++u)x.insert(e[u],z);return x.boundary()};var r=n(3250),a=n(6803).Fw;function i(e,t,n){this.vertices=e,this.adjacent=t,this.boundary=n,this.lastVisited=-1}function o(e,t,n){this.vertices=e,this.cell=t,this.index=n}function s(e,t){return a(e.vertices,t.vertices)}i.prototype.flip=function(){var e=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=e;var t=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=t};var l=[];function c(e,t,n){this.dimension=e,this.vertices=t,this.simplices=n,this.interior=n.filter(function(e){return!e.boundary}),this.tuple=new Array(e+1);for(var a=0;a<=e;++a)this.tuple[a]=this.vertices[a];var i=l[e];i||(i=l[e]=function(e){var t=r[e+1];return t||(t=r),function(e){return function(){var t=this.tuple;return e.apply(this,t)}}(t)}(e)),this.orient=i}var u=c.prototype;u.handleBoundaryDegeneracy=function(e,t){var n=this.dimension,r=this.vertices.length-1,a=this.tuple,i=this.vertices,o=[e];for(e.lastVisited=-r;o.length>0;)for(var s=(e=o.pop()).adjacent,l=0;l<=n;++l){var c=s[l];if(c.boundary&&!(c.lastVisited<=-r)){for(var u=c.vertices,d=0;d<=n;++d){var p=u[d];a[d]=p<0?t:i[p]}var h=this.orient();if(h>0)return c;c.lastVisited=-r,0===h&&o.push(c)}}return null},u.walk=function(e,t){var n=this.vertices.length-1,r=this.dimension,a=this.vertices,i=this.tuple,o=t?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[o];e:for(;!s.boundary;){for(var l=s.vertices,c=s.adjacent,u=0;u<=r;++u)i[u]=a[l[u]];s.lastVisited=n;for(u=0;u<=r;++u){var d=c[u];if(!(d.lastVisited>=n)){var p=i[u];i[u]=e;var h=this.orient();if(i[u]=p,h<0){s=d;continue e}d.boundary?d.lastVisited=-n:d.lastVisited=n}}return}return s},u.addPeaks=function(e,t){var n=this.vertices.length-1,r=this.dimension,a=this.vertices,l=this.tuple,c=this.interior,u=this.simplices,d=[t];t.lastVisited=n,t.vertices[t.vertices.indexOf(-1)]=n,t.boundary=!1,c.push(t);for(var p=[];d.length>0;){var h=(t=d.pop()).vertices,f=t.adjacent,m=h.indexOf(n);if(!(m<0))for(var g=0;g<=r;++g)if(g!==m){var y=f[g];if(y.boundary&&!(y.lastVisited>=n)){var b=y.vertices;if(y.lastVisited!==-n){for(var v=0,M=0;M<=r;++M)b[M]<0?(v=M,l[M]=e):l[M]=a[b[M]];if(this.orient()>0){b[v]=n,y.boundary=!1,c.push(y),d.push(y),y.lastVisited=n;continue}y.lastVisited=-n}var x=y.adjacent,z=h.slice(),_=f.slice(),A=new i(z,_,!0);u.push(A);var O=x.indexOf(t);if(!(O<0)){x[O]=A,_[m]=y,z[g]=-1,_[g]=t,f[g]=A,A.flip();for(M=0;M<=r;++M){var w=z[M];if(!(w<0||w===n)){for(var k=new Array(r-1),T=0,S=0;S<=r;++S){var C=z[S];C<0||S===M||(k[T++]=C)}p.push(new o(k,A,M))}}}}}}p.sort(s);for(g=0;g+1<p.length;g+=2){var E=p[g],q=p[g+1],D=E.index,R=q.index;D<0||R<0||(E.cell.adjacent[E.index]=q.cell,q.cell.adjacent[q.index]=E.cell)}},u.insert=function(e,t){var n=this.vertices;n.push(e);var r=this.walk(e,t);if(r){for(var a=this.dimension,i=this.tuple,o=0;o<=a;++o){var s=r.vertices[o];i[o]=s<0?e:n[s]}var l=this.orient(i);l<0||0===l&&!(r=this.handleBoundaryDegeneracy(r,e))||this.addPeaks(e,r)}},u.boundary=function(){for(var e=this.dimension,t=[],n=this.simplices,r=n.length,a=0;a<r;++a){var i=n[a];if(i.boundary){for(var o=new Array(e),s=i.vertices,l=0,c=0,u=0;u<=e;++u)s[u]>=0?o[l++]=s[u]:c=1&u;if(c===(1&e)){var d=o[0];o[0]=o[1],o[1]=d}t.push(o)}}return t}},3352:function(e,t,n){var r=n(2478);function a(e,t,n,r,a){this.mid=e,this.left=t,this.right=n,this.leftPoints=r,this.rightPoints=a,this.count=(t?t.count:0)+(n?n.count:0)+r.length}e.exports=function(e){return e&&0!==e.length?new y(g(e)):new y(null)};var i=a.prototype;function o(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function s(e,t){var n=g(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function l(e,t){var n=e.intervals([]);n.push(t),s(e,n)}function c(e,t){var n=e.intervals([]),r=n.indexOf(t);return r<0?0:(n.splice(r,1),s(e,n),1)}function u(e,t,n){for(var r=0;r<e.length&&e[r][0]<=t;++r){var a=n(e[r]);if(a)return a}}function d(e,t,n){for(var r=e.length-1;r>=0&&e[r][1]>=t;--r){var a=n(e[r]);if(a)return a}}function p(e,t){for(var n=0;n<e.length;++n){var r=t(e[n]);if(r)return r}}function h(e,t){return e-t}function f(e,t){return e[0]-t[0]||e[1]-t[1]}function m(e,t){return e[1]-t[1]||e[0]-t[0]}function g(e){if(0===e.length)return null;for(var t=[],n=0;n<e.length;++n)t.push(e[n][0],e[n][1]);t.sort(h);var r=t[t.length>>1],i=[],o=[],s=[];for(n=0;n<e.length;++n){var l=e[n];l[1]<r?i.push(l):r<l[0]?o.push(l):s.push(l)}var c=s,u=s.slice();return c.sort(f),u.sort(m),new a(r,g(i),g(o),c,u)}function y(e){this.root=e}i.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},i.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?l(this,e):this.left.insert(e):this.left=g([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?l(this,e):this.right.insert(e):this.right=g([e]);else{var n=r.ge(this.leftPoints,e,f),a=r.ge(this.rightPoints,e,m);this.leftPoints.splice(n,0,e),this.rightPoints.splice(a,0,e)}},i.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?c(this,e):2===(s=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===s&&(this.count-=1),s):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?c(this,e):2===(s=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===s&&(this.count-=1),s):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var n=this,a=this.left;a.right;)n=a,a=a.right;if(n===this)a.right=this.right;else{var i=this.left,s=this.right;n.count-=a.count,n.right=a.left,a.left=i,a.right=s}o(this,a),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?o(this,this.left):o(this,this.right);return 1}for(i=r.ge(this.leftPoints,e,f);i<this.leftPoints.length&&this.leftPoints[i][0]===e[0];++i)if(this.leftPoints[i]===e){this.count-=1,this.leftPoints.splice(i,1);for(s=r.ge(this.rightPoints,e,m);s<this.rightPoints.length&&this.rightPoints[s][1]===e[1];++s)if(this.rightPoints[s]===e)return this.rightPoints.splice(s,1),1}return 0},i.queryPoint=function(e,t){if(e<this.mid){if(this.left)if(n=this.left.queryPoint(e,t))return n;return u(this.leftPoints,e,t)}if(e>this.mid){var n;if(this.right)if(n=this.right.queryPoint(e,t))return n;return d(this.rightPoints,e,t)}return p(this.leftPoints,t)},i.queryInterval=function(e,t,n){var r;if(e<this.mid&&this.left&&(r=this.left.queryInterval(e,t,n)))return r;if(t>this.mid&&this.right&&(r=this.right.queryInterval(e,t,n)))return r;return t<this.mid?u(this.leftPoints,t,n):e>this.mid?d(this.rightPoints,e,n):p(this.leftPoints,n)};var b=y.prototype;b.insert=function(e){this.root?this.root.insert(e):this.root=new a(e[0],null,null,[e],[e])},b.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},b.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},b.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(b,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(b,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}})},9507:function(e){e.exports=!0},7163:function(e){function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},5219:function(e){e.exports=function(e){for(var t,n=e.length,r=0;r<n;r++)if(((t=e.charCodeAt(r))<9||t>13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}},395:function(e){e.exports=function(e,t,n){return e*(1-n)+t*n}},2652:function(e,t,n){var r=n(4335),a=n(6864),i=n(1903),o=n(9921),s=n(7608),l=n(5665),c={length:n(1387),normalize:n(3536),dot:n(244),cross:n(5911)},u=a(),d=a(),p=[0,0,0,0],h=[[0,0,0],[0,0,0],[0,0,0]],f=[0,0,0];function m(e,t,n,r,a){e[0]=t[0]*r+n[0]*a,e[1]=t[1]*r+n[1]*a,e[2]=t[2]*r+n[2]*a}e.exports=function(e,t,n,a,g,y){if(t||(t=[0,0,0]),n||(n=[0,0,0]),a||(a=[0,0,0]),g||(g=[0,0,0,1]),y||(y=[0,0,0,1]),!r(u,e)||(i(d,u),d[3]=0,d[7]=0,d[11]=0,d[15]=1,Math.abs(o(d)<1e-8)))return!1;var b=u[3],v=u[7],M=u[11],x=u[12],z=u[13],_=u[14],A=u[15];if(0!==b||0!==v||0!==M){if(p[0]=b,p[1]=v,p[2]=M,p[3]=A,!s(d,d))return!1;l(d,d),function(e,t,n){var r=t[0],a=t[1],i=t[2],o=t[3];e[0]=n[0]*r+n[4]*a+n[8]*i+n[12]*o,e[1]=n[1]*r+n[5]*a+n[9]*i+n[13]*o,e[2]=n[2]*r+n[6]*a+n[10]*i+n[14]*o,e[3]=n[3]*r+n[7]*a+n[11]*i+n[15]*o}(g,p,d)}else g[0]=g[1]=g[2]=0,g[3]=1;if(t[0]=x,t[1]=z,t[2]=_,function(e,t){e[0][0]=t[0],e[0][1]=t[1],e[0][2]=t[2],e[1][0]=t[4],e[1][1]=t[5],e[1][2]=t[6],e[2][0]=t[8],e[2][1]=t[9],e[2][2]=t[10]}(h,u),n[0]=c.length(h[0]),c.normalize(h[0],h[0]),a[0]=c.dot(h[0],h[1]),m(h[1],h[1],h[0],1,-a[0]),n[1]=c.length(h[1]),c.normalize(h[1],h[1]),a[0]/=n[1],a[1]=c.dot(h[0],h[2]),m(h[2],h[2],h[0],1,-a[1]),a[2]=c.dot(h[1],h[2]),m(h[2],h[2],h[1],1,-a[2]),n[2]=c.length(h[2]),c.normalize(h[2],h[2]),a[1]/=n[2],a[2]/=n[2],c.cross(f,h[1],h[2]),c.dot(h[0],f)<0)for(var O=0;O<3;O++)n[O]*=-1,h[O][0]*=-1,h[O][1]*=-1,h[O][2]*=-1;return y[0]=.5*Math.sqrt(Math.max(1+h[0][0]-h[1][1]-h[2][2],0)),y[1]=.5*Math.sqrt(Math.max(1-h[0][0]+h[1][1]-h[2][2],0)),y[2]=.5*Math.sqrt(Math.max(1-h[0][0]-h[1][1]+h[2][2],0)),y[3]=.5*Math.sqrt(Math.max(1+h[0][0]+h[1][1]+h[2][2],0)),h[2][1]>h[1][2]&&(y[0]=-y[0]),h[0][2]>h[2][0]&&(y[1]=-y[1]),h[1][0]>h[0][1]&&(y[2]=-y[2]),!0}},4335:function(e){e.exports=function(e,t){var n=t[15];if(0===n)return!1;for(var r=1/n,a=0;a<16;a++)e[a]=t[a]*r;return!0}},7442:function(e,t,n){var r=n(6658),a=n(7182),i=n(2652),o=n(9921),s=n(8648),l=d(),c=d(),u=d();function d(){return{translate:p(),scale:p(1),skew:p(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function p(e){return[e||0,e||0,e||0]}e.exports=function(e,t,n,d){if(0===o(t)||0===o(n))return!1;var p=i(t,l.translate,l.scale,l.skew,l.perspective,l.quaternion),h=i(n,c.translate,c.scale,c.skew,c.perspective,c.quaternion);return!(!p||!h)&&(r(u.translate,l.translate,c.translate,d),r(u.skew,l.skew,c.skew,d),r(u.scale,l.scale,c.scale,d),r(u.perspective,l.perspective,c.perspective,d),s(u.quaternion,l.quaternion,c.quaternion,d),a(e,u.translate,u.scale,u.skew,u.perspective,u.quaternion),!0)}},7182:function(e,t,n){var r={identity:n(7894),translate:n(7656),multiply:n(6760),create:n(6864),scale:n(2504),fromRotationTranslation:n(6743)},a=(r.create(),r.create());e.exports=function(e,t,n,i,o,s){return r.identity(e),r.fromRotationTranslation(e,s,t),e[3]=o[0],e[7]=o[1],e[11]=o[2],e[15]=o[3],r.identity(a),0!==i[2]&&(a[9]=i[2],r.multiply(e,e,a)),0!==i[1]&&(a[9]=0,a[8]=i[1],r.multiply(e,e,a)),0!==i[0]&&(a[8]=0,a[4]=i[0],r.multiply(e,e,a)),r.scale(e,e,n),e}},1811:function(e,t,n){var r=n(2478),a=n(7442),i=n(7608),o=n(5567),s=n(2408),l=n(7089),c=n(6582),u=n(7656),d=(n(2504),n(3536)),p=[0,0,0];function h(e){this._components=e.slice(),this._time=[0],this.prevMatrix=e.slice(),this.nextMatrix=e.slice(),this.computedMatrix=e.slice(),this.computedInverse=e.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}e.exports=function(e){return new h((e=e||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var f=h.prototype;f.recalcMatrix=function(e){var t=this._time,n=r.le(t,e),o=this.computedMatrix;if(!(n<0)){var s=this._components;if(n===t.length-1)for(var l=16*n,c=0;c<16;++c)o[c]=s[l++];else{var u=t[n+1]-t[n],p=(l=16*n,this.prevMatrix),h=!0;for(c=0;c<16;++c)p[c]=s[l++];var f=this.nextMatrix;for(c=0;c<16;++c)f[c]=s[l++],h=h&&p[c]===f[c];if(u<1e-6||h)for(c=0;c<16;++c)o[c]=p[c];else a(o,p,f,(e-t[n])/u)}var m=this.computedUp;m[0]=o[1],m[1]=o[5],m[2]=o[9],d(m,m);var g=this.computedInverse;i(g,o);var y=this.computedEye,b=g[15];y[0]=g[12]/b,y[1]=g[13]/b,y[2]=g[14]/b;var v=this.computedCenter,M=Math.exp(this.computedRadius[0]);for(c=0;c<3;++c)v[c]=y[c]-o[2+4*c]*M}},f.idle=function(e){if(!(e<this.lastT())){for(var t=this._components,n=t.length-16,r=0;r<16;++r)t.push(t[n++]);this._time.push(e)}},f.flush=function(e){var t=r.gt(this._time,e)-2;t<0||(this._time.splice(0,t),this._components.splice(0,16*t))},f.lastT=function(){return this._time[this._time.length-1]},f.lookAt=function(e,t,n,r){this.recalcMatrix(e),t=t||this.computedEye,n=n||p,r=r||this.computedUp,this.setMatrix(e,c(this.computedMatrix,t,n,r));for(var a=0,i=0;i<3;++i)a+=Math.pow(n[i]-t[i],2);a=Math.log(Math.sqrt(a)),this.computedRadius[0]=a},f.rotate=function(e,t,n,r){this.recalcMatrix(e);var a=this.computedInverse;t&&s(a,a,t),n&&o(a,a,n),r&&l(a,a,r),this.setMatrix(e,i(this.computedMatrix,a))};var m=[0,0,0];f.pan=function(e,t,n,r){m[0]=-(t||0),m[1]=-(n||0),m[2]=-(r||0),this.recalcMatrix(e);var a=this.computedInverse;u(a,a,m),this.setMatrix(e,i(a,a))},f.translate=function(e,t,n,r){m[0]=t||0,m[1]=n||0,m[2]=r||0,this.recalcMatrix(e);var a=this.computedMatrix;u(a,a,m),this.setMatrix(e,a)},f.setMatrix=function(e,t){if(!(e<this.lastT())){this._time.push(e);for(var n=0;n<16;++n)this._components.push(t[n])}},f.setDistance=function(e,t){this.computedRadius[0]=t},f.setDistanceLimits=function(e,t){var n=this._limits;n[0]=e,n[1]=t},f.getDistanceLimits=function(e){var t=this._limits;return e?(e[0]=t[0],e[1]=t[1],e):t}},3090:function(e,t,n){e.exports=function(e){var t=e.length;if(t<3){for(var n=new Array(t),a=0;a<t;++a)n[a]=a;return 2===t&&e[0][0]===e[1][0]&&e[0][1]===e[1][1]?[0]:n}var i=new Array(t);for(a=0;a<t;++a)i[a]=a;i.sort(function(t,n){return e[t][0]-e[n][0]||e[t][1]-e[n][1]});var o=[i[0],i[1]],s=[i[0],i[1]];for(a=2;a<t;++a){for(var l=i[a],c=e[l],u=o.length;u>1&&r(e[o[u-2]],e[o[u-1]],c)<=0;)u-=1,o.pop();for(o.push(l),u=s.length;u>1&&r(e[s[u-2]],e[s[u-1]],c)>=0;)u-=1,s.pop();s.push(l)}n=new Array(s.length+o.length-2);for(var d=0,p=(a=0,o.length);a<p;++a)n[d++]=o[a];for(var h=s.length-2;h>0;--h)n[d++]=s[h];return n};var r=n(3250)[3]},351:function(e,t,n){e.exports=function(e,t){t||(t=e,e=window);var n=0,a=0,i=0,o={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(e){var t=!1;return"altKey"in e&&(t=t||e.altKey!==o.alt,o.alt=!!e.altKey),"shiftKey"in e&&(t=t||e.shiftKey!==o.shift,o.shift=!!e.shiftKey),"ctrlKey"in e&&(t=t||e.ctrlKey!==o.control,o.control=!!e.ctrlKey),"metaKey"in e&&(t=t||e.metaKey!==o.meta,o.meta=!!e.metaKey),t}function c(e,s){var c=r.x(s),u=r.y(s);"buttons"in s&&(e=0|s.buttons),(e!==n||c!==a||u!==i||l(s))&&(n=0|e,a=c||0,i=u||0,t&&t(n,a,i,o))}function u(e){c(0,e)}function d(){(n||a||i||o.shift||o.alt||o.meta||o.control)&&(a=i=0,n=0,o.shift=o.alt=o.control=o.meta=!1,t&&t(0,0,0,o))}function p(e){l(e)&&t&&t(n,a,i,o)}function h(e){0===r.buttons(e)?c(0,e):c(n,e)}function f(e){c(n|r.buttons(e),e)}function m(e){c(n&~r.buttons(e),e)}function g(){s||(s=!0,e.addEventListener("mousemove",h),e.addEventListener("mousedown",f),e.addEventListener("mouseup",m),e.addEventListener("mouseleave",u),e.addEventListener("mouseenter",u),e.addEventListener("mouseout",u),e.addEventListener("mouseover",u),e.addEventListener("blur",d),e.addEventListener("keyup",p),e.addEventListener("keydown",p),e.addEventListener("keypress",p),e!==window&&(window.addEventListener("blur",d),window.addEventListener("keyup",p),window.addEventListener("keydown",p),window.addEventListener("keypress",p)))}g();var y={element:e};return Object.defineProperties(y,{enabled:{get:function(){return s},set:function(t){t?g():s&&(s=!1,e.removeEventListener("mousemove",h),e.removeEventListener("mousedown",f),e.removeEventListener("mouseup",m),e.removeEventListener("mouseleave",u),e.removeEventListener("mouseenter",u),e.removeEventListener("mouseout",u),e.removeEventListener("mouseover",u),e.removeEventListener("blur",d),e.removeEventListener("keyup",p),e.removeEventListener("keydown",p),e.removeEventListener("keypress",p),e!==window&&(window.removeEventListener("blur",d),window.removeEventListener("keyup",p),window.removeEventListener("keydown",p),window.removeEventListener("keypress",p)))},enumerable:!0},buttons:{get:function(){return n},enumerable:!0},x:{get:function(){return a},enumerable:!0},y:{get:function(){return i},enumerable:!0},mods:{get:function(){return o},enumerable:!0}}),y};var r=n(4687)},24:function(e){var t={left:0,top:0};e.exports=function(e,n,r){n=n||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var a=e.clientX||0,i=e.clientY||0,o=function(e){return e===window||e===document||e===document.body?t:e.getBoundingClientRect()}(n);return r[0]=a-o.left,r[1]=i-o.top,r}},4687:function(e,t){function n(e){return e.target||e.srcElement||window}t.buttons=function(e){if("object"==typeof e){if("buttons"in e)return e.buttons;if("which"in e){if(2===(t=e.which))return 4;if(3===t)return 2;if(t>0)return 1<<t-1}else if("button"in e){var t;if(1===(t=e.button))return 4;if(2===t)return 2;if(t>=0)return 1<<t}}return 0},t.element=n,t.x=function(e){if("object"==typeof e){if("offsetX"in e)return e.offsetX;var t=n(e).getBoundingClientRect();return e.clientX-t.left}return 0},t.y=function(e){if("object"==typeof e){if("offsetY"in e)return e.offsetY;var t=n(e).getBoundingClientRect();return e.clientY-t.top}return 0}},8512:function(e,t,n){var r=n(665);e.exports=function(e,t,n){"function"==typeof e&&(n=!!t,t=e,e=window);var a=r("ex",e),i=function(e){n&&e.preventDefault();var r=e.deltaX||0,i=e.deltaY||0,o=e.deltaZ||0,s=1;switch(e.deltaMode){case 1:s=a;break;case 2:s=window.innerHeight}if(i*=s,o*=s,(r*=s)||i||o)return t(r,i,o,e)};return e.addEventListener("wheel",i),i}},2640:function(e,t,n){var r=n(1888);e.exports=function(e){function t(e){throw new Error("ndarray-extract-contour: "+e)}"object"!=typeof e&&t("Must specify arguments");var n=e.order;Array.isArray(n)||t("Must specify order");var i=e.arrayArguments||1;i<1&&t("Must have at least one array argument");var o=e.scalarArguments||0;o<0&&t("Scalar arg count must be > 0"),"function"!=typeof e.vertex&&t("Must specify vertex creation function"),"function"!=typeof e.cell&&t("Must specify cell creation function"),"function"!=typeof e.phase&&t("Must specify phase function");for(var s=e.getters||[],l=new Array(i),c=0;c<i;++c)s.indexOf(c)>=0?l[c]=!0:l[c]=!1;return function(e,t,n,i,o,s){var l=[s,o].join(","),c=a[l];return c(e,t,n,r.mallocUint32,r.freeUint32)}(e.vertex,e.cell,e.phase,0,n,l)};var a={"false,0,1":function(e,t,n,r,a){return function(i,o,s,l){var c,u=0|i.shape[0],d=0|i.shape[1],p=i.data,h=0|i.offset,f=0|i.stride[0],m=0|i.stride[1],g=h,y=0|-f,b=0,v=0|-m,M=0,x=-f-m|0,z=0,_=0|f,A=m-f*u|0,O=0,w=0,k=0,T=2*u|0,S=r(T),C=r(T),E=0,q=0,D=-1,R=-1,L=0,I=0|-u,W=0|u,N=0,P=-u-1|0,B=u-1|0,F=0,j=0,U=0;for(O=0;O<u;++O)S[E++]=n(p[g],o,s,l),g+=_;if(g+=A,d>0){if(w=1,S[E++]=n(p[g],o,s,l),g+=_,u>0)for(O=1,c=p[g],q=S[E]=n(c,o,s,l),L=S[E+D],N=S[E+I],F=S[E+P],(q!==L||q!==N||q!==F)&&(b=p[g+y],M=p[g+v],z=p[g+x],e(O,w,c,b,M,z,q,L,N,F,o,s,l),j=C[E]=k++),E+=1,g+=_,O=2;O<u;++O)c=p[g],q=S[E]=n(c,o,s,l),L=S[E+D],N=S[E+I],F=S[E+P],(q!==L||q!==N||q!==F)&&(b=p[g+y],M=p[g+v],z=p[g+x],e(O,w,c,b,M,z,q,L,N,F,o,s,l),j=C[E]=k++,F!==L&&t(C[E+D],j,z,b,F,L,o,s,l)),E+=1,g+=_;for(g+=A,E=0,U=D,D=R,R=U,U=I,I=W,W=U,U=P,P=B,B=U,w=2;w<d;++w){if(S[E++]=n(p[g],o,s,l),g+=_,u>0)for(O=1,c=p[g],q=S[E]=n(c,o,s,l),L=S[E+D],N=S[E+I],F=S[E+P],(q!==L||q!==N||q!==F)&&(b=p[g+y],M=p[g+v],z=p[g+x],e(O,w,c,b,M,z,q,L,N,F,o,s,l),j=C[E]=k++,F!==N&&t(C[E+I],j,M,z,N,F,o,s,l)),E+=1,g+=_,O=2;O<u;++O)c=p[g],q=S[E]=n(c,o,s,l),L=S[E+D],N=S[E+I],F=S[E+P],(q!==L||q!==N||q!==F)&&(b=p[g+y],M=p[g+v],z=p[g+x],e(O,w,c,b,M,z,q,L,N,F,o,s,l),j=C[E]=k++,F!==N&&t(C[E+I],j,M,z,N,F,o,s,l),F!==L&&t(C[E+D],j,z,b,F,L,o,s,l)),E+=1,g+=_;1&w&&(E=0),U=D,D=R,R=U,U=I,I=W,W=U,U=P,P=B,B=U,g+=A}}a(C),a(S)}},"false,1,0":function(e,t,n,r,a){return function(i,o,s,l){var c,u=0|i.shape[0],d=0|i.shape[1],p=i.data,h=0|i.offset,f=0|i.stride[0],m=0|i.stride[1],g=h,y=0|-f,b=0,v=0|-m,M=0,x=-f-m|0,z=0,_=0|m,A=f-m*d|0,O=0,w=0,k=0,T=2*d|0,S=r(T),C=r(T),E=0,q=0,D=-1,R=-1,L=0,I=0|-d,W=0|d,N=0,P=-d-1|0,B=d-1|0,F=0,j=0,U=0;for(w=0;w<d;++w)S[E++]=n(p[g],o,s,l),g+=_;if(g+=A,u>0){if(O=1,S[E++]=n(p[g],o,s,l),g+=_,d>0)for(w=1,c=p[g],q=S[E]=n(c,o,s,l),N=S[E+I],L=S[E+D],F=S[E+P],(q!==N||q!==L||q!==F)&&(b=p[g+y],M=p[g+v],z=p[g+x],e(O,w,c,b,M,z,q,N,L,F,o,s,l),j=C[E]=k++),E+=1,g+=_,w=2;w<d;++w)c=p[g],q=S[E]=n(c,o,s,l),N=S[E+I],L=S[E+D],F=S[E+P],(q!==N||q!==L||q!==F)&&(b=p[g+y],M=p[g+v],z=p[g+x],e(O,w,c,b,M,z,q,N,L,F,o,s,l),j=C[E]=k++,F!==L&&t(C[E+D],j,M,z,L,F,o,s,l)),E+=1,g+=_;for(g+=A,E=0,U=I,I=W,W=U,U=D,D=R,R=U,U=P,P=B,B=U,O=2;O<u;++O){if(S[E++]=n(p[g],o,s,l),g+=_,d>0)for(w=1,c=p[g],q=S[E]=n(c,o,s,l),N=S[E+I],L=S[E+D],F=S[E+P],(q!==N||q!==L||q!==F)&&(b=p[g+y],M=p[g+v],z=p[g+x],e(O,w,c,b,M,z,q,N,L,F,o,s,l),j=C[E]=k++,F!==N&&t(C[E+I],j,z,b,F,N,o,s,l)),E+=1,g+=_,w=2;w<d;++w)c=p[g],q=S[E]=n(c,o,s,l),N=S[E+I],L=S[E+D],F=S[E+P],(q!==N||q!==L||q!==F)&&(b=p[g+y],M=p[g+v],z=p[g+x],e(O,w,c,b,M,z,q,N,L,F,o,s,l),j=C[E]=k++,F!==L&&t(C[E+D],j,M,z,L,F,o,s,l),F!==N&&t(C[E+I],j,z,b,F,N,o,s,l)),E+=1,g+=_;1&O&&(E=0),U=I,I=W,W=U,U=D,D=R,R=U,U=P,P=B,B=U,g+=A}}a(C),a(S)}}}},6199:function(e,t,n){var r=n(1338),a={zero:function(e,t,n,r){var a=e[0];r|=0;var i=0,o=n[0];for(i=0;i<a;++i)t[r]=0,r+=o},fdTemplate1:function(e,t,n,r,a,i,o){var s=e[0],l=n[0],c=-1*l,u=l;r|=0,o|=0;var d=0,p=l,h=i[0];for(d=0;d<s;++d)a[o]=.5*(t[r+c]-t[r+u]),r+=p,o+=h},fdTemplate2:function(e,t,n,r,a,i,o,s,l,c){var u=e[0],d=e[1],p=n[0],h=n[1],f=i[0],m=i[1],g=l[0],y=l[1],b=-1*p,v=p,M=-1*h,x=h;r|=0,o|=0,c|=0;var z=0,_=0,A=h,O=p-d*h,w=m,k=f-d*m,T=y,S=g-d*y;for(_=0;_<u;++_){for(z=0;z<d;++z)a[o]=.5*(t[r+b]-t[r+v]),s[c]=.5*(t[r+M]-t[r+x]),r+=A,o+=w,c+=T;r+=O,o+=k,c+=S}}},i={cdiff:function(e){var t={};return function(n,r,a){var i=n.dtype,o=n.order,s=r.dtype,l=r.order,c=a.dtype,u=a.order,d=[i,o.join(),s,l.join(),c,u.join()].join(),p=t[d];return p||(t[d]=p=e([i,o,s,l,c,u])),p(n.shape.slice(0),n.data,n.stride,0|n.offset,r.data,r.stride,0|r.offset,a.data,a.stride,0|a.offset)}},zero:function(e){var t={};return function(n){var r=n.dtype,a=n.order,i=[r,a.join()].join(),o=t[i];return o||(t[i]=o=e([r,a])),o(n.shape.slice(0),n.data,n.stride,0|n.offset)}},fdTemplate1:function(e){var t={};return function(n,r){var a=n.dtype,i=n.order,o=r.dtype,s=r.order,l=[a,i.join(),o,s.join()].join(),c=t[l];return c||(t[l]=c=e([a,i,o,s])),c(n.shape.slice(0),n.data,n.stride,0|n.offset,r.data,r.stride,0|r.offset)}},fdTemplate2:function(e){var t={};return function(n,r,a){var i=n.dtype,o=n.order,s=r.dtype,l=r.order,c=a.dtype,u=a.order,d=[i,o.join(),s,l.join(),c,u.join()].join(),p=t[d];return p||(t[d]=p=e([i,o,s,l,c,u])),p(n.shape.slice(0),n.data,n.stride,0|n.offset,r.data,r.stride,0|r.offset,a.data,a.stride,0|a.offset)}}};function o(e){return(0,i[e.funcName])(s.bind(void 0,e))}function s(e){return a[e.funcName]}function l(e){return o({funcName:e.funcName})}var c={},u={},d=l({funcName:"cdiff"}),p=l({funcName:"zero"});function h(e){return e in c?c[e]:c[e]=l({funcName:"fdTemplate"+e})}function f(e,t,n,r){return function(e,a){var i=a.shape.slice();return i[0]>2&&i[1]>2&&r(a.pick(-1,-1).lo(1,1).hi(i[0]-2,i[1]-2),e.pick(-1,-1,0).lo(1,1).hi(i[0]-2,i[1]-2),e.pick(-1,-1,1).lo(1,1).hi(i[0]-2,i[1]-2)),i[1]>2&&(n(a.pick(0,-1).lo(1).hi(i[1]-2),e.pick(0,-1,1).lo(1).hi(i[1]-2)),t(e.pick(0,-1,0).lo(1).hi(i[1]-2))),i[1]>2&&(n(a.pick(i[0]-1,-1).lo(1).hi(i[1]-2),e.pick(i[0]-1,-1,1).lo(1).hi(i[1]-2)),t(e.pick(i[0]-1,-1,0).lo(1).hi(i[1]-2))),i[0]>2&&(n(a.pick(-1,0).lo(1).hi(i[0]-2),e.pick(-1,0,0).lo(1).hi(i[0]-2)),t(e.pick(-1,0,1).lo(1).hi(i[0]-2))),i[0]>2&&(n(a.pick(-1,i[1]-1).lo(1).hi(i[0]-2),e.pick(-1,i[1]-1,0).lo(1).hi(i[0]-2)),t(e.pick(-1,i[1]-1,1).lo(1).hi(i[0]-2))),e.set(0,0,0,0),e.set(0,0,1,0),e.set(i[0]-1,0,0,0),e.set(i[0]-1,0,1,0),e.set(0,i[1]-1,0,0),e.set(0,i[1]-1,1,0),e.set(i[0]-1,i[1]-1,0,0),e.set(i[0]-1,i[1]-1,1,0),e}}e.exports=function(e,t,n){if(Array.isArray(n)||(n=r(t.dimension,"string"==typeof n?n:"clamp")),0===t.size)return e;if(0===t.dimension)return e.set(0),e;var a=function(e){var t=e.join();if(i=u[t])return i;for(var n=e.length,r=[d,p],a=1;a<=n;++a)r.push(h(a));var i=f.apply(void 0,r);return u[t]=i,i}(n);return a(e,t)}},4317:function(e){function t(e,t){var n=Math.floor(t),r=t-n,a=0<=n&&n<e.shape[0],i=0<=n+1&&n+1<e.shape[0];return(1-r)*(a?+e.get(n):0)+r*(i?+e.get(n+1):0)}function n(e,t,n){var r=Math.floor(t),a=t-r,i=0<=r&&r<e.shape[0],o=0<=r+1&&r+1<e.shape[0],s=Math.floor(n),l=n-s,c=0<=s&&s<e.shape[1],u=0<=s+1&&s+1<e.shape[1],d=i&&c?e.get(r,s):0,p=i&&u?e.get(r,s+1):0;return(1-l)*((1-a)*d+a*(o&&c?e.get(r+1,s):0))+l*((1-a)*p+a*(o&&u?e.get(r+1,s+1):0))}function r(e,t,n,r){var a=Math.floor(t),i=t-a,o=0<=a&&a<e.shape[0],s=0<=a+1&&a+1<e.shape[0],l=Math.floor(n),c=n-l,u=0<=l&&l<e.shape[1],d=0<=l+1&&l+1<e.shape[1],p=Math.floor(r),h=r-p,f=0<=p&&p<e.shape[2],m=0<=p+1&&p+1<e.shape[2],g=o&&u&&f?e.get(a,l,p):0,y=o&&d&&f?e.get(a,l+1,p):0,b=s&&u&&f?e.get(a+1,l,p):0,v=s&&d&&f?e.get(a+1,l+1,p):0,M=o&&u&&m?e.get(a,l,p+1):0,x=o&&d&&m?e.get(a,l+1,p+1):0;return(1-h)*((1-c)*((1-i)*g+i*b)+c*((1-i)*y+i*v))+h*((1-c)*((1-i)*M+i*(s&&u&&m?e.get(a+1,l,p+1):0))+c*((1-i)*x+i*(s&&d&&m?e.get(a+1,l+1,p+1):0)))}function a(e){var t,n,r=0|e.shape.length,a=new Array(r),i=new Array(r),o=new Array(r),s=new Array(r);for(t=0;t<r;++t)n=+arguments[t+1],a[t]=Math.floor(n),i[t]=n-a[t],o[t]=0<=a[t]&&a[t]<e.shape[t],s[t]=0<=a[t]+1&&a[t]+1<e.shape[t];var l,c,u,d=0;e:for(t=0;t<1<<r;++t){for(c=1,u=e.offset,l=0;l<r;++l)if(t&1<<l){if(!s[l])continue e;c*=i[l],u+=e.stride[l]*(a[l]+1)}else{if(!o[l])continue e;c*=1-i[l],u+=e.stride[l]*a[l]}d+=c*e.data[u]}return d}e.exports=function(e,i,o,s){switch(e.shape.length){case 0:return 0;case 1:return t(e,i);case 2:return n(e,i,o);case 3:return r(e,i,o,s);default:return a.apply(void 0,arguments)}},e.exports.d1=t,e.exports.d2=n,e.exports.d3=r},5298:function(e,t){var n={"float64,2,1,0":function(){return function(e,t,n,r,a){var i=e[0],o=e[1],s=e[2],l=n[0],c=n[1],u=n[2];r|=0;var d=0,p=0,h=0,f=u,m=c-s*u,g=l-o*c;for(h=0;h<i;++h){for(p=0;p<o;++p){for(d=0;d<s;++d)t[r]/=a,r+=f;r+=m}r+=g}}},"uint8,2,0,1,float64,2,1,0":function(){return function(e,t,n,r,a,i,o,s){for(var l=e[0],c=e[1],u=e[2],d=n[0],p=n[1],h=n[2],f=i[0],m=i[1],g=i[2],y=r|=0,b=o|=0,v=0|e[0];v>0;){v<64?(l=v,v=0):(l=64,v-=64);for(var M=0|e[1];M>0;){M<64?(c=M,M=0):(c=64,M-=64),r=y+v*d+M*p,o=b+v*f+M*m;var x=0,z=0,_=0,A=h,O=d-u*h,w=p-l*d,k=g,T=f-u*g,S=m-l*f;for(_=0;_<c;++_){for(z=0;z<l;++z){for(x=0;x<u;++x)t[r]=a[o]*s,r+=A,o+=k;r+=O,o+=T}r+=w,o+=S}}}}},"float32,1,0,float32,1,0":function(){return function(e,t,n,r,a,i,o){var s=e[0],l=e[1],c=n[0],u=n[1],d=i[0],p=i[1];r|=0,o|=0;var h=0,f=0,m=u,g=c-l*u,y=p,b=d-l*p;for(f=0;f<s;++f){for(h=0;h<l;++h)t[r]=a[o],r+=m,o+=y;r+=g,o+=b}}},"float32,1,0,float32,0,1":function(){return function(e,t,n,r,a,i,o){for(var s=e[0],l=e[1],c=n[0],u=n[1],d=i[0],p=i[1],h=r|=0,f=o|=0,m=0|e[1];m>0;){m<64?(l=m,m=0):(l=64,m-=64);for(var g=0|e[0];g>0;){g<64?(s=g,g=0):(s=64,g-=64),r=h+m*u+g*c,o=f+m*p+g*d;var y=0,b=0,v=u,M=c-l*u,x=p,z=d-l*p;for(b=0;b<s;++b){for(y=0;y<l;++y)t[r]=a[o],r+=v,o+=x;r+=M,o+=z}}}}},"uint8,2,0,1,uint8,1,2,0":function(){return function(e,t,n,r,a,i,o){for(var s=e[0],l=e[1],c=e[2],u=n[0],d=n[1],p=n[2],h=i[0],f=i[1],m=i[2],g=r|=0,y=o|=0,b=0|e[2];b>0;){b<64?(c=b,b=0):(c=64,b-=64);for(var v=0|e[0];v>0;){v<64?(s=v,v=0):(s=64,v-=64);for(var M=0|e[1];M>0;){M<64?(l=M,M=0):(l=64,M-=64),r=g+b*p+v*u+M*d,o=y+b*m+v*h+M*f;var x=0,z=0,_=0,A=p,O=u-c*p,w=d-s*u,k=m,T=h-c*m,S=f-s*h;for(_=0;_<l;++_){for(z=0;z<s;++z){for(x=0;x<c;++x)t[r]=a[o],r+=A,o+=k;r+=O,o+=T}r+=w,o+=S}}}}}},"uint8,2,0,1,array,2,0,1":function(){return function(e,t,n,r,a,i,o){var s=e[0],l=e[1],c=e[2],u=n[0],d=n[1],p=n[2],h=i[0],f=i[1],m=i[2];r|=0,o|=0;var g=0,y=0,b=0,v=p,M=u-c*p,x=d-s*u,z=m,_=h-c*m,A=f-s*h;for(b=0;b<l;++b){for(y=0;y<s;++y){for(g=0;g<c;++g)t[r]=a[o],r+=v,o+=z;r+=M,o+=_}r+=x,o+=A}}}};var r=function(e,t){var r=t.join(",");return(0,n[r])()},a={mul:function(e){var t={};return function(n,r,a){var i=n.dtype,o=n.order,s=r.dtype,l=r.order,c=a.dtype,u=a.order,d=[i,o.join(),s,l.join(),c,u.join()].join(),p=t[d];return p||(t[d]=p=e([i,o,s,l,c,u])),p(n.shape.slice(0),n.data,n.stride,0|n.offset,r.data,r.stride,0|r.offset,a.data,a.stride,0|a.offset)}},muls:function(e){var t={};return function(n,r,a){var i=n.dtype,o=n.order,s=r.dtype,l=r.order,c=[i,o.join(),s,l.join()].join(),u=t[c];return u||(t[c]=u=e([i,o,s,l])),u(n.shape.slice(0),n.data,n.stride,0|n.offset,r.data,r.stride,0|r.offset,a)}},mulseq:function(e){var t={};return function(n,r){var a=n.dtype,i=n.order,o=[a,i.join()].join(),s=t[o];return s||(t[o]=s=e([a,i])),s(n.shape.slice(0),n.data,n.stride,0|n.offset,r)}},div:function(e){var t={};return function(n,r,a){var i=n.dtype,o=n.order,s=r.dtype,l=r.order,c=a.dtype,u=a.order,d=[i,o.join(),s,l.join(),c,u.join()].join(),p=t[d];return p||(t[d]=p=e([i,o,s,l,c,u])),p(n.shape.slice(0),n.data,n.stride,0|n.offset,r.data,r.stride,0|r.offset,a.data,a.stride,0|a.offset)}},divs:function(e){var t={};return function(n,r,a){var i=n.dtype,o=n.order,s=r.dtype,l=r.order,c=[i,o.join(),s,l.join()].join(),u=t[c];return u||(t[c]=u=e([i,o,s,l])),u(n.shape.slice(0),n.data,n.stride,0|n.offset,r.data,r.stride,0|r.offset,a)}},divseq:function(e){var t={};return function(n,r){var a=n.dtype,i=n.order,o=[a,i.join()].join(),s=t[o];return s||(t[o]=s=e([a,i])),s(n.shape.slice(0),n.data,n.stride,0|n.offset,r)}},assign:function(e){var t={};return function(n,r){var a=n.dtype,i=n.order,o=r.dtype,s=r.order,l=[a,i.join(),o,s.join()].join(),c=t[l];return c||(t[l]=c=e([a,i,o,s])),c(n.shape.slice(0),n.data,n.stride,0|n.offset,r.data,r.stride,0|r.offset)}}};function i(e){return function(e){return(0,a[e.funcName])(r.bind(void 0,e))}({funcName:e.funcName})}var o={mul:"*",div:"/"};(function(){for(var e in o)t[e]=i({funcName:e}),t[e+"s"]=i({funcName:e+"s"}),t[e+"seq"]=i({funcName:e+"seq"})})(),t.assign=i({funcName:"assign"})},9994:function(e,t,n){var r=n(9618),a=n(8277);e.exports=function(e,t){for(var n=[],i=e,o=1;Array.isArray(i);)n.push(i.length),o*=i.length,i=i[0];return 0===n.length?r():(t||(t=r(new Float64Array(o),n)),a(t,e),t)}},8277:function(e){var t=function(){return function(e,t,n,r,a){var i=e[0],o=e[1],s=e[2],l=n[0],c=n[1],u=n[2],d=[0,0,0];r|=0;var p=0,h=0,f=0,m=u,g=c-s*u,y=l-o*c;for(f=0;f<i;++f){for(h=0;h<o;++h){for(p=0;p<s;++p){var b,v=a;for(b=0;b<d.length-1;++b)v=v[d[b]];t[r]=v[d[d.length-1]],r+=m,++d[2]}r+=g,d[2]-=s,++d[1]}r+=y,d[1]-=o,++d[0]}}};e.exports=function(e){return function(e){var t={};return function(n,r){var a=n.dtype,i=n.order,o=[a,i.join()].join(),s=t[o];return s||(t[o]=s=e([a,i])),s(n.shape.slice(0),n.data,n.stride,0|n.offset,r)}}(t.bind(void 0,e))}({funcName:{funcName:"convert"}.funcName})},7640:function(e,t,n){var r=n(1888);function a(e){return"uint32"===e?[r.mallocUint32,r.freeUint32]:null}var i={"uint32,1,0":function(e,t){return function(n,r,a,i,o,s,l,c,u,d,p){var h,f,m,g,y,b,v,M,x=n*o+i,z=e(c);for(h=n+1;h<=r;++h){for(f=h,m=x+=o,y=0,b=x,g=0;g<c;++g)z[y++]=a[b],b+=u;e:for(;f-- >n;){y=0,b=m-o;t:for(g=0;g<c;++g){if((v=a[b])<(M=z[y]))break e;if(v>M)break t;b+=d,y+=p}for(y=m,b=m-o,g=0;g<c;++g)a[y]=a[b],y+=u,b+=u;m-=o}for(y=m,b=0,g=0;g<c;++g)a[y]=z[b++],y+=u}t(z)}}};var o={"uint32,1,0":function(e,t,n){return function r(a,i,o,s,l,c,u,d,p,h,f){var m,g,y,b,v,M,x,z,_,A,O,w,k,T,S,C,E,q,D,R,L,I,W,N,P,B=(i-a+1)/6|0,F=a+B,j=i-B,U=a+i>>1,V=U-B,H=U+B,X=F,G=V,Y=U,Z=H,$=j,J=a+1,Q=i-1,K=!0,ee=0,te=0,ne=0,re=d,ae=t(re),ie=t(re);O=l*X,w=l*G,P=s;e:for(A=0;A<d;++A){if(z=w+P,(ne=o[x=O+P]-o[z])>0){g=X,X=G,G=g;break e}if(ne<0)break e;P+=h}O=l*Z,w=l*$,P=s;e:for(A=0;A<d;++A){if(z=w+P,(ne=o[x=O+P]-o[z])>0){g=Z,Z=$,$=g;break e}if(ne<0)break e;P+=h}O=l*X,w=l*Y,P=s;e:for(A=0;A<d;++A){if(z=w+P,(ne=o[x=O+P]-o[z])>0){g=X,X=Y,Y=g;break e}if(ne<0)break e;P+=h}O=l*G,w=l*Y,P=s;e:for(A=0;A<d;++A){if(z=w+P,(ne=o[x=O+P]-o[z])>0){g=G,G=Y,Y=g;break e}if(ne<0)break e;P+=h}O=l*X,w=l*Z,P=s;e:for(A=0;A<d;++A){if(z=w+P,(ne=o[x=O+P]-o[z])>0){g=X,X=Z,Z=g;break e}if(ne<0)break e;P+=h}O=l*Y,w=l*Z,P=s;e:for(A=0;A<d;++A){if(z=w+P,(ne=o[x=O+P]-o[z])>0){g=Y,Y=Z,Z=g;break e}if(ne<0)break e;P+=h}O=l*G,w=l*$,P=s;e:for(A=0;A<d;++A){if(z=w+P,(ne=o[x=O+P]-o[z])>0){g=G,G=$,$=g;break e}if(ne<0)break e;P+=h}O=l*G,w=l*Y,P=s;e:for(A=0;A<d;++A){if(z=w+P,(ne=o[x=O+P]-o[z])>0){g=G,G=Y,Y=g;break e}if(ne<0)break e;P+=h}O=l*Z,w=l*$,P=s;e:for(A=0;A<d;++A){if(z=w+P,(ne=o[x=O+P]-o[z])>0){g=Z,Z=$,$=g;break e}if(ne<0)break e;P+=h}for(O=l*X,w=l*G,k=l*Y,T=l*Z,S=l*$,C=l*F,E=l*U,q=l*j,N=0,P=s,A=0;A<d;++A)x=O+P,z=w+P,_=k+P,D=T+P,R=S+P,L=C+P,I=E+P,W=q+P,ae[N]=o[z],ie[N]=o[D],K=K&&ae[N]===ie[N],y=o[x],b=o[_],v=o[R],o[L]=y,o[I]=b,o[W]=v,++N,P+=p;for(O=l*V,w=l*a,P=s,A=0;A<d;++A)z=w+P,o[x=O+P]=o[z],P+=p;for(O=l*H,w=l*i,P=s,A=0;A<d;++A)z=w+P,o[x=O+P]=o[z],P+=p;if(K)for(M=J;M<=Q;++M){x=s+M*l,N=0;e:for(A=0;A<d&&0===(ne=o[x]-ae[N]);++A)N+=f,x+=h;if(0!==ne)if(ne<0){if(M!==J)for(O=l*M,w=l*J,P=s,A=0;A<d;++A)z=w+P,m=o[x=O+P],o[x]=o[z],o[z]=m,P+=p;++J}else for(;;){x=s+Q*l,N=0;e:for(A=0;A<d&&0===(ne=o[x]-ae[N]);++A)N+=f,x+=h;if(!(ne>0)){if(ne<0){for(O=l*M,w=l*J,k=l*Q,P=s,A=0;A<d;++A)z=w+P,_=k+P,m=o[x=O+P],o[x]=o[z],o[z]=o[_],o[_]=m,P+=p;++J,--Q;break}for(O=l*M,w=l*Q,P=s,A=0;A<d;++A)z=w+P,m=o[x=O+P],o[x]=o[z],o[z]=m,P+=p;--Q;break}Q--}}else for(M=J;M<=Q;++M){x=s+M*l,N=0;e:for(A=0;A<d&&0===(ee=o[x]-ae[N]);++A)N+=f,x+=h;if(ee<0){if(M!==J)for(O=l*M,w=l*J,P=s,A=0;A<d;++A)z=w+P,m=o[x=O+P],o[x]=o[z],o[z]=m,P+=p;++J}else{x=s+M*l,N=0;e:for(A=0;A<d&&0===(te=o[x]-ie[N]);++A)N+=f,x+=h;if(te>0)for(;;){x=s+Q*l,N=0;e:for(A=0;A<d&&0===(ne=o[x]-ie[N]);++A)N+=f,x+=h;if(!(ne>0)){x=s+Q*l,N=0;e:for(A=0;A<d&&0===(ne=o[x]-ae[N]);++A)N+=f,x+=h;if(ne<0){for(O=l*M,w=l*J,k=l*Q,P=s,A=0;A<d;++A)z=w+P,_=k+P,m=o[x=O+P],o[x]=o[z],o[z]=o[_],o[_]=m,P+=p;++J,--Q}else{for(O=l*M,w=l*Q,P=s,A=0;A<d;++A)z=w+P,m=o[x=O+P],o[x]=o[z],o[z]=m,P+=p;--Q}break}if(--Q<M)break}}}for(O=l*a,w=l*(J-1),N=0,P=s,A=0;A<d;++A)z=w+P,o[x=O+P]=o[z],o[z]=ae[N],++N,P+=p;for(O=l*i,w=l*(Q+1),N=0,P=s,A=0;A<d;++A)z=w+P,o[x=O+P]=o[z],o[z]=ie[N],++N,P+=p;if(J-2-a<=32?e(a,J-2,o,s,l,c,u,d,p,h,f):r(a,J-2,o,s,l,c,u,d,p,h,f),i-(Q+2)<=32?e(Q+2,i,o,s,l,c,u,d,p,h,f):r(Q+2,i,o,s,l,c,u,d,p,h,f),K)return n(ae),void n(ie);if(J<F&&Q>j){e:for(;;){for(x=s+J*l,N=0,P=s,A=0;A<d;++A){if(o[x]!==ae[N])break e;++N,x+=p}++J}e:for(;;){for(x=s+Q*l,N=0,P=s,A=0;A<d;++A){if(o[x]!==ie[N])break e;++N,x+=p}--Q}for(M=J;M<=Q;++M){x=s+M*l,N=0;e:for(A=0;A<d&&0===(ee=o[x]-ae[N]);++A)N+=f,x+=h;if(0===ee){if(M!==J)for(O=l*M,w=l*J,P=s,A=0;A<d;++A)z=w+P,m=o[x=O+P],o[x]=o[z],o[z]=m,P+=p;++J}else{x=s+M*l,N=0;e:for(A=0;A<d&&0===(te=o[x]-ie[N]);++A)N+=f,x+=h;if(0===te)for(;;){x=s+Q*l,N=0;e:for(A=0;A<d&&0===(ne=o[x]-ie[N]);++A)N+=f,x+=h;if(0!==ne){x=s+Q*l,N=0;e:for(A=0;A<d&&0===(ne=o[x]-ae[N]);++A)N+=f,x+=h;if(ne<0){for(O=l*M,w=l*J,k=l*Q,P=s,A=0;A<d;++A)z=w+P,_=k+P,m=o[x=O+P],o[x]=o[z],o[z]=o[_],o[_]=m,P+=p;++J,--Q}else{for(O=l*M,w=l*Q,P=s,A=0;A<d;++A)z=w+P,m=o[x=O+P],o[x]=o[z],o[z]=m,P+=p;--Q}break}if(--Q<M)break}}}}n(ae),n(ie),Q-J<=32?e(J,Q,o,s,l,c,u,d,p,h,f):r(J,Q,o,s,l,c,u,d,p,h,f)}}};var s={"uint32,1,0":function(e,t){return function(n){var r=n.data,a=0|n.offset,i=n.shape,o=n.stride,s=0|o[0],l=0|i[0],c=0|o[1],u=0|i[1],d=c,p=c;l<=32?e(0,l-1,r,a,s,c,l,u,d,p,1):t(0,l-1,r,a,s,c,l,u,d,p,1)}}};e.exports=function(e,t){var n=[t,e].join(","),r=s[n],l=function(e,t){var n=a(t),r=[t,e].join(","),o=i[r];return n?o(n[0],n[1]):o()}(e,t),c=function(e,t,n){var r=a(t),i=[t,e].join(","),s=o[i];return e.length>1&&r?s(n,r[0],r[1]):s(n)}(e,t,l);return r(l,c)}},446:function(e,t,n){var r=n(7640),a={};e.exports=function(e){var t=e.order,n=e.dtype,i=[t,n].join(":"),o=a[i];return o||(a[i]=o=r(t,n)),o(e),e}},9618:function(e,t,n){var r=n(7163),a=typeof Float64Array<"u";function i(e,t){return e[0]-t[0]}function o(){var e,t=this.stride,n=new Array(t.length);for(e=0;e<n.length;++e)n[e]=[Math.abs(t[e]),e];n.sort(i);var r=new Array(n.length);for(e=0;e<r.length;++e)r[e]=n[e][1];return r}var s={T:function(e){function t(e){this.data=e}var n=t.prototype;return n.dtype=e,n.index=function(){return-1},n.size=0,n.dimension=-1,n.shape=n.stride=n.order=[],n.lo=n.hi=n.transpose=n.step=function(){return new t(this.data)},n.get=n.set=function(){},n.pick=function(){return null},function(e){return new t(e)}},0:function(e,t){function n(e,t){this.data=e,this.offset=t}var r=n.prototype;return r.dtype=e,r.index=function(){return this.offset},r.dimension=0,r.size=1,r.shape=r.stride=r.order=[],r.lo=r.hi=r.transpose=r.step=function(){return new n(this.data,this.offset)},r.pick=function(){return t(this.data)},r.valueOf=r.get=function(){return"generic"===e?this.data.get(this.offset):this.data[this.offset]},r.set=function(t){return"generic"===e?this.data.set(this.offset,t):this.data[this.offset]=t},function(e,t,r,a){return new n(e,a)}},1:function(e,t,n){function r(e,t,n,r){this.data=e,this.shape=[t],this.stride=[n],this.offset=0|r}var a=r.prototype;return a.dtype=e,a.dimension=1,Object.defineProperty(a,"size",{get:function(){return this.shape[0]}}),a.order=[0],a.set=function(t,n){return"generic"===e?this.data.set(this.offset+this.stride[0]*t,n):this.data[this.offset+this.stride[0]*t]=n},a.get=function(t){return"generic"===e?this.data.get(this.offset+this.stride[0]*t):this.data[this.offset+this.stride[0]*t]},a.index=function(e){return this.offset+this.stride[0]*e},a.hi=function(e){return new r(this.data,"number"!=typeof e||e<0?this.shape[0]:0|e,this.stride[0],this.offset)},a.lo=function(e){var t=this.offset,n=0,a=this.shape[0],i=this.stride[0];return"number"==typeof e&&e>=0&&(t+=i*(n=0|e),a-=n),new r(this.data,a,i,t)},a.step=function(e){var t=this.shape[0],n=this.stride[0],a=this.offset,i=0,o=Math.ceil;return"number"==typeof e&&((i=0|e)<0?(a+=n*(t-1),t=o(-t/i)):t=o(t/i),n*=i),new r(this.data,t,n,a)},a.transpose=function(e){e=void 0===e?0:0|e;var t=this.shape,n=this.stride;return new r(this.data,t[e],n[e],this.offset)},a.pick=function(e){var n=[],r=[],a=this.offset;return"number"==typeof e&&e>=0?a=a+this.stride[0]*e|0:(n.push(this.shape[0]),r.push(this.stride[0])),(0,t[n.length+1])(this.data,n,r,a)},function(e,t,n,a){return new r(e,t[0],n[0],a)}},2:function(e,t,n){function r(e,t,n,r,a,i){this.data=e,this.shape=[t,n],this.stride=[r,a],this.offset=0|i}var a=r.prototype;return a.dtype=e,a.dimension=2,Object.defineProperty(a,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(a,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),a.set=function(t,n,r){return"generic"===e?this.data.set(this.offset+this.stride[0]*t+this.stride[1]*n,r):this.data[this.offset+this.stride[0]*t+this.stride[1]*n]=r},a.get=function(t,n){return"generic"===e?this.data.get(this.offset+this.stride[0]*t+this.stride[1]*n):this.data[this.offset+this.stride[0]*t+this.stride[1]*n]},a.index=function(e,t){return this.offset+this.stride[0]*e+this.stride[1]*t},a.hi=function(e,t){return new r(this.data,"number"!=typeof e||e<0?this.shape[0]:0|e,"number"!=typeof t||t<0?this.shape[1]:0|t,this.stride[0],this.stride[1],this.offset)},a.lo=function(e,t){var n=this.offset,a=0,i=this.shape[0],o=this.shape[1],s=this.stride[0],l=this.stride[1];return"number"==typeof e&&e>=0&&(n+=s*(a=0|e),i-=a),"number"==typeof t&&t>=0&&(n+=l*(a=0|t),o-=a),new r(this.data,i,o,s,l,n)},a.step=function(e,t){var n=this.shape[0],a=this.shape[1],i=this.stride[0],o=this.stride[1],s=this.offset,l=0,c=Math.ceil;return"number"==typeof e&&((l=0|e)<0?(s+=i*(n-1),n=c(-n/l)):n=c(n/l),i*=l),"number"==typeof t&&((l=0|t)<0?(s+=o*(a-1),a=c(-a/l)):a=c(a/l),o*=l),new r(this.data,n,a,i,o,s)},a.transpose=function(e,t){e=void 0===e?0:0|e,t=void 0===t?1:0|t;var n=this.shape,a=this.stride;return new r(this.data,n[e],n[t],a[e],a[t],this.offset)},a.pick=function(e,n){var r=[],a=[],i=this.offset;return"number"==typeof e&&e>=0?i=i+this.stride[0]*e|0:(r.push(this.shape[0]),a.push(this.stride[0])),"number"==typeof n&&n>=0?i=i+this.stride[1]*n|0:(r.push(this.shape[1]),a.push(this.stride[1])),(0,t[r.length+1])(this.data,r,a,i)},function(e,t,n,a){return new r(e,t[0],t[1],n[0],n[1],a)}},3:function(e,t,n){function r(e,t,n,r,a,i,o,s){this.data=e,this.shape=[t,n,r],this.stride=[a,i,o],this.offset=0|s}var a=r.prototype;return a.dtype=e,a.dimension=3,Object.defineProperty(a,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(a,"order",{get:function(){var e=Math.abs(this.stride[0]),t=Math.abs(this.stride[1]),n=Math.abs(this.stride[2]);return e>t?t>n?[2,1,0]:e>n?[1,2,0]:[1,0,2]:e>n?[2,0,1]:n>t?[0,1,2]:[0,2,1]}}),a.set=function(t,n,r,a){return"generic"===e?this.data.set(this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r,a):this.data[this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r]=a},a.get=function(t,n,r){return"generic"===e?this.data.get(this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r):this.data[this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r]},a.index=function(e,t,n){return this.offset+this.stride[0]*e+this.stride[1]*t+this.stride[2]*n},a.hi=function(e,t,n){return new r(this.data,"number"!=typeof e||e<0?this.shape[0]:0|e,"number"!=typeof t||t<0?this.shape[1]:0|t,"number"!=typeof n||n<0?this.shape[2]:0|n,this.stride[0],this.stride[1],this.stride[2],this.offset)},a.lo=function(e,t,n){var a=this.offset,i=0,o=this.shape[0],s=this.shape[1],l=this.shape[2],c=this.stride[0],u=this.stride[1],d=this.stride[2];return"number"==typeof e&&e>=0&&(a+=c*(i=0|e),o-=i),"number"==typeof t&&t>=0&&(a+=u*(i=0|t),s-=i),"number"==typeof n&&n>=0&&(a+=d*(i=0|n),l-=i),new r(this.data,o,s,l,c,u,d,a)},a.step=function(e,t,n){var a=this.shape[0],i=this.shape[1],o=this.shape[2],s=this.stride[0],l=this.stride[1],c=this.stride[2],u=this.offset,d=0,p=Math.ceil;return"number"==typeof e&&((d=0|e)<0?(u+=s*(a-1),a=p(-a/d)):a=p(a/d),s*=d),"number"==typeof t&&((d=0|t)<0?(u+=l*(i-1),i=p(-i/d)):i=p(i/d),l*=d),"number"==typeof n&&((d=0|n)<0?(u+=c*(o-1),o=p(-o/d)):o=p(o/d),c*=d),new r(this.data,a,i,o,s,l,c,u)},a.transpose=function(e,t,n){e=void 0===e?0:0|e,t=void 0===t?1:0|t,n=void 0===n?2:0|n;var a=this.shape,i=this.stride;return new r(this.data,a[e],a[t],a[n],i[e],i[t],i[n],this.offset)},a.pick=function(e,n,r){var a=[],i=[],o=this.offset;return"number"==typeof e&&e>=0?o=o+this.stride[0]*e|0:(a.push(this.shape[0]),i.push(this.stride[0])),"number"==typeof n&&n>=0?o=o+this.stride[1]*n|0:(a.push(this.shape[1]),i.push(this.stride[1])),"number"==typeof r&&r>=0?o=o+this.stride[2]*r|0:(a.push(this.shape[2]),i.push(this.stride[2])),(0,t[a.length+1])(this.data,a,i,o)},function(e,t,n,a){return new r(e,t[0],t[1],t[2],n[0],n[1],n[2],a)}},4:function(e,t,n){function r(e,t,n,r,a,i,o,s,l,c){this.data=e,this.shape=[t,n,r,a],this.stride=[i,o,s,l],this.offset=0|c}var a=r.prototype;return a.dtype=e,a.dimension=4,Object.defineProperty(a,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(a,"order",{get:n}),a.set=function(t,n,r,a,i){return"generic"===e?this.data.set(this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r+this.stride[3]*a,i):this.data[this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r+this.stride[3]*a]=i},a.get=function(t,n,r,a){return"generic"===e?this.data.get(this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r+this.stride[3]*a):this.data[this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r+this.stride[3]*a]},a.index=function(e,t,n,r){return this.offset+this.stride[0]*e+this.stride[1]*t+this.stride[2]*n+this.stride[3]*r},a.hi=function(e,t,n,a){return new r(this.data,"number"!=typeof e||e<0?this.shape[0]:0|e,"number"!=typeof t||t<0?this.shape[1]:0|t,"number"!=typeof n||n<0?this.shape[2]:0|n,"number"!=typeof a||a<0?this.shape[3]:0|a,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},a.lo=function(e,t,n,a){var i=this.offset,o=0,s=this.shape[0],l=this.shape[1],c=this.shape[2],u=this.shape[3],d=this.stride[0],p=this.stride[1],h=this.stride[2],f=this.stride[3];return"number"==typeof e&&e>=0&&(i+=d*(o=0|e),s-=o),"number"==typeof t&&t>=0&&(i+=p*(o=0|t),l-=o),"number"==typeof n&&n>=0&&(i+=h*(o=0|n),c-=o),"number"==typeof a&&a>=0&&(i+=f*(o=0|a),u-=o),new r(this.data,s,l,c,u,d,p,h,f,i)},a.step=function(e,t,n,a){var i=this.shape[0],o=this.shape[1],s=this.shape[2],l=this.shape[3],c=this.stride[0],u=this.stride[1],d=this.stride[2],p=this.stride[3],h=this.offset,f=0,m=Math.ceil;return"number"==typeof e&&((f=0|e)<0?(h+=c*(i-1),i=m(-i/f)):i=m(i/f),c*=f),"number"==typeof t&&((f=0|t)<0?(h+=u*(o-1),o=m(-o/f)):o=m(o/f),u*=f),"number"==typeof n&&((f=0|n)<0?(h+=d*(s-1),s=m(-s/f)):s=m(s/f),d*=f),"number"==typeof a&&((f=0|a)<0?(h+=p*(l-1),l=m(-l/f)):l=m(l/f),p*=f),new r(this.data,i,o,s,l,c,u,d,p,h)},a.transpose=function(e,t,n,a){e=void 0===e?0:0|e,t=void 0===t?1:0|t,n=void 0===n?2:0|n,a=void 0===a?3:0|a;var i=this.shape,o=this.stride;return new r(this.data,i[e],i[t],i[n],i[a],o[e],o[t],o[n],o[a],this.offset)},a.pick=function(e,n,r,a){var i=[],o=[],s=this.offset;return"number"==typeof e&&e>=0?s=s+this.stride[0]*e|0:(i.push(this.shape[0]),o.push(this.stride[0])),"number"==typeof n&&n>=0?s=s+this.stride[1]*n|0:(i.push(this.shape[1]),o.push(this.stride[1])),"number"==typeof r&&r>=0?s=s+this.stride[2]*r|0:(i.push(this.shape[2]),o.push(this.stride[2])),"number"==typeof a&&a>=0?s=s+this.stride[3]*a|0:(i.push(this.shape[3]),o.push(this.stride[3])),(0,t[i.length+1])(this.data,i,o,s)},function(e,t,n,a){return new r(e,t[0],t[1],t[2],t[3],n[0],n[1],n[2],n[3],a)}},5:function(e,t,n){function r(e,t,n,r,a,i,o,s,l,c,u,d){this.data=e,this.shape=[t,n,r,a,i],this.stride=[o,s,l,c,u],this.offset=0|d}var a=r.prototype;return a.dtype=e,a.dimension=5,Object.defineProperty(a,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(a,"order",{get:n}),a.set=function(t,n,r,a,i,o){return"generic"===e?this.data.set(this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r+this.stride[3]*a+this.stride[4]*i,o):this.data[this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r+this.stride[3]*a+this.stride[4]*i]=o},a.get=function(t,n,r,a,i){return"generic"===e?this.data.get(this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r+this.stride[3]*a+this.stride[4]*i):this.data[this.offset+this.stride[0]*t+this.stride[1]*n+this.stride[2]*r+this.stride[3]*a+this.stride[4]*i]},a.index=function(e,t,n,r,a){return this.offset+this.stride[0]*e+this.stride[1]*t+this.stride[2]*n+this.stride[3]*r+this.stride[4]*a},a.hi=function(e,t,n,a,i){return new r(this.data,"number"!=typeof e||e<0?this.shape[0]:0|e,"number"!=typeof t||t<0?this.shape[1]:0|t,"number"!=typeof n||n<0?this.shape[2]:0|n,"number"!=typeof a||a<0?this.shape[3]:0|a,"number"!=typeof i||i<0?this.shape[4]:0|i,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},a.lo=function(e,t,n,a,i){var o=this.offset,s=0,l=this.shape[0],c=this.shape[1],u=this.shape[2],d=this.shape[3],p=this.shape[4],h=this.stride[0],f=this.stride[1],m=this.stride[2],g=this.stride[3],y=this.stride[4];return"number"==typeof e&&e>=0&&(o+=h*(s=0|e),l-=s),"number"==typeof t&&t>=0&&(o+=f*(s=0|t),c-=s),"number"==typeof n&&n>=0&&(o+=m*(s=0|n),u-=s),"number"==typeof a&&a>=0&&(o+=g*(s=0|a),d-=s),"number"==typeof i&&i>=0&&(o+=y*(s=0|i),p-=s),new r(this.data,l,c,u,d,p,h,f,m,g,y,o)},a.step=function(e,t,n,a,i){var o=this.shape[0],s=this.shape[1],l=this.shape[2],c=this.shape[3],u=this.shape[4],d=this.stride[0],p=this.stride[1],h=this.stride[2],f=this.stride[3],m=this.stride[4],g=this.offset,y=0,b=Math.ceil;return"number"==typeof e&&((y=0|e)<0?(g+=d*(o-1),o=b(-o/y)):o=b(o/y),d*=y),"number"==typeof t&&((y=0|t)<0?(g+=p*(s-1),s=b(-s/y)):s=b(s/y),p*=y),"number"==typeof n&&((y=0|n)<0?(g+=h*(l-1),l=b(-l/y)):l=b(l/y),h*=y),"number"==typeof a&&((y=0|a)<0?(g+=f*(c-1),c=b(-c/y)):c=b(c/y),f*=y),"number"==typeof i&&((y=0|i)<0?(g+=m*(u-1),u=b(-u/y)):u=b(u/y),m*=y),new r(this.data,o,s,l,c,u,d,p,h,f,m,g)},a.transpose=function(e,t,n,a,i){e=void 0===e?0:0|e,t=void 0===t?1:0|t,n=void 0===n?2:0|n,a=void 0===a?3:0|a,i=void 0===i?4:0|i;var o=this.shape,s=this.stride;return new r(this.data,o[e],o[t],o[n],o[a],o[i],s[e],s[t],s[n],s[a],s[i],this.offset)},a.pick=function(e,n,r,a,i){var o=[],s=[],l=this.offset;return"number"==typeof e&&e>=0?l=l+this.stride[0]*e|0:(o.push(this.shape[0]),s.push(this.stride[0])),"number"==typeof n&&n>=0?l=l+this.stride[1]*n|0:(o.push(this.shape[1]),s.push(this.stride[1])),"number"==typeof r&&r>=0?l=l+this.stride[2]*r|0:(o.push(this.shape[2]),s.push(this.stride[2])),"number"==typeof a&&a>=0?l=l+this.stride[3]*a|0:(o.push(this.shape[3]),s.push(this.stride[3])),"number"==typeof i&&i>=0?l=l+this.stride[4]*i|0:(o.push(this.shape[4]),s.push(this.stride[4])),(0,t[o.length+1])(this.data,o,s,l)},function(e,t,n,a){return new r(e,t[0],t[1],t[2],t[3],t[4],n[0],n[1],n[2],n[3],n[4],a)}}};function l(e,t){var n=-1===t?"T":String(t),r=s[n];return-1===t?r(e):0===t?r(e,c[e][0]):r(e,c[e],o)}var c={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};e.exports=function(e,t,n,i){if(void 0===e)return(0,c.array[0])([]);"number"==typeof e&&(e=[e]),void 0===t&&(t=[e.length]);var o=t.length;if(void 0===n){n=new Array(o);for(var s=o-1,u=1;s>=0;--s)n[s]=u,u*=t[s]}if(void 0===i){i=0;for(s=0;s<o;++s)n[s]<0&&(i-=(t[s]-1)*n[s])}for(var d=function(e){if(r(e))return"buffer";if(a)switch(Object.prototype.toString.call(e)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(e)?"array":"generic"}(e),p=c[d];p.length<=o+1;)p.push(l(d,p.length-1));return(0,p[o+1])(e,t,n,i)}},1278:function(e,t,n){var r=n(2361),a=Math.pow(2,-1074),i=-1>>>0;e.exports=function(e,t){if(isNaN(e)||isNaN(t))return NaN;if(e===t)return e;if(0===e)return t<0?-a:a;var n=r.hi(e),o=r.lo(e);return t>e==e>0?o===i?(n+=1,o=0):o+=1:0===o?(o=i,n-=1):o-=1,r.pack(o,n)}},8406:function(e,t){t.vertexNormals=function(e,t,n){for(var r=t.length,a=new Array(r),i=void 0===n?1e-6:n,o=0;o<r;++o)a[o]=[0,0,0];for(o=0;o<e.length;++o)for(var s=e[o],l=0,c=s[s.length-1],u=s[0],d=0;d<s.length;++d){l=c,c=u,u=s[(d+1)%s.length];for(var p=t[l],h=t[c],f=t[u],m=new Array(3),g=0,y=new Array(3),b=0,v=0;v<3;++v)m[v]=p[v]-h[v],g+=m[v]*m[v],y[v]=f[v]-h[v],b+=y[v]*y[v];if(g*b>i){var M=a[c],x=1/Math.sqrt(g*b);for(v=0;v<3;++v){var z=(v+1)%3,_=(v+2)%3;M[v]+=x*(y[z]*m[_]-y[_]*m[z])}}}for(o=0;o<r;++o){M=a[o];var A=0;for(v=0;v<3;++v)A+=M[v]*M[v];if(A>i)for(x=1/Math.sqrt(A),v=0;v<3;++v)M[v]*=x;else for(v=0;v<3;++v)M[v]=0}return a},t.faceNormals=function(e,t,n){for(var r=e.length,a=new Array(r),i=void 0===n?1e-6:n,o=0;o<r;++o){for(var s=e[o],l=new Array(3),c=0;c<3;++c)l[c]=t[s[c]];var u=new Array(3),d=new Array(3);for(c=0;c<3;++c)u[c]=l[1][c]-l[0][c],d[c]=l[2][c]-l[0][c];var p=new Array(3),h=0;for(c=0;c<3;++c){var f=(c+1)%3,m=(c+2)%3;p[c]=u[f]*d[m]-u[m]*d[f],h+=p[c]*p[c]}h=h>i?1/Math.sqrt(h):0;for(c=0;c<3;++c)p[c]*=h;a[o]=p}return a}},4081:function(e){e.exports=function(e,t,n,r,a,i,o,s,l,c){var u=t+i+c;if(d>0){var d=Math.sqrt(u+1);e[0]=.5*(o-l)/d,e[1]=.5*(s-r)/d,e[2]=.5*(n-i)/d,e[3]=.5*d}else{var p=Math.max(t,i,c);d=Math.sqrt(2*p-u+1);t>=p?(e[0]=.5*d,e[1]=.5*(a+n)/d,e[2]=.5*(s+r)/d,e[3]=.5*(o-l)/d):i>=p?(e[0]=.5*(n+a)/d,e[1]=.5*d,e[2]=.5*(l+o)/d,e[3]=.5*(s-r)/d):(e[0]=.5*(r+s)/d,e[1]=.5*(o+l)/d,e[2]=.5*d,e[3]=.5*(n-a)/d)}return e}},9977:function(e,t,n){e.exports=function(e){var t=(e=e||{}).center||[0,0,0],n=e.rotation||[0,0,0,1],r=e.radius||1;t=[].slice.call(t,0,3),u(n=[].slice.call(n,0,4),n);var a=new d(n,t,Math.log(r));return a.setDistanceLimits(e.zoomMin,e.zoomMax),("eye"in e||"up"in e)&&a.lookAt(0,e.eye,e.center,e.up),a};var r=n(9215),a=n(6582),i=n(7399),o=n(7608),s=n(4081);function l(e,t,n){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2)+Math.pow(n,2))}function c(e,t,n,r){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2)+Math.pow(n,2)+Math.pow(r,2))}function u(e,t){var n=t[0],r=t[1],a=t[2],i=t[3],o=c(n,r,a,i);o>1e-6?(e[0]=n/o,e[1]=r/o,e[2]=a/o,e[3]=i/o):(e[0]=e[1]=e[2]=0,e[3]=1)}function d(e,t,n){this.radius=r([n]),this.center=r(t),this.rotation=r(e),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var p=d.prototype;p.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},p.recalcMatrix=function(e){this.radius.curve(e),this.center.curve(e),this.rotation.curve(e);var t=this.computedRotation;u(t,t);var n=this.computedMatrix;i(n,t);var r=this.computedCenter,a=this.computedEye,o=this.computedUp,s=Math.exp(this.computedRadius[0]);a[0]=r[0]+s*n[2],a[1]=r[1]+s*n[6],a[2]=r[2]+s*n[10],o[0]=n[1],o[1]=n[5],o[2]=n[9];for(var l=0;l<3;++l){for(var c=0,d=0;d<3;++d)c+=n[l+4*d]*a[d];n[12+l]=-c}},p.getMatrix=function(e,t){this.recalcMatrix(e);var n=this.computedMatrix;if(t){for(var r=0;r<16;++r)t[r]=n[r];return t}return n},p.idle=function(e){this.center.idle(e),this.radius.idle(e),this.rotation.idle(e)},p.flush=function(e){this.center.flush(e),this.radius.flush(e),this.rotation.flush(e)},p.pan=function(e,t,n,r){t=t||0,n=n||0,r=r||0,this.recalcMatrix(e);var a=this.computedMatrix,i=a[1],o=a[5],s=a[9],c=l(i,o,s);i/=c,o/=c,s/=c;var u=a[0],d=a[4],p=a[8],h=u*i+d*o+p*s,f=l(u-=i*h,d-=o*h,p-=s*h);u/=f,d/=f,p/=f;var m=a[2],g=a[6],y=a[10],b=m*i+g*o+y*s,v=m*u+g*d+y*p,M=l(m-=b*i+v*u,g-=b*o+v*d,y-=b*s+v*p);m/=M,g/=M,y/=M;var x=u*t+i*n,z=d*t+o*n,_=p*t+s*n;this.center.move(e,x,z,_);var A=Math.exp(this.computedRadius[0]);A=Math.max(1e-4,A+r),this.radius.set(e,Math.log(A))},p.rotate=function(e,t,n,r){this.recalcMatrix(e),t=t||0,n=n||0;var a=this.computedMatrix,i=a[0],o=a[4],s=a[8],u=a[1],d=a[5],p=a[9],h=a[2],f=a[6],m=a[10],g=t*i+n*u,y=t*o+n*d,b=t*s+n*p,v=-(f*b-m*y),M=-(m*g-h*b),x=-(h*y-f*g),z=Math.sqrt(Math.max(0,1-Math.pow(v,2)-Math.pow(M,2)-Math.pow(x,2))),_=c(v,M,x,z);_>1e-6?(v/=_,M/=_,x/=_,z/=_):(v=M=x=0,z=1);var A=this.computedRotation,O=A[0],w=A[1],k=A[2],T=A[3],S=O*z+T*v+w*x-k*M,C=w*z+T*M+k*v-O*x,E=k*z+T*x+O*M-w*v,q=T*z-O*v-w*M-k*x;if(r){v=h,M=f,x=m;var D=Math.sin(r)/l(v,M,x);v*=D,M*=D,x*=D,q=q*(z=Math.cos(t))-(S=S*z+q*v+C*x-E*M)*v-(C=C*z+q*M+E*v-S*x)*M-(E=E*z+q*x+S*M-C*v)*x}var R=c(S,C,E,q);R>1e-6?(S/=R,C/=R,E/=R,q/=R):(S=C=E=0,q=1),this.rotation.set(e,S,C,E,q)},p.lookAt=function(e,t,n,r){this.recalcMatrix(e),n=n||this.computedCenter,t=t||this.computedEye,r=r||this.computedUp;var i=this.computedMatrix;a(i,t,n,r);var o=this.computedRotation;s(o,i[0],i[1],i[2],i[4],i[5],i[6],i[8],i[9],i[10]),u(o,o),this.rotation.set(e,o[0],o[1],o[2],o[3]);for(var l=0,c=0;c<3;++c)l+=Math.pow(n[c]-t[c],2);this.radius.set(e,.5*Math.log(Math.max(l,1e-6))),this.center.set(e,n[0],n[1],n[2])},p.translate=function(e,t,n,r){this.center.move(e,t||0,n||0,r||0)},p.setMatrix=function(e,t){var n=this.computedRotation;s(n,t[0],t[1],t[2],t[4],t[5],t[6],t[8],t[9],t[10]),u(n,n),this.rotation.set(e,n[0],n[1],n[2],n[3]);var r=this.computedMatrix;o(r,t);var a=r[15];if(Math.abs(a)>1e-6){var i=r[12]/a,l=r[13]/a,c=r[14]/a;this.recalcMatrix(e);var d=Math.exp(this.computedRadius[0]);this.center.set(e,i-r[2]*d,l-r[6]*d,c-r[10]*d),this.radius.idle(e)}else this.center.idle(e),this.radius.idle(e)},p.setDistance=function(e,t){t>0&&this.radius.set(e,Math.log(t))},p.setDistanceLimits=function(e,t){e=e>0?Math.log(e):-1/0,t=t>0?Math.log(t):1/0,t=Math.max(t,e),this.radius.bounds[0][0]=e,this.radius.bounds[1][0]=t},p.getDistanceLimits=function(e){var t=this.radius.bounds;return e?(e[0]=Math.exp(t[0][0]),e[1]=Math.exp(t[1][0]),e):[Math.exp(t[0][0]),Math.exp(t[1][0])]},p.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},p.fromJSON=function(e){var t=this.lastT(),n=e.center;n&&this.center.set(t,n[0],n[1],n[2]);var r=e.rotation;r&&this.rotation.set(t,r[0],r[1],r[2],r[3]);var a=e.distance;a&&a>0&&this.radius.set(t,Math.log(a)),this.setDistanceLimits(e.zoomMin,e.zoomMax)}},1371:function(e,t,n){var r=n(3233);e.exports=function(e,t,n){return r(n=typeof n<"u"?n+"":" ",t)+e}},3202:function(e){e.exports=function(e,t){t||(t=[0,""]),e=String(e);var n=parseFloat(e,10);return t[0]=n,t[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",t}},3088:function(e,t,n){e.exports=function(e,t){for(var n=0|t.length,a=e.length,i=[new Array(n),new Array(n)],o=0;o<n;++o)i[0][o]=[],i[1][o]=[];for(o=0;o<a;++o){var s=e[o];i[0][s[0]].push(s),i[1][s[1]].push(s)}var l=[];for(o=0;o<n;++o)i[0][o].length+i[1][o].length===0&&l.push([o]);function c(e,t){var n=i[t][e[t]];n.splice(n.indexOf(e),1)}function u(e,n,a){for(var o,s,l,u=0;u<2;++u)if(i[u][n].length>0){o=i[u][n][0],l=u;break}s=o[1^l];for(var d=0;d<2;++d)for(var p=i[d][n],h=0;h<p.length;++h){var f=p[h],m=f[1^d];r(t[e],t[n],t[s],t[m])>0&&(o=f,s=m,l=d)}return a||o&&c(o,l),s}function d(e,n){var a=i[n][e][0],o=[e];c(a,n);for(var s=a[1^n];;){for(;s!==e;)o.push(s),s=u(o[o.length-2],s,!1);if(i[0][e].length+i[1][e].length===0)break;var l=o[o.length-1],d=e,p=o[1],h=u(l,d,!0);if(r(t[l],t[d],t[p],t[h])<0)break;o.push(e),s=u(l,d)}return o}function p(e,t){return t[1]===t[t.length-1]}for(o=0;o<n;++o)for(var h=0;h<2;++h){for(var f=[];i[h][o].length>0;){i[0][o].length;var m=d(o,h);p(0,m)?f.push.apply(f,m):(f.length>0&&l.push(f),f=m)}f.length>0&&l.push(f)}return l};var r=n(3140)},5609:function(e,t,n){e.exports=function(e,t){for(var n=r(e,t.length),a=new Array(t.length),i=new Array(t.length),o=[],s=0;s<t.length;++s){var l=n[s].length;i[s]=l,a[s]=!0,l<=1&&o.push(s)}for(;o.length>0;){a[h=o.pop()]=!1;var c=n[h];for(s=0;s<c.length;++s){var u=c[s];0===--i[u]&&o.push(u)}}var d=new Array(t.length),p=[];for(s=0;s<t.length;++s)if(a[s]){var h=p.length;d[s]=h,p.push(t[s])}else d[s]=-1;var f=[];for(s=0;s<e.length;++s){var m=e[s];a[m[0]]&&a[m[1]]&&f.push([d[m[0]],d[m[1]]])}return[f,p]};var r=n(3134)},2095:function(e,t,n){e.exports=function(e,t){var n=c(e,t);e=n[0];for(var d=(t=n[1]).length,p=(e.length,r(e,t.length)),h=0;h<d;++h)if(p[h].length%2==1)throw new Error("planar-graph-to-polyline: graph must be manifold");var f=a(e,t);var m=(f=f.filter(function(e){for(var n=e.length,r=[0],a=0;a<n;++a){var i=t[e[a]],l=t[e[(a+1)%n]],c=o(-i[0],i[1]),u=o(-i[0],l[1]),d=o(l[0],i[1]),p=o(l[0],l[1]);r=s(r,s(s(c,u),s(d,p)))}return r[r.length-1]>0})).length,g=new Array(m),y=new Array(m);for(h=0;h<m;++h){g[h]=h;var b=new Array(m),v=f[h].map(function(e){return t[e]}),M=i([v]),x=0;e:for(var z=0;z<m;++z)if(b[z]=0,h!==z){for(var _=(U=f[z]).length,A=0;A<_;++A){var O=M(t[U[A]]);if(0!==O){O<0&&(b[z]=1,x+=1);continue e}}b[z]=1,x+=1}y[h]=[x,h,b]}y.sort(function(e,t){return t[0]-e[0]});for(h=0;h<m;++h){var w=(b=y[h])[1],k=b[2];for(z=0;z<m;++z)k[z]&&(g[z]=w)}var T=function(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=[];return t}(m);for(h=0;h<m;++h)T[h].push(g[h]),T[g[h]].push(h);var S={},C=u(d,!1);for(h=0;h<m;++h)for(_=(U=f[h]).length,z=0;z<_;++z){var E=U[z],q=U[(z+1)%_],D=Math.min(E,q)+":"+Math.max(E,q);if(D in S){var R=S[D];T[R].push(h),T[h].push(R),C[E]=C[q]=!0}else S[D]=h}function L(e){for(var t=e.length,n=0;n<t;++n)if(!C[e[n]])return!1;return!0}var I=[],W=u(m,-1);for(h=0;h<m;++h)g[h]!==h||L(f[h])?W[h]=-1:(I.push(h),W[h]=0);for(n=[];I.length>0;){var N=I.pop(),P=T[N];l(P,function(e,t){return e-t});var B,F=P.length,j=W[N];if(0===j)B=[U=f[N]];for(h=0;h<F;++h){var U,V=P[h];if(!(W[V]>=0)&&(W[V]=1^j,I.push(V),0===j))L(U=f[V])||(U.reverse(),B.push(U))}0===j&&n.push(B)}return n};var r=n(3134),a=n(3088),i=n(5085),o=n(5250),s=n(8210),l=n(1682),c=n(5609);function u(e,t){for(var n=new Array(e),r=0;r<e;++r)n[r]=t;return n}},5085:function(e,t,n){e.exports=function(e){for(var t=e.length,n=[],i=[],s=0;s<t;++s)for(var u=e[s],d=u.length,p=d-1,h=0;h<d;p=h++){var f=u[p],m=u[h];f[0]===m[0]?i.push([f,m]):n.push([f,m])}if(0===n.length)return 0===i.length?c:function(e){return function(t){return e(t[0],t[1])?0:1}}(l(i));var g=a(n),y=function(e,t){return function(n){var a=o.le(t,n[0]);if(a<0)return 1;var i=e[a];if(!i){if(!(a>0&&t[a]===n[0]))return 1;i=e[a-1]}for(var s=1;i;){var l=i.key,c=r(n,l[0],l[1]);if(l[0][0]<l[1][0])if(c<0)i=i.left;else{if(!(c>0))return 0;s=-1,i=i.right}else if(c>0)i=i.left;else{if(!(c<0))return 0;s=1,i=i.right}}return s}}(g.slabs,g.coordinates);return 0===i.length?y:function(e,t){return function(n){return e(n[0],n[1])?0:t(n)}}(l(i),y)};var r=n(3250)[3],a=n(4209),i=n(3352),o=n(2478);function s(){return!0}function l(e){for(var t={},n=0;n<e.length;++n){var r=e[n],a=r[0][0],o=r[0][1],l=r[1][1],c=[Math.min(o,l),Math.max(o,l)];a in t?t[a].push(c):t[a]=[c]}var u={},d=Object.keys(t);for(n=0;n<d.length;++n){var p=t[d[n]];u[d[n]]=i(p)}return function(e){return function(t,n){var r=e[t];return!!r&&!!r.queryPoint(n,s)}}(u)}function c(e){return 1}},9346:function(e){var t=new Float64Array(4),n=new Float64Array(4),r=new Float64Array(4);e.exports=function(e,a,i,o,s){t.length<o.length&&(t=new Float64Array(o.length),n=new Float64Array(o.length),r=new Float64Array(o.length));for(var l=0;l<o.length;++l)t[l]=e[l]-o[l],n[l]=a[l]-e[l],r[l]=i[l]-e[l];var c=0,u=0,d=0,p=0,h=0,f=0;for(l=0;l<o.length;++l){var m=n[l],g=r[l],y=t[l];c+=m*m,u+=m*g,d+=g*g,p+=y*m,h+=y*g,f+=y*y}var b,v,M,x,z,_=Math.abs(c*d-u*u),A=u*h-d*p,O=u*p-c*h;if(A+O<=_)if(A<0)O<0&&p<0?(O=0,-p>=c?(A=1,b=c+2*p+f):b=p*(A=-p/c)+f):(A=0,h>=0?(O=0,b=f):-h>=d?(O=1,b=d+2*h+f):b=h*(O=-h/d)+f);else if(O<0)O=0,p>=0?(A=0,b=f):-p>=c?(A=1,b=c+2*p+f):b=p*(A=-p/c)+f;else{var w=1/_;b=(A*=w)*(c*A+u*(O*=w)+2*p)+O*(u*A+d*O+2*h)+f}else A<0?(M=d+h)>(v=u+p)?(x=M-v)>=(z=c-2*u+d)?(A=1,O=0,b=c+2*p+f):b=(A=x/z)*(c*A+u*(O=1-A)+2*p)+O*(u*A+d*O+2*h)+f:(A=0,M<=0?(O=1,b=d+2*h+f):h>=0?(O=0,b=f):b=h*(O=-h/d)+f):O<0?(M=c+p)>(v=u+h)?(x=M-v)>=(z=c-2*u+d)?(O=1,A=0,b=d+2*h+f):b=(A=1-(O=x/z))*(c*A+u*O+2*p)+O*(u*A+d*O+2*h)+f:(O=0,M<=0?(A=1,b=c+2*p+f):p>=0?(A=0,b=f):b=p*(A=-p/c)+f):(x=d+h-u-p)<=0?(A=0,O=1,b=d+2*h+f):x>=(z=c-2*u+d)?(A=1,O=0,b=c+2*p+f):b=(A=x/z)*(c*A+u*(O=1-A)+2*p)+O*(u*A+d*O+2*h)+f;var k=1-A-O;for(l=0;l<o.length;++l)s[l]=k*e[l]+A*a[l]+O*i[l];return b<0?0:b}},8648:function(e,t,n){e.exports=n(783)},2653:function(e,t,n){var r=n(3865);e.exports=function(e,t){for(var n=e.length,a=new Array(n),i=0;i<n;++i)a[i]=r(e[i],t[i]);return a}},5838:function(e,t,n){e.exports=function(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=r(e[n]);return t};var r=n(7842)},8987:function(e,t,n){var r=n(7842),a=n(6504);e.exports=function(e,t){for(var n=r(t),i=e.length,o=new Array(i),s=0;s<i;++s)o[s]=a(e[s],n);return o}},544:function(e,t,n){var r=n(5572);e.exports=function(e,t){for(var n=e.length,a=new Array(n),i=0;i<n;++i)a[i]=r(e[i],t[i]);return a}},5771:function(e,t,n){var r=n(8507),a=n(3788),i=n(2419);e.exports=function(e){e.sort(a);for(var t=e.length,n=0,o=0;o<t;++o){var s=e[o],l=i(s);if(0!==l){if(n>0){var c=e[n-1];if(0===r(s,c)&&i(c)!==l){n-=1;continue}}e[n++]=s}}return e.length=n,e}},3233:function(e){var t,n="";e.exports=function(e,r){if("string"!=typeof e)throw new TypeError("expected a string");if(1===r)return e;if(2===r)return e+e;var a=e.length*r;if(t!==e||typeof t>"u")t=e,n="";else if(n.length>=a)return n.substr(0,a);for(;a>n.length&&r>1;)1&r&&(n+=e),r>>=1,e+=e;return n=(n+=e).substr(0,a)}},3025:function(e,t,n){e.exports=n.g.performance&&n.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(e){e.exports=function(e){for(var t=e.length,n=e[e.length-1],r=t,a=t-2;a>=0;--a){var i=n;(l=(s=e[a])-((n=i+s)-i))&&(e[--r]=n,n=l)}var o=0;for(a=r;a<t;++a){var s,l;(l=(s=n)-((n=(i=e[a])+s)-i))&&(e[o++]=l)}return e[o++]=n,e.length=o,e}},2962:function(e,t,n){var r=n(5250),a=n(8210),i=n(3012),o=n(7004);function s(e,t,n,r){return function(t){return r(e(n(t[0][0],t[1][1]),n(-t[0][1],t[1][0])))}}function l(e,t,n,r){return function(a){return r(e(t(e(n(a[1][1],a[2][2]),n(-a[1][2],a[2][1])),a[0][0]),e(t(e(n(a[1][0],a[2][2]),n(-a[1][2],a[2][0])),-a[0][1]),t(e(n(a[1][0],a[2][1]),n(-a[1][1],a[2][0])),a[0][2]))))}}function c(e,t,n,r){return function(a){return r(e(e(t(e(t(e(n(a[2][2],a[3][3]),n(-a[2][3],a[3][2])),a[1][1]),e(t(e(n(a[2][1],a[3][3]),n(-a[2][3],a[3][1])),-a[1][2]),t(e(n(a[2][1],a[3][2]),n(-a[2][2],a[3][1])),a[1][3]))),a[0][0]),t(e(t(e(n(a[2][2],a[3][3]),n(-a[2][3],a[3][2])),a[1][0]),e(t(e(n(a[2][0],a[3][3]),n(-a[2][3],a[3][0])),-a[1][2]),t(e(n(a[2][0],a[3][2]),n(-a[2][2],a[3][0])),a[1][3]))),-a[0][1])),e(t(e(t(e(n(a[2][1],a[3][3]),n(-a[2][3],a[3][1])),a[1][0]),e(t(e(n(a[2][0],a[3][3]),n(-a[2][3],a[3][0])),-a[1][1]),t(e(n(a[2][0],a[3][1]),n(-a[2][1],a[3][0])),a[1][3]))),a[0][2]),t(e(t(e(n(a[2][1],a[3][2]),n(-a[2][2],a[3][1])),a[1][0]),e(t(e(n(a[2][0],a[3][2]),n(-a[2][2],a[3][0])),-a[1][1]),t(e(n(a[2][0],a[3][1]),n(-a[2][1],a[3][0])),a[1][2]))),-a[0][3]))))}}function u(e,t,n,r){return function(a){return r(e(e(t(e(e(t(e(t(e(n(a[3][3],a[4][4]),n(-a[3][4],a[4][3])),a[2][2]),e(t(e(n(a[3][2],a[4][4]),n(-a[3][4],a[4][2])),-a[2][3]),t(e(n(a[3][2],a[4][3]),n(-a[3][3],a[4][2])),a[2][4]))),a[1][1]),t(e(t(e(n(a[3][3],a[4][4]),n(-a[3][4],a[4][3])),a[2][1]),e(t(e(n(a[3][1],a[4][4]),n(-a[3][4],a[4][1])),-a[2][3]),t(e(n(a[3][1],a[4][3]),n(-a[3][3],a[4][1])),a[2][4]))),-a[1][2])),e(t(e(t(e(n(a[3][2],a[4][4]),n(-a[3][4],a[4][2])),a[2][1]),e(t(e(n(a[3][1],a[4][4]),n(-a[3][4],a[4][1])),-a[2][2]),t(e(n(a[3][1],a[4][2]),n(-a[3][2],a[4][1])),a[2][4]))),a[1][3]),t(e(t(e(n(a[3][2],a[4][3]),n(-a[3][3],a[4][2])),a[2][1]),e(t(e(n(a[3][1],a[4][3]),n(-a[3][3],a[4][1])),-a[2][2]),t(e(n(a[3][1],a[4][2]),n(-a[3][2],a[4][1])),a[2][3]))),-a[1][4]))),a[0][0]),t(e(e(t(e(t(e(n(a[3][3],a[4][4]),n(-a[3][4],a[4][3])),a[2][2]),e(t(e(n(a[3][2],a[4][4]),n(-a[3][4],a[4][2])),-a[2][3]),t(e(n(a[3][2],a[4][3]),n(-a[3][3],a[4][2])),a[2][4]))),a[1][0]),t(e(t(e(n(a[3][3],a[4][4]),n(-a[3][4],a[4][3])),a[2][0]),e(t(e(n(a[3][0],a[4][4]),n(-a[3][4],a[4][0])),-a[2][3]),t(e(n(a[3][0],a[4][3]),n(-a[3][3],a[4][0])),a[2][4]))),-a[1][2])),e(t(e(t(e(n(a[3][2],a[4][4]),n(-a[3][4],a[4][2])),a[2][0]),e(t(e(n(a[3][0],a[4][4]),n(-a[3][4],a[4][0])),-a[2][2]),t(e(n(a[3][0],a[4][2]),n(-a[3][2],a[4][0])),a[2][4]))),a[1][3]),t(e(t(e(n(a[3][2],a[4][3]),n(-a[3][3],a[4][2])),a[2][0]),e(t(e(n(a[3][0],a[4][3]),n(-a[3][3],a[4][0])),-a[2][2]),t(e(n(a[3][0],a[4][2]),n(-a[3][2],a[4][0])),a[2][3]))),-a[1][4]))),-a[0][1])),e(t(e(e(t(e(t(e(n(a[3][3],a[4][4]),n(-a[3][4],a[4][3])),a[2][1]),e(t(e(n(a[3][1],a[4][4]),n(-a[3][4],a[4][1])),-a[2][3]),t(e(n(a[3][1],a[4][3]),n(-a[3][3],a[4][1])),a[2][4]))),a[1][0]),t(e(t(e(n(a[3][3],a[4][4]),n(-a[3][4],a[4][3])),a[2][0]),e(t(e(n(a[3][0],a[4][4]),n(-a[3][4],a[4][0])),-a[2][3]),t(e(n(a[3][0],a[4][3]),n(-a[3][3],a[4][0])),a[2][4]))),-a[1][1])),e(t(e(t(e(n(a[3][1],a[4][4]),n(-a[3][4],a[4][1])),a[2][0]),e(t(e(n(a[3][0],a[4][4]),n(-a[3][4],a[4][0])),-a[2][1]),t(e(n(a[3][0],a[4][1]),n(-a[3][1],a[4][0])),a[2][4]))),a[1][3]),t(e(t(e(n(a[3][1],a[4][3]),n(-a[3][3],a[4][1])),a[2][0]),e(t(e(n(a[3][0],a[4][3]),n(-a[3][3],a[4][0])),-a[2][1]),t(e(n(a[3][0],a[4][1]),n(-a[3][1],a[4][0])),a[2][3]))),-a[1][4]))),a[0][2]),e(t(e(e(t(e(t(e(n(a[3][2],a[4][4]),n(-a[3][4],a[4][2])),a[2][1]),e(t(e(n(a[3][1],a[4][4]),n(-a[3][4],a[4][1])),-a[2][2]),t(e(n(a[3][1],a[4][2]),n(-a[3][2],a[4][1])),a[2][4]))),a[1][0]),t(e(t(e(n(a[3][2],a[4][4]),n(-a[3][4],a[4][2])),a[2][0]),e(t(e(n(a[3][0],a[4][4]),n(-a[3][4],a[4][0])),-a[2][2]),t(e(n(a[3][0],a[4][2]),n(-a[3][2],a[4][0])),a[2][4]))),-a[1][1])),e(t(e(t(e(n(a[3][1],a[4][4]),n(-a[3][4],a[4][1])),a[2][0]),e(t(e(n(a[3][0],a[4][4]),n(-a[3][4],a[4][0])),-a[2][1]),t(e(n(a[3][0],a[4][1]),n(-a[3][1],a[4][0])),a[2][4]))),a[1][2]),t(e(t(e(n(a[3][1],a[4][2]),n(-a[3][2],a[4][1])),a[2][0]),e(t(e(n(a[3][0],a[4][2]),n(-a[3][2],a[4][0])),-a[2][1]),t(e(n(a[3][0],a[4][1]),n(-a[3][1],a[4][0])),a[2][2]))),-a[1][4]))),-a[0][3]),t(e(e(t(e(t(e(n(a[3][2],a[4][3]),n(-a[3][3],a[4][2])),a[2][1]),e(t(e(n(a[3][1],a[4][3]),n(-a[3][3],a[4][1])),-a[2][2]),t(e(n(a[3][1],a[4][2]),n(-a[3][2],a[4][1])),a[2][3]))),a[1][0]),t(e(t(e(n(a[3][2],a[4][3]),n(-a[3][3],a[4][2])),a[2][0]),e(t(e(n(a[3][0],a[4][3]),n(-a[3][3],a[4][0])),-a[2][2]),t(e(n(a[3][0],a[4][2]),n(-a[3][2],a[4][0])),a[2][3]))),-a[1][1])),e(t(e(t(e(n(a[3][1],a[4][3]),n(-a[3][3],a[4][1])),a[2][0]),e(t(e(n(a[3][0],a[4][3]),n(-a[3][3],a[4][0])),-a[2][1]),t(e(n(a[3][0],a[4][1]),n(-a[3][1],a[4][0])),a[2][3]))),a[1][2]),t(e(t(e(n(a[3][1],a[4][2]),n(-a[3][2],a[4][1])),a[2][0]),e(t(e(n(a[3][0],a[4][2]),n(-a[3][2],a[4][0])),-a[2][1]),t(e(n(a[3][0],a[4][1]),n(-a[3][1],a[4][0])),a[2][2]))),-a[1][3]))),a[0][4])))))}}function d(e){return(2===e?s:3===e?l:4===e?c:5===e?u:void 0)(a,i,r,o)}var p=[function(){return[0]},function(e){return[e[0][0]]}];function h(e,t,n,r,a,i,o,s){return function(l){switch(l.length){case 0:return e(l);case 1:return t(l);case 2:return n(l);case 3:return r(l);case 4:return a(l);case 5:return i(l)}var c=o[l.length];return c||(c=o[l.length]=s(l.length)),c(l)}}!function(){for(;p.length<6;)p.push(d(p.length));e.exports=h.apply(void 0,p.concat([p,d]));for(var t=0;t<p.length;++t)e.exports[t]=p[t]}()},1944:function(e,t,n){var r=n(5250),a=n(8210);e.exports=function(e,t){for(var n=r(e[0],t[0]),i=1;i<e.length;++i)n=a(n,r(e[i],t[i]));return n}},2646:function(e,t,n){var r=n(5250),a=n(8210),i=n(8545),o=n(3012);function s(e){return(3===e?l:4===e?c:5===e?u:d)(a,i,r,o)}function l(e,t,n,r){return function(a,i,o){var s=n(a[0],a[0]),l=r(s,i[0]),c=r(s,o[0]),u=n(i[0],i[0]),d=r(u,a[0]),p=r(u,o[0]),h=n(o[0],o[0]),f=r(h,a[0]),m=r(h,i[0]),g=e(t(m,p),t(d,l)),y=t(f,c),b=t(g,y);return b[b.length-1]}}function c(e,t,n,r){return function(a,i,o,s){var l=e(n(a[0],a[0]),n(a[1],a[1])),c=r(l,i[0]),u=r(l,o[0]),d=r(l,s[0]),p=e(n(i[0],i[0]),n(i[1],i[1])),h=r(p,a[0]),f=r(p,o[0]),m=r(p,s[0]),g=e(n(o[0],o[0]),n(o[1],o[1])),y=r(g,a[0]),b=r(g,i[0]),v=r(g,s[0]),M=e(n(s[0],s[0]),n(s[1],s[1])),x=r(M,a[0]),z=r(M,i[0]),_=r(M,o[0]),A=e(e(r(t(_,v),i[1]),e(r(t(z,m),-o[1]),r(t(b,f),s[1]))),e(r(t(z,m),a[1]),e(r(t(x,d),-i[1]),r(t(h,c),s[1])))),O=e(e(r(t(_,v),a[1]),e(r(t(x,d),-o[1]),r(t(y,u),s[1]))),e(r(t(b,f),a[1]),e(r(t(y,u),-i[1]),r(t(h,c),o[1])))),w=t(A,O);return w[w.length-1]}}function u(e,t,n,r){return function(a,i,o,s,l){var c=e(n(a[0],a[0]),e(n(a[1],a[1]),n(a[2],a[2]))),u=r(c,i[0]),d=r(c,o[0]),p=r(c,s[0]),h=r(c,l[0]),f=e(n(i[0],i[0]),e(n(i[1],i[1]),n(i[2],i[2]))),m=r(f,a[0]),g=r(f,o[0]),y=r(f,s[0]),b=r(f,l[0]),v=e(n(o[0],o[0]),e(n(o[1],o[1]),n(o[2],o[2]))),M=r(v,a[0]),x=r(v,i[0]),z=r(v,s[0]),_=r(v,l[0]),A=e(n(s[0],s[0]),e(n(s[1],s[1]),n(s[2],s[2]))),O=r(A,a[0]),w=r(A,i[0]),k=r(A,o[0]),T=r(A,l[0]),S=e(n(l[0],l[0]),e(n(l[1],l[1]),n(l[2],l[2]))),C=r(S,a[0]),E=r(S,i[0]),q=r(S,o[0]),D=r(S,s[0]),R=e(e(e(r(e(r(t(D,T),o[1]),e(r(t(q,_),-s[1]),r(t(k,z),l[1]))),i[2]),e(r(e(r(t(D,T),i[1]),e(r(t(E,b),-s[1]),r(t(w,y),l[1]))),-o[2]),r(e(r(t(q,_),i[1]),e(r(t(E,b),-o[1]),r(t(x,g),l[1]))),s[2]))),e(r(e(r(t(k,z),i[1]),e(r(t(w,y),-o[1]),r(t(x,g),s[1]))),-l[2]),e(r(e(r(t(D,T),i[1]),e(r(t(E,b),-s[1]),r(t(w,y),l[1]))),a[2]),r(e(r(t(D,T),a[1]),e(r(t(C,h),-s[1]),r(t(O,p),l[1]))),-i[2])))),e(e(r(e(r(t(E,b),a[1]),e(r(t(C,h),-i[1]),r(t(m,u),l[1]))),s[2]),e(r(e(r(t(w,y),a[1]),e(r(t(O,p),-i[1]),r(t(m,u),s[1]))),-l[2]),r(e(r(t(k,z),i[1]),e(r(t(w,y),-o[1]),r(t(x,g),s[1]))),a[2]))),e(r(e(r(t(k,z),a[1]),e(r(t(O,p),-o[1]),r(t(M,d),s[1]))),-i[2]),e(r(e(r(t(w,y),a[1]),e(r(t(O,p),-i[1]),r(t(m,u),s[1]))),o[2]),r(e(r(t(x,g),a[1]),e(r(t(M,d),-i[1]),r(t(m,u),o[1]))),-s[2]))))),L=e(e(e(r(e(r(t(D,T),o[1]),e(r(t(q,_),-s[1]),r(t(k,z),l[1]))),a[2]),r(e(r(t(D,T),a[1]),e(r(t(C,h),-s[1]),r(t(O,p),l[1]))),-o[2])),e(r(e(r(t(q,_),a[1]),e(r(t(C,h),-o[1]),r(t(M,d),l[1]))),s[2]),r(e(r(t(k,z),a[1]),e(r(t(O,p),-o[1]),r(t(M,d),s[1]))),-l[2]))),e(e(r(e(r(t(q,_),i[1]),e(r(t(E,b),-o[1]),r(t(x,g),l[1]))),a[2]),r(e(r(t(q,_),a[1]),e(r(t(C,h),-o[1]),r(t(M,d),l[1]))),-i[2])),e(r(e(r(t(E,b),a[1]),e(r(t(C,h),-i[1]),r(t(m,u),l[1]))),o[2]),r(e(r(t(x,g),a[1]),e(r(t(M,d),-i[1]),r(t(m,u),o[1]))),-l[2])))),I=t(R,L);return I[I.length-1]}}function d(e,t,n,r){return function(a,i,o,s,l,c){var u=e(e(n(a[0],a[0]),n(a[1],a[1])),e(n(a[2],a[2]),n(a[3],a[3]))),d=r(u,i[0]),p=r(u,o[0]),h=r(u,s[0]),f=r(u,l[0]),m=r(u,c[0]),g=e(e(n(i[0],i[0]),n(i[1],i[1])),e(n(i[2],i[2]),n(i[3],i[3]))),y=r(g,a[0]),b=r(g,o[0]),v=r(g,s[0]),M=r(g,l[0]),x=r(g,c[0]),z=e(e(n(o[0],o[0]),n(o[1],o[1])),e(n(o[2],o[2]),n(o[3],o[3]))),_=r(z,a[0]),A=r(z,i[0]),O=r(z,s[0]),w=r(z,l[0]),k=r(z,c[0]),T=e(e(n(s[0],s[0]),n(s[1],s[1])),e(n(s[2],s[2]),n(s[3],s[3]))),S=r(T,a[0]),C=r(T,i[0]),E=r(T,o[0]),q=r(T,l[0]),D=r(T,c[0]),R=e(e(n(l[0],l[0]),n(l[1],l[1])),e(n(l[2],l[2]),n(l[3],l[3]))),L=r(R,a[0]),I=r(R,i[0]),W=r(R,o[0]),N=r(R,s[0]),P=r(R,c[0]),B=e(e(n(c[0],c[0]),n(c[1],c[1])),e(n(c[2],c[2]),n(c[3],c[3]))),F=r(B,a[0]),j=r(B,i[0]),U=r(B,o[0]),V=r(B,s[0]),H=r(B,l[0]),X=e(e(e(r(e(e(r(e(r(t(H,P),s[1]),e(r(t(V,D),-l[1]),r(t(N,q),c[1]))),o[2]),r(e(r(t(H,P),o[1]),e(r(t(U,k),-l[1]),r(t(W,w),c[1]))),-s[2])),e(r(e(r(t(V,D),o[1]),e(r(t(U,k),-s[1]),r(t(E,O),c[1]))),l[2]),r(e(r(t(N,q),o[1]),e(r(t(W,w),-s[1]),r(t(E,O),l[1]))),-c[2]))),i[3]),e(r(e(e(r(e(r(t(H,P),s[1]),e(r(t(V,D),-l[1]),r(t(N,q),c[1]))),i[2]),r(e(r(t(H,P),i[1]),e(r(t(j,x),-l[1]),r(t(I,M),c[1]))),-s[2])),e(r(e(r(t(V,D),i[1]),e(r(t(j,x),-s[1]),r(t(C,v),c[1]))),l[2]),r(e(r(t(N,q),i[1]),e(r(t(I,M),-s[1]),r(t(C,v),l[1]))),-c[2]))),-o[3]),r(e(e(r(e(r(t(H,P),o[1]),e(r(t(U,k),-l[1]),r(t(W,w),c[1]))),i[2]),r(e(r(t(H,P),i[1]),e(r(t(j,x),-l[1]),r(t(I,M),c[1]))),-o[2])),e(r(e(r(t(U,k),i[1]),e(r(t(j,x),-o[1]),r(t(A,b),c[1]))),l[2]),r(e(r(t(W,w),i[1]),e(r(t(I,M),-o[1]),r(t(A,b),l[1]))),-c[2]))),s[3]))),e(e(r(e(e(r(e(r(t(V,D),o[1]),e(r(t(U,k),-s[1]),r(t(E,O),c[1]))),i[2]),r(e(r(t(V,D),i[1]),e(r(t(j,x),-s[1]),r(t(C,v),c[1]))),-o[2])),e(r(e(r(t(U,k),i[1]),e(r(t(j,x),-o[1]),r(t(A,b),c[1]))),s[2]),r(e(r(t(E,O),i[1]),e(r(t(C,v),-o[1]),r(t(A,b),s[1]))),-c[2]))),-l[3]),r(e(e(r(e(r(t(N,q),o[1]),e(r(t(W,w),-s[1]),r(t(E,O),l[1]))),i[2]),r(e(r(t(N,q),i[1]),e(r(t(I,M),-s[1]),r(t(C,v),l[1]))),-o[2])),e(r(e(r(t(W,w),i[1]),e(r(t(I,M),-o[1]),r(t(A,b),l[1]))),s[2]),r(e(r(t(E,O),i[1]),e(r(t(C,v),-o[1]),r(t(A,b),s[1]))),-l[2]))),c[3])),e(r(e(e(r(e(r(t(H,P),s[1]),e(r(t(V,D),-l[1]),r(t(N,q),c[1]))),i[2]),r(e(r(t(H,P),i[1]),e(r(t(j,x),-l[1]),r(t(I,M),c[1]))),-s[2])),e(r(e(r(t(V,D),i[1]),e(r(t(j,x),-s[1]),r(t(C,v),c[1]))),l[2]),r(e(r(t(N,q),i[1]),e(r(t(I,M),-s[1]),r(t(C,v),l[1]))),-c[2]))),a[3]),r(e(e(r(e(r(t(H,P),s[1]),e(r(t(V,D),-l[1]),r(t(N,q),c[1]))),a[2]),r(e(r(t(H,P),a[1]),e(r(t(F,m),-l[1]),r(t(L,f),c[1]))),-s[2])),e(r(e(r(t(V,D),a[1]),e(r(t(F,m),-s[1]),r(t(S,h),c[1]))),l[2]),r(e(r(t(N,q),a[1]),e(r(t(L,f),-s[1]),r(t(S,h),l[1]))),-c[2]))),-i[3])))),e(e(e(r(e(e(r(e(r(t(H,P),i[1]),e(r(t(j,x),-l[1]),r(t(I,M),c[1]))),a[2]),r(e(r(t(H,P),a[1]),e(r(t(F,m),-l[1]),r(t(L,f),c[1]))),-i[2])),e(r(e(r(t(j,x),a[1]),e(r(t(F,m),-i[1]),r(t(y,d),c[1]))),l[2]),r(e(r(t(I,M),a[1]),e(r(t(L,f),-i[1]),r(t(y,d),l[1]))),-c[2]))),s[3]),r(e(e(r(e(r(t(V,D),i[1]),e(r(t(j,x),-s[1]),r(t(C,v),c[1]))),a[2]),r(e(r(t(V,D),a[1]),e(r(t(F,m),-s[1]),r(t(S,h),c[1]))),-i[2])),e(r(e(r(t(j,x),a[1]),e(r(t(F,m),-i[1]),r(t(y,d),c[1]))),s[2]),r(e(r(t(C,v),a[1]),e(r(t(S,h),-i[1]),r(t(y,d),s[1]))),-c[2]))),-l[3])),e(r(e(e(r(e(r(t(N,q),i[1]),e(r(t(I,M),-s[1]),r(t(C,v),l[1]))),a[2]),r(e(r(t(N,q),a[1]),e(r(t(L,f),-s[1]),r(t(S,h),l[1]))),-i[2])),e(r(e(r(t(I,M),a[1]),e(r(t(L,f),-i[1]),r(t(y,d),l[1]))),s[2]),r(e(r(t(C,v),a[1]),e(r(t(S,h),-i[1]),r(t(y,d),s[1]))),-l[2]))),c[3]),r(e(e(r(e(r(t(V,D),o[1]),e(r(t(U,k),-s[1]),r(t(E,O),c[1]))),i[2]),r(e(r(t(V,D),i[1]),e(r(t(j,x),-s[1]),r(t(C,v),c[1]))),-o[2])),e(r(e(r(t(U,k),i[1]),e(r(t(j,x),-o[1]),r(t(A,b),c[1]))),s[2]),r(e(r(t(E,O),i[1]),e(r(t(C,v),-o[1]),r(t(A,b),s[1]))),-c[2]))),a[3]))),e(e(r(e(e(r(e(r(t(V,D),o[1]),e(r(t(U,k),-s[1]),r(t(E,O),c[1]))),a[2]),r(e(r(t(V,D),a[1]),e(r(t(F,m),-s[1]),r(t(S,h),c[1]))),-o[2])),e(r(e(r(t(U,k),a[1]),e(r(t(F,m),-o[1]),r(t(_,p),c[1]))),s[2]),r(e(r(t(E,O),a[1]),e(r(t(S,h),-o[1]),r(t(_,p),s[1]))),-c[2]))),-i[3]),r(e(e(r(e(r(t(V,D),i[1]),e(r(t(j,x),-s[1]),r(t(C,v),c[1]))),a[2]),r(e(r(t(V,D),a[1]),e(r(t(F,m),-s[1]),r(t(S,h),c[1]))),-i[2])),e(r(e(r(t(j,x),a[1]),e(r(t(F,m),-i[1]),r(t(y,d),c[1]))),s[2]),r(e(r(t(C,v),a[1]),e(r(t(S,h),-i[1]),r(t(y,d),s[1]))),-c[2]))),o[3])),e(r(e(e(r(e(r(t(U,k),i[1]),e(r(t(j,x),-o[1]),r(t(A,b),c[1]))),a[2]),r(e(r(t(U,k),a[1]),e(r(t(F,m),-o[1]),r(t(_,p),c[1]))),-i[2])),e(r(e(r(t(j,x),a[1]),e(r(t(F,m),-i[1]),r(t(y,d),c[1]))),o[2]),r(e(r(t(A,b),a[1]),e(r(t(_,p),-i[1]),r(t(y,d),o[1]))),-c[2]))),-s[3]),r(e(e(r(e(r(t(E,O),i[1]),e(r(t(C,v),-o[1]),r(t(A,b),s[1]))),a[2]),r(e(r(t(E,O),a[1]),e(r(t(S,h),-o[1]),r(t(_,p),s[1]))),-i[2])),e(r(e(r(t(C,v),a[1]),e(r(t(S,h),-i[1]),r(t(y,d),s[1]))),o[2]),r(e(r(t(A,b),a[1]),e(r(t(_,p),-i[1]),r(t(y,d),o[1]))),-s[2]))),c[3]))))),G=e(e(e(r(e(e(r(e(r(t(H,P),s[1]),e(r(t(V,D),-l[1]),r(t(N,q),c[1]))),o[2]),r(e(r(t(H,P),o[1]),e(r(t(U,k),-l[1]),r(t(W,w),c[1]))),-s[2])),e(r(e(r(t(V,D),o[1]),e(r(t(U,k),-s[1]),r(t(E,O),c[1]))),l[2]),r(e(r(t(N,q),o[1]),e(r(t(W,w),-s[1]),r(t(E,O),l[1]))),-c[2]))),a[3]),e(r(e(e(r(e(r(t(H,P),s[1]),e(r(t(V,D),-l[1]),r(t(N,q),c[1]))),a[2]),r(e(r(t(H,P),a[1]),e(r(t(F,m),-l[1]),r(t(L,f),c[1]))),-s[2])),e(r(e(r(t(V,D),a[1]),e(r(t(F,m),-s[1]),r(t(S,h),c[1]))),l[2]),r(e(r(t(N,q),a[1]),e(r(t(L,f),-s[1]),r(t(S,h),l[1]))),-c[2]))),-o[3]),r(e(e(r(e(r(t(H,P),o[1]),e(r(t(U,k),-l[1]),r(t(W,w),c[1]))),a[2]),r(e(r(t(H,P),a[1]),e(r(t(F,m),-l[1]),r(t(L,f),c[1]))),-o[2])),e(r(e(r(t(U,k),a[1]),e(r(t(F,m),-o[1]),r(t(_,p),c[1]))),l[2]),r(e(r(t(W,w),a[1]),e(r(t(L,f),-o[1]),r(t(_,p),l[1]))),-c[2]))),s[3]))),e(e(r(e(e(r(e(r(t(V,D),o[1]),e(r(t(U,k),-s[1]),r(t(E,O),c[1]))),a[2]),r(e(r(t(V,D),a[1]),e(r(t(F,m),-s[1]),r(t(S,h),c[1]))),-o[2])),e(r(e(r(t(U,k),a[1]),e(r(t(F,m),-o[1]),r(t(_,p),c[1]))),s[2]),r(e(r(t(E,O),a[1]),e(r(t(S,h),-o[1]),r(t(_,p),s[1]))),-c[2]))),-l[3]),r(e(e(r(e(r(t(N,q),o[1]),e(r(t(W,w),-s[1]),r(t(E,O),l[1]))),a[2]),r(e(r(t(N,q),a[1]),e(r(t(L,f),-s[1]),r(t(S,h),l[1]))),-o[2])),e(r(e(r(t(W,w),a[1]),e(r(t(L,f),-o[1]),r(t(_,p),l[1]))),s[2]),r(e(r(t(E,O),a[1]),e(r(t(S,h),-o[1]),r(t(_,p),s[1]))),-l[2]))),c[3])),e(r(e(e(r(e(r(t(H,P),o[1]),e(r(t(U,k),-l[1]),r(t(W,w),c[1]))),i[2]),r(e(r(t(H,P),i[1]),e(r(t(j,x),-l[1]),r(t(I,M),c[1]))),-o[2])),e(r(e(r(t(U,k),i[1]),e(r(t(j,x),-o[1]),r(t(A,b),c[1]))),l[2]),r(e(r(t(W,w),i[1]),e(r(t(I,M),-o[1]),r(t(A,b),l[1]))),-c[2]))),a[3]),r(e(e(r(e(r(t(H,P),o[1]),e(r(t(U,k),-l[1]),r(t(W,w),c[1]))),a[2]),r(e(r(t(H,P),a[1]),e(r(t(F,m),-l[1]),r(t(L,f),c[1]))),-o[2])),e(r(e(r(t(U,k),a[1]),e(r(t(F,m),-o[1]),r(t(_,p),c[1]))),l[2]),r(e(r(t(W,w),a[1]),e(r(t(L,f),-o[1]),r(t(_,p),l[1]))),-c[2]))),-i[3])))),e(e(e(r(e(e(r(e(r(t(H,P),i[1]),e(r(t(j,x),-l[1]),r(t(I,M),c[1]))),a[2]),r(e(r(t(H,P),a[1]),e(r(t(F,m),-l[1]),r(t(L,f),c[1]))),-i[2])),e(r(e(r(t(j,x),a[1]),e(r(t(F,m),-i[1]),r(t(y,d),c[1]))),l[2]),r(e(r(t(I,M),a[1]),e(r(t(L,f),-i[1]),r(t(y,d),l[1]))),-c[2]))),o[3]),r(e(e(r(e(r(t(U,k),i[1]),e(r(t(j,x),-o[1]),r(t(A,b),c[1]))),a[2]),r(e(r(t(U,k),a[1]),e(r(t(F,m),-o[1]),r(t(_,p),c[1]))),-i[2])),e(r(e(r(t(j,x),a[1]),e(r(t(F,m),-i[1]),r(t(y,d),c[1]))),o[2]),r(e(r(t(A,b),a[1]),e(r(t(_,p),-i[1]),r(t(y,d),o[1]))),-c[2]))),-l[3])),e(r(e(e(r(e(r(t(W,w),i[1]),e(r(t(I,M),-o[1]),r(t(A,b),l[1]))),a[2]),r(e(r(t(W,w),a[1]),e(r(t(L,f),-o[1]),r(t(_,p),l[1]))),-i[2])),e(r(e(r(t(I,M),a[1]),e(r(t(L,f),-i[1]),r(t(y,d),l[1]))),o[2]),r(e(r(t(A,b),a[1]),e(r(t(_,p),-i[1]),r(t(y,d),o[1]))),-l[2]))),c[3]),r(e(e(r(e(r(t(N,q),o[1]),e(r(t(W,w),-s[1]),r(t(E,O),l[1]))),i[2]),r(e(r(t(N,q),i[1]),e(r(t(I,M),-s[1]),r(t(C,v),l[1]))),-o[2])),e(r(e(r(t(W,w),i[1]),e(r(t(I,M),-o[1]),r(t(A,b),l[1]))),s[2]),r(e(r(t(E,O),i[1]),e(r(t(C,v),-o[1]),r(t(A,b),s[1]))),-l[2]))),a[3]))),e(e(r(e(e(r(e(r(t(N,q),o[1]),e(r(t(W,w),-s[1]),r(t(E,O),l[1]))),a[2]),r(e(r(t(N,q),a[1]),e(r(t(L,f),-s[1]),r(t(S,h),l[1]))),-o[2])),e(r(e(r(t(W,w),a[1]),e(r(t(L,f),-o[1]),r(t(_,p),l[1]))),s[2]),r(e(r(t(E,O),a[1]),e(r(t(S,h),-o[1]),r(t(_,p),s[1]))),-l[2]))),-i[3]),r(e(e(r(e(r(t(N,q),i[1]),e(r(t(I,M),-s[1]),r(t(C,v),l[1]))),a[2]),r(e(r(t(N,q),a[1]),e(r(t(L,f),-s[1]),r(t(S,h),l[1]))),-i[2])),e(r(e(r(t(I,M),a[1]),e(r(t(L,f),-i[1]),r(t(y,d),l[1]))),s[2]),r(e(r(t(C,v),a[1]),e(r(t(S,h),-i[1]),r(t(y,d),s[1]))),-l[2]))),o[3])),e(r(e(e(r(e(r(t(W,w),i[1]),e(r(t(I,M),-o[1]),r(t(A,b),l[1]))),a[2]),r(e(r(t(W,w),a[1]),e(r(t(L,f),-o[1]),r(t(_,p),l[1]))),-i[2])),e(r(e(r(t(I,M),a[1]),e(r(t(L,f),-i[1]),r(t(y,d),l[1]))),o[2]),r(e(r(t(A,b),a[1]),e(r(t(_,p),-i[1]),r(t(y,d),o[1]))),-l[2]))),-s[3]),r(e(e(r(e(r(t(E,O),i[1]),e(r(t(C,v),-o[1]),r(t(A,b),s[1]))),a[2]),r(e(r(t(E,O),a[1]),e(r(t(S,h),-o[1]),r(t(_,p),s[1]))),-i[2])),e(r(e(r(t(C,v),a[1]),e(r(t(S,h),-i[1]),r(t(y,d),s[1]))),o[2]),r(e(r(t(A,b),a[1]),e(r(t(_,p),-i[1]),r(t(y,d),o[1]))),-s[2]))),l[3]))))),Y=t(X,G);return Y[Y.length-1]}}var p=[function(){return 0},function(){return 0},function(){return 0}];function h(e){var t=p[e.length];return t||(t=p[e.length]=s(e.length)),t.apply(void 0,e)}function f(e,t,n,r,a,i,o,s){return function(t,n,l,c,u,d){switch(arguments.length){case 0:case 1:return 0;case 2:return r(t,n);case 3:return a(t,n,l);case 4:return i(t,n,l,c);case 5:return o(t,n,l,c,u);case 6:return s(t,n,l,c,u,d)}for(var p=new Array(arguments.length),h=0;h<arguments.length;++h)p[h]=arguments[h];return e(p)}}!function(){for(;p.length<=6;)p.push(s(p.length));e.exports=f.apply(void 0,[h].concat(p));for(var t=0;t<=6;++t)e.exports[t]=p[t]}()},727:function(e,t,n){var r=n(2962);function a(e){var t=2===e?i:3===e?o:4===e?s:5===e?l:c;return t(e<6?r[e]:r)}function i(e){return function(t,n){return[e([[+n[0],+t[0][1]],[+n[1],+t[1][1]]]),e([[+t[0][0],+n[0]],[+t[1][0],+n[1]]]),e(t)]}}function o(e){return function(t,n){return[e([[+n[0],+t[0][1],+t[0][2]],[+n[1],+t[1][1],+t[1][2]],[+n[2],+t[2][1],+t[2][2]]]),e([[+t[0][0],+n[0],+t[0][2]],[+t[1][0],+n[1],+t[1][2]],[+t[2][0],+n[2],+t[2][2]]]),e([[+t[0][0],+t[0][1],+n[0]],[+t[1][0],+t[1][1],+n[1]],[+t[2][0],+t[2][1],+n[2]]]),e(t)]}}function s(e){return function(t,n){return[e([[+n[0],+t[0][1],+t[0][2],+t[0][3]],[+n[1],+t[1][1],+t[1][2],+t[1][3]],[+n[2],+t[2][1],+t[2][2],+t[2][3]],[+n[3],+t[3][1],+t[3][2],+t[3][3]]]),e([[+t[0][0],+n[0],+t[0][2],+t[0][3]],[+t[1][0],+n[1],+t[1][2],+t[1][3]],[+t[2][0],+n[2],+t[2][2],+t[2][3]],[+t[3][0],+n[3],+t[3][2],+t[3][3]]]),e([[+t[0][0],+t[0][1],+n[0],+t[0][3]],[+t[1][0],+t[1][1],+n[1],+t[1][3]],[+t[2][0],+t[2][1],+n[2],+t[2][3]],[+t[3][0],+t[3][1],+n[3],+t[3][3]]]),e([[+t[0][0],+t[0][1],+t[0][2],+n[0]],[+t[1][0],+t[1][1],+t[1][2],+n[1]],[+t[2][0],+t[2][1],+t[2][2],+n[2]],[+t[3][0],+t[3][1],+t[3][2],+n[3]]]),e(t)]}}function l(e){return function(t,n){return[e([[+n[0],+t[0][1],+t[0][2],+t[0][3],+t[0][4]],[+n[1],+t[1][1],+t[1][2],+t[1][3],+t[1][4]],[+n[2],+t[2][1],+t[2][2],+t[2][3],+t[2][4]],[+n[3],+t[3][1],+t[3][2],+t[3][3],+t[3][4]],[+n[4],+t[4][1],+t[4][2],+t[4][3],+t[4][4]]]),e([[+t[0][0],+n[0],+t[0][2],+t[0][3],+t[0][4]],[+t[1][0],+n[1],+t[1][2],+t[1][3],+t[1][4]],[+t[2][0],+n[2],+t[2][2],+t[2][3],+t[2][4]],[+t[3][0],+n[3],+t[3][2],+t[3][3],+t[3][4]],[+t[4][0],+n[4],+t[4][2],+t[4][3],+t[4][4]]]),e([[+t[0][0],+t[0][1],+n[0],+t[0][3],+t[0][4]],[+t[1][0],+t[1][1],+n[1],+t[1][3],+t[1][4]],[+t[2][0],+t[2][1],+n[2],+t[2][3],+t[2][4]],[+t[3][0],+t[3][1],+n[3],+t[3][3],+t[3][4]],[+t[4][0],+t[4][1],+n[4],+t[4][3],+t[4][4]]]),e([[+t[0][0],+t[0][1],+t[0][2],+n[0],+t[0][4]],[+t[1][0],+t[1][1],+t[1][2],+n[1],+t[1][4]],[+t[2][0],+t[2][1],+t[2][2],+n[2],+t[2][4]],[+t[3][0],+t[3][1],+t[3][2],+n[3],+t[3][4]],[+t[4][0],+t[4][1],+t[4][2],+n[4],+t[4][4]]]),e([[+t[0][0],+t[0][1],+t[0][2],+t[0][3],+n[0]],[+t[1][0],+t[1][1],+t[1][2],+t[1][3],+n[1]],[+t[2][0],+t[2][1],+t[2][2],+t[2][3],+n[2]],[+t[3][0],+t[3][1],+t[3][2],+t[3][3],+n[3]],[+t[4][0],+t[4][1],+t[4][2],+t[4][3],+n[4]]]),e(t)]}}function c(e){return function(t,n){return[e([[+n[0],+t[0][1],+t[0][2],+t[0][3],+t[0][4],+t[0][5]],[+n[1],+t[1][1],+t[1][2],+t[1][3],+t[1][4],+t[1][5]],[+n[2],+t[2][1],+t[2][2],+t[2][3],+t[2][4],+t[2][5]],[+n[3],+t[3][1],+t[3][2],+t[3][3],+t[3][4],+t[3][5]],[+n[4],+t[4][1],+t[4][2],+t[4][3],+t[4][4],+t[4][5]],[+n[5],+t[5][1],+t[5][2],+t[5][3],+t[5][4],+t[5][5]]]),e([[+t[0][0],+n[0],+t[0][2],+t[0][3],+t[0][4],+t[0][5]],[+t[1][0],+n[1],+t[1][2],+t[1][3],+t[1][4],+t[1][5]],[+t[2][0],+n[2],+t[2][2],+t[2][3],+t[2][4],+t[2][5]],[+t[3][0],+n[3],+t[3][2],+t[3][3],+t[3][4],+t[3][5]],[+t[4][0],+n[4],+t[4][2],+t[4][3],+t[4][4],+t[4][5]],[+t[5][0],+n[5],+t[5][2],+t[5][3],+t[5][4],+t[5][5]]]),e([[+t[0][0],+t[0][1],+n[0],+t[0][3],+t[0][4],+t[0][5]],[+t[1][0],+t[1][1],+n[1],+t[1][3],+t[1][4],+t[1][5]],[+t[2][0],+t[2][1],+n[2],+t[2][3],+t[2][4],+t[2][5]],[+t[3][0],+t[3][1],+n[3],+t[3][3],+t[3][4],+t[3][5]],[+t[4][0],+t[4][1],+n[4],+t[4][3],+t[4][4],+t[4][5]],[+t[5][0],+t[5][1],+n[5],+t[5][3],+t[5][4],+t[5][5]]]),e([[+t[0][0],+t[0][1],+t[0][2],+n[0],+t[0][4],+t[0][5]],[+t[1][0],+t[1][1],+t[1][2],+n[1],+t[1][4],+t[1][5]],[+t[2][0],+t[2][1],+t[2][2],+n[2],+t[2][4],+t[2][5]],[+t[3][0],+t[3][1],+t[3][2],+n[3],+t[3][4],+t[3][5]],[+t[4][0],+t[4][1],+t[4][2],+n[4],+t[4][4],+t[4][5]],[+t[5][0],+t[5][1],+t[5][2],+n[5],+t[5][4],+t[5][5]]]),e([[+t[0][0],+t[0][1],+t[0][2],+t[0][3],+n[0],+t[0][5]],[+t[1][0],+t[1][1],+t[1][2],+t[1][3],+n[1],+t[1][5]],[+t[2][0],+t[2][1],+t[2][2],+t[2][3],+n[2],+t[2][5]],[+t[3][0],+t[3][1],+t[3][2],+t[3][3],+n[3],+t[3][5]],[+t[4][0],+t[4][1],+t[4][2],+t[4][3],+n[4],+t[4][5]],[+t[5][0],+t[5][1],+t[5][2],+t[5][3],+n[5],+t[5][5]]]),e([[+t[0][0],+t[0][1],+t[0][2],+t[0][3],+t[0][4],+n[0]],[+t[1][0],+t[1][1],+t[1][2],+t[1][3],+t[1][4],+n[1]],[+t[2][0],+t[2][1],+t[2][2],+t[2][3],+t[2][4],+n[2]],[+t[3][0],+t[3][1],+t[3][2],+t[3][3],+t[3][4],+n[3]],[+t[4][0],+t[4][1],+t[4][2],+t[4][3],+t[4][4],+n[4]],[+t[5][0],+t[5][1],+t[5][2],+t[5][3],+t[5][4],+n[5]]]),e(t)]}}var u=[function(){return[[0]]},function(e,t){return[[t[0]],[e[0][0]]]}];function d(e,t,n,r,a,i,o,s){return function(l,c){switch(l.length){case 0:return e(l,c);case 1:return t(l,c);case 2:return n(l,c);case 3:return r(l,c);case 4:return a(l,c);case 5:return i(l,c)}var u=o[l.length];return u||(u=o[l.length]=s(l.length)),u(l,c)}}!function(){for(;u.length<6;)u.push(a(u.length));e.exports=d.apply(void 0,u.concat([u,a]));for(var t=0;t<6;++t)e.exports[t]=u[t]}()},3250:function(e,t,n){var r=n(5250),a=n(8210),i=n(3012),o=n(8545),s=11102230246251565e-32,l=(3+16*s)*s,c=(7+56*s)*s;function u(e,t,n,r){return function(n,a,i){var o=e(e(t(a[1],i[0]),t(-i[1],a[0])),e(t(n[1],a[0]),t(-a[1],n[0]))),s=e(t(n[1],i[0]),t(-i[1],n[0])),l=r(o,s);return l[l.length-1]}}function d(e,t,n,r){return function(a,i,o,s){var l=e(e(n(e(t(o[1],s[0]),t(-s[1],o[0])),i[2]),e(n(e(t(i[1],s[0]),t(-s[1],i[0])),-o[2]),n(e(t(i[1],o[0]),t(-o[1],i[0])),s[2]))),e(n(e(t(i[1],s[0]),t(-s[1],i[0])),a[2]),e(n(e(t(a[1],s[0]),t(-s[1],a[0])),-i[2]),n(e(t(a[1],i[0]),t(-i[1],a[0])),s[2])))),c=e(e(n(e(t(o[1],s[0]),t(-s[1],o[0])),a[2]),e(n(e(t(a[1],s[0]),t(-s[1],a[0])),-o[2]),n(e(t(a[1],o[0]),t(-o[1],a[0])),s[2]))),e(n(e(t(i[1],o[0]),t(-o[1],i[0])),a[2]),e(n(e(t(a[1],o[0]),t(-o[1],a[0])),-i[2]),n(e(t(a[1],i[0]),t(-i[1],a[0])),o[2])))),u=r(l,c);return u[u.length-1]}}function p(e,t,n,r){return function(a,i,o,s,l){var c=e(e(e(n(e(n(e(t(s[1],l[0]),t(-l[1],s[0])),o[2]),e(n(e(t(o[1],l[0]),t(-l[1],o[0])),-s[2]),n(e(t(o[1],s[0]),t(-s[1],o[0])),l[2]))),i[3]),e(n(e(n(e(t(s[1],l[0]),t(-l[1],s[0])),i[2]),e(n(e(t(i[1],l[0]),t(-l[1],i[0])),-s[2]),n(e(t(i[1],s[0]),t(-s[1],i[0])),l[2]))),-o[3]),n(e(n(e(t(o[1],l[0]),t(-l[1],o[0])),i[2]),e(n(e(t(i[1],l[0]),t(-l[1],i[0])),-o[2]),n(e(t(i[1],o[0]),t(-o[1],i[0])),l[2]))),s[3]))),e(n(e(n(e(t(o[1],s[0]),t(-s[1],o[0])),i[2]),e(n(e(t(i[1],s[0]),t(-s[1],i[0])),-o[2]),n(e(t(i[1],o[0]),t(-o[1],i[0])),s[2]))),-l[3]),e(n(e(n(e(t(s[1],l[0]),t(-l[1],s[0])),i[2]),e(n(e(t(i[1],l[0]),t(-l[1],i[0])),-s[2]),n(e(t(i[1],s[0]),t(-s[1],i[0])),l[2]))),a[3]),n(e(n(e(t(s[1],l[0]),t(-l[1],s[0])),a[2]),e(n(e(t(a[1],l[0]),t(-l[1],a[0])),-s[2]),n(e(t(a[1],s[0]),t(-s[1],a[0])),l[2]))),-i[3])))),e(e(n(e(n(e(t(i[1],l[0]),t(-l[1],i[0])),a[2]),e(n(e(t(a[1],l[0]),t(-l[1],a[0])),-i[2]),n(e(t(a[1],i[0]),t(-i[1],a[0])),l[2]))),s[3]),e(n(e(n(e(t(i[1],s[0]),t(-s[1],i[0])),a[2]),e(n(e(t(a[1],s[0]),t(-s[1],a[0])),-i[2]),n(e(t(a[1],i[0]),t(-i[1],a[0])),s[2]))),-l[3]),n(e(n(e(t(o[1],s[0]),t(-s[1],o[0])),i[2]),e(n(e(t(i[1],s[0]),t(-s[1],i[0])),-o[2]),n(e(t(i[1],o[0]),t(-o[1],i[0])),s[2]))),a[3]))),e(n(e(n(e(t(o[1],s[0]),t(-s[1],o[0])),a[2]),e(n(e(t(a[1],s[0]),t(-s[1],a[0])),-o[2]),n(e(t(a[1],o[0]),t(-o[1],a[0])),s[2]))),-i[3]),e(n(e(n(e(t(i[1],s[0]),t(-s[1],i[0])),a[2]),e(n(e(t(a[1],s[0]),t(-s[1],a[0])),-i[2]),n(e(t(a[1],i[0]),t(-i[1],a[0])),s[2]))),o[3]),n(e(n(e(t(i[1],o[0]),t(-o[1],i[0])),a[2]),e(n(e(t(a[1],o[0]),t(-o[1],a[0])),-i[2]),n(e(t(a[1],i[0]),t(-i[1],a[0])),o[2]))),-s[3]))))),u=e(e(e(n(e(n(e(t(s[1],l[0]),t(-l[1],s[0])),o[2]),e(n(e(t(o[1],l[0]),t(-l[1],o[0])),-s[2]),n(e(t(o[1],s[0]),t(-s[1],o[0])),l[2]))),a[3]),n(e(n(e(t(s[1],l[0]),t(-l[1],s[0])),a[2]),e(n(e(t(a[1],l[0]),t(-l[1],a[0])),-s[2]),n(e(t(a[1],s[0]),t(-s[1],a[0])),l[2]))),-o[3])),e(n(e(n(e(t(o[1],l[0]),t(-l[1],o[0])),a[2]),e(n(e(t(a[1],l[0]),t(-l[1],a[0])),-o[2]),n(e(t(a[1],o[0]),t(-o[1],a[0])),l[2]))),s[3]),n(e(n(e(t(o[1],s[0]),t(-s[1],o[0])),a[2]),e(n(e(t(a[1],s[0]),t(-s[1],a[0])),-o[2]),n(e(t(a[1],o[0]),t(-o[1],a[0])),s[2]))),-l[3]))),e(e(n(e(n(e(t(o[1],l[0]),t(-l[1],o[0])),i[2]),e(n(e(t(i[1],l[0]),t(-l[1],i[0])),-o[2]),n(e(t(i[1],o[0]),t(-o[1],i[0])),l[2]))),a[3]),n(e(n(e(t(o[1],l[0]),t(-l[1],o[0])),a[2]),e(n(e(t(a[1],l[0]),t(-l[1],a[0])),-o[2]),n(e(t(a[1],o[0]),t(-o[1],a[0])),l[2]))),-i[3])),e(n(e(n(e(t(i[1],l[0]),t(-l[1],i[0])),a[2]),e(n(e(t(a[1],l[0]),t(-l[1],a[0])),-i[2]),n(e(t(a[1],i[0]),t(-i[1],a[0])),l[2]))),o[3]),n(e(n(e(t(i[1],o[0]),t(-o[1],i[0])),a[2]),e(n(e(t(a[1],o[0]),t(-o[1],a[0])),-i[2]),n(e(t(a[1],i[0]),t(-i[1],a[0])),o[2]))),-l[3])))),d=r(c,u);return d[d.length-1]}}function h(e){return(3===e?u:4===e?d:p)(a,r,i,o)}var f=h(3),m=h(4),g=[function(){return 0},function(){return 0},function(e,t){return t[0]-e[0]},function(e,t,n){var r,a=(e[1]-n[1])*(t[0]-n[0]),i=(e[0]-n[0])*(t[1]-n[1]),o=a-i;if(a>0){if(i<=0)return o;r=a+i}else{if(!(a<0))return o;if(i>=0)return o;r=-(a+i)}var s=l*r;return o>=s||o<=-s?o:f(e,t,n)},function(e,t,n,r){var a=e[0]-r[0],i=t[0]-r[0],o=n[0]-r[0],s=e[1]-r[1],l=t[1]-r[1],u=n[1]-r[1],d=e[2]-r[2],p=t[2]-r[2],h=n[2]-r[2],f=i*u,g=o*l,y=o*s,b=a*u,v=a*l,M=i*s,x=d*(f-g)+p*(y-b)+h*(v-M),z=(Math.abs(f)+Math.abs(g))*Math.abs(d)+(Math.abs(y)+Math.abs(b))*Math.abs(p)+(Math.abs(v)+Math.abs(M))*Math.abs(h),_=c*z;return x>_||-x>_?x:m(e,t,n,r)}];function y(e){var t=g[e.length];return t||(t=g[e.length]=h(e.length)),t.apply(void 0,e)}function b(e,t,n,r,a,i,o){return function(t,n,s,l,c){switch(arguments.length){case 0:case 1:return 0;case 2:return r(t,n);case 3:return a(t,n,s);case 4:return i(t,n,s,l);case 5:return o(t,n,s,l,c)}for(var u=new Array(arguments.length),d=0;d<arguments.length;++d)u[d]=arguments[d];return e(u)}}!function(){for(;g.length<=5;)g.push(h(g.length));e.exports=b.apply(void 0,[y].concat(g));for(var t=0;t<=5;++t)e.exports[t]=g[t]}()},5382:function(e,t,n){var r=n(8210),a=n(3012);e.exports=function(e,t){if(1===e.length)return a(t,e[0]);if(1===t.length)return a(e,t[0]);if(0===e.length||0===t.length)return[0];var n=[0];if(e.length<t.length)for(var i=0;i<e.length;++i)n=r(n,a(t,e[i]));else for(i=0;i<t.length;++i)n=r(n,a(e,t[i]));return n}},3012:function(e,t,n){var r=n(5250),a=n(9362);e.exports=function(e,t){var n=e.length;if(1===n){var i=r(e[0],t);return i[0]?i:[i[1]]}var o=new Array(2*n),s=[.1,.1],l=[.1,.1],c=0;r(e[0],t,s),s[0]&&(o[c++]=s[0]);for(var u=1;u<n;++u){r(e[u],t,l);var d=s[1];a(d,l[0],s),s[0]&&(o[c++]=s[0]);var p=l[1],h=s[1],f=p+h,m=h-(f-p);s[1]=f,m&&(o[c++]=m)}return s[1]&&(o[c++]=s[1]),0===c&&(o[c++]=0),o.length=c,o}},1125:function(e,t,n){e.exports=function(e,t,n,a){var i=r(e,n,a),o=r(t,n,a);if(i>0&&o>0||i<0&&o<0)return!1;var s=r(n,e,t),l=r(a,e,t);return!(s>0&&l>0||s<0&&l<0)&&(0!==i||0!==o||0!==s||0!==l||function(e,t,n,r){for(var a=0;a<2;++a){var i=e[a],o=t[a],s=Math.min(i,o),l=Math.max(i,o),c=n[a],u=r[a],d=Math.min(c,u);if(Math.max(c,u)<s||l<d)return!1}return!0}(e,t,n,a))};var r=n(3250)[3]},8545:function(e){e.exports=function(e,t){var n=0|e.length,r=0|t.length;if(1===n&&1===r)return function(e,t){var n=e+t,r=n-e,a=n-r,i=t-r,o=e-a,s=o+i;return s?[s,n]:[n]}(e[0],-t[0]);var a,i,o=new Array(n+r),s=0,l=0,c=0,u=Math.abs,d=e[l],p=u(d),h=-t[c],f=u(h);p<f?(i=d,(l+=1)<n&&(d=e[l],p=u(d))):(i=h,(c+=1)<r&&(h=-t[c],f=u(h))),l<n&&p<f||c>=r?(a=d,(l+=1)<n&&(d=e[l],p=u(d))):(a=h,(c+=1)<r&&(h=-t[c],f=u(h)));for(var m,g,y=a+i,b=y-a,v=i-b,M=v,x=y;l<n&&c<r;)p<f?(a=d,(l+=1)<n&&(d=e[l],p=u(d))):(a=h,(c+=1)<r&&(h=-t[c],f=u(h))),(v=(i=M)-(b=(y=a+i)-a))&&(o[s++]=v),M=x-((m=x+y)-(g=m-x))+(y-g),x=m;for(;l<n;)(v=(i=M)-(b=(y=(a=d)+i)-a))&&(o[s++]=v),M=x-((m=x+y)-(g=m-x))+(y-g),x=m,(l+=1)<n&&(d=e[l]);for(;c<r;)(v=(i=M)-(b=(y=(a=h)+i)-a))&&(o[s++]=v),M=x-((m=x+y)-(g=m-x))+(y-g),x=m,(c+=1)<r&&(h=-t[c]);return M&&(o[s++]=M),x&&(o[s++]=x),s||(o[s++]=0),o.length=s,o}},8210:function(e){e.exports=function(e,t){var n=0|e.length,r=0|t.length;if(1===n&&1===r)return function(e,t){var n=e+t,r=n-e,a=n-r,i=t-r,o=e-a,s=o+i;return s?[s,n]:[n]}(e[0],t[0]);var a,i,o=new Array(n+r),s=0,l=0,c=0,u=Math.abs,d=e[l],p=u(d),h=t[c],f=u(h);p<f?(i=d,(l+=1)<n&&(d=e[l],p=u(d))):(i=h,(c+=1)<r&&(h=t[c],f=u(h))),l<n&&p<f||c>=r?(a=d,(l+=1)<n&&(d=e[l],p=u(d))):(a=h,(c+=1)<r&&(h=t[c],f=u(h)));for(var m,g,y=a+i,b=y-a,v=i-b,M=v,x=y;l<n&&c<r;)p<f?(a=d,(l+=1)<n&&(d=e[l],p=u(d))):(a=h,(c+=1)<r&&(h=t[c],f=u(h))),(v=(i=M)-(b=(y=a+i)-a))&&(o[s++]=v),M=x-((m=x+y)-(g=m-x))+(y-g),x=m;for(;l<n;)(v=(i=M)-(b=(y=(a=d)+i)-a))&&(o[s++]=v),M=x-((m=x+y)-(g=m-x))+(y-g),x=m,(l+=1)<n&&(d=e[l]);for(;c<r;)(v=(i=M)-(b=(y=(a=h)+i)-a))&&(o[s++]=v),M=x-((m=x+y)-(g=m-x))+(y-g),x=m,(c+=1)<r&&(h=t[c]);return M&&(o[s++]=M),x&&(o[s++]=x),s||(o[s++]=0),o.length=s,o}},9127:function(e,t,n){e.exports=function(e){return a(r(e))};var r=n(6204),a=n(5771)},7765:function(e,t,n){e.exports=function(e,t,n,s){if(n=n||0,typeof s>"u"&&(s=function(e){for(var t=e.length,n=0,r=0;r<t;++r)n=0|Math.max(n,e[r].length);return n-1}(e)),0===e.length||s<1)return{cells:[],vertexIds:[],vertexWeights:[]};var l=function(e,t){for(var n=e.length,r=a.mallocUint8(n),i=0;i<n;++i)r[i]=e[i]<t|0;return r}(t,+n),c=function(e,t){for(var n=e.length,o=t*(t+1)/2*n|0,s=a.mallocUint32(2*o),l=0,c=0;c<n;++c)for(var u=e[c],d=(t=u.length,0);d<t;++d)for(var p=0;p<d;++p){var h=u[p],f=u[d];s[l++]=0|Math.min(h,f),s[l++]=0|Math.max(h,f)}var m=l/2|0;i(r(s,[m,2]));var g=2;for(c=2;c<l;c+=2)s[c-2]===s[c]&&s[c-1]===s[c+1]||(s[g++]=s[c],s[g++]=s[c+1]);return r(s,[g/2|0,2])}(e,s),u=function(e,t,n,i){for(var o=e.data,s=e.shape[0],l=a.mallocDouble(s),c=0,u=0;u<s;++u){var d=o[2*u],p=o[2*u+1];if(n[d]!==n[p]){var h=t[d],f=t[p];o[2*c]=d,o[2*c+1]=p,l[c++]=(f-i)/(f-h)}}return e.shape[0]=c,r(l,[c])}(c,t,l,+n),d=function(e,t){var n=a.mallocInt32(2*t),r=e.shape[0],i=e.data;n[0]=0;for(var o=0,s=0;s<r;++s){var l=i[2*s];if(l!==o){for(n[2*o+1]=s;++o<l;)n[2*o]=s,n[2*o+1]=s;n[2*o]=s}}for(n[2*o+1]=r;++o<t;)n[2*o]=n[2*o+1]=r;return n}(c,0|t.length),p=o(s)(e,c.data,d,l),h=function(e){for(var t=0|e.shape[0],n=e.data,r=new Array(t),a=0;a<t;++a)r[a]=[n[2*a],n[2*a+1]];return r}(c),f=[].slice.call(u.data,0,u.shape[0]);return a.free(l),a.free(c.data),a.free(u.data),a.free(d),{cells:p,vertexIds:h,vertexWeights:f}};var r=n(9618),a=n(1888),i=n(446),o=n(1570)},1570:function(e){e.exports=function(e){return t[e]()};var t=[function(){return function(e,t,n,r){for(var a=e.length,i=0;i<a;++i)e[i].length;return[]}},function(){function e(e,t,n,r){for(var a=0|Math.min(n,r),i=0|Math.max(n,r),o=e[2*a],s=e[2*a+1];o<s;){var l=o+s>>1,c=t[2*l+1];if(c===i)return l;i<c?s=l:o=l+1}return o}return function(t,n,r,a){for(var i=t.length,o=[],s=0;s<i;++s){var l=t[s];if(2===l.length){var c=(a[l[0]]|0)+(a[l[1]]<<1);if(0===c||3===c)continue;switch(c){case 0:case 3:break;case 1:o.push([e(r,n,l[0],l[1])]);break;case 2:o.push([e(r,n,l[1],l[0])])}}}return o}},function(){function e(e,t,n,r){for(var a=0|Math.min(n,r),i=0|Math.max(n,r),o=e[2*a],s=e[2*a+1];o<s;){var l=o+s>>1,c=t[2*l+1];if(c===i)return l;i<c?s=l:o=l+1}return o}return function(t,n,r,a){for(var i=t.length,o=[],s=0;s<i;++s){var l=t[s],c=l.length;if(3===c){if(0===(u=(a[l[0]]|0)+(a[l[1]]<<1)+(a[l[2]]<<2))||7===u)continue;switch(u){case 0:case 7:break;case 1:o.push([e(r,n,l[0],l[2]),e(r,n,l[0],l[1])]);break;case 2:o.push([e(r,n,l[1],l[0]),e(r,n,l[1],l[2])]);break;case 3:o.push([e(r,n,l[0],l[2]),e(r,n,l[1],l[2])]);break;case 4:o.push([e(r,n,l[2],l[1]),e(r,n,l[2],l[0])]);break;case 5:o.push([e(r,n,l[2],l[1]),e(r,n,l[0],l[1])]);break;case 6:o.push([e(r,n,l[1],l[0]),e(r,n,l[2],l[0])])}}else if(2===c){var u;if(0===(u=(a[l[0]]|0)+(a[l[1]]<<1))||3===u)continue;switch(u){case 0:case 3:break;case 1:o.push([e(r,n,l[0],l[1])]);break;case 2:o.push([e(r,n,l[1],l[0])])}}}return o}},function(){function e(e,t,n,r){for(var a=0|Math.min(n,r),i=0|Math.max(n,r),o=e[2*a],s=e[2*a+1];o<s;){var l=o+s>>1,c=t[2*l+1];if(c===i)return l;i<c?s=l:o=l+1}return o}return function(t,n,r,a){for(var i=t.length,o=[],s=0;s<i;++s){var l=t[s],c=l.length;if(4===c){if(0===(u=(a[l[0]]|0)+(a[l[1]]<<1)+(a[l[2]]<<2)+(a[l[3]]<<3))||15===u)continue;switch(u){case 0:case 15:break;case 1:o.push([e(r,n,l[0],l[1]),e(r,n,l[0],l[2]),e(r,n,l[0],l[3])]);break;case 2:o.push([e(r,n,l[1],l[2]),e(r,n,l[1],l[0]),e(r,n,l[1],l[3])]);break;case 3:o.push([e(r,n,l[1],l[2]),e(r,n,l[0],l[2]),e(r,n,l[0],l[3])],[e(r,n,l[1],l[3]),e(r,n,l[1],l[2]),e(r,n,l[0],l[3])]);break;case 4:o.push([e(r,n,l[2],l[0]),e(r,n,l[2],l[1]),e(r,n,l[2],l[3])]);break;case 5:o.push([e(r,n,l[0],l[1]),e(r,n,l[2],l[1]),e(r,n,l[0],l[3])],[e(r,n,l[2],l[1]),e(r,n,l[2],l[3]),e(r,n,l[0],l[3])]);break;case 6:o.push([e(r,n,l[2],l[0]),e(r,n,l[1],l[0]),e(r,n,l[1],l[3])],[e(r,n,l[2],l[3]),e(r,n,l[2],l[0]),e(r,n,l[1],l[3])]);break;case 7:o.push([e(r,n,l[0],l[3]),e(r,n,l[1],l[3]),e(r,n,l[2],l[3])]);break;case 8:o.push([e(r,n,l[3],l[1]),e(r,n,l[3],l[0]),e(r,n,l[3],l[2])]);break;case 9:o.push([e(r,n,l[3],l[1]),e(r,n,l[0],l[1]),e(r,n,l[0],l[2])],[e(r,n,l[3],l[2]),e(r,n,l[3],l[1]),e(r,n,l[0],l[2])]);break;case 10:o.push([e(r,n,l[1],l[0]),e(r,n,l[3],l[0]),e(r,n,l[1],l[2])],[e(r,n,l[3],l[0]),e(r,n,l[3],l[2]),e(r,n,l[1],l[2])]);break;case 11:o.push([e(r,n,l[1],l[2]),e(r,n,l[0],l[2]),e(r,n,l[3],l[2])]);break;case 12:o.push([e(r,n,l[3],l[0]),e(r,n,l[2],l[0]),e(r,n,l[2],l[1])],[e(r,n,l[3],l[1]),e(r,n,l[3],l[0]),e(r,n,l[2],l[1])]);break;case 13:o.push([e(r,n,l[0],l[1]),e(r,n,l[2],l[1]),e(r,n,l[3],l[1])]);break;case 14:o.push([e(r,n,l[2],l[0]),e(r,n,l[1],l[0]),e(r,n,l[3],l[0])])}}else if(3===c){if(0===(u=(a[l[0]]|0)+(a[l[1]]<<1)+(a[l[2]]<<2))||7===u)continue;switch(u){case 0:case 7:break;case 1:o.push([e(r,n,l[0],l[2]),e(r,n,l[0],l[1])]);break;case 2:o.push([e(r,n,l[1],l[0]),e(r,n,l[1],l[2])]);break;case 3:o.push([e(r,n,l[0],l[2]),e(r,n,l[1],l[2])]);break;case 4:o.push([e(r,n,l[2],l[1]),e(r,n,l[2],l[0])]);break;case 5:o.push([e(r,n,l[2],l[1]),e(r,n,l[0],l[1])]);break;case 6:o.push([e(r,n,l[1],l[0]),e(r,n,l[2],l[0])])}}else if(2===c){var u;if(0===(u=(a[l[0]]|0)+(a[l[1]]<<1))||3===u)continue;switch(u){case 0:case 3:break;case 1:o.push([e(r,n,l[0],l[1])]);break;case 2:o.push([e(r,n,l[1],l[0])])}}}return o}}]},6803:function(e,t,n){var r=n(8828),a=n(1755);function i(e,t){var n=e.length,r=e.length-t.length,a=Math.min;if(r)return r;switch(n){case 0:return 0;case 1:return e[0]-t[0];case 2:return(s=e[0]+e[1]-t[0]-t[1])||a(e[0],e[1])-a(t[0],t[1]);case 3:var i=e[0]+e[1],o=t[0]+t[1];if(s=i+e[2]-(o+t[2]))return s;var s,l=a(e[0],e[1]),c=a(t[0],t[1]);return(s=a(l,e[2])-a(c,t[2]))||a(l+e[2],i)-a(c+t[2],o);default:var u=e.slice(0);u.sort();var d=t.slice(0);d.sort();for(var p=0;p<n;++p)if(r=u[p]-d[p])return r;return 0}}function o(e,t){return i(e[0],t[0])}function s(e,t){if(t){for(var n=e.length,r=new Array(n),a=0;a<n;++a)r[a]=[e[a],t[a]];r.sort(o);for(0;a<n;++a)e[a]=r[a][0],t[a]=r[a][1];return e}return e.sort(i),e}function l(e){if(0===e.length)return[];for(var t=1,n=e.length,r=1;r<n;++r){var a=e[r];if(i(a,e[r-1])){if(r===t){0;continue}e[t++]=a}}return e.length=t,e}function c(e,t){for(var n=0,r=e.length-1,a=-1;n<=r;){var o=n+r>>1,s=i(e[o],t);s<=0?(0===s&&o,o+1):s>0&&o-1}return a}function u(e,t){for(var n=new Array(e.length),a=0,o=n.length;a<o;++a)n[a]=[];for(var s=[],l=t.length;a<l;++a)for(var u=t[a],d=u.length,p=1,h=1<<d;p<h;++p){s.length=r.popCount(p);for(var f=0,m=0;m<d;++m)p&1<<m&&(s[f++]=u[m]);var g=c(e,s);if(!(g<0))for(;n[g++].push(a),!(g>=e.length||0!==i(e[g],s)););}return n}function d(e,t){if(t<0)return[];for(var n=[],a=(1<<t+1)-1,i=0;i<e.length;++i)for(var o=e[i],l=a;l<1<<o.length;r.nextCombination(l)){for(var c=new Array(t+1),u=0,d=0;d<o.length;++d)l&1<<d&&(c[u++]=o[d]);n.push(c)}return s(n)}t.Fw=i},3105:function(e,t){function n(e){var t=32;return(e&=-e)&&t--,65535&e&&(t-=16),16711935&e&&(t-=8),252645135&e&&(t-=4),858993459&e&&(t-=2),1431655765&e&&(t-=1),t}t.INT_BITS=32,t.INT_MAX=2147483647,t.INT_MIN=-1<<31,t.sign=function(e){return(e>0)-(e<0)},t.abs=function(e){var t=e>>31;return(e^t)-t},t.min=function(e,t){return t^(e^t)&-(e<t)},t.max=function(e,t){return e^(e^t)&-(e<t)},t.isPow2=function(e){return!(e&e-1||!e)},t.log2=function(e){var t,n;return t=(e>65535)<<4,t|=n=((e>>>=t)>255)<<3,t|=n=((e>>>=n)>15)<<2,(t|=n=((e>>>=n)>3)<<1)|(e>>>=n)>>1},t.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0},t.popCount=function(e){return 16843009*((e=(858993459&(e-=e>>>1&1431655765))+(e>>>2&858993459))+(e>>>4)&252645135)>>>24},t.countTrailingZeros=n,t.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},t.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)-(e>>>1)},t.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,27030>>>(e&=15)&1};var r=new Array(256);(function(e){for(var t=0;t<256;++t){var n=t,r=t,a=7;for(n>>>=1;n;n>>>=1)r<<=1,r|=1&n,--a;e[t]=r<<a&255}})(r),t.reverse=function(e){return r[255&e]<<24|r[e>>>8&255]<<16|r[e>>>16&255]<<8|r[e>>>24&255]},t.interleave2=function(e,t){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))<<1},t.deinterleave2=function(e,t){return(e=65535&((e=16711935&((e=252645135&((e=858993459&((e=e>>>t&1431655765)|e>>>1))|e>>>2))|e>>>4))|e>>>16))<<16>>16},t.interleave3=function(e,t,n){return e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2),(e|=(t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2))<<1)|(n=1227133513&((n=3272356035&((n=251719695&((n=4278190335&((n&=1023)|n<<16))|n<<8))|n<<4))|n<<2))<<2},t.deinterleave3=function(e,t){return(e=1023&((e=4278190335&((e=251719695&((e=3272356035&((e=e>>>t&1227133513)|e>>>2))|e>>>4))|e>>>8))|e>>>16))<<22>>22},t.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>n(e)+1}},2014:function(e,t,n){var r=n(3105),a=n(4623);function i(e,t){var n=e.length,r=e.length-t.length,a=Math.min;if(r)return r;switch(n){case 0:return 0;case 1:return e[0]-t[0];case 2:return(s=e[0]+e[1]-t[0]-t[1])||a(e[0],e[1])-a(t[0],t[1]);case 3:var i=e[0]+e[1],o=t[0]+t[1];if(s=i+e[2]-(o+t[2]))return s;var s,l=a(e[0],e[1]),c=a(t[0],t[1]);return(s=a(l,e[2])-a(c,t[2]))||a(l+e[2],i)-a(c+t[2],o);default:var u=e.slice(0);u.sort();var d=t.slice(0);d.sort();for(var p=0;p<n;++p)if(r=u[p]-d[p])return r;return 0}}function o(e,t){return i(e[0],t[0])}function s(e,t){if(t){for(var n=e.length,r=new Array(n),a=0;a<n;++a)r[a]=[e[a],t[a]];r.sort(o);for(a=0;a<n;++a)e[a]=r[a][0],t[a]=r[a][1];return e}return e.sort(i),e}function l(e){if(0===e.length)return[];for(var t=1,n=e.length,r=1;r<n;++r){var a=e[r];if(i(a,e[r-1])){if(r===t){t++;continue}e[t++]=a}}return e.length=t,e}function c(e,t){for(var n=0,r=e.length-1,a=-1;n<=r;){var o=n+r>>1,s=i(e[o],t);s<=0?(0===s&&(a=o),n=o+1):s>0&&(r=o-1)}return a}function u(e,t){for(var n=new Array(e.length),a=0,o=n.length;a<o;++a)n[a]=[];for(var s=[],l=(a=0,t.length);a<l;++a)for(var u=t[a],d=u.length,p=1,h=1<<d;p<h;++p){s.length=r.popCount(p);for(var f=0,m=0;m<d;++m)p&1<<m&&(s[f++]=u[m]);var g=c(e,s);if(!(g<0))for(;n[g++].push(a),!(g>=e.length||0!==i(e[g],s)););}return n}function d(e,t){if(t<0)return[];for(var n=[],a=(1<<t+1)-1,i=0;i<e.length;++i)for(var o=e[i],l=a;l<1<<o.length;l=r.nextCombination(l)){for(var c=new Array(t+1),u=0,d=0;d<o.length;++d)l&1<<d&&(c[u++]=o[d]);n.push(c)}return s(n)}t.dimension=function(e){for(var t=0,n=Math.max,r=0,a=e.length;r<a;++r)t=n(t,e[r].length);return t-1},t.countVertices=function(e){for(var t=-1,n=Math.max,r=0,a=e.length;r<a;++r)for(var i=e[r],o=0,s=i.length;o<s;++o)t=n(t,i[o]);return t+1},t.cloneCells=function(e){for(var t=new Array(e.length),n=0,r=e.length;n<r;++n)t[n]=e[n].slice(0);return t},t.compareCells=i,t.normalize=s,t.unique=l,t.findCell=c,t.incidence=u,t.dual=function(e,t){if(!t)return u(l(d(e,0)),e);for(var n=new Array(t),r=0;r<t;++r)n[r]=[];r=0;for(var a=e.length;r<a;++r)for(var i=e[r],o=0,s=i.length;o<s;++o)n[i[o]].push(r);return n},t.explode=function(e){for(var t=[],n=0,r=e.length;n<r;++n)for(var a=e[n],i=0|a.length,o=1,l=1<<i;o<l;++o){for(var c=[],u=0;u<i;++u)o>>>u&1&&c.push(a[u]);t.push(c)}return s(t)},t.skeleton=d,t.boundary=function(e){for(var t=[],n=0,r=e.length;n<r;++n)for(var a=e[n],i=0,o=a.length;i<o;++i){for(var l=new Array(a.length-1),c=0,u=0;c<o;++c)c!==i&&(l[u++]=a[c]);t.push(l)}return s(t)},t.connectedComponents=function(e,t){return t?function(e,t){for(var n=new a(t),r=0;r<e.length;++r)for(var i=e[r],o=0;o<i.length;++o)for(var s=o+1;s<i.length;++s)n.link(i[o],i[s]);var l=[],c=n.ranks;for(r=0;r<c.length;++r)c[r]=-1;for(r=0;r<e.length;++r){var u=n.find(e[r][0]);c[u]<0?(c[u]=l.length,l.push([e[r].slice(0)])):l[c[u]].push(e[r].slice(0))}return l}(e,t):function(e){for(var t=l(s(d(e,0))),n=new a(t.length),r=0;r<e.length;++r)for(var i=e[r],o=0;o<i.length;++o)for(var u=c(t,[i[o]]),p=o+1;p<i.length;++p)n.link(u,c(t,[i[p]]));var h=[],f=n.ranks;for(r=0;r<f.length;++r)f[r]=-1;for(r=0;r<e.length;++r){var m=n.find(c(t,[e[r][0]]));f[m]<0?(f[m]=h.length,h.push([e[r].slice(0)])):h[f[m]].push(e[r].slice(0))}return h}(e)}},4623:function(e){function t(e){this.roots=new Array(e),this.ranks=new Array(e);for(var t=0;t<e;++t)this.roots[t]=t,this.ranks[t]=0}e.exports=t,t.prototype.length=function(){return this.roots.length},t.prototype.makeSet=function(){var e=this.roots.length;return this.roots.push(e),this.ranks.push(0),e},t.prototype.find=function(e){for(var t=this.roots;t[e]!==e;){var n=t[e];t[e]=t[n],e=n}return e},t.prototype.link=function(e,t){var n=this.find(e),r=this.find(t);if(n!==r){var a=this.ranks,i=this.roots,o=a[n],s=a[r];o<s?i[n]=r:s<o?i[r]=n:(i[r]=n,++a[n])}}},5878:function(e,t,n){e.exports=function(e,t,n){for(var i=t.length,o=e.length,s=new Array(i),l=new Array(i),c=new Array(i),u=new Array(i),d=0;d<i;++d)s[d]=l[d]=-1,c[d]=1/0,u[d]=!1;for(d=0;d<o;++d){var p=e[d];if(2!==p.length)throw new Error("Input must be a graph");var h=p[1],f=p[0];-1!==l[f]?l[f]=-2:l[f]=h,-1!==s[h]?s[h]=-2:s[h]=f}function m(e){if(u[e])return 1/0;var n=s[e],a=l[e];return n<0||a<0?1/0:function(e,t,n){var a=Math.abs(r(e,t,n)),i=Math.sqrt(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2));return a/i}(t[e],t[n],t[a])}function g(e,t){var n=A[e],r=A[t];A[e]=r,A[t]=n,O[n]=t,O[r]=e}function y(e){return c[A[e]]}function b(e){return 1&e?e-1>>1:(e>>1)-1}function v(e){for(var t=y(e);;){var n=t,r=2*e+1,a=2*(e+1),i=e;if(r<w){var o=y(r);o<n&&(i=r,n=o)}if(a<w)y(a)<n&&(i=a);if(i===e)return e;g(e,i),e=i}}function M(e){for(var t=y(e);e>0;){var n=b(e);if(n>=0)if(t<y(n)){g(e,n),e=n;continue}return e}}function x(){if(w>0){var e=A[0];return g(0,w-1),w-=1,v(0),e}return-1}function z(e,t){var n=A[e];return c[n]===t?e:(c[n]=-1/0,M(e),x(),c[n]=t,M((w+=1)-1))}function _(e){if(!u[e]){u[e]=!0;var t=s[e],n=l[e];s[n]>=0&&(s[n]=t),l[t]>=0&&(l[t]=n),O[t]>=0&&z(O[t],m(t)),O[n]>=0&&z(O[n],m(n))}}var A=[],O=new Array(i);for(d=0;d<i;++d){(c[d]=m(d))<1/0?(O[d]=A.length,A.push(d)):O[d]=-1}var w=A.length;for(d=w>>1;d>=0;--d)v(d);for(;;){var k=x();if(k<0||c[k]>n)break;_(k)}var T=[];for(d=0;d<i;++d)u[d]||(O[d]=T.length,T.push(t[d].slice()));T.length;function S(e,t){if(e[t]<0)return t;var n=t,r=t;do{var a=e[r];if(!u[r]||a<0||a===r||(a=e[r=a],!u[r]||a<0||a===r))break;r=a,n=e[n]}while(n!==r);for(var i=t;i!==r;i=e[i])e[i]=r;return r}var C=[];return e.forEach(function(e){var t=S(s,e[0]),n=S(l,e[1]);if(t>=0&&n>=0&&t!==n){var r=O[t],a=O[n];r!==a&&C.push([r,a])}}),a.unique(a.normalize(C)),{positions:T,edges:C}};var r=n(3250),a=n(2014)},1303:function(e,t,n){e.exports=function(e,t){var n,i,o,s;if(t[0][0]<t[1][0])n=t[0],i=t[1];else{if(!(t[0][0]>t[1][0]))return a(t,e);n=t[1],i=t[0]}if(e[0][0]<e[1][0])o=e[0],s=e[1];else{if(!(e[0][0]>e[1][0]))return-a(e,t);o=e[1],s=e[0]}var l=r(n,i,s),c=r(n,i,o);if(l<0){if(c<=0)return l}else if(l>0){if(c>=0)return l}else if(c)return c;if(l=r(s,o,i),c=r(s,o,n),l<0){if(c<=0)return l}else if(l>0){if(c>=0)return l}else if(c)return c;return i[0]-s[0]};var r=n(3250);function a(e,t){var n,a,i,o;if(t[0][0]<t[1][0])n=t[0],a=t[1];else{if(!(t[0][0]>t[1][0])){var s=Math.min(e[0][1],e[1][1]),l=Math.max(e[0][1],e[1][1]),c=Math.min(t[0][1],t[1][1]),u=Math.max(t[0][1],t[1][1]);return l<c?l-c:s>u?s-u:l-u}n=t[1],a=t[0]}e[0][1]<e[1][1]?(i=e[0],o=e[1]):(i=e[1],o=e[0]);var d=r(a,n,i);return d||(d=r(a,n,o))?d:o-a}},4209:function(e,t,n){e.exports=function(e){for(var t=e.length,n=2*t,r=new Array(n),i=0;i<t;++i){var l=e[i],c=l[0][0]<l[1][0];r[2*i]=new d(l[0][0],l,c,i),r[2*i+1]=new d(l[1][0],l,!c,i)}r.sort(function(e,t){var n=e.x-t.x;return n||(n=e.create-t.create)?n:Math.min(e.segment[0][1],e.segment[1][1])-Math.min(t.segment[0][1],t.segment[1][1])});var p=a(o),h=[],f=[],m=[];for(i=0;i<n;){for(var g=r[i].x,y=[];i<n;){var b=r[i];if(b.x!==g)break;i+=1,b.segment[0][0]===b.x&&b.segment[1][0]===b.x?b.create&&(b.segment[0][1]<b.segment[1][1]?(y.push(new u(b.segment[0][1],b.index,!0,!0)),y.push(new u(b.segment[1][1],b.index,!1,!1))):(y.push(new u(b.segment[1][1],b.index,!0,!1)),y.push(new u(b.segment[0][1],b.index,!1,!0)))):p=b.create?p.insert(b.segment,b.index):p.remove(b.segment)}h.push(p.root),f.push(g),m.push(y)}return new s(h,f,m)};var r=n(2478),a=n(3840),i=n(3250),o=n(1303);function s(e,t,n){this.slabs=e,this.coordinates=t,this.horizontal=n}function l(e,t){return e.y-t}function c(e,t){for(var n=null;e;){var r,a,o=e.key;o[0][0]<o[1][0]?(r=o[0],a=o[1]):(r=o[1],a=o[0]);var s=i(r,a,t);if(s<0)e=e.left;else if(s>0)if(t[0]!==o[1][0])n=e,e=e.right;else{if(l=c(e.right,t))return l;e=e.left}else{if(t[0]!==o[1][0])return e;var l;if(l=c(e.right,t))return l;e=e.left}}return n}function u(e,t,n,r){this.y=e,this.index=t,this.start=n,this.closed=r}function d(e,t,n,r){this.x=e,this.segment=t,this.create=n,this.index=r}s.prototype.castUp=function(e){var t=r.le(this.coordinates,e[0]);if(t<0)return-1;this.slabs[t];var n=c(this.slabs[t],e),a=-1;if(n&&(a=n.value),this.coordinates[t]===e[0]){var s=null;if(n&&(s=n.key),t>0){var u=c(this.slabs[t-1],e);u&&(s?o(u.key,s)>0&&(s=u.key,a=u.value):(a=u.value,s=u.key))}var d=this.horizontal[t];if(d.length>0){var p=r.ge(d,e[1],l);if(p<d.length){var h=d[p];if(e[1]===h.y){if(h.closed)return h.index;for(;p<d.length-1&&d[p+1].y===e[1];)if((h=d[p+=1]).closed)return h.index;if(h.y===e[1]&&!h.start){if((p+=1)>=d.length)return a;h=d[p]}}if(h.start)if(s){var f=i(s[0],s[1],[e[0],h.y]);s[0][0]>s[1][0]&&(f=-f),f>0&&(a=h.index)}else a=h.index;else h.y!==e[1]&&(a=h.index)}}}return a}},5202:function(e,t,n){var r=n(1944),a=n(8210);function i(e,t){var n=a(r(e,t),[t[t.length-1]]);return n[n.length-1]}function o(e,t,n,r){var a=-t/(r-t);a<0?a=0:a>1&&(a=1);for(var i=1-a,o=e.length,s=new Array(o),l=0;l<o;++l)s[l]=a*e[l]+i*n[l];return s}e.exports=function(e,t){for(var n=[],r=[],a=i(e[e.length-1],t),s=e[e.length-1],l=e[0],c=0;c<e.length;++c,s=l){var u=i(l=e[c],t);if(a<0&&u>0||a>0&&u<0){var d=o(s,u,l,a);n.push(d),r.push(d.slice())}u<0?r.push(l.slice()):u>0?n.push(l.slice()):(n.push(l.slice()),r.push(l.slice())),a=u}return{positive:n,negative:r}},e.exports.positive=function(e,t){for(var n=[],r=i(e[e.length-1],t),a=e[e.length-1],s=e[0],l=0;l<e.length;++l,a=s){var c=i(s=e[l],t);(r<0&&c>0||r>0&&c<0)&&n.push(o(a,c,s,r)),c>=0&&n.push(s.slice()),r=c}return n},e.exports.negative=function(e,t){for(var n=[],r=i(e[e.length-1],t),a=e[e.length-1],s=e[0],l=0;l<e.length;++l,a=s){var c=i(s=e[l],t);(r<0&&c>0||r>0&&c<0)&&n.push(o(a,c,s,r)),c<=0&&n.push(s.slice()),r=c}return n}},3387:function(e,t,n){var r;!function(){var a={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function i(e){return function(e,t){var n,r,o,s,l,c,u,d,p,h=1,f=e.length,m="";for(r=0;r<f;r++)if("string"==typeof e[r])m+=e[r];else if("object"==typeof e[r]){if((s=e[r]).keys)for(n=t[h],o=0;o<s.keys.length;o++){if(null==n)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[o],s.keys[o-1]));n=n[s.keys[o]]}else n=s.param_no?t[s.param_no]:t[h++];if(a.not_type.test(s.type)&&a.not_primitive.test(s.type)&&n instanceof Function&&(n=n()),a.numeric_arg.test(s.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(i("[sprintf] expecting number but found %T",n));switch(a.number.test(s.type)&&(d=n>=0),s.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,s.width?parseInt(s.width):0);break;case"e":n=s.precision?parseFloat(n).toExponential(s.precision):parseFloat(n).toExponential();break;case"f":n=s.precision?parseFloat(n).toFixed(s.precision):parseFloat(n);break;case"g":n=s.precision?String(Number(n.toPrecision(s.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=s.precision?n.substring(0,s.precision):n;break;case"t":n=String(!!n),n=s.precision?n.substring(0,s.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=s.precision?n.substring(0,s.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=s.precision?n.substring(0,s.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}a.json.test(s.type)?m+=n:(!a.number.test(s.type)||d&&!s.sign?p="":(p=d?"+":"-",n=n.toString().replace(a.sign,"")),c=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",u=s.width-(p+n).length,l=s.width&&u>0?c.repeat(u):"",m+=s.align?p+n+l:"0"===c?p+l+n:l+p+n)}return m}(function(e){if(s[e])return s[e];for(var t,n=e,r=[],i=0;n;){if(null!==(t=a.text.exec(n)))r.push(t[0]);else if(null!==(t=a.modulo.exec(n)))r.push("%");else{if(null===(t=a.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var o=[],l=t[2],c=[];if(null===(c=a.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(c[1]);""!==(l=l.substring(c[0].length));)if(null!==(c=a.key_access.exec(l)))o.push(c[1]);else{if(null===(c=a.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(c[1])}t[2]=o}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return s[e]=r}(e),arguments)}function o(e,t){return i.apply(null,[e].concat(t||[]))}var s=Object.create(null);t.sprintf=i,t.vsprintf=o,typeof window<"u"&&(window.sprintf=i,window.vsprintf=o,void 0!==(r=function(){return{sprintf:i,vsprintf:o}}.call(t,n,t,e))&&(e.exports=r))}()},3711:function(e,t,n){e.exports=function(e,t){if(e.dimension<=0)return{positions:[],cells:[]};if(1===e.dimension)return function(e,t){for(var n=a(e,t),r=n.length,i=new Array(r),o=new Array(r),s=0;s<r;++s)i[s]=[n[s]],o[s]=[s];return{positions:i,cells:o}}(e,t);var n=e.order.join()+"-"+e.dtype,s=o[n];t=+t||0;return s||(s=o[n]=function(e,t){var n=e.length+"d",a=i[n];if(a)return a(r,e,t)}(e.order,e.dtype)),s(e,t)};var r=n(2640),a=n(781),i={"2d":function(e,t,n){var r=e({order:t,scalarArguments:3,getters:"generic"===n?[0]:void 0,phase:function(e,t,n,r){return e>r|0},vertex:function(e,t,n,r,a,i,o,s,l,c,u,d,p){var h=(o|0)+(s<<1)+(l<<2)+(c<<3)|0;if(0!==h&&15!==h)switch(h){case 0:case 15:u.push([e-.5,t-.5]);break;case 1:u.push([e-.25-.25*(r+n-2*p)/(n-r),t-.25-.25*(a+n-2*p)/(n-a)]);break;case 2:u.push([e-.75-.25*(-r-n+2*p)/(r-n),t-.25-.25*(i+r-2*p)/(r-i)]);break;case 3:u.push([e-.5,t-.5-.5*(a+n+i+r-4*p)/(n-a+r-i)]);break;case 4:u.push([e-.25-.25*(i+a-2*p)/(a-i),t-.75-.25*(-a-n+2*p)/(a-n)]);break;case 5:u.push([e-.5-.5*(r+n+i+a-4*p)/(n-r+a-i),t-.5]);break;case 6:u.push([e-.5-.25*(-r-n+i+a)/(r-n+a-i),t-.5-.25*(-a-n+i+r)/(a-n+r-i)]);break;case 7:u.push([e-.75-.25*(i+a-2*p)/(a-i),t-.75-.25*(i+r-2*p)/(r-i)]);break;case 8:u.push([e-.75-.25*(-i-a+2*p)/(i-a),t-.75-.25*(-i-r+2*p)/(i-r)]);break;case 9:u.push([e-.5-.25*(r+n+-i-a)/(n-r+i-a),t-.5-.25*(a+n+-i-r)/(n-a+i-r)]);break;case 10:u.push([e-.5-.5*(-r-n-i-a+4*p)/(r-n+i-a),t-.5]);break;case 11:u.push([e-.25-.25*(-i-a+2*p)/(i-a),t-.75-.25*(a+n-2*p)/(n-a)]);break;case 12:u.push([e-.5,t-.5-.5*(-a-n-i-r+4*p)/(a-n+i-r)]);break;case 13:u.push([e-.75-.25*(r+n-2*p)/(n-r),t-.25-.25*(-i-r+2*p)/(i-r)]);break;case 14:u.push([e-.25-.25*(-r-n+2*p)/(r-n),t-.25-.25*(-a-n+2*p)/(a-n)])}},cell:function(e,t,n,r,a,i,o,s,l){a?s.push([e,t]):s.push([t,e])}});return function(e,t){var n=[],a=[];return r(e,n,a,t),{positions:n,cells:a}}}};var o={}},665:function(e,t,n){var r=n(3202);e.exports=o;var a=96;function i(e,t){var n=r(getComputedStyle(e).getPropertyValue(t));return n[0]*o(n[1],e)}function o(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return function(e,t){var n=document.createElement("div");n.style["font-size"]="128"+e,t.appendChild(n);var r=i(n,"font-size")/128;return t.removeChild(n),r}(e,t);case"em":return i(t,"font-size");case"rem":return i(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return a;case"cm":return a/2.54;case"mm":return a/25.4;case"pt":return a/72;case"pc":return a/6}return 1}},7261:function(e,t,n){e.exports=function(e){var t=(e=e||{}).center||[0,0,0],n=e.up||[0,1,0],r=e.right||d(n),a=e.radius||1,i=e.theta||0,u=e.phi||0;if(t=[].slice.call(t,0,3),n=[].slice.call(n,0,3),s(n,n),r=[].slice.call(r,0,3),s(r,r),"eye"in e){var h=e.eye,f=[h[0]-t[0],h[1]-t[1],h[2]-t[2]];o(r,f,n),c(r[0],r[1],r[2])<1e-6?r=d(n):s(r,r),a=c(f[0],f[1],f[2]);var m=l(n,f)/a,g=l(r,f)/a;u=Math.acos(m),i=Math.acos(g)}return a=Math.log(a),new p(e.zoomMin,e.zoomMax,t,n,r,a,i,u)};var r=n(9215),a=n(7608),i=n(6079),o=n(5911),s=n(3536),l=n(244);function c(e,t,n){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2)+Math.pow(n,2))}function u(e){return Math.min(1,Math.max(-1,e))}function d(e){var t=Math.abs(e[0]),n=Math.abs(e[1]),r=Math.abs(e[2]),a=[0,0,0];t>Math.max(n,r)?a[2]=1:n>Math.max(t,r)?a[0]=1:a[1]=1;for(var i=0,o=0,l=0;l<3;++l)i+=e[l]*e[l],o+=a[l]*e[l];for(l=0;l<3;++l)a[l]-=o/i*e[l];return s(a,a),a}function p(e,t,n,a,i,o,s,l){this.center=r(n),this.up=r(a),this.right=r(i),this.radius=r([o]),this.angle=r([s,l]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(e,t),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var c=0;c<16;++c)this.computedMatrix[c]=.5;this.recalcMatrix(0)}var h=p.prototype;h.setDistanceLimits=function(e,t){e=e>0?Math.log(e):-1/0,t=t>0?Math.log(t):1/0,t=Math.max(t,e),this.radius.bounds[0][0]=e,this.radius.bounds[1][0]=t},h.getDistanceLimits=function(e){var t=this.radius.bounds[0];return e?(e[0]=Math.exp(t[0][0]),e[1]=Math.exp(t[1][0]),e):[Math.exp(t[0][0]),Math.exp(t[1][0])]},h.recalcMatrix=function(e){this.center.curve(e),this.up.curve(e),this.right.curve(e),this.radius.curve(e),this.angle.curve(e);for(var t=this.computedUp,n=this.computedRight,r=0,a=0,i=0;i<3;++i)a+=t[i]*n[i],r+=t[i]*t[i];var l=Math.sqrt(r),u=0;for(i=0;i<3;++i)n[i]-=t[i]*a/r,u+=n[i]*n[i],t[i]/=l;var d=Math.sqrt(u);for(i=0;i<3;++i)n[i]/=d;var p=this.computedToward;o(p,t,n),s(p,p);var h=Math.exp(this.computedRadius[0]),f=this.computedAngle[0],m=this.computedAngle[1],g=Math.cos(f),y=Math.sin(f),b=Math.cos(m),v=Math.sin(m),M=this.computedCenter,x=g*b,z=y*b,_=v,A=-g*v,O=-y*v,w=b,k=this.computedEye,T=this.computedMatrix;for(i=0;i<3;++i){var S=x*n[i]+z*p[i]+_*t[i];T[4*i+1]=A*n[i]+O*p[i]+w*t[i],T[4*i+2]=S,T[4*i+3]=0}var C=T[1],E=T[5],q=T[9],D=T[2],R=T[6],L=T[10],I=E*L-q*R,W=q*D-C*L,N=C*R-E*D,P=c(I,W,N);I/=P,W/=P,N/=P,T[0]=I,T[4]=W,T[8]=N;for(i=0;i<3;++i)k[i]=M[i]+T[2+4*i]*h;for(i=0;i<3;++i){u=0;for(var B=0;B<3;++B)u+=T[i+4*B]*k[B];T[12+i]=-u}T[15]=1},h.getMatrix=function(e,t){this.recalcMatrix(e);var n=this.computedMatrix;if(t){for(var r=0;r<16;++r)t[r]=n[r];return t}return n};var f=[0,0,0];h.rotate=function(e,t,n,r){if(this.angle.move(e,t,n),r){this.recalcMatrix(e);var a=this.computedMatrix;f[0]=a[2],f[1]=a[6],f[2]=a[10];for(var o=this.computedUp,s=this.computedRight,l=this.computedToward,c=0;c<3;++c)a[4*c]=o[c],a[4*c+1]=s[c],a[4*c+2]=l[c];i(a,a,r,f);for(c=0;c<3;++c)o[c]=a[4*c],s[c]=a[4*c+1];this.up.set(e,o[0],o[1],o[2]),this.right.set(e,s[0],s[1],s[2])}},h.pan=function(e,t,n,r){t=t||0,n=n||0,r=r||0,this.recalcMatrix(e);var a=this.computedMatrix,i=(Math.exp(this.computedRadius[0]),a[1]),o=a[5],s=a[9],l=c(i,o,s);i/=l,o/=l,s/=l;var u=a[0],d=a[4],p=a[8],h=u*i+d*o+p*s,f=c(u-=i*h,d-=o*h,p-=s*h),m=(u/=f)*t+i*n,g=(d/=f)*t+o*n,y=(p/=f)*t+s*n;this.center.move(e,m,g,y);var b=Math.exp(this.computedRadius[0]);b=Math.max(1e-4,b+r),this.radius.set(e,Math.log(b))},h.translate=function(e,t,n,r){this.center.move(e,t||0,n||0,r||0)},h.setMatrix=function(e,t,n,r){var i=1;"number"==typeof n&&(i=0|n),(i<0||i>3)&&(i=1);var o=(i+2)%3;t||(this.recalcMatrix(e),t=this.computedMatrix);var s=t[i],l=t[i+4],d=t[i+8];if(r){var p=Math.abs(s),h=Math.abs(l),f=Math.abs(d),m=Math.max(p,h,f);p===m?(s=s<0?-1:1,l=d=0):f===m?(d=d<0?-1:1,s=l=0):(l=l<0?-1:1,s=d=0)}else{var g=c(s,l,d);s/=g,l/=g,d/=g}var y,b,v=t[o],M=t[o+4],x=t[o+8],z=v*s+M*l+x*d,_=c(v-=s*z,M-=l*z,x-=d*z),A=l*(x/=_)-d*(M/=_),O=d*(v/=_)-s*x,w=s*M-l*v,k=c(A,O,w);if(A/=k,O/=k,w/=k,this.center.jump(e,V,H,X),this.radius.idle(e),this.up.jump(e,s,l,d),this.right.jump(e,v,M,x),2===i){var T=t[1],S=t[5],C=t[9],E=T*v+S*M+C*x,q=T*A+S*O+C*w;y=I<0?-Math.PI/2:Math.PI/2,b=Math.atan2(q,E)}else{var D=t[2],R=t[6],L=t[10],I=D*s+R*l+L*d,W=D*v+R*M+L*x,N=D*A+R*O+L*w;y=Math.asin(u(I)),b=Math.atan2(N,W)}this.angle.jump(e,b,y),this.recalcMatrix(e);var P=t[2],B=t[6],F=t[10],j=this.computedMatrix;a(j,t);var U=j[15],V=j[12]/U,H=j[13]/U,X=j[14]/U,G=Math.exp(this.computedRadius[0]);this.center.jump(e,V-P*G,H-B*G,X-F*G)},h.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},h.idle=function(e){this.center.idle(e),this.up.idle(e),this.right.idle(e),this.radius.idle(e),this.angle.idle(e)},h.flush=function(e){this.center.flush(e),this.up.flush(e),this.right.flush(e),this.radius.flush(e),this.angle.flush(e)},h.setDistance=function(e,t){t>0&&this.radius.set(e,Math.log(t))},h.lookAt=function(e,t,n,r){this.recalcMatrix(e),t=t||this.computedEye,n=n||this.computedCenter;var a=(r=r||this.computedUp)[0],i=r[1],o=r[2],s=c(a,i,o);if(!(s<1e-6)){a/=s,i/=s,o/=s;var l=t[0]-n[0],d=t[1]-n[1],p=t[2]-n[2],h=c(l,d,p);if(!(h<1e-6)){l/=h,d/=h,p/=h;var f=this.computedRight,m=f[0],g=f[1],y=f[2],b=a*m+i*g+o*y,v=c(m-=b*a,g-=b*i,y-=b*o);if(!(v<.01&&(m=i*p-o*d,g=o*l-a*p,y=a*d-i*l,v=c(m,g,y),v<1e-6))){m/=v,g/=v,y/=v,this.up.set(e,a,i,o),this.right.set(e,m,g,y),this.center.set(e,n[0],n[1],n[2]),this.radius.set(e,Math.log(h));var M=i*y-o*g,x=o*m-a*y,z=a*g-i*m,_=c(M,x,z),A=a*l+i*d+o*p,O=m*l+g*d+y*p,w=(M/=_)*l+(x/=_)*d+(z/=_)*p,k=Math.asin(u(A)),T=Math.atan2(w,O),S=this.angle._state,C=S[S.length-1],E=S[S.length-2];C%=2*Math.PI;var q=Math.abs(C+2*Math.PI-T),D=Math.abs(C-T),R=Math.abs(C-2*Math.PI-T);q<D&&(C+=2*Math.PI),R<D&&(C-=2*Math.PI),this.angle.jump(this.angle.lastT(),C,E),this.angle.set(e,T,k)}}}}},5250:function(e){e.exports=function(e,n,r){var a=e*n,i=t*e,o=i-(i-e),s=e-o,l=t*n,c=l-(l-n),u=n-c,d=s*u-(a-o*c-s*c-o*u);return r?(r[0]=d,r[1]=a,r):[d,a]};var t=+(Math.pow(2,27)+1)},9362:function(e){e.exports=function(e,t,n){var r=e+t,a=r-e,i=t-a,o=e-(r-a);return n?(n[0]=o+i,n[1]=r,n):[o+i,r]}},1888:function(e,t,n){var r=n(8828),a=n(1338),i=n(4793).hp;n.g.__TYPEDARRAY_POOL||(n.g.__TYPEDARRAY_POOL={UINT8:a([32,0]),UINT16:a([32,0]),UINT32:a([32,0]),BIGUINT64:a([32,0]),INT8:a([32,0]),INT16:a([32,0]),INT32:a([32,0]),BIGINT64:a([32,0]),FLOAT:a([32,0]),DOUBLE:a([32,0]),DATA:a([32,0]),UINT8C:a([32,0]),BUFFER:a([32,0])});var o=typeof Uint8ClampedArray<"u",s=typeof BigUint64Array<"u",l=typeof BigInt64Array<"u",c=n.g.__TYPEDARRAY_POOL;c.UINT8C||(c.UINT8C=a([32,0])),c.BIGUINT64||(c.BIGUINT64=a([32,0])),c.BIGINT64||(c.BIGINT64=a([32,0])),c.BUFFER||(c.BUFFER=a([32,0]));var u=c.DATA,d=c.BUFFER;function p(e){if(e){var t=e.length||e.byteLength,n=r.log2(t);u[n].push(e)}}function h(e){e=r.nextPow2(e);var t=r.log2(e),n=u[t];return n.length>0?n.pop():new ArrayBuffer(e)}function f(e){return new Uint8Array(h(e),0,e)}function m(e){return new Uint16Array(h(2*e),0,e)}function g(e){return new Uint32Array(h(4*e),0,e)}function y(e){return new Int8Array(h(e),0,e)}function b(e){return new Int16Array(h(2*e),0,e)}function v(e){return new Int32Array(h(4*e),0,e)}function M(e){return new Float32Array(h(4*e),0,e)}function x(e){return new Float64Array(h(8*e),0,e)}function z(e){return o?new Uint8ClampedArray(h(e),0,e):f(e)}function _(e){return s?new BigUint64Array(h(8*e),0,e):null}function A(e){return l?new BigInt64Array(h(8*e),0,e):null}function O(e){return new DataView(h(e),0,e)}function w(e){e=r.nextPow2(e);var t=r.log2(e),n=d[t];return n.length>0?n.pop():new i(e)}t.free=function(e){if(i.isBuffer(e))d[r.log2(e.length)].push(e);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(e)&&(e=e.buffer),!e)return;var t=e.length||e.byteLength,n=0|r.log2(t);u[n].push(e)}},t.freeUint8=t.freeUint16=t.freeUint32=t.freeBigUint64=t.freeInt8=t.freeInt16=t.freeInt32=t.freeBigInt64=t.freeFloat32=t.freeFloat=t.freeFloat64=t.freeDouble=t.freeUint8Clamped=t.freeDataView=function(e){p(e.buffer)},t.freeArrayBuffer=p,t.freeBuffer=function(e){d[r.log2(e.length)].push(e)},t.malloc=function(e,t){if(void 0===t||"arraybuffer"===t)return h(e);switch(t){case"uint8":return f(e);case"uint16":return m(e);case"uint32":return g(e);case"int8":return y(e);case"int16":return b(e);case"int32":return v(e);case"float":case"float32":return M(e);case"double":case"float64":return x(e);case"uint8_clamped":return z(e);case"bigint64":return A(e);case"biguint64":return _(e);case"buffer":return w(e);case"data":case"dataview":return O(e);default:return null}return null},t.mallocArrayBuffer=h,t.mallocUint8=f,t.mallocUint16=m,t.mallocUint32=g,t.mallocInt8=y,t.mallocInt16=b,t.mallocInt32=v,t.mallocFloat32=t.mallocFloat=M,t.mallocFloat64=t.mallocDouble=x,t.mallocUint8Clamped=z,t.mallocBigUint64=_,t.mallocBigInt64=A,t.mallocDataView=O,t.mallocBuffer=w,t.clearCache=function(){for(var e=0;e<32;++e)c.UINT8[e].length=0,c.UINT16[e].length=0,c.UINT32[e].length=0,c.INT8[e].length=0,c.INT16[e].length=0,c.INT32[e].length=0,c.FLOAT[e].length=0,c.DOUBLE[e].length=0,c.BIGUINT64[e].length=0,c.BIGINT64[e].length=0,c.UINT8C[e].length=0,u[e].length=0,d[e].length=0}},1755:function(e){function t(e){this.roots=new Array(e),this.ranks=new Array(e);for(var t=0;t<e;++t)this.roots[t]=t,this.ranks[t]=0}e.exports=t;var n=t.prototype;Object.defineProperty(n,"length",{get:function(){return this.roots.length}}),n.makeSet=function(){var e=this.roots.length;return this.roots.push(e),this.ranks.push(0),e},n.find=function(e){for(var t=e,n=this.roots;n[e]!==e;)e=n[e];for(;n[t]!==e;){var r=n[t];n[t]=e,t=r}return e},n.link=function(e,t){var n=this.find(e),r=this.find(t);if(n!==r){var a=this.ranks,i=this.roots,o=a[n],s=a[r];o<s?i[n]=r:s<o?i[r]=n:(i[r]=n,++a[n])}}},1682:function(e){e.exports=function(e,t,n){return 0===e.length?e:t?(n||e.sort(t),function(e,t){for(var n=1,r=e.length,a=e[0],i=e[0],o=1;o<r;++o)if(i=a,t(a=e[o],i)){if(o===n){n++;continue}e[n++]=a}return e.length=n,e}(e,t)):(n||e.sort(),function(e){for(var t=1,n=e.length,r=e[0],a=e[0],i=1;i<n;++i,a=r)if(a=r,(r=e[i])!==a){if(i===t){t++;continue}e[t++]=r}return e.length=t,e}(e))}},4359:function(e,t,n){e.exports=function(e,t){return("object"!=typeof t||null===t)&&(t={}),r(e,t.canvas||a,t.context||i,t)};var r=n(7718),a=null,i=null;typeof document<"u"&&((a=document.createElement("canvas")).width=8192,a.height=1024,i=a.getContext("2d"))},7718:function(e,t,n){e.exports=function(e,t,n,r){var i=64,o=1.25,s={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};return r&&(r.size&&r.size>0&&(i=r.size),r.lineSpacing&&r.lineSpacing>0&&(o=r.lineSpacing),r.styletags&&r.styletags.breaklines&&(s.breaklines=!!r.styletags.breaklines),r.styletags&&r.styletags.bolds&&(s.bolds=!!r.styletags.bolds),r.styletags&&r.styletags.italics&&(s.italics=!!r.styletags.italics),r.styletags&&r.styletags.subscripts&&(s.subscripts=!!r.styletags.subscripts),r.styletags&&r.styletags.superscripts&&(s.superscripts=!!r.styletags.superscripts)),n.font=[r.fontStyle,r.fontVariant,r.fontWeight,i+"px",r.font].filter(function(e){return e}).join(" "),n.textAlign="start",n.textBaseline="alphabetic",n.direction="ltr",x(function(e,t,n,r,i,o){n=n.replace(/\n/g,""),n=!0===o.breaklines?n.replace(/\<br\>/g,"\n"):n.replace(/\<br\>/g," ");var s="",l=[];for(C=0;C<n.length;++C)l[C]=s;!0===o.bolds&&(l=v(c,u,n,l)),!0===o.italics&&(l=v(d,p,n,l)),!0===o.superscripts&&(l=v(h,m,n,l)),!0===o.subscripts&&(l=v(g,b,n,l));var M=[],x="";for(C=0;C<n.length;++C)null!==l[C]&&(x+=n[C],M.push(l[C]));var z=x.split("\n"),_=z.length,A=Math.round(i*r),O=r,w=2*r,k=0,T=_*A+w;e.height<T&&(e.height=T),t.fillStyle="#000",t.fillRect(0,0,e.width,e.height),t.fillStyle="#fff";var S,C,E,q,D,R=0,L="";function I(){if(""!==L){var e=t.measureText(L).width;t.fillText(L,O+E,w+q),E+=e}}function W(){return Math.round(D)+"px "}function N(e,n){var r=""+t.font;if(!0===o.subscripts){var a=e.indexOf(y),i=n.indexOf(y),s=a>-1?parseInt(e[1+a]):0,l=i>-1?parseInt(n[1+i]):0;s!==l&&(r=r.replace(W(),"?px "),D*=Math.pow(.75,l-s),r=r.replace("?px ",W())),q+=.25*A*(l-s)}if(!0===o.superscripts){var c=e.indexOf(f),d=n.indexOf(f),h=c>-1?parseInt(e[1+c]):0,m=d>-1?parseInt(n[1+d]):0;h!==m&&(r=r.replace(W(),"?px "),D*=Math.pow(.75,m-h),r=r.replace("?px ",W())),q-=.25*A*(m-h)}if(!0===o.bolds){var g=e.indexOf(u)>-1,b=n.indexOf(u)>-1;!g&&b&&(r=v?r.replace("italic ","italic bold "):"bold "+r),g&&!b&&(r=r.replace("bold ",""))}if(!0===o.italics){var v=e.indexOf(p)>-1,M=n.indexOf(p)>-1;!v&&M&&(r="italic "+r),v&&!M&&(r=r.replace("italic ",""))}t.font=r}for(S=0;S<_;++S){var P=z[S]+"\n";for(E=0,q=S*A,D=r,L="",C=0;C<P.length;++C){var B=C+R<M.length?M[C+R]:M[M.length-1];s===B?L+=P[C]:(I(),L=P[C],void 0!==B&&(N(s,B),s=B))}I(),R+=P.length;var F=0|Math.round(E+2*O);k<F&&(k=F)}var j=k,U=w+A*_;return a(t.getImageData(0,0,j,U).data,[U,j,4]).pick(-1,-1,0).transpose(1,0)}(t,n,e,i,o,s),r,i)},e.exports.processPixels=x;var r=n(3711),a=n(9618),i=n(5878),o=n(332),s=n(2538),l=n(2095),c="b",u="b|",d="i",p="i|",h="sup",f="+",m="+1",g="sub",y="-",b="-1";function v(e,t,n,r){for(var a="<"+e+">",i="</"+e+">",o=a.length,s=i.length,l=t[0]===f||t[0]===y,c=0,u=-s;c>-1&&!(-1===(c=n.indexOf(a,c))||(u=n.indexOf(i,c+o),-1===u)||u<=c);){for(var d=c;d<u+s;++d)if(d<c+o||d>=u)r[d]=null,n=n.substr(0,d)+" "+n.substr(d+1);else if(null!==r[d]){var p=r[d].indexOf(t[0]);-1===p?r[d]+=t:l&&(r[d]=r[d].substr(0,p+1)+(1+parseInt(r[d][p+1]))+r[d].substr(p+2))}var h=c+o,m=n.substr(h,u-h).indexOf(a);c=-1!==m?m:u+s}return r}function M(e,t,n,a){var c=function(e,t){var n=r(e,128);return t?i(n.cells,n.positions,.25):{edges:n.cells,positions:n.positions}}(e,a),u=function(e,t,n){for(var r=t.textAlign||"start",a=t.textBaseline||"alphabetic",i=[1<<30,1<<30],o=[0,0],s=e.length,l=0;l<s;++l)for(var c=e[l],u=0;u<2;++u)i[u]=0|Math.min(i[u],c[u]),o[u]=0|Math.max(o[u],c[u]);var d=0;switch(r){case"center":d=-.5*(i[0]+o[0]);break;case"right":case"end":d=-o[0];break;case"left":case"start":d=-i[0];break;default:throw new Error("vectorize-text: Unrecognized textAlign: '"+r+"'")}var p=0;switch(a){case"hanging":case"top":p=-i[1];break;case"middle":p=-.5*(i[1]+o[1]);break;case"alphabetic":case"ideographic":p=-3*n;break;case"bottom":p=-o[1];break;default:throw new Error("vectorize-text: Unrecoginized textBaseline: '"+a+"'")}var h=1/n;return"lineHeight"in t?h*=+t.lineHeight:"width"in t?h=t.width/(o[0]-i[0]):"height"in t&&(h=t.height/(o[1]-i[1])),e.map(function(e){return[h*(e[0]+d),h*(e[1]+p)]})}(c.positions,t,n),d=c.edges,p="ccw"===t.orientation;if(o(u,d),t.polygons||t.polygon||t.polyline){for(var h=l(d,u),f=new Array(h.length),m=0;m<h.length;++m){for(var g=h[m],y=new Array(g.length),b=0;b<g.length;++b){for(var v=g[b],M=new Array(v.length),x=0;x<v.length;++x)M[x]=u[v[x]].slice();p&&M.reverse(),y[b]=M}f[m]=y}return f}return t.triangles||t.triangulate||t.triangle?{cells:s(u,d,{delaunay:!1,exterior:!1,interior:!0}),positions:u}:{edges:d,positions:u}}function x(e,t,n){try{return M(e,t,n,!0)}catch{}try{return M(e,t,n,!1)}catch{}return t.polygons||t.polyline||t.polygon?[]:t.triangles||t.triangulate||t.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}},1538:function(e){!function(){if(!(typeof ses<"u"&&ses.ok)||ses.ok()){typeof ses<"u"&&(ses.weakMapPermitHostObjects=g);var t=!1;if("function"==typeof WeakMap){var n=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var r=new n,a=Object.freeze({});if(r.set(a,1),1===r.get(a))return void(e.exports=WeakMap);t=!0}}Object.prototype.hasOwnProperty;var i=Object.getOwnPropertyNames,o=Object.defineProperty,s=Object.isExtensible,l="weakmap:",c=l+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&"function"==typeof crypto.getRandomValues&&"function"==typeof ArrayBuffer&&"function"==typeof Uint8Array){var u=new ArrayBuffer(25),d=new Uint8Array(u);crypto.getRandomValues(d),c=l+"rand:"+Array.prototype.map.call(d,function(e){return(e%36).toString(36)}).join("")+"___"}if(o(Object,"getOwnPropertyNames",{value:function(e){return i(e).filter(y)}}),"getPropertyNames"in Object){var p=Object.getPropertyNames;o(Object,"getPropertyNames",{value:function(e){return p(e).filter(y)}})}!function(){var e=Object.freeze;o(Object,"freeze",{value:function(t){return b(t),e(t)}});var t=Object.seal;o(Object,"seal",{value:function(e){return b(e),t(e)}});var n=Object.preventExtensions;o(Object,"preventExtensions",{value:function(e){return b(e),n(e)}})}();var h=!1,f=0,m=function(){this instanceof m||M();var e=[],t=[],n=f++;return Object.create(m.prototype,{get___:{value:v(function(r,a){var i,o=b(r);return o?n in o?o[n]:a:(i=e.indexOf(r))>=0?t[i]:a})},has___:{value:v(function(t){var r=b(t);return r?n in r:e.indexOf(t)>=0})},set___:{value:v(function(r,a){var i,o=b(r);return o?o[n]=a:(i=e.indexOf(r))>=0?t[i]=a:(i=e.length,t[i]=a,e[i]=r),this})},delete___:{value:v(function(r){var a,i,o=b(r);return o?n in o&&delete o[n]:!((a=e.indexOf(r))<0)&&(i=e.length-1,e[a]=void 0,t[a]=t[i],e[a]=e[i],e.length=i,t.length=i,!0)})}})};m.prototype=Object.create(Object.prototype,{get:{value:function(e,t){return this.get___(e,t)},writable:!0,configurable:!0},has:{value:function(e){return this.has___(e)},writable:!0,configurable:!0},set:{value:function(e,t){return this.set___(e,t)},writable:!0,configurable:!0},delete:{value:function(e){return this.delete___(e)},writable:!0,configurable:!0}}),"function"==typeof n?function(){function r(){this instanceof m||M();var e,r=new n,a=void 0,i=!1;return e=t?function(e,t){return r.set(e,t),r.has(e)||(a||(a=new m),a.set(e,t)),this}:function(e,t){if(i)try{r.set(e,t)}catch{a||(a=new m),a.set___(e,t)}else r.set(e,t);return this},Object.create(m.prototype,{get___:{value:v(function(e,t){return a?r.has(e)?r.get(e):a.get___(e,t):r.get(e,t)})},has___:{value:v(function(e){return r.has(e)||!!a&&a.has___(e)})},set___:{value:v(e)},delete___:{value:v(function(e){var t=!!r.delete(e);return a&&a.delete___(e)||t})},permitHostObjects___:{value:v(function(e){if(e!==g)throw new Error("bogus call to permitHostObjects___");i=!0})}})}t&&typeof Proxy<"u"&&(Proxy=void 0),r.prototype=m.prototype,e.exports=r,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),e.exports=m)}function g(e){e.permitHostObjects___&&e.permitHostObjects___(g)}function y(e){return!(e.substr(0,8)==l&&"___"===e.substr(e.length-3))}function b(e){if(e!==Object(e))throw new TypeError("Not an object: "+e);var t=e[c];if(t&&t.key===e)return t;if(s(e)){t={key:e};try{return o(e,c,{value:t,writable:!1,enumerable:!1,configurable:!1}),t}catch{return}}}function v(e){return e.prototype=null,Object.freeze(e)}function M(){!h&&typeof console<"u"&&(h=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}}()},236:function(e,t,n){var r=n(8284);e.exports=function(){var e={};return function(t){if(("object"!=typeof t||null===t)&&"function"!=typeof t)throw new Error("Weakmap-shim: Key must be object");var n=t.valueOf(e);return n&&n.identity===e?n:r(t,e)}}},8284:function(e){e.exports=function(e,t){var n={identity:t},r=e.valueOf;return Object.defineProperty(e,"valueOf",{value:function(e){return e!==t?r.apply(this,arguments):n},writable:!0}),n}},606:function(e,t,n){var r=n(236);e.exports=function(){var e=r();return{get:function(t,n){var r=e(t);return r.hasOwnProperty("value")?r.value:n},set:function(t,n){return e(t).value=n,this},has:function(t){return"value"in e(t)},delete:function(t){return delete e(t).value}}}},3349:function(e){var t=function(){return function(e,t,n,r,a,i){var o=e[0],s=n[0],l=[0],c=s;r|=0;var u=0,d=s;for(u=0;u<o;++u){var p=t[r]-i,h=t[r+c]-i;p>=0!=h>=0&&a.push(l[0]+.5+.5*(p+h)/(p-h)),r+=d,++l[0]}}};e.exports=function(e){return function(e){var t={};return function(n,r,a){var i=n.dtype,o=n.order,s=[i,o.join()].join(),l=t[s];return l||(t[s]=l=e([i,o])),l(n.shape.slice(0),n.data,n.stride,0|n.offset,r,a)}}(t.bind(void 0,e))}({funcName:{funcName:"zeroCrossings"}.funcName})},781:function(e,t,n){e.exports=function(e,t){var n=[];return t=+t||0,r(e.hi(e.shape[0]-1),n,t),n};var r=n(3349)},7790:function(){}},n={};function r(t){var a=n[t];if(void 0!==a)return a.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch{if("object"==typeof window)return window}}(),r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var a=r(1964);t.exports=a}()}),bot=Ee((e,t)=>{t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),zot=Ee((e,t)=>{var n=bot();t.exports=function(e){var t,a,i=[],o=1;if("string"==typeof e)if(e=e.toLowerCase(),n[e])i=n[e].slice(),a="rgb";else if("transparent"===e)o=0,a="rgb",i=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var s=e.slice(1);o=1,(u=s.length)<=4?(i=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],4===u&&(o=parseInt(s[3]+s[3],16)/255)):(i=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],8===u&&(o=parseInt(s[6]+s[7],16)/255)),i[0]||(i[0]=0),i[1]||(i[1]=0),i[2]||(i[2]=0),a="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=t[1],c="rgb"===l;a=s=l.replace(/a$/,"");var u="cmyk"===s?4:"gray"===s?1:3;i=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(e,t){if(/%$/.test(e))return t===u?parseFloat(e)/100:"rgb"===s?255*parseFloat(e)/100:parseFloat(e);if("h"===s[t]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==r[e])return r[e]}return parseFloat(e)}),l===s&&i.push(1),o=c||void 0===i[u]?1:i[u],i=i.slice(0,u)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(i=e.match(/([0-9]+)/g).map(function(e){return parseFloat(e)}),a=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(i=[e[0],e[1],e[2]],a="rgb",o=4===e.length?e[3]:1):e instanceof Object&&(null!=e.r||null!=e.red||null!=e.R?(a="rgb",i=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(a="hsl",i=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),o=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(o/=100)):(a="rgb",i=[e>>>16,(65280&e)>>>8,255&e]);return{space:a,values:i,alpha:o}};var r={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}),wot=Ee((e,t)=>{var n=zot();t.exports=function(e){Array.isArray(e)&&e.raw&&(e=String.raw.apply(null,arguments));var t,r=n(e);if(!r.space)return[];var a=[0,0,0],i="h"===r.space[0]?[360,100,100]:[255,255,255];return(t=Array(3))[0]=Math.min(Math.max(r.values[0],a[0]),i[0]),t[1]=Math.min(Math.max(r.values[1],a[1]),i[1]),t[2]=Math.min(Math.max(r.values[2],a[2]),i[2]),"h"===r.space[0]&&(t=function(e){var t,n,r,a,i,o=e[0]/360,s=e[1]/100,l=e[2]/100,c=0;if(0===s)return i=255*l,[i,i,i];for(t=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];c<3;)(r=o+1/3*-(c-1))<0?r++:r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,a[c++]=255*i;return a}(t)),t.push(Math.min(Math.max(r.alpha,0),1)),t}}),aY=Ee((e,t)=>{t.exports=function(e,t,n){return t<n?e<t?t:e>n?n:e:e<n?n:e>t?t:e}}),iY=Ee((e,t)=>{t.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}}),T4=Ee((e,t)=>{var n=wot(),r=aY(),a=iY();t.exports=function(e,t){("float"===t||!t)&&(t="array"),"uint"===t&&(t="uint8"),"uint_clamped"===t&&(t="uint8_clamped");var i,o=new(a(t))(4),s="uint8"!==t&&"uint8_clamped"!==t;return(!e.length||"string"==typeof e)&&((e=n(e))[0]/=255,e[1]/=255,e[2]/=255),(i=e)instanceof Uint8Array||i instanceof Uint8ClampedArray||Array.isArray(i)&&(i[0]>1||0===i[0])&&(i[1]>1||0===i[1])&&(i[2]>1||0===i[2])&&(!i[3]||i[3]>1)?(o[0]=e[0],o[1]=e[1],o[2]=e[2],o[3]=null!=e[3]?e[3]:255,s&&(o[0]/=255,o[1]/=255,o[2]/=255,o[3]/=255),o):(s?(o[0]=e[0],o[1]=e[1],o[2]=e[2],o[3]=null!=e[3]?e[3]:1):(o[0]=r(Math.floor(255*e[0]),0,255),o[1]=r(Math.floor(255*e[1]),0,255),o[2]=r(Math.floor(255*e[2]),0,255),o[3]=null==e[3]?255:r(Math.floor(255*e[3]),0,255)),o)}}),jx=Ee((e,t)=>{var n=T4();t.exports=function(e){return e?n(e):[0,0,0,1]}}),Gx=Ee((e,t)=>{var n=xs(),r=Vh(),a=T4(),i=xu(),o=oh().defaultLine,s=Lp().isArrayOrTypedArray,l=a(o);function c(e,t){var n=e;return n[3]*=t,n}function u(e){if(n(e))return l;var t=a(e);return t.length?t:l}function d(e){return n(e)?e:1}t.exports={formatColor:function(e,t,n){var r=e.color;r&&r._inputArray&&(r=r._inputArray);var o,p,h,f,m,g=s(r),y=s(t),b=i.extractOpts(e),v=[];if(o=void 0!==b.colorscale?i.makeColorScaleFuncFromTrace(e):u,p=g?function(e,t){return void 0===e[t]?l:a(o(e[t]))}:u,h=y?function(e,t){return void 0===e[t]?1:d(e[t])}:d,g||y)for(var M=0;M<n;M++)f=p(r,M),m=h(t,M),v[M]=c(f,m);else v=c(a(r),t);return v},parseColorScale:function(e){var t=i.extractOpts(e),n=t.colorscale;return t.reversescale&&(n=i.flipScale(t.colorscale)),n.map(function(e){var t=e[0],n=r(e[1]).toRgb();return{index:t,rgb:[n.r,n.g,n.b,n.a]}})}}}),Bfe=Ee((e,t)=>{t.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}}),cY=Ee((e,t)=>{t.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}}),Fot=Ee((e,t)=>{var n=vo();function r(e,t,r,a){if(!t||!t.visible)return null;for(var i=n.getComponentMethod("errorbars","makeComputeError")(t),o=new Array(e.length),s=0;s<e.length;s++){var l=i(+e[s],s);if("log"===a.type){var c=a.c2l(e[s]),u=e[s]-l[0],d=e[s]+l[1];if(o[s]=[(a.c2l(u,!0)-c)*r,(a.c2l(d,!0)-c)*r],u>0){var p=a.c2l(u);a._lowerLogErrorBound||(a._lowerLogErrorBound=p),a._lowerErrorBound=Math.min(a._lowerLogErrorBound,p)}}else o[s]=[-l[0]*r,l[1]*r]}return o}t.exports=function(e,t,n){var a=[r(e.x,e.error_x,t[0],n.xaxis),r(e.y,e.error_y,t[1],n.yaxis),r(e.z,e.error_z,t[2],n.zaxis)],i=function(e){for(var t=0;t<e.length;t++)if(e[t])return e[t].length;return 0}(a);if(0===i)return null;for(var o=new Array(i),s=0;s<i;s++){for(var l=[[0,0,0],[0,0,0]],c=0;c<3;c++)if(a[c])for(var u=0;u<2;u++)l[u][c]=a[c][s][u];o[s]=l}return o}}),Zot=Ee((e,t)=>{var n=Mp().gl_line3d,r=Mp().gl_scatter3d,a=Mp().gl_error3d,i=Mp().gl_mesh3d,o=Mp().delaunay_triangulate,s=Fr(),l=jx(),c=Gx().formatColor,u=iS(),d=Bfe(),p=cY(),h=es(),f=fm().appendArrayPointValue,m=Fot();function g(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var y=g.prototype;function b(e){return null==e?0:e.indexOf("left")>-1?-1:e.indexOf("right")>-1?1:0}function v(e){return null==e?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function M(e,t){return t(4*e)}function x(e){return p[e]}function z(e,t,n,r,a){var i=null;if(s.isArrayOrTypedArray(e)){i=[];for(var o=0;o<t;o++)void 0===e[o]?i[o]=r:i[o]=n(e[o],a)}else i=n(e,s.identity);return i}function _(e,t){var n,r,a,i,o,d,p=[],g=e.fullSceneLayout,y=e.dataScale,_=g.xaxis,A=g.yaxis,O=g.zaxis,w=t.marker,k=t.line,T=t.x||[],S=t.y||[],C=t.z||[],E=T.length,q=t.xcalendar,D=t.ycalendar,R=t.zcalendar;for(o=0;o<E;o++)n=_.d2l(T[o],0,q)*y[0],r=A.d2l(S[o],0,D)*y[1],a=O.d2l(C[o],0,R)*y[2],p[o]=[n,r,a];if(Array.isArray(t.text))d=t.text;else if(s.isTypedArray(t.text))d=Array.from(t.text);else if(void 0!==t.text)for(d=new Array(E),o=0;o<E;o++)d[o]=t.text;function L(e,t){var n=g[e];return h.tickText(n,n.d2l(t),!0).text}var I=t.texttemplate;if(I){var W=e.fullLayout._d3locale,N=Array.isArray(I),P=N?Math.min(I.length,E):E,B=N?function(e){return I[e]}:function(){return I};for(d=new Array(P),o=0;o<P;o++){var F={x:T[o],y:S[o],z:C[o]},j={xLabel:L("xaxis",T[o]),yLabel:L("yaxis",S[o]),zLabel:L("zaxis",C[o])},U={};f(U,t,o),d[o]=s.texttemplateString({data:[U,F,t._meta],fallback:t.texttemplatefallback,labels:j,locale:W,template:B(o)})}}if(i={position:p,mode:t.mode,text:d},"line"in t&&(i.lineColor=c(k,1,E),i.lineWidth=k.width,i.lineDashes=k.dash),"marker"in t){var V=u(t);i.scatterColor=c(w,1,E),i.scatterSize=z(w.size,E,M,20,V),i.scatterMarker=z(w.symbol,E,x,"●"),i.scatterLineWidth=w.line.width,i.scatterLineColor=c(w.line,1,E),i.scatterAngle=0}"textposition"in t&&(i.textOffset=function(e){var t=[0,0];if(Array.isArray(e))for(var n=0;n<e.length;n++)t[n]=[0,0],e[n]&&(t[n][0]=b(e[n]),t[n][1]=v(e[n]));else t[0]=b(e),t[1]=v(e);return t}(t.textposition),i.textColor=c(t.textfont,1,E),i.textSize=z(t.textfont.size,E,s.identity,12),i.textFontFamily=t.textfont.family,i.textFontWeight=t.textfont.weight,i.textFontStyle=t.textfont.style,i.textFontVariant=t.textfont.variant,i.textAngle=0);var H=["x","y","z"];for(i.project=[!1,!1,!1],i.projectScale=[1,1,1],i.projectOpacity=[1,1,1],o=0;o<3;++o){var X=t.projection[H[o]];(i.project[o]=X.show)&&(i.projectOpacity[o]=X.opacity,i.projectScale[o]=X.scale)}i.errorBounds=m(t,y,g);var G=function(e){for(var t=[0,0,0],n=[[0,0,0],[0,0,0],[0,0,0]],r=[1,1,1],a=0;a<3;a++){var i=e[a];i&&!1!==i.copy_zstyle&&!1!==e[2].visible&&(i=e[2]),i&&i.visible&&(t[a]=i.width/2,n[a]=l(i.color),r[a]=i.thickness)}return{capSize:t,color:n,lineWidth:r}}([t.error_x,t.error_y,t.error_z]);return i.errorColor=G.color,i.errorLineWidth=G.lineWidth,i.errorCapSize=G.capSize,i.delaunayAxis=t.surfaceaxis,i.delaunayColor=l(t.surfacecolor),i}function A(e){if(s.isArrayOrTypedArray(e)){var t=e[0];return s.isArrayOrTypedArray(t)&&(e=t),"rgb("+e.slice(0,3).map(function(e){return Math.round(255*e)})+")"}return null}function O(e){return s.isArrayOrTypedArray(e)?4===e.length&&"number"==typeof e[0]?A(e):e.map(A):null}y.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(s.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||0===this.textLabels[t])&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}},y.update=function(e){var t,s,l,c,u=this.scene.glplot.gl,p=d.solid;this.data=e;var h=_(this.scene,e);"mode"in h&&(this.mode=h.mode),"lineDashes"in h&&h.lineDashes in d&&(p=d[h.lineDashes]),this.color=O(h.scatterColor)||O(h.lineColor),this.dataPoints=h.position,t={gl:this.scene.glplot.gl,position:h.position,color:h.lineColor,lineWidth:h.lineWidth||1,dashes:p[0],dashScale:p[1],opacity:e.opacity,connectGaps:e.connectgaps},-1!==this.mode.indexOf("lines")?this.linePlot?this.linePlot.update(t):(this.linePlot=n(t),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var f=e.opacity;if(e.marker&&void 0!==e.marker.opacity&&(f*=e.marker.opacity),s={gl:this.scene.glplot.gl,position:h.position,color:h.scatterColor,size:h.scatterSize,glyph:h.scatterMarker,opacity:f,orthographic:!0,lineWidth:h.scatterLineWidth,lineColor:h.scatterLineColor,project:h.project,projectScale:h.projectScale,projectOpacity:h.projectOpacity},-1!==this.mode.indexOf("markers")?this.scatterPlot?this.scatterPlot.update(s):(this.scatterPlot=r(s),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),c={gl:this.scene.glplot.gl,position:h.position,glyph:h.text,color:h.textColor,size:h.textSize,angle:h.textAngle,alignment:h.textOffset,font:h.textFontFamily,fontWeight:h.textFontWeight,fontStyle:h.textFontStyle,fontVariant:h.textFontVariant,orthographic:!0,lineWidth:0,project:!1,opacity:e.opacity},this.textLabels=e.hovertext||e.text,-1!==this.mode.indexOf("text")?this.textMarkers?this.textMarkers.update(c):(this.textMarkers=r(c),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),l={gl:this.scene.glplot.gl,position:h.position,color:h.errorColor,error:h.errorBounds,lineWidth:h.errorLineWidth,capSize:h.errorCapSize,opacity:e.opacity},this.errorBars?h.errorBounds?this.errorBars.update(l):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):h.errorBounds&&(this.errorBars=a(l),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),h.delaunayAxis>=0){var m=function(e,t,n){var r,a=(n+1)%3,i=(n+2)%3,s=[],l=[];for(r=0;r<e.length;++r){var c=e[r];isNaN(c[a])||!isFinite(c[a])||isNaN(c[i])||!isFinite(c[i])||(s.push([c[a],c[i]]),l.push(r))}var u=o(s);for(r=0;r<u.length;++r)for(var d=u[r],p=0;p<d.length;++p)d[p]=l[d[p]];return{positions:e,cells:u,meshColor:t}}(h.position,h.delaunayColor,h.delaunayAxis);m.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(m):(m.gl=u,this.delaunayMesh=i(m),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},y.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())},t.exports=function(e,t){var n=new g(e,t.uid);return n.update(t),n}}),$fe=Ee((e,t)=>{var n=Id(),r=Mu(),a=Oc(),i=Pd().axisHoverFormat,{hovertemplateAttrs:o,texttemplateAttrs:s,templatefallbackAttrs:l}=p1(),c=S1(),u=Bfe(),d=cY(),p=ms().extendFlat,h=Wu().overrideAll,f=qz(),m=n.line,g=n.marker,y=g.line,b=p({width:m.width,dash:{valType:"enumerated",values:f(u),dflt:"solid",description:"Sets the dash style of the lines."}},a("line"));function v(e){return{show:{valType:"boolean",dflt:!1,description:["Sets whether or not projections are shown along the",e,"axis."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,description:"Sets the projection color."},scale:{valType:"number",min:0,max:10,dflt:2/3,description:["Sets the scale factor determining the size of the","projection marker points."].join(" ")}}}var M=t.exports=h({x:n.x,y:n.y,z:{valType:"data_array",description:"Sets the z coordinates."},text:p({},n.text,{description:["Sets text elements associated with each (x,y,z) triplet.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y,z) coordinates.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")}),texttemplate:s(),texttemplatefallback:l({editType:"calc"}),hovertext:p({},n.hovertext,{description:["Sets text elements associated with each (x,y,z) triplet.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y,z) coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")}),hovertemplate:o(),hovertemplatefallback:l(),xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z"),mode:p({},n.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1,description:["If *-1*, the scatter points are not fill with a surface","If *0*, *1*, *2*, the scatter points are filled with","a Delaunay surface about the x, y, z respectively."].join(" ")},surfacecolor:{valType:"color",description:"Sets the surface fill color."},projection:{x:v("x"),y:v("y"),z:v("z")},connectgaps:n.connectgaps,line:b,marker:p({symbol:{valType:"enumerated",values:f(d),dflt:"circle",arrayOk:!0,description:"Sets the marker symbol type."},size:p({},g.size,{dflt:8}),sizeref:g.sizeref,sizemin:g.sizemin,sizemode:g.sizemode,opacity:p({},g.opacity,{arrayOk:!1,description:["Sets the marker opacity.","Note that the marker opacity for scatter3d traces","must be a scalar value for performance reasons.","To set a blending opacity value","(i.e. which is not transparent), set *marker.color*","to an rgba color and use its alpha channel."].join(" ")}),colorbar:g.colorbar,line:p({width:p({},y.width,{arrayOk:!1})},a("marker.line"))},a("marker")),textposition:p({},n.textposition,{dflt:"top center"}),textfont:r({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"],description:"Sets the text font."}),opacity:c.opacity,hoverinfo:p({},c.hoverinfo)},"calc","nested");M.x.editType=M.y.editType=M.z.editType="calc+clearAxisTypes"}),rst=Ee((e,t)=>{var n=vo(),r=Fr(),a=Hc(),i=Wv(),o=Yg(),s=Zg(),l=$fe();t.exports=function(e,t,c,u){function d(n,a){return r.coerce(e,t,l,n,a)}var p=function(e,t,r,a){var i=0,o=r("x"),s=r("y"),l=r("z"),c=n.getComponentMethod("calendars","handleTraceDefaults");return c(e,t,["x","y","z"],a),o&&s&&l&&(i=Math.min(o.length,s.length,l.length),t._length=t._xlength=t._ylength=t._zlength=i),i}(e,t,d,u);if(p){d("text"),d("hovertext"),d("hovertemplate"),d("hovertemplatefallback"),d("xhoverformat"),d("yhoverformat"),d("zhoverformat"),d("mode"),a.hasMarkers(t)&&i(e,t,c,u,d,{noAngle:!0,noLineDash:!0,noSelect:!0}),a.hasLines(t)&&(d("connectgaps"),o(e,t,c,u,d)),a.hasText(t)&&(d("texttemplate"),d("texttemplatefallback"),s(e,t,u,d,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var h=(t.line||{}).color,f=(t.marker||{}).color;d("surfaceaxis")>=0&&d("surfacecolor",h||f);for(var m=["x","y","z"],g=0;g<3;++g){var y="projection."+m[g];d(y+".show")&&(d(y+".opacity"),d(y+".scale"))}var b=n.getComponentMethod("errorbars","supplyDefaults");b(e,t,h||f||c,{axis:"z"}),b(e,t,h||f||c,{axis:"y",inherit:"z"}),b(e,t,h||f||c,{axis:"x",inherit:"z"})}else t.visible=!1}}),ast=Ee((e,t)=>{var n=E3(),r=$g();t.exports=function(e,t){var a=[{x:!1,y:!1,trace:t,t:{}}];return n(a,t),r(e,t),a}}),ost=Ee((e,t)=>{t.exports=function(e,t){if("string"!=typeof e)throw new TypeError("must specify type string");if(t=t||{},typeof document>"u"&&!t.canvas)return null;var n=t.canvas||document.createElement("canvas");"number"==typeof t.width&&(n.width=t.width),"number"==typeof t.height&&(n.height=t.height);var r,a=t;try{var i=[e];0===e.indexOf("webgl")&&i.push("experimental-"+e);for(var o=0;o<i.length;o++)if(r=n.getContext(i[o],a))return r}catch{r=null}return r||null}}),lst=Ee((e,t)=>{var n=ost();t.exports=function(e){return n("webgl",e)}}),Jfe=Ee((e,t)=>{var n=ao(),r=function(){};t.exports=function(e){for(var t in e)"function"==typeof e[t]&&(e[t]=r);e.destroy=function(){e.container.parentNode.removeChild(e.container)};var a=document.createElement("div");a.className="no-webgl",a.style.cursor="pointer",a.style.fontSize="24px",a.style.color=n.defaults[0],a.style.position="absolute",a.style.left=a.style.top="0px",a.style.width=a.style.height="100%",a.style["background-color"]=n.lightLine,a.style["z-index"]=30;var i=document.createElement("p");return i.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",i.style.position="relative",i.style.top="50%",i.style.left="50%",i.style.height="30%",i.style.width="50%",i.style.margin="-15% 0 0 -25%",a.appendChild(i),e.container.appendChild(a),e.container.style.background="#FFFFFF",e.container.onclick=function(){window.open("https://get.webgl.org")},!1}}),hst=Ee((e,t)=>{var n=jx(),r=Fr(),a=["xaxis","yaxis","zaxis"];function i(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}i.prototype.merge=function(e,t){for(var i=this,o=0;o<3;++o){var s=t[a[o]];s.visible?(i.labels[o]=e._meta?r.templateString(s.title.text,e._meta):s.title.text,"font"in s.title&&(s.title.font.color&&(i.labelColor[o]=n(s.title.font.color)),s.title.font.family&&(i.labelFont[o]=s.title.font.family),s.title.font.size&&(i.labelSize[o]=s.title.font.size),s.title.font.weight&&(i.labelFontWeight[o]=s.title.font.weight),s.title.font.style&&(i.labelFontStyle[o]=s.title.font.style),s.title.font.variant&&(i.labelFontVariant[o]=s.title.font.variant)),"showline"in s&&(i.lineEnable[o]=s.showline),"linecolor"in s&&(i.lineColor[o]=n(s.linecolor)),"linewidth"in s&&(i.lineWidth[o]=s.linewidth),"showgrid"in s&&(i.gridEnable[o]=s.showgrid),"gridcolor"in s&&(i.gridColor[o]=n(s.gridcolor)),"gridwidth"in s&&(i.gridWidth[o]=s.gridwidth),"log"===s.type?i.zeroEnable[o]=!1:"zeroline"in s&&(i.zeroEnable[o]=s.zeroline),"zerolinecolor"in s&&(i.zeroLineColor[o]=n(s.zerolinecolor)),"zerolinewidth"in s&&(i.zeroLineWidth[o]=s.zerolinewidth),"ticks"in s&&s.ticks?i.lineTickEnable[o]=!0:i.lineTickEnable[o]=!1,"ticklen"in s&&(i.lineTickLength[o]=i._defaultLineTickLength[o]=s.ticklen),"tickcolor"in s&&(i.lineTickColor[o]=n(s.tickcolor)),"tickwidth"in s&&(i.lineTickWidth[o]=s.tickwidth),"tickangle"in s&&(i.tickAngle[o]="auto"===s.tickangle?-3600:Math.PI*-s.tickangle/180),"showticklabels"in s&&(i.tickEnable[o]=s.showticklabels),"tickfont"in s&&(s.tickfont.color&&(i.tickColor[o]=n(s.tickfont.color)),s.tickfont.family&&(i.tickFont[o]=s.tickfont.family),s.tickfont.size&&(i.tickSize[o]=s.tickfont.size),s.tickfont.weight&&(i.tickFontWeight[o]=s.tickfont.weight),s.tickfont.style&&(i.tickFontStyle[o]=s.tickfont.style),s.tickfont.variant&&(i.tickFontVariant[o]=s.tickfont.variant)),"mirror"in s?-1!==["ticks","all","allticks"].indexOf(s.mirror)?(i.lineTickMirror[o]=!0,i.lineMirror[o]=!0):!0===s.mirror?(i.lineTickMirror[o]=!1,i.lineMirror[o]=!0):(i.lineTickMirror[o]=!1,i.lineMirror[o]=!1):i.lineMirror[o]=!1,"showbackground"in s&&!1!==s.showbackground?(i.backgroundEnable[o]=!0,i.backgroundColor[o]=n(s.backgroundcolor)):i.backgroundEnable[o]=!1):(i.tickEnable[o]=!1,i.labelEnable[o]=!1,i.lineEnable[o]=!1,i.lineTickEnable[o]=!1,i.gridEnable[o]=!1,i.zeroEnable[o]=!1,i.backgroundEnable[o]=!1)}},t.exports=function(e,t){var n=new i;return n.merge(e,t),n}}),vst=Ee((e,t)=>{var n=jx(),r=["xaxis","yaxis","zaxis"];function a(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}a.prototype.merge=function(e){for(var t=0;t<3;++t){var a=e[r[t]];a.visible?(this.enabled[t]=a.showspikes,this.colors[t]=n(a.spikecolor),this.drawSides[t]=a.spikesides,this.lineWidth[t]=a.spikethickness):(this.enabled[t]=!1,this.drawSides[t]=!1)}},t.exports=function(e){var t=new a;return t.merge(e),t}}),bst=Ee((e,t)=>{t.exports=function(e){for(var t=e.axesOptions,o=e.glplot.axesPixels,s=e.fullSceneLayout,l=[[],[],[]],c=0;c<3;++c){var u=s[a[c]];if(u._length=(o[c].hi-o[c].lo)*o[c].pixelsPerDataUnit/e.dataScale[c],Math.abs(u._length)===1/0||isNaN(u._length))l[c]=[];else{u._input_range=u.range.slice(),u.range[0]=o[c].lo/e.dataScale[c],u.range[1]=o[c].hi/e.dataScale[c],u._m=1/(e.dataScale[c]*o[c].pixelsPerDataUnit),u.range[0]===u.range[1]&&(u.range[0]-=1,u.range[1]+=1);var d=u.tickmode;if("auto"===u.tickmode){u.tickmode="linear";var p=u.nticks||r.constrain(u._length/40,4,9);n.autoTicks(u,Math.abs(u.range[1]-u.range[0])/p)}for(var h=n.calcTicks(u,{msUTC:!0}),f=0;f<h.length;++f)h[f].x=h[f].x*e.dataScale[c],"date"===u.type&&(h[f].text=h[f].text.replace(/\<br\>/g," "));l[c]=h,u.tickmode=d}}t.ticks=l;for(c=0;c<3;++c){i[c]=.5*(e.glplot.bounds[0][c]+e.glplot.bounds[1][c]);for(f=0;f<2;++f)t.bounds[f][c]=e.glplot.bounds[f][c]}e.contourLevels=function(e){for(var t=new Array(3),n=0;n<3;++n){for(var r=e[n],a=new Array(r.length),i=0;i<r.length;++i)a[i]=r[i].x;t[n]=a}return t}(l)};var n=es(),r=Fr(),a=["xaxis","yaxis","zaxis"],i=[0,0,0]}),Ost=Ee((e,t)=>{var n,r,a=Mp().gl_plot3d,i=a.createCamera,o=a.createScene,s=lst(),l=oV(),c=vo(),u=Fr(),d=u.preserveDrawingBuffer(),p=es(),h=_d(),f=jx(),m=Jfe(),g=nce(),y=hst(),b=vst(),v=bst(),M=$y().applyAutorangeOptions,x=!1;function z(e,t){var n=document.createElement("div"),r=e.container;this.graphDiv=e.graphDiv;var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.style.position="absolute",a.style.top=a.style.left="0px",a.style.width=a.style.height="100%",a.style["z-index"]=20,a.style["pointer-events"]="none",n.appendChild(a),this.svgContainer=a,n.id=e.id,n.style.position="absolute",n.style.top=n.style.left="0px",n.style.width=n.style.height="100%",r.appendChild(n),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=y(t,t[this.id]),this.spikeOptions=b(t[this.id]),this.container=n,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=c.getComponentMethod("annotations3d","convert"),this.drawAnnotations=c.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var _=z.prototype;_.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:d,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!r&&(n=document.createElement("canvas"),!(r=s({canvas:n,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error("error creating static canvas/context for image server");t.gl=r,t.canvas=n}return t};var A=!0;_.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),n=!0;try{e.glplot=o(t)}catch{if(e.staticMode||!A||d)n=!1;else{u.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{d=t.glOptions.preserveDrawingBuffer=!0,e.glplot=o(t)}catch{d=t.glOptions.preserveDrawingBuffer=!1,n=!1}}}return A=!1,n},_.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,n="orthographic"===t.projection.type;e.camera=i(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:n,zoomMin:.01,zoomMax:100,mode:"orbit"})},_.initializeGLPlot=function(){var e=this;if(e.initializeGLCamera(),!e.tryCreatePlot())return m(e);e.traces={},e.make4thDimension();var t=e.graphDiv,n=t.layout,r=function(){var t={};return e.isCameraChanged(n)&&(t[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(t[e.id+".aspectratio"]=e.glplot.getAspectratio(),"manual"!==n[e.id].aspectmode&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=t[e.id+".aspectmode"]="manual")),t},a=function(e){if(!1!==e.fullSceneLayout.dragmode){var t=r();e.saveLayout(n),e.graphDiv.emit("plotly_relayout",t)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){x=!0}),e.glplot.canvas.addEventListener("wheel",function(n){if(t._context._scrollZoom.gl3d){if(e.camera._ortho){var r=n.deltaX>n.deltaY?1.1:.9090909090909091,i=e.glplot.getAspectratio();e.glplot.setAspectratio({x:r*i.x,y:r*i.y,z:r*i.z})}a(e)}},!!l&&{passive:!1}),e.glplot.canvas.addEventListener("mousemove",function(){if(!1!==e.fullSceneLayout.dragmode&&0!==e.camera.mouseListener.buttons){var t=r();e.graphDiv.emit("plotly_relayouting",t)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(n){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:n,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0},_.render=function(){var e,t=this,n=t.graphDiv,r=t.svgContainer,a=t.container.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var i=n._fullLayout._invScaleX,o=n._fullLayout._invScaleY,s=a.width*i,l=a.height*o;r.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),r.setAttributeNS(null,"width",s),r.setAttributeNS(null,"height",l),v(t),t.glplot.axes.update(t.axesOptions);for(var c=Object.keys(t.traces),d=null,f=t.glplot.selection,m=0;m<c.length;++m)"skip"!==(e=t.traces[c[m]]).data.hoverinfo&&e.handlePick(f)&&(d=e),e.setContourLevels&&e.setContourLevels();function y(e,n,r){var a=t.fullSceneLayout[e+"axis"];return"log"!==a.type&&(n=a.d2l(n)),p.hoverLabelText(a,n,r)}if(null!==d){var b=g(t.glplot.cameraParams,f.dataCoordinate);e=d.data;var M=n._fullData[e.index],z=f.index,_={xLabel:y("x",f.traceCoordinate[0],e.xhoverformat),yLabel:y("y",f.traceCoordinate[1],e.yhoverformat),zLabel:y("z",f.traceCoordinate[2],e.zhoverformat)},A=h.castHoverinfo(M,t.fullLayout,z),O=(A||"").split("+"),w=A&&"all"===A;!M.hovertemplate&&!w&&(-1===O.indexOf("x")&&(_.xLabel=void 0),-1===O.indexOf("y")&&(_.yLabel=void 0),-1===O.indexOf("z")&&(_.zLabel=void 0),-1===O.indexOf("text")&&(f.textLabel=void 0),-1===O.indexOf("name")&&(d.name=void 0));var k,T=[];"cone"===e.type||"streamtube"===e.type?(_.uLabel=y("x",f.traceCoordinate[3],e.uhoverformat),(w||-1!==O.indexOf("u"))&&T.push("u: "+_.uLabel),_.vLabel=y("y",f.traceCoordinate[4],e.vhoverformat),(w||-1!==O.indexOf("v"))&&T.push("v: "+_.vLabel),_.wLabel=y("z",f.traceCoordinate[5],e.whoverformat),(w||-1!==O.indexOf("w"))&&T.push("w: "+_.wLabel),_.normLabel=f.traceCoordinate[6].toPrecision(3),(w||-1!==O.indexOf("norm"))&&T.push("norm: "+_.normLabel),"streamtube"===e.type&&(_.divergenceLabel=f.traceCoordinate[7].toPrecision(3),(w||-1!==O.indexOf("divergence"))&&T.push("divergence: "+_.divergenceLabel)),f.textLabel&&T.push(f.textLabel),k=T.join("<br>")):"isosurface"===e.type||"volume"===e.type?(_.valueLabel=p.hoverLabelText(t._mockAxis,t._mockAxis.d2l(f.traceCoordinate[3]),e.valuehoverformat),T.push("value: "+_.valueLabel),f.textLabel&&T.push(f.textLabel),k=T.join("<br>")):k=f.textLabel;var S={x:f.traceCoordinate[0],y:f.traceCoordinate[1],z:f.traceCoordinate[2],data:M._input,fullData:M,curveNumber:M.index,pointNumber:z};h.appendArrayPointValue(S,M,z),e._module.eventData&&(S=M._module.eventData(S,f,M,{},z));var C={points:[S]};if(t.fullSceneLayout.hovermode){var E=[];h.loneHover({trace:M,x:(.5+.5*b[0]/b[3])*s,y:(.5-.5*b[1]/b[3])*l,xLabel:_.xLabel,yLabel:_.yLabel,zLabel:_.zLabel,text:k,name:d.name,color:h.castHoverOption(M,z,"bgcolor")||d.color,borderColor:h.castHoverOption(M,z,"bordercolor"),fontFamily:h.castHoverOption(M,z,"font.family"),fontSize:h.castHoverOption(M,z,"font.size"),fontColor:h.castHoverOption(M,z,"font.color"),nameLength:h.castHoverOption(M,z,"namelength"),textAlign:h.castHoverOption(M,z,"align"),hovertemplate:u.castOption(M,z,"hovertemplate"),hovertemplateLabels:u.extendFlat({},S,_),eventData:[S]},{container:r,gd:n,inOut_bbox:E}),S.bbox=E[0]}f.distance<5&&(f.buttons||x)?n.emit("plotly_click",C):n.emit("plotly_hover",C),this.oldEventData=C}else h.loneUnhover(r),this.oldEventData&&n.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;t.drawAnnotations(t)},_.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){e.glplot.gl.isContextLost()?requestAnimationFrame(t):e.initializeGLPlot()?e.plot.apply(e,e.plotArgs):u.error("Catastrophic and unrecoverable WebGL error. Context lost.")};requestAnimationFrame(t)};var O=["xaxis","yaxis","zaxis"];function w(e,t,n){for(var r=e.fullSceneLayout,a=0;a<3;a++){var i=O[a],o=i.charAt(0),s=r[i],l=t[o],c=t[o+"calendar"],d=t["_"+o+"length"];if(u.isArrayOrTypedArray(l))for(var p,h=0;h<(d||l.length);h++)if(u.isArrayOrTypedArray(l[h]))for(var f=0;f<l[h].length;++f)p=s.d2l(l[h][f],0,c),!isNaN(p)&&isFinite(p)&&(n[0][a]=Math.min(n[0][a],p),n[1][a]=Math.max(n[1][a],p));else p=s.d2l(l[h],0,c),!isNaN(p)&&isFinite(p)&&(n[0][a]=Math.min(n[0][a],p),n[1][a]=Math.max(n[1][a],p));else n[0][a]=Math.min(n[0][a],0),n[1][a]=Math.max(n[1][a],d-1)}}_.plot=function(e,t,n){var r=this;if(r.plotArgs=[e,t,n],!r.glplot.contextLost){var a,i,o,s,l,c,u=t[r.id],d=n[r.id];r.fullLayout=t,r.fullSceneLayout=u,r.axesOptions.merge(t,u),r.spikeOptions.merge(u),r.setViewport(u),r.updateFx(u.dragmode,u.hovermode),r.camera.enableWheel=r.graphDiv._context._scrollZoom.gl3d,r.glplot.setClearColor(f(u.bgcolor)),r.setConvert(l),e?Array.isArray(e)||(e=[e]):e=[];var p=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(o=0;o<e.length;++o)!0===(a=e[o]).visible&&0!==a._length&&w(this,a,p);!function(e,t){for(var n=e.fullSceneLayout,r=n.annotations||[],a=0;a<3;a++)for(var i=O[a],o=i.charAt(0),s=n[i],l=0;l<r.length;l++){var c=r[l];if(c.visible){var u=s.r2l(c[o]);!isNaN(u)&&isFinite(u)&&(t[0][a]=Math.min(t[0][a],u),t[1][a]=Math.max(t[1][a],u))}}}(this,p);var h=[1,1,1];for(s=0;s<3;++s)p[1][s]===p[0][s]?h[s]=1:h[s]=1/(p[1][s]-p[0][s]);for(r.dataScale=h,r.convertAnnotations(this),o=0;o<e.length;++o)!0===(a=e[o]).visible&&0!==a._length&&((i=r.traces[a.uid])?i.data.type===a.type?i.update(a):(i.dispose(),i=a._module.plot(this,a),r.traces[a.uid]=i):(i=a._module.plot(this,a),r.traces[a.uid]=i),i.name=a.name);var m=Object.keys(r.traces);e:for(o=0;o<m.length;++o){for(s=0;s<e.length;++s)if(e[s].uid===m[o]&&!0===e[s].visible&&0!==e[s]._length)continue e;(i=r.traces[m[o]]).dispose(),delete r.traces[m[o]]}r.glplot.objects.sort(function(e,t){return e._trace.data.index-t._trace.data.index});var g=[[0,0,0],[0,0,0]],y=[],b={};for(o=0;o<3;++o){var v;if((c=(l=u[O[o]]).type)in b?(b[c].acc*=h[o],b[c].count+=1):b[c]={acc:h[o],count:1},l.autorange){g[0][o]=1/0,g[1][o]=-1/0;var x=r.glplot.objects,z=r.fullSceneLayout.annotations||[],_=l._name.charAt(0);for(s=0;s<x.length;s++){var A=x[s],k=A.bounds,T=A._trace.data._pad||0;"ErrorBars"===A.constructor.name&&l._lowerLogErrorBound?g[0][o]=Math.min(g[0][o],l._lowerLogErrorBound):g[0][o]=Math.min(g[0][o],k[0][o]/h[o]-T),g[1][o]=Math.max(g[1][o],k[1][o]/h[o]+T)}for(s=0;s<z.length;s++){var S=z[s];if(S.visible){var C=l.r2l(S[_]);g[0][o]=Math.min(g[0][o],C),g[1][o]=Math.max(g[1][o],C)}}if("rangemode"in l&&"tozero"===l.rangemode&&(g[0][o]=Math.min(g[0][o],0),g[1][o]=Math.max(g[1][o],0)),g[0][o]>g[1][o])g[0][o]=-1,g[1][o]=1;else{var E=g[1][o]-g[0][o];g[0][o]-=E/32,g[1][o]+=E/32}if(v=[g[0][o],g[1][o]],v=M(v,l),g[0][o]=v[0],g[1][o]=v[1],l.isReversed()){var q=g[0][o];g[0][o]=g[1][o],g[1][o]=q}}else v=l.range,g[0][o]=l.r2l(v[0]),g[1][o]=l.r2l(v[1]);g[0][o]===g[1][o]&&(g[0][o]-=1,g[1][o]+=1),y[o]=g[1][o]-g[0][o],l.range=[g[0][o],g[1][o]],l.limitRange(),r.glplot.setBounds(o,{min:l.range[0]*h[o],max:l.range[1]*h[o]})}var D,R=u.aspectmode;if("cube"===R)D=[1,1,1];else if("manual"===R){var L=u.aspectratio;D=[L.x,L.y,L.z]}else{if("auto"!==R&&"data"!==R)throw new Error("scene.js aspectRatio was not one of the enumerated types");var I=[1,1,1];for(o=0;o<3;++o){var W=b[c=(l=u[O[o]]).type];I[o]=Math.pow(W.acc,1/W.count)/h[o]}D="data"===R||Math.max.apply(null,I)/Math.min.apply(null,I)<=4?I:[1,1,1]}u.aspectratio.x=d.aspectratio.x=D[0],u.aspectratio.y=d.aspectratio.y=D[1],u.aspectratio.z=d.aspectratio.z=D[2],r.glplot.setAspectratio(u.aspectratio),r.viewInitial.aspectratio||(r.viewInitial.aspectratio={x:u.aspectratio.x,y:u.aspectratio.y,z:u.aspectratio.z}),r.viewInitial.aspectmode||(r.viewInitial.aspectmode=u.aspectmode);var N=u.domain||null,P=t._size||null;if(N&&P){var B=r.container.style;B.position="absolute",B.left=P.l+N.x[0]*P.w+"px",B.top=P.t+(1-N.y[1])*P.h+"px",B.width=P.w*(N.x[1]-N.x[0])+"px",B.height=P.h*(N.y[1]-N.y[0])+"px"}r.glplot.redraw()}},_.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)},_.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),function(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:!0===e._ortho?"orthographic":"perspective"}}}(e.camera)},_.setViewport=function(e){var t=this,n=e.camera;t.camera.lookAt.apply(this,function(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}(n)),t.glplot.setAspectratio(e.aspectratio),"orthographic"===n.projection.type!==t.camera._ortho&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())},_.isCameraChanged=function(e){var t=this.getCamera(),n=u.nestedProperty(e,this.id+".camera").get();function r(e,t,n,r){var a=["up","center","eye"],i=["x","y","z"];return t[a[n]]&&e[a[n]][i[r]]===t[a[n]][i[r]]}var a=!1;if(void 0===n)a=!0;else{for(var i=0;i<3;i++)for(var o=0;o<3;o++)if(!r(t,n,i,o)){a=!0;break}(!n.projection||t.projection&&t.projection.type!==n.projection.type)&&(a=!0)}return a},_.isAspectChanged=function(e){var t=this.glplot.getAspectratio(),n=u.nestedProperty(e,this.id+".aspectratio").get();return void 0===n||n.x!==t.x||n.y!==t.y||n.z!==t.z},_.saveLayout=function(e){var t,n,r,a,i,o,s=this,l=s.fullLayout,d=s.isCameraChanged(e),p=s.isAspectChanged(e),h=d||p;if(h){var f={};if(d&&(t=s.getCamera(),r=(n=u.nestedProperty(e,s.id+".camera")).get(),f[s.id+".camera"]=r),p&&(a=s.glplot.getAspectratio(),o=(i=u.nestedProperty(e,s.id+".aspectratio")).get(),f[s.id+".aspectratio"]=o),c.call("_storeDirectGUIEdit",e,l._preGUI,f),d)n.set(t),u.nestedProperty(l,s.id+".camera").set(t);if(p)i.set(a),u.nestedProperty(l,s.id+".aspectratio").set(a),s.glplot.redraw()}return h},_.updateFx=function(e,t){var n=this,r=n.camera;if(r)if("orbit"===e)r.mode="orbit",r.keyBindingMode="rotate";else if("turntable"===e){r.up=[0,0,1],r.mode="turntable",r.keyBindingMode="rotate";var a=n.graphDiv,i=a._fullLayout,o=n.fullSceneLayout.camera,s=o.up.x,l=o.up.y,d=o.up.z;if(d/Math.sqrt(s*s+l*l+d*d)<.999){var p=n.id+".camera.up",h={x:0,y:0,z:1},f={};f[p]=h;var m=a.layout;c.call("_storeDirectGUIEdit",m,i._preGUI,f),o.up=h,u.nestedProperty(m,p).set(h)}}else r.keyBindingMode=e;n.fullSceneLayout.hovermode=t},_.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(n),t.glplot.redraw();var r=t.glplot.gl,a=r.drawingBufferWidth,i=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var o=new Uint8Array(a*i*4);r.readPixels(0,0,a,i,r.RGBA,r.UNSIGNED_BYTE,o),function(e,t,n){for(var r=0,a=n-1;r<a;++r,--a)for(var i=0;i<t;++i)for(var o=0;o<4;++o){var s=4*(t*r+i)+o,l=4*(t*a+i)+o,c=e[s];e[s]=e[l],e[l]=c}}(o,a,i),function(e,t,n){for(var r=0;r<n;++r)for(var a=0;a<t;++a){var i=4*(t*r+a),o=e[i+3];if(o>0)for(var s=255/o,l=0;l<3;++l)e[i+l]=Math.min(s*e[i+l],255)}}(o,a,i);var s=document.createElement("canvas");s.width=a,s.height=i;var l,c=s.getContext("2d",{willReadFrequently:!0}),u=c.createImageData(a,i);switch(u.data.set(o),c.putImageData(u,0,0),e){case"jpeg":l=s.toDataURL("image/jpeg");break;case"webp":l=s.toDataURL("image/webp");break;default:l=s.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(n),l},_.setConvert=function(){for(var e=0;e<3;e++){var t=this.fullSceneLayout[O[e]];p.setConvert(t,this.fullLayout),t.setScale=u.noop}},_.make4thDimension=function(){var e=this,t=e.graphDiv._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},p.setConvert(e._mockAxis,t)},t.exports=z}),Sst=Ee((e,t)=>{t.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes",description:["Sets a reference between this trace's 3D coordinate system and","a 3D scene.","If *scene* (the default value), the (x,y,z) coordinates refer to","`layout.scene`.","If *scene2*, the (x,y,z) coordinates refer to `layout.scene2`,","and so on."].join(" ")}}}),ehe=Ee((e,t)=>{var n=ao(),r=vp(),a=ms().extendFlat,i=Wu().overrideAll;t.exports=i({visible:r.visible,showspikes:{valType:"boolean",dflt:!0,description:["Sets whether or not spikes starting from","data points to this axis' wall are shown on hover."].join(" ")},spikesides:{valType:"boolean",dflt:!0,description:["Sets whether or not spikes extending from the","projection data points to this axis' wall boundaries","are shown on hover."].join(" ")},spikethickness:{valType:"number",min:0,dflt:2,description:"Sets the thickness (in px) of the spikes."},spikecolor:{valType:"color",dflt:n.defaultLine,description:"Sets the color of the spikes."},showbackground:{valType:"boolean",dflt:!1,description:["Sets whether or not this axis' wall","has a background color."].join(" ")},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)",description:"Sets the background color of this axis' wall."},showaxeslabels:{valType:"boolean",dflt:!0,description:"Sets whether or not this axis is labeled"},color:r.color,categoryorder:r.categoryorder,categoryarray:r.categoryarray,title:{text:r.title.text,font:r.title.font},type:a({},r.type,{values:["-","linear","log","date","category"]}),autotypenumbers:r.autotypenumbers,autorange:r.autorange,autorangeoptions:{minallowed:r.autorangeoptions.minallowed,maxallowed:r.autorangeoptions.maxallowed,clipmin:r.autorangeoptions.clipmin,clipmax:r.autorangeoptions.clipmax,include:r.autorangeoptions.include,editType:"plot"},rangemode:r.rangemode,minallowed:r.minallowed,maxallowed:r.maxallowed,range:a({},r.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:r.minor.tickmode,nticks:r.nticks,tick0:r.tick0,dtick:r.dtick,tickvals:r.tickvals,ticktext:r.ticktext,ticks:r.ticks,mirror:r.mirror,ticklen:r.ticklen,tickwidth:r.tickwidth,tickcolor:r.tickcolor,showticklabels:r.showticklabels,labelalias:r.labelalias,tickfont:r.tickfont,tickangle:r.tickangle,tickprefix:r.tickprefix,showtickprefix:r.showtickprefix,ticksuffix:r.ticksuffix,showticksuffix:r.showticksuffix,showexponent:r.showexponent,exponentformat:r.exponentformat,minexponent:r.minexponent,separatethousands:r.separatethousands,tickformat:r.tickformat,tickformatstops:r.tickformatstops,hoverformat:r.hoverformat,showline:r.showline,linecolor:r.linecolor,linewidth:r.linewidth,showgrid:r.showgrid,gridcolor:a({},r.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:r.gridwidth,zeroline:r.zeroline,zerolinecolor:r.zerolinecolor,zerolinewidth:r.zerolinewidth},"plot","from-root")}),ahe=Ee((e,t)=>{var n=ehe(),r=ad().attributes,a=ms().extendFlat,i=Fr().counterRegex;function o(e,t,n){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:n,editType:"camera"},editType:"camera"}}t.exports={_arrayAttrRegexps:[i("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:a(o(0,0,1),{description:["Sets the (x,y,z) components of the 'up' camera vector.","This vector determines the up direction of this scene","with respect to the page.","The default is *{x: 0, y: 0, z: 1}* which means that","the z axis points up."].join(" ")}),center:a(o(0,0,0),{description:["Sets the (x,y,z) components of the 'center' camera vector","This vector determines the translation (x,y,z) space","about the center of this scene.","By default, there is no such translation."].join(" ")}),eye:a(o(1.25,1.25,1.25),{description:["Sets the (x,y,z) components of the 'eye' camera vector.","This vector determines the view point about the origin","of this scene."].join(" ")}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc",description:["Sets the projection type. The projection type could be","either *perspective* or *orthographic*. The default is","*perspective*."].join(" ")},editType:"calc"},editType:"camera"},domain:r({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0},description:["If *cube*, this scene's axes are drawn as a cube,","regardless of the axes' ranges.","If *data*, this scene's axes are drawn","in proportion with the axes' ranges.","If *manual*, this scene's axes are drawn","in proportion with the input of *aspectratio*","(the default behavior if *aspectratio* is provided).","If *auto*, this scene's axes are drawn","using the results of *data* except when one axis","is more than four times the size of the two others,","where in that case the results of *cube* are used."].join(" ")},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"},description:["Sets this scene's axis aspectratio."].join(" ")},xaxis:n,yaxis:n,zaxis:n,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot",description:["Determines the mode of drag interactions for this scene."].join(" ")},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar",description:["Determines the mode of hover interactions for this scene."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in camera attributes.","Defaults to `layout.uirevision`."].join(" ")},editType:"plot"}}),Rst=Ee((e,t)=>{var n=Vh().mix,r=Fr(),a=Kl(),i=ehe(),o=B1e(),s=TR(),l=["xaxis","yaxis","zaxis"],c=13600/187;t.exports=function(e,t,u){var d,p;function h(e,t){return r.coerce(d,p,i,e,t)}for(var f=0;f<l.length;f++){var m=l[f];d=e[m]||{},(p=a.newContainer(t,m))._id=m[0]+u.scene,p._name=m,o(d,p,h,u),s(d,p,h,{font:u.font,letter:m[0],data:u.data,showGrid:!0,noAutotickangles:!0,noMinorloglabels:!0,noTicklabelindex:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,noTicklabelposition:!0,noTicklabeloverflow:!0,noInsiderange:!0,noUnifiedhovertitle:!0,bgColor:u.bgColor,calendar:u.calendar},u.fullLayout),h("gridcolor",n(p.color,u.bgColor,c).toRgbString()),h("title.text",m[0]),p.setScale=r.noop,h("showspikes")&&(h("spikesides"),h("spikethickness"),h("spikecolor",p.color)),h("showaxeslabels"),h("showbackground")&&h("backgroundcolor")}}}),Nst=Ee((e,t)=>{var n=Fr(),r=ao(),a=vo(),i=p4(),o=Rst(),s=ahe(),l=mp().getSubplotData,c="gl3d";function u(e,t,n,i){for(var s=n("bgcolor"),u=r.combine(s,i.paper_bgcolor),d=["up","center","eye"],p=0;p<d.length;p++)n("camera."+d[p]+".x"),n("camera."+d[p]+".y"),n("camera."+d[p]+".z");n("camera.projection.type");var h=!!n("aspectratio.x")&&!!n("aspectratio.y")&&!!n("aspectratio.z"),f=n("aspectmode",h?"manual":"auto");h||(e.aspectratio=t.aspectratio={x:1,y:1,z:1},"manual"===f&&(t.aspectmode="auto"),e.aspectmode=t.aspectmode);var m=l(i.fullData,c,i.id);o(e,t,{font:i.font,scene:i.id,data:m,bgColor:u,calendar:i.calendar,autotypenumbersDflt:i.autotypenumbersDflt,fullLayout:i.fullLayout}),a.getComponentMethod("annotations3d","handleDefaults")(e,t,i);var g=i.getDfltFromLayout("dragmode");if(!1!==g&&!g)if(g="orbit",e.camera&&e.camera.up){var y=e.camera.up.x,b=e.camera.up.y,v=e.camera.up.z;0!==v&&(!y||!b||!v||v/Math.sqrt(y*y+b*b+v*v)>.999)&&(g="turntable")}else g="turntable";n("dragmode",g),n("hovermode",i.getDfltFromLayout("hovermode"))}t.exports=function(e,t,r){var a=t._basePlotModules.length>1;i(e,t,r,{type:c,attributes:s,handleDefaults:u,fullLayout:t,font:t.font,fullData:r,getDfltFromLayout:function(t){if(!a&&n.validate(e[t],s[t]))return e[t]},autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})}}),S4=Ee(e=>{var t=Wu().overrideAll,n=zz(),r=Ost(),a=mp().getSubplotData,i=Fr(),o=Dv(),s="gl3d",l="scene";e.name=s,e.attr=l,e.idRoot=l,e.idRegex=e.attrRegex=i.counterRegex("scene"),e.attributes=Sst(),e.layoutAttributes=ahe(),e.baseLayoutAttrOverrides=t({hoverlabel:n.hoverlabel},"plot","nested"),e.supplyLayoutDefaults=Nst(),e.plot=function(e){for(var t=e._fullLayout,n=e._fullData,i=t._subplots[s],o=0;o<i.length;o++){var l=i[o],c=a(n,s,l),u=t[l],d=u.camera,p=u._scene;p||(p=new r({id:l,graphDiv:e,container:e.querySelector(".gl-container"),staticPlot:e._context.staticPlot,plotGlPixelRatio:e._context.plotGlPixelRatio,camera:d},t),u._scene=p),p.viewInitial||(p.viewInitial={up:{x:d.up.x,y:d.up.y,z:d.up.z},eye:{x:d.eye.x,y:d.eye.y,z:d.eye.z},center:{x:d.center.x,y:d.center.y,z:d.center.z}}),p.plot(c,t,e.layout)}},e.clean=function(e,t,n,r){for(var a=r._subplots[s]||[],i=0;i<a.length;i++){var o=a[i];!t[o]&&r[o]._scene&&(r[o]._scene.destroy(),r._infolayer&&r._infolayer.selectAll(".annotation-"+o).remove())}},e.toSVG=function(e){for(var t=e._fullLayout,n=t._subplots[s],r=t._size,a=0;a<n.length;a++){var i=t[n[a]],l=i.domain,c=i._scene,u=c.toImage("png");t._glimages.append("svg:image").attr({xmlns:o.svg,"xlink:href":u,x:r.l+r.w*l.x[0],y:r.t+r.h*(1-l.y[1]),width:r.w*(l.x[1]-l.x[0]),height:r.h*(l.y[1]-l.y[0]),preserveAspectRatio:"none"}),c.destroy()}},e.cleanId=function(e){if(e.match(/^scene[0-9]*$/)){var t=e.slice(5);return"1"===t&&(t=""),l+t}},e.updateFx=function(e){for(var t=e._fullLayout,n=t._subplots[s],r=0;r<n.length;r++){t[n[r]]._scene.updateFx(t.dragmode,t.hovermode)}}}),Fst=Ee((e,t)=>{t.exports={plot:Zot(),attributes:$fe(),markerSymbols:cY(),supplyDefaults:rst(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:ast(),moduleType:"trace",name:"scatter3d",basePlotModule:S4(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{hrName:"scatter_3d",description:["The data visualized as scatter point or lines in 3D dimension","is set in `x`, `y`, `z`.","Text (appearing either on the chart or on hover only) is via `text`.","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","Projections are achieved via `projection`.","Surface fills are achieved via `surfaceaxis`."].join(" ")}}}),Ust=Ee((e,t)=>{t.exports=Fst()}),FL=Ee((e,t)=>{var n=ao(),r=Oc(),a=Pd().axisHoverFormat,{hovertemplateAttrs:i,templatefallbackAttrs:o}=p1(),s=S1(),l=ms().extendFlat,c=Wu().overrideAll;function u(e){return{valType:"boolean",dflt:!1,description:["Determines whether or not these contour lines are projected","on the",e,"plane.","If `highlight` is set to *true* (the default), the projected","lines are shown on hover.","If `show` is set to *true*, the projected lines are shown","in permanence."].join(" ")}}function d(e){return{show:{valType:"boolean",dflt:!1,description:["Determines whether or not contour lines about the",e,"dimension are drawn."].join(" ")},start:{valType:"number",dflt:null,editType:"plot",description:["Sets the starting contour level value.","Must be less than `contours.end`"].join(" ")},end:{valType:"number",dflt:null,editType:"plot",description:["Sets the end contour level value.","Must be more than `contours.start`"].join(" ")},size:{valType:"number",dflt:null,min:0,editType:"plot",description:["Sets the step between each contour level.","Must be positive."].join(" ")},project:{x:u("x"),y:u("y"),z:u("z")},color:{valType:"color",dflt:n.defaultLine,description:"Sets the color of the contour lines."},usecolormap:{valType:"boolean",dflt:!1,description:["An alternate to *color*.","Determines whether or not the contour lines are colored using","the trace *colorscale*."].join(" ")},width:{valType:"number",min:1,max:16,dflt:2,description:"Sets the width of the contour lines."},highlight:{valType:"boolean",dflt:!0,description:["Determines whether or not contour lines about the",e,"dimension are highlighted on hover."].join(" ")},highlightcolor:{valType:"color",dflt:n.defaultLine,description:"Sets the color of the highlighted contour lines."},highlightwidth:{valType:"number",min:1,max:16,dflt:2,description:"Sets the width of the highlighted contour lines."}}}var p=t.exports=c(l({z:{valType:"data_array",description:"Sets the z coordinates."},x:{valType:"data_array",description:"Sets the x coordinates."},y:{valType:"data_array",description:"Sets the y coordinates."},text:{valType:"string",dflt:"",arrayOk:!0,description:["Sets the text elements associated with each z value.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},hovertext:{valType:"string",dflt:"",arrayOk:!0,description:"Same as `text`."},hovertemplate:i(),hovertemplatefallback:o(),xhoverformat:a("x"),yhoverformat:a("y"),zhoverformat:a("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the `z` data are filled in."].join(" ")},surfacecolor:{valType:"data_array",description:["Sets the surface color values,","used for setting a color scale independent of `z`."].join(" ")}},r("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:d("x"),y:d("y"),z:d("z")},hidesurface:{valType:"boolean",dflt:!1,description:["Determines whether or not a surface is drawn.","For example, set `hidesurface` to *false*","`contours.x.show` to *true* and","`contours.y.show` to *true* to draw a wire frame plot."].join(" ")},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10,description:"Numeric vector, representing the X coordinate for each vertex."},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4,description:"Numeric vector, representing the Y coordinate for each vertex."},z:{valType:"number",min:-1e5,max:1e5,dflt:0,description:"Numeric vector, representing the Z coordinate for each vertex."}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8,description:"Ambient light increases overall color visibility but can wash out the image."},diffuse:{valType:"number",min:0,max:1,dflt:.8,description:"Represents the extent that incident rays are reflected in a range of angles."},specular:{valType:"number",min:0,max:2,dflt:.05,description:"Represents the level that incident rays are reflected in a single direction, causing shine."},roughness:{valType:"number",min:0,max:1,dflt:.5,description:"Alters specular reflection; the rougher the surface, the wider and less contrasty the shine."},fresnel:{valType:"number",min:0,max:5,dflt:.2,description:["Represents the reflectance as a dependency of the viewing angle; e.g. paper is reflective","when viewing it from the edge of the paper (almost 90 degrees), causing shine."].join(" ")}},opacity:{valType:"number",min:0,max:1,dflt:1,description:["Sets the opacity of the surface.","Please note that in the case of using high `opacity` values for example a value","greater than or equal to 0.5 on two surfaces (and 0.25 with four surfaces), an","overlay of multiple transparent surfaces may not perfectly be sorted in depth by the","webgl API. This behavior may be improved in the near future and is subject to change."].join(" ")},opacityscale:{valType:"any",editType:"calc",description:["Sets the opacityscale.","The opacityscale must be an array containing","arrays mapping a normalized value to an opacity value.","At minimum, a mapping for the lowest (0) and highest (1)","values are required. For example,","`[[0, 1], [0.5, 0.2], [1, 1]]` means that higher/lower values would have","higher opacity values and those in the middle would be more transparent","Alternatively, `opacityscale` may be a palette name string","of the following list: 'min', 'max', 'extremes' and 'uniform'.","The default is 'uniform'."].join(" ")},hoverinfo:l({},s.hoverinfo),showlegend:l({},s.showlegend,{dflt:!1})}),"calc","nested");p.x.editType=p.y.editType=p.z.editType="calc+clearAxisTypes"}),fhe=Ee((e,t)=>{var n=vo(),r=Fr(),a=kh(),i=FL();function o(e,t,n,r){var a=r("opacityscale");"max"===a?t.opacityscale=[[0,.1],[1,1]]:"min"===a?t.opacityscale=[[0,1],[1,.1]]:"extremes"===a?t.opacityscale=function(e,t){for(var n=[],r=0;r<32;r++){var a=r/31,i=t+(1-t)*(1-Math.pow(Math.sin(e*a*Math.PI),2));n.push([a,Math.max(0,Math.min(1,i))])}return n}(1,.1):function(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||0!=+e[0][0]||1!=+e[e.length-1][0])return!1;for(var n=0;n<e.length;n++){var r=e[n];if(2!==r.length||+r[0]<t)return!1;t=+r[0]}return!0}(a)||(t.opacityscale=void 0)}t.exports={supplyDefaults:function(e,t,s,l){var c,u;function d(n,a){return r.coerce(e,t,i,n,a)}var p=d("x"),h=d("y"),f=d("z");if(!f||!f.length||p&&p.length<1||h&&h.length<1)t.visible=!1;else{t._xlength=Array.isArray(p)&&r.isArrayOrTypedArray(p[0])?f.length:f[0].length,t._ylength=f.length,n.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y","z"],l),d("text"),d("hovertext"),d("hovertemplate"),d("hovertemplatefallback"),d("xhoverformat"),d("yhoverformat"),d("zhoverformat"),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lightposition.x","lightposition.y","lightposition.z","hidesurface","connectgaps","opacity"].forEach(function(e){d(e)});d("surfacecolor");var m=["x","y","z"];for(c=0;c<3;++c){var g="contours."+m[c],y=d(g+".show"),b=d(g+".highlight");if(y||b)for(u=0;u<3;++u)d(g+".project."+m[u]);y&&(d(g+".color"),d(g+".width"),d(g+".usecolormap")),b&&(d(g+".highlightcolor"),d(g+".highlightwidth")),d(g+".start"),d(g+".end"),d(g+".size")}a(e,t,l,d,{prefix:"",cLetter:"c"}),o(e,t,l,d),t._length=null}},opacityscaleDefaults:o}}),Kst=Ee((e,t)=>{var n=f2();t.exports=function(e,t){t.surfacecolor?n(e,t,{vals:t.surfacecolor,containerStr:"",cLetter:"c"}):n(e,t,{vals:t.z,containerStr:"",cLetter:"c"})}}),n0t=Ee((e,t)=>{var n=Mp().gl_surface3d,r=Mp().ndarray,a=Mp().ndarray_linear_interpolate.d2,i=CG(),o=EG(),s=Fr().isArrayOrTypedArray,l=Gx().parseColorScale,c=jx(),u=xu().extractOpts;function d(e,t,n){this.scene=e,this.uid=n,this.surface=t,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var p=d.prototype;p.getXat=function(e,t,n,r){var a=s(this.data.x)?s(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return void 0===n?a:r.d2l(a,0,n)},p.getYat=function(e,t,n,r){var a=s(this.data.y)?s(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return void 0===n?a:r.d2l(a,0,n)},p.getZat=function(e,t,n,r){var a=this.data.z[t][e];return null===a&&this.data.connectgaps&&this.data._interpolatedZ&&(a=this.data._interpolatedZ[t][e]),void 0===n?a:r.d2l(a,0,n)},p.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,n=(e.data.index[1]-1)/this.dataScaleY-1,r=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),a=Math.max(Math.min(Math.round(n),this.data._ylength-1),0);e.index=[r,a],e.traceCoordinate=[this.getXat(r,a),this.getYat(r,a),this.getZat(r,a)],e.dataCoordinate=[this.getXat(r,a,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(r,a,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(r,a,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var i=0;i<3;i++){null!=e.dataCoordinate[i]&&(e.dataCoordinate[i]*=this.scene.dataScale[i])}var o=this.data.hovertext||this.data.text;return s(o)&&o[a]&&void 0!==o[a][r]?e.textLabel=o[a][r]:e.textLabel=o||"",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};var h=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function f(e,t){if(e<t)return 0;for(var n=0;0===Math.floor(e%t);)e/=t,n++;return n}function m(e){for(var t=[],n=0;n<h.length;n++){var r=h[n];t.push(f(e,r))}return t}function g(e){for(var t=m(e),n=e,r=0;r<h.length;r++)if(t[r]>0){n=h[r];break}return n}function y(e,t){if(!(e<1||t<1)){for(var n=m(e),r=m(t),a=1,i=0;i<h.length;i++)a*=Math.pow(h[i],Math.max(n[i],r[i]));return a}}p.calcXnums=function(e){var t,n=[];for(t=1;t<e;t++){var r=this.getXat(t-1,0),a=this.getXat(t,0);n[t-1]=a!==r&&null!=r&&null!=a?Math.abs(a-r):0}var i=0;for(t=1;t<e;t++)i+=n[t-1];for(t=1;t<e;t++)0===n[t-1]?n[t-1]=1:n[t-1]=Math.round(i/n[t-1]);return n},p.calcYnums=function(e){var t,n=[];for(t=1;t<e;t++){var r=this.getYat(0,t-1),a=this.getYat(0,t);n[t-1]=a!==r&&null!=r&&null!=a?Math.abs(a-r):0}var i=0;for(t=1;t<e;t++)i+=n[t-1];for(t=1;t<e;t++)0===n[t-1]?n[t-1]=1:n[t-1]=Math.round(i/n[t-1]);return n};var b=[1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260],v=b[9],M=b[13];function x(e,t,n){var r=n[8]+n[2]*t[0]+n[5]*t[1];return e[0]=(n[6]+n[0]*t[0]+n[3]*t[1])/r,e[1]=(n[7]+n[1]*t[0]+n[4]*t[1])/r,e}function z(e,t,n){return function(e,t,n,r){for(var i=[0,0],o=e.shape[0],s=e.shape[1],l=0;l<o;l++)for(var c=0;c<s;c++)n(i,[l,c],r),e.set(l,c,a(t,i[0],i[1]))}(e,t,x,n),e}function _(e,t){for(var n=!1,r=0;r<e.length;r++)if(t===e[r]){n=!0;break}!1===n&&e.push(t)}p.estimateScale=function(e,t){for(var n=1+function(e){if(0!==e.length){for(var t=1,n=0;n<e.length;n++)t=y(t,e[n]);return t}}(0===t?this.calcXnums(e):this.calcYnums(e));n<v;)n*=2;for(;n>M;)n--,n/=g(n),++n<v&&(n=M);var r=Math.round(n/e);return r>1?r:1},p.refineCoords=function(e){for(var t=this.dataScaleX,n=this.dataScaleY,a=e[0].shape[0],i=e[0].shape[1],o=0|Math.floor(e[0].shape[0]*t+1),s=0|Math.floor(e[0].shape[1]*n+1),l=1+a+1,c=1+i+1,u=r(new Float32Array(l*c),[l,c]),d=[1/t,0,0,0,1/n,0,0,0,1],p=0;p<e.length;++p){this.surface.padField(u,e[p]);var h=r(new Float32Array(o*s),[o,s]);z(h,u,d),e[p]=h}},p.setContourLevels=function(){var e,t,n,r=[[],[],[]],a=[!1,!1,!1],i=!1;for(e=0;e<3;++e)if(this.showContour[e]&&(i=!0,this.contourSize[e]>0&&null!==this.contourStart[e]&&null!==this.contourEnd[e]&&this.contourEnd[e]>this.contourStart[e]))for(a[e]=!0,t=this.contourStart[e];t<this.contourEnd[e];t+=this.contourSize[e])n=t*this.scene.dataScale[e],_(r[e],n);if(i){var o=[[],[],[]];for(e=0;e<3;++e)this.showContour[e]&&(o[e]=a[e]?r[e]:this.scene.contourLevels[e]);this.surface.update({levels:o})}},p.update=function(e){var t=this.scene,n=t.fullSceneLayout,a=this.surface,s=l(e),d=t.dataScale,p=e.z[0].length,h=e._ylength,f=t.contourLevels;this.data=e;var m,g,y,b,v=[];for(m=0;m<3;m++)for(v[m]=[],g=0;g<p;g++)v[m][g]=[];for(g=0;g<p;g++)for(y=0;y<h;y++)v[0][g][y]=this.getXat(g,y,e.xcalendar,n.xaxis),v[1][g][y]=this.getYat(g,y,e.ycalendar,n.yaxis),v[2][g][y]=this.getZat(g,y,e.zcalendar,n.zaxis);if(e.connectgaps)for(e._emptypoints=o(v[2]),i(v[2],e._emptypoints),e._interpolatedZ=[],g=0;g<p;g++)for(e._interpolatedZ[g]=[],y=0;y<h;y++)e._interpolatedZ[g][y]=v[2][g][y];for(m=0;m<3;m++)for(g=0;g<p;g++)for(y=0;y<h;y++)null==(b=v[m][g][y])?v[m][g][y]=NaN:b=v[m][g][y]*=d[m];for(m=0;m<3;m++)for(g=0;g<p;g++)for(y=0;y<h;y++)null!=(b=v[m][g][y])&&(this.minValues[m]>b&&(this.minValues[m]=b),this.maxValues[m]<b&&(this.maxValues[m]=b));for(m=0;m<3;m++)this.objectOffset[m]=.5*(this.minValues[m]+this.maxValues[m]);for(m=0;m<3;m++)for(g=0;g<p;g++)for(y=0;y<h;y++)null!=(b=v[m][g][y])&&(v[m][g][y]-=this.objectOffset[m]);var x=[r(new Float32Array(p*h),[p,h]),r(new Float32Array(p*h),[p,h]),r(new Float32Array(p*h),[p,h])];for(m=0;m<3;m++)for(g=0;g<p;g++)for(y=0;y<h;y++)x[m].set(g,y,v[m][g][y]);v=[];var z={colormap:s,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!e.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacityscale:e.opacityscale,opacity:e.opacity},_=u(e);if(z.intensityBounds=[_.min,_.max],e.surfacecolor){var A=r(new Float32Array(p*h),[p,h]);for(g=0;g<p;g++)for(y=0;y<h;y++)A.set(g,y,e.surfacecolor[y][g]);x.push(A)}else z.intensityBounds[0]*=d[2],z.intensityBounds[1]*=d[2];(M<x[0].shape[0]||M<x[0].shape[1])&&(this.refineData=!1),!0===this.refineData&&(this.dataScaleX=this.estimateScale(x[0].shape[0],0),this.dataScaleY=this.estimateScale(x[0].shape[1],1),(1!==this.dataScaleX||1!==this.dataScaleY)&&this.refineCoords(x)),e.surfacecolor&&(z.intensity=x.pop());var O=[!0,!0,!0],w=["x","y","z"];for(m=0;m<3;++m){var k=e.contours[w[m]];O[m]=k.highlight,z.showContour[m]=k.show||k.highlight,z.showContour[m]&&(z.contourProject[m]=[k.project.x,k.project.y,k.project.z],k.show?(this.showContour[m]=!0,z.levels[m]=f[m],a.highlightColor[m]=z.contourColor[m]=c(k.color),k.usecolormap?a.highlightTint[m]=z.contourTint[m]=0:a.highlightTint[m]=z.contourTint[m]=1,z.contourWidth[m]=k.width,this.contourStart[m]=k.start,this.contourEnd[m]=k.end,this.contourSize[m]=k.size):(this.showContour[m]=!1,this.contourStart[m]=null,this.contourEnd[m]=null,this.contourSize[m]=0),k.highlight&&(z.dynamicColor[m]=c(k.highlightcolor),z.dynamicWidth[m]=k.highlightwidth))}(function(e){var t=e[0].rgb,n=e[e.length-1].rgb;return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]})(s)&&(z.vertexColor=!0),z.objectOffset=this.objectOffset,z.coords=x,a.update(z),a.visible=e.visible,a.enableDynamic=O,a.enableHighlight=O,a.snapToData=!0,"lighting"in e&&(a.ambientLight=e.lighting.ambient,a.diffuseLight=e.lighting.diffuse,a.specularLight=e.lighting.specular,a.roughness=e.lighting.roughness,a.fresnel=e.lighting.fresnel),"lightposition"in e&&(a.lightPosition=[e.lightposition.x,e.lightposition.y,e.lightposition.z])},p.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()},t.exports=function(e,t){var r=e.glplot.gl,a=n({gl:r}),i=new d(e,a,t.uid);return a._trace=i,i.update(t),e.glplot.add(a),i}}),i0t=Ee((e,t)=>{t.exports={attributes:FL(),supplyDefaults:fhe().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:Kst(),plot:n0t(),moduleType:"trace",name:"surface",basePlotModule:S4(),categories:["gl3d","2dMap","showLegend"],meta:{description:["The data the describes the coordinates of the surface is set in `z`.","Data in `z` should be a {2D array}.","Coordinates in `x` and `y` can either be 1D {arrays}","or {2D arrays} (e.g. to graph parametric surfaces).","If not provided in `x` and `y`, the x and y coordinates are assumed","to be linear starting at 0 with a unit step.","The color scale corresponds to the `z` values by default.","For custom color scales, use `surfacecolor` which should be a {2D array},","where its bounds can be controlled using `cmin` and `cmax`."].join(" ")}}}),s0t=Ee((e,t)=>{t.exports=i0t()}),Zk=Ee((e,t)=>{var n=Oc(),r=Pd().axisHoverFormat,{hovertemplateAttrs:a,templatefallbackAttrs:i}=p1(),o=FL(),s=S1(),l=ms().extendFlat;t.exports=l({x:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the X coordinates of the vertices. The nth element of vectors `x`, `y` and `z`","jointly represent the X, Y and Z coordinates of the nth vertex."].join(" ")},y:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the Y coordinates of the vertices. The nth element of vectors `x`, `y` and `z`","jointly represent the X, Y and Z coordinates of the nth vertex."].join(" ")},z:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the Z coordinates of the vertices. The nth element of vectors `x`, `y` and `z`","jointly represent the X, Y and Z coordinates of the nth vertex."].join(" ")},i:{valType:"data_array",editType:"calc",description:["A vector of vertex indices, i.e. integer values between 0 and the length of the vertex","vectors, representing the *first* vertex of a triangle. For example, `{i[m], j[m], k[m]}`","together represent face m (triangle m) in the mesh, where `i[m] = n` points to the triplet","`{x[n], y[n], z[n]}` in the vertex arrays. Therefore, each element in `i` represents a","point in space, which is the first vertex of a triangle."].join(" ")},j:{valType:"data_array",editType:"calc",description:["A vector of vertex indices, i.e. integer values between 0 and the length of the vertex","vectors, representing the *second* vertex of a triangle. For example, `{i[m], j[m], k[m]}` ","together represent face m (triangle m) in the mesh, where `j[m] = n` points to the triplet","`{x[n], y[n], z[n]}` in the vertex arrays. Therefore, each element in `j` represents a","point in space, which is the second vertex of a triangle."].join(" ")},k:{valType:"data_array",editType:"calc",description:["A vector of vertex indices, i.e. integer values between 0 and the length of the vertex","vectors, representing the *third* vertex of a triangle. For example, `{i[m], j[m], k[m]}`","together represent face m (triangle m) in the mesh, where `k[m] = n` points to the triplet ","`{x[n], y[n], z[n]}` in the vertex arrays. Therefore, each element in `k` represents a","point in space, which is the third vertex of a triangle."].join(" ")},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:["Sets the text elements associated with the vertices.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:"Same as `text`."},hovertemplate:a({editType:"calc"}),hovertemplatefallback:i({editType:"calc"}),xhoverformat:r("x"),yhoverformat:r("y"),zhoverformat:r("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc",description:["Sets the Delaunay axis, which is the axis that is perpendicular to the surface of the","Delaunay triangulation.","It has an effect if `i`, `j`, `k` are not provided and `alphahull` is set to indicate","Delaunay triangulation."].join(" ")},alphahull:{valType:"number",dflt:-1,editType:"calc",description:["Determines how the mesh surface triangles are derived from the set of","vertices (points) represented by the `x`, `y` and `z` arrays, if","the `i`, `j`, `k` arrays are not supplied.","For general use of `mesh3d` it is preferred that `i`, `j`, `k` are","supplied.","If *-1*, Delaunay triangulation is used, which is mainly suitable if the","mesh is a single, more or less layer surface that is perpendicular to `delaunayaxis`.","In case the `delaunayaxis` intersects the mesh surface at more than one point","it will result triangles that are very long in the dimension of `delaunayaxis`.","If *>0*, the alpha-shape algorithm is used. In this case, the positive `alphahull` value","signals the use of the alpha-shape algorithm, _and_ its value","acts as the parameter for the mesh fitting.","If *0*, the convex-hull algorithm is used. It is suitable for convex bodies","or if the intention is to enclose the `x`, `y` and `z` point set into a convex","hull."].join(" ")},intensity:{valType:"data_array",editType:"calc",description:["Sets the intensity values for vertices or cells","as defined by `intensitymode`.","It can be used for plotting fields on meshes."].join(" ")},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc",description:["Determines the source of `intensity` values."].join(" ")},color:{valType:"color",editType:"calc",description:"Sets the color of the whole mesh"},vertexcolor:{valType:"data_array",editType:"calc",description:["Sets the color of each vertex","Overrides *color*. While Red, green and blue colors","are in the range of 0 and 255; in the case of having","vertex color data in RGBA format, the alpha color","should be normalized to be between 0 and 1."].join(" ")},facecolor:{valType:"data_array",editType:"calc",description:["Sets the color of each face","Overrides *color* and *vertexcolor*."].join(" ")}},n("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:o.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not normal smoothing is applied to the meshes,","creating meshes with an angular, low-poly look via flat reflections."].join(" ")},contour:{show:l({},o.contours.x.show,{description:["Sets whether or not dynamic contours are shown on hover"].join(" ")}),color:o.contours.x.color,width:o.contours.x.width,editType:"calc"},lightposition:{x:l({},o.lightposition.x,{dflt:1e5}),y:l({},o.lightposition.y,{dflt:1e5}),z:l({},o.lightposition.z,{dflt:0}),editType:"calc"},lighting:l({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc",description:"Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry."},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc",description:"Epsilon for face normals calculation avoids math issues arising from degenerate geometry."},editType:"calc"},o.lighting),hoverinfo:l({},s.hoverinfo,{editType:"calc"}),showlegend:l({},s.showlegend,{dflt:!1})})}),gY=Ee((e,t)=>{var n=Oc(),r=Pd().axisHoverFormat,{hovertemplateAttrs:a,templatefallbackAttrs:i}=p1(),o=Zk(),s=S1(),l=ms().extendFlat,c=Wu().overrideAll;function u(e){return{show:{valType:"boolean",dflt:!1,description:["Determines whether or not slice planes about the",e,"dimension are drawn."].join(" ")},locations:{valType:"data_array",dflt:[],description:["Specifies the location(s) of slices on the axis.","When not specified slices would be created for","all points of the axis",e,"except start and end."].join(" ")},fill:{valType:"number",min:0,max:1,dflt:1,description:["Sets the fill ratio of the `slices`. The default fill value of the","`slices` is 1 meaning that they are entirely shaded. On the other hand","Applying a `fill` ratio less than one would allow the creation of","openings parallel to the edges."].join(" ")}}}function d(e){return{show:{valType:"boolean",dflt:!0,description:["Sets the fill ratio of the `slices`. The default fill value of the",e,"`slices` is 1 meaning that they are entirely shaded. On the other hand","Applying a `fill` ratio less than one would allow the creation of","openings parallel to the edges."].join(" ")},fill:{valType:"number",min:0,max:1,dflt:1,description:["Sets the fill ratio of the `caps`. The default fill value of the","`caps` is 1 meaning that they are entirely shaded. On the other hand","Applying a `fill` ratio less than one would allow the creation of","openings parallel to the edges."].join(" ")}}}var p=t.exports=c(l({x:{valType:"data_array",description:["Sets the X coordinates of the vertices on X axis."].join(" ")},y:{valType:"data_array",description:["Sets the Y coordinates of the vertices on Y axis."].join(" ")},z:{valType:"data_array",description:["Sets the Z coordinates of the vertices on Z axis."].join(" ")},value:{valType:"data_array",description:["Sets the 4th dimension (value) of the vertices."].join(" ")},isomin:{valType:"number",description:["Sets the minimum boundary for iso-surface plot."].join(" ")},isomax:{valType:"number",description:["Sets the maximum boundary for iso-surface plot."].join(" ")},surface:{show:{valType:"boolean",dflt:!0,description:["Hides/displays surfaces between minimum and maximum iso-values."].join(" ")},count:{valType:"integer",dflt:2,min:1,description:["Sets the number of iso-surfaces between minimum and maximum iso-values.","By default this value is 2 meaning that only minimum and maximum surfaces","would be drawn."].join(" ")},fill:{valType:"number",min:0,max:1,dflt:1,description:["Sets the fill ratio of the iso-surface. The default fill value of the","surface is 1 meaning that they are entirely shaded. On the other hand","Applying a `fill` ratio less than one would allow the creation of","openings parallel to the edges."].join(" ")},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all",description:["Sets the surface pattern of the iso-surface 3-D sections. The default pattern of","the surface is `all` meaning that the rest of surface elements would be shaded.","The check options (either 1 or 2) could be used to draw half of the squares","on the surface. Using various combinations of capital `A`, `B`, `C`, `D` and `E`","may also be used to reduce the number of triangles on the iso-surfaces and","creating other patterns of interest."].join(" ")}},spaceframe:{show:{valType:"boolean",dflt:!1,description:["Displays/hides tetrahedron shapes between minimum and","maximum iso-values. Often useful when either caps or","surfaces are disabled or filled with values less than 1."].join(" ")},fill:{valType:"number",min:0,max:1,dflt:.15,description:["Sets the fill ratio of the `spaceframe` elements. The default fill value","is 0.15 meaning that only 15% of the area of every faces of tetras would be","shaded. Applying a greater `fill` ratio would allow the creation of stronger","elements or could be sued to have entirely closed areas (in case of using 1)."].join(" ")}},slices:{x:u("x"),y:u("y"),z:u("z")},caps:{x:d("x"),y:d("y"),z:d("z")},text:{valType:"string",dflt:"",arrayOk:!0,description:["Sets the text elements associated with the vertices.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},hovertext:{valType:"string",dflt:"",arrayOk:!0,description:"Same as `text`."},hovertemplate:a(),hovertemplatefallback:i(),xhoverformat:r("x"),yhoverformat:r("y"),zhoverformat:r("z"),valuehoverformat:r("value",1),showlegend:l({},s.showlegend,{dflt:!1})},n("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:o.opacity,lightposition:o.lightposition,lighting:o.lighting,flatshading:o.flatshading,contour:o.contour,hoverinfo:l({},s.hoverinfo)}),"calc","nested");p.flatshading.dflt=!0,p.lighting.facenormalsepsilon.dflt=0,p.x.editType=p.y.editType=p.z.editType=p.value.editType="calc+clearAxisTypes"}),yhe=Ee((e,t)=>{var n=Fr(),r=vo(),a=gY(),i=kh();function o(e,t,n,a,o){var s=o("isomin"),l=o("isomax");null!=l&&null!=s&&s>l&&(t.isomin=null,t.isomax=null);var c=o("x"),u=o("y"),d=o("z"),p=o("value");c&&c.length&&u&&u.length&&d&&d.length&&p&&p.length?(r.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y","z"],a),o("valuehoverformat"),["x","y","z"].forEach(function(e){o(e+"hoverformat");var t="caps."+e;o(t+".show")&&o(t+".fill");var n="slices."+e;o(n+".show")&&(o(n+".fill"),o(n+".locations"))}),o("spaceframe.show")&&o("spaceframe.fill"),o("surface.show")&&(o("surface.count"),o("surface.fill"),o("surface.pattern")),o("contour.show")&&(o("contour.color"),o("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(e){o(e)}),i(e,t,a,o,{prefix:"",cLetter:"c"}),t._length=null):t.visible=!1}t.exports={supplyDefaults:function(e,t,r,i){o(e,t,r,i,function(r,i){return n.coerce(e,t,a,r,i)})},supplyIsoDefaults:o}}),yY=Ee((e,t)=>{var n=Fr(),r=f2();function a(e){var t,r,a,o,s,l,c,u,d,p,h,f,m=e._x,g=e._y,y=e._z,b=e._len,v=-1/0,M=1/0,x=-1/0,z=1/0,_=-1/0,A=1/0,O="";for(b&&(c=m[0],d=g[0],h=y[0]),b>1&&(u=m[b-1],p=g[b-1],f=y[b-1]),t=0;t<b;t++)v=Math.max(v,m[t]),M=Math.min(M,m[t]),x=Math.max(x,g[t]),z=Math.min(z,g[t]),_=Math.max(_,y[t]),A=Math.min(A,y[t]),!o&&m[t]!==c&&(o=!0,O+="x"),!s&&g[t]!==d&&(s=!0,O+="y"),!l&&y[t]!==h&&(l=!0,O+="z");o||(O+="x"),s||(O+="y"),l||(O+="z");var w=i(e._x),k=i(e._y),T=i(e._z);O=(O=(O=O.replace("x",(c>u?"-":"+")+"x")).replace("y",(d>p?"-":"+")+"y")).replace("z",(h>f?"-":"+")+"z");var S=function(){b=0,w=[],k=[],T=[]};(!b||b<w.length*k.length*T.length)&&S();var C=function(e){return"x"===e?m:"y"===e?g:y},E=function(e){return"x"===e?w:"y"===e?k:T},q=function(e){return e[b-1]<e[0]?-1:1},D=C(O[1]),R=C(O[3]),L=C(O[5]),I=E(O[1]).length,W=E(O[3]).length,N=E(O[5]).length,P=!1,B=function(e,t,n){return I*(W*e+t)+n},F=q(C(O[1])),j=q(C(O[3])),U=q(C(O[5]));for(t=0;t<N-1;t++){for(r=0;r<W-1;r++){for(a=0;a<I-1;a++){var V=B(t,r,a),H=B(t,r,a+1),X=B(t,r+1,a),G=B(t+1,r,a);if(D[V]*F<D[H]*F&&R[V]*j<R[X]*j&&L[V]*U<L[G]*U||(P=!0),P)break}if(P)break}if(P)break}return P&&(n.warn("Encountered arbitrary coordinates! Unable to input data grid."),S()),{xMin:M,yMin:z,zMin:A,xMax:v,yMax:x,zMax:_,Xs:w,Ys:k,Zs:T,len:b,fill:O}}function i(e){return n.distinctVals(e).vals}function o(e,t){if(void 0===t&&(t=e.length),n.isTypedArray(e))return e.subarray(0,t);for(var r=[],a=0;a<t;a++)r[a]=+e[a];return r}t.exports={calc:function(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=o(t.u,t._len),t._v=o(t.v,t._len),t._w=o(t.w,t._len),t._x=o(t.x,t._len),t._y=o(t.y,t._len),t._z=o(t.z,t._len);var n=a(t);t._gridFill=n.fill,t._Xs=n.Xs,t._Ys=n.Ys,t._Zs=n.Zs,t._len=n.len;var i,s,l,c=0;t.starts&&(i=o(t.starts.x||[]),s=o(t.starts.y||[]),l=o(t.starts.z||[]),c=Math.min(i.length,s.length,l.length)),t._startsX=i||[],t._startsY=s||[],t._startsZ=l||[];var u,d=0,p=1/0;for(u=0;u<t._len;u++){var h=t._u[u],f=t._v[u],m=t._w[u],g=Math.sqrt(h*h+f*f+m*m);d=Math.max(d,g),p=Math.min(p,g)}for(r(e,t,{vals:[p,d],containerStr:"",cLetter:"c"}),u=0;u<c;u++){var y=i[u];n.xMax=Math.max(n.xMax,y),n.xMin=Math.min(n.xMin,y);var b=s[u];n.yMax=Math.max(n.yMax,b),n.yMin=Math.min(n.yMin,b);var v=l[u];n.zMax=Math.max(n.zMax,v),n.zMin=Math.min(n.zMin,v)}t._slen=c,t._normMax=d,t._xbnds=[n.xMin,n.xMax],t._ybnds=[n.yMin,n.yMax],t._zbnds=[n.zMin,n.zMax]},filter:o,processGrid:a}}),xhe=Ee((e,t)=>{var n=f2(),r=yY().processGrid,a=yY().filter;t.exports=function(e,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=a(t.x,t._len),t._y=a(t.y,t._len),t._z=a(t.z,t._len),t._value=a(t.value,t._len);var i=r(t);t._gridFill=i.fill,t._Xs=i.Xs,t._Ys=i.Ys,t._Zs=i.Zs,t._len=i.len;for(var o=1/0,s=-1/0,l=0;l<t._len;l++){var c=t._value[l];o=Math.min(o,c),s=Math.max(s,c)}t._minValues=o,t._maxValues=s,t._vMin=void 0===t.isomin||null===t.isomin?o:t.isomin,t._vMax=void 0===t.isomax||null===t.isomax?s:t.isomax,n(e,t,{vals:[t._vMin,t._vMax],containerStr:"",cLetter:"c"})}}),Kk=Ee((e,t)=>{t.exports=function(e,t,n,r){r=r||e.length;for(var a=new Array(r),i=0;i<r;i++)a[i]=[e[i],t[i],n[i]];return a}}),MY=Ee((e,t)=>{var n=Mp().gl_mesh3d,r=Gx().parseColorScale,a=Fr().isArrayOrTypedArray,i=jx(),o=xu().extractOpts,s=Kk(),l=function(e,t){for(var n=t.length-1;n>0;n--){var r=Math.min(t[n],t[n-1]),a=Math.max(t[n],t[n-1]);if(a>r&&r<e&&e<=a)return{id:n,distRatio:(a-e)/(a-r)}}return{id:0,distRatio:0}};function c(e,t,n){this.scene=e,this.uid=n,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var u=c.prototype;u.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,n=this.data._meshX[t],r=this.data._meshY[t],i=this.data._meshZ[t],o=this.data._Ys.length,s=this.data._Zs.length,c=l(n,this.data._Xs).id,u=l(r,this.data._Ys).id,d=l(i,this.data._Zs).id,p=e.index=d+s*u+s*o*c;e.traceCoordinate=[this.data._meshX[p],this.data._meshY[p],this.data._meshZ[p],this.data._value[p]];var h=this.data.hovertext||this.data.text;return a(h)&&void 0!==h[p]?e.textLabel=h[p]:h&&(e.textLabel=h),!0}},u.update=function(e){var t=this.scene,n=t.fullSceneLayout;function a(e,t,n,r){return t.map(function(t){return e.d2l(t,0,r)*n})}this.data=p(e);var l={positions:s(a(n.xaxis,e._meshX,t.dataScale[0],e.xcalendar),a(n.yaxis,e._meshY,t.dataScale[1],e.ycalendar),a(n.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),cells:s(e._meshI,e._meshJ,e._meshK),lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:i(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},c=o(e);l.vertexIntensity=e._meshIntensity,l.vertexIntensityBounds=[c.min,c.max],l.colormap=r(e),this.mesh.update(l)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};var d=["xyz","xzy","yxz","yzx","zxy","zyx"];function p(e){e._meshI=[],e._meshJ=[],e._meshK=[];var t,n,r,a,i,o,s,c=e.surface.show,u=e.spaceframe.show,p=e.surface.fill,h=e.spaceframe.fill,f=!1,m=!1,g=0,y=e._Xs,b=e._Ys,v=e._Zs,M=y.length,x=b.length,z=v.length,_=d.indexOf(e._gridFill.replace(/-/g,"").replace(/\+/g,"")),A=function(e,t,n){switch(_){case 5:return n+z*t+z*x*e;case 4:return n+z*e+z*M*t;case 3:return t+x*n+x*z*e;case 2:return t+x*e+x*M*n;case 1:return e+M*n+M*z*t;default:return e+M*t+M*x*n}},O=e._minValues,w=e._maxValues,k=e._vMin,T=e._vMax;function S(e,t,s){for(var l=o.length,c=n;c<l;c++)if(e===r[c]&&t===a[c]&&s===i[c])return c;return-1}function C(){n=t}function E(){r=[],a=[],i=[],o=[],t=0,C()}function q(e,n,s,l){return r.push(e),a.push(n),i.push(s),o.push(l),++t-1}function D(t,n,r){return e._meshI.push(t),e._meshJ.push(n),e._meshK.push(r),++g-1}function R(e,t,n){for(var r=[],a=0;a<e.length;a++)r[a]=e[a]*(1-n)+n*t[a];return r}function L(e){s=e}function I(e,t){return"all"===e||null===e||e.indexOf(t)>-1}function W(e,t){return null===e?t:e}function N(e,t,n){C();var r=[t],a=[n];if(s>=1)r=[t],a=[n];else if(s>0){var i=function(e,t){var n=e[0],r=e[1],a=e[2],i=function(e,t,n){for(var r=[],a=0;a<e.length;a++)r[a]=(e[a]+t[a]+n[a])/3;return r}(n,r,a),o=Math.sqrt(1-s),l=R(i,n,o),c=R(i,r,o),u=R(i,a,o),d=t[0],p=t[1],h=t[2];return{xyzv:[[n,r,c],[c,l,n],[r,a,u],[u,c,r],[a,n,l],[l,u,a]],abc:[[d,p,-1],[-1,-1,d],[p,h,-1],[-1,-1,p],[h,d,-1],[-1,-1,h]]}}(t,n);r=i.xyzv,a=i.abc}for(var o=0;o<r.length;o++){t=r[o],n=a[o];for(var l=[],c=0;c<3;c++){var u=t[c][0],d=t[c][1],p=t[c][2],h=t[c][3],f=n[c]>-1?n[c]:S(u,d,p);l[c]=f>-1?f:q(u,d,p,W(e,h))}D(l[0],l[1],l[2])}}function P(e,t,n,r){var a=e[3];a<n&&(a=n),a>r&&(a=r);for(var i=(e[3]-a)/(e[3]-t[3]+1e-9),o=[],s=0;s<4;s++)o[s]=(1-i)*e[s]+i*t[s];return o}function B(e,t,n){return e>=t&&e<=n}function F(e){var t=.001*(T-k);return e>=k-t&&e<=T+t}function j(t){for(var n=[],r=0;r<4;r++){var a=t[r];n.push([e._x[a],e._y[a],e._z[a],e._value[a]])}return n}function U(e,t,n,r,a,i){i||(i=1),n=[-1,-1,-1];var o=!1,s=[B(t[0][3],r,a),B(t[1][3],r,a),B(t[2][3],r,a)];if(!s[0]&&!s[1]&&!s[2])return!1;var l=function(e,t,n){return F(t[0][3])&&F(t[1][3])&&F(t[2][3])?(N(e,t,n),!0):i<3&&U(e,t,n,k,T,++i)};if(s[0]&&s[1]&&s[2])return l(e,t,n)||o;var c=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach(function(i){if(s[i[0]]&&s[i[1]]&&!s[i[2]]){var u=t[i[0]],d=t[i[1]],p=t[i[2]],h=P(p,u,r,a),f=P(p,d,r,a);o=l(e,[f,h,u],[-1,-1,n[i[0]]])||o,o=l(e,[u,d,f],[n[i[0]],n[i[1]],-1])||o,c=!0}}),c||[[0,1,2],[1,2,0],[2,0,1]].forEach(function(i){if(s[i[0]]&&!s[i[1]]&&!s[i[2]]){var u=t[i[0]],d=t[i[1]],p=t[i[2]],h=P(d,u,r,a),f=P(p,u,r,a);o=l(e,[f,h,u],[-1,-1,n[i[0]]])||o,c=!0}}),o}function V(e,t,n,r){var a=!1,i=j(t),o=[B(i[0][3],n,r),B(i[1][3],n,r),B(i[2][3],n,r),B(i[3][3],n,r)];if(!(o[0]||o[1]||o[2]||o[3]))return a;if(o[0]&&o[1]&&o[2]&&o[3])return m&&(a=function(e,t,n){var r=function(r,a,i){N(e,[t[r],t[a],t[i]],[n[r],n[a],n[i]])};r(0,1,2),r(3,0,1),r(2,3,0),r(1,2,3)}(e,i,t)||a),a;var s=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach(function(l){if(o[l[0]]&&o[l[1]]&&o[l[2]]&&!o[l[3]]){var c=i[l[0]],u=i[l[1]],d=i[l[2]],p=i[l[3]];if(m)a=N(e,[c,u,d],[t[l[0]],t[l[1]],t[l[2]]])||a;else{var h=P(p,c,n,r),f=P(p,u,n,r),g=P(p,d,n,r);a=N(null,[h,f,g],[-1,-1,-1])||a}s=!0}}),s||([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach(function(l){if(o[l[0]]&&o[l[1]]&&!o[l[2]]&&!o[l[3]]){var c=i[l[0]],u=i[l[1]],d=i[l[2]],p=i[l[3]],h=P(d,c,n,r),f=P(d,u,n,r),g=P(p,u,n,r),y=P(p,c,n,r);m?(a=N(e,[c,y,h],[t[l[0]],-1,-1])||a,a=N(e,[u,f,g],[t[l[1]],-1,-1])||a):a=function(e,t,n){var r=function(r,a,i){N(e,[t[r],t[a],t[i]],[n[r],n[a],n[i]])};r(0,1,2),r(2,3,0)}(null,[h,f,g,y],[-1,-1,-1,-1])||a,s=!0}}),s)||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach(function(l){if(o[l[0]]&&!o[l[1]]&&!o[l[2]]&&!o[l[3]]){var c=i[l[0]],u=i[l[1]],d=i[l[2]],p=i[l[3]],h=P(u,c,n,r),f=P(d,c,n,r),g=P(p,c,n,r);m?(a=N(e,[c,h,f],[t[l[0]],-1,-1])||a,a=N(e,[c,f,g],[t[l[0]],-1,-1])||a,a=N(e,[c,g,h],[t[l[0]],-1,-1])||a):a=N(null,[h,f,g],[-1,-1,-1])||a,s=!0}}),a}function H(e,t,n,r,a,i,o,s,l,c,u){var d=!1;return f&&(I(e,"A")&&(d=V(null,[t,n,r,i],c,u)||d),I(e,"B")&&(d=V(null,[n,r,a,l],c,u)||d),I(e,"C")&&(d=V(null,[n,i,o,l],c,u)||d),I(e,"D")&&(d=V(null,[r,i,s,l],c,u)||d),I(e,"E")&&(d=V(null,[n,r,i,l],c,u)||d)),m&&(d=V(e,[n,r,i,l],c,u)||d),d}function X(e,t,n,r,a,i,o,s){return[!0===s[0]||U(e,j([t,n,r]),[t,n,r],i,o),!0===s[1]||U(e,j([r,a,t]),[r,a,t],i,o)]}function G(e,t,n,r,a,i,o,s,l){return s?X(e,t,n,a,r,i,o,l):X(e,n,a,r,t,i,o,l)}function Y(e,t,n,r,a,i,o){var s,l,c,u,d=!1,p=function(){d=U(e,[s,l,c],[-1,-1,-1],a,i)||d,d=U(e,[c,u,s],[-1,-1,-1],a,i)||d},h=o[0],f=o[1],m=o[2];return h&&(s=R(j([A(t,n-0,r-0)])[0],j([A(t-1,n-0,r-0)])[0],h),l=R(j([A(t,n-0,r-1)])[0],j([A(t-1,n-0,r-1)])[0],h),c=R(j([A(t,n-1,r-1)])[0],j([A(t-1,n-1,r-1)])[0],h),u=R(j([A(t,n-1,r-0)])[0],j([A(t-1,n-1,r-0)])[0],h),p()),f&&(s=R(j([A(t-0,n,r-0)])[0],j([A(t-0,n-1,r-0)])[0],f),l=R(j([A(t-0,n,r-1)])[0],j([A(t-0,n-1,r-1)])[0],f),c=R(j([A(t-1,n,r-1)])[0],j([A(t-1,n-1,r-1)])[0],f),u=R(j([A(t-1,n,r-0)])[0],j([A(t-1,n-1,r-0)])[0],f),p()),m&&(s=R(j([A(t-0,n-0,r)])[0],j([A(t-0,n-0,r-1)])[0],m),l=R(j([A(t-0,n-1,r)])[0],j([A(t-0,n-1,r-1)])[0],m),c=R(j([A(t-1,n-1,r)])[0],j([A(t-1,n-1,r-1)])[0],m),u=R(j([A(t-1,n-0,r)])[0],j([A(t-1,n-0,r-1)])[0],m),p()),d}function Z(e,t,n,r,a,i,o,s,l,c,u,d){var p=e;return d?(f&&"even"===e&&(p=null),H(p,t,n,r,a,i,o,s,l,c,u)):(f&&"odd"===e&&(p=null),H(p,l,s,o,i,a,r,n,t,c,u))}function $(e,t,n,r,a){for(var i=[],o=0,s=0;s<t.length;s++)for(var l=t[s],c=1;c<z;c++)for(var u=1;u<x;u++)i.push(G(e,A(l,u-1,c-1),A(l,u-1,c),A(l,u,c-1),A(l,u,c),n,r,(l+u+c)%2,a&&a[o]?a[o]:[])),o++;return i}function J(e,t,n,r,a){for(var i=[],o=0,s=0;s<t.length;s++)for(var l=t[s],c=1;c<M;c++)for(var u=1;u<z;u++)i.push(G(e,A(c-1,l,u-1),A(c,l,u-1),A(c-1,l,u),A(c,l,u),n,r,(c+l+u)%2,a&&a[o]?a[o]:[])),o++;return i}function Q(e,t,n,r,a){for(var i=[],o=0,s=0;s<t.length;s++)for(var l=t[s],c=1;c<x;c++)for(var u=1;u<M;u++)i.push(G(e,A(u-1,c-1,l),A(u-1,c,l),A(u,c-1,l),A(u,c,l),n,r,(u+c+l)%2,a&&a[o]?a[o]:[])),o++;return i}function K(e,t,n){for(var r=1;r<z;r++)for(var a=1;a<x;a++)for(var i=1;i<M;i++)Z(e,A(i-1,a-1,r-1),A(i-1,a-1,r),A(i-1,a,r-1),A(i-1,a,r),A(i,a-1,r-1),A(i,a-1,r),A(i,a,r-1),A(i,a,r),t,n,(i+a+r)%2)}function ee(e,t,n){f=!0,K(e,t,n),f=!1}function te(e,t,n,r,a,i){for(var o=[],s=0,l=0;l<t.length;l++)for(var c=t[l],u=1;u<z;u++)for(var d=1;d<x;d++)o.push(Y(e,c,d,u,n,r,a[l],i&&i[s]&&i[s])),s++;return o}function ne(e,t,n,r,a,i){for(var o=[],s=0,l=0;l<t.length;l++)for(var c=t[l],u=1;u<M;u++)for(var d=1;d<z;d++)o.push(Y(e,u,c,d,n,r,a[l],i&&i[s]&&i[s])),s++;return o}function re(e,t,n,r,a,i){for(var o=[],s=0,l=0;l<t.length;l++)for(var c=t[l],u=1;u<x;u++)for(var d=1;d<M;d++)o.push(Y(e,d,u,c,n,r,a[l],i&&i[s]&&i[s])),s++;return o}function ae(e,t){for(var n=[],r=e;r<t;r++)n.push(r);return n}return function(){E(),function(){for(var t=0;t<M;t++)for(var n=0;n<x;n++)for(var r=0;r<z;r++){var a=A(t,n,r);q(e._x[a],e._y[a],e._z[a],e._value[a])}}();var t=null;if(u&&h&&(L(h),function(e,t,n){m=!0,K(e,t,n),m=!1}(t,k,T)),c&&p){L(p);for(var n=e.surface.pattern,s=e.surface.count,d=0;d<s;d++){var f=1===s?.5:d/(s-1),_=(1-f)*k+f*T,S=Math.abs(_-O)>Math.abs(_-w)?[O,_]:[_,w];ee(n,S[0],S[1])}}var C=[[Math.min(k,w),Math.max(k,w)],[Math.min(O,T),Math.max(O,T)]];["x","y","z"].forEach(function(n){for(var r=[],a=0;a<C.length;a++){var i=0,o=C[a][0],s=C[a][1],c=e.slices[n];if(c.show&&c.fill){L(c.fill);var u=[],d=[],p=[];if(c.locations.length)for(var h=0;h<c.locations.length;h++){var f=l(c.locations[h],"x"===n?y:"y"===n?b:v);0===f.distRatio?u.push(f.id):f.id>0&&(d.push(f.id),"x"===n?p.push([f.distRatio,0,0]):"y"===n?p.push([0,f.distRatio,0]):p.push([0,0,f.distRatio]))}else u=ae(1,"x"===n?M-1:"y"===n?x-1:z-1);d.length>0&&(r[i]="x"===n?te(t,d,o,s,p,r[i]):"y"===n?ne(t,d,o,s,p,r[i]):re(t,d,o,s,p,r[i]),i++),u.length>0&&(r[i]="x"===n?$(t,u,o,s,r[i]):"y"===n?J(t,u,o,s,r[i]):Q(t,u,o,s,r[i]),i++)}var m=e.caps[n];m.show&&m.fill&&(L(m.fill),r[i]="x"===n?$(t,[0,M-1],o,s,r[i]):"y"===n?J(t,[0,x-1],o,s,r[i]):Q(t,[0,z-1],o,s,r[i]),i++)}}),0===g&&E(),e._meshX=r,e._meshY=a,e._meshZ=i,e._meshIntensity=o,e._Xs=y,e._Ys=b,e._Zs=v}(),e}t.exports={findNearestOnAxis:l,generateIsoMeshes:p,createIsosurfaceTrace:function(e,t){var r=e.glplot.gl,a=n({gl:r}),i=new c(e,a,t.uid);return a._trace=i,i.update(t),e.glplot.add(a),i}}}),z0t=Ee((e,t)=>{t.exports={attributes:gY(),supplyDefaults:yhe().supplyDefaults,calc:xhe(),colorbar:{min:"cmin",max:"cmax"},plot:MY().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:S4(),categories:["gl3d","showLegend"],meta:{description:["Draws isosurfaces between iso-min and iso-max values with coordinates given by","four 1-dimensional arrays containing the `value`, `x`, `y` and `z` of every vertex","of a uniform or non-uniform 3-D grid. Horizontal or vertical slices, caps as well as","spaceframe between iso-min and iso-max values could also be drawn using this trace."].join(" ")}}}),w0t=Ee((e,t)=>{t.exports=z0t()}),Ahe=Ee((e,t)=>{var n=Oc(),r=gY(),a=FL(),i=S1(),o=ms().extendFlat,s=Wu().overrideAll,l=t.exports=s(o({x:r.x,y:r.y,z:r.z,value:r.value,isomin:r.isomin,isomax:r.isomax,surface:r.surface,spaceframe:{show:{valType:"boolean",dflt:!1,description:["Displays/hides tetrahedron shapes between minimum and","maximum iso-values. Often useful when either caps or","surfaces are disabled or filled with values less than 1."].join(" ")},fill:{valType:"number",min:0,max:1,dflt:1,description:["Sets the fill ratio of the `spaceframe` elements. The default fill value","is 1 meaning that they are entirely shaded. Applying a `fill` ratio less","than one would allow the creation of openings parallel to the edges."].join(" ")}},slices:r.slices,caps:r.caps,text:r.text,hovertext:r.hovertext,xhoverformat:r.xhoverformat,yhoverformat:r.yhoverformat,zhoverformat:r.zhoverformat,valuehoverformat:r.valuehoverformat,hovertemplate:r.hovertemplate,hovertemplatefallback:r.hovertemplatefallback},n("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:r.colorbar,opacity:r.opacity,opacityscale:a.opacityscale,lightposition:r.lightposition,lighting:r.lighting,flatshading:r.flatshading,contour:r.contour,hoverinfo:o({},i.hoverinfo),showlegend:o({},i.showlegend,{dflt:!1})}),"calc","nested");l.x.editType=l.y.editType=l.z.editType=l.value.editType="calc+clearAxisTypes"}),k0t=Ee((e,t)=>{var n=Fr(),r=Ahe(),a=yhe().supplyIsoDefaults,i=fhe().opacityscaleDefaults;t.exports=function(e,t,o,s){function l(a,i){return n.coerce(e,t,r,a,i)}a(e,t,o,s,l),i(e,t,s,l)}}),D0t=Ee((e,t)=>{var n=Mp().gl_mesh3d,r=Gx().parseColorScale,a=Fr().isArrayOrTypedArray,i=jx(),o=xu().extractOpts,s=Kk(),l=MY().findNearestOnAxis,c=MY().generateIsoMeshes;function u(e,t,n){this.scene=e,this.uid=n,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var d=u.prototype;d.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,n=this.data._meshX[t],r=this.data._meshY[t],i=this.data._meshZ[t],o=this.data._Ys.length,s=this.data._Zs.length,c=l(n,this.data._Xs).id,u=l(r,this.data._Ys).id,d=l(i,this.data._Zs).id,p=e.index=d+s*u+s*o*c;e.traceCoordinate=[this.data._meshX[p],this.data._meshY[p],this.data._meshZ[p],this.data._value[p]];var h=this.data.hovertext||this.data.text;return a(h)&&void 0!==h[p]?e.textLabel=h[p]:h&&(e.textLabel=h),!0}},d.update=function(e){var t=this.scene,n=t.fullSceneLayout;function a(e,t,n,r){return t.map(function(t){return e.d2l(t,0,r)*n})}this.data=c(e);var l={positions:s(a(n.xaxis,e._meshX,t.dataScale[0],e.xcalendar),a(n.yaxis,e._meshY,t.dataScale[1],e.ycalendar),a(n.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),cells:s(e._meshI,e._meshJ,e._meshK),lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:i(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},u=o(e);l.vertexIntensity=e._meshIntensity,l.vertexIntensityBounds=[u.min,u.max],l.colormap=r(e),this.mesh.update(l)},d.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},t.exports=function(e,t){var r=e.glplot.gl,a=n({gl:r}),i=new u(e,a,t.uid);return a._trace=i,i.update(t),e.glplot.add(a),i}}),L0t=Ee((e,t)=>{t.exports={attributes:Ahe(),supplyDefaults:k0t(),calc:xhe(),colorbar:{min:"cmin",max:"cmax"},plot:D0t(),moduleType:"trace",name:"volume",basePlotModule:S4(),categories:["gl3d","showLegend"],meta:{description:["Draws volume trace between iso-min and iso-max values with coordinates given by","four 1-dimensional arrays containing the `value`, `x`, `y` and `z` of every vertex","of a uniform or non-uniform 3-D grid. Horizontal or vertical slices, caps as well as","spaceframe between iso-min and iso-max values could also be drawn using this trace."].join(" ")}}}),I0t=Ee((e,t)=>{t.exports=L0t()}),F0t=Ee((e,t)=>{var n=vo(),r=Fr(),a=kh(),i=Zk();t.exports=function(e,t,o,s){function l(n,a){return r.coerce(e,t,i,n,a)}function c(e){var t=e.map(function(e){var t=l(e);return t&&r.isArrayOrTypedArray(t)?t:null});return t.every(function(e){return e&&e.length===t[0].length})&&t}c(["x","y","z"])?(c(["i","j","k"]),(!t.i||t.j&&t.k)&&(!t.j||t.k&&t.i)&&(!t.k||t.i&&t.j)?(n.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y","z"],s),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(e){l(e)}),l("contour.show")&&(l("contour.color"),l("contour.width")),"intensity"in e?(l("intensity"),l("intensitymode"),a(e,t,s,l,{prefix:"",cLetter:"c"})):(t.showscale=!1,"facecolor"in e?l("facecolor"):"vertexcolor"in e?l("vertexcolor"):l("color",o)),l("text"),l("hovertext"),l("hovertemplate"),l("hovertemplatefallback"),l("xhoverformat"),l("yhoverformat"),l("zhoverformat"),t._length=null):t.visible=!1):t.visible=!1}}),U0t=Ee((e,t)=>{var n=f2();t.exports=function(e,t){t.intensity&&n(e,t,{vals:t.intensity,containerStr:"",cLetter:"c"})}}),X0t=Ee((e,t)=>{var n=Mp().gl_mesh3d,r=Mp().delaunay_triangulate,a=Mp().alpha_shape,i=Mp().convex_hull,o=Gx().parseColorScale,s=Fr().isArrayOrTypedArray,l=jx(),c=xu().extractOpts,u=Kk();function d(e,t,n){this.scene=e,this.uid=n,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var p=d.prototype;function h(e){for(var t=[],n=e.length,r=0;r<n;r++)t[r]=l(e[r]);return t}function f(e,t,n,r){for(var a=[],i=t.length,o=0;o<i;o++)a[o]=e.d2l(t[o],0,r)*n;return a}function m(e){for(var t=[],n=e.length,r=0;r<n;r++)t[r]=Math.round(e[r]);return t}function g(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r]<=-.5||e[r]>=t-.5)return!1;return!0}p.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var n=this.data.hovertext||this.data.text;return s(n)&&void 0!==n[t]?e.textLabel=n[t]:n&&(e.textLabel=n),!0}},p.update=function(e){var t=this.scene,n=t.fullSceneLayout;this.data=e;var s,d=e.x.length,p=u(f(n.xaxis,e.x,t.dataScale[0],e.xcalendar),f(n.yaxis,e.y,t.dataScale[1],e.ycalendar),f(n.zaxis,e.z,t.dataScale[2],e.zcalendar));if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!g(e.i,d)||!g(e.j,d)||!g(e.k,d))return;s=u(m(e.i),m(e.j),m(e.k))}else s=0===e.alphahull?i(p):e.alphahull>0?a(e.alphahull,p):function(e,t){for(var n=["x","y","z"].indexOf(e),a=[],i=t.length,o=0;o<i;o++)a[o]=[t[o][(n+1)%3],t[o][(n+2)%3]];return r(a)}(e.delaunayaxis,p);var y={positions:p,cells:s,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:l(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var b=c(e);this.color="#fff";var v=e.intensitymode;y[v+"Intensity"]=e.intensity,y[v+"IntensityBounds"]=[b.min,b.max],y.colormap=o(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],y.vertexColors=h(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],y.cellColors=h(e.facecolor)):(this.color=e.color,y.meshColor=l(e.color));this.mesh.update(y)},p.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},t.exports=function(e,t){var r=e.glplot.gl,a=n({gl:r}),i=new d(e,a,t.uid);return a._trace=i,i.update(t),e.glplot.add(a),i}}),Z0t=Ee((e,t)=>{t.exports={attributes:Zk(),supplyDefaults:F0t(),calc:U0t(),colorbar:{min:"cmin",max:"cmax"},plot:X0t(),moduleType:"trace",name:"mesh3d",basePlotModule:S4(),categories:["gl3d","showLegend"],meta:{description:["Draws sets of triangles with coordinates given by","three 1-dimensional arrays in `x`, `y`, `z` and","(1) a sets of `i`, `j`, `k` indices","(2) Delaunay triangulation or","(3) the Alpha-shape algorithm or","(4) the Convex-hull algorithm"].join(" ")}}}),K0t=Ee((e,t)=>{t.exports=Z0t()}),Dhe=Ee((e,t)=>{var n=Oc(),r=Pd().axisHoverFormat,{hovertemplateAttrs:a,templatefallbackAttrs:i}=p1(),o=Zk(),s=S1(),l=ms().extendFlat,c={x:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the x coordinates of the vector field","and of the displayed cones."].join(" ")},y:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the y coordinates of the vector field","and of the displayed cones."].join(" ")},z:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the z coordinates of the vector field","and of the displayed cones."].join(" ")},u:{valType:"data_array",editType:"calc",description:"Sets the x components of the vector field."},v:{valType:"data_array",editType:"calc",description:"Sets the y components of the vector field."},w:{valType:"data_array",editType:"calc",description:"Sets the z components of the vector field."},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled",description:["Determines whether `sizeref` is set as a *scaled* (i.e unitless) scalar","(normalized by the max u/v/w norm in the vector field) or as","*absolute* value (in the same units as the vector field).","To display sizes in actual vector length use *raw*."].join(" ")},sizeref:{valType:"number",editType:"calc",min:0,description:["Adjusts the cone size scaling.","The size of the cones is determined by their u/v/w norm multiplied a factor and `sizeref`.",'This factor (computed internally) corresponds to the minimum "time" to travel across',"two successive x/y/z positions at the average velocity of those two successive positions.","All cones in a given trace use the same factor.","With `sizemode` set to *raw*, its default value is *1*.","With `sizemode` set to *scaled*, `sizeref` is unitless, its default value is *0.5*.","With `sizemode` set to *absolute*, `sizeref` has the same units as the u/v/w vector field,","its the default value is half the sample's maximum vector norm."].join(" ")},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm",description:["Sets the cones' anchor with respect to their x/y/z positions.","Note that *cm* denote the cone's center of mass which corresponds to","1/4 from the tail to tip."].join(" ")},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:["Sets the text elements associated with the cones.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:"Same as `text`."},hovertemplate:a({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:i({editType:"calc"}),uhoverformat:r("u",1),vhoverformat:r("v",1),whoverformat:r("w",1),xhoverformat:r("x"),yhoverformat:r("y"),zhoverformat:r("z"),showlegend:l({},s.showlegend,{dflt:!1})};l(c,n("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));["opacity","lightposition","lighting"].forEach(function(e){c[e]=o[e]}),c.hoverinfo=l({},s.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),t.exports=c}),tlt=Ee((e,t)=>{var n=Fr(),r=kh(),a=Dhe();t.exports=function(e,t,i,o){function s(r,i){return n.coerce(e,t,a,r,i)}var l=s("u"),c=s("v"),u=s("w"),d=s("x"),p=s("y"),h=s("z");if(l&&l.length&&c&&c.length&&u&&u.length&&d&&d.length&&p&&p.length&&h&&h.length){var f=s("sizemode");s("sizeref","raw"===f?1:.5),s("anchor"),s("lighting.ambient"),s("lighting.diffuse"),s("lighting.specular"),s("lighting.roughness"),s("lighting.fresnel"),s("lightposition.x"),s("lightposition.y"),s("lightposition.z"),r(e,t,o,s,{prefix:"",cLetter:"c"}),s("text"),s("hovertext"),s("hovertemplate"),s("hovertemplatefallback"),s("uhoverformat"),s("vhoverformat"),s("whoverformat"),s("xhoverformat"),s("yhoverformat"),s("zhoverformat"),t._length=null}else t.visible=!1}}),nlt=Ee((e,t)=>{var n=f2();t.exports=function(e,t){for(var r=t.u,a=t.v,i=t.w,o=Math.min(t.x.length,t.y.length,t.z.length,r.length,a.length,i.length),s=-1/0,l=1/0,c=0;c<o;c++){var u=r[c],d=a[c],p=i[c],h=Math.sqrt(u*u+d*d+p*p);s=Math.max(s,h),l=Math.min(l,h)}t._len=o,t._normMax=s,n(e,t,{vals:[l,s],containerStr:"",cLetter:"c"})}}),llt=Ee((e,t)=>{var n=Mp().gl_cone3d,r=Mp().gl_cone3d.createConeMesh,a=Fr().simpleMap,i=Gx().parseColorScale,o=xu().extractOpts,s=Fr().isArrayOrTypedArray,l=Kk();function c(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var u=c.prototype;u.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,n=this.data.x[t],r=this.data.y[t],a=this.data.z[t],i=this.data.u[t],o=this.data.v[t],l=this.data.w[t];e.traceCoordinate=[n,r,a,i,o,l,Math.sqrt(i*i+o*o+l*l)];var c=this.data.hovertext||this.data.text;return s(c)&&void 0!==c[t]?e.textLabel=c[t]:c&&(e.textLabel=c),!0}};var d={xaxis:0,yaxis:1,zaxis:2},p={tip:1,tail:0,cm:.25,center:.5},h={tip:1,tail:1,cm:.75,center:.5};function f(e,t){var r=e.fullSceneLayout,s=e.dataScale,c={};function u(e,t){var n=r[t],i=s[d[t]];return a(e,function(e){return n.d2l(e)*i})}c.vectors=l(u(t.u,"xaxis"),u(t.v,"yaxis"),u(t.w,"zaxis"),t._len),c.positions=l(u(t.x,"xaxis"),u(t.y,"yaxis"),u(t.z,"zaxis"),t._len);var f=o(t);c.colormap=i(t),c.vertexIntensityBounds=[f.min/t._normMax,f.max/t._normMax],c.coneOffset=p[t.anchor];var m=t.sizemode;"scaled"===m?c.coneSize=t.sizeref||.5:"absolute"===m?c.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:"raw"===m&&(c.coneSize=t.sizeref),c.coneSizemode=m;var g=n(c),y=t.lightposition;return g.lightPosition=[y.x,y.y,y.z],g.ambient=t.lighting.ambient,g.diffuse=t.lighting.diffuse,g.specular=t.lighting.specular,g.roughness=t.lighting.roughness,g.fresnel=t.lighting.fresnel,g.opacity=t.opacity,t._pad=h[t.anchor]*g.vectorScale*g.coneScale*t._normMax,g}u.update=function(e){this.data=e;var t=f(this.scene,e);this.mesh.update(t)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},t.exports=function(e,t){var n=e.glplot.gl,a=f(e,t),i=r(n,a),o=new c(e,t.uid);return o.mesh=i,o.data=t,i._trace=o,e.glplot.add(i),o}}),ult=Ee((e,t)=>{t.exports={moduleType:"trace",name:"cone",basePlotModule:S4(),categories:["gl3d","showLegend"],attributes:Dhe(),supplyDefaults:tlt(),colorbar:{min:"cmin",max:"cmax"},calc:nlt(),plot:llt(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{description:["Use cone traces to visualize vector fields.","","Specify a vector field using 6 1D arrays,","3 position arrays `x`, `y` and `z`","and 3 vector component arrays `u`, `v`, `w`.","The cones are drawn exactly at the positions given","by `x`, `y` and `z`."].join(" ")}}}),flt=Ee((e,t)=>{t.exports=ult()}),Phe=Ee((e,t)=>{var n=Oc(),r=Pd().axisHoverFormat,{hovertemplateAttrs:a,templatefallbackAttrs:i}=p1(),o=Zk(),s=S1(),l=ms().extendFlat,c={x:{valType:"data_array",editType:"calc+clearAxisTypes",description:"Sets the x coordinates of the vector field."},y:{valType:"data_array",editType:"calc+clearAxisTypes",description:"Sets the y coordinates of the vector field."},z:{valType:"data_array",editType:"calc+clearAxisTypes",description:"Sets the z coordinates of the vector field."},u:{valType:"data_array",editType:"calc",description:"Sets the x components of the vector field."},v:{valType:"data_array",editType:"calc",description:"Sets the y components of the vector field."},w:{valType:"data_array",editType:"calc",description:"Sets the z components of the vector field."},starts:{x:{valType:"data_array",editType:"calc",description:["Sets the x components of the starting position of the streamtubes"].join(" ")},y:{valType:"data_array",editType:"calc",description:["Sets the y components of the starting position of the streamtubes"].join(" ")},z:{valType:"data_array",editType:"calc",description:["Sets the z components of the starting position of the streamtubes"].join(" ")},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc",description:["The maximum number of displayed segments in a streamtube."].join(" ")},sizeref:{valType:"number",editType:"calc",min:0,dflt:1,description:["The scaling factor for the streamtubes.","The default is 1, which avoids two max divergence tubes from touching","at adjacent starting positions."].join(" ")},text:{valType:"string",dflt:"",editType:"calc",description:["Sets a text element associated with this trace.","If trace `hoverinfo` contains a *text* flag,","this text element will be seen in all hover labels.","Note that streamtube traces do not support array `text` values."].join(" ")},hovertext:{valType:"string",dflt:"",editType:"calc",description:"Same as `text`."},hovertemplate:a({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:i({editType:"calc"}),uhoverformat:r("u",1),vhoverformat:r("v",1),whoverformat:r("w",1),xhoverformat:r("x"),yhoverformat:r("y"),zhoverformat:r("z"),showlegend:l({},s.showlegend,{dflt:!1})};l(c,n("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));["opacity","lightposition","lighting"].forEach(function(e){c[e]=o[e]}),c.hoverinfo=l({},s.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"}),t.exports=c}),vlt=Ee((e,t)=>{var n=Fr(),r=kh(),a=Phe();t.exports=function(e,t,i,o){function s(r,i){return n.coerce(e,t,a,r,i)}var l=s("u"),c=s("v"),u=s("w"),d=s("x"),p=s("y"),h=s("z");l&&l.length&&c&&c.length&&u&&u.length&&d&&d.length&&p&&p.length&&h&&h.length?(s("starts.x"),s("starts.y"),s("starts.z"),s("maxdisplayed"),s("sizeref"),s("lighting.ambient"),s("lighting.diffuse"),s("lighting.specular"),s("lighting.roughness"),s("lighting.fresnel"),s("lightposition.x"),s("lightposition.y"),s("lightposition.z"),r(e,t,o,s,{prefix:"",cLetter:"c"}),s("text"),s("hovertext"),s("hovertemplate"),s("hovertemplatefallback"),s("uhoverformat"),s("vhoverformat"),s("whoverformat"),s("xhoverformat"),s("yhoverformat"),s("zhoverformat"),t._length=null):t.visible=!1}}),Alt=Ee((e,t)=>{var n=Mp().gl_streamtube3d,r=n.createTubeMesh,a=Fr(),i=Gx().parseColorScale,o=xu().extractOpts,s=Kk(),l={xaxis:0,yaxis:1,zaxis:2};function c(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var u=c.prototype;function d(e){var t=e.length;return t>2?e.slice(1,t-1):2===t?[(e[0]+e[1])/2]:e}function p(e){var t=e.length;return 1===t?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function h(e,t){var r=e.fullSceneLayout,c=e.dataScale,u=t._len,h={};function f(e,t){var n=r[t],i=c[l[t]];return a.simpleMap(e,function(e){return n.d2l(e)*i})}if(h.vectors=s(f(t._u,"xaxis"),f(t._v,"yaxis"),f(t._w,"zaxis"),u),!u)return{positions:[],cells:[]};var m=f(t._Xs,"xaxis"),g=f(t._Ys,"yaxis"),y=f(t._Zs,"zaxis");if(h.meshgrid=[m,g,y],h.gridFill=t._gridFill,t._slen)h.startingPositions=s(f(t._startsX,"xaxis"),f(t._startsY,"yaxis"),f(t._startsZ,"zaxis"));else{for(var b=g[0],v=d(m),M=d(y),x=new Array(v.length*M.length),z=0,_=0;_<v.length;_++)for(var A=0;A<M.length;A++)x[z++]=[v[_],b,M[A]];h.startingPositions=x}h.colormap=i(t),h.tubeSize=t.sizeref,h.maxLength=t.maxdisplayed;var O=f(t._xbnds,"xaxis"),w=f(t._ybnds,"yaxis"),k=f(t._zbnds,"zaxis"),T=p(m),S=p(g),C=p(y),E=[[O[0]-T[0],w[0]-S[0],k[0]-C[0]],[O[1]+T[1],w[1]+S[1],k[1]+C[1]]],q=n(h,E),D=o(t);q.vertexIntensityBounds=[D.min/t._normMax,D.max/t._normMax];var R=t.lightposition;return q.lightPosition=[R.x,R.y,R.z],q.ambient=t.lighting.ambient,q.diffuse=t.lighting.diffuse,q.specular=t.lighting.specular,q.roughness=t.lighting.roughness,q.fresnel=t.lighting.fresnel,q.opacity=t.opacity,t._pad=q.tubeScale*t.sizeref*2,q}u.handlePick=function(e){var t=this.scene.fullSceneLayout,n=this.scene.dataScale;function r(e,r){var a=t[r],i=n[l[r]];return a.l2c(e)/i}if(e.object===this.mesh){var a=e.data.position,i=e.data.velocity;return e.traceCoordinate=[r(a[0],"xaxis"),r(a[1],"yaxis"),r(a[2],"zaxis"),r(i[0],"xaxis"),r(i[1],"yaxis"),r(i[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}},u.update=function(e){this.data=e;var t=h(this.scene,e);this.mesh.update(t)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},t.exports=function(e,t){var n=e.glplot.gl,a=h(e,t),i=r(n,a),o=new c(e,t.uid);return o.mesh=i,o.data=t,i._trace=o,e.glplot.add(i),o}}),Olt=Ee((e,t)=>{t.exports={moduleType:"trace",name:"streamtube",basePlotModule:S4(),categories:["gl3d","showLegend"],attributes:Phe(),supplyDefaults:vlt(),colorbar:{min:"cmin",max:"cmax"},calc:yY().calc,plot:Alt(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{description:["Use a streamtube trace to visualize flow in a vector field.","","Specify a vector field using 6 1D arrays of equal length,","3 position arrays `x`, `y` and `z`","and 3 vector component arrays `u`, `v`, and `w`.","","By default, the tubes' starting positions will be cut from the vector field's","x-z plane at its minimum y value.","To specify your own starting position, use attributes `starts.x`, `starts.y`","and `starts.z`.","The color is encoded by the norm of (u, v, w), and the local radius","by the divergence of (u, v, w)."].join(" ")}}}),Slt=Ee((e,t)=>{t.exports=Olt()}),zO=Ee((e,t)=>{var{hovertemplateAttrs:n,texttemplateAttrs:r,templatefallbackAttrs:a}=p1(),i=tb(),o=Id(),s=S1(),l=Oc(),c=pp().dash,u=ms().extendFlat,d=Wu().overrideAll,p=o.marker,h=o.line,f=p.line,m=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");t.exports=d({lon:{valType:"data_array",description:"Sets the longitude coordinates (in degrees East)."},lat:{valType:"data_array",description:"Sets the latitude coordinates (in degrees North)."},locations:{valType:"data_array",description:["Sets the coordinates via location IDs or names.","Coordinates correspond to the centroid of each location given.","See `locationmode` for more info."].join(" ")},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3",description:[m,"Determines the set of locations used to match entries in `locations`","to regions on the map.","Values *ISO-3*, *USA-states*, *country names* correspond to features on","the base map and value *geojson-id* corresponds to features from a custom","GeoJSON linked to the `geojson` attribute.","*USA-states* accepts both two-letter abbreviations (e.g. *CA*) and","full state names (e.g. *California*)."].join(" ")},geojson:{valType:"any",editType:"calc",description:["Sets optional GeoJSON data associated with this trace.","If not given, the features on the base map are used when `locations` is set.","It can be set as a valid GeoJSON object or as a URL string.","Note that we only accept GeoJSONs of type *FeatureCollection* or *Feature*","with geometries of type *Polygon* or *MultiPolygon*."].join(" ")},featureidkey:{valType:"string",editType:"calc",dflt:"id",description:["Sets the key in GeoJSON features which is used as id to match the items","included in the `locations` array.","Only has an effect when `geojson` is set.","Support nested property, for example *properties.name*."].join(" ")},mode:u({},o.mode,{dflt:"markers"}),text:u({},o.text,{description:["Sets text elements associated with each (lon,lat) pair","or item in `locations`.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (lon,lat) or `locations` coordinates.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")}),texttemplate:r({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:a({editType:"plot"}),hovertext:u({},o.hovertext,{description:["Sets hover text elements associated with each (lon,lat) pair","or item in `locations`.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (lon,lat) or `locations` coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")}),textfont:o.textfont,textposition:o.textposition,line:{color:h.color,width:h.width,dash:c},connectgaps:o.connectgaps,marker:u({symbol:p.symbol,opacity:p.opacity,angle:p.angle,angleref:u({},p.angleref,{values:["previous","up","north"],description:["Sets the reference for marker angle.","With *previous*, angle 0 points along the line from the previous point to this one.","With *up*, angle 0 points toward the top of the screen.","With *north*, angle 0 points north based on the current map projection."].join(" ")}),standoff:p.standoff,size:p.size,sizeref:p.sizeref,sizemin:p.sizemin,sizemode:p.sizemode,colorbar:p.colorbar,line:u({width:f.width,dash:f.dash},l("marker.line")),gradient:p.gradient},l("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none",description:["Sets the area to fill with a solid color.","Use with `fillcolor` if not *none*.","*toself* connects the endpoints of the trace (or each segment","of the trace if it has gaps) into a closed shape."].join(" ")},fillcolor:i(),selected:o.selected,unselected:o.unselected,hoverinfo:u({},s.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:n(),hovertemplatefallback:a()},"calc","nested")}),Llt=Ee((e,t)=>{var n=Fr(),r=Hc(),a=Wv(),i=Yg(),o=Zg(),s=ib(),l=zO(),c=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");t.exports=function(e,t,u,d){function p(r,a){return n.coerce(e,t,l,r,a)}var h,f=p("locations");if(f&&f.length){var m,g=p("geojson");("string"==typeof g&&""!==g||n.isPlainObject(g))&&(m="geojson-id");var y=p("locationmode",m);"country names"===y&&n.warn(c),"geojson-id"===y&&p("featureidkey"),h=f.length}else{var b=p("lon")||[],v=p("lat")||[];h=Math.min(b.length,v.length)}h?(t._length=h,p("text"),p("hovertext"),p("hovertemplate"),p("hovertemplatefallback"),p("mode"),r.hasMarkers(t)&&a(e,t,u,d,p,{gradient:!0}),r.hasLines(t)&&(i(e,t,u,d,p),p("connectgaps")),r.hasText(t)&&(p("texttemplate"),p("texttemplatefallback"),o(e,t,d,p)),p("fill"),"none"!==t.fill&&s(e,t,u,p),n.coerceSelectionMarkerOpacity(t,p)):t.visible=!1}}),Nlt=Ee((e,t)=>{var n=es();t.exports=function(e,t,r){var a={},i=r[t.geo]._subplot.mockAxis,o=e.lonlat;return a.lonLabel=n.tickText(i,i.c2l(o[0]),!0).text,a.latLabel=n.tickText(i,i.c2l(o[1]),!0).text,a}}),wY=Ee((e,t)=>{var n=xs(),r=T0().BADNUM,a=$g(),i=E3(),o=Kg(),s=Fr().isArrayOrTypedArray,l=Fr()._;function c(e){return e&&"string"==typeof e}t.exports=function(e,t){var u,d=s(t.locations),p=d?t.locations.length:t._length,h=new Array(p);u=t.geojson?function(e){return c(e)||n(e)}:c;for(var f=0;f<p;f++){var m=h[f]={};if(d){var g=t.locations[f];m.loc=u(g)?g:null}else{var y=t.lon[f],b=t.lat[f];n(y)&&n(b)?m.lonlat=[+y,+b]:m.lonlat=[r,r]}}return i(h,t),a(e,t),o(h,t),p&&(h[0].t={labels:{lat:l(e,"lat:")+" ",lon:l(e,"lon:")+" "}}),h}}),VL=Ee(e=>{e.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"},e.axesNames=["lonaxis","lataxis"],e.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},e.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180},e.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}},e.clipPad=.001,e.precision=.1,e.landColor="#F0DC82",e.waterColor="#3399FF",e.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},e.sphereSVG={type:"Sphere"},e.fillLayers={ocean:1,land:1,lakes:1},e.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},e.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],e.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"],e.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}}),Bhe=Ee((e,t)=>{var n,r;n=e,r=function(e){function t(e){return e}function n(e){if(null==e)return t;var n,r,a=e.scale[0],i=e.scale[1],o=e.translate[0],s=e.translate[1];return function(e,t){t||(n=r=0);var l=2,c=e.length,u=new Array(c);for(u[0]=(n+=e[0])*a+o,u[1]=(r+=e[1])*i+s;l<c;)u[l]=e[l],++l;return u}}function r(e){var t,r=n(e.transform),a=1/0,i=a,o=-a,s=-a;function l(e){(e=r(e))[0]<a&&(a=e[0]),e[0]>o&&(o=e[0]),e[1]<i&&(i=e[1]),e[1]>s&&(s=e[1])}function c(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(c);break;case"Point":l(e.coordinates);break;case"MultiPoint":e.coordinates.forEach(l)}}for(t in e.arcs.forEach(function(e){for(var t,n=-1,l=e.length;++n<l;)(t=r(e[n],n))[0]<a&&(a=t[0]),t[0]>o&&(o=t[0]),t[1]<i&&(i=t[1]),t[1]>s&&(s=t[1])}),e.objects)c(e.objects[t]);return[a,i,o,s]}function a(e,t){var n=t.id,r=t.bbox,a=null==t.properties?{}:t.properties,o=i(e,t);return null==n&&null==r?{type:"Feature",properties:a,geometry:o}:null==r?{type:"Feature",id:n,properties:a,geometry:o}:{type:"Feature",id:n,bbox:r,properties:a,geometry:o}}function i(e,t){var r=n(e.transform),a=e.arcs;function i(e,t){t.length&&t.pop();for(var n=a[e<0?~e:e],i=0,o=n.length;i<o;++i)t.push(r(n[i],i));e<0&&function(e,t){for(var n,r=e.length,a=r-t;a<--r;)n=e[a],e[a++]=e[r],e[r]=n}(t,o)}function o(e){return r(e)}function s(e){for(var t=[],n=0,r=e.length;n<r;++n)i(e[n],t);return t.length<2&&t.push(t[0]),t}function l(e){for(var t=s(e);t.length<4;)t.push(t[0]);return t}function c(e){return e.map(l)}return function e(t){var n,r=t.type;switch(r){case"GeometryCollection":return{type:r,geometries:t.geometries.map(e)};case"Point":n=o(t.coordinates);break;case"MultiPoint":n=t.coordinates.map(o);break;case"LineString":n=s(t.arcs);break;case"MultiLineString":n=t.arcs.map(s);break;case"Polygon":n=c(t.arcs);break;case"MultiPolygon":n=t.arcs.map(c);break;default:return null}return{type:r,coordinates:n}}(t)}function o(e,t){var n={},r={},a={},i=[],o=-1;function s(e,t){for(var r in e){var a=e[r];delete t[a.start],delete a.start,delete a.end,a.forEach(function(e){n[e<0?~e:e]=1}),i.push(a)}}return t.forEach(function(n,r){var a,i=e.arcs[n<0?~n:n];i.length<3&&!i[1][0]&&!i[1][1]&&(a=t[++o],t[o]=n,t[r]=a)}),t.forEach(function(t){var n,i,o=function(t){var n,r=e.arcs[t<0?~t:t],a=r[0];return e.transform?(n=[0,0],r.forEach(function(e){n[0]+=e[0],n[1]+=e[1]})):n=r[r.length-1],t<0?[n,a]:[a,n]}(t),s=o[0],l=o[1];if(n=a[s])if(delete a[n.end],n.push(t),n.end=l,i=r[l]){delete r[i.start];var c=i===n?n:n.concat(i);r[c.start=n.start]=a[c.end=i.end]=c}else r[n.start]=a[n.end]=n;else if(n=r[l])if(delete r[n.start],n.unshift(t),n.start=s,i=a[s]){delete a[i.end];var u=i===n?n:i.concat(n);r[u.start=i.start]=a[u.end=n.end]=u}else r[n.start]=a[n.end]=n;else r[(n=[t]).start=s]=a[n.end=l]=n}),s(a,r),s(r,a),t.forEach(function(e){n[e<0?~e:e]||i.push([e])}),i}function s(e,t,n){var r,a,i;if(arguments.length>1)r=function(e,t,n){var r,a=[],i=[];function o(e){var t=e<0?~e:e;(i[t]||(i[t]=[])).push({i:e,g:r})}function s(e){e.forEach(o)}function l(e){e.forEach(s)}function c(e){e.forEach(l)}function u(e){switch(r=e,e.type){case"GeometryCollection":e.geometries.forEach(u);break;case"LineString":s(e.arcs);break;case"MultiLineString":case"Polygon":l(e.arcs);break;case"MultiPolygon":c(e.arcs)}}return u(t),i.forEach(null==n?function(e){a.push(e[0].i)}:function(e){n(e[0].g,e[e.length-1].g)&&a.push(e[0].i)}),a}(0,t,n);else for(a=0,r=new Array(i=e.arcs.length);a<i;++a)r[a]=a;return{type:"MultiLineString",arcs:o(e,r)}}function l(e,t){var n={},r=[],a=[];function s(e){e.forEach(function(t){t.forEach(function(t){(n[t=t<0?~t:t]||(n[t]=[])).push(e)})}),r.push(e)}function l(t){return function(e){for(var t,n=-1,r=e.length,a=e[r-1],i=0;++n<r;)t=a,a=e[n],i+=t[0]*a[1]-t[1]*a[0];return Math.abs(i)}(i(e,{type:"Polygon",arcs:[t]}).coordinates[0])}return t.forEach(function e(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(e);break;case"Polygon":s(t.arcs);break;case"MultiPolygon":t.arcs.forEach(s)}}),r.forEach(function(e){if(!e._){var t=[],r=[e];for(e._=1,a.push(t);e=r.pop();)t.push(e),e.forEach(function(e){e.forEach(function(e){n[e<0?~e:e].forEach(function(e){e._||(e._=1,r.push(e))})})})}}),r.forEach(function(e){delete e._}),{type:"MultiPolygon",arcs:a.map(function(t){var r,a=[];if(t.forEach(function(e){e.forEach(function(e){e.forEach(function(e){n[e<0?~e:e].length<2&&a.push(e)})})}),(r=(a=o(e,a)).length)>1)for(var i,s,c=1,u=l(a[0]);c<r;++c)(i=l(a[c]))>u&&(s=a[0],a[0]=a[c],a[c]=s,u=i);return a}).filter(function(e){return e.length>0})}}function c(e,t){for(var n=0,r=e.length;n<r;){var a=n+r>>>1;e[a]<t?n=a+1:r=a}return n}function u(e){if(null==e)return t;var n,r,a=e.scale[0],i=e.scale[1],o=e.translate[0],s=e.translate[1];return function(e,t){t||(n=r=0);var l=2,c=e.length,u=new Array(c),d=Math.round((e[0]-o)/a),p=Math.round((e[1]-s)/i);for(u[0]=d-n,n=d,u[1]=p-r,r=p;l<c;)u[l]=e[l],++l;return u}}e.bbox=r,e.feature=function(e,t){return"string"==typeof t&&(t=e.objects[t]),"GeometryCollection"===t.type?{type:"FeatureCollection",features:t.geometries.map(function(t){return a(e,t)})}:a(e,t)},e.merge=function(e){return i(e,l.apply(this,arguments))},e.mergeArcs=l,e.mesh=function(e){return i(e,s.apply(this,arguments))},e.meshArcs=s,e.neighbors=function(e){var t={},n=e.map(function(){return[]});function r(e,n){e.forEach(function(e){e<0&&(e=~e);var r=t[e];r?r.push(n):t[e]=[n]})}function a(e,t){e.forEach(function(e){r(e,t)})}var i={LineString:r,MultiLineString:a,Polygon:a,MultiPolygon:function(e,t){e.forEach(function(e){a(e,t)})}};for(var o in e.forEach(function e(t,n){"GeometryCollection"===t.type?t.geometries.forEach(function(t){e(t,n)}):t.type in i&&i[t.type](t.arcs,n)}),t)for(var s=t[o],l=s.length,u=0;u<l;++u)for(var d=u+1;d<l;++d){var p,h=s[u],f=s[d];(p=n[h])[o=c(p,f)]!==f&&p.splice(o,0,f),(p=n[f])[o=c(p,h)]!==h&&p.splice(o,0,h)}return n},e.quantize=function(e,t){if(e.transform)throw new Error("already quantized");if(t&&t.scale)l=e.bbox;else{if(!((n=Math.floor(t))>=2))throw new Error("n must be ≥2");var n,a=(l=e.bbox||r(e))[0],i=l[1],o=l[2],s=l[3];t={scale:[o-a?(o-a)/(n-1):1,s-i?(s-i)/(n-1):1],translate:[a,i]}}var l,c,d=u(t),p=e.objects,h={};function f(e){return d(e)}function m(e){var t;switch(e.type){case"GeometryCollection":t={type:"GeometryCollection",geometries:e.geometries.map(m)};break;case"Point":t={type:"Point",coordinates:f(e.coordinates)};break;case"MultiPoint":t={type:"MultiPoint",coordinates:e.coordinates.map(f)};break;default:return e}return null!=e.id&&(t.id=e.id),null!=e.bbox&&(t.bbox=e.bbox),null!=e.properties&&(t.properties=e.properties),t}for(c in p)h[c]=m(p[c]);return{type:"Topology",bbox:l,transform:t,objects:h,arcs:e.arcs.map(function(e){var t,n=0,r=1,a=e.length,i=new Array(a);for(i[0]=d(e[0],0);++n<a;)((t=d(e[n],n))[0]||t[1])&&(i[r++]=t);return 1===r&&(i[r++]=[0,0]),i.length=r,i})}},e.transform=n,e.untransform=u,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?r(e):"function"==typeof define&&define.amd?define(["exports"],r):r((n=n||self).topojson=n.topojson||{})}),TY=Ee((e,t)=>{var n=t.exports={},r=VL().locationmodeToLayer,a=Bhe().feature;n.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")},n.getTopojsonPath=function(e,t){return`${e+=e.endsWith("/")?"":"/"}${t}.json`},n.getTopojsonFeatures=function(e,t){var n=r[e.locationmode],i=t.objects[n];return a(t,i).features}}),E4=Ee(e=>{var t=T0().BADNUM;e.calcTraceToLineCoords=function(e){for(var n=e[0].trace.connectgaps,r=[],a=[],i=0;i<e.length;i++){var o=e[i].lonlat;o[0]!==t?a.push(o):!n&&a.length>0&&(r.push(a),a=[])}return a.length>0&&r.push(a),r},e.makeLine=function(e){return 1===e.length?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}},e.makePolygon=function(e){if(1===e.length)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=[e[n]];return{type:"MultiPolygon",coordinates:t}},e.makeBlank=function(){return{type:"Point",coordinates:[]}}}),Glt=Ee((e,t)=>{t.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}}),CY=Ee(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=6371008.8,n={centimeters:100*t,centimetres:100*t,degrees:360/(2*Math.PI),feet:3.28084*t,inches:39.37*t,kilometers:t/1e3,kilometres:t/1e3,meters:t,metres:t,miles:t/1609.344,millimeters:1e3*t,millimetres:1e3*t,nauticalmiles:t/1852,radians:1,yards:1.0936*t},r={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:2.9155334959812285e-7,millimeters:1e6,millimetres:1e6,yards:1.195990046};function a(e,t,n={}){let r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function i(e,t,n={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!m(e[0])||!m(e[1]))throw new Error("coordinates must contain numbers");return a({type:"Point",coordinates:e},t,n)}function o(e,t,n={}){for(let t of e){if(t.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(t[t.length-1].length!==t[0].length)throw new Error("First and last Position are not equivalent.");for(let e=0;e<t[t.length-1].length;e++)if(t[t.length-1][e]!==t[0][e])throw new Error("First and last Position are not equivalent.")}return a({type:"Polygon",coordinates:e},t,n)}function s(e,t,n={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return a({type:"LineString",coordinates:e},t,n)}function l(e,t={}){let n={type:"FeatureCollection"};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function c(e,t,n={}){return a({type:"MultiLineString",coordinates:e},t,n)}function u(e,t,n={}){return a({type:"MultiPoint",coordinates:e},t,n)}function d(e,t,n={}){return a({type:"MultiPolygon",coordinates:e},t,n)}function p(e,t="kilometers"){let r=n[t];if(!r)throw new Error(t+" units is invalid");return e*r}function h(e,t="kilometers"){let r=n[t];if(!r)throw new Error(t+" units is invalid");return e/r}function f(e){return e%(2*Math.PI)*180/Math.PI}function m(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}e.areaFactors=r,e.azimuthToBearing=function(e){return(e%=360)>180?e-360:e<-180?e+360:e},e.bearingToAzimuth=function(e){let t=e%360;return t<0&&(t+=360),t},e.convertArea=function(e,t="meters",n="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let a=r[t];if(!a)throw new Error("invalid original units");let i=r[n];if(!i)throw new Error("invalid final units");return e/a*i},e.convertLength=function(e,t="kilometers",n="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return p(h(e,t),n)},e.degreesToRadians=function(e){return e%360*Math.PI/180},e.earthRadius=t,e.factors=n,e.feature=a,e.featureCollection=l,e.geometry=function(e,t,n={}){switch(e){case"Point":return i(t).geometry;case"LineString":return s(t).geometry;case"Polygon":return o(t).geometry;case"MultiPoint":return u(t).geometry;case"MultiLineString":return c(t).geometry;case"MultiPolygon":return d(t).geometry;default:throw new Error(e+" is invalid")}},e.geometryCollection=function(e,t,n={}){return a({type:"GeometryCollection",geometries:e},t,n)},e.isNumber=m,e.isObject=function(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)},e.lengthToDegrees=function(e,t){return f(h(e,t))},e.lengthToRadians=h,e.lineString=s,e.lineStrings=function(e,t,n={}){return l(e.map(e=>s(e,t)),n)},e.multiLineString=c,e.multiPoint=u,e.multiPolygon=d,e.point=i,e.points=function(e,t,n={}){return l(e.map(e=>i(e,t)),n)},e.polygon=o,e.polygons=function(e,t,n={}){return l(e.map(e=>o(e,t)),n)},e.radiansToDegrees=f,e.radiansToLength=p,e.round=function(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let n=Math.pow(10,t||0);return Math.round(e*n)/n},e.validateBBox=function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(e=>{if(!m(e))throw new Error("bbox must only contain numbers")})},e.validateId=function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}}),qY=Ee(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=CY();function n(e,t,r){if(null!==e)for(var a,i,o,s,l,c,u,d,p=0,h=0,f=e.type,m="FeatureCollection"===f,g="Feature"===f,y=m?e.features.length:1,b=0;b<y;b++){l=(d=!!(u=m?e.features[b].geometry:g?e.geometry:e)&&"GeometryCollection"===u.type)?u.geometries.length:1;for(var v=0;v<l;v++){var M=0,x=0;if(null!==(s=d?u.geometries[v]:u)){c=s.coordinates;var z=s.type;switch(p=!r||"Polygon"!==z&&"MultiPolygon"!==z?0:1,z){case null:break;case"Point":if(!1===t(c,h,b,M,x))return!1;h++,M++;break;case"LineString":case"MultiPoint":for(a=0;a<c.length;a++){if(!1===t(c[a],h,b,M,x))return!1;h++,"MultiPoint"===z&&M++}"LineString"===z&&M++;break;case"Polygon":case"MultiLineString":for(a=0;a<c.length;a++){for(i=0;i<c[a].length-p;i++){if(!1===t(c[a][i],h,b,M,x))return!1;h++}"MultiLineString"===z&&M++,"Polygon"===z&&x++}"Polygon"===z&&M++;break;case"MultiPolygon":for(a=0;a<c.length;a++){for(x=0,i=0;i<c[a].length;i++){for(o=0;o<c[a][i].length-p;o++){if(!1===t(c[a][i][o],h,b,M,x))return!1;h++}x++}M++}break;case"GeometryCollection":for(a=0;a<s.geometries.length;a++)if(!1===n(s.geometries[a],t,r))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function r(e,t){var n;switch(e.type){case"FeatureCollection":for(n=0;n<e.features.length&&!1!==t(e.features[n].properties,n);n++);break;case"Feature":t(e.properties,0)}}function a(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var n=0;n<e.features.length&&!1!==t(e.features[n],n);n++);}function i(e,t){var n,r,a,i,o,s,l,c,u,d,p=0,h="FeatureCollection"===e.type,f="Feature"===e.type,m=h?e.features.length:1;for(n=0;n<m;n++){for(s=h?e.features[n].geometry:f?e.geometry:e,c=h?e.features[n].properties:f?e.properties:{},u=h?e.features[n].bbox:f?e.bbox:void 0,d=h?e.features[n].id:f?e.id:void 0,o=(l=!!s&&"GeometryCollection"===s.type)?s.geometries.length:1,a=0;a<o;a++)if(null!==(i=l?s.geometries[a]:s))switch(i.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(i,p,c,u,d))return!1;break;case"GeometryCollection":for(r=0;r<i.geometries.length;r++)if(!1===t(i.geometries[r],p,c,u,d))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,p,c,u,d))return!1;p++}}function o(e,n){i(e,function(e,r,a,i,o){var s,l=null===e?null:e.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return!1!==n(t.feature.call(void 0,e,a,{bbox:i,id:o}),r,0)&&void 0}switch(l){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon"}for(var c=0;c<e.coordinates.length;c++){var u={type:s,coordinates:e.coordinates[c]};if(!1===n(t.feature.call(void 0,u,a),r,c))return!1}})}function s(e,r){o(e,function(e,a,i){var o=0;if(e.geometry){var s=e.geometry.type;if("Point"!==s&&"MultiPoint"!==s){var l,c=0,u=0,d=0;if(!1===n(e,function(n,s,p,h,f){if(void 0===l||a>c||h>u||f>d)return l=n,c=a,u=h,d=f,void(o=0);var m=t.lineString.call(void 0,[l,n],e.properties);if(!1===r(m,a,i,f,o))return!1;o++,l=n}))return!1}}})}function l(e,n){if(!e)throw new Error("geojson is required");o(e,function(e,r,a){if(null!==e.geometry){var i=e.geometry.type,o=e.geometry.coordinates;switch(i){case"LineString":if(!1===n(e,r,a,0,0))return!1;break;case"Polygon":for(var s=0;s<o.length;s++)if(!1===n(t.lineString.call(void 0,o[s],e.properties),r,a,s))return!1}}})}e.coordAll=function(e){var t=[];return n(e,function(e){t.push(e)}),t},e.coordEach=n,e.coordReduce=function(e,t,r,a){var i=r;return n(e,function(e,n,a,o,s){i=0===n&&void 0===r?e:t(i,e,n,a,o,s)},a),i},e.featureEach=a,e.featureReduce=function(e,t,n){var r=n;return a(e,function(e,a){r=0===a&&void 0===n?e:t(r,e,a)}),r},e.findPoint=function(e,n){if(n=n||{},!t.isObject.call(void 0,n))throw new Error("options is invalid");var r,a=n.featureIndex||0,i=n.multiFeatureIndex||0,o=n.geometryIndex||0,s=n.coordIndex||0,l=n.properties;switch(e.type){case"FeatureCollection":a<0&&(a=e.features.length+a),l=l||e.features[a].properties,r=e.features[a].geometry;break;case"Feature":l=l||e.properties,r=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=e;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var c=r.coordinates;switch(r.type){case"Point":return t.point.call(void 0,c,l,n);case"MultiPoint":return i<0&&(i=c.length+i),t.point.call(void 0,c[i],l,n);case"LineString":return s<0&&(s=c.length+s),t.point.call(void 0,c[s],l,n);case"Polygon":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s),t.point.call(void 0,c[o][s],l,n);case"MultiLineString":return i<0&&(i=c.length+i),s<0&&(s=c[i].length+s),t.point.call(void 0,c[i][s],l,n);case"MultiPolygon":return i<0&&(i=c.length+i),o<0&&(o=c[i].length+o),s<0&&(s=c[i][o].length-s),t.point.call(void 0,c[i][o][s],l,n)}throw new Error("geojson is invalid")},e.findSegment=function(e,n){if(n=n||{},!t.isObject.call(void 0,n))throw new Error("options is invalid");var r,a=n.featureIndex||0,i=n.multiFeatureIndex||0,o=n.geometryIndex||0,s=n.segmentIndex||0,l=n.properties;switch(e.type){case"FeatureCollection":a<0&&(a=e.features.length+a),l=l||e.features[a].properties,r=e.features[a].geometry;break;case"Feature":l=l||e.properties,r=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=e;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var c=r.coordinates;switch(r.type){case"Point":case"MultiPoint":return null;case"LineString":return s<0&&(s=c.length+s-1),t.lineString.call(void 0,[c[s],c[s+1]],l,n);case"Polygon":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s-1),t.lineString.call(void 0,[c[o][s],c[o][s+1]],l,n);case"MultiLineString":return i<0&&(i=c.length+i),s<0&&(s=c[i].length+s-1),t.lineString.call(void 0,[c[i][s],c[i][s+1]],l,n);case"MultiPolygon":return i<0&&(i=c.length+i),o<0&&(o=c[i].length+o),s<0&&(s=c[i][o].length-s-1),t.lineString.call(void 0,[c[i][o][s],c[i][o][s+1]],l,n)}throw new Error("geojson is invalid")},e.flattenEach=o,e.flattenReduce=function(e,t,n){var r=n;return o(e,function(e,a,i){r=0===a&&0===i&&void 0===n?e:t(r,e,a,i)}),r},e.geomEach=i,e.geomReduce=function(e,t,n){var r=n;return i(e,function(e,a,i,o,s){r=0===a&&void 0===n?e:t(r,e,a,i,o,s)}),r},e.lineEach=l,e.lineReduce=function(e,t,n){var r=n;return l(e,function(e,a,i,o){r=0===a&&void 0===n?e:t(r,e,a,i,o)}),r},e.propEach=r,e.propReduce=function(e,t,n){var a=n;return r(e,function(e,r){a=0===r&&void 0===n?e:t(a,e,r)}),a},e.segmentEach=s,e.segmentReduce=function(e,t,n){var r=n,a=!1;return s(e,function(e,i,o,s,l){r=!1===a&&void 0===n?e:t(r,e,i,o,s,l),a=!0}),r}}),o1t=Ee(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=CY(),n=qY();function r(e){return n.geomReduce.call(void 0,e,(e,t)=>e+function(e){let t,n=0;switch(e.type){case"Polygon":return a(e.coordinates);case"MultiPolygon":for(t=0;t<e.coordinates.length;t++)n+=a(e.coordinates[t]);return n;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(t),0)}function a(e){let t=0;if(e&&e.length>0){t+=Math.abs(s(e[0]));for(let n=1;n<e.length;n++)t-=Math.abs(s(e[n]))}return t}var i=t.earthRadius*t.earthRadius/2,o=Math.PI/180;function s(e){let t=e.length-1;if(t<=2)return 0;let n=0,r=0;for(;r<t;){let a=e[r],i=e[r+1===t?0:r+1],s=e[r+2>=t?(r+2)%t:r+2],l=a[0]*o,c=i[1]*o;n+=(s[0]*o-l)*Math.sin(c),r++}return n*i}var l=r;e.area=r,e.default=l}),l1t=Ee(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=CY(),n=qY();function r(e,r={}){let a=0,i=0,o=0;return n.coordEach.call(void 0,e,function(e){a+=e[0],i+=e[1],o++},!0),t.point.call(void 0,[a/o,i/o],r.properties)}var a=r;e.centroid=r,e.default=a}),u1t=Ee(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=qY();function n(e,n={}){if(null!=e.bbox&&!0!==n.recompute)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return t.coordEach.call(void 0,e,e=>{r[0]>e[0]&&(r[0]=e[0]),r[1]>e[1]&&(r[1]=e[1]),r[2]<e[0]&&(r[2]=e[0]),r[3]<e[1]&&(r[3]=e[1])}),r}var r=n;e.bbox=n,e.default=r}),h1t=Ee((e,t)=>{var n={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},r=new Set(Object.values(n));t.exports={usaLocationAbbreviations:r,usaLocationList:n}}),D4=Ee((e,t)=>{var n=mo(),r=Glt(),{area:a}=o1t(),{centroid:i}=l1t(),{bbox:o}=u1t(),s=cD(),l=Tz(),c=mx(),u=$q(),d=KD(),{usaLocationAbbreviations:p,usaLocationList:h}=h1t(),f=Object.keys(r),m={"ISO-3":s,"USA-states":function(e){return e=e.trim(),(p.has(e.toUpperCase())?e.toUpperCase():h[e.toLowerCase()])||(l.log("Unrecognized US location: "+e+"."),!1)},"country names":function(e){for(var t=0;t<f.length;t++){var n=f[t];if(new RegExp(r[n]).test(e.trim().toLowerCase()))return n}return l.log("Unrecognized country name: "+e+"."),!1}};function g(e){var t=e.geojson,n=window.PlotlyGeoAssets||{},r="string"==typeof t?n[t]:t;return c(r)?r:(l.error("Oops ... something went wrong when fetching "+t),!1)}t.exports={locationToFeature:function(e,t,n){if(!t||"string"!=typeof t)return!1;let r=m[e](t);if(r){let t;if("USA-states"===e){t=[];for(let e of n)"USA"===e?.properties?.gu&&t.push(e)}else t=n;for(let e of t)if(e.id===r)return e;l.log(`Location with id ${r} does not have a matching topojson feature at this resolution.`)}return!1},feature2polygons:function(e){var t,n,r,a,i=e.geometry,o=i.coordinates,s=e.id,l=[];function c(e){for(var t=0;t<e.length-1;t++)if(e[t][0]>0&&e[t+1][0]<0)return t;return null}switch(t="RUS"===s||"FJI"===s?function(e){var t;if(null===c(e))t=e;else for(t=new Array(e.length),a=0;a<e.length;a++)t[a]=[e[a][0]<0?e[a][0]+360:e[a][0],e[a][1]];l.push(d.tester(t))}:"ATA"===s?function(e){var t=c(e);if(null===t)return l.push(d.tester(e));var n=new Array(e.length+1),r=0;for(a=0;a<e.length;a++)a>t?n[r++]=[e[a][0]+360,e[a][1]]:a===t?(n[r++]=e[a],n[r++]=[e[a][0],-90]):n[r++]=e[a];var i=d.tester(n);i.pts.pop(),l.push(i)}:function(e){l.push(d.tester(e))},i.type){case"MultiPolygon":for(n=0;n<o.length;n++)for(r=0;r<o[n].length;r++)t(o[n][r]);break;case"Polygon":for(n=0;n<o.length;n++)t(o[n])}return l},getTraceGeojson:g,extractTraceFeature:function(e){var t=e[0].trace,n=g(t);if(!n)return!1;var r,o={},s=[];for(r=0;r<t._length;r++){var c=e[r];(c.loc||0===c.loc)&&(o[c.loc]=c)}function d(e){var n=u(e,t.featureidkey||"id").get(),r=o[n];if(r){var c=e.geometry;if("Polygon"===c.type||"MultiPolygon"===c.type){var d={type:"Feature",id:n,geometry:c,properties:{}};d.geometry.coordinates.length>0?d.properties.ct=function(e){var t,n=e.geometry;if("MultiPolygon"===n.type)for(var r=n.coordinates,o=0,s=0;s<r.length;s++){var l={type:"Polygon",coordinates:r[s]},c=a(l);c>o&&(o=c,t=l)}else t=n;return i(t).geometry.coordinates}(d):d.properties.ct=[NaN,NaN],r.fIn=e,r.fOut=d,s.push(d)}else l.log(["Location",r.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete o[n]}switch(n.type){case"FeatureCollection":var p=n.features;for(r=0;r<p.length;r++)d(p[r]);break;case"Feature":d(n);break;default:return l.warn(["Invalid GeoJSON type",(n.type||"none")+".","Traces with locationmode *geojson-id* only support","*FeatureCollection* and *Feature* types."].join(" ")),!1}for(var h in o)l.log(["Location *"+h+"*","does not have a matching feature with id-key","*"+t.featureidkey+"*."].join(" "));return s},fetchTraceGeoData:function(e){var t=window.PlotlyGeoAssets||{},r=[];function a(e){return new Promise(function(r,a){n.json(e,function(n,i){if(n){delete t[e];var o=404===n.status?'GeoJSON at URL "'+e+'" does not exist.':"Unexpected error while fetching from "+e;return a(new Error(o))}return t[e]=i,r(i)})})}function i(e){return new Promise(function(n,r){var a=0,i=setInterval(function(){return t[e]&&"pending"!==t[e]?(clearInterval(i),n(t[e])):a>100?(clearInterval(i),r("Unexpected error while fetching from "+e)):void a++},50)})}for(var o=0;o<e.length;o++){var s=e[o][0].trace.geojson;"string"==typeof s&&(t[s]?"pending"===t[s]&&r.push(i(s)):(t[s]="pending",r.push(a(s))))}return r},computeBbox:function(e){return o(e)}}}),Khe=Ee((e,t)=>{var n=mo(),r=vs(),a=ao(),i=vm(),o=i.stylePoints,s=i.styleText;t.exports=function(e,t){t&&function(e,t){var i=t[0].trace,l=t[0].node3;l.style("opacity",t[0].trace.opacity),o(l,i,e),s(l,i,e),l.selectAll("path.js-line").style("fill","none").each(function(e){var t=n.select(this),i=e.trace,o=i.line||{};t.call(a.stroke,o.color).call(r.dashLine,o.dash||"",o.width||0),"none"!==i.fill&&t.call(a.fill,i.fillcolor)})}(e,t)}}),tpe=Ee((e,t)=>{var n=mo(),r=Fr(),a=TY().getTopojsonFeatures,i=E4(),o=D4(),s=$y().findExtremes,l=T0().BADNUM,c=Jg().calcMarkerSize,u=Hc(),d=Khe();t.exports={calcGeoJSON:function(e,t){var n,i,u=e[0].trace,d=t[u.geo],p=d._subplot,h=u._length;if(r.isArrayOrTypedArray(u.locations)){var f=u.locationmode,m="geojson-id"===f?o.extractTraceFeature(e):a(u,p.topojson);for(n=0;n<h;n++){i=e[n];var g="geojson-id"===f?i.fOut:o.locationToFeature(f,i.loc,m);i.lonlat=g?g.properties.ct:[l,l]}}var y,b,v={padded:!0};if("geojson"===d.fitbounds&&"geojson-id"===u.locationmode){var M=o.computeBbox(o.getTraceGeojson(u));y=[M[0],M[2]],b=[M[1],M[3]]}else{for(y=new Array(h),b=new Array(h),n=0;n<h;n++)i=e[n],y[n]=i.lonlat[0],b[n]=i.lonlat[1];v.ppad=c(u,h)}u._extremes.lon=s(d.lonaxis._ax,y,v),u._extremes.lat=s(d.lataxis._ax,b,v)},plot:function(e,t,a){var o=t.layers.frontplot.select(".scatterlayer"),s=r.makeTraceGroups(o,a,"trace scattergeo");function c(e,t){e.lonlat[0]===l&&n.select(t).remove()}s.selectAll("*").remove(),s.each(function(t){var a=n.select(this),o=t[0].trace;if(u.hasLines(o)||"none"!==o.fill){var s=i.calcTraceToLineCoords(t),l="none"!==o.fill?i.makePolygon(s):i.makeLine(s);a.selectAll("path.js-line").data([{geojson:l,trace:o}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}u.hasMarkers(o)&&a.selectAll("path.point").data(r.identity).enter().append("path").classed("point",!0).each(function(e){c(e,this)}),u.hasText(o)&&a.selectAll("g").data(r.identity).enter().append("g").append("text").each(function(e){c(e,this)}),d(e,t)})}}}),w1t=Ee((e,t)=>{var n=_d(),r=T0().BADNUM,a=NS(),i=Fr().fillText,o=zO();t.exports=function(e,t,s){var l=e.cd,c=l[0].trace,u=e.xa,d=e.ya,p=e.subplot,h=p.projection.isLonLatOverEdges,f=p.project;if(n.getClosest(l,function(e){var n=e.lonlat;if(n[0]===r||h(n))return 1/0;var a=f(n),i=f([t,s]),o=Math.abs(a[0]-i[0]),l=Math.abs(a[1]-i[1]),c=Math.max(3,e.mrc||0);return Math.max(Math.sqrt(o*o+l*l)-c,1-3/c)},e),!1!==e.index){var m=l[e.index],g=m.lonlat,y=[u.c2p(g),d.c2p(g)],b=m.mrc||1;e.x0=y[0]-b,e.x1=y[0]+b,e.y0=y[1]-b,e.y1=y[1]+b,e.loc=m.loc,e.lon=g[0],e.lat=g[1];var v={};v[c.geo]={_subplot:p};var M=c._module.formatLabels(m,c,v);return e.lonLabel=M.lonLabel,e.latLabel=M.latLabel,e.color=a(c,m),e.extraText=function(e,t,n,r){if(e.hovertemplate)return;var a=t.hi||e.hoverinfo,s="all"===a?o.hoverinfo.flags:a.split("+"),l=-1!==s.indexOf("location")&&Array.isArray(e.locations),c=-1!==s.indexOf("lon"),u=-1!==s.indexOf("lat"),d=-1!==s.indexOf("text"),p=[];function h(e){return e+"°"}return l?p.push(t.loc):c&&u?p.push("("+h(n.latLabel)+", "+h(n.lonLabel)+")"):c?p.push(r.lon+h(n.lonLabel)):u&&p.push(r.lat+h(n.latLabel)),d&&i(t,e,p),p.join("<br>")}(c,m,e,l[0].t.labels),e.hovertemplate=c.hovertemplate,[e]}}}),T1t=Ee((e,t)=>{t.exports=function(e,t,n,r,a){e.lon=t.lon,e.lat=t.lat,e.location=t.loc?t.loc:null;var i=r[a];return i.fIn&&i.fIn.properties&&(e.properties=i.fIn.properties),e}}),C1t=Ee((e,t)=>{var n=Hc(),r=T0().BADNUM;t.exports=function(e,t){var a,i,o,s,l,c=e.cd,u=e.xaxis,d=e.yaxis,p=[],h=c[0].trace;if(!n.hasMarkers(h)&&!n.hasText(h))return[];if(!1===t)for(l=0;l<c.length;l++)c[l].selected=0;else for(l=0;l<c.length;l++)(i=(a=c[l]).lonlat)[0]!==r&&(o=u.c2p(i),s=d.c2p(i),t.contains([o,s],null,l,e)?(p.push({pointNumber:l,lon:i[0],lat:i[1]}),a.selected=1):a.selected=0);return p}}),XL=Ee((e,t)=>{var n,r;n=e,r=function(e){function t(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function n(e){return 1===e.length&&(e=function(e){return function(n,r){return t(e(n),r)}}(e)),{left:function(t,n,r,a){for(null==r&&(r=0),null==a&&(a=t.length);r<a;){var i=r+a>>>1;e(t[i],n)<0?r=i+1:a=i}return r},right:function(t,n,r,a){for(null==r&&(r=0),null==a&&(a=t.length);r<a;){var i=r+a>>>1;e(t[i],n)>0?a=i:r=i+1}return r}}}var r=n(t),a=r.right,i=r.left;function o(e,t){return[e,t]}function s(e){return null===e?NaN:+e}function l(e,t){var n,r,a=e.length,i=0,o=-1,l=0,c=0;if(null==t)for(;++o<a;)isNaN(n=s(e[o]))||(c+=(r=n-l)*(n-(l+=r/++i)));else for(;++o<a;)isNaN(n=s(t(e[o],o,e)))||(c+=(r=n-l)*(n-(l+=r/++i)));if(i>1)return c/(i-1)}function c(e,t){var n=l(e,t);return n&&Math.sqrt(n)}function u(e,t){var n,r,a,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=a=n;++o<i;)null!=(n=e[o])&&(r>n&&(r=n),a<n&&(a=n))}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=a=n;++o<i;)null!=(n=t(e[o],o,e))&&(r>n&&(r=n),a<n&&(a=n));return[r,a]}var d=Array.prototype,p=d.slice,h=d.map;function f(e){return function(){return e}}function m(e){return e}function g(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(a);++r<a;)i[r]=e+r*n;return i}var y=Math.sqrt(50),b=Math.sqrt(10),v=Math.sqrt(2);function M(e,t,n){var r=(t-e)/Math.max(0,n),a=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,a);return a>=0?(i>=y?10:i>=b?5:i>=v?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(i>=y?10:i>=b?5:i>=v?2:1)}function x(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),a=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/a;return i>=y?a*=10:i>=b?a*=5:i>=v&&(a*=2),t<e?-a:a}function z(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1}function _(e,t,n){if(null==n&&(n=s),r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e);return o+(+n(e[i+1],i+1,e)-o)*(a-i)}}function A(e,t){var n,r,a=e.length,i=-1;if(null==t){for(;++i<a;)if(null!=(n=e[i])&&n>=n)for(r=n;++i<a;)null!=(n=e[i])&&r>n&&(r=n)}else for(;++i<a;)if(null!=(n=t(e[i],i,e))&&n>=n)for(r=n;++i<a;)null!=(n=t(e[i],i,e))&&r>n&&(r=n);return r}function O(e){if(!(a=e.length))return[];for(var t=-1,n=A(e,w),r=new Array(n);++t<n;)for(var a,i=-1,o=r[t]=new Array(a);++i<a;)o[i]=e[i][t];return r}function w(e){return e.length}e.bisect=a,e.bisectRight=a,e.bisectLeft=i,e.ascending=t,e.bisector=n,e.cross=function(e,t,n){var r,a,i,s,l=e.length,c=t.length,u=new Array(l*c);for(null==n&&(n=o),r=i=0;r<l;++r)for(s=e[r],a=0;a<c;++a,++i)u[i]=n(s,t[a]);return u},e.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},e.deviation=c,e.extent=u,e.histogram=function(){var e=m,t=u,n=z;function r(r){var i,o,s=r.length,l=new Array(s);for(i=0;i<s;++i)l[i]=e(r[i],i,r);var c=t(l),u=c[0],d=c[1],p=n(l,u,d);Array.isArray(p)||(p=x(u,d,p),p=g(Math.ceil(u/p)*p,d,p));for(var h=p.length;p[0]<=u;)p.shift(),--h;for(;p[h-1]>d;)p.pop(),--h;var f,m=new Array(h+1);for(i=0;i<=h;++i)(f=m[i]=[]).x0=i>0?p[i-1]:u,f.x1=i<h?p[i]:d;for(i=0;i<s;++i)u<=(o=l[i])&&o<=d&&m[a(p,o,0,h)].push(r[i]);return m}return r.value=function(t){return arguments.length?(e="function"==typeof t?t:f(t),r):e},r.domain=function(e){return arguments.length?(t="function"==typeof e?e:f([e[0],e[1]]),r):t},r.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?f(p.call(e)):f(e),r):n},r},e.thresholdFreedmanDiaconis=function(e,n,r){return e=h.call(e,s).sort(t),Math.ceil((r-n)/(2*(_(e,.75)-_(e,.25))*Math.pow(e.length,-1/3)))},e.thresholdScott=function(e,t,n){return Math.ceil((n-t)/(3.5*c(e)*Math.pow(e.length,-1/3)))},e.thresholdSturges=z,e.max=function(e,t){var n,r,a=e.length,i=-1;if(null==t){for(;++i<a;)if(null!=(n=e[i])&&n>=n)for(r=n;++i<a;)null!=(n=e[i])&&n>r&&(r=n)}else for(;++i<a;)if(null!=(n=t(e[i],i,e))&&n>=n)for(r=n;++i<a;)null!=(n=t(e[i],i,e))&&n>r&&(r=n);return r},e.mean=function(e,t){var n,r=e.length,a=r,i=-1,o=0;if(null==t)for(;++i<r;)isNaN(n=s(e[i]))?--a:o+=n;else for(;++i<r;)isNaN(n=s(t(e[i],i,e)))?--a:o+=n;if(a)return o/a},e.median=function(e,n){var r,a=e.length,i=-1,o=[];if(null==n)for(;++i<a;)isNaN(r=s(e[i]))||o.push(r);else for(;++i<a;)isNaN(r=s(n(e[i],i,e)))||o.push(r);return _(o.sort(t),.5)},e.merge=function(e){for(var t,n,r,a=e.length,i=-1,o=0;++i<a;)o+=e[i].length;for(n=new Array(o);--a>=0;)for(t=(r=e[a]).length;--t>=0;)n[--o]=r[t];return n},e.min=A,e.pairs=function(e,t){null==t&&(t=o);for(var n=0,r=e.length-1,a=e[0],i=new Array(r<0?0:r);n<r;)i[n]=t(a,a=e[++n]);return i},e.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},e.quantile=_,e.range=g,e.scan=function(e,n){if(r=e.length){var r,a,i=0,o=0,s=e[o];for(null==n&&(n=t);++i<r;)(n(a=e[i],s)<0||0!==n(s,s))&&(s=a,o=i);if(0===n(s,s))return o}},e.shuffle=function(e,t,n){for(var r,a,i=(n??e.length)-(t=null==t?0:+t);i;)a=Math.random()*i--|0,r=e[i+t],e[i+t]=e[a+t],e[a+t]=r;return e},e.sum=function(e,t){var n,r=e.length,a=-1,i=0;if(null==t)for(;++a<r;)(n=+e[a])&&(i+=n);else for(;++a<r;)(n=+t(e[a],a,e))&&(i+=n);return i},e.ticks=function(e,t,n){var r,a,i,o,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(a=e,e=t,t=a),0===(o=M(e,t,n))||!isFinite(o))return[];if(o>0)for(e=Math.ceil(e/o),t=Math.floor(t/o),i=new Array(a=Math.ceil(t-e+1));++s<a;)i[s]=(e+s)*o;else for(e=Math.floor(e*o),t=Math.ceil(t*o),i=new Array(a=Math.ceil(e-t+1));++s<a;)i[s]=(e-s)/o;return r&&i.reverse(),i},e.tickIncrement=M,e.tickStep=x,e.transpose=O,e.variance=l,e.zip=function(){return O(arguments)},Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?r(e):"function"==typeof define&&define.amd?define(["exports"],r):r(n.d3=n.d3||{})}),rpe=Ee((e,t)=>{var n,r;n=e,r=function(e,t){function n(){return new r}function r(){this.reset()}r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(e){i(a,e,this.t),i(this,a.s,this.s),this.s?this.t+=a.t:this.s=a.t},valueOf:function(){return this.s}};var a=new r;function i(e,t,n){var r=e.s=t+n,a=r-t,i=r-a;e.t=t-i+(n-a)}var o=1e-6,s=1e-12,l=Math.PI,c=l/2,u=l/4,d=2*l,p=180/l,h=l/180,f=Math.abs,m=Math.atan,g=Math.atan2,y=Math.cos,b=Math.ceil,v=Math.exp,M=Math.log,x=Math.pow,z=Math.sin,_=Math.sign||function(e){return e>0?1:e<0?-1:0},A=Math.sqrt,O=Math.tan;function w(e){return e>1?0:e<-1?l:Math.acos(e)}function k(e){return e>1?c:e<-1?-c:Math.asin(e)}function T(e){return(e=z(e/2))*e}function S(){}function C(e,t){e&&q.hasOwnProperty(e.type)&&q[e.type](e,t)}var E={Feature:function(e,t){C(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,a=n.length;++r<a;)C(n[r].geometry,t)}},q={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,a=n.length;++r<a;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){D(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,a=n.length;++r<a;)D(n[r],t,0)},Polygon:function(e,t){R(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,a=n.length;++r<a;)R(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,a=n.length;++r<a;)C(n[r],t)}};function D(e,t,n){var r,a=-1,i=e.length-n;for(t.lineStart();++a<i;)r=e[a],t.point(r[0],r[1],r[2]);t.lineEnd()}function R(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)D(e[n],t,1);t.polygonEnd()}function L(e,t){e&&E.hasOwnProperty(e.type)?E[e.type](e,t):C(e,t)}var I,W,N,P,B,F=n(),j=n(),U={point:S,lineStart:S,lineEnd:S,polygonStart:function(){F.reset(),U.lineStart=V,U.lineEnd=H},polygonEnd:function(){var e=+F;j.add(e<0?d+e:e),this.lineStart=this.lineEnd=this.point=S},sphere:function(){j.add(d)}};function V(){U.point=X}function H(){G(I,W)}function X(e,t){U.point=G,I=e,W=t,N=e*=h,P=y(t=(t*=h)/2+u),B=z(t)}function G(e,t){var n=(e*=h)-N,r=n>=0?1:-1,a=r*n,i=y(t=(t*=h)/2+u),o=z(t),s=B*o,l=P*i+s*y(a),c=s*r*z(a);F.add(g(c,l)),N=e,P=i,B=o}function Y(e){return[g(e[1],e[0]),k(e[2])]}function Z(e){var t=e[0],n=e[1],r=y(n);return[r*y(t),r*z(t),z(n)]}function $(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function J(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Q(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function K(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function ee(e){var t=A(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var te,ne,re,ae,ie,oe,se,le,ce,ue,de=n(),pe={point:he,lineStart:me,lineEnd:ge,polygonStart:function(){pe.point=ye,pe.lineStart=be,pe.lineEnd=ve,de.reset(),U.polygonStart()},polygonEnd:function(){U.polygonEnd(),pe.point=he,pe.lineStart=me,pe.lineEnd=ge,F<0?(te=-(re=180),ne=-(ae=90)):de>o?ae=90:de<-o&&(ne=-90),ue[0]=te,ue[1]=re},sphere:function(){te=-(re=180),ne=-(ae=90)}};function he(e,t){ce.push(ue=[te=e,re=e]),t<ne&&(ne=t),t>ae&&(ae=t)}function fe(e,t){var n=Z([e*h,t*h]);if(le){var r=J(le,n),a=J([r[1],-r[0],0],r);ee(a),a=Y(a);var i,o=e-ie,s=o>0?1:-1,l=a[0]*p*s,c=f(o)>180;c^(s*ie<l&&l<s*e)?(i=a[1]*p)>ae&&(ae=i):c^(s*ie<(l=(l+360)%360-180)&&l<s*e)?(i=-a[1]*p)<ne&&(ne=i):(t<ne&&(ne=t),t>ae&&(ae=t)),c?e<ie?Me(te,e)>Me(te,re)&&(re=e):Me(e,re)>Me(te,re)&&(te=e):re>=te?(e<te&&(te=e),e>re&&(re=e)):e>ie?Me(te,e)>Me(te,re)&&(re=e):Me(e,re)>Me(te,re)&&(te=e)}else ce.push(ue=[te=e,re=e]);t<ne&&(ne=t),t>ae&&(ae=t),le=n,ie=e}function me(){pe.point=fe}function ge(){ue[0]=te,ue[1]=re,pe.point=he,le=null}function ye(e,t){if(le){var n=e-ie;de.add(f(n)>180?n+(n>0?360:-360):n)}else oe=e,se=t;U.point(e,t),fe(e,t)}function be(){U.lineStart()}function ve(){ye(oe,se),U.lineEnd(),f(de)>o&&(te=-(re=180)),ue[0]=te,ue[1]=re,le=null}function Me(e,t){return(t-=e)<0?t+360:t}function xe(e,t){return e[0]-t[0]}function ze(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var _e,Ae,Oe,we,ke,Te,Se,Ce,Ee,qe,De,Re,Le,Ie,We,Ne,Pe={sphere:S,point:Be,lineStart:je,lineEnd:He,polygonStart:function(){Pe.lineStart=Xe,Pe.lineEnd=Ge},polygonEnd:function(){Pe.lineStart=je,Pe.lineEnd=He}};function Be(e,t){e*=h;var n=y(t*=h);Fe(n*y(e),n*z(e),z(t))}function Fe(e,t,n){++_e,Oe+=(e-Oe)/_e,we+=(t-we)/_e,ke+=(n-ke)/_e}function je(){Pe.point=Ue}function Ue(e,t){e*=h;var n=y(t*=h);Ie=n*y(e),We=n*z(e),Ne=z(t),Pe.point=Ve,Fe(Ie,We,Ne)}function Ve(e,t){e*=h;var n=y(t*=h),r=n*y(e),a=n*z(e),i=z(t),o=g(A((o=We*i-Ne*a)*o+(o=Ne*r-Ie*i)*o+(o=Ie*a-We*r)*o),Ie*r+We*a+Ne*i);Ae+=o,Te+=o*(Ie+(Ie=r)),Se+=o*(We+(We=a)),Ce+=o*(Ne+(Ne=i)),Fe(Ie,We,Ne)}function He(){Pe.point=Be}function Xe(){Pe.point=Ye}function Ge(){Ze(Re,Le),Pe.point=Be}function Ye(e,t){Re=e,Le=t,e*=h,t*=h,Pe.point=Ze;var n=y(t);Ie=n*y(e),We=n*z(e),Ne=z(t),Fe(Ie,We,Ne)}function Ze(e,t){e*=h;var n=y(t*=h),r=n*y(e),a=n*z(e),i=z(t),o=We*i-Ne*a,s=Ne*r-Ie*i,l=Ie*a-We*r,c=A(o*o+s*s+l*l),u=k(c),d=c&&-u/c;Ee+=d*o,qe+=d*s,De+=d*l,Ae+=u,Te+=u*(Ie+(Ie=r)),Se+=u*(We+(We=a)),Ce+=u*(Ne+(Ne=i)),Fe(Ie,We,Ne)}function $e(e){return function(){return e}}function Je(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return(n=t.invert(n,r))&&e.invert(n[0],n[1])}),n}function Qe(e,t){return[f(e)>l?e+Math.round(-e/d)*d:e,t]}function Ke(e,t,n){return(e%=d)?t||n?Je(tt(e),nt(t,n)):tt(e):t||n?nt(t,n):Qe}function et(e){return function(t,n){return[(t+=e)>l?t-d:t<-l?t+d:t,n]}}function tt(e){var t=et(e);return t.invert=et(-e),t}function nt(e,t){var n=y(e),r=z(e),a=y(t),i=z(t);function o(e,t){var o=y(t),s=y(e)*o,l=z(e)*o,c=z(t),u=c*n+s*r;return[g(l*a-u*i,s*n-c*r),k(u*a+l*i)]}return o.invert=function(e,t){var o=y(t),s=y(e)*o,l=z(e)*o,c=z(t),u=c*a-l*i;return[g(l*a+c*i,s*n+u*r),k(u*n-s*r)]},o}function rt(e){function t(t){return(t=e(t[0]*h,t[1]*h))[0]*=p,t[1]*=p,t}return e=Ke(e[0]*h,e[1]*h,e.length>2?e[2]*h:0),t.invert=function(t){return(t=e.invert(t[0]*h,t[1]*h))[0]*=p,t[1]*=p,t},t}function at(e,t,n,r,a,i){if(n){var o=y(t),s=z(t),l=r*n;null==a?(a=t+r*d,i=t-l/2):(a=it(o,a),i=it(o,i),(r>0?a<i:a>i)&&(a+=r*d));for(var c,u=a;r>0?u>i:u<i;u-=l)c=Y([o,-s*y(u),-s*z(u)]),e.point(c[0],c[1])}}function it(e,t){(t=Z(t))[0]-=e,ee(t);var n=w(-t[1]);return((-t[2]<0?-n:n)+d-o)%d}function ot(){var e,t=[];return{point:function(t,n,r){e.push([t,n,r])},lineStart:function(){t.push(e=[])},lineEnd:S,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function st(e,t){return f(e[0]-t[0])<o&&f(e[1]-t[1])<o}function lt(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function ct(e,t,n,r,a){var i,s,l=[],c=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n,r=e[0],s=e[t];if(st(r,s)){if(!r[2]&&!s[2]){for(a.lineStart(),i=0;i<t;++i)a.point((r=e[i])[0],r[1]);return void a.lineEnd()}s[0]+=2*o}l.push(n=new lt(r,e,null,!0)),c.push(n.o=new lt(r,null,n,!1)),l.push(n=new lt(s,e,null,!1)),c.push(n.o=new lt(s,null,n,!0))}}),l.length){for(c.sort(t),ut(l),ut(c),i=0,s=c.length;i<s;++i)c[i].e=n=!n;for(var u,d,p=l[0];;){for(var h=p,f=!0;h.v;)if((h=h.n)===p)return;u=h.z,a.lineStart();do{if(h.v=h.o.v=!0,h.e){if(f)for(i=0,s=u.length;i<s;++i)a.point((d=u[i])[0],d[1]);else r(h.x,h.n.x,1,a);h=h.n}else{if(f)for(u=h.p.z,i=u.length-1;i>=0;--i)a.point((d=u[i])[0],d[1]);else r(h.x,h.p.x,-1,a);h=h.p}u=(h=h.o).z,f=!f}while(!h.v);a.lineEnd()}}}function ut(e){if(t=e.length){for(var t,n,r=0,a=e[0];++r<t;)a.n=n=e[r],n.p=a,a=n;a.n=n=e[0],n.p=a}}Qe.invert=Qe;var dt=n();function pt(e){return f(e[0])<=l?e[0]:_(e[0])*((f(e[0])+l)%d-l)}function ht(e,t){var n=pt(t),r=t[1],a=z(r),i=[z(n),-y(n),0],s=0,p=0;dt.reset(),1===a?r=c+o:-1===a&&(r=-c-o);for(var h=0,f=e.length;h<f;++h)if(b=(m=e[h]).length)for(var m,b,v=m[b-1],M=pt(v),x=v[1]/2+u,_=z(x),A=y(x),O=0;O<b;++O,M=T,_=C,A=E,v=w){var w=m[O],T=pt(w),S=w[1]/2+u,C=z(S),E=y(S),q=T-M,D=q>=0?1:-1,R=D*q,L=R>l,I=_*C;if(dt.add(g(I*D*z(R),A*E+I*y(R))),s+=L?q+D*d:q,L^M>=n^T>=n){var W=J(Z(v),Z(w));ee(W);var N=J(i,W);ee(N);var P=(L^q>=0?-1:1)*k(N[2]);(r>P||r===P&&(W[0]||W[1]))&&(p+=L^q>=0?1:-1)}}return(s<-o||s<o&&dt<-o)^1&p}function ft(e,n,r,a){return function(i){var o,s,l,c=n(i),u=ot(),d=n(u),p=!1,h={point:f,lineStart:g,lineEnd:y,polygonStart:function(){h.point=b,h.lineStart=v,h.lineEnd=M,s=[],o=[]},polygonEnd:function(){h.point=f,h.lineStart=g,h.lineEnd=y,s=t.merge(s);var e=ht(o,a);s.length?(p||(i.polygonStart(),p=!0),ct(s,gt,e,r,i)):e&&(p||(i.polygonStart(),p=!0),i.lineStart(),r(null,null,1,i),i.lineEnd()),p&&(i.polygonEnd(),p=!1),s=o=null},sphere:function(){i.polygonStart(),i.lineStart(),r(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function f(t,n){e(t,n)&&i.point(t,n)}function m(e,t){c.point(e,t)}function g(){h.point=m,c.lineStart()}function y(){h.point=f,c.lineEnd()}function b(e,t){l.push([e,t]),d.point(e,t)}function v(){d.lineStart(),l=[]}function M(){b(l[0][0],l[0][1]),d.lineEnd();var e,t,n,r,a=d.clean(),c=u.result(),h=c.length;if(l.pop(),o.push(l),l=null,h){if(1&a){if((t=(n=c[0]).length-1)>0){for(p||(i.polygonStart(),p=!0),i.lineStart(),e=0;e<t;++e)i.point((r=n[e])[0],r[1]);i.lineEnd()}return}h>1&&2&a&&c.push(c.pop().concat(c.shift())),s.push(c.filter(mt))}}return h}}function mt(e){return e.length>1}function gt(e,t){return((e=e.x)[0]<0?e[1]-c-o:c-e[1])-((t=t.x)[0]<0?t[1]-c-o:c-t[1])}var yt=ft(function(){return!0},function(e){var t,n=NaN,r=NaN,a=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,s){var u=i>0?l:-l,d=f(i-n);f(d-l)<o?(e.point(n,r=(r+s)/2>0?c:-c),e.point(a,r),e.lineEnd(),e.lineStart(),e.point(u,r),e.point(i,r),t=0):a!==u&&d>=l&&(f(n-a)<o&&(n-=a*o),f(i-u)<o&&(i-=u*o),r=function(e,t,n,r){var a,i,s=z(e-n);return f(s)>o?m((z(t)*(i=y(r))*z(n)-z(r)*(a=y(t))*z(e))/(a*i*s)):(t+r)/2}(n,r,i,s),e.point(a,r),e.lineEnd(),e.lineStart(),e.point(u,r),t=0),e.point(n=i,r=s),a=u},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var a;if(null==e)a=n*c,r.point(-l,a),r.point(0,a),r.point(l,a),r.point(l,0),r.point(l,-a),r.point(0,-a),r.point(-l,-a),r.point(-l,0),r.point(-l,a);else if(f(e[0]-t[0])>o){var i=e[0]<t[0]?l:-l;a=n*i/2,r.point(-i,a),r.point(0,a),r.point(i,a)}else r.point(t[0],t[1])},[-l,-c]);function bt(e){var t=y(e),n=6*h,r=t>0,a=f(t)>o;function i(e,n){return y(e)*y(n)>t}function s(e,n,r){var a=[1,0,0],i=J(Z(e),Z(n)),s=$(i,i),c=i[0],u=s-c*c;if(!u)return!r&&e;var d=t*s/u,p=-t*c/u,h=J(a,i),m=K(a,d);Q(m,K(i,p));var g=h,y=$(m,g),b=$(g,g),v=y*y-b*($(m,m)-1);if(!(v<0)){var M=A(v),x=K(g,(-y-M)/b);if(Q(x,m),x=Y(x),!r)return x;var z,_=e[0],O=n[0],w=e[1],k=n[1];O<_&&(z=_,_=O,O=z);var T=O-_,S=f(T-l)<o;if(!S&&k<w&&(z=w,w=k,k=z),S||T<o?S?w+k>0^x[1]<(f(x[0]-_)<o?w:k):w<=x[1]&&x[1]<=k:T>l^(_<=x[0]&&x[0]<=O)){var C=K(g,(-y+M)/b);return Q(C,m),[x,Y(C)]}}}function c(t,n){var a=r?e:l-e,i=0;return t<-a?i|=1:t>a&&(i|=2),n<-a?i|=4:n>a&&(i|=8),i}return ft(i,function(e){var t,n,o,u,d;return{lineStart:function(){u=o=!1,d=1},point:function(p,h){var f,m=[p,h],g=i(p,h),y=r?g?0:c(p,h):g?c(p+(p<0?l:-l),h):0;if(!t&&(u=o=g)&&e.lineStart(),g!==o&&(!(f=s(t,m))||st(t,f)||st(m,f))&&(m[2]=1),g!==o)d=0,g?(e.lineStart(),f=s(m,t),e.point(f[0],f[1])):(f=s(t,m),e.point(f[0],f[1],2),e.lineEnd()),t=f;else if(a&&t&&r^g){var b;!(y&n)&&(b=s(m,t,!0))&&(d=0,r?(e.lineStart(),e.point(b[0][0],b[0][1]),e.point(b[1][0],b[1][1]),e.lineEnd()):(e.point(b[1][0],b[1][1]),e.lineEnd(),e.lineStart(),e.point(b[0][0],b[0][1],3)))}g&&(!t||!st(t,m))&&e.point(m[0],m[1]),t=m,o=g,n=y},lineEnd:function(){o&&e.lineEnd(),t=null},clean:function(){return d|(u&&o)<<1}}},function(t,r,a,i){at(i,e,n,a,t,r)},r?[0,-e]:[-l,e-l])}var vt=1e9,Mt=-vt;function xt(e,n,r,a){function i(t,i){return e<=t&&t<=r&&n<=i&&i<=a}function s(t,i,o,s){var c=0,d=0;if(null==t||(c=l(t,o))!==(d=l(i,o))||u(t,i)<0^o>0)do{s.point(0===c||3===c?e:r,c>1?a:n)}while((c=(c+o+4)%4)!==d);else s.point(i[0],i[1])}function l(t,a){return f(t[0]-e)<o?a>0?0:3:f(t[0]-r)<o?a>0?2:1:f(t[1]-n)<o?a>0?1:0:a>0?3:2}function c(e,t){return u(e.x,t.x)}function u(e,t){var n=l(e,1),r=l(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(o){var l,u,d,p,h,f,m,g,y,b,v,M=o,x=ot(),z={point:_,lineStart:function(){z.point=A,u&&u.push(d=[]),b=!0,y=!1,m=g=NaN},lineEnd:function(){l&&(A(p,h),f&&y&&x.rejoin(),l.push(x.result())),z.point=_,y&&M.lineEnd()},polygonStart:function(){M=x,l=[],u=[],v=!0},polygonEnd:function(){var n=function(){for(var t=0,n=0,r=u.length;n<r;++n)for(var i,o,s=u[n],l=1,c=s.length,d=s[0],p=d[0],h=d[1];l<c;++l)i=p,o=h,d=s[l],p=d[0],h=d[1],o<=a?h>a&&(p-i)*(a-o)>(h-o)*(e-i)&&++t:h<=a&&(p-i)*(a-o)<(h-o)*(e-i)&&--t;return t}(),r=v&&n,i=(l=t.merge(l)).length;(r||i)&&(o.polygonStart(),r&&(o.lineStart(),s(null,null,1,o),o.lineEnd()),i&&ct(l,c,n,s,o),o.polygonEnd()),M=o,l=u=d=null}};function _(e,t){i(e,t)&&M.point(e,t)}function A(t,o){var s=i(t,o);if(u&&d.push([t,o]),b)p=t,h=o,f=s,b=!1,s&&(M.lineStart(),M.point(t,o));else if(s&&y)M.point(t,o);else{var l=[m=Math.max(Mt,Math.min(vt,m)),g=Math.max(Mt,Math.min(vt,g))],c=[t=Math.max(Mt,Math.min(vt,t)),o=Math.max(Mt,Math.min(vt,o))];!function(e,t,n,r,a,i){var o,s=e[0],l=e[1],c=0,u=1,d=t[0]-s,p=t[1]-l;if(o=n-s,d||!(o>0)){if(o/=d,d<0){if(o<c)return;o<u&&(u=o)}else if(d>0){if(o>u)return;o>c&&(c=o)}if(o=a-s,d||!(o<0)){if(o/=d,d<0){if(o>u)return;o>c&&(c=o)}else if(d>0){if(o<c)return;o<u&&(u=o)}if(o=r-l,p||!(o>0)){if(o/=p,p<0){if(o<c)return;o<u&&(u=o)}else if(p>0){if(o>u)return;o>c&&(c=o)}if(o=i-l,p||!(o<0)){if(o/=p,p<0){if(o>u)return;o>c&&(c=o)}else if(p>0){if(o<c)return;o<u&&(u=o)}return c>0&&(e[0]=s+c*d,e[1]=l+c*p),u<1&&(t[0]=s+u*d,t[1]=l+u*p),!0}}}}}(l,c,e,n,r,a)?s&&(M.lineStart(),M.point(t,o),v=!1):(y||(M.lineStart(),M.point(l[0],l[1])),M.point(c[0],c[1]),s||M.lineEnd(),v=!1)}m=t,g=o,y=s}return z}}var zt,_t,At,Ot=n(),wt={sphere:S,point:S,lineStart:function(){wt.point=Tt,wt.lineEnd=kt},lineEnd:S,polygonStart:S,polygonEnd:S};function kt(){wt.point=wt.lineEnd=S}function Tt(e,t){zt=e*=h,_t=z(t*=h),At=y(t),wt.point=St}function St(e,t){e*=h;var n=z(t*=h),r=y(t),a=f(e-zt),i=y(a),o=r*z(a),s=At*n-_t*r*i,l=_t*n+At*r*i;Ot.add(g(A(o*o+s*s),l)),zt=e,_t=n,At=r}function Ct(e){return Ot.reset(),L(e,wt),+Ot}var Et=[null,null],qt={type:"LineString",coordinates:Et};function Dt(e,t){return Et[0]=e,Et[1]=t,Ct(qt)}var Rt={Feature:function(e,t){return It(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,a=n.length;++r<a;)if(It(n[r].geometry,t))return!0;return!1}},Lt={Sphere:function(){return!0},Point:function(e,t){return Wt(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,a=n.length;++r<a;)if(Wt(n[r],t))return!0;return!1},LineString:function(e,t){return Nt(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,a=n.length;++r<a;)if(Nt(n[r],t))return!0;return!1},Polygon:function(e,t){return Pt(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,a=n.length;++r<a;)if(Pt(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,a=n.length;++r<a;)if(It(n[r],t))return!0;return!1}};function It(e,t){return!(!e||!Lt.hasOwnProperty(e.type))&&Lt[e.type](e,t)}function Wt(e,t){return 0===Dt(e,t)}function Nt(e,t){for(var n,r,a,i=0,o=e.length;i<o;i++){if(0===(r=Dt(e[i],t))||i>0&&(a=Dt(e[i],e[i-1]))>0&&n<=a&&r<=a&&(n+r-a)*(1-Math.pow((n-r)/a,2))<s*a)return!0;n=r}return!1}function Pt(e,t){return!!ht(e.map(Bt),Ft(t))}function Bt(e){return(e=e.map(Ft)).pop(),e}function Ft(e){return[e[0]*h,e[1]*h]}function jt(e,n,r){var a=t.range(e,n-o,r).concat(n);return function(e){return a.map(function(t){return[e,t]})}}function Ut(e,n,r){var a=t.range(e,n-o,r).concat(n);return function(e){return a.map(function(t){return[t,e]})}}function Vt(){var e,n,r,a,i,s,l,c,u,d,p,h,m=10,g=m,y=90,v=360,M=2.5;function x(){return{type:"MultiLineString",coordinates:z()}}function z(){return t.range(b(a/y)*y,r,y).map(p).concat(t.range(b(c/v)*v,l,v).map(h)).concat(t.range(b(n/m)*m,e,m).filter(function(e){return f(e%y)>o}).map(u)).concat(t.range(b(s/g)*g,i,g).filter(function(e){return f(e%v)>o}).map(d))}return x.lines=function(){return z().map(function(e){return{type:"LineString",coordinates:e}})},x.outline=function(){return{type:"Polygon",coordinates:[p(a).concat(h(l).slice(1),p(r).reverse().slice(1),h(c).reverse().slice(1))]}},x.extent=function(e){return arguments.length?x.extentMajor(e).extentMinor(e):x.extentMinor()},x.extentMajor=function(e){return arguments.length?(a=+e[0][0],r=+e[1][0],c=+e[0][1],l=+e[1][1],a>r&&(e=a,a=r,r=e),c>l&&(e=c,c=l,l=e),x.precision(M)):[[a,c],[r,l]]},x.extentMinor=function(t){return arguments.length?(n=+t[0][0],e=+t[1][0],s=+t[0][1],i=+t[1][1],n>e&&(t=n,n=e,e=t),s>i&&(t=s,s=i,i=t),x.precision(M)):[[n,s],[e,i]]},x.step=function(e){return arguments.length?x.stepMajor(e).stepMinor(e):x.stepMinor()},x.stepMajor=function(e){return arguments.length?(y=+e[0],v=+e[1],x):[y,v]},x.stepMinor=function(e){return arguments.length?(m=+e[0],g=+e[1],x):[m,g]},x.precision=function(t){return arguments.length?(M=+t,u=jt(s,i,90),d=Ut(n,e,M),p=jt(c,l,90),h=Ut(a,r,M),x):M},x.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ht(e){return e}var Xt,Gt,Yt,Zt,$t=n(),Jt=n(),Qt={point:S,lineStart:S,lineEnd:S,polygonStart:function(){Qt.lineStart=Kt,Qt.lineEnd=nn},polygonEnd:function(){Qt.lineStart=Qt.lineEnd=Qt.point=S,$t.add(f(Jt)),Jt.reset()},result:function(){var e=$t/2;return $t.reset(),e}};function Kt(){Qt.point=en}function en(e,t){Qt.point=tn,Xt=Yt=e,Gt=Zt=t}function tn(e,t){Jt.add(Zt*e-Yt*t),Yt=e,Zt=t}function nn(){tn(Xt,Gt)}var rn,an,on,sn,ln=1/0,cn=ln,un=-ln,dn=un,pn={point:function(e,t){e<ln&&(ln=e),e>un&&(un=e),t<cn&&(cn=t),t>dn&&(dn=t)},lineStart:S,lineEnd:S,polygonStart:S,polygonEnd:S,result:function(){var e=[[ln,cn],[un,dn]];return un=dn=-(cn=ln=1/0),e}},hn=0,fn=0,mn=0,gn=0,yn=0,bn=0,vn=0,Mn=0,xn=0,zn={point:_n,lineStart:An,lineEnd:kn,polygonStart:function(){zn.lineStart=Tn,zn.lineEnd=Sn},polygonEnd:function(){zn.point=_n,zn.lineStart=An,zn.lineEnd=kn},result:function(){var e=xn?[vn/xn,Mn/xn]:bn?[gn/bn,yn/bn]:mn?[hn/mn,fn/mn]:[NaN,NaN];return hn=fn=mn=gn=yn=bn=vn=Mn=xn=0,e}};function _n(e,t){hn+=e,fn+=t,++mn}function An(){zn.point=On}function On(e,t){zn.point=wn,_n(on=e,sn=t)}function wn(e,t){var n=e-on,r=t-sn,a=A(n*n+r*r);gn+=a*(on+e)/2,yn+=a*(sn+t)/2,bn+=a,_n(on=e,sn=t)}function kn(){zn.point=_n}function Tn(){zn.point=Cn}function Sn(){En(rn,an)}function Cn(e,t){zn.point=En,_n(rn=on=e,an=sn=t)}function En(e,t){var n=e-on,r=t-sn,a=A(n*n+r*r);gn+=a*(on+e)/2,yn+=a*(sn+t)/2,bn+=a,vn+=(a=sn*e-on*t)*(on+e),Mn+=a*(sn+t),xn+=3*a,_n(on=e,sn=t)}function qn(e){this._context=e}qn.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,d)}},result:S};var Dn,Rn,Ln,In,Wn,Nn=n(),Pn={point:S,lineStart:function(){Pn.point=Bn},lineEnd:function(){Dn&&Fn(Rn,Ln),Pn.point=S},polygonStart:function(){Dn=!0},polygonEnd:function(){Dn=null},result:function(){var e=+Nn;return Nn.reset(),e}};function Bn(e,t){Pn.point=Fn,Rn=In=e,Ln=Wn=t}function Fn(e,t){In-=e,Wn-=t,Nn.add(A(In*In+Wn*Wn)),In=e,Wn=t}function jn(){this._string=[]}function Un(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function Vn(e){return function(t){var n=new Hn;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Hn(){}function Xn(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),L(n,e.stream(pn)),t(pn.result()),null!=r&&e.clipExtent(r),e}function Gn(e,t,n){return Xn(e,function(n){var r=t[1][0]-t[0][0],a=t[1][1]-t[0][1],i=Math.min(r/(n[1][0]-n[0][0]),a/(n[1][1]-n[0][1])),o=+t[0][0]+(r-i*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(a-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([o,s])},n)}function Yn(e,t,n){return Gn(e,[[0,0],t],n)}function Zn(e,t,n){return Xn(e,function(n){var r=+t,a=r/(n[1][0]-n[0][0]),i=(r-a*(n[1][0]+n[0][0]))/2,o=-a*n[0][1];e.scale(150*a).translate([i,o])},n)}function $n(e,t,n){return Xn(e,function(n){var r=+t,a=r/(n[1][1]-n[0][1]),i=-a*n[0][0],o=(r-a*(n[1][1]+n[0][1]))/2;e.scale(150*a).translate([i,o])},n)}jn.prototype={_radius:4.5,_circle:Un(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=Un(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}},Hn.prototype={constructor:Hn,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Jn=y(30*h);function Qn(e,t){return+t?function(e,t){function n(r,a,i,s,l,c,u,d,p,h,m,y,b,v){var M=u-r,x=d-a,z=M*M+x*x;if(z>4*t&&b--){var _=s+h,O=l+m,w=c+y,T=A(_*_+O*O+w*w),S=k(w/=T),C=f(f(w)-1)<o||f(i-p)<o?(i+p)/2:g(O,_),E=e(C,S),q=E[0],D=E[1],R=q-r,L=D-a,I=x*R-M*L;(I*I/z>t||f((M*R+x*L)/z-.5)>.3||s*h+l*m+c*y<Jn)&&(n(r,a,i,s,l,c,q,D,C,_/=T,O/=T,w,b,v),v.point(q,D),n(q,D,C,_,O,w,u,d,p,h,m,y,b,v))}}return function(t){var r,a,i,o,s,l,c,u,d,p,h,f,m={point:g,lineStart:y,lineEnd:v,polygonStart:function(){t.polygonStart(),m.lineStart=M},polygonEnd:function(){t.polygonEnd(),m.lineStart=y}};function g(n,r){n=e(n,r),t.point(n[0],n[1])}function y(){u=NaN,m.point=b,t.lineStart()}function b(r,a){var i=Z([r,a]),o=e(r,a);n(u,d,c,p,h,f,u=o[0],d=o[1],c=r,p=i[0],h=i[1],f=i[2],16,t),t.point(u,d)}function v(){m.point=g,t.lineEnd()}function M(){y(),m.point=x,m.lineEnd=z}function x(e,t){b(r=e,t),a=u,i=d,o=p,s=h,l=f,m.point=b}function z(){n(u,d,c,p,h,f,a,i,r,o,s,l,16,t),m.lineEnd=v,v()}return m}}(e,t):function(e){return Vn({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}(e)}var Kn=Vn({point:function(e,t){this.stream.point(e*h,t*h)}});function er(e,t,n,r,a){function i(i,o){return[t+e*(i*=r),n-e*(o*=a)]}return i.invert=function(i,o){return[(i-t)/e*r,(n-o)/e*a]},i}function tr(e,t,n,r,a,i){var o=y(i),s=z(i),l=o*e,c=s*e,u=o/e,d=s/e,p=(s*n-o*t)/e,h=(s*t+o*n)/e;function f(e,i){return[l*(e*=r)-c*(i*=a)+t,n-c*e-l*i]}return f.invert=function(e,t){return[r*(u*e-d*t+p),a*(h-d*e-u*t)]},f}function nr(e){return rr(function(){return e})()}function rr(e){var t,n,r,a,i,o,s,l,c,u,d=150,f=480,m=250,g=0,y=0,b=0,v=0,M=0,x=0,z=1,_=1,O=null,w=yt,k=null,T=Ht,S=.5;function C(e){return l(e[0]*h,e[1]*h)}function E(e){return(e=l.invert(e[0],e[1]))&&[e[0]*p,e[1]*p]}function q(){var e=tr(d,0,0,z,_,x).apply(null,t(g,y)),r=(x?tr:er)(d,f-e[0],m-e[1],z,_,x);return n=Ke(b,v,M),s=Je(t,r),l=Je(n,s),o=Qn(s,S),D()}function D(){return c=u=null,C}return C.stream=function(e){return c&&u===e?c:c=Kn(function(e){return Vn({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}(n)(w(o(T(u=e)))))},C.preclip=function(e){return arguments.length?(w=e,O=void 0,D()):w},C.postclip=function(e){return arguments.length?(T=e,k=r=a=i=null,D()):T},C.clipAngle=function(e){return arguments.length?(w=+e?bt(O=e*h):(O=null,yt),D()):O*p},C.clipExtent=function(e){return arguments.length?(T=null==e?(k=r=a=i=null,Ht):xt(k=+e[0][0],r=+e[0][1],a=+e[1][0],i=+e[1][1]),D()):null==k?null:[[k,r],[a,i]]},C.scale=function(e){return arguments.length?(d=+e,q()):d},C.translate=function(e){return arguments.length?(f=+e[0],m=+e[1],q()):[f,m]},C.center=function(e){return arguments.length?(g=e[0]%360*h,y=e[1]%360*h,q()):[g*p,y*p]},C.rotate=function(e){return arguments.length?(b=e[0]%360*h,v=e[1]%360*h,M=e.length>2?e[2]%360*h:0,q()):[b*p,v*p,M*p]},C.angle=function(e){return arguments.length?(x=e%360*h,q()):x*p},C.reflectX=function(e){return arguments.length?(z=e?-1:1,q()):z<0},C.reflectY=function(e){return arguments.length?(_=e?-1:1,q()):_<0},C.precision=function(e){return arguments.length?(o=Qn(s,S=e*e),D()):A(S)},C.fitExtent=function(e,t){return Gn(C,e,t)},C.fitSize=function(e,t){return Yn(C,e,t)},C.fitWidth=function(e,t){return Zn(C,e,t)},C.fitHeight=function(e,t){return $n(C,e,t)},function(){return t=e.apply(this,arguments),C.invert=t.invert&&E,q()}}function ar(e){var t=0,n=l/3,r=rr(e),a=r(t,n);return a.parallels=function(e){return arguments.length?r(t=e[0]*h,n=e[1]*h):[t*p,n*p]},a}function ir(e,t){var n=z(e),r=(n+z(t))/2;if(f(r)<o)return function(e){var t=y(e);function n(e,n){return[e*t,z(n)/t]}return n.invert=function(e,n){return[e/t,k(n*t)]},n}(e);var a=1+n*(2*r-n),i=A(a)/r;function s(e,t){var n=A(a-2*r*z(t))/r;return[n*z(e*=r),i-n*y(e)]}return s.invert=function(e,t){var n=i-t,o=g(e,f(n))*_(n);return n*r<0&&(o-=l*_(e)*_(n)),[o/r,k((a-(e*e+n*n)*r*r)/(2*r))]},s}function or(){return ar(ir).scale(155.424).center([0,33.6442])}function sr(){return or().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function lr(e){return function(t,n){var r=y(t),a=y(n),i=e(r*a);return[i*a*z(t),i*z(n)]}}function cr(e){return function(t,n){var r=A(t*t+n*n),a=e(r),i=z(a),o=y(a);return[g(t*i,r*o),k(r&&n*i/r)]}}var ur=lr(function(e){return A(2/(1+e))});ur.invert=cr(function(e){return 2*k(e/2)});var dr=lr(function(e){return(e=w(e))&&e/z(e)});function pr(e,t){return[e,M(O((c+t)/2))]}function hr(e){var t,n,r,a=nr(e),i=a.center,o=a.scale,s=a.translate,c=a.clipExtent,u=null;function d(){var i=l*o(),s=a(rt(a.rotate()).invert([0,0]));return c(null==u?[[s[0]-i,s[1]-i],[s[0]+i,s[1]+i]]:e===pr?[[Math.max(s[0]-i,u),t],[Math.min(s[0]+i,n),r]]:[[u,Math.max(s[1]-i,t)],[n,Math.min(s[1]+i,r)]])}return a.scale=function(e){return arguments.length?(o(e),d()):o()},a.translate=function(e){return arguments.length?(s(e),d()):s()},a.center=function(e){return arguments.length?(i(e),d()):i()},a.clipExtent=function(e){return arguments.length?(null==e?u=t=n=r=null:(u=+e[0][0],t=+e[0][1],n=+e[1][0],r=+e[1][1]),d()):null==u?null:[[u,t],[n,r]]},d()}function fr(e){return O((c+e)/2)}function mr(e,t){var n=y(e),r=e===t?z(e):M(n/y(t))/M(fr(t)/fr(e)),a=n*x(fr(e),r)/r;if(!r)return pr;function i(e,t){a>0?t<-c+o&&(t=-c+o):t>c-o&&(t=c-o);var n=a/x(fr(t),r);return[n*z(r*e),a-n*y(r*e)]}return i.invert=function(e,t){var n=a-t,i=_(r)*A(e*e+n*n),o=g(e,f(n))*_(n);return n*r<0&&(o-=l*_(e)*_(n)),[o/r,2*m(x(a/i,1/r))-c]},i}function gr(e,t){return[e,t]}function yr(e,t){var n=y(e),r=e===t?z(e):(n-y(t))/(t-e),a=n/r+e;if(f(r)<o)return gr;function i(e,t){var n=a-t,i=r*e;return[n*z(i),a-n*y(i)]}return i.invert=function(e,t){var n=a-t,i=g(e,f(n))*_(n);return n*r<0&&(i-=l*_(e)*_(n)),[i/r,a-_(r)*A(e*e+n*n)]},i}dr.invert=cr(function(e){return e}),pr.invert=function(e,t){return[e,2*m(v(t))-c]},gr.invert=gr;var br=1.340264,vr=-.081106,Mr=893e-6,xr=.003796,zr=A(3)/2;function _r(e,t){var n=k(zr*z(t)),r=n*n,a=r*r*r;return[e*y(n)/(zr*(br+3*vr*r+a*(7*Mr+9*xr*r))),n*(br+vr*r+a*(Mr+xr*r))]}function Ar(e,t){var n=y(t),r=y(e)*n;return[n*z(e)/r,z(t)/r]}function Or(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function wr(e,t){return[y(t)*z(e),z(t)]}function kr(e,t){var n=y(t),r=1+y(e)*n;return[n*z(e)/r,z(t)/r]}function Tr(e,t){return[M(O((c+t)/2)),-e]}_r.invert=function(e,t){for(var n,r=t,a=r*r,i=a*a*a,o=0;o<12&&(i=(a=(r-=n=(r*(br+vr*a+i*(Mr+xr*a))-t)/(br+3*vr*a+i*(7*Mr+9*xr*a)))*r)*a*a,!(f(n)<s));++o);return[zr*e*(br+3*vr*a+i*(7*Mr+9*xr*a))/y(r),k(z(r)/zr)]},Ar.invert=cr(m),Or.invert=function(e,t){var n,r=t,a=25;do{var i=r*r,s=i*i;r-=n=(r*(1.007226+i*(.015085+s*(.028874*i-.044475-.005916*s)))-t)/(1.007226+i*(.045255+s*(.259866*i-.311325-.005916*11*s)))}while(f(n)>o&&--a>0);return[e/(.8707+(i=r*r)*(i*(i*i*i*(.003971-.001529*i)-.013791)-.131979)),r]},wr.invert=cr(k),kr.invert=cr(function(e){return 2*m(e)}),Tr.invert=function(e,t){return[-t,2*m(v(e))-c]},e.geoAlbers=sr,e.geoAlbersUsa=function(){var e,t,n,r,a,i,s=sr(),l=or().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=or().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(e,t){i=[e,t]}};function d(e){var t=e[0],o=e[1];return i=null,n.point(t,o),i||(r.point(t,o),i)||(a.point(t,o),i)}function p(){return e=t=null,d}return d.invert=function(e){var t=s.scale(),n=s.translate(),r=(e[0]-n[0])/t,a=(e[1]-n[1])/t;return(a>=.12&&a<.234&&r>=-.425&&r<-.214?l:a>=.166&&a<.234&&r>=-.214&&r<-.115?c:s).invert(e)},d.stream=function(n){return e&&t===n?e:e=function(e){var t=e.length;return{point:function(n,r){for(var a=-1;++a<t;)e[a].point(n,r)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}([s.stream(t=n),l.stream(n),c.stream(n)])},d.precision=function(e){return arguments.length?(s.precision(e),l.precision(e),c.precision(e),p()):s.precision()},d.scale=function(e){return arguments.length?(s.scale(e),l.scale(.35*e),c.scale(e),d.translate(s.translate())):s.scale()},d.translate=function(e){if(!arguments.length)return s.translate();var t=s.scale(),i=+e[0],d=+e[1];return n=s.translate(e).clipExtent([[i-.455*t,d-.238*t],[i+.455*t,d+.238*t]]).stream(u),r=l.translate([i-.307*t,d+.201*t]).clipExtent([[i-.425*t+o,d+.12*t+o],[i-.214*t-o,d+.234*t-o]]).stream(u),a=c.translate([i-.205*t,d+.212*t]).clipExtent([[i-.214*t+o,d+.166*t+o],[i-.115*t-o,d+.234*t-o]]).stream(u),p()},d.fitExtent=function(e,t){return Gn(d,e,t)},d.fitSize=function(e,t){return Yn(d,e,t)},d.fitWidth=function(e,t){return Zn(d,e,t)},d.fitHeight=function(e,t){return $n(d,e,t)},d.scale(1070)},e.geoArea=function(e){return j.reset(),L(e,U),2*j},e.geoAzimuthalEqualArea=function(){return nr(ur).scale(124.75).clipAngle(179.999)},e.geoAzimuthalEqualAreaRaw=ur,e.geoAzimuthalEquidistant=function(){return nr(dr).scale(79.4188).clipAngle(179.999)},e.geoAzimuthalEquidistantRaw=dr,e.geoBounds=function(e){var t,n,r,a,i,o,s;if(ae=re=-(te=ne=1/0),ce=[],L(e,pe),n=ce.length){for(ce.sort(xe),t=1,i=[r=ce[0]];t<n;++t)ze(r,(a=ce[t])[0])||ze(r,a[1])?(Me(r[0],a[1])>Me(r[0],r[1])&&(r[1]=a[1]),Me(a[0],r[1])>Me(r[0],r[1])&&(r[0]=a[0])):i.push(r=a);for(o=-1/0,t=0,r=i[n=i.length-1];t<=n;r=a,++t)a=i[t],(s=Me(r[1],a[0]))>o&&(o=s,te=a[0],re=r[1])}return ce=ue=null,te===1/0||ne===1/0?[[NaN,NaN],[NaN,NaN]]:[[te,ne],[re,ae]]},e.geoCentroid=function(e){_e=Ae=Oe=we=ke=Te=Se=Ce=Ee=qe=De=0,L(e,Pe);var t=Ee,n=qe,r=De,a=t*t+n*n+r*r;return a<s&&(t=Te,n=Se,r=Ce,Ae<o&&(t=Oe,n=we,r=ke),(a=t*t+n*n+r*r)<s)?[NaN,NaN]:[g(n,t)*p,k(r/A(a))*p]},e.geoCircle=function(){var e,t,n=$e([0,0]),r=$e(90),a=$e(6),i={point:function(n,r){e.push(n=t(n,r)),n[0]*=p,n[1]*=p}};function o(){var o=n.apply(this,arguments),s=r.apply(this,arguments)*h,l=a.apply(this,arguments)*h;return e=[],t=Ke(-o[0]*h,-o[1]*h,0).invert,at(i,s,l,1),o={type:"Polygon",coordinates:[e]},e=t=null,o}return o.center=function(e){return arguments.length?(n="function"==typeof e?e:$e([+e[0],+e[1]]),o):n},o.radius=function(e){return arguments.length?(r="function"==typeof e?e:$e(+e),o):r},o.precision=function(e){return arguments.length?(a="function"==typeof e?e:$e(+e),o):a},o},e.geoClipAntimeridian=yt,e.geoClipCircle=bt,e.geoClipExtent=function(){var e,t,n,r=0,a=0,i=960,o=500;return n={stream:function(n){return e&&t===n?e:e=xt(r,a,i,o)(t=n)},extent:function(s){return arguments.length?(r=+s[0][0],a=+s[0][1],i=+s[1][0],o=+s[1][1],e=t=null,n):[[r,a],[i,o]]}}},e.geoClipRectangle=xt,e.geoConicConformal=function(){return ar(mr).scale(109.5).parallels([30,30])},e.geoConicConformalRaw=mr,e.geoConicEqualArea=or,e.geoConicEqualAreaRaw=ir,e.geoConicEquidistant=function(){return ar(yr).scale(131.154).center([0,13.9389])},e.geoConicEquidistantRaw=yr,e.geoContains=function(e,t){return(e&&Rt.hasOwnProperty(e.type)?Rt[e.type]:It)(e,t)},e.geoDistance=Dt,e.geoEqualEarth=function(){return nr(_r).scale(177.158)},e.geoEqualEarthRaw=_r,e.geoEquirectangular=function(){return nr(gr).scale(152.63)},e.geoEquirectangularRaw=gr,e.geoGnomonic=function(){return nr(Ar).scale(144.049).clipAngle(60)},e.geoGnomonicRaw=Ar,e.geoGraticule=Vt,e.geoGraticule10=function(){return Vt()()},e.geoIdentity=function(){var e,t,n,r,a,i,o,s=1,l=0,c=0,u=1,d=1,f=0,m=null,g=1,b=1,v=Vn({point:function(e,t){var n=_([e,t]);this.stream.point(n[0],n[1])}}),M=Ht;function x(){return g=s*u,b=s*d,i=o=null,_}function _(n){var r=n[0]*g,a=n[1]*b;if(f){var i=a*e-r*t;r=r*e+a*t,a=i}return[r+l,a+c]}return _.invert=function(n){var r=n[0]-l,a=n[1]-c;if(f){var i=a*e+r*t;r=r*e-a*t,a=i}return[r/g,a/b]},_.stream=function(e){return i&&o===e?i:i=v(M(o=e))},_.postclip=function(e){return arguments.length?(M=e,m=n=r=a=null,x()):M},_.clipExtent=function(e){return arguments.length?(M=null==e?(m=n=r=a=null,Ht):xt(m=+e[0][0],n=+e[0][1],r=+e[1][0],a=+e[1][1]),x()):null==m?null:[[m,n],[r,a]]},_.scale=function(e){return arguments.length?(s=+e,x()):s},_.translate=function(e){return arguments.length?(l=+e[0],c=+e[1],x()):[l,c]},_.angle=function(n){return arguments.length?(t=z(f=n%360*h),e=y(f),x()):f*p},_.reflectX=function(e){return arguments.length?(u=e?-1:1,x()):u<0},_.reflectY=function(e){return arguments.length?(d=e?-1:1,x()):d<0},_.fitExtent=function(e,t){return Gn(_,e,t)},_.fitSize=function(e,t){return Yn(_,e,t)},_.fitWidth=function(e,t){return Zn(_,e,t)},_.fitHeight=function(e,t){return $n(_,e,t)},_},e.geoInterpolate=function(e,t){var n=e[0]*h,r=e[1]*h,a=t[0]*h,i=t[1]*h,o=y(r),s=z(r),l=y(i),c=z(i),u=o*y(n),d=o*z(n),f=l*y(a),m=l*z(a),b=2*k(A(T(i-r)+o*l*T(a-n))),v=z(b),M=b?function(e){var t=z(e*=b)/v,n=z(b-e)/v,r=n*u+t*f,a=n*d+t*m,i=n*s+t*c;return[g(a,r)*p,g(i,A(r*r+a*a))*p]}:function(){return[n*p,r*p]};return M.distance=b,M},e.geoLength=Ct,e.geoMercator=function(){return hr(pr).scale(961/d)},e.geoMercatorRaw=pr,e.geoNaturalEarth1=function(){return nr(Or).scale(175.295)},e.geoNaturalEarth1Raw=Or,e.geoOrthographic=function(){return nr(wr).scale(249.5).clipAngle(90+o)},e.geoOrthographicRaw=wr,e.geoPath=function(e,t){var n,r,a=4.5;function i(e){return e&&("function"==typeof a&&r.pointRadius(+a.apply(this,arguments)),L(e,n(r))),r.result()}return i.area=function(e){return L(e,n(Qt)),Qt.result()},i.measure=function(e){return L(e,n(Pn)),Pn.result()},i.bounds=function(e){return L(e,n(pn)),pn.result()},i.centroid=function(e){return L(e,n(zn)),zn.result()},i.projection=function(t){return arguments.length?(n=null==t?(e=null,Ht):(e=t).stream,i):e},i.context=function(e){return arguments.length?(r=null==e?(t=null,new jn):new qn(t=e),"function"!=typeof a&&r.pointRadius(a),i):t},i.pointRadius=function(e){return arguments.length?(a="function"==typeof e?e:(r.pointRadius(+e),+e),i):a},i.projection(e).context(t)},e.geoProjection=nr,e.geoProjectionMutator=rr,e.geoRotation=rt,e.geoStereographic=function(){return nr(kr).scale(250).clipAngle(142)},e.geoStereographicRaw=kr,e.geoStream=L,e.geoTransform=function(e){return{stream:Vn(e)}},e.geoTransverseMercator=function(){var e=hr(Tr),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)},e.geoTransverseMercatorRaw=Tr,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?r(e,XL()):"function"==typeof define&&define.amd?define(["exports","d3-array"],r):r((n=n||self).d3=n.d3||{},n.d3)}),R1t=Ee((e,t)=>{var n,r;n=e,r=function(e,t,n){var r=Math.abs,a=Math.atan,i=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,c=Math.log,u=Math.max,d=Math.min,p=Math.pow,h=Math.round,f=Math.sign||function(e){return e>0?1:e<0?-1:0},m=Math.sin,g=Math.tan,y=1e-6,b=1e-12,v=Math.PI,M=v/2,x=v/4,z=Math.SQRT1_2,_=C(2),A=C(v),O=2*v,w=180/v,k=v/180;function T(e){return e>1?M:e<-1?-M:Math.asin(e)}function S(e){return e>1?0:e<-1?v:Math.acos(e)}function C(e){return e>0?Math.sqrt(e):0}function E(e){return(s(e)-s(-e))/2}function q(e){return(s(e)+s(-e))/2}function D(e){var t=g(e/2),n=2*c(o(e/2))/(t*t);function a(e,t){var r=o(e),a=o(t),i=m(t),s=a*r,l=-((1-s?c((1+s)/2)/(1-s):-.5)+n/(1+s));return[l*a*m(e),l*i]}return a.invert=function(t,a){var s,l=C(t*t+a*a),u=-e/2,d=50;if(!l)return[0,0];do{var p=u/2,h=o(p),f=m(p),g=f/h,b=-c(r(h));u-=s=(2/g*b-n*g-l)/(-b/(f*f)+1-n/(2*h*h))*(h<0?.7:1)}while(r(s)>y&&--d>0);var v=m(u);return[i(t*v,l*o(u)),T(a*v/l)]},a}function R(e,t){var n=o(t),r=function(e){return e?e/Math.sin(e):1}(S(n*o(e/=2)));return[2*n*m(e)*r,m(t)*r]}function L(e){var t=m(e),n=o(e),a=e>=0?1:-1,s=g(a*e),l=(1+t-n)/2;function c(e,r){var c=o(r),u=o(e/=2);return[(1+c)*m(e),(a*r>-i(u,s)-.001?0:10*-a)+l+m(r)*n-(1+c)*t*u]}return c.invert=function(e,c){var u=0,d=0,p=50;do{var h=o(u),f=m(u),g=o(d),b=m(d),v=1+g,M=v*f-e,x=l+b*n-v*t*h-c,z=v*h/2,_=-f*b,A=t*v*f/2,O=n*g+t*h*b,w=_*A-O*z,k=(x*_-M*O)/w/2,T=(M*A-x*z)/w;r(T)>2&&(T/=2),u-=k,d-=T}while((r(k)>y||r(T)>y)&&--p>0);return a*d>-i(o(u),s)-.001?[2*u,d]:null},c}function I(e,t){var n=g(t/2),r=C(1-n*n),a=1+r*o(e/=2),i=m(e)*r/a,s=n/a,l=i*i,c=s*s;return[4/3*i*(3+l-3*c),4/3*s*(3+3*l-c)]}R.invert=function(e,t){if(!(e*e+4*t*t>v*v+y)){var n=e,a=t,i=25;do{var s,l=m(n),c=m(n/2),u=o(n/2),d=m(a),p=o(a),h=m(2*a),f=d*d,g=p*p,b=c*c,M=1-g*u*u,x=M?S(p*u)*C(s=1/M):s=0,z=2*x*p*c-e,_=x*d-t,A=s*(g*b+x*p*u*f),O=s*(.5*l*h-2*x*d*c),w=.25*s*(h*c-x*d*g*l),k=s*(f*u+x*b*p),T=O*w-k*A;if(!T)break;var E=(_*O-z*k)/T,q=(z*w-_*A)/T;n-=E,a-=q}while((r(E)>y||r(q)>y)&&--i>0);return[n,a]}},I.invert=function(e,t){if(t*=3/8,!(e*=3/8)&&r(t)>1)return null;var n=1+e*e+t*t,a=C((n-C(n*n-4*t*t))/2),s=T(a)/3,l=a?function(e){return c(e+C(e*e-1))}(r(t/a))/3:function(e){return c(e+C(e*e+1))}(r(e))/3,u=o(s),d=q(l),p=d*d-u*u;return[2*f(e)*i(E(l)*u,.25-p),2*f(t)*i(d*m(s),.25+p)]};var W=C(8),N=c(1+_);function P(e,t){var n=r(t);return n<x?[e,c(g(x+t/2))]:[e*o(n)*(2*_-1/m(n)),f(t)*(2*_*(n-x)-c(g(n/2)))]}function B(e){var n=2*v/e;function s(e,a){var s=t.geoAzimuthalEquidistantRaw(e,a);if(r(e)>M){var l=i(s[1],s[0]),c=C(s[0]*s[0]+s[1]*s[1]),u=n*h((l-M)/n)+M,d=i(m(l-=u),2-o(l));l=u+T(v/c*m(d))-d,s[0]=c*o(l),s[1]=c*m(l)}return s}return s.invert=function(e,r){var s=C(e*e+r*r);if(s>M){var l=i(r,e),c=n*h((l-M)/n)+M,u=l>c?-1:1,d=s*o(c-l),p=1/g(u*S((d-v)/C(v*(v-2*d)+s*s)));l=c+2*a((p+u*C(p*p-3))/3),e=s*o(l),r=s*m(l)}return t.geoAzimuthalEquidistantRaw.invert(e,r)},s}function F(e,n){if(arguments.length<2&&(n=e),1===n)return t.geoAzimuthalEqualAreaRaw;if(n===1/0)return j;function r(r,a){var i=t.geoAzimuthalEqualAreaRaw(r/n,a);return i[0]*=e,i}return r.invert=function(r,a){var i=t.geoAzimuthalEqualAreaRaw.invert(r/e,a);return i[0]*=n,i},r}function j(e,t){return[e*o(t)/o(t/=2),2*m(t)]}function U(e,t,n){var a,i,o,s=100;n=void 0===n?0:+n,t=+t;do{(i=e(n))===(o=e(n+y))&&(o=i+y),n-=a=-1*y*(i-t)/(i-o)}while(s-- >0&&r(a)>y);return s<0?NaN:n}function V(e,t,n){return void 0===t&&(t=40),void 0===n&&(n=b),function(a,i,o,s){var l,c,u;o=void 0===o?0:+o,s=void 0===s?0:+s;for(var d=0;d<t;d++){var p=e(o,s),h=p[0]-a,f=p[1]-i;if(r(h)<n&&r(f)<n)break;var m=h*h+f*f;if(m>l)o-=c/=2,s-=u/=2;else{l=m;var g=(o>0?-1:1)*n,y=(s>0?-1:1)*n,b=e(o+g,s),v=e(o,s+y),M=(b[0]-p[0])/g,x=(b[1]-p[1])/g,z=(v[0]-p[0])/y,_=(v[1]-p[1])/y,A=_*M-x*z,O=(r(A)<.5?.5:1)/A;if(o+=c=(f*z-h*_)*O,s+=u=(h*x-f*M)*O,r(c)<n&&r(u)<n)break}}return[o,s]}}function H(){var e=F(1.68,2);function t(t,n){if(t+n<-1.4){var r=(t-n+1.6)*(t+n+1.4)/8;t+=r,n-=.8*r*m(n+v/2)}var a=e(t,n),i=(1-o(t*n))/12;return a[1]<0&&(a[0]*=1+i),a[1]>0&&(a[1]*=1+i/1.5*a[0]*a[0]),a}return t.invert=V(t),t}function X(e,t){var n,a=e*m(t),i=30;do{t-=n=(t+m(t)-a)/(1+o(t))}while(r(n)>y&&--i>0);return t/2}function G(e,t,n){function r(r,a){return[e*r*o(a=X(n,a)),t*m(a)]}return r.invert=function(r,a){return a=T(a/t),[r/(e*o(a)),T((2*a+m(2*a))/n)]},r}P.invert=function(e,t){if((i=r(t))<N)return[e,2*a(s(t))-M];var n,i,l=x,u=25;do{var d=o(l/2),p=g(l/2);l-=n=(W*(l-x)-c(p)-i)/(W-d*d/(2*p))}while(r(n)>b&&--u>0);return[e/(o(l)*(W-1/m(l))),f(t)*l]},j.invert=function(e,t){var n=2*T(t/2);return[e*o(n/2)/o(n),n]};var Y=G(_/M,_,v),Z=2.00276,$=1.11072;function J(e,t){var n=X(v,t);return[Z*e/(1/o(t)+$/o(n)),(t+_*m(n))/Z]}function Q(e){var n=0,r=t.geoProjectionMutator(e),a=r(n);return a.parallel=function(e){return arguments.length?r(n=e*k):n*w},a}function K(e,t){return[e*o(t),t]}function ee(e){if(!e)return K;var t=1/g(e);function n(n,r){var a=t+e-r,i=a&&n*o(r)/a;return[a*m(i),t-a*o(i)]}return n.invert=function(n,r){var a=C(n*n+(r=t-r)*r),s=t+e-a;return[a/o(s)*i(n,r),s]},n}function te(e){function t(t,n){var r=M-n,a=r&&t*e*m(r)/r;return[r*m(a)/e,M-r*o(a)]}return t.invert=function(t,n){var r=t*e,a=M-n,o=C(r*r+a*a),s=i(r,a);return[(o?o/m(o):1)*s/e,M-o]},t}J.invert=function(e,t){var n,a,i=Z*t,s=t<0?-x:x,l=25;do{a=i-_*m(s),s-=n=(m(2*s)+2*s-v*m(a))/(2*o(2*s)+2+v*o(a)*_*o(s))}while(r(n)>y&&--l>0);return a=i-_*m(s),[e*(1/o(a)+$/o(s))/Z,a]},K.invert=function(e,t){return[e/o(t),t]};var ne=G(1,4/v,v);function re(e,t,n,a,s,l){var c,u=o(l);if(r(e)>1||r(l)>1)c=S(n*s+t*a*u);else{var d=m(e/2),p=m(l/2);c=2*T(C(d*d+t*a*p*p))}return r(c)>y?[c,i(a*m(l),t*s-n*a*u)]:[0,0]}function ae(e,t,n){return S((e*e+t*t-n*n)/(2*e*t))}function ie(e){return e-2*v*l((e+v)/(2*v))}function oe(e,t,n){for(var r,a=[[e[0],e[1],m(e[1]),o(e[1])],[t[0],t[1],m(t[1]),o(t[1])],[n[0],n[1],m(n[1]),o(n[1])]],i=a[2],s=0;s<3;++s,i=r)r=a[s],i.v=re(r[1]-i[1],i[3],i[2],r[3],r[2],r[0]-i[0]),i.point=[0,0];var l=ae(a[0].v[0],a[2].v[0],a[1].v[0]),c=ae(a[0].v[0],a[1].v[0],a[2].v[0]),u=v-l;a[2].point[1]=0,a[0].point[0]=-(a[1].point[0]=a[0].v[0]/2);var d=[a[2].point[0]=a[0].point[0]+a[2].v[0]*o(l),2*(a[0].point[1]=a[1].point[1]=a[2].v[0]*m(l))];return function(e,t){var n,r=m(t),i=o(t),s=new Array(3);for(n=0;n<3;++n){var l=a[n];if(s[n]=re(t-l[1],l[3],l[2],i,r,e-l[0]),!s[n][0])return l.point;s[n][1]=ie(s[n][1]-l.v[1])}var p=d.slice();for(n=0;n<3;++n){var h=2==n?0:n+1,f=ae(a[n].v[0],s[n][0],s[h][0]);s[n][1]<0&&(f=-f),n?1==n?(f=c-f,p[0]-=s[n][0]*o(f),p[1]-=s[n][0]*m(f)):(f=u-f,p[0]+=s[n][0]*o(f),p[1]+=s[n][0]*m(f)):(p[0]+=s[n][0]*o(f),p[1]-=s[n][0]*m(f))}return p[0]/=3,p[1]/=3,p}}function se(e){return e[0]*=k,e[1]*=k,e}function le(e,n,r){var a=t.geoCentroid({type:"MultiPoint",coordinates:[e,n,r]}),i=[-a[0],-a[1]],o=t.geoRotation(i),s=oe(se(o(e)),se(o(n)),se(o(r)));s.invert=V(s);var l=t.geoProjection(s).rotate(i),c=l.center;return delete l.rotate,l.center=function(e){return arguments.length?c(o(e)):o.invert(c())},l.clipAngle(90)}function ce(e,t){var n=C(1-m(t));return[2/A*e*n,A*(1-n)]}function ue(e){var t=g(e);function n(e,n){return[e,(e?e/m(e):1)*(m(n)*o(e)-t*o(n))]}return n.invert=t?function(e,n){e&&(n*=m(e)/e);var r=o(e);return[e,2*i(C(r*r+t*t-n*n)-r,t-n)]}:function(e,t){return[e,T(e?t*g(e)/e:t)]},n}ce.invert=function(e,t){var n=(n=t/A-1)*n;return[n>0?e*C(v/n)/2:0,T(1-n)]};var de=C(3);function pe(e,t){return[de*e*(2*o(2*t/3)-1)/A,de*A*m(t/3)]}function he(e){var t=o(e);function n(e,n){return[e*t,m(n)/t]}return n.invert=function(e,n){return[e/t,T(n*t)]},n}function fe(e){var t=o(e);function n(e,n){return[e*t,(1+t)*g(n/2)]}return n.invert=function(e,n){return[e/t,2*a(n/(1+t))]},n}function me(e,t){var n=C(8/(3*v));return[n*e*(1-r(t)/v),n*t]}function ge(e,t){var n=C(4-3*m(r(t)));return[2/C(6*v)*e*n,f(t)*C(2*v/3)*(2-n)]}function ye(e,t){var n=C(v*(4+v));return[2/n*e*(1+C(1-4*t*t/(v*v))),4/n*t]}function be(e,t){var n=(2+M)*m(t);t/=2;for(var a=0,i=1/0;a<10&&r(i)>y;a++){var s=o(t);t-=i=(t+m(t)*(s+2)-n)/(2*s*(1+s))}return[2/C(v*(4+v))*e*(1+o(t)),2*C(v/(4+v))*m(t)]}function ve(e,t){return[e*(1+o(t))/C(2+v),2*t/C(2+v)]}function Me(e,t){for(var n=(1+M)*m(t),a=0,i=1/0;a<10&&r(i)>y;a++)t-=i=(t+m(t)-n)/(1+o(t));return n=C(2+v),[e*(1+o(t))/n,2*t/n]}pe.invert=function(e,t){var n=3*T(t/(de*A));return[A*e/(de*(2*o(2*n/3)-1)),n]},me.invert=function(e,t){var n=C(8/(3*v)),a=t/n;return[e/(n*(1-r(a)/v)),a]},ge.invert=function(e,t){var n=2-r(t)/C(2*v/3);return[e*C(6*v)/(2*n),f(t)*T((4-n*n)/3)]},ye.invert=function(e,t){var n=C(v*(4+v))/2;return[e*n/(1+C(1-t*t*(4+v)/(4*v))),t*n/2]},be.invert=function(e,t){var n=t*C((4+v)/v)/2,r=T(n),a=o(r);return[e/(2/C(v*(4+v))*(1+a)),T((r+n*(a+2))/(2+M))]},ve.invert=function(e,t){var n=C(2+v),r=t*n/2;return[n*e/(1+o(r)),r]},Me.invert=function(e,t){var n=1+M,r=C(n/2);return[2*e*r/(1+o(t*=r)),T((t+m(t))/n)]};var xe=3+2*_;function ze(e,t){var n=m(e/=2),r=o(e),i=C(o(t)),s=o(t/=2),l=m(t)/(s+_*r*i),u=C(2/(1+l*l)),d=C((_*s+(r+n)*i)/(_*s+(r-n)*i));return[xe*(u*(d-1/d)-2*c(d)),xe*(u*l*(d+1/d)-2*a(l))]}ze.invert=function(e,t){if(!(n=I.invert(e/1.2,1.065*t)))return null;var n,i=n[0],s=n[1],l=20;e/=xe,t/=xe;do{var p=i/2,h=s/2,f=m(p),g=o(p),b=m(h),v=o(h),x=o(s),A=C(x),O=b/(v+_*g*A),w=O*O,k=C(2/(1+w)),T=(_*v+(g+f)*A)/(_*v+(g-f)*A),S=C(T),E=S-1/S,q=S+1/S,D=k*E-2*c(S)-e,R=k*O*q-2*a(O)-t,L=b&&z*A*f*w/b,W=(_*g*v+A)/(2*(v+_*g*A)*(v+_*g*A)*A),N=-.5*O*k*k*k,P=N*L,B=N*W,F=(F=2*v+_*A*(g-f))*F*S,j=(_*g*v*A+x)/F,U=-_*f*b/(A*F),V=E*P-2*j/S+k*(j+j/T),H=E*B-2*U/S+k*(U+U/T),X=O*q*P-2*L/(1+w)+k*q*L+k*O*(j-j/T),G=O*q*B-2*W/(1+w)+k*q*W+k*O*(U-U/T),Y=H*X-G*V;if(!Y)break;var Z=(R*H-D*G)/Y,$=(D*X-R*V)/Y;i-=Z,s=u(-M,d(M,s-$))}while((r(Z)>y||r($)>y)&&--l>0);return r(r(s)-M)<y?[0,s]:l&&[i,s]};var _e=o(35*k);function Ae(e,t){var n=g(t/2);return[e*_e*C(1-n*n),(1+_e)*n]}function Oe(e,t){var n=t/2,r=o(n);return[2*e/A*o(t)*r*r,A*g(n)]}function we(e){var t=1-e,n=a(v,0)[0]-a(-v,0)[0],r=C(2*(a(0,M)[1]-a(0,-M)[1])/n);function a(n,r){var a=o(r),i=m(r);return[a/(t+e*a)*n,t*r+e*i]}function i(e,t){var n=a(e,t);return[n[0]*r,n[1]/r]}function s(e){return i(0,e)[1]}return i.invert=function(n,a){var i=U(s,a);return[n/r*(e+t/o(i)),i]},i}function ke(e){return[e[0]/2,T(g(e[1]/2*k))*w]}function Te(e){return[2*e[0],2*a(m(e[1]*k))*w]}function Se(e,n){var a=2*v/n,s=e*e;function l(n,l){var c=t.geoAzimuthalEquidistantRaw(n,l),u=c[0],d=c[1],p=u*u+d*d;if(p>s){var f=C(p),g=i(d,u),b=a*h(g/a),x=g-b,z=e*o(x),_=(e*m(x)-x*m(z))/(M-z),A=Ce(x,_),O=(v-e)/Ee(A,z,v);u=f;var w,k=50;do{u-=w=(e+Ee(A,z,u)*O-f)/(A(u)*O)}while(r(w)>y&&--k>0);d=x*m(u),u<M&&(d-=_*(u-M));var T=m(b),S=o(b);c[0]=u*S-d*T,c[1]=u*T+d*S}return c}return l.invert=function(n,l){var c=n*n+l*l;if(c>s){var u=C(c),d=i(l,n),p=a*h(d/a),f=d-p;n=u*o(f),l=u*m(f);for(var g=n-M,y=m(n),x=l/y,z=n<M?1/0:0,_=10;;){var A=e*m(x),O=e*o(x),w=m(O),k=M-O,T=(A-x*w)/k,S=Ce(x,T);if(r(z)<b||! --_)break;x-=z=(x*y-T*g-l)/(y-2*g*(k*(O+x*A*o(O)-w)-A*(A-x*w))/(k*k))}n=(u=e+Ee(S,O,n)*(v-e)/Ee(S,O,v))*o(d=p+x),l=u*m(d)}return t.geoAzimuthalEquidistantRaw.invert(n,l)},l}function Ce(e,t){return function(n){var r=e*o(n);return n<M&&(r-=t),C(1+r*r)}}function Ee(e,t,n){for(var r=(n-t)/50,a=e(t)+e(n),i=1,o=t;i<50;++i)a+=2*e(o+=r);return.5*a*r}function qe(e,t,n,a,i,s,l,c){function u(r,u){if(!u)return[e*r/v,0];var d=u*u,p=e+d*(t+d*(n+d*a)),h=u*(i-1+d*(s-c+d*l)),f=(p*p+h*h)/(2*h),g=r*T(p/f)/v;return[f*m(g),u*(1+d*c)+f*(1-o(g))]}return arguments.length<8&&(c=0),u.invert=function(u,d){var p,h,f=v*u/e,g=d,b=50;do{var M=g*g,x=e+M*(t+M*(n+M*a)),z=g*(i-1+M*(s-c+M*l)),_=x*x+z*z,A=2*z,O=_/A,w=O*O,k=T(x/O)/v,S=f*k,E=x*x,q=(2*t+M*(4*n+6*M*a))*g,D=i+M*(3*s+5*M*l),R=(2*(x*q+z*(D-1))*A-_*(2*(D-1)))/(A*A),L=o(S),I=m(S),W=O*L,N=O*I,P=f/v*(1/C(1-E/w))*(q*O-x*R)/w,B=N-u,F=g*(1+M*c)+O-W-d,j=R*I+W*P,U=W*k,V=1+R-(R*L-N*P),H=N*k,X=j*H-V*U;if(!X)break;f-=p=(F*j-B*V)/X,g-=h=(B*H-F*U)/X}while((r(p)>y||r(h)>y)&&--b>0);return[f,g]},u}Ae.invert=function(e,t){var n=t/(1+_e);return[e&&e/(_e*C(1-n*n)),2*a(n)]},Oe.invert=function(e,t){var n=a(t/A),r=o(n),i=2*n;return[e*A/2/(o(i)*r*r),i]};var De=qe(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555),Re=qe(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742),Le=qe(5/6*v,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Ie(e,t){var n=e*e,r=t*t;return[e*(1-.162388*r)*(.87-952426e-9*n*n),t*(1+r/12)]}Ie.invert=function(e,t){var n,a=e,i=t,o=50;do{var s=i*i;i-=n=(i*(1+s/12)-t)/(1+s/4)}while(r(n)>y&&--o>0);o=50,e/=1-.162388*s;do{var l=(l=a*a)*l;a-=n=(a*(.87-952426e-9*l)-e)/(.87-.00476213*l)}while(r(n)>y&&--o>0);return[a,i]};var We=qe(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Ne(e){var t=e(M,0)[0]-e(-M,0)[0];function n(n,r){var a=n>0?-.5:.5,i=e(n+a*v,r);return i[0]-=a*t,i}return e.invert&&(n.invert=function(n,r){var a=n>0?-.5:.5,i=e.invert(n+a*t,r),o=i[0]-a*v;return o<-v?o+=2*v:o>v&&(o-=2*v),i[0]=o,i}),n}function Pe(e,t){var n=f(e),a=f(t),s=o(t),l=o(e)*s,c=m(e)*s,u=m(a*t);e=r(i(c,u)),t=T(l),r(e-M)>y&&(e%=M);var d=function(e,t){if(t===M)return[0,0];var n,a,i=m(t),s=i*i,l=s*s,c=1+l,u=1+3*l,d=1-l,p=T(1/C(c)),h=d+s*c*p,f=(1-i)/h,g=C(f),b=f*c,x=C(b),z=g*d;if(0===e)return[0,-(z+s*x)];var _,A=o(t),O=1/A,w=2*i*A,k=(-3*s+p*u)*w,S=(-h*A-(1-i)*k)/(h*h),E=d*(.5*S/g)-2*s*g*w,q=s*c*S+f*u*w,D=-O*w,R=-O*q,L=-2*O*E,I=4*e/v;if(e>.222*v||t<v/4&&e>.175*v){if(n=(z+s*C(b*(1+l)-z*z))/(1+l),e>v/4)return[n,n];var W=n,N=.5*n;n=.5*(N+W),a=50;do{var P=n*(L+D*C(b-n*n))+R*T(n/x)-I;if(!P)break;P<0?N=n:W=n,n=.5*(N+W)}while(r(W-N)>y&&--a>0)}else{n=y,a=25;do{var B=n*n,F=C(b-B),j=L+D*F,U=n*j+R*T(n/x)-I;n-=_=F?U/(j+(R-D*B)/F):0}while(r(_)>y&&--a>0)}return[n,-z-s*C(b-n*n)]}(e>v/4?M-e:e,t);return e>v/4&&(u=d[0],d[0]=-d[1],d[1]=-u),d[0]*=n,d[1]*=-a,d}function Be(e,t){var n,i,l,c,u;if(t<y)return[(c=m(e))-(n=t*(e-c*(i=o(e)))/4)*i,i+n*c,1-t*c*c/2,e-n];if(t>=1-y)return n=(1-t)/4,i=q(e),c=function(e){return((e=s(2*e))-1)/(e+1)}(e),l=1/i,[c+n*((u=i*E(e))-e)/(i*i),l-n*c*l*(u-e),l+n*c*l*(u+e),2*a(s(e))-M+n*(u-e)/i];var d=[1,0,0,0,0,0,0,0,0],p=[C(t),0,0,0,0,0,0,0,0],h=0;for(i=C(1-t),u=1;r(p[h]/d[h])>y&&h<8;)n=d[h++],p[h]=(n-i)/2,d[h]=(n+i)/2,i=C(n*i),u*=2;l=u*d[h]*e;do{l=(T(c=p[h]*m(i=l)/d[h])+l)/2}while(--h);return[m(l),c=o(l),c/o(l-i),l]}function Fe(e,t){if(!t)return e;if(1===t)return c(g(e/2+x));for(var n=1,i=C(1-t),o=C(t),s=0;r(o)>y;s++){if(e%v){var l=a(i*g(e)/n);l<0&&(l+=v),e+=l+~~(e/v)*v}else e+=e;o=(n+i)/2,i=C(n*i),o=((n=o)-i)/2}return e/(p(2,s)*n)}function je(e,t){var n=(_-1)/(_+1),l=C(1-n*n),u=Fe(M,l*l),d=c(g(v/4+r(t)/2)),p=s(-1*d)/C(n),h=function(e,t){var n=e*e,r=t+1,a=1-n-t*t;return[.5*((e>=0?M:-M)-i(a,2*e)),-.25*c(a*a+4*n)+.5*c(r*r+n)]}(p*o(-1*e),p*m(-1*e)),y=function(e,t,n){var i=r(e),o=E(r(t));if(i){var s=1/m(i),l=1/(g(i)*g(i)),c=-(l+n*(o*o*s*s)-1+n),u=(-c+C(c*c-(n-1)*l*4))/2;return[Fe(a(1/C(u)),n)*f(e),Fe(a(C((u/l-1)/n)),1-n)*f(t)]}return[0,Fe(a(o),1-n)*f(t)]}(h[0],h[1],l*l);return[-y[1],(t>=0?1:-1)*(.5*u-y[0])]}function Ue(e){var t=m(e),n=o(e),a=Ve(e);function s(e,i){var s=a(e,i);e=s[0],i=s[1];var l=m(i),c=o(i),u=o(e),d=S(t*l+n*c*u),p=m(d),h=r(p)>y?d/p:1;return[h*n*m(e),(r(e)>M?h:-h)*(t*c-n*l*u)]}return a.invert=Ve(-e),s.invert=function(e,n){var r=C(e*e+n*n),s=-m(r),l=o(r),c=r*l,u=-n*s,d=r*t,p=C(c*c+u*u-d*d),h=i(c*d+u*p,u*d-c*p),f=(r>M?-1:1)*i(e*s,r*o(h)*l+n*m(h)*s);return a.invert(f,h)},s}function Ve(e){var t=m(e),n=o(e);return function(e,r){var a=o(r),s=o(e)*a,l=m(e)*a,c=m(r);return[i(l,s*n-c*t),T(c*n+s*t)]}}Pe.invert=function(e,t){r(e)>1&&(e=2*f(e)-e),r(t)>1&&(t=2*f(t)-t);var n=f(e),a=f(t),s=-n*e,l=-a*t,c=l/s<1,u=function(e,t){for(var n=0,a=1,i=.5,s=50;;){var l=i*i,c=C(i),u=T(1/C(1+l)),d=1-l+i*(1+l)*u,p=(1-c)/d,h=C(p),f=p*(1+l),m=h*(1-l),g=C(f-e*e),y=t+m+i*g;if(r(a-n)<b||0===--s||0===y)break;y>0?n=i:a=i,i=.5*(n+a)}if(!s)return null;var M=T(c),x=o(M),z=1/x,_=2*c*x,A=(-3*i+u*(1+3*l))*_,O=(-d*x-(1-c)*A)/(d*d),w=.5*O/h*(1-l)-2*i*h*_,k=-z*(i*(1+l)*O+p*(1+3*l)*_);return[v/4*(e*(-2*z*w+-z*_*g)+k*T(e/C(f))),M]}(c?l:s,c?s:l),d=u[0],p=u[1],h=o(p);return c&&(d=-M-d),[n*(i(m(d)*h,-m(p))+v),a*T(o(d)*h)]},je.invert=function(e,t){var n=(_-1)/(_+1),r=C(1-n*n),o=function(e,t,n){var r,a,i;return e?(r=Be(e,n),t?(i=(a=Be(t,1-n))[1]*a[1]+n*r[0]*r[0]*a[0]*a[0],[[r[0]*a[2]/i,r[1]*r[2]*a[0]*a[1]/i],[r[1]*a[1]/i,-r[0]*r[2]*a[0]*a[2]/i],[r[2]*a[1]*a[2]/i,-n*r[0]*r[1]*a[0]/i]]):[[r[0],0],[r[1],0],[r[2],0]]):[[0,(a=Be(t,1-n))[0]/a[1]],[1/a[1],0],[a[2]/a[1],0]]}(.5*Fe(M,r*r)-t,-e,r*r),l=function(e,t){var n=t[0]*t[0]+t[1]*t[1];return[(e[0]*t[0]+e[1]*t[1])/n,(e[1]*t[0]-e[0]*t[1])/n]}(o[0],o[1]);return[i(l[1],l[0])/-1,2*a(s(-.5*c(n*l[0]*l[0]+n*l[1]*l[1])))-M]};var He=T(1-1/3)*w,Xe=he(0);function Ge(e){var t=He*k,n=ce(v,t)[0]-ce(-v,t)[0],a=Xe(0,t)[1],i=ce(0,t)[1],o=A-i,s=O/e,c=4/O,p=a+o*o*4/O;function h(h,f){var m,g=r(f);if(g>t){var y=d(e-1,u(0,l((h+v)/s)));(m=ce(h+=v*(e-1)/e-y*s,g))[0]=m[0]*O/n-O*(e-1)/(2*e)+y*O/e,m[1]=a+4*(m[1]-i)*o/O,f<0&&(m[1]=-m[1])}else m=Xe(h,f);return m[0]*=c,m[1]/=p,m}return h.invert=function(t,h){t/=c;var f=r(h*=p);if(f>a){var m=d(e-1,u(0,l((t+v)/s)));t=(t+v*(e-1)/e-m*s)*n/O;var g=ce.invert(t,.25*(f-a)*O/o+i);return g[0]-=v*(e-1)/e-m*s,h<0&&(g[1]=-g[1]),g}return Xe.invert(t,h)},h}function Ye(e,t){return[e,1&t?90-y:He]}function Ze(e,t){return[e,1&t?-90+y:-He]}function $e(e){return[e[0]*(1-y),e[1]]}function Je(e){var t,n=1+e,a=T(m(1/n)),s=2*C(v/(t=v+4*a*n)),l=.5*s*(n+C(e*(2+e))),c=e*e,u=n*n;function d(d,p){var h,f,g=1-m(p);if(g&&g<2){var y,x=M-p,z=25;do{var _=m(x),A=o(x),O=a+i(_,n-A),w=1+u-2*n*A;x-=y=(x-c*a-n*_+w*O-.5*g*t)/(2*n*_*O)}while(r(y)>b&&--z>0);h=s*C(w),f=d*O/v}else h=s*(e+g),f=d*a/v;return[h*m(f),l-h*o(f)]}return d.invert=function(e,r){var o=e*e+(r-=l)*r,d=(1+u-o/(s*s))/(2*n),p=S(d),h=m(p),f=a+i(h,n-d);return[T(e/C(o))*v/f,T(1-2*(p-c*a-n*h+(1+u-2*n*d)*f)/t)]},d}var Qe=.7109889596207567,Ke=.0528035274542;function et(e,t){return t>-Qe?((e=Y(e,t))[1]+=Ke,e):K(e,t)}function tt(e,t){return r(t)>Qe?((e=Y(e,t))[1]-=t>0?Ke:-Ke,e):K(e,t)}function nt(e,t,n,r){var a=C(4*v/(2*n+(1+e-t/2)*m(2*n)+(e+t)/2*m(4*n)+t/2*m(6*n))),i=C(r*m(n)*C((1+e*o(2*n)+t*o(4*n))/(1+e+t))),s=n*c(1);function l(n){return C(1+e*o(2*n)+t*o(4*n))}function c(r){var a=r*n;return(2*a+(1+e-t/2)*m(2*a)+(e+t)/2*m(4*a)+t/2*m(6*a))/n}function u(e){return l(e)*m(e)}var d=function(e,t){var r=n*U(c,s*m(t)/n,t/v);isNaN(r)&&(r=n*f(t));var u=a*l(r);return[u*i*e/v*o(r),u/i*m(r)]};return d.invert=function(e,t){var r=U(u,t*i/a);return[e*v/(o(r)*a*i*l(r)),T(n*c(r/n)/s)]},0===n&&(a=C(r/v),(d=function(e,t){return[e*a,m(t)/a]}).invert=function(e,t){return[e/a,T(t*a)]}),d}function rt(e,t,n,r,a,i,o,s,l,c,u){if(u.nanEncountered)return NaN;var d,p,h,f,m,g,y,b,v,M;if(p=e(t+.25*(d=n-t)),h=e(n-.25*d),isNaN(p))u.nanEncountered=!0;else{if(!isNaN(h))return M=((g=(f=d*(r+4*p+a)/12)+(m=d*(a+4*h+i)/12))-o)/15,c>l?(u.maxDepthCount++,g+M):Math.abs(M)<s?g+M:(b=rt(e,t,y=t+.5*d,r,p,a,f,.5*s,l,c+1,u),isNaN(b)?(u.nanEncountered=!0,NaN):(v=rt(e,y,n,a,h,i,m,.5*s,l,c+1,u),isNaN(v)?(u.nanEncountered=!0,NaN):b+v));u.nanEncountered=!0}}function at(e,t,n,r,a){void 0===r&&(r=1e-8),void 0===a&&(a=20);var i=e(t),o=e(.5*(t+n)),s=e(n);return rt(e,t,n,i,o,s,(i+4*o+s)*(n-t)/6,r,a,1,{maxDepthCount:0,nanEncountered:!1})}function it(e,t,n){function a(n){return e+(1-e)*p(1-p(n,t),1/t)}function i(e){return at(a,0,e,1e-4)}for(var o=1/i(1),s=1e3,l=(1+1e-8)*o,c=[],u=0;u<=s;u++)c.push(i(u/s)*l);function d(e){var t=0,n=s,r=500;do{c[r]>e?n=r:t=r,r=t+n>>1}while(r>t);var a=c[r+1]-c[r];return a&&(a=(e-c[r+1])/a),(r+1+a)/s}var h=2*d(1)/v*o/n,g=function(e,t){var n=d(r(m(t))),i=a(n)*e;return n/=h,[i,t>=0?n:-n]};return g.invert=function(e,t){var n;return r(t*=h)<1&&(n=f(t)*T(i(r(t))*o)),[e/a(r(t)),n]},g}function ot(e,t){return r(e[0]-t[0])<y&&r(e[1]-t[1])<y}function st(e,t){for(var n,r,a,i=-1,o=e.length,s=e[0],l=[];++i<o;){r=((n=e[i])[0]-s[0])/t,a=(n[1]-s[1])/t;for(var c=0;c<t;++c)l.push([s[0]+c*r,s[1]+c*a]);s=n}return l.push(n),l}function lt(e,r,a){var i,o;function s(t,n){for(var a=n<0?-1:1,i=r[+(n<0)],o=0,s=i.length-1;o<s&&t>i[o][2][0];++o);var l=e(t-i[o][1][0],n);return l[0]+=e(i[o][1][0],a*n>a*i[o][0][1]?i[o][0][1]:n)[0],l}a?s.invert=a(s):e.invert&&(s.invert=function(t,n){for(var a=o[+(n<0)],i=r[+(n<0)],l=0,c=a.length;l<c;++l){var u=a[l];if(u[0][0]<=t&&t<u[1][0]&&u[0][1]<=n&&n<u[1][1]){var d=e.invert(t-e(i[l][1][0],0)[0],n);return d[0]+=i[l][1][0],ot(s(d[0],d[1]),[t,n])?d:null}}});var l=t.geoProjection(s),c=l.stream;return l.stream=function(e){var n=l.rotate(),r=c(e),a=(l.rotate([0,0]),c(e));return l.rotate(n),r.sphere=function(){t.geoStream(i,a)},r},l.lobes=function(t){return arguments.length?(i=function(e){var t,r,a,i,o,s,l,c=[],u=e[0].length;for(l=0;l<u;++l)r=(t=e[0][l])[0][0],a=t[0][1],i=t[1][1],o=t[2][0],s=t[2][1],c.push(st([[r+y,a+y],[r+y,i-y],[o-y,i-y],[o-y,s+y]],30));for(l=e[1].length-1;l>=0;--l)r=(t=e[1][l])[0][0],a=t[0][1],i=t[1][1],o=t[2][0],s=t[2][1],c.push(st([[o-y,s-y],[o-y,i+y],[r+y,i+y],[r+y,a-y]],30));return{type:"Polygon",coordinates:[n.merge(c)]}}(t),r=t.map(function(e){return e.map(function(e){return[[e[0][0]*k,e[0][1]*k],[e[1][0]*k,e[1][1]*k],[e[2][0]*k,e[2][1]*k]]})}),o=r.map(function(t){return t.map(function(t){var n,r=e(t[0][0],t[0][1])[0],a=e(t[2][0],t[2][1])[0],i=e(t[1][0],t[0][1])[1],o=e(t[1][0],t[1][1])[1];return i>o&&(n=i,i=o,o=n),[[r,i],[a,o]]})}),l):r.map(function(e){return e.map(function(e){return[[e[0][0]*w,e[0][1]*w],[e[1][0]*w,e[1][1]*w],[e[2][0]*w,e[2][1]*w]]})})},null!=r&&l.lobes(r),l}et.invert=function(e,t){return t>-Qe?Y.invert(e,t-Ke):K.invert(e,t)},tt.invert=function(e,t){return r(t)>Qe?Y.invert(e,t+(t>0?Ke:-Ke)):K.invert(e,t)};var ct=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]],ut=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]],dt=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]],pt=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]],ht=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]],ft=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function mt(e,t){return[3/O*e*C(v*v/3-t*t),t]}function gt(e){function t(t,n){if(r(r(n)-M)<y)return[0,n<0?-2:2];var a=m(n),i=p((1+a)/(1-a),e/2),s=.5*(i+1/i)+o(t*=e);return[2*m(t)/s,(i-1/i)/s]}return t.invert=function(t,n){var a=r(n);if(r(a-2)<y)return t?null:[0,f(n)*M];if(a>2)return null;var o=(t/=2)*t,s=(n/=2)*n,l=2*n/(1+o+s);return l=p((1+l)/(1-l),1/e),[i(2*t,1-o-s)/e,T((l-1)/(l+1))]},t}mt.invert=function(e,t){return[O/3*e/C(v*v/3-t*t),t]};var yt=v/_;function bt(e,t){return[e*(1+C(o(t)))/2,t/(o(t/2)*o(e/6))]}function vt(e,t){var n=e*e,r=t*t;return[e*(.975534+r*(-.0143059*n-.119161+-.0547009*r)),t*(1.00384+n*(.0802894+-.02855*r+199025e-9*n)+r*(.0998909+-.0491032*r))]}function Mt(e,t){return[m(e)/o(t),g(t)*o(e)]}function xt(e){var t=o(e),n=g(x+e/2);function a(a,i){var o=i-e,s=r(o)<y?a*t:r(s=x+i/2)<y||r(r(s)-M)<y?0:a*o/c(g(s)/n);return[s,o]}return a.invert=function(a,i){var o,s=i+e;return[r(i)<y?a/t:r(o=x+s/2)<y||r(r(o)-M)<y?0:a*c(g(o)/n)/i,s]},a}function zt(e,t){return[e,1.25*c(g(x+.4*t))]}function _t(e){var t=e.length-1;function n(n,r){for(var a,i=o(r),s=2/(1+i*o(n)),l=s*i*m(n),c=s*m(r),u=t,d=e[u],p=d[0],h=d[1];--u>=0;)p=(d=e[u])[0]+l*(a=p)-c*h,h=d[1]+l*h+c*a;return[p=l*(a=p)-c*h,h=l*h+c*a]}return n.invert=function(n,s){var l=20,c=n,u=s;do{for(var d,p=t,h=e[p],f=h[0],g=h[1],b=0,v=0;--p>=0;)b=f+c*(d=b)-u*v,v=g+c*v+u*d,f=(h=e[p])[0]+c*(d=f)-u*g,g=h[1]+c*g+u*d;var M,x,z=(b=f+c*(d=b)-u*v)*b+(v=g+c*v+u*d)*v;c-=M=((f=c*(d=f)-u*g-n)*b+(g=c*g+u*d-s)*v)/z,u-=x=(g*b-f*v)/z}while(r(M)+r(x)>y*y&&--l>0);if(l){var _=C(c*c+u*u),A=2*a(.5*_),O=m(A);return[i(c*O,_*o(A)),_?T(u*O/_):0]}},n}bt.invert=function(e,t){var n=r(e),a=r(t),i=y,s=M;a<yt?s*=a/yt:i+=6*S(yt/a);for(var l=0;l<25;l++){var c=m(s),u=C(o(s)),d=m(s/2),p=o(s/2),h=m(i/6),f=o(i/6),g=.5*i*(1+u)-n,b=s/(p*f)-a,v=u?-.25*i*c/u:0,x=.5*(1+u),z=(1+.5*s*d/p)/(p*f),_=s/p*(h/6)/(f*f),A=v*_-z*x,O=(g*_-b*x)/A,w=(b*v-g*z)/A;if(s-=O,i-=w,r(O)<y&&r(w)<y)break}return[e<0?-i:i,t<0?-s:s]},vt.invert=function(e,t){var n=f(e)*v,a=t/2,i=50;do{var o=n*n,s=a*a,l=n*a,c=n*(.975534+s*(-.0143059*o-.119161+-.0547009*s))-e,u=a*(1.00384+o*(.0802894+-.02855*s+199025e-9*o)+s*(.0998909+-.0491032*s))-t,d=.975534-s*(.119161+3*o*.0143059+.0547009*s),p=-l*(.238322+.2188036*s+.0286118*o),h=l*(.1605788+7961e-7*o+-.0571*s),m=1.00384+o*(.0802894+199025e-9*o)+s*(3*(.0998909-.02855*o)-.245516*s),g=p*h-m*d,b=(u*p-c*m)/g,M=(c*h-u*d)/g;n-=b,a-=M}while((r(b)>y||r(M)>y)&&--i>0);return i&&[n,a]},Mt.invert=function(e,t){var n=e*e,r=t*t+1,a=n+r,i=e?z*C((a-C(a*a-4*n))/n):1/C(r);return[T(e*i),f(t)*S(i)]},zt.invert=function(e,t){return[e,2.5*a(s(.8*t))-.625*v]};var At=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Ot=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],wt=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],kt=[[.9245,0],[0,0],[.01943,0]],Tt=[[.721316,0],[0,0],[-.00881625,-.00617325]];function St(e,n){var r=t.geoProjection(_t(e)).rotate(n).clipAngle(90),a=t.geoRotation(n),i=r.center;return delete r.rotate,r.center=function(e){return arguments.length?i(a(e)):a.invert(i())},r}var Ct=C(6),Et=C(7);function qt(e,t){var n=T(7*m(t)/(3*Ct));return[Ct*e*(2*o(2*n/3)-1)/Et,9*m(n/3)/Et]}function Dt(e,t){for(var n,a=(1+z)*m(t),i=t,s=0;s<25&&(i-=n=(m(i/2)+m(i)-a)/(.5*o(i/2)+o(i)),!(r(n)<y));s++);return[e*(1+2*o(i)/o(i/2))/(3*_),2*C(3)*m(i/2)/C(2+_)]}function Rt(e,t){for(var n,a=C(6/(4+v)),i=(1+v/4)*m(t),s=t/2,l=0;l<25&&(s-=n=(s/2+m(s)-i)/(.5+o(s)),!(r(n)<y));l++);return[a*(.5+o(s))*e/1.5,a*s]}function Lt(e,t){var n=t*t,r=n*n,a=n*r;return[e*(.84719-.13063*n+a*a*(.05494*n-.04515-.02326*r+.00331*a)),t*(1.01183+r*r*(.01926*n-.02625-.00396*r))]}function It(e,t){return[e*(1+o(t))/2,2*(t-g(t/2))]}qt.invert=function(e,t){var n=3*T(t*Et/9);return[e*Et/(Ct*(2*o(2*n/3)-1)),T(3*m(n)*Ct/7)]},Dt.invert=function(e,t){var n=t*C(2+_)/(2*C(3)),r=2*T(n);return[3*_*e/(1+2*o(r)/o(r/2)),T((n+m(r))/(1+z))]},Rt.invert=function(e,t){var n=C(6/(4+v)),a=t/n;return r(r(a)-M)<y&&(a=a<0?-M:M),[1.5*e/(n*(.5+o(a))),T((a/2+m(a))/(1+v/4))]},Lt.invert=function(e,t){var n,a,i,o,s=t,l=25;do{s-=n=(s*(1.01183+(i=(a=s*s)*a)*i*(.01926*a-.02625-.00396*i))-t)/(1.01183+i*i*(.21186*a-.23625+-.05148*i))}while(r(n)>b&&--l>0);return[e/(.84719-.13063*(a=s*s)+(o=a*(i=a*a))*o*(.05494*a-.04515-.02326*i+.00331*o)),s]},It.invert=function(e,t){for(var n=t/2,a=0,i=1/0;a<10&&r(i)>y;++a){var s=o(t/2);t-=i=(t-g(t/2)-n)/(1-.5/(s*s))}return[2*e/(1+o(t)),t]};var Wt=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Nt(e,t){var n=m(t),a=o(t),i=f(e);if(0===e||r(t)===M)return[0,t];if(0===t)return[e,0];if(r(e)===M)return[e*a,M*n];var s=v/(2*e)-2*e/v,l=2*t/v,c=(1-l*l)/(n-l),u=s*s,d=c*c,p=1+u/d,h=1+d/u,g=(s*n/c-s/2)/p,y=(d*n/u+c/2)/h,b=y*y-(d*n*n/u+c*n-1)/h;return[M*(g+C(g*g+a*a/p)*i),M*(y+C(b<0?0:b)*f(-t*s)*i)]}Nt.invert=function(e,t){var n=(e/=M)*e,r=n+(t/=M)*t,a=v*v;return[e?(r-1+C((1-r)*(1-r)+4*n))/(2*e)*M:0,U(function(e){return r*(v*m(e)-2*e)*v+4*e*e*(t-m(e))+2*v*e-a*t},0)]};var Pt=1.0148,Bt=.23185,Ft=-.14499,jt=.02406,Ut=Pt,Vt=5*Bt,Ht=7*Ft,Xt=1.790857183;function Gt(e,t){var n=t*t;return[e,t*(Pt+n*n*(Bt+n*(Ft+jt*n)))]}function Yt(e,t){if(r(t)<y)return[e,0];var n=g(t),a=e*m(t);return[m(a)/n,t+(1-o(a))/n]}function Zt(e,t){var n=Jt(e[1],e[0]),r=Jt(t[1],t[0]),a=function(e,t){return i(e[0]*t[1]-e[1]*t[0],e[0]*t[0]+e[1]*t[1])}(n,r),s=Qt(n)/Qt(r);return $t([1,0,e[0][0],0,1,e[0][1]],$t([s,0,0,0,s,0],$t([o(a),m(a),0,-m(a),o(a),0],[1,0,-t[0][0],0,1,-t[0][1]])))}function $t(e,t){return[e[0]*t[0]+e[1]*t[3],e[0]*t[1]+e[1]*t[4],e[0]*t[2]+e[1]*t[5]+e[2],e[3]*t[0]+e[4]*t[3],e[3]*t[1]+e[4]*t[4],e[3]*t[2]+e[4]*t[5]+e[5]]}function Jt(e,t){return[e[0]-t[0],e[1]-t[1]]}function Qt(e){return C(e[0]*e[0]+e[1]*e[1])}function Kt(e,n,r){function a(e,t){var r,a=n(e,t),i=a.project([e*w,t*w]);return(r=a.transform)?[r[0]*i[0]+r[1]*i[1]+r[2],-(r[3]*i[0]+r[4]*i[1]+r[5])]:(i[1]=-i[1],i)}function i(e,t){var r=e.project.invert,a=e.transform,o=t;if(a&&(a=function(e){var t=1/(e[0]*e[4]-e[1]*e[3]);return[t*e[4],-t*e[1],t*(e[1]*e[5]-e[2]*e[4]),-t*e[3],t*e[0],t*(e[2]*e[3]-e[0]*e[5])]}(a),o=[a[0]*o[0]+a[1]*o[1]+a[2],a[3]*o[0]+a[4]*o[1]+a[5]]),r&&e===function(e){return n(e[0]*k,e[1]*k)}(s=r(o)))return s;for(var s,l=e.children,c=0,u=l&&l.length;c<u;++c)if(s=i(l[c],t))return s}!function e(t,n){if(t.edges=function(e){for(var t=e.length,n=[],r=e[t-1],a=0;a<t;++a)n.push([r,r=e[a]]);return n}(t.face),n.face){var r=t.shared=function(e,t){for(var n,r,a=e.length,i=null,o=0;o<a;++o){n=e[o];for(var s=t.length;--s>=0;)if(r=t[s],n[0]===r[0]&&n[1]===r[1]){if(i)return[i,n];i=n}}}(t.face,n.face),a=Zt(r.map(n.project),r.map(t.project));t.transform=n.transform?$t(n.transform,a):a;for(var i=n.edges,o=0,s=i.length;o<s;++o)tn(r[0],i[o][1])&&tn(r[1],i[o][0])&&(i[o]=t),tn(r[0],i[o][0])&&tn(r[1],i[o][1])&&(i[o]=t);for(o=0,s=(i=t.edges).length;o<s;++o)tn(r[0],i[o][0])&&tn(r[1],i[o][1])&&(i[o]=n),tn(r[0],i[o][1])&&tn(r[1],i[o][0])&&(i[o]=n)}else t.transform=n.transform;return t.children&&t.children.forEach(function(n){e(n,t)}),t}(e,{transform:null}),nn(e)&&(a.invert=function(t,n){var r=i(e,[t,-n]);return r&&(r[0]*=k,r[1]*=k,r)});var o=t.geoProjection(a),s=o.stream;return o.stream=function(t){var n=o.rotate(),r=s(t),a=(o.rotate([0,0]),s(t));return o.rotate(n),r.sphere=function(){a.polygonStart(),a.lineStart(),en(a,e),a.lineEnd(),a.polygonEnd()},r},o.angle(null==r?-30:r*w)}function en(e,n,a){var i,o,s=n.edges,l=s.length,c={type:"MultiPoint",coordinates:n.face},u=n.face.filter(function(e){return 90!==r(e[1])}),d=t.geoBounds({type:"MultiPoint",coordinates:u}),p=!1,h=-1,f=d[1][0]-d[0][0],m=180===f||360===f?[(d[0][0]+d[1][0])/2,(d[0][1]+d[1][1])/2]:t.geoCentroid(c);if(a)for(;++h<l&&s[h]!==a;);++h;for(var g=0;g<l;++g)o=s[(g+h)%l],Array.isArray(o)?(p||(e.point((i=t.geoInterpolate(o[0],m)(y))[0],i[1]),p=!0),e.point((i=t.geoInterpolate(o[1],m)(y))[0],i[1])):(p=!1,o!==a&&en(e,o,n))}function tn(e,t){return e&&t&&e[0]===t[0]&&e[1]===t[1]}function nn(e){return e.project.invert||e.children&&e.children.some(nn)}Gt.invert=function(e,t){t>Xt?t=Xt:t<-Xt&&(t=-Xt);var n,a=t;do{var i=a*a;a-=n=(a*(Pt+i*i*(Bt+i*(Ft+jt*i)))-t)/(Ut+i*i*(Vt+i*(Ht+.21654*i)))}while(r(n)>y);return[e,a]},Yt.invert=function(e,t){if(r(t)<y)return[e,0];var n,a=e*e+t*t,i=.5*t,s=10;do{var l=g(i),c=1/o(i),u=a-2*t*i+i*i;i-=n=(l*u+2*(i-t))/(2+u*c*c+2*(i-t)*l)}while(r(n)>y&&--s>0);return l=g(i),[(r(t)<r(i+1/l)?T(e*l):f(t)*f(e)*(S(r(e*l))+M))/m(i),i]};var rn=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],an=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map(function(e){return e.map(function(e){return rn[e]})}),on=2/C(3);function sn(e,t){var n=ce(e,t);return[n[0]*on,n[1]]}function ln(e,t){for(var n=0,r=e.length,a=0;n<r;++n)a+=e[n]*t[n];return a}function cn(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function un(e){return[i(e[1],e[0])*w,T(u(-1,d(1,e[2])))*w]}function dn(e){var t=e[0]*k,n=e[1]*k,r=o(n);return[r*o(t),r*m(t),m(n)]}function pn(){}function hn(e,t){return{type:"FeatureCollection",features:e.features.map(function(e){return fn(e,t)})}}function fn(e,t){return{type:"Feature",id:e.id,properties:e.properties,geometry:mn(e.geometry,t)}}function mn(e,n){if(!e)return null;if("GeometryCollection"===e.type)return function(e,t){return{type:"GeometryCollection",geometries:e.geometries.map(function(e){return mn(e,t)})}}(e,n);var r;switch(e.type){case"Point":case"MultiPoint":r=bn;break;case"LineString":case"MultiLineString":r=vn;break;case"Polygon":case"MultiPolygon":case"Sphere":r=Mn;break;default:return null}return t.geoStream(e,n(r)),r.result()}sn.invert=function(e,t){return ce.invert(e/on,t)};var gn=[],yn=[],bn={point:function(e,t){gn.push([e,t])},result:function(){var e=gn.length?gn.length<2?{type:"Point",coordinates:gn[0]}:{type:"MultiPoint",coordinates:gn}:null;return gn=[],e}},vn={lineStart:pn,point:function(e,t){gn.push([e,t])},lineEnd:function(){gn.length&&(yn.push(gn),gn=[])},result:function(){var e=yn.length?yn.length<2?{type:"LineString",coordinates:yn[0]}:{type:"MultiLineString",coordinates:yn}:null;return yn=[],e}},Mn={polygonStart:pn,lineStart:pn,point:function(e,t){gn.push([e,t])},lineEnd:function(){var e=gn.length;if(e){do{gn.push(gn[0].slice())}while(++e<4);yn.push(gn),gn=[]}},polygonEnd:pn,result:function(){if(!yn.length)return null;var e=[],t=[];return yn.forEach(function(n){!function(e){if((t=e.length)<4)return!1;for(var t,n=0,r=e[t-1][1]*e[0][0]-e[t-1][0]*e[0][1];++n<t;)r+=e[n-1][1]*e[n][0]-e[n-1][0]*e[n][1];return r<=0}(n)?t.push(n):e.push([n])}),t.forEach(function(t){var n=t[0];e.some(function(e){if(function(e,t){for(var n=t[0],r=t[1],a=!1,i=0,o=e.length,s=o-1;i<o;s=i++){var l=e[i],c=l[0],u=l[1],d=e[s],p=d[0],h=d[1];u>r^h>r&&n<(p-c)*(r-u)/(h-u)+c&&(a=!a)}return a}(e[0],n))return e.push(t),!0})||e.push([t])}),yn=[],e.length?e.length>1?{type:"MultiPolygon",coordinates:e}:{type:"Polygon",coordinates:e[0]}:null}};function xn(e){var n=e(M,0)[0]-e(-M,0)[0];function a(t,a){var i=r(t)<M,o=e(i?t:t>0?t-v:t+v,a),s=(o[0]-o[1])*z,l=(o[0]+o[1])*z;if(i)return[s,l];var c=n*z,u=s>0^l>0?-1:1;return[u*s-f(l)*c,u*l-f(s)*c]}return e.invert&&(a.invert=function(t,a){var i=(t+a)*z,o=(a-t)*z,s=r(i)<.5*n&&r(o)<.5*n;if(!s){var l=n*z,c=i>0^o>0?-1:1,u=-c*t+(o>0?1:-1)*l,d=-c*a+(i>0?1:-1)*l;i=(-u-d)*z,o=(u-d)*z}var p=e.invert(i,o);return s||(p[0]+=i>0?v:-v),p}),t.geoProjection(a).rotate([-90,-90,45]).clipAngle(179.999)}function zn(){return xn(je).scale(111.48)}function _n(e){var t=m(e);function n(n,r){var i=t?g(n*t/2)/t:n/2;if(!r)return[2*i,-e];var s=2*a(i*m(r)),l=1/g(r);return[m(s)*l,r+(1-o(s))*l-e]}return n.invert=function(n,i){if(r(i+=e)<y)return[t?2*a(t*n/2)/t:n,0];var s,l=n*n+i*i,c=0,u=10;do{var d=g(c),p=1/o(c),h=l-2*i*c+c*c;c-=s=(d*h+2*(c-i))/(2+h*p*p+2*(c-i)*d)}while(r(s)>y&&--u>0);var f=n*(d=g(c)),b=g(r(i)<r(c+1/d)?.5*T(f):.5*S(f)+v/4)/m(c);return[t?2*a(t*b)/t:2*b,c]},n}var An=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function On(e,t){var n,a=d(18,36*r(t)/v),i=l(a),o=a-i,s=(n=An[i])[0],c=n[1],u=(n=An[++i])[0],p=n[1],h=(n=An[d(19,++i)])[0],f=n[1];return[e*(u+o*(h-s)/2+o*o*(h-2*u+s)/2),(t>0?M:-M)*(p+o*(f-c)/2+o*o*(f-2*p+c)/2)]}function wn(e,t){var n=function(e){function t(t,n){var r=o(n),a=(e-1)/(e-r*o(t));return[a*r*m(t),a*m(n)]}return t.invert=function(t,n){var r=t*t+n*n,a=C(r),o=(e-C(1-r*(e+1)/(e-1)))/((e-1)/a+a/(e-1));return[i(t*o,a*C(1-o*o)),a?T(n*o/a):0]},t}(e);if(!t)return n;var r=o(t),a=m(t);function s(t,i){var o=n(t,i),s=o[1],l=s*a/(e-1)+r;return[o[0]*r/l,s/l]}return s.invert=function(t,i){var o=(e-1)/(e-1-i*a);return n.invert(o*t,o*i*r)},s}An.forEach(function(e){e[1]*=1.0144}),On.invert=function(e,t){var n=t/M,a=90*n,i=d(18,r(a/5)),o=u(0,l(i));do{var s=An[o][1],c=An[o+1][1],p=An[d(19,o+2)][1],h=p-s,f=p-2*c+s,m=2*(r(n)-c)/h,g=f/h,y=m*(1-g*m*(1-2*g*m));if(y>=0||1===o){a=(t>=0?5:-5)*(y+i);var v,x=50;do{y=(i=d(18,r(a)/5))-(o=l(i)),s=An[o][1],c=An[o+1][1],p=An[d(19,o+2)][1],a-=(v=(t>=0?M:-M)*(c+y*(p-s)/2+y*y*(p-2*c+s)/2)-t)*w}while(r(v)>b&&--x>0);break}}while(--o>=0);var z=An[o][0],_=An[o+1][0],A=An[d(19,o+2)][0];return[e/(_+y*(A-z)/2+y*y*(A-2*_+z)/2),a*k]};var kn=1e-4,Tn=-180,Sn=Tn+kn,Cn=180-kn,En=-90+kn,qn=90-kn;function Dn(e){return e.length>0}function Rn(e){return Math.floor(1e4*e)/1e4}function Ln(e){return-90===e||90===e?[0,e]:[Tn,Rn(e)]}function In(e){var t=e[0],n=e[1],r=!1;return t<=Sn?(t=Tn,r=!0):t>=Cn&&(t=180,r=!0),n<=En?(n=-90,r=!0):n>=qn&&(n=90,r=!0),r?[t,n]:e}function Wn(e){return e.map(In)}function Nn(e,t,n){for(var r=0,a=e.length;r<a;++r){var i=e[r].slice();n.push({index:-1,polygon:t,ring:i});for(var o=0,s=i.length;o<s;++o){var l=i[o],c=l[0],u=l[1];if(c<=Sn||c>=Cn||u<=En||u>=qn){i[o]=In(l);for(var d=o+1;d<s;++d){var p=i[d],h=p[0],f=p[1];if(h>Sn&&h<Cn&&f>En&&f<qn)break}if(d===o+1)continue;if(o){var m={index:-1,polygon:t,ring:i.slice(0,o+1)};m.ring[m.ring.length-1]=Ln(u),n[n.length-1]=m}else n.pop();if(d>=s)break;n.push({index:-1,polygon:t,ring:i=i.slice(d-1)}),i[0]=Ln(i[0][1]),o=-1,s=i.length}}}}function Pn(e){var t,n,r,a,i,o,s=e.length,l={},c={};for(t=0;t<s;++t)r=(n=e[t]).ring[0],i=n.ring[n.ring.length-1],r[0]!==i[0]||r[1]!==i[1]?(n.index=t,l[r]=c[i]=n):(n.polygon.push(n.ring),e[t]=null);for(t=0;t<s;++t)if(n=e[t]){if(r=n.ring[0],i=n.ring[n.ring.length-1],a=c[r],o=l[i],delete l[r],delete c[i],r[0]===i[0]&&r[1]===i[1]){n.polygon.push(n.ring);continue}a?(delete c[r],delete l[a.ring[0]],a.ring.pop(),e[a.index]=null,n={index:-1,polygon:a.polygon,ring:a.ring.concat(n.ring)},a===o?n.polygon.push(n.ring):(n.index=s++,e.push(l[n.ring[0]]=c[n.ring[n.ring.length-1]]=n))):o?(delete l[i],delete c[o.ring[o.ring.length-1]],n.ring.pop(),n={index:s++,polygon:o.polygon,ring:n.ring.concat(o.ring)},e[o.index]=null,e.push(l[n.ring[0]]=c[n.ring[n.ring.length-1]]=n)):(n.ring.push(n.ring[0]),n.polygon.push(n.ring))}}function Bn(e){var t={type:"Feature",geometry:Fn(e.geometry)};return null!=e.id&&(t.id=e.id),null!=e.bbox&&(t.bbox=e.bbox),null!=e.properties&&(t.properties=e.properties),t}function Fn(e){if(null==e)return e;var t,n,r,a;switch(e.type){case"GeometryCollection":t={type:"GeometryCollection",geometries:e.geometries.map(Fn)};break;case"Point":t={type:"Point",coordinates:In(e.coordinates)};break;case"MultiPoint":case"LineString":t={type:e.type,coordinates:Wn(e.coordinates)};break;case"MultiLineString":t={type:"MultiLineString",coordinates:e.coordinates.map(Wn)};break;case"Polygon":var i=[];Nn(e.coordinates,i,n=[]),Pn(n),t={type:"Polygon",coordinates:i};break;case"MultiPolygon":n=[],r=-1,a=e.coordinates.length;for(var o=new Array(a);++r<a;)Nn(e.coordinates[r],o[r]=[],n);Pn(n),t={type:"MultiPolygon",coordinates:o.filter(Dn)};break;default:return e}return null!=e.bbox&&(t.bbox=e.bbox),t}function jn(e,t){var n=g(t/2),r=m(x*n);return[e*(.74482-.34588*r*r),1.70711*n]}function Un(e,n,r){var a=t.geoInterpolate(n,r),i=a(.5),o=t.geoRotation([-i[0],-i[1]])(n),s=a.distance/2,l=-T(m(o[1]*k)/m(s)),c=[-i[0],-i[1],-(o[0]>0?v-l:l)*w],u=t.geoProjection(e(s)).rotate(c),d=t.geoRotation(c),p=u.center;return delete u.rotate,u.center=function(e){return arguments.length?p(d(e)):d.invert(p())},u.clipAngle(90)}function Vn(e){var n=o(e);function r(e,r){var a=t.geoGnomonicRaw(e,r);return a[0]*=n,a}return r.invert=function(e,r){return t.geoGnomonicRaw.invert(e/n,r)},r}function Hn(e,t){return Un(Vn,e,t)}function Xn(e){if(!(e*=2))return t.geoAzimuthalEquidistantRaw;var n=-e/2,r=-n,a=e*e,s=g(r),l=.5/m(r);function c(t,i){var s=S(o(i)*o(t-n)),l=S(o(i)*o(t-r));return[((s*=s)-(l*=l))/(2*e),(i<0?-1:1)*C(4*a*l-(a-s+l)*(a-s+l))/(2*e)]}return c.invert=function(e,t){var a,c,u=t*t,d=o(C(u+(a=e+n)*a)),p=o(C(u+(a=e+r)*a));return[i(c=d-p,a=(d+p)*s),(t<0?-1:1)*S(C(a*a+c*c)*l)]},c}function Gn(e,t){return Un(Xn,e,t)}function Yn(e,t){if(r(t)<y)return[e,0];var n=r(t/M),a=T(n);if(r(e)<y||r(r(t)-M)<y)return[0,f(t)*v*g(a/2)];var i=o(a),s=r(v/e-e/v)/2,l=s*s,c=i/(n+i-1),u=c*(2/n-1),d=u*u,p=d+l,h=c-d,m=l+c;return[f(e)*v*(s*h+C(l*h*h-p*(c*c-d)))/p,f(t)*v*(u*m-s*C((l+1)*p-m*m))/p]}function Zn(e,t){if(r(t)<y)return[e,0];var n=r(t/M),a=T(n);if(r(e)<y||r(r(t)-M)<y)return[0,f(t)*v*g(a/2)];var i=o(a),s=r(v/e-e/v)/2,l=s*s,c=i*(C(1+l)-s*i)/(1+l*n*n);return[f(e)*v*c,f(t)*v*C(1-c*(2*s+c))]}function $n(e,t){if(r(t)<y)return[e,0];var n=t/M,a=T(n);if(r(e)<y||r(r(t)-M)<y)return[0,v*g(a/2)];var i=(v/e-e/v)/2,s=n/(1+o(a));return[v*(f(e)*C(i*i+1-s*s)-i),v*s]}function Jn(e,t){if(!t)return[e,0];var n=r(t);if(!e||n===M)return[0,t];var a=n/M,i=a*a,o=(8*a-i*(i+2)-5)/(2*i*(a-1)),s=o*o,l=a*o,c=i+s+2*l,u=a+3*o,d=e/M,p=d+1/d,h=f(r(e)-M)*C(p*p-4),m=h*h,g=(h*(c+s-1)+2*C(c*(i+s*m-1)+(1-i)*(i*(u*u+4*s)+12*l*s+4*s*s)))/(4*c+m);return[f(e)*M*g,f(t)*M*C(1+h*r(g)-g*g)]}function Qn(e,t,n,r){var a=v/3;e=u(e,y),t=u(t,y),e=d(e,M),t=d(t,v-y),n=u(n,0),n=d(n,100-y);var s=(r=u(r,y))/100,l=S((n/100+1)*o(a))/a,c=m(e)/m(l*M),p=t/v,h=C(s*m(e/2)/m(t/2));return function(e,t,n,r,a){function s(i,s){var l=n*m(r*s),c=C(1-l*l),u=C(2/(1+c*o(i*=a)));return[e*c*u*m(i),t*l*u]}return s.invert=function(o,s){var l=o/e,c=s/t,u=C(l*l+c*c),d=2*T(u/2);return[i(o*g(d),e*u)/a,u&&T(s*m(d)/(t*n*u))/r]},s}(h/C(p*c*l),1/(h*C(p*c*l)),c,l,p)}function Kn(){var e=65*k,n=60*k,r=20,a=200,i=t.geoProjectionMutator(Qn),o=i(e,n,r,a);return o.poleline=function(t){return arguments.length?i(e=+t*k,n,r,a):e*w},o.parallels=function(t){return arguments.length?i(e,n=+t*k,r,a):n*w},o.inflation=function(t){return arguments.length?i(e,n,r=+t,a):r},o.ratio=function(t){return arguments.length?i(e,n,r,a=+t):a},o.scale(163.775)}jn.invert=function(e,t){var n=t/1.70711,r=m(x*n);return[e/(.74482-.34588*r*r),2*a(n)]},Yn.invert=function(e,t){if(r(t)<y)return[e,0];if(r(e)<y)return[0,M*m(2*a(t/v))];var n=(e/=v)*e,i=(t/=v)*t,s=n+i,l=s*s,c=-r(t)*(1+s),u=c-2*i+n,d=-2*c+1+2*i+l,p=i/d+(2*u*u*u/(d*d*d)-9*c*u/(d*d))/27,h=(c-u*u/(3*d))/d,g=2*C(-h/3),b=S(3*p/(h*g))/3;return[v*(s-1+C(1+2*(n-i)+l))/(2*e),f(t)*v*(-g*o(b+v/3)-u/(3*d))]},Zn.invert=function(e,t){if(!e)return[0,M*m(2*a(t/v))];var n=r(e/v),o=(1-n*n-(t/=v)*t)/(2*n),s=C(o*o+1);return[f(e)*v*(s-o),f(t)*M*m(2*i(C((1-2*o*n)*(o+s)-n),C(s+o+n)))]},$n.invert=function(e,t){if(!t)return[e,0];var n=t/v,r=(v*v*(1-n*n)-e*e)/(2*v*e);return[e?v*(f(e)*C(r*r+1)-r):0,M*m(2*a(n))]},Jn.invert=function(e,t){var n;if(!e||!t)return[e,t];t/=v;var a=f(e)*e/M,i=(a*a-1+4*t*t)/r(a),o=i*i,s=2*t,l=50;do{var c=s*s,u=(8*s-c*(c+2)-5)/(2*c*(s-1)),d=(3*s-c*s-10)/(2*c*s),p=u*u,h=s*u,m=s+u,g=m*m,b=s+3*u,x=-2*m*(4*h*p+(1-4*c+3*c*c)*(1+d)+p*(14*c-6-o+(8*c-8-2*o)*d)+h*(12*c-8+(10*c-10-o)*d)),z=C(g*(c+p*o-1)+(1-c)*(c*(b*b+4*p)+p*(12*h+4*p)));s-=n=(i*(g+p-1)+2*z-a*(4*g+o))/(i*(2*u*d+2*m*(1+d))+x/z-8*m*(i*(-1+p+g)+2*z)*(1+d)/(o+4*g))}while(n>y&&--l>0);return[f(e)*(C(i*i+4)+i)*v/4,M*s]};var er=4*v+3*C(3),tr=2*C(2*v*C(3)/er),nr=G(tr*C(3)/v,tr,er/6);function rr(e,t){return[e*C(1-3*t*t/(v*v)),t]}function ar(e,t){var n=o(t),r=o(e)*n,a=1-r,s=o(e=i(m(e)*n,-m(t))),l=m(e);return[l*(n=C(1-r*r))-s*a,-s*n-l*a]}function ir(e,t){var n=R(e,t);return[(n[0]+e/M)/2,(n[1]+t)/2]}rr.invert=function(e,t){return[e/C(1-3*t*t/(v*v)),t]},ar.invert=function(e,t){var n=(e*e+t*t)/-2,r=C(-n*(2+n)),a=t*n+e*r,o=e*n-t*r,s=C(o*o+a*a);return[i(r*a,s*(1+n)),s?-T(r*o/s):0]},ir.invert=function(e,t){var n=e,a=t,i=25;do{var s,l=o(a),c=m(a),u=m(2*a),d=c*c,p=l*l,h=m(n),f=o(n/2),g=m(n/2),b=g*g,v=1-p*f*f,x=v?S(l*f)*C(s=1/v):s=0,z=.5*(2*x*l*g+n/M)-e,_=.5*(x*c+a)-t,A=.5*s*(p*b+x*l*f*d)+.5/M,O=s*(h*u/4-x*c*g),w=.125*s*(u*g-x*c*p*h),k=.5*s*(d*f+x*b*l)+.5,T=O*w-k*A,E=(_*O-z*k)/T,q=(z*w-_*A)/T;n-=E,a-=q}while((r(E)>y||r(q)>y)&&--i>0);return[n,a]},e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=function(){var e=M,n=t.geoProjectionMutator(D),r=n(e);return r.radius=function(t){return arguments.length?n(e=t*k):e*w},r.scale(179.976).clipAngle(147)},e.geoAiryRaw=D,e.geoAitoff=function(){return t.geoProjection(R).scale(152.63)},e.geoAitoffRaw=R,e.geoArmadillo=function(){var e=20*k,n=e>=0?1:-1,r=g(n*e),a=t.geoProjectionMutator(L),s=a(e),l=s.stream;return s.parallel=function(t){return arguments.length?(r=g((n=(e=t*k)>=0?1:-1)*e),a(e)):e*w},s.stream=function(t){var a=s.rotate(),c=l(t),u=(s.rotate([0,0]),l(t)),d=s.precision();return s.rotate(a),c.sphere=function(){u.polygonStart(),u.lineStart();for(var t=-180*n;n*t<180;t+=90*n)u.point(t,90*n);if(e)for(;n*(t-=3*n*d)>=-180;)u.point(t,n*-i(o(t*k/2),r)*w);u.lineEnd(),u.polygonEnd()},c},s.scale(218.695).center([0,28.0974])},e.geoArmadilloRaw=L,e.geoAugust=function(){return t.geoProjection(I).scale(66.1603)},e.geoAugustRaw=I,e.geoBaker=function(){return t.geoProjection(P).scale(112.314)},e.geoBakerRaw=P,e.geoBerghaus=function(){var e=5,n=t.geoProjectionMutator(B),r=n(e),a=r.stream,s=.01,l=-o(s*k),c=m(s*k);return r.lobes=function(t){return arguments.length?n(e=+t):e},r.stream=function(t){var n=r.rotate(),u=a(t),d=(r.rotate([0,0]),a(t));return r.rotate(n),u.sphere=function(){d.polygonStart(),d.lineStart();for(var t=0,n=360/e,r=2*v/e,a=90-180/e,u=M;t<e;++t,a-=n,u-=r)d.point(i(c*o(u),l)*w,T(c*m(u))*w),a<-90?(d.point(-90,-180-a-s),d.point(-90,-180-a+s)):(d.point(90,a+s),d.point(90,a-s));d.lineEnd(),d.polygonEnd()},u},r.scale(87.8076).center([0,17.1875]).clipAngle(179.999)},e.geoBerghausRaw=B,e.geoBertin1953=function(){return t.geoProjection(H()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])},e.geoBertin1953Raw=H,e.geoBoggs=function(){return t.geoProjection(J).scale(160.857)},e.geoBoggsRaw=J,e.geoBonne=function(){return Q(ee).scale(123.082).center([0,26.1441]).parallel(45)},e.geoBonneRaw=ee,e.geoBottomley=function(){var e=.5,n=t.geoProjectionMutator(te),r=n(e);return r.fraction=function(t){return arguments.length?n(e=+t):e},r.scale(158.837)},e.geoBottomleyRaw=te,e.geoBromley=function(){return t.geoProjection(ne).scale(152.63)},e.geoBromleyRaw=ne,e.geoChamberlin=le,e.geoChamberlinRaw=oe,e.geoChamberlinAfrica=function(){return le([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])},e.geoCollignon=function(){return t.geoProjection(ce).scale(95.6464).center([0,30])},e.geoCollignonRaw=ce,e.geoCraig=function(){return Q(ue).scale(249.828).clipAngle(90)},e.geoCraigRaw=ue,e.geoCraster=function(){return t.geoProjection(pe).scale(156.19)},e.geoCrasterRaw=pe,e.geoCylindricalEqualArea=function(){return Q(he).parallel(38.58).scale(195.044)},e.geoCylindricalEqualAreaRaw=he,e.geoCylindricalStereographic=function(){return Q(fe).scale(124.75)},e.geoCylindricalStereographicRaw=fe,e.geoEckert1=function(){return t.geoProjection(me).scale(165.664)},e.geoEckert1Raw=me,e.geoEckert2=function(){return t.geoProjection(ge).scale(165.664)},e.geoEckert2Raw=ge,e.geoEckert3=function(){return t.geoProjection(ye).scale(180.739)},e.geoEckert3Raw=ye,e.geoEckert4=function(){return t.geoProjection(be).scale(180.739)},e.geoEckert4Raw=be,e.geoEckert5=function(){return t.geoProjection(ve).scale(173.044)},e.geoEckert5Raw=ve,e.geoEckert6=function(){return t.geoProjection(Me).scale(173.044)},e.geoEckert6Raw=Me,e.geoEisenlohr=function(){return t.geoProjection(ze).scale(62.5271)},e.geoEisenlohrRaw=ze,e.geoFahey=function(){return t.geoProjection(Ae).scale(137.152)},e.geoFaheyRaw=Ae,e.geoFoucaut=function(){return t.geoProjection(Oe).scale(135.264)},e.geoFoucautRaw=Oe,e.geoFoucautSinusoidal=function(){var e=.5,n=t.geoProjectionMutator(we),r=n(e);return r.alpha=function(t){return arguments.length?n(e=+t):e},r.scale(168.725)},e.geoFoucautSinusoidalRaw=we,e.geoGilbert=function(e){null==e&&(e=t.geoOrthographic);var n=e(),r=t.geoEquirectangular().scale(w).precision(0).clipAngle(null).translate([0,0]);function a(e){return n(ke(e))}function i(e){a[e]=function(){return arguments.length?(n[e].apply(n,arguments),a):n[e]()}}return n.invert&&(a.invert=function(e){return Te(n.invert(e))}),a.stream=function(e){var t=n.stream(e),a=r.stream({point:function(e,n){t.point(e/2,T(g(-n/2*k))*w)},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}});return a.sphere=t.sphere,a},a.rotate=function(e){return arguments.length?(r.rotate(e),a):r.rotate()},a.center=function(e){return arguments.length?(n.center(ke(e)),a):Te(n.center())},i("angle"),i("clipAngle"),i("clipExtent"),i("fitExtent"),i("fitHeight"),i("fitSize"),i("fitWidth"),i("scale"),i("translate"),i("precision"),a.scale(249.5)},e.geoGingery=function(){var e=6,n=30*k,r=o(n),a=m(n),s=t.geoProjectionMutator(Se),l=s(n,e),c=l.stream,u=-o(.01*k),d=m(.01*k);return l.radius=function(t){return arguments.length?(r=o(n=t*k),a=m(n),s(n,e)):n*w},l.lobes=function(t){return arguments.length?s(n,e=+t):e},l.stream=function(t){var n=l.rotate(),s=c(t),p=(l.rotate([0,0]),c(t));return l.rotate(n),s.sphere=function(){p.polygonStart(),p.lineStart();for(var t=0,n=2*v/e,s=0;t<e;++t,s-=n)p.point(i(d*o(s),u)*w,T(d*m(s))*w),p.point(i(a*o(s-n/2),r)*w,T(a*m(s-n/2))*w);p.lineEnd(),p.polygonEnd()},s},l.rotate([90,-40]).scale(91.7095).clipAngle(179.999)},e.geoGingeryRaw=Se,e.geoGinzburg4=function(){return t.geoProjection(De).scale(149.995)},e.geoGinzburg4Raw=De,e.geoGinzburg5=function(){return t.geoProjection(Re).scale(153.93)},e.geoGinzburg5Raw=Re,e.geoGinzburg6=function(){return t.geoProjection(Le).scale(130.945)},e.geoGinzburg6Raw=Le,e.geoGinzburg8=function(){return t.geoProjection(Ie).scale(131.747)},e.geoGinzburg8Raw=Ie,e.geoGinzburg9=function(){return t.geoProjection(We).scale(131.087)},e.geoGinzburg9Raw=We,e.geoGringorten=function(){return t.geoProjection(Ne(Pe)).scale(239.75)},e.geoGringortenRaw=Pe,e.geoGuyou=function(){return t.geoProjection(Ne(je)).scale(151.496)},e.geoGuyouRaw=je,e.geoHammer=function(){var e=2,n=t.geoProjectionMutator(F),r=n(e);return r.coefficient=function(t){return arguments.length?n(e=+t):e},r.scale(169.529)},e.geoHammerRaw=F,e.geoHammerRetroazimuthal=function(){var e=0,n=t.geoProjectionMutator(Ue),r=n(e),a=r.rotate,i=r.stream,o=t.geoCircle();return r.parallel=function(t){if(!arguments.length)return e*w;var a=r.rotate();return n(e=t*k).rotate(a)},r.rotate=function(t){return arguments.length?(a.call(r,[t[0],t[1]-e*w]),o.center([-t[0],-t[1]]),r):((t=a.call(r))[1]+=e*w,t)},r.stream=function(e){return(e=i(e)).sphere=function(){e.polygonStart();var t,n=o.radius(89.99)().coordinates[0],r=n.length-1,a=-1;for(e.lineStart();++a<r;)e.point((t=n[a])[0],t[1]);for(e.lineEnd(),r=(n=o.radius(90.01)().coordinates[0]).length-1,e.lineStart();--a>=0;)e.point((t=n[a])[0],t[1]);e.lineEnd(),e.polygonEnd()},e},r.scale(79.4187).parallel(45).clipAngle(179.999)},e.geoHammerRetroazimuthalRaw=Ue,e.geoHealpix=function(){var e=4,r=t.geoProjectionMutator(Ge),a=r(e),i=a.stream;return a.lobes=function(t){return arguments.length?r(e=+t):e},a.stream=function(r){var o=a.rotate(),s=i(r),l=(a.rotate([0,0]),i(r));return a.rotate(o),s.sphere=function(){t.geoStream(function(e){var t=[].concat(n.range(-180,180+e/2,e).map(Ye),n.range(180,-180-e/2,-e).map(Ze));return{type:"Polygon",coordinates:[180===e?t.map($e):t]}}(180/e),l)},s},a.scale(239.75)},e.geoHealpixRaw=Ge,e.geoHill=function(){var e=1,n=t.geoProjectionMutator(Je),r=n(e);return r.ratio=function(t){return arguments.length?n(e=+t):e},r.scale(167.774).center([0,18.67])},e.geoHillRaw=Je,e.geoHomolosine=function(){return t.geoProjection(tt).scale(152.63)},e.geoHomolosineRaw=tt,e.geoHufnagel=function(){var e=1,n=0,r=45*k,a=2,i=t.geoProjectionMutator(nt),o=i(e,n,r,a);return o.a=function(t){return arguments.length?i(e=+t,n,r,a):e},o.b=function(t){return arguments.length?i(e,n=+t,r,a):n},o.psiMax=function(t){return arguments.length?i(e,n,r=+t*k,a):r*w},o.ratio=function(t){return arguments.length?i(e,n,r,a=+t):a},o.scale(180.739)},e.geoHufnagelRaw=nt,e.geoHyperelliptical=function(){var e=0,n=2.5,r=1.183136,a=t.geoProjectionMutator(it),i=a(e,n,r);return i.alpha=function(t){return arguments.length?a(e=+t,n,r):e},i.k=function(t){return arguments.length?a(e,n=+t,r):n},i.gamma=function(t){return arguments.length?a(e,n,r=+t):r},i.scale(152.63)},e.geoHyperellipticalRaw=it,e.geoInterrupt=lt,e.geoInterruptedBoggs=function(){return lt(J,ct).scale(160.857)},e.geoInterruptedHomolosine=function(){return lt(tt,ut).scale(152.63)},e.geoInterruptedMollweide=function(){return lt(Y,dt).scale(169.529)},e.geoInterruptedMollweideHemispheres=function(){return lt(Y,pt).scale(169.529).rotate([20,0])},e.geoInterruptedSinuMollweide=function(){return lt(et,ht,V).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},e.geoInterruptedSinusoidal=function(){return lt(K,ft).scale(152.63).rotate([-20,0])},e.geoKavrayskiy7=function(){return t.geoProjection(mt).scale(158.837)},e.geoKavrayskiy7Raw=mt,e.geoLagrange=function(){var e=.5,n=t.geoProjectionMutator(gt),r=n(e);return r.spacing=function(t){return arguments.length?n(e=+t):e},r.scale(124.75)},e.geoLagrangeRaw=gt,e.geoLarrivee=function(){return t.geoProjection(bt).scale(97.2672)},e.geoLarriveeRaw=bt,e.geoLaskowski=function(){return t.geoProjection(vt).scale(139.98)},e.geoLaskowskiRaw=vt,e.geoLittrow=function(){return t.geoProjection(Mt).scale(144.049).clipAngle(89.999)},e.geoLittrowRaw=Mt,e.geoLoximuthal=function(){return Q(xt).parallel(40).scale(158.837)},e.geoLoximuthalRaw=xt,e.geoMiller=function(){return t.geoProjection(zt).scale(108.318)},e.geoMillerRaw=zt,e.geoModifiedStereographic=St,e.geoModifiedStereographicRaw=_t,e.geoModifiedStereographicAlaska=function(){return St(At,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)},e.geoModifiedStereographicGs48=function(){return St(Ot,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])},e.geoModifiedStereographicGs50=function(){return St(wt,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])},e.geoModifiedStereographicMiller=function(){return St(kt,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)},e.geoModifiedStereographicLee=function(){return St(Tt,[165,10]).scale(250).clipAngle(130).center([-165,-10])},e.geoMollweide=function(){return t.geoProjection(Y).scale(169.529)},e.geoMollweideRaw=Y,e.geoMtFlatPolarParabolic=function(){return t.geoProjection(qt).scale(164.859)},e.geoMtFlatPolarParabolicRaw=qt,e.geoMtFlatPolarQuartic=function(){return t.geoProjection(Dt).scale(188.209)},e.geoMtFlatPolarQuarticRaw=Dt,e.geoMtFlatPolarSinusoidal=function(){return t.geoProjection(Rt).scale(166.518)},e.geoMtFlatPolarSinusoidalRaw=Rt,e.geoNaturalEarth2=function(){return t.geoProjection(Lt).scale(175.295)},e.geoNaturalEarth2Raw=Lt,e.geoNellHammer=function(){return t.geoProjection(It).scale(152.63)},e.geoNellHammerRaw=It,e.geoInterruptedQuarticAuthalic=function(){return lt(F(1/0),Wt).rotate([20,0]).scale(152.63)},e.geoNicolosi=function(){return t.geoProjection(Nt).scale(127.267)},e.geoNicolosiRaw=Nt,e.geoPatterson=function(){return t.geoProjection(Gt).scale(139.319)},e.geoPattersonRaw=Gt,e.geoPolyconic=function(){return t.geoProjection(Yt).scale(103.74)},e.geoPolyconicRaw=Yt,e.geoPolyhedral=Kt,e.geoPolyhedralButterfly=function(e){e=e||function(e){var n=t.geoCentroid({type:"MultiPoint",coordinates:e});return t.geoGnomonic().scale(1).translate([0,0]).rotate([-n[0],-n[1]])};var n=an.map(function(t){return{face:t,project:e(t)}});return[-1,0,0,1,0,1,4,5].forEach(function(e,t){var r=n[e];r&&(r.children||(r.children=[])).push(n[t])}),Kt(n[0],function(e,t){return n[e<-v/2?t<0?6:4:e<0?t<0?2:0:e<v/2?t<0?3:1:t<0?7:5]}).angle(-30).scale(101.858).center([0,45])},e.geoPolyhedralCollignon=function(e){e=e||function(e){var n=t.geoCentroid({type:"MultiPoint",coordinates:e});return t.geoProjection(sn).translate([0,0]).scale(1).rotate(n[1]>0?[-n[0],0]:[180-n[0],180])};var n=an.map(function(t){return{face:t,project:e(t)}});return[-1,0,0,1,0,1,4,5].forEach(function(e,t){var r=n[e];r&&(r.children||(r.children=[])).push(n[t])}),Kt(n[0],function(e,t){return n[e<-v/2?t<0?6:4:e<0?t<0?2:0:e<v/2?t<0?3:1:t<0?7:5]}).angle(-30).scale(121.906).center([0,48.5904])},e.geoPolyhedralWaterman=function(e){e=e||function(e){var n=6===e.length?t.geoCentroid({type:"MultiPoint",coordinates:e}):e[0];return t.geoGnomonic().scale(1).translate([0,0]).rotate([-n[0],-n[1]])};var n=an.map(function(e){for(var t,n=e.map(dn),r=n.length,a=n[r-1],i=[],o=0;o<r;++o)t=n[o],i.push(un([.9486832980505138*a[0]+.31622776601683794*t[0],.9486832980505138*a[1]+.31622776601683794*t[1],.9486832980505138*a[2]+.31622776601683794*t[2]]),un([.9486832980505138*t[0]+.31622776601683794*a[0],.9486832980505138*t[1]+.31622776601683794*a[1],.9486832980505138*t[2]+.31622776601683794*a[2]])),a=t;return i}),r=[],a=[-1,0,0,1,0,1,4,5];n.forEach(function(e,t){for(var i=an[t],o=i.length,s=r[t]=[],l=0;l<o;++l)n.push([i[l],e[(2*l+2)%(2*o)],e[(2*l+1)%(2*o)]]),a.push(t),s.push(cn(dn(e[(2*l+2)%(2*o)]),dn(e[(2*l+1)%(2*o)])))});var i=n.map(function(t){return{project:e(t),face:t}});return a.forEach(function(e,t){var n=i[e];n&&(n.children||(n.children=[])).push(i[t])}),Kt(i[0],function(e,t){var n=o(t),a=[n*o(e),n*m(e),m(t)],s=e<-v/2?t<0?6:4:e<0?t<0?2:0:e<v/2?t<0?3:1:t<0?7:5,l=r[s];return i[ln(l[0],a)<0?8+3*s:ln(l[1],a)<0?8+3*s+1:ln(l[2],a)<0?8+3*s+2:s]}).angle(-30).scale(110.625).center([0,45])},e.geoProject=function(e,t){var n,r=t.stream;if(!r)throw new Error("invalid projection");switch(e&&e.type){case"Feature":n=fn;break;case"FeatureCollection":n=hn;break;default:n=mn}return n(e,r)},e.geoGringortenQuincuncial=function(){return xn(Pe).scale(176.423)},e.geoPeirceQuincuncial=zn,e.geoPierceQuincuncial=zn,e.geoQuantize=function(e,t){if(!(0<=(t=+t)&&t<=20))throw new Error("invalid digits");function n(e){var n=e.length,r=2,a=new Array(n);for(a[0]=+e[0].toFixed(t),a[1]=+e[1].toFixed(t);r<n;)a[r]=e[r],++r;return a}function r(e){return e.map(n)}function a(e){for(var t=n(e[0]),r=[t],a=1;a<e.length;a++){var i=n(e[a]);(i.length>2||i[0]!=t[0]||i[1]!=t[1])&&(r.push(i),t=i)}return 1===r.length&&e.length>1&&r.push(n(e[e.length-1])),r}function i(e){return e.map(a)}function o(e){if(null==e)return e;var t;switch(e.type){case"GeometryCollection":t={type:"GeometryCollection",geometries:e.geometries.map(o)};break;case"Point":t={type:"Point",coordinates:n(e.coordinates)};break;case"MultiPoint":t={type:e.type,coordinates:r(e.coordinates)};break;case"LineString":t={type:e.type,coordinates:a(e.coordinates)};break;case"MultiLineString":case"Polygon":t={type:e.type,coordinates:i(e.coordinates)};break;case"MultiPolygon":t={type:"MultiPolygon",coordinates:e.coordinates.map(i)};break;default:return e}return null!=e.bbox&&(t.bbox=e.bbox),t}function s(e){var t={type:"Feature",properties:e.properties,geometry:o(e.geometry)};return null!=e.id&&(t.id=e.id),null!=e.bbox&&(t.bbox=e.bbox),t}if(null!=e)switch(e.type){case"Feature":return s(e);case"FeatureCollection":var l={type:"FeatureCollection",features:e.features.map(s)};return null!=e.bbox&&(l.bbox=e.bbox),l;default:return o(e)}return e},e.geoQuincuncial=xn,e.geoRectangularPolyconic=function(){return Q(_n).scale(131.215)},e.geoRectangularPolyconicRaw=_n,e.geoRobinson=function(){return t.geoProjection(On).scale(152.63)},e.geoRobinsonRaw=On,e.geoSatellite=function(){var e=2,n=0,r=t.geoProjectionMutator(wn),a=r(e,n);return a.distance=function(t){return arguments.length?r(e=+t,n):e},a.tilt=function(t){return arguments.length?r(e,n=t*k):n*w},a.scale(432.147).clipAngle(S(1/e)*w-1e-6)},e.geoSatelliteRaw=wn,e.geoSinuMollweide=function(){return t.geoProjection(et).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},e.geoSinuMollweideRaw=et,e.geoSinusoidal=function(){return t.geoProjection(K).scale(152.63)},e.geoSinusoidalRaw=K,e.geoStitch=function(e){if(null==e)return e;switch(e.type){case"Feature":return Bn(e);case"FeatureCollection":var t={type:"FeatureCollection",features:e.features.map(Bn)};return null!=e.bbox&&(t.bbox=e.bbox),t;default:return Fn(e)}},e.geoTimes=function(){return t.geoProjection(jn).scale(146.153)},e.geoTimesRaw=jn,e.geoTwoPointAzimuthal=Hn,e.geoTwoPointAzimuthalRaw=Vn,e.geoTwoPointAzimuthalUsa=function(){return Hn([-158,21.5],[-77,39]).clipAngle(60).scale(400)},e.geoTwoPointEquidistant=Gn,e.geoTwoPointEquidistantRaw=Xn,e.geoTwoPointEquidistantUsa=function(){return Gn([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)},e.geoVanDerGrinten=function(){return t.geoProjection(Yn).scale(79.4183)},e.geoVanDerGrintenRaw=Yn,e.geoVanDerGrinten2=function(){return t.geoProjection(Zn).scale(79.4183)},e.geoVanDerGrinten2Raw=Zn,e.geoVanDerGrinten3=function(){return t.geoProjection($n).scale(79.4183)},e.geoVanDerGrinten3Raw=$n,e.geoVanDerGrinten4=function(){return t.geoProjection(Jn).scale(127.16)},e.geoVanDerGrinten4Raw=Jn,e.geoWagner=Kn,e.geoWagner7=function(){return Kn().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)},e.geoWagnerRaw=Qn,e.geoWagner4=function(){return t.geoProjection(nr).scale(176.84)},e.geoWagner4Raw=nr,e.geoWagner6=function(){return t.geoProjection(rr).scale(152.63)},e.geoWagner6Raw=rr,e.geoWiechel=function(){return t.geoProjection(ar).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)},e.geoWiechelRaw=ar,e.geoWinkel3=function(){return t.geoProjection(ir).scale(158.837)},e.geoWinkel3Raw=ir,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?r(e,rpe(),XL()):"function"==typeof define&&define.amd?define(["exports","d3-geo","d3-array"],r):r(n.d3=n.d3||{},n.d3,n.d3)}),W1t=Ee((e,t)=>{var n=mo(),r=Fr(),a=vo(),i=Math.PI/180,o=180/Math.PI,s={cursor:"pointer"},l={cursor:"auto"};function c(e,t){return n.behavior.zoom().translate(t.translate()).scale(t.scale())}function u(e,t,n){var i=e.id,o=e.graphDiv,s=o.layout,l=s[i],c=o._fullLayout,u=c[i],d={},p={};function h(e,t){d[i+"."+e]=r.nestedProperty(l,e).get(),a.call("_storeDirectGUIEdit",s,c._preGUI,d);var n=r.nestedProperty(u,e);n.get()!==t&&(n.set(t),r.nestedProperty(l,e).set(t),p[i+"."+e]=t)}n(h),h("projection.scale",t.scale()/e.fitScale),h("fitbounds",!1),o.emit("plotly_relayout",p)}function d(e,t){var r=c(0,t);function a(n){var r=t.invert(e.midPt);n("center.lon",r[0]),n("center.lat",r[1])}return r.on("zoomstart",function(){n.select(this).style(s)}).on("zoom",function(){t.scale(n.event.scale).translate(n.event.translate),e.render(!0);var r=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":r[0],"geo.center.lat":r[1]})}).on("zoomend",function(){n.select(this).style(l),u(e,t,a)}),r}function p(e,t){var r,a,i,o,d,p,h,f,m,g=c(0,t);function y(e){return t.invert(e)}function b(n){var r=t.rotate(),a=t.invert(e.midPt);n("projection.rotation.lon",-r[0]),n("center.lon",a[0]),n("center.lat",a[1])}return g.on("zoomstart",function(){n.select(this).style(s),r=n.mouse(this),a=t.rotate(),i=t.translate(),o=a,d=y(r)}).on("zoom",function(){if(p=n.mouse(this),function(e){var n=y(e);if(!n)return!0;var r=t(n);return Math.abs(r[0]-e[0])>2||Math.abs(r[1]-e[1])>2}(r))return g.scale(t.scale()),void g.translate(t.translate());t.scale(n.event.scale),t.translate([i[0],n.event.translate[1]]),d?y(p)&&(f=y(p),h=[o[0]+(f[0]-d[0]),a[1],a[2]],t.rotate(h),o=h):d=y(r=p),m=!0,e.render(!0);var s=t.rotate(),l=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":l[0],"geo.center.lat":l[1],"geo.projection.rotation.lon":-s[0]})}).on("zoomend",function(){n.select(this).style(l),m&&u(e,t,b)}),g}function h(e,t){var r,a={r:t.rotate(),k:t.scale()},d=c(0,t),p=function(e){for(var t=0,r=arguments.length,a=[];++t<r;)a.push(arguments[t]);var i=n.dispatch.apply(null,a);return i.of=function(t,r){return function(a){var o;try{o=a.sourceEvent=n.event,a.target=e,n.event=a,i[a.type].apply(t,r)}finally{n.event=o}}},i}(d,"zoomstart","zoom","zoomend"),h=0,g=d.on;function v(e){var n=t.rotate();e("projection.rotation.lon",-n[0]),e("projection.rotation.lat",-n[1])}return d.on("zoomstart",function(){n.select(this).style(s);var e=n.mouse(this),l=t.rotate(),c=l,u=t.translate(),v=function(e){var t=.5*e[0]*i,n=.5*e[1]*i,r=.5*e[2]*i,a=Math.sin(t),o=Math.cos(t),s=Math.sin(n),l=Math.cos(n),c=Math.sin(r),u=Math.cos(r);return[o*l*u+a*s*c,a*l*u-o*s*c,o*s*u+a*l*c,o*l*c-a*s*u]}(l);r=f(t,e),g.call(d,"zoom",function(){var i=n.mouse(this);if(t.scale(a.k=n.event.scale),r){if(f(t,i)){t.rotate(l).translate(u);var s=f(t,i),d=function(e,t){if(e&&t){var n=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(e,t),r=Math.sqrt(b(n,n)),a=.5*Math.acos(Math.max(-1,Math.min(1,b(e,t)))),i=Math.sin(a)/r;return r&&[Math.cos(a),n[2]*i,-n[1]*i,n[0]*i]}}(r,s),h=function(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*o,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*o,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*o]}(function(e,t){var n=e[0],r=e[1],a=e[2],i=e[3],o=t[0],s=t[1],l=t[2],c=t[3];return[n*o-r*s-a*l-i*c,n*s+r*o+a*c-i*l,n*l-r*c+a*o+i*s,n*c+r*l-a*s+i*o]}(v,d)),g=a.r=function(e,t,n){var r=y(t,2,e[0]);r=y(r,1,e[1]),r=y(r,0,e[2]-n[2]);var a,i,s=t[0],l=t[1],c=t[2],u=r[0],d=r[1],p=r[2],h=Math.atan2(l,s)*o,f=Math.sqrt(s*s+l*l);Math.abs(d)>f?(i=(d>0?90:-90)-h,a=0):(i=Math.asin(d/f)*o-h,a=Math.sqrt(f*f-d*d));var g=180-i-2*h,b=(Math.atan2(p,u)-Math.atan2(c,a))*o,v=(Math.atan2(p,u)-Math.atan2(c,-a))*o,M=m(n[0],n[1],i,b),x=m(n[0],n[1],g,v);return M<=x?[i,b,n[2]]:[g,v,n[2]]}(h,r,c);(!isFinite(g[0])||!isFinite(g[1])||!isFinite(g[2]))&&(g=c),t.rotate(g),c=g}}else r=f(t,e=i);!function(e){e({type:"zoom"})}(p.of(this,arguments))}),function(e){h++||e({type:"zoomstart"})}(p.of(this,arguments))}).on("zoomend",function(){var r;n.select(this).style(l),g.call(d,"zoom",null),r=p.of(this,arguments),--h||r({type:"zoomend"}),u(e,t,v)}).on("zoom.redraw",function(){e.render(!0);var n=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-n[0],"geo.projection.rotation.lat":-n[1]})}),n.rebind(d,p,"on")}function f(e,t){var n=e.invert(t);return n&&isFinite(n[0])&&isFinite(n[1])&&function(e){var t=e[0]*i,n=e[1]*i,r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}(n)}function m(e,t,n,r){var a=g(n-e),i=g(r-t);return Math.sqrt(a*a+i*i)}function g(e){return(e%360+540)%360-180}function y(e,t,n){var r=n*i,a=e.slice(),o=0===t?1:0,s=2===t?1:2,l=Math.cos(r),c=Math.sin(r);return a[o]=e[o]*l-e[s]*c,a[s]=e[s]*l+e[o]*c,a}function b(e,t){for(var n=0,r=0,a=e.length;r<a;++r)n+=e[r]*t[r];return n}t.exports=function(e,t){var n=e.projection;return(t._isScoped?d:t._isClipped?h:p)(e,n)}}),G1t=Ee((e,t)=>{var n=mo(),r=rpe(),a=r.geoPath,i=r.geoDistance,o=R1t(),s=vo(),l=Fr(),c=l.strTranslate,u=ao(),d=vs(),p=_d(),h=td(),f=es(),m=$y().getAutoRange,g=p2(),y=uf().prepSelect,b=uf().clearOutline,v=uf().selectOnClick,M=W1t(),x=VL(),z=D4(),_=TY(),A=Bhe().feature;function O(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var w=O.prototype;function k(e,t){var n=x.clipPad,r=e[0]+n,a=e[1]-n,i=t[0]+n,o=t[1]-n;r>0&&a<0&&(a+=360);var s=(a-r)/4;return{type:"Polygon",coordinates:[[[r,i],[r,o],[r+s,o],[r+2*s,o],[r+3*s,o],[a,o],[a,i],[a-s,i],[a-2*s,i],[a-3*s,i],[r,i]]]}}t.exports=function(e){return new O(e)},w.plot=function(e,t,n,r){var a=this;if(r)return a.update(e,t,!0);a._geoCalcData=e,a._fullLayout=t;var i=t[this.id],o=[],s=!1;for(var l in x.layerNameToAdjective)if("frame"!==l&&i["show"+l]){s=!0;break}for(var c=!1,u=0;u<e.length;u++){var d=e[0][0].trace;d._geo=a,d.locationmode&&(s=!0);var p=d.marker;if(p){var h=p.angle,f=p.angleref;(h||"north"===f||"previous"===f)&&(c=!0)}}if(this._hasMarkerAngles=c,s){var m=_.getTopojsonName(i);(null===a.topojson||m!==a.topojsonName)&&(a.topojsonName=m,void 0===PlotlyGeoAssets.topojson[a.topojsonName]&&o.push(a.fetchTopojson()))}o=o.concat(z.fetchTraceGeoData(e)),n.push(new Promise(function(n,r){Promise.all(o).then(function(){a.topojson=PlotlyGeoAssets.topojson[a.topojsonName],a.update(e,t),n()}).catch(r)}))},w.fetchTopojson=function(){var e=this,t=_.getTopojsonPath(e.topojsonURL,e.topojsonName);return new Promise(function(r,a){n.json(t,function(n,i){if(n)return 404===n.status?a(new Error(["plotly.js could not find topojson file at",t+".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):a(new Error(["unexpected error while fetching topojson file at",t].join(" ")));PlotlyGeoAssets.topojson[e.topojsonName]=i,r()})})},w.update=function(e,t,n){var r=t[this.id];this.hasChoropleth=!1;for(var a=0;a<e.length;a++){var i=e[a],o=i[0].trace;"choropleth"===o.type&&(this.hasChoropleth=!0),!0===o.visible&&o._length>0&&o._module.calcGeoJSON(i,t)}if(!n){if(this.updateProjection(e,t))return;(!this.viewInitial||this.scope!==r.scope)&&this.saveViewInitial(r)}this.scope=r.scope,this.updateBaseLayers(t,r),this.updateDims(t,r),this.updateFx(t,r),h.generalUpdatePerTraceModule(this.graphDiv,this,e,r);var s=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=s.selectAll(".point"),this.dataPoints.text=s.selectAll("text"),this.dataPaths.line=s.selectAll(".js-line");var l=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=l.selectAll("path"),this._render()},w.updateProjection=function(e,t){var n=this.graphDiv,s=t[this.id],c=t._size,u=s.domain,d=s.projection,p=s.lonaxis,h=s.lataxis,f=p._ax,g=h._ax,y=this.projection=function(e){var t=e.projection,n=t.type,s=x.projNames[n];s="geo"+l.titleCase(s);for(var c=(r[s]||o[s])(),u=e._isSatellite?180*Math.acos(1/t.distance)/Math.PI:e._isClipped?x.lonaxisSpan[n]/2:null,d=["center","rotate","parallels","clipExtent"],p=function(e){return e?c:[]},h=0;h<d.length;h++){var f=d[h];"function"!=typeof c[f]&&(c[f]=p)}return c.isLonLatOverEdges=function(e){if(null===c(e))return!0;if(u){var t=c.rotate();return i(e,[-t[0],-t[1]])>u*Math.PI/180}return!1},c.getPath=function(){return a().projection(c)},c.getBounds=function(e){return c.getPath().bounds(e)},c.precision(x.precision),e._isSatellite&&c.tilt(t.tilt).distance(t.distance),u&&c.clipAngle(u-x.clipPad),c}(s),b=[[c.l+c.w*u.x[0],c.t+c.h*(1-u.y[1])],[c.l+c.w*u.x[1],c.t+c.h*(1-u.y[0])]],v=s.center||{},M=d.rotation||{},z=p.range||[],_=h.range||[];if(s.fitbounds){f._length=b[1][0]-b[0][0],g._length=b[1][1]-b[0][1],f.range=m(n,f),g.range=m(n,g);var A=(f.range[0]+f.range[1])/2,O=(g.range[0]+g.range[1])/2;if(s._isScoped)v={lon:A,lat:O};else if(s._isClipped){v={lon:A,lat:O},M={lon:A,lat:O,roll:M.roll};var w=d.type,T=x.lonaxisSpan[w]/2||180,S=x.lataxisSpan[w]/2||90;z=[A-T,A+T],_=[O-S,O+S]}else v={lon:A,lat:O},M={lon:A,lat:M.lat,roll:M.roll}}y.center([v.lon-M.lon,v.lat-M.lat]).rotate([-M.lon,-M.lat,M.roll]).parallels(d.parallels);var C=k(z,_);y.fitExtent(b,C);var E=this.bounds=y.getBounds(C),q=this.fitScale=y.scale(),D=y.translate();if(s.fitbounds){var R=y.getBounds(k(f.range,g.range)),L=Math.min((E[1][0]-E[0][0])/(R[1][0]-R[0][0]),(E[1][1]-E[0][1])/(R[1][1]-R[0][1]));isFinite(L)?y.scale(L*q):l.warn("Something went wrong during"+this.id+"fitbounds computations.")}else y.scale(d.scale*q);var I=this.midPt=[(E[0][0]+E[1][0])/2,(E[0][1]+E[1][1])/2];if(y.translate([D[0]+(I[0]-D[0]),D[1]+(I[1]-D[1])]).clipExtent(E),s._isAlbersUsa){var W=y([v.lon,v.lat]),N=y.translate();y.translate([N[0]-(W[0]-N[0]),N[1]-(W[1]-N[1])])}},w.updateBaseLayers=function(e,t){var r=this,a=r.topojson,i=r.layers,o=r.basePaths;function s(e){return"lonaxis"===e||"lataxis"===e}function l(e){return!!x.lineLayers[e]}function c(e){return!!x.fillLayers[e]}var p=(this.hasChoropleth?x.layersForChoropleth:x.layers).filter(function(e){return l(e)||c(e)?t["show"+e]:!s(e)||t[e].showgrid}),h=r.framework.selectAll(".layer").data(p,String);h.exit().each(function(e){delete i[e],delete o[e],n.select(this).remove()}),h.enter().append("g").attr("class",function(e){return"layer "+e}).each(function(e){var t=i[e]=n.select(this);"bg"===e?r.bgRect=t.append("rect").style("pointer-events","all"):s(e)?o[e]=t.append("path").style("fill","none"):"backplot"===e?t.append("g").classed("choroplethlayer",!0):"frontplot"===e?t.append("g").classed("scatterlayer",!0):l(e)?o[e]=t.append("path").style("fill","none").style("stroke-miterlimit",2):c(e)&&(o[e]=t.append("path").style("stroke","none"))}),h.order(),h.each(function(n){var r=o[n],i=x.layerNameToAdjective[n];"frame"===n?r.datum(x.sphereSVG):l(n)||c(n)?r.datum(A(a,a.objects[n])):s(n)&&r.datum(function(e,t,n){var r,a,i,o=1e-6,s=2.5,l=t[e],c=x.scopeDefaults[t.scope];"lonaxis"===e?(r=c.lonaxisRange,a=c.lataxisRange,i=function(e,t){return[e,t]}):"lataxis"===e&&(r=c.lataxisRange,a=c.lonaxisRange,i=function(e,t){return[t,e]});var u={type:"linear",range:[r[0],r[1]-o],tick0:l.tick0,dtick:l.dtick};f.setConvert(u,n);var d=f.calcTicks(u);!t.isScoped&&"lonaxis"===e&&d.pop();for(var p=d.length,h=new Array(p),m=0;m<p;m++)for(var g=d[m].x,y=h[m]=[],b=a[0];b<a[1]+s;b+=s)y.push(i(g,b));return{type:"MultiLineString",coordinates:h}}(n,t,e)).call(u.stroke,t[n].gridcolor).call(d.dashLine,t[n].griddash,t[n].gridwidth),l(n)?r.call(u.stroke,t[i+"color"]).call(d.dashLine,"",t[i+"width"]):c(n)&&r.call(u.fill,t[i+"color"])})},w.updateDims=function(e,t){var n=this.bounds,r=(t.framewidth||0)/2,a=n[0][0]-r,i=n[0][1]-r,o=n[1][0]-a+r,s=n[1][1]-i+r;d.setRect(this.clipRect,a,i,o,s),this.bgRect.call(d.setRect,a,i,o,s).call(u.fill,t.bgcolor),this.xaxis._offset=a,this.xaxis._length=o,this.yaxis._offset=i,this.yaxis._length=s},w.updateFx=function(e,t){var r=this,a=r.graphDiv,i=r.bgRect,o=e.dragmode,c=e.clickmode;if(!r.isStatic){var u={element:r.bgRect.node(),gd:a,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:function(e,t){t.isRect?(e.range={})[r.id]=[d([t.xmin,t.ymin]),d([t.xmax,t.ymax])]:(e.lassoPoints={})[r.id]=t.map(d)}},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(e){2===e&&b(a)}};"pan"===o?(i.node().onmousedown=null,i.call(M(r,t)),i.on("dblclick.zoom",function(){var e=r.viewInitial,t={};for(var n in e)t[r.id+"."+n]=e[n];s.call("_guiRelayout",a,t),a.emit("plotly_doubleclick",null)}),a._context._scrollZoom.geo||i.on("wheel.zoom",null)):("select"===o||"lasso"===o)&&(i.on(".zoom",null),u.prepFn=function(e,t,n){y(e,t,n,u,o)},g.init(u)),i.on("mousemove",function(){var e=r.projection.invert(l.getPositionFromD3Event());if(!e)return g.unhover(a,n.event);r.xaxis.p2c=function(){return e[0]},r.yaxis.p2c=function(){return e[1]},p.hover(a,n.event,r.id)}),i.on("mouseout",function(){a._dragging||g.unhover(a,n.event)}),i.on("click",function(){"select"!==o&&"lasso"!==o&&(c.indexOf("select")>-1&&v(n.event,a,[r.xaxis],[r.yaxis],r.id,u),c.indexOf("event")>-1&&p.click(a,n.event))})}function d(e){return r.projection.invert([e[0]+r.xaxis._offset,e[1]+r.yaxis._offset])}},w.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,a="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",a),e.clipRect=e.clipDef.append("rect"),e.framework=n.select(e.container).append("g").attr("class","geo "+e.id).call(d.setClipUrl,a,t),e.project=function(t){var n=e.projection(t);return n?[n[0]-e.xaxis._offset,n[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(t){return e.project(t)[0]}},e.yaxis={_id:"y",c2p:function(t){return e.project(t)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},f.setConvert(e.mockAxis,r)},w.saveViewInitial=function(e){var t,n=e.center||{},r=e.projection,a=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale},t=e._isScoped?{"center.lon":n.lon,"center.lat":n.lat}:e._isClipped?{"projection.rotation.lon":a.lon,"projection.rotation.lat":a.lat}:{"center.lon":n.lon,"center.lat":n.lat,"projection.rotation.lon":a.lon},l.extendFlat(this.viewInitial,t)},w.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},w._render=function(){var e,t=this.projection,n=t.getPath();function r(e){var n=t(e.lonlat);return n?c(n[0],n[1]):null}function a(e){return t.isLonLatOverEdges(e.lonlat)?"none":null}for(e in this.basePaths)this.basePaths[e].attr("d",n);for(e in this.dataPaths)this.dataPaths[e].attr("d",function(e){return n(e.geojson)});for(e in this.dataPoints)this.dataPoints[e].attr("display",a).attr("transform",r)}}),fpe=Ee((e,t)=>{var n=oh(),r=ad().attributes,a=pp().dash,i=VL(),o=Wu().overrideAll,s=qz(),l={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}],description:["Sets the range of this axis (in degrees),","sets the map's clipped coordinates."].join(" ")},showgrid:{valType:"boolean",dflt:!1,description:"Sets whether or not graticule are shown on the map."},tick0:{valType:"number",dflt:0,description:["Sets the graticule's starting tick longitude/latitude."].join(" ")},dtick:{valType:"number",description:["Sets the graticule's longitude/latitude tick step."].join(" ")},gridcolor:{valType:"color",dflt:n.lightLine,description:["Sets the graticule's stroke color."].join(" ")},gridwidth:{valType:"number",min:0,dflt:1,description:["Sets the graticule's stroke width (in px)."].join(" ")},griddash:a};(t.exports=o({domain:r({name:"geo"},{description:["Note that geo subplots are constrained by domain.","In general, when `projection.scale` is set to 1.","a map will fit either its x or y domain, but not both."].join(" ")}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot",description:["Determines if this subplot's view settings are auto-computed to fit trace data.","On scoped maps, setting `fitbounds` leads to `center.lon` and `center.lat` getting auto-filled.","On maps with a non-clipped projection, setting `fitbounds` leads to `center.lon`, `center.lat`,","and `projection.rotation.lon` getting auto-filled.","On maps with a clipped projection, setting `fitbounds` leads to `center.lon`, `center.lat`,","`projection.rotation.lon`, `projection.rotation.lat`, `lonaxis.range` and `lataxis.range`","getting auto-filled.","If *locations*, only the trace's visible locations are considered in the `fitbounds` computations.","If *geojson*, the entire trace input `geojson` (if provided) is considered in the `fitbounds` computations,","Defaults to *false*."].join(" ")},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0,description:["Sets the resolution of the base layers.","The values have units of km/mm","e.g. 110 corresponds to a scale ratio of 1:110,000,000."].join(" ")},scope:{valType:"enumerated",values:s(i.scopeDefaults),dflt:"world",description:"Set the scope of the map."},projection:{type:{valType:"enumerated",values:s(i.projNames),description:"Sets the projection type."},rotation:{lon:{valType:"number",description:["Rotates the map along parallels","(in degrees East).","Defaults to the center of the `lonaxis.range` values."].join(" ")},lat:{valType:"number",description:["Rotates the map along meridians","(in degrees North)."].join(" ")},roll:{valType:"number",description:["Roll the map (in degrees)","For example, a roll of *180* makes the map appear upside down."].join(" ")}},tilt:{valType:"number",dflt:0,description:["For satellite projection type only.","Sets the tilt angle of perspective projection."].join(" ")},distance:{valType:"number",min:1.001,dflt:2,description:["For satellite projection type only.","Sets the distance from the center of the sphere to the point of view","as a proportion of the spheres radius."].join(" ")},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}],description:["For conic projection types only.","Sets the parallels (tangent, secant)","where the cone intersects the sphere."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Zooms in or out on the map view.","A scale of *1* corresponds to the largest zoom level","that fits the map's lon and lat ranges. "].join(" ")}},center:{lon:{valType:"number",description:["Sets the longitude of the map's center.","By default, the map's longitude center lies at the middle of the longitude range","for scoped projection and above `projection.rotation.lon` otherwise."].join(" ")},lat:{valType:"number",description:["Sets the latitude of the map's center.","For all projection types, the map's latitude center lies","at the middle of the latitude range by default."].join(" ")}},visible:{valType:"boolean",dflt:!0,description:"Sets the default visibility of the base layers."},showcoastlines:{valType:"boolean",description:"Sets whether or not the coastlines are drawn."},coastlinecolor:{valType:"color",dflt:n.defaultLine,description:"Sets the coastline color."},coastlinewidth:{valType:"number",min:0,dflt:1,description:"Sets the coastline stroke width (in px)."},showland:{valType:"boolean",dflt:!1,description:"Sets whether or not land masses are filled in color."},landcolor:{valType:"color",dflt:i.landColor,description:"Sets the land mass color."},showocean:{valType:"boolean",dflt:!1,description:"Sets whether or not oceans are filled in color."},oceancolor:{valType:"color",dflt:i.waterColor,description:"Sets the ocean color"},showlakes:{valType:"boolean",dflt:!1,description:"Sets whether or not lakes are drawn."},lakecolor:{valType:"color",dflt:i.waterColor,description:"Sets the color of the lakes."},showrivers:{valType:"boolean",dflt:!1,description:"Sets whether or not rivers are drawn."},rivercolor:{valType:"color",dflt:i.waterColor,description:"Sets color of the rivers."},riverwidth:{valType:"number",min:0,dflt:1,description:"Sets the stroke width (in px) of the rivers."},showcountries:{valType:"boolean",description:"Sets whether or not country boundaries are drawn."},countrycolor:{valType:"color",dflt:n.defaultLine,description:"Sets line color of the country boundaries."},countrywidth:{valType:"number",min:0,dflt:1,description:"Sets line width (in px) of the country boundaries."},showsubunits:{valType:"boolean",description:["Sets whether or not boundaries of subunits within countries","(e.g. states, provinces) are drawn."].join(" ")},subunitcolor:{valType:"color",dflt:n.defaultLine,description:"Sets the color of the subunits boundaries."},subunitwidth:{valType:"number",min:0,dflt:1,description:"Sets the stroke width (in px) of the subunits boundaries."},showframe:{valType:"boolean",description:"Sets whether or not a frame is drawn around the map."},framecolor:{valType:"color",dflt:n.defaultLine,description:"Sets the color the frame."},framewidth:{valType:"number",min:0,dflt:1,description:"Sets the stroke width (in px) of the frame."},bgcolor:{valType:"color",dflt:n.background,description:"Set the background color of the map"},lonaxis:l,lataxis:l},"plot","from-root")).uirevision={valType:"any",editType:"none",description:["Controls persistence of user-driven changes in the view","(projection and center). Defaults to `layout.uirevision`."].join(" ")}}),J1t=Ee((e,t)=>{var n=Fr(),r=p4(),a=mp().getSubplotData,i=VL(),o=fpe(),s=i.axesNames;function l(e,t,r,o){var l=a(o.fullData,"geo",o.id).map(function(e){return e.index}),c=r("resolution"),u=r("scope"),d=i.scopeDefaults[u],p=r("projection.type",d.projType),h=t._isAlbersUsa="albers usa"===p;h&&(u=t.scope="usa");var f=t._isScoped="world"!==u,m=t._isSatellite="satellite"===p,g=t._isConic=-1!==p.indexOf("conic")||"albers"===p,y=t._isClipped=!!i.lonaxisSpan[p];if(!1===e.visible){var b=n.extendDeep({},t._template);b.showcoastlines=!1,b.showcountries=!1,b.showframe=!1,b.showlakes=!1,b.showland=!1,b.showocean=!1,b.showrivers=!1,b.showsubunits=!1,b.lonaxis&&(b.lonaxis.showgrid=!1),b.lataxis&&(b.lataxis.showgrid=!1),t._template=b}for(var v=r("visible"),M=0;M<s.length;M++){var x,z=s[M],_=[30,10][M];if(f)x=d[z+"Range"];else{var A=i[z+"Span"],O=(A[p]||A["*"])/2,w=r("projection.rotation."+z.slice(0,3),d.projRotate[M]);x=[w-O,w+O]}var k=r(z+".range",x);r(z+".tick0"),r(z+".dtick",_),r(z+".showgrid",!!v&&void 0)&&(r(z+".gridcolor"),r(z+".gridwidth"),r(z+".griddash")),t[z]._ax={type:"linear",_id:z.slice(0,3),_traceIndices:l,setScale:n.identity,c2l:n.identity,r2l:n.identity,autorange:!0,range:k.slice(),_m:1,_input:{}}}var T=t.lonaxis.range,S=t.lataxis.range,C=T[0],E=T[1];C>0&&E<0&&(E+=360);var q,D,R,L=(C+E)/2;if(!h){var I=f?d.projRotate:[L,0,0];q=r("projection.rotation.lon",I[0]),r("projection.rotation.lat",I[1]),r("projection.rotation.roll",I[2]),r("showcoastlines",!f&&v)&&(r("coastlinecolor"),r("coastlinewidth")),r("showocean",!!v&&void 0)&&r("oceancolor")}(h?(D=-96.6,R=38.7):(D=f?L:q,R=(S[0]+S[1])/2),r("center.lon",D),r("center.lat",R),m&&(r("projection.tilt"),r("projection.distance")),g)&&r("projection.parallels",d.projParallels||[0,60]);r("projection.scale"),r("showland",!!v&&void 0)&&r("landcolor"),r("showlakes",!!v&&void 0)&&r("lakecolor"),r("showrivers",!!v&&void 0)&&(r("rivercolor"),r("riverwidth")),r("showcountries",f&&"usa"!==u&&v)&&(r("countrycolor"),r("countrywidth")),("usa"===u||"north america"===u&&50===c)&&(r("showsubunits",v),r("subunitcolor"),r("subunitwidth")),f||r("showframe",v)&&(r("framecolor"),r("framewidth")),r("bgcolor"),r("fitbounds")&&(delete t.projection.scale,f?(delete t.center.lon,delete t.center.lat):y?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}t.exports=function(e,t,n){r(e,t,n,{type:"geo",attributes:o,handleDefaults:l,fullData:n,partition:"y"})}}),hpe=Ee((e,t)=>{var n=mp().getSubplotCalcData,r=Fr().counterRegex,a=G1t(),i="geo",o=r(i),s={};s[i]={valType:"subplotid",dflt:i,editType:"calc",description:["Sets a reference between this trace's geospatial coordinates and","a geographic map.","If *geo* (the default value), the geospatial coordinates refer to","`layout.geo`.","If *geo2*, the geospatial coordinates refer to `layout.geo2`,","and so on."].join(" ")},t.exports={attr:i,name:i,idRoot:i,idRegex:o,attrRegex:o,attributes:s,layoutAttributes:fpe(),supplyLayoutDefaults:J1t(),plot:function(e){for(var t=e._fullLayout,r=e.calcdata,o=t._subplots[i],s=0;s<o.length;s++){var l=o[s],c=n(r,i,l),u=t[l]._subplot;u||(u=a({id:l,graphDiv:e,container:t._geolayer.node(),topojsonURL:e._context.topojsonURL,staticPlot:e._context.staticPlot}),t[l]._subplot=u),u.plot(c,t,e._promises)}},updateFx:function(e){for(var t=e._fullLayout,n=t._subplots[i],r=0;r<n.length;r++){var a=t[n[r]];a._subplot.updateFx(t,a)}},clean:function(e,t,n,r){for(var a=r._subplots[i]||[],o=0;o<a.length;o++){var s=a[o],l=r[s]._subplot;!t[s]&&l&&(l.framework.remove(),l.clipDef.remove())}}}}),nct=Ee((e,t)=>{t.exports={attributes:zO(),supplyDefaults:Llt(),colorbar:Wp(),formatLabels:Nlt(),calc:wY(),calcGeoJSON:tpe().calcGeoJSON,plot:tpe().plot,style:Khe(),styleOnSelect:vm().styleOnSelect,hoverPoints:w1t(),eventData:T1t(),selectPoints:C1t(),moduleType:"trace",name:"scattergeo",basePlotModule:hpe(),categories:["geo","symbols","showLegend","scatter-like"],meta:{hrName:"scatter_geo",description:["The data visualized as scatter point or lines on a geographic map","is provided either by longitude/latitude pairs in `lon` and `lat`","respectively or by geographic location IDs or names in `locations`."].join(" ")}}}),ict=Ee((e,t)=>{t.exports=nct()}),n9=Ee((e,t)=>{var{hovertemplateAttrs:n,templatefallbackAttrs:r}=p1(),a=zO(),i=Oc(),o=S1(),s=oh().defaultLine,l=ms().extendFlat,c=a.marker.line;t.exports=l({locations:{valType:"data_array",editType:"calc",description:["Sets the coordinates via location IDs or names.","See `locationmode` for more info."].join(" ")},locationmode:a.locationmode,z:{valType:"data_array",editType:"calc",description:"Sets the color values."},geojson:l({},a.geojson,{description:["Sets optional GeoJSON data associated with this trace.","If not given, the features on the base map are used.","It can be set as a valid GeoJSON object or as a URL string.","Note that we only accept GeoJSONs of type *FeatureCollection* or *Feature*","with geometries of type *Polygon* or *MultiPolygon*."].join(" ")}),featureidkey:a.featureidkey,text:l({},a.text,{description:"Sets the text elements associated with each location."}),hovertext:l({},a.hovertext,{description:"Same as `text`."}),marker:{line:{color:l({},c.color,{dflt:s}),width:l({},c.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style",description:"Sets the opacity of the locations."},editType:"calc"},selected:{marker:{opacity:a.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:a.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:l({},o.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:n(),hovertemplatefallback:r(),showlegend:l({},o.showlegend,{dflt:!1})},i("",{cLetter:"z",editTypeOverride:"calc"}))}),uct=Ee((e,t)=>{var n=Fr(),r=kh(),a=n9(),i=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");t.exports=function(e,t,o,s){function l(r,i){return n.coerce(e,t,a,r,i)}var c=l("locations"),u=l("z");if(c&&c.length&&n.isArrayOrTypedArray(u)&&u.length){t._length=Math.min(c.length,u.length);var d,p=l("geojson");("string"==typeof p&&""!==p||n.isPlainObject(p))&&(d="geojson-id");var h=l("locationmode",d);"country names"===h&&n.warn(i),"geojson-id"===h&&l("featureidkey"),l("text"),l("hovertext"),l("hovertemplate"),l("hovertemplatefallback"),l("marker.line.width")&&l("marker.line.color"),l("marker.opacity"),r(e,t,s,l,{prefix:"",cLetter:"z"}),n.coerceSelectionMarkerOpacity(t,l)}else t.visible=!1}}),GY=Ee((e,t)=>{var n=xs(),r=T0().BADNUM,a=f2(),i=E3(),o=Kg();function s(e){return e&&"string"==typeof e}t.exports=function(e,t){var l,c=t._length,u=new Array(c);l=t.geojson?function(e){return s(e)||n(e)}:s;for(var d=0;d<c;d++){var p=u[d]={},h=t.locations[d],f=t.z[d];l(h)&&n(f)?(p.loc=h,p.z=f):(p.loc=null,p.z=r),p.index=d}return i(u,t),a(e,t,{vals:t.z,containerStr:"",cLetter:"z"}),o(u,t),u}}),XY=Ee((e,t)=>{var n=mo(),r=ao(),a=vs(),i=xu();function o(e,t){var o=t[0].trace,s=t[0].node3.selectAll(".choroplethlocation"),l=o.marker||{},c=l.line||{},u=i.makeColorScaleFuncFromTrace(o);s.each(function(e){n.select(this).attr("fill",u(e.z)).call(r.stroke,e.mlc||c.color).call(a.dashLine,"",e.mlw||c.width||0).style("opacity",l.opacity)}),a.selectedPointStyle(s,o)}t.exports={style:function(e,t){t&&o(e,t)},styleOnSelect:function(e,t){var n=t[0].node3,r=t[0].trace;r.selectedpoints?a.selectedPointStyle(n.selectAll(".choroplethlocation"),r):o(0,t)}}}),mpe=Ee((e,t)=>{var n=mo(),r=Fr(),a=D4(),i=TY().getTopojsonFeatures,o=$y().findExtremes,s=XY().style;t.exports={calcGeoJSON:function(e,t){for(var n=e[0].trace,r=t[n.geo],s=r._subplot,l=n.locationmode,c=n._length,u="geojson-id"===l?a.extractTraceFeature(e):i(n,s.topojson),d=[],p=[],h=0;h<c;h++){var f=e[h],m="geojson-id"===l?f.fOut:a.locationToFeature(l,f.loc,u);if(m){f.geojson=m,f.ct=m.properties.ct,f._polygons=a.feature2polygons(m);var g=a.computeBbox(m);d.push(g[0],g[2]),p.push(g[1],g[3])}else f.geojson=null}if("geojson"===r.fitbounds&&"geojson-id"===l){var y=a.computeBbox(a.getTraceGeojson(n));d=[y[0],y[2]],p=[y[1],y[3]]}var b={padded:!0};n._extremes.lon=o(r.lonaxis._ax,d,b),n._extremes.lat=o(r.lataxis._ax,p,b)},plot:function(e,t,a){var i=t.layers.backplot.select(".choroplethlayer");r.makeTraceGroups(i,a,"trace choropleth").each(function(t){var a=n.select(this).selectAll("path.choroplethlocation").data(r.identity);a.enter().append("path").classed("choroplethlocation",!0),a.exit().remove(),s(e,t)})}}}),YY=Ee((e,t)=>{var n=es(),r=n9(),a=Fr().fillText;t.exports=function(e,t,i){var o,s,l,c,u=e.cd,d=u[0].trace,p=e.subplot,h=[t,i],f=[t+360,i];for(s=0;s<u.length;s++)if(c=!1,(o=u[s])._polygons){for(l=0;l<o._polygons.length;l++)o._polygons[l].contains(h)&&(c=!c),o._polygons[l].contains(f)&&(c=!c);if(c)break}if(c&&o)return e.x0=e.x1=e.xa.c2p(o.ct),e.y0=e.y1=e.ya.c2p(o.ct),e.index=o.index,e.location=o.loc,e.z=o.z,e.zLabel=n.tickText(p.mockAxis,p.mockAxis.c2l(o.z),"hover").text,e.hovertemplate=o.hovertemplate,function(e,t,n){if(!t.hovertemplate){var i=n.hi||t.hoverinfo,o=String(n.loc),s="all"===i?r.hoverinfo.flags:i.split("+"),l=-1!==s.indexOf("name"),c=-1!==s.indexOf("location"),u=-1!==s.indexOf("z"),d=-1!==s.indexOf("text"),p=[];!l&&c?e.nameOverride=o:(l&&(e.nameOverride=t.name),c&&p.push(o)),u&&p.push(e.zLabel),d&&a(n,t,p),e.extraText=p.join("<br>")}}(e,d,o),[e]}}),ZY=Ee((e,t)=>{t.exports=function(e,t,n,r,a){e.location=t.location,e.z=t.z;var i=r[a];return i.fIn&&i.fIn.properties&&(e.properties=i.fIn.properties),e.ct=i.ct,e}}),$Y=Ee((e,t)=>{t.exports=function(e,t){var n,r,a,i,o,s=e.cd,l=e.xaxis,c=e.yaxis,u=[];if(!1===t)for(n=0;n<s.length;n++)s[n].selected=0;else for(n=0;n<s.length;n++)(a=(r=s[n]).ct)&&(i=l.c2p(a),o=c.c2p(a),t.contains([i,o],null,n,e)?(u.push({pointNumber:n,lon:a[0],lat:a[1]}),r.selected=1):r.selected=0);return u}}),zct=Ee((e,t)=>{t.exports={attributes:n9(),supplyDefaults:uct(),colorbar:d4(),calc:GY(),calcGeoJSON:mpe().calcGeoJSON,plot:mpe().plot,style:XY().style,styleOnSelect:XY().styleOnSelect,hoverPoints:YY(),eventData:ZY(),selectPoints:$Y(),moduleType:"trace",name:"choropleth",basePlotModule:hpe(),categories:["geo","noOpacity","showLegend"],meta:{description:["The data that describes the choropleth value-to-color mapping","is set in `z`.","The geographic locations corresponding to each value in `z`","are set in `locations`."].join(" ")}}}),wct=Ee((e,t)=>{t.exports=zct()}),KY=Ee((e,t)=>{var n=vo(),r=Fr(),a=NS();function i(e,t,i,o){var s=e.xa,l=e.ya,c=e.distance,u=e.dxy,d=e.index,p={pointNumber:d,x:t[d],y:i[d]};p.tx=r.isArrayOrTypedArray(o.text)?o.text[d]:o.text,p.htx=Array.isArray(o.hovertext)?o.hovertext[d]:o.hovertext,p.data=Array.isArray(o.customdata)?o.customdata[d]:o.customdata,p.tp=Array.isArray(o.textposition)?o.textposition[d]:o.textposition;var h=o.textfont;h&&(p.ts=r.isArrayOrTypedArray(h.size)?h.size[d]:h.size,p.tc=r.isArrayOrTypedArray(h.color)?h.color[d]:h.color,p.tf=Array.isArray(h.family)?h.family[d]:h.family,p.tw=Array.isArray(h.weight)?h.weight[d]:h.weight,p.ty=Array.isArray(h.style)?h.style[d]:h.style,p.tv=Array.isArray(h.variant)?h.variant[d]:h.variant);var f=o.marker;f&&(p.ms=r.isArrayOrTypedArray(f.size)?f.size[d]:f.size,p.mo=r.isArrayOrTypedArray(f.opacity)?f.opacity[d]:f.opacity,p.mx=r.isArrayOrTypedArray(f.symbol)?f.symbol[d]:f.symbol,p.ma=r.isArrayOrTypedArray(f.angle)?f.angle[d]:f.angle,p.mc=r.isArrayOrTypedArray(f.color)?f.color[d]:f.color);var m=f&&f.line;m&&(p.mlc=Array.isArray(m.color)?m.color[d]:m.color,p.mlw=r.isArrayOrTypedArray(m.width)?m.width[d]:m.width);var g=f&&f.gradient;g&&"none"!==g.type&&(p.mgt=Array.isArray(g.type)?g.type[d]:g.type,p.mgc=Array.isArray(g.color)?g.color[d]:g.color);var y=s.c2p(p.x,!0),b=l.c2p(p.y,!0),v=p.mrc||1,M=o.hoverlabel;M&&(p.hbg=Array.isArray(M.bgcolor)?M.bgcolor[d]:M.bgcolor,p.hbc=Array.isArray(M.bordercolor)?M.bordercolor[d]:M.bordercolor,p.hts=r.isArrayOrTypedArray(M.font.size)?M.font.size[d]:M.font.size,p.htc=Array.isArray(M.font.color)?M.font.color[d]:M.font.color,p.htf=Array.isArray(M.font.family)?M.font.family[d]:M.font.family,p.hnl=r.isArrayOrTypedArray(M.namelength)?M.namelength[d]:M.namelength);var x=o.hoverinfo;x&&(p.hi=Array.isArray(x)?x[d]:x);var z=o.hovertemplate;z&&(p.ht=Array.isArray(z)?z[d]:z);var _={};_[e.index]=p;var A=o._origX,O=o._origY,w=r.extendFlat({},e,{color:a(o,p),x0:y-v,x1:y+v,xLabelVal:A?A[d]:p.x,y0:b-v,y1:b+v,yLabelVal:O?O[d]:p.y,cd:_,distance:c,spikeDistance:u,hovertemplate:p.ht});return p.htx?w.text=p.htx:p.tx?w.text=p.tx:o.text&&(w.text=o.text),r.fillText(p,o,w),n.getComponentMethod("errorbars","hoverInfo")(p,o,w),w}t.exports={hoverPoints:function(e,t,n,r){var a,o=e.cd,s=o[0].t,l=o[0].trace,c=e.xa,u=e.ya,d=s.x,p=s.y,h=c.c2p(t),f=u.c2p(n),m=e.distance;if(s.tree){var g=c.p2c(h-m),y=c.p2c(h+m),b=u.p2c(f-m),v=u.p2c(f+m);a="x"===r?s.tree.range(Math.min(g,y),Math.min(u._rl[0],u._rl[1]),Math.max(g,y),Math.max(u._rl[0],u._rl[1])):s.tree.range(Math.min(g,y),Math.min(b,v),Math.max(g,y),Math.max(b,v))}else a=s.ids;var M,x,z,_,A,O,w,k,T,S=m;if("x"===r){var C=!!l.xperiodalignment,E=!!l.yperiodalignment;for(A=0;A<a.length;A++){if(z=d[M=a[A]],O=Math.abs(c.c2p(z)-h),C){var q=c.c2p(l._xStarts[M]),D=c.c2p(l._xEnds[M]);O=h>=Math.min(q,D)&&h<=Math.max(q,D)?0:1/0}if(O<S){if(S=O,_=p[M],w=u.c2p(_)-f,E){var R=u.c2p(l._yStarts[M]),L=u.c2p(l._yEnds[M]);w=f>=Math.min(R,L)&&f<=Math.max(R,L)?0:1/0}T=Math.sqrt(O*O+w*w),x=a[A]}}}else for(A=a.length-1;A>-1;A--)z=d[M=a[A]],_=p[M],O=c.c2p(z)-h,w=u.c2p(_)-f,(k=Math.sqrt(O*O+w*w))<S&&(S=T=k,x=M);return e.index=x,e.distance=S,e.dxy=T,void 0===x?[e]:[i(e,d,p,l)]},calcHover:i}}),P4=Ee((e,t)=>{t.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:20,SYMBOL_STROKE:1,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}}),KL=Ee((e,t)=>{var n=S1(),r=Mu(),a=tb(),i=Id(),o=Pd().axisHoverFormat,s=Oc(),l=qz(),c=ms().extendFlat,u=Wu().overrideAll,d=P4().DASHES,p=i.line,h=i.marker,f=h.line,m=t.exports=u({x:i.x,x0:i.x0,dx:i.dx,y:i.y,y0:i.y0,dy:i.dy,xperiod:i.xperiod,yperiod:i.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:i.xperiodalignment,yperiodalignment:i.yperiodalignment,xhoverformat:o("x"),yhoverformat:o("y"),text:i.text,hovertext:i.hovertext,textposition:i.textposition,textfont:r({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"],description:"Sets the text font."}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],description:["Determines the drawing mode for this scatter trace."].join(" ")},line:{color:p.color,width:p.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot",description:["Determines the line shape.","The values correspond to step-wise line shapes."].join(" ")},dash:{valType:"enumerated",values:l(d),dflt:"solid",description:"Sets the style of the lines."}},marker:c({},s("marker"),{symbol:h.symbol,angle:h.angle,size:h.size,sizeref:h.sizeref,sizemin:h.sizemin,sizemode:h.sizemode,opacity:h.opacity,colorbar:h.colorbar,line:c({},s("marker.line"),{width:f.width})}),connectgaps:i.connectgaps,fill:c({},i.fill,{dflt:"none"}),fillcolor:a(),selected:{marker:i.selected.marker,textfont:i.selected.textfont},unselected:{marker:i.unselected.marker,textfont:i.unselected.textfont},opacity:n.opacity},"calc","nested");m.x.editType=m.y.editType=m.x0.editType=m.y0.editType="calc+clearAxisTypes",m.hovertemplate=i.hovertemplate,m.hovertemplatefallback=i.hovertemplatefallback,m.texttemplate=i.texttemplate,m.texttemplatefallback=i.texttemplatefallback}),JY=Ee(e=>{var t=P4();e.isOpenSymbol=function(e){return"string"==typeof e?t.OPEN_RE.test(e):e%200>100},e.isDotSymbol=function(e){return"string"==typeof e?t.DOT_RE.test(e):e>200}}),Ict=Ee((e,t)=>{var n=Fr(),r=vo(),a=JY(),i=KL(),o=S3(),s=Hc(),l=SS(),c=ab(),u=Wv(),d=Yg(),p=ib(),h=Zg();t.exports=function(e,t,f,m){function g(r,a){return n.coerce(e,t,i,r,a)}var y=!!e.marker&&a.isOpenSymbol(e.marker.symbol),b=s.isBubble(e),v=l(e,t,m,g);if(v){c(e,t,m,g),g("xhoverformat"),g("yhoverformat");var M=v<o.PTS_LINESONLY?"lines+markers":"lines";g("text"),g("hovertext"),g("hovertemplate"),g("hovertemplatefallback"),g("mode",M),s.hasMarkers(t)&&(u(e,t,f,m,g,{noAngleRef:!0,noLineDash:!0,noStandOff:!0}),g("marker.line.width",y||b?1:0)),s.hasLines(t)&&(g("connectgaps"),d(e,t,f,m,g),g("line.shape")),s.hasText(t)&&(g("texttemplate"),g("texttemplatefallback"),h(e,t,m,g,{noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var x=(t.line||{}).color,z=(t.marker||{}).color;g("fill"),"none"!==t.fill&&p(e,t,f,g);var _=r.getComponentMethod("errorbars","supplyDefaults");_(e,t,x||z||f,{axis:"y"}),_(e,t,x||z||f,{axis:"x",inherit:"y"}),n.coerceSelectionMarkerOpacity(t,g)}else t.visible=!1}}),Wct=Ee((e,t)=>{var n=Sj();t.exports=function(e,t,r){var a=e.i;return"x"in e||(e.x=t._x[a]),"y"in e||(e.y=t._y[a]),n(e,t,r)}}),Bct=Ee((e,t)=>{function n(e,t,n,r,a){for(var i=a+1;r<=a;){var o=r+a>>>1,s=e[o];(void 0!==n?n(s,t):s-t)>=0?(i=o,a=o-1):r=o+1}return i}function r(e,t,n,r,a){for(var i=a+1;r<=a;){var o=r+a>>>1,s=e[o];(void 0!==n?n(s,t):s-t)>0?(i=o,a=o-1):r=o+1}return i}function a(e,t,n,r,a){for(var i=r-1;r<=a;){var o=r+a>>>1,s=e[o];(void 0!==n?n(s,t):s-t)<0?(i=o,r=o+1):a=o-1}return i}function i(e,t,n,r,a){for(var i=r-1;r<=a;){var o=r+a>>>1,s=e[o];(void 0!==n?n(s,t):s-t)<=0?(i=o,r=o+1):a=o-1}return i}function o(e,t,n,r,a){for(;r<=a;){var i=r+a>>>1,o=e[i],s=void 0!==n?n(o,t):o-t;if(0===s)return i;s<=0?r=i+1:a=i-1}return-1}function s(e,t,n,r,a,i){return"function"==typeof n?i(e,t,n,void 0===r?0:0|r,void 0===a?e.length-1:0|a):i(e,t,void 0,void 0===n?0:0|n,void 0===r?e.length-1:0|r)}t.exports={ge:function(e,t,r,a,i){return s(e,t,r,a,i,n)},gt:function(e,t,n,a,i){return s(e,t,n,a,i,r)},lt:function(e,t,n,r,i){return s(e,t,n,r,i,a)},le:function(e,t,n,r,a){return s(e,t,n,r,a,i)},eq:function(e,t,n,r,a){return s(e,t,n,r,a,o)}}}),Y3=Ee((e,t)=>{t.exports=function(e,t,n){var a,i,o={};if("string"==typeof t&&(t=r(t)),Array.isArray(t)){var s={};for(i=0;i<t.length;i++)s[t[i]]=!0;t=s}for(a in t)t[a]=r(t[a]);var l={};for(a in t){var c=t[a];if(Array.isArray(c))for(i=0;i<c.length;i++){var u=c[i];if(n&&(l[u]=!0),u in e){if(o[a]=e[u],n)for(var d=i;d<c.length;d++)l[c[d]]=!0;break}}else a in e&&(t[a]&&(o[a]=e[a]),n&&(l[a]=!0))}if(n)for(a in e)l[a]||(o[a]=e[a]);return o};var n={};function r(e){return n[e]?n[e]:("string"==typeof e&&(e=n[e]=e.split(/\s*,\s*|\s+/)),e)}}),i9=Ee((e,t)=>{var n=Y3();t.exports=function(e){var t;return arguments.length>1&&(e=arguments),"string"==typeof e?e=e.split(/\s/).map(parseFloat):"number"==typeof e&&(e=[e]),e.length&&"number"==typeof e[0]?t=1===e.length?{width:e[0],height:e[0],x:0,y:0}:2===e.length?{width:e[0],height:e[1],x:0,y:0}:{x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=n(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},null==e.width?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,null==e.height?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}}),OO=Ee((e,t)=>{t.exports=function(e,t){if(!e||null==e.length)throw Error("Argument should be an array");t=null==t?1:Math.floor(t);for(var n=Array(2*t),r=0;r<t;r++){for(var a=-1/0,i=1/0,o=r,s=e.length;o<s;o+=t)e[o]>a&&(a=e[o]),e[o]<i&&(i=e[o]);n[r]=i,n[t+r]=a}return n}}),Xct=Ee((e,t)=>{t.exports=function(){for(var e=0;e<arguments.length;e++)if(typeof arguments[e]<"u")return arguments[e]}}),TO=Ee((e,t)=>{var n=iY();t.exports=function(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=0|+(r||0),Array.isArray(e)&&e[0]&&"number"==typeof e[0][0]){var a,i,o,s,l=e[0].length,c=e.length*l;(!t||"string"==typeof t)&&(t=new(n(t||"float32"))(c+r));var u=t.length-r;if(c!==u)throw new Error("source length "+c+" ("+l+"x"+e.length+") does not match destination length "+u);for(a=0,o=r;a<e.length;a++)for(i=0;i<l;i++)t[o++]=null===e[a][i]?NaN:e[a][i]}else if(t&&"string"!=typeof t)t.set(e,r);else{var d=n(t||"float32");if(Array.isArray(e)||"array"===t)for(a=0,o=r,s=(t=new d(e.length+r)).length;o<s;o++,a++)t[o]=null===e[a]?NaN:e[a];else 0===r?t=new d(e):(t=new d(e.length+r)).set(e,r)}return t}}),Kct=Ee((e,t)=>{t.exports=function(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}}),Qct=Ee((e,t)=>{t.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}}),out=Ee((e,t)=>{var n=Bct(),r=aY(),a=i9(),i=OO(),o=Y3(),s=Xct(),l=TO(),c=Kct(),u=iY(),d=Qct();function p(e,t){let[n,a,i,o]=t,s=1/(i-n),l=1/(o-a),c=new Array(e.length);for(let t=0,i=e.length/2;t<i;t++)c[2*t]=r((e[2*t]-n)*s,0,1),c[2*t+1]=r((e[2*t+1]-a)*l,0,1);return c}t.exports=function(e,t){t||(t={}),e=l(e,"float64"),t=o(t,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let r=s(t.maxDepth,255),h=s(t.bounds,i(e,2));h[0]===h[2]&&h[2]++,h[1]===h[3]&&h[3]++;let f,m=p(e,h),g=e.length>>>1;t.dtype||(t.dtype="array"),"string"==typeof t.dtype?f=new(u(t.dtype))(g):t.dtype&&(f=t.dtype,Array.isArray(f)&&(f.length=g));for(let e=0;e<g;++e)f[e]=e;let y=[],b=[],v=[],M=[];!function e(t,n,a,i,o,s){if(!i.length)return null;let l=y[o]||(y[o]=[]),c=v[o]||(v[o]=[]),u=b[o]||(b[o]=[]),d=l.length;if(++o>r||s>1073741824){for(let e=0;e<i.length;e++)l.push(i[e]),c.push(s),u.push(null,null,null,null);return d}if(l.push(i[0]),c.push(s),i.length<=1)return u.push(null,null,null,null),d;let p=.5*a,h=t+p,f=n+p,g=[],M=[],x=[],z=[];for(let e=1,t=i.length;e<t;e++){let t=i[e],n=m[2*t],r=m[2*t+1];n<h?r<f?g.push(t):M.push(t):r<f?x.push(t):z.push(t)}return s<<=2,u.push(e(t,n,p,g,o,s),e(t,f,p,M,o,s+1),e(h,n,p,x,o,s+2),e(h,f,p,z,o,s+3)),d}(0,0,1,f,0,1);let x=0;for(let e=0;e<y.length;e++){let t=y[e];if(f.set)f.set(t,x);else for(let e=0,n=t.length;e<n;e++)f[e+x]=t[e];let n=x+y[e].length;M[e]=[x,n],x=n}return f.range=function(...t){let r;if(c(t[t.length-1])){let e=t.pop();!t.length&&(null!=e.x||null!=e.l||null!=e.left)&&(t=[e],r={}),r=o(e,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else r={};t.length||(t=h);let i=a(...t),[l,u,f,m]=[Math.min(i.x,i.x+i.width),Math.min(i.y,i.y+i.height),Math.max(i.x,i.x+i.width),Math.max(i.y,i.y+i.height)],[g,x,_,A]=p([l,u,f,m],h),O=s(r.level,y.length);if(null!=r.d){let e;"number"==typeof r.d?e=[r.d,r.d]:r.d.length&&(e=r.d),O=Math.min(Math.max(Math.ceil(-d(Math.abs(e[0])/(h[2]-h[0]))),Math.ceil(-d(Math.abs(e[1])/(h[3]-h[1])))),O)}if(O=Math.min(O,y.length),r.lod)return function(e,t,r,a,i){let o=[];for(let s=0;s<i;s++){let i=v[s],l=M[s][0],c=z(e,t,s),u=z(r,a,s),d=n.ge(i,c),p=n.gt(i,u,d,i.length-1);o[s]=[d+l,p+l]}return o}(g,x,_,A,O);let w=[];return function t(n,r,a,i,o,s){if(null===o||null===s)return;let c=r+a;if(g>n+a||x>c||_<n||A<r||i>=O||o===s)return;let d=y[i];void 0===s&&(s=d.length);for(let t=o;t<s;t++){let n=d[t],r=e[2*n],a=e[2*n+1];r>=l&&r<=f&&a>=u&&a<=m&&w.push(n)}let p=b[i],h=p[4*o+0],v=p[4*o+1],M=p[4*o+2],z=p[4*o+3],k=function(e,t){let n=null,r=0;for(;null===n;)if(n=e[4*t+r],r++,r>e.length)return null;return n}(p,o+1),T=.5*a,S=i+1;t(n,r,T,S,h,v||M||z||k),t(n,r+T,T,S,v,M||z||k),t(n+T,r,T,S,M,z||k),t(n+T,r+T,T,S,z,k)}(0,0,1,0,0,1),w},f;function z(e,t,n){let r=1,a=.5,i=.5,o=.5;for(let s=0;s<n;s++)r<<=2,r+=e<a?t<i?0:1:t<i?2:3,o*=.5,a+=e<a?-o:o,i+=t<i?-o:o;return r}}}),eZ=Ee((e,t)=>{t.exports=out()}),Mpe=Ee((e,t)=>{t.exports=function(e){var t=0,n=0,r=0,a=0;return e.map(function(e){var i=(e=e.slice())[0],o=i.toUpperCase();if(i!=o)switch(e[0]=o,i){case"a":e[6]+=r,e[7]+=a;break;case"v":e[1]+=a;break;case"h":e[1]+=r;break;default:for(var s=1;s<e.length;)e[s++]+=r,e[s++]+=a}switch(o){case"Z":r=t,a=n;break;case"H":r=e[1];break;case"V":a=e[1];break;case"M":r=t=e[1],a=n=e[2];break;default:r=e[e.length-2],a=e[e.length-1]}return e})}}),dut=Ee((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(a)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=2*Math.PI,a=function(e,t,n,r,a,i,o){var s=e.x,l=e.y;return{x:r*(s*=t)-a*(l*=n)+i,y:a*s+r*l+o}},i=function(e,t){var n=1.5707963267948966===t?.551915024494:-1.5707963267948966===t?-.551915024494:1.3333333333333333*Math.tan(t/4),r=Math.cos(e),a=Math.sin(e),i=Math.cos(e+t),o=Math.sin(e+t);return[{x:r-a*n,y:a+r*n},{x:i+o*n,y:o-i*n},{x:i,y:o}]},o=function(e,t,n,r){var a=e*n+t*r;return a>1&&(a=1),a<-1&&(a=-1),(e*r-t*n<0?-1:1)*Math.acos(a)};e.default=function(e){var t=e.px,s=e.py,l=e.cx,c=e.cy,u=e.rx,d=e.ry,p=e.xAxisRotation,h=void 0===p?0:p,f=e.largeArcFlag,m=void 0===f?0:f,g=e.sweepFlag,y=void 0===g?0:g,b=[];if(0===u||0===d)return[];var v=Math.sin(h*r/360),M=Math.cos(h*r/360),x=M*(t-l)/2+v*(s-c)/2,z=-v*(t-l)/2+M*(s-c)/2;if(0===x&&0===z)return[];u=Math.abs(u),d=Math.abs(d);var _=Math.pow(x,2)/Math.pow(u,2)+Math.pow(z,2)/Math.pow(d,2);_>1&&(u*=Math.sqrt(_),d*=Math.sqrt(_));var A=function(e,t,n,a,i,s,l,c,u,d,p,h){var f=Math.pow(i,2),m=Math.pow(s,2),g=Math.pow(p,2),y=Math.pow(h,2),b=f*m-f*y-m*g;b<0&&(b=0),b/=f*y+m*g;var v=(b=Math.sqrt(b)*(l===c?-1:1))*i/s*h,M=b*-s/i*p,x=d*v-u*M+(e+n)/2,z=u*v+d*M+(t+a)/2,_=(p-v)/i,A=(h-M)/s,O=(-p-v)/i,w=(-h-M)/s,k=o(1,0,_,A),T=o(_,A,O,w);return 0===c&&T>0&&(T-=r),1===c&&T<0&&(T+=r),[x,z,k,T]}(t,s,l,c,u,d,m,y,v,M,x,z),O=n(A,4),w=O[0],k=O[1],T=O[2],S=O[3],C=Math.abs(S)/(r/4);Math.abs(1-C)<1e-7&&(C=1);var E=Math.max(Math.ceil(C),1);S/=E;for(var q=0;q<E;q++)b.push(i(T,S)),T+=S;return b.map(function(e){var t=a(e[0],u,d,M,v,w,k),n=t.x,r=t.y,i=a(e[1],u,d,M,v,w,k),o=i.x,s=i.y,l=a(e[2],u,d,M,v,w,k);return{x1:n,y1:r,x2:o,y2:s,x:l.x,y:l.y}})},t.exports=e.default}),put=Ee((e,t)=>{t.exports=function(e){for(var t,i=[],o=0,s=0,l=0,c=0,u=null,d=null,p=0,h=0,f=0,m=e.length;f<m;f++){var g=e[f],y=g[0];switch(y){case"M":l=g[1],c=g[2];break;case"A":var b=n({px:p,py:h,cx:g[6],cy:g[7],rx:g[1],ry:g[2],xAxisRotation:g[3],largeArcFlag:g[4],sweepFlag:g[5]});if(!b.length)continue;for(var v,M=0;M<b.length;M++)g=["C",(v=b[M]).x1,v.y1,v.x2,v.y2,v.x,v.y],M<b.length-1&&i.push(g);break;case"S":var x=p,z=h;("C"==t||"S"==t)&&(x+=x-o,z+=z-s),g=["C",x,z,g[1],g[2],g[3],g[4]];break;case"T":"Q"==t||"T"==t?(u=2*p-u,d=2*h-d):(u=p,d=h),g=a(p,h,u,d,g[1],g[2]);break;case"Q":u=g[1],d=g[2],g=a(p,h,g[1],g[2],g[3],g[4]);break;case"L":g=r(p,h,g[1],g[2]);break;case"H":g=r(p,h,g[1],h);break;case"V":g=r(p,h,p,g[1]);break;case"Z":g=r(p,h,l,c)}t=y,p=g[g.length-2],h=g[g.length-1],g.length>4?(o=g[g.length-4],s=g[g.length-3]):(o=p,s=h),i.push(g)}return i};var n=dut();function r(e,t,n,r){return["C",e,t,n,r,n,r]}function a(e,t,n,r,a,i){return["C",e/3+2/3*n,t/3+2/3*r,a/3+2/3*n,i/3+2/3*r,a,i]}}),_pe=Ee((e,t)=>{t.exports=function(e){return"string"==typeof e&&(e=e.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(e)&&/[\dz]$/i.test(e)&&e.length>4))}}),gut=Ee((e,t)=>{var n=MD(),r=Mpe(),a=put(),i=_pe();t.exports=function(e){if(Array.isArray(e)&&1===e.length&&"string"==typeof e[0]&&(e=e[0]),"string"==typeof e){if(!i(e))throw Error("String is not an SVG path.");e=n(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=r(e),!(e=a(e)).length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],o=0,s=e.length;o<s;o++)for(var l=e[o].slice(1),c=0;c<l.length;c+=2)l[c+0]<t[0]&&(t[0]=l[c+0]),l[c+1]<t[1]&&(t[1]=l[c+1]),l[c+0]>t[2]&&(t[2]=l[c+0]),l[c+1]>t[3]&&(t[3]=l[c+1]);return t}}),zut=Ee((e,t)=>{var n=Math.PI,r=l(120);function a(e,t,n,r){return["C",e,t,n,r,n,r]}function i(e,t,n,r,a,i){return["C",e/3+2/3*n,t/3+2/3*r,a/3+2/3*n,i/3+2/3*r,a,i]}function o(e,t,a,i,l,c,u,d,p,h){if(h)_=h[0],A=h[1],x=h[2],z=h[3];else{var f=s(e,t,-l);e=f.x,t=f.y;var m=(e-(d=(f=s(d,p,-l)).x))/2,g=(t-(p=f.y))/2,y=m*m/(a*a)+g*g/(i*i);y>1&&(a*=y=Math.sqrt(y),i*=y);var b=a*a,v=i*i,M=(c==u?-1:1)*Math.sqrt(Math.abs((b*v-b*g*g-v*m*m)/(b*g*g+v*m*m)));M==1/0&&(M=1);var x=M*a*g/i+(e+d)/2,z=M*-i*m/a+(t+p)/2,_=Math.asin(((t-z)/i).toFixed(9)),A=Math.asin(((p-z)/i).toFixed(9));(_=e<x?n-_:_)<0&&(_=2*n+_),(A=d<x?n-A:A)<0&&(A=2*n+A),u&&_>A&&(_-=2*n),!u&&A>_&&(A-=2*n)}if(Math.abs(A-_)>r){var O=A,w=d,k=p;A=_+r*(u&&A>_?1:-1);var T=o(d=x+a*Math.cos(A),p=z+i*Math.sin(A),a,i,l,0,u,w,k,[A,O,x,z])}var S=Math.tan((A-_)/4),C=4/3*a*S,E=4/3*i*S,q=[2*e-(e+C*Math.sin(_)),2*t-(t-E*Math.cos(_)),d+C*Math.sin(A),p-E*Math.cos(A),d,p];if(h)return q;T&&(q=q.concat(T));for(var D=0;D<q.length;){var R=s(q[D],q[D+1],l);q[D++]=R.x,q[D++]=R.y}return q}function s(e,t,n){return{x:e*Math.cos(n)-t*Math.sin(n),y:e*Math.sin(n)+t*Math.cos(n)}}function l(e){return e*(n/180)}t.exports=function(e){for(var t,n=[],r=0,s=0,c=0,u=0,d=null,p=null,h=0,f=0,m=0,g=e.length;m<g;m++){var y=e[m],b=y[0];switch(b){case"M":c=y[1],u=y[2];break;case"A":(y=o(h,f,y[1],y[2],l(y[3]),y[4],y[5],y[6],y[7])).unshift("C"),y.length>7&&(n.push(y.splice(0,7)),y.unshift("C"));break;case"S":var v=h,M=f;("C"==t||"S"==t)&&(v+=v-r,M+=M-s),y=["C",v,M,y[1],y[2],y[3],y[4]];break;case"T":"Q"==t||"T"==t?(d=2*h-d,p=2*f-p):(d=h,p=f),y=i(h,f,d,p,y[1],y[2]);break;case"Q":d=y[1],p=y[2],y=i(h,f,y[1],y[2],y[3],y[4]);break;case"L":y=a(h,f,y[1],y[2]);break;case"H":y=a(h,f,y[1],f);break;case"V":y=a(h,f,h,y[1]);break;case"Z":y=a(h,f,c,u)}t=b,h=y[y.length-2],f=y[y.length-1],y.length>4?(r=y[y.length-4],s=y[y.length-3]):(r=h,s=f),n.push(y)}return n}}),wut=Ee((e,t)=>{var n=Mpe(),r=zut(),a={M:"moveTo",C:"bezierCurveTo"};t.exports=function(e,t){e.beginPath(),r(n(t)).forEach(function(t){var n=t[0],r=t.slice(1);e[a[n]].apply(e,r)}),e.closePath()}}),kut=Ee((e,t)=>{t.exports=function(e,t){t||(t={});var a,i,o,s,l,c,u,d,p,h,f,m=null==t.cutoff?.25:t.cutoff,g=null==t.radius?8:t.radius,y=t.channel||0;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,i=t.height,s=e,c=t.stride?t.stride:Math.floor(e.length/a/i)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(u=(d=e).getContext("2d"),a=d.width,i=d.height,p=u.getImageData(0,0,a,i),s=p.data,c=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(d=e.canvas,u=e,a=d.width,i=d.height,p=u.getImageData(0,0,a,i),s=p.data,c=4):window.ImageData&&e instanceof window.ImageData&&(p=e,a=e.width,i=e.height,s=p.data,c=4);if(o=Math.max(a,i),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(l=s,s=Array(a*i),h=0,f=Math.floor(l.length/c);h<f;h++)s[h]=l[h*c+y]/255;else if(1!==c)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*i),v=Array(a*i),M=Array(o),x=Array(o),z=Array(o+1),_=Array(o);for(h=0,f=a*i;h<f;h++){var A=s[h];b[h]=1===A?0:0===A?n:Math.pow(Math.max(0,.5-A),2),v[h]=1===A?n:0===A?0:Math.pow(Math.max(0,A-.5),2)}r(b,a,i,M,x,_,z),r(v,a,i,M,x,_,z);var O=window.Float32Array?new Float32Array(a*i):new Array(a*i);for(h=0,f=a*i;h<f;h++)O[h]=Math.min(Math.max(1-((b[h]-v[h])/g+m),0),1);return O};var n=1e20;function r(e,t,n,r,i,o,s){for(var l=0;l<t;l++){for(var c=0;c<n;c++)r[c]=e[c*t+l];for(a(r,i,o,s,n),c=0;c<n;c++)e[c*t+l]=i[c]}for(c=0;c<n;c++){for(l=0;l<t;l++)r[l]=e[c*t+l];for(a(r,i,o,s,t),l=0;l<t;l++)e[c*t+l]=Math.sqrt(i[l])}}function a(e,t,r,a,i){r[0]=0,a[0]=-n,a[1]=+n;for(var o=1,s=0;o<i;o++){for(var l=(e[o]+o*o-(e[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);l<=a[s];)s--,l=(e[o]+o*o-(e[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);r[++s]=o,a[s]=l,a[s+1]=+n}for(o=0,s=0;o<i;o++){for(;a[s+1]<o;)s++;t[o]=(o-r[s])*(o-r[s])+e[r[s]]}}}),Eut=Ee((e,t)=>{var n,r=gut(),a=MD(),i=wut(),o=_pe(),s=kut(),l=document.createElement("canvas"),c=l.getContext("2d");t.exports=function(e,t){if(!o(e))throw Error("Argument should be valid svg path string");var u,d;t||(t={}),t.shape?(u=t.shape[0],d=t.shape[1]):(u=l.width=t.w||t.width||200,d=l.height=t.h||t.height||200);var p=Math.min(u,d),h=t.stroke||0,f=t.viewbox||t.viewBox||r(e),m=[u/(f[2]-f[0]),d/(f[3]-f[1])],g=Math.min(m[0]||0,m[1]||0)/2;if(c.fillStyle="black",c.fillRect(0,0,u,d),c.fillStyle="white",h&&("number"!=typeof h&&(h=1),c.strokeStyle=h>0?"white":"black",c.lineWidth=Math.abs(h)),c.translate(.5*u,.5*d),c.scale(g,g),function(){if(null!=n)return n;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return n=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return n=r&&r.data&&255===r.data[3]}()){var y=new Path2D(e);c.fill(y),h&&c.stroke(y)}else{var b=a(e);i(c,b),c.fill(),h&&c.stroke()}return c.setTransform(1,0,0,1,0,0),s(c,{cutoff:null!=t.cutoff?t.cutoff:.5,radius:null!=t.radius?t.radius:.5*p})}}),CO=Ee((e,t)=>{var n=xs(),r=Eut(),a=T4(),i=vo(),o=Fr(),s=o.isArrayOrTypedArray,l=vs(),c=Ld(),u=Gx().formatColor,d=Hc(),p=iS(),h=JY(),f=P4(),m=Az().DESELECTDIM,g={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},y=fm().appendArrayPointValue;function b(e,t){var r,a=e._fullLayout,i=t._length,l=t.textfont,c=t.textposition,u=s(c)?c:[c],d=l.color,p=l.size,h=l.family,f=l.weight,m=l.style,g=l.variant,b={},M=e._context.plotGlPixelRatio,x=t.texttemplate;if(x){b.text=[];var z=a._d3locale,_=Array.isArray(x),A=_?Math.min(x.length,i):i,O=_?function(e){return x[e]}:function(){return x};for(r=0;r<A;r++){var w={i:r},k=t._module.formatLabels(w,t,a),T={};y(T,t,r),b.text.push(o.texttemplateString({data:[T,w,t._meta],fallback:t.texttemplatefallback,labels:k,locale:z,template:O(r)}))}}else s(t.text)&&t.text.length<i?b.text=t.text.slice():b.text=t.text;if(s(b.text))for(r=b.text.length;r<i;r++)b.text[r]="";for(b.opacity=t.opacity,b.font={},b.align=[],b.baseline=[],r=0;r<u.length;r++){var S=u[r].split(/\s+/);switch(S[1]){case"left":b.align.push("right");break;case"right":b.align.push("left");break;default:b.align.push(S[1])}switch(S[0]){case"top":b.baseline.push("bottom");break;case"bottom":b.baseline.push("top");break;default:b.baseline.push(S[0])}}if(s(d))for(b.color=new Array(i),r=0;r<i;r++)b.color[r]=d[r];else b.color=d;if(s(p)||Array.isArray(h)||s(f)||Array.isArray(m)||Array.isArray(g))for(b.font=new Array(i),r=0;r<i;r++){var C=b.font[r]={};C.size=(o.isTypedArray(p)?p[r]:s(p)?n(p[r])?p[r]:0:p)*M,C.family=Array.isArray(h)?h[r]:h,C.weight=v(s(f)?f[r]:f),C.style=Array.isArray(m)?m[r]:m,C.variant=Array.isArray(g)?g[r]:g}else b.font={size:p*M,family:h,weight:v(f),style:m,variant:g};return b}function v(e){return e<=1e3?e>500?"bold":"normal":e}function M(e,t){var n,r,i=t._length,o=t.marker,l={},c=s(o.symbol),d=s(o.angle),f=s(o.color),m=s(o.line.color),g=s(o.opacity),y=s(o.size),b=s(o.line.width);if(c||(r=h.isOpenSymbol(o.symbol)),c||f||m||g||d){l.symbols=new Array(i),l.angles=new Array(i),l.colors=new Array(i),l.borderColors=new Array(i);var v=o.symbol,M=o.angle,x=u(o,o.opacity,i),z=u(o.line,o.opacity,i);if(!s(z[0])){var _=z;for(z=Array(i),n=0;n<i;n++)z[n]=_}if(!s(x[0])){var A=x;for(x=Array(i),n=0;n<i;n++)x[n]=A}if(!s(v)){var O=v;for(v=Array(i),n=0;n<i;n++)v[n]=O}if(!s(M)){var w=M;for(M=Array(i),n=0;n<i;n++)M[n]=w}for(l.symbols=v,l.angles=M,l.colors=x,l.borderColors=z,n=0;n<i;n++)c&&(r=h.isOpenSymbol(o.symbol[n])),r&&(z[n]=x[n].slice(),x[n]=x[n].slice(),x[n][3]=0);for(l.opacity=t.opacity,l.markers=new Array(i),n=0;n<i;n++)l.markers[n]=S({mx:l.symbols[n],ma:l.angles[n]},t)}else r?(l.color=a(o.color,"uint8"),l.color[3]=0,l.borderColor=a(o.color,"uint8")):(l.color=a(o.color,"uint8"),l.borderColor=a(o.line.color,"uint8")),l.opacity=t.opacity*o.opacity,l.marker=S({mx:o.symbol,ma:o.angle},t);var k,T=p(t,1);if(y||b){var C,E=l.sizes=new Array(i),q=l.borderSizes=new Array(i),D=0;if(y){for(n=0;n<i;n++)E[n]=T(o.size[n]),D+=E[n];C=D/i}else for(k=T(o.size),n=0;n<i;n++)E[n]=k;if(b)for(n=0;n<i;n++)q[n]=o.line.width[n];else for(k=o.line.width,n=0;n<i;n++)q[n]=k;l.sizeAvg=C}else l.size=T(o&&o.size||10),l.borderSizes=T(o.line.width);return l}function x(e,t,n){var r=t.marker,a={};return n&&(n.marker&&n.marker.symbol?a=M(0,o.extendFlat({},r,n.marker)):n.marker&&(n.marker.size&&(a.size=n.marker.size),n.marker.color&&(a.colors=n.marker.color),void 0!==n.marker.opacity&&(a.opacity=n.marker.opacity))),a}function z(e,t,n){var r={};if(!n)return r;if(n.textfont){var a={opacity:1,text:t.text,texttemplate:t.texttemplate,textposition:t.textposition,textfont:o.extendFlat({},t.textfont)};n.textfont&&o.extendFlat(a.textfont,n.textfont),r=b(e,a)}return r}function _(e,t,n){var r={capSize:2*t.width*n,lineWidth:t.thickness*n,color:t.color};return t.copy_ystyle&&(r=e.error_y),r}var A=f.SYMBOL_SDF_SIZE,O=f.SYMBOL_SIZE,w=f.SYMBOL_STROKE,k={},T=l.symbolFuncs[0](.05*O);function S(e,t){var n=e.mx;if("circle"===n)return null;var a,i,o=l.symbolNumber(n),s=l.symbolFuncs[o%100],c=!!l.symbolNoDot[o%100],u=!!l.symbolNoFill[o%100],d=h.isDotSymbol(n);if(e.ma&&(n+="_"+e.ma),k[n])return k[n];var p=l.getMarkerAngle(e,t);return a=d&&!c?s(1.1*O,p)+T:s(O,p),i=r(a,{w:A,h:A,viewBox:[-O,-O,O,O],stroke:u?w:-w}),k[n]=i,i||null}t.exports={style:function(e,t){var n,r={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},a=e._context.plotGlPixelRatio;if(!0!==t.visible)return r;if(d.hasText(t)&&(r.text=b(e,t),r.textSel=z(e,t,t.selected),r.textUnsel=z(e,t,t.unselected)),d.hasMarkers(t)&&(r.marker=M(e,t),r.markerSel=x(e,t,t.selected),r.markerUnsel=x(e,t,t.unselected),!t.unselected&&s(t.marker.opacity))){var i=t.marker.opacity;for(r.markerUnsel.opacity=new Array(i.length),n=0;n<i.length;n++)r.markerUnsel.opacity[n]=m*i[n]}if(d.hasLines(t)){r.line={overlay:!0,thickness:t.line.width*a,color:t.line.color,opacity:t.opacity};var o=(f.DASHES[t.line.dash]||[1]).slice();for(n=0;n<o.length;++n)o[n]*=t.line.width*a;r.line.dashes=o}return t.error_x&&t.error_x.visible&&(r.errorX=_(t,t.error_x,a)),t.error_y&&t.error_y.visible&&(r.errorY=_(t,t.error_y,a)),t.fill&&"none"!==t.fill&&(r.fill={closed:!0,fill:t.fillcolor,thickness:0}),r},markerStyle:M,markerSelection:x,linePositions:function(e,t,n){var r,a,i=n.length,o=i/2;if(d.hasLines(t)&&o)if("hv"===t.line.shape){for(r=[],a=0;a<o-1;a++)isNaN(n[2*a])||isNaN(n[2*a+1])?r.push(NaN,NaN,NaN,NaN):(r.push(n[2*a],n[2*a+1]),isNaN(n[2*a+2])||isNaN(n[2*a+3])?r.push(NaN,NaN):r.push(n[2*a+2],n[2*a+1]));r.push(n[i-2],n[i-1])}else if("hvh"===t.line.shape){for(r=[],a=0;a<o-1;a++)if(isNaN(n[2*a])||isNaN(n[2*a+1])||isNaN(n[2*a+2])||isNaN(n[2*a+3]))isNaN(n[2*a])||isNaN(n[2*a+1])?r.push(NaN,NaN):r.push(n[2*a],n[2*a+1]),r.push(NaN,NaN);else{var s=(n[2*a]+n[2*a+2])/2;r.push(n[2*a],n[2*a+1],s,n[2*a+1],s,n[2*a+3])}r.push(n[i-2],n[i-1])}else if("vhv"===t.line.shape){for(r=[],a=0;a<o-1;a++)if(isNaN(n[2*a])||isNaN(n[2*a+1])||isNaN(n[2*a+2])||isNaN(n[2*a+3]))isNaN(n[2*a])||isNaN(n[2*a+1])?r.push(NaN,NaN):r.push(n[2*a],n[2*a+1]),r.push(NaN,NaN);else{var l=(n[2*a+1]+n[2*a+3])/2;r.push(n[2*a],n[2*a+1],n[2*a],l,n[2*a+2],l)}r.push(n[i-2],n[i-1])}else if("vh"===t.line.shape){for(r=[],a=0;a<o-1;a++)isNaN(n[2*a])||isNaN(n[2*a+1])?r.push(NaN,NaN,NaN,NaN):(r.push(n[2*a],n[2*a+1]),isNaN(n[2*a+2])||isNaN(n[2*a+3])?r.push(NaN,NaN):r.push(n[2*a],n[2*a+3]));r.push(n[i-2],n[i-1])}else r=n;var c=!1;for(a=0;a<r.length;a++)if(isNaN(r[a])){c=!0;break}var u=c||r.length>f.TOO_MANY_POINTS||d.hasMarkers(t)?"rect":"round";if(c&&t.connectgaps){var p=r[0],h=r[1];for(a=0;a<r.length;a+=2)isNaN(r[a])||isNaN(r[a+1])?(r[a]=p,r[a+1]=h):(p=r[a],h=r[a+1])}return{join:u,positions:r}},errorBarPositions:function(e,t,r,a,o){var s=i.getComponentMethod("errorbars","makeComputeError"),l=c.getFromId(e,t.xaxis,"x"),u=c.getFromId(e,t.yaxis,"y"),d=r.length/2,p={};function h(e,a){var i=a._id.charAt(0),o=t["error_"+i];if(o&&o.visible&&("linear"===a.type||"log"===a.type)){for(var l=s(o),c={x:0,y:1}[i],u={x:[0,1,2,3],y:[2,3,0,1]}[i],h=new Float64Array(4*d),f=1/0,m=-1/0,g=0,y=0;g<d;g++,y+=4){var b=e[g];if(n(b)){var v=r[2*g+c],M=l(b,g),x=M[0],z=M[1];if(n(x)&&n(z)){var _=b-x,A=b+z;h[y+u[0]]=v-a.c2l(_),h[y+u[1]]=a.c2l(A)-v,h[y+u[2]]=0,h[y+u[3]]=0,f=Math.min(f,b-x),m=Math.max(m,b+z)}}}p[i]={positions:r,errors:h,_bnds:[f,m]}}}return h(a,l),h(o,u),p},textPosition:function(e,t,n,r){var a,i=t._length,o={};if(d.hasMarkers(t)){var l=n.font,c=n.align,u=n.baseline;for(o.offset=new Array(i),a=0;a<i;a++){var p=r.sizes?r.sizes[a]:r.size,h=s(l)?l[a].size:l.size,f=s(c)?c.length>1?c[a]:c[0]:c,m=s(u)?u.length>1?u[a]:u[0]:u,y=g[f],b=g[m],v=p?p/.8+1:0,M=-b*v-.5*b;o.offset[a]=[y*v/h,M/h]}}return o}}}),kpe=Ee((e,t)=>{var n=Fr();t.exports=function(e,t){var r=t._scene,a={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},i={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return t._scene||((r=t._scene={}).init=function(){n.extendFlat(r,i,a)},r.init(),r.update=function(e){var t=n.repeat(e,r.count);if(r.fill2d&&r.fill2d.update(t),r.scatter2d&&r.scatter2d.update(t),r.line2d&&r.line2d.update(t),r.error2d&&r.error2d.update(t.concat(t)),r.select2d&&r.select2d.update(t),r.glText)for(var a=0;a<r.count;a++)r.glText[a].update(e)},r.draw=function(){for(var e=r.count,t=r.fill2d,a=r.error2d,i=r.line2d,o=r.scatter2d,s=r.glText,l=r.select2d,c=r.selectBatch,u=r.unselectBatch,d=0;d<e;d++){if(t&&r.fillOrder[d]&&t.draw(r.fillOrder[d]),i&&r.lineOptions[d]&&i.draw(d),a&&(r.errorXOptions[d]&&a.draw(d),r.errorYOptions[d]&&a.draw(d+e)),o&&r.markerOptions[d])if(u[d].length){var p=n.repeat([],r.count);p[d]=u[d],o.draw(p)}else c[d].length||o.draw(d);s[d]&&r.textOptions[d]&&s[d].render()}l&&l.draw(c),r.dirty=!1},r.destroy=function(){r.fill2d&&r.fill2d.destroy&&r.fill2d.destroy(),r.scatter2d&&r.scatter2d.destroy&&r.scatter2d.destroy(),r.error2d&&r.error2d.destroy&&r.error2d.destroy(),r.line2d&&r.line2d.destroy&&r.line2d.destroy(),r.select2d&&r.select2d.destroy&&r.select2d.destroy(),r.glText&&r.glText.forEach(function(e){e.destroy&&e.destroy()}),r.lineOptions=null,r.fillOptions=null,r.markerOptions=null,r.markerSelectedOptions=null,r.markerUnselectedOptions=null,r.errorXOptions=null,r.errorYOptions=null,r.textOptions=null,r.textSelectedOptions=null,r.textUnselectedOptions=null,r.selectBatch=null,r.unselectBatch=null,t._scene=null}),r.dirty||n.extendFlat(r,a),r}}),Zut=Ee((e,t)=>{var n=eZ(),r=Fr(),a=Ld(),i=$y().findExtremes,o=ob(),s=Jg(),l=s.calcMarkerSize,c=s.calcAxisExpansion,u=s.setFirstScatter,d=$g(),p=CO(),h=kpe(),f=T0().BADNUM,m=P4().TOO_MANY_POINTS;function g(e,t,n){var r=e._extremes[t._id],a=i(t,n._bnds,{padded:!0});r.min=r.min.concat(a.min),r.max=r.max.concat(a.max)}t.exports=function(e,t){var i,s=e._fullLayout,y=t._xA=a.getFromId(e,t.xaxis,"x"),b=t._yA=a.getFromId(e,t.yaxis,"y"),v=s._plots[t.xaxis+t.yaxis],M=t._length,x=M>=m,z=2*M,_={},A=y.makeCalcdata(t,"x"),O=b.makeCalcdata(t,"y"),w=o(t,y,"x",A),k=o(t,b,"y",O),T=w.vals,S=k.vals;t._x=T,t._y=S,t.xperiodalignment&&(t._origX=A,t._xStarts=w.starts,t._xEnds=w.ends),t.yperiodalignment&&(t._origY=O,t._yStarts=k.starts,t._yEnds=k.ends);var C=new Array(z),E=new Array(M);for(i=0;i<M;i++)C[2*i]=T[i]===f?NaN:T[i],C[2*i+1]=S[i]===f?NaN:S[i],E[i]=i;if("log"===y.type)for(i=0;i<z;i+=2)C[i]=y.c2l(C[i]);if("log"===b.type)for(i=1;i<z;i+=2)C[i]=b.c2l(C[i]);x&&"log"!==y.type&&"log"!==b.type?_.tree=n(C):_.ids=E,d(e,t);var q,D=function(e,t,n,a,i,o){var s=p.style(e,n);if(s.marker&&(s.marker.positions=a),s.line&&a.length>1&&r.extendFlat(s.line,p.linePositions(e,n,a)),s.errorX||s.errorY){var l=p.errorBarPositions(e,n,a,i,o);s.errorX&&r.extendFlat(s.errorX,l.x),s.errorY&&r.extendFlat(s.errorY,l.y)}return s.text&&(r.extendFlat(s.text,{positions:a},p.textPosition(e,n,s.text,s.marker)),r.extendFlat(s.textSel,{positions:a},p.textPosition(e,n,s.text,s.markerSel)),r.extendFlat(s.textUnsel,{positions:a},p.textPosition(e,n,s.text,s.markerUnsel))),s}(e,0,t,C,T,S),R=h(e,v);return u(s,t),x?D.marker&&(q=D.marker.sizeAvg||Math.max(D.marker.size,3)):q=l(t,M),c(e,t,y,b,T,S,q),D.errorX&&g(t,y,D.errorX),D.errorY&&g(t,b,D.errorY),D.fill&&!R.fill2d&&(R.fill2d=!0),D.marker&&!R.scatter2d&&(R.scatter2d=!0),D.line&&!R.line2d&&(R.line2d=!0),(D.errorX||D.errorY)&&!R.error2d&&(R.error2d=!0),D.text&&!R.glText&&(R.glText=!0),D.marker&&(D.marker.snap=M),R.lineOptions.push(D.line),R.errorXOptions.push(D.errorX),R.errorYOptions.push(D.errorY),R.fillOptions.push(D.fill),R.markerOptions.push(D.marker),R.markerSelectedOptions.push(D.markerSel),R.markerUnselectedOptions.push(D.markerUnsel),R.textOptions.push(D.text),R.textSelectedOptions.push(D.textSel),R.textUnselectedOptions.push(D.textUnsel),R.selectBatch.push([]),R.unselectBatch.push([]),_._scene=R,_.index=R.count,_.x=T,_.y=S,_.positions=C,R.count++,[{x:!1,y:!1,t:_,trace:t}]}}),Epe=Ee((e,t)=>{var n=Fr(),r=ao(),a=Az().DESELECTDIM;t.exports={styleTextSelection:function(e){var t,i,o=e[0],s=o.trace,l=o.t,c=l._scene,u=l.index,d=c.selectBatch[u],p=c.unselectBatch[u],h=c.textOptions[u],f=c.textSelectedOptions[u]||{},m=c.textUnselectedOptions[u]||{},g=n.extendFlat({},h);if(d.length||p.length){var y=f.color,b=m.color,v=h.color,M=n.isArrayOrTypedArray(v);for(g.color=new Array(s._length),t=0;t<d.length;t++)i=d[t],g.color[i]=y||(M?v[i]:v);for(t=0;t<p.length;t++){i=p[t];var x=M?v[i]:v;g.color[i]=b||(y?x:r.addOpacity(x,a))}}c.glText[u].update(g)}}}),qpe=Ee((e,t)=>{var n=Hc(),r=Epe().styleTextSelection;t.exports=function(e,t){var a=e.cd,i=e.xaxis,o=e.yaxis,s=[],l=a[0].trace,c=a[0].t,u=l._length,d=c.x,p=c.y,h=c._scene,f=c.index;if(!h)return s;var m=n.hasText(l),g=n.hasMarkers(l),y=!g&&!m;if(!0!==l.visible||y)return s;var b=[],v=[];if(!1!==t&&!t.degenerate)for(var M=0;M<u;M++)t.contains([c.xpx[M],c.ypx[M]],!1,M,e)?(b.push(M),s.push({pointNumber:M,x:i.c2d(d[M]),y:o.c2d(p[M])})):v.push(M);if(g){var x=h.scatter2d;if(b.length||v.length){if(!h.selectBatch[f].length&&!h.unselectBatch[f].length){var z=new Array(h.count);z[f]=h.markerUnselectedOptions[f],x.update.apply(x,z)}}else{var _=new Array(h.count);_[f]=h.markerOptions[f],x.update.apply(x,_)}}return h.selectBatch[f]=b,h.unselectBatch[f]=v,m&&r(a),s}}),tdt=Ee((e,t)=>{var n=KY();t.exports={moduleType:"trace",name:"scattergl",basePlotModule:Bf(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:KL(),supplyDefaults:Ict(),crossTraceDefaults:M1e(),colorbar:Wp(),formatLabels:Wct(),calc:Zut(),hoverPoints:n.hoverPoints,selectPoints:qpe(),meta:{hrName:"scatter_gl",description:["The data visualized as scatter point or lines is set in `x` and `y`","using the WebGL plotting engine.","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","to a numerical arrays."].join(" ")}}}),ndt=Ee((e,t)=>{var n=aY();function r(e,t){null==t&&(t=!0);var r=e[0],a=e[1],i=e[2],o=e[3];return null==o&&(o=t?1:255),t&&(r*=255,a*=255,i*=255,o*=255),16777216*(r=255&n(r,0,255))+((a=255&n(a,0,255))<<16)+((i=255&n(i,0,255))<<8)+(o=255&n(o,0,255))}t.exports=r,t.exports.to=r,t.exports.from=function(e,t){var n=(e=+e)>>>24,r=(16711680&e)>>>16,a=(65280&e)>>>8,i=255&e;return!1===t?[n,r,a,i]:[n/255,r/255,a/255,i/255]}}),idt=Ee((e,t)=>{t.exports=function(e){"string"==typeof e&&(e=[e]);for(var t=[].slice.call(arguments,1),n=[],r=0;r<e.length-1;r++)n.push(e[r],t[r]||"");return n.push(e[r]),n.join("")}}),Dpe=Ee((e,t)=>{t.exports=function(e,t,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var r=0,a=n.length;r<a;r++){var i=n[r];for(var o in i)if((void 0===t[o]||Array.isArray(t[o])||e[o]!==t[o])&&o in t){var s;if(!0===i[o])s=t[o];else{if(!1===i[o])continue;if("function"==typeof i[o]&&void 0===(s=i[o](t[o],e,t)))continue}e[o]=s}}return e}}),uZ=Ee((e,t)=>{t.exports=r,t.exports.float32=t.exports.float=r,t.exports.fract32=t.exports.fract=function(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=r(e));for(var n=0,a=t.length;n<a;n++)t[n]=e[n]-t[n];return t}return r(e-r(e))};var n=new Float32Array(1);function r(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(n[0]=e,n[0])}}),Rpe=Ee((e,t)=>{var n=T4(),r=OO(),a=ndt(),i=eZ(),o=idt(),s=Y3(),l=Dpe(),c=TO(),u=uZ(),d=i9(),p=h;function h(e,t){if(!(this instanceof h))return new h(e,t);"function"==typeof e?(t||(t={}),t.regl=e):(t=e,e=null),t&&t.length&&(t.positions=t);let n,r=(e=t.regl)._gl,a=[],i=255;this.tooManyColors=!1,n=e.texture({data:new Uint8Array(4*i),width:i,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),Object.assign(this,{regl:e,gl:r,groups:[],markerCache:[null],markerTextures:[null],palette:a,paletteIds:{},paletteTexture:n,maxColors:i,maxSize:100,canvas:r.canvas}),this.update(t);let s={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:(e,t)=>[this.tooManyColors?0:i,n.height],pixelRatio:e.context("pixelRatio"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),markerTexture:e.prop("markerTexture"),paletteTexture:n},attributes:{x:(e,t)=>t.xAttr||{buffer:t.positionBuffer,stride:8,offset:0},y:(e,t)=>t.yAttr||{buffer:t.positionBuffer,stride:8,offset:4},xFract:(e,t)=>t.xAttr?{constant:[0,0]}:{buffer:t.positionFractBuffer,stride:8,offset:0},yFract:(e,t)=>t.yAttr?{constant:[0,0]}:{buffer:t.positionFractBuffer,stride:8,offset:4},size:(e,t)=>t.size.length?{buffer:t.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(255*t.size/this.maxSize)]},borderSize:(e,t)=>t.borderSize.length?{buffer:t.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(255*t.borderSize/this.maxSize)]},colorId:(e,t)=>t.color.length?{buffer:t.colorBuffer,stride:this.tooManyColors?8:4,offset:0}:{constant:this.tooManyColors?a.slice(4*t.color,4*t.color+4):[t.color]},borderColorId:(e,t)=>t.borderColor.length?{buffer:t.colorBuffer,stride:this.tooManyColors?8:4,offset:this.tooManyColors?4:2}:{constant:this.tooManyColors?a.slice(4*t.borderColor,4*t.borderColor+4):[t.borderColor]},isActive:(e,t)=>!0===t.activation?{constant:[1]}:t.activation?t.activation:{constant:[0]}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},l=Object.assign({},s);l.frag=o(["precision highp float;\n#define GLSLIFY 1\n\nuniform float opacity;\nuniform sampler2D markerTexture;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragWidth, fragBorderColorLevel, fragColorLevel;\n\nfloat smoothStep(float x, float y) {\n return 1.0 / (1.0 + exp(50.0*(x - y)));\n}\n\nvoid main() {\n float dist = texture2D(markerTexture, gl_PointCoord).r, delta = fragWidth;\n\n // max-distance alpha\n if (dist < 0.003) discard;\n\n // null-border case\n if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {\n float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);\n gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);\n }\n else {\n float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);\n float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);\n\n vec4 color = fragBorderColor;\n color.a *= borderColorAmt;\n color = mix(color, fragColor, colorAmt);\n color.a *= opacity;\n\n gl_FragColor = color;\n }\n\n}\n"]),l.vert=o(["precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\n// `invariant` effectively turns off optimizations for the position.\n// We need this because -fast-math on M1 Macs is re-ordering\n// floating point operations in a way that causes floating point\n// precision limits to put points in the wrong locations.\ninvariant gl_Position;\n\nuniform bool constPointSize;\nuniform float pixelRatio;\nuniform vec2 scale, scaleFract, translate, translateFract, paletteSize;\nuniform sampler2D paletteTexture;\n\nconst float maxSize = 100.;\nconst float borderLevel = .5;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x < 1.);\n\nvec4 getColor(vec4 id) {\n return isDirect ? id / 255. : texture2D(paletteTexture,\n vec2(\n (id.x + .5) / paletteSize.x,\n (id.y + .5) / paletteSize.y\n )\n );\n}\n\nvoid main() {\n // ignore inactive points\n if (isActive == 0.) return;\n\n vec2 position = vec2(x, y);\n vec2 positionFract = vec2(xFract, yFract);\n\n vec4 color = getColor(colorId);\n vec4 borderColor = getColor(borderColorId);\n\n float size = size * maxSize / 255.;\n float borderSize = borderSize * maxSize / 255.;\n\n gl_PointSize = 2. * size * pointSizeScale;\n fragPointSize = size * pixelRatio;\n\n vec2 pos = (position + translate) * scale\n + (positionFract + translateFract) * scale\n + (position + translate) * scaleFract\n + (positionFract + translateFract) * scaleFract;\n\n gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n fragColor = color;\n fragBorderColor = borderColor;\n fragWidth = 1. / gl_PointSize;\n\n fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);\n fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);\n}\n"]),this.drawMarker=e(l);let c=Object.assign({},s);c.frag=o(["precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nuniform float opacity;\n\nfloat smoothStep(float edge0, float edge1, float x) {\n\tfloat t;\n\tt = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\n\treturn t * t * (3.0 - 2.0 * t);\n}\n\nvoid main() {\n\tfloat radius, alpha = 1.0, delta = fragWidth;\n\n\tradius = length(2.0 * gl_PointCoord.xy - 1.0);\n\n\tif (radius > 1.0 + delta) {\n\t\tdiscard;\n\t}\n\n\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\n\n\tfloat borderRadius = fragBorderRadius;\n\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\n\tvec4 color = mix(fragColor, fragBorderColor, ratio);\n\tcolor.a *= alpha * opacity;\n\tgl_FragColor = color;\n}\n"]),c.vert=o(["precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\n// `invariant` effectively turns off optimizations for the position.\n// We need this because -fast-math on M1 Macs is re-ordering\n// floating point operations in a way that causes floating point\n// precision limits to put points in the wrong locations.\ninvariant gl_Position;\n\nuniform bool constPointSize;\nuniform float pixelRatio;\nuniform vec2 paletteSize, scale, scaleFract, translate, translateFract;\nuniform sampler2D paletteTexture;\n\nconst float maxSize = 100.;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x < 1.);\n\nvec4 getColor(vec4 id) {\n return isDirect ? id / 255. : texture2D(paletteTexture,\n vec2(\n (id.x + .5) / paletteSize.x,\n (id.y + .5) / paletteSize.y\n )\n );\n}\n\nvoid main() {\n // ignore inactive points\n if (isActive == 0.) return;\n\n vec2 position = vec2(x, y);\n vec2 positionFract = vec2(xFract, yFract);\n\n vec4 color = getColor(colorId);\n vec4 borderColor = getColor(borderColorId);\n\n float size = size * maxSize / 255.;\n float borderSize = borderSize * maxSize / 255.;\n\n gl_PointSize = (size + borderSize) * pointSizeScale;\n\n vec2 pos = (position + translate) * scale\n + (positionFract + translateFract) * scale\n + (position + translate) * scaleFract\n + (positionFract + translateFract) * scaleFract;\n\n gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\n fragColor = color;\n fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\n fragWidth = 1. / gl_PointSize;\n}\n"]),this.drawCircle=e(c)}h.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},h.prototype.render=function(){return arguments.length&&this.update(...arguments),this.draw(),this},h.prototype.draw=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let{groups:r}=this;if(1===t.length&&Array.isArray(t[0])&&(null===t[0][0]||Array.isArray(t[0][0]))&&(t=t[0]),this.regl._refresh(),t.length)for(let e=0;e<t.length;e++)this.drawItem(e,t[e]);else r.forEach((e,t)=>{this.drawItem(t)});return this},h.prototype.drawItem=function(e,t){let{groups:n}=this,r=n[e];if("number"==typeof t&&(e=t,r=n[t],t=null),!(r&&r.count&&r.opacity))return;r.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,r,t));let a=[];for(let e=1;e<r.activation.length;e++)!r.activation[e]||!0!==r.activation[e]&&!r.activation[e].data.length||a.push(...this.getMarkerDrawOptions(e,r,t));a.length&&this.drawMarker(a)},h.prototype.getMarkerDrawOptions=function(e,t,n){let{range:r,tree:a,viewport:i,activation:o,selectionBuffer:s,count:l}=t;if(!a)return n?[Object.assign({},t,{markerTexture:this.markerTextures[e],activation:o[e],count:n.length,elements:n,offset:0})]:[Object.assign({},t,{markerTexture:this.markerTextures[e],activation:o[e],offset:0})];let c=[],u=a.range(r,{lod:!0,px:[(r[2]-r[0])/i.width,(r[3]-r[1])/i.height]});if(n){let t=o[e].data,r=new Uint8Array(l);for(let e=0;e<n.length;e++){let a=n[e];r[a]=t?t[a]:1}s.subdata(r)}for(let r=u.length;r--;){let[a,i]=u[r];c.push(Object.assign({},t,{markerTexture:this.markerTextures[e],activation:n?s:o[e],offset:a,count:i-a}))}return c},h.prototype.update=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return;1===t.length&&Array.isArray(t[0])&&(t=t[0]);let{groups:a,gl:o,regl:p,maxSize:f,maxColors:m,palette:g}=this;this.groups=a=t.map((e,t)=>{let n=a[t];if(void 0===e)return n;null===e?e={positions:null}:"function"==typeof e?e={ondraw:e}:"number"==typeof e[0]&&(e={positions:e}),null===(e=s(e,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"})).positions&&(e.positions=[]),null!=e.tooManyColors&&(this.tooManyColors=e.tooManyColors),n||(a[t]=n={id:t,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:p.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:p.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:p.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:p.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:p.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},e=Object.assign({},h.defaults,e)),e.positions&&!("marker"in e)&&(e.marker=n.marker,delete n.marker),e.marker&&!("positions"in e)&&(e.positions=n.positions,delete n.positions);let y=0,b=0;if(l(n,e,[{snap:!0,size:(e,t)=>(null==e&&(e=h.defaults.size),y+=e&&e.length?1:0,e),borderSize:(e,t)=>(null==e&&(e=h.defaults.borderSize),y+=e&&e.length?1:0,e),opacity:parseFloat,color:(e,t)=>(null==e&&(e=h.defaults.color),e=this.updateColor(e),b++,e),borderColor:(e,t)=>(null==e&&(e=h.defaults.borderColor),e=this.updateColor(e),b++,e),bounds:(e,t,n)=>("range"in n||(n.range=null),e),positions:(e,t,n)=>{let{snap:a}=t,{positionBuffer:o,positionFractBuffer:s,selectionBuffer:l}=t;if(e.x||e.y)return e.x.length?t.xAttr={buffer:p.buffer(e.x),offset:0,stride:4,count:e.x.length}:t.xAttr={buffer:e.x.buffer,offset:4*e.x.offset||0,stride:4*(e.x.stride||1),count:e.x.count},e.y.length?t.yAttr={buffer:p.buffer(e.y),offset:0,stride:4,count:e.y.length}:t.yAttr={buffer:e.y.buffer,offset:4*e.y.offset||0,stride:4*(e.y.stride||1),count:e.y.count},t.count=Math.max(t.xAttr.count,t.yAttr.count),e;e=c(e,"float64");let d=t.count=Math.floor(e.length/2),h=t.bounds=d?r(e,2):null;if(!n.range&&!t.range&&(delete t.range,n.range=h),!n.marker&&!t.marker&&(delete t.marker,n.marker=null),a&&(!0===a||d>a)?t.tree=i(e,{bounds:h}):a&&a.length&&(t.tree=a),t.tree){let e={primitive:"points",usage:"static",data:t.tree,type:"uint32"};t.elements?t.elements(e):t.elements=p.elements(e)}var f=u.float32(e);return o({data:f,usage:"dynamic"}),s({data:u.fract32(e,f),usage:"dynamic"}),l({data:new Uint8Array(d),type:"uint8",usage:"stream"}),e}},{marker:(e,t,n)=>{let{activation:r}=t;if(r.forEach(e=>e&&e.destroy&&e.destroy()),r.length=0,e&&"number"!=typeof e[0]){let n=[];for(let r=0,a=Math.min(e.length,t.count);r<a;r++){let a=this.addMarker(e[r]);n[a]||(n[a]=new Uint8Array(t.count)),n[a][r]=1}for(let e=0;e<n.length;e++){if(!n[e])continue;let t={data:n[e],type:"uint8",usage:"static"};r[e]?r[e](t):r[e]=p.buffer(t),r[e].data=n[e]}}else{r[this.addMarker(e)]=!0}return e},range:(e,t,n)=>{let r=t.bounds;if(r)return e||(e=r),t.scale=[1/(e[2]-e[0]),1/(e[3]-e[1])],t.translate=[-e[0],-e[1]],t.scaleFract=u.fract(t.scale),t.translateFract=u.fract(t.translate),e},viewport:e=>d(e||[o.drawingBufferWidth,o.drawingBufferHeight])}]),y){let{count:e,size:t,borderSize:r,sizeBuffer:a}=n,i=new Uint8Array(2*e);if(t.length||r.length)for(let n=0;n<e;n++)i[2*n]=Math.round(255*(null==t[n]?t:t[n])/f),i[2*n+1]=Math.round(255*(null==r[n]?r:r[n])/f);a({data:i,usage:"dynamic"})}if(b){let e,{count:t,color:r,borderColor:a,colorBuffer:i}=n;if(this.tooManyColors){if(r.length||a.length){e=new Uint8Array(8*t);for(let n=0;n<t;n++){let t=r[n];e[8*n]=g[4*t],e[8*n+1]=g[4*t+1],e[8*n+2]=g[4*t+2],e[8*n+3]=g[4*t+3];let i=a[n];e[8*n+4]=g[4*i],e[8*n+5]=g[4*i+1],e[8*n+6]=g[4*i+2],e[8*n+7]=g[4*i+3]}}}else if(r.length||a.length){e=new Uint8Array(4*t+2);for(let n=0;n<t;n++)null!=r[n]&&(e[4*n]=r[n]%m,e[4*n+1]=Math.floor(r[n]/m)),null!=a[n]&&(e[4*n+2]=a[n]%m,e[4*n+3]=Math.floor(a[n]/m))}i({data:e||new Uint8Array(0),type:"uint8",usage:"dynamic"})}return n})},h.prototype.addMarker=function(e){let t,{markerTextures:n,regl:r,markerCache:a}=this,i=null==e?0:a.indexOf(e);if(i>=0)return i;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)t=e;else{t=new Uint8Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=255*e[n]}let o=Math.floor(Math.sqrt(t.length));return i=n.length,a.push(e),n.push(r.texture({channels:1,data:t,radius:o,mag:"linear",min:"linear"})),i},h.prototype.updateColor=function(e){let{paletteIds:t,palette:r,maxColors:i}=this;Array.isArray(e)||(e=[e]);let o=[];if("number"==typeof e[0]){let t=[];if(Array.isArray(e))for(let n=0;n<e.length;n+=4)t.push(e.slice(n,n+4));else for(let n=0;n<e.length;n+=4)t.push(e.subarray(n,n+4));e=t}for(let i=0;i<e.length;i++){let s=e[i];s=n(s,"uint8");let l=a(s,!1);if(null==t[l]){let e=r.length;t[l]=Math.floor(e/4),r[e]=s[0],r[e+1]=s[1],r[e+2]=s[2],r[e+3]=s[3]}o[i]=t[l]}return!this.tooManyColors&&r.length>4*i&&(this.tooManyColors=!0),this.updatePalette(r),1===o.length?o[0]:o},h.prototype.updatePalette=function(e){if(this.tooManyColors)return;let{maxColors:t,paletteTexture:n}=this,r=Math.ceil(.25*e.length/t);if(r>1)for(let n=.25*(e=e.slice()).length%t;n<r*t;n++)e.push(0,0,0,0);n.height<r&&n.resize(t,r),n.subimage({width:Math.min(.25*e.length,t),height:r,data:e},0,0)},h.prototype.destroy=function(){return this.groups.forEach(e=>{e.sizeBuffer.destroy(),e.positionBuffer.destroy(),e.positionFractBuffer.destroy(),e.colorBuffer.destroy(),e.activation.forEach(e=>e&&e.destroy&&e.destroy()),e.selectionBuffer.destroy(),e.elements&&e.elements.destroy()}),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach(e=>e&&e.destroy&&e.destroy()),this};t.exports=function(e,t){var n=new p(e,t),r=n.render.bind(n);return Object.assign(r,{render:r,update:n.update.bind(n),draw:n.draw.bind(n),destroy:n.destroy.bind(n),regl:n.regl,gl:n.gl,canvas:n.gl.canvas,groups:n.groups,markers:n.markerCache,palette:n.palette}),r}}),Qh=Ee((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch{return!1}}()?Object.assign:function(e,t){for(var i,o,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))r.call(i,c)&&(s[c]=i[c]);if(n){o=n(i);for(var u=0;u<o.length;u++)a.call(i,o[u])&&(s[o[u]]=i[o[u]])}}return s}}),mdt=Ee((e,t)=>{function n(e,t,n){n=n||2;var a,o,s,l,c,p,h,m=t&&t.length,g=m?t[0]*n:e.length,y=r(e,0,g,n,!0),b=[];if(!y||y.next===y.prev)return b;if(m&&(y=function(e,t,n,a){var i,o,s,l,c,p=[];for(i=0,o=t.length;i<o;i++)s=t[i]*a,l=i<o-1?t[i+1]*a:e.length,(c=r(e,s,l,a,!1))===c.next&&(c.steiner=!0),p.push(f(c));for(p.sort(u),i=0;i<p.length;i++)n=d(p[i],n);return n}(e,t,y,n)),e.length>80*n){a=s=e[0],o=l=e[1];for(var v=n;v<g;v+=n)(c=e[v])<a&&(a=c),(p=e[v+1])<o&&(o=p),c>s&&(s=c),p>l&&(l=p);h=0!==(h=Math.max(s-a,l-o))?32767/h:0}return i(y,b,n,a,o,h,0),b}function r(e,t,n,r,a){var i,o;if(a===k(e,t,n,r)>0)for(i=t;i<n;i+=r)o=A(i,e[i],e[i+1],o);else for(i=n-r;i>=t;i-=r)o=A(i,e[i],e[i+1],o);return o&&b(o,o.next)&&(O(o),o=o.next),o}function a(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!b(r,r.next)&&0!==y(r.prev,r,r.next))r=r.next;else{if(O(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function i(e,t,n,r,u,d,p){if(e){!p&&d&&function(e,t,n,r){var a=e;do{0===a.z&&(a.z=h(a.x,a.y,t,n,r)),a.prevZ=a.prev,a.nextZ=a.next,a=a.next}while(a!==e);a.prevZ.nextZ=null,a.prevZ=null,function(e){var t,n,r,a,i,o,s,l,c=1;do{for(n=e,e=null,i=null,o=0;n;){for(o++,r=n,s=0,t=0;t<c&&(s++,r=r.nextZ);t++);for(l=c;s>0||l>0&&r;)0!==s&&(0===l||!r||n.z<=r.z)?(a=n,n=n.nextZ,s--):(a=r,r=r.nextZ,l--),i?i.nextZ=a:e=a,a.prevZ=i,i=a;n=r}i.nextZ=null,c*=2}while(o>1)}(a)}(e,r,u,d);for(var f,m,g=e;e.prev!==e.next;)if(f=e.prev,m=e.next,d?s(e,r,u,d):o(e))t.push(f.i/n|0),t.push(e.i/n|0),t.push(m.i/n|0),O(e),e=m.next,g=m.next;else if((e=m)===g){p?1===p?i(e=l(a(e),t,n),t,n,r,u,d,2):2===p&&c(e,t,n,r,u,d):i(a(e),t,n,r,u,d,1);break}}}function o(e){var t=e.prev,n=e,r=e.next;if(y(t,n,r)>=0)return!1;for(var a=t.x,i=n.x,o=r.x,s=t.y,l=n.y,c=r.y,u=a<i?a<o?a:o:i<o?i:o,d=s<l?s<c?s:c:l<c?l:c,p=a>i?a>o?a:o:i>o?i:o,h=s>l?s>c?s:c:l>c?l:c,f=r.next;f!==t;){if(f.x>=u&&f.x<=p&&f.y>=d&&f.y<=h&&m(a,s,i,l,o,c,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}function s(e,t,n,r){var a=e.prev,i=e,o=e.next;if(y(a,i,o)>=0)return!1;for(var s=a.x,l=i.x,c=o.x,u=a.y,d=i.y,p=o.y,f=s<l?s<c?s:c:l<c?l:c,g=u<d?u<p?u:p:d<p?d:p,b=s>l?s>c?s:c:l>c?l:c,v=u>d?u>p?u:p:d>p?d:p,M=h(f,g,t,n,r),x=h(b,v,t,n,r),z=e.prevZ,_=e.nextZ;z&&z.z>=M&&_&&_.z<=x;){if(z.x>=f&&z.x<=b&&z.y>=g&&z.y<=v&&z!==a&&z!==o&&m(s,u,l,d,c,p,z.x,z.y)&&y(z.prev,z,z.next)>=0||(z=z.prevZ,_.x>=f&&_.x<=b&&_.y>=g&&_.y<=v&&_!==a&&_!==o&&m(s,u,l,d,c,p,_.x,_.y)&&y(_.prev,_,_.next)>=0))return!1;_=_.nextZ}for(;z&&z.z>=M;){if(z.x>=f&&z.x<=b&&z.y>=g&&z.y<=v&&z!==a&&z!==o&&m(s,u,l,d,c,p,z.x,z.y)&&y(z.prev,z,z.next)>=0)return!1;z=z.prevZ}for(;_&&_.z<=x;){if(_.x>=f&&_.x<=b&&_.y>=g&&_.y<=v&&_!==a&&_!==o&&m(s,u,l,d,c,p,_.x,_.y)&&y(_.prev,_,_.next)>=0)return!1;_=_.nextZ}return!0}function l(e,t,n){var r=e;do{var i=r.prev,o=r.next.next;!b(i,o)&&v(i,r,r.next,o)&&z(i,o)&&z(o,i)&&(t.push(i.i/n|0),t.push(r.i/n|0),t.push(o.i/n|0),O(r),O(r.next),r=e=o),r=r.next}while(r!==e);return a(r)}function c(e,t,n,r,o,s){var l=e;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&g(l,c)){var u=_(l,c);return l=a(l,l.next),u=a(u,u.next),i(l,t,n,r,o,s,0),void i(u,t,n,r,o,s,0)}c=c.next}l=l.next}while(l!==e)}function u(e,t){return e.x-t.x}function d(e,t){var n=function(e,t){var n,r=t,a=e.x,i=e.y,o=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=a&&s>o&&(o=s,n=r.x<r.next.x?r:r.next,s===a))return n}r=r.next}while(r!==t);if(!n)return null;var l,c=n,u=n.x,d=n.y,h=1/0;r=n;do{a>=r.x&&r.x>=u&&a!==r.x&&m(i<d?a:o,i,u,d,i<d?o:a,i,r.x,r.y)&&(l=Math.abs(i-r.y)/(a-r.x),z(r,e)&&(l<h||l===h&&(r.x>n.x||r.x===n.x&&p(n,r)))&&(n=r,h=l)),r=r.next}while(r!==c);return n}(e,t);if(!n)return t;var r=_(n,e);return a(r,r.next),a(n,n.next)}function p(e,t){return y(e.prev,e,t.prev)<0&&y(t.next,e,e.next)<0}function h(e,t,n,r,a){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*a|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*a|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function f(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function m(e,t,n,r,a,i,o,s){return(a-o)*(t-s)>=(e-o)*(i-s)&&(e-o)*(r-s)>=(n-o)*(t-s)&&(n-o)*(i-s)>=(a-o)*(r-s)}function g(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&v(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(z(e,t)&&z(t,e)&&function(e,t){var n=e,r=!1,a=(e.x+t.x)/2,i=(e.y+t.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&a<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(y(e.prev,e,t.prev)||y(e,t.prev,t))||b(e,t)&&y(e.prev,e,e.next)>0&&y(t.prev,t,t.next)>0)}function y(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function b(e,t){return e.x===t.x&&e.y===t.y}function v(e,t,n,r){var a=x(y(e,t,n)),i=x(y(e,t,r)),o=x(y(n,r,e)),s=x(y(n,r,t));return!!(a!==i&&o!==s||0===a&&M(e,n,t)||0===i&&M(e,r,t)||0===o&&M(n,e,r)||0===s&&M(n,t,r))}function M(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function x(e){return e>0?1:e<0?-1:0}function z(e,t){return y(e.prev,e,e.next)<0?y(e,t,e.next)>=0&&y(e,e.prev,t)>=0:y(e,t,e.prev)<0||y(e,e.next,t)<0}function _(e,t){var n=new w(e.i,e.x,e.y),r=new w(t.i,t.x,t.y),a=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=a,a.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function A(e,t,n,r){var a=new w(e,t,n);return r?(a.next=r.next,a.prev=r,r.next.prev=a,r.next=a):(a.prev=a,a.next=a),a}function O(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function w(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function k(e,t,n,r){for(var a=0,i=t,o=n-r;i<n;i+=r)a+=(e[o]-e[i])*(e[i+1]+e[o+1]),o=i;return a}t.exports=n,t.exports.default=n,n.deviation=function(e,t,n,r){var a=t&&t.length,i=a?t[0]*n:e.length,o=Math.abs(k(e,0,i,n));if(a)for(var s=0,l=t.length;s<l;s++){var c=t[s]*n,u=s<l-1?t[s+1]*n:e.length;o-=Math.abs(k(e,c,u,n))}var d=0;for(s=0;s<r.length;s+=3){var p=r[s]*n,h=r[s+1]*n,f=r[s+2]*n;d+=Math.abs((e[p]-e[f])*(e[h+1]-e[p+1])-(e[p]-e[h])*(e[f+1]-e[p+1]))}return 0===o&&0===d?0:Math.abs((d-o)/o)},n.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,a=0;a<e.length;a++){for(var i=0;i<e[a].length;i++)for(var o=0;o<t;o++)n.vertices.push(e[a][i][o]);a>0&&(r+=e[a-1].length,n.holes.push(r))}return n}}),gdt=Ee((e,t)=>{var n=OO();t.exports=function(e,t,r){if(!e||null==e.length)throw Error("Argument should be an array");null==t&&(t=1),null==r&&(r=n(e,t));for(var a=0;a<t;a++){var i=r[t+a],o=r[a],s=a,l=e.length;if(i===1/0&&o===-1/0)for(s=a;s<l;s+=t)e[s]=e[s]===i?1:e[s]===o?0:.5;else if(i===1/0)for(s=a;s<l;s+=t)e[s]=e[s]===i?1:0;else if(o===-1/0)for(s=a;s<l;s+=t)e[s]=e[s]===o?0:1;else{var c=i-o;for(s=a;s<l;s+=t)isNaN(e[s])||(e[s]=0===c?.5:(e[s]-o)/c)}}return e}}),bdt=Ee((e,t)=>{t.exports=function(){var e,t;if("function"!=typeof WeakMap)return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch{return!1}return!("[object WeakMap]"!==String(e)||"function"!=typeof e.set||e.set({},1)!==e||"function"!=typeof e.delete||"function"!=typeof e.has||"one"!==e.get(t))}}),xdt=Ee((e,t)=>{t.exports=function(){}}),N4=Ee((e,t)=>{var n=xdt()();t.exports=function(e){return e!==n&&null!==e}}),Wpe=Ee((e,t)=>{var n=Object.create,r=Object.getPrototypeOf,a={};t.exports=function(){var e=Object.setPrototypeOf;return"function"==typeof e&&r(e((arguments[0]||n)(null),a))===a}}),Fpe=Ee((e,t)=>{var n=N4(),r={function:!0,object:!0};t.exports=function(e){return n(e)&&r[typeof e]||!1}}),Kx=Ee((e,t)=>{var n=N4();t.exports=function(e){if(!n(e))throw new TypeError("Cannot use null or undefined");return e}}),Sdt=Ee((e,t)=>{var n,r,a,i,o=Object.create;Wpe()()||(n=Upe()),t.exports=n&&1===n.level?(r={},a={},i={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(e){a[e]="__proto__"!==e?i:{configurable:!0,enumerable:!1,writable:!0,value:void 0}}),Object.defineProperties(r,a),Object.defineProperty(n,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:r}),function(e,t){return o(null===e?r:e,t)}):o}),Upe=Ee((e,t)=>{var n,r,a,i,o=Fpe(),s=Kx(),l=Object.prototype.isPrototypeOf,c=Object.defineProperty,u={configurable:!0,enumerable:!1,writable:!0,value:void 0};n=function(e,t){if(s(e),null===t||o(t))return e;throw new TypeError("Prototype must be null or an object")},t.exports=(r=function(){var e,t=Object.create(null),n={},r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(r){try{(e=r.set).call(t,n)}catch{}if(Object.getPrototypeOf(t)===n)return{set:e,level:2}}return t.__proto__=n,Object.getPrototypeOf(t)===n?{level:2}:((t={}).__proto__=n,Object.getPrototypeOf(t)===n&&{level:1})}(),r?(2===r.level?r.set?(i=r.set,a=function(e,t){return i.call(n(e,t),t),e}):a=function(e,t){return n(e,t).__proto__=t,e}:a=function e(t,r){var a;return n(t,r),(a=l.call(e.nullPolyfill,t))&&delete e.nullPolyfill.__proto__,null===r&&(r=e.nullPolyfill),t.__proto__=r,a&&c(e.nullPolyfill,"__proto__",u),t},Object.defineProperty(a,"level",{configurable:!1,enumerable:!1,writable:!1,value:r.level})):null),Sdt()}),bZ=Ee((e,t)=>{t.exports=Wpe()()?Object.setPrototypeOf:Upe()}),qdt=Ee((e,t)=>{var n=Fpe();t.exports=function(e){if(!n(e))throw new TypeError(e+" is not an Object");return e}}),Rdt=Ee((e,t)=>{var n=Object.create(null),r=Math.random;t.exports=function(){var e;do{e=r().toString(36).slice(2)}while(n[e]);return e}}),qO=Ee((e,t)=>{t.exports=function(e){return null!=e}}),Hpe=Ee((e,t)=>{var n=qO(),r={object:!0,function:!0,undefined:!0};t.exports=function(e){return!!n(e)&&hasOwnProperty.call(r,typeof e)}}),Ndt=Ee((e,t)=>{var n=Hpe();t.exports=function(e){if(!n(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch{return!1}}}),Fdt=Ee((e,t)=>{var n=Ndt();t.exports=function(e){if("function"!=typeof e||!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length||"function"!=typeof e.call||"function"!=typeof e.apply)return!1}catch{return!1}return!n(e)}}),Vpe=Ee((e,t)=>{var n=Fdt(),r=/^\s*class[\s{/}]/,a=Function.prototype.toString;t.exports=function(e){return!(!n(e)||r.test(a.call(e)))}}),Hdt=Ee((e,t)=>{t.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}}),jdt=Ee((e,t)=>{t.exports=function(){try{return Object.keys("primitive"),!0}catch{return!1}}}),Xdt=Ee((e,t)=>{var n=N4(),r=Object.keys;t.exports=function(e){return r(n(e)?Object(e):e)}}),Zdt=Ee((e,t)=>{t.exports=jdt()()?Object.keys:Xdt()}),Kdt=Ee((e,t)=>{var n=Zdt(),r=Kx(),a=Math.max;t.exports=function(e,t){var i,o,s,l=a(arguments.length,2);for(e=Object(r(e)),s=function(n){try{e[n]=t[n]}catch(e){i||(i=e)}},o=1;o<l;++o)n(t=arguments[o]).forEach(s);if(void 0!==i)throw i;return e}}),MZ=Ee((e,t)=>{t.exports=Hdt()()?Object.assign:Kdt()}),jpe=Ee((e,t)=>{var n=N4(),r=Array.prototype.forEach,a=Object.create;t.exports=function(e){var t=a(null);return r.call(arguments,function(e){n(e)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(e),t)}),t}}),tft=Ee((e,t)=>{var n="razdwatrzy";t.exports=function(){return"function"==typeof n.contains&&(!0===n.contains("dwa")&&!1===n.contains("foo"))}}),nft=Ee((e,t)=>{var n=String.prototype.indexOf;t.exports=function(e){return n.call(this,e,arguments[1])>-1}}),Xpe=Ee((e,t)=>{t.exports=tft()()?String.prototype.contains:nft()}),Jx=Ee((e,t)=>{var n=qO(),r=Vpe(),a=MZ(),i=jpe(),o=Xpe();(t.exports=function(e,t){var r,s,l,c,u;return arguments.length<2||"string"!=typeof e?(c=t,t=e,e=null):c=arguments[2],n(e)?(r=o.call(e,"c"),s=o.call(e,"e"),l=o.call(e,"w")):(r=l=!0,s=!1),u={value:t,configurable:r,enumerable:s,writable:l},c?a(i(c),u):u}).gs=function(e,t,s){var l,c,u,d;return"string"!=typeof e?(u=s,s=t,t=e,e=null):u=arguments[3],n(t)?r(t)?n(s)?r(s)||(u=s,s=void 0):s=void 0:(u=t,t=s=void 0):t=void 0,n(e)?(l=o.call(e,"c"),c=o.call(e,"e")):(l=!0,c=!1),d={get:t,set:s,configurable:l,enumerable:c},u?a(i(u),d):d}}),sP=Ee((e,t)=>{var n=Object.prototype.toString,r=n.call(function(){return arguments}());t.exports=function(e){return n.call(e)===r}}),lP=Ee((e,t)=>{var n=Object.prototype.toString,r=n.call("");t.exports=function(e){return"string"==typeof e||e&&"object"==typeof e&&(e instanceof String||n.call(e)===r)||!1}}),pft=Ee((e,t)=>{t.exports=function(){return!("object"!=typeof globalThis||!globalThis)&&globalThis.Array===Array}}),gft=Ee((e,t)=>{var n=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};t.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return n()}try{return __global__||n()}finally{delete Object.prototype.__global__}}()}),cP=Ee((e,t)=>{t.exports=pft()()?globalThis:gft()}),Mft=Ee((e,t)=>{var n=cP(),r={object:!0,symbol:!0};t.exports=function(){var e,t=n.Symbol;if("function"!=typeof t)return!1;e=t("test symbol");try{String(e)}catch{return!1}return!(!r[typeof t.iterator]||!r[typeof t.toPrimitive]||!r[typeof t.toStringTag])}}),_ft=Ee((e,t)=>{t.exports=function(e){return!!e&&("symbol"==typeof e||!(!e.constructor||"Symbol"!==e.constructor.name)&&"Symbol"===e[e.constructor.toStringTag])}}),Zpe=Ee((e,t)=>{var n=_ft();t.exports=function(e){if(!n(e))throw new TypeError(e+" is not a symbol");return e}}),Sft=Ee((e,t)=>{var n=Jx(),r=Object.create,a=Object.defineProperty,i=Object.prototype,o=r(null);t.exports=function(e){for(var t,r,s=0;o[e+(s||"")];)++s;return o[e+=s||""]=!0,a(i,t="@@"+e,n.gs(null,function(e){r||(r=!0,a(this,t,n(e)),r=!1)})),t}}),Cft=Ee((e,t)=>{var n=Jx(),r=cP().Symbol;t.exports=function(e){return Object.defineProperties(e,{hasInstance:n("",r&&r.hasInstance||e("hasInstance")),isConcatSpreadable:n("",r&&r.isConcatSpreadable||e("isConcatSpreadable")),iterator:n("",r&&r.iterator||e("iterator")),match:n("",r&&r.match||e("match")),replace:n("",r&&r.replace||e("replace")),search:n("",r&&r.search||e("search")),species:n("",r&&r.species||e("species")),split:n("",r&&r.split||e("split")),toPrimitive:n("",r&&r.toPrimitive||e("toPrimitive")),toStringTag:n("",r&&r.toStringTag||e("toStringTag")),unscopables:n("",r&&r.unscopables||e("unscopables"))})}}),Dft=Ee((e,t)=>{var n=Jx(),r=Zpe(),a=Object.create(null);t.exports=function(e){return Object.defineProperties(e,{for:n(function(t){return a[t]?a[t]:a[t]=e(String(t))}),keyFor:n(function(e){var t;for(t in r(e),a)if(a[t]===e)return t})})}}),Pft=Ee((e,t)=>{var n,r,a,i=Jx(),o=Zpe(),s=cP().Symbol,l=Sft(),c=Cft(),u=Dft(),d=Object.create,p=Object.defineProperties,h=Object.defineProperty;if("function"==typeof s)try{String(s()),a=!0}catch{}else s=null;r=function(e){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return n(e)},t.exports=n=function e(t){var n;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return a?s(t):(n=d(r.prototype),t=void 0===t?"":String(t),p(n,{__description__:i("",t),__name__:i("",l(t))}))},c(n),u(n),p(r.prototype,{constructor:i(n),toString:i("",function(){return this.__name__})}),p(n.prototype,{toString:i(function(){return"Symbol ("+o(this).__description__+")"}),valueOf:i(function(){return o(this)})}),h(n.prototype,n.toPrimitive,i("",function(){var e=o(this);return"symbol"==typeof e?e:e.toString()})),h(n.prototype,n.toStringTag,i("c","Symbol")),h(r.prototype,n.toStringTag,i("c",n.prototype[n.toStringTag])),h(r.prototype,n.toPrimitive,i("c",n.prototype[n.toPrimitive]))}),W4=Ee((e,t)=>{t.exports=Mft()()?cP().Symbol:Pft()}),Wft=Ee((e,t)=>{var n=Kx();t.exports=function(){return n(this).length=0,this}}),p9=Ee((e,t)=>{t.exports=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}}),Uft=Ee((e,t)=>{var n=qO(),r=Hpe(),a=Object.prototype.toString;t.exports=function(e){if(!n(e))return null;if(r(e)){var t=e.toString;if("function"!=typeof t||t===a)return null}try{return""+e}catch{return null}}}),Vft=Ee((e,t)=>{t.exports=function(e){try{return e.toString()}catch{try{return String(e)}catch{return null}}}}),Gft=Ee((e,t)=>{var n=Vft(),r=/[\n\r\u2028\u2029]/g;t.exports=function(e){var t=n(e);return null===t?"<Non-coercible to string value>":(t.length>100&&(t=t.slice(0,99)+"…"),t=t.replace(r,function(e){switch(e){case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}))}}),Yft=Ee((e,t)=>{var n=Uft(),r=Gft();t.exports=function(e,t,a){a&&a.errorMessage&&(e=n(a.errorMessage));var i=e.indexOf("%v"),o=i>-1?r(t):null;if(a&&a.name){var s,l,c,u,d=e.indexOf("%n");if(d>-1)return i>-1?(d>i?(s=o,c=i,l=a.name,u=d):(s=a.name,c=d,l=o,u=i),e.slice(0,c)+s+e.slice(c+2,u)+l+e.slice(u+2)):e.slice(0,d)+a.name+e.slice(d+2)}return i>-1?e.slice(0,i)+o+e.slice(i+2):e}}),Jpe=Ee((e,t)=>{var n=qO(),r=Yft();t.exports=function(e,t,a){if(a&&!n(e)){if("default"in a)return a.default;if(a.isOptional)return null}var i=new(a&&a.Error||TypeError)(r(t,e,a));throw a&&a.errorCode&&(i.code=a.errorCode),i}}),Kft=Ee((e,t)=>{var n=Jpe(),r=qO();t.exports=function(e){if(r(e))return e;var t=arguments[1],a=t&&t.name?"Expected a value for %n, received %v":"Cannot use %v";return n(e,a,t)}}),Qft=Ee((e,t)=>{var n=Jpe(),r=Vpe();t.exports=function(e){if(r(e))return e;var t=arguments[1],a=t&&t.name?"Expected a plain function for %n, received %v":"%v is not a plain function";return n(e,a,t)}}),tht=Ee((e,t)=>{t.exports=function(){var e,t,n=Array.from;return"function"==typeof n&&!(!(t=n(e=["raz","dwa"]))||t===e||"dwa"!==t[1])}}),nht=Ee((e,t)=>{var n=Object.prototype.toString,r=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);t.exports=function(e){return"function"==typeof e&&r(n.call(e))}}),iht=Ee((e,t)=>{t.exports=function(){var e=Math.sign;return"function"==typeof e&&(1===e(10)&&-1===e(-20))}}),sht=Ee((e,t)=>{t.exports=function(e){return e=Number(e),isNaN(e)||0===e?e:e>0?1:-1}}),cht=Ee((e,t)=>{t.exports=iht()()?Math.sign:sht()}),dht=Ee((e,t)=>{var n=cht(),r=Math.abs,a=Math.floor;t.exports=function(e){return isNaN(e)?0:0!==(e=Number(e))&&isFinite(e)?n(e)*a(r(e)):e}}),hht=Ee((e,t)=>{var n=dht(),r=Math.max;t.exports=function(e){return r(0,n(e))}}),ght=Ee((e,t)=>{var n=W4().iterator,r=sP(),a=nht(),i=hht(),o=p9(),s=Kx(),l=N4(),c=lP(),u=Array.isArray,d=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},h=Object.defineProperty;t.exports=function(e){var t,f,m,g,y,b,v,M,x,z,_=arguments[1],A=arguments[2];if(e=Object(s(e)),l(_)&&o(_),this&&this!==Array&&a(this))t=this;else{if(!_){if(r(e))return 1!==(y=e.length)?Array.apply(null,e):((g=new Array(1))[0]=e[0],g);if(u(e)){for(g=new Array(y=e.length),f=0;f<y;++f)g[f]=e[f];return g}}g=[]}if(!u(e))if(void 0!==(x=e[n])){for(v=o(x).call(e),t&&(g=new t),M=v.next(),f=0;!M.done;)z=_?d.call(_,A,M.value,f):M.value,t?(p.value=z,h(g,f,p)):g[f]=z,M=v.next(),++f;y=f}else if(c(e)){for(y=e.length,t&&(g=new t),f=0,m=0;f<y;++f)z=e[f],f+1<y&&((b=z.charCodeAt(0))>=55296&&b<=56319&&(z+=e[++f])),z=_?d.call(_,A,z,m):z,t?(p.value=z,h(g,m,p)):g[m]=z,++m;y=m}if(void 0===y)for(y=i(e.length),t&&(g=new t(y)),f=0;f<y;++f)z=_?d.call(_,A,e[f],f):e[f],t?(p.value=z,h(g,f,p)):g[f]=z;return t&&(p.value=null,g.length=y),g}}),bht=Ee((e,t)=>{t.exports=tht()()?Array.from:ght()}),xht=Ee((e,t)=>{var n=bht(),r=MZ(),a=Kx();t.exports=function(e){var t=Object(a(e)),i=arguments[1],o=Object(arguments[2]);if(t!==e&&!i)return t;var s={};return i?n(i,function(t){(o.ensure||t in e)&&(s[t]=e[t])}):r(s,e),s}}),Aht=Ee((e,t)=>{var n=p9(),r=Kx(),a=Function.prototype.bind,i=Function.prototype.call,o=Object.keys,s=Object.prototype.propertyIsEnumerable;t.exports=function(e,t){return function(l,c){var u,d=arguments[2],p=arguments[3];return l=Object(r(l)),n(c),u=o(l),p&&u.sort("function"==typeof p?a.call(p,l):void 0),"function"!=typeof e&&(e=u[e]),i.call(e,u,function(e,n){return s.call(l,e)?i.call(c,d,l[e],e,l,n):t})}}}),Oht=Ee((e,t)=>{t.exports=Aht()("forEach")}),Sht=Ee((e,t)=>{var n=p9(),r=Oht(),a=Function.prototype.call;t.exports=function(e,t){var i={},o=arguments[2];return n(t),r(e,function(e,n,r,s){i[n]=a.call(t,o,e,n,r,s)}),i}}),qht=Ee((e,t)=>{var n,r=qO(),a=Kft(),i=Qft(),o=xht(),s=jpe(),l=Sht(),c=Function.prototype.bind,u=Object.defineProperty,d=Object.prototype.hasOwnProperty;n=function(e,t,n){var r,s=a(t)&&i(t.value);return delete(r=o(t)).writable,delete r.value,r.get=function(){return!n.overwriteDefinition&&d.call(this,e)?s:(t.value=c.call(s,n.resolveContext?n.resolveContext(this):this),u(this,e,t),this[e])},r},t.exports=function(e){var t=s(arguments[1]);return r(t.resolveContext)&&i(t.resolveContext),l(e,function(e,r){return n(r,e,t)})}}),t2e=Ee((e,t)=>{var n,r=Wft(),a=MZ(),i=p9(),o=Kx(),s=Jx(),l=qht(),c=W4(),u=Object.defineProperty,d=Object.defineProperties;t.exports=n=function(e,t){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");d(this,{__list__:s("w",o(e)),__context__:s("w",t),__nextIndex__:s("w",0)}),t&&(i(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))},delete n.prototype.constructor,d(n.prototype,a({_next:s(function(){var e;if(this.__list__){if(this.__redo__&&void 0!==(e=this.__redo__.shift()))return e;if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind()}}),next:s(function(){return this._createResult(this._next())}),_createResult:s(function(e){return void 0===e?{done:!0,value:void 0}:{done:!1,value:this._resolve(e)}}),_resolve:s(function(e){return this.__list__[e]}),_unBind:s(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:s(function(){return"[object "+(this[c.toStringTag]||"Object")+"]"})},l({_onAdd:s(function(e){if(!(e>=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__)return void u(this,"__redo__",s("c",[e]));this.__redo__.forEach(function(t,n){t>=e&&(this.__redo__[n]=++t)},this),this.__redo__.push(e)}}),_onDelete:s(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(-1!==(t=this.__redo__.indexOf(e))&&this.__redo__.splice(t,1),this.__redo__.forEach(function(t,n){t>e&&(this.__redo__[n]=--t)},this)))}),_onClear:s(function(){this.__redo__&&r.call(this.__redo__),this.__nextIndex__=0})}))),u(n.prototype,c.iterator,s(function(){return this}))}),Bht=Ee((e,t)=>{var n,r=bZ(),a=Xpe(),i=Jx(),o=W4(),s=t2e(),l=Object.defineProperty;n=t.exports=function(e,t){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");s.call(this,e),t=t?a.call(t,"key+value")?"key+value":a.call(t,"key")?"key":"value":"value",l(this,"__kind__",i("",t))},r&&r(n,s),delete n.prototype.constructor,n.prototype=Object.create(s.prototype,{_resolve:i(function(e){return"value"===this.__kind__?this.__list__[e]:"key+value"===this.__kind__?[e,this.__list__[e]]:e})}),l(n.prototype,o.toStringTag,i("c","Array Iterator"))}),jht=Ee((e,t)=>{var n,r=bZ(),a=Jx(),i=W4(),o=t2e(),s=Object.defineProperty;n=t.exports=function(e){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");e=String(e),o.call(this,e),s(this,"__length__",a("",e.length))},r&&r(n,o),delete n.prototype.constructor,n.prototype=Object.create(o.prototype,{_next:a(function(){if(this.__list__){if(this.__nextIndex__<this.__length__)return this.__nextIndex__++;this._unBind()}}),_resolve:a(function(e){var t,n=this.__list__[e];return this.__nextIndex__===this.__length__?n:(t=n.charCodeAt(0))>=55296&&t<=56319?n+this.__list__[this.__nextIndex__++]:n})}),s(n.prototype,i.toStringTag,a("c","String Iterator"))}),Xht=Ee((e,t)=>{var n=sP(),r=N4(),a=lP(),i=W4().iterator,o=Array.isArray;t.exports=function(e){return!!r(e)&&(!!(o(e)||a(e)||n(e))||"function"==typeof e[i])}}),Zht=Ee((e,t)=>{var n=Xht();t.exports=function(e){if(!n(e))throw new TypeError(e+" is not iterable");return e}}),i2e=Ee((e,t)=>{var n=sP(),r=lP(),a=Bht(),i=jht(),o=Zht(),s=W4().iterator;t.exports=function(e){return"function"==typeof o(e)[s]?e[s]():n(e)?new a(e):r(e)?new i(e):new a(e)}}),ept=Ee((e,t)=>{var n=sP(),r=p9(),a=lP(),i=i2e(),o=Array.isArray,s=Function.prototype.call,l=Array.prototype.some;t.exports=function(e,t){var c,u,d,p,h,f,m,g,y=arguments[2];if(o(e)||n(e)?c="array":a(e)?c="string":e=i(e),r(t),d=function(){p=!0},"array"!==c)if("string"!==c)for(u=e.next();!u.done;){if(s.call(t,y,u.value,d),p)return;u=e.next()}else for(f=e.length,h=0;h<f&&(m=e[h],h+1<f&&((g=m.charCodeAt(0))>=55296&&g<=56319&&(m+=e[++h])),s.call(t,y,m,d),!p);++h);else l.call(e,function(e){return s.call(t,y,e,d),p})}}),rpt=Ee((e,t)=>{t.exports="function"==typeof WeakMap&&"[object WeakMap]"===Object.prototype.toString.call(new WeakMap)}),ipt=Ee((e,t)=>{var n,r=N4(),a=bZ(),i=qdt(),o=Kx(),s=Rdt(),l=Jx(),c=i2e(),u=ept(),d=W4().toStringTag,p=rpt(),h=Array.isArray,f=Object.defineProperty,m=Object.prototype.hasOwnProperty,g=Object.getPrototypeOf;t.exports=n=function(){var e,t=arguments[0];if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");return e=p&&a&&WeakMap!==n?a(new WeakMap,g(this)):this,r(t)&&(h(t)||(t=c(t))),f(e,"__weakMapData__",l("c","$weakMap$"+s())),t&&u(t,function(t){o(t),e.set(t[0],t[1])}),e},p&&(a&&a(n,WeakMap),n.prototype=Object.create(WeakMap.prototype,{constructor:l(n)})),Object.defineProperties(n.prototype,{delete:l(function(e){return!!m.call(i(e),this.__weakMapData__)&&(delete e[this.__weakMapData__],!0)}),get:l(function(e){if(m.call(i(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:l(function(e){return m.call(i(e),this.__weakMapData__)}),set:l(function(e,t){return f(i(e),this.__weakMapData__,l("c",t)),this}),toString:l(function(){return"[object WeakMap]"})}),f(n.prototype,d,l("c","WeakMap"))}),c2e=Ee((e,t)=>{t.exports=bdt()()?WeakMap:ipt()}),lpt=Ee((e,t)=>{t.exports=function(e,t,n){if("function"==typeof Array.prototype.findIndex)return e.findIndex(t,n);if("function"!=typeof t)throw new TypeError("predicate must be a function");var r=Object(e),a=r.length;if(0===a)return-1;for(var i=0;i<a;i++)if(t.call(n,r[i],i,r))return i;return-1}}),f2e=Ee((e,t)=>{var n=T4(),r=OO(),a=Qh(),i=Y3(),o=TO(),s=mdt(),l=gdt(),{float32:c,fract32:u}=uZ(),d=c2e(),p=i9(),h=lpt();function f(e,t){if(!(this instanceof f))return new f(e,t);if("function"==typeof e?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),!(e=t.regl).hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=f.shaders.has(e)?f.shaders.get(e):f.shaders.set(e,f.createShaders(e)).get(e),this.update(t)}t.exports=f,f.dashMult=2,f.maxPatternLength=256,f.precisionThreshold=3e6,f.maxPoints=1e4,f.maxLines=2048,f.shaders=new d,f.createShaders=function(e){let t,n=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(e,t)=>"round"===t.join?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(e,t)=>[t.viewport.x,t.viewport.y,e.viewportWidth,e.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(e,t)=>!t.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},i=e(a({vert:"\nprecision highp float;\n\nattribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;\nattribute vec4 color;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) {\n\t// the order is important\n\treturn position * scale + translate\n + positionFract * scale + translateFract\n + position * scaleFract\n + positionFract * scaleFract;\n}\n\nvoid main() {\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineOffset = lineTop * 2. - 1.;\n\n\tvec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract);\n\ttangent = normalize(diff * scale * viewport.zw);\n\tvec2 normal = vec2(-tangent.y, tangent.x);\n\n\tvec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart\n\t\t+ project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd\n\n\t\t+ thickness * normal * .5 * lineOffset / viewport.zw;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n}\n",frag:"\nprecision highp float;\n\nuniform float dashLength, pixelRatio, thickness, opacity, id;\nuniform sampler2D dashTexture;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvoid main() {\n\tfloat alpha = 1.;\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25;\n\tfloat dash = texture2D(dashTexture, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n",attributes:{lineEnd:{buffer:n,divisor:0,stride:8,offset:0},lineTop:{buffer:n,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r));try{t=e(a({cull:{enable:!0,face:"back"},vert:"\nprecision highp float;\n\nattribute vec2 aCoord, bCoord, nextCoord, prevCoord;\nattribute vec4 aColor, bColor;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, translate;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\nuniform float miterLimit, miterMode;\n\nvarying vec4 fragColor;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 tangent;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nconst float REVERSE_THRESHOLD = -.875;\nconst float MIN_DIFF = 1e-6;\n\n// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead\n// TODO: precalculate dot products, normalize things beforehead etc.\n// TODO: refactor to rectangular algorithm\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nbool isNaN( float val ){\n return ( val < 0.0 || 0.0 < val || val == 0.0 ) ? false : true;\n}\n\nvoid main() {\n\tvec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord;\n\n vec2 adjustedScale;\n adjustedScale.x = (abs(scale.x) < MIN_DIFF) ? MIN_DIFF : scale.x;\n adjustedScale.y = (abs(scale.y) < MIN_DIFF) ? MIN_DIFF : scale.y;\n\n vec2 scaleRatio = adjustedScale * viewport.zw;\n\tvec2 normalWidth = thickness / scaleRatio;\n\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineBot = 1. - lineTop;\n\n\tfragColor = (lineStart * aColor + lineEnd * bColor) / 255.;\n\n\tif (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return;\n\n\tif (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord);\n\tif (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord);\n\n\n\tvec2 prevDiff = aCoord - prevCoord;\n\tvec2 currDiff = bCoord - aCoord;\n\tvec2 nextDiff = nextCoord - bCoord;\n\n\tvec2 prevTangent = normalize(prevDiff * scaleRatio);\n\tvec2 currTangent = normalize(currDiff * scaleRatio);\n\tvec2 nextTangent = normalize(nextDiff * scaleRatio);\n\n\tvec2 prevNormal = vec2(-prevTangent.y, prevTangent.x);\n\tvec2 currNormal = vec2(-currTangent.y, currTangent.x);\n\tvec2 nextNormal = vec2(-nextTangent.y, nextTangent.x);\n\n\tvec2 startJoinDirection = normalize(prevTangent - currTangent);\n\tvec2 endJoinDirection = normalize(currTangent - nextTangent);\n\n\t// collapsed/unidirectional segment cases\n\t// FIXME: there should be more elegant solution\n\tvec2 prevTanDiff = abs(prevTangent - currTangent);\n\tvec2 nextTanDiff = abs(nextTangent - currTangent);\n\tif (max(prevTanDiff.x, prevTanDiff.y) < MIN_DIFF) {\n\t\tstartJoinDirection = currNormal;\n\t}\n\tif (max(nextTanDiff.x, nextTanDiff.y) < MIN_DIFF) {\n\t\tendJoinDirection = currNormal;\n\t}\n\tif (aCoord == bCoord) {\n\t\tendJoinDirection = startJoinDirection;\n\t\tcurrNormal = prevNormal;\n\t\tcurrTangent = prevTangent;\n\t}\n\n\ttangent = currTangent;\n\n\t//calculate join shifts relative to normals\n\tfloat startJoinShift = dot(currNormal, startJoinDirection);\n\tfloat endJoinShift = dot(currNormal, endJoinDirection);\n\n\tfloat startMiterRatio = abs(1. / startJoinShift);\n\tfloat endMiterRatio = abs(1. / endJoinShift);\n\n\tvec2 startJoin = startJoinDirection * startMiterRatio;\n\tvec2 endJoin = endJoinDirection * endMiterRatio;\n\n\tvec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin;\n\tstartTopJoin = sign(startJoinShift) * startJoin * .5;\n\tstartBotJoin = -startTopJoin;\n\n\tendTopJoin = sign(endJoinShift) * endJoin * .5;\n\tendBotJoin = -endTopJoin;\n\n\tvec2 aTopCoord = aCoord + normalWidth * startTopJoin;\n\tvec2 bTopCoord = bCoord + normalWidth * endTopJoin;\n\tvec2 aBotCoord = aCoord + normalWidth * startBotJoin;\n\tvec2 bBotCoord = bCoord + normalWidth * endBotJoin;\n\n\t//miter anti-clipping\n\tfloat baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x)));\n\tfloat abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x)));\n\n\t//prevent close to reverse direction switch\n\tbool prevReverse = dot(currTangent, prevTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) < length(normalWidth * currNormal);\n\tbool nextReverse = dot(currTangent, nextTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) < length(normalWidth * currNormal);\n\n\tif (prevReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.);\n\t\taBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\taTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!nextReverse && baClipping > 0. && baClipping < length(normalWidth * endBotJoin)) {\n\t\t//handle miter clipping\n\t\tbTopCoord -= normalWidth * endTopJoin;\n\t\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\n\t}\n\n\tif (nextReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\n\t\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!prevReverse && abClipping > 0. && abClipping < length(normalWidth * startBotJoin)) {\n\t\t//handle miter clipping\n\t\taBotCoord -= normalWidth * startBotJoin;\n\t\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\n\t}\n\n\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\n\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\n\n\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\n\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\n\n\t//position is normalized 0..1 coord on the screen\n\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\n\n\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\n\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\n\n\t//bevel miter cutoffs\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n\n\t//round miter cutoffs\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n}\n",frag:"\nprecision highp float;\n\nuniform float dashLength, pixelRatio, thickness, opacity, id, miterMode;\nuniform sampler2D dashTexture;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nvoid main() {\n\tfloat alpha = 1., distToStart, distToEnd;\n\tfloat cutoff = thickness * .5;\n\n\t//bevel miter\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart < -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToStart + 1., 0.), 1.);\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd < -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToEnd + 1., 0.), 1.);\n\t\t}\n\t}\n\n\t// round miter\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart < 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - startCoord);\n\n\t\t\t\tif(radius > cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd < 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - endCoord);\n\n\t\t\t\tif(radius > cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\t}\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25;\n\tfloat dash = texture2D(dashTexture, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n",attributes:{lineEnd:{buffer:n,divisor:0,stride:8,offset:0},lineTop:{buffer:n,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch{t=i}return{fill:e({primitive:"triangle",elements:(e,t)=>t.triangles,offset:0,vert:"\nprecision highp float;\n\nattribute vec2 position, positionFract;\n\nuniform vec4 color;\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio, id;\nuniform vec4 viewport;\nuniform float opacity;\n\nvarying vec4 fragColor;\n\nconst float MAX_LINES = 256.;\n\nvoid main() {\n\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\n\n\tvec2 position = position * scale + translate\n + positionFract * scale + translateFract\n + position * scaleFract\n + positionFract * scaleFract;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n\tfragColor.a *= opacity;\n}\n",frag:"\nprecision highp float;\nvarying vec4 fragColor;\n\nvoid main() {\n\tgl_FragColor = fragColor;\n}\n",uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(e,t)=>[t.viewport.x,t.viewport.y,e.viewportWidth,e.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:i,miter:t}},f.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},f.prototype.render=function(...e){e.length&&this.update(...e),this.draw()},f.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((e,t)=>{if(e&&Array.isArray(e))return this.draw(...e);"number"==typeof e&&(e=this.passes[e]),e&&e.count>1&&e.opacity&&(this.regl._refresh(),e.fill&&e.triangles&&e.triangles.length>2&&this.shaders.fill(e),e.thickness&&(e.scale[0]*e.viewport.width>f.precisionThreshold||e.scale[1]*e.viewport.height>f.precisionThreshold||"rect"===e.join||!e.join&&(e.thickness<=2||e.count>=f.maxPoints)?this.shaders.rect(e):this.shaders.miter(e)))}),this},f.prototype.update=function(e){if(!e)return;null!=e.length?"number"==typeof e[0]&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:d}=this;if(e.forEach((e,m)=>{let g=this.passes[m];if(void 0!==e){if(null===e)return void(this.passes[m]=null);if("number"==typeof e[0]&&(e={positions:e}),e=i(e,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),g||(this.passes[m]=g={id:m,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},e=a({},f.defaults,e)),null!=e.thickness&&(g.thickness=parseFloat(e.thickness)),null!=e.opacity&&(g.opacity=parseFloat(e.opacity)),null!=e.miterLimit&&(g.miterLimit=parseFloat(e.miterLimit)),null!=e.overlay&&(g.overlay=!!e.overlay,m<f.maxLines&&(g.depth=2*(f.maxLines-1-m%f.maxLines)/f.maxLines-1)),null!=e.join&&(g.join=e.join),null!=e.hole&&(g.hole=e.hole),null!=e.fill&&(g.fill=e.fill?n(e.fill,"uint8"):null),null!=e.viewport&&(g.viewport=p(e.viewport)),g.viewport||(g.viewport=p([d.drawingBufferWidth,d.drawingBufferHeight])),null!=e.close&&(g.close=e.close),null===e.positions&&(e.positions=[]),e.positions){let t,n;if(e.positions.x&&e.positions.y){let r=e.positions.x,a=e.positions.y;n=g.count=Math.max(r.length,a.length),t=new Float64Array(2*n);for(let e=0;e<n;e++)t[2*e]=r[e],t[2*e+1]=a[e]}else t=o(e.positions,"float64"),n=g.count=Math.floor(t.length/2);let a=g.bounds=r(t,2);if(g.fill){let n=[],r={},a=0;for(let e=0,i=0,o=g.count;e<o;e++){let o=t[2*e],s=t[2*e+1];isNaN(o)||isNaN(s)||null==o||null==s?(o=t[2*a],s=t[2*a+1],r[e]=a):a=e,n[i++]=o,n[i++]=s}if(e.splitNull){g.count-1 in r||(r[g.count]=g.count-1);let e=Object.keys(r).map(Number).sort((e,t)=>e-t),t=[],a=0,i=null!=g.hole?g.hole[0]:null;if(null!=i){let t=h(e,e=>e>=i);e=e.slice(0,t),e.push(i)}for(let r=0;r<e.length;r++){let o=n.slice(2*a,2*e[r]).concat(i?n.slice(2*i):[]),l=(g.hole||[]).map(t=>t-i+(e[r]-a)),c=s(o,l);c=c.map(t=>t+a+(t+a<e[r]?0:i-e[r])),t.push(...c),a=e[r]+1}for(let e=0,n=t.length;e<n;e++)null!=r[t[e]]&&(t[e]=r[t[e]]);g.triangles=t}else{let e=s(n,g.hole||[]);for(let t=0,n=e.length;t<n;t++)null!=r[e[t]]&&(e[t]=r[e[t]]);g.triangles=e}}let i=new Float64Array(t);l(i,2,a);let d=new Float64Array(2*n+6);g.close?t[0]===t[2*n-2]&&t[1]===t[2*n-1]?(d[0]=i[2*n-4],d[1]=i[2*n-3]):(d[0]=i[2*n-2],d[1]=i[2*n-1]):(d[0]=i[0],d[1]=i[1]),d.set(i,2),g.close?t[0]===t[2*n-2]&&t[1]===t[2*n-1]?(d[2*n+2]=i[2],d[2*n+3]=i[3],g.count-=1):(d[2*n+2]=i[0],d[2*n+3]=i[1],d[2*n+4]=i[2],d[2*n+5]=i[3]):(d[2*n+2]=i[2*n-2],d[2*n+3]=i[2*n-1],d[2*n+4]=i[2*n-2],d[2*n+5]=i[2*n-1]);var y=c(d);g.positionBuffer(y);var b=u(d,y);g.positionFractBuffer(b)}if(e.range?g.range=e.range:g.range||(g.range=g.bounds),(e.range||e.positions)&&g.count){let e=g.bounds,t=e[2]-e[0],n=e[3]-e[1],r=g.range[2]-g.range[0],a=g.range[3]-g.range[1];g.scale=[t/r,n/a],g.translate=[-g.range[0]/r+e[0]/r||0,-g.range[1]/a+e[1]/a||0],g.scaleFract=u(g.scale),g.translateFract=u(g.translate)}if(e.dashes){let t,n=0;if(!e.dashes||e.dashes.length<2)n=1,t=new Uint8Array([255,255,255,255,255,255,255,255]);else{n=0;for(let t=0;t<e.dashes.length;++t)n+=e.dashes[t];t=new Uint8Array(n*f.dashMult);let r=0,a=255;for(let n=0;n<2;n++)for(let n=0;n<e.dashes.length;++n){for(let i=0,o=e.dashes[n]*f.dashMult*.5;i<o;++i)t[r++]=a;a^=255}}g.dashLength=n,g.dashTexture({channels:1,data:t,width:t.length,height:1,mag:"linear",min:"linear"},0,0)}if(e.color){let t=g.count,r=e.color;r||(r="transparent");let a=new Uint8Array(4*t+4);if(Array.isArray(r)&&"number"!=typeof r[0]){for(let e=0;e<t;e++){let t=n(r[e],"uint8");a.set(t,4*e)}a.set(n(r[0],"uint8"),4*t)}else{let e=n(r,"uint8");for(let n=0;n<t+1;n++)a.set(e,4*n)}g.colorBuffer({usage:"dynamic",type:"uint8",data:a})}}}),e.length<this.passes.length){for(let t=e.length;t<this.passes.length;t++){let e=this.passes[t];e&&(e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy())}this.passes.length=e.length}let m=[];for(let e=0;e<this.passes.length;e++)null!==this.passes[e]&&m.push(this.passes[e]);return this.passes=m,this},f.prototype.destroy=function(){return this.passes.forEach(e=>{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}}),vpt=Ee((e,t)=>{var n=OO(),r=T4(),a=Dpe(),i=Y3(),o=Qh(),s=TO(),{float32:l,fract32:c}=uZ();t.exports=function(e,t){if("function"==typeof e?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),!(e=t.regl).hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let d,p,h,f,m,g,y=e._gl,b={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},v=[];return f=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),p=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),h=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),m=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),g=e.buffer({usage:"static",type:"float",data:u}),_(t),d=e({vert:"\n\t\tprecision highp float;\n\n\t\tattribute vec2 position, positionFract;\n\t\tattribute vec4 error;\n\t\tattribute vec4 color;\n\n\t\tattribute vec2 direction, lineOffset, capOffset;\n\n\t\tuniform vec4 viewport;\n\t\tuniform float lineWidth, capSize;\n\t\tuniform vec2 scale, scaleFract, translate, translateFract;\n\n\t\tvarying vec4 fragColor;\n\n\t\tvoid main() {\n\t\t\tfragColor = color / 255.;\n\n\t\t\tvec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;\n\n\t\t\tvec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;\n\n\t\t\tvec2 position = position + dxy;\n\n\t\t\tvec2 pos = (position + translate) * scale\n\t\t\t\t+ (positionFract + translateFract) * scale\n\t\t\t\t+ (position + translate) * scaleFract\n\t\t\t\t+ (positionFract + translateFract) * scaleFract;\n\n\t\t\tpos += pixelOffset / viewport.zw;\n\n\t\t\tgl_Position = vec4(pos * 2. - 1., 0, 1);\n\t\t}\n\t\t",frag:"\n\t\tprecision highp float;\n\n\t\tvarying vec4 fragColor;\n\n\t\tuniform float opacity;\n\n\t\tvoid main() {\n\t\t\tgl_FragColor = fragColor;\n\t\t\tgl_FragColor.a *= opacity;\n\t\t}\n\t\t",uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(e,t)=>[t.viewport.x,t.viewport.y,e.viewportWidth,e.viewportHeight]},attributes:{color:{buffer:f,offset:(e,t)=>4*t.offset,divisor:1},position:{buffer:p,offset:(e,t)=>8*t.offset,divisor:1},positionFract:{buffer:h,offset:(e,t)=>8*t.offset,divisor:1},error:{buffer:m,offset:(e,t)=>16*t.offset,divisor:1},direction:{buffer:g,stride:24,offset:0},lineOffset:{buffer:g,stride:24,offset:8},capOffset:{buffer:g,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:u.length}),o(M,{update:_,draw:x,destroy:A,regl:e,gl:y,canvas:y.canvas,groups:v}),M;function M(e){e?_(e):null===e&&A(),x()}function x(t){if("number"==typeof t)return z(t);t&&!Array.isArray(t)&&(t=[t]),e._refresh(),v.forEach((e,n)=>{if(e){if(t&&(t[n]?e.draw=!0:e.draw=!1),!e.draw)return void(e.draw=!0);z(n)}})}function z(e){"number"==typeof e&&(e=v[e]),null!=e&&e&&e.count&&e.color&&e.opacity&&e.positions&&e.positions.length>1&&(e.scaleRatio=[e.scale[0]*e.viewport.width,e.scale[1]*e.viewport.height],d(e),e.after&&e.after(e))}function _(e){if(!e)return;null!=e.length?"number"==typeof e[0]&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let t=0,u=0;if(M.groups=v=e.map((e,l)=>{let d=v[l];return e?("function"==typeof e?e={after:e}:"number"==typeof e[0]&&(e={positions:e}),e=i(e,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),d||(v[l]=d={id:l,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},e=o({},b,e)),a(d,e,[{lineWidth:e=>.5*+e,capSize:e=>.5*+e,opacity:parseFloat,errors:e=>(e=s(e),u+=e.length,e),positions:(e,r)=>(e=s(e,"float64"),r.count=Math.floor(e.length/2),r.bounds=n(e,2),r.offset=t,t+=r.count,e)},{color:(e,t)=>{let n=t.count;if(e||(e="transparent"),!Array.isArray(e)||"number"==typeof e[0]){let t=e;e=Array(n);for(let r=0;r<n;r++)e[r]=t}if(e.length<n)throw Error("Not enough colors");let a=new Uint8Array(4*n);for(let t=0;t<n;t++){let n=r(e[t],"uint8");a.set(n,4*t)}return a},range:(e,t,n)=>{let r=t.bounds;return e||(e=r),t.scale=[1/(e[2]-e[0]),1/(e[3]-e[1])],t.translate=[-e[0],-e[1]],t.scaleFract=c(t.scale),t.translateFract=c(t.translate),e},viewport:e=>{let t;return Array.isArray(e)?t={x:e[0],y:e[1],width:e[2]-e[0],height:e[3]-e[1]}:e?(t={x:e.x||e.left||0,y:e.y||e.top||0},e.right?t.width=e.right-t.x:t.width=e.w||e.width||0,e.bottom?t.height=e.bottom-t.y:t.height=e.h||e.height||0):t={x:0,y:0,width:y.drawingBufferWidth,height:y.drawingBufferHeight},t}}]),d):d}),t||u){let e=v.reduce((e,t,n)=>e+(t?t.count:0),0),t=new Float64Array(2*e),n=new Uint8Array(4*e),r=new Float32Array(4*e);v.forEach((e,a)=>{if(!e)return;let{positions:i,count:o,offset:s,color:l,errors:c}=e;o&&(n.set(l,4*s),r.set(c,4*s),t.set(i,2*s))});var d=l(t);p(d);var g=c(t,d);h(g),f(n),m(r)}}function A(){p.destroy(),h.destroy(),f.destroy(),m.destroy(),g.destroy()}};var u=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]]}),bpt=Ee((e,t)=>{var n=/[\'\"]/;t.exports=function(e){return e?(n.test(e.charAt(0))&&(e=e.substr(1)),n.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}}),p2e=Ee((e,t)=>{t.exports=["inherit","initial","unset"]}),m2e=Ee((e,t)=>{t.exports=["caption","icon","menu","message-box","small-caption","status-bar"]}),v2e=Ee((e,t)=>{t.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]}),g2e=Ee((e,t)=>{t.exports=["normal","italic","oblique"]}),y2e=Ee((e,t)=>{t.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]}),zpt=Ee((e,t)=>{function n(e,t){if("string"!=typeof e)return[e];var n=[e];"string"==typeof t||Array.isArray(t)?t={brackets:t}:t||(t={});var r=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],a=t.escape||"___",i=!!t.flat;r.forEach(function(e){var t=new RegExp(["\\",e[0],"[^\\",e[0],"\\",e[1],"]*\\",e[1]].join("")),r=[];function i(t,i,o){var s=n.push(t.slice(e[0].length,-e[1].length))-1;return r.push(s),a+s+a}n.forEach(function(e,r){for(var a,o=0;e!=a;)if(a=e,e=e.replace(t,i),o++>1e4)throw Error("References have circular dependency. Please, check them.");n[r]=e}),r=r.reverse(),n=n.map(function(t){return r.forEach(function(n){t=t.replace(new RegExp("(\\"+a+n+"\\"+a+")","g"),e[0]+"$1"+e[1])}),t})});var o=new RegExp("\\"+a+"([0-9]+)\\"+a);return i?n:function e(t,n,r){for(var a,i=[],s=0;a=o.exec(t);){if(s++>1e4)throw Error("Circular references in parenthesis");i.push(t.slice(0,a.index)),i.push(e(n[a[1]],n)),t=t.slice(a.index+a[0].length)}return i.push(t),i}(n[0],n)}function r(e,t){if(t&&t.flat){var n,r=t&&t.escape||"___",a=e[0];if(!a)return"";for(var i=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;a!=n;){if(o++>1e4)throw Error("Circular references in "+e);n=a,a=a.replace(i,s)}return a}return e.reduce(function e(t,n){return Array.isArray(n)&&(n=n.reduce(e,"")),t+n},"");function s(t,n){if(null==e[n])throw Error("Reference "+n+"is undefined");return e[n]}}function a(e,t){return Array.isArray(e)?r(e,t):n(e,t)}a.parse=n,a.stringify=r,t.exports=a}),Opt=Ee((e,t)=>{var n=zpt();t.exports=function(e,t,r){if(null==e)throw Error("First argument should be a string");if(null==t)throw Error("Separator should be a string or a RegExp");r?("string"==typeof r||Array.isArray(r))&&(r={ignore:r}):r={},null==r.escape&&(r.escape=!0),null==r.ignore?r.ignore=["[]","()","{}","<>",'""',"''","``","“”","«»"]:("string"==typeof r.ignore&&(r.ignore=[r.ignore]),r.ignore=r.ignore.map(function(e){return 1===e.length&&(e+=e),e}));var a=n.parse(e,{flat:!0,brackets:r.ignore}),i=a[0].split(t);if(r.escape){for(var o=[],s=0;s<i.length;s++){var l=i[s],c=i[s+1];"\\"===l[l.length-1]&&"\\"!==l[l.length-2]?(o.push(l+t+c),s++):o.push(l)}i=o}for(s=0;s<i.length;s++)a[0]=i[s],i[s]=n.stringify(a,{flat:!0});return i}}),Tpt=Ee((e,t)=>{t.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]}),M2e=Ee((e,t)=>{var n=Tpt();t.exports={isSize:function(e){return/^[\d\.]/.test(e)||-1!==e.indexOf("/")||-1!==n.indexOf(e)}}}),qpt=Ee((e,t)=>{var n=bpt(),r=p2e(),a=m2e(),i=v2e(),o=g2e(),s=y2e(),l=Opt(),c=M2e().isSize;t.exports=d;var u=d.cache={};function d(e){if("string"!=typeof e)throw new Error("Font argument must be a string.");if(u[e])return u[e];if(""===e)throw new Error("Cannot parse an empty string.");if(-1!==a.indexOf(e))return u[e]={system:e};for(var t,d={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},h=l(e,/\s+/);t=h.shift();){if(-1!==r.indexOf(t))return["style","variant","weight","stretch"].forEach(function(e){d[e]=t}),u[e]=d;if(-1===o.indexOf(t))if("normal"!==t&&"small-caps"!==t)if(-1===s.indexOf(t)){if(-1===i.indexOf(t)){if(c(t)){var f=l(t,"/");if(d.size=f[0],null!=f[1]?d.lineHeight=p(f[1]):"/"===h[0]&&(h.shift(),d.lineHeight=p(h.shift())),!h.length)throw new Error("Missing required font-family.");return d.family=l(h.join(" "),/\s*,\s*/).map(n),u[e]=d}throw new Error("Unknown or unsupported font token: "+t)}d.weight=t}else d.stretch=t;else d.variant=t;else d.style=t}throw new Error("Missing required font-size.")}function p(e){var t=parseFloat(e);return t.toString()===e?t:e}}),z2e=Ee((e,t)=>{var n=Y3(),r=M2e().isSize,a=f(p2e()),i=f(m2e()),o=f(v2e()),s=f(g2e()),l=f(y2e()),c={normal:1,"small-caps":1},u={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},d="1rem",p="serif";function h(e,t){if(e&&!t[e]&&!a[e])throw Error("Unknown keyword `"+e+"`");return e}function f(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t}t.exports=function(e){if((e=n(e,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"})).system)return e.system&&h(e.system,i),e.system;if(h(e.style,s),h(e.variant,c),h(e.weight,o),h(e.stretch,l),null==e.size&&(e.size=d),"number"==typeof e.size&&(e.size+="px"),!r)throw Error("Bad size value `"+e.size+"`");e.family||(e.family=p),Array.isArray(e.family)&&(e.family.length||(e.family=[p]),e.family=e.family.map(function(e){return u[e]?e:'"'+e+'"'}).join(", "));var t=[];return t.push(e.style),e.variant!==e.style&&t.push(e.variant),e.weight!==e.variant&&e.weight!==e.style&&t.push(e.weight),e.stretch!==e.weight&&e.stretch!==e.variant&&e.stretch!==e.style&&t.push(e.stretch),t.push(e.size+(null==e.lineHeight||"normal"===e.lineHeight||e.lineHeight+""=="1"?"":"/"+e.lineHeight)),t.push(e.family),t.filter(Boolean).join(" ")}}),Lpt=Ee((e,t)=>{t.exports={parse:qpt(),stringify:z2e()}}),Ppt=Ee((e,t)=>{var n,r;n=e,r=function(){var e=function(e){return e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Float32Array||e instanceof Float64Array||e instanceof Uint8ClampedArray},t=function(e,t){for(var n=Object.keys(t),r=0;r<n.length;++r)e[n[r]]=t[n[r]];return e},n="\n";function r(e){return typeof atob<"u"?atob(e):"base64:"+e}function a(e){var t=new Error("(regl) "+e);throw console.error(t),t}function i(e,t){e||a(t)}function o(e){return e?": "+e:""}function s(e,t){switch(t){case"number":return"number"==typeof e;case"object":return"object"==typeof e;case"string":return"string"==typeof e;case"boolean":return"boolean"==typeof e;case"function":return"function"==typeof e;case"undefined":return typeof e>"u";case"symbol":return"symbol"==typeof e}}function l(e,t,n){t.indexOf(e)<0&&a("invalid value"+o(n)+". must be one of: "+t)}var c=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function u(e,t){for(e+="";e.length<t;)e=" "+e;return e}function d(){this.name="unknown",this.lines=[],this.index={},this.hasErrors=!1}function p(e,t){this.number=e,this.line=t,this.errors=[]}function h(e,t,n){this.file=e,this.line=t,this.message=n}function f(){var e=new Error,t=(e.stack||e).toString(),n=/compileProcedure.*\n\s*at.*\((.*)\)/.exec(t);if(n)return n[1];var r=/compileProcedure.*\n\s*at\s+(.*)(\n|$)/.exec(t);return r?r[1]:"unknown"}function m(){var e=new Error,t=(e.stack||e).toString(),n=/at REGLCommand.*\n\s+at.*\((.*)\)/.exec(t);if(n)return n[1];var r=/at REGLCommand.*\n\s+at\s+(.*)\n/.exec(t);return r?r[1]:"unknown"}function g(e,t){var n=e.split("\n"),a=1,i=0,o={unknown:new d,0:new d};o.unknown.name=o[0].name=t||f(),o.unknown.lines.push(new p(0,""));for(var s=0;s<n.length;++s){var l=n[s],c=/^\s*#\s*(\w+)\s+(.+)\s*$/.exec(l);if(c)switch(c[1]){case"line":var u=/(\d+)(\s+\d+)?/.exec(c[2]);u&&(a=0|u[1],u[2]&&((i=0|u[2])in o||(o[i]=new d)));break;case"define":var h=/SHADER_NAME(_B64)?\s+(.*)$/.exec(c[2]);h&&(o[i].name=h[1]?r(h[2]):h[2])}o[i].lines.push(new p(a++,l))}return Object.keys(o).forEach(function(e){var t=o[e];t.lines.forEach(function(e){t.index[e.number]=e})}),o}function y(e){e._commandRef=f()}function b(e,t){var n=m();a(e+" in command "+(t||f())+("unknown"===n?"":" called from "+n))}function v(e,t,n,r){s(e,t)||b("invalid parameter type"+o(n)+". expected "+t+", got "+typeof e,r||f())}var M=33071,x={};function z(e,t){return 32820===e||32819===e||33635===e?2:34042===e?4:x[e]*t}function _(e){return!(e&e-1||!e)}x[5120]=x[5121]=1,x[5122]=x[5123]=x[36193]=x[33635]=x[32819]=x[32820]=2,x[5124]=x[5125]=x[5126]=x[34042]=4;var A=t(i,{optional:function(e){e()},raise:a,commandRaise:b,command:function(e,t,n){e||b(t,n||f())},parameter:function(e,t,n){e in t||a("unknown parameter ("+e+")"+o(n)+". possible values: "+Object.keys(t).join())},commandParameter:function(e,t,n,r){e in t||b("unknown parameter ("+e+")"+o(n)+". possible values: "+Object.keys(t).join(),r||f())},constructor:function(e){Object.keys(e).forEach(function(e){c.indexOf(e)<0&&a('invalid regl constructor argument "'+e+'". must be one of '+c)})},type:function(e,t,n){s(e,t)||a("invalid parameter type"+o(n)+". expected "+t+", got "+typeof e)},commandType:v,isTypedArray:function(t,n){e(t)||a("invalid parameter type"+o(n)+". must be a typed array")},nni:function(e,t){e>=0&&(0|e)===e||a("invalid parameter type, ("+e+")"+o(t)+". must be a nonnegative integer")},oneOf:l,shaderError:function(e,t,r,a,o){if(!e.getShaderParameter(t,e.COMPILE_STATUS)){var s=e.getShaderInfoLog(t),l=a===e.FRAGMENT_SHADER?"fragment":"vertex";v(r,"string",l+" shader source must be a string",o);var c=g(r,o),d=function(e){var t=[];return e.split("\n").forEach(function(e){if(!(e.length<5)){var n=/^ERROR:\s+(\d+):(\d+):\s*(.*)$/.exec(e);n?t.push(new h(0|n[1],0|n[2],n[3].trim())):e.length>0&&t.push(new h("unknown",0,e))}}),t}(s);(function(e,t){t.forEach(function(t){var n=e[t.file];if(n){var r=n.index[t.line];if(r)return r.errors.push(t),void(n.hasErrors=!0)}e.unknown.hasErrors=!0,e.unknown.lines[0].errors.push(t)})})(c,d),Object.keys(c).forEach(function(e){var t=c[e];if(t.hasErrors){var r=[""],a=[""];i("file number "+e+": "+t.name+"\n","color:red;text-decoration:underline;font-weight:bold"),t.lines.forEach(function(e){if(e.errors.length>0){i(u(e.number,4)+"| ","background-color:yellow; font-weight:bold"),i(e.line+n,"color:red; background-color:yellow; font-weight:bold");var t=0;e.errors.forEach(function(r){var a=r.message,o=/^\s*'(.*)'\s*:\s*(.*)$/.exec(a);if(o){var s=o[1];a=o[2],"assign"===s&&(s="="),t=Math.max(e.line.indexOf(s,t),0)}else t=0;i(u("| ",6)),i(u("^^^",t+3)+n,"font-weight:bold"),i(u("| ",6)),i(a+n,"font-weight:bold")}),i(u("| ",6)+n)}else i(u(e.number,4)+"| "),i(e.line+n,"color:red")}),typeof document<"u"&&!window.chrome?(a[0]=r.join("%c"),console.log.apply(console,a)):r.join("")}function i(e,t){r.push(e),a.push(t||"")}}),i.raise("Error compiling "+l+" shader, "+c[0].name)}},linkError:function(e,t,n,r,a){if(!e.getProgramParameter(t,e.LINK_STATUS)){e.getProgramInfoLog(t);var o=g(n,a),s='Error linking program with vertex shader, "'+g(r,a)[0].name+'", and fragment shader "'+o[0].name+'"';i.raise(s)}},callSite:m,saveCommandRef:y,saveDrawInfo:function(e,t,n,r){function a(e){return e?r.id(e):0}function i(e,t){Object.keys(t).forEach(function(t){e[r.id(t)]=!0})}y(e),e._fragId=a(e.static.frag),e._vertId=a(e.static.vert);var o=e._uniformSet={};i(o,t.static),i(o,t.dynamic);var s=e._attributeSet={};i(s,n.static),i(s,n.dynamic),e._hasCount="count"in e.static||"count"in e.dynamic||"elements"in e.static||"elements"in e.dynamic},framebufferFormat:function(e,t,n){e.texture?l(e.texture._texture.internalformat,t,"unsupported texture format for attachment"):l(e.renderbuffer._renderbuffer.format,n,"unsupported renderbuffer format for attachment")},guessCommand:f,texture2D:function(e,t,n){var r,a=t.width,o=t.height,s=t.channels;i(a>0&&a<=n.maxTextureSize&&o>0&&o<=n.maxTextureSize,"invalid texture shape"),(e.wrapS!==M||e.wrapT!==M)&&i(_(a)&&_(o),"incompatible wrap mode for texture, both width and height must be power of 2"),1===t.mipmask?1!==a&&1!==o&&i(9984!==e.minFilter&&9986!==e.minFilter&&9985!==e.minFilter&&9987!==e.minFilter,"min filter requires mipmap"):(i(_(a)&&_(o),"texture must be a square power of 2 to support mipmapping"),i(t.mipmask===(a<<1)-1,"missing or incomplete mipmap data")),5126===t.type&&(n.extensions.indexOf("oes_texture_float_linear")<0&&i(9728===e.minFilter&&9728===e.magFilter,"filter not supported, must enable oes_texture_float_linear"),i(!e.genMipmaps,"mipmap generation not supported with float textures"));var l=t.images;for(r=0;r<16;++r)if(l[r]){var c=a>>r,u=o>>r;i(t.mipmask&1<<r,"missing mipmap data");var d=l[r];if(i(d.width===c&&d.height===u,"invalid shape for mip images"),i(d.format===t.format&&d.internalformat===t.internalformat&&d.type===t.type,"incompatible type for mip image"),!d.compressed)if(d.data){var p=Math.ceil(z(d.type,s)*c/d.unpackAlignment)*d.unpackAlignment;i(d.data.byteLength===p*u,"invalid data for image, buffer size is inconsistent with image format")}else d.element||d.copy}else e.genMipmaps||i(!(t.mipmask&1<<r),"extra mipmap data");t.compressed&&i(!e.genMipmaps,"mipmap generation for compressed images not supported")},textureCube:function(e,t,n,r){var a=e.width,o=e.height,s=e.channels;i(a>0&&a<=r.maxTextureSize&&o>0&&o<=r.maxTextureSize,"invalid texture shape"),i(a===o,"cube map must be square"),i(t.wrapS===M&&t.wrapT===M,"wrap mode not supported by cube map");for(var l=0;l<n.length;++l){var c=n[l];i(c.width===a&&c.height===o,"inconsistent cube map face shape"),t.genMipmaps&&(i(!c.compressed,"can not generate mipmap for compressed textures"),i(1===c.mipmask,"can not specify mipmaps and generate mipmaps"));for(var u=c.images,d=0;d<16;++d){var p=u[d];if(p){var h=a>>d,f=o>>d;i(c.mipmask&1<<d,"missing mipmap data"),i(p.width===h&&p.height===f,"invalid shape for mip images"),i(p.format===e.format&&p.internalformat===e.internalformat&&p.type===e.type,"incompatible type for mip image"),p.compressed||(p.data?i(p.data.byteLength===h*f*Math.max(z(p.type,s),p.unpackAlignment),"invalid data for image, buffer size is inconsistent with image format"):p.element||p.copy)}}}}}),O=0;function w(e,t){this.id=O++,this.type=e,this.data=t}function k(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function T(e){if(0===e.length)return[];var t=e.charAt(0),n=e.charAt(e.length-1);if(e.length>1&&t===n&&('"'===t||"'"===t))return['"'+k(e.substr(1,e.length-2))+'"'];var r=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(e);if(r)return T(e.substr(0,r.index)).concat(T(r[1])).concat(T(e.substr(r.index+r[0].length)));var a=e.split(".");if(1===a.length)return['"'+k(e)+'"'];for(var i=[],o=0;o<a.length;++o)i=i.concat(T(a[o]));return i}function S(e){return"["+T(e).join("][")+"]"}var C={DynamicVariable:w,define:function(e,t){return new w(e,S(t+""))},isDynamic:function(e){return"function"==typeof e&&!e._reglType||e instanceof w},unbox:function e(t,n){return"function"==typeof t?new w(0,t):"number"==typeof t||"boolean"==typeof t?new w(5,t):Array.isArray(t)?new w(6,t.map(function(t,r){return e(t,n+"["+r+"]")})):t instanceof w?t:void A(!1,"invalid option type in uniform "+n)},accessor:S},E={next:"function"==typeof requestAnimationFrame?function(e){return requestAnimationFrame(e)}:function(e){return setTimeout(e,16)},cancel:"function"==typeof cancelAnimationFrame?function(e){return cancelAnimationFrame(e)}:clearTimeout},q=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function D(e){return"string"==typeof e?e.split():(A(Array.isArray(e),"invalid extension array"),e)}function R(e){return"string"==typeof e?(A(typeof document<"u","not supported outside of DOM"),document.querySelector(e)):e}function L(e){var n,r,a,i,o=e||{},s={},l=[],c=[],u=typeof window>"u"?1:window.devicePixelRatio,d=!1,p=function(e){e&&A.raise(e)},h=function(){};if("string"==typeof o?(A(typeof document<"u","selector queries only supported in DOM environments"),n=document.querySelector(o),A(n,"invalid query string for element")):"object"==typeof o?function(e){return"string"==typeof e.nodeName&&"function"==typeof e.appendChild&&"function"==typeof e.getBoundingClientRect}(o)?n=o:function(e){return"function"==typeof e.drawArrays||"function"==typeof e.drawElements}(o)?a=(i=o).canvas:(A.constructor(o),"gl"in o?i=o.gl:"canvas"in o?a=R(o.canvas):"container"in o&&(r=R(o.container)),"attributes"in o&&(s=o.attributes,A.type(s,"object","invalid context attributes")),"extensions"in o&&(l=D(o.extensions)),"optionalExtensions"in o&&(c=D(o.optionalExtensions)),"onDone"in o&&(A.type(o.onDone,"function","invalid or missing onDone callback"),p=o.onDone),"profile"in o&&(d=!!o.profile),"pixelRatio"in o&&(u=+o.pixelRatio,A(u>0,"invalid pixel ratio"))):A.raise("invalid arguments to regl"),n&&("canvas"===n.nodeName.toLowerCase()?a=n:r=n),!i){if(!a){A(typeof document<"u","must manually specify webgl context outside of DOM environments");var f=function(e,n,r){var a,i=document.createElement("canvas");function o(){var t=window.innerWidth,n=window.innerHeight;if(e!==document.body){var a=i.getBoundingClientRect();t=a.right-a.left,n=a.bottom-a.top}i.width=r*t,i.height=r*n}return t(i.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),e.appendChild(i),e===document.body&&(i.style.position="absolute",t(e.style,{margin:0,padding:0})),e!==document.body&&"function"==typeof ResizeObserver?(a=new ResizeObserver(function(){setTimeout(o)})).observe(e):window.addEventListener("resize",o,!1),o(),{canvas:i,onDestroy:function(){a?a.disconnect():window.removeEventListener("resize",o),e.removeChild(i)}}}(r||document.body,0,u);if(!f)return null;a=f.canvas,h=f.onDestroy}void 0===s.premultipliedAlpha&&(s.premultipliedAlpha=!0),i=function(e,t){function n(n){try{return e.getContext(n,t)}catch{return null}}return n("webgl")||n("experimental-webgl")||n("webgl-experimental")}(a,s)}return i?{gl:i,canvas:a,container:r,extensions:l,optionalExtensions:c,pixelRatio:u,profile:d,onDone:p,onDestroy:h}:(h(),p("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function I(e,t){for(var n=Array(e),r=0;r<e;++r)n[r]=t(r);return n}function W(e){var t,n;return t=(e>65535)<<4,t|=n=((e>>>=t)>255)<<3,t|=n=((e>>>=n)>15)<<2,(t|=n=((e>>>=n)>3)<<1)|(e>>>=n)>>1}function N(){var e=I(8,function(){return[]});function t(t){var n=function(e){for(var t=16;t<=1<<28;t*=16)if(e<=t)return t;return 0}(t),r=e[W(n)>>2];return r.length>0?r.pop():new ArrayBuffer(n)}function n(t){e[W(t.byteLength)>>2].push(t)}return{alloc:t,free:n,allocType:function(e,n){var r=null;switch(e){case 5120:r=new Int8Array(t(n),0,n);break;case 5121:r=new Uint8Array(t(n),0,n);break;case 5122:r=new Int16Array(t(2*n),0,n);break;case 5123:r=new Uint16Array(t(2*n),0,n);break;case 5124:r=new Int32Array(t(4*n),0,n);break;case 5125:r=new Uint32Array(t(4*n),0,n);break;case 5126:r=new Float32Array(t(4*n),0,n);break;default:return null}return r.length!==n?r.subarray(0,n):r},freeType:function(e){n(e.buffer)}}}var P=N();P.zero=N();var B=3553,F=6408,j=5126,U=36160;function V(t){return!!t&&"object"==typeof t&&Array.isArray(t.shape)&&Array.isArray(t.stride)&&"number"==typeof t.offset&&t.shape.length===t.stride.length&&(Array.isArray(t.data)||e(t.data))}var H=function(e){return Object.keys(e).map(function(t){return e[t]})},X={shape:function(e){for(var t=[],n=e;n.length;n=n[0])t.push(n.length);return t},flatten:function(e,t,n,r){var a=1;if(t.length)for(var i=0;i<t.length;++i)a*=t[i];else a=0;var o=r||P.allocType(n,a);switch(t.length){case 0:break;case 1:!function(e,t,n){for(var r=0;r<t;++r)n[r]=e[r]}(e,t[0],o);break;case 2:!function(e,t,n,r){for(var a=0,i=0;i<t;++i)for(var o=e[i],s=0;s<n;++s)r[a++]=o[s]}(e,t[0],t[1],o);break;case 3:G(e,t[0],t[1],t[2],o,0);break;default:Y(e,t,0,o,0)}return o}};function G(e,t,n,r,a,i){for(var o=i,s=0;s<t;++s)for(var l=e[s],c=0;c<n;++c)for(var u=l[c],d=0;d<r;++d)a[o++]=u[d]}function Y(e,t,n,r,a){for(var i=1,o=n+1;o<t.length;++o)i*=t[o];var s=t[n];if(t.length-n===4){var l=t[n+1],c=t[n+2],u=t[n+3];for(o=0;o<s;++o)G(e[o],l,c,u,r,a),a+=i}else for(o=0;o<s;++o)Y(e[o],t,n+1,r,a),a+=i}var Z={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121},$={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},J={dynamic:35048,stream:35040,static:35044},Q=X.flatten,K=X.shape,ee=5121,te=5126,ne=[];function re(e){return 0|Z[Object.prototype.toString.call(e)]}function ae(e,t){for(var n=0;n<t.length;++n)e[n]=t[n]}function ie(e,t,n,r,a,i,o){for(var s=0,l=0;l<n;++l)for(var c=0;c<r;++c)e[s++]=t[a*l+i*c+o]}ne[5120]=1,ne[5122]=2,ne[5124]=4,ne[5121]=1,ne[5123]=2,ne[5125]=4,ne[5126]=4;var oe={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},se=5121,le=5123,ce=5125,ue=34963,de=new Float32Array(1),pe=new Uint32Array(de.buffer);function he(e){for(var t=P.allocType(5123,e.length),n=0;n<e.length;++n)if(isNaN(e[n]))t[n]=65535;else if(e[n]===1/0)t[n]=31744;else if(e[n]===-1/0)t[n]=64512;else{de[0]=e[n];var r=pe[0],a=r>>>31<<15,i=(r<<1>>>24)-127,o=r>>13&1023;if(i<-24)t[n]=a;else if(i<-14){var s=-14-i;t[n]=a+(o+1024>>s)}else t[n]=i>15?a+31744:a+(i+15<<10)+o}return t}function fe(t){return Array.isArray(t)||e(t)}var me=function(e){return!(e&e-1||!e)},ge=3553,ye=34067,be=34069,ve=6408,Me=6406,xe=6407,ze=6409,_e=6410,Ae=32855,Oe=6402,we=34041,ke=35904,Te=35906,Se=36193,Ce=33776,Ee=33777,qe=33778,De=33779,Re=5121,Le=5123,Ie=5125,We=5126,Ne=33071,Pe=9728,Be=9984,Fe=9987,je=4352,Ue=33984,Ve=[Be,9986,9985,Fe],He=[0,ze,_e,xe,ve],Xe={};function Ge(e){return"[object "+e+"]"}Xe[ze]=Xe[Me]=Xe[Oe]=1,Xe[we]=Xe[_e]=2,Xe[xe]=Xe[ke]=3,Xe[ve]=Xe[Te]=4;var Ye=Ge("HTMLCanvasElement"),Ze=Ge("OffscreenCanvas"),$e=Ge("CanvasRenderingContext2D"),Je=Ge("ImageBitmap"),Qe=Ge("HTMLImageElement"),Ke=Ge("HTMLVideoElement"),et=Object.keys(Z).concat([Ye,Ze,$e,Je,Qe,Ke]),tt=[];tt[Re]=1,tt[We]=4,tt[Se]=2,tt[Le]=2,tt[Ie]=4;var nt=[];function rt(e){return Array.isArray(e)&&(0===e.length||"number"==typeof e[0])}function at(e){return!!Array.isArray(e)&&!(0===e.length||!fe(e[0]))}function it(e){return Object.prototype.toString.call(e)}function ot(e){return it(e)===Ye}function st(e){return it(e)===Ze}function lt(e){if(!e)return!1;var t=it(e);return et.indexOf(t)>=0||rt(e)||at(e)||V(e)}function ct(e){return 0|Z[Object.prototype.toString.call(e)]}function ut(e,t){return P.allocType(e.type===Se?We:e.type,t)}function dt(e,t){e.type===Se?(e.data=he(t),P.freeType(t)):e.data=t}function pt(e,t,n,r,a,i){var o;if(o=typeof nt[e]<"u"?nt[e]:Xe[e]*tt[t],i&&(o*=6),a){for(var s=0,l=n;l>=1;)s+=o*l*l,l/=2;return s}return o*n*r}function ht(n,r,a,i,o,s,l){var c={"don't care":je,"dont care":je,nice:4354,fast:4353},u={repeat:10497,clamp:Ne,mirror:33648},d={nearest:Pe,linear:9729},p=t({mipmap:Fe,"nearest mipmap nearest":Be,"linear mipmap nearest":9985,"nearest mipmap linear":9986,"linear mipmap linear":Fe},d),h={none:0,browser:37444},f={uint8:Re,rgba4:32819,rgb565:33635,"rgb5 a1":32820},m={alpha:Me,luminance:ze,"luminance alpha":_e,rgb:xe,rgba:ve,rgba4:32854,"rgb5 a1":Ae,rgb565:36194},g={};r.ext_srgb&&(m.srgb=ke,m.srgba=Te),r.oes_texture_float&&(f.float32=f.float=We),r.oes_texture_half_float&&(f.float16=f["half float"]=Se),r.webgl_depth_texture&&(t(m,{depth:Oe,"depth stencil":we}),t(f,{uint16:Le,uint32:Ie,"depth stencil":34042})),r.webgl_compressed_texture_s3tc&&t(g,{"rgb s3tc dxt1":Ce,"rgba s3tc dxt1":Ee,"rgba s3tc dxt3":qe,"rgba s3tc dxt5":De}),r.webgl_compressed_texture_atc&&t(g,{"rgb atc":35986,"rgba atc explicit alpha":35987,"rgba atc interpolated alpha":34798}),r.webgl_compressed_texture_pvrtc&&t(g,{"rgb pvrtc 4bppv1":35840,"rgb pvrtc 2bppv1":35841,"rgba pvrtc 4bppv1":35842,"rgba pvrtc 2bppv1":35843}),r.webgl_compressed_texture_etc1&&(g["rgb etc1"]=36196);var y=Array.prototype.slice.call(n.getParameter(34467));Object.keys(g).forEach(function(e){var t=g[e];y.indexOf(t)>=0&&(m[e]=t)});var b=Object.keys(m);a.textureFormats=b;var v=[];Object.keys(m).forEach(function(e){var t=m[e];v[t]=e});var M=[];Object.keys(f).forEach(function(e){var t=f[e];M[t]=e});var x=[];Object.keys(d).forEach(function(e){x[d[e]]=e});var z=[];Object.keys(p).forEach(function(e){var t=p[e];z[t]=e});var _=[];Object.keys(u).forEach(function(e){_[u[e]]=e});var O=b.reduce(function(e,t){var n=m[t];return n===ze||n===Me||n===ze||n===_e||n===Oe||n===we||r.ext_srgb&&(n===ke||n===Te)?e[n]=n:n===Ae||t.indexOf("rgba")>=0?e[n]=ve:e[n]=xe,e},{});function w(){this.internalformat=ve,this.format=ve,this.type=Re,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=37444,this.width=0,this.height=0,this.channels=0}function k(e,t){e.internalformat=t.internalformat,e.format=t.format,e.type=t.type,e.compressed=t.compressed,e.premultiplyAlpha=t.premultiplyAlpha,e.flipY=t.flipY,e.unpackAlignment=t.unpackAlignment,e.colorSpace=t.colorSpace,e.width=t.width,e.height=t.height,e.channels=t.channels}function T(e,t){if("object"==typeof t&&t){if("premultiplyAlpha"in t&&(A.type(t.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),e.premultiplyAlpha=t.premultiplyAlpha),"flipY"in t&&(A.type(t.flipY,"boolean","invalid texture flip"),e.flipY=t.flipY),"alignment"in t&&(A.oneOf(t.alignment,[1,2,4,8],"invalid texture unpack alignment"),e.unpackAlignment=t.alignment),"colorSpace"in t&&(A.parameter(t.colorSpace,h,"invalid colorSpace"),e.colorSpace=h[t.colorSpace]),"type"in t){var n=t.type;A(r.oes_texture_float||!("float"===n||"float32"===n),"you must enable the OES_texture_float extension in order to use floating point textures."),A(r.oes_texture_half_float||!("half float"===n||"float16"===n),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),A(r.webgl_depth_texture||!("uint16"===n||"uint32"===n||"depth stencil"===n),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),A.parameter(n,f,"invalid texture type"),e.type=f[n]}var i=e.width,o=e.height,s=e.channels,l=!1;"shape"in t?(A(Array.isArray(t.shape)&&t.shape.length>=2,"shape must be an array"),i=t.shape[0],o=t.shape[1],3===t.shape.length&&(s=t.shape[2],A(s>0&&s<=4,"invalid number of channels"),l=!0),A(i>=0&&i<=a.maxTextureSize,"invalid width"),A(o>=0&&o<=a.maxTextureSize,"invalid height")):("radius"in t&&(i=o=t.radius,A(i>=0&&i<=a.maxTextureSize,"invalid radius")),"width"in t&&(i=t.width,A(i>=0&&i<=a.maxTextureSize,"invalid width")),"height"in t&&(o=t.height,A(o>=0&&o<=a.maxTextureSize,"invalid height")),"channels"in t&&(s=t.channels,A(s>0&&s<=4,"invalid number of channels"),l=!0)),e.width=0|i,e.height=0|o,e.channels=0|s;var c=!1;if("format"in t){var u=t.format;A(r.webgl_depth_texture||!("depth"===u||"depth stencil"===u),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),A.parameter(u,m,"invalid texture format");var d=e.internalformat=m[u];e.format=O[d],u in f&&("type"in t||(e.type=f[u])),u in g&&(e.compressed=!0),c=!0}!l&&c?e.channels=Xe[e.format]:l&&!c?e.channels!==He[e.format]&&(e.format=e.internalformat=He[e.channels]):c&&l&&A(e.channels===Xe[e.format],"number of channels inconsistent with specified format")}}function S(e){n.pixelStorei(37440,e.flipY),n.pixelStorei(37441,e.premultiplyAlpha),n.pixelStorei(37443,e.colorSpace),n.pixelStorei(3317,e.unpackAlignment)}function C(){w.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function E(t,n){var r=null;if(lt(n)?r=n:n&&(A.type(n,"object","invalid pixel data type"),T(t,n),"x"in n&&(t.xOffset=0|n.x),"y"in n&&(t.yOffset=0|n.y),lt(n.data)&&(r=n.data)),A(!t.compressed||r instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),n.copy){A(!r,"can not specify copy and data field for the same texture");var i=o.viewportWidth,s=o.viewportHeight;t.width=t.width||i-t.xOffset,t.height=t.height||s-t.yOffset,t.needsCopy=!0,A(t.xOffset>=0&&t.xOffset<i&&t.yOffset>=0&&t.yOffset<s&&t.width>0&&t.width<=i&&t.height>0&&t.height<=s,"copy texture read out of bounds")}else if(r){if(e(r))t.channels=t.channels||4,t.data=r,!("type"in n)&&t.type===Re&&(t.type=ct(r));else if(rt(r))t.channels=t.channels||4,function(e,t){var n=t.length;switch(e.type){case Re:case Le:case Ie:case We:var r=P.allocType(e.type,n);r.set(t),e.data=r;break;case Se:e.data=he(t);break;default:A.raise("unsupported texture type, must specify a typed array")}}(t,r),t.alignment=1,t.needsFree=!0;else if(V(r)){var l=r.data;!Array.isArray(l)&&t.type===Re&&(t.type=ct(l));var c,u,d,p,h,f,m=r.shape,g=r.stride;3===m.length?(d=m[2],f=g[2]):(A(2===m.length,"invalid ndarray pixel data, must be 2 or 3D"),d=1,f=1),c=m[0],u=m[1],p=g[0],h=g[1],t.alignment=1,t.width=c,t.height=u,t.channels=d,t.format=t.internalformat=He[d],t.needsFree=!0,function(e,t,n,r,a,i){for(var o=e.width,s=e.height,l=e.channels,c=ut(e,o*s*l),u=0,d=0;d<s;++d)for(var p=0;p<o;++p)for(var h=0;h<l;++h)c[u++]=t[n*p+r*d+a*h+i];dt(e,c)}(t,l,p,h,f,r.offset)}else if(ot(r)||st(r)||function(e){return it(e)===$e}(r))ot(r)||st(r)?t.element=r:t.element=r.canvas,t.width=t.element.width,t.height=t.element.height,t.channels=4;else if(function(e){return it(e)===Je}(r))t.element=r,t.width=r.width,t.height=r.height,t.channels=4;else if(function(e){return it(e)===Qe}(r))t.element=r,t.width=r.naturalWidth,t.height=r.naturalHeight,t.channels=4;else if(function(e){return it(e)===Ke}(r))t.element=r,t.width=r.videoWidth,t.height=r.videoHeight,t.channels=4;else if(at(r)){var y=t.width||r[0].length,b=t.height||r.length,v=t.channels;v=fe(r[0][0])?v||r[0][0].length:v||1;for(var M=X.shape(r),x=1,z=0;z<M.length;++z)x*=M[z];var _=ut(t,x);X.flatten(r,M,"",_),dt(t,_),t.alignment=1,t.width=y,t.height=b,t.channels=v,t.format=t.internalformat=He[v],t.needsFree=!0}}else t.width=t.width||1,t.height=t.height||1,t.channels=t.channels||4;t.type===We?A(a.extensions.indexOf("oes_texture_float")>=0,"oes_texture_float extension not enabled"):t.type===Se&&A(a.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function q(e,t,r){var a=e.element,o=e.data,s=e.internalformat,l=e.format,c=e.type,u=e.width,d=e.height;S(e),a?n.texImage2D(t,r,l,l,c,a):e.compressed?n.compressedTexImage2D(t,r,s,u,d,0,o):e.needsCopy?(i(),n.copyTexImage2D(t,r,l,e.xOffset,e.yOffset,u,d,0)):n.texImage2D(t,r,l,u,d,0,l,c,o||null)}function D(e,t,r,a,o){var s=e.element,l=e.data,c=e.internalformat,u=e.format,d=e.type,p=e.width,h=e.height;S(e),s?n.texSubImage2D(t,o,r,a,u,d,s):e.compressed?n.compressedTexSubImage2D(t,o,r,a,c,p,h,l):e.needsCopy?(i(),n.copyTexSubImage2D(t,o,r,a,e.xOffset,e.yOffset,p,h)):n.texSubImage2D(t,o,r,a,p,h,u,d,l)}var R=[];function L(){return R.pop()||new C}function I(e){e.needsFree&&P.freeType(e.data),C.call(e),R.push(e)}function W(){w.call(this),this.genMipmaps=!1,this.mipmapHint=je,this.mipmask=0,this.images=Array(16)}function N(e,t,n){var r=e.images[0]=L();e.mipmask=1,r.width=e.width=t,r.height=e.height=n,r.channels=e.channels=4}function B(e,t){var n=null;if(lt(t))k(n=e.images[0]=L(),e),E(n,t),e.mipmask=1;else if(T(e,t),Array.isArray(t.mipmap))for(var r=t.mipmap,a=0;a<r.length;++a)k(n=e.images[a]=L(),e),n.width>>=a,n.height>>=a,E(n,r[a]),e.mipmask|=1<<a;else k(n=e.images[0]=L(),e),E(n,t),e.mipmask=1;k(e,e.images[0]),e.compressed&&(e.internalformat===Ce||e.internalformat===Ee||e.internalformat===qe||e.internalformat===De)&&A(e.width%4==0&&e.height%4==0,"for compressed texture formats, mipmap level 0 must have width and height that are a multiple of 4")}function F(e,t){for(var n=e.images,r=0;r<n.length;++r){if(!n[r])return;q(n[r],t,r)}}var j=[];function U(){var e=j.pop()||new W;w.call(e),e.mipmask=0;for(var t=0;t<16;++t)e.images[t]=null;return e}function G(e){for(var t=e.images,n=0;n<t.length;++n)t[n]&&I(t[n]),t[n]=null;j.push(e)}function Y(){this.minFilter=Pe,this.magFilter=Pe,this.wrapS=Ne,this.wrapT=Ne,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=je}function Z(e,t){if("min"in t){var n=t.min;A.parameter(n,p),e.minFilter=p[n],Ve.indexOf(e.minFilter)>=0&&!("faces"in t)&&(e.genMipmaps=!0)}if("mag"in t){var r=t.mag;A.parameter(r,d),e.magFilter=d[r]}var i=e.wrapS,o=e.wrapT;if("wrap"in t){var s=t.wrap;"string"==typeof s?(A.parameter(s,u),i=o=u[s]):Array.isArray(s)&&(A.parameter(s[0],u),A.parameter(s[1],u),i=u[s[0]],o=u[s[1]])}else{if("wrapS"in t){var l=t.wrapS;A.parameter(l,u),i=u[l]}if("wrapT"in t){var h=t.wrapT;A.parameter(h,u),o=u[h]}}if(e.wrapS=i,e.wrapT=o,"anisotropic"in t){var f=t.anisotropic;A("number"==typeof f&&f>=1&&f<=a.maxAnisotropic,"aniso samples must be between 1 and "),e.anisotropic=t.anisotropic}if("mipmap"in t){var m=!1;switch(typeof t.mipmap){case"string":A.parameter(t.mipmap,c,"invalid mipmap hint"),e.mipmapHint=c[t.mipmap],e.genMipmaps=!0,m=!0;break;case"boolean":m=e.genMipmaps=t.mipmap;break;case"object":A(Array.isArray(t.mipmap),"invalid mipmap type"),e.genMipmaps=!1,m=!0;break;default:A.raise("invalid mipmap type")}m&&!("min"in t)&&(e.minFilter=Be)}}function $(e,t){n.texParameteri(t,10241,e.minFilter),n.texParameteri(t,10240,e.magFilter),n.texParameteri(t,10242,e.wrapS),n.texParameteri(t,10243,e.wrapT),r.ext_texture_filter_anisotropic&&n.texParameteri(t,34046,e.anisotropic),e.genMipmaps&&(n.hint(33170,e.mipmapHint),n.generateMipmap(t))}var J=0,Q={},K=a.maxTextureUnits,ee=Array(K).map(function(){return null});function te(e){w.call(this),this.mipmask=0,this.internalformat=ve,this.id=J++,this.refCount=1,this.target=e,this.texture=n.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Y,l.profile&&(this.stats={size:0})}function ne(e){n.activeTexture(Ue),n.bindTexture(e.target,e.texture)}function re(){var e=ee[0];e?n.bindTexture(e.target,e.texture):n.bindTexture(ge,null)}function ae(e){var t=e.texture;A(t,"must not double destroy texture");var r=e.unit,a=e.target;r>=0&&(n.activeTexture(Ue+r),n.bindTexture(a,null),ee[r]=null),n.deleteTexture(t),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete Q[e.id],s.textureCount--}return t(te.prototype,{bind:function(){var e=this;e.bindCount+=1;var t=e.unit;if(t<0){for(var r=0;r<K;++r){var a=ee[r];if(a){if(a.bindCount>0)continue;a.unit=-1}ee[r]=e,t=r;break}t>=K&&A.raise("insufficient number of texture units"),l.profile&&s.maxTextureUnits<t+1&&(s.maxTextureUnits=t+1),e.unit=t,n.activeTexture(Ue+t),n.bindTexture(e.target,e.texture)}return t},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&ae(this)}}),l.profile&&(s.getTotalTextureSize=function(){var e=0;return Object.keys(Q).forEach(function(t){e+=Q[t].stats.size}),e}),{create2D:function(e,t){var r=new te(ge);function i(e,t){var n=r.texInfo;Y.call(n);var o=U();return"number"==typeof e?N(o,0|e,"number"==typeof t?0|t:0|e):e?(A.type(e,"object","invalid arguments to regl.texture"),Z(n,e),B(o,e)):N(o,1,1),n.genMipmaps&&(o.mipmask=(o.width<<1)-1),r.mipmask=o.mipmask,k(r,o),A.texture2D(n,o,a),r.internalformat=o.internalformat,i.width=o.width,i.height=o.height,ne(r),F(o,ge),$(n,ge),re(),G(o),l.profile&&(r.stats.size=pt(r.internalformat,r.type,o.width,o.height,n.genMipmaps,!1)),i.format=v[r.internalformat],i.type=M[r.type],i.mag=x[n.magFilter],i.min=z[n.minFilter],i.wrapS=_[n.wrapS],i.wrapT=_[n.wrapT],i}return Q[r.id]=r,s.textureCount++,i(e,t),i.subimage=function(e,t,n,a){A(!!e,"must specify image data");var o=0|t,s=0|n,l=0|a,c=L();return k(c,r),c.width=0,c.height=0,E(c,e),c.width=c.width||(r.width>>l)-o,c.height=c.height||(r.height>>l)-s,A(r.type===c.type&&r.format===c.format&&r.internalformat===c.internalformat,"incompatible format for texture.subimage"),A(o>=0&&s>=0&&o+c.width<=r.width&&s+c.height<=r.height,"texture.subimage write out of bounds"),A(r.mipmask&1<<l,"missing mipmap data"),A(c.data||c.element||c.needsCopy,"missing image data"),ne(r),D(c,ge,o,s,l),re(),I(c),i},i.resize=function(e,t){var a=0|e,o=0|t||a;if(a===r.width&&o===r.height)return i;i.width=r.width=a,i.height=r.height=o,ne(r);for(var s=0;r.mipmask>>s;++s){var c=a>>s,u=o>>s;if(!c||!u)break;n.texImage2D(ge,s,r.format,c,u,0,r.format,r.type,null)}return re(),l.profile&&(r.stats.size=pt(r.internalformat,r.type,a,o,!1,!1)),i},i._reglType="texture2d",i._texture=r,l.profile&&(i.stats=r.stats),i.destroy=function(){r.decRef()},i},createCube:function(e,t,r,i,o,c){var u=new te(ye);Q[u.id]=u,s.cubeCount++;var d=new Array(6);function p(e,t,n,r,i,o){var s,c=u.texInfo;for(Y.call(c),s=0;s<6;++s)d[s]=U();if("number"!=typeof e&&e)if("object"==typeof e)if(t)B(d[0],e),B(d[1],t),B(d[2],n),B(d[3],r),B(d[4],i),B(d[5],o);else if(Z(c,e),T(u,e),"faces"in e){var h=e.faces;for(A(Array.isArray(h)&&6===h.length,"cube faces must be a length 6 array"),s=0;s<6;++s)A("object"==typeof h[s]&&!!h[s],"invalid input for cube map face"),k(d[s],u),B(d[s],h[s])}else for(s=0;s<6;++s)B(d[s],e);else A.raise("invalid arguments to cube map");else{var f=0|e||1;for(s=0;s<6;++s)N(d[s],f,f)}for(k(u,d[0]),A.optional(function(){a.npotTextureCube||A(me(u.width)&&me(u.height),"your browser does not support non power or two texture dimensions")}),c.genMipmaps?u.mipmask=(d[0].width<<1)-1:u.mipmask=d[0].mipmask,A.textureCube(u,c,d,a),u.internalformat=d[0].internalformat,p.width=d[0].width,p.height=d[0].height,ne(u),s=0;s<6;++s)F(d[s],be+s);for($(c,ye),re(),l.profile&&(u.stats.size=pt(u.internalformat,u.type,p.width,p.height,c.genMipmaps,!0)),p.format=v[u.internalformat],p.type=M[u.type],p.mag=x[c.magFilter],p.min=z[c.minFilter],p.wrapS=_[c.wrapS],p.wrapT=_[c.wrapT],s=0;s<6;++s)G(d[s]);return p}return p(e,t,r,i,o,c),p.subimage=function(e,t,n,r,a){A(!!t,"must specify image data"),A("number"==typeof e&&e===(0|e)&&e>=0&&e<6,"invalid face");var i=0|n,o=0|r,s=0|a,l=L();return k(l,u),l.width=0,l.height=0,E(l,t),l.width=l.width||(u.width>>s)-i,l.height=l.height||(u.height>>s)-o,A(u.type===l.type&&u.format===l.format&&u.internalformat===l.internalformat,"incompatible format for texture.subimage"),A(i>=0&&o>=0&&i+l.width<=u.width&&o+l.height<=u.height,"texture.subimage write out of bounds"),A(u.mipmask&1<<s,"missing mipmap data"),A(l.data||l.element||l.needsCopy,"missing image data"),ne(u),D(l,be+e,i,o,s),re(),I(l),p},p.resize=function(e){var t=0|e;if(t!==u.width){p.width=u.width=t,p.height=u.height=t,ne(u);for(var r=0;r<6;++r)for(var a=0;u.mipmask>>a;++a)n.texImage2D(be+r,a,u.format,t>>a,t>>a,0,u.format,u.type,null);return re(),l.profile&&(u.stats.size=pt(u.internalformat,u.type,p.width,p.height,!1,!0)),p}},p._reglType="textureCube",p._texture=u,l.profile&&(p.stats=u.stats),p.destroy=function(){u.decRef()},p},clear:function(){for(var e=0;e<K;++e)n.activeTexture(Ue+e),n.bindTexture(ge,null),ee[e]=null;H(Q).forEach(ae),s.cubeCount=0,s.textureCount=0},getTexture:function(e){return null},restore:function(){for(var e=0;e<K;++e){var t=ee[e];t&&(t.bindCount=0,t.unit=-1,ee[e]=null)}H(Q).forEach(function(e){e.texture=n.createTexture(),n.bindTexture(e.target,e.texture);for(var t=0;t<32;++t)if(e.mipmask&1<<t)if(e.target===ge)n.texImage2D(ge,t,e.internalformat,e.width>>t,e.height>>t,0,e.internalformat,e.type,null);else for(var r=0;r<6;++r)n.texImage2D(be+r,t,e.internalformat,e.width>>t,e.height>>t,0,e.internalformat,e.type,null);$(e.texInfo,e.target)})},refresh:function(){for(var e=0;e<K;++e){var t=ee[e];t&&(t.bindCount=0,t.unit=-1,ee[e]=null),n.activeTexture(Ue+e),n.bindTexture(ge,null),n.bindTexture(ye,null)}}}}nt[32854]=2,nt[Ae]=2,nt[36194]=2,nt[we]=4,nt[Ce]=.5,nt[Ee]=.5,nt[qe]=1,nt[De]=1,nt[35986]=.5,nt[35987]=1,nt[34798]=1,nt[35840]=.5,nt[35841]=.25,nt[35842]=.5,nt[35843]=.25,nt[36196]=.5;var ft=36161,mt=32854,gt=[];function yt(e,t,n){return gt[e]*t*n}gt[mt]=2,gt[32855]=2,gt[36194]=2,gt[33189]=2,gt[36168]=1,gt[34041]=4,gt[35907]=4,gt[34836]=16,gt[34842]=8,gt[34843]=6;var bt=36160,vt=36161,Mt=3553,xt=34069,zt=[6407,6408],_t=[];_t[6408]=4,_t[6407]=3;var At=[];At[5121]=1,At[5126]=4,At[36193]=2;var Ot=[32854,32855,36194,35907,34842,34843,34836],wt={36053:"complete",36054:"incomplete attachment",36057:"incomplete dimensions",36055:"incomplete, missing attachment",36061:"unsupported"},kt=34963,Tt=["attributes","elements","offset","count","primitive","instances"];function St(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.offset=0,this.stride=0,this.divisor=0}var Ct=5121,Et=5126;function qt(t,n,r,a,i,o,s){function l(l){var c;null===n.next?(A(i.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),c=Ct):(A(null!==n.next.colorAttachments[0].texture,"You cannot read from a renderbuffer"),c=n.next.colorAttachments[0].texture._texture.type,A.optional(function(){o.oes_texture_float?(A(c===Ct||c===Et,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),c===Et&&A(s.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):A(c===Ct,"Reading from a framebuffer is only allowed for the type 'uint8'")}));var u=0,d=0,p=a.framebufferWidth,h=a.framebufferHeight,f=null;e(l)?f=l:l&&(A.type(l,"object","invalid arguments to regl.read()"),u=0|l.x,d=0|l.y,A(u>=0&&u<a.framebufferWidth,"invalid x offset for regl.read"),A(d>=0&&d<a.framebufferHeight,"invalid y offset for regl.read"),p=0|(l.width||a.framebufferWidth-u),h=0|(l.height||a.framebufferHeight-d),f=l.data||null),f&&(c===Ct?A(f instanceof Uint8Array,"buffer must be 'Uint8Array' when reading from a framebuffer of type 'uint8'"):c===Et&&A(f instanceof Float32Array,"buffer must be 'Float32Array' when reading from a framebuffer of type 'float'")),A(p>0&&p+u<=a.framebufferWidth,"invalid width for read pixels"),A(h>0&&h+d<=a.framebufferHeight,"invalid height for read pixels"),r();var m=p*h*4;return f||(c===Ct?f=new Uint8Array(m):c===Et&&(f=f||new Float32Array(m))),A.isTypedArray(f,"data buffer for regl.read() must be a typedarray"),A(f.byteLength>=m,"data buffer for regl.read() too small"),t.pixelStorei(3333,4),t.readPixels(u,d,p,h,6408,c,f),f}return function(e){return e&&"framebuffer"in e?function(e){var t;return n.setFBO({framebuffer:e.framebuffer},function(){t=l(e)}),t}(e):l(e)}}function Dt(e){return Array.prototype.slice.call(e)}function Rt(e){return Dt(e).join("")}var Lt="xyzw".split(""),It="dither",Wt="blend.enable",Nt="blend.color",Pt="blend.equation",Bt="blend.func",Ft="depth.enable",jt="depth.func",Ut="depth.range",Vt="depth.mask",Ht="colorMask",Xt="cull.enable",Gt="cull.face",Yt="frontFace",Zt="lineWidth",$t="polygonOffset.enable",Jt="polygonOffset.offset",Qt="sample.alpha",Kt="sample.enable",en="sample.coverage",tn="stencil.enable",nn="stencil.mask",rn="stencil.func",an="stencil.opFront",on="stencil.opBack",sn="scissor.enable",ln="scissor.box",cn="viewport",un="profile",dn="framebuffer",pn="vert",hn="frag",fn="elements",mn="primitive",gn="count",yn="offset",bn="instances",vn="vao",Mn="Width",xn="Height",zn=dn+Mn,_n=dn+xn,An=cn+Mn,On=cn+xn,wn="drawingBuffer",kn=wn+Mn,Tn=wn+xn,Sn=[Bt,Pt,rn,an,on,en,cn,ln,Jt],Cn=34962,En=34963,qn=5126,Dn=35664,Rn=35665,Ln=35666,In=5124,Wn=35667,Nn=35668,Pn=35669,Bn=35670,Fn=35671,jn=35672,Un=35673,Vn=35674,Hn=35675,Xn=35676,Gn=35678,Yn=35680,Zn=1028,$n=1029,Jn=2305,Qn=7680,Kn={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},er=["constant color, constant alpha","one minus constant color, constant alpha","constant color, one minus constant alpha","one minus constant color, one minus constant alpha","constant alpha, constant color","constant alpha, one minus constant color","one minus constant alpha, constant color","one minus constant alpha, one minus constant color"],tr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},nr={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},rr={frag:35632,vert:35633},ar={cw:2304,ccw:Jn};function ir(t){return Array.isArray(t)||e(t)||V(t)}function or(e){return e.sort(function(e,t){return e===cn?-1:t===cn?1:e<t?-1:1})}function sr(e,t,n,r){this.thisDep=e,this.contextDep=t,this.propDep=n,this.append=r}function lr(e){return e&&!(e.thisDep||e.contextDep||e.propDep)}function cr(e){return new sr(!1,!1,!1,e)}function ur(e,t){var n=e.type;if(0===n){var r=e.data.length;return new sr(!0,r>=1,r>=2,t)}if(4===n){var a=e.data;return new sr(a.thisDep,a.contextDep,a.propDep,t)}if(5===n)return new sr(!1,!1,!1,t);if(6===n){for(var i=!1,o=!1,s=!1,l=0;l<e.data.length;++l){var c=e.data[l];if(1===c.type)s=!0;else if(2===c.type)o=!0;else if(3===c.type)i=!0;else if(0===c.type){i=!0;var u=c.data;u>=1&&(o=!0),u>=2&&(s=!0)}else 4===c.type&&(i=i||c.data.thisDep,o=o||c.data.contextDep,s=s||c.data.propDep)}return new sr(i,o,s,t)}return new sr(3===n,2===n,1===n,t)}var dr=new sr(!1,!1,!1,function(){});function pr(e,n,r,a,i,o,s,l,c,u,d,p,h,f,m){var g=u.Record,y={add:32774,subtract:32778,"reverse subtract":32779};r.ext_blend_minmax&&(y.min=32775,y.max=32776);var b=r.angle_instanced_arrays,v=r.webgl_draw_buffers,M=r.oes_vertex_array_object,x={dirty:!0,profile:m.profile},z={},_=[],O={},w={};function k(e){return e.replace(".","_")}function T(e,t,n){var r=k(e);_.push(e),z[r]=x[r]=!!n,O[r]=t}function S(e,t,n){var r=k(e);_.push(e),Array.isArray(n)?(x[r]=n.slice(),z[r]=n.slice()):x[r]=z[r]=n,w[r]=t}T(It,3024),T(Wt,3042),S(Nt,"blendColor",[0,0,0,0]),S(Pt,"blendEquationSeparate",[32774,32774]),S(Bt,"blendFuncSeparate",[1,0,1,0]),T(Ft,2929,!0),S(jt,"depthFunc",513),S(Ut,"depthRange",[0,1]),S(Vt,"depthMask",!0),S(Ht,Ht,[!0,!0,!0,!0]),T(Xt,2884),S(Gt,"cullFace",$n),S(Yt,Yt,Jn),S(Zt,Zt,1),T($t,32823),S(Jt,"polygonOffset",[0,0]),T(Qt,32926),T(Kt,32928),S(en,"sampleCoverage",[1,!1]),T(tn,2960),S(nn,"stencilMask",-1),S(rn,"stencilFunc",[519,0,-1]),S(an,"stencilOpSeparate",[Zn,Qn,Qn,Qn]),S(on,"stencilOpSeparate",[$n,Qn,Qn,Qn]),T(sn,3089),S(ln,"scissor",[0,0,e.drawingBufferWidth,e.drawingBufferHeight]),S(cn,cn,[0,0,e.drawingBufferWidth,e.drawingBufferHeight]);var E={gl:e,context:h,strings:n,next:z,current:x,draw:p,elements:o,buffer:i,shader:d,attributes:u.state,vao:u,uniforms:c,framebuffer:l,extensions:r,timer:f,isBufferArgs:ir},q={primTypes:oe,compareFuncs:tr,blendFuncs:Kn,blendEquations:y,stencilOps:nr,glTypes:$,orientationType:ar};A.optional(function(){E.isArrayLike=fe}),v&&(q.backBuffer=[$n],q.drawBuffer=I(a.maxDrawbuffers,function(e){return 0===e?[0]:I(e,function(e){return 36064+e})}));var D=0;function R(){var e=function(){var e=0,n=[],r=[];function a(){var n=[],r=[];return t(function(){n.push.apply(n,Dt(arguments))},{def:function(){var t="v"+e++;return r.push(t),arguments.length>0&&(n.push(t,"="),n.push.apply(n,Dt(arguments)),n.push(";")),t},toString:function(){return Rt([r.length>0?"var "+r.join(",")+";":"",Rt(n)])}})}function i(){var e=a(),n=a(),r=e.toString,i=n.toString;function o(t,r){n(t,r,"=",e.def(t,r),";")}return t(function(){e.apply(e,Dt(arguments))},{def:e.def,entry:e,exit:n,save:o,set:function(t,n,r){o(t,n),e(t,n,"=",r,";")},toString:function(){return r()+i()}})}var o=a(),s={};return{global:o,link:function(t){for(var a=0;a<r.length;++a)if(r[a]===t)return n[a];var i="g"+e++;return n.push(i),r.push(t),i},block:a,proc:function(e,n){var r=[];function a(){var e="a"+r.length;return r.push(e),e}n=n||0;for(var o=0;o<n;++o)a();var l=i(),c=l.toString;return s[e]=t(l,{arg:a,toString:function(){return Rt(["function(",r.join(),"){",c(),"}"])}})},scope:i,cond:function(){var e=Rt(arguments),n=i(),r=i(),a=n.toString,o=r.toString;return t(n,{then:function(){return n.apply(n,Dt(arguments)),this},else:function(){return r.apply(r,Dt(arguments)),this},toString:function(){var t=o();return t&&(t="else{"+t+"}"),Rt(["if(",e,"){",a(),"}",t])}})},compile:function(){var e=['"use strict";',o,"return {"];Object.keys(s).forEach(function(t){e.push('"',t,'":',s[t].toString(),",")}),e.push("}");var t=Rt(e).replace(/;/g,";\n").replace(/}/g,"}\n").replace(/{/g,"{\n");return Function.apply(null,n.concat(t)).apply(null,r)}}}(),r=e.link,a=e.global;e.id=D++,e.batchId="0";var i=r(E),o=e.shared={props:"a0"};Object.keys(E).forEach(function(e){o[e]=a.def(i,".",e)}),A.optional(function(){e.CHECK=r(A),e.commandStr=A.guessCommand(),e.command=r(e.commandStr),e.assert=function(e,t,n){e("if(!(",t,"))",this.CHECK,".commandRaise(",r(n),",",this.command,");")},q.invalidBlendCombinations=er});var s=e.next={},l=e.current={};Object.keys(w).forEach(function(e){Array.isArray(x[e])&&(s[e]=a.def(o.next,".",e),l[e]=a.def(o.current,".",e))});var c=e.constants={};Object.keys(q).forEach(function(e){c[e]=a.def(JSON.stringify(q[e]))}),e.invoke=function(t,n){switch(n.type){case 0:var a=["this",o.context,o.props,e.batchId];return t.def(r(n.data),".call(",a.slice(0,Math.max(n.data.length+1,4)),")");case 1:return t.def(o.props,n.data);case 2:return t.def(o.context,n.data);case 3:return t.def("this",n.data);case 4:return n.data.append(e,t),n.data.ref;case 5:return n.data.toString();case 6:return n.data.map(function(n){return e.invoke(t,n)})}},e.attribCache={};var d={};return e.scopeAttrib=function(e){var t=n.id(e);if(t in d)return d[t];var a=u.scope[t];return a||(a=u.scope[t]=new g),d[t]=r(a)},e}function L(e,t,s,c,p){var h=e.static,f=e.dynamic;A.optional(function(){var e=[dn,pn,hn,fn,mn,yn,gn,bn,un,vn].concat(_);function t(t){Object.keys(t).forEach(function(t){A.command(e.indexOf(t)>=0,'unknown parameter "'+t+'"',p.commandStr)})}t(h),t(f)});var m=function(e,t){var n=e.static;if("string"==typeof n[hn]&&"string"==typeof n[pn]){if(Object.keys(t.dynamic).length>0)return null;var r=t.static,a=Object.keys(r);if(a.length>0&&"number"==typeof r[a[0]]){for(var i=[],o=0;o<a.length;++o)A("number"==typeof r[a[o]],"must specify all vertex attribute locations when using vaos"),i.push([0|r[a[o]],a[o]]);return i}}return null}(e,t),v=function(e){var t=e.static,n=e.dynamic;if(dn in t){var r=t[dn];return r?(r=l.getFramebuffer(r),A.command(r,"invalid framebuffer object"),cr(function(e,t){var n=e.link(r),a=e.shared;t.set(a.framebuffer,".next",n);var i=a.context;return t.set(i,"."+zn,n+".width"),t.set(i,"."+_n,n+".height"),n})):cr(function(e,t){var n=e.shared;t.set(n.framebuffer,".next","null");var r=n.context;return t.set(r,"."+zn,r+"."+kn),t.set(r,"."+_n,r+"."+Tn),"null"})}if(dn in n){var a=n[dn];return ur(a,function(e,t){var n=e.invoke(t,a),r=e.shared,i=r.framebuffer,o=t.def(i,".getFramebuffer(",n,")");A.optional(function(){e.assert(t,"!"+n+"||"+o,"invalid framebuffer object")}),t.set(i,".next",o);var s=r.context;return t.set(s,"."+zn,o+"?"+o+".width:"+s+"."+kn),t.set(s,"."+_n,o+"?"+o+".height:"+s+"."+Tn),o})}return null}(e),M=function(e,t,n){var r=e.static,a=e.dynamic;function i(e){if(e in r){var i=r[e];A.commandType(i,"object","invalid "+e,n.commandStr);var o,s,l=!0,c=0|i.x,u=0|i.y;return"width"in i?(o=0|i.width,A.command(o>=0,"invalid "+e,n.commandStr)):l=!1,"height"in i?(s=0|i.height,A.command(s>=0,"invalid "+e,n.commandStr)):l=!1,new sr(!l&&t&&t.thisDep,!l&&t&&t.contextDep,!l&&t&&t.propDep,function(e,t){var n=e.shared.context,r=o;"width"in i||(r=t.def(n,".",zn,"-",c));var a=s;return"height"in i||(a=t.def(n,".",_n,"-",u)),[c,u,r,a]})}if(e in a){var d=a[e],p=ur(d,function(t,n){var r=t.invoke(n,d);A.optional(function(){t.assert(n,r+"&&typeof "+r+'==="object"',"invalid "+e)});var a=t.shared.context,i=n.def(r,".x|0"),o=n.def(r,".y|0"),s=n.def('"width" in ',r,"?",r,".width|0:","(",a,".",zn,"-",i,")"),l=n.def('"height" in ',r,"?",r,".height|0:","(",a,".",_n,"-",o,")");return A.optional(function(){t.assert(n,s+">=0&&"+l+">=0","invalid "+e)}),[i,o,s,l]});return t&&(p.thisDep=p.thisDep||t.thisDep,p.contextDep=p.contextDep||t.contextDep,p.propDep=p.propDep||t.propDep),p}return t?new sr(t.thisDep,t.contextDep,t.propDep,function(e,t){var n=e.shared.context;return[0,0,t.def(n,".",zn),t.def(n,".",_n)]}):null}var o=i(cn);if(o){var s=o;o=new sr(o.thisDep,o.contextDep,o.propDep,function(e,t){var n=s.append(e,t),r=e.shared.context;return t.set(r,"."+An,n[2]),t.set(r,"."+On,n[3]),n})}return{viewport:o,scissor_box:i(ln)}}(e,v,p),x=function(e,t){var n=e.static,r=e.dynamic,a={},i=!1,s=function(){if(vn in n){var e=n[vn];return null!==e&&null===u.getVAO(e)&&(e=u.createVAO(e)),i=!0,a.vao=e,cr(function(t){var n=u.getVAO(e);return n?t.link(n):"null"})}if(vn in r){i=!0;var t=r[vn];return ur(t,function(e,n){var r=e.invoke(n,t);return n.def(e.shared.vao+".getVAO("+r+")")})}return null}(),l=!1,c=function(){if(fn in n){var e=n[fn];if(a.elements=e,ir(e)){var c=a.elements=o.create(e,!0);e=o.getElements(c),l=!0}else e&&(e=o.getElements(e),l=!0,A.command(e,"invalid elements",t.commandStr));var u=cr(function(t,n){if(e){var r=t.link(e);return t.ELEMENTS=r,r}return t.ELEMENTS=null,null});return u.value=e,u}if(fn in r){l=!0;var d=r[fn];return ur(d,function(e,t){var n=e.shared,r=n.isBufferArgs,a=n.elements,i=e.invoke(t,d),o=t.def("null"),s=t.def(r,"(",i,")"),l=e.cond(s).then(o,"=",a,".createStream(",i,");").else(o,"=",a,".getElements(",i,");");return A.optional(function(){e.assert(l.else,"!"+i+"||"+o,"invalid elements")}),t.entry(l),t.exit(e.cond(s).then(a,".destroyStream(",o,");")),e.ELEMENTS=o,o})}return i?new sr(s.thisDep,s.contextDep,s.propDep,function(e,t){return t.def(e.shared.vao+".currentVAO?"+e.shared.elements+".getElements("+e.shared.vao+".currentVAO.elements):null")}):null}();function d(e,o){if(e in n){var c=0|n[e];return o?a.offset=c:a.instances=c,A.command(!o||c>=0,"invalid "+e,t.commandStr),cr(function(e,t){return o&&(e.OFFSET=c),c})}if(e in r){var u=r[e];return ur(u,function(t,n){var r=t.invoke(n,u);return o&&(t.OFFSET=r,A.optional(function(){t.assert(n,r+">=0","invalid "+e)})),r})}if(o){if(l)return cr(function(e,t){return e.OFFSET=0,0});if(i)return new sr(s.thisDep,s.contextDep,s.propDep,function(e,t){return t.def(e.shared.vao+".currentVAO?"+e.shared.vao+".currentVAO.offset:0")})}else if(i)return new sr(s.thisDep,s.contextDep,s.propDep,function(e,t){return t.def(e.shared.vao+".currentVAO?"+e.shared.vao+".currentVAO.instances:-1")});return null}var p=d(yn,!0),h=function(){if(mn in n){var e=n[mn];return a.primitive=e,A.commandParameter(e,oe,"invalid primitve",t.commandStr),cr(function(t,n){return oe[e]})}if(mn in r){var o=r[mn];return ur(o,function(e,t){var n=e.constants.primTypes,r=e.invoke(t,o);return A.optional(function(){e.assert(t,r+" in "+n,"invalid primitive, must be one of "+Object.keys(oe))}),t.def(n,"[",r,"]")})}return l?lr(c)?c.value?cr(function(e,t){return t.def(e.ELEMENTS,".primType")}):cr(function(){return 4}):new sr(c.thisDep,c.contextDep,c.propDep,function(e,t){var n=e.ELEMENTS;return t.def(n,"?",n,".primType:",4)}):i?new sr(s.thisDep,s.contextDep,s.propDep,function(e,t){return t.def(e.shared.vao+".currentVAO?"+e.shared.vao+".currentVAO.primitive:4")}):null}(),f=function(){if(gn in n){var e=0|n[gn];return a.count=e,A.command("number"==typeof e&&e>=0,"invalid vertex count",t.commandStr),cr(function(){return e})}if(gn in r){var o=r[gn];return ur(o,function(e,t){var n=e.invoke(t,o);return A.optional(function(){e.assert(t,"typeof "+n+'==="number"&&'+n+">=0&&"+n+"===("+n+"|0)","invalid vertex count")}),n})}if(l){if(lr(c)){if(c)return p?new sr(p.thisDep,p.contextDep,p.propDep,function(e,t){var n=t.def(e.ELEMENTS,".vertCount-",e.OFFSET);return A.optional(function(){e.assert(t,n+">=0","invalid vertex offset/element buffer too small")}),n}):cr(function(e,t){return t.def(e.ELEMENTS,".vertCount")});var u=cr(function(){return-1});return A.optional(function(){u.MISSING=!0}),u}var d=new sr(c.thisDep||p.thisDep,c.contextDep||p.contextDep,c.propDep||p.propDep,function(e,t){var n=e.ELEMENTS;return e.OFFSET?t.def(n,"?",n,".vertCount-",e.OFFSET,":-1"):t.def(n,"?",n,".vertCount:-1")});return A.optional(function(){d.DYNAMIC=!0}),d}return i?new sr(s.thisDep,s.contextDep,s.propDep,function(e,t){return t.def(e.shared.vao,".currentVAO?",e.shared.vao,".currentVAO.count:-1")}):null}(),m=d(bn,!1);return{elements:c,primitive:h,count:f,instances:m,offset:p,vao:s,vaoActive:i,elementsActive:l,static:a}}(e,p),z=function(e,t){var n=e.static,r=e.dynamic,i={};return _.forEach(function(e){var o=k(e);function s(t,a){if(e in n){var s=t(n[e]);i[o]=cr(function(){return s})}else if(e in r){var l=r[e];i[o]=ur(l,function(e,t){return a(e,t,e.invoke(t,l))})}}switch(e){case Xt:case Wt:case It:case tn:case Ft:case sn:case $t:case Qt:case Kt:case Vt:return s(function(n){return A.commandType(n,"boolean",e,t.commandStr),n},function(t,n,r){return A.optional(function(){t.assert(n,"typeof "+r+'==="boolean"',"invalid flag "+e,t.commandStr)}),r});case jt:return s(function(n){return A.commandParameter(n,tr,"invalid "+e,t.commandStr),tr[n]},function(t,n,r){var a=t.constants.compareFuncs;return A.optional(function(){t.assert(n,r+" in "+a,"invalid "+e+", must be one of "+Object.keys(tr))}),n.def(a,"[",r,"]")});case Ut:return s(function(e){return A.command(fe(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]&&e[0]<=e[1],"depth range is 2d array",t.commandStr),e},function(e,t,n){return A.optional(function(){e.assert(t,e.shared.isArrayLike+"("+n+")&&"+n+".length===2&&typeof "+n+'[0]==="number"&&typeof '+n+'[1]==="number"&&'+n+"[0]<="+n+"[1]","depth range must be a 2d array")}),[t.def("+",n,"[0]"),t.def("+",n,"[1]")]});case Bt:return s(function(e){A.commandType(e,"object","blend.func",t.commandStr);var n="srcRGB"in e?e.srcRGB:e.src,r="srcAlpha"in e?e.srcAlpha:e.src,a="dstRGB"in e?e.dstRGB:e.dst,i="dstAlpha"in e?e.dstAlpha:e.dst;return A.commandParameter(n,Kn,o+".srcRGB",t.commandStr),A.commandParameter(r,Kn,o+".srcAlpha",t.commandStr),A.commandParameter(a,Kn,o+".dstRGB",t.commandStr),A.commandParameter(i,Kn,o+".dstAlpha",t.commandStr),A.command(-1===er.indexOf(n+", "+a),"unallowed blending combination (srcRGB, dstRGB) = ("+n+", "+a+")",t.commandStr),[Kn[n],Kn[a],Kn[r],Kn[i]]},function(t,n,r){var a=t.constants.blendFuncs;function i(i,o){var s=n.def('"',i,o,'" in ',r,"?",r,".",i,o,":",r,".",i);return A.optional(function(){t.assert(n,s+" in "+a,"invalid "+e+"."+i+o+", must be one of "+Object.keys(Kn))}),s}A.optional(function(){t.assert(n,r+"&&typeof "+r+'==="object"',"invalid blend func, must be an object")});var o=i("src","RGB"),s=i("dst","RGB");A.optional(function(){var e=t.constants.invalidBlendCombinations;t.assert(n,e+".indexOf("+o+'+", "+'+s+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var l=n.def(a,"[",o,"]"),c=n.def(a,"[",i("src","Alpha"),"]");return[l,n.def(a,"[",s,"]"),c,n.def(a,"[",i("dst","Alpha"),"]")]});case Pt:return s(function(n){return"string"==typeof n?(A.commandParameter(n,y,"invalid "+e,t.commandStr),[y[n],y[n]]):"object"==typeof n?(A.commandParameter(n.rgb,y,e+".rgb",t.commandStr),A.commandParameter(n.alpha,y,e+".alpha",t.commandStr),[y[n.rgb],y[n.alpha]]):void A.commandRaise("invalid blend.equation",t.commandStr)},function(t,n,r){var a=t.constants.blendEquations,i=n.def(),o=n.def(),s=t.cond("typeof ",r,'==="string"');return A.optional(function(){function n(e,n,r){t.assert(e,r+" in "+a,"invalid "+n+", must be one of "+Object.keys(y))}n(s.then,e,r),t.assert(s.else,r+"&&typeof "+r+'==="object"',"invalid "+e),n(s.else,e+".rgb",r+".rgb"),n(s.else,e+".alpha",r+".alpha")}),s.then(i,"=",o,"=",a,"[",r,"];"),s.else(i,"=",a,"[",r,".rgb];",o,"=",a,"[",r,".alpha];"),n(s),[i,o]});case Nt:return s(function(e){return A.command(fe(e)&&4===e.length,"blend.color must be a 4d array",t.commandStr),I(4,function(t){return+e[t]})},function(e,t,n){return A.optional(function(){e.assert(t,e.shared.isArrayLike+"("+n+")&&"+n+".length===4","blend.color must be a 4d array")}),I(4,function(e){return t.def("+",n,"[",e,"]")})});case nn:return s(function(e){return A.commandType(e,"number",o,t.commandStr),0|e},function(e,t,n){return A.optional(function(){e.assert(t,"typeof "+n+'==="number"',"invalid stencil.mask")}),t.def(n,"|0")});case rn:return s(function(n){A.commandType(n,"object",o,t.commandStr);var r=n.cmp||"keep",a=n.ref||0,i="mask"in n?n.mask:-1;return A.commandParameter(r,tr,e+".cmp",t.commandStr),A.commandType(a,"number",e+".ref",t.commandStr),A.commandType(i,"number",e+".mask",t.commandStr),[tr[r],a,i]},function(e,t,n){var r=e.constants.compareFuncs;return A.optional(function(){function a(){e.assert(t,Array.prototype.join.call(arguments,""),"invalid stencil.func")}a(n+"&&typeof ",n,'==="object"'),a('!("cmp" in ',n,")||(",n,".cmp in ",r,")")}),[t.def('"cmp" in ',n,"?",r,"[",n,".cmp]",":",Qn),t.def(n,".ref|0"),t.def('"mask" in ',n,"?",n,".mask|0:-1")]});case an:case on:return s(function(n){A.commandType(n,"object",o,t.commandStr);var r=n.fail||"keep",a=n.zfail||"keep",i=n.zpass||"keep";return A.commandParameter(r,nr,e+".fail",t.commandStr),A.commandParameter(a,nr,e+".zfail",t.commandStr),A.commandParameter(i,nr,e+".zpass",t.commandStr),[e===on?$n:Zn,nr[r],nr[a],nr[i]]},function(t,n,r){var a=t.constants.stencilOps;function i(i){return A.optional(function(){t.assert(n,'!("'+i+'" in '+r+")||("+r+"."+i+" in "+a+")","invalid "+e+"."+i+", must be one of "+Object.keys(nr))}),n.def('"',i,'" in ',r,"?",a,"[",r,".",i,"]:",Qn)}return A.optional(function(){t.assert(n,r+"&&typeof "+r+'==="object"',"invalid "+e)}),[e===on?$n:Zn,i("fail"),i("zfail"),i("zpass")]});case Jt:return s(function(e){A.commandType(e,"object",o,t.commandStr);var n=0|e.factor,r=0|e.units;return A.commandType(n,"number",o+".factor",t.commandStr),A.commandType(r,"number",o+".units",t.commandStr),[n,r]},function(t,n,r){return A.optional(function(){t.assert(n,r+"&&typeof "+r+'==="object"',"invalid "+e)}),[n.def(r,".factor|0"),n.def(r,".units|0")]});case Gt:return s(function(e){var n=0;return"front"===e?n=Zn:"back"===e&&(n=$n),A.command(!!n,o,t.commandStr),n},function(e,t,n){return A.optional(function(){e.assert(t,n+'==="front"||'+n+'==="back"',"invalid cull.face")}),t.def(n,'==="front"?',Zn,":",$n)});case Zt:return s(function(e){return A.command("number"==typeof e&&e>=a.lineWidthDims[0]&&e<=a.lineWidthDims[1],"invalid line width, must be a positive number between "+a.lineWidthDims[0]+" and "+a.lineWidthDims[1],t.commandStr),e},function(e,t,n){return A.optional(function(){e.assert(t,"typeof "+n+'==="number"&&'+n+">="+a.lineWidthDims[0]+"&&"+n+"<="+a.lineWidthDims[1],"invalid line width")}),n});case Yt:return s(function(e){return A.commandParameter(e,ar,o,t.commandStr),ar[e]},function(e,t,n){return A.optional(function(){e.assert(t,n+'==="cw"||'+n+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),t.def(n+'==="cw"?2304:'+Jn)});case Ht:return s(function(e){return A.command(fe(e)&&4===e.length,"color.mask must be length 4 array",t.commandStr),e.map(function(e){return!!e})},function(e,t,n){return A.optional(function(){e.assert(t,e.shared.isArrayLike+"("+n+")&&"+n+".length===4","invalid color.mask")}),I(4,function(e){return"!!"+n+"["+e+"]"})});case en:return s(function(e){A.command("object"==typeof e&&e,o,t.commandStr);var n="value"in e?e.value:1,r=!!e.invert;return A.command("number"==typeof n&&n>=0&&n<=1,"sample.coverage.value must be a number between 0 and 1",t.commandStr),[n,r]},function(e,t,n){return A.optional(function(){e.assert(t,n+"&&typeof "+n+'==="object"',"invalid sample.coverage")}),[t.def('"value" in ',n,"?+",n,".value:1"),t.def("!!",n,".invert")]})}}),i}(e,p),O=function(e,t,r){var a=e.static,i=e.dynamic;function o(e){if(e in a){var t=n.id(a[e]);A.optional(function(){d.shader(rr[e],t,A.guessCommand())});var r=cr(function(){return t});return r.id=t,r}if(e in i){var o=i[e];return ur(o,function(t,n){var r=t.invoke(n,o),a=n.def(t.shared.strings,".id(",r,")");return A.optional(function(){n(t.shared.shader,".shader(",rr[e],",",a,",",t.command,");")}),a})}return null}var s,l=o(hn),c=o(pn),u=null;return lr(l)&&lr(c)?(u=d.program(c.id,l.id,null,r),s=cr(function(e,t){return e.link(u)})):s=new sr(l&&l.thisDep||c&&c.thisDep,l&&l.contextDep||c&&c.contextDep,l&&l.propDep||c&&c.propDep,function(e,t){var n,r=e.shared.shader;n=l?l.append(e,t):t.def(r,".",hn);var a=r+".program("+(c?c.append(e,t):t.def(r,".",pn))+","+n;return A.optional(function(){a+=","+e.command}),t.def(a+")")}),{frag:l,vert:c,progVar:s,program:u}}(e,0,m);function w(e){var t=M[e];t&&(z[e]=t)}w(cn),w(k(ln));var T=Object.keys(z).length>0,S={framebuffer:v,draw:x,shader:O,state:z,dirty:T,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(S.profile=function(e){var t,n=e.static,r=e.dynamic;if(un in n){var a=!!n[un];(t=cr(function(e,t){return a})).enable=a}else if(un in r){var i=r[un];t=ur(i,function(e,t){return e.invoke(t,i)})}return t}(e),S.uniforms=function(e,t){var n=e.static,r=e.dynamic,a={};return Object.keys(n).forEach(function(e){var r,i=n[e];if("number"==typeof i||"boolean"==typeof i)r=cr(function(){return i});else if("function"==typeof i){var o=i._reglType;"texture2d"===o||"textureCube"===o?r=cr(function(e){return e.link(i)}):"framebuffer"===o||"framebufferCube"===o?(A.command(i.color.length>0,'missing color attachment for framebuffer sent to uniform "'+e+'"',t.commandStr),r=cr(function(e){return e.link(i.color[0])})):A.commandRaise('invalid data for uniform "'+e+'"',t.commandStr)}else fe(i)?r=cr(function(t){return t.global.def("[",I(i.length,function(n){return A.command("number"==typeof i[n]||"boolean"==typeof i[n],"invalid uniform "+e,t.commandStr),i[n]}),"]")}):A.commandRaise('invalid or missing data for uniform "'+e+'"',t.commandStr);r.value=i,a[e]=r}),Object.keys(r).forEach(function(e){var t=r[e];a[e]=ur(t,function(e,n){return e.invoke(n,t)})}),a}(s,p),S.drawVAO=S.scopeVAO=x.vao,!S.drawVAO&&O.program&&!m&&r.angle_instanced_arrays&&x.static.elements){var C=!0,E=O.program.attributes.map(function(e){var n=t.static[e];return C=C&&!!n,n});if(C&&E.length>0){var q=u.getVAO(u.createVAO({attributes:E,elements:x.static.elements}));S.drawVAO=new sr(null,null,null,function(e,t){return e.link(q)}),S.useVAO=!0}}return m?S.useVAO=!0:S.attributes=function(e,t){var r=e.static,a=e.dynamic,o={};return Object.keys(r).forEach(function(e){var a=r[e],s=n.id(e),l=new g;if(ir(a))l.state=1,l.buffer=i.getBuffer(i.create(a,Cn,!1,!0)),l.type=0;else{var c=i.getBuffer(a);if(c)l.state=1,l.buffer=c,l.type=0;else if(A.command("object"==typeof a&&a,"invalid data for attribute "+e,t.commandStr),"constant"in a){var u=a.constant;l.buffer="null",l.state=2,"number"==typeof u?l.x=u:(A.command(fe(u)&&u.length>0&&u.length<=4,"invalid constant for attribute "+e,t.commandStr),Lt.forEach(function(e,t){t<u.length&&(l[e]=u[t])}))}else{c=ir(a.buffer)?i.getBuffer(i.create(a.buffer,Cn,!1,!0)):i.getBuffer(a.buffer),A.command(!!c,'missing buffer for attribute "'+e+'"',t.commandStr);var d=0|a.offset;A.command(d>=0,'invalid offset for attribute "'+e+'"',t.commandStr);var p=0|a.stride;A.command(p>=0&&p<256,'invalid stride for attribute "'+e+'", must be integer betweeen [0, 255]',t.commandStr);var h=0|a.size;A.command(!("size"in a)||h>0&&h<=4,'invalid size for attribute "'+e+'", must be 1,2,3,4',t.commandStr);var f=!!a.normalized,m=0;"type"in a&&(A.commandParameter(a.type,$,"invalid type for attribute "+e,t.commandStr),m=$[a.type]);var y=0|a.divisor;A.optional(function(){"divisor"in a&&(A.command(0===y||b,'cannot specify divisor for attribute "'+e+'", instancing not supported',t.commandStr),A.command(y>=0,'invalid divisor for attribute "'+e+'"',t.commandStr));var n=t.commandStr,r=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(a).forEach(function(t){A.command(r.indexOf(t)>=0,'unknown parameter "'+t+'" for attribute pointer "'+e+'" (valid parameters are '+r+")",n)})}),l.buffer=c,l.state=1,l.size=h,l.normalized=f,l.type=m||c.dtype,l.offset=d,l.stride=p,l.divisor=y}}o[e]=cr(function(e,t){var n=e.attribCache;if(s in n)return n[s];var r={isStream:!1};return Object.keys(l).forEach(function(e){r[e]=l[e]}),l.buffer&&(r.buffer=e.link(l.buffer),r.type=r.type||r.buffer+".dtype"),n[s]=r,r})}),Object.keys(a).forEach(function(e){var t=a[e];o[e]=ur(t,function(n,r){var a=n.invoke(r,t),i=n.shared,o=n.constants,s=i.isBufferArgs,l=i.buffer;A.optional(function(){n.assert(r,a+"&&(typeof "+a+'==="object"||typeof '+a+'==="function")&&('+s+"("+a+")||"+l+".getBuffer("+a+")||"+l+".getBuffer("+a+".buffer)||"+s+"("+a+'.buffer)||("constant" in '+a+"&&(typeof "+a+'.constant==="number"||'+i.isArrayLike+"("+a+".constant))))",'invalid dynamic attribute "'+e+'"')});var c={isStream:r.def(!1)},u=new g;u.state=1,Object.keys(u).forEach(function(e){c[e]=r.def(""+u[e])});var d=c.buffer,p=c.type;function h(e){r(c[e],"=",a,".",e,"|0;")}return r("if(",s,"(",a,")){",c.isStream,"=true;",d,"=",l,".createStream(",Cn,",",a,");",p,"=",d,".dtype;","}else{",d,"=",l,".getBuffer(",a,");","if(",d,"){",p,"=",d,".dtype;",'}else if("constant" in ',a,"){",c.state,"=",2,";","if(typeof "+a+'.constant === "number"){',c[Lt[0]],"=",a,".constant;",Lt.slice(1).map(function(e){return c[e]}).join("="),"=0;","}else{",Lt.map(function(e,t){return c[e]+"="+a+".constant.length>"+t+"?"+a+".constant["+t+"]:0;"}).join(""),"}}else{","if(",s,"(",a,".buffer)){",d,"=",l,".createStream(",Cn,",",a,".buffer);","}else{",d,"=",l,".getBuffer(",a,".buffer);","}",p,'="type" in ',a,"?",o.glTypes,"[",a,".type]:",d,".dtype;",c.normalized,"=!!",a,".normalized;"),h("size"),h("offset"),h("stride"),h("divisor"),r("}}"),r.exit("if(",c.isStream,"){",l,".destroyStream(",d,");","}"),c})}),o}(t,p),S.context=function(e){var t=e.static,n=e.dynamic,r={};return Object.keys(t).forEach(function(e){var n=t[e];r[e]=cr(function(e,t){return"number"==typeof n||"boolean"==typeof n?""+n:e.link(n)})}),Object.keys(n).forEach(function(e){var t=n[e];r[e]=ur(t,function(e,n){return e.invoke(n,t)})}),r}(c),S}function W(e,t,n){var r=e.shared.context,a=e.scope();Object.keys(n).forEach(function(i){t.save(r,"."+i);var o=n[i].append(e,t);Array.isArray(o)?a(r,".",i,"=[",o.join(),"];"):a(r,".",i,"=",o,";")}),t(a)}function N(e,t,n,r){var a,i=e.shared,o=i.gl,s=i.framebuffer;v&&(a=t.def(i.extensions,".webgl_draw_buffers"));var l,c=e.constants,u=c.drawBuffer,d=c.backBuffer;l=n?n.append(e,t):t.def(s,".next"),r||t("if(",l,"!==",s,".cur){"),t("if(",l,"){",o,".bindFramebuffer(",36160,",",l,".framebuffer);"),v&&t(a,".drawBuffersWEBGL(",u,"[",l,".colorAttachments.length]);"),t("}else{",o,".bindFramebuffer(",36160,",null);"),v&&t(a,".drawBuffersWEBGL(",d,");"),t("}",s,".cur=",l,";"),r||t("}")}function P(e,t,n){var r=e.shared,a=r.gl,i=e.current,o=e.next,s=r.current,l=r.next,c=e.cond(s,".dirty");_.forEach(function(t){var r,u,d=k(t);if(!(d in n.state))if(d in o){r=o[d],u=i[d];var p=I(x[d].length,function(e){return c.def(r,"[",e,"]")});c(e.cond(p.map(function(e,t){return e+"!=="+u+"["+t+"]"}).join("||")).then(a,".",w[d],"(",p,");",p.map(function(e,t){return u+"["+t+"]="+e}).join(";"),";"))}else{r=c.def(l,".",d);var h=e.cond(r,"!==",s,".",d);c(h),d in O?h(e.cond(r).then(a,".enable(",O[d],");").else(a,".disable(",O[d],");"),s,".",d,"=",r,";"):h(a,".",w[d],"(",r,");",s,".",d,"=",r,";")}}),0===Object.keys(n.state).length&&c(s,".dirty=false;"),t(c)}function B(e,t,n,r){var a=e.shared,i=e.current,o=a.current,s=a.gl;or(Object.keys(n)).forEach(function(a){var l=n[a];if(!r||r(l)){var c=l.append(e,t);if(O[a]){var u=O[a];lr(l)?t(s,c?".enable(":".disable(",u,");"):t(e.cond(c).then(s,".enable(",u,");").else(s,".disable(",u,");")),t(o,".",a,"=",c,";")}else if(fe(c)){var d=i[a];t(s,".",w[a],"(",c,");",c.map(function(e,t){return d+"["+t+"]="+e}).join(";"),";")}else t(s,".",w[a],"(",c,");",o,".",a,"=",c,";")}})}function F(e,t){b&&(e.instancing=t.def(e.shared.extensions,".angle_instanced_arrays"))}function j(e,t,n,r,a){var i,o,s,l=e.shared,c=e.stats,u=l.current,d=l.timer,p=n.profile;function h(){return typeof performance>"u"?"Date.now()":"performance.now()"}function m(e){e(i=t.def(),"=",h(),";"),"string"==typeof a?e(c,".count+=",a,";"):e(c,".count++;"),f&&(r?e(o=t.def(),"=",d,".getNumPendingQueries();"):e(d,".beginQuery(",c,");"))}function g(e){e(c,".cpuTime+=",h(),"-",i,";"),f&&(r?e(d,".pushScopeStats(",o,",",d,".getNumPendingQueries(),",c,");"):e(d,".endQuery();"))}function y(e){var n=t.def(u,".profile");t(u,".profile=",e,";"),t.exit(u,".profile=",n,";")}if(p){if(lr(p))return void(p.enable?(m(t),g(t.exit),y("true")):y("false"));y(s=p.append(e,t))}else s=t.def(u,".profile");var b=e.block();m(b),t("if(",s,"){",b,"}");var v=e.block();g(v),t.exit("if(",s,"){",v,"}")}function U(e,t,n,r,a){var i=e.shared;r.forEach(function(r){var o,s=r.name,l=n.attributes[s];if(l){if(!a(l))return;o=l.append(e,t)}else{if(!a(dr))return;var c=e.scopeAttrib(s);A.optional(function(){e.assert(t,c+".state","missing attribute "+s)}),o={},Object.keys(new g).forEach(function(e){o[e]=t.def(c,".",e)})}!function(n,r,a){var o=i.gl,s=t.def(n,".location"),l=t.def(i.attributes,"[",s,"]"),c=a.state,u=a.buffer,d=[a.x,a.y,a.z,a.w],p=["buffer","normalized","offset","stride"];function h(){t("if(!",l,".buffer){",o,".enableVertexAttribArray(",s,");}");var n,i=a.type;if(n=a.size?t.def(a.size,"||",r):r,t("if(",l,".type!==",i,"||",l,".size!==",n,"||",p.map(function(e){return l+"."+e+"!=="+a[e]}).join("||"),"){",o,".bindBuffer(",Cn,",",u,".buffer);",o,".vertexAttribPointer(",[s,n,i,a.normalized,a.stride,a.offset],");",l,".type=",i,";",l,".size=",n,";",p.map(function(e){return l+"."+e+"="+a[e]+";"}).join(""),"}"),b){var c=a.divisor;t("if(",l,".divisor!==",c,"){",e.instancing,".vertexAttribDivisorANGLE(",[s,c],");",l,".divisor=",c,";}")}}function f(){t("if(",l,".buffer){",o,".disableVertexAttribArray(",s,");",l,".buffer=null;","}if(",Lt.map(function(e,t){return l+"."+e+"!=="+d[t]}).join("||"),"){",o,".vertexAttrib4f(",s,",",d,");",Lt.map(function(e,t){return l+"."+e+"="+d[t]+";"}).join(""),"}")}1===c?h():2===c?f():(t("if(",c,"===",1,"){"),h(),t("}else{"),f(),t("}"))}(e.link(r),function(e){switch(e){case Dn:case Wn:case Fn:return 2;case Rn:case Nn:case jn:return 3;case Ln:case Pn:case Un:return 4;default:return 1}}(r.info.type),o)})}function V(e,t,r,a,i,o){for(var s,l=e.shared,c=l.gl,u=0;u<a.length;++u){var d,p=a[u],h=p.name,f=p.info.type,m=r.uniforms[h],g=e.link(p)+".location";if(m){if(!i(m))continue;if(lr(m)){var y=m.value;if(A.command(null!==y&&typeof y<"u",'missing uniform "'+h+'"',e.commandStr),f===Gn||f===Yn){A.command("function"==typeof y&&(f===Gn&&("texture2d"===y._reglType||"framebuffer"===y._reglType)||f===Yn&&("textureCube"===y._reglType||"framebufferCube"===y._reglType)),"invalid texture for uniform "+h,e.commandStr);var b=e.link(y._texture||y.color[0]._texture);t(c,".uniform1i(",g,",",b+".bind());"),t.exit(b,".unbind();")}else if(f===Vn||f===Hn||f===Xn){A.optional(function(){A.command(fe(y),"invalid matrix for uniform "+h,e.commandStr),A.command(f===Vn&&4===y.length||f===Hn&&9===y.length||f===Xn&&16===y.length,"invalid length for matrix uniform "+h,e.commandStr)});var v=e.global.def("new Float32Array(["+Array.prototype.slice.call(y)+"])"),M=2;f===Hn?M=3:f===Xn&&(M=4),t(c,".uniformMatrix",M,"fv(",g,",false,",v,");")}else{switch(f){case qn:A.commandType(y,"number","uniform "+h,e.commandStr),s="1f";break;case Dn:A.command(fe(y)&&2===y.length,"uniform "+h,e.commandStr),s="2f";break;case Rn:A.command(fe(y)&&3===y.length,"uniform "+h,e.commandStr),s="3f";break;case Ln:A.command(fe(y)&&4===y.length,"uniform "+h,e.commandStr),s="4f";break;case Bn:A.commandType(y,"boolean","uniform "+h,e.commandStr),s="1i";break;case In:A.commandType(y,"number","uniform "+h,e.commandStr),s="1i";break;case Fn:case Wn:A.command(fe(y)&&2===y.length,"uniform "+h,e.commandStr),s="2i";break;case jn:case Nn:A.command(fe(y)&&3===y.length,"uniform "+h,e.commandStr),s="3i";break;case Un:case Pn:A.command(fe(y)&&4===y.length,"uniform "+h,e.commandStr),s="4i"}t(c,".uniform",s,"(",g,",",fe(y)?Array.prototype.slice.call(y):y,");")}continue}d=m.append(e,t)}else{if(!i(dr))continue;d=t.def(l.uniforms,"[",n.id(h),"]")}f===Gn?(A(!Array.isArray(d),"must specify a scalar prop for textures"),t("if(",d,"&&",d,'._reglType==="framebuffer"){',d,"=",d,".color[0];","}")):f===Yn&&(A(!Array.isArray(d),"must specify a scalar prop for cube maps"),t("if(",d,"&&",d,'._reglType==="framebufferCube"){',d,"=",d,".color[0];","}")),A.optional(function(){function n(n,r){e.assert(t,n,'bad data or missing for uniform "'+h+'". '+r)}function r(e){A(!Array.isArray(d),"must not specify an array type for uniform"),n("typeof "+d+'==="'+e+'"',"invalid type, expected "+e)}function a(t,r){Array.isArray(d)?A(d.length===t,"must have length "+t):n(l.isArrayLike+"("+d+")&&"+d+".length==="+t,"invalid vector, should have length "+t,e.commandStr)}function i(t){A(!Array.isArray(d),"must not specify a value type"),n("typeof "+d+'==="function"&&'+d+'._reglType==="texture'+(3553===t?"2d":"Cube")+'"',"invalid texture type",e.commandStr)}switch(f){case In:r("number");break;case Wn:a(2);break;case Nn:a(3);break;case Pn:a(4);break;case qn:r("number");break;case Dn:a(2);break;case Rn:a(3);break;case Ln:a(4);break;case Bn:r("boolean");break;case Fn:a(2);break;case jn:a(3);break;case Un:case Vn:a(4);break;case Hn:a(9);break;case Xn:a(16);break;case Gn:i(3553);break;case Yn:i(34067)}});var x=1;switch(f){case Gn:case Yn:var z=t.def(d,"._texture");t(c,".uniform1i(",g,",",z,".bind());"),t.exit(z,".unbind();");continue;case In:case Bn:s="1i";break;case Wn:case Fn:s="2i",x=2;break;case Nn:case jn:s="3i",x=3;break;case Pn:case Un:s="4i",x=4;break;case qn:s="1f";break;case Dn:s="2f",x=2;break;case Rn:s="3f",x=3;break;case Ln:s="4f",x=4;break;case Vn:s="Matrix2fv";break;case Hn:s="Matrix3fv";break;case Xn:s="Matrix4fv"}if("M"===s.charAt(0)){t(c,".uniform",s,"(",g,",");var _=Math.pow(f-Vn+2,2),O=e.global.def("new Float32Array(",_,")");Array.isArray(d)?t("false,(",I(_,function(e){return O+"["+e+"]="+d[e]}),",",O,")"):t("false,(Array.isArray(",d,")||",d," instanceof Float32Array)?",d,":(",I(_,function(e){return O+"["+e+"]="+d+"["+e+"]"}),",",O,")"),t(");")}else if(x>1){for(var w=[],k=[],T=0;T<x;++T)Array.isArray(d)?k.push(d[T]):k.push(t.def(d+"["+T+"]")),o&&w.push(t.def());o&&t("if(!",e.batchId,"||",w.map(function(e,t){return e+"!=="+k[t]}).join("||"),"){",w.map(function(e,t){return e+"="+k[t]+";"}).join("")),t(c,".uniform",s,"(",g,",",k.join(","),");"),o&&t("}")}else{if(A(!Array.isArray(d),"uniform value must not be an array"),o){var S=t.def();t("if(!",e.batchId,"||",S,"!==",d,"){",S,"=",d,";")}t(c,".uniform",s,"(",g,",",d,");"),o&&t("}")}}}function H(e,t,n,r){var a,i,o,s=e.shared,l=s.gl,c=s.draw,u=r.draw,d=(i=u.elements,o=t,i?((i.contextDep&&r.contextDynamic||i.propDep)&&(o=n),a=i.append(e,o),u.elementsActive&&o("if("+a+")"+l+".bindBuffer("+En+","+a+".buffer.buffer);")):(a=o.def(),o(a,"=",c,".",fn,";","if(",a,"){",l,".bindBuffer(",En,",",a,".buffer.buffer);}","else if(",s.vao,".currentVAO){",a,"=",e.shared.elements+".getElements("+s.vao,".currentVAO.elements);",M?"":"if("+a+")"+l+".bindBuffer("+En+","+a+".buffer.buffer);","}")),a);function p(a){var i=u[a];return i?i.contextDep&&r.contextDynamic||i.propDep?i.append(e,n):i.append(e,t):t.def(c,".",a)}var h,f,m=p(mn),g=p(yn),y=function(){var a,i=u.count,o=t;return i?((i.contextDep&&r.contextDynamic||i.propDep)&&(o=n),a=i.append(e,o),A.optional(function(){i.MISSING&&e.assert(t,"false","missing vertex count"),i.DYNAMIC&&e.assert(o,a+">=0","missing vertex count")})):(a=o.def(c,".",gn),A.optional(function(){e.assert(o,a+">=0","missing vertex count")})),a}();if("number"==typeof y){if(0===y)return}else n("if(",y,"){"),n.exit("}");b&&(h=p(bn),f=e.instancing);var v=d+".type",x=u.elements&&lr(u.elements)&&!u.vaoActive;function z(){function e(){n(f,".drawElementsInstancedANGLE(",[m,y,v,g+"<<(("+v+"-5121)>>1)",h],");")}function t(){n(f,".drawArraysInstancedANGLE(",[m,g,y,h],");")}d&&"null"!==d?x?e():(n("if(",d,"){"),e(),n("}else{"),t(),n("}")):t()}function _(){function e(){n(l+".drawElements("+[m,y,v,g+"<<(("+v+"-5121)>>1)"]+");")}function t(){n(l+".drawArrays("+[m,g,y]+");")}d&&"null"!==d?x?e():(n("if(",d,"){"),e(),n("}else{"),t(),n("}")):t()}b&&("number"!=typeof h||h>=0)?"string"==typeof h?(n("if(",h,">0){"),z(),n("}else if(",h,"<0){"),_(),n("}")):z():_()}function X(e,t,n,r,a){var i=R(),o=i.proc("body",a);return A.optional(function(){i.commandStr=t.commandStr,i.command=i.link(t.commandStr)}),b&&(i.instancing=o.def(i.shared.extensions,".angle_instanced_arrays")),e(i,o,n,r),i.compile().body}function G(e,t,n,r){F(e,t),n.useVAO?n.drawVAO?t(e.shared.vao,".setVAO(",n.drawVAO.append(e,t),");"):t(e.shared.vao,".setVAO(",e.shared.vao,".targetVAO);"):(t(e.shared.vao,".setVAO(null);"),U(e,t,n,r.attributes,function(){return!0})),V(e,t,n,r.uniforms,function(){return!0},!1),H(e,t,t,n)}function Y(e,t,n,r){function a(){return!0}e.batchId="a1",F(e,t),U(e,t,n,r.attributes,a),V(e,t,n,r.uniforms,a,!1),H(e,t,t,n)}function Z(e,t,n,r){F(e,t);var a=n.contextDep,i=t.def(),o=t.def();e.shared.props=o,e.batchId=i;var s=e.scope(),l=e.scope();function c(e){return e.contextDep&&a||e.propDep}function u(e){return!c(e)}if(t(s.entry,"for(",i,"=0;",i,"<","a1",";++",i,"){",o,"=","a0","[",i,"];",l,"}",s.exit),n.needsContext&&W(e,l,n.context),n.needsFramebuffer&&N(e,l,n.framebuffer),B(e,l,n.state,c),n.profile&&c(n.profile)&&j(e,l,n,!1,!0),r)n.useVAO?n.drawVAO?c(n.drawVAO)?l(e.shared.vao,".setVAO(",n.drawVAO.append(e,l),");"):s(e.shared.vao,".setVAO(",n.drawVAO.append(e,s),");"):s(e.shared.vao,".setVAO(",e.shared.vao,".targetVAO);"):(s(e.shared.vao,".setVAO(null);"),U(e,s,n,r.attributes,u),U(e,l,n,r.attributes,c)),V(e,s,n,r.uniforms,u,!1),V(e,l,n,r.uniforms,c,!0),H(e,s,l,n);else{var d=e.global.def("{}"),p=n.shader.progVar.append(e,l),h=l.def(p,".id"),f=l.def(d,"[",h,"]");l(e.shared.gl,".useProgram(",p,".program);","if(!",f,"){",f,"=",d,"[",h,"]=",e.link(function(t){return X(Y,e,n,t,2)}),"(",p,");}",f,".call(this,a0[",i,"],",i,");")}}function J(e,t,n){var r=t.static[n];if(r&&function(e){if("object"==typeof e&&!fe(e)){for(var t=Object.keys(e),n=0;n<t.length;++n)if(C.isDynamic(e[t[n]]))return!0;return!1}}(r)){var a=e.global,i=Object.keys(r),o=!1,s=!1,l=!1,c=e.global.def("{}");i.forEach(function(t){var n=r[t];if(C.isDynamic(n)){"function"==typeof n&&(n=r[t]=C.unbox(n));var i=ur(n,null);o=o||i.thisDep,l=l||i.propDep,s=s||i.contextDep}else{switch(a(c,".",t,"="),typeof n){case"number":a(n);break;case"string":a('"',n,'"');break;case"object":Array.isArray(n)&&a("[",n.join(),"]");break;default:a(e.link(n))}a(";")}}),t.dynamic[n]=new C.DynamicVariable(4,{thisDep:o,contextDep:s,propDep:l,ref:c,append:function(e,t){i.forEach(function(n){var a=r[n];if(C.isDynamic(a)){var i=e.invoke(t,a);t(c,".",n,"=",i,";")}})}}),delete t.static[n]}}return{next:z,current:x,procs:function(){var e=R(),t=e.proc("poll"),n=e.proc("refresh"),i=e.block();t(i),n(i);var o,s=e.shared,l=s.gl,c=s.next,u=s.current;i(u,".dirty=false;"),N(e,t),N(e,n,null,!0),b&&(o=e.link(b)),r.oes_vertex_array_object&&n(e.link(r.oes_vertex_array_object),".bindVertexArrayOES(null);");for(var d=0;d<a.maxAttributes;++d){var p=n.def(s.attributes,"[",d,"]"),h=e.cond(p,".buffer");h.then(l,".enableVertexAttribArray(",d,");",l,".bindBuffer(",Cn,",",p,".buffer.buffer);",l,".vertexAttribPointer(",d,",",p,".size,",p,".type,",p,".normalized,",p,".stride,",p,".offset);").else(l,".disableVertexAttribArray(",d,");",l,".vertexAttrib4f(",d,",",p,".x,",p,".y,",p,".z,",p,".w);",p,".buffer=null;"),n(h),b&&n(o,".vertexAttribDivisorANGLE(",d,",",p,".divisor);")}return n(e.shared.vao,".currentVAO=null;",e.shared.vao,".setVAO(",e.shared.vao,".targetVAO);"),Object.keys(O).forEach(function(r){var a=O[r],o=i.def(c,".",r),s=e.block();s("if(",o,"){",l,".enable(",a,")}else{",l,".disable(",a,")}",u,".",r,"=",o,";"),n(s),t("if(",o,"!==",u,".",r,"){",s,"}")}),Object.keys(w).forEach(function(r){var a,o,s=w[r],d=x[r],p=e.block();if(p(l,".",s,"("),fe(d)){var h=d.length;a=e.global.def(c,".",r),o=e.global.def(u,".",r),p(I(h,function(e){return a+"["+e+"]"}),");",I(h,function(e){return o+"["+e+"]="+a+"["+e+"];"}).join("")),t("if(",I(h,function(e){return a+"["+e+"]!=="+o+"["+e+"]"}).join("||"),"){",p,"}")}else a=i.def(c,".",r),o=i.def(u,".",r),p(a,");",u,".",r,"=",a,";"),t("if(",a,"!==",o,"){",p,"}");n(p)}),e.compile()}(),compile:function(e,r,a,i,o){var s=R();s.stats=s.link(o),Object.keys(r.static).forEach(function(e){J(s,r,e)}),Sn.forEach(function(t){J(s,e,t)});var l=L(e,r,a,i,s);return function(e,t){var n=e.proc("draw",1);F(e,n),W(e,n,t.context),N(e,n,t.framebuffer),P(e,n,t),B(e,n,t.state),j(e,n,t,!1,!0);var r=t.shader.progVar.append(e,n);if(n(e.shared.gl,".useProgram(",r,".program);"),t.shader.program)G(e,n,t,t.shader.program);else{n(e.shared.vao,".setVAO(null);");var a=e.global.def("{}"),i=n.def(r,".id"),o=n.def(a,"[",i,"]");n(e.cond(o).then(o,".call(this,a0);").else(o,"=",a,"[",i,"]=",e.link(function(n){return X(G,e,t,n,1)}),"(",r,");",o,".call(this,a0);"))}Object.keys(t.state).length>0&&n(e.shared.current,".dirty=true;"),e.shared.vao&&n(e.shared.vao,".setVAO(null);")}(s,l),function(e,t){var r=e.proc("scope",3);e.batchId="a2";var a=e.shared,i=a.current;function o(n){var i=t.shader[n];i&&r.set(a.shader,"."+n,i.append(e,r))}W(e,r,t.context),t.framebuffer&&t.framebuffer.append(e,r),or(Object.keys(t.state)).forEach(function(n){var i=t.state[n].append(e,r);fe(i)?i.forEach(function(t,a){r.set(e.next[n],"["+a+"]",t)}):r.set(a.next,"."+n,i)}),j(e,r,t,!0,!0),[fn,yn,gn,bn,mn].forEach(function(n){var i=t.draw[n];i&&r.set(a.draw,"."+n,""+i.append(e,r))}),Object.keys(t.uniforms).forEach(function(i){var o=t.uniforms[i].append(e,r);Array.isArray(o)&&(o="["+o.join()+"]"),r.set(a.uniforms,"["+n.id(i)+"]",o)}),Object.keys(t.attributes).forEach(function(n){var a=t.attributes[n].append(e,r),i=e.scopeAttrib(n);Object.keys(new g).forEach(function(e){r.set(i,"."+e,a[e])})}),t.scopeVAO&&r.set(a.vao,".targetVAO",t.scopeVAO.append(e,r)),o(pn),o(hn),Object.keys(t.state).length>0&&(r(i,".dirty=true;"),r.exit(i,".dirty=true;")),r("a1(",e.shared.context,",a0,",e.batchId,");")}(s,l),function(e,t){var n=e.proc("batch",2);e.batchId="0",F(e,n);var r=!1,a=!0;Object.keys(t.context).forEach(function(e){r=r||t.context[e].propDep}),r||(W(e,n,t.context),a=!1);var i=t.framebuffer,o=!1;function s(e){return e.contextDep&&r||e.propDep}i?(i.propDep?r=o=!0:i.contextDep&&r&&(o=!0),o||N(e,n,i)):N(e,n,null),t.state.viewport&&t.state.viewport.propDep&&(r=!0),P(e,n,t),B(e,n,t.state,function(e){return!s(e)}),(!t.profile||!s(t.profile))&&j(e,n,t,!1,"a1"),t.contextDep=r,t.needsContext=a,t.needsFramebuffer=o;var l=t.shader.progVar;if(l.contextDep&&r||l.propDep)Z(e,n,t,null);else{var c=l.append(e,n);if(n(e.shared.gl,".useProgram(",c,".program);"),t.shader.program)Z(e,n,t,t.shader.program);else{n(e.shared.vao,".setVAO(null);");var u=e.global.def("{}"),d=n.def(c,".id"),p=n.def(u,"[",d,"]");n(e.cond(p).then(p,".call(this,a0,a1);").else(p,"=",u,"[",d,"]=",e.link(function(n){return X(Z,e,t,n,2)}),"(",c,");",p,".call(this,a0,a1);"))}}Object.keys(t.state).length>0&&n(e.shared.current,".dirty=true;"),e.shared.vao&&n(e.shared.vao,".setVAO(null);")}(s,l),t(s.compile(),{destroy:function(){l.shader.program.destroy()}})}}}var hr=function(e,t){if(!t.ext_disjoint_timer_query)return null;var n=[];function r(e){n.push(e)}var a=[];function i(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var o=[];function s(e){o.push(e)}var l=[];function c(e,t,n){var r=o.pop()||new i;r.startQueryIndex=e,r.endQueryIndex=t,r.sum=0,r.stats=n,l.push(r)}var u=[],d=[];return{beginQuery:function(e){var r=n.pop()||t.ext_disjoint_timer_query.createQueryEXT();t.ext_disjoint_timer_query.beginQueryEXT(35007,r),a.push(r),c(a.length-1,a.length,e)},endQuery:function(){t.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:c,update:function(){var e,n,i=a.length;if(0!==i){d.length=Math.max(d.length,i+1),u.length=Math.max(u.length,i+1),u[0]=0,d[0]=0;var o=0;for(e=0,n=0;n<a.length;++n){var c=a[n];t.ext_disjoint_timer_query.getQueryObjectEXT(c,34919)?(o+=t.ext_disjoint_timer_query.getQueryObjectEXT(c,34918),r(c)):a[e++]=c,u[n+1]=o,d[n+1]=e}for(a.length=e,e=0,n=0;n<l.length;++n){var p=l[n],h=p.startQueryIndex,f=p.endQueryIndex;p.sum+=u[f]-u[h];var m=d[h],g=d[f];g===m?(p.stats.gpuTime+=p.sum/1e6,s(p)):(p.startQueryIndex=m,p.endQueryIndex=g,l[e++]=p)}l.length=e}},getNumPendingQueries:function(){return a.length},clear:function(){n.push.apply(n,a);for(var e=0;e<n.length;e++)t.ext_disjoint_timer_query.deleteQueryEXT(n[e]);a.length=0,n.length=0},restore:function(){a.length=0,n.length=0}}},fr="webglcontextlost",mr="webglcontextrestored";function gr(e,t){for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}return function(n){var r=L(n);if(!r)return null;var a=r.gl,i=a.getContextAttributes(),o=a.isContextLost(),s=function(e,t){var n={};function r(t){A.type(t,"string","extension name must be string");var r,a=t.toLowerCase();try{r=n[a]=e.getExtension(a)}catch{}return!!r}for(var a=0;a<t.extensions.length;++a){var i=t.extensions[a];if(!r(i))return t.onDestroy(),t.onDone('"'+i+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return t.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach(function(e){if(n[e]&&!r(e))throw new Error("(regl): error restoring extension "+e)})}}}(a,r);if(!s)return null;var l=function(){var e={"":0},t=[""];return{id:function(n){var r=e[n];return r||(r=e[n]=t.length,t.push(n),r)},str:function(e){return t[e]}}}(),c={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},u=s.extensions,d=hr(0,u),p=q(),h=a.drawingBufferWidth,f=a.drawingBufferHeight,m={tick:0,time:0,viewportWidth:h,viewportHeight:f,framebufferWidth:h,framebufferHeight:f,drawingBufferWidth:h,drawingBufferHeight:f,pixelRatio:r.pixelRatio},g={elements:null,primitive:4,count:-1,offset:0,instances:-1},y=function(e,t){var n=1;t.ext_texture_filter_anisotropic&&(n=e.getParameter(34047));var r=1,a=1;t.webgl_draw_buffers&&(r=e.getParameter(34852),a=e.getParameter(36063));var i=!!t.oes_texture_float;if(i){var o=e.createTexture();e.bindTexture(B,o),e.texImage2D(B,0,F,1,1,0,F,j,null);var s=e.createFramebuffer();if(e.bindFramebuffer(U,s),e.framebufferTexture2D(U,36064,B,o,0),e.bindTexture(B,null),36053!==e.checkFramebufferStatus(U))i=!1;else{e.viewport(0,0,1,1),e.clearColor(1,0,0,1),e.clear(16384);var l=P.allocType(j,4);e.readPixels(0,0,1,1,F,j,l),e.getError()?i=!1:(e.deleteFramebuffer(s),e.deleteTexture(o),i=1===l[0]),P.freeType(l)}}var c=!0;if(!(typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)))){var u=e.createTexture(),d=P.allocType(5121,36);e.activeTexture(33984),e.bindTexture(34067,u),e.texImage2D(34069,0,F,3,3,0,F,5121,d),P.freeType(d),e.bindTexture(34067,null),e.deleteTexture(u),c=!e.getError()}return{colorBits:[e.getParameter(3410),e.getParameter(3411),e.getParameter(3412),e.getParameter(3413)],depthBits:e.getParameter(3414),stencilBits:e.getParameter(3415),subpixelBits:e.getParameter(3408),extensions:Object.keys(t).filter(function(e){return!!t[e]}),maxAnisotropic:n,maxDrawbuffers:r,maxColorAttachments:a,pointSizeDims:e.getParameter(33901),lineWidthDims:e.getParameter(33902),maxViewportDims:e.getParameter(3386),maxCombinedTextureUnits:e.getParameter(35661),maxCubeMapSize:e.getParameter(34076),maxRenderbufferSize:e.getParameter(34024),maxTextureUnits:e.getParameter(34930),maxTextureSize:e.getParameter(3379),maxAttributes:e.getParameter(34921),maxVertexUniforms:e.getParameter(36347),maxVertexTextureUnits:e.getParameter(35660),maxVaryingVectors:e.getParameter(36348),maxFragmentUniforms:e.getParameter(36349),glsl:e.getParameter(35724),renderer:e.getParameter(7937),vendor:e.getParameter(7936),version:e.getParameter(7938),readFloat:i,npotTextureCube:c}}(a,u),b=function(t,n,r,a){var i=0,o={};function s(e){this.id=i++,this.buffer=t.createBuffer(),this.type=e,this.usage=35044,this.byteLength=0,this.dimension=1,this.dtype=ee,this.persistentData=null,r.profile&&(this.stats={size:0})}s.prototype.bind=function(){t.bindBuffer(this.type,this.buffer)},s.prototype.destroy=function(){d(this)};var l=[];function c(e,n,r){e.byteLength=n.byteLength,t.bufferData(e.type,n,r)}function u(t,n,r,a,i,o){var s,l;if(t.usage=r,Array.isArray(n)){if(t.dtype=a||te,n.length>0)if(Array.isArray(n[0])){s=K(n);for(var u=1,d=1;d<s.length;++d)u*=s[d];t.dimension=u,c(t,l=Q(n,s,t.dtype),r),o?t.persistentData=l:P.freeType(l)}else if("number"==typeof n[0]){t.dimension=i;var p=P.allocType(t.dtype,n.length);ae(p,n),c(t,p,r),o?t.persistentData=p:P.freeType(p)}else e(n[0])?(t.dimension=n[0].length,t.dtype=a||re(n[0])||te,c(t,l=Q(n,[n.length,n[0].length],t.dtype),r),o?t.persistentData=l:P.freeType(l)):A.raise("invalid buffer data")}else if(e(n))t.dtype=a||re(n),t.dimension=i,c(t,n,r),o&&(t.persistentData=new Uint8Array(new Uint8Array(n.buffer)));else if(V(n)){s=n.shape;var h=n.stride,f=n.offset,m=0,g=0,y=0,b=0;1===s.length?(m=s[0],g=1,y=h[0],b=0):2===s.length?(m=s[0],g=s[1],y=h[0],b=h[1]):A.raise("invalid shape"),t.dtype=a||re(n.data)||te,t.dimension=g;var v=P.allocType(t.dtype,m*g);ie(v,n.data,m,g,y,b,f),c(t,v,r),o?t.persistentData=v:P.freeType(v)}else n instanceof ArrayBuffer?(t.dtype=ee,t.dimension=i,c(t,n,r),o&&(t.persistentData=new Uint8Array(new Uint8Array(n)))):A.raise("invalid buffer data")}function d(e){n.bufferCount--,a(e);var r=e.buffer;A(r,"buffer must not be deleted already"),t.deleteBuffer(r),e.buffer=null,delete o[e.id]}return r.profile&&(n.getTotalBufferSize=function(){var e=0;return Object.keys(o).forEach(function(t){e+=o[t].stats.size}),e}),{create:function(a,i,l,c){n.bufferCount++;var p=new s(i);function h(n){var a=35044,i=null,o=0,s=0,l=1;return Array.isArray(n)||e(n)||V(n)||n instanceof ArrayBuffer?i=n:"number"==typeof n?o=0|n:n&&(A.type(n,"object","buffer arguments must be an object, a number or an array"),"data"in n&&(A(null===i||Array.isArray(i)||e(i)||V(i),"invalid data for buffer"),i=n.data),"usage"in n&&(A.parameter(n.usage,J,"invalid buffer usage"),a=J[n.usage]),"type"in n&&(A.parameter(n.type,$,"invalid buffer type"),s=$[n.type]),"dimension"in n&&(A.type(n.dimension,"number","invalid dimension"),l=0|n.dimension),"length"in n&&(A.nni(o,"buffer length must be a nonnegative integer"),o=0|n.length)),p.bind(),i?u(p,i,a,s,l,c):(o&&t.bufferData(p.type,o,a),p.dtype=s||ee,p.usage=a,p.dimension=l,p.byteLength=o),r.profile&&(p.stats.size=p.byteLength*ne[p.dtype]),h}function f(e,n){A(n+e.byteLength<=p.byteLength,"invalid buffer subdata call, buffer is too small. Can't write data of size "+e.byteLength+" starting from offset "+n+" to a buffer of size "+p.byteLength),t.bufferSubData(p.type,n,e)}return o[p.id]=p,l||h(a),h._reglType="buffer",h._buffer=p,h.subdata=function(t,n){var r,a=0|(n||0);if(p.bind(),e(t)||t instanceof ArrayBuffer)f(t,a);else if(Array.isArray(t)){if(t.length>0)if("number"==typeof t[0]){var i=P.allocType(p.dtype,t.length);ae(i,t),f(i,a),P.freeType(i)}else if(Array.isArray(t[0])||e(t[0])){r=K(t);var o=Q(t,r,p.dtype);f(o,a),P.freeType(o)}else A.raise("invalid buffer data")}else if(V(t)){r=t.shape;var s=t.stride,l=0,c=0,u=0,d=0;1===r.length?(l=r[0],c=1,u=s[0],d=0):2===r.length?(l=r[0],c=r[1],u=s[0],d=s[1]):A.raise("invalid shape");var m=Array.isArray(t.data)?p.dtype:re(t.data),g=P.allocType(m,l*c);ie(g,t.data,l,c,u,d,t.offset),f(g,a),P.freeType(g)}else A.raise("invalid data for buffer subdata");return h},r.profile&&(h.stats=p.stats),h.destroy=function(){d(p)},h},createStream:function(e,t){var n=l.pop();return n||(n=new s(e)),n.bind(),u(n,t,35040,0,1,!1),n},destroyStream:function(e){l.push(e)},clear:function(){H(o).forEach(d),l.forEach(d)},getBuffer:function(e){return e&&e._buffer instanceof s?e._buffer:null},restore:function(){H(o).forEach(function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)})},_initBuffer:u}}(a,c,r,function(e){return M.destroyBuffer(e)}),v=function(t,n,r,a){var i={},o=0,s={uint8:se,uint16:le};function l(e){this.id=o++,i[this.id]=this,this.buffer=e,this.primType=4,this.vertCount=0,this.type=0}n.oes_element_index_uint&&(s.uint32=ce),l.prototype.bind=function(){this.buffer.bind()};var c=[];function u(a,i,o,s,l,c,u){var d;if(a.buffer.bind(),i){var p=u;!u&&(!e(i)||V(i)&&!e(i.data))&&(p=n.oes_element_index_uint?ce:le),r._initBuffer(a.buffer,i,o,p,3)}else t.bufferData(ue,c,o),a.buffer.dtype=d||se,a.buffer.usage=o,a.buffer.dimension=3,a.buffer.byteLength=c;if(d=u,!u){switch(a.buffer.dtype){case se:case 5120:d=se;break;case le:case 5122:d=le;break;case ce:case 5124:d=ce;break;default:A.raise("unsupported type for element array")}a.buffer.dtype=d}a.type=d,A(d!==ce||!!n.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var h=l;h<0&&(h=a.buffer.byteLength,d===le?h>>=1:d===ce&&(h>>=2)),a.vertCount=h;var f=s;if(s<0){f=4;var m=a.buffer.dimension;1===m&&(f=0),2===m&&(f=1),3===m&&(f=4)}a.primType=f}function d(e){a.elementsCount--,A(null!==e.buffer,"must not double destroy elements"),delete i[e.id],e.buffer.destroy(),e.buffer=null}return{create:function(t,n){var i=r.create(null,ue,!0),o=new l(i._buffer);function c(t){if(t)if("number"==typeof t)i(t),o.primType=4,o.vertCount=0|t,o.type=se;else{var n=null,r=35044,a=-1,l=-1,d=0,p=0;Array.isArray(t)||e(t)||V(t)?n=t:(A.type(t,"object","invalid arguments for elements"),"data"in t&&(n=t.data,A(Array.isArray(n)||e(n)||V(n),"invalid data for element buffer")),"usage"in t&&(A.parameter(t.usage,J,"invalid element buffer usage"),r=J[t.usage]),"primitive"in t&&(A.parameter(t.primitive,oe,"invalid element buffer primitive"),a=oe[t.primitive]),"count"in t&&(A("number"==typeof t.count&&t.count>=0,"invalid vertex count for elements"),l=0|t.count),"type"in t&&(A.parameter(t.type,s,"invalid buffer type"),p=s[t.type]),"length"in t?d=0|t.length:(d=l,p===le||5122===p?d*=2:(p===ce||5124===p)&&(d*=4))),u(o,n,r,a,l,d,p)}else i(),o.primType=4,o.vertCount=0,o.type=se;return c}return a.elementsCount++,c(t),c._reglType="elements",c._elements=o,c.subdata=function(e,t){return i.subdata(e,t),c},c.destroy=function(){d(o)},c},createStream:function(e){var t=c.pop();return t||(t=new l(r.create(null,ue,!0,!1)._buffer)),u(t,e,35040,-1,-1,0,0),t},destroyStream:function(e){c.push(e)},getElements:function(e){return"function"==typeof e&&e._elements instanceof l?e._elements:null},clear:function(){H(i).forEach(d)}}}(a,u,b,c),M=function(t,n,r,a,i,o,s){for(var l=r.maxAttributes,c=new Array(l),u=0;u<l;++u)c[u]=new St;var d=0,p={},h={Record:St,scope:{},state:c,currentVAO:null,targetVAO:null,restore:f()?function(){f()&&H(p).forEach(function(e){e.refresh()})}:function(){},createVAO:function(t){var r=new g;function s(t){var a;if(Array.isArray(t))a=t,r.elements&&r.ownsElements&&r.elements.destroy(),r.elements=null,r.ownsElements=!1,r.offset=0,r.count=0,r.instances=-1,r.primitive=4;else{if(A("object"==typeof t,"invalid arguments for create vao"),A("attributes"in t,"must specify attributes for vao"),t.elements){var c=t.elements;r.ownsElements?"function"==typeof c&&"elements"===c._reglType?(r.elements.destroy(),r.ownsElements=!1):(r.elements(c),r.ownsElements=!1):o.getElements(t.elements)?(r.elements=t.elements,r.ownsElements=!1):(r.elements=o.create(t.elements),r.ownsElements=!0)}else r.elements=null,r.ownsElements=!1;a=t.attributes,r.offset=0,r.count=-1,r.instances=-1,r.primitive=4,r.elements&&(r.count=r.elements._elements.vertCount,r.primitive=r.elements._elements.primType),"offset"in t&&(r.offset=0|t.offset),"count"in t&&(r.count=0|t.count),"instances"in t&&(r.instances=0|t.instances),"primitive"in t&&(A(t.primitive in oe,"bad primitive type: "+t.primitive),r.primitive=oe[t.primitive]),A.optional(()=>{for(var e=Object.keys(t),n=0;n<e.length;++n)A(Tt.indexOf(e[n])>=0,'invalid option for vao: "'+e[n]+'" valid options are '+Tt)}),A(Array.isArray(a),"attributes must be an array")}A(a.length<l,"too many attributes"),A(a.length>0,"must specify at least one attribute");var u={},d=r.attributes;d.length=a.length;for(var p=0;p<a.length;++p){var h,f=a[p],m=d[p]=new St,g=f.data||f;Array.isArray(g)||e(g)||V(g)?(r.buffers[p]&&(h=r.buffers[p],e(g)&&h._buffer.byteLength>=g.byteLength?h.subdata(g):(h.destroy(),r.buffers[p]=null)),r.buffers[p]||(h=r.buffers[p]=i.create(f,34962,!1,!0)),m.buffer=i.getBuffer(h),m.size=0|m.buffer.dimension,m.normalized=!1,m.type=m.buffer.dtype,m.offset=0,m.stride=0,m.divisor=0,m.state=1,u[p]=1):i.getBuffer(f)?(m.buffer=i.getBuffer(f),m.size=0|m.buffer.dimension,m.normalized=!1,m.type=m.buffer.dtype,m.offset=0,m.stride=0,m.divisor=0,m.state=1):i.getBuffer(f.buffer)?(m.buffer=i.getBuffer(f.buffer),m.size=0|(+f.size||m.buffer.dimension),m.normalized=!!f.normalized||!1,"type"in f?(A.parameter(f.type,$,"invalid buffer type"),m.type=$[f.type]):m.type=m.buffer.dtype,m.offset=0|(f.offset||0),m.stride=0|(f.stride||0),m.divisor=0|(f.divisor||0),m.state=1,A(m.size>=1&&m.size<=4,"size must be between 1 and 4"),A(m.offset>=0,"invalid offset"),A(m.stride>=0&&m.stride<=255,"stride must be between 0 and 255"),A(m.divisor>=0,"divisor must be positive"),A(!m.divisor||!!n.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in f?(A(p>0,"first attribute must not be a constant"),m.x=+f.x||0,m.y=+f.y||0,m.z=+f.z||0,m.w=+f.w||0,m.state=2):A(!1,"invalid attribute spec for location "+p)}for(var y=0;y<r.buffers.length;++y)!u[y]&&r.buffers[y]&&(r.buffers[y].destroy(),r.buffers[y]=null);return r.refresh(),s}return a.vaoCount+=1,s.destroy=function(){for(var e=0;e<r.buffers.length;++e)r.buffers[e]&&r.buffers[e].destroy();r.buffers.length=0,r.ownsElements&&(r.elements.destroy(),r.elements=null,r.ownsElements=!1),r.destroy()},s._vao=r,s._reglType="vao",s(t)},getVAO:function(e){return"function"==typeof e&&e._vao?e._vao:null},destroyBuffer:function(e){for(var n=0;n<c.length;++n){var r=c[n];r.buffer===e&&(t.disableVertexAttribArray(n),r.buffer=null)}},setVAO:f()?function(e){if(e!==h.currentVAO){var t=f();e?t.bindVertexArrayOES(e.vao):t.bindVertexArrayOES(null),h.currentVAO=e}}:function(e){if(e!==h.currentVAO){if(e)e.bindAttrs();else{for(var n=m(),r=0;r<c.length;++r){var a=c[r];a.buffer?(t.enableVertexAttribArray(r),a.buffer.bind(),t.vertexAttribPointer(r,a.size,a.type,a.normalized,a.stride,a.offfset),n&&a.divisor&&n.vertexAttribDivisorANGLE(r,a.divisor)):(t.disableVertexAttribArray(r),t.vertexAttrib4f(r,a.x,a.y,a.z,a.w))}s.elements?t.bindBuffer(kt,s.elements.buffer.buffer):t.bindBuffer(kt,null)}h.currentVAO=e}},clear:f()?function(){H(p).forEach(function(e){e.destroy()})}:function(){}};function f(){return n.oes_vertex_array_object}function m(){return n.angle_instanced_arrays}function g(){this.id=++d,this.attributes=[],this.elements=null,this.ownsElements=!1,this.count=0,this.offset=0,this.instances=-1,this.primitive=4;var e=f();this.vao=e?e.createVertexArrayOES():null,p[this.id]=this,this.buffers=[]}return g.prototype.bindAttrs=function(){for(var e=m(),n=this.attributes,r=0;r<n.length;++r){var a=n[r];a.buffer?(t.enableVertexAttribArray(r),t.bindBuffer(34962,a.buffer.buffer),t.vertexAttribPointer(r,a.size,a.type,a.normalized,a.stride,a.offset),e&&a.divisor&&e.vertexAttribDivisorANGLE(r,a.divisor)):(t.disableVertexAttribArray(r),t.vertexAttrib4f(r,a.x,a.y,a.z,a.w))}for(var i=n.length;i<l;++i)t.disableVertexAttribArray(i);var s=o.getElements(this.elements);s?t.bindBuffer(kt,s.buffer.buffer):t.bindBuffer(kt,null)},g.prototype.refresh=function(){var e=f();e&&(e.bindVertexArrayOES(this.vao),this.bindAttrs(),h.currentVAO=null,e.bindVertexArrayOES(null))},g.prototype.destroy=function(){if(this.vao){var e=f();this===h.currentVAO&&(h.currentVAO=null,e.bindVertexArrayOES(null)),e.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&&(this.elements.destroy(),this.elements=null,this.ownsElements=!1),p[this.id]&&(delete p[this.id],a.vaoCount-=1)},h}(a,u,y,c,b,v,g),x=function(e,n,r,a){var i={},o={};function s(e,t,n,r){this.name=e,this.id=t,this.location=n,this.info=r}function l(e,t){for(var n=0;n<e.length;++n)if(e[n].id===t.id)return void(e[n].location=t.location);e.push(t)}function c(t,r,a){var s=35632===t?i:o,l=s[r];if(!l){var c=n.str(r);l=e.createShader(t),e.shaderSource(l,c),e.compileShader(l),A.shaderError(e,l,c,t,a),s[r]=l}return l}var u={},d=[],p=0;function h(e,t){this.id=p++,this.fragId=e,this.vertId=t,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,a.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function f(t,r,i){var o,u,d=c(35632,t.fragId),p=c(35633,t.vertId),h=t.program=e.createProgram();if(e.attachShader(h,d),e.attachShader(h,p),i)for(o=0;o<i.length;++o){var f=i[o];e.bindAttribLocation(h,f[0],f[1])}e.linkProgram(h),A.linkError(e,h,n.str(t.fragId),n.str(t.vertId),r);var m=e.getProgramParameter(h,35718);a.profile&&(t.stats.uniformsCount=m);var g=t.uniforms;for(o=0;o<m;++o)if(u=e.getActiveUniform(h,o))if(u.size>1)for(var y=0;y<u.size;++y){var b=u.name.replace("[0]","["+y+"]");l(g,new s(b,n.id(b),e.getUniformLocation(h,b),u))}else l(g,new s(u.name,n.id(u.name),e.getUniformLocation(h,u.name),u));var v=e.getProgramParameter(h,35721);a.profile&&(t.stats.attributesCount=v);var M=t.attributes;for(o=0;o<v;++o)(u=e.getActiveAttrib(h,o))&&l(M,new s(u.name,n.id(u.name),e.getAttribLocation(h,u.name),u))}return a.profile&&(r.getMaxUniformsCount=function(){var e=0;return d.forEach(function(t){t.stats.uniformsCount>e&&(e=t.stats.uniformsCount)}),e},r.getMaxAttributesCount=function(){var e=0;return d.forEach(function(t){t.stats.attributesCount>e&&(e=t.stats.attributesCount)}),e}),{clear:function(){var t=e.deleteShader.bind(e);H(i).forEach(t),i={},H(o).forEach(t),o={},d.forEach(function(t){e.deleteProgram(t.program)}),d.length=0,u={},r.shaderCount=0},program:function(n,a,s,l){A.command(n>=0,"missing vertex shader",s),A.command(a>=0,"missing fragment shader",s);var c=u[a];c||(c=u[a]={});var p=c[n];if(p&&(p.refCount++,!l))return p;var m=new h(a,n);return r.shaderCount++,f(m,s,l),p||(c[n]=m),d.push(m),t(m,{destroy:function(){if(m.refCount--,m.refCount<=0){e.deleteProgram(m.program);var t=d.indexOf(m);d.splice(t,1),r.shaderCount--}c[m.vertId].refCount<=0&&(e.deleteShader(o[m.vertId]),delete o[m.vertId],delete u[m.fragId][m.vertId]),Object.keys(u[m.fragId]).length||(e.deleteShader(i[m.fragId]),delete i[m.fragId],delete u[m.fragId])}})},restore:function(){i={},o={};for(var e=0;e<d.length;++e)f(d[e],null,d[e].attributes.map(function(e){return[e.location,e.name]}))},shader:c,frag:-1,vert:-1}}(a,l,c,r),z=ht(a,u,y,function(){w.procs.poll()},m,c,r),_=function(e,t,n,r,a){var i={rgba4:mt,rgb565:36194,"rgb5 a1":32855,depth:33189,stencil:36168,"depth stencil":34041};t.ext_srgb&&(i.srgba=35907),t.ext_color_buffer_half_float&&(i.rgba16f=34842,i.rgb16f=34843),t.webgl_color_buffer_float&&(i.rgba32f=34836);var o=[];Object.keys(i).forEach(function(e){var t=i[e];o[t]=e});var s=0,l={};function c(e){this.id=s++,this.refCount=1,this.renderbuffer=e,this.format=mt,this.width=0,this.height=0,a.profile&&(this.stats={size:0})}function u(t){var n=t.renderbuffer;A(n,"must not double destroy renderbuffer"),e.bindRenderbuffer(ft,null),e.deleteRenderbuffer(n),t.renderbuffer=null,t.refCount=0,delete l[t.id],r.renderbufferCount--}return c.prototype.decRef=function(){--this.refCount<=0&&u(this)},a.profile&&(r.getTotalRenderbufferSize=function(){var e=0;return Object.keys(l).forEach(function(t){e+=l[t].stats.size}),e}),{create:function(t,s){var u=new c(e.createRenderbuffer());function d(t,r){var s=0,l=0,c=mt;if("object"==typeof t&&t){var p=t;if("shape"in p){var h=p.shape;A(Array.isArray(h)&&h.length>=2,"invalid renderbuffer shape"),s=0|h[0],l=0|h[1]}else"radius"in p&&(s=l=0|p.radius),"width"in p&&(s=0|p.width),"height"in p&&(l=0|p.height);"format"in p&&(A.parameter(p.format,i,"invalid renderbuffer format"),c=i[p.format])}else"number"==typeof t?(s=0|t,l="number"==typeof r?0|r:s):t?A.raise("invalid arguments to renderbuffer constructor"):s=l=1;if(A(s>0&&l>0&&s<=n.maxRenderbufferSize&&l<=n.maxRenderbufferSize,"invalid renderbuffer size"),s!==u.width||l!==u.height||c!==u.format)return d.width=u.width=s,d.height=u.height=l,u.format=c,e.bindRenderbuffer(ft,u.renderbuffer),e.renderbufferStorage(ft,c,s,l),A(0===e.getError(),"invalid render buffer format"),a.profile&&(u.stats.size=yt(u.format,u.width,u.height)),d.format=o[u.format],d}return l[u.id]=u,r.renderbufferCount++,d(t,s),d.resize=function(t,r){var i=0|t,o=0|r||i;return i===u.width&&o===u.height||(A(i>0&&o>0&&i<=n.maxRenderbufferSize&&o<=n.maxRenderbufferSize,"invalid renderbuffer size"),d.width=u.width=i,d.height=u.height=o,e.bindRenderbuffer(ft,u.renderbuffer),e.renderbufferStorage(ft,u.format,i,o),A(0===e.getError(),"invalid render buffer format"),a.profile&&(u.stats.size=yt(u.format,u.width,u.height))),d},d._reglType="renderbuffer",d._renderbuffer=u,a.profile&&(d.stats=u.stats),d.destroy=function(){u.decRef()},d},clear:function(){H(l).forEach(u)},restore:function(){H(l).forEach(function(t){t.renderbuffer=e.createRenderbuffer(),e.bindRenderbuffer(ft,t.renderbuffer),e.renderbufferStorage(ft,t.format,t.width,t.height)}),e.bindRenderbuffer(ft,null)}}}(a,u,y,c,r),O=function(e,n,r,a,i,o){var s={cur:null,next:null,dirty:!1,setFBO:null},l=["rgba"],c=["rgba4","rgb565","rgb5 a1"];n.ext_srgb&&c.push("srgba"),n.ext_color_buffer_half_float&&c.push("rgba16f","rgb16f"),n.webgl_color_buffer_float&&c.push("rgba32f");var u=["uint8"];function d(e,t,n){this.target=e,this.texture=t,this.renderbuffer=n;var r=0,a=0;t?(r=t.width,a=t.height):n&&(r=n.width,a=n.height),this.width=r,this.height=a}function p(e){e&&(e.texture&&e.texture._texture.decRef(),e.renderbuffer&&e.renderbuffer._renderbuffer.decRef())}function h(e,t,n){if(e)if(e.texture){var r=e.texture._texture,a=Math.max(1,r.width),i=Math.max(1,r.height);A(a===t&&i===n,"inconsistent width/height for supplied texture"),r.refCount+=1}else{var o=e.renderbuffer._renderbuffer;A(o.width===t&&o.height===n,"inconsistent width/height for renderbuffer"),o.refCount+=1}}function f(t,n){n&&(n.texture?e.framebufferTexture2D(bt,t,n.target,n.texture._texture.texture,0):e.framebufferRenderbuffer(bt,t,vt,n.renderbuffer._renderbuffer.renderbuffer))}function m(e){var t=Mt,n=null,r=null,a=e;"object"==typeof e&&(a=e.data,"target"in e&&(t=0|e.target)),A.type(a,"function","invalid attachment data");var i=a._reglType;return"texture2d"===i?(n=a,A(t===Mt)):"textureCube"===i?(n=a,A(t>=xt&&t<xt+6,"invalid cube map target")):"renderbuffer"===i?(r=a,t=vt):A.raise("invalid regl object for attachment"),new d(t,n,r)}function g(e,t,n,r,o){if(n){var s=a.create2D({width:e,height:t,format:r,type:o});return s._texture.refCount=0,new d(Mt,s,null)}var l=i.create({width:e,height:t,format:r});return l._renderbuffer.refCount=0,new d(vt,null,l)}function y(e){return e&&(e.texture||e.renderbuffer)}function b(e,t,n){e&&(e.texture?e.texture.resize(t,n):e.renderbuffer&&e.renderbuffer.resize(t,n),e.width=t,e.height=n)}n.oes_texture_half_float&&u.push("half float","float16"),n.oes_texture_float&&u.push("float","float32");var v=0,M={};function x(){this.id=v++,M[this.id]=this,this.framebuffer=e.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function z(e){e.colorAttachments.forEach(p),p(e.depthAttachment),p(e.stencilAttachment),p(e.depthStencilAttachment)}function _(t){var n=t.framebuffer;A(n,"must not double destroy framebuffer"),e.deleteFramebuffer(n),t.framebuffer=null,o.framebufferCount--,delete M[t.id]}function O(t){var n;e.bindFramebuffer(bt,t.framebuffer);var a=t.colorAttachments;for(n=0;n<a.length;++n)f(36064+n,a[n]);for(n=a.length;n<r.maxColorAttachments;++n)e.framebufferTexture2D(bt,36064+n,Mt,null,0);e.framebufferTexture2D(bt,33306,Mt,null,0),e.framebufferTexture2D(bt,36096,Mt,null,0),e.framebufferTexture2D(bt,36128,Mt,null,0),f(36096,t.depthAttachment),f(36128,t.stencilAttachment),f(33306,t.depthStencilAttachment);var i=e.checkFramebufferStatus(bt);!e.isContextLost()&&36053!==i&&A.raise("framebuffer configuration not supported, status = "+wt[i]),e.bindFramebuffer(bt,s.next?s.next.framebuffer:null),s.cur=s.next,e.getError()}function w(e,a){var i=new x;function d(e,t){var a;A(s.next!==i,"can not update framebuffer which is currently in use");var o=0,p=0,f=!0,b=!0,v=null,M=!0,x="rgba",_="uint8",w=1,k=null,T=null,S=null,C=!1;if("number"==typeof e)o=0|e,p=0|t||o;else if(e){A.type(e,"object","invalid arguments for framebuffer");var E=e;if("shape"in E){var q=E.shape;A(Array.isArray(q)&&q.length>=2,"invalid shape for framebuffer"),o=q[0],p=q[1]}else"radius"in E&&(o=p=E.radius),"width"in E&&(o=E.width),"height"in E&&(p=E.height);("color"in E||"colors"in E)&&(v=E.color||E.colors,Array.isArray(v)&&A(1===v.length||n.webgl_draw_buffers,"multiple render targets not supported")),v||("colorCount"in E&&(w=0|E.colorCount,A(w>0,"invalid color buffer count")),"colorTexture"in E&&(M=!!E.colorTexture,x="rgba4"),"colorType"in E&&(_=E.colorType,M?(A(n.oes_texture_float||!("float"===_||"float32"===_),"you must enable OES_texture_float in order to use floating point framebuffer objects"),A(n.oes_texture_half_float||!("half float"===_||"float16"===_),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):"half float"===_||"float16"===_?(A(n.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),x="rgba16f"):("float"===_||"float32"===_)&&(A(n.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),x="rgba32f"),A.oneOf(_,u,"invalid color type")),"colorFormat"in E&&(x=E.colorFormat,l.indexOf(x)>=0?M=!0:c.indexOf(x)>=0?M=!1:A.optional(function(){M?A.oneOf(E.colorFormat,l,"invalid color format for texture"):A.oneOf(E.colorFormat,c,"invalid color format for renderbuffer")}))),("depthTexture"in E||"depthStencilTexture"in E)&&(C=!(!E.depthTexture&&!E.depthStencilTexture),A(!C||n.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in E&&("boolean"==typeof E.depth?f=E.depth:(k=E.depth,b=!1)),"stencil"in E&&("boolean"==typeof E.stencil?b=E.stencil:(T=E.stencil,f=!1)),"depthStencil"in E&&("boolean"==typeof E.depthStencil?f=b=E.depthStencil:(S=E.depthStencil,f=!1,b=!1))}else o=p=1;var D=null,R=null,L=null,I=null;if(Array.isArray(v))D=v.map(m);else if(v)D=[m(v)];else for(D=new Array(w),a=0;a<w;++a)D[a]=g(o,p,M,x,_);A(n.webgl_draw_buffers||D.length<=1,"you must enable the WEBGL_draw_buffers extension in order to use multiple color buffers."),A(D.length<=r.maxColorAttachments,"too many color attachments, not supported"),o=o||D[0].width,p=p||D[0].height,k?R=m(k):f&&!b&&(R=g(o,p,C,"depth","uint32")),T?L=m(T):b&&!f&&(L=g(o,p,!1,"stencil","uint8")),S?I=m(S):!k&&!T&&b&&f&&(I=g(o,p,C,"depth stencil","depth stencil")),A(!!k+!!T+!!S<=1,"invalid framebuffer configuration, can specify exactly one depth/stencil attachment");var W=null;for(a=0;a<D.length;++a)if(h(D[a],o,p),A(!D[a]||D[a].texture&&zt.indexOf(D[a].texture._texture.format)>=0||D[a].renderbuffer&&Ot.indexOf(D[a].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+a+" is invalid"),D[a]&&D[a].texture){var N=_t[D[a].texture._texture.format]*At[D[a].texture._texture.type];null===W?W=N:A(W===N,"all color attachments much have the same number of bits per pixel.")}return h(R,o,p),A(!R||R.texture&&6402===R.texture._texture.format||R.renderbuffer&&33189===R.renderbuffer._renderbuffer.format,"invalid depth attachment for framebuffer object"),h(L,o,p),A(!L||L.renderbuffer&&36168===L.renderbuffer._renderbuffer.format,"invalid stencil attachment for framebuffer object"),h(I,o,p),A(!I||I.texture&&34041===I.texture._texture.format||I.renderbuffer&&34041===I.renderbuffer._renderbuffer.format,"invalid depth-stencil attachment for framebuffer object"),z(i),i.width=o,i.height=p,i.colorAttachments=D,i.depthAttachment=R,i.stencilAttachment=L,i.depthStencilAttachment=I,d.color=D.map(y),d.depth=y(R),d.stencil=y(L),d.depthStencil=y(I),d.width=i.width,d.height=i.height,O(i),d}return o.framebufferCount++,d(e,a),t(d,{resize:function(e,t){A(s.next!==i,"can not resize a framebuffer which is currently in use");var n=Math.max(0|e,1),r=Math.max(0|t||n,1);if(n===i.width&&r===i.height)return d;for(var a=i.colorAttachments,o=0;o<a.length;++o)b(a[o],n,r);return b(i.depthAttachment,n,r),b(i.stencilAttachment,n,r),b(i.depthStencilAttachment,n,r),i.width=d.width=n,i.height=d.height=r,O(i),d},_reglType:"framebuffer",_framebuffer:i,destroy:function(){_(i),z(i)},use:function(e){s.setFBO({framebuffer:d},e)}})}return t(s,{getFramebuffer:function(e){if("function"==typeof e&&"framebuffer"===e._reglType){var t=e._framebuffer;if(t instanceof x)return t}return null},create:w,createCube:function(e){var i=Array(6);function o(e){var r;A(i.indexOf(s.next)<0,"can not update framebuffer which is currently in use");var c,d={color:null},p=0,h=null,f="rgba",m="uint8",g=1;if("number"==typeof e)p=0|e;else if(e){A.type(e,"object","invalid arguments for framebuffer");var y=e;if("shape"in y){var b=y.shape;A(Array.isArray(b)&&b.length>=2,"invalid shape for framebuffer"),A(b[0]===b[1],"cube framebuffer must be square"),p=b[0]}else"radius"in y&&(p=0|y.radius),"width"in y?(p=0|y.width,"height"in y&&A(y.height===p,"must be square")):"height"in y&&(p=0|y.height);("color"in y||"colors"in y)&&(h=y.color||y.colors,Array.isArray(h)&&A(1===h.length||n.webgl_draw_buffers,"multiple render targets not supported")),h||("colorCount"in y&&(g=0|y.colorCount,A(g>0,"invalid color buffer count")),"colorType"in y&&(A.oneOf(y.colorType,u,"invalid color type"),m=y.colorType),"colorFormat"in y&&(f=y.colorFormat,A.oneOf(y.colorFormat,l,"invalid color format for texture"))),"depth"in y&&(d.depth=y.depth),"stencil"in y&&(d.stencil=y.stencil),"depthStencil"in y&&(d.depthStencil=y.depthStencil)}else p=1;if(h)if(Array.isArray(h))for(c=[],r=0;r<h.length;++r)c[r]=h[r];else c=[h];else{c=Array(g);var v={radius:p,format:f,type:m};for(r=0;r<g;++r)c[r]=a.createCube(v)}for(d.color=Array(c.length),r=0;r<c.length;++r){var M=c[r];A("function"==typeof M&&"textureCube"===M._reglType,"invalid cube map"),p=p||M.width,A(M.width===p&&M.height===p,"invalid cube map shape"),d.color[r]={target:xt,data:c[r]}}for(r=0;r<6;++r){for(var x=0;x<c.length;++x)d.color[x].target=xt+r;r>0&&(d.depth=i[0].depth,d.stencil=i[0].stencil,d.depthStencil=i[0].depthStencil),i[r]?i[r](d):i[r]=w(d)}return t(o,{width:p,height:p,color:c})}return o(e),t(o,{faces:i,resize:function(e){var t,n=0|e;if(A(n>0&&n<=r.maxCubeMapSize,"invalid radius for cube fbo"),n===o.width)return o;var a=o.color;for(t=0;t<a.length;++t)a[t].resize(n);for(t=0;t<6;++t)i[t].resize(n);return o.width=o.height=n,o},_reglType:"framebufferCube",destroy:function(){i.forEach(function(e){e.destroy()})}})},clear:function(){H(M).forEach(_)},restore:function(){s.cur=null,s.next=null,s.dirty=!0,H(M).forEach(function(t){t.framebuffer=e.createFramebuffer(),O(t)})}})}(a,u,y,z,_,c),w=pr(a,l,u,y,b,v,0,O,{},M,x,g,m,d,r),k=qt(a,O,w.procs.poll,m,i,u,y),T=w.next,S=a.canvas,D=[],R=[],I=[],W=[r.onDestroy],N=null;function X(){if(0===D.length)return d&&d.update(),void(N=null);N=E.next(X),ye();for(var e=D.length-1;e>=0;--e){var t=D[e];t&&t(m,null,0)}a.flush(),d&&d.update()}function G(){!N&&D.length>0&&(N=E.next(X))}function Y(){N&&(E.cancel(X),N=null)}function Z(e){e.preventDefault(),o=!0,Y(),R.forEach(function(e){e()})}function de(e){a.getError(),o=!1,s.restore(),x.restore(),b.restore(),z.restore(),_.restore(),O.restore(),M.restore(),d&&d.restore(),w.procs.refresh(),G(),I.forEach(function(e){e()})}function pe(e){function n(e,t){var n={},r={};return Object.keys(e).forEach(function(a){var i=e[a];if(C.isDynamic(i))r[a]=C.unbox(i,a);else{if(t&&Array.isArray(i))for(var o=0;o<i.length;++o)if(C.isDynamic(i[o]))return void(r[a]=C.unbox(i,a));n[a]=i}}),{dynamic:r,static:n}}A(!!e,"invalid args to regl({...})"),A.type(e,"object","invalid args to regl({...})");var r=n(e.context||{},!0),a=n(e.uniforms||{},!0),i=n(e.attributes||{},!1),s=n(function(e){var n=t({},e);function r(e){if(e in n){var t=n[e];delete n[e],Object.keys(t).forEach(function(r){n[e+"."+r]=t[r]})}}return delete n.uniforms,delete n.attributes,delete n.context,delete n.vao,"stencil"in n&&n.stencil.op&&(n.stencil.opBack=n.stencil.opFront=n.stencil.op,delete n.stencil.op),r("blend"),r("depth"),r("cull"),r("stencil"),r("polygonOffset"),r("scissor"),r("sample"),"vao"in e&&(n.vao=e.vao),n}(e),!1),l={gpuTime:0,cpuTime:0,count:0},c=w.compile(s,i,a,r,l),u=c.draw,d=c.batch,p=c.scope,h=[];return t(function(e,t){var n;if(o&&A.raise("context lost"),"function"==typeof e)return p.call(this,null,e,0);if("function"==typeof t)if("number"==typeof e)for(n=0;n<e;++n)p.call(this,null,t,n);else{if(!Array.isArray(e))return p.call(this,e,t,0);for(n=0;n<e.length;++n)p.call(this,e[n],t,n)}else if("number"==typeof e){if(e>0)return d.call(this,function(e){for(;h.length<e;)h.push(null);return h}(0|e),0|e)}else{if(!Array.isArray(e))return u.call(this,e);if(e.length)return d.call(this,e,e.length)}},{stats:l,destroy:function(){c.destroy()}})}S&&(S.addEventListener(fr,Z,!1),S.addEventListener(mr,de,!1));var he=O.setFBO=pe({framebuffer:C.define.call(null,1,"framebuffer")});function fe(e,t){var n=0;w.procs.poll();var r=t.color;r&&(a.clearColor(+r[0]||0,+r[1]||0,+r[2]||0,+r[3]||0),n|=16384),"depth"in t&&(a.clearDepth(+t.depth),n|=256),"stencil"in t&&(a.clearStencil(0|t.stencil),n|=1024),A(!!n,"called regl.clear with no buffer specified"),a.clear(n)}function me(e){return A.type(e,"function","regl.frame() callback must be a function"),D.push(e),G(),{cancel:function(){var t=gr(D,e);A(t>=0,"cannot cancel a frame twice"),D[t]=function e(){var t=gr(D,e);D[t]=D[D.length-1],D.length-=1,D.length<=0&&Y()}}}}function ge(){var e=T.viewport,t=T.scissor_box;e[0]=e[1]=t[0]=t[1]=0,m.viewportWidth=m.framebufferWidth=m.drawingBufferWidth=e[2]=t[2]=a.drawingBufferWidth,m.viewportHeight=m.framebufferHeight=m.drawingBufferHeight=e[3]=t[3]=a.drawingBufferHeight}function ye(){m.tick+=1,m.time=ve(),ge(),w.procs.poll()}function be(){z.refresh(),ge(),w.procs.refresh(),d&&d.update()}function ve(){return(q()-p)/1e3}be();var Me=t(pe,{clear:function(e){if(A("object"==typeof e&&e,"regl.clear() takes an object as input"),"framebuffer"in e)if(e.framebuffer&&"framebufferCube"===e.framebuffer_reglType)for(var n=0;n<6;++n)he(t({framebuffer:e.framebuffer.faces[n]},e),fe);else he(e,fe);else fe(0,e)},prop:C.define.bind(null,1),context:C.define.bind(null,2),this:C.define.bind(null,3),draw:pe({}),buffer:function(e){return b.create(e,34962,!1,!1)},elements:function(e){return v.create(e,!1)},texture:z.create2D,cube:z.createCube,renderbuffer:_.create,framebuffer:O.create,framebufferCube:O.createCube,vao:M.createVAO,attributes:i,frame:me,on:function(e,t){var n;switch(A.type(t,"function","listener callback must be a function"),e){case"frame":return me(t);case"lost":n=R;break;case"restore":n=I;break;case"destroy":n=W;break;default:A.raise("invalid event, must be one of frame,lost,restore,destroy")}return n.push(t),{cancel:function(){for(var e=0;e<n.length;++e)if(n[e]===t)return n[e]=n[n.length-1],void n.pop()}}},limits:y,hasExtension:function(e){return y.extensions.indexOf(e.toLowerCase())>=0},read:k,destroy:function(){D.length=0,Y(),S&&(S.removeEventListener(fr,Z),S.removeEventListener(mr,de)),x.clear(),O.clear(),_.clear(),M.clear(),z.clear(),v.clear(),b.clear(),d&&d.clear(),W.forEach(function(e){e()})},_gl:a,_refresh:be,poll:function(){ye(),d&&d.update()},now:ve,stats:c});return r.onDone(null,Me),Me}},"object"==typeof e&&typeof t<"u"?t.exports=r():"function"==typeof define&&define.amd?define(r):n.createREGL=r()}),Bpt=Ee((e,t)=>{var n=Y3();function r(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*global.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*global.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function a(e){return"function"==typeof e.getContext&&"width"in e&&"height"in e}function i(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}t.exports=function(e){if(e?"string"==typeof e&&(e={container:e}):e={},a(e)?e={container:e}:e="string"==typeof(t=e).nodeName&&"function"==typeof t.appendChild&&"function"==typeof t.getBoundingClientRect?{container:e}:function(e){return"function"==typeof e.drawArrays||"function"==typeof e.drawElements}(e)?{gl:e}:n(e,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),e.pixelRatio||(e.pixelRatio=global.pixelRatio||1),e.gl)return e.gl;var t;if(e.canvas&&(e.container=e.canvas.parentNode),e.container){if("string"==typeof e.container){var o=document.querySelector(e.container);if(!o)throw Error("Element "+e.container+" is not found");e.container=o}a(e.container)?(e.canvas=e.container,e.container=e.canvas.parentNode):e.canvas||(e.canvas=i(),e.container.appendChild(e.canvas),r(e))}else if(!e.canvas){if(!(typeof document<"u"))throw Error("Not DOM environment. Use headless-gl.");e.container=document.body||document.documentElement,e.canvas=i(),e.container.appendChild(e.canvas),r(e)}return e.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(t){try{e.gl=e.canvas.getContext(t,e.attrs)}catch{}return e.gl}),e.gl}}),Hpt=Ee((e,t)=>{var n=z2e(),r=[32,126];t.exports=function(e){var t=(e=e||{}).shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],a=e.canvas||document.createElement("canvas"),i=e.font,o="number"==typeof e.step?[e.step,e.step]:e.step||[32,32],s=e.chars||r;if(i&&"string"!=typeof i&&(i=n(i)),Array.isArray(s)){if(2===s.length&&"number"==typeof s[0]&&"number"==typeof s[1]){for(var l=[],c=s[0],u=0;c<=s[1];c++)l[u++]=String.fromCharCode(c);s=l}}else s=String(s).split("");t=t.slice(),a.width=t[0],a.height=t[1];var d=a.getContext("2d");d.fillStyle="#000",d.fillRect(0,0,a.width,a.height),d.font=i,d.textAlign="center",d.textBaseline="middle",d.fillStyle="#fff";var p=o[0]/2,h=o[1]/2;for(c=0;c<s.length;c++)d.fillText(s[c],p,h),(p+=o[0])>t[0]-o[0]/2&&(p=o[0]/2,h+=o[1]);return a}}),T2e=Ee(e=>{function t(e){var t=32;return(e&=-e)&&t--,65535&e&&(t-=16),16711935&e&&(t-=8),252645135&e&&(t-=4),858993459&e&&(t-=2),1431655765&e&&(t-=1),t}e.INT_BITS=32,e.INT_MAX=2147483647,e.INT_MIN=-1<<31,e.sign=function(e){return(e>0)-(e<0)},e.abs=function(e){var t=e>>31;return(e^t)-t},e.min=function(e,t){return t^(e^t)&-(e<t)},e.max=function(e,t){return e^(e^t)&-(e<t)},e.isPow2=function(e){return!(e&e-1||!e)},e.log2=function(e){var t,n;return t=(e>65535)<<4,t|=n=((e>>>=t)>255)<<3,t|=n=((e>>>=n)>15)<<2,(t|=n=((e>>>=n)>3)<<1)|(e>>>=n)>>1},e.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0},e.popCount=function(e){return 16843009*((e=(858993459&(e-=e>>>1&1431655765))+(e>>>2&858993459))+(e>>>4)&252645135)>>>24},e.countTrailingZeros=t,e.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},e.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)-(e>>>1)},e.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,27030>>>(e&=15)&1};var n=new Array(256);!function(e){for(var t=0;t<256;++t){var n=t,r=t,a=7;for(n>>>=1;n;n>>>=1)r<<=1,r|=1&n,--a;e[t]=r<<a&255}}(n),e.reverse=function(e){return n[255&e]<<24|n[e>>>8&255]<<16|n[e>>>16&255]<<8|n[e>>>24&255]},e.interleave2=function(e,t){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))<<1},e.deinterleave2=function(e,t){return(e=65535&((e=16711935&((e=252645135&((e=858993459&((e=e>>>t&1431655765)|e>>>1))|e>>>2))|e>>>4))|e>>>16))<<16>>16},e.interleave3=function(e,t,n){return e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2),(e|=(t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2))<<1)|(n=1227133513&((n=3272356035&((n=251719695&((n=4278190335&((n&=1023)|n<<16))|n<<8))|n<<4))|n<<2))<<2},e.deinterleave3=function(e,t){return(e=1023&((e=4278190335&((e=251719695&((e=3272356035&((e=e>>>t&1227133513)|e>>>2))|e>>>4))|e>>>8))|e>>>16))<<22>>22},e.nextCombination=function(e){var n=e|e-1;return n+1|(~n&-~n)-1>>>t(e)+1}}),Xpt=Ee((e,t)=>{function n(e,t,r){var a=0|e[r];if(a<=0)return[];var i,o=new Array(a);if(r===e.length-1)for(i=0;i<a;++i)o[i]=t;else for(i=0;i<a;++i)o[i]=n(e,t,r+1);return o}t.exports=function(e,t){switch(typeof t>"u"&&(t=0),typeof e){case"number":if(e>0)return function(e,t){var n,r;for(n=new Array(e),r=0;r<e;++r)n[r]=t;return n}(0|e,t);break;case"object":if("number"==typeof e.length)return n(e,t,0)}return[]}}),l2t=Ee(e=>{var t=T2e(),n=Xpt(),r=require("buffer").Buffer;global.__TYPEDARRAY_POOL||(global.__TYPEDARRAY_POOL={UINT8:n([32,0]),UINT16:n([32,0]),UINT32:n([32,0]),BIGUINT64:n([32,0]),INT8:n([32,0]),INT16:n([32,0]),INT32:n([32,0]),BIGINT64:n([32,0]),FLOAT:n([32,0]),DOUBLE:n([32,0]),DATA:n([32,0]),UINT8C:n([32,0]),BUFFER:n([32,0])});var a=typeof Uint8ClampedArray<"u",i=typeof BigUint64Array<"u",o=typeof BigInt64Array<"u",s=global.__TYPEDARRAY_POOL;s.UINT8C||(s.UINT8C=n([32,0])),s.BIGUINT64||(s.BIGUINT64=n([32,0])),s.BIGINT64||(s.BIGINT64=n([32,0])),s.BUFFER||(s.BUFFER=n([32,0]));var l=s.DATA,c=s.BUFFER;function u(e){if(e){var n=e.length||e.byteLength,r=t.log2(n);l[r].push(e)}}function d(e){e=t.nextPow2(e);var n=t.log2(e),r=l[n];return r.length>0?r.pop():new ArrayBuffer(e)}function p(e){return new Uint8Array(d(e),0,e)}function h(e){return new Uint16Array(d(2*e),0,e)}function f(e){return new Uint32Array(d(4*e),0,e)}function m(e){return new Int8Array(d(e),0,e)}function g(e){return new Int16Array(d(2*e),0,e)}function y(e){return new Int32Array(d(4*e),0,e)}function b(e){return new Float32Array(d(4*e),0,e)}function v(e){return new Float64Array(d(8*e),0,e)}function M(e){return a?new Uint8ClampedArray(d(e),0,e):p(e)}function x(e){return i?new BigUint64Array(d(8*e),0,e):null}function z(e){return o?new BigInt64Array(d(8*e),0,e):null}function _(e){return new DataView(d(e),0,e)}function A(e){e=t.nextPow2(e);var n=t.log2(e),a=c[n];return a.length>0?a.pop():new r(e)}e.free=function(e){if(r.isBuffer(e))c[t.log2(e.length)].push(e);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(e)&&(e=e.buffer),!e)return;var n=e.length||e.byteLength,a=0|t.log2(n);l[a].push(e)}},e.freeUint8=e.freeUint16=e.freeUint32=e.freeBigUint64=e.freeInt8=e.freeInt16=e.freeInt32=e.freeBigInt64=e.freeFloat32=e.freeFloat=e.freeFloat64=e.freeDouble=e.freeUint8Clamped=e.freeDataView=function(e){u(e.buffer)},e.freeArrayBuffer=u,e.freeBuffer=function(e){c[t.log2(e.length)].push(e)},e.malloc=function(e,t){if(void 0===t||"arraybuffer"===t)return d(e);switch(t){case"uint8":return p(e);case"uint16":return h(e);case"uint32":return f(e);case"int8":return m(e);case"int16":return g(e);case"int32":return y(e);case"float":case"float32":return b(e);case"double":case"float64":return v(e);case"uint8_clamped":return M(e);case"bigint64":return z(e);case"biguint64":return x(e);case"buffer":return A(e);case"data":case"dataview":return _(e);default:return null}return null},e.mallocArrayBuffer=d,e.mallocUint8=p,e.mallocUint16=h,e.mallocUint32=f,e.mallocInt8=m,e.mallocInt16=g,e.mallocInt32=y,e.mallocFloat32=e.mallocFloat=b,e.mallocFloat64=e.mallocDouble=v,e.mallocUint8Clamped=M,e.mallocBigUint64=x,e.mallocBigInt64=z,e.mallocDataView=_,e.mallocBuffer=A,e.clearCache=function(){for(var e=0;e<32;++e)s.UINT8[e].length=0,s.UINT16[e].length=0,s.UINT32[e].length=0,s.INT8[e].length=0,s.INT16[e].length=0,s.INT32[e].length=0,s.FLOAT[e].length=0,s.DOUBLE[e].length=0,s.BIGUINT64[e].length=0,s.BIGINT64[e].length=0,s.UINT8C[e].length=0,l[e].length=0,c[e].length=0}}),u2t=Ee((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){var t;return"[object Object]"===n.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))}}),k2e=Ee((e,t)=>{t.exports=function(e,t){t||(t=[0,""]),e=String(e);var n=parseFloat(e,10);return t[0]=n,t[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",t}}),m2t=Ee((e,t)=>{var n=k2e();t.exports=o;var r=i("in",document.body);function a(e,t){var r=n(getComputedStyle(e).getPropertyValue(t));return r[0]*o(r[1],e)}function i(e,t){var n=document.createElement("div");n.style.height="128"+e,t.appendChild(n);var r=a(n,"height")/128;return t.removeChild(n),r}function o(e,t){if(!e)return null;switch(t=t||document.body,e=(e+""||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return i(e,t);case"em":return a(t,"font-size");case"rem":return a(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return r;case"cm":return r/2.54;case"mm":return r/25.4;case"pt":return r/72;case"pc":return r/6;case"px":return 1}var s=n(e);if(!isNaN(s[0])&&s[1]){var l=o(s[1],t);return"number"==typeof l?s[0]*l:null}return null}}),y2t=Ee((e,t)=>{t.exports=a;var n=(a.canvas=document.createElement("canvas")).getContext("2d"),r=i([32,126]);function a(e,t){Array.isArray(e)&&(e=e.join(", "));var a,o={},s=16,l=.05;t&&(2===t.length&&"number"==typeof t[0]?a=i(t):Array.isArray(t)?a=t:(t.o?a=i(t.o):t.pairs&&(a=t.pairs),t.fontSize&&(s=t.fontSize),null!=t.threshold&&(l=t.threshold))),a||(a=r),n.font=s+"px "+e;for(var c=0;c<a.length;c++){var u=a[c],d=n.measureText(u[0]).width+n.measureText(u[1]).width,p=n.measureText(u).width;if(Math.abs(d-p)>s*l){var h=(p-d)/s;o[u]=1e3*h}}return o}function i(e){for(var t=[],n=e[0];n<=e[1];n++)for(var r=String.fromCharCode(n),a=e[0];a<e[1];a++){var i=r+String.fromCharCode(a);t.push(i)}return t}a.createPairs=i,a.ascii=r}),_2t=Ee((e,t)=>{function n(e,t){t||(t={}),("string"==typeof e||Array.isArray(e))&&(t.family=e);var o=Array.isArray(t.family)?t.family.join(", "):t.family;if(!o)throw Error("`family` must be defined");var s=t.size||t.fontSize||t.em||48,l=t.weight||t.fontWeight||"",c=(e=[t.style||t.fontStyle||"",l,s].join(" ")+"px "+o,t.origin||"top");if(n.cache[o]&&s<=n.cache[o].em)return r(n.cache[o],c);var u=t.canvas||n.canvas,d=u.getContext("2d"),p={upper:void 0!==t.upper?t.upper:"H",lower:void 0!==t.lower?t.lower:"x",descent:void 0!==t.descent?t.descent:"p",ascent:void 0!==t.ascent?t.ascent:"h",tittle:void 0!==t.tittle?t.tittle:"i",overshoot:void 0!==t.overshoot?t.overshoot:"O"},h=Math.ceil(1.5*s);u.height=h,u.width=.5*h,d.font=e;var f="H",m={top:0};d.clearRect(0,0,h,h),d.textBaseline="top",d.fillStyle="black",d.fillText(f,0,0);var g=a(d.getImageData(0,0,h,h));d.clearRect(0,0,h,h),d.textBaseline="bottom",d.fillText(f,0,h);var y=a(d.getImageData(0,0,h,h));m.lineHeight=m.bottom=h-y+g,d.clearRect(0,0,h,h),d.textBaseline="alphabetic",d.fillText(f,0,h);var b=h-a(d.getImageData(0,0,h,h))-1+g;m.baseline=m.alphabetic=b,d.clearRect(0,0,h,h),d.textBaseline="middle",d.fillText(f,0,.5*h);var v=a(d.getImageData(0,0,h,h));m.median=m.middle=h-v-1+g-.5*h,d.clearRect(0,0,h,h),d.textBaseline="hanging",d.fillText(f,0,.5*h);var M=a(d.getImageData(0,0,h,h));m.hanging=h-M-1+g-.5*h,d.clearRect(0,0,h,h),d.textBaseline="ideographic",d.fillText(f,0,h);var x=a(d.getImageData(0,0,h,h));if(m.ideographic=h-x-1+g,p.upper&&(d.clearRect(0,0,h,h),d.textBaseline="top",d.fillText(p.upper,0,0),m.upper=a(d.getImageData(0,0,h,h)),m.capHeight=m.baseline-m.upper),p.lower&&(d.clearRect(0,0,h,h),d.textBaseline="top",d.fillText(p.lower,0,0),m.lower=a(d.getImageData(0,0,h,h)),m.xHeight=m.baseline-m.lower),p.tittle&&(d.clearRect(0,0,h,h),d.textBaseline="top",d.fillText(p.tittle,0,0),m.tittle=a(d.getImageData(0,0,h,h))),p.ascent&&(d.clearRect(0,0,h,h),d.textBaseline="top",d.fillText(p.ascent,0,0),m.ascent=a(d.getImageData(0,0,h,h))),p.descent&&(d.clearRect(0,0,h,h),d.textBaseline="top",d.fillText(p.descent,0,0),m.descent=i(d.getImageData(0,0,h,h))),p.overshoot){d.clearRect(0,0,h,h),d.textBaseline="top",d.fillText(p.overshoot,0,0);var z=i(d.getImageData(0,0,h,h));m.overshoot=z-b}for(var _ in m)m[_]/=s;return m.em=s,n.cache[o]=m,r(m,c)}function r(e,t){var n={};for(var r in"string"==typeof t&&(t=e[t]),e)"em"!==r&&(n[r]=e[r]-t);return n}function a(e){for(var t=e.height,n=e.data,r=3;r<n.length;r+=4)if(0!==n[r])return Math.floor(.25*(r-3)/t)}function i(e){for(var t=e.height,n=e.data,r=n.length-1;r>0;r-=4)if(0!==n[r])return Math.floor(.25*(r-3)/t)}t.exports=n,n.canvas=document.createElement("canvas"),n.cache={}}),O2t=Ee((e,t)=>{var n=Lpt(),r=Y3(),a=Ppt(),i=Bpt(),o=c2e(),s=T4(),l=Hpt(),c=l2t(),u=i9(),d=u2t(),p=k2e(),h=m2t(),f=y2t(),m=Qh(),g=_2t(),y=TO(),b=T2e().nextPow2,v=new o,M=!1;document.body&&((x=document.body.appendChild(document.createElement("div"))).style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(x).fontStretch&&(M=!0),document.body.removeChild(x));var x,z=function(e){var t;"function"==typeof(t=e)&&t._gl&&t.prop&&t.texture&&t.buffer?(e={regl:e},this.gl=e.regl._gl):this.gl=i(e),this.shader=v.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=e.regl||a({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),v.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(d(e)?e:{})};z.prototype.createShader=function(){var e=this.regl,t=e({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:e.prop("count"),offset:e.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:e.this("sizeBuffer")},width:{offset:0,stride:8,buffer:e.this("sizeBuffer")},char:e.this("charBuffer"),position:e.this("position")},uniforms:{atlasSize:function(e,t){return[t.atlas.width,t.atlas.height]},atlasDim:function(e,t){return[t.atlas.cols,t.atlas.rows]},atlas:function(e,t){return t.atlas.texture},charStep:function(e,t){return t.atlas.step},em:function(e,t){return t.atlas.em},color:e.prop("color"),opacity:e.prop("opacity"),viewport:e.this("viewportArray"),scale:e.this("scale"),align:e.prop("align"),baseline:e.prop("baseline"),translate:e.this("translate"),positionOffset:e.prop("positionOffset")},primitive:"points",viewport:e.this("viewport"),vert:"\n\t\t\tprecision highp float;\n\t\t\tattribute float width, charOffset, char;\n\t\t\tattribute vec2 position;\n\t\t\tuniform float fontSize, charStep, em, align, baseline;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform vec4 color;\n\t\t\tuniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvoid main () {\n\t\t\t\tvec2 offset = floor(em * (vec2(align + charOffset, baseline)\n\t\t\t\t\t+ vec2(positionOffset.x, -positionOffset.y)))\n\t\t\t\t\t/ (viewport.zw * scale.xy);\n\n\t\t\t\tvec2 position = (position + translate) * scale;\n\t\t\t\tposition += offset * scale;\n\n\t\t\t\tcharCoord = position * viewport.zw + viewport.xy;\n\n\t\t\t\tgl_Position = vec4(position * 2. - 1., 0, 1);\n\n\t\t\t\tgl_PointSize = charStep;\n\n\t\t\t\tcharId.x = mod(char, atlasDim.x);\n\t\t\t\tcharId.y = floor(char / atlasDim.x);\n\n\t\t\t\tcharWidth = width * em;\n\n\t\t\t\tfontColor = color / 255.;\n\t\t\t}",frag:"\n\t\t\tprecision highp float;\n\t\t\tuniform float fontSize, charStep, opacity;\n\t\t\tuniform vec2 atlasSize;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform sampler2D atlas;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\n\t\t\tfloat lightness(vec4 color) {\n\t\t\t\treturn color.r * 0.299 + color.g * 0.587 + color.b * 0.114;\n\t\t\t}\n\n\t\t\tvoid main () {\n\t\t\t\tvec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;\n\t\t\t\tfloat halfCharStep = floor(charStep * .5 + .5);\n\n\t\t\t\t// invert y and shift by 1px (FF expecially needs that)\n\t\t\t\tuv.y = charStep - uv.y;\n\n\t\t\t\t// ignore points outside of character bounding box\n\t\t\t\tfloat halfCharWidth = ceil(charWidth * .5);\n\t\t\t\tif (floor(uv.x) > halfCharStep + halfCharWidth ||\n\t\t\t\t\tfloor(uv.x) < halfCharStep - halfCharWidth) return;\n\n\t\t\t\tuv += charId * charStep;\n\t\t\t\tuv = uv / atlasSize;\n\n\t\t\t\tvec4 color = fontColor;\n\t\t\t\tvec4 mask = texture2D(atlas, uv);\n\n\t\t\t\tfloat maskY = lightness(mask);\n\t\t\t\t// float colorY = lightness(color);\n\t\t\t\tcolor.a *= maskY;\n\t\t\t\tcolor.a *= opacity;\n\n\t\t\t\t// color.a += .1;\n\n\t\t\t\t// antialiasing, see yiq color space y-channel formula\n\t\t\t\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\n\n\t\t\t\tgl_FragColor = color;\n\t\t\t}"});return{regl:e,draw:t,atlas:{}}},z.prototype.update=function(e){var t=this;if("string"==typeof e)e={text:e};else if(!e)return;null!=(e=r(e,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0)).opacity&&(Array.isArray(e.opacity)?this.opacity=e.opacity.map(function(e){return parseFloat(e)}):this.opacity=parseFloat(e.opacity)),null!=e.viewport&&(this.viewport=u(e.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null==this.viewport&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null!=e.kerning&&(this.kerning=e.kerning),null!=e.offset&&("number"==typeof e.offset&&(e.offset=[e.offset,0]),this.positionOffset=y(e.offset)),e.direction&&(this.direction=e.direction),e.range&&(this.range=e.range,this.scale=[1/(e.range[2]-e.range[0]),1/(e.range[3]-e.range[1])],this.translate=[-e.range[0],-e.range[1]]),e.scale&&(this.scale=e.scale),e.translate&&(this.translate=e.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!e.font&&(e.font=z.baseFontSize+"px sans-serif");var a,i=!1,o=!1;if(e.font&&(Array.isArray(e.font)?e.font:[e.font]).forEach(function(e,r){if("string"==typeof e)try{e=n.parse(e)}catch{e=n.parse(z.baseFontSize+"px "+e)}else{var a=e.style,s=e.weight,l=e.stretch,c=e.variant;e=n.parse(n.stringify(e)),a&&(e.style=a),s&&(e.weight=s),l&&(e.stretch=l),c&&(e.variant=c)}var u=n.stringify({size:z.baseFontSize,family:e.family,stretch:M?e.stretch:void 0,variant:e.variant,weight:e.weight,style:e.style}),d=p(e.size),f=Math.round(d[0]*h(d[1]));if(f!==t.fontSize[r]&&(o=!0,t.fontSize[r]=f),!(t.font[r]&&u==t.font[r].baseString||(i=!0,t.font[r]=z.fonts[u],t.font[r]))){var m=e.family.join(", "),y=[e.style];e.style!=e.variant&&y.push(e.variant),e.variant!=e.weight&&y.push(e.weight),M&&e.weight!=e.stretch&&y.push(e.stretch),t.font[r]={baseString:u,family:m,weight:e.weight,stretch:e.stretch,style:e.style,variant:e.variant,width:{},kerning:{},metrics:g(m,{origin:"top",fontSize:z.baseFontSize,fontStyle:y.join(" ")})},z.fonts[u]=t.font[r]}}),(i||o)&&this.font.forEach(function(r,a){var i=n.stringify({size:t.fontSize[a],family:r.family,stretch:M?r.stretch:void 0,variant:r.variant,weight:r.weight,style:r.style});if(t.fontAtlas[a]=t.shader.atlas[i],!t.fontAtlas[a]){var o=r.metrics;t.shader.atlas[i]=t.fontAtlas[a]={fontString:i,step:2*Math.ceil(t.fontSize[a]*o.bottom*.5),em:t.fontSize[a],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:t.regl.texture()}}null==e.text&&(e.text=t.text)}),"string"==typeof e.text&&e.position&&e.position.length>2){for(var d=Array(.5*e.position.length),v=0;v<d.length;v++)d[v]=e.text;e.text=d}if(null!=e.text||i){if(this.textOffsets=[0],Array.isArray(e.text)){this.count=e.text[0].length,this.counts=[this.count];for(var x=1;x<e.text.length;x++)this.textOffsets[x]=this.textOffsets[x-1]+e.text[x-1].length,this.count+=e.text[x].length,this.counts.push(e.text[x].length);this.text=e.text.join("")}else this.text=e.text,this.count=this.text.length,this.counts=[this.count];a=[],this.font.forEach(function(e,n){z.atlasContext.font=e.baseString;for(var r=t.fontAtlas[n],i=0;i<t.text.length;i++){var o=t.text.charAt(i);if(null==r.ids[o]&&(r.ids[o]=r.chars.length,r.chars.push(o),a.push(o)),null==e.width[o]&&(e.width[o]=z.atlasContext.measureText(o).width/z.baseFontSize,t.kerning)){var s=[];for(var l in e.width)s.push(l+o,o+l);m(e.kerning,f(e.family,{pairs:s}))}}})}if(e.position)if(e.position.length>2){for(var _=!e.position[0].length,A=c.mallocFloat(2*this.count),O=0,w=0;O<this.counts.length;O++){var k=this.counts[O];if(_)for(var T=0;T<k;T++)A[w++]=e.position[2*O],A[w++]=e.position[2*O+1];else for(var S=0;S<k;S++)A[w++]=e.position[O][0],A[w++]=e.position[O][1]}this.position.call?this.position({type:"float",data:A}):this.position=this.regl.buffer({type:"float",data:A}),c.freeFloat(A)}else this.position.destroy&&this.position.destroy(),this.position={constant:e.position};if(e.text||i){var C=c.mallocUint8(this.count),E=c.mallocFloat(2*this.count);this.textWidth=[];for(var q=0,D=0;q<this.counts.length;q++){for(var R=this.counts[q],L=this.font[q]||this.font[0],I=this.fontAtlas[q]||this.fontAtlas[0],W=0;W<R;W++){var N=this.text.charAt(D),P=this.text.charAt(D-1);if(C[D]=I.ids[N],E[2*D]=L.width[N],W){var B=E[2*D-2],F=E[2*D],j=E[2*D-1]+.5*B+.5*F;if(this.kerning){var U=L.kerning[P+N];U&&(j+=.001*U)}E[2*D+1]=j}else E[2*D+1]=.5*E[2*D];D++}this.textWidth.push(E.length?.5*E[2*D-2]+E[2*D-1]:0)}e.align||(e.align=this.align),this.charBuffer({data:C,type:"uint8",usage:"stream"}),this.sizeBuffer({data:E,type:"float",usage:"stream"}),c.freeUint8(C),c.freeFloat(E),a.length&&this.font.forEach(function(e,n){var r=t.fontAtlas[n],a=r.step,i=Math.floor(z.maxAtlasSize/a),o=Math.min(i,r.chars.length),s=Math.ceil(r.chars.length/o),c=b(o*a),u=b(s*a);r.width=c,r.height=u,r.rows=s,r.cols=o,r.em&&r.texture({data:l({canvas:z.atlasCanvas,font:r.fontString,chars:r.chars,shape:[c,u],step:[a,a]})})})}if(e.align&&(this.align=e.align,this.alignOffset=this.textWidth.map(function(e,n){var r=Array.isArray(t.align)?t.align.length>1?t.align[n]:t.align[0]:t.align;if("number"==typeof r)return r;switch(r){case"right":case"end":return-e;case"center":case"centre":case"middle":return.5*-e}return 0})),null==this.baseline&&null==e.baseline&&(e.baseline=0),null!=e.baseline&&(this.baseline=e.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(e,n){var r=(t.font[n]||t.font[0]).metrics,a=0;return a+=.5*r.bottom,a+="number"==typeof e?e-r.baseline:-r[e],a*=-1})),null!=e.color)if(e.color||(e.color="transparent"),"string"!=typeof e.color&&isNaN(e.color)){var V;if("number"==typeof e.color[0]&&e.color.length>this.counts.length){var H=e.color.length;V=c.mallocUint8(H);for(var X=(e.color.subarray||e.color.slice).bind(e.color),G=0;G<H;G+=4)V.set(s(X(G,G+4),"uint8"),G)}else{var Y=e.color.length;V=c.mallocUint8(4*Y);for(var Z=0;Z<Y;Z++)V.set(s(e.color[Z]||0,"uint8"),4*Z)}this.color=V}else this.color=s(e.color,"uint8");if(e.position||e.text||e.color||e.baseline||e.align||e.font||e.offset||e.opacity)if(this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2){var $=Math.max(.5*this.position.length||0,.25*this.color.length||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,.5*this.positionOffset.length||0);this.batch=Array($);for(var J=0;J<this.batch.length;J++)this.batch[J]={count:this.counts.length>1?this.counts[J]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[J]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(4*J,4*J+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[J]:this.opacity,baseline:null!=this.baselineOffset[J]?this.baselineOffset[J]:this.baselineOffset[0],align:this.align?null!=this.alignOffset[J]?this.alignOffset[J]:this.alignOffset[0]:0,atlas:this.fontAtlas[J]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(2*J,2*J+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]},z.prototype.destroy=function(){},z.prototype.kerning=!0,z.prototype.position={constant:new Float32Array(2)},z.prototype.translate=null,z.prototype.scale=null,z.prototype.font=null,z.prototype.text="",z.prototype.positionOffset=[0,0],z.prototype.opacity=1,z.prototype.color=new Uint8Array([0,0,0,255]),z.prototype.alignOffset=[0,0],z.maxAtlasSize=1024,z.atlasCanvas=document.createElement("canvas"),z.atlasContext=z.atlasCanvas.getContext("2d",{alpha:!1}),z.baseFontSize=64,z.fonts={},t.exports=z}),T2t=Ee((e,t)=>{var n,r;n=e,r=function(){var e=function(e,t){for(var n=Object.keys(t),r=0;r<n.length;++r)e[n[r]]=t[n[r]];return e},t=0;function n(e,n){this.id=t++,this.type=e,this.data=n}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function a(e){if(0===e.length)return[];var t=e.charAt(0),n=e.charAt(e.length-1);if(e.length>1&&t===n&&('"'===t||"'"===t))return['"'+r(e.substr(1,e.length-2))+'"'];var i=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(e);if(i)return a(e.substr(0,i.index)).concat(a(i[1])).concat(a(e.substr(i.index+i[0].length)));var o=e.split(".");if(1===o.length)return['"'+r(e)+'"'];for(var s=[],l=0;l<o.length;++l)s=s.concat(a(o[l]));return s}function i(e){return"["+a(e).join("][")+"]"}var o={DynamicVariable:n,define:function(e,t){return new n(e,i(t+""))},isDynamic:function(e){return"function"==typeof e&&!e._reglType||e instanceof n},unbox:function e(t,r){return"function"==typeof t?new n(0,t):"number"==typeof t||"boolean"==typeof t?new n(5,t):Array.isArray(t)?new n(6,t.map(function(t,n){return e(t,r+"["+n+"]")})):t instanceof n?t:void 0},accessor:i},s={next:"function"==typeof requestAnimationFrame?function(e){return requestAnimationFrame(e)}:function(e){return setTimeout(e,16)},cancel:"function"==typeof cancelAnimationFrame?function(e){return cancelAnimationFrame(e)}:clearTimeout},l=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function c(e){return"string"==typeof e?e.split():e}function u(e){return"string"==typeof e?document.querySelector(e):e}function d(t){var n,r,a,i,o=t||{},s={},l=[],d=[],p=typeof window>"u"?1:window.devicePixelRatio,h=!1,f={},m=function(e){},g=function(){};if("string"==typeof o?n=document.querySelector(o):"object"==typeof o&&(function(e){return"string"==typeof e.nodeName&&"function"==typeof e.appendChild&&"function"==typeof e.getBoundingClientRect}(o)?n=o:function(e){return"function"==typeof e.drawArrays||"function"==typeof e.drawElements}(o)?a=(i=o).canvas:("gl"in o?i=o.gl:"canvas"in o?a=u(o.canvas):"container"in o&&(r=u(o.container)),"attributes"in o&&(s=o.attributes),"extensions"in o&&(l=c(o.extensions)),"optionalExtensions"in o&&(d=c(o.optionalExtensions)),"onDone"in o&&(m=o.onDone),"profile"in o&&(h=!!o.profile),"pixelRatio"in o&&(p=+o.pixelRatio),"cachedCode"in o&&(f=o.cachedCode))),n&&("canvas"===n.nodeName.toLowerCase()?a=n:r=n),!i){if(!a){var y=function(t,n,r){var a,i=document.createElement("canvas");function o(){var e=window.innerWidth,n=window.innerHeight;if(t!==document.body){var a=i.getBoundingClientRect();e=a.right-a.left,n=a.bottom-a.top}i.width=r*e,i.height=r*n}return e(i.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),t.appendChild(i),t===document.body&&(i.style.position="absolute",e(t.style,{margin:0,padding:0})),t!==document.body&&"function"==typeof ResizeObserver?(a=new ResizeObserver(function(){setTimeout(o)})).observe(t):window.addEventListener("resize",o,!1),o(),{canvas:i,onDestroy:function(){a?a.disconnect():window.removeEventListener("resize",o),t.removeChild(i)}}}(r||document.body,0,p);if(!y)return null;a=y.canvas,g=y.onDestroy}void 0===s.premultipliedAlpha&&(s.premultipliedAlpha=!0),i=function(e,t){function n(n){try{return e.getContext(n,t)}catch{return null}}return n("webgl")||n("experimental-webgl")||n("webgl-experimental")}(a,s)}return i?{gl:i,canvas:a,container:r,extensions:l,optionalExtensions:d,pixelRatio:p,profile:h,cachedCode:f,onDone:m,onDestroy:g}:(g(),m("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function p(e,t){for(var n=Array(e),r=0;r<e;++r)n[r]=t(r);return n}function h(e){var t,n;return t=(e>65535)<<4,t|=n=((e>>>=t)>255)<<3,t|=n=((e>>>=n)>15)<<2,(t|=n=((e>>>=n)>3)<<1)|(e>>>=n)>>1}function f(){var e=p(8,function(){return[]});function t(t){var n=function(e){for(var t=16;t<=1<<28;t*=16)if(e<=t)return t;return 0}(t),r=e[h(n)>>2];return r.length>0?r.pop():new ArrayBuffer(n)}function n(t){e[h(t.byteLength)>>2].push(t)}return{alloc:t,free:n,allocType:function(e,n){var r=null;switch(e){case 5120:r=new Int8Array(t(n),0,n);break;case 5121:r=new Uint8Array(t(n),0,n);break;case 5122:r=new Int16Array(t(2*n),0,n);break;case 5123:r=new Uint16Array(t(2*n),0,n);break;case 5124:r=new Int32Array(t(4*n),0,n);break;case 5125:r=new Uint32Array(t(4*n),0,n);break;case 5126:r=new Float32Array(t(4*n),0,n);break;default:return null}return r.length!==n?r.subarray(0,n):r},freeType:function(e){n(e.buffer)}}}var m=f();m.zero=f();var g=3553,y=6408,b=5126,v=36160,M=function(e){return e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Float32Array||e instanceof Float64Array||e instanceof Uint8ClampedArray};function x(e){return!!e&&"object"==typeof e&&Array.isArray(e.shape)&&Array.isArray(e.stride)&&"number"==typeof e.offset&&e.shape.length===e.stride.length&&(Array.isArray(e.data)||M(e.data))}var z=function(e){return Object.keys(e).map(function(t){return e[t]})},_={shape:function(e){for(var t=[],n=e;n.length;n=n[0])t.push(n.length);return t},flatten:function(e,t,n,r){var a=1;if(t.length)for(var i=0;i<t.length;++i)a*=t[i];else a=0;var o=r||m.allocType(n,a);switch(t.length){case 0:break;case 1:!function(e,t,n){for(var r=0;r<t;++r)n[r]=e[r]}(e,t[0],o);break;case 2:!function(e,t,n,r){for(var a=0,i=0;i<t;++i)for(var o=e[i],s=0;s<n;++s)r[a++]=o[s]}(e,t[0],t[1],o);break;case 3:A(e,t[0],t[1],t[2],o,0);break;default:O(e,t,0,o,0)}return o}};function A(e,t,n,r,a,i){for(var o=i,s=0;s<t;++s)for(var l=e[s],c=0;c<n;++c)for(var u=l[c],d=0;d<r;++d)a[o++]=u[d]}function O(e,t,n,r,a){for(var i=1,o=n+1;o<t.length;++o)i*=t[o];var s=t[n];if(t.length-n===4){var l=t[n+1],c=t[n+2],u=t[n+3];for(o=0;o<s;++o)A(e[o],l,c,u,r,a),a+=i}else for(o=0;o<s;++o)O(e[o],t,n+1,r,a),a+=i}var w={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121},k={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},T={dynamic:35048,stream:35040,static:35044},S=_.flatten,C=_.shape,E=5121,q=5126,D=[];function R(e){return 0|w[Object.prototype.toString.call(e)]}function L(e,t){for(var n=0;n<t.length;++n)e[n]=t[n]}function I(e,t,n,r,a,i,o){for(var s=0,l=0;l<n;++l)for(var c=0;c<r;++c)e[s++]=t[a*l+i*c+o]}D[5120]=1,D[5122]=2,D[5124]=4,D[5121]=1,D[5123]=2,D[5125]=4,D[5126]=4;var W={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},N=5121,P=5123,B=5125,F=34963,j=new Float32Array(1),U=new Uint32Array(j.buffer);function V(e){for(var t=m.allocType(5123,e.length),n=0;n<e.length;++n)if(isNaN(e[n]))t[n]=65535;else if(e[n]===1/0)t[n]=31744;else if(e[n]===-1/0)t[n]=64512;else{j[0]=e[n];var r=U[0],a=r>>>31<<15,i=(r<<1>>>24)-127,o=r>>13&1023;if(i<-24)t[n]=a;else if(i<-14){var s=-14-i;t[n]=a+(o+1024>>s)}else t[n]=i>15?a+31744:a+(i+15<<10)+o}return t}function H(e){return Array.isArray(e)||M(e)}var X=3553,G=34067,Y=34069,Z=6408,$=6406,J=6407,Q=6409,K=6410,ee=32855,te=6402,ne=34041,re=35904,ae=35906,ie=36193,oe=33776,se=33777,le=33778,ce=5121,ue=5123,de=5125,pe=5126,he=33071,fe=9728,me=9984,ge=9987,ye=4352,be=33984,ve=[me,9986,9985,ge],Me=[0,Q,K,J,Z],xe={};function ze(e){return"[object "+e+"]"}xe[Q]=xe[$]=xe[te]=1,xe[ne]=xe[K]=2,xe[J]=xe[re]=3,xe[Z]=xe[ae]=4;var _e=ze("HTMLCanvasElement"),Ae=ze("OffscreenCanvas"),Oe=ze("CanvasRenderingContext2D"),we=ze("ImageBitmap"),ke=ze("HTMLImageElement"),Te=ze("HTMLVideoElement"),Se=Object.keys(w).concat([_e,Ae,Oe,we,ke,Te]),Ce=[];Ce[ce]=1,Ce[pe]=4,Ce[ie]=2,Ce[ue]=2,Ce[de]=4;var Ee=[];function qe(e){return Array.isArray(e)&&(0===e.length||"number"==typeof e[0])}function De(e){return!!Array.isArray(e)&&!(0===e.length||!H(e[0]))}function Re(e){return Object.prototype.toString.call(e)}function Le(e){return Re(e)===_e}function Ie(e){return Re(e)===Ae}function We(e){if(!e)return!1;var t=Re(e);return Se.indexOf(t)>=0||qe(e)||De(e)||x(e)}function Ne(e){return 0|w[Object.prototype.toString.call(e)]}function Pe(e,t){return m.allocType(e.type===ie?pe:e.type,t)}function Be(e,t){e.type===ie?(e.data=V(t),m.freeType(t)):e.data=t}function Fe(e,t,n,r,a,i){var o;if(o=typeof Ee[e]<"u"?Ee[e]:xe[e]*Ce[t],i&&(o*=6),a){for(var s=0,l=n;l>=1;)s+=o*l*l,l/=2;return s}return o*n*r}function je(t,n,r,a,i,o,s){var l={"don't care":ye,"dont care":ye,nice:4354,fast:4353},c={repeat:10497,clamp:he,mirror:33648},u={nearest:fe,linear:9729},d=e({mipmap:ge,"nearest mipmap nearest":me,"linear mipmap nearest":9985,"nearest mipmap linear":9986,"linear mipmap linear":ge},u),p={none:0,browser:37444},h={uint8:ce,rgba4:32819,rgb565:33635,"rgb5 a1":32820},f={alpha:$,luminance:Q,"luminance alpha":K,rgb:J,rgba:Z,rgba4:32854,"rgb5 a1":ee,rgb565:36194},g={};n.ext_srgb&&(f.srgb=re,f.srgba=ae),n.oes_texture_float&&(h.float32=h.float=pe),n.oes_texture_half_float&&(h.float16=h["half float"]=ie),n.webgl_depth_texture&&(e(f,{depth:te,"depth stencil":ne}),e(h,{uint16:ue,uint32:de,"depth stencil":34042})),n.webgl_compressed_texture_s3tc&&e(g,{"rgb s3tc dxt1":oe,"rgba s3tc dxt1":se,"rgba s3tc dxt3":le,"rgba s3tc dxt5":33779}),n.webgl_compressed_texture_atc&&e(g,{"rgb atc":35986,"rgba atc explicit alpha":35987,"rgba atc interpolated alpha":34798}),n.webgl_compressed_texture_pvrtc&&e(g,{"rgb pvrtc 4bppv1":35840,"rgb pvrtc 2bppv1":35841,"rgba pvrtc 4bppv1":35842,"rgba pvrtc 2bppv1":35843}),n.webgl_compressed_texture_etc1&&(g["rgb etc1"]=36196);var y=Array.prototype.slice.call(t.getParameter(34467));Object.keys(g).forEach(function(e){var t=g[e];y.indexOf(t)>=0&&(f[e]=t)});var b=Object.keys(f);r.textureFormats=b;var v=[];Object.keys(f).forEach(function(e){var t=f[e];v[t]=e});var A=[];Object.keys(h).forEach(function(e){var t=h[e];A[t]=e});var O=[];Object.keys(u).forEach(function(e){O[u[e]]=e});var w=[];Object.keys(d).forEach(function(e){var t=d[e];w[t]=e});var k=[];Object.keys(c).forEach(function(e){k[c[e]]=e});var T=b.reduce(function(e,t){var r=f[t];return r===Q||r===$||r===Q||r===K||r===te||r===ne||n.ext_srgb&&(r===re||r===ae)?e[r]=r:r===ee||t.indexOf("rgba")>=0?e[r]=Z:e[r]=J,e},{});function S(){this.internalformat=Z,this.format=Z,this.type=ce,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=37444,this.width=0,this.height=0,this.channels=0}function C(e,t){e.internalformat=t.internalformat,e.format=t.format,e.type=t.type,e.compressed=t.compressed,e.premultiplyAlpha=t.premultiplyAlpha,e.flipY=t.flipY,e.unpackAlignment=t.unpackAlignment,e.colorSpace=t.colorSpace,e.width=t.width,e.height=t.height,e.channels=t.channels}function E(e,t){if("object"==typeof t&&t){if("premultiplyAlpha"in t&&(e.premultiplyAlpha=t.premultiplyAlpha),"flipY"in t&&(e.flipY=t.flipY),"alignment"in t&&(e.unpackAlignment=t.alignment),"colorSpace"in t&&(e.colorSpace=p[t.colorSpace]),"type"in t){var n=t.type;e.type=h[n]}var r=e.width,a=e.height,i=e.channels,o=!1;"shape"in t?(r=t.shape[0],a=t.shape[1],3===t.shape.length&&(i=t.shape[2],o=!0)):("radius"in t&&(r=a=t.radius),"width"in t&&(r=t.width),"height"in t&&(a=t.height),"channels"in t&&(i=t.channels,o=!0)),e.width=0|r,e.height=0|a,e.channels=0|i;var s=!1;if("format"in t){var l=t.format,c=e.internalformat=f[l];e.format=T[c],l in h&&("type"in t||(e.type=h[l])),l in g&&(e.compressed=!0),s=!0}!o&&s?e.channels=xe[e.format]:o&&!s&&e.channels!==Me[e.format]&&(e.format=e.internalformat=Me[e.channels])}}function q(e){t.pixelStorei(37440,e.flipY),t.pixelStorei(37441,e.premultiplyAlpha),t.pixelStorei(37443,e.colorSpace),t.pixelStorei(3317,e.unpackAlignment)}function D(){S.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function R(e,t){var n=null;if(We(t)?n=t:t&&(E(e,t),"x"in t&&(e.xOffset=0|t.x),"y"in t&&(e.yOffset=0|t.y),We(t.data)&&(n=t.data)),t.copy){var r=i.viewportWidth,a=i.viewportHeight;e.width=e.width||r-e.xOffset,e.height=e.height||a-e.yOffset,e.needsCopy=!0}else if(n){if(M(n))e.channels=e.channels||4,e.data=n,!("type"in t)&&e.type===ce&&(e.type=Ne(n));else if(qe(n))e.channels=e.channels||4,function(e,t){var n=t.length;switch(e.type){case ce:case ue:case de:case pe:var r=m.allocType(e.type,n);r.set(t),e.data=r;break;case ie:e.data=V(t)}}(e,n),e.alignment=1,e.needsFree=!0;else if(x(n)){var o=n.data;!Array.isArray(o)&&e.type===ce&&(e.type=Ne(o));var s,l,c,u,d,p,h=n.shape,f=n.stride;3===h.length?(c=h[2],p=f[2]):(c=1,p=1),s=h[0],l=h[1],u=f[0],d=f[1],e.alignment=1,e.width=s,e.height=l,e.channels=c,e.format=e.internalformat=Me[c],e.needsFree=!0,function(e,t,n,r,a,i){for(var o=e.width,s=e.height,l=e.channels,c=Pe(e,o*s*l),u=0,d=0;d<s;++d)for(var p=0;p<o;++p)for(var h=0;h<l;++h)c[u++]=t[n*p+r*d+a*h+i];Be(e,c)}(e,o,u,d,p,n.offset)}else if(Le(n)||Ie(n)||function(e){return Re(e)===Oe}(n))Le(n)||Ie(n)?e.element=n:e.element=n.canvas,e.width=e.element.width,e.height=e.element.height,e.channels=4;else if(function(e){return Re(e)===we}(n))e.element=n,e.width=n.width,e.height=n.height,e.channels=4;else if(function(e){return Re(e)===ke}(n))e.element=n,e.width=n.naturalWidth,e.height=n.naturalHeight,e.channels=4;else if(function(e){return Re(e)===Te}(n))e.element=n,e.width=n.videoWidth,e.height=n.videoHeight,e.channels=4;else if(De(n)){var g=e.width||n[0].length,y=e.height||n.length,b=e.channels;b=H(n[0][0])?b||n[0][0].length:b||1;for(var v=_.shape(n),z=1,A=0;A<v.length;++A)z*=v[A];var O=Pe(e,z);_.flatten(n,v,"",O),Be(e,O),e.alignment=1,e.width=g,e.height=y,e.channels=b,e.format=e.internalformat=Me[b],e.needsFree=!0}}else e.width=e.width||1,e.height=e.height||1,e.channels=e.channels||4;e.type===pe||e.type}function L(e,n,r){var i=e.element,o=e.data,s=e.internalformat,l=e.format,c=e.type,u=e.width,d=e.height;q(e),i?t.texImage2D(n,r,l,l,c,i):e.compressed?t.compressedTexImage2D(n,r,s,u,d,0,o):e.needsCopy?(a(),t.copyTexImage2D(n,r,l,e.xOffset,e.yOffset,u,d,0)):t.texImage2D(n,r,l,u,d,0,l,c,o||null)}function I(e,n,r,i,o){var s=e.element,l=e.data,c=e.internalformat,u=e.format,d=e.type,p=e.width,h=e.height;q(e),s?t.texSubImage2D(n,o,r,i,u,d,s):e.compressed?t.compressedTexSubImage2D(n,o,r,i,c,p,h,l):e.needsCopy?(a(),t.copyTexSubImage2D(n,o,r,i,e.xOffset,e.yOffset,p,h)):t.texSubImage2D(n,o,r,i,p,h,u,d,l)}var W=[];function N(){return W.pop()||new D}function P(e){e.needsFree&&m.freeType(e.data),D.call(e),W.push(e)}function B(){S.call(this),this.genMipmaps=!1,this.mipmapHint=ye,this.mipmask=0,this.images=Array(16)}function F(e,t,n){var r=e.images[0]=N();e.mipmask=1,r.width=e.width=t,r.height=e.height=n,r.channels=e.channels=4}function j(e,t){var n=null;if(We(t))C(n=e.images[0]=N(),e),R(n,t),e.mipmask=1;else if(E(e,t),Array.isArray(t.mipmap))for(var r=t.mipmap,a=0;a<r.length;++a)C(n=e.images[a]=N(),e),n.width>>=a,n.height>>=a,R(n,r[a]),e.mipmask|=1<<a;else C(n=e.images[0]=N(),e),R(n,t),e.mipmask=1;C(e,e.images[0]),e.compressed&&(e.internalformat===oe||e.internalformat===se||e.internalformat===le||e.internalformat)}function U(e,t){for(var n=e.images,r=0;r<n.length;++r){if(!n[r])return;L(n[r],t,r)}}var ze=[];function _e(){var e=ze.pop()||new B;S.call(e),e.mipmask=0;for(var t=0;t<16;++t)e.images[t]=null;return e}function Ae(e){for(var t=e.images,n=0;n<t.length;++n)t[n]&&P(t[n]),t[n]=null;ze.push(e)}function Se(){this.minFilter=fe,this.magFilter=fe,this.wrapS=he,this.wrapT=he,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=ye}function Ce(e,t){if("min"in t){var n=t.min;e.minFilter=d[n],ve.indexOf(e.minFilter)>=0&&!("faces"in t)&&(e.genMipmaps=!0)}if("mag"in t){var r=t.mag;e.magFilter=u[r]}var a=e.wrapS,i=e.wrapT;if("wrap"in t){var o=t.wrap;"string"==typeof o?a=i=c[o]:Array.isArray(o)&&(a=c[o[0]],i=c[o[1]])}else{if("wrapS"in t){var s=t.wrapS;a=c[s]}if("wrapT"in t){var p=t.wrapT;i=c[p]}}if(e.wrapS=a,e.wrapT=i,"anisotropic"in t&&(t.anisotropic,e.anisotropic=t.anisotropic),"mipmap"in t){var h=!1;switch(typeof t.mipmap){case"string":e.mipmapHint=l[t.mipmap],e.genMipmaps=!0,h=!0;break;case"boolean":h=e.genMipmaps=t.mipmap;break;case"object":e.genMipmaps=!1,h=!0}h&&!("min"in t)&&(e.minFilter=me)}}function Ee(e,r){t.texParameteri(r,10241,e.minFilter),t.texParameteri(r,10240,e.magFilter),t.texParameteri(r,10242,e.wrapS),t.texParameteri(r,10243,e.wrapT),n.ext_texture_filter_anisotropic&&t.texParameteri(r,34046,e.anisotropic),e.genMipmaps&&(t.hint(33170,e.mipmapHint),t.generateMipmap(r))}var je=0,Ue={},Ve=r.maxTextureUnits,He=Array(Ve).map(function(){return null});function Xe(e){S.call(this),this.mipmask=0,this.internalformat=Z,this.id=je++,this.refCount=1,this.target=e,this.texture=t.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Se,s.profile&&(this.stats={size:0})}function Ge(e){t.activeTexture(be),t.bindTexture(e.target,e.texture)}function Ye(){var e=He[0];e?t.bindTexture(e.target,e.texture):t.bindTexture(X,null)}function Ze(e){var n=e.texture,r=e.unit,a=e.target;r>=0&&(t.activeTexture(be+r),t.bindTexture(a,null),He[r]=null),t.deleteTexture(n),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete Ue[e.id],o.textureCount--}return e(Xe.prototype,{bind:function(){var e=this;e.bindCount+=1;var n=e.unit;if(n<0){for(var r=0;r<Ve;++r){var a=He[r];if(a){if(a.bindCount>0)continue;a.unit=-1}He[r]=e,n=r;break}s.profile&&o.maxTextureUnits<n+1&&(o.maxTextureUnits=n+1),e.unit=n,t.activeTexture(be+n),t.bindTexture(e.target,e.texture)}return n},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&Ze(this)}}),s.profile&&(o.getTotalTextureSize=function(){var e=0;return Object.keys(Ue).forEach(function(t){e+=Ue[t].stats.size}),e}),{create2D:function(e,n){var r=new Xe(X);function a(e,t){var n=r.texInfo;Se.call(n);var i=_e();return"number"==typeof e?F(i,0|e,"number"==typeof t?0|t:0|e):e?(Ce(n,e),j(i,e)):F(i,1,1),n.genMipmaps&&(i.mipmask=(i.width<<1)-1),r.mipmask=i.mipmask,C(r,i),r.internalformat=i.internalformat,a.width=i.width,a.height=i.height,Ge(r),U(i,X),Ee(n,X),Ye(),Ae(i),s.profile&&(r.stats.size=Fe(r.internalformat,r.type,i.width,i.height,n.genMipmaps,!1)),a.format=v[r.internalformat],a.type=A[r.type],a.mag=O[n.magFilter],a.min=w[n.minFilter],a.wrapS=k[n.wrapS],a.wrapT=k[n.wrapT],a}return Ue[r.id]=r,o.textureCount++,a(e,n),a.subimage=function(e,t,n,i){var o=0|t,s=0|n,l=0|i,c=N();return C(c,r),c.width=0,c.height=0,R(c,e),c.width=c.width||(r.width>>l)-o,c.height=c.height||(r.height>>l)-s,Ge(r),I(c,X,o,s,l),Ye(),P(c),a},a.resize=function(e,n){var i=0|e,o=0|n||i;if(i===r.width&&o===r.height)return a;a.width=r.width=i,a.height=r.height=o,Ge(r);for(var l=0;r.mipmask>>l;++l){var c=i>>l,u=o>>l;if(!c||!u)break;t.texImage2D(X,l,r.format,c,u,0,r.format,r.type,null)}return Ye(),s.profile&&(r.stats.size=Fe(r.internalformat,r.type,i,o,!1,!1)),a},a._reglType="texture2d",a._texture=r,s.profile&&(a.stats=r.stats),a.destroy=function(){r.decRef()},a},createCube:function(e,n,r,a,i,l){var c=new Xe(G);Ue[c.id]=c,o.cubeCount++;var u=new Array(6);function d(e,t,n,r,a,i){var o,l=c.texInfo;for(Se.call(l),o=0;o<6;++o)u[o]=_e();if("number"!=typeof e&&e){if("object"==typeof e)if(t)j(u[0],e),j(u[1],t),j(u[2],n),j(u[3],r),j(u[4],a),j(u[5],i);else if(Ce(l,e),E(c,e),"faces"in e){var p=e.faces;for(o=0;o<6;++o)C(u[o],c),j(u[o],p[o])}else for(o=0;o<6;++o)j(u[o],e)}else{var h=0|e||1;for(o=0;o<6;++o)F(u[o],h,h)}for(C(c,u[0]),l.genMipmaps?c.mipmask=(u[0].width<<1)-1:c.mipmask=u[0].mipmask,c.internalformat=u[0].internalformat,d.width=u[0].width,d.height=u[0].height,Ge(c),o=0;o<6;++o)U(u[o],Y+o);for(Ee(l,G),Ye(),s.profile&&(c.stats.size=Fe(c.internalformat,c.type,d.width,d.height,l.genMipmaps,!0)),d.format=v[c.internalformat],d.type=A[c.type],d.mag=O[l.magFilter],d.min=w[l.minFilter],d.wrapS=k[l.wrapS],d.wrapT=k[l.wrapT],o=0;o<6;++o)Ae(u[o]);return d}return d(e,n,r,a,i,l),d.subimage=function(e,t,n,r,a){var i=0|n,o=0|r,s=0|a,l=N();return C(l,c),l.width=0,l.height=0,R(l,t),l.width=l.width||(c.width>>s)-i,l.height=l.height||(c.height>>s)-o,Ge(c),I(l,Y+e,i,o,s),Ye(),P(l),d},d.resize=function(e){var n=0|e;if(n!==c.width){d.width=c.width=n,d.height=c.height=n,Ge(c);for(var r=0;r<6;++r)for(var a=0;c.mipmask>>a;++a)t.texImage2D(Y+r,a,c.format,n>>a,n>>a,0,c.format,c.type,null);return Ye(),s.profile&&(c.stats.size=Fe(c.internalformat,c.type,d.width,d.height,!1,!0)),d}},d._reglType="textureCube",d._texture=c,s.profile&&(d.stats=c.stats),d.destroy=function(){c.decRef()},d},clear:function(){for(var e=0;e<Ve;++e)t.activeTexture(be+e),t.bindTexture(X,null),He[e]=null;z(Ue).forEach(Ze),o.cubeCount=0,o.textureCount=0},getTexture:function(e){return null},restore:function(){for(var e=0;e<Ve;++e){var n=He[e];n&&(n.bindCount=0,n.unit=-1,He[e]=null)}z(Ue).forEach(function(e){e.texture=t.createTexture(),t.bindTexture(e.target,e.texture);for(var n=0;n<32;++n)if(e.mipmask&1<<n)if(e.target===X)t.texImage2D(X,n,e.internalformat,e.width>>n,e.height>>n,0,e.internalformat,e.type,null);else for(var r=0;r<6;++r)t.texImage2D(Y+r,n,e.internalformat,e.width>>n,e.height>>n,0,e.internalformat,e.type,null);Ee(e.texInfo,e.target)})},refresh:function(){for(var e=0;e<Ve;++e){var n=He[e];n&&(n.bindCount=0,n.unit=-1,He[e]=null),t.activeTexture(be+e),t.bindTexture(X,null),t.bindTexture(G,null)}}}}Ee[32854]=2,Ee[ee]=2,Ee[36194]=2,Ee[ne]=4,Ee[oe]=.5,Ee[se]=.5,Ee[le]=1,Ee[33779]=1,Ee[35986]=.5,Ee[35987]=1,Ee[34798]=1,Ee[35840]=.5,Ee[35841]=.25,Ee[35842]=.5,Ee[35843]=.25,Ee[36196]=.5;var Ue=36161,Ve=32854,He=[];function Xe(e,t,n){return He[e]*t*n}He[Ve]=2,He[32855]=2,He[36194]=2,He[33189]=2,He[36168]=1,He[34041]=4,He[35907]=4,He[34836]=16,He[34842]=8,He[34843]=6;var Ge=36160,Ye=36161,Ze=3553,$e=[];$e[6408]=4,$e[6407]=3;var Je=[];Je[5121]=1,Je[5126]=4,Je[36193]=2;var Qe=34963;function Ke(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.offset=0,this.stride=0,this.divisor=0}function et(e,t,n,r,a,i,o){function s(a){var i;i=null===t.next?5121:t.next.colorAttachments[0].texture._texture.type;var o=0,s=0,l=r.framebufferWidth,c=r.framebufferHeight,u=null;M(a)?u=a:a&&(o=0|a.x,s=0|a.y,l=0|(a.width||r.framebufferWidth-o),c=0|(a.height||r.framebufferHeight-s),u=a.data||null),n();var d=l*c*4;return u||(5121===i?u=new Uint8Array(d):5126===i&&(u=u||new Float32Array(d))),e.pixelStorei(3333,4),e.readPixels(o,s,l,c,6408,i,u),u}return function(e){return e&&"framebuffer"in e?function(e){var n;return t.setFBO({framebuffer:e.framebuffer},function(){n=s(e)}),n}(e):s(e)}}function tt(e){return function(e){for(var t,n="0123456789abcdef",r="",a=0;a<e.length;a++)t=e.charCodeAt(a),r+=n.charAt(t>>>4&15)+n.charAt(15&t);return r}(function(e){return rt(ht(nt(e),8*e.length))}(function(e){for(var t,n,r="",a=-1;++a<e.length;)t=e.charCodeAt(a),n=a+1<e.length?e.charCodeAt(a+1):0,55296<=t&&t<=56319&&56320<=n&&n<=57343&&(t=65536+((1023&t)<<10)+(1023&n),a++),t<=127?r+=String.fromCharCode(t):t<=2047?r+=String.fromCharCode(192|t>>>6&31,128|63&t):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return r}(e)))}function nt(e){for(var t=Array(e.length>>2),n=0;n<t.length;n++)t[n]=0;for(n=0;n<8*e.length;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<24-n%32;return t}function rt(e){for(var t="",n=0;n<32*e.length;n+=8)t+=String.fromCharCode(e[n>>5]>>>24-n%32&255);return t}function at(e,t){return e>>>t|e<<32-t}function it(e,t){return e>>>t}function ot(e,t,n){return e&t^~e&n}function st(e,t,n){return e&t^e&n^t&n}function lt(e){return at(e,2)^at(e,13)^at(e,22)}function ct(e){return at(e,6)^at(e,11)^at(e,25)}function ut(e){return at(e,7)^at(e,18)^it(e,3)}function dt(e){return at(e,17)^at(e,19)^it(e,10)}var pt=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function ht(e,t){var n,r,a,i,o,s,l,c,u,d,p,h,f=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),m=new Array(64);for(e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t,u=0;u<e.length;u+=16){for(n=f[0],r=f[1],a=f[2],i=f[3],o=f[4],s=f[5],l=f[6],c=f[7],d=0;d<64;d++)m[d]=d<16?e[d+u]:ft(ft(ft(dt(m[d-2]),m[d-7]),ut(m[d-15])),m[d-16]),p=ft(ft(ft(ft(c,ct(o)),ot(o,s,l)),pt[d]),m[d]),h=ft(lt(n),st(n,r,a)),c=l,l=s,s=o,o=ft(i,p),i=a,a=r,r=n,n=ft(p,h);f[0]=ft(n,f[0]),f[1]=ft(r,f[1]),f[2]=ft(a,f[2]),f[3]=ft(i,f[3]),f[4]=ft(o,f[4]),f[5]=ft(s,f[5]),f[6]=ft(l,f[6]),f[7]=ft(c,f[7])}return f}function ft(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function mt(e){return Array.prototype.slice.call(e)}function gt(e){return mt(e).join("")}var yt="xyzw".split(""),bt="dither",vt="blend.enable",Mt="blend.color",xt="blend.equation",zt="blend.func",_t="depth.enable",At="depth.func",Ot="depth.range",wt="depth.mask",kt="colorMask",Tt="cull.enable",St="cull.face",Ct="frontFace",Et="lineWidth",qt="polygonOffset.enable",Dt="polygonOffset.offset",Rt="sample.alpha",Lt="sample.enable",It="sample.coverage",Wt="stencil.enable",Nt="stencil.mask",Pt="stencil.func",Bt="stencil.opFront",Ft="stencil.opBack",jt="scissor.enable",Ut="scissor.box",Vt="viewport",Ht="profile",Xt="framebuffer",Gt="vert",Yt="frag",Zt="elements",$t="primitive",Jt="count",Qt="offset",Kt="instances",en="vao",tn="Width",nn="Height",rn=Xt+tn,an=Xt+nn,on=Vt+tn,sn=Vt+nn,ln="drawingBuffer",cn=ln+tn,un=ln+nn,dn=[zt,xt,Pt,Bt,Ft,It,Vt,Ut,Dt],pn=34962,hn=34963,fn=35664,mn=35665,gn=35666,yn=35667,bn=35668,vn=35669,Mn=35671,xn=35672,zn=35673,_n=35674,An=35675,On=35676,wn=35678,kn=35680,Tn=1028,Sn=1029,Cn=2305,En=7680,qn={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Dn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Rn={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ln={cw:2304,ccw:Cn};function In(e){return Array.isArray(e)||M(e)||x(e)}function Wn(e){return e.sort(function(e,t){return e===Vt?-1:t===Vt?1:e<t?-1:1})}function Nn(e,t,n,r){this.thisDep=e,this.contextDep=t,this.propDep=n,this.append=r}function Pn(e){return e&&!(e.thisDep||e.contextDep||e.propDep)}function Bn(e){return new Nn(!1,!1,!1,e)}function Fn(e,t){var n=e.type;if(0===n){var r=e.data.length;return new Nn(!0,r>=1,r>=2,t)}if(4===n){var a=e.data;return new Nn(a.thisDep,a.contextDep,a.propDep,t)}if(5===n)return new Nn(!1,!1,!1,t);if(6===n){for(var i=!1,o=!1,s=!1,l=0;l<e.data.length;++l){var c=e.data[l];if(1===c.type)s=!0;else if(2===c.type)o=!0;else if(3===c.type)i=!0;else if(0===c.type){i=!0;var u=c.data;u>=1&&(o=!0),u>=2&&(s=!0)}else 4===c.type&&(i=i||c.data.thisDep,o=o||c.data.contextDep,s=s||c.data.propDep)}return new Nn(i,o,s,t)}return new Nn(3===n,2===n,1===n,t)}var jn=new Nn(!1,!1,!1,function(){});function Un(t,n,r,a,i,s,l,c,u,d,h,f,m,g,y,b){var v=d.Record,M={add:32774,subtract:32778,"reverse subtract":32779};r.ext_blend_minmax&&(M.min=32775,M.max=32776);var x=r.angle_instanced_arrays,z=r.webgl_draw_buffers,_=r.oes_vertex_array_object,A={dirty:!0,profile:b.profile},O={},w=[],T={},S={};function C(e){return e.replace(".","_")}function E(e,t,n){var r=C(e);w.push(e),O[r]=A[r]=!!n,T[r]=t}function q(e,t,n){var r=C(e);w.push(e),Array.isArray(n)?(A[r]=n.slice(),O[r]=n.slice()):A[r]=O[r]=n,S[r]=t}function D(e){return!!isNaN(e)}E(bt,3024),E(vt,3042),q(Mt,"blendColor",[0,0,0,0]),q(xt,"blendEquationSeparate",[32774,32774]),q(zt,"blendFuncSeparate",[1,0,1,0]),E(_t,2929,!0),q(At,"depthFunc",513),q(Ot,"depthRange",[0,1]),q(wt,"depthMask",!0),q(kt,kt,[!0,!0,!0,!0]),E(Tt,2884),q(St,"cullFace",Sn),q(Ct,Ct,Cn),q(Et,Et,1),E(qt,32823),q(Dt,"polygonOffset",[0,0]),E(Rt,32926),E(Lt,32928),q(It,"sampleCoverage",[1,!1]),E(Wt,2960),q(Nt,"stencilMask",-1),q(Pt,"stencilFunc",[519,0,-1]),q(Bt,"stencilOpSeparate",[Tn,En,En,En]),q(Ft,"stencilOpSeparate",[Sn,En,En,En]),E(jt,3089),q(Ut,"scissor",[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),q(Vt,Vt,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var R={gl:t,context:m,strings:n,next:O,current:A,draw:f,elements:s,buffer:i,shader:h,attributes:d.state,vao:d,uniforms:u,framebuffer:c,extensions:r,timer:g,isBufferArgs:In},L={primTypes:W,compareFuncs:Dn,blendFuncs:qn,blendEquations:M,stencilOps:Rn,glTypes:k,orientationType:Ln};z&&(L.backBuffer=[Sn],L.drawBuffer=p(a.maxDrawbuffers,function(e){return 0===e?[0]:p(e,function(e){return 36064+e})}));var I=0;function N(){var t=function(t){var n=t&&t.cache,r=0,a=[],i=[],o=[];function s(){var t=[],n=[];return e(function(){t.push.apply(t,mt(arguments))},{def:function(){var e="v"+r++;return n.push(e),arguments.length>0&&(t.push(e,"="),t.push.apply(t,mt(arguments)),t.push(";")),e},toString:function(){return gt([n.length>0?"var "+n.join(",")+";":"",gt(t)])}})}function l(){var t=s(),n=s(),r=t.toString,a=n.toString;function i(e,r){n(e,r,"=",t.def(e,r),";")}return e(function(){t.apply(t,mt(arguments))},{def:t.def,entry:t,exit:n,save:i,set:function(e,n,r){i(e,n),t(e,n,"=",r,";")},toString:function(){return r()+a()}})}var c=s(),u={};return{global:c,link:function(e,t){var n=t&&t.stable;if(!n)for(var s=0;s<i.length;++s)if(i[s]===e&&!o[s])return a[s];var l="g"+r++;return a.push(l),i.push(e),o.push(n),l},block:s,proc:function(t,n){var r=[];function a(){var e="a"+r.length;return r.push(e),e}n=n||0;for(var i=0;i<n;++i)a();var o=l(),s=o.toString;return u[t]=e(o,{arg:a,toString:function(){return gt(["function(",r.join(),"){",s(),"}"])}})},scope:l,cond:function(){var t=gt(arguments),n=l(),r=l(),a=n.toString,i=r.toString;return e(n,{then:function(){return n.apply(n,mt(arguments)),this},else:function(){return r.apply(r,mt(arguments)),this},toString:function(){var e=i();return e&&(e="else{"+e+"}"),gt(["if(",t,"){",a(),"}",e])}})},compile:function(){var e=['"use strict";',c,"return {"];Object.keys(u).forEach(function(t){e.push('"',t,'":',u[t].toString(),",")}),e.push("}");var t,r=gt(e).replace(/;/g,";\n").replace(/}/g,"}\n").replace(/{/g,"{\n");if(n&&(t=tt(r),n[t]))return n[t].apply(null,i);var o=Function.apply(null,a.concat(r));return n&&(n[t]=o),o.apply(null,i)}}}({cache:y}),r=t.link,a=t.global;t.id=I++,t.batchId="0";var i=r(R),o=t.shared={props:"a0"};Object.keys(R).forEach(function(e){o[e]=a.def(i,".",e)});var s=t.next={},l=t.current={};Object.keys(S).forEach(function(e){Array.isArray(A[e])&&(s[e]=a.def(o.next,".",e),l[e]=a.def(o.current,".",e))});var c=t.constants={};Object.keys(L).forEach(function(e){c[e]=a.def(JSON.stringify(L[e]))}),t.invoke=function(e,n){switch(n.type){case 0:var a=["this",o.context,o.props,t.batchId];return e.def(r(n.data),".call(",a.slice(0,Math.max(n.data.length+1,4)),")");case 1:return e.def(o.props,n.data);case 2:return e.def(o.context,n.data);case 3:return e.def("this",n.data);case 4:return n.data.append(t,e),n.data.ref;case 5:return n.data.toString();case 6:return n.data.map(function(n){return t.invoke(e,n)})}},t.attribCache={};var u={};return t.scopeAttrib=function(e){var t=n.id(e);if(t in u)return u[t];var a=d.scope[t];return a||(a=d.scope[t]=new v),u[t]=r(a)},t}function P(e,t,a,o,l){e.static,e.dynamic;var u=function(e,t){var n=e.static;if("string"==typeof n[Yt]&&"string"==typeof n[Gt]){if(Object.keys(t.dynamic).length>0)return null;var r=t.static,a=Object.keys(r);if(a.length>0&&"number"==typeof r[a[0]]){for(var i=[],o=0;o<a.length;++o)i.push([0|r[a[o]],a[o]]);return i}}return null}(e,t),f=function(e){var t=e.static,n=e.dynamic;if(Xt in t){var r=t[Xt];return r?(r=c.getFramebuffer(r),Bn(function(e,t){var n=e.link(r),a=e.shared;t.set(a.framebuffer,".next",n);var i=a.context;return t.set(i,"."+rn,n+".width"),t.set(i,"."+an,n+".height"),n})):Bn(function(e,t){var n=e.shared;t.set(n.framebuffer,".next","null");var r=n.context;return t.set(r,"."+rn,r+"."+cn),t.set(r,"."+an,r+"."+un),"null"})}if(Xt in n){var a=n[Xt];return Fn(a,function(e,t){var n=e.invoke(t,a),r=e.shared,i=r.framebuffer,o=t.def(i,".getFramebuffer(",n,")");t.set(i,".next",o);var s=r.context;return t.set(s,"."+rn,o+"?"+o+".width:"+s+"."+cn),t.set(s,"."+an,o+"?"+o+".height:"+s+"."+un),o})}return null}(e),m=function(e,t){var n=e.static,r=e.dynamic;function a(e){if(e in n){var a,i,o=n[e],s=!0,l=0|o.x,c=0|o.y;return"width"in o?a=0|o.width:s=!1,"height"in o?i=0|o.height:s=!1,new Nn(!s&&t&&t.thisDep,!s&&t&&t.contextDep,!s&&t&&t.propDep,function(e,t){var n=e.shared.context,r=a;"width"in o||(r=t.def(n,".",rn,"-",l));var s=i;return"height"in o||(s=t.def(n,".",an,"-",c)),[l,c,r,s]})}if(e in r){var u=r[e],d=Fn(u,function(e,t){var n=e.invoke(t,u),r=e.shared.context,a=t.def(n,".x|0"),i=t.def(n,".y|0");return[a,i,t.def('"width" in ',n,"?",n,".width|0:","(",r,".",rn,"-",a,")"),t.def('"height" in ',n,"?",n,".height|0:","(",r,".",an,"-",i,")")]});return t&&(d.thisDep=d.thisDep||t.thisDep,d.contextDep=d.contextDep||t.contextDep,d.propDep=d.propDep||t.propDep),d}return t?new Nn(t.thisDep,t.contextDep,t.propDep,function(e,t){var n=e.shared.context;return[0,0,t.def(n,".",rn),t.def(n,".",an)]}):null}var i=a(Vt);if(i){var o=i;i=new Nn(i.thisDep,i.contextDep,i.propDep,function(e,t){var n=o.append(e,t),r=e.shared.context;return t.set(r,"."+on,n[2]),t.set(r,"."+sn,n[3]),n})}return{viewport:i,scissor_box:a(Ut)}}(e,f),g=function(e){var t=e.static,n=e.dynamic,r={},a=!1,i=function(){if(en in t){var e=t[en];return null!==e&&null===d.getVAO(e)&&(e=d.createVAO(e)),a=!0,r.vao=e,Bn(function(t){var n=d.getVAO(e);return n?t.link(n):"null"})}if(en in n){a=!0;var i=n[en];return Fn(i,function(e,t){var n=e.invoke(t,i);return t.def(e.shared.vao+".getVAO("+n+")")})}return null}(),o=!1,l=function(){if(Zt in t){var e=t[Zt];if(r.elements=e,In(e)){var l=r.elements=s.create(e,!0);e=s.getElements(l),o=!0}else e&&(e=s.getElements(e),o=!0);var c=Bn(function(t,n){if(e){var r=t.link(e);return t.ELEMENTS=r,r}return t.ELEMENTS=null,null});return c.value=e,c}if(Zt in n){o=!0;var u=n[Zt];return Fn(u,function(e,t){var n=e.shared,r=n.isBufferArgs,a=n.elements,i=e.invoke(t,u),o=t.def("null"),s=t.def(r,"(",i,")"),l=e.cond(s).then(o,"=",a,".createStream(",i,");").else(o,"=",a,".getElements(",i,");");return t.entry(l),t.exit(e.cond(s).then(a,".destroyStream(",o,");")),e.ELEMENTS=o,o})}return a?new Nn(i.thisDep,i.contextDep,i.propDep,function(e,t){return t.def(e.shared.vao+".currentVAO?"+e.shared.elements+".getElements("+e.shared.vao+".currentVAO.elements):null")}):null}();function c(e,s){if(e in t){var l=0|t[e];return s?r.offset=l:r.instances=l,Bn(function(e,t){return s&&(e.OFFSET=l),l})}if(e in n){var c=n[e];return Fn(c,function(e,t){var n=e.invoke(t,c);return s&&(e.OFFSET=n),n})}if(s){if(o)return Bn(function(e,t){return e.OFFSET=0,0});if(a)return new Nn(i.thisDep,i.contextDep,i.propDep,function(e,t){return t.def(e.shared.vao+".currentVAO?"+e.shared.vao+".currentVAO.offset:0")})}else if(a)return new Nn(i.thisDep,i.contextDep,i.propDep,function(e,t){return t.def(e.shared.vao+".currentVAO?"+e.shared.vao+".currentVAO.instances:-1")});return null}var u=c(Qt,!0),p=function(){if($t in t){var e=t[$t];return r.primitive=e,Bn(function(t,n){return W[e]})}if($t in n){var s=n[$t];return Fn(s,function(e,t){var n=e.constants.primTypes,r=e.invoke(t,s);return t.def(n,"[",r,"]")})}return o?Pn(l)?l.value?Bn(function(e,t){return t.def(e.ELEMENTS,".primType")}):Bn(function(){return 4}):new Nn(l.thisDep,l.contextDep,l.propDep,function(e,t){var n=e.ELEMENTS;return t.def(n,"?",n,".primType:",4)}):a?new Nn(i.thisDep,i.contextDep,i.propDep,function(e,t){return t.def(e.shared.vao+".currentVAO?"+e.shared.vao+".currentVAO.primitive:4")}):null}(),h=function(){if(Jt in t){var e=0|t[Jt];return r.count=e,Bn(function(){return e})}if(Jt in n){var s=n[Jt];return Fn(s,function(e,t){return e.invoke(t,s)})}return o?Pn(l)?l?u?new Nn(u.thisDep,u.contextDep,u.propDep,function(e,t){return t.def(e.ELEMENTS,".vertCount-",e.OFFSET)}):Bn(function(e,t){return t.def(e.ELEMENTS,".vertCount")}):Bn(function(){return-1}):new Nn(l.thisDep||u.thisDep,l.contextDep||u.contextDep,l.propDep||u.propDep,function(e,t){var n=e.ELEMENTS;return e.OFFSET?t.def(n,"?",n,".vertCount-",e.OFFSET,":-1"):t.def(n,"?",n,".vertCount:-1")}):a?new Nn(i.thisDep,i.contextDep,i.propDep,function(e,t){return t.def(e.shared.vao,".currentVAO?",e.shared.vao,".currentVAO.count:-1")}):null}(),f=c(Kt,!1);return{elements:l,primitive:p,count:h,instances:f,offset:u,vao:i,vaoActive:a,elementsActive:o,static:r}}(e),y=function(e){var t=e.static,n=e.dynamic,r={};return w.forEach(function(e){var a=C(e);function i(i,o){if(e in t){var s=i(t[e]);r[a]=Bn(function(){return s})}else if(e in n){var l=n[e];r[a]=Fn(l,function(e,t){return o(e,t,e.invoke(t,l))})}}switch(e){case Tt:case vt:case bt:case Wt:case _t:case jt:case qt:case Rt:case Lt:case wt:return i(function(e){return e},function(e,t,n){return n});case At:return i(function(e){return Dn[e]},function(e,t,n){var r=e.constants.compareFuncs;return t.def(r,"[",n,"]")});case Ot:return i(function(e){return e},function(e,t,n){return[t.def("+",n,"[0]"),t.def("+",n,"[1]")]});case zt:return i(function(e){var t="srcRGB"in e?e.srcRGB:e.src,n="srcAlpha"in e?e.srcAlpha:e.src,r="dstRGB"in e?e.dstRGB:e.dst,a="dstAlpha"in e?e.dstAlpha:e.dst;return[qn[t],qn[r],qn[n],qn[a]]},function(e,t,n){var r=e.constants.blendFuncs;function a(e,r){return t.def('"',e,r,'" in ',n,"?",n,".",e,r,":",n,".",e)}var i=a("src","RGB"),o=a("dst","RGB"),s=t.def(r,"[",i,"]"),l=t.def(r,"[",a("src","Alpha"),"]");return[s,t.def(r,"[",o,"]"),l,t.def(r,"[",a("dst","Alpha"),"]")]});case xt:return i(function(e){return"string"==typeof e?[M[e],M[e]]:"object"==typeof e?[M[e.rgb],M[e.alpha]]:void 0},function(e,t,n){var r=e.constants.blendEquations,a=t.def(),i=t.def(),o=e.cond("typeof ",n,'==="string"');return o.then(a,"=",i,"=",r,"[",n,"];"),o.else(a,"=",r,"[",n,".rgb];",i,"=",r,"[",n,".alpha];"),t(o),[a,i]});case Mt:return i(function(e){return p(4,function(t){return+e[t]})},function(e,t,n){return p(4,function(e){return t.def("+",n,"[",e,"]")})});case Nt:return i(function(e){return 0|e},function(e,t,n){return t.def(n,"|0")});case Pt:return i(function(e){var t=e.cmp||"keep",n=e.ref||0,r="mask"in e?e.mask:-1;return[Dn[t],n,r]},function(e,t,n){var r=e.constants.compareFuncs;return[t.def('"cmp" in ',n,"?",r,"[",n,".cmp]",":",En),t.def(n,".ref|0"),t.def('"mask" in ',n,"?",n,".mask|0:-1")]});case Bt:case Ft:return i(function(t){var n=t.fail||"keep",r=t.zfail||"keep",a=t.zpass||"keep";return[e===Ft?Sn:Tn,Rn[n],Rn[r],Rn[a]]},function(t,n,r){var a=t.constants.stencilOps;function i(e){return n.def('"',e,'" in ',r,"?",a,"[",r,".",e,"]:",En)}return[e===Ft?Sn:Tn,i("fail"),i("zfail"),i("zpass")]});case Dt:return i(function(e){return[0|e.factor,0|e.units]},function(e,t,n){return[t.def(n,".factor|0"),t.def(n,".units|0")]});case St:return i(function(e){var t=0;return"front"===e?t=Tn:"back"===e&&(t=Sn),t},function(e,t,n){return t.def(n,'==="front"?',Tn,":",Sn)});case Et:return i(function(e){return e},function(e,t,n){return n});case Ct:return i(function(e){return Ln[e]},function(e,t,n){return t.def(n+'==="cw"?2304:'+Cn)});case kt:return i(function(e){return e.map(function(e){return!!e})},function(e,t,n){return p(4,function(e){return"!!"+n+"["+e+"]"})});case It:return i(function(e){return["value"in e?e.value:1,!!e.invert]},function(e,t,n){return[t.def('"value" in ',n,"?+",n,".value:1"),t.def("!!",n,".invert")]})}}),r}(e),b=function(e,t,r){var a=e.static,i=e.dynamic;function o(e){if(e in a){var t=n.id(a[e]),r=Bn(function(){return t});return r.id=t,r}if(e in i){var o=i[e];return Fn(o,function(e,t){var n=e.invoke(t,o);return t.def(e.shared.strings,".id(",n,")")})}return null}var s,l=o(Yt),c=o(Gt),u=null;return Pn(l)&&Pn(c)?(u=h.program(c.id,l.id,null,r),s=Bn(function(e,t){return e.link(u)})):s=new Nn(l&&l.thisDep||c&&c.thisDep,l&&l.contextDep||c&&c.contextDep,l&&l.propDep||c&&c.propDep,function(e,t){var n,r=e.shared.shader;n=l?l.append(e,t):t.def(r,".",Yt);var a=r+".program("+(c?c.append(e,t):t.def(r,".",Gt))+","+n;return t.def(a+")")}),{frag:l,vert:c,progVar:s,program:u}}(e,0,u);function x(e){var t=m[e];t&&(y[e]=t)}x(Vt),x(C(Ut));var z=Object.keys(y).length>0,_={framebuffer:f,draw:g,shader:b,state:y,dirty:z,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(_.profile=function(e){var t,n=e.static,r=e.dynamic;if(Ht in n){var a=!!n[Ht];(t=Bn(function(e,t){return a})).enable=a}else if(Ht in r){var i=r[Ht];t=Fn(i,function(e,t){return e.invoke(t,i)})}return t}(e),_.uniforms=function(e){var t=e.static,n=e.dynamic,r={};return Object.keys(t).forEach(function(e){var n,a=t[e];if("number"==typeof a||"boolean"==typeof a)n=Bn(function(){return a});else if("function"==typeof a){var i=a._reglType;"texture2d"===i||"textureCube"===i?n=Bn(function(e){return e.link(a)}):("framebuffer"===i||"framebufferCube"===i)&&(n=Bn(function(e){return e.link(a.color[0])}))}else H(a)&&(n=Bn(function(e){return e.global.def("[",p(a.length,function(e){return a[e]}),"]")}));n.value=a,r[e]=n}),Object.keys(n).forEach(function(e){var t=n[e];r[e]=Fn(t,function(e,n){return e.invoke(n,t)})}),r}(a),_.drawVAO=_.scopeVAO=g.vao,!_.drawVAO&&b.program&&!u&&r.angle_instanced_arrays&&g.static.elements){var A=!0,O=b.program.attributes.map(function(e){var n=t.static[e];return A=A&&!!n,n});if(A&&O.length>0){var T=d.getVAO(d.createVAO({attributes:O,elements:g.static.elements}));_.drawVAO=new Nn(null,null,null,function(e,t){return e.link(T)}),_.useVAO=!0}}return u?_.useVAO=!0:_.attributes=function(e){var t=e.static,r=e.dynamic,a={};return Object.keys(t).forEach(function(e){var r=t[e],o=n.id(e),s=new v;if(In(r))s.state=1,s.buffer=i.getBuffer(i.create(r,pn,!1,!0)),s.type=0;else{var l=i.getBuffer(r);if(l)s.state=1,s.buffer=l,s.type=0;else if("constant"in r){var c=r.constant;s.buffer="null",s.state=2,"number"==typeof c?s.x=c:yt.forEach(function(e,t){t<c.length&&(s[e]=c[t])})}else{l=In(r.buffer)?i.getBuffer(i.create(r.buffer,pn,!1,!0)):i.getBuffer(r.buffer);var u=0|r.offset,d=0|r.stride,p=0|r.size,h=!!r.normalized,f=0;"type"in r&&(f=k[r.type]);var m=0|r.divisor;s.buffer=l,s.state=1,s.size=p,s.normalized=h,s.type=f||l.dtype,s.offset=u,s.stride=d,s.divisor=m}}a[e]=Bn(function(e,t){var n=e.attribCache;if(o in n)return n[o];var r={isStream:!1};return Object.keys(s).forEach(function(e){r[e]=s[e]}),s.buffer&&(r.buffer=e.link(s.buffer),r.type=r.type||r.buffer+".dtype"),n[o]=r,r})}),Object.keys(r).forEach(function(e){var t=r[e];a[e]=Fn(t,function(e,n){var r=e.invoke(n,t),a=e.shared,i=e.constants,o=a.isBufferArgs,s=a.buffer,l={isStream:n.def(!1)},c=new v;c.state=1,Object.keys(c).forEach(function(e){l[e]=n.def(""+c[e])});var u=l.buffer,d=l.type;function p(e){n(l[e],"=",r,".",e,"|0;")}return n("if(",o,"(",r,")){",l.isStream,"=true;",u,"=",s,".createStream(",pn,",",r,");",d,"=",u,".dtype;","}else{",u,"=",s,".getBuffer(",r,");","if(",u,"){",d,"=",u,".dtype;",'}else if("constant" in ',r,"){",l.state,"=",2,";","if(typeof "+r+'.constant === "number"){',l[yt[0]],"=",r,".constant;",yt.slice(1).map(function(e){return l[e]}).join("="),"=0;","}else{",yt.map(function(e,t){return l[e]+"="+r+".constant.length>"+t+"?"+r+".constant["+t+"]:0;"}).join(""),"}}else{","if(",o,"(",r,".buffer)){",u,"=",s,".createStream(",pn,",",r,".buffer);","}else{",u,"=",s,".getBuffer(",r,".buffer);","}",d,'="type" in ',r,"?",i.glTypes,"[",r,".type]:",u,".dtype;",l.normalized,"=!!",r,".normalized;"),p("size"),p("offset"),p("stride"),p("divisor"),n("}}"),n.exit("if(",l.isStream,"){",s,".destroyStream(",u,");","}"),l})}),a}(t),_.context=function(e){var t=e.static,n=e.dynamic,r={};return Object.keys(t).forEach(function(e){var n=t[e];r[e]=Bn(function(e,t){return"number"==typeof n||"boolean"==typeof n?""+n:e.link(n)})}),Object.keys(n).forEach(function(e){var t=n[e];r[e]=Fn(t,function(e,n){return e.invoke(n,t)})}),r}(o),_}function B(e,t,n){var r=e.shared.context,a=e.scope();Object.keys(n).forEach(function(i){t.save(r,"."+i);var o=n[i].append(e,t);Array.isArray(o)?a(r,".",i,"=[",o.join(),"];"):a(r,".",i,"=",o,";")}),t(a)}function F(e,t,n,r){var a,i=e.shared,o=i.gl,s=i.framebuffer;z&&(a=t.def(i.extensions,".webgl_draw_buffers"));var l,c=e.constants,u=c.drawBuffer,d=c.backBuffer;l=n?n.append(e,t):t.def(s,".next"),r||t("if(",l,"!==",s,".cur){"),t("if(",l,"){",o,".bindFramebuffer(",36160,",",l,".framebuffer);"),z&&t(a,".drawBuffersWEBGL(",u,"[",l,".colorAttachments.length]);"),t("}else{",o,".bindFramebuffer(",36160,",null);"),z&&t(a,".drawBuffersWEBGL(",d,");"),t("}",s,".cur=",l,";"),r||t("}")}function j(e,t,n){var r=e.shared,a=r.gl,i=e.current,o=e.next,s=r.current,l=r.next,c=e.cond(s,".dirty");w.forEach(function(t){var r,u,d=C(t);if(!(d in n.state))if(d in o){r=o[d],u=i[d];var h=p(A[d].length,function(e){return c.def(r,"[",e,"]")});c(e.cond(h.map(function(e,t){return e+"!=="+u+"["+t+"]"}).join("||")).then(a,".",S[d],"(",h,");",h.map(function(e,t){return u+"["+t+"]="+e}).join(";"),";"))}else{r=c.def(l,".",d);var f=e.cond(r,"!==",s,".",d);c(f),d in T?f(e.cond(r).then(a,".enable(",T[d],");").else(a,".disable(",T[d],");"),s,".",d,"=",r,";"):f(a,".",S[d],"(",r,");",s,".",d,"=",r,";")}}),0===Object.keys(n.state).length&&c(s,".dirty=false;"),t(c)}function U(e,t,n,r){var a,i=e.shared,o=e.current,s=i.current,l=i.gl;Wn(Object.keys(n)).forEach(function(i){var c=n[i];if(!r||r(c)){var u=c.append(e,t);if(T[i]){var d=T[i];Pn(c)?(a=e.link(u,{stable:!0}),t(e.cond(a).then(l,".enable(",d,");").else(l,".disable(",d,");")),t(s,".",i,"=",a,";")):(t(e.cond(u).then(l,".enable(",d,");").else(l,".disable(",d,");")),t(s,".",i,"=",u,";"))}else if(H(u)){var p=o[i];t(l,".",S[i],"(",u,");",u.map(function(e,t){return p+"["+t+"]="+e}).join(";"),";")}else Pn(c)?(a=e.link(u,{stable:!0}),t(l,".",S[i],"(",a,");",s,".",i,"=",a,";")):t(l,".",S[i],"(",u,");",s,".",i,"=",u,";")}})}function V(e,t){x&&(e.instancing=t.def(e.shared.extensions,".angle_instanced_arrays"))}function X(e,t,n,r,a){var i,o,s,l=e.shared,c=e.stats,u=l.current,d=l.timer,p=n.profile;function h(){return typeof performance>"u"?"Date.now()":"performance.now()"}function f(e){e(i=t.def(),"=",h(),";"),"string"==typeof a?e(c,".count+=",a,";"):e(c,".count++;"),g&&(r?e(o=t.def(),"=",d,".getNumPendingQueries();"):e(d,".beginQuery(",c,");"))}function m(e){e(c,".cpuTime+=",h(),"-",i,";"),g&&(r?e(d,".pushScopeStats(",o,",",d,".getNumPendingQueries(),",c,");"):e(d,".endQuery();"))}function y(e){var n=t.def(u,".profile");t(u,".profile=",e,";"),t.exit(u,".profile=",n,";")}if(p){if(Pn(p))return void(p.enable?(f(t),m(t.exit),y("true")):y("false"));y(s=p.append(e,t))}else s=t.def(u,".profile");var b=e.block();f(b),t("if(",s,"){",b,"}");var v=e.block();m(v),t.exit("if(",s,"){",v,"}")}function G(e,t,n,r,a){var i=e.shared;r.forEach(function(r){var o,s=r.name,l=n.attributes[s];if(l){if(!a(l))return;o=l.append(e,t)}else{if(!a(jn))return;var c=e.scopeAttrib(s);o={},Object.keys(new v).forEach(function(e){o[e]=t.def(c,".",e)})}!function(n,r,a){var o=i.gl,s=t.def(n,".location"),l=t.def(i.attributes,"[",s,"]"),c=a.state,u=a.buffer,d=[a.x,a.y,a.z,a.w],p=["buffer","normalized","offset","stride"];function h(){t("if(!",l,".buffer){",o,".enableVertexAttribArray(",s,");}");var n,i=a.type;if(n=a.size?t.def(a.size,"||",r):r,t("if(",l,".type!==",i,"||",l,".size!==",n,"||",p.map(function(e){return l+"."+e+"!=="+a[e]}).join("||"),"){",o,".bindBuffer(",pn,",",u,".buffer);",o,".vertexAttribPointer(",[s,n,i,a.normalized,a.stride,a.offset],");",l,".type=",i,";",l,".size=",n,";",p.map(function(e){return l+"."+e+"="+a[e]+";"}).join(""),"}"),x){var c=a.divisor;t("if(",l,".divisor!==",c,"){",e.instancing,".vertexAttribDivisorANGLE(",[s,c],");",l,".divisor=",c,";}")}}function f(){t("if(",l,".buffer){",o,".disableVertexAttribArray(",s,");",l,".buffer=null;","}if(",yt.map(function(e,t){return l+"."+e+"!=="+d[t]}).join("||"),"){",o,".vertexAttrib4f(",s,",",d,");",yt.map(function(e,t){return l+"."+e+"="+d[t]+";"}).join(""),"}")}1===c?h():2===c?f():(t("if(",c,"===",1,"){"),h(),t("}else{"),f(),t("}"))}(e.link(r),function(e){switch(e){case fn:case yn:case Mn:return 2;case mn:case bn:case xn:return 3;case gn:case vn:case zn:return 4;default:return 1}}(r.info.type),o)})}function Y(e,t,r,a,i,o){for(var s,l=e.shared,c=l.gl,u=0;u<a.length;++u){var d,h=a[u],f=h.name,m=h.info.type,g=r.uniforms[f],y=e.link(h)+".location";if(g){if(!i(g))continue;if(Pn(g)){var b=g.value;if(m===wn||m===kn){var v=e.link(b._texture||b.color[0]._texture);t(c,".uniform1i(",y,",",v+".bind());"),t.exit(v,".unbind();")}else if(m===_n||m===An||m===On){var M=e.global.def("new Float32Array(["+Array.prototype.slice.call(b)+"])"),x=2;m===An?x=3:m===On&&(x=4),t(c,".uniformMatrix",x,"fv(",y,",false,",M,");")}else{switch(m){case 5126:s="1f";break;case fn:s="2f";break;case mn:s="3f";break;case gn:s="4f";break;case 35670:case 5124:s="1i";break;case Mn:case yn:s="2i";break;case xn:case bn:s="3i";break;case zn:case vn:s="4i"}t(c,".uniform",s,"(",y,",",H(b)?Array.prototype.slice.call(b):b,");")}continue}d=g.append(e,t)}else{if(!i(jn))continue;d=t.def(l.uniforms,"[",n.id(f),"]")}m===wn?t("if(",d,"&&",d,'._reglType==="framebuffer"){',d,"=",d,".color[0];","}"):m===kn&&t("if(",d,"&&",d,'._reglType==="framebufferCube"){',d,"=",d,".color[0];","}");var z=1;switch(m){case wn:case kn:var _=t.def(d,"._texture");t(c,".uniform1i(",y,",",_,".bind());"),t.exit(_,".unbind();");continue;case 5124:case 35670:s="1i";break;case yn:case Mn:s="2i",z=2;break;case bn:case xn:s="3i",z=3;break;case vn:case zn:s="4i",z=4;break;case 5126:s="1f";break;case fn:s="2f",z=2;break;case mn:s="3f",z=3;break;case gn:s="4f",z=4;break;case _n:s="Matrix2fv";break;case An:s="Matrix3fv";break;case On:s="Matrix4fv"}if("M"===s.charAt(0)){t(c,".uniform",s,"(",y,",");var A=Math.pow(m-_n+2,2),O=e.global.def("new Float32Array(",A,")");Array.isArray(d)?t("false,(",p(A,function(e){return O+"["+e+"]="+d[e]}),",",O,")"):t("false,(Array.isArray(",d,")||",d," instanceof Float32Array)?",d,":(",p(A,function(e){return O+"["+e+"]="+d+"["+e+"]"}),",",O,")"),t(");")}else if(z>1){for(var w=[],k=[],T=0;T<z;++T)Array.isArray(d)?k.push(d[T]):k.push(t.def(d+"["+T+"]")),o&&w.push(t.def());o&&t("if(!",e.batchId,"||",w.map(function(e,t){return e+"!=="+k[t]}).join("||"),"){",w.map(function(e,t){return e+"="+k[t]+";"}).join("")),t(c,".uniform",s,"(",y,",",k.join(","),");"),o&&t("}")}else{if(o){var S=t.def();t("if(!",e.batchId,"||",S,"!==",d,"){",S,"=",d,";")}t(c,".uniform",s,"(",y,",",d,");"),o&&t("}")}}}function Z(e,t,n,r){var a,i,o,s=e.shared,l=s.gl,c=s.draw,u=r.draw,d=(i=u.elements,o=t,i?((i.contextDep&&r.contextDynamic||i.propDep)&&(o=n),a=i.append(e,o),u.elementsActive&&o("if("+a+")"+l+".bindBuffer("+hn+","+a+".buffer.buffer);")):(a=o.def(),o(a,"=",c,".",Zt,";","if(",a,"){",l,".bindBuffer(",hn,",",a,".buffer.buffer);}","else if(",s.vao,".currentVAO){",a,"=",e.shared.elements+".getElements("+s.vao,".currentVAO.elements);",_?"":"if("+a+")"+l+".bindBuffer("+hn+","+a+".buffer.buffer);","}")),a);function p(a){var i=u[a];return i?i.contextDep&&r.contextDynamic||i.propDep?i.append(e,n):i.append(e,t):t.def(c,".",a)}var h,f,m=p($t),g=p(Qt),y=function(){var a,i=u.count,o=t;return i?((i.contextDep&&r.contextDynamic||i.propDep)&&(o=n),a=i.append(e,o)):a=o.def(c,".",Jt),a}();if("number"==typeof y){if(0===y)return}else n("if(",y,"){"),n.exit("}");x&&(h=p(Kt),f=e.instancing);var b=d+".type",v=u.elements&&Pn(u.elements)&&!u.vaoActive;function M(){function e(){n(f,".drawElementsInstancedANGLE(",[m,y,b,g+"<<(("+b+"-5121)>>1)",h],");")}function t(){n(f,".drawArraysInstancedANGLE(",[m,g,y,h],");")}d&&"null"!==d?v?e():(n("if(",d,"){"),e(),n("}else{"),t(),n("}")):t()}function z(){function e(){n(l+".drawElements("+[m,y,b,g+"<<(("+b+"-5121)>>1)"]+");")}function t(){n(l+".drawArrays("+[m,g,y]+");")}d&&"null"!==d?v?e():(n("if(",d,"){"),e(),n("}else{"),t(),n("}")):t()}x&&("number"!=typeof h||h>=0)?"string"==typeof h?(n("if(",h,">0){"),M(),n("}else if(",h,"<0){"),z(),n("}")):M():z()}function $(e,t,n,r,a){var i=N(),o=i.proc("body",a);return x&&(i.instancing=o.def(i.shared.extensions,".angle_instanced_arrays")),e(i,o,n,r),i.compile().body}function J(e,t,n,r){V(e,t),n.useVAO?n.drawVAO?t(e.shared.vao,".setVAO(",n.drawVAO.append(e,t),");"):t(e.shared.vao,".setVAO(",e.shared.vao,".targetVAO);"):(t(e.shared.vao,".setVAO(null);"),G(e,t,n,r.attributes,function(){return!0})),Y(e,t,n,r.uniforms,function(){return!0},!1),Z(e,t,t,n)}function Q(e,t,n,r){function a(){return!0}e.batchId="a1",V(e,t),G(e,t,n,r.attributes,a),Y(e,t,n,r.uniforms,a,!1),Z(e,t,t,n)}function K(e,t,n,r){V(e,t);var a=n.contextDep,i=t.def(),o=t.def();e.shared.props=o,e.batchId=i;var s=e.scope(),l=e.scope();function c(e){return e.contextDep&&a||e.propDep}function u(e){return!c(e)}if(t(s.entry,"for(",i,"=0;",i,"<","a1",";++",i,"){",o,"=","a0","[",i,"];",l,"}",s.exit),n.needsContext&&B(e,l,n.context),n.needsFramebuffer&&F(e,l,n.framebuffer),U(e,l,n.state,c),n.profile&&c(n.profile)&&X(e,l,n,!1,!0),r)n.useVAO?n.drawVAO?c(n.drawVAO)?l(e.shared.vao,".setVAO(",n.drawVAO.append(e,l),");"):s(e.shared.vao,".setVAO(",n.drawVAO.append(e,s),");"):s(e.shared.vao,".setVAO(",e.shared.vao,".targetVAO);"):(s(e.shared.vao,".setVAO(null);"),G(e,s,n,r.attributes,u),G(e,l,n,r.attributes,c)),Y(e,s,n,r.uniforms,u,!1),Y(e,l,n,r.uniforms,c,!0),Z(e,s,l,n);else{var d=e.global.def("{}"),p=n.shader.progVar.append(e,l),h=l.def(p,".id"),f=l.def(d,"[",h,"]");l(e.shared.gl,".useProgram(",p,".program);","if(!",f,"){",f,"=",d,"[",h,"]=",e.link(function(e){return $(Q,0,n,e,2)}),"(",p,");}",f,".call(this,a0[",i,"],",i,");")}}function ee(e,t,n){var r=t.static[n];if(r&&function(e){if("object"==typeof e&&!H(e)){for(var t=Object.keys(e),n=0;n<t.length;++n)if(o.isDynamic(e[t[n]]))return!0;return!1}}(r)){var a=e.global,i=Object.keys(r),s=!1,l=!1,c=!1,u=e.global.def("{}");i.forEach(function(t){var n=r[t];if(o.isDynamic(n)){"function"==typeof n&&(n=r[t]=o.unbox(n));var i=Fn(n,null);s=s||i.thisDep,c=c||i.propDep,l=l||i.contextDep}else{switch(a(u,".",t,"="),typeof n){case"number":a(n);break;case"string":a('"',n,'"');break;case"object":Array.isArray(n)&&a("[",n.join(),"]");break;default:a(e.link(n))}a(";")}}),t.dynamic[n]=new o.DynamicVariable(4,{thisDep:s,contextDep:l,propDep:c,ref:u,append:function(e,t){i.forEach(function(n){var a=r[n];if(o.isDynamic(a)){var i=e.invoke(t,a);t(u,".",n,"=",i,";")}})}}),delete t.static[n]}}return{next:O,current:A,procs:function(){var e=N(),t=e.proc("poll"),n=e.proc("refresh"),i=e.block();t(i),n(i);var o,s=e.shared,l=s.gl,c=s.next,u=s.current;i(u,".dirty=false;"),F(e,t),F(e,n,null,!0),x&&(o=e.link(x)),r.oes_vertex_array_object&&n(e.link(r.oes_vertex_array_object),".bindVertexArrayOES(null);");var d=n.def(s.attributes),h=n.def(0),f=e.cond(h,".buffer");f.then(l,".enableVertexAttribArray(i);",l,".bindBuffer(",pn,",",h,".buffer.buffer);",l,".vertexAttribPointer(i,",h,".size,",h,".type,",h,".normalized,",h,".stride,",h,".offset);").else(l,".disableVertexAttribArray(i);",l,".vertexAttrib4f(i,",h,".x,",h,".y,",h,".z,",h,".w);",h,".buffer=null;");var m=e.link(a.maxAttributes,{stable:!0});return n("for(var i=0;i<",m,";++i){",h,"=",d,"[i];",f,"}"),x&&n("for(var i=0;i<",m,";++i){",o,".vertexAttribDivisorANGLE(i,",d,"[i].divisor);","}"),n(e.shared.vao,".currentVAO=null;",e.shared.vao,".setVAO(",e.shared.vao,".targetVAO);"),Object.keys(T).forEach(function(r){var a=T[r],o=i.def(c,".",r),s=e.block();s("if(",o,"){",l,".enable(",a,")}else{",l,".disable(",a,")}",u,".",r,"=",o,";"),n(s),t("if(",o,"!==",u,".",r,"){",s,"}")}),Object.keys(S).forEach(function(r){var a,o,s=S[r],d=A[r],h=e.block();if(h(l,".",s,"("),H(d)){var f=d.length;a=e.global.def(c,".",r),o=e.global.def(u,".",r),h(p(f,function(e){return a+"["+e+"]"}),");",p(f,function(e){return o+"["+e+"]="+a+"["+e+"];"}).join("")),t("if(",p(f,function(e){return a+"["+e+"]!=="+o+"["+e+"]"}).join("||"),"){",h,"}")}else a=i.def(c,".",r),o=i.def(u,".",r),h(a,");",u,".",r,"=",a,";"),t("if(",a,"!==",o,"){",h,"}");n(h)}),e.compile()}(),compile:function(t,r,a,i,o){var s=N();s.stats=s.link(o),Object.keys(r.static).forEach(function(e){ee(s,r,e)}),dn.forEach(function(e){ee(s,t,e)});var l=P(t,r,a,i);return l.shader.program&&(l.shader.program.attributes.sort(function(e,t){return e.name<t.name?-1:1}),l.shader.program.uniforms.sort(function(e,t){return e.name<t.name?-1:1})),function(e,t){var n=e.proc("draw",1);V(e,n),B(e,n,t.context),F(e,n,t.framebuffer),j(e,n,t),U(e,n,t.state),X(e,n,t,!1,!0);var r=t.shader.progVar.append(e,n);if(n(e.shared.gl,".useProgram(",r,".program);"),t.shader.program)J(e,n,t,t.shader.program);else{n(e.shared.vao,".setVAO(null);");var a=e.global.def("{}"),i=n.def(r,".id"),o=n.def(a,"[",i,"]");n(e.cond(o).then(o,".call(this,a0);").else(o,"=",a,"[",i,"]=",e.link(function(e){return $(J,0,t,e,1)}),"(",r,");",o,".call(this,a0);"))}Object.keys(t.state).length>0&&n(e.shared.current,".dirty=true;"),e.shared.vao&&n(e.shared.vao,".setVAO(null);")}(s,l),function(e,t){var r=e.proc("scope",3);e.batchId="a2";var a=e.shared,i=a.current;if(B(e,r,t.context),t.framebuffer&&t.framebuffer.append(e,r),Wn(Object.keys(t.state)).forEach(function(n){var i=t.state[n],o=i.append(e,r);H(o)?o.forEach(function(t,a){D(t)?r.set(e.next[n],"["+a+"]",t):r.set(e.next[n],"["+a+"]",e.link(t,{stable:!0}))}):Pn(i)?r.set(a.next,"."+n,e.link(o,{stable:!0})):r.set(a.next,"."+n,o)}),X(e,r,t,!0,!0),[Zt,Qt,Jt,Kt,$t].forEach(function(n){var i=t.draw[n];if(i){var o=i.append(e,r);D(o)?r.set(a.draw,"."+n,o):r.set(a.draw,"."+n,e.link(o),{stable:!0})}}),Object.keys(t.uniforms).forEach(function(i){var o=t.uniforms[i].append(e,r);Array.isArray(o)&&(o="["+o.map(function(t){return D(t)?t:e.link(t,{stable:!0})})+"]"),r.set(a.uniforms,"["+e.link(n.id(i),{stable:!0})+"]",o)}),Object.keys(t.attributes).forEach(function(n){var a=t.attributes[n].append(e,r),i=e.scopeAttrib(n);Object.keys(new v).forEach(function(e){r.set(i,"."+e,a[e])})}),t.scopeVAO){var o=t.scopeVAO.append(e,r);D(o)?r.set(a.vao,".targetVAO",o):r.set(a.vao,".targetVAO",e.link(o,{stable:!0}))}function s(n){var i=t.shader[n];if(i){var o=i.append(e,r);D(o)?r.set(a.shader,"."+n,o):r.set(a.shader,"."+n,e.link(o,{stable:!0}))}}s(Gt),s(Yt),Object.keys(t.state).length>0&&(r(i,".dirty=true;"),r.exit(i,".dirty=true;")),r("a1(",e.shared.context,",a0,",e.batchId,");")}(s,l),function(e,t){var n=e.proc("batch",2);e.batchId="0",V(e,n);var r=!1,a=!0;Object.keys(t.context).forEach(function(e){r=r||t.context[e].propDep}),r||(B(e,n,t.context),a=!1);var i=t.framebuffer,o=!1;function s(e){return e.contextDep&&r||e.propDep}i?(i.propDep?r=o=!0:i.contextDep&&r&&(o=!0),o||F(e,n,i)):F(e,n,null),t.state.viewport&&t.state.viewport.propDep&&(r=!0),j(e,n,t),U(e,n,t.state,function(e){return!s(e)}),(!t.profile||!s(t.profile))&&X(e,n,t,!1,"a1"),t.contextDep=r,t.needsContext=a,t.needsFramebuffer=o;var l=t.shader.progVar;if(l.contextDep&&r||l.propDep)K(e,n,t,null);else{var c=l.append(e,n);if(n(e.shared.gl,".useProgram(",c,".program);"),t.shader.program)K(e,n,t,t.shader.program);else{n(e.shared.vao,".setVAO(null);");var u=e.global.def("{}"),d=n.def(c,".id"),p=n.def(u,"[",d,"]");n(e.cond(p).then(p,".call(this,a0,a1);").else(p,"=",u,"[",d,"]=",e.link(function(e){return $(K,0,t,e,2)}),"(",c,");",p,".call(this,a0,a1);"))}}Object.keys(t.state).length>0&&n(e.shared.current,".dirty=true;"),e.shared.vao&&n(e.shared.vao,".setVAO(null);")}(s,l),e(s.compile(),{destroy:function(){l.shader.program.destroy()}})}}}var Vn=function(e,t){if(!t.ext_disjoint_timer_query)return null;var n=[];function r(e){n.push(e)}var a=[];function i(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var o=[];function s(e){o.push(e)}var l=[];function c(e,t,n){var r=o.pop()||new i;r.startQueryIndex=e,r.endQueryIndex=t,r.sum=0,r.stats=n,l.push(r)}var u=[],d=[];return{beginQuery:function(e){var r=n.pop()||t.ext_disjoint_timer_query.createQueryEXT();t.ext_disjoint_timer_query.beginQueryEXT(35007,r),a.push(r),c(a.length-1,a.length,e)},endQuery:function(){t.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:c,update:function(){var e,n,i=a.length;if(0!==i){d.length=Math.max(d.length,i+1),u.length=Math.max(u.length,i+1),u[0]=0,d[0]=0;var o=0;for(e=0,n=0;n<a.length;++n){var c=a[n];t.ext_disjoint_timer_query.getQueryObjectEXT(c,34919)?(o+=t.ext_disjoint_timer_query.getQueryObjectEXT(c,34918),r(c)):a[e++]=c,u[n+1]=o,d[n+1]=e}for(a.length=e,e=0,n=0;n<l.length;++n){var p=l[n],h=p.startQueryIndex,f=p.endQueryIndex;p.sum+=u[f]-u[h];var m=d[h],g=d[f];g===m?(p.stats.gpuTime+=p.sum/1e6,s(p)):(p.startQueryIndex=m,p.endQueryIndex=g,l[e++]=p)}l.length=e}},getNumPendingQueries:function(){return a.length},clear:function(){n.push.apply(n,a);for(var e=0;e<n.length;e++)t.ext_disjoint_timer_query.deleteQueryEXT(n[e]);a.length=0,n.length=0},restore:function(){a.length=0,n.length=0}}},Hn="webglcontextlost",Xn="webglcontextrestored";function Gn(e,t){for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}return function(t){var n=d(t);if(!n)return null;var r=n.gl,a=r.getContextAttributes(),i=(r.isContextLost(),function(e,t){var n={};function r(t){var r,a=t.toLowerCase();try{r=n[a]=e.getExtension(a)}catch{}return!!r}for(var a=0;a<t.extensions.length;++a){var i=t.extensions[a];if(!r(i))return t.onDestroy(),t.onDone('"'+i+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return t.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach(function(e){if(n[e]&&!r(e))throw new Error("(regl): error restoring extension "+e)})}}}(r,n));if(!i)return null;var c=function(){var e={"":0},t=[""];return{id:function(n){var r=e[n];return r||(r=e[n]=t.length,t.push(n),r)},str:function(e){return t[e]}}}(),u={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},p=n.cachedCode||{},h=i.extensions,f=Vn(0,h),_=l(),A=r.drawingBufferWidth,O=r.drawingBufferHeight,w={tick:0,time:0,viewportWidth:A,viewportHeight:O,framebufferWidth:A,framebufferHeight:O,drawingBufferWidth:A,drawingBufferHeight:O,pixelRatio:n.pixelRatio},j={elements:null,primitive:4,count:-1,offset:0,instances:-1},U=function(e,t){var n=1;t.ext_texture_filter_anisotropic&&(n=e.getParameter(34047));var r=1,a=1;t.webgl_draw_buffers&&(r=e.getParameter(34852),a=e.getParameter(36063));var i=!!t.oes_texture_float;if(i){var o=e.createTexture();e.bindTexture(g,o),e.texImage2D(g,0,y,1,1,0,y,b,null);var s=e.createFramebuffer();if(e.bindFramebuffer(v,s),e.framebufferTexture2D(v,36064,g,o,0),e.bindTexture(g,null),36053!==e.checkFramebufferStatus(v))i=!1;else{e.viewport(0,0,1,1),e.clearColor(1,0,0,1),e.clear(16384);var l=m.allocType(b,4);e.readPixels(0,0,1,1,y,b,l),e.getError()?i=!1:(e.deleteFramebuffer(s),e.deleteTexture(o),i=1===l[0]),m.freeType(l)}}var c=!0;if(!(typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)))){var u=e.createTexture(),d=m.allocType(5121,36);e.activeTexture(33984),e.bindTexture(34067,u),e.texImage2D(34069,0,y,3,3,0,y,5121,d),m.freeType(d),e.bindTexture(34067,null),e.deleteTexture(u),c=!e.getError()}return{colorBits:[e.getParameter(3410),e.getParameter(3411),e.getParameter(3412),e.getParameter(3413)],depthBits:e.getParameter(3414),stencilBits:e.getParameter(3415),subpixelBits:e.getParameter(3408),extensions:Object.keys(t).filter(function(e){return!!t[e]}),maxAnisotropic:n,maxDrawbuffers:r,maxColorAttachments:a,pointSizeDims:e.getParameter(33901),lineWidthDims:e.getParameter(33902),maxViewportDims:e.getParameter(3386),maxCombinedTextureUnits:e.getParameter(35661),maxCubeMapSize:e.getParameter(34076),maxRenderbufferSize:e.getParameter(34024),maxTextureUnits:e.getParameter(34930),maxTextureSize:e.getParameter(3379),maxAttributes:e.getParameter(34921),maxVertexUniforms:e.getParameter(36347),maxVertexTextureUnits:e.getParameter(35660),maxVaryingVectors:e.getParameter(36348),maxFragmentUniforms:e.getParameter(36349),glsl:e.getParameter(35724),renderer:e.getParameter(7937),vendor:e.getParameter(7936),version:e.getParameter(7938),readFloat:i,npotTextureCube:c}}(r,h),V=function(e,t,n,r){var a=0,i={};function o(t){this.id=a++,this.buffer=e.createBuffer(),this.type=t,this.usage=35044,this.byteLength=0,this.dimension=1,this.dtype=E,this.persistentData=null,n.profile&&(this.stats={size:0})}o.prototype.bind=function(){e.bindBuffer(this.type,this.buffer)},o.prototype.destroy=function(){u(this)};var s=[];function l(t,n,r){t.byteLength=n.byteLength,e.bufferData(t.type,n,r)}function c(e,t,n,r,a,i){var o,s;if(e.usage=n,Array.isArray(t)){if(e.dtype=r||q,t.length>0)if(Array.isArray(t[0])){o=C(t);for(var c=1,u=1;u<o.length;++u)c*=o[u];e.dimension=c,l(e,s=S(t,o,e.dtype),n),i?e.persistentData=s:m.freeType(s)}else if("number"==typeof t[0]){e.dimension=a;var d=m.allocType(e.dtype,t.length);L(d,t),l(e,d,n),i?e.persistentData=d:m.freeType(d)}else M(t[0])&&(e.dimension=t[0].length,e.dtype=r||R(t[0])||q,l(e,s=S(t,[t.length,t[0].length],e.dtype),n),i?e.persistentData=s:m.freeType(s))}else if(M(t))e.dtype=r||R(t),e.dimension=a,l(e,t,n),i&&(e.persistentData=new Uint8Array(new Uint8Array(t.buffer)));else if(x(t)){o=t.shape;var p=t.stride,h=t.offset,f=0,g=0,y=0,b=0;1===o.length?(f=o[0],g=1,y=p[0],b=0):2===o.length&&(f=o[0],g=o[1],y=p[0],b=p[1]),e.dtype=r||R(t.data)||q,e.dimension=g;var v=m.allocType(e.dtype,f*g);I(v,t.data,f,g,y,b,h),l(e,v,n),i?e.persistentData=v:m.freeType(v)}else t instanceof ArrayBuffer&&(e.dtype=E,e.dimension=a,l(e,t,n),i&&(e.persistentData=new Uint8Array(new Uint8Array(t))))}function u(n){t.bufferCount--,r(n);var a=n.buffer;e.deleteBuffer(a),n.buffer=null,delete i[n.id]}return n.profile&&(t.getTotalBufferSize=function(){var e=0;return Object.keys(i).forEach(function(t){e+=i[t].stats.size}),e}),{create:function(r,a,s,l){t.bufferCount++;var d=new o(a);function p(t){var r=35044,a=null,i=0,o=0,s=1;return Array.isArray(t)||M(t)||x(t)||t instanceof ArrayBuffer?a=t:"number"==typeof t?i=0|t:t&&("data"in t&&(a=t.data),"usage"in t&&(r=T[t.usage]),"type"in t&&(o=k[t.type]),"dimension"in t&&(s=0|t.dimension),"length"in t&&(i=0|t.length)),d.bind(),a?c(d,a,r,o,s,l):(i&&e.bufferData(d.type,i,r),d.dtype=o||E,d.usage=r,d.dimension=s,d.byteLength=i),n.profile&&(d.stats.size=d.byteLength*D[d.dtype]),p}function h(t,n){e.bufferSubData(d.type,n,t)}return i[d.id]=d,s||p(r),p._reglType="buffer",p._buffer=d,p.subdata=function(e,t){var n,r=0|(t||0);if(d.bind(),M(e)||e instanceof ArrayBuffer)h(e,r);else if(Array.isArray(e)){if(e.length>0)if("number"==typeof e[0]){var a=m.allocType(d.dtype,e.length);L(a,e),h(a,r),m.freeType(a)}else if(Array.isArray(e[0])||M(e[0])){n=C(e);var i=S(e,n,d.dtype);h(i,r),m.freeType(i)}}else if(x(e)){n=e.shape;var o=e.stride,s=0,l=0,c=0,u=0;1===n.length?(s=n[0],l=1,c=o[0],u=0):2===n.length&&(s=n[0],l=n[1],c=o[0],u=o[1]);var f=Array.isArray(e.data)?d.dtype:R(e.data),g=m.allocType(f,s*l);I(g,e.data,s,l,c,u,e.offset),h(g,r),m.freeType(g)}return p},n.profile&&(p.stats=d.stats),p.destroy=function(){u(d)},p},createStream:function(e,t){var n=s.pop();return n||(n=new o(e)),n.bind(),c(n,t,35040,0,1,!1),n},destroyStream:function(e){s.push(e)},clear:function(){z(i).forEach(u),s.forEach(u)},getBuffer:function(e){return e&&e._buffer instanceof o?e._buffer:null},restore:function(){z(i).forEach(function(t){t.buffer=e.createBuffer(),e.bindBuffer(t.type,t.buffer),e.bufferData(t.type,t.persistentData||t.byteLength,t.usage)})},_initBuffer:c}}(r,u,n,function(e){return X.destroyBuffer(e)}),H=function(e,t,n,r){var a={},i=0,o={uint8:N,uint16:P};function s(e){this.id=i++,a[this.id]=this,this.buffer=e,this.primType=4,this.vertCount=0,this.type=0}t.oes_element_index_uint&&(o.uint32=B),s.prototype.bind=function(){this.buffer.bind()};var l=[];function c(r,a,i,o,s,l,c){var u;if(r.buffer.bind(),a){var d=c;!c&&(!M(a)||x(a)&&!M(a.data))&&(d=t.oes_element_index_uint?B:P),n._initBuffer(r.buffer,a,i,d,3)}else e.bufferData(F,l,i),r.buffer.dtype=u||N,r.buffer.usage=i,r.buffer.dimension=3,r.buffer.byteLength=l;if(u=c,!c){switch(r.buffer.dtype){case N:case 5120:u=N;break;case P:case 5122:u=P;break;case B:case 5124:u=B}r.buffer.dtype=u}r.type=u;var p=s;p<0&&(p=r.buffer.byteLength,u===P?p>>=1:u===B&&(p>>=2)),r.vertCount=p;var h=o;if(o<0){h=4;var f=r.buffer.dimension;1===f&&(h=0),2===f&&(h=1),3===f&&(h=4)}r.primType=h}function u(e){r.elementsCount--,delete a[e.id],e.buffer.destroy(),e.buffer=null}return{create:function(e,t){var a=n.create(null,F,!0),i=new s(a._buffer);function l(e){if(e)if("number"==typeof e)a(e),i.primType=4,i.vertCount=0|e,i.type=N;else{var t=null,n=35044,r=-1,s=-1,u=0,d=0;Array.isArray(e)||M(e)||x(e)?t=e:("data"in e&&(t=e.data),"usage"in e&&(n=T[e.usage]),"primitive"in e&&(r=W[e.primitive]),"count"in e&&(s=0|e.count),"type"in e&&(d=o[e.type]),"length"in e?u=0|e.length:(u=s,d===P||5122===d?u*=2:(d===B||5124===d)&&(u*=4))),c(i,t,n,r,s,u,d)}else a(),i.primType=4,i.vertCount=0,i.type=N;return l}return r.elementsCount++,l(e),l._reglType="elements",l._elements=i,l.subdata=function(e,t){return a.subdata(e,t),l},l.destroy=function(){u(i)},l},createStream:function(e){var t=l.pop();return t||(t=new s(n.create(null,F,!0,!1)._buffer)),c(t,e,35040,-1,-1,0,0),t},destroyStream:function(e){l.push(e)},getElements:function(e){return"function"==typeof e&&e._elements instanceof s?e._elements:null},clear:function(){z(a).forEach(u)}}}(r,h,V,u),X=function(e,t,n,r,a,i,o){for(var s=n.maxAttributes,l=new Array(s),c=0;c<s;++c)l[c]=new Ke;var u=0,d={},p={Record:Ke,scope:{},state:l,currentVAO:null,targetVAO:null,restore:h()?function(){h()&&z(d).forEach(function(e){e.refresh()})}:function(){},createVAO:function(e){var t=new m;function n(e){var r;if(Array.isArray(e))r=e,t.elements&&t.ownsElements&&t.elements.destroy(),t.elements=null,t.ownsElements=!1,t.offset=0,t.count=0,t.instances=-1,t.primitive=4;else{if(e.elements){var o=e.elements;t.ownsElements?"function"==typeof o&&"elements"===o._reglType?(t.elements.destroy(),t.ownsElements=!1):(t.elements(o),t.ownsElements=!1):i.getElements(e.elements)?(t.elements=e.elements,t.ownsElements=!1):(t.elements=i.create(e.elements),t.ownsElements=!0)}else t.elements=null,t.ownsElements=!1;r=e.attributes,t.offset=0,t.count=-1,t.instances=-1,t.primitive=4,t.elements&&(t.count=t.elements._elements.vertCount,t.primitive=t.elements._elements.primType),"offset"in e&&(t.offset=0|e.offset),"count"in e&&(t.count=0|e.count),"instances"in e&&(t.instances=0|e.instances),"primitive"in e&&(t.primitive=W[e.primitive])}var s={},l=t.attributes;l.length=r.length;for(var c=0;c<r.length;++c){var u,d=r[c],p=l[c]=new Ke,h=d.data||d;Array.isArray(h)||M(h)||x(h)?(t.buffers[c]&&(u=t.buffers[c],M(h)&&u._buffer.byteLength>=h.byteLength?u.subdata(h):(u.destroy(),t.buffers[c]=null)),t.buffers[c]||(u=t.buffers[c]=a.create(d,34962,!1,!0)),p.buffer=a.getBuffer(u),p.size=0|p.buffer.dimension,p.normalized=!1,p.type=p.buffer.dtype,p.offset=0,p.stride=0,p.divisor=0,p.state=1,s[c]=1):a.getBuffer(d)?(p.buffer=a.getBuffer(d),p.size=0|p.buffer.dimension,p.normalized=!1,p.type=p.buffer.dtype,p.offset=0,p.stride=0,p.divisor=0,p.state=1):a.getBuffer(d.buffer)?(p.buffer=a.getBuffer(d.buffer),p.size=0|(+d.size||p.buffer.dimension),p.normalized=!!d.normalized||!1,p.type="type"in d?k[d.type]:p.buffer.dtype,p.offset=0|(d.offset||0),p.stride=0|(d.stride||0),p.divisor=0|(d.divisor||0),p.state=1):"x"in d&&(p.x=+d.x||0,p.y=+d.y||0,p.z=+d.z||0,p.w=+d.w||0,p.state=2)}for(var f=0;f<t.buffers.length;++f)!s[f]&&t.buffers[f]&&(t.buffers[f].destroy(),t.buffers[f]=null);return t.refresh(),n}return r.vaoCount+=1,n.destroy=function(){for(var e=0;e<t.buffers.length;++e)t.buffers[e]&&t.buffers[e].destroy();t.buffers.length=0,t.ownsElements&&(t.elements.destroy(),t.elements=null,t.ownsElements=!1),t.destroy()},n._vao=t,n._reglType="vao",n(e)},getVAO:function(e){return"function"==typeof e&&e._vao?e._vao:null},destroyBuffer:function(t){for(var n=0;n<l.length;++n){var r=l[n];r.buffer===t&&(e.disableVertexAttribArray(n),r.buffer=null)}},setVAO:h()?function(e){if(e!==p.currentVAO){var t=h();e?t.bindVertexArrayOES(e.vao):t.bindVertexArrayOES(null),p.currentVAO=e}}:function(t){if(t!==p.currentVAO){if(t)t.bindAttrs();else{for(var n=f(),r=0;r<l.length;++r){var a=l[r];a.buffer?(e.enableVertexAttribArray(r),a.buffer.bind(),e.vertexAttribPointer(r,a.size,a.type,a.normalized,a.stride,a.offfset),n&&a.divisor&&n.vertexAttribDivisorANGLE(r,a.divisor)):(e.disableVertexAttribArray(r),e.vertexAttrib4f(r,a.x,a.y,a.z,a.w))}o.elements?e.bindBuffer(Qe,o.elements.buffer.buffer):e.bindBuffer(Qe,null)}p.currentVAO=t}},clear:h()?function(){z(d).forEach(function(e){e.destroy()})}:function(){}};function h(){return t.oes_vertex_array_object}function f(){return t.angle_instanced_arrays}function m(){this.id=++u,this.attributes=[],this.elements=null,this.ownsElements=!1,this.count=0,this.offset=0,this.instances=-1,this.primitive=4;var e=h();this.vao=e?e.createVertexArrayOES():null,d[this.id]=this,this.buffers=[]}return m.prototype.bindAttrs=function(){for(var t=f(),n=this.attributes,r=0;r<n.length;++r){var a=n[r];a.buffer?(e.enableVertexAttribArray(r),e.bindBuffer(34962,a.buffer.buffer),e.vertexAttribPointer(r,a.size,a.type,a.normalized,a.stride,a.offset),t&&a.divisor&&t.vertexAttribDivisorANGLE(r,a.divisor)):(e.disableVertexAttribArray(r),e.vertexAttrib4f(r,a.x,a.y,a.z,a.w))}for(var o=n.length;o<s;++o)e.disableVertexAttribArray(o);var l=i.getElements(this.elements);l?e.bindBuffer(Qe,l.buffer.buffer):e.bindBuffer(Qe,null)},m.prototype.refresh=function(){var e=h();e&&(e.bindVertexArrayOES(this.vao),this.bindAttrs(),p.currentVAO=null,e.bindVertexArrayOES(null))},m.prototype.destroy=function(){if(this.vao){var e=h();this===p.currentVAO&&(p.currentVAO=null,e.bindVertexArrayOES(null)),e.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&&(this.elements.destroy(),this.elements=null,this.ownsElements=!1),d[this.id]&&(delete d[this.id],r.vaoCount-=1)},p}(r,h,U,u,V,H,j),G=function(t,n,r,a){var i={},o={};function s(e,t,n,r){this.name=e,this.id=t,this.location=n,this.info=r}function l(e,t){for(var n=0;n<e.length;++n)if(e[n].id===t.id)return void(e[n].location=t.location);e.push(t)}function c(e,r,a){var s=35632===e?i:o,l=s[r];if(!l){var c=n.str(r);l=t.createShader(e),t.shaderSource(l,c),t.compileShader(l),s[r]=l}return l}var u={},d=[],p=0;function h(e,t){this.id=p++,this.fragId=e,this.vertId=t,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,a.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function f(e,r,i){var o,u,d=c(35632,e.fragId),p=c(35633,e.vertId),h=e.program=t.createProgram();if(t.attachShader(h,d),t.attachShader(h,p),i)for(o=0;o<i.length;++o){var f=i[o];t.bindAttribLocation(h,f[0],f[1])}t.linkProgram(h);var m=t.getProgramParameter(h,35718);a.profile&&(e.stats.uniformsCount=m);var g=e.uniforms;for(o=0;o<m;++o)if(u=t.getActiveUniform(h,o))if(u.size>1)for(var y=0;y<u.size;++y){var b=u.name.replace("[0]","["+y+"]");l(g,new s(b,n.id(b),t.getUniformLocation(h,b),u))}else l(g,new s(u.name,n.id(u.name),t.getUniformLocation(h,u.name),u));var v=t.getProgramParameter(h,35721);a.profile&&(e.stats.attributesCount=v);var M=e.attributes;for(o=0;o<v;++o)(u=t.getActiveAttrib(h,o))&&l(M,new s(u.name,n.id(u.name),t.getAttribLocation(h,u.name),u))}return a.profile&&(r.getMaxUniformsCount=function(){var e=0;return d.forEach(function(t){t.stats.uniformsCount>e&&(e=t.stats.uniformsCount)}),e},r.getMaxAttributesCount=function(){var e=0;return d.forEach(function(t){t.stats.attributesCount>e&&(e=t.stats.attributesCount)}),e}),{clear:function(){var e=t.deleteShader.bind(t);z(i).forEach(e),i={},z(o).forEach(e),o={},d.forEach(function(e){t.deleteProgram(e.program)}),d.length=0,u={},r.shaderCount=0},program:function(n,a,s,l){var c=u[a];c||(c=u[a]={});var p=c[n];if(p&&(p.refCount++,!l))return p;var m=new h(a,n);return r.shaderCount++,f(m,0,l),p||(c[n]=m),d.push(m),e(m,{destroy:function(){if(m.refCount--,m.refCount<=0){t.deleteProgram(m.program);var e=d.indexOf(m);d.splice(e,1),r.shaderCount--}c[m.vertId].refCount<=0&&(t.deleteShader(o[m.vertId]),delete o[m.vertId],delete u[m.fragId][m.vertId]),Object.keys(u[m.fragId]).length||(t.deleteShader(i[m.fragId]),delete i[m.fragId],delete u[m.fragId])}})},restore:function(){i={},o={};for(var e=0;e<d.length;++e)f(d[e],0,d[e].attributes.map(function(e){return[e.location,e.name]}))},shader:c,frag:-1,vert:-1}}(r,c,u,n),Y=je(r,h,U,function(){J.procs.poll()},w,u,n),Z=function(e,t,n,r,a){var i={rgba4:Ve,rgb565:36194,"rgb5 a1":32855,depth:33189,stencil:36168,"depth stencil":34041};t.ext_srgb&&(i.srgba=35907),t.ext_color_buffer_half_float&&(i.rgba16f=34842,i.rgb16f=34843),t.webgl_color_buffer_float&&(i.rgba32f=34836);var o=[];Object.keys(i).forEach(function(e){var t=i[e];o[t]=e});var s=0,l={};function c(e){this.id=s++,this.refCount=1,this.renderbuffer=e,this.format=Ve,this.width=0,this.height=0,a.profile&&(this.stats={size:0})}function u(t){var n=t.renderbuffer;e.bindRenderbuffer(Ue,null),e.deleteRenderbuffer(n),t.renderbuffer=null,t.refCount=0,delete l[t.id],r.renderbufferCount--}return c.prototype.decRef=function(){--this.refCount<=0&&u(this)},a.profile&&(r.getTotalRenderbufferSize=function(){var e=0;return Object.keys(l).forEach(function(t){e+=l[t].stats.size}),e}),{create:function(t,n){var s=new c(e.createRenderbuffer());function u(t,n){var r=0,l=0,c=Ve;if("object"==typeof t&&t){var d=t;if("shape"in d){var p=d.shape;r=0|p[0],l=0|p[1]}else"radius"in d&&(r=l=0|d.radius),"width"in d&&(r=0|d.width),"height"in d&&(l=0|d.height);"format"in d&&(c=i[d.format])}else"number"==typeof t?(r=0|t,l="number"==typeof n?0|n:r):t||(r=l=1);if(r!==s.width||l!==s.height||c!==s.format)return u.width=s.width=r,u.height=s.height=l,s.format=c,e.bindRenderbuffer(Ue,s.renderbuffer),e.renderbufferStorage(Ue,c,r,l),a.profile&&(s.stats.size=Xe(s.format,s.width,s.height)),u.format=o[s.format],u}return l[s.id]=s,r.renderbufferCount++,u(t,n),u.resize=function(t,n){var r=0|t,i=0|n||r;return r===s.width&&i===s.height||(u.width=s.width=r,u.height=s.height=i,e.bindRenderbuffer(Ue,s.renderbuffer),e.renderbufferStorage(Ue,s.format,r,i),a.profile&&(s.stats.size=Xe(s.format,s.width,s.height))),u},u._reglType="renderbuffer",u._renderbuffer=s,a.profile&&(u.stats=s.stats),u.destroy=function(){s.decRef()},u},clear:function(){z(l).forEach(u)},restore:function(){z(l).forEach(function(t){t.renderbuffer=e.createRenderbuffer(),e.bindRenderbuffer(Ue,t.renderbuffer),e.renderbufferStorage(Ue,t.format,t.width,t.height)}),e.bindRenderbuffer(Ue,null)}}}(r,h,0,u,n),$=function(t,n,r,a,i,o){var s={cur:null,next:null,dirty:!1,setFBO:null},l=["rgba"],c=["rgba4","rgb565","rgb5 a1"];n.ext_srgb&&c.push("srgba"),n.ext_color_buffer_half_float&&c.push("rgba16f","rgb16f"),n.webgl_color_buffer_float&&c.push("rgba32f");var u=["uint8"];function d(e,t,n){this.target=e,this.texture=t,this.renderbuffer=n;var r=0,a=0;t?(r=t.width,a=t.height):n&&(r=n.width,a=n.height),this.width=r,this.height=a}function p(e){e&&(e.texture&&e.texture._texture.decRef(),e.renderbuffer&&e.renderbuffer._renderbuffer.decRef())}function h(e,t,n){if(e)if(e.texture){var r=e.texture._texture;Math.max(1,r.width),Math.max(1,r.height),r.refCount+=1}else e.renderbuffer._renderbuffer.refCount+=1}function f(e,n){n&&(n.texture?t.framebufferTexture2D(Ge,e,n.target,n.texture._texture.texture,0):t.framebufferRenderbuffer(Ge,e,Ye,n.renderbuffer._renderbuffer.renderbuffer))}function m(e){var t=Ze,n=null,r=null,a=e;"object"==typeof e&&(a=e.data,"target"in e&&(t=0|e.target));var i=a._reglType;return"texture2d"===i||"textureCube"===i?n=a:"renderbuffer"===i&&(r=a,t=Ye),new d(t,n,r)}function g(e,t,n,r,o){if(n){var s=a.create2D({width:e,height:t,format:r,type:o});return s._texture.refCount=0,new d(Ze,s,null)}var l=i.create({width:e,height:t,format:r});return l._renderbuffer.refCount=0,new d(Ye,null,l)}function y(e){return e&&(e.texture||e.renderbuffer)}function b(e,t,n){e&&(e.texture?e.texture.resize(t,n):e.renderbuffer&&e.renderbuffer.resize(t,n),e.width=t,e.height=n)}n.oes_texture_half_float&&u.push("half float","float16"),n.oes_texture_float&&u.push("float","float32");var v=0,M={};function x(){this.id=v++,M[this.id]=this,this.framebuffer=t.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function _(e){e.colorAttachments.forEach(p),p(e.depthAttachment),p(e.stencilAttachment),p(e.depthStencilAttachment)}function A(e){var n=e.framebuffer;t.deleteFramebuffer(n),e.framebuffer=null,o.framebufferCount--,delete M[e.id]}function O(e){var n;t.bindFramebuffer(Ge,e.framebuffer);var a=e.colorAttachments;for(n=0;n<a.length;++n)f(36064+n,a[n]);for(n=a.length;n<r.maxColorAttachments;++n)t.framebufferTexture2D(Ge,36064+n,Ze,null,0);t.framebufferTexture2D(Ge,33306,Ze,null,0),t.framebufferTexture2D(Ge,36096,Ze,null,0),t.framebufferTexture2D(Ge,36128,Ze,null,0),f(36096,e.depthAttachment),f(36128,e.stencilAttachment),f(33306,e.depthStencilAttachment),t.checkFramebufferStatus(Ge),t.isContextLost(),t.bindFramebuffer(Ge,s.next?s.next.framebuffer:null),s.cur=s.next,t.getError()}function w(t,n){var r=new x;function a(e,t){var n,i=0,o=0,s=!0,u=!0,d=null,p=!0,f="rgba",b="uint8",v=1,M=null,x=null,z=null,A=!1;if("number"==typeof e)i=0|e,o=0|t||i;else if(e){var w=e;if("shape"in w){var k=w.shape;i=k[0],o=k[1]}else"radius"in w&&(i=o=w.radius),"width"in w&&(i=w.width),"height"in w&&(o=w.height);("color"in w||"colors"in w)&&(d=w.color||w.colors,Array.isArray(d)),d||("colorCount"in w&&(v=0|w.colorCount),"colorTexture"in w&&(p=!!w.colorTexture,f="rgba4"),"colorType"in w&&(b=w.colorType,p||("half float"===b||"float16"===b?f="rgba16f":("float"===b||"float32"===b)&&(f="rgba32f"))),"colorFormat"in w&&(f=w.colorFormat,l.indexOf(f)>=0?p=!0:c.indexOf(f)>=0&&(p=!1))),("depthTexture"in w||"depthStencilTexture"in w)&&(A=!(!w.depthTexture&&!w.depthStencilTexture)),"depth"in w&&("boolean"==typeof w.depth?s=w.depth:(M=w.depth,u=!1)),"stencil"in w&&("boolean"==typeof w.stencil?u=w.stencil:(x=w.stencil,s=!1)),"depthStencil"in w&&("boolean"==typeof w.depthStencil?s=u=w.depthStencil:(z=w.depthStencil,s=!1,u=!1))}else i=o=1;var T=null,S=null,C=null,E=null;if(Array.isArray(d))T=d.map(m);else if(d)T=[m(d)];else for(T=new Array(v),n=0;n<v;++n)T[n]=g(i,o,p,f,b);i=i||T[0].width,o=o||T[0].height,M?S=m(M):s&&!u&&(S=g(i,o,A,"depth","uint32")),x?C=m(x):u&&!s&&(C=g(i,o,!1,"stencil","uint8")),z?E=m(z):!M&&!x&&u&&s&&(E=g(i,o,A,"depth stencil","depth stencil"));var q=null;for(n=0;n<T.length;++n)if(h(T[n]),T[n]&&T[n].texture){var D=$e[T[n].texture._texture.format]*Je[T[n].texture._texture.type];null===q&&(q=D)}return h(S),h(C),h(E),_(r),r.width=i,r.height=o,r.colorAttachments=T,r.depthAttachment=S,r.stencilAttachment=C,r.depthStencilAttachment=E,a.color=T.map(y),a.depth=y(S),a.stencil=y(C),a.depthStencil=y(E),a.width=r.width,a.height=r.height,O(r),a}return o.framebufferCount++,a(t,n),e(a,{resize:function(e,t){var n=Math.max(0|e,1),i=Math.max(0|t||n,1);if(n===r.width&&i===r.height)return a;for(var o=r.colorAttachments,s=0;s<o.length;++s)b(o[s],n,i);return b(r.depthAttachment,n,i),b(r.stencilAttachment,n,i),b(r.depthStencilAttachment,n,i),r.width=a.width=n,r.height=a.height=i,O(r),a},_reglType:"framebuffer",_framebuffer:r,destroy:function(){A(r),_(r)},use:function(e){s.setFBO({framebuffer:a},e)}})}return e(s,{getFramebuffer:function(e){if("function"==typeof e&&"framebuffer"===e._reglType){var t=e._framebuffer;if(t instanceof x)return t}return null},create:w,createCube:function(t){var n=Array(6);function r(t){var i,o,s={color:null},l=0,c=null,u="rgba",d="uint8",p=1;if("number"==typeof t)l=0|t;else if(t){var h=t;"shape"in h?l=h.shape[0]:("radius"in h&&(l=0|h.radius),"width"in h?l=0|h.width:"height"in h&&(l=0|h.height)),("color"in h||"colors"in h)&&(c=h.color||h.colors,Array.isArray(c)),c||("colorCount"in h&&(p=0|h.colorCount),"colorType"in h&&(d=h.colorType),"colorFormat"in h&&(u=h.colorFormat)),"depth"in h&&(s.depth=h.depth),"stencil"in h&&(s.stencil=h.stencil),"depthStencil"in h&&(s.depthStencil=h.depthStencil)}else l=1;if(c)if(Array.isArray(c))for(o=[],i=0;i<c.length;++i)o[i]=c[i];else o=[c];else{o=Array(p);var f={radius:l,format:u,type:d};for(i=0;i<p;++i)o[i]=a.createCube(f)}for(s.color=Array(o.length),i=0;i<o.length;++i){var m=o[i];l=l||m.width,s.color[i]={target:34069,data:o[i]}}for(i=0;i<6;++i){for(var g=0;g<o.length;++g)s.color[g].target=34069+i;i>0&&(s.depth=n[0].depth,s.stencil=n[0].stencil,s.depthStencil=n[0].depthStencil),n[i]?n[i](s):n[i]=w(s)}return e(r,{width:l,height:l,color:o})}return r(t),e(r,{faces:n,resize:function(e){var t,a=0|e;if(a===r.width)return r;var i=r.color;for(t=0;t<i.length;++t)i[t].resize(a);for(t=0;t<6;++t)n[t].resize(a);return r.width=r.height=a,r},_reglType:"framebufferCube",destroy:function(){n.forEach(function(e){e.destroy()})}})},clear:function(){z(M).forEach(A)},restore:function(){s.cur=null,s.next=null,s.dirty=!0,z(M).forEach(function(e){e.framebuffer=t.createFramebuffer(),O(e)})}})}(r,h,U,Y,Z,u),J=Un(r,c,h,U,V,H,0,$,{},X,G,j,w,f,p,n),Q=et(r,$,J.procs.poll,w),K=J.next,ee=r.canvas,te=[],ne=[],re=[],ae=[n.onDestroy],ie=null;function oe(){if(0===te.length)return f&&f.update(),void(ie=null);ie=s.next(oe),ge();for(var e=te.length-1;e>=0;--e){var t=te[e];t&&t(w,null,0)}r.flush(),f&&f.update()}function se(){!ie&&te.length>0&&(ie=s.next(oe))}function le(){ie&&(s.cancel(oe),ie=null)}function ce(e){e.preventDefault(),le(),ne.forEach(function(e){e()})}function ue(e){r.getError(),i.restore(),G.restore(),V.restore(),Y.restore(),Z.restore(),$.restore(),X.restore(),f&&f.restore(),J.procs.refresh(),se(),re.forEach(function(e){e()})}function de(t){function n(e,t){var n={},r={};return Object.keys(e).forEach(function(a){var i=e[a];if(o.isDynamic(i))r[a]=o.unbox(i,a);else{if(t&&Array.isArray(i))for(var s=0;s<i.length;++s)if(o.isDynamic(i[s]))return void(r[a]=o.unbox(i,a));n[a]=i}}),{dynamic:r,static:n}}var r=n(t.context||{},!0),a=n(t.uniforms||{},!0),i=n(t.attributes||{},!1),s=n(function(t){var n=e({},t);function r(e){if(e in n){var t=n[e];delete n[e],Object.keys(t).forEach(function(r){n[e+"."+r]=t[r]})}}return delete n.uniforms,delete n.attributes,delete n.context,delete n.vao,"stencil"in n&&n.stencil.op&&(n.stencil.opBack=n.stencil.opFront=n.stencil.op,delete n.stencil.op),r("blend"),r("depth"),r("cull"),r("stencil"),r("polygonOffset"),r("scissor"),r("sample"),"vao"in t&&(n.vao=t.vao),n}(t),!1),l={gpuTime:0,cpuTime:0,count:0},c=J.compile(s,i,a,r,l),u=c.draw,d=c.batch,p=c.scope,h=[];return e(function(e,t){var n;if("function"==typeof e)return p.call(this,null,e,0);if("function"==typeof t)if("number"==typeof e)for(n=0;n<e;++n)p.call(this,null,t,n);else{if(!Array.isArray(e))return p.call(this,e,t,0);for(n=0;n<e.length;++n)p.call(this,e[n],t,n)}else if("number"==typeof e){if(e>0)return d.call(this,function(e){for(;h.length<e;)h.push(null);return h}(0|e),0|e)}else{if(!Array.isArray(e))return u.call(this,e);if(e.length)return d.call(this,e,e.length)}},{stats:l,destroy:function(){c.destroy()}})}ee&&(ee.addEventListener(Hn,ce,!1),ee.addEventListener(Xn,ue,!1));var pe=$.setFBO=de({framebuffer:o.define.call(null,1,"framebuffer")});function he(e,t){var n=0;J.procs.poll();var a=t.color;a&&(r.clearColor(+a[0]||0,+a[1]||0,+a[2]||0,+a[3]||0),n|=16384),"depth"in t&&(r.clearDepth(+t.depth),n|=256),"stencil"in t&&(r.clearStencil(0|t.stencil),n|=1024),r.clear(n)}function fe(e){return te.push(e),se(),{cancel:function(){var t=Gn(te,e);te[t]=function e(){var t=Gn(te,e);te[t]=te[te.length-1],te.length-=1,te.length<=0&&le()}}}}function me(){var e=K.viewport,t=K.scissor_box;e[0]=e[1]=t[0]=t[1]=0,w.viewportWidth=w.framebufferWidth=w.drawingBufferWidth=e[2]=t[2]=r.drawingBufferWidth,w.viewportHeight=w.framebufferHeight=w.drawingBufferHeight=e[3]=t[3]=r.drawingBufferHeight}function ge(){w.tick+=1,w.time=be(),me(),J.procs.poll()}function ye(){Y.refresh(),me(),J.procs.refresh(),f&&f.update()}function be(){return(l()-_)/1e3}ye();var ve=e(de,{clear:function(t){if("framebuffer"in t)if(t.framebuffer&&"framebufferCube"===t.framebuffer_reglType)for(var n=0;n<6;++n)pe(e({framebuffer:t.framebuffer.faces[n]},t),he);else pe(t,he);else he(0,t)},prop:o.define.bind(null,1),context:o.define.bind(null,2),this:o.define.bind(null,3),draw:de({}),buffer:function(e){return V.create(e,34962,!1,!1)},elements:function(e){return H.create(e,!1)},texture:Y.create2D,cube:Y.createCube,renderbuffer:Z.create,framebuffer:$.create,framebufferCube:$.createCube,vao:X.createVAO,attributes:a,frame:fe,on:function(e,t){var n;switch(e){case"frame":return fe(t);case"lost":n=ne;break;case"restore":n=re;break;case"destroy":n=ae}return n.push(t),{cancel:function(){for(var e=0;e<n.length;++e)if(n[e]===t)return n[e]=n[n.length-1],void n.pop()}}},limits:U,hasExtension:function(e){return U.extensions.indexOf(e.toLowerCase())>=0},read:Q,destroy:function(){te.length=0,le(),ee&&(ee.removeEventListener(Hn,ce),ee.removeEventListener(Xn,ue)),G.clear(),$.clear(),Z.clear(),X.clear(),Y.clear(),H.clear(),V.clear(),f&&f.clear(),ae.forEach(function(e){e()})},_gl:r,_refresh:ye,poll:function(){ge(),f&&f.update()},now:be,stats:u,getCachedCode:function(){return p},preloadCachedCode:function(e){Object.entries(e).forEach(function(e){p[e[0]]=e[1]})}});return n.onDone(null,ve),ve}},"object"==typeof e&&typeof t<"u"?t.exports=r():"function"==typeof define&&define.amd?define(r):n.createREGL=r()}),LZ=Ee((e,t)=>{var n=Jfe(),r=T2t();t.exports=function(e,t,a){var i=e._fullLayout,o=!0;return i._glcanvas.each(function(n){if(n.regl)n.regl.preloadCachedCode(a);else if(!n.pick||i._has("parcoords")){try{n.regl=r({canvas:this,attributes:{antialias:!n.pick,preserveDrawingBuffer:!0},pixelRatio:e._context.plotGlPixelRatio||global.devicePixelRatio,extensions:t||[],cachedCode:a||{}})}catch{o=!1}n.regl||(o=!1),o&&this.addEventListener("webglcontextlost",function(t){e&&e.emit&&e.emit("plotly_webglcontextlost",{event:t,layer:n.key})},!1)}}),o||n({container:i._glcontainer.node()}),o}}),I2e=Ee((e,t)=>{var n=Rpe(),r=f2e(),a=vpt(),i=O2t(),o=Fr(),s=Qy().selectMode,l=LZ(),c=Hc(),u=L1e(),d=Epe().styleTextSelection,p={};function h(e,t,n,r){var a=e._size,i=e.width*r,o=e.height*r,s=a.l*r,l=a.b*r,c=a.r*r,u=a.t*r,d=a.w*r,p=a.h*r;return[s+t.domain[0]*d,l+n.domain[0]*p,i-c-(1-t.domain[1])*d,o-u-(1-n.domain[1])*p]}(t.exports=function(e,t,f){if(f.length){var m,g,y=e._fullLayout,b=t._scene,v=t.xaxis,M=t.yaxis;if(b){if(!l(e,["ANGLE_instanced_arrays","OES_element_index_uint"],p))return void b.init();var x=b.count,z=y._glcanvas.data()[0].regl;if(u(e,t,f),b.dirty){if((b.line2d||b.error2d)&&!(b.scatter2d||b.fill2d||b.glText)&&z.clear({color:!0,depth:!0}),!0===b.error2d&&(b.error2d=a(z)),!0===b.line2d&&(b.line2d=r(z)),!0===b.scatter2d&&(b.scatter2d=n(z)),!0===b.fill2d&&(b.fill2d=r(z)),!0===b.glText)for(b.glText=new Array(x),m=0;m<x;m++)b.glText[m]=new i(z);if(b.glText){if(x>b.glText.length){var _=x-b.glText.length;for(m=0;m<_;m++)b.glText.push(new i(z))}else if(x<b.glText.length){var A=b.glText.length-x;b.glText.splice(x,A).forEach(function(e){e.destroy()})}for(m=0;m<x;m++)b.glText[m].update(b.textOptions[m])}if(b.line2d&&(b.line2d.update(b.lineOptions),b.lineOptions=b.lineOptions.map(function(e){if(e&&e.positions){for(var t=e.positions,n=0;n<t.length&&(isNaN(t[n])||isNaN(t[n+1]));)n+=2;for(var r=t.length-2;r>n&&(isNaN(t[r])||isNaN(t[r+1]));)r-=2;e.positions=t.slice(n,r+2)}return e}),b.line2d.update(b.lineOptions)),b.error2d){var O=(b.errorXOptions||[]).concat(b.errorYOptions||[]);b.error2d.update(O)}b.scatter2d&&b.scatter2d.update(b.markerOptions),b.fillOrder=o.repeat(null,x),b.fill2d&&(b.fillOptions=b.fillOptions.map(function(e,t){var n=f[t];if(e&&n&&n[0]&&n[0].trace){var r,a,i=n[0],o=i.trace,s=i.t,l=b.lineOptions[t],c=[];o._ownfill&&c.push(t),o._nexttrace&&c.push(t+1),c.length&&(b.fillOrder[t]=c);var u,d,p=[],h=l&&l.positions||s.positions;if("tozeroy"===o.fill){for(u=0;u<h.length&&isNaN(h[u+1]);)u+=2;for(d=h.length-2;d>u&&isNaN(h[d+1]);)d-=2;0!==h[u+1]&&(p=[h[u],0]),p=p.concat(h.slice(u,d+2)),0!==h[d+1]&&(p=p.concat([h[d],0]))}else if("tozerox"===o.fill){for(u=0;u<h.length&&isNaN(h[u]);)u+=2;for(d=h.length-2;d>u&&isNaN(h[d]);)d-=2;0!==h[u]&&(p=[0,h[u+1]]),p=p.concat(h.slice(u,d+2)),0!==h[d]&&(p=p.concat([0,h[d+1]]))}else if("toself"===o.fill||"tonext"===o.fill){for(p=[],r=0,e.splitNull=!0,a=0;a<h.length;a+=2)(isNaN(h[a])||isNaN(h[a+1]))&&((p=p.concat(h.slice(r,a))).push(h[r],h[r+1]),p.push(null,null),r=a+2);p=p.concat(h.slice(r)),r&&p.push(h[r],h[r+1])}else{var m=o._nexttrace;if(m){var g=b.lineOptions[t+1];if(g){var y=g.positions;if("tonexty"===o.fill){for(p=h.slice(),t=Math.floor(y.length/2);t--;){var v=y[2*t],M=y[2*t+1];isNaN(v)||isNaN(M)||p.push(v,M)}e.fill=m.fillcolor}}}}if(o._prevtrace&&"tonext"===o._prevtrace.fill){var x=b.lineOptions[t-1].positions,z=p.length/2,_=[r=z];for(a=0;a<x.length;a+=2)(isNaN(x[a])||isNaN(x[a+1]))&&(_.push(a/2+z+1),r=a+2);p=p.concat(x),e.hole=_}return e.fillmode=o.fill,e.opacity=o.opacity,e.positions=p,e}}),b.fill2d.update(b.fillOptions))}var w=y.dragmode,k=s(w),T=y.clickmode.indexOf("select")>-1;for(let[e]of f)if(e){var S=e.trace,C=e.t,E=C.index,q=S._length,D=C.x,R=C.y;if(S.selectedpoints||k||T){if(k||(k=!0),S.selectedpoints){var L=b.selectBatch[E]=o.selIndices2selPoints(S),I={};for(g=0;g<L.length;g++)I[L[g]]=1;var W=[];for(g=0;g<q;g++)I[g]||W.push(g);b.unselectBatch[E]=W}var N=C.xpx=new Array(q),P=C.ypx=new Array(q);for(g=0;g<q;g++)N[g]=v.c2p(D[g]),P[g]=M.c2p(R[g])}else C.xpx=C.ypx=null}if(k){if(b.select2d||(b.select2d=n(y._glcanvas.data()[1].regl)),b.scatter2d){var B=new Array(x);for(m=0;m<x;m++)B[m]=b.selectBatch[m].length||b.unselectBatch[m].length?b.markerUnselectedOptions[m]:{};b.scatter2d.update(B)}b.select2d&&(b.select2d.update(b.markerOptions),b.select2d.update(b.markerSelectedOptions)),b.glText&&f.forEach(function(e){var t=((e||[])[0]||{}).trace||{};c.hasText(t)&&d(e)})}else b.scatter2d&&b.scatter2d.update(b.markerOptions);var F={viewport:h(y,v,M,e._context.plotGlPixelRatio),range:[(v._rl||v.range)[0],(M._rl||M.range)[0],(v._rl||v.range)[1],(M._rl||M.range)[1]]},j=o.repeat(F,b.count);b.fill2d&&b.fill2d.update(j),b.line2d&&b.line2d.update(j),b.error2d&&b.error2d.update(j.concat(j)),b.scatter2d&&b.scatter2d.update(j),b.select2d&&b.select2d.update(j),b.glText&&b.glText.forEach(function(e){e.update(F)})}}}).reglPrecompiled=p}),P2t=Ee((e,t)=>{var n=tdt();n.plot=I2e(),t.exports=n}),N2t=Ee((e,t)=>{t.exports=P2t()}),N2e=Ee((e,t)=>{var n=Id(),r=Oc(),a=Pd().axisHoverFormat,{hovertemplateAttrs:i,templatefallbackAttrs:o}=p1(),s=KL(),l=sh().idRegex,c=Kl().templatedArray,u=ms().extendFlat,d=n.marker,p=d.line,h=u(r("marker.line",{editTypeOverride:"calc"}),{width:u({},p.width,{editType:"calc"}),editType:"calc"}),f=u(r("marker"),{symbol:d.symbol,angle:d.angle,size:u({},d.size,{editType:"markerSize"}),sizeref:d.sizeref,sizemin:d.sizemin,sizemode:d.sizemode,opacity:d.opacity,colorbar:d.colorbar,line:h,editType:"calc"});function m(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:l[e],editType:"plot"},description:["Sets the list of "+e+" axes","corresponding to dimensions of this splom trace.","By default, a splom will match the first N "+e+"axes","where N is the number of input dimensions.","Note that, in case where `diagonal.visible` is false and `showupperhalf`","or `showlowerhalf` is false, this splom trace will generate","one less x-axis and one less y-axis."].join(" ")}}f.color.editType=f.cmin.editType=f.cmax.editType="style",t.exports={dimensions:c("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not this dimension is shown on the graph.","Note that even visible false dimension contribute to the","default grid generate by this splom trace."].join(" ")},label:{valType:"string",editType:"calc",description:"Sets the label corresponding to this splom dimension."},values:{valType:"data_array",editType:"calc+clearAxisTypes",description:"Sets the dimension values to be plotted."},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes",description:["Sets the axis type for this dimension's generated","x and y axes.","Note that the axis `type` values set in layout take","precedence over this attribute."].join(" ")},matches:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not the x & y axes generated by this","dimension match.","Equivalent to setting the `matches` axis attribute in the layout","with the correct axis id."].join(" ")},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:u({},s.text,{description:["Sets text elements associated with each (x,y) pair to appear on hover.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates."].join(" ")}),hovertext:u({},s.hovertext,{description:"Same as `text`."}),hovertemplate:i(),hovertemplatefallback:o(),xhoverformat:a("x"),yhoverformat:a("y"),marker:f,xaxes:m("x"),yaxes:m("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not subplots on the diagonal are displayed."].join(" ")},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not subplots on the upper half","from the diagonal are displayed."].join(" ")},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not subplots on the lower half","from the diagonal are displayed."].join(" ")},selected:{marker:s.selected.marker,editType:"calc"},unselected:{marker:s.unselected.marker,editType:"calc"},opacity:s.opacity}}),IZ=Ee((e,t)=>{t.exports=function(e,t,n,r){var a,i;for(r||(r=1/0),a=0;a<t.length;a++)(i=t[a]).visible&&(r=Math.min(r,i[n].length));for(r===1/0&&(r=0),e._length=r,a=0;a<t.length;a++)(i=t[a]).visible&&(i._length=r);return r}}),G2t=Ee((e,t)=>{var n=Fr(),r=Pp(),a=N2e(),i=Hc(),o=Wv(),s=IZ(),l=JY().isOpenSymbol;function c(e,t){function r(r,i){return n.coerce(e,t,a.dimensions,r,i)}r("label");var i=r("values");i&&i.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}t.exports=function(e,t,u,d){function p(r,i){return n.coerce(e,t,a,r,i)}var h=r(e,t,{name:"dimensions",handleItemDefaults:c}),f=p("diagonal.visible"),m=p("showupperhalf"),g=p("showlowerhalf");if(s(t,h,"values")&&(f||m||g)){p("text"),p("hovertext"),p("hovertemplate"),p("hovertemplatefallback"),p("xhoverformat"),p("yhoverformat"),o(e,t,u,d,p,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var y=l(t.marker.symbol),b=i.isBubble(t);p("marker.line.width",y||b?1:0),function(e,t,n,r){var a,i,o=t.dimensions,s=o.length,l=t.showupperhalf,c=t.showlowerhalf,u=t.diagonal.visible,d=new Array(s),p=new Array(s);for(a=0;a<s;a++){var h=a?a+1:"";d[a]="x"+h,p[a]="y"+h}var f=r("xaxes",d),m=r("yaxes",p),g=t._diag=new Array(s);t._xaxes={},t._yaxes={};var y=[],b=[];function v(e,r,a,i){if(e){var o=e.charAt(0),s=n._splomAxes[o];if(t["_"+o+"axes"][e]=1,i.push(e),!(e in s)){var l=s[e]={};a&&(l.label=a.label||"",a.visible&&a.axis&&(a.axis.type&&(l.type=a.axis.type),a.axis.matches&&(l.matches=r)))}}}var M=!u&&!c,x=!u&&!l;for(t._axesDim={},a=0;a<s;a++){var z=o[a],_=0===a,A=a===s-1,O=_&&M||A&&x?void 0:f[a],w=_&&x||A&&M?void 0:m[a];v(O,w,z,y),v(w,O,z,b),g[a]=[O,w],t._axesDim[O]=a,t._axesDim[w]=a}for(a=0;a<y.length;a++)for(i=0;i<b.length;i++){var k=y[a]+b[i];(a>i&&l||a<i&&c||a===i&&(u||!c||!l))&&(n._splomSubplots[k]=1)}(!c||!u&&l&&c)&&(n._splomGridDflt.xside="bottom",n._splomGridDflt.yside="left")}(0,t,d,p),n.coerceSelectionMarkerOpacity(t,p)}else t.visible=!1}}),Z2t=Ee((e,t)=>{var n=Fr();t.exports=function(e,t){var r=e._fullLayout,a=t.uid,i=r._splomScenes;i||(i=r._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s=i[t.uid];return s||((s=i[a]=n.extendFlat({},o,{matrix:!1,selectBatch:[],unselectBatch:[]})).draw=function(){s.matrix&&s.matrix.draw&&(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&&s.matrix.destroy&&s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||n.extendFlat(s,o),s}}),J2t=Ee((e,t)=>{var n=Fr(),r=Ld(),a=Jg().calcMarkerSize,i=Jg().calcAxisExpansion,o=$g(),s=CO().markerSelection,l=CO().markerStyle,c=Z2t(),u=T0().BADNUM,d=P4().TOO_MANY_POINTS;t.exports=function(e,t){var p,h,f,m,g,y,b=t.dimensions,v=t._length,M={},x=M.cdata=[],z=M.data=[],_=t._visibleDims=[];function A(e,r){for(var a=e.makeCalcdata({v:r.values,vcalendar:t.calendar},"v"),i=0;i<a.length;i++)a[i]=a[i]===u?NaN:a[i];x.push(a),z.push("log"===e.type?n.simpleMap(a,e.c2l):a)}for(p=0;p<b.length;p++)if((f=b[p]).visible){if(m=r.getFromId(e,t._diag[p][0]),g=r.getFromId(e,t._diag[p][1]),m&&g&&m.type!==g.type){n.log("Skipping splom dimension "+p+" with conflicting axis types");continue}m?(A(m,f),g&&"category"===g.type&&(g._categories=m._categories.slice())):A(g,f),_.push(p)}for(o(e,t),n.extendFlat(M,l(e,t)),y=x.length*v>d?M.sizeAvg||Math.max(M.size,3):a(t,v),h=0;h<_.length;h++)f=b[p=_[h]],m=r.getFromId(e,t._diag[p][0])||{},g=r.getFromId(e,t._diag[p][1])||{},i(e,t,m,g,x[h],x[h],y);var O=c(e,t);return O.matrix||(O.matrix=!0),O.matrixOptions=M,O.selectedOptions=s(e,t,t.selected),O.unselectedOptions=s(e,t,t.unselected),[{x:!1,y:!1,t:{},trace:t}]}}),emt=Ee((e,t)=>{(function(){var e,n,r,a,i,o;typeof performance<"u"&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:typeof process<"u"&&null!==process&&process.hrtime?(t.exports=function(){return(e()-i)/1e6},n=process.hrtime,a=(e=function(){var e;return 1e9*(e=n())[0]+e[1]})(),o=1e9*process.uptime(),i=a-o):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(e)}),rmt=Ee((e,t)=>{var n,r,a,i,o,s=emt(),l=typeof window>"u"?global:window,c=["moz","webkit"],u="AnimationFrame",d=l["request"+u],p=l["cancel"+u]||l["cancelRequest"+u];for(n=0;!d&&n<c.length;n++)d=l[c[n]+"Request"+u],p=l[c[n]+"Cancel"+u]||l[c[n]+"CancelRequest"+u];(!d||!p)&&(r=0,a=0,i=[],o=1e3/60,d=function(e){if(0===i.length){var t=s(),n=Math.max(0,o-(t-r));r=n+t,setTimeout(function(){var e=i.slice(0);i.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(r)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return i.push({handle:++a,callback:e,cancelled:!1}),a},p=function(e){for(var t=0;t<i.length;t++)i[t].handle===e&&(i[t].cancelled=!0)}),t.exports=function(e){return d.call(l,e)},t.exports.cancel=function(){p.apply(l,arguments)},t.exports.polyfill=function(e){e||(e=l),e.requestAnimationFrame=d,e.cancelAnimationFrame=p}}),amt=Ee((e,t)=>{t.exports=function(e,t){var n="number"==typeof e,r="number"==typeof t;n&&!r?(t=e,e=0):!n&&!r&&(e=0,t=0);var a=(t|=0)-(e|=0);if(a<0)throw new Error("array length must be positive");for(var i=new Array(a),o=0,s=e;o<a;o++,s++)i[o]=s;return i}}),lmt=Ee((e,t)=>{var n=Rpe(),r=Y3(),a=OO(),i=rmt(),o=amt(),s=i9(),l=TO();function c(e,t){if(!(this instanceof c))return new c(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=n(e),this.canvas=this.scatter.canvas}function u(e,t,n){return(null!=e.id?e.id:e)<<16|(255&t)<<8|255&n}function d(e,t,n){let r,a,i,o,s,l,c,u,d=e[t],p=e[n];return d.length>2?(r=d[0],i=d[2],a=d[1],o=d[3]):d.length?(r=a=d[0],i=o=d[1]):(r=d.x,a=d.y,i=d.x+d.width,o=d.y+d.height),p.length>2?(s=p[0],c=p[2],l=p[1],u=p[3]):p.length?(s=l=p[0],c=u=p[1]):(s=p.x,l=p.y,c=p.x+p.width,u=p.y+p.height),[s,a,c,o]}function p(e){if("number"==typeof e)return[e,e,e,e];if(2===e.length)return[e[0],e[1],e[0],e[1]];{let t=s(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}t.exports=c,c.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?null==this.planned&&(this.planned=i(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,i(()=>{this.dirty=!1})),this)},c.prototype.update=function(...e){if(!e.length)return;for(let t=0;t<e.length;t++)this.updateItem(t,e[t]);this.traces=this.traces.filter(Boolean);let t=[],n=0;for(let e=0;e<this.traces.length;e++){let r=this.traces[e],a=this.traces[e].passes;for(let e=0;e<a.length;e++)t.push(this.passes[a[e]]);r.passOffset=n,n+=r.passes.length}return this.scatter.update(...t),this},c.prototype.updateItem=function(e,t){let{regl:n}=this;if(null===t)return this.traces[e]=null,this;if(!t)return this;let i,o=r(t,{data:"data items columns rows values dimensions samples x",snap:"snap cluster",size:"sizes size radius",color:"colors color fill fill-color fillColor",opacity:"opacity alpha transparency opaque",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",borderColor:"borderColors borderColor bordercolor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range ranges databox dataBox",viewport:"viewport viewBox viewbox",domain:"domain domains area areas",padding:"pad padding paddings pads margin margins",transpose:"transpose transposed",diagonal:"diagonal diag showDiagonal",upper:"upper up top upperhalf upperHalf showupperhalf showUpper showUpperHalf",lower:"lower low bottom lowerhalf lowerHalf showlowerhalf showLowerHalf showLower"}),c=this.traces[e]||(this.traces[e]={id:e,buffer:n.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),color:"black",marker:null,size:12,borderColor:"transparent",borderSize:1,viewport:s([n._gl.drawingBufferWidth,n._gl.drawingBufferHeight]),padding:[0,0,0,0],opacity:1,diagonal:!0,upper:!0,lower:!0});if(null!=o.color&&(c.color=o.color),null!=o.size&&(c.size=o.size),null!=o.marker&&(c.marker=o.marker),null!=o.borderColor&&(c.borderColor=o.borderColor),null!=o.borderSize&&(c.borderSize=o.borderSize),null!=o.opacity&&(c.opacity=o.opacity),o.viewport&&(c.viewport=s(o.viewport)),null!=o.diagonal&&(c.diagonal=o.diagonal),null!=o.upper&&(c.upper=o.upper),null!=o.lower&&(c.lower=o.lower),o.data){c.buffer(l(o.data)),c.columns=o.data.length,c.count=o.data[0].length,c.bounds=[];for(let e=0;e<c.columns;e++)c.bounds[e]=a(o.data[e],1)}o.range&&(c.range=o.range,i=c.range&&"number"!=typeof c.range[0]),o.domain&&(c.domain=o.domain);let h=!1;null!=o.padding&&(Array.isArray(o.padding)&&o.padding.length===c.columns&&"number"==typeof o.padding[o.padding.length-1]?(c.padding=o.padding.map(p),h=!0):c.padding=p(o.padding));let f=c.columns,m=c.count,g=c.viewport.width,y=c.viewport.height,b=c.viewport.x,v=c.viewport.y,M=g/f,x=y/f;c.passes=[];for(let e=0;e<f;e++)for(let t=0;t<f;t++){if(!c.diagonal&&t===e||!c.upper&&e>t||!c.lower&&e<t)continue;let n=u(c.id,e,t),r=this.passes[n]||(this.passes[n]={});if(o.data&&(o.transpose?r.positions={x:{buffer:c.buffer,offset:t,count:m,stride:f},y:{buffer:c.buffer,offset:e,count:m,stride:f}}:r.positions={x:{buffer:c.buffer,offset:t*m,count:m},y:{buffer:c.buffer,offset:e*m,count:m}},r.bounds=d(c.bounds,e,t)),o.domain||o.viewport||o.data){let n=h?d(c.padding,e,t):c.padding;if(c.domain){let[a,i,o,s]=d(c.domain,e,t);r.viewport=[b+a*g+n[0],v+i*y+n[1],b+o*g-n[2],v+s*y-n[3]]}else r.viewport=[b+t*M+M*n[0],v+e*x+x*n[1],b+(t+1)*M-M*n[2],v+(e+1)*x-x*n[3]]}o.color&&(r.color=c.color),o.size&&(r.size=c.size),o.marker&&(r.marker=c.marker),o.borderSize&&(r.borderSize=c.borderSize),o.borderColor&&(r.borderColor=c.borderColor),o.opacity&&(r.opacity=c.opacity),o.range&&(r.range=i?d(c.range,e,t):c.range||r.bounds),c.passes.push(n)}return this},c.prototype.draw=function(...e){if(e.length){let t=[];for(let n=0;n<e.length;n++)if("number"==typeof e[n]){let{passes:r,passOffset:a}=this.traces[e[n]];t.push(...o(a,a+r.length))}else if(e[n].length){let r=e[n],{passes:a,passOffset:i}=this.traces[n];a=a.map((e,n)=>{t[i+n]=r})}this.scatter.draw(...t)}else this.scatter.draw();return this},c.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this}}),umt=Ee((e,t)=>{var n=lmt(),r=Fr(),a=Ld(),i=Qy().selectMode;function o(e,t){var o,s,l,c,u,d=e._fullLayout,p=d._size,h=t.trace,f=t.t,m=d._splomScenes[h.uid],g=m.matrixOptions,y=g.cdata,b=d._glcanvas.data()[0].regl,v=d.dragmode;if(0!==y.length){g.lower=h.showupperhalf,g.upper=h.showlowerhalf,g.diagonal=h.diagonal.visible;var M=h._visibleDims,x=y.length,z=m.viewOpts={};for(z.ranges=new Array(x),z.domains=new Array(x),u=0;u<M.length;u++){l=M[u];var _=z.ranges[u]=new Array(4),A=z.domains[u]=new Array(4);(o=a.getFromId(e,h._diag[l][0]))&&(_[0]=o._rl[0],_[2]=o._rl[1],A[0]=o.domain[0],A[2]=o.domain[1]),(s=a.getFromId(e,h._diag[l][1]))&&(_[1]=s._rl[0],_[3]=s._rl[1],A[1]=s.domain[0],A[3]=s.domain[1])}var O=e._context.plotGlPixelRatio,w=p.l*O,k=p.b*O,T=p.w*O,S=p.h*O;z.viewport=[w,k,T+w,S+k],!0===m.matrix&&(m.matrix=n(b));var C=d.clickmode.indexOf("select")>-1,E=!0;if(i(v)||!!h.selectedpoints||C){var q=h._length;if(h.selectedpoints){m.selectBatch=h.selectedpoints;var D=h.selectedpoints,R={};for(l=0;l<D.length;l++)R[D[l]]=!0;var L=[];for(l=0;l<q;l++)R[l]||L.push(l);m.unselectBatch=L}var I=f.xpx=new Array(x),W=f.ypx=new Array(x);for(u=0;u<M.length;u++){if(l=M[u],o=a.getFromId(e,h._diag[l][0]))for(I[u]=new Array(q),c=0;c<q;c++)I[u][c]=o.c2p(y[u][c]);if(s=a.getFromId(e,h._diag[l][1]))for(W[u]=new Array(q),c=0;c<q;c++)W[u][c]=s.c2p(y[u][c])}if(m.selectBatch.length||m.unselectBatch.length){var N=r.extendFlat({},g,m.unselectedOptions,z),P=r.extendFlat({},g,m.selectedOptions,z);m.matrix.update(N,P),E=!1}}else f.xpx=f.ypx=null;if(E){var B=r.extendFlat({},g,z);m.matrix.update(B,null)}}}t.exports=function(e,t,n){if(n.length)for(var r=0;r<n.length;r++)o(e,n[r][0])}}),V2e=Ee(e=>{e.getDimIndex=function(e,t){for(var n=t._id,r={x:0,y:1}[n.charAt(0)],a=e._visibleDims,i=0;i<a.length;i++){var o=a[i];if(e._diag[o][r]===n)return i}return!1}}),vmt=Ee((e,t)=>{var n=V2e(),r=KY().calcHover,a=es().getFromId,i=ms().extendFlat;function o(e,t,a,i){var o=e.cd[0].trace,s=e.scene.matrixOptions.cdata,l=e.xa,c=e.ya,u=l.c2p(t),d=c.c2p(a),p=e.distance,h=n.getDimIndex(o,l),f=n.getDimIndex(o,c);if(!1===h||!1===f)return[e];for(var m,g,y=s[h],b=s[f],v=p,M=0;M<y.length;M++)if(!i||M===e.index){var x=y[M],z=b[M],_=l.c2p(x)-u,A=c.c2p(z)-d,O=Math.sqrt(_*_+A*A);(i||O<v)&&(v=g=O,m=M)}return e.index=m,e.distance=v,e.dxy=g,void 0===m?[e]:[r(e,y,b,o)]}t.exports={hoverPoints:function(e,t,n,r,s){s||(s={});var l="x"===(r||"").charAt(0),c="y"===(r||"").charAt(0),u=o(e,t,n);if((l||c)&&"axis"===s.hoversubplots&&u[0])for(var d=(l?e.xa:e.ya)._subplotsWith,p=s.gd,h=i({},e),f=0;f<d.length;f++){var m=d[f];if(m!==e.xa._id+e.ya._id){c?h.xa=a(p,m,"x"):h.ya=a(p,m,"y");var g=o(h,t,n,l||c);u=u.concat(g)}}return u}}}),_mt=Ee((e,t)=>{var n=Fr(),r=n.pushUnique,a=Hc(),i=V2e();t.exports=function(e,t){var o=e.cd,s=o[0].trace,l=o[0].t,c=e.scene,u=c.matrixOptions.cdata,d=e.xaxis,p=e.yaxis,h=[];if(!c)return h;var f=!a.hasMarkers(s)&&!a.hasText(s);if(!0!==s.visible||f)return h;var m=i.getDimIndex(s,d),g=i.getDimIndex(s,p);if(!1===m||!1===g)return h;var y=l.xpx[m],b=l.ypx[g],v=u[m],M=u[g],x=(e.scene.selectBatch||[]).slice(),z=[];if(!1!==t&&!t.degenerate)for(var _=0;_<v.length;_++)t.contains([y[_],b[_]],null,_,e)?(h.push({pointNumber:_,x:v[_],y:M[_]}),r(x,_)):-1!==x.indexOf(_)?r(x,_):z.push(_);var A=c.matrixOptions;return x.length||z.length?!c.selectBatch.length&&!c.unselectBatch.length&&c.matrix.update(c.unselectedOptions,n.extendFlat({},A,c.selectedOptions,c.viewOpts)):c.matrix.update(A,null),c.selectBatch=x,c.unselectBatch=z,h}}),wmt=Ee((e,t)=>{var n=Fr(),r=$g(),a=CO().markerStyle;t.exports=function(e,t){var i=t.trace,o=e._fullLayout._splomScenes[i.uid];if(o){r(e,i),n.extendFlat(o.matrixOptions,a(e,i));var s=n.extendFlat({},o.matrixOptions,o.viewOpts);o.matrix.update(s,null)}}}),Tmt=Ee((e,t)=>{var n=vo(),r=Sce();t.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:N2e(),supplyDefaults:G2t(),colorbar:Wp(),calc:J2t(),plot:umt(),hoverPoints:vmt().hoverPoints,selectPoints:_mt(),editStyle:wmt(),meta:{description:["Splom traces generate scatter plot matrix visualizations.","Each splom `dimensions` items correspond to a generated axis.","Values for each of those dimensions are set in `dimensions[i].values`.","Splom traces support all `scattergl` marker style attributes.","Specify `layout.grid` attributes and/or layout x-axis and y-axis attributes","for more control over the axis positioning and style. "].join(" ")}},n.register(r)}),Dmt=Ee((e,t)=>{var n=f2e(),r=vo(),a=LZ(),i=mp().getModuleCalcData,o=Bf(),s=Ld().getFromId,l=es().shouldShowZeroLine,c="splom",u={};function d(e,t,n){for(var r=n.matrixOptions.data.length,a=t._visibleDims,i=n.viewOpts.ranges=new Array(r),o=0;o<a.length;o++){var l=a[o],c=i[o]=new Array(4),u=s(e,t._diag[l][0]);u&&(c[0]=u.r2l(u.range[0]),c[2]=u.r2l(u.range[1]));var d=s(e,t._diag[l][1]);d&&(c[1]=d.r2l(d.range[0]),c[3]=d.r2l(d.range[1]))}n.selectBatch.length||n.unselectBatch.length?n.matrix.update({ranges:i},{ranges:i}):n.matrix.update({ranges:i})}function p(e){var t=e._fullLayout,r=t._glcanvas.data()[0].regl,a=t._splomGrid;a||(a=t._splomGrid=n(r)),a.update(function(e){var t,n=e._context.plotGlPixelRatio,r=e._fullLayout,a=r._size,i=[0,0,r.width*n,r.height*n],o={};function s(e,t,r,a,s,l){r*=n,a*=n,s*=n,l*=n;var c=t[e+"color"],u=t[e+"width"],d=String(c+u);d in o?o[d].data.push(NaN,NaN,r,a,s,l):o[d]={data:[r,a,s,l],join:"rect",thickness:u*n,color:c,viewport:i,range:i,overlay:!1}}for(t in r._splomSubplots){var c,u,d=r._plots[t],p=d.xaxis,h=d.yaxis,f=p._gridVals,m=h._gridVals,g=p._offset,y=p._length,b=h._length,v=a.b+h.domain[0]*a.h,M=-h._m,x=-M*h.r2l(h.range[0],h.calendar);if(p.showgrid)for(t=0;t<f.length;t++)c=g+p.l2p(f[t].x),s("grid",p,c,v,c,v+b);if(h.showgrid)for(t=0;t<m.length;t++)s("grid",h,g,u=v+x+M*m[t].x,g+y,u);l(e,p,h)&&(c=g+p.l2p(0),s("zeroline",p,c,v,c,v+b)),l(e,h,p)&&s("zeroline",h,g,u=v+x+0,g+y,u)}var z=[];for(t in o)z.push(o[t]);return z}(e))}t.exports={name:c,attr:o.attr,attrRegex:o.attrRegex,layoutAttributes:o.layoutAttributes,supplyLayoutDefaults:o.supplyLayoutDefaults,drawFramework:o.drawFramework,plot:function(e){var t=e._fullLayout,n=r.getModule(c),o=i(e.calcdata,n)[0];a(e,["ANGLE_instanced_arrays","OES_element_index_uint"],u)&&(t._hasOnlyLargeSploms&&p(e),n.plot(e,{},o))},drag:function(e){var t=e.calcdata,n=e._fullLayout;n._hasOnlyLargeSploms&&p(e);for(var r=0;r<t.length;r++){var a=t[r][0].trace,i=n._splomScenes[a.uid];"splom"===a.type&&i&&i.matrix&&d(e,a,i)}},updateGrid:p,clean:function(e,t,n,r){var a,i={};if(r._splomScenes){for(a=0;a<e.length;a++){var s=e[a];"splom"===s.type&&(i[s.uid]=1)}for(a=0;a<n.length;a++){var l=n[a];if(!i[l.uid]){var c=r._splomScenes[l.uid];c&&c.destroy&&c.destroy(),r._splomScenes[l.uid]=null,delete r._splomScenes[l.uid]}}}0===Object.keys(r._splomScenes||{}).length&&delete r._splomScenes,r._splomGrid&&!t._hasOnlyLargeSploms&&r._hasOnlyLargeSploms&&(r._splomGrid.destroy(),r._splomGrid=null,delete r._splomGrid),o.clean(e,t,n,r)},updateFx:o.updateFx,toSVG:o.toSVG,reglPrecompiled:u}}),Pmt=Ee((e,t)=>{var n=Tmt();n.basePlotModule=Dmt(),t.exports=n}),Nmt=Ee((e,t)=>{t.exports=Pmt()}),Y2e=Ee((e,t)=>{var n=Oc(),r=vp(),a=Mu(),i=ad().attributes,o=ms().extendFlat,s=Kl().templatedArray;t.exports={domain:i({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot",description:["Sets the angle of the labels with respect to the horizontal.","For example, a `tickangle` of -90 draws the labels vertically.","Tilted labels with *labelangle* may be positioned better","inside margins when `labelposition` is set to *bottom*."].join(" ")},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot",description:["Specifies the location of the `label`.","*top* positions labels above, next to the title","*bottom* positions labels below the graph","Tilted labels with *labelangle* may be positioned better","inside margins when `labelposition` is set to *bottom*."].join(" ")},labelfont:a({editType:"plot",description:"Sets the font for the `dimension` labels."}),tickfont:a({autoShadowDflt:!0,editType:"plot",description:"Sets the font for the `dimension` tick values."}),rangefont:a({editType:"plot",description:"Sets the font for the `dimension` range values."}),dimensions:s("dimension",{label:{valType:"string",editType:"plot",description:"The shown name of the dimension."},tickvals:o({},r.tickvals,{editType:"plot",description:["Sets the values at which ticks on this axis appear."].join(" ")}),ticktext:o({},r.ticktext,{editType:"plot",description:["Sets the text displayed at the ticks position via `tickvals`."].join(" ")}),tickformat:o({},r.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot",description:"Shows the dimension when set to `true` (the default). Hides the dimension for `false`."},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot",description:["The domain range that represents the full, shown axis extent. Defaults to the `values` extent.","Must be an array of `[fromValue, toValue]` with finite numbers as elements."].join(" ")},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot",description:["The domain range to which the filter on the dimension is constrained. Must be an array","of `[fromValue, toValue]` with `fromValue <= toValue`, or if `multiselect` is not","disabled, you may give an array of arrays, where each inner array is `[fromValue, toValue]`."].join(" ")},multiselect:{valType:"boolean",dflt:!0,editType:"plot",description:"Do we allow multiple selection ranges or just a single range?"},values:{valType:"data_array",editType:"calc",description:["Dimension values. `values[n]` represents the value of the `n`th point in the dataset,","therefore the `values` vector for all dimensions must be the same (longer vectors","will be truncated). Each value must be a finite number."].join(" ")},editType:"calc",description:"The dimensions (variables) of the parallel coordinates chart. 2..60 dimensions are supported."}),line:o({editType:"calc"},n("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot",description:["Sets the base color of unselected lines.","in connection with `unselected.line.opacity`."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot",description:["Sets the opacity of unselected lines.","The default *auto* decreases the opacity smoothly as the number of lines increases.","Use *1* to achieve exact `unselected.line.color`."].join(" ")},editType:"plot"},editType:"plot"}}}),MP=Ee((e,t)=>{t.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}}),K3=Ee((e,t)=>{var n=cD();function r(e){return[e]}t.exports={keyFun:function(e){return e.key},repeat:r,descend:n,wrap:r,unwrap:function(e){return e[0]}}}),K2e=Ee((e,t)=>{var n=MP(),r=mo(),a=K3().keyFun,i=K3().repeat,o=Fr().sorterAsc,s=Fr().strTranslate,l=n.bar.snapRatio;function c(e,t){return e*(1-l)+t*l}var u=n.bar.snapClose;function d(e,t){return e*(1-u)+t*u}function p(e,t,n,r){if(function(e,t){for(var n=0;n<t.length;n++)if(e>=t[n][0]&&e<=t[n][1])return!0;return!1}(n,r))return n;var a=e?-1:1,i=0,o=t.length-1;if(a<0){var s=i;i=o,o=s}for(var l=t[i],u=l,p=i;a*p<a*o;p+=a){var h=p+a,f=t[h];if(a*n<a*d(l,f))return c(l,u);if(a*n<a*f||h===o)return c(f,l);u=l,l=f}}function h(e){e.attr("x",-n.bar.captureWidth/2).attr("width",n.bar.captureWidth)}function f(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function m(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t,n,r,a=g(e.brush.filter.getConsolidated(),e.height),i=[0],o=a.length?a[0][0]:null,s=0;s<a.length;s++)n=(t=a[s])[1]-t[0],i.push(o),i.push(n),(r=s+1)<a.length&&(o=a[r][0]-t[1]);return i.push(e.height),i}function g(e,t){return e.map(function(e){return e.map(function(e){return Math.max(0,e*t)}).sort(o)})}function y(){r.select(document.body).style("cursor",null)}function b(e){e.attr("stroke-dasharray",m)}function v(e,t){var a=r.select(e).selectAll(".highlight, .highlight-shadow");b(t?a.transition().duration(n.bar.snapDuration).each("end",t):a)}function M(e,t){var r,a=e.brush,i=NaN,o={};if(a.filterSpecified){var s=e.height,l=a.filter.getConsolidated(),c=g(l,s),u=NaN,d=NaN,p=NaN;for(r=0;r<=c.length;r++){var h=c[r];if(h&&h[0]<=t&&t<=h[1]){u=r;break}if(d=r?r-1:NaN,h&&h[0]>t){p=r;break}}if(i=u,isNaN(i)&&(i=isNaN(d)||isNaN(p)?isNaN(d)?p:d:t-c[d][1]<c[p][0]-t?d:p),!isNaN(i)){var f=c[i],m=function(e,t){var r=n.bar.handleHeight;if(!(t>e[1]+r||t<e[0]-r))return t>=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}(f,t);m&&(o.interval=l[i],o.intervalPix=f,o.region=m)}}if(e.ordinal&&!o.region){var y=e.unitTickvals,b=e.unitToPaddedPx.invert(t);for(r=0;r<y.length;r++){var v=[.25*y[Math.max(r-1,0)]+.75*y[r],.25*y[Math.min(r+1,y.length-1)]+.75*y[r]];if(b>=v[0]&&b<=v[1]){o.clickableOrdinalRange=v;break}}}return o}function x(e,t){r.event.sourceEvent.stopPropagation();var a=t.height-r.mouse(e)[1]-2*n.verticalPadding,i=t.brush.svgBrush;i.wasDragged=!0,i._dragging=!0,i.grabbingBar?i.newExtent=[a-i.grabPoint,a+i.barLength-i.grabPoint].map(t.unitToPaddedPx.invert):i.newExtent=[i.startExtent,t.unitToPaddedPx.invert(a)].sort(o),t.brush.filterSpecified=!0,i.extent=i.stayingIntervals.concat([i.newExtent]),i.brushCallback(t),v(e.parentNode)}function z(e,t){var a=M(t,t.height-r.mouse(e)[1]-2*n.verticalPadding),i="crosshair";a.clickableOrdinalRange?i="pointer":a.region&&(i=a.region+"-resize"),r.select(document.body).style("cursor",i)}function _(e){e.on("mousemove",function(e){r.event.preventDefault(),e.parent.inBrushDrag||z(this,e)}).on("mouseleave",function(e){e.parent.inBrushDrag||y()}).call(r.behavior.drag().on("dragstart",function(e){!function(e,t){r.event.sourceEvent.stopPropagation();var a=t.height-r.mouse(e)[1]-2*n.verticalPadding,i=t.unitToPaddedPx.invert(a),o=t.brush,s=M(t,a),l=s.interval,c=o.svgBrush;if(c.wasDragged=!1,c.grabbingBar="ns"===s.region,c.grabbingBar){var u=l.map(t.unitToPaddedPx);c.grabPoint=a-u[0]-n.verticalPadding,c.barLength=u[1]-u[0]}c.clickableOrdinalRange=s.clickableOrdinalRange,c.stayingIntervals=t.multiselect&&o.filterSpecified?o.filter.getConsolidated():[],l&&(c.stayingIntervals=c.stayingIntervals.filter(function(e){return e[0]!==l[0]&&e[1]!==l[1]})),c.startExtent=s.region?l["s"===s.region?1:0]:i,t.parent.inBrushDrag=!0,c.brushStartCallback()}(this,e)}).on("drag",function(e){x(this,e)}).on("dragend",function(e){!function(e,t){var n=t.brush,a=n.filter,i=n.svgBrush;i._dragging||(z(e,t),x(e,t),t.brush.svgBrush.wasDragged=!1),i._dragging=!1,r.event.sourceEvent.stopPropagation();var o=i.grabbingBar;if(i.grabbingBar=!1,i.grabLocation=void 0,t.parent.inBrushDrag=!1,y(),!i.wasDragged)return i.wasDragged=void 0,i.clickableOrdinalRange?n.filterSpecified&&t.multiselect?i.extent.push(i.clickableOrdinalRange):(i.extent=[i.clickableOrdinalRange],n.filterSpecified=!0):o?(i.extent=i.stayingIntervals,0===i.extent.length&&O(n)):O(n),i.brushCallback(t),v(e.parentNode),void i.brushEndCallback(n.filterSpecified?a.getConsolidated():[]);var s=function(){a.set(a.getConsolidated())};if(t.ordinal){var l=t.unitTickvals;l[l.length-1]<l[0]&&l.reverse(),i.newExtent=[p(0,l,i.newExtent[0],i.stayingIntervals),p(1,l,i.newExtent[1],i.stayingIntervals)];var c=i.newExtent[1]>i.newExtent[0];i.extent=i.stayingIntervals.concat(c?[i.newExtent]:[]),i.extent.length||O(n),i.brushCallback(t),c?v(e.parentNode,s):(s(),v(e.parentNode))}else s();i.brushEndCallback(n.filterSpecified?a.getConsolidated():[])}(this,e)}))}function A(e,t){return e[0]-t[0]}function O(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function w(e){return function(t){var n=t.brush,r=function(e){return e.svgBrush.extent.map(function(e){return e.slice()})}(n),a=r.slice();n.filter.set(a),e()}}function k(e){for(var t,n=e.slice(),r=[],a=n.shift();a;){for(t=a.slice();(a=n.shift())&&a[0]<=t[1];)t[1]=Math.max(t[1],a[1]);r.push(t)}return 1===r.length&&r[0][0]>r[0][1]&&(r=[]),r}t.exports={makeBrush:function(e,t,n,r,a,i){var s=function(){var e,t,n=[];return{set:function(r){1===(n=r.map(function(e){return e.slice().sort(o)}).sort(A)).length&&n[0][0]===-1/0&&n[0][1]===1/0&&(n=[[0,-1]]),e=k(n),t=n.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0])},get:function(){return n.slice()},getConsolidated:function(){return e},getBounds:function(){return t}}}();return s.set(n),{filter:s,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:r,brushCallback:w(a),brushEndCallback:i}}},ensureAxisBrush:function(e,t,r){var o=e.selectAll("."+n.cn.axisBrush).data(i,a);o.enter().append("g").classed(n.cn.axisBrush,!0),function(e,t,r){var a=r._context.staticPlot,o=e.selectAll(".background").data(i);o.enter().append("rect").classed("background",!0).call(h).call(f).style("pointer-events",a?"none":"auto").attr("transform",s(0,n.verticalPadding)),o.call(_).attr("height",function(e){return e.height-n.verticalPadding});var l=e.selectAll(".highlight-shadow").data(i);l.enter().append("line").classed("highlight-shadow",!0).attr("x",-n.bar.width/2).attr("stroke-width",n.bar.width+n.bar.strokeWidth).attr("stroke",t).attr("opacity",n.bar.strokeOpacity).attr("stroke-linecap","butt"),l.attr("y1",function(e){return e.height}).call(b);var c=e.selectAll(".highlight").data(i);c.enter().append("line").classed("highlight",!0).attr("x",-n.bar.width/2).attr("stroke-width",n.bar.width-n.bar.strokeWidth).attr("stroke",n.bar.fillColor).attr("opacity",n.bar.fillOpacity).attr("stroke-linecap","butt"),c.attr("y1",function(e){return e.height}).call(b)}(o,t,r)},cleanRanges:function(e,t){if(Array.isArray(e[0])?(e=e.map(function(e){return e.sort(o)}),e=t.multiselect?k(e.sort(A)):[e[0]]):e=[e.sort(o)],t.tickvals){var n=t.tickvals.slice().sort(o);if(!(e=e.map(function(e){var t=[p(0,n,e[0],[]),p(1,n,e[1],[])];if(t[1]>t[0])return t}).filter(function(e){return e})).length)return}return e.length>1?e:e[0]}}}),rvt=Ee((e,t)=>{var n=Fr(),r=d2().hasColorscale,a=kh(),i=ad().defaults,o=Pp(),s=es(),l=Y2e(),c=K2e(),u=MP().maxDimensionCount,d=IZ();function p(e,t,r,a){function i(r,a){return n.coerce(e,t,l.dimensions,r,a)}var o=i("values"),u=i("visible");if(o&&o.length||(u=t.visible=!1),u){i("label"),i("tickvals"),i("ticktext"),i("tickformat");var d=i("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:d},s.setConvert(t._ax,a.layout),i("multiselect");var p=i("constraintrange");p&&(t.constraintrange=c.cleanRanges(p,t))}}t.exports=function(e,t,s,c){function h(r,a){return n.coerce(e,t,l,r,a)}var f=e.dimensions;Array.isArray(f)&&f.length>u&&(n.log("parcoords traces support up to "+u+" dimensions at the moment"),f.splice(u));var m=o(e,t,{name:"dimensions",layout:c,handleItemDefaults:p}),g=function(e,t,i,o,s){var l=s("line.color",i);if(r(e,"line")&&n.isArrayOrTypedArray(l)){if(l.length)return s("line.colorscale"),a(e,t,o,s,{prefix:"line.",cLetter:"c"}),l.length;t.line.color=i}return 1/0}(e,t,s,c,h);i(t,c,h),(!Array.isArray(m)||!m.length)&&(t.visible=!1),d(t,m,"values",g);var y=n.extendFlat({},c.font,{size:Math.round(c.font.size/1.2)});n.coerceFont(h,"labelfont",y),n.coerceFont(h,"tickfont",y,{autoShadowDflt:!0}),n.coerceFont(h,"rangefont",y),h("labelangle"),h("labelside"),h("unselected.line.color"),h("unselected.line.opacity")}}),avt=Ee((e,t)=>{var n=Fr().isArrayOrTypedArray,r=xu(),a=K3().wrap;t.exports=function(e,t){var i,o;return r.hasColorscale(t,"line")&&n(t.line.color)?(i=t.line.color,o=r.extractOpts(t.line).colorscale,r.calc(e,t,{vals:i,containerStr:"line",cLetter:"c"})):(i=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=.5;return t}(t._length),o=[[0,t.line.color],[1,t.line.color]]),a({lineColor:i,cscale:o})}}),ivt=kr(()=>{eme={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(let e in eme)Object.freeze(eme[e]);tme=Object.freeze(eme)});function bOr(e){var t,n,r=[],a=1;if("number"==typeof e)return{space:"rgb",values:[e>>>16,(65280&e)>>>8,255&e],alpha:1};if("number"==typeof e)return{space:"rgb",values:[e>>>16,(65280&e)>>>8,255&e],alpha:1};if(e=String(e).toLowerCase(),tme[e])r=tme[e].slice(),n="rgb";else if("transparent"===e)a=0,n="rgb",r=[0,0,0];else if("#"===e[0]){var i=e.slice(1),o=i.length;a=1,o<=4?(r=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],4===o&&(a=parseInt(i[3]+i[3],16)/255)):(r=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],8===o&&(a=parseInt(i[6]+i[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),n="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var s=t[1],l="cmyk"===(n=s.replace(/a$/,""))?4:"gray"===n?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),"color"===n&&(n=r.shift()),a=(r=r.map(function(e,t){if("%"===e[e.length-1])return e=parseFloat(e)/100,3===t?e:"rgb"===n?255*e:"h"===n[0]||"l"===n[0]&&!t?100*e:"lab"===n?125*e:"lch"===n?t<2?150*e:360*e:"o"!==n[0]||t?"oklab"===n?.4*e:"oklch"===n?t<2?.4*e:360*e:e:e;if("h"===n[t]||2===t&&"h"===n[n.length-1]){if(void 0!==ovt[e])return ovt[e];if(e.endsWith("deg"))return parseFloat(e);if(e.endsWith("turn"))return 360*parseFloat(e);if(e.endsWith("grad"))return 360*parseFloat(e)/400;if(e.endsWith("rad"))return 180*parseFloat(e)/Math.PI}return"none"===e?0:parseFloat(e)})).length>l?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(e){return parseFloat(e)}),n=e.match(/([a-z])/gi)?.join("")?.toLowerCase()||"rgb");return{space:n,values:r,alpha:a}}var svt,ovt,MOr,xP,xOr,YZ,lvt=kr(()=>{ivt(),svt=bOr,ovt={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}),rme=kr(()=>{xP=MOr={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}}),cvt=kr(()=>{rme(),YZ=xOr={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,n,r,a,i,o=e[0]/360,s=e[1]/100,l=e[2]/100,c=0;if(0===s)return[i=255*l,i,i];for(t=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];c<3;)(r=o+1/3*-(c-1))<0?r++:r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,a[c++]=255*i;return a}},xP.hsl=function(e){var t,n,r=e[0]/255,a=e[1]/255,i=e[2]/255,o=Math.min(r,a,i),s=Math.max(r,a,i),l=s-o;return s===o?t=0:r===s?t=(a-i)/l:a===s?t=2+(i-r)/l:i===s&&(t=4+(r-a)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(o+s)/2,[t,100*(s===o?0:n<=.5?l/(s+o):l/(2-s-o)),100*n]}}),dvt={};function uvt(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,n=svt(e);if(!n.space)return[];let r="h"===n.space[0]?YZ.min:xP.min,a="h"===n.space[0]?YZ.max:xP.max;return(t=Array(3))[0]=Math.min(Math.max(n.values[0],r[0]),a[0]),t[1]=Math.min(Math.max(n.values[1],r[1]),a[1]),t[2]=Math.min(Math.max(n.values[2],r[2]),a[2]),"h"===n.space[0]&&(t=YZ.rgb(t)),t.push(Math.min(Math.max(n.alpha,0),1)),t}Zs(dvt,{default:()=>uvt});var fvt=kr(()=>{lvt(),rme(),cvt()}),nme=Ee(e=>{var t=Fr().isTypedArray;e.convertTypedArray=function(e){return t(e)?Array.prototype.slice.call(e):e},e.isOrdinal=function(e){return!!e.tickvals},e.isVisible=function(e){return e.visible||!("visible"in e)}}),_vt=Ee((e,t)=>{var n=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join("\n"),r=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join("\n"),a=MP().maxDimensionCount,i=Fr(),o=1e-6,s=2048,l=new Uint8Array(4),c=new Uint8Array(4),u={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function d(e,t,n,r,a){var i=e._gl;i.enable(i.SCISSOR_TEST),i.scissor(t,n,r,a),e.clear({color:[0,0,0,0],depth:1})}function p(e,t,n,r,a,i){var o=i.key;n.drawCompleted||(function(e){e.read({x:0,y:0,width:1,height:1,data:l})}(e),n.drawCompleted=!0),function s(l){var c=Math.min(r,a-l*r);0===l&&(window.cancelAnimationFrame(n.currentRafs[o]),delete n.currentRafs[o],d(e,i.scissorX,i.scissorY,i.scissorWidth,i.viewBoxSize[1])),!n.clearOnly&&(i.count=2*c,i.offset=2*l*r,t(i),l*r+c<a&&(n.currentRafs[o]=window.requestAnimationFrame(function(){s(l+1)})),n.drawCompleted=!1)}(0)}function h(e){return Math.max(o,Math.min(1-o,e))}function f(e,t){for(var n=new Array(256),r=0;r<256;r++)n[r]=e(r/255).concat(t);return n}function m(e,t){return(e>>>8*t)%256/255}function g(e,t,n){for(var r=new Array(8*t),a=0,i=0;i<t;i++)for(var o=0;o<2;o++)for(var s=0;s<4;s++){var l=4*e+s,c=n[64*i+l];63===l&&0===o&&(c*=-1),r[a++]=c}return r}function y(e){return("0"+e).slice(-2)}function b(e){return e<a?"p"+y(e+1)+"_"+y(e+4):"colors"}function v(e,t,n,r,a,o,s,l,c,u,d,p,h,f){for(var m=[[],[]],g=0;g<64;g++)m[0][g]=g===a?1:0,m[1][g]=g===o?1:0;s*=f,l*=f,c*=f,u*=f;var y=e.lines.canvasOverdrag*f,b=e.domain,v=e.canvasWidth*f,M=e.canvasHeight*f,x=e.pad.l*f,z=e.pad.b*f,_=e.layoutHeight*f,A=e.layoutWidth*f,O=e.deselectedLines.color,w=e.deselectedLines.opacity;return i.extendFlat({key:d,resolution:[v,M],viewBoxPos:[s+y,l],viewBoxSize:[c,u],i0:a,i1:o,dim0A:m[0].slice(0,16),dim0B:m[0].slice(16,32),dim0C:m[0].slice(32,48),dim0D:m[0].slice(48,64),dim1A:m[1].slice(0,16),dim1B:m[1].slice(16,32),dim1C:m[1].slice(32,48),dim1D:m[1].slice(48,64),drwLayer:p,contextColor:[O[0]/255,O[1]/255,O[2]/255,"auto"!==w?O[3]*w:Math.max(1/255,Math.pow(1/e.lines.color.length,1/3))],scissorX:(r===t?0:s+y)+(x-y)+A*b.x[0],scissorWidth:(r===n?v-s+y:c+.5)+(r===t?s+y:0),scissorY:l+z+_*b.y[0],scissorHeight:u,viewportX:x-y+A*b.x[0],viewportY:z+_*b.y[0],viewportWidth:v,viewportHeight:M},h)}function M(e){var t=2047,n=Math.max(0,Math.floor(e[0]*t),0),r=Math.min(t,Math.ceil(e[1]*t),t);return[Math.min(n,r),Math.max(n,r)]}t.exports=function(e,t){var o,l,y,x,z,_=t.context,A=t.pick,O=t.regl,w=O._gl,k=w.getParameter(w.ALIASED_LINE_WIDTH_RANGE),T=Math.max(k[0],Math.min(k[1],t.viewModel.plotGlPixelRatio)),S={currentRafs:{},drawCompleted:!0,clearOnly:!1},C=function(e){for(var t={},n=0;n<=a;n+=4)t[b(n)]=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)});return t}(O),E=O.texture(u),q=[];R(t);var D=O({profile:!1,blend:{enable:_,func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:1,dstAlpha:1},equation:{rgb:"add",alpha:"add"},color:[0,0,0,0]},depth:{enable:!_,mask:!0,func:"less",range:[0,1]},cull:{enable:!0,face:"back"},scissor:{enable:!0,box:{x:O.prop("scissorX"),y:O.prop("scissorY"),width:O.prop("scissorWidth"),height:O.prop("scissorHeight")}},viewport:{x:O.prop("viewportX"),y:O.prop("viewportY"),width:O.prop("viewportWidth"),height:O.prop("viewportHeight")},dither:!1,vert:n,frag:r,primitive:"lines",lineWidth:T,attributes:C,uniforms:{resolution:O.prop("resolution"),viewBoxPos:O.prop("viewBoxPos"),viewBoxSize:O.prop("viewBoxSize"),dim0A:O.prop("dim0A"),dim1A:O.prop("dim1A"),dim0B:O.prop("dim0B"),dim1B:O.prop("dim1B"),dim0C:O.prop("dim0C"),dim1C:O.prop("dim1C"),dim0D:O.prop("dim0D"),dim1D:O.prop("dim1D"),loA:O.prop("loA"),hiA:O.prop("hiA"),loB:O.prop("loB"),hiB:O.prop("hiB"),loC:O.prop("loC"),hiC:O.prop("hiC"),loD:O.prop("loD"),hiD:O.prop("hiD"),palette:E,contextColor:O.prop("contextColor"),maskTexture:O.prop("maskTexture"),drwLayer:O.prop("drwLayer"),maskHeight:O.prop("maskHeight")},offset:O.prop("offset"),count:O.prop("count")});function R(e){o=e.model,l=e.viewModel,y=l.dimensions.slice(),x=y[0]?y[0].values.length:0;var t=o.lines,n=A?t.color.map(function(e,n){return n/t.color.length}):t.color,r=function(e,t,n){for(var r=new Array(e*(a+4)),i=0,o=0;o<e;o++){for(var s=0;s<a;s++)r[i++]=s<t.length?t[s].paddedUnitValues[o]:.5;r[i++]=m(o,2),r[i++]=m(o,1),r[i++]=m(o,0),r[i++]=h(n[o])}return r}(x,y,n);(function(e,t,n){for(var r=0;r<=a;r+=4)e[b(r)](g(r/4,t,n))})(C,x,r),!_&&!A&&(E=O.texture(i.extendFlat({data:f(o.unitToColor,255)},u)))}return{render:function(e,t,n){var r,a,i,l=e.length,c=1/0,u=-1/0;for(r=0;r<l;r++)e[r].dim0.canvasX<c&&(c=e[r].dim0.canvasX,a=r),e[r].dim1.canvasX>u&&(u=e[r].dim1.canvasX,i=r);0===l&&d(O,0,0,o.canvasWidth,o.canvasHeight);var h=function(e){var t,n,r,a=[[],[]];for(r=0;r<64;r++){var i=!e&&r<y.length?y[r].brush.filter.getBounds():[-1/0,1/0];a[0][r]=i[0],a[1][r]=i[1]}var o=8*s,l=new Array(o);for(t=0;t<o;t++)l[t]=255;if(!e)for(t=0;t<y.length;t++){var c=t%8,u=(t-c)/8,d=Math.pow(2,c),p=y[t].brush.filter.get();if(!(p.length<2)){var h=M(p[0])[1];for(n=1;n<p.length;n++){var f=M(p[n]);for(r=h+1;r<f[0];r++)l[8*r+u]&=~d;h=Math.max(h,f[1])}}}var m={shape:[8,s],format:"alpha",type:"uint8",mag:"nearest",min:"nearest",data:l};return z?z(m):z=O.texture(m),{maskTexture:z,maskHeight:s,loA:a[0].slice(0,16),loB:a[0].slice(16,32),loC:a[0].slice(32,48),loD:a[0].slice(48,64),hiA:a[1].slice(0,16),hiB:a[1].slice(16,32),hiC:a[1].slice(32,48),hiD:a[1].slice(48,64)}}(_);for(r=0;r<l;r++){var f=e[r],m=f.dim0.crossfilterDimensionIndex,g=f.dim1.crossfilterDimensionIndex,b=f.canvasX,w=f.canvasY,k=b+f.panelSizeX,T=f.plotGlPixelRatio;if(t||!q[m]||q[m][0]!==b||q[m][1]!==k){q[m]=[b,k];var C=v(o,a,i,r,m,g,b,w,f.panelSizeX,f.panelSizeY,f.dim0.crossfilterDimensionIndex,_?0:A?2:1,h,T);S.clearOnly=n;var E=t?o.lines.blockLineCount:x;p(O,D,S,E,x,C)}}},readPixel:function(e,t){return O.read({x:e,y:t,width:1,height:1,data:c}),c},readPixels:function(e,t,n,r){var a=new Uint8Array(4*n*r);return O.read({x:e,y:t,width:n,height:r,data:a}),a},destroy:function(){for(var t in e.style["pointer-events"]="none",E.destroy(),z&&z.destroy(),C)C[t].destroy()},update:R}}}),Pvt=Ee((e,t)=>{var n=mo(),r=Fr(),a=r.isArrayOrTypedArray,i=r.numberFormat,o=(fvt(),E_(dvt)).default,s=es(),l=r.strRotate,c=r.strTranslate,u=q1(),d=vs(),p=xu(),h=K3(),f=h.keyFun,m=h.repeat,g=h.unwrap,y=nme(),b=MP(),v=K2e(),M=_vt();function x(e,t,n){return r.aggNums(e,null,t,n)}function z(e,t){return A(x(Math.min,e,t),x(Math.max,e,t))}function _(e){var t=e.range;return t?A(t[0],t[1]):z(e.values,e._length)}function A(e,t){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(t)||!isFinite(t))&&(t=0),e===t&&(0===e?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function O(e,t,r,a,o){var s=_(r);return a?n.scale.ordinal().domain(a.map(function(e,t){return t?function(n,r){return t[r]??e(n)}:e}(i(r.tickformat),o))).range(a.map(function(n){var r=(n-s[0])/(s[1]-s[0]);return e-t+r*(2*t-e)})):n.scale.linear().domain(s).range([e-t,t])}function w(e){if(e.tickvals){var t=_(e);return n.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(e){return(e-t[0])/(t[1]-t[0])}))}}function k(e){var t=e.map(function(e){return e[0]}),r=e.map(function(e){var t=o(e[1]);return n.rgb("rgb("+t[0]+","+t[1]+","+t[2]+")")}),a="rgb".split("").map(function(e){return n.scale.linear().clamp(!0).domain(t).range(r.map(function(e){return function(t){return t[e]}}(e)))});return function(e){return a.map(function(t){return t(e)})}}function T(e){return e.dimensions.some(function(e){return e.brush.filterSpecified})}function S(e,t,a){var i=g(t),s=i.trace,l=y.convertTypedArray(i.lineColor),c=s.line,u={color:o(s.unselected.line.color),opacity:s.unselected.line.opacity},d=p.extractOpts(c),h=d.reversescale?p.flipScale(i.cscale):i.cscale,f=s.domain,m=s.dimensions,v=e.width,M=s.labelangle,x=s.labelside,z=s.labelfont,A=s.tickfont,O=s.rangefont,w=r.extendDeepNoArrays({},c,{color:l.map(n.scale.linear().domain(_({values:l,range:[d.min,d.max],_length:s._length}))),blockLineCount:b.blockLineCount,canvasOverdrag:b.overdrag*b.canvasPixelRatio}),T=Math.floor(v*(f.x[1]-f.x[0])),S=Math.floor(e.height*(f.y[1]-f.y[0])),C=e.margin||{l:80,r:80,t:100,b:80},E=T,q=S;return{key:a,colCount:m.filter(y.isVisible).length,dimensions:m,tickDistance:b.tickDistance,unitToColor:k(h),lines:w,deselectedLines:u,labelAngle:M,labelSide:x,labelFont:z,tickFont:A,rangeFont:O,layoutWidth:v,layoutHeight:e.height,domain:f,translateX:f.x[0]*v,translateY:e.height-f.y[1]*e.height,pad:C,canvasWidth:E*b.canvasPixelRatio+2*w.canvasOverdrag,canvasHeight:q*b.canvasPixelRatio,width:E,height:q,canvasPixelRatio:b.canvasPixelRatio}}function C(e,t,o){var s=o.width,l=o.height,c=o.dimensions,u=o.canvasPixelRatio,d=function(e){return s*e/Math.max(1,o.colCount-1)},p=b.verticalPadding/l,h=function(e,t){return n.scale.linear().range([t,e-t])}(l,b.verticalPadding),f={key:o.key,xScale:d,model:o,inBrushDrag:!1},m={};return f.dimensions=c.filter(y.isVisible).map(function(s,c){var g=function(e,t){return n.scale.linear().domain(_(e)).range([t,1-t])}(s,p),M=m[s.label];m[s.label]=(M||0)+1;var x=s.label+(M?"__"+M:""),z=s.constraintrange,A=z&&z.length;A&&!a(z[0])&&(z=[z]);var k=A?z.map(function(e){return e.map(g)}):[[-1/0,1/0]],S=s.values;S.length>s._length&&(S=S.slice(0,s._length));var C,E=s.tickvals;function q(e,t){return{val:e,text:C[t]}}function D(e,t){return e.val-t.val}if(a(E)&&E.length){r.isTypedArray(E)&&(E=Array.from(E)),C=s.ticktext,a(C)&&C.length?C.length>E.length?C=C.slice(0,E.length):E.length>C.length&&(E=E.slice(0,C.length)):C=E.map(i(s.tickformat));for(var R=1;R<E.length;R++)if(E[R]<E[R-1]){for(var L=E.map(q).sort(D),I=0;I<E.length;I++)E[I]=L[I].val,C[I]=L[I].text;break}}else E=void 0;return S=y.convertTypedArray(S),{key:x,label:s.label,tickFormat:s.tickformat,tickvals:E,ticktext:C,ordinal:y.isOrdinal(s),multiselect:s.multiselect,xIndex:c,crossfilterDimensionIndex:c,visibleIndex:s._index,height:l,values:S,paddedUnitValues:S.map(g),unitTickvals:E&&E.map(g),xScale:d,x:d(c),canvasX:d(c)*u,unitToPaddedPx:h,domainScale:O(l,b.verticalPadding,s,E,C),ordinalScale:w(s),parent:f,model:o,brush:v.makeBrush(e,A,k,function(){e.linePickActive(!1)},function(){var t=f;t.focusLayer&&t.focusLayer.render(t.panels,!0);var n=T(t);!e.contextShown()&&n?(t.contextLayer&&t.contextLayer.render(t.panels,!0),e.contextShown(!0)):e.contextShown()&&!n&&(t.contextLayer&&t.contextLayer.render(t.panels,!0,!0),e.contextShown(!1))},function(n){if(f.focusLayer.render(f.panels,!0),f.pickLayer&&f.pickLayer.render(f.panels,!0),e.linePickActive(!0),t&&t.filterChanged){var a=g.invert,i=n.map(function(e){return e.map(a).sort(r.sorterAsc)}).sort(function(e,t){return e[0]-t[0]});t.filterChanged(f.key,s._index,i)}})}}),f}function E(e){e.classed(b.cn.axisExtentText,!0).attr("text-anchor","middle").style("cursor","default")}function q(e,t){var n="top"===t?1:-1,r=e*Math.PI/180;return{dir:n,dx:Math.sin(r),dy:Math.cos(r),degrees:e}}function D(e,t,n){for(var r=t.panels||(t.panels=[]),a=e.data(),i=0;i<a.length-1;i++){var o=r[i]||(r[i]={}),s=a[i],l=a[i+1];o.dim0=s,o.dim1=l,o.canvasX=s.canvasX,o.panelSizeX=l.canvasX-s.canvasX,o.panelSizeY=t.model.canvasHeight,o.y=0,o.canvasY=0,o.plotGlPixelRatio=n}}function R(e,t){return s.tickText(e._ax,t,!1).text}function L(e,t){if(e.ordinal)return"";var n=e.domainScale.domain(),r=n[t?n.length-1:0];return R(e.model.dimensions[e.visibleIndex],r)}t.exports=function(e,t,a,i){var o=e._context.staticPlot,p=e._fullLayout,h=p._toppaper,x=p._glcontainer,_=e._context.plotGlPixelRatio,O=e._fullLayout.paper_bgcolor;!function(e){for(var t=0;t<e.length;t++)for(var n=0;n<e[t].length;n++)for(var r=e[t][n].trace,a=r.dimensions,i=0;i<a.length;i++){var o=a[i].values,l=a[i]._ax;l&&(l.range?l.range=A(l.range[0],l.range[1]):l.range=z(o,r._length),l.dtick||(l.dtick=.01*(Math.abs(l.range[1]-l.range[0])||1)),l.tickformat=a[i].tickformat,s.calcTicks(l),l.cleanRange())}}(t);var w=function(){var e=!0,t=!1;return{linePickActive:function(t){return arguments.length?e=!!t:e},contextShown:function(e){return arguments.length?t=!!e:t}}}(),k=t.filter(function(e){return g(e).trace.visible}).map(S.bind(0,a)).map(C.bind(0,w,i));x.each(function(e,t){return r.extendFlat(e,k[t])});var I=x.selectAll(".gl-canvas").each(function(e){e.viewModel=k[0],e.viewModel.plotGlPixelRatio=_,e.viewModel.paperColor=O,e.model=e.viewModel?e.viewModel.model:null}),W=null;I.filter(function(e){return e.pick}).style("pointer-events",o?"none":"auto").on("mousemove",function(e){if(w.linePickActive()&&e.lineLayer&&i&&i.hover){var t=n.event,r=this.width,a=this.height,o=n.mouse(this),s=o[0],l=o[1];if(s<0||l<0||s>=r||l>=a)return;var c=e.lineLayer.readPixel(s,a-1-l),u=0!==c[3],d=u?c[2]+256*(c[1]+256*c[0]):null,p={x:s,y:l,clientX:t.clientX,clientY:t.clientY,dataIndex:e.model.key,curveNumber:d};d!==W&&(u?i.hover(p):i.unhover&&i.unhover(p),W=d)}}),I.style("opacity",function(e){return e.pick?0:1}),h.style("background","rgba(255, 255, 255, 0)");var N=h.selectAll("."+b.cn.parcoords).data(k,f);N.exit().remove(),N.enter().append("g").classed(b.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),N.attr("transform",function(e){return c(e.model.translateX,e.model.translateY)});var P=N.selectAll("."+b.cn.parcoordsControlView).data(m,f);P.enter().append("g").classed(b.cn.parcoordsControlView,!0),P.attr("transform",function(e){return c(e.model.pad.l,e.model.pad.t)});var B=P.selectAll("."+b.cn.yAxis).data(function(e){return e.dimensions},f);B.enter().append("g").classed(b.cn.yAxis,!0),P.each(function(e){D(B,e,_)}),I.each(function(e){if(e.viewModel){!e.lineLayer||i?e.lineLayer=M(this,e):e.lineLayer.update(e),(e.key||0===e.key)&&(e.viewModel[e.key]=e.lineLayer);var t=!e.context||i;e.lineLayer.render(e.viewModel.panels,t)}}),B.attr("transform",function(e){return c(e.xScale(e.xIndex),0)}),B.call(n.behavior.drag().origin(function(e){return e}).on("drag",function(e){var t=e.parent;w.linePickActive(!1),e.x=Math.max(-b.overdrag,Math.min(e.model.width+b.overdrag,n.event.x)),e.canvasX=e.x*e.model.canvasPixelRatio,B.sort(function(e,t){return e.x-t.x}).each(function(t,n){t.xIndex=n,t.x=e===t?t.x:t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio}),D(B,t,_),B.filter(function(t){return 0!==Math.abs(e.xIndex-t.xIndex)}).attr("transform",function(e){return c(e.xScale(e.xIndex),0)}),n.select(this).attr("transform",c(e.x,0)),B.each(function(n,r,a){a===e.parent.key&&(t.dimensions[r]=n)}),t.contextLayer&&t.contextLayer.render(t.panels,!1,!T(t)),t.focusLayer.render&&t.focusLayer.render(t.panels)}).on("dragend",function(e){var t=e.parent;e.x=e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio,D(B,t,_),n.select(this).attr("transform",function(e){return c(e.x,0)}),t.contextLayer&&t.contextLayer.render(t.panels,!1,!T(t)),t.focusLayer&&t.focusLayer.render(t.panels),t.pickLayer&&t.pickLayer.render(t.panels,!0),w.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(t.key,t.dimensions.map(function(e){return e.crossfilterDimensionIndex}))})),B.exit().remove();var F=B.selectAll("."+b.cn.axisOverlays).data(m,f);F.enter().append("g").classed(b.cn.axisOverlays,!0),F.selectAll("."+b.cn.axis).remove();var j=F.selectAll("."+b.cn.axis).data(m,f);j.enter().append("g").classed(b.cn.axis,!0),j.each(function(e){var t=e.model.height/e.model.tickDistance,r=e.domainScale,a=r.domain();n.select(this).call(n.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(t,e.tickFormat).tickValues(e.ordinal?a:null).tickFormat(function(t){return y.isOrdinal(e)?t:R(e.model.dimensions[e.visibleIndex],t)}).scale(r)),d.font(j.selectAll("text"),e.model.tickFont)}),j.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),j.selectAll("text").style("cursor","default");var U=F.selectAll("."+b.cn.axisHeading).data(m,f);U.enter().append("g").classed(b.cn.axisHeading,!0);var V=U.selectAll("."+b.cn.axisTitle).data(m,f);V.enter().append("text").classed(b.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",o?"none":"auto"),V.text(function(e){return e.label}).each(function(t){var r=n.select(this);d.font(r,t.model.labelFont),u.convertToTspans(r,e)}).attr("transform",function(e){var t=q(e.model.labelAngle,e.model.labelSide),n=b.axisTitleOffset;return(t.dir>0?"":c(0,2*n+e.model.height))+l(t.degrees)+c(-n*t.dx,-n*t.dy)}).attr("text-anchor",function(e){var t=q(e.model.labelAngle,e.model.labelSide);return 2*Math.abs(t.dx)>Math.abs(t.dy)?t.dir*t.dx<0?"start":"end":"middle"});var H=F.selectAll("."+b.cn.axisExtent).data(m,f);H.enter().append("g").classed(b.cn.axisExtent,!0);var X=H.selectAll("."+b.cn.axisExtentTop).data(m,f);X.enter().append("g").classed(b.cn.axisExtentTop,!0),X.attr("transform",c(0,-b.axisExtentOffset));var G=X.selectAll("."+b.cn.axisExtentTopText).data(m,f);G.enter().append("text").classed(b.cn.axisExtentTopText,!0).call(E),G.text(function(e){return L(e,!0)}).each(function(e){d.font(n.select(this),e.model.rangeFont)});var Y=H.selectAll("."+b.cn.axisExtentBottom).data(m,f);Y.enter().append("g").classed(b.cn.axisExtentBottom,!0),Y.attr("transform",function(e){return c(0,e.model.height+b.axisExtentOffset)});var Z=Y.selectAll("."+b.cn.axisExtentBottomText).data(m,f);Z.enter().append("text").classed(b.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(E),Z.text(function(e){return L(e,!1)}).each(function(e){d.font(n.select(this),e.model.rangeFont)}),v.ensureAxisBrush(F,O,e)}}),dme=Ee((e,t)=>{var n=Pvt(),r=LZ(),a=nme().isVisible,i={};function o(e,t,n){var r=t.indexOf(n),a=e.indexOf(r);return-1===a&&(a+=t.length),a}(t.exports=function(e,t){var s=e._fullLayout;if(r(e,[],i)){var l={},c={},u={},d={},p=s._size;t.forEach(function(t,n){var r=t[0].trace;u[n]=r.index;var a=d[n]=r.index;l[n]=e.data[a].dimensions,c[n]=e.data[a].dimensions.slice()});n(e,t,{width:p.w,height:p.h,margin:{t:p.t,r:p.r,b:p.b,l:p.l}},{filterChanged:function(t,n,r){var a=c[t][n],i=r.map(function(e){return e.slice()}),o="dimensions["+n+"].constraintrange",l=s._tracePreGUI[e._fullData[u[t]]._fullInput.uid];if(void 0===l[o]){var p=a.constraintrange;l[o]=p||null}var h=e._fullData[u[t]].dimensions[n];i.length?(1===i.length&&(i=i[0]),a.constraintrange=i,h.constraintrange=i.slice(),i=[i]):(delete a.constraintrange,delete h.constraintrange,i=null);var f={};f[o]=i,e.emit("plotly_restyle",[f,[d[t]]])},hover:function(t){e.emit("plotly_hover",t)},unhover:function(t){e.emit("plotly_unhover",t)},axesMoved:function(t,n){var r=function(e,t){return function(n,r){return o(e,t,n)-o(e,t,r)}}(n,c[t].filter(a));l[t].sort(r),c[t].filter(function(e){return!a(e)}).sort(function(e){return c[t].indexOf(e)}).forEach(function(e){l[t].splice(l[t].indexOf(e),1),l[t].splice(c[t].indexOf(e),0,e)}),e.emit("plotly_restyle",[{dimensions:[l[t]]},[d[t]]])}})}}).reglPrecompiled=i}),Uvt=Ee(e=>{var t=mo(),n=mp().getModuleCalcData,r=dme(),a=Dv();e.name="parcoords",e.plot=function(e){var t=n(e.calcdata,"parcoords")[0];t.length&&r(e,t)},e.clean=function(e,t,n,r){var a=r._has&&r._has("parcoords"),i=t._has&&t._has("parcoords");a&&!i&&(r._paperdiv.selectAll(".parcoords").remove(),r._glimages.selectAll("*").remove())},e.toSVG=function(e){var n=e._fullLayout._glimages,r=t.select(e).selectAll(".svg-container");r.filter(function(e,t){return t===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus").each(function(){var e=this,t=e.toDataURL("image/png");n.append("svg:image").attr({xmlns:a.svg,"xlink:href":t,preserveAspectRatio:"none",x:0,y:0,width:e.style.width,height:e.style.height})}),window.setTimeout(function(){t.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}}),Vvt=Ee((e,t)=>{t.exports={attributes:Y2e(),supplyDefaults:rvt(),calc:avt(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:Uvt(),categories:["gl","regl","noOpacity","noHover"],meta:{description:["Parallel coordinates for multidimensional exploratory data analysis.","The samples are specified in `dimensions`.","The colors are set in `line.color`."].join(" ")}}}),Xvt=Ee((e,t)=>{var n=Vvt();n.plot=dme(),t.exports=n}),Zvt=Ee((e,t)=>{t.exports=Xvt()}),fme=Ee((e,t)=>{var n=ms().extendFlat,r=S1(),a=Mu(),i=Oc(),{hovertemplateAttrs:o,templatefallbackAttrs:s}=p1(),l=ad().attributes,c=n({editType:"calc"},i("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot",description:["Sets the shape of the paths.","If `linear`, paths are composed of straight lines.","If `hspline`, paths are composed of horizontal curved splines"].join(" ")},hovertemplate:o({editType:"plot",arrayOk:!1},{keys:["count","probability"],description:["This value here applies when hovering over lines."].join(" ")}),hovertemplatefallback:s({editType:"plot"})});t.exports={domain:l({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:n({},r.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot",description:["Sets the hover interaction mode for the parcats diagram.","If `category`, hover interaction take place per category.","If `color`, hover interactions take place per color per category.","If `dimension`, hover interactions take place across all categories per dimension."].join(" ")},hovertemplate:o({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"],description:["This value here applies when hovering over dimensions.","Note that *categorycount*, *colorcount* and *bandcolorcount*","are only available when `hoveron` contains the *color* flag. "].join(" ")}),hovertemplatefallback:s({editType:"plot"}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot",description:["Sets the drag interaction mode for categories and dimensions.","If `perpendicular`, the categories can only move along a line perpendicular to the paths.","If `freeform`, the categories can freely move on the plane.","If `fixed`, the categories and dimensions are stationary."].join(" ")},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot",description:"Sort paths so that like colors are bundled together within each category."},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot",description:["Sets the path sorting algorithm.","If `forward`, sort paths based on dimension categories from left to right.","If `backward`, sort paths based on dimensions categories from right to left."].join(" ")},labelfont:a({editType:"calc",description:"Sets the font for the `dimension` labels."}),tickfont:a({autoShadowDflt:!0,editType:"calc",description:"Sets the font for the `category` labels."}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc",description:"The shown name of the dimension."},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc",description:["Specifies the ordering logic for the categories in the dimension.","By default, plotly uses *trace*, which specifies the order that is present in the data supplied.","Set `categoryorder` to *category ascending* or *category descending* if order should be determined by","the alphanumerical order of the category names.","Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category","is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to","the *trace* mode. The unspecified categories will follow the categories in `categoryarray`."].join(" ")},categoryarray:{valType:"data_array",editType:"calc",description:["Sets the order in which categories in this dimension appear.","Only has an effect if `categoryorder` is set to *array*.","Used with `categoryorder`."].join(" ")},ticktext:{valType:"data_array",editType:"calc",description:["Sets alternative tick labels for the categories in this dimension.","Only has an effect if `categoryorder` is set to *array*.","Should be an array the same length as `categoryarray`","Used with `categoryorder`."].join(" ")},values:{valType:"data_array",dflt:[],editType:"calc",description:["Dimension values. `values[n]` represents the category value of the `n`th point in the dataset,","therefore the `values` vector for all dimensions must be the same (longer vectors","will be truncated)."].join(" ")},displayindex:{valType:"integer",editType:"calc",description:["The display index of dimension, from left to right, zero indexed, defaults to dimension","index."].join(" ")},editType:"calc",description:"The dimensions (variables) of the parallel categories diagram.",visible:{valType:"boolean",dflt:!0,editType:"calc",description:"Shows the dimension when set to `true` (the default). Hides the dimension for `false`."}},line:c,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc",description:["The number of observations represented by each state. Defaults to 1 so that each state represents","one observation"].join(" ")},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}}),ngt=Ee((e,t)=>{var n=Fr(),r=d2().hasColorscale,a=kh(),i=ad().defaults,o=Pp(),s=fme(),l=IZ(),c=Lp().isTypedArraySpec;function u(e,t){function r(r,a){return n.coerce(e,t,s.dimensions,r,a)}var a=r("values"),i=r("visible");if(a&&a.length||(i=t.visible=!1),i){r("label"),r("displayindex",t._index);var o,l=e.categoryarray,u=n.isArrayOrTypedArray(l)&&l.length>0||c(l);u&&(o="array");var d=r("categoryorder",o);"array"===d?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),!u&&"array"===d&&(t.categoryorder="trace")}}t.exports=function(e,t,c,d){function p(r,a){return n.coerce(e,t,s,r,a)}var h=o(e,t,{name:"dimensions",handleItemDefaults:u}),f=function(e,t,i,o,s){s("line.shape"),s("line.hovertemplate"),s("line.hovertemplatefallback");var l=s("line.color",o.colorway[0]);if(r(e,"line")&&n.isArrayOrTypedArray(l)){if(l.length)return s("line.colorscale"),a(e,t,o,s,{prefix:"line.",cLetter:"c"}),l.length;t.line.color=i}return 1/0}(e,t,c,d,p);i(t,d,p),(!Array.isArray(h)||!h.length)&&(t.visible=!1),l(t,h,"values",f),p("hoveron"),p("hovertemplate"),p("hovertemplatefallback"),p("arrangement"),p("bundlecolors"),p("sortpaths"),p("counts");var m=d.font;n.coerceFont(p,"labelfont",m,{overrideDflt:{size:Math.round(m.size)}}),n.coerceFont(p,"tickfont",m,{autoShadowDflt:!0,overrideDflt:{size:Math.round(m.size/1.2)}})}}),igt=Ee((e,t)=>{var n=K3().wrap,r=d2().hasColorscale,a=f2(),i=use(),o=vs(),s=Fr(),l=xs();function c(e,t,n,r){return{dimensionInd:e,categoryInd:t,categoryValue:n,displayInd:t,categoryLabel:r,valueInds:[],count:0,dragY:null}}function u(e,t,n){e.valueInds.push(t),e.count+=n}function d(e,t,n){return{categoryInds:e,color:t,rawColor:n,valueInds:[],count:0}}function p(e,t,n){e.valueInds.push(t),e.count+=n}t.exports=function(e,t){var h=s.filterVisible(t.dimensions);if(0===h.length)return[];var f,m,g,y=h.map(function(e){var t;if("trace"===e.categoryorder)t=null;else if("array"===e.categoryorder)t=e.categoryarray;else{t=i(e.values);for(var n=!0,r=0;r<t.length;r++)if(!l(t[r])){n=!1;break}t.sort(n?s.sorterAsc:void 0),"category descending"===e.categoryorder&&(t=t.reverse())}return function(e,t){t=null==t?[]:t.map(function(e){return e});var n={},r={},a=[];t.forEach(function(e,t){n[e]=0,r[e]=t});for(var i=0;i<e.length;i++){var o,s=e[i];void 0===n[s]?(n[s]=1,o=t.push(s)-1,r[s]=o):(n[s]++,o=r[s]),a.push(o)}var l=t.map(function(e){return n[e]});return{uniqueValues:t,uniqueCounts:l,inds:a}}(e.values,t)});f=s.isArrayOrTypedArray(t.counts)?t.counts:[t.counts],function(e){var t,n=e.map(function(e){return e.displayindex});if(function(e){for(var t=new Array(e.length),n=0;n<e.length;n++){if(e[n]<0||e[n]>=e.length||void 0!==t[e[n]])return!1;t[e[n]]=!0}return!0}(n))for(t=0;t<e.length;t++)e[t]._displayindex=e[t].displayindex;else for(t=0;t<e.length;t++)e[t]._displayindex=t}(h),h.forEach(function(e,t){!function(e,t){e._categoryarray=t.uniqueValues,null===e.ticktext||void 0===e.ticktext?e._ticktext=[]:e._ticktext=e.ticktext.slice();for(var n=e._ticktext.length;n<t.uniqueValues.length;n++)e._ticktext.push(t.uniqueValues[n])}(e,y[t])});var b,v=t.line;function M(e){var t,n;return s.isArrayOrTypedArray(v.color)?n=t=v.color[e%v.color.length]:t=v.color,{color:b(t),rawColor:n}}v?(r(t,"line")&&a(e,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),b=o.tryColorscale(v)):b=s.identity;var x,z,_=h[0].values.length,A={},O=y.map(function(e){return e.inds});for(g=0,x=0;x<_;x++){var w=[];for(z=0;z<O.length;z++)w.push(O[z][x]);m=f[x%f.length],g+=m;var k=M(x),T=w+"-"+k.rawColor;void 0===A[T]&&(A[T]=d(w,k.color,k.rawColor)),p(A[T],x,m)}var S=h.map(function(e,t){return function(e,t,n,r,a){return{dimensionInd:e,containerInd:t,displayInd:n,dimensionLabel:r,count:a,categories:[],dragX:null}}(t,e._index,e._displayindex,e.label,g)});for(x=0;x<_;x++)for(m=f[x%f.length],z=0;z<S.length;z++){var C=S[z].containerInd,E=y[z].inds[x],q=S[z].categories;if(void 0===q[E]){var D=t.dimensions[C]._categoryarray[E],R=t.dimensions[C]._ticktext[E];q[E]=c(z,E,D,R)}u(q[E],x,m)}return n(function(e,t,n){var r=e.map(function(e){return e.categories.length}).reduce(function(e,t){return Math.max(e,t)});return{dimensions:e,paths:t,trace:void 0,maxCats:r,count:n}}(S,A,g))}}),pgt=Ee((e,t)=>{var n=mo(),r=(hO(),E_(fO)).interpolateNumber,a=pj(),i=_d(),o=Fr(),s=o.strTranslate,l=vs(),c=Vh(),u=q1();function d(e,t,r,a){var i=t._context.staticPlot,c=e.map(I.bind(0,t,r)),d=a.selectAll("g.parcatslayer").data([null]);d.enter().append("g").attr("class","parcatslayer").style("pointer-events",i?"none":"all");var y=d.selectAll("g.trace.parcats").data(c,p),b=y.enter().append("g").attr("class","trace parcats");y.attr("transform",function(e){return s(e.x,e.y)}),b.append("g").attr("class","paths");var x=y.select("g.paths").selectAll("path.path").data(function(e){return e.paths},p);x.attr("fill",function(e){return e.model.color});var A=x.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(e){return e.model.color}).attr("fill-opacity",0);M(A),x.attr("d",function(e){return e.svgD}),A.empty()||x.sort(f),x.exit().remove(),x.on("mouseover",m).on("mouseout",g).on("click",v),b.append("g").attr("class","dimensions");var O=y.select("g.dimensions").selectAll("g.dimension").data(function(e){return e.dimensions},p);O.enter().append("g").attr("class","dimension"),O.attr("transform",function(e){return s(e.x,0)}),O.exit().remove();var w=O.selectAll("g.category").data(function(e){return e.categories},p),k=w.enter().append("g").attr("class","category");w.attr("transform",function(e){return s(0,e.y)}),k.append("rect").attr("class","catrect").attr("pointer-events","none"),w.select("rect.catrect").attr("fill","none").attr("width",function(e){return e.width}).attr("height",function(e){return e.height}),z(k);var D=w.selectAll("rect.bandrect").data(function(e){return e.bands},p);D.each(function(){o.raiseToTop(this)}),D.attr("fill",function(e){return e.color});var R=D.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(e){return e.color}).attr("fill-opacity",0);D.attr("fill",function(e){return e.color}).attr("width",function(e){return e.width}).attr("height",function(e){return e.height}).attr("y",function(e){return e.y}).attr("cursor",function(e){return"fixed"===e.parcatsViewModel.arrangement?"default":"perpendicular"===e.parcatsViewModel.arrangement?"ns-resize":"move"}),_(R),D.exit().remove(),k.append("text").attr("class","catlabel").attr("pointer-events","none"),w.select("text.catlabel").attr("text-anchor",function(e){return h(e)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(e){return h(e)?e.width+5:-5}).attr("y",function(e){return e.height/2}).text(function(e){return e.model.categoryLabel}).each(function(e){l.font(n.select(this),e.parcatsViewModel.categorylabelfont),u.convertToTspans(n.select(this),t)}),k.append("text").attr("class","dimlabel"),w.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(e){return"fixed"===e.parcatsViewModel.arrangement?"default":"ew-resize"}).attr("x",function(e){return e.width/2}).attr("y",-5).text(function(e,t){return 0===t?e.parcatsViewModel.model.dimensions[e.model.dimensionInd].dimensionLabel:null}).each(function(e){l.font(n.select(this),e.parcatsViewModel.labelfont)}),w.selectAll("rect.bandrect").on("mouseover",T).on("mouseout",S),w.exit().remove(),O.call(n.behavior.drag().origin(function(e){return{x:e.x,y:0}}).on("dragstart",C).on("drag",E).on("dragend",q)),y.each(function(e){e.traceSelection=n.select(this),e.pathSelection=n.select(this).selectAll("g.paths").selectAll("path.path"),e.dimensionSelection=n.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),y.exit().remove()}function p(e){return e.key}function h(e){var t=e.parcatsViewModel.dimensions.length,n=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===n}function f(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColor<t.model.rawColor?-1:0}function m(e){if(!e.parcatsViewModel.dragDimension&&-1===e.parcatsViewModel.hoverinfoItems.indexOf("skip")){o.raiseToTop(this),x(n.select(this));var t=y(e),r=b(e);if(e.parcatsViewModel.graphDiv.emit("plotly_hover",{points:t,event:n.event,constraints:r}),-1===e.parcatsViewModel.hoverinfoItems.indexOf("none")){var a,s,l,u=n.mouse(this)[0],d=e.parcatsViewModel.graphDiv,p=e.parcatsViewModel.trace,h=d._fullLayout,f=h._paperdiv.node().getBoundingClientRect(),m=e.parcatsViewModel.graphDiv.getBoundingClientRect();for(l=0;l<e.leftXs.length-1;l++)if(e.leftXs[l]+e.dimWidths[l]-2<=u&&u<=e.leftXs[l+1]+2){var g=e.parcatsViewModel.dimensions[l],v=e.parcatsViewModel.dimensions[l+1];a=(g.x+g.width+v.x)/2,s=(e.topYs[l]+e.topYs[l+1]+e.height)/2;break}var M=e.parcatsViewModel.x+a,z=e.parcatsViewModel.y+s,_=c.mostReadable(e.model.color,["black","white"]),A=e.model.count,O=A/e.parcatsViewModel.model.count,w={countLabel:A,probabilityLabel:O.toFixed(3)},k=[];-1!==e.parcatsViewModel.hoverinfoItems.indexOf("count")&&k.push(["Count:",w.countLabel].join(" ")),-1!==e.parcatsViewModel.hoverinfoItems.indexOf("probability")&&k.push(["P:",w.probabilityLabel].join(" "));var T=k.join("<br>"),S=n.mouse(d)[0];i.loneHover({trace:p,x:M-f.left+m.left,y:z-f.top+m.top,text:T,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:_,idealAlign:S<M?"right":"left",hovertemplate:(p.line||{}).hovertemplate,hovertemplateLabels:w,eventData:[{data:p._input,fullData:p,count:A,probability:O}]},{container:h._hoverlayer.node(),outerContainer:h._paper.node(),gd:d})}}}function g(e){if(!e.parcatsViewModel.dragDimension&&(M(n.select(this)),i.loneUnhover(e.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()),e.parcatsViewModel.pathSelection.sort(f),-1===e.parcatsViewModel.hoverinfoItems.indexOf("skip"))){var t=y(e),r=b(e);e.parcatsViewModel.graphDiv.emit("plotly_unhover",{points:t,event:n.event,constraints:r})}}function y(e){for(var t=[],n=D(e.parcatsViewModel),r=0;r<e.model.valueInds.length;r++){var a=e.model.valueInds[r];t.push({curveNumber:n,pointNumber:a})}return t}function b(e){for(var t={},n=e.parcatsViewModel.model.dimensions,r=0;r<n.length;r++){var a=n[r],i=a.categories[e.model.categoryInds[r]];t[a.containerInd]=i.categoryValue}return void 0!==e.model.rawColor&&(t.color=e.model.rawColor),t}function v(e){if(-1===e.parcatsViewModel.hoverinfoItems.indexOf("skip")){var t=y(e),r=b(e);e.parcatsViewModel.graphDiv.emit("plotly_click",{points:t,event:n.event,constraints:r})}}function M(e){e.attr("fill",function(e){return e.model.color}).attr("fill-opacity",.6).attr("stroke","lightgray").attr("stroke-width",.2).attr("stroke-opacity",1)}function x(e){e.attr("fill-opacity",.8).attr("stroke",function(e){return c.mostReadable(e.model.color,["black","white"])}).attr("stroke-width",.3)}function z(e){e.select("rect.catrect").attr("stroke","black").attr("stroke-width",1).attr("stroke-opacity",1)}function _(e){e.attr("stroke","black").attr("stroke-width",.2).attr("stroke-opacity",1).attr("fill-opacity",1)}function A(e){var t=e.parcatsViewModel.pathSelection,n=e.categoryViewModel.model.dimensionInd,r=e.categoryViewModel.model.categoryInd;return t.filter(function(t){return t.model.categoryInds[n]===r&&t.model.color===e.color})}function O(e,t,r){var a=n.select(e).datum(),i=a.categoryViewModel.model,o=a.parcatsViewModel.graphDiv,s=n.select(e.parentNode).selectAll("rect.bandrect"),l=[];s.each(function(e){A(e).each(function(e){Array.prototype.push.apply(l,y(e))})});var c={};c[i.dimensionInd]=i.categoryValue,o.emit(t,{points:l,event:r,constraints:c})}function w(e,t,r){var a=n.select(e).datum(),i=a.categoryViewModel.model,o=a.parcatsViewModel.graphDiv,s=A(a),l=[];s.each(function(e){Array.prototype.push.apply(l,y(e))});var c={};c[i.dimensionInd]=i.categoryValue,void 0!==a.rawColor&&(c.color=a.rawColor),o.emit(t,{points:l,event:r,constraints:c})}function k(e,t,r){e._fullLayout._calcInverseTransform(e);var a,i,o=e._fullLayout._invScaleX,s=e._fullLayout._invScaleY,l=n.select(r.parentNode).select("rect.catrect"),c=l.node().getBoundingClientRect(),u=l.datum(),d=u.parcatsViewModel,p=d.model.dimensions[u.model.dimensionInd],h=d.trace,f=c.top+c.height/2;d.dimensions.length>1&&p.displayInd===d.dimensions.length-1?(a=c.left,i="left"):(a=c.left+c.width,i="right");var m=u.model.count,g=u.model.categoryLabel,y=m/u.parcatsViewModel.model.count,b={countLabel:m,categoryLabel:g,probabilityLabel:y.toFixed(3)},v=[];-1!==u.parcatsViewModel.hoverinfoItems.indexOf("count")&&v.push(["Count:",b.countLabel].join(" ")),-1!==u.parcatsViewModel.hoverinfoItems.indexOf("probability")&&v.push(["P("+b.categoryLabel+"):",b.probabilityLabel].join(" "));var M=v.join("<br>");return{trace:h,x:o*(a-t.left),y:s*(f-t.top),text:M,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:i,hovertemplate:h.hovertemplate,hovertemplateLabels:b,eventData:[{data:h._input,fullData:h,count:m,category:g,probability:y}]}}function T(e){if(!e.parcatsViewModel.dragDimension&&-1===e.parcatsViewModel.hoverinfoItems.indexOf("skip")){if(n.mouse(this)[1]<-1)return;var t,r=e.parcatsViewModel.graphDiv,a=r._fullLayout,s=a._paperdiv.node().getBoundingClientRect(),l=e.parcatsViewModel.hoveron,u=this;if("color"===l?(function(e){var t=n.select(e).datum(),r=A(t);x(r),r.each(function(){o.raiseToTop(this)}),n.select(e.parentNode).selectAll("rect.bandrect").filter(function(e){return e.color===t.color}).each(function(){o.raiseToTop(this),function(e){e.attr("stroke","black").attr("stroke-width",1.5)}(n.select(this))})}(u),w(u,"plotly_hover",n.event)):(function(e){n.select(e.parentNode).selectAll("rect.bandrect").each(function(e){var t=A(e);x(t),t.each(function(){o.raiseToTop(this)})}),function(e){e.select("rect.catrect").attr("stroke","black").attr("stroke-width",2.5)}(n.select(e.parentNode))}(u),O(u,"plotly_hover",n.event)),-1===e.parcatsViewModel.hoverinfoItems.indexOf("none"))"category"===l?t=k(r,s,u):"color"===l?t=function(e,t,r){e._fullLayout._calcInverseTransform(e);var a,i,o=e._fullLayout._invScaleX,s=e._fullLayout._invScaleY,l=r.getBoundingClientRect(),u=n.select(r).datum(),d=u.categoryViewModel,p=d.parcatsViewModel,h=p.model.dimensions[d.model.dimensionInd],f=p.trace,m=l.y+l.height/2;p.dimensions.length>1&&h.displayInd===p.dimensions.length-1?(a=l.left,i="left"):(a=l.left+l.width,i="right");var g=d.model.categoryLabel,y=u.parcatsViewModel.model.count,b=0;u.categoryViewModel.bands.forEach(function(e){e.color===u.color&&(b+=e.count)});var v=d.model.count,M=0;p.pathSelection.each(function(e){e.model.color===u.color&&(M+=e.model.count)});var x=b/y,z=b/M,_=b/v,A={countLabel:b,categoryLabel:g,probabilityLabel:x.toFixed(3)},O=[];-1!==d.parcatsViewModel.hoverinfoItems.indexOf("count")&&O.push(["Count:",A.countLabel].join(" ")),-1!==d.parcatsViewModel.hoverinfoItems.indexOf("probability")&&(O.push("P(color ∩ "+g+"): "+A.probabilityLabel),O.push("P("+g+" | color): "+z.toFixed(3)),O.push("P(color | "+g+"): "+_.toFixed(3)));var w=O.join("<br>"),k=c.mostReadable(u.color,["black","white"]);return{trace:f,x:o*(a-t.left),y:s*(m-t.top),text:w,color:u.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:k,fontSize:10,idealAlign:i,hovertemplate:f.hovertemplate,hovertemplateLabels:A,eventData:[{data:f._input,fullData:f,category:g,count:y,probability:x,categorycount:v,colorcount:M,bandcolorcount:b}]}}(r,s,u):"dimension"===l&&(t=function(e,t,r){var a=[];return n.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){a.push(k(e,t,this))}),a}(r,s,u)),t&&i.loneHover(t,{container:a._hoverlayer.node(),outerContainer:a._paper.node(),gd:r})}}function S(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(M(t.pathSelection),z(t.dimensionSelection.selectAll("g.category")),_(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),i.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(f),-1===t.hoverinfoItems.indexOf("skip"))){"color"===e.parcatsViewModel.hoveron?w(this,"plotly_unhover",n.event):O(this,"plotly_unhover",n.event)}}function C(e){"fixed"!==e.parcatsViewModel.arrangement&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map(function(e){return e.displayInd}),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,n.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=n.mouse(this)[0],a=n.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=a&&a<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(e){return e.displayInd}),t.model.dragY=t.y,o.raiseToTop(this.parentNode),n.select(this.parentNode).selectAll("rect.bandrect").each(function(t){t.y<a&&a<=t.y+t.height&&(e.potentialClickBand=this)}))}),e.parcatsViewModel.dragDimension=e,i.loneUnhover(e.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()))}function E(e){if("fixed"!==e.parcatsViewModel.arrangement&&(e.dragHasMoved=!0,null!==e.dragDimensionDisplayInd)){var t=e.dragDimensionDisplayInd,r=t-1,a=t+1,i=e.parcatsViewModel.dimensions[t];if(null!==e.dragCategoryDisplayInd){var o=i.categories[e.dragCategoryDisplayInd];o.model.dragY+=n.event.dy;var s=o.model.dragY,l=o.model.displayInd,c=i.categories,u=c[l-1],d=c[l+1];void 0!==u&&s<u.y+u.height/2&&(o.model.displayInd=u.model.displayInd,u.model.displayInd=l),void 0!==d&&s+o.height>d.y+d.height/2&&(o.model.displayInd=d.model.displayInd,d.model.displayInd=l),e.dragCategoryDisplayInd=o.model.displayInd}if(null===e.dragCategoryDisplayInd||"freeform"===e.parcatsViewModel.arrangement){i.model.dragX=n.event.x;var p=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[a];void 0!==p&&i.model.dragX<p.x+p.width&&(i.model.displayInd=p.model.displayInd,p.model.displayInd=t),void 0!==h&&i.model.dragX+i.width>h.x&&(i.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=i.model.displayInd}P(e.parcatsViewModel),N(e.parcatsViewModel),L(e.parcatsViewModel),R(e.parcatsViewModel)}}function q(e){if("fixed"!==e.parcatsViewModel.arrangement&&null!==e.dragDimensionDisplayInd){n.select(this).selectAll("text").attr("font-weight","normal");var t={},r=D(e.parcatsViewModel),i=e.parcatsViewModel.model.dimensions.map(function(e){return e.displayInd}),o=e.initialDragDimensionDisplayInds.some(function(e,t){return e!==i[t]});o&&i.forEach(function(n,r){var a=e.parcatsViewModel.model.dimensions[r].containerInd;t["dimensions["+a+"].displayindex"]=n});var s=!1;if(null!==e.dragCategoryDisplayInd){var l=e.model.categories.map(function(e){return e.displayInd});if(s=e.initialDragCategoryDisplayInds.some(function(e,t){return e!==l[t]})){var c=e.model.categories.slice().sort(function(e,t){return e.displayInd-t.displayInd}),u=c.map(function(e){return e.categoryValue}),d=c.map(function(e){return e.categoryLabel});t["dimensions["+e.model.containerInd+"].categoryarray"]=[u],t["dimensions["+e.model.containerInd+"].ticktext"]=[d],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(-1===e.parcatsViewModel.hoverinfoItems.indexOf("skip")&&!e.dragHasMoved&&e.potentialClickBand&&("color"===e.parcatsViewModel.hoveron?w(e.potentialClickBand,"plotly_click",n.event.sourceEvent):O(e.potentialClickBand,"plotly_click",n.event.sourceEvent)),e.model.dragX=null,null!==e.dragCategoryDisplayInd)e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd].model.dragY=null,e.dragCategoryDisplayInd=null;e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,P(e.parcatsViewModel),N(e.parcatsViewModel),n.transition().duration(300).ease("cubic-in-out").each(function(){L(e.parcatsViewModel,!0),R(e.parcatsViewModel,!0)}).each("end",function(){(o||s)&&a.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function D(e){for(var t,n=e.graphDiv._fullData,r=0;r<n.length;r++)if(e.key===n[r].uid){t=r;break}return t}function R(e,t){var n;void 0===t&&(t=!1),e.pathSelection.data(function(e){return e.paths},p),(n=e.pathSelection,t?n.transition():n).attr("d",function(e){return e.svgD})}function L(e,t){function r(e){return t?e.transition():e}void 0===t&&(t=!1),e.dimensionSelection.data(function(e){return e.dimensions},p);var a=e.dimensionSelection.selectAll("g.category").data(function(e){return e.categories},p);r(e.dimensionSelection).attr("transform",function(e){return s(e.x,0)}),r(a).attr("transform",function(e){return s(0,e.y)}),a.select(".dimlabel").text(function(e,t){return 0===t?e.parcatsViewModel.model.dimensions[e.model.dimensionInd].dimensionLabel:null}),a.select(".catlabel").attr("text-anchor",function(e){return h(e)?"start":"end"}).attr("x",function(e){return h(e)?e.width+5:-5}).each(function(e){var t,r;h(e)?(t=e.width+5,r="start"):(t=-5,r="end"),n.select(this).selectAll("tspan").attr("x",t).attr("text-anchor",r)});var i=a.selectAll("rect.bandrect").data(function(e){return e.bands},p),l=i.enter().append("rect").attr("class","bandrect").attr("cursor","move").attr("stroke-opacity",0).attr("fill",function(e){return e.color}).attr("fill-opacity",0);i.attr("fill",function(e){return e.color}).attr("width",function(e){return e.width}).attr("height",function(e){return e.height}).attr("y",function(e){return e.y}),_(l),i.each(function(){o.raiseToTop(this)}),i.exit().remove()}function I(e,t,n){var r,a=n[0],i=t.margin||{l:80,r:80,t:100,b:80},o=a.trace,s=o.domain,l=t.width,c=t.height,u=Math.floor(l*(s.x[1]-s.x[0])),d=Math.floor(c*(s.y[1]-s.y[0])),p=s.x[0]*l+i.l,h=t.height-s.y[1]*t.height+i.t,f=o.line.shape;r="all"===o.hoverinfo?["count","probability"]:(o.hoverinfo||"").split("+");var m={trace:o,key:o.uid,model:a,x:p,y:h,width:u,height:d,hoveron:o.hoveron,hoverinfoItems:r,arrangement:o.arrangement,bundlecolors:o.bundlecolors,sortpaths:o.sortpaths,labelfont:o.labelfont,categorylabelfont:o.tickfont,pathShape:f,dragDimension:null,margin:i,paths:[],dimensions:[],graphDiv:e,traceSelection:null,pathSelection:null,dimensionSelection:null};return a.dimensions&&(P(m),N(m)),m}function W(e,t,n,a,i){var o,s,l=[],c=[];for(s=0;s<n.length-1;s++)o=r(n[s]+e[s],e[s+1]),l.push(o(i)),c.push(o(1-i));var u="M "+e[0]+","+t[0];for(u+="l"+n[0]+",0 ",s=1;s<n.length;s++)u+="C"+l[s-1]+","+t[s-1]+" "+c[s-1]+","+t[s]+" "+e[s]+","+t[s],u+="l"+n[s]+",0 ";for(u+="l0,"+a+" ",u+="l -"+n[n.length-1]+",0 ",s=n.length-2;s>=0;s--)u+="C"+c[s]+","+(t[s+1]+a)+" "+l[s]+","+(t[s]+a)+" "+(e[s]+n[s])+","+(t[s]+a),u+="l-"+n[s]+",0 ";return u+="Z"}function N(e){var t=e.dimensions,n=e.model,r=t.map(function(e){return e.categories.map(function(e){return e.y})}),a=e.model.dimensions.map(function(e){return e.categories.map(function(e){return e.displayInd})}),i=e.model.dimensions.map(function(e){return e.displayInd}),o=e.dimensions.map(function(e){return e.model.dimensionInd}),s=t.map(function(e){return e.x}),l=t.map(function(e){return e.width}),c=[];for(var u in n.paths)n.paths.hasOwnProperty(u)&&c.push(n.paths[u]);function d(e){var t=e.categoryInds.map(function(e,t){return a[t][e]});return o.map(function(e){return t[e]})}c.sort(function(t,n){var r=d(t),a=d(n);return"backward"===e.sortpaths&&(r.reverse(),a.reverse()),r.push(t.valueInds[0]),a.push(n.valueInds[0]),e.bundlecolors&&(r.unshift(t.rawColor),a.unshift(n.rawColor)),r<a?-1:r>a?1:0});for(var p=new Array(c.length),h=t[0].model.count,f=t[0].categories.map(function(e){return e.height}).reduce(function(e,t){return e+t}),m=0;m<c.length;m++){var g,y,b=c[m];g=h>0?f*(b.count/h):0;for(var v=new Array(r.length),M=0;M<b.categoryInds.length;M++){var x=b.categoryInds[M],z=a[M][x],_=i[M];v[_]=r[_][z],r[_][z]+=g;var A=e.dimensions[_].categories[z],O=A.bands.length,w=A.bands[O-1];if(void 0===w||b.rawColor!==w.rawColor){var k=void 0===w?0:w.y+w.height;A.bands.push({key:k,color:b.color,rawColor:b.rawColor,height:g,width:A.width,count:b.count,y:k,categoryViewModel:A,parcatsViewModel:e})}else{var T=A.bands[O-1];T.height+=g,T.count+=b.count}}y="hspline"===e.pathShape?W(s,v,l,g,.5):W(s,v,l,g,0),p[m]={key:b.valueInds[0],model:b,height:g,leftXs:s,topYs:v,dimWidths:l,svgD:y,parcatsViewModel:e}}e.paths=p}function P(e){var t=e.model.dimensions.map(function(e){return{displayInd:e.displayInd,dimensionInd:e.dimensionInd}});t.sort(function(e,t){return e.displayInd-t.displayInd});var n=[];for(var r in t){var a=t[r].dimensionInd,i=e.model.dimensions[a];n.push(B(e,i))}e.dimensions=n}function B(e,t){var n,r=e.model.dimensions.length,a=t.displayInd;n=40+(r>1?(e.width-80-16)/(r-1):0)*a;var i,o,s,l,c,u=[],d=e.model.maxCats,p=t.categories.length,h=t.count,f=e.height-8*(d-1),m=8*(d-p)/2,g=t.categories.map(function(e){return{displayInd:e.displayInd,categoryInd:e.categoryInd}});for(g.sort(function(e,t){return e.displayInd-t.displayInd}),c=0;c<p;c++)l=g[c].categoryInd,o=t.categories[l],i=h>0?o.count/h*f:0,s={key:o.valueInds[0],model:o,width:16,height:i,y:null!==o.dragY?o.dragY:m,bands:[],parcatsViewModel:e},m=m+i+8,u.push(s);return{key:t.dimensionInd,x:null!==t.dragX?t.dragX:n,y:0,width:16,model:t,categories:u,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}t.exports=function(e,t,n,r){d(n,e,r,t)}}),zme=Ee((e,t)=>{var n=pgt();t.exports=function(e,t,r,a){var i=e._fullLayout,o=i._paper,s=i._size;n(e,o,t,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},r,a)}}),ggt=Ee(e=>{var t=mp().getModuleCalcData,n=zme(),r="parcats";e.name=r,e.plot=function(e,a,i,o){var s=t(e.calcdata,r);if(s.length){var l=s[0];n(e,l,i,o)}},e.clean=function(e,t,n,r){var a=r._has&&r._has("parcats"),i=t._has&&t._has("parcats");a&&!i&&r._paperdiv.selectAll(".parcats").remove()}}),bgt=Ee((e,t)=>{t.exports={attributes:fme(),supplyDefaults:ngt(),calc:igt(),plot:zme(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:ggt(),categories:["noOpacity"],meta:{description:["Parallel categories diagram for multidimensional categorical data."].join(" ")}}}),xgt=Ee((e,t)=>{t.exports=bgt()}),a_=Ee((e,t)=>{var n=qz(),r="1.13.4",a='© <a target="_blank" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',i=['© <a target="_blank" href="https://carto.com/">Carto</a>',a].join(" "),o=['Map tiles by <a target="_blank" href="https://stamen.com">Stamen Design</a>','under <a target="_blank" href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>',"|",'Data by <a target="_blank" href="https://openstreetmap.org">OpenStreetMap</a> contributors','under <a target="_blank" href="https://www.openstreetmap.org/copyright">ODbL</a>'].join(" "),s={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:a,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:i,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:i,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:o,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:o,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:['Map tiles by <a target="_blank" href="https://stamen.com">Stamen Design</a>','under <a target="_blank" href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>',"|",'Data by <a target="_blank" href="https://openstreetmap.org">OpenStreetMap</a> contributors','under <a target="_blank" href="https://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>'].join(" "),tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},l=n(s);t.exports={requiredVersion:r,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:s,styleValuesNonMapbox:l,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+r+"."].join("\n"),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join("\n"),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",l.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join("\n"),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join("\n"),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":'content: ""; cursor: pointer; position: absolute; background-image: url(\'data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E\'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;',"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":'display:block; width: 21px; height: 21px; background-image: url(\'data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E\')'}}}),kP=Ee((e,t)=>{var n=Fr(),r=ao().defaultLine,a=ad().attributes,i=Mu(),o=Id().textposition,s=Wu().overrideAll,l=Kl().templatedArray,c=a_(),u=i({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,description:["Sets the icon text font (color=mapbox.layer.paint.text-color, size=mapbox.layer.layout.text-size).","Has an effect only when `type` is set to *symbol*."].join(" ")});u.family.dflt="Open Sans Regular, Arial Unicode MS Regular",(t.exports=s({_arrayAttrRegexps:[n.counterRegex("mapbox",".layers",!0)],domain:a({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0,description:["Sets the mapbox access token to be used for this mapbox map.","Alternatively, the mapbox access token can be set in the","configuration options under `mapboxAccessToken`.","Note that accessToken are only required when `style`","(e.g with values :",c.styleValuesMapbox.join(", "),")","and/or a layout layer references the Mapbox server."].join(" ")},style:{valType:"any",values:c.styleValuesMapbox.concat(c.styleValuesNonMapbox),dflt:c.styleValueDflt,description:["Defines the map layers that are rendered by default below the trace layers defined in `data`,","which are themselves by default rendered below the layers defined in `layout.mapbox.layers`.","","These layers can be defined either explicitly as a Mapbox Style object which can contain multiple","layer definitions that load data from any public or private Tile Map Service (TMS or XYZ) or Web Map Service (WMS)","or implicitly by using one of the built-in style objects which use WMSes which do not require any","access tokens, or by using a default Mapbox style or custom Mapbox style URL, both of","which require a Mapbox access token","","Note that Mapbox access token can be set in the `accesstoken` attribute","or in the `mapboxAccessToken` config option.","","Mapbox Style objects are of the form described in the Mapbox GL JS documentation available at","https://docs.mapbox.com/mapbox-gl-js/style-spec","","The built-in plotly.js styles objects are:",c.styleValuesNonMapbox.join(", "),"","The built-in Mapbox styles are:",c.styleValuesMapbox.join(", "),"","Mapbox style URLs are of the form: mapbox://mapbox.mapbox-<name>-<version>"].join(" ")},center:{lon:{valType:"number",dflt:0,description:"Sets the longitude of the center of the map (in degrees East)."},lat:{valType:"number",dflt:0,description:"Sets the latitude of the center of the map (in degrees North)."}},zoom:{valType:"number",dflt:1,description:"Sets the zoom level of the map (mapbox.zoom)."},bearing:{valType:"number",dflt:0,description:"Sets the bearing angle of the map in degrees counter-clockwise from North (mapbox.bearing)."},pitch:{valType:"number",dflt:0,description:["Sets the pitch angle of the map","(in degrees, where *0* means perpendicular to the surface of the map) (mapbox.pitch)."].join(" ")},bounds:{west:{valType:"number",description:["Sets the minimum longitude of the map (in degrees East)","if `east`, `south` and `north` are declared."].join(" ")},east:{valType:"number",description:["Sets the maximum longitude of the map (in degrees East)","if `west`, `south` and `north` are declared."].join(" ")},south:{valType:"number",description:["Sets the minimum latitude of the map (in degrees North)","if `east`, `west` and `north` are declared."].join(" ")},north:{valType:"number",description:["Sets the maximum latitude of the map (in degrees North)","if `east`, `west` and `south` are declared."].join(" ")}},layers:l("layer",{visible:{valType:"boolean",dflt:!0,description:["Determines whether this layer is displayed"].join(" ")},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson",description:["Sets the source type for this layer,","that is the type of the layer data."].join(" ")},source:{valType:"any",description:["Sets the source data for this layer (mapbox.layer.source).","When `sourcetype` is set to *geojson*, `source` can be a URL to a GeoJSON","or a GeoJSON object.","When `sourcetype` is set to *vector* or *raster*, `source` can be a URL or","an array of tile URLs.","When `sourcetype` is set to *image*, `source` can be a URL to an image."].join(" ")},sourcelayer:{valType:"string",dflt:"",description:["Specifies the layer to use from a vector tile source (mapbox.layer.source-layer).","Required for *vector* source type that supports multiple layers."].join(" ")},sourceattribution:{valType:"string",description:["Sets the attribution for this source."].join(" ")},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle",description:["Sets the layer type,","that is the how the layer data set in `source` will be rendered","With `sourcetype` set to *geojson*, the following values are allowed:","*circle*, *line*, *fill* and *symbol*.","but note that *line* and *fill* are not compatible with Point","GeoJSON geometries.","With `sourcetype` set to *vector*, the following values are allowed:"," *circle*, *line*, *fill* and *symbol*.","With `sourcetype` set to *raster* or *image*, only the *raster* value is allowed."].join(" ")},coordinates:{valType:"any",description:["Sets the coordinates array contains [longitude, latitude] pairs","for the image corners listed in clockwise order:","top left, top right, bottom right, bottom left.","Only has an effect for *image* `sourcetype`."].join(" ")},below:{valType:"string",description:["Determines if the layer will be inserted","before the layer with the specified ID.","If omitted or set to '',","the layer will be inserted above every existing layer."].join(" ")},color:{valType:"color",dflt:r,description:["Sets the primary layer color.","If `type` is *circle*, color corresponds to the circle color (mapbox.layer.paint.circle-color)","If `type` is *line*, color corresponds to the line color (mapbox.layer.paint.line-color)","If `type` is *fill*, color corresponds to the fill color (mapbox.layer.paint.fill-color)","If `type` is *symbol*, color corresponds to the icon color (mapbox.layer.paint.icon-color)"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,description:["Sets the opacity of the layer.","If `type` is *circle*, opacity corresponds to the circle opacity (mapbox.layer.paint.circle-opacity)","If `type` is *line*, opacity corresponds to the line opacity (mapbox.layer.paint.line-opacity)","If `type` is *fill*, opacity corresponds to the fill opacity (mapbox.layer.paint.fill-opacity)","If `type` is *symbol*, opacity corresponds to the icon/text opacity (mapbox.layer.paint.text-opacity)"].join(" ")},minzoom:{valType:"number",min:0,max:24,dflt:0,description:["Sets the minimum zoom level (mapbox.layer.minzoom).","At zoom levels less than the minzoom, the layer will be hidden."].join(" ")},maxzoom:{valType:"number",min:0,max:24,dflt:24,description:["Sets the maximum zoom level (mapbox.layer.maxzoom).","At zoom levels equal to or greater than the maxzoom, the layer will be hidden."].join(" ")},circle:{radius:{valType:"number",dflt:15,description:["Sets the circle radius (mapbox.layer.paint.circle-radius).","Has an effect only when `type` is set to *circle*."].join(" ")}},line:{width:{valType:"number",dflt:2,description:["Sets the line width (mapbox.layer.paint.line-width).","Has an effect only when `type` is set to *line*."].join(" ")},dash:{valType:"data_array",description:["Sets the length of dashes and gaps (mapbox.layer.paint.line-dasharray).","Has an effect only when `type` is set to *line*."].join(" ")}},fill:{outlinecolor:{valType:"color",dflt:r,description:["Sets the fill outline color (mapbox.layer.paint.fill-outline-color).","Has an effect only when `type` is set to *fill*."].join(" ")}},symbol:{icon:{valType:"string",dflt:"marker",description:["Sets the symbol icon image (mapbox.layer.layout.icon-image).","Full list: https://www.mapbox.com/maki-icons/"].join(" ")},iconsize:{valType:"number",dflt:10,description:["Sets the symbol icon size (mapbox.layer.layout.icon-size).","Has an effect only when `type` is set to *symbol*."].join(" ")},text:{valType:"string",dflt:"",description:["Sets the symbol text (mapbox.layer.layout.text-field)."].join(" ")},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point",description:["Sets the symbol and/or text placement (mapbox.layer.layout.symbol-placement).","If `placement` is *point*, the label is placed where the geometry is located","If `placement` is *line*, the label is placed along the line of the geometry","If `placement` is *line-center*, the label is placed on the center of the geometry"].join(" ")},textfont:u,textposition:n.extendFlat({},o,{arrayOk:!1})}})},"plot","from-root")).uirevision={valType:"any",editType:"none",description:["Controls persistence of user-driven changes in the view:","`center`, `zoom`, `bearing`, `pitch`. Defaults to `layout.uirevision`."].join(" ")}}),t$=Ee((e,t)=>{var{hovertemplateAttrs:n,texttemplateAttrs:r,templatefallbackAttrs:a}=p1(),i=tb(),o=zO(),s=Id(),l=kP(),c=S1(),u=Oc(),d=ms().extendFlat,p=Wu().overrideAll,h=kP(),f=o.line,m=o.marker;t.exports=p({lon:o.lon,lat:o.lat,cluster:{enabled:{valType:"boolean",description:"Determines whether clustering is enabled or disabled."},maxzoom:d({},h.layers.maxzoom,{description:["Sets the maximum zoom level.","At zoom levels equal to or greater than this, points will never be clustered."].join(" ")}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1,description:["Sets how many points it takes to create a cluster or advance to the next cluster step.","Use this in conjunction with arrays for `size` and / or `color`.","If an integer, steps start at multiples of this number.","If an array, each step extends from the given value until one less than the next value."].join(" ")},size:{valType:"number",arrayOk:!0,dflt:20,min:0,description:["Sets the size for each cluster step."].join(" ")},color:{valType:"color",arrayOk:!0,description:["Sets the color for each cluster step."].join(" ")},opacity:d({},m.opacity,{dflt:1})},mode:d({},s.mode,{dflt:"markers",description:["Determines the drawing mode for this scatter trace.","If the provided `mode` includes *text* then the `text` elements","appear at the coordinates. Otherwise, the `text` elements","appear on hover."].join(" ")}),text:d({},s.text,{description:["Sets text elements associated with each (lon,lat) pair","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (lon,lat) coordinates.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")}),texttemplate:r({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:a({editType:"plot"}),hovertext:d({},s.hovertext,{description:["Sets hover text elements associated with each (lon,lat) pair","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (lon,lat) coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")}),line:{color:f.color,width:f.width},connectgaps:s.connectgaps,marker:d({symbol:{valType:"string",dflt:"circle",arrayOk:!0,description:["Sets the marker symbol.","Full list: https://www.mapbox.com/maki-icons/","Note that the array `marker.color` and `marker.size`","are only available for *circle* symbols."].join(" ")},angle:{valType:"number",dflt:"auto",arrayOk:!0,description:["Sets the marker orientation from true North, in degrees clockwise.","When using the *auto* default, no rotation would be applied","in perspective views which is different from using a zero angle."].join(" ")},allowoverlap:{valType:"boolean",dflt:!1,description:["Flag to draw all symbols, even if they overlap."].join(" ")},opacity:m.opacity,size:m.size,sizeref:m.sizeref,sizemin:m.sizemin,sizemode:m.sizemode},u("marker")),fill:o.fill,fillcolor:i(),textfont:l.layers.symbol.textfont,textposition:l.layers.symbol.textposition,below:{valType:"string",description:["Determines if this scattermapbox trace's layers are to be inserted","before the layer with the specified ID.","By default, scattermapbox layers are inserted","above all the base layers.","To place the scattermapbox layers above every other layer, set `below` to *''*."].join(" ")},selected:{marker:s.selected.marker},unselected:{marker:s.unselected.marker},hoverinfo:d({},c.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:n(),hovertemplatefallback:a()},"calc","nested")}),Ame=Ee((e,t)=>{var n=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];t.exports={isSupportedFont:function(e){return-1!==n.indexOf(e)}}}),Fgt=Ee((e,t)=>{var n=Fr(),r=Hc(),a=Wv(),i=Yg(),o=Zg(),s=ib(),l=t$(),c=Ame().isSupportedFont;t.exports=function(e,t,u,d){function p(r,a){return n.coerce(e,t,l,r,a)}function h(r,a){return n.coerce2(e,t,l,r,a)}var f=function(e,t,n){var r=n("lon")||[],a=n("lat")||[],i=Math.min(r.length,a.length);return t._length=i,i}(0,t,p);if(f){if(p("text"),p("texttemplate"),p("texttemplatefallback"),p("hovertext"),p("hovertemplate"),p("hovertemplatefallback"),p("mode"),p("below"),r.hasMarkers(t)){a(e,t,u,d,p,{noLine:!0,noAngle:!0}),p("marker.allowoverlap"),p("marker.angle");var m=t.marker;"circle"!==m.symbol&&(n.isArrayOrTypedArray(m.size)&&(m.size=m.size[0]),n.isArrayOrTypedArray(m.color)&&(m.color=m.color[0]))}r.hasLines(t)&&(i(e,t,u,d,p,{noDash:!0}),p("connectgaps"));var g=h("cluster.maxzoom"),y=h("cluster.step"),b=h("cluster.color",t.marker&&t.marker.color||u),v=h("cluster.size"),M=h("cluster.opacity");if(p("cluster.enabled",!1!==g||!1!==y||!1!==b||!1!==v||!1!==M)||r.hasText(t)){var x=d.font.family;o(e,t,d,p,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:c(x)?x:"Open Sans Regular",weight:d.font.weight,style:d.font.style,size:d.font.size,color:d.font.color}})}p("fill"),"none"!==t.fill&&s(e,t,u,p),n.coerceSelectionMarkerOpacity(t,p)}else t.visible=!1}}),Ome=Ee((e,t)=>{var n=es();t.exports=function(e,t,r){var a={},i=r[t.subplot]._subplot.mockAxis,o=e.lonlat;return a.lonLabel=n.tickText(i,i.c2l(o[0]),!0).text,a.latLabel=n.tickText(i,i.c2l(o[1]),!0).text,a}}),Tme=Ee((e,t)=>{var n=Fr();t.exports=function(e,t){var r=e.split(" "),a=r[0],i=r[1],o=n.isArrayOrTypedArray(t)?n.mean(t):t,s=.5+o/100,l=1.5+o/100,c=["",""],u=[0,0];switch(a){case"top":c[0]="top",u[1]=-l;break;case"bottom":c[0]="bottom",u[1]=l}switch(i){case"left":c[1]="right",u[0]=-s;break;case"right":c[1]="left",u[0]=s}return{anchor:c[0]&&c[1]?c.join("-"):c[0]?c[0]:c[1]?c[1]:"center",offset:u}}}),$gt=Ee((e,t)=>{var n=xs(),r=Fr(),a=T0().BADNUM,i=E4(),o=xu(),s=vs(),l=iS(),c=Hc(),u=Ame().isSupportedFont,d=Tme(),p=fm().appendArrayPointValue,h=q1().NEWLINES,f=q1().BR_TAG_ALL;function m(e){return{type:e,geojson:i.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function g(e,t){return r.isArrayOrTypedArray(e)?t?function(t){return n(e[t])?+e[t]:0}:function(t){return e[t]}:e?function(){return e}:y}function y(){return""}function b(e){return e[0]===a}function v(e,t){var n;if(r.isArrayOrTypedArray(e)&&r.isArrayOrTypedArray(t)){n=["step",["get","point_count"],e[0]];for(var a=1;a<e.length;a++)n.push(t[a-1],e[a])}else n=e;return n}function M(e){var t=e.textfont,n=t.family,r=t.style,a=t.weight,i=n.split(" "),o="Italic"===i[i.length-1];o&&i.pop(),o=o||"italic"===r;var s=i.join(" ");return"bold"===a&&-1===i.indexOf("Bold")?s+=" Bold":a<=1e3&&("Metropolis"===i[0]?(s="Metropolis",s+=a>850?" Black":a>750?" Extra Bold":a>650?" Bold":a>550?" Semi Bold":a>450?" Medium":a>350?" Regular":a>250?" Light":a>150?" Extra Light":" Thin"):"Open Sans"===i.slice(0,2).join(" ")?(s="Open Sans",s+=a>750?" Extrabold":a>650?" Bold":a>550?" Semibold":a>350?" Regular":" Light"):"Klokantech Noto Sans"===i.slice(0,3).join(" ")&&(s="Klokantech Noto Sans","CJK"===i[3]&&(s+=" CJK"),s+=a>500?" Bold":" Regular")),o&&(s+=" Italic"),"Open Sans Regular Italic"===s?s="Open Sans Italic":"Open Sans Regular Bold"===s?s="Open Sans Bold":"Open Sans Regular Bold Italic"===s?s="Open Sans Bold Italic":"Klokantech Noto Sans Regular Italic"===s&&(s="Klokantech Noto Sans Italic"),u(s)||(s=n),s.split(", ")}t.exports=function(e,t){var a,u=t[0].trace,x=!0===u.visible&&0!==u._length,z="none"!==u.fill,_=c.hasLines(u),A=c.hasMarkers(u),O=c.hasText(u),w=A&&"circle"===u.marker.symbol,k=A&&"circle"!==u.marker.symbol,T=u.cluster&&u.cluster.enabled,S=m("fill"),C=m("line"),E=m("circle"),q=m("symbol"),D={fill:S,line:C,circle:E,symbol:q};if(!x)return D;if((z||_)&&(a=i.calcTraceToLineCoords(t)),z&&(S.geojson=i.makePolygon(a),S.layout.visibility="visible",r.extendFlat(S.paint,{"fill-color":u.fillcolor})),_&&(C.geojson=i.makeLine(a),C.layout.visibility="visible",r.extendFlat(C.paint,{"line-width":u.line.width,"line-color":u.line.color,"line-opacity":u.opacity})),w){var R=function(e){var t,a,i,c,u=e[0].trace,d=u.marker,p=u.selectedpoints,h=r.isArrayOrTypedArray(d.color),f=r.isArrayOrTypedArray(d.size),m=r.isArrayOrTypedArray(d.opacity);function g(e){return u.opacity*e}function y(e){return e/2}h&&(a=o.hasColorscale(u,"marker")?o.makeColorScaleFuncFromTrace(d):r.identity),f&&(i=l(u)),m&&(c=function(e){return g(n(e)?+r.constrain(e,0,1):0)});var v,M=[];for(t=0;t<e.length;t++){var x=e[t],z=x.lonlat;if(!b(z)){var _={};a&&(_.mcc=x.mcc=a(x.mc)),i&&(_.mrc=x.mrc=i(x.ms)),c&&(_.mo=c(x.mo)),p&&(_.selected=x.selected||0),M.push({type:"Feature",id:t+1,geometry:{type:"Point",coordinates:z},properties:_})}}if(p)for(v=s.makeSelectedPointStyleFns(u),t=0;t<M.length;t++){var A=M[t].properties;v.selectedOpacityFn&&(A.mo=g(v.selectedOpacityFn(A))),v.selectedColorFn&&(A.mcc=v.selectedColorFn(A)),v.selectedSizeFn&&(A.mrc=v.selectedSizeFn(A))}return{geojson:{type:"FeatureCollection",features:M},mcc:h||v&&v.selectedColorFn?{type:"identity",property:"mcc"}:d.color,mrc:f||v&&v.selectedSizeFn?{type:"identity",property:"mrc"}:y(d.size),mo:m||v&&v.selectedOpacityFn?{type:"identity",property:"mo"}:g(d.opacity)}}(t);E.geojson=R.geojson,E.layout.visibility="visible",T&&(E.filter=["!",["has","point_count"]],D.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":v(u.cluster.color,u.cluster.step),"circle-radius":v(u.cluster.size,u.cluster.step),"circle-opacity":v(u.cluster.opacity,u.cluster.step)}},D.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":M(u),"text-size":12}}),r.extendFlat(E.paint,{"circle-color":R.mcc,"circle-radius":R.mrc,"circle-opacity":R.mo})}if(w&&T&&(E.filter=["!",["has","point_count"]]),(k||O)&&(q.geojson=function(e,t){for(var n=t._fullLayout,a=e[0].trace,i=a.marker||{},o=i.symbol,s=i.angle,l="circle"!==o?g(o):y,u="auto"!==s?g(s,!0):y,d=c.hasText(a)?g(a.text):y,m=[],v=0;v<e.length;v++){var M=e[v];if(!b(M.lonlat)){var x,z=a.texttemplate;if(z){var _=Array.isArray(z)?z[v]||"":z,A=a._module.formatLabels(M,a,n),O={};p(O,a,M.i),x=r.texttemplateString({data:[O,M,a._meta],fallback:a.texttemplatefallback,labels:A,locale:n._d3locale,template:_})}else x=d(v);x&&(x=x.replace(h,"").replace(f,"\n")),m.push({type:"Feature",geometry:{type:"Point",coordinates:M.lonlat},properties:{symbol:l(v),angle:u(v),text:x}})}}return{type:"FeatureCollection",features:m}}(t,e),r.extendFlat(q.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),k&&(r.extendFlat(q.layout,{"icon-size":u.marker.size/10}),"angle"in u.marker&&"auto"!==u.marker.angle&&r.extendFlat(q.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),q.layout["icon-allow-overlap"]=u.marker.allowoverlap,r.extendFlat(q.paint,{"icon-opacity":u.opacity*u.marker.opacity,"icon-color":u.marker.color})),O)){var L=(u.marker||{}).size,I=d(u.textposition,L);r.extendFlat(q.layout,{"text-size":u.textfont.size,"text-anchor":I.anchor,"text-offset":I.offset,"text-font":M(u)}),r.extendFlat(q.paint,{"text-color":u.textfont.color,"text-opacity":u.opacity})}return D}}),eyt=Ee((e,t)=>{var n=Fr(),r=$gt(),a=a_().traceLayerPrefix,i={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function o(e,t,n,r){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=n,this.isHidden=r,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:a+t+"-fill",line:a+t+"-line",circle:a+t+"-circle",symbol:a+t+"-symbol",cluster:a+t+"-cluster",clusterCount:a+t+"-cluster-count"},this.below=null}var s=o.prototype;s.addSource=function(e,t,r){var a={type:"geojson",data:t.geojson};r&&r.enabled&&n.extendFlat(a,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],a)},s.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)},s.addLayer=function(e,t,n){var r={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(r.filter=t.filter);for(var a,i=this.layerIds[e],o=this.subplot.getMapLayers(),s=0;s<o.length;s++)if(o[s].id===i){a=!0;break}a?(this.subplot.setOptions(i,"setLayoutProperty",r.layout),"visible"===r.layout.visibility&&this.subplot.setOptions(i,"setPaintProperty",r.paint)):this.subplot.addLayer(r,n)},s.update=function(e){var t=e[0].trace,n=this.subplot,a=n.map,o=r(n.gd,e),s=n.belowLookup["trace-"+this.uid],l=!(!t.cluster||!t.cluster.enabled),c=!!this.clusterEnabled,u=this;function d(e){c?function(e){for(var t=i.cluster,n=t.length-1;n>=0;n--){var r=t[n];a.removeLayer(u.layerIds[r])}e||a.removeSource(u.sourceIds.circle)}(e):function(e){for(var t=i.nonCluster,n=t.length-1;n>=0;n--){var r=t[n];a.removeLayer(u.layerIds[r]),e||a.removeSource(u.sourceIds[r])}}(e)}function p(e){l?function(e){e||u.addSource("circle",o.circle,t.cluster);for(var n=i.cluster,r=0;r<n.length;r++){var a=n[r],l=o[a];u.addLayer(a,l,s)}}(e):function(e){for(var t=i.nonCluster,n=0;n<t.length;n++){var r=t[n],a=o[r];e||u.addSource(r,a),u.addLayer(r,a,s)}}(e)}var h=this.isHidden,f=!0!==t.visible;f?h||d():h?f||p():c!==l?(d(),p()):(this.below!==s&&(d(!0),p(!0)),function(){for(var e=l?i.cluster:i.nonCluster,t=0;t<e.length;t++){var r=e[t],a=o[r];a&&(n.setOptions(u.layerIds[r],"setLayoutProperty",a.layout),"visible"===a.layout.visibility&&("cluster"!==r&&u.setSourceData(r,a),n.setOptions(u.layerIds[r],"setPaintProperty",a.paint)))}}()),this.clusterEnabled=l,this.isHidden=f,this.below=s,e[0].trace._glTrace=this},s.dispose=function(){for(var e=this.subplot.map,t=this.clusterEnabled?i.cluster:i.nonCluster,n=t.length-1;n>=0;n--){var r=t[n];e.removeLayer(this.layerIds[r]),e.removeSource(this.sourceIds[r])}},t.exports=function(e,t){var n,a,s,l=t[0].trace,c=l.cluster&&l.cluster.enabled,u=!0!==l.visible,d=new o(e,l.uid,c,u),p=r(e.gd,t),h=d.below=e.belowLookup["trace-"+l.uid];if(c)for(d.addSource("circle",p.circle,l.cluster),n=0;n<i.cluster.length;n++)s=p[a=i.cluster[n]],d.addLayer(a,s,h);else for(n=0;n<i.nonCluster.length;n++)s=p[a=i.nonCluster[n]],d.addSource(a,s,l.cluster),d.addLayer(a,s,h);return t[0].trace._glTrace=d,d}}),o$=Ee((e,t)=>{var n=_d(),r=Fr(),a=NS(),i=r.fillText,o=T0().BADNUM,s=a_().traceLayerPrefix;function l(e,t,n){if(!e.hovertemplate){var r=(t.hi||e.hoverinfo).split("+"),a=-1!==r.indexOf("all"),o=-1!==r.indexOf("lon"),s=-1!==r.indexOf("lat"),l=t.lonlat,c=[];return a||o&&s?c.push("("+u(l[1])+", "+u(l[0])+")"):o?c.push(n.lon+u(l[0])):s&&c.push(n.lat+u(l[1])),(a||-1!==r.indexOf("text"))&&i(t,e,c),c.join("<br>")}function u(e){return e+"°"}}t.exports={hoverPoints:function(e,t,i){var c=e.cd,u=c[0].trace,d=e.xa,p=e.ya,h=e.subplot,f=[],m=s+u.uid+"-circle",g=u.cluster&&u.cluster.enabled;if(g){var y=h.map.queryRenderedFeatures(null,{layers:[m]});f=y.map(function(e){return e.id})}var b=360*(t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360)),v=t-b;if(n.getClosest(c,function(e){var t=e.lonlat;if(t[0]===o||g&&-1===f.indexOf(e.i+1))return 1/0;var n=r.modHalf(t[0],360),a=t[1],s=h.project([n,a]),l=s.x-d.c2p([v,a]),c=s.y-p.c2p([n,i]),u=Math.max(3,e.mrc||0);return Math.max(Math.sqrt(l*l+c*c)-u,1-3/u)},e),!1!==e.index){var M=c[e.index],x=M.lonlat,z=[r.modHalf(x[0],360)+b,x[1]],_=d.c2p(z),A=p.c2p(z),O=M.mrc||1;e.x0=_-O,e.x1=_+O,e.y0=A-O,e.y1=A+O;var w={};w[u.subplot]={_subplot:h};var k=u._module.formatLabels(M,u,w);return e.lonLabel=k.lonLabel,e.latLabel=k.latLabel,e.color=a(u,M),e.extraText=l(u,M,c[0].t.labels),e.hovertemplate=u.hovertemplate,[e]}},getExtraText:l}}),ayt=Ee((e,t)=>{t.exports=function(e,t){return e.lon=t.lon,e.lat=t.lat,e}}),oyt=Ee((e,t)=>{var n=Fr(),r=Hc(),a=T0().BADNUM;t.exports=function(e,t){var i,o=e.cd,s=e.xaxis,l=e.yaxis,c=[],u=o[0].trace;if(!r.hasMarkers(u))return[];if(!1===t)for(i=0;i<o.length;i++)o[i].selected=0;else for(i=0;i<o.length;i++){var d=o[i],p=d.lonlat;if(p[0]!==a){var h=[n.modHalf(p[0],360),p[1]],f=[s.c2p(h),l.c2p(h)];t.contains(f,null,i,e)?(c.push({pointNumber:i,lon:p[0],lat:p[1]}),d.selected=1):d.selected=0}}return c}}),Dme=Ee((e,t)=>{var n,r;n=e,r=function(){var e,t,n;function r(r,a){if(e)if(t){var i="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",o={};e(o),n=a(o),typeof window<"u"&&(n.workerUrl=window.URL.createObjectURL(new Blob([i],{type:"text/javascript"})))}else t=a;else e=a}return r(0,function(e){function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n="1.13.4",r=a;function a(e,t,n,r){this.cx=3*e,this.bx=3*(n-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=r,this.p2x=n,this.p2y=r}a.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},a.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},a.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},a.prototype.solveCurveX=function(e,t){var n,r,a,i,o;for(typeof t>"u"&&(t=1e-6),a=e,o=0;o<8;o++){if(i=this.sampleCurveX(a)-e,Math.abs(i)<t)return a;var s=this.sampleCurveDerivativeX(a);if(Math.abs(s)<1e-6)break;a-=i/s}if((a=e)<(n=0))return n;if(a>(r=1))return r;for(;n<r;){if(i=this.sampleCurveX(a),Math.abs(i-e)<t)return a;e>i?n=a:r=a,a=.5*(r-n)+n}return a},a.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var i=o;function o(e,t){this.x=e,this.y=t}o.prototype={clone:function(){return new o(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[0]*this.x+e[1]*this.y,n=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=n,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=t*this.x-n*this.y,a=n*this.x+t*this.y;return this.x=r,this.y=a,this},_rotateAround:function(e,t){var n=Math.cos(e),r=Math.sin(e),a=t.x+n*(this.x-t.x)-r*(this.y-t.y),i=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=a,this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},o.convert=function(e){return e instanceof o?e:Array.isArray(e)?new o(e[0],e[1]):e};var s=typeof self<"u"?self:{},l=Math.pow(2,53)-1;function c(e,t,n,a){var i=new r(e,t,n,a);return function(e){return i.solve(e)}}var u=c(.25,.1,.25,1);function d(e,t,n){return Math.min(n,Math.max(t,e))}function p(e,t,n){var r=n-t,a=((e-t)%r+r)%r+t;return a===t?n:a}function h(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];for(var r=0,a=t;r<a.length;r+=1){var i=a[r];for(var o in i)e[o]=i[o]}return e}var f=1;function m(){return f++}function g(){return function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()}function y(e){return!!e&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}function b(e,t){e.forEach(function(e){t[e]&&(t[e]=t[e].bind(t))})}function v(e,t){return-1!==e.indexOf(t,e.length-t.length)}function M(e,t,n){var r={};for(var a in e)r[a]=t.call(n||this,e[a],a,e);return r}function x(e,t,n){var r={};for(var a in e)t.call(n||this,e[a],a,e)&&(r[a]=e[a]);return r}function z(e){return Array.isArray(e)?e.map(z):"object"==typeof e&&e?M(e,z):e}var _={};function A(e){_[e]||(typeof console<"u"&&console.warn(e),_[e]=!0)}function O(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}function w(e){for(var t=0,n=0,r=e.length,a=r-1,i=void 0,o=void 0;n<r;a=n++)i=e[n],t+=((o=e[a]).x-i.x)*(i.y+o.y);return t}function k(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}function T(e){var t={};if(e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(e,n,r,a){var i=r||a;return t[n]=!i||i.toLowerCase(),""}),t["max-age"]){var n=parseInt(t["max-age"],10);isNaN(n)?delete t["max-age"]:t["max-age"]=n}return t}var S=null;function C(e){if(null==S){var t=e.navigator?e.navigator.userAgent:null;S=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return S}function E(e){try{var t=s[e];return t.setItem("_mapbox_test_",1),t.removeItem("_mapbox_test_"),!0}catch{return!1}}var q,D,R,L,I=s.performance&&s.performance.now?s.performance.now.bind(s.performance):Date.now.bind(Date),W=s.requestAnimationFrame||s.mozRequestAnimationFrame||s.webkitRequestAnimationFrame||s.msRequestAnimationFrame,N=s.cancelAnimationFrame||s.mozCancelAnimationFrame||s.webkitCancelAnimationFrame||s.msCancelAnimationFrame,P={now:I,frame:function(e){var t=W(e);return{cancel:function(){return N(t)}}},getImageData:function(e,t){void 0===t&&(t=0);var n=s.document.createElement("canvas"),r=n.getContext("2d");if(!r)throw new Error("failed to create canvas 2d context");return n.width=e.width,n.height=e.height,r.drawImage(e,0,0,e.width,e.height),r.getImageData(-t,-t,e.width+2*t,e.height+2*t)},resolveURL:function(e){return q||(q=s.document.createElement("a")),q.href=e,q.href},hardwareConcurrency:s.navigator&&s.navigator.hardwareConcurrency||4,get devicePixelRatio(){return s.devicePixelRatio},get prefersReducedMotion(){return!!s.matchMedia&&(null==D&&(D=s.matchMedia("(prefers-reduced-motion: reduce)")),D.matches)}},B={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},F={supported:!1,testSupport:function(e){j||!L||(U?V(e):R=e)}},j=!1,U=!1;function V(e){var t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,L),e.isContextLost())return;F.supported=!0}catch{}e.deleteTexture(t),j=!0}s.document&&((L=s.document.createElement("img")).onload=function(){R&&V(R),R=null,U=!0},L.onerror=function(){j=!0,R=null},L.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var H="01",X=function(e,t){this._transformRequestFn=e,this._customAccessToken=t,this._createSkuToken()};function G(e){return 0===e.indexOf("mapbox:")}X.prototype._createSkuToken=function(){var e=function(){for(var e="",t=0;t<10;t++)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",H,e].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=e.token,this._skuTokenExpiresAt=e.tokenExpiresAt},X.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},X.prototype.transformRequest=function(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}},X.prototype.normalizeStyleURL=function(e,t){if(!G(e))return e;var n=J(e);return n.path="/styles/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||t)},X.prototype.normalizeGlyphsURL=function(e,t){if(!G(e))return e;var n=J(e);return n.path="/fonts/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||t)},X.prototype.normalizeSourceURL=function(e,t){if(!G(e))return e;var n=J(e);return n.path="/v4/"+n.authority+".json",n.params.push("secure"),this._makeAPIURL(n,this._customAccessToken||t)},X.prototype.normalizeSpriteURL=function(e,t,n,r){var a=J(e);return G(e)?(a.path="/styles/v1"+a.path+"/sprite"+t+n,this._makeAPIURL(a,this._customAccessToken||r)):(a.path+=""+t+n,Q(a))},X.prototype.normalizeTileURL=function(e,t){if(this._isSkuTokenExpired()&&this._createSkuToken(),e&&!G(e))return e;var n=J(e),r=P.devicePixelRatio>=2||512===t?"@2x":"",a=F.supported?".webp":"$1";n.path=n.path.replace(/(\.(png|jpg)\d*)(?=$)/,""+r+a),n.path=n.path.replace(/^.+\/v4\//,"/"),n.path="/v4"+n.path;var i=this._customAccessToken||function(e){for(var t=0,n=e;t<n.length;t+=1){var r=n[t].match(/^access_token=(.*)$/);if(r)return r[1]}return null}(n.params)||B.ACCESS_TOKEN;return B.REQUIRE_ACCESS_TOKEN&&i&&this._skuToken&&n.params.push("sku="+this._skuToken),this._makeAPIURL(n,i)},X.prototype.canonicalizeTileURL=function(e,t){var n=J(e);if(!n.path.match(/(^\/v4\/)/)||!n.path.match(/\.[\w]+$/))return e;var r="mapbox://tiles/";r+=n.path.replace("/v4/","");var a=n.params;return t&&(a=a.filter(function(e){return!e.match(/^access_token=/)})),a.length&&(r+="?"+a.join("&")),r},X.prototype.canonicalizeTileset=function(e,t){for(var n=!!t&&G(t),r=[],a=0,i=e.tiles||[];a<i.length;a+=1){var o=i[a];Z(o)?r.push(this.canonicalizeTileURL(o,n)):r.push(o)}return r},X.prototype._makeAPIURL=function(e,t){var n="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",r=J(B.API_URL);if(e.protocol=r.protocol,e.authority=r.authority,"http"===e.protocol){var a=e.params.indexOf("secure");a>=0&&e.params.splice(a,1)}if("/"!==r.path&&(e.path=""+r.path+e.path),!B.REQUIRE_ACCESS_TOKEN)return Q(e);if(!(t=t||B.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+n);if("s"===t[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+n);return e.params=e.params.filter(function(e){return-1===e.indexOf("access_token")}),e.params.push("access_token="+t),Q(e)};var Y=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Z(e){return Y.test(e)}var $=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function J(e){var t=e.match($);if(!t)throw new Error("Unable to parse URL object");return{protocol:t[1],authority:t[2],path:t[3]||"/",params:t[4]?t[4].split("&"):[]}}function Q(e){var t=e.params.length?"?"+e.params.join("&"):"";return e.protocol+"://"+e.authority+e.path+t}var K="mapbox.eventData";function ee(e){if(!e)return null;var t=e.split(".");if(!t||3!==t.length)return null;try{var n=JSON.parse(function(e){return decodeURIComponent(s.atob(e).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}(t[1]));return n}catch{return null}}var te=function(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};te.prototype.getStorageKey=function(e){var t,n=ee(B.ACCESS_TOKEN),r="";return n&&n.u?(t=n.u,r=s.btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode(+("0x"+t))}))):r=B.ACCESS_TOKEN||"",e?K+"."+e+":"+r:K+":"+r},te.prototype.fetchEventData=function(){var e=E("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{var r=s.localStorage.getItem(t);r&&(this.eventData=JSON.parse(r));var a=s.localStorage.getItem(n);a&&(this.anonId=a)}catch{A("Unable to read from LocalStorage")}},te.prototype.saveEventData=function(){var e=E("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{s.localStorage.setItem(n,this.anonId),Object.keys(this.eventData).length>=1&&s.localStorage.setItem(t,JSON.stringify(this.eventData))}catch{A("Unable to write to LocalStorage")}},te.prototype.processRequests=function(e){},te.prototype.postEvent=function(e,t,r,a){var i=this;if(B.EVENTS_URL){var o=J(B.EVENTS_URL);o.params.push("access_token="+(a||B.ACCESS_TOKEN||""));var s={event:this.type,created:new Date(e).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:n,skuId:H,userId:this.anonId},l=t?h(s,t):s,c={url:Q(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([l])};this.pendingRequest=we(c,function(e){i.pendingRequest=null,r(e),i.saveEventData(),i.processRequests(a)})}},te.prototype.queueRequest=function(e,t){this.queue.push(e),this.processRequests(t)};var ne,re,ae=function(e){function t(){e.call(this,"map.load"),this.success={},this.skuToken=""}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.postMapLoadEvent=function(e,t,n,r){this.skuToken=n,(B.EVENTS_URL&&r||B.ACCESS_TOKEN&&Array.isArray(e)&&e.some(function(e){return G(e)||Z(e)}))&&this.queueRequest({id:t,timestamp:Date.now()},r)},t.prototype.processRequests=function(e){var t=this;if(!this.pendingRequest&&0!==this.queue.length){var n=this.queue.shift(),r=n.id,a=n.timestamp;r&&this.success[r]||(this.anonId||this.fetchEventData(),y(this.anonId)||(this.anonId=g()),this.postEvent(a,{skuToken:this.skuToken},function(e){e||r&&(t.success[r]=!0)},e))}},t}(te),ie=function(e){function t(t){e.call(this,"appUserTurnstile"),this._customAccessToken=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.postTurnstileEvent=function(e,t){B.EVENTS_URL&&B.ACCESS_TOKEN&&Array.isArray(e)&&e.some(function(e){return G(e)||Z(e)})&&this.queueRequest(Date.now(),t)},t.prototype.processRequests=function(e){var t=this;if(!this.pendingRequest&&0!==this.queue.length){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var n=ee(B.ACCESS_TOKEN),r=n?n.u:B.ACCESS_TOKEN,a=r!==this.eventData.tokenU;y(this.anonId)||(this.anonId=g(),a=!0);var i=this.queue.shift();if(this.eventData.lastSuccess){var o=new Date(this.eventData.lastSuccess),s=new Date(i),l=(i-this.eventData.lastSuccess)/864e5;a=a||l>=1||l<-1||o.getDate()!==s.getDate()}else a=!0;if(!a)return this.processRequests();this.postEvent(i,{"enabled.telemetry":!1},function(e){e||(t.eventData.lastSuccess=i,t.eventData.tokenU=r)},e)}},t}(te),oe=new ie,se=oe.postTurnstileEvent.bind(oe),le=new ae,ce=le.postMapLoadEvent.bind(le),ue="mapbox-tiles",de=500,pe=50;function he(){s.caches&&!ne&&(ne=s.caches.open(ue))}function fe(e,t,n){if(he(),ne){var r={status:t.status,statusText:t.statusText,headers:new s.Headers};t.headers.forEach(function(e,t){return r.headers.set(t,e)});var a=T(t.headers.get("Cache-Control")||"");a["no-store"]||(a["max-age"]&&r.headers.set("Expires",new Date(n+1e3*a["max-age"]).toUTCString()),new Date(r.headers.get("Expires")).getTime()-n<42e4||function(e,t){if(void 0===re)try{new Response(new ReadableStream),re=!0}catch{re=!1}re?t(e.body):e.blob().then(t)}(t,function(t){var n=new s.Response(t,r);he(),ne&&ne.then(function(t){return t.put(me(e.url),n)}).catch(function(e){return A(e.message)})}))}}function me(e){var t=e.indexOf("?");return t<0?e:e.slice(0,t)}function ge(e,t){if(he(),!ne)return t(null);var n=me(e.url);ne.then(function(e){e.match(n).then(function(r){var a=function(e){if(!e)return!1;var t=new Date(e.headers.get("Expires")||0),n=T(e.headers.get("Cache-Control")||"");return t>Date.now()&&!n["no-cache"]}(r);e.delete(n),a&&e.put(n,r.clone()),t(null,r,a)}).catch(t)}).catch(t)}var ye,be=1/0;function ve(){return null==ye&&(ye=s.OffscreenCanvas&&new s.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof s.createImageBitmap),ye}var Me={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(Me);var xe=function(e){function t(t,n,r){401===n&&Z(r)&&(t+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),e.call(this,t),this.status=n,this.url=r,this.name=this.constructor.name,this.message=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},t}(Error),ze=k()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===s.location.protocol?s.parent:s).location.href};function _e(e,t){var n=new s.AbortController,r=new s.Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:ze(),signal:n.signal}),a=!1,i=!1,o=function(e){return e.indexOf("sku=")>0&&Z(e)}(r.url);"json"===e.type&&r.headers.set("Accept","application/json");var l=function(n,a,l){if(!i){if(n&&"SecurityError"!==n.message&&A(n),a&&l)return c(a);var u=Date.now();s.fetch(r).then(function(n){if(n.ok){var r=o?n.clone():null;return c(n,r,u)}return t(new xe(n.statusText,n.status,e.url))}).catch(function(e){20!==e.code&&t(new Error(e.message))})}},c=function(n,o,s){("arrayBuffer"===e.type?n.arrayBuffer():"json"===e.type?n.json():n.text()).then(function(e){i||(o&&s&&fe(r,o,s),a=!0,t(null,e,n.headers.get("Cache-Control"),n.headers.get("Expires")))}).catch(function(e){i||t(new Error(e.message))})};return o?ge(r,l):l(null,null),{cancel:function(){i=!0,a||n.abort()}}}var Ae=function(e,t){if(!function(e){return/^file:/.test(e)||/^file:/.test(ze())&&!/^\w+:/.test(e)}(e.url)){if(s.fetch&&s.Request&&s.AbortController&&s.Request.prototype.hasOwnProperty("signal"))return _e(e,t);if(k()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,t,void 0,!0)}return function(e,t){var n=new s.XMLHttpRequest;for(var r in n.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(n.responseType="arraybuffer"),e.headers)n.setRequestHeader(r,e.headers[r]);return"json"===e.type&&(n.responseType="text",n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===e.credentials,n.onerror=function(){t(new Error(n.statusText))},n.onload=function(){if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){var r=n.response;if("json"===e.type)try{r=JSON.parse(n.response)}catch(e){return t(e)}t(null,r,n.getResponseHeader("Cache-Control"),n.getResponseHeader("Expires"))}else t(new xe(n.statusText,n.status,e.url))},n.send(e.body),{cancel:function(){return n.abort()}}}(e,t)},Oe=function(e,t){return Ae(h(e,{type:"arrayBuffer"}),t)},we=function(e,t){return Ae(h(e,{method:"POST"}),t)};function ke(e){var t=s.document.createElement("a");return t.href=e,t.protocol===s.document.location.protocol&&t.host===s.document.location.host}var Te,Se,Ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";Te=[],Se=0;var Ee=function(e,t){if(F.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*"),Se>=B.MAX_PARALLEL_IMAGE_REQUESTS){var n={requestParameters:e,callback:t,cancelled:!1,cancel:function(){this.cancelled=!0}};return Te.push(n),n}Se++;var r=!1,a=function(){if(!r)for(r=!0,Se--;Te.length&&Se<B.MAX_PARALLEL_IMAGE_REQUESTS;){var e=Te.shift(),t=e.requestParameters,n=e.callback;e.cancelled||(e.cancel=Ee(t,n).cancel)}},i=Oe(e,function(e,n,r,i){a(),e?t(e):n&&(ve()?function(e,t){var n=new s.Blob([new Uint8Array(e)],{type:"image/png"});s.createImageBitmap(n).then(function(e){t(null,e)}).catch(function(e){t(new Error("Could not load image because of "+e.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}(n,t):function(e,t,n,r){var a=new s.Image,i=s.URL;a.onload=function(){t(null,a),i.revokeObjectURL(a.src),a.onload=null,s.requestAnimationFrame(function(){a.src=Ce})},a.onerror=function(){return t(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var o=new s.Blob([new Uint8Array(e)],{type:"image/png"});a.cacheControl=n,a.expires=r,a.src=e.byteLength?i.createObjectURL(o):Ce}(n,t,r,i))});return{cancel:function(){i.cancel(),a()}}};function qe(e,t,n){n[e]&&-1!==n[e].indexOf(t)||(n[e]=n[e]||[],n[e].push(t))}function De(e,t,n){if(n&&n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}var Re=function(e,t){void 0===t&&(t={}),h(this,t),this.type=e},Le=function(e){function t(t,n){void 0===n&&(n={}),e.call(this,"error",h({error:t},n))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Re),Ie=function(){};Ie.prototype.on=function(e,t){return this._listeners=this._listeners||{},qe(e,t,this._listeners),this},Ie.prototype.off=function(e,t){return De(e,t,this._listeners),De(e,t,this._oneTimeListeners),this},Ie.prototype.once=function(e,t){return this._oneTimeListeners=this._oneTimeListeners||{},qe(e,t,this._oneTimeListeners),this},Ie.prototype.fire=function(e,t){"string"==typeof e&&(e=new Re(e,t||{}));var n=e.type;if(this.listens(n)){e.target=this;for(var r=0,a=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];r<a.length;r+=1)a[r].call(this,e);for(var i=0,o=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];i<o.length;i+=1){var s=o[i];De(n,s,this._oneTimeListeners),s.call(this,e)}var l=this._eventedParent;l&&(h(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),l.fire(e))}else e instanceof Le&&console.error(e.error);return this},Ie.prototype.listens=function(e){return this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)},Ie.prototype.setEventedParent=function(e,t){return this._eventedParent=e,this._eventedParentData=t,this};var We={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},Ne=function(e,t,n,r){this.message=(e?e+": ":"")+n,r&&(this.identifier=r),null!=t&&t.__line__&&(this.line=t.__line__)};function Pe(e){var t=e.key,n=e.value;return n?[new Ne(t,n,"constants have been deprecated as of v8")]:[]}function Be(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];for(var r=0,a=t;r<a.length;r+=1){var i=a[r];for(var o in i)e[o]=i[o]}return e}function Fe(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function je(e){if(Array.isArray(e))return e.map(je);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){var t={};for(var n in e)t[n]=je(e[n]);return t}return Fe(e)}var Ue=function(e){function t(t,n){e.call(this,n),this.message=n,this.key=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),Ve=function(e,t){void 0===t&&(t=[]),this.parent=e,this.bindings={};for(var n=0,r=t;n<r.length;n+=1){var a=r[n],i=a[0],o=a[1];this.bindings[i]=o}};Ve.prototype.concat=function(e){return new Ve(this,e)},Ve.prototype.get=function(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(e+" not found in scope.")},Ve.prototype.has=function(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)};var He={kind:"null"},Xe={kind:"number"},Ge={kind:"string"},Ye={kind:"boolean"},Ze={kind:"color"},$e={kind:"object"},Je={kind:"value"},Qe={kind:"collator"},Ke={kind:"formatted"},et={kind:"resolvedImage"};function tt(e,t){return{kind:"array",itemType:e,N:t}}function nt(e){if("array"===e.kind){var t=nt(e.itemType);return"number"==typeof e.N?"array<"+t+", "+e.N+">":"value"===e.itemType.kind?"array":"array<"+t+">"}return e.kind}var rt=[He,Xe,Ge,Ye,Ze,Ke,$e,tt(Je),et];function at(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!at(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(var n=0,r=rt;n<r.length;n+=1)if(!at(r[n],t))return null}return"Expected "+nt(e)+" but found "+nt(t)+" instead."}function it(e,t){return t.some(function(t){return t.kind===e.kind})}function ot(e,t){return t.some(function(t){return"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e})}var st=t(function(e,t){var n={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function r(e){return(e=Math.round(e))<0?0:e>255?255:e}function a(e){return e<0?0:e>1?1:e}function i(e){return"%"===e[e.length-1]?r(parseFloat(e)/100*255):r(parseInt(e))}function o(e){return"%"===e[e.length-1]?a(parseFloat(e)/100):a(parseFloat(e))}function s(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}try{t.parseCSSColor=function(e){var t,a=e.replace(/ /g,"").toLowerCase();if(a in n)return n[a].slice();if("#"===a[0])return 4===a.length?(t=parseInt(a.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===a.length&&(t=parseInt(a.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var l=a.indexOf("("),c=a.indexOf(")");if(-1!==l&&c+1===a.length){var u=a.substr(0,l),d=a.substr(l+1,c-(l+1)).split(","),p=1;switch(u){case"rgba":if(4!==d.length)return null;p=o(d.pop());case"rgb":return 3!==d.length?null:[i(d[0]),i(d[1]),i(d[2]),p];case"hsla":if(4!==d.length)return null;p=o(d.pop());case"hsl":if(3!==d.length)return null;var h=(parseFloat(d[0])%360+360)%360/360,f=o(d[1]),m=o(d[2]),g=m<=.5?m*(f+1):m+f-m*f,y=2*m-g;return[r(255*s(y,g,h+1/3)),r(255*s(y,g,h)),r(255*s(y,g,h-1/3)),p];default:return null}}return null}}catch{}}).parseCSSColor,lt=function(e,t,n,r){void 0===r&&(r=1),this.r=e,this.g=t,this.b=n,this.a=r};lt.parse=function(e){if(e){if(e instanceof lt)return e;if("string"==typeof e){var t=st(e);if(t)return new lt(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3])}}},lt.prototype.toString=function(){var e=this.toArray(),t=e[0],n=e[1],r=e[2],a=e[3];return"rgba("+Math.round(t)+","+Math.round(n)+","+Math.round(r)+","+a+")"},lt.prototype.toArray=function(){var e=this,t=e.r,n=e.g,r=e.b,a=e.a;return 0===a?[0,0,0,0]:[255*t/a,255*n/a,255*r/a,a]},lt.black=new lt(0,0,0,1),lt.white=new lt(1,1,1,1),lt.transparent=new lt(0,0,0,0),lt.red=new lt(1,0,0,1);var ct=function(e,t,n){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};ct.prototype.compare=function(e,t){return this.collator.compare(e,t)},ct.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var ut=function(e,t,n,r,a){this.text=e,this.image=t,this.scale=n,this.fontStack=r,this.textColor=a},dt=function(e){this.sections=e};dt.fromString=function(e){return new dt([new ut(e,null,null,null,null)])},dt.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some(function(e){return 0!==e.text.length||e.image&&0!==e.image.name.length})},dt.factory=function(e){return e instanceof dt?e:dt.fromString(e)},dt.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map(function(e){return e.text}).join("")},dt.prototype.serialize=function(){for(var e=["format"],t=0,n=this.sections;t<n.length;t+=1){var r=n[t];if(r.image)e.push(["image",r.image.name]);else{e.push(r.text);var a={};r.fontStack&&(a["text-font"]=["literal",r.fontStack.split(",")]),r.scale&&(a["font-scale"]=r.scale),r.textColor&&(a["text-color"]=["rgba"].concat(r.textColor.toArray())),e.push(a)}}return e};var pt=function(e){this.name=e.name,this.available=e.available};function ht(e,t,n,r){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof n&&n>=0&&n<=255?typeof r>"u"||"number"==typeof r&&r>=0&&r<=1?null:"Invalid rgba value ["+[e,t,n,r].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof r?[e,t,n,r]:[e,t,n]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function ft(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof lt)return!0;if(e instanceof ct)return!0;if(e instanceof dt)return!0;if(e instanceof pt)return!0;if(Array.isArray(e)){for(var t=0,n=e;t<n.length;t+=1)if(!ft(n[t]))return!1;return!0}if("object"==typeof e){for(var r in e)if(!ft(e[r]))return!1;return!0}return!1}function mt(e){if(null===e)return He;if("string"==typeof e)return Ge;if("boolean"==typeof e)return Ye;if("number"==typeof e)return Xe;if(e instanceof lt)return Ze;if(e instanceof ct)return Qe;if(e instanceof dt)return Ke;if(e instanceof pt)return et;if(Array.isArray(e)){for(var t,n=e.length,r=0,a=e;r<a.length;r+=1){var i=mt(a[r]);if(t){if(t===i)continue;t=Je;break}t=i}return tt(t||Je,n)}return $e}function gt(e){var t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof lt||e instanceof dt||e instanceof pt?e.toString():JSON.stringify(e)}pt.prototype.toString=function(){return this.name},pt.fromString=function(e){return e?new pt({name:e,available:!1}):null},pt.prototype.serialize=function(){return["image",this.name]};var yt=function(e,t){this.type=e,this.value=t};yt.parse=function(e,t){if(2!==e.length)return t.error("'literal' expression requires exactly one argument, but found "+(e.length-1)+" instead.");if(!ft(e[1]))return t.error("invalid value");var n=e[1],r=mt(n),a=t.expectedType;return"array"===r.kind&&0===r.N&&a&&"array"===a.kind&&("number"!=typeof a.N||0===a.N)&&(r=a),new yt(r,n)},yt.prototype.evaluate=function(){return this.value},yt.prototype.eachChild=function(){},yt.prototype.outputDefined=function(){return!0},yt.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof lt?["rgba"].concat(this.value.toArray()):this.value instanceof dt?this.value.serialize():this.value};var bt=function(e){this.name="ExpressionEvaluationError",this.message=e};bt.prototype.toJSON=function(){return this.message};var vt={string:Ge,number:Xe,boolean:Ye,object:$e},Mt=function(e,t){this.type=e,this.args=t};Mt.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n,r=1,a=e[0];if("array"===a){var i,o;if(e.length>2){var s=e[1];if("string"!=typeof s||!(s in vt)||"object"===s)return t.error('The item type argument of "array" must be one of string, number, boolean',1);i=vt[s],r++}else i=Je;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);o=e[2],r++}n=tt(i,o)}else n=vt[a];for(var l=[];r<e.length;r++){var c=t.parse(e[r],r,Je);if(!c)return null;l.push(c)}return new Mt(n,l)},Mt.prototype.evaluate=function(e){for(var t=0;t<this.args.length;t++){var n=this.args[t].evaluate(e);if(!at(this.type,mt(n)))return n;if(t===this.args.length-1)throw new bt("Expected value to be of type "+nt(this.type)+", but found "+nt(mt(n))+" instead.")}return null},Mt.prototype.eachChild=function(e){this.args.forEach(e)},Mt.prototype.outputDefined=function(){return this.args.every(function(e){return e.outputDefined()})},Mt.prototype.serialize=function(){var e=this.type,t=[e.kind];if("array"===e.kind){var n=e.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){t.push(n.kind);var r=e.N;("number"==typeof r||this.args.length>1)&&t.push(r)}}return t.concat(this.args.map(function(e){return e.serialize()}))};var xt=function(e){this.type=Ke,this.sections=e};xt.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n=e[1];if(!Array.isArray(n)&&"object"==typeof n)return t.error("First argument must be an image or text section.");for(var r=[],a=!1,i=1;i<=e.length-1;++i){var o=e[i];if(a&&"object"==typeof o&&!Array.isArray(o)){a=!1;var s=null;if(o["font-scale"]&&!(s=t.parse(o["font-scale"],1,Xe)))return null;var l=null;if(o["text-font"]&&!(l=t.parse(o["text-font"],1,tt(Ge))))return null;var c=null;if(o["text-color"]&&!(c=t.parse(o["text-color"],1,Ze)))return null;var u=r[r.length-1];u.scale=s,u.font=l,u.textColor=c}else{var d=t.parse(e[i],1,Je);if(!d)return null;var p=d.type.kind;if("string"!==p&&"value"!==p&&"null"!==p&&"resolvedImage"!==p)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");a=!0,r.push({content:d,scale:null,font:null,textColor:null})}}return new xt(r)},xt.prototype.evaluate=function(e){return new dt(this.sections.map(function(t){var n=t.content.evaluate(e);return mt(n)===et?new ut("",n,null,null,null):new ut(gt(n),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)}))},xt.prototype.eachChild=function(e){for(var t=0,n=this.sections;t<n.length;t+=1){var r=n[t];e(r.content),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor)}},xt.prototype.outputDefined=function(){return!1},xt.prototype.serialize=function(){for(var e=["format"],t=0,n=this.sections;t<n.length;t+=1){var r=n[t];e.push(r.content.serialize());var a={};r.scale&&(a["font-scale"]=r.scale.serialize()),r.font&&(a["text-font"]=r.font.serialize()),r.textColor&&(a["text-color"]=r.textColor.serialize()),e.push(a)}return e};var zt=function(e){this.type=et,this.input=e};zt.parse=function(e,t){if(2!==e.length)return t.error("Expected two arguments.");var n=t.parse(e[1],1,Ge);return n?new zt(n):t.error("No image name provided.")},zt.prototype.evaluate=function(e){var t=this.input.evaluate(e),n=pt.fromString(t);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(t)>-1),n},zt.prototype.eachChild=function(e){e(this.input)},zt.prototype.outputDefined=function(){return!1},zt.prototype.serialize=function(){return["image",this.input.serialize()]};var _t={"to-boolean":Ye,"to-color":Ze,"to-number":Xe,"to-string":Ge},At=function(e,t){this.type=e,this.args=t};At.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n=e[0];if(("to-boolean"===n||"to-string"===n)&&2!==e.length)return t.error("Expected one argument.");for(var r=_t[n],a=[],i=1;i<e.length;i++){var o=t.parse(e[i],i,Je);if(!o)return null;a.push(o)}return new At(r,a)},At.prototype.evaluate=function(e){if("boolean"===this.type.kind)return!!this.args[0].evaluate(e);if("color"===this.type.kind){for(var t,n,r=0,a=this.args;r<a.length;r+=1){if(n=null,(t=a[r].evaluate(e))instanceof lt)return t;if("string"==typeof t){var i=e.parseColor(t);if(i)return i}else if(Array.isArray(t)&&!(n=t.length<3||t.length>4?"Invalid rbga value "+JSON.stringify(t)+": expected an array containing either three or four numeric values.":ht(t[0],t[1],t[2],t[3])))return new lt(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new bt(n||"Could not parse color from value '"+("string"==typeof t?t:String(JSON.stringify(t)))+"'")}if("number"===this.type.kind){for(var o=null,s=0,l=this.args;s<l.length;s+=1){if(null===(o=l[s].evaluate(e)))return 0;var c=Number(o);if(!isNaN(c))return c}throw new bt("Could not convert "+JSON.stringify(o)+" to number.")}return"formatted"===this.type.kind?dt.fromString(gt(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?pt.fromString(gt(this.args[0].evaluate(e))):gt(this.args[0].evaluate(e))},At.prototype.eachChild=function(e){this.args.forEach(e)},At.prototype.outputDefined=function(){return this.args.every(function(e){return e.outputDefined()})},At.prototype.serialize=function(){if("formatted"===this.type.kind)return new xt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new zt(this.args[0]).serialize();var e=["to-"+this.type.kind];return this.eachChild(function(t){e.push(t.serialize())}),e};var Ot=["Unknown","Point","LineString","Polygon"],wt=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};wt.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},wt.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?Ot[this.feature.type]:this.feature.type:null},wt.prototype.geometry=function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null},wt.prototype.canonicalID=function(){return this.canonical},wt.prototype.properties=function(){return this.feature&&this.feature.properties||{}},wt.prototype.parseColor=function(e){var t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=lt.parse(e)),t};var kt=function(e,t,n,r){this.name=e,this.type=t,this._evaluate=n,this.args=r};kt.prototype.evaluate=function(e){return this._evaluate(e,this.args)},kt.prototype.eachChild=function(e){this.args.forEach(e)},kt.prototype.outputDefined=function(){return!1},kt.prototype.serialize=function(){return[this.name].concat(this.args.map(function(e){return e.serialize()}))},kt.parse=function(e,t){var n,r=e[0],a=kt.definitions[r];if(!a)return t.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0);for(var i=Array.isArray(a)?a[0]:a.type,o=Array.isArray(a)?[[a[1],a[2]]]:a.overloads,s=o.filter(function(t){var n=t[0];return!Array.isArray(n)||n.length===e.length-1}),l=null,c=0,u=s;c<u.length;c+=1){var d=u[c],p=d[0],h=d[1];l=new Qt(t.registry,t.path,null,t.scope);for(var f=[],m=!1,g=1;g<e.length;g++){var y=e[g],b=Array.isArray(p)?p[g-1]:p.type,v=l.parse(y,1+f.length,b);if(!v){m=!0;break}f.push(v)}if(!m){if(Array.isArray(p)&&p.length!==f.length){l.error("Expected "+p.length+" arguments, but found "+f.length+" instead.");continue}for(var M=0;M<f.length;M++){var x=Array.isArray(p)?p[M]:p.type,z=f[M];l.concat(M+1).checkSubtype(x,z.type)}if(0===l.errors.length)return new kt(r,i,h,f)}}if(1===s.length)(n=t.errors).push.apply(n,l.errors);else{for(var _=(s.length?s:o).map(function(e){var t,n=e[0];return t=n,Array.isArray(t)?"("+t.map(nt).join(", ")+")":"("+nt(t.type)+"...)"}).join(" | "),A=[],O=1;O<e.length;O++){var w=t.parse(e[O],1+A.length);if(!w)return null;A.push(nt(w.type))}t.error("Expected arguments of type "+_+", but found ("+A.join(", ")+") instead.")}return null},kt.register=function(e,t){for(var n in kt.definitions=t,t)e[n]=kt};var Tt=function(e,t,n){this.type=Qe,this.locale=n,this.caseSensitive=e,this.diacriticSensitive=t};Tt.parse=function(e,t){if(2!==e.length)return t.error("Expected one argument.");var n=e[1];if("object"!=typeof n||Array.isArray(n))return t.error("Collator options argument must be an object.");var r=t.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,Ye);if(!r)return null;var a=t.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,Ye);if(!a)return null;var i=null;return n.locale&&!(i=t.parse(n.locale,1,Ge))?null:new Tt(r,a,i)},Tt.prototype.evaluate=function(e){return new ct(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)},Tt.prototype.eachChild=function(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)},Tt.prototype.outputDefined=function(){return!1},Tt.prototype.serialize=function(){var e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]};var St=8192;function Ct(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function Et(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function qt(e,t){var n=function(e){return(180+e)/360}(e[0]),r=function(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}(e[1]),a=Math.pow(2,t.z);return[Math.round(n*a*St),Math.round(r*a*St)]}function Dt(e,t,n){var r=e[0]-t[0],a=e[1]-t[1],i=e[0]-n[0],o=e[1]-n[1];return r*o-i*a===0&&r*i<=0&&a*o<=0}function Rt(e,t,n){return t[1]>e[1]!=n[1]>e[1]&&e[0]<(n[0]-t[0])*(e[1]-t[1])/(n[1]-t[1])+t[0]}function Lt(e,t){for(var n=!1,r=0,a=t.length;r<a;r++)for(var i=t[r],o=0,s=i.length;o<s-1;o++){if(Dt(e,i[o],i[o+1]))return!1;Rt(e,i[o],i[o+1])&&(n=!n)}return n}function It(e,t){for(var n=0;n<t.length;n++)if(Lt(e,t[n]))return!0;return!1}function Wt(e,t,n,r){var a=e[0]-n[0],i=e[1]-n[1],o=t[0]-n[0],s=t[1]-n[1],l=r[0]-n[0],c=r[1]-n[1],u=a*c-l*i,d=o*c-l*s;return u>0&&d<0||u<0&&d>0}function Nt(e,t,n,r){var a=[t[0]-e[0],t[1]-e[1]];return 0!==function(e,t){return e[0]*t[1]-e[1]*t[0]}([r[0]-n[0],r[1]-n[1]],a)&&!(!Wt(e,t,n,r)||!Wt(n,r,e,t))}function Pt(e,t,n){for(var r=0,a=n;r<a.length;r+=1)for(var i=a[r],o=0;o<i.length-1;++o)if(Nt(e,t,i[o],i[o+1]))return!0;return!1}function Bt(e,t){for(var n=0;n<e.length;++n)if(!Lt(e[n],t))return!1;for(var r=0;r<e.length-1;++r)if(Pt(e[r],e[r+1],t))return!1;return!0}function Ft(e,t){for(var n=0;n<t.length;n++)if(Bt(e,t[n]))return!0;return!1}function jt(e,t,n){for(var r=[],a=0;a<e.length;a++){for(var i=[],o=0;o<e[a].length;o++){var s=qt(e[a][o],n);Ct(t,s),i.push(s)}r.push(i)}return r}function Ut(e,t,n){for(var r=[],a=0;a<e.length;a++){var i=jt(e[a],t,n);r.push(i)}return r}function Vt(e,t,n,r){if(e[0]<n[0]||e[0]>n[2]){var a=.5*r,i=e[0]-n[0]>a?-r:n[0]-e[0]>a?r:0;0===i&&(i=e[0]-n[2]>a?-r:n[2]-e[0]>a?r:0),e[0]+=i}Ct(t,e)}function Ht(e,t,n,r){for(var a=Math.pow(2,r.z)*St,i=[r.x*St,r.y*St],o=[],s=0,l=e;s<l.length;s+=1)for(var c=0,u=l[s];c<u.length;c+=1){var d=u[c],p=[d.x+i[0],d.y+i[1]];Vt(p,t,n,a),o.push(p)}return o}function Xt(e,t,n,r){for(var a=Math.pow(2,r.z)*St,i=[r.x*St,r.y*St],o=[],s=0,l=e;s<l.length;s+=1){for(var c=[],u=0,d=l[s];u<d.length;u+=1){var p=d[u],h=[p.x+i[0],p.y+i[1]];Ct(t,h),c.push(h)}o.push(c)}if(t[2]-t[0]<=a/2){!function(e){e[0]=e[1]=1/0,e[2]=e[3]=-1/0}(t);for(var f=0,m=o;f<m.length;f+=1)for(var g=0,y=m[f];g<y.length;g+=1)Vt(y[g],t,n,a)}return o}var Gt=function(e,t){this.type=Ye,this.geojson=e,this.geometries=t};function Yt(e){if(e instanceof kt){if("get"===e.name&&1===e.args.length)return!1;if("feature-state"===e.name)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(/^filter-/.test(e.name))return!1}if(e instanceof Gt)return!1;var t=!0;return e.eachChild(function(e){t&&!Yt(e)&&(t=!1)}),t}function Zt(e){if(e instanceof kt&&"feature-state"===e.name)return!1;var t=!0;return e.eachChild(function(e){t&&!Zt(e)&&(t=!1)}),t}function $t(e,t){if(e instanceof kt&&t.indexOf(e.name)>=0)return!1;var n=!0;return e.eachChild(function(e){n&&!$t(e,t)&&(n=!1)}),n}Gt.parse=function(e,t){if(2!==e.length)return t.error("'within' expression requires exactly one argument, but found "+(e.length-1)+" instead.");if(ft(e[1])){var n=e[1];if("FeatureCollection"===n.type)for(var r=0;r<n.features.length;++r){var a=n.features[r].geometry.type;if("Polygon"===a||"MultiPolygon"===a)return new Gt(n,n.features[r].geometry)}else if("Feature"===n.type){var i=n.geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new Gt(n,n.geometry)}else if("Polygon"===n.type||"MultiPolygon"===n.type)return new Gt(n,n)}return t.error("'within' expression requires valid geojson object that contains polygon geometry type.")},Gt.prototype.evaluate=function(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){var n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],a=e.canonicalID();if("Polygon"===t.type){var i=jt(t.coordinates,r,a),o=Ht(e.geometry(),n,r,a);if(!Et(n,r))return!1;for(var s=0,l=o;s<l.length;s+=1)if(!Lt(l[s],i))return!1}if("MultiPolygon"===t.type){var c=Ut(t.coordinates,r,a),u=Ht(e.geometry(),n,r,a);if(!Et(n,r))return!1;for(var d=0,p=u;d<p.length;d+=1)if(!It(p[d],c))return!1}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){var n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],a=e.canonicalID();if("Polygon"===t.type){var i=jt(t.coordinates,r,a),o=Xt(e.geometry(),n,r,a);if(!Et(n,r))return!1;for(var s=0,l=o;s<l.length;s+=1)if(!Bt(l[s],i))return!1}if("MultiPolygon"===t.type){var c=Ut(t.coordinates,r,a),u=Xt(e.geometry(),n,r,a);if(!Et(n,r))return!1;for(var d=0,p=u;d<p.length;d+=1)if(!Ft(p[d],c))return!1}return!0}(e,this.geometries)}return!1},Gt.prototype.eachChild=function(){},Gt.prototype.outputDefined=function(){return!0},Gt.prototype.serialize=function(){return["within",this.geojson]};var Jt=function(e,t){this.type=t.type,this.name=e,this.boundExpression=t};Jt.parse=function(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");var n=e[1];return t.scope.has(n)?new Jt(n,t.scope.get(n)):t.error('Unknown variable "'+n+'". Make sure "'+n+'" has been bound in an enclosing "let" expression before using it.',1)},Jt.prototype.evaluate=function(e){return this.boundExpression.evaluate(e)},Jt.prototype.eachChild=function(){},Jt.prototype.outputDefined=function(){return!1},Jt.prototype.serialize=function(){return["var",this.name]};var Qt=function(e,t,n,r,a){void 0===t&&(t=[]),void 0===r&&(r=new Ve),void 0===a&&(a=[]),this.registry=e,this.path=t,this.key=t.map(function(e){return"["+e+"]"}).join(""),this.scope=r,this.errors=a,this.expectedType=n};function Kt(e){if(e instanceof Jt)return Kt(e.boundExpression);if(e instanceof kt&&"error"===e.name)return!1;if(e instanceof Tt)return!1;if(e instanceof Gt)return!1;var t=e instanceof At||e instanceof Mt,n=!0;return e.eachChild(function(e){n=t?n&&Kt(e):n&&e instanceof yt}),!!n&&Yt(e)&&$t(e,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function en(e,t){for(var n,r,a=e.length-1,i=0,o=a,s=0;i<=o;)if(n=e[s=Math.floor((i+o)/2)],r=e[s+1],n<=t){if(s===a||t<r)return s;i=s+1}else{if(!(n>t))throw new bt("Input is not a number.");o=s-1}return 0}Qt.prototype.parse=function(e,t,n,r,a){return void 0===a&&(a={}),t?this.concat(t,n,r)._parse(e,a):this._parse(e,a)},Qt.prototype._parse=function(e,t){function n(e,t,n){return"assert"===n?new Mt(t,[e]):"coerce"===n?new At(t,[e]):e}if((null===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e)&&(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var r=e[0];if("string"!=typeof r)return this.error("Expression name must be a string, but found "+typeof r+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var a=this.registry[r];if(a){var i=a.parse(e,this);if(!i)return null;if(this.expectedType){var o=this.expectedType,s=i.type;if("string"!==o.kind&&"number"!==o.kind&&"boolean"!==o.kind&&"object"!==o.kind&&"array"!==o.kind||"value"!==s.kind)if("color"!==o.kind&&"formatted"!==o.kind&&"resolvedImage"!==o.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(o,s))return null}else i=n(i,o,t.typeAnnotation||"coerce");else i=n(i,o,t.typeAnnotation||"assert")}if(!(i instanceof yt)&&"resolvedImage"!==i.type.kind&&Kt(i)){var l=new wt;try{i=new yt(i.type,i.evaluate(l))}catch(e){return this.error(e.message),null}}return i}return this.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0)}return typeof e>"u"?this.error("'undefined' value invalid. Use null instead."):"object"==typeof e?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof e+" instead.")},Qt.prototype.concat=function(e,t,n){var r="number"==typeof e?this.path.concat(e):this.path,a=n?this.scope.concat(n):this.scope;return new Qt(this.registry,r,t||null,a,this.errors)},Qt.prototype.error=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=""+this.key+t.map(function(e){return"["+e+"]"}).join("");this.errors.push(new Ue(r,e))},Qt.prototype.checkSubtype=function(e,t){var n=at(e,t);return n&&this.error(n),n};var tn=function(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(var r=0,a=n;r<a.length;r+=1){var i=a[r],o=i[0],s=i[1];this.labels.push(o),this.outputs.push(s)}};function nn(e,t,n){return e*(1-n)+t*n}tn.parse=function(e,t){if(e.length-1<4)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");var n=t.parse(e[1],1,Xe);if(!n)return null;var r=[],a=null;t.expectedType&&"value"!==t.expectedType.kind&&(a=t.expectedType);for(var i=1;i<e.length;i+=2){var o=1===i?-1/0:e[i],s=e[i+1],l=i,c=i+1;if("number"!=typeof o)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(r.length&&r[r.length-1][0]>=o)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var u=t.parse(s,c,a);if(!u)return null;a=a||u.type,r.push([o,u])}return new tn(a,n,r)},tn.prototype.evaluate=function(e){var t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);var r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);var a=t.length;return r>=t[a-1]?n[a-1].evaluate(e):n[en(t,r)].evaluate(e)},tn.prototype.eachChild=function(e){e(this.input);for(var t=0,n=this.outputs;t<n.length;t+=1)e(n[t])},tn.prototype.outputDefined=function(){return this.outputs.every(function(e){return e.outputDefined()})},tn.prototype.serialize=function(){for(var e=["step",this.input.serialize()],t=0;t<this.labels.length;t++)t>0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e};var rn=Object.freeze({__proto__:null,number:nn,color:function(e,t,n){return new lt(nn(e.r,t.r,n),nn(e.g,t.g,n),nn(e.b,t.b,n),nn(e.a,t.a,n))},array:function(e,t,n){return e.map(function(e,r){return nn(e,t[r],n)})}}),an=.95047,on=1.08883,sn=4/29,ln=6/29,cn=3*ln*ln,un=ln*ln*ln,dn=Math.PI/180,pn=180/Math.PI;function hn(e){return e>un?Math.pow(e,1/3):e/cn+sn}function fn(e){return e>ln?e*e*e:cn*(e-sn)}function mn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function gn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yn(e){var t=gn(e.r),n=gn(e.g),r=gn(e.b),a=hn((.4124564*t+.3575761*n+.1804375*r)/an),i=hn((.2126729*t+.7151522*n+.072175*r)/1);return{l:116*i-16,a:500*(a-i),b:200*(i-hn((.0193339*t+.119192*n+.9503041*r)/on)),alpha:e.a}}function bn(e){var t=(e.l+16)/116,n=isNaN(e.a)?t:t+e.a/500,r=isNaN(e.b)?t:t-e.b/200;return t=1*fn(t),n=an*fn(n),r=on*fn(r),new lt(mn(3.2404542*n-1.5371385*t-.4985314*r),mn(-.969266*n+1.8760108*t+.041556*r),mn(.0556434*n-.2040259*t+1.0572252*r),e.alpha)}function vn(e,t,n){var r=t-e;return e+n*(r>180||r<-180?r-360*Math.round(r/360):r)}var Mn={forward:yn,reverse:bn,interpolate:function(e,t,n){return{l:nn(e.l,t.l,n),a:nn(e.a,t.a,n),b:nn(e.b,t.b,n),alpha:nn(e.alpha,t.alpha,n)}}},xn={forward:function(e){var t=yn(e),n=t.l,r=t.a,a=t.b,i=Math.atan2(a,r)*pn;return{h:i<0?i+360:i,c:Math.sqrt(r*r+a*a),l:n,alpha:e.a}},reverse:function(e){var t=e.h*dn,n=e.c;return bn({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},interpolate:function(e,t,n){return{h:vn(e.h,t.h,n),c:nn(e.c,t.c,n),l:nn(e.l,t.l,n),alpha:nn(e.alpha,t.alpha,n)}}},zn=Object.freeze({__proto__:null,lab:Mn,hcl:xn}),_n=function(e,t,n,r,a){this.type=e,this.operator=t,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(var i=0,o=a;i<o.length;i+=1){var s=o[i],l=s[0],c=s[1];this.labels.push(l),this.outputs.push(c)}};function An(e,t,n,r){var a=r-n,i=e-n;return 0===a?0:1===t?i/a:(Math.pow(t,i)-1)/(Math.pow(t,a)-1)}_n.interpolationFactor=function(e,t,n,a){var i=0;if("exponential"===e.name)i=An(t,e.base,n,a);else if("linear"===e.name)i=An(t,1,n,a);else if("cubic-bezier"===e.name){var o=e.controlPoints;i=new r(o[0],o[1],o[2],o[3]).solve(An(t,1,n,a))}return i},_n.parse=function(e,t){var n=e[0],r=e[1],a=e[2],i=e.slice(3);if(!Array.isArray(r)||0===r.length)return t.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){var o=r[1];if("number"!=typeof o)return t.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:o}}else{if("cubic-bezier"!==r[0])return t.error("Unknown interpolation type "+String(r[0]),1,0);var s=r.slice(1);if(4!==s.length||s.some(function(e){return"number"!=typeof e||e<0||e>1}))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:s}}if(e.length-1<4)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(!(a=t.parse(a,2,Xe)))return null;var l=[],c=null;"interpolate-hcl"===n||"interpolate-lab"===n?c=Ze:t.expectedType&&"value"!==t.expectedType.kind&&(c=t.expectedType);for(var u=0;u<i.length;u+=2){var d=i[u],p=i[u+1],h=u+3,f=u+4;if("number"!=typeof d)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',h);if(l.length&&l[l.length-1][0]>=d)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',h);var m=t.parse(p,f,c);if(!m)return null;c=c||m.type,l.push([d,m])}return"number"===c.kind||"color"===c.kind||"array"===c.kind&&"number"===c.itemType.kind&&"number"==typeof c.N?new _n(c,n,r,a,l):t.error("Type "+nt(c)+" is not interpolatable.")},_n.prototype.evaluate=function(e){var t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);var r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);var a=t.length;if(r>=t[a-1])return n[a-1].evaluate(e);var i=en(t,r),o=t[i],s=t[i+1],l=_n.interpolationFactor(this.interpolation,r,o,s),c=n[i].evaluate(e),u=n[i+1].evaluate(e);return"interpolate"===this.operator?rn[this.type.kind.toLowerCase()](c,u,l):"interpolate-hcl"===this.operator?xn.reverse(xn.interpolate(xn.forward(c),xn.forward(u),l)):Mn.reverse(Mn.interpolate(Mn.forward(c),Mn.forward(u),l))},_n.prototype.eachChild=function(e){e(this.input);for(var t=0,n=this.outputs;t<n.length;t+=1)e(n[t])},_n.prototype.outputDefined=function(){return this.outputs.every(function(e){return e.outputDefined()})},_n.prototype.serialize=function(){var e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var t=[this.operator,e,this.input.serialize()],n=0;n<this.labels.length;n++)t.push(this.labels[n],this.outputs[n].serialize());return t};var On=function(e,t){this.type=e,this.args=t};On.parse=function(e,t){if(e.length<2)return t.error("Expectected at least one argument.");var n=null,r=t.expectedType;r&&"value"!==r.kind&&(n=r);for(var a=[],i=0,o=e.slice(1);i<o.length;i+=1){var s=o[i],l=t.parse(s,1+a.length,n,void 0,{typeAnnotation:"omit"});if(!l)return null;n=n||l.type,a.push(l)}var c=r&&a.some(function(e){return at(r,e.type)});return new On(c?Je:n,a)},On.prototype.evaluate=function(e){for(var t,n=null,r=0,a=0,i=this.args;a<i.length&&(r++,(n=i[a].evaluate(e))&&n instanceof pt&&!n.available&&(t||(t=n.name),n=null,r===this.args.length&&(n=t)),null===n);a+=1);return n},On.prototype.eachChild=function(e){this.args.forEach(e)},On.prototype.outputDefined=function(){return this.args.every(function(e){return e.outputDefined()})},On.prototype.serialize=function(){var e=["coalesce"];return this.eachChild(function(t){e.push(t.serialize())}),e};var wn=function(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t};wn.prototype.evaluate=function(e){return this.result.evaluate(e)},wn.prototype.eachChild=function(e){for(var t=0,n=this.bindings;t<n.length;t+=1)e(n[t][1]);e(this.result)},wn.parse=function(e,t){if(e.length<4)return t.error("Expected at least 3 arguments, but found "+(e.length-1)+" instead.");for(var n=[],r=1;r<e.length-1;r+=2){var a=e[r];if("string"!=typeof a)return t.error("Expected string, but found "+typeof a+" instead.",r);if(/[^a-zA-Z0-9_]/.test(a))return t.error("Variable names must contain only alphanumeric characters or '_'.",r);var i=t.parse(e[r+1],r+1);if(!i)return null;n.push([a,i])}var o=t.parse(e[e.length-1],e.length-1,t.expectedType,n);return o?new wn(n,o):null},wn.prototype.outputDefined=function(){return this.result.outputDefined()},wn.prototype.serialize=function(){for(var e=["let"],t=0,n=this.bindings;t<n.length;t+=1){var r=n[t],a=r[0],i=r[1];e.push(a,i.serialize())}return e.push(this.result.serialize()),e};var kn=function(e,t,n){this.type=e,this.index=t,this.input=n};kn.parse=function(e,t){if(3!==e.length)return t.error("Expected 2 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,Xe),r=t.parse(e[2],2,tt(t.expectedType||Je));if(!n||!r)return null;var a=r.type;return new kn(a.itemType,n,r)},kn.prototype.evaluate=function(e){var t=this.index.evaluate(e),n=this.input.evaluate(e);if(t<0)throw new bt("Array index out of bounds: "+t+" < 0.");if(t>=n.length)throw new bt("Array index out of bounds: "+t+" > "+(n.length-1)+".");if(t!==Math.floor(t))throw new bt("Array index must be an integer, but found "+t+" instead.");return n[t]},kn.prototype.eachChild=function(e){e(this.index),e(this.input)},kn.prototype.outputDefined=function(){return!1},kn.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Tn=function(e,t){this.type=Ye,this.needle=e,this.haystack=t};Tn.parse=function(e,t){if(3!==e.length)return t.error("Expected 2 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,Je),r=t.parse(e[2],2,Je);return n&&r?it(n.type,[Ye,Ge,Xe,He,Je])?new Tn(n,r):t.error("Expected first argument to be of type boolean, string, number or null, but found "+nt(n.type)+" instead"):null},Tn.prototype.evaluate=function(e){var t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!n)return!1;if(!ot(t,["boolean","string","number","null"]))throw new bt("Expected first argument to be of type boolean, string, number or null, but found "+nt(mt(t))+" instead.");if(!ot(n,["string","array"]))throw new bt("Expected second argument to be of type array or string, but found "+nt(mt(n))+" instead.");return n.indexOf(t)>=0},Tn.prototype.eachChild=function(e){e(this.needle),e(this.haystack)},Tn.prototype.outputDefined=function(){return!0},Tn.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Sn=function(e,t,n){this.type=Xe,this.needle=e,this.haystack=t,this.fromIndex=n};Sn.parse=function(e,t){if(e.length<=2||e.length>=5)return t.error("Expected 3 or 4 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,Je),r=t.parse(e[2],2,Je);if(!n||!r)return null;if(!it(n.type,[Ye,Ge,Xe,He,Je]))return t.error("Expected first argument to be of type boolean, string, number or null, but found "+nt(n.type)+" instead");if(4===e.length){var a=t.parse(e[3],3,Xe);return a?new Sn(n,r,a):null}return new Sn(n,r)},Sn.prototype.evaluate=function(e){var t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!ot(t,["boolean","string","number","null"]))throw new bt("Expected first argument to be of type boolean, string, number or null, but found "+nt(mt(t))+" instead.");if(!ot(n,["string","array"]))throw new bt("Expected second argument to be of type array or string, but found "+nt(mt(n))+" instead.");if(this.fromIndex){var r=this.fromIndex.evaluate(e);return n.indexOf(t,r)}return n.indexOf(t)},Sn.prototype.eachChild=function(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)},Sn.prototype.outputDefined=function(){return!1},Sn.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Cn=function(e,t,n,r,a,i){this.inputType=e,this.type=t,this.input=n,this.cases=r,this.outputs=a,this.otherwise=i};Cn.parse=function(e,t){if(e.length<5)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if(e.length%2!=1)return t.error("Expected an even number of arguments.");var n,r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);for(var a={},i=[],o=2;o<e.length-1;o+=2){var s=e[o],l=e[o+1];Array.isArray(s)||(s=[s]);var c=t.concat(o);if(0===s.length)return c.error("Expected at least one branch label.");for(var u=0,d=s;u<d.length;u+=1){var p=d[u];if("number"!=typeof p&&"string"!=typeof p)return c.error("Branch labels must be numbers or strings.");if("number"==typeof p&&Math.abs(p)>Number.MAX_SAFE_INTEGER)return c.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof p&&Math.floor(p)!==p)return c.error("Numeric branch labels must be integer values.");if(n){if(c.checkSubtype(n,mt(p)))return null}else n=mt(p);if(typeof a[String(p)]<"u")return c.error("Branch labels must be unique.");a[String(p)]=i.length}var h=t.parse(l,o,r);if(!h)return null;r=r||h.type,i.push(h)}var f=t.parse(e[1],1,Je);if(!f)return null;var m=t.parse(e[e.length-1],e.length-1,r);return!m||"value"!==f.type.kind&&t.concat(1).checkSubtype(n,f.type)?null:new Cn(n,r,f,a,i,m)},Cn.prototype.evaluate=function(e){var t=this.input.evaluate(e);return(mt(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)},Cn.prototype.eachChild=function(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)},Cn.prototype.outputDefined=function(){return this.outputs.every(function(e){return e.outputDefined()})&&this.otherwise.outputDefined()},Cn.prototype.serialize=function(){for(var e=this,t=["match",this.input.serialize()],n=[],r={},a=0,i=Object.keys(this.cases).sort();a<i.length;a+=1){var o=i[a];void 0===(d=r[this.cases[o]])?(r[this.cases[o]]=n.length,n.push([this.cases[o],[o]])):n[d][1].push(o)}for(var s=function(t){return"number"===e.inputType.kind?Number(t):t},l=0,c=n;l<c.length;l+=1){var u=c[l],d=u[0],p=u[1];1===p.length?t.push(s(p[0])):t.push(p.map(s)),t.push(this.outputs[outputIndex$1].serialize())}return t.push(this.otherwise.serialize()),t};var En=function(e,t,n){this.type=e,this.branches=t,this.otherwise=n};En.parse=function(e,t){if(e.length<4)return t.error("Expected at least 3 arguments, but found only "+(e.length-1)+".");if(e.length%2!=0)return t.error("Expected an odd number of arguments.");var n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);for(var r=[],a=1;a<e.length-1;a+=2){var i=t.parse(e[a],a,Ye);if(!i)return null;var o=t.parse(e[a+1],a+1,n);if(!o)return null;r.push([i,o]),n=n||o.type}var s=t.parse(e[e.length-1],e.length-1,n);return s?new En(n,r,s):null},En.prototype.evaluate=function(e){for(var t=0,n=this.branches;t<n.length;t+=1){var r=n[t],a=r[0],i=r[1];if(a.evaluate(e))return i.evaluate(e)}return this.otherwise.evaluate(e)},En.prototype.eachChild=function(e){for(var t=0,n=this.branches;t<n.length;t+=1){var r=n[t],a=r[0],i=r[1];e(a),e(i)}e(this.otherwise)},En.prototype.outputDefined=function(){return this.branches.every(function(e){return e[0],e[1].outputDefined()})&&this.otherwise.outputDefined()},En.prototype.serialize=function(){var e=["case"];return this.eachChild(function(t){e.push(t.serialize())}),e};var qn=function(e,t,n,r){this.type=e,this.input=t,this.beginIndex=n,this.endIndex=r};function Dn(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function Rn(e,t,n,r){return 0===r.compare(t,n)}function Ln(e,t,n){var r="=="!==e&&"!="!==e;return function(){function a(e,t,n){this.type=Ye,this.lhs=e,this.rhs=t,this.collator=n,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}return a.parse=function(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");var n=e[0],i=t.parse(e[1],1,Je);if(!i)return null;if(!Dn(n,i.type))return t.concat(1).error('"'+n+"\" comparisons are not supported for type '"+nt(i.type)+"'.");var o=t.parse(e[2],2,Je);if(!o)return null;if(!Dn(n,o.type))return t.concat(2).error('"'+n+"\" comparisons are not supported for type '"+nt(o.type)+"'.");if(i.type.kind!==o.type.kind&&"value"!==i.type.kind&&"value"!==o.type.kind)return t.error("Cannot compare types '"+nt(i.type)+"' and '"+nt(o.type)+"'.");r&&("value"===i.type.kind&&"value"!==o.type.kind?i=new Mt(o.type,[i]):"value"!==i.type.kind&&"value"===o.type.kind&&(o=new Mt(i.type,[o])));var s=null;if(4===e.length){if("string"!==i.type.kind&&"string"!==o.type.kind&&"value"!==i.type.kind&&"value"!==o.type.kind)return t.error("Cannot use collator to compare non-string types.");if(!(s=t.parse(e[3],3,Qe)))return null}return new a(i,o,s)},a.prototype.evaluate=function(a){var i=this.lhs.evaluate(a),o=this.rhs.evaluate(a);if(r&&this.hasUntypedArgument){var s=mt(i),l=mt(o);if(s.kind!==l.kind||"string"!==s.kind&&"number"!==s.kind)throw new bt('Expected arguments for "'+e+'" to be (string, string) or (number, number), but found ('+s.kind+", "+l.kind+") instead.")}if(this.collator&&!r&&this.hasUntypedArgument){var c=mt(i),u=mt(o);if("string"!==c.kind||"string"!==u.kind)return t(a,i,o)}return this.collator?n(a,i,o,this.collator.evaluate(a)):t(a,i,o)},a.prototype.eachChild=function(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)},a.prototype.outputDefined=function(){return!0},a.prototype.serialize=function(){var t=[e];return this.eachChild(function(e){t.push(e.serialize())}),t},a}()}qn.parse=function(e,t){if(e.length<=2||e.length>=5)return t.error("Expected 3 or 4 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,Je),r=t.parse(e[2],2,Xe);if(!n||!r)return null;if(!it(n.type,[tt(Je),Ge,Je]))return t.error("Expected first argument to be of type array or string, but found "+nt(n.type)+" instead");if(4===e.length){var a=t.parse(e[3],3,Xe);return a?new qn(n.type,n,r,a):null}return new qn(n.type,n,r)},qn.prototype.evaluate=function(e){var t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!ot(t,["string","array"]))throw new bt("Expected first argument to be of type array or string, but found "+nt(mt(t))+" instead.");if(this.endIndex){var r=this.endIndex.evaluate(e);return t.slice(n,r)}return t.slice(n)},qn.prototype.eachChild=function(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)},qn.prototype.outputDefined=function(){return!1},qn.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var In=Ln("==",function(e,t,n){return t===n},Rn),Wn=Ln("!=",function(e,t,n){return t!==n},function(e,t,n,r){return!Rn(0,t,n,r)}),Nn=Ln("<",function(e,t,n){return t<n},function(e,t,n,r){return r.compare(t,n)<0}),Pn=Ln(">",function(e,t,n){return t>n},function(e,t,n,r){return r.compare(t,n)>0}),Bn=Ln("<=",function(e,t,n){return t<=n},function(e,t,n,r){return r.compare(t,n)<=0}),Fn=Ln(">=",function(e,t,n){return t>=n},function(e,t,n,r){return r.compare(t,n)>=0}),jn=function(e,t,n,r,a){this.type=Ge,this.number=e,this.locale=t,this.currency=n,this.minFractionDigits=r,this.maxFractionDigits=a};jn.parse=function(e,t){if(3!==e.length)return t.error("Expected two arguments.");var n=t.parse(e[1],1,Xe);if(!n)return null;var r=e[2];if("object"!=typeof r||Array.isArray(r))return t.error("NumberFormat options argument must be an object.");var a=null;if(r.locale&&!(a=t.parse(r.locale,1,Ge)))return null;var i=null;if(r.currency&&!(i=t.parse(r.currency,1,Ge)))return null;var o=null;if(r["min-fraction-digits"]&&!(o=t.parse(r["min-fraction-digits"],1,Xe)))return null;var s=null;return r["max-fraction-digits"]&&!(s=t.parse(r["max-fraction-digits"],1,Xe))?null:new jn(n,a,i,o,s)},jn.prototype.evaluate=function(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))},jn.prototype.eachChild=function(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)},jn.prototype.outputDefined=function(){return!1},jn.prototype.serialize=function(){var e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]};var Un=function(e){this.type=Xe,this.input=e};Un.parse=function(e,t){if(2!==e.length)return t.error("Expected 1 argument, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?t.error("Expected argument of type string or array, but found "+nt(n.type)+" instead."):new Un(n):null},Un.prototype.evaluate=function(e){var t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new bt("Expected value to be of type string or array, but found "+nt(mt(t))+" instead.")},Un.prototype.eachChild=function(e){e(this.input)},Un.prototype.outputDefined=function(){return!1},Un.prototype.serialize=function(){var e=["length"];return this.eachChild(function(t){e.push(t.serialize())}),e};var Vn={"==":In,"!=":Wn,">":Pn,"<":Nn,">=":Fn,"<=":Bn,array:Mt,at:kn,boolean:Mt,case:En,coalesce:On,collator:Tt,format:xt,image:zt,in:Tn,"index-of":Sn,interpolate:_n,"interpolate-hcl":_n,"interpolate-lab":_n,length:Un,let:wn,literal:yt,match:Cn,number:Mt,"number-format":jn,object:Mt,slice:qn,step:tn,string:Mt,"to-boolean":At,"to-color":At,"to-number":At,"to-string":At,var:Jt,within:Gt};function Hn(e,t){var n=t[0],r=t[1],a=t[2],i=t[3];n=n.evaluate(e),r=r.evaluate(e),a=a.evaluate(e);var o=i?i.evaluate(e):1,s=ht(n,r,a,o);if(s)throw new bt(s);return new lt(n/255*o,r/255*o,a/255*o,o)}function Xn(e,t){return e in t}function Gn(e,t){var n=t[e];return typeof n>"u"?null:n}function Yn(e){return{type:e}}function Zn(e){return{result:"success",value:e}}function $n(e){return{result:"error",value:e}}function Jn(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function Qn(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function Kn(e){return!!e.expression&&e.expression.interpolated}function er(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function tr(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function nr(e){return e}function rr(e,t){var n,r,a,i="color"===t.type,o=e.stops&&"object"==typeof e.stops[0][0],s=o||void 0!==e.property,l=o||!s,c=e.type||(Kn(t)?"exponential":"interval");if(i&&((e=Be({},e)).stops&&(e.stops=e.stops.map(function(e){return[e[0],lt.parse(e[1])]})),e.default?e.default=lt.parse(e.default):e.default=lt.parse(t.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!zn[e.colorSpace])throw new Error("Unknown color space: "+e.colorSpace);if("exponential"===c)n=sr;else if("interval"===c)n=or;else if("categorical"===c){n=ir,r=Object.create(null);for(var u=0,d=e.stops;u<d.length;u+=1){var p=d[u];r[p[0]]=p[1]}a=typeof e.stops[0][0]}else{if("identity"!==c)throw new Error('Unknown function type "'+c+'"');n=lr}if(o){for(var h={},f=[],m=0;m<e.stops.length;m++){var g=e.stops[m],y=g[0].zoom;void 0===h[y]&&(h[y]={zoom:y,type:e.type,property:e.property,default:e.default,stops:[]},f.push(y)),h[y].stops.push([g[0].value,g[1]])}for(var b=[],v=0,M=f;v<M.length;v+=1){var x=M[v];b.push([h[x].zoom,rr(h[x],t)])}var z={name:"linear"};return{kind:"composite",interpolationType:z,interpolationFactor:_n.interpolationFactor.bind(void 0,z),zoomStops:b.map(function(e){return e[0]}),evaluate:function(n,r){var a=n.zoom;return sr({stops:b,base:e.base},t,a).evaluate(a,r)}}}if(l){var _="exponential"===c?{name:"exponential",base:void 0!==e.base?e.base:1}:null;return{kind:"camera",interpolationType:_,interpolationFactor:_n.interpolationFactor.bind(void 0,_),zoomStops:e.stops.map(function(e){return e[0]}),evaluate:function(i){var o=i.zoom;return n(e,t,o,r,a)}}}return{kind:"source",evaluate:function(i,o){var s=o&&o.properties?o.properties[e.property]:void 0;return void 0===s?ar(e.default,t.default):n(e,t,s,r,a)}}}function ar(e,t,n){return void 0!==e?e:void 0!==t?t:void 0!==n?n:void 0}function ir(e,t,n,r,a){return ar(typeof n===a?r[n]:void 0,e.default,t.default)}function or(e,t,n){if("number"!==er(n))return ar(e.default,t.default);var r=e.stops.length;if(1===r||n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[r-1][0])return e.stops[r-1][1];var a=en(e.stops.map(function(e){return e[0]}),n);return e.stops[a][1]}function sr(e,t,n){var r=void 0!==e.base?e.base:1;if("number"!==er(n))return ar(e.default,t.default);var a=e.stops.length;if(1===a||n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[a-1][0])return e.stops[a-1][1];var i=en(e.stops.map(function(e){return e[0]}),n),o=function(e,t,n,r){var a=r-n,i=e-n;return 0===a?0:1===t?i/a:(Math.pow(t,i)-1)/(Math.pow(t,a)-1)}(n,r,e.stops[i][0],e.stops[i+1][0]),s=e.stops[i][1],l=e.stops[i+1][1],c=rn[t.type]||nr;if(e.colorSpace&&"rgb"!==e.colorSpace){var u=zn[e.colorSpace];c=function(e,t){return u.reverse(u.interpolate(u.forward(e),u.forward(t),o))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=s.evaluate.apply(void 0,e),r=l.evaluate.apply(void 0,e);if(void 0!==n&&void 0!==r)return c(n,r,o)}}:c(s,l,o)}function lr(e,t,n){return"color"===t.type?n=lt.parse(n):"formatted"===t.type?n=dt.fromString(n.toString()):"resolvedImage"===t.type?n=pt.fromString(n.toString()):er(n)!==t.type&&("enum"!==t.type||!t.values[n])&&(n=void 0),ar(n,e.default,t.default)}kt.register(Vn,{error:[{kind:"error"},[Ge],function(e,t){var n=t[0];throw new bt(n.evaluate(e))}],typeof:[Ge,[Je],function(e,t){return nt(mt(t[0].evaluate(e)))}],"to-rgba":[tt(Xe,4),[Ze],function(e,t){return t[0].evaluate(e).toArray()}],rgb:[Ze,[Xe,Xe,Xe],Hn],rgba:[Ze,[Xe,Xe,Xe,Xe],Hn],has:{type:Ye,overloads:[[[Ge],function(e,t){return Xn(t[0].evaluate(e),e.properties())}],[[Ge,$e],function(e,t){var n=t[0],r=t[1];return Xn(n.evaluate(e),r.evaluate(e))}]]},get:{type:Je,overloads:[[[Ge],function(e,t){return Gn(t[0].evaluate(e),e.properties())}],[[Ge,$e],function(e,t){var n=t[0],r=t[1];return Gn(n.evaluate(e),r.evaluate(e))}]]},"feature-state":[Je,[Ge],function(e,t){return Gn(t[0].evaluate(e),e.featureState||{})}],properties:[$e,[],function(e){return e.properties()}],"geometry-type":[Ge,[],function(e){return e.geometryType()}],id:[Je,[],function(e){return e.id()}],zoom:[Xe,[],function(e){return e.globals.zoom}],"heatmap-density":[Xe,[],function(e){return e.globals.heatmapDensity||0}],"line-progress":[Xe,[],function(e){return e.globals.lineProgress||0}],accumulated:[Je,[],function(e){return void 0===e.globals.accumulated?null:e.globals.accumulated}],"+":[Xe,Yn(Xe),function(e,t){for(var n=0,r=0,a=t;r<a.length;r+=1)n+=a[r].evaluate(e);return n}],"*":[Xe,Yn(Xe),function(e,t){for(var n=1,r=0,a=t;r<a.length;r+=1)n*=a[r].evaluate(e);return n}],"-":{type:Xe,overloads:[[[Xe,Xe],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)-r.evaluate(e)}],[[Xe],function(e,t){return-t[0].evaluate(e)}]]},"/":[Xe,[Xe,Xe],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)/r.evaluate(e)}],"%":[Xe,[Xe,Xe],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)%r.evaluate(e)}],ln2:[Xe,[],function(){return Math.LN2}],pi:[Xe,[],function(){return Math.PI}],e:[Xe,[],function(){return Math.E}],"^":[Xe,[Xe,Xe],function(e,t){var n=t[0],r=t[1];return Math.pow(n.evaluate(e),r.evaluate(e))}],sqrt:[Xe,[Xe],function(e,t){var n=t[0];return Math.sqrt(n.evaluate(e))}],log10:[Xe,[Xe],function(e,t){var n=t[0];return Math.log(n.evaluate(e))/Math.LN10}],ln:[Xe,[Xe],function(e,t){var n=t[0];return Math.log(n.evaluate(e))}],log2:[Xe,[Xe],function(e,t){var n=t[0];return Math.log(n.evaluate(e))/Math.LN2}],sin:[Xe,[Xe],function(e,t){var n=t[0];return Math.sin(n.evaluate(e))}],cos:[Xe,[Xe],function(e,t){var n=t[0];return Math.cos(n.evaluate(e))}],tan:[Xe,[Xe],function(e,t){var n=t[0];return Math.tan(n.evaluate(e))}],asin:[Xe,[Xe],function(e,t){var n=t[0];return Math.asin(n.evaluate(e))}],acos:[Xe,[Xe],function(e,t){var n=t[0];return Math.acos(n.evaluate(e))}],atan:[Xe,[Xe],function(e,t){var n=t[0];return Math.atan(n.evaluate(e))}],min:[Xe,Yn(Xe),function(e,t){return Math.min.apply(Math,t.map(function(t){return t.evaluate(e)}))}],max:[Xe,Yn(Xe),function(e,t){return Math.max.apply(Math,t.map(function(t){return t.evaluate(e)}))}],abs:[Xe,[Xe],function(e,t){var n=t[0];return Math.abs(n.evaluate(e))}],round:[Xe,[Xe],function(e,t){var n=t[0].evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[Xe,[Xe],function(e,t){var n=t[0];return Math.floor(n.evaluate(e))}],ceil:[Xe,[Xe],function(e,t){var n=t[0];return Math.ceil(n.evaluate(e))}],"filter-==":[Ye,[Ge,Je],function(e,t){var n=t[0],r=t[1];return e.properties()[n.value]===r.value}],"filter-id-==":[Ye,[Je],function(e,t){var n=t[0];return e.id()===n.value}],"filter-type-==":[Ye,[Ge],function(e,t){var n=t[0];return e.geometryType()===n.value}],"filter-<":[Ye,[Ge,Je],function(e,t){var n=t[0],r=t[1],a=e.properties()[n.value],i=r.value;return typeof a==typeof i&&a<i}],"filter-id-<":[Ye,[Je],function(e,t){var n=t[0],r=e.id(),a=n.value;return typeof r==typeof a&&r<a}],"filter->":[Ye,[Ge,Je],function(e,t){var n=t[0],r=t[1],a=e.properties()[n.value],i=r.value;return typeof a==typeof i&&a>i}],"filter-id->":[Ye,[Je],function(e,t){var n=t[0],r=e.id(),a=n.value;return typeof r==typeof a&&r>a}],"filter-<=":[Ye,[Ge,Je],function(e,t){var n=t[0],r=t[1],a=e.properties()[n.value],i=r.value;return typeof a==typeof i&&a<=i}],"filter-id-<=":[Ye,[Je],function(e,t){var n=t[0],r=e.id(),a=n.value;return typeof r==typeof a&&r<=a}],"filter->=":[Ye,[Ge,Je],function(e,t){var n=t[0],r=t[1],a=e.properties()[n.value],i=r.value;return typeof a==typeof i&&a>=i}],"filter-id->=":[Ye,[Je],function(e,t){var n=t[0],r=e.id(),a=n.value;return typeof r==typeof a&&r>=a}],"filter-has":[Ye,[Je],function(e,t){return t[0].value in e.properties()}],"filter-has-id":[Ye,[],function(e){return null!==e.id()&&void 0!==e.id()}],"filter-type-in":[Ye,[tt(Ge)],function(e,t){return t[0].value.indexOf(e.geometryType())>=0}],"filter-id-in":[Ye,[tt(Je)],function(e,t){return t[0].value.indexOf(e.id())>=0}],"filter-in-small":[Ye,[Ge,tt(Je)],function(e,t){var n=t[0];return t[1].value.indexOf(e.properties()[n.value])>=0}],"filter-in-large":[Ye,[Ge,tt(Je)],function(e,t){var n=t[0],r=t[1];return function(e,t,n,r){for(;n<=r;){var a=n+r>>1;if(t[a]===e)return!0;t[a]>e?r=a-1:n=a+1}return!1}(e.properties()[n.value],r.value,0,r.value.length-1)}],all:{type:Ye,overloads:[[[Ye,Ye],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)&&r.evaluate(e)}],[Yn(Ye),function(e,t){for(var n=0,r=t;n<r.length;n+=1)if(!r[n].evaluate(e))return!1;return!0}]]},any:{type:Ye,overloads:[[[Ye,Ye],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)||r.evaluate(e)}],[Yn(Ye),function(e,t){for(var n=0,r=t;n<r.length;n+=1)if(r[n].evaluate(e))return!0;return!1}]]},"!":[Ye,[Ye],function(e,t){return!t[0].evaluate(e)}],"is-supported-script":[Ye,[Ge],function(e,t){var n=t[0],r=e.globals&&e.globals.isSupportedScript;return!r||r(n.evaluate(e))}],upcase:[Ge,[Ge],function(e,t){return t[0].evaluate(e).toUpperCase()}],downcase:[Ge,[Ge],function(e,t){return t[0].evaluate(e).toLowerCase()}],concat:[Ge,Yn(Je),function(e,t){return t.map(function(t){return gt(t.evaluate(e))}).join("")}],"resolved-locale":[Ge,[Qe],function(e,t){return t[0].evaluate(e).resolvedLocale()}]});var cr=function(e,t){var n;this.expression=e,this._warningHistory={},this._evaluator=new wt,this._defaultValue=t?"color"===(n=t).type&&tr(n.default)?new lt(0,0,0,0):"color"===n.type?lt.parse(n.default)||null:void 0===n.default?null:n.default:null,this._enumValues=t&&"enum"===t.type?t.values:null};function ur(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in Vn}function dr(e,t){var n=new Qt(Vn,[],t?function(e){var t={color:Ze,string:Ge,number:Xe,enum:Ge,boolean:Ye,formatted:Ke,resolvedImage:et};return"array"===e.type?tt(t[e.value]||Je,e.length):t[e.type]}(t):void 0),r=n.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return r?Zn(new cr(r,t)):$n(n.errors)}cr.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,a,i){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.canonical=r,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=i,this.expression.evaluate(this._evaluator)},cr.prototype.evaluate=function(e,t,n,r,a,i){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=i||null;try{var o=this.expression.evaluate(this._evaluator);if(null==o||"number"==typeof o&&o!=o)return this._defaultValue;if(this._enumValues&&!(o in this._enumValues))throw new bt("Expected value to be one of "+Object.keys(this._enumValues).map(function(e){return JSON.stringify(e)}).join(", ")+", but found "+JSON.stringify(o)+" instead.");return o}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,typeof console<"u"&&console.warn(e.message)),this._defaultValue}};var pr=function(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!Zt(t.expression)};pr.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,a,i){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,a,i)},pr.prototype.evaluate=function(e,t,n,r,a,i){return this._styleExpression.evaluate(e,t,n,r,a,i)};var hr=function(e,t,n,r){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!Zt(t.expression),this.interpolationType=r};function fr(e,t){if("error"===(e=dr(e,t)).result)return e;var n=e.value.expression,r=Yt(n);if(!r&&!Jn(t))return $n([new Ue("","data expressions not supported")]);var a=$t(n,["zoom"]);if(!a&&!Qn(t))return $n([new Ue("","zoom expressions not supported")]);var i=gr(n);if(!i&&!a)return $n([new Ue("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(i instanceof Ue)return $n([i]);if(i instanceof _n&&!Kn(t))return $n([new Ue("",'"interpolate" expressions cannot be used with this property')]);if(!i)return Zn(new pr(r?"constant":"source",e.value));var o=i instanceof _n?i.interpolation:void 0;return Zn(new hr(r?"camera":"composite",e.value,i.labels,o))}hr.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,a,i){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,a,i)},hr.prototype.evaluate=function(e,t,n,r,a,i){return this._styleExpression.evaluate(e,t,n,r,a,i)},hr.prototype.interpolationFactor=function(e,t,n){return this.interpolationType?_n.interpolationFactor(this.interpolationType,e,t,n):0};var mr=function(e,t){this._parameters=e,this._specification=t,Be(this,rr(this._parameters,this._specification))};function gr(e){var t=null;if(e instanceof wn)t=gr(e.result);else if(e instanceof On)for(var n=0,r=e.args;n<r.length;n+=1){var a=r[n];if(t=gr(a))break}else(e instanceof tn||e instanceof _n)&&e.input instanceof kt&&"zoom"===e.input.name&&(t=e);return t instanceof Ue||e.eachChild(function(e){var n=gr(e);n instanceof Ue?t=n:!t&&n?t=new Ue("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&n&&t!==n&&(t=new Ue("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),t}function yr(e){var t=e.key,n=e.value,r=e.valueSpec||{},a=e.objectElementValidators||{},i=e.style,o=e.styleSpec,s=[],l=er(n);if("object"!==l)return[new Ne(t,n,"object expected, "+l+" found")];for(var c in n){var u=c.split(".")[0],d=r[u]||r["*"],p=void 0;if(a[u])p=a[u];else if(r[u])p=Vr;else if(a["*"])p=a["*"];else{if(!r["*"]){s.push(new Ne(t,n[c],'unknown property "'+c+'"'));continue}p=Vr}s=s.concat(p({key:(t&&t+".")+c,value:n[c],valueSpec:d,style:i,styleSpec:o,object:n,objectKey:c},n))}for(var h in r)a[h]||r[h].required&&void 0===r[h].default&&void 0===n[h]&&s.push(new Ne(t,n,'missing required property "'+h+'"'));return s}function br(e){var t=e.value,n=e.valueSpec,r=e.style,a=e.styleSpec,i=e.key,o=e.arrayElementValidator||Vr;if("array"!==er(t))return[new Ne(i,t,"array expected, "+er(t)+" found")];if(n.length&&t.length!==n.length)return[new Ne(i,t,"array length "+n.length+" expected, length "+t.length+" found")];if(n["min-length"]&&t.length<n["min-length"])return[new Ne(i,t,"array length at least "+n["min-length"]+" expected, length "+t.length+" found")];var s={type:n.value,values:n.values};a.$version<7&&(s.function=n.function),"object"===er(n.value)&&(s=n.value);for(var l=[],c=0;c<t.length;c++)l=l.concat(o({array:t,arrayIndex:c,value:t[c],valueSpec:s,style:r,styleSpec:a,key:i+"["+c+"]"}));return l}function vr(e){var t=e.key,n=e.value,r=e.valueSpec,a=er(n);return"number"===a&&n!=n&&(a="NaN"),"number"!==a?[new Ne(t,n,"number expected, "+a+" found")]:"minimum"in r&&n<r.minimum?[new Ne(t,n,n+" is less than the minimum value "+r.minimum)]:"maximum"in r&&n>r.maximum?[new Ne(t,n,n+" is greater than the maximum value "+r.maximum)]:[]}function Mr(e){var t,n,r,a=e.valueSpec,i=Fe(e.value.type),o={},s="categorical"!==i&&void 0===e.value.property,l=!s,c="array"===er(e.value.stops)&&"array"===er(e.value.stops[0])&&"object"===er(e.value.stops[0][0]),u=yr({key:e.key,value:e.value,valueSpec:e.styleSpec.function,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===i)return[new Ne(e.key,e.value,'identity function may not have a "stops" property')];var t=[],n=e.value;return t=t.concat(br({key:e.key,value:n,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:d})),"array"===er(n)&&0===n.length&&t.push(new Ne(e.key,n,"array must have at least one stop")),t},default:function(e){return Vr({key:e.key,value:e.value,valueSpec:a,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===i&&s&&u.push(new Ne(e.key,e.value,'missing required property "property"')),"identity"!==i&&!e.value.stops&&u.push(new Ne(e.key,e.value,'missing required property "stops"')),"exponential"===i&&e.valueSpec.expression&&!Kn(e.valueSpec)&&u.push(new Ne(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!Jn(e.valueSpec)?u.push(new Ne(e.key,e.value,"property functions not supported")):s&&!Qn(e.valueSpec)&&u.push(new Ne(e.key,e.value,"zoom functions not supported"))),("categorical"===i||c)&&void 0===e.value.property&&u.push(new Ne(e.key,e.value,'"property" property is required')),u;function d(e){var t=[],i=e.value,s=e.key;if("array"!==er(i))return[new Ne(s,i,"array expected, "+er(i)+" found")];if(2!==i.length)return[new Ne(s,i,"array length 2 expected, length "+i.length+" found")];if(c){if("object"!==er(i[0]))return[new Ne(s,i,"object expected, "+er(i[0])+" found")];if(void 0===i[0].zoom)return[new Ne(s,i,"object stop key must have zoom")];if(void 0===i[0].value)return[new Ne(s,i,"object stop key must have value")];if(r&&r>Fe(i[0].zoom))return[new Ne(s,i[0].zoom,"stop zoom values must appear in ascending order")];Fe(i[0].zoom)!==r&&(r=Fe(i[0].zoom),n=void 0,o={}),t=t.concat(yr({key:s+"[0]",value:i[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:vr,value:p}}))}else t=t.concat(p({key:s+"[0]",value:i[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},i));return ur(je(i[1]))?t.concat([new Ne(s+"[1]",i[1],"expressions are not allowed in function stops.")]):t.concat(Vr({key:s+"[1]",value:i[1],valueSpec:a,style:e.style,styleSpec:e.styleSpec}))}function p(e,r){var s=er(e.value),l=Fe(e.value),c=null!==e.value?e.value:r;if(t){if(s!==t)return[new Ne(e.key,c,s+" stop domain type must match previous stop domain type "+t)]}else t=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new Ne(e.key,c,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==i){var u="number expected, "+s+" found";return Jn(a)&&void 0===i&&(u+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Ne(e.key,c,u)]}return"categorical"!==i||"number"!==s||isFinite(l)&&Math.floor(l)===l?"categorical"!==i&&"number"===s&&void 0!==n&&l<n?[new Ne(e.key,c,"stop domain values must appear in ascending order")]:(n=l,"categorical"===i&&l in o?[new Ne(e.key,c,"stop domain values must be unique")]:(o[l]=!0,[])):[new Ne(e.key,c,"integer expected, found "+l)]}}function xr(e){var t=("property"===e.expressionContext?fr:dr)(je(e.value),e.valueSpec);if("error"===t.result)return t.value.map(function(t){return new Ne(""+e.key+t.key,e.value,t.message)});var n=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&!n.outputDefined())return[new Ne(e.key,e.value,'Invalid data expression for "'+e.propertyKey+'". Output values must be contained as literals within the expression.')];if("property"===e.expressionContext&&"layout"===e.propertyType&&!Zt(n))return[new Ne(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext&&!Zt(n))return[new Ne(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!$t(n,["zoom","feature-state"]))return[new Ne(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!Yt(n))return[new Ne(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function zr(e){var t=e.key,n=e.value,r=e.valueSpec,a=[];return Array.isArray(r.values)?-1===r.values.indexOf(Fe(n))&&a.push(new Ne(t,n,"expected one of ["+r.values.join(", ")+"], "+JSON.stringify(n)+" found")):-1===Object.keys(r.values).indexOf(Fe(n))&&a.push(new Ne(t,n,"expected one of ["+Object.keys(r.values).join(", ")+"], "+JSON.stringify(n)+" found")),a}function _r(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(var t=0,n=e.slice(1);t<n.length;t+=1){var r=n[t];if(!_r(r)&&"boolean"!=typeof r)return!1}return!0;default:return!0}}mr.deserialize=function(e){return new mr(e._parameters,e._specification)},mr.serialize=function(e){return{_parameters:e._parameters,_specification:e._specification}};var Ar={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Or(e){if(null==e)return{filter:function(){return!0},needGeometry:!1};_r(e)||(e=Tr(e));var t=dr(e,Ar);if("error"===t.result)throw new Error(t.value.map(function(e){return e.key+": "+e.message}).join(", "));return{filter:function(e,n,r){return t.value.evaluate(e,n,{},r)},needGeometry:kr(e)}}function wr(e,t){return e<t?-1:e>t?1:0}function kr(e){if(!Array.isArray(e))return!1;if("within"===e[0])return!0;for(var t=1;t<e.length;t++)if(kr(e[t]))return!0;return!1}function Tr(e){if(!e)return!0;var t=e[0];return e.length<=1?"any"!==t:"=="===t?Sr(e[1],e[2],"=="):"!="===t?qr(Sr(e[1],e[2],"==")):"<"===t||">"===t||"<="===t||">="===t?Sr(e[1],e[2],t):"any"===t?function(e){return["any"].concat(e.map(Tr))}(e.slice(1)):"all"===t?["all"].concat(e.slice(1).map(Tr)):"none"===t?["all"].concat(e.slice(1).map(Tr).map(qr)):"in"===t?Cr(e[1],e.slice(2)):"!in"===t?qr(Cr(e[1],e.slice(2))):"has"===t?Er(e[1]):"!has"===t?qr(Er(e[1])):"within"!==t||e}function Sr(e,t,n){switch(e){case"$type":return["filter-type-"+n,t];case"$id":return["filter-id-"+n,t];default:return["filter-"+n,e,t]}}function Cr(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(function(e){return typeof e!=typeof t[0]})?["filter-in-large",e,["literal",t.sort(wr)]]:["filter-in-small",e,["literal",t]]}}function Er(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function qr(e){return["!",e]}function Dr(e){return _r(je(e.value))?xr(Be({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Rr(e)}function Rr(e){var t=e.value,n=e.key;if("array"!==er(t))return[new Ne(n,t,"array expected, "+er(t)+" found")];var r,a=e.styleSpec,i=[];if(t.length<1)return[new Ne(n,t,"filter array must have at least 1 element")];switch(i=i.concat(zr({key:n+"[0]",value:t[0],valueSpec:a.filter_operator,style:e.style,styleSpec:e.styleSpec})),Fe(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&"$type"===Fe(t[1])&&i.push(new Ne(n,t,'"$type" cannot be use with operator "'+t[0]+'"'));case"==":case"!=":3!==t.length&&i.push(new Ne(n,t,'filter array for operator "'+t[0]+'" must have 3 elements'));case"in":case"!in":t.length>=2&&"string"!==(r=er(t[1]))&&i.push(new Ne(n+"[1]",t[1],"string expected, "+r+" found"));for(var o=2;o<t.length;o++)r=er(t[o]),"$type"===Fe(t[1])?i=i.concat(zr({key:n+"["+o+"]",value:t[o],valueSpec:a.geometry_type,style:e.style,styleSpec:e.styleSpec})):"string"!==r&&"number"!==r&&"boolean"!==r&&i.push(new Ne(n+"["+o+"]",t[o],"string, number, or boolean expected, "+r+" found"));break;case"any":case"all":case"none":for(var s=1;s<t.length;s++)i=i.concat(Rr({key:n+"["+s+"]",value:t[s],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":r=er(t[1]),2!==t.length?i.push(new Ne(n,t,'filter array for "'+t[0]+'" operator must have 2 elements')):"string"!==r&&i.push(new Ne(n+"[1]",t[1],"string expected, "+r+" found"));break;case"within":r=er(t[1]),2!==t.length?i.push(new Ne(n,t,'filter array for "'+t[0]+'" operator must have 2 elements')):"object"!==r&&i.push(new Ne(n+"[1]",t[1],"object expected, "+r+" found"))}return i}function Lr(e,t){var n=e.key,r=e.style,a=e.styleSpec,i=e.value,o=e.objectKey,s=a[t+"_"+e.layerType];if(!s)return[];var l=o.match(/^(.*)-transition$/);if("paint"===t&&l&&s[l[1]]&&s[l[1]].transition)return Vr({key:n,value:i,valueSpec:a.transition,style:r,styleSpec:a});var c,u=e.valueSpec||s[o];if(!u)return[new Ne(n,i,'unknown property "'+o+'"')];if("string"===er(i)&&Jn(u)&&!u.tokens&&(c=/^{([^}]+)}$/.exec(i)))return[new Ne(n,i,'"'+o+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(c[1])+" }`.")];var d=[];return"symbol"===e.layerType&&("text-field"===o&&r&&!r.glyphs&&d.push(new Ne(n,i,'use of "text-field" requires a style "glyphs" property')),"text-font"===o&&tr(je(i))&&"identity"===Fe(i.type)&&d.push(new Ne(n,i,'"text-font" does not support identity functions'))),d.concat(Vr({key:e.key,value:i,valueSpec:u,style:r,styleSpec:a,expressionContext:"property",propertyType:t,propertyKey:o}))}function Ir(e){return Lr(e,"paint")}function Wr(e){return Lr(e,"layout")}function Nr(e){var t=[],n=e.value,r=e.key,a=e.style,i=e.styleSpec;!n.type&&!n.ref&&t.push(new Ne(r,n,'either "type" or "ref" is required'));var o,s=Fe(n.type),l=Fe(n.ref);if(n.id)for(var c=Fe(n.id),u=0;u<e.arrayIndex;u++){var d=a.layers[u];Fe(d.id)===c&&t.push(new Ne(r,n.id,'duplicate layer id "'+n.id+'", previously used at line '+d.id.__line__))}if("ref"in n)["type","source","source-layer","filter","layout"].forEach(function(e){e in n&&t.push(new Ne(r,n[e],'"'+e+'" is prohibited for ref layers'))}),a.layers.forEach(function(e){Fe(e.id)===l&&(o=e)}),o?o.ref?t.push(new Ne(r,n.ref,"ref cannot reference another ref layer")):s=Fe(o.type):t.push(new Ne(r,n.ref,'ref layer "'+l+'" not found'));else if("background"!==s)if(n.source){var p=a.sources&&a.sources[n.source],h=p&&Fe(p.type);p?"vector"===h&&"raster"===s?t.push(new Ne(r,n.source,'layer "'+n.id+'" requires a raster source')):"raster"===h&&"raster"!==s?t.push(new Ne(r,n.source,'layer "'+n.id+'" requires a vector source')):"vector"!==h||n["source-layer"]?"raster-dem"===h&&"hillshade"!==s?t.push(new Ne(r,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"===s&&n.paint&&n.paint["line-gradient"]&&("geojson"!==h||!p.lineMetrics)&&t.push(new Ne(r,n,'layer "'+n.id+'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):t.push(new Ne(r,n,'layer "'+n.id+'" must specify a "source-layer"')):t.push(new Ne(r,n.source,'source "'+n.source+'" not found'))}else t.push(new Ne(r,n,'missing required property "source"'));return t=t.concat(yr({key:r,value:n,valueSpec:i.layer,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return Vr({key:r+".type",value:n.type,valueSpec:i.layer.type,style:e.style,styleSpec:e.styleSpec,object:n,objectKey:"type"})},filter:Dr,layout:function(e){return yr({layer:n,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(e){return Wr(Be({layerType:s},e))}}})},paint:function(e){return yr({layer:n,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(e){return Ir(Be({layerType:s},e))}}})}}}))}function Pr(e){var t=e.value,n=e.key,r=er(t);return"string"!==r?[new Ne(n,t,"string expected, "+r+" found")]:[]}var Br={promoteId:function(e){var t=e.key,n=e.value;if("string"===er(n))return Pr({key:t,value:n});var r=[];for(var a in n)r.push.apply(r,Pr({key:t+"."+a,value:n[a]}));return r}};function Fr(e){var t=e.value,n=e.key,r=e.styleSpec,a=e.style;if(!t.type)return[new Ne(n,t,'"type" is required')];var i,o=Fe(t.type);switch(o){case"vector":case"raster":case"raster-dem":return i=yr({key:n,value:t,valueSpec:r["source_"+o.replace("-","_")],style:e.style,styleSpec:r,objectElementValidators:Br});case"geojson":if(i=yr({key:n,value:t,valueSpec:r.source_geojson,style:a,styleSpec:r,objectElementValidators:Br}),t.cluster)for(var s in t.clusterProperties){var l=t.clusterProperties[s],c=l[0],u=l[1],d="string"==typeof c?[c,["accumulated"],["get",s]]:c;i.push.apply(i,xr({key:n+"."+s+".map",value:u,expressionContext:"cluster-map"})),i.push.apply(i,xr({key:n+"."+s+".reduce",value:d,expressionContext:"cluster-reduce"}))}return i;case"video":return yr({key:n,value:t,valueSpec:r.source_video,style:a,styleSpec:r});case"image":return yr({key:n,value:t,valueSpec:r.source_image,style:a,styleSpec:r});case"canvas":return[new Ne(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return zr({key:n+".type",value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:a,styleSpec:r})}}function jr(e){var t=e.value,n=e.styleSpec,r=n.light,a=e.style,i=[],o=er(t);if(void 0===t)return i;if("object"!==o)return i=i.concat([new Ne("light",t,"object expected, "+o+" found")]);for(var s in t){var l=s.match(/^(.*)-transition$/);i=l&&r[l[1]]&&r[l[1]].transition?i.concat(Vr({key:s,value:t[s],valueSpec:n.transition,style:a,styleSpec:n})):r[s]?i.concat(Vr({key:s,value:t[s],valueSpec:r[s],style:a,styleSpec:n})):i.concat([new Ne(s,t[s],'unknown property "'+s+'"')])}return i}var Ur={"*":function(){return[]},array:br,boolean:function(e){var t=e.value,n=e.key,r=er(t);return"boolean"!==r?[new Ne(n,t,"boolean expected, "+r+" found")]:[]},number:vr,color:function(e){var t=e.key,n=e.value,r=er(n);return"string"!==r?[new Ne(t,n,"color expected, "+r+" found")]:null===st(n)?[new Ne(t,n,'color expected, "'+n+'" found')]:[]},constants:Pe,enum:zr,filter:Dr,function:Mr,layer:Nr,object:yr,source:Fr,light:jr,string:Pr,formatted:function(e){return 0===Pr(e).length?[]:xr(e)},resolvedImage:function(e){return 0===Pr(e).length?[]:xr(e)}};function Vr(e){var t=e.value,n=e.valueSpec,r=e.styleSpec;return n.expression&&tr(Fe(t))?Mr(e):n.expression&&ur(je(t))?xr(e):n.type&&Ur[n.type]?Ur[n.type](e):yr(Be({},e,{valueSpec:n.type?r[n.type]:n}))}function Hr(e){var t=e.value,n=e.key,r=Pr(e);return r.length||(-1===t.indexOf("{fontstack}")&&r.push(new Ne(n,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&r.push(new Ne(n,t,'"glyphs" url must include a "{range}" token'))),r}function Xr(e,t){void 0===t&&(t=We);var n=[];return n=n.concat(Vr({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:Hr,"*":function(){return[]}}})),e.constants&&(n=n.concat(Pe({key:"constants",value:e.constants,style:e,styleSpec:t}))),Gr(n)}function Gr(e){return[].concat(e).sort(function(e,t){return e.line-t.line})}function Yr(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return Gr(e.apply(this,t))}}Xr.source=Yr(Fr),Xr.light=Yr(jr),Xr.layer=Yr(Nr),Xr.filter=Yr(Dr),Xr.paintProperty=Yr(Ir),Xr.layoutProperty=Yr(Wr);var Zr=Xr,$r=Zr.light,Jr=Zr.paintProperty,Qr=Zr.layoutProperty;function Kr(e,t){var n=!1;if(t&&t.length)for(var r=0,a=t;r<a.length;r+=1){var i=a[r];e.fire(new Le(new Error(i.message))),n=!0}return n}var ea=na,ta=3;function na(e,t,n){var r=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;var a=new Int32Array(this.arrayBuffer);e=a[0],t=a[1],n=a[2],this.d=t+2*n;for(var i=0;i<this.d*this.d;i++){var o=a[ta+i],s=a[ta+i+1];r.push(o===s?null:a.subarray(o,s))}var l=a[ta+r.length],c=a[ta+r.length+1];this.keys=a.subarray(l,c),this.bboxes=a.subarray(c),this.insert=this._insertReadonly}else{this.d=t+2*n;for(var u=0;u<this.d*this.d;u++)r.push([]);this.keys=[],this.bboxes=[]}this.n=t,this.extent=e,this.padding=n,this.scale=t/e,this.uid=0;var d=n/t*e;this.min=-d,this.max=e+d}na.prototype.insert=function(e,t,n,r,a){this._forEachCell(t,n,r,a,this._insertCell,this.uid++),this.keys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(a)},na.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},na.prototype._insertCell=function(e,t,n,r,a,i){this.cells[a].push(i)},na.prototype.query=function(e,t,n,r,a){var i=this.min,o=this.max;if(e<=i&&t<=i&&o<=n&&o<=r&&!a)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(e,t,n,r,this._queryCell,s,{},a),s},na.prototype._queryCell=function(e,t,n,r,a,i,o,s){var l=this.cells[a];if(null!==l)for(var c=this.keys,u=this.bboxes,d=0;d<l.length;d++){var p=l[d];if(void 0===o[p]){var h=4*p;(s?s(u[h+0],u[h+1],u[h+2],u[h+3]):e<=u[h+2]&&t<=u[h+3]&&n>=u[h+0]&&r>=u[h+1])?(o[p]=!0,i.push(c[p])):o[p]=!1}}},na.prototype._forEachCell=function(e,t,n,r,a,i,o,s){for(var l=this._convertToCellCoord(e),c=this._convertToCellCoord(t),u=this._convertToCellCoord(n),d=this._convertToCellCoord(r),p=l;p<=u;p++)for(var h=c;h<=d;h++){var f=this.d*h+p;if((!s||s(this._convertFromCellCoord(p),this._convertFromCellCoord(h),this._convertFromCellCoord(p+1),this._convertFromCellCoord(h+1)))&&a.call(this,e,t,n,r,f,i,o,s))return}},na.prototype._convertFromCellCoord=function(e){return(e-this.padding)/this.scale},na.prototype._convertToCellCoord=function(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))},na.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var e=this.cells,t=ta+this.cells.length+1+1,n=0,r=0;r<this.cells.length;r++)n+=this.cells[r].length;var a=new Int32Array(t+n+this.keys.length+this.bboxes.length);a[0]=this.extent,a[1]=this.n,a[2]=this.padding;for(var i=t,o=0;o<e.length;o++){var s=e[o];a[ta+o]=i,a.set(s,i),i+=s.length}return a[ta+e.length]=i,a.set(this.keys,i),i+=this.keys.length,a[ta+e.length+1]=i,a.set(this.bboxes,i),i+=this.bboxes.length,a.buffer};var ra=s.ImageData,aa=s.ImageBitmap,ia={};function oa(e,t,n){void 0===n&&(n={}),Object.defineProperty(t,"_classRegistryKey",{value:e,writeable:!1}),ia[e]={klass:t,omit:n.omit||[],shallow:n.shallow||[]}}for(var sa in oa("Object",Object),ea.serialize=function(e,t){var n=e.toArrayBuffer();return t&&t.push(n),{buffer:n}},ea.deserialize=function(e){return new ea(e.buffer)},oa("Grid",ea),oa("Color",lt),oa("Error",Error),oa("ResolvedImage",pt),oa("StylePropertyFunction",mr),oa("StyleExpression",cr,{omit:["_evaluator"]}),oa("ZoomDependentExpression",hr),oa("ZoomConstantExpression",pr),oa("CompoundExpression",kt,{omit:["_evaluate"]}),Vn)Vn[sa]._classRegistryKey||oa("Expression_"+sa,Vn[sa]);function la(e){return e&&typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function ca(e){return aa&&e instanceof aa}function ua(e,t){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp)return e;if(la(e)||ca(e))return t&&t.push(e),e;if(ArrayBuffer.isView(e)){var n=e;return t&&t.push(n.buffer),n}if(e instanceof ra)return t&&t.push(e.data.buffer),e;if(Array.isArray(e)){for(var r=[],a=0,i=e;a<i.length;a+=1){var o=i[a];r.push(ua(o,t))}return r}if("object"==typeof e){var s=e.constructor,l=s._classRegistryKey;if(!l)throw new Error("can't serialize object of unregistered class");var c=s.serialize?s.serialize(e,t):{};if(!s.serialize){for(var u in e)if(e.hasOwnProperty(u)&&!(ia[l].omit.indexOf(u)>=0)){var d=e[u];c[u]=ia[l].shallow.indexOf(u)>=0?d:ua(d,t)}e instanceof Error&&(c.message=e.message)}if(c.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==l&&(c.$name=l),c}throw new Error("can't serialize object of type "+typeof e)}function da(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||la(e)||ca(e)||ArrayBuffer.isView(e)||e instanceof ra)return e;if(Array.isArray(e))return e.map(da);if("object"==typeof e){var t=e.$name||"Object",n=ia[t].klass;if(!n)throw new Error("can't deserialize unregistered class "+t);if(n.deserialize)return n.deserialize(e);for(var r=Object.create(n.prototype),a=0,i=Object.keys(e);a<i.length;a+=1){var o=i[a];if("$name"!==o){var s=e[o];r[o]=ia[t].shallow.indexOf(o)>=0?s:da(s)}}return r}throw new Error("can't deserialize object of type "+typeof e)}var pa=function(){this.first=!0};pa.prototype.update=function(e,t){var n=Math.floor(e);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=e,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=t):this.lastFloorZoom<n&&(this.lastIntegerZoom=n,this.lastIntegerZoomTime=t),e!==this.lastZoom&&(this.lastZoom=e,this.lastFloorZoom=n,!0))};var ha={"Latin-1 Supplement":function(e){return e>=128&&e<=255},Arabic:function(e){return e>=1536&&e<=1791},"Arabic Supplement":function(e){return e>=1872&&e<=1919},"Arabic Extended-A":function(e){return e>=2208&&e<=2303},"Hangul Jamo":function(e){return e>=4352&&e<=4607},"Unified Canadian Aboriginal Syllabics":function(e){return e>=5120&&e<=5759},Khmer:function(e){return e>=6016&&e<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(e){return e>=6320&&e<=6399},"General Punctuation":function(e){return e>=8192&&e<=8303},"Letterlike Symbols":function(e){return e>=8448&&e<=8527},"Number Forms":function(e){return e>=8528&&e<=8591},"Miscellaneous Technical":function(e){return e>=8960&&e<=9215},"Control Pictures":function(e){return e>=9216&&e<=9279},"Optical Character Recognition":function(e){return e>=9280&&e<=9311},"Enclosed Alphanumerics":function(e){return e>=9312&&e<=9471},"Geometric Shapes":function(e){return e>=9632&&e<=9727},"Miscellaneous Symbols":function(e){return e>=9728&&e<=9983},"Miscellaneous Symbols and Arrows":function(e){return e>=11008&&e<=11263},"CJK Radicals Supplement":function(e){return e>=11904&&e<=12031},"Kangxi Radicals":function(e){return e>=12032&&e<=12255},"Ideographic Description Characters":function(e){return e>=12272&&e<=12287},"CJK Symbols and Punctuation":function(e){return e>=12288&&e<=12351},Hiragana:function(e){return e>=12352&&e<=12447},Katakana:function(e){return e>=12448&&e<=12543},Bopomofo:function(e){return e>=12544&&e<=12591},"Hangul Compatibility Jamo":function(e){return e>=12592&&e<=12687},Kanbun:function(e){return e>=12688&&e<=12703},"Bopomofo Extended":function(e){return e>=12704&&e<=12735},"CJK Strokes":function(e){return e>=12736&&e<=12783},"Katakana Phonetic Extensions":function(e){return e>=12784&&e<=12799},"Enclosed CJK Letters and Months":function(e){return e>=12800&&e<=13055},"CJK Compatibility":function(e){return e>=13056&&e<=13311},"CJK Unified Ideographs Extension A":function(e){return e>=13312&&e<=19903},"Yijing Hexagram Symbols":function(e){return e>=19904&&e<=19967},"CJK Unified Ideographs":function(e){return e>=19968&&e<=40959},"Yi Syllables":function(e){return e>=40960&&e<=42127},"Yi Radicals":function(e){return e>=42128&&e<=42191},"Hangul Jamo Extended-A":function(e){return e>=43360&&e<=43391},"Hangul Syllables":function(e){return e>=44032&&e<=55215},"Hangul Jamo Extended-B":function(e){return e>=55216&&e<=55295},"Private Use Area":function(e){return e>=57344&&e<=63743},"CJK Compatibility Ideographs":function(e){return e>=63744&&e<=64255},"Arabic Presentation Forms-A":function(e){return e>=64336&&e<=65023},"Vertical Forms":function(e){return e>=65040&&e<=65055},"CJK Compatibility Forms":function(e){return e>=65072&&e<=65103},"Small Form Variants":function(e){return e>=65104&&e<=65135},"Arabic Presentation Forms-B":function(e){return e>=65136&&e<=65279},"Halfwidth and Fullwidth Forms":function(e){return e>=65280&&e<=65519}};function fa(e){for(var t=0,n=e;t<n.length;t+=1)if(ya(n[t].charCodeAt(0)))return!0;return!1}function ma(e){return!(ha.Arabic(e)||ha["Arabic Supplement"](e)||ha["Arabic Extended-A"](e)||ha["Arabic Presentation Forms-A"](e)||ha["Arabic Presentation Forms-B"](e))}function ga(e){return!(e<11904||!(ha["Bopomofo Extended"](e)||ha.Bopomofo(e)||ha["CJK Compatibility Forms"](e)||ha["CJK Compatibility Ideographs"](e)||ha["CJK Compatibility"](e)||ha["CJK Radicals Supplement"](e)||ha["CJK Strokes"](e)||ha["CJK Symbols and Punctuation"](e)||ha["CJK Unified Ideographs Extension A"](e)||ha["CJK Unified Ideographs"](e)||ha["Enclosed CJK Letters and Months"](e)||ha["Halfwidth and Fullwidth Forms"](e)||ha.Hiragana(e)||ha["Ideographic Description Characters"](e)||ha["Kangxi Radicals"](e)||ha["Katakana Phonetic Extensions"](e)||ha.Katakana(e)||ha["Vertical Forms"](e)||ha["Yi Radicals"](e)||ha["Yi Syllables"](e)))}function ya(e){return 746===e||747===e||!(e<4352)&&!!(ha["Bopomofo Extended"](e)||ha.Bopomofo(e)||ha["CJK Compatibility Forms"](e)&&!(e>=65097&&e<=65103)||ha["CJK Compatibility Ideographs"](e)||ha["CJK Compatibility"](e)||ha["CJK Radicals Supplement"](e)||ha["CJK Strokes"](e)||ha["CJK Symbols and Punctuation"](e)&&!(e>=12296&&e<=12305)&&!(e>=12308&&e<=12319)&&12336!==e||ha["CJK Unified Ideographs Extension A"](e)||ha["CJK Unified Ideographs"](e)||ha["Enclosed CJK Letters and Months"](e)||ha["Hangul Compatibility Jamo"](e)||ha["Hangul Jamo Extended-A"](e)||ha["Hangul Jamo Extended-B"](e)||ha["Hangul Jamo"](e)||ha["Hangul Syllables"](e)||ha.Hiragana(e)||ha["Ideographic Description Characters"](e)||ha.Kanbun(e)||ha["Kangxi Radicals"](e)||ha["Katakana Phonetic Extensions"](e)||ha.Katakana(e)&&12540!==e||!(!ha["Halfwidth and Fullwidth Forms"](e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!ha["Small Form Variants"](e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||ha["Unified Canadian Aboriginal Syllabics"](e)||ha["Unified Canadian Aboriginal Syllabics Extended"](e)||ha["Vertical Forms"](e)||ha["Yijing Hexagram Symbols"](e)||ha["Yi Syllables"](e)||ha["Yi Radicals"](e))}function ba(e){return!(ya(e)||function(e){return!!(ha["Latin-1 Supplement"](e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||ha["General Punctuation"](e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||ha["Letterlike Symbols"](e)||ha["Number Forms"](e)||ha["Miscellaneous Technical"](e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||ha["Control Pictures"](e)&&9251!==e||ha["Optical Character Recognition"](e)||ha["Enclosed Alphanumerics"](e)||ha["Geometric Shapes"](e)||ha["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||ha["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||ha["CJK Symbols and Punctuation"](e)||ha.Katakana(e)||ha["Private Use Area"](e)||ha["CJK Compatibility Forms"](e)||ha["Small Form Variants"](e)||ha["Halfwidth and Fullwidth Forms"](e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e)}(e))}function va(e){return ha.Arabic(e)||ha["Arabic Supplement"](e)||ha["Arabic Extended-A"](e)||ha["Arabic Presentation Forms-A"](e)||ha["Arabic Presentation Forms-B"](e)}function Ma(e){return e>=1424&&e<=2303||ha["Arabic Presentation Forms-A"](e)||ha["Arabic Presentation Forms-B"](e)}function xa(e,t){return!(!t&&Ma(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||ha.Khmer(e))}function za(e){for(var t=0,n=e;t<n.length;t+=1)if(Ma(n[t].charCodeAt(0)))return!0;return!1}var _a="deferred",Aa="loading",Oa="loaded",wa="error",ka=null,Ta="unavailable",Sa=null,Ca=function(e){e&&"string"==typeof e&&e.indexOf("NetworkError")>-1&&(Ta=wa),ka&&ka(e)};function Ea(){qa.fire(new Re("pluginStateChange",{pluginStatus:Ta,pluginURL:Sa}))}var qa=new Ie,Da=function(){return Ta},Ra=function(){if(Ta!==_a||!Sa)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Ta=Aa,Ea(),Sa&&Oe({url:Sa},function(e){e?Ca(e):(Ta=Oa,Ea())})},La={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Ta===Oa||null!=La.applyArabicShaping},isLoading:function(){return Ta===Aa},setState:function(e){Ta=e.pluginStatus,Sa=e.pluginURL},isParsed:function(){return null!=La.applyArabicShaping&&null!=La.processBidirectionalText&&null!=La.processStyledBidirectionalText},getPluginURL:function(){return Sa}},Ia=function(){!La.isLoading()&&!La.isLoaded()&&"deferred"===Da()&&Ra()},Wa=function(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.zoomHistory=t.zoomHistory,this.transition=t.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new pa,this.transition={})};Wa.prototype.isSupportedScript=function(e){return function(e,t){for(var n=0,r=e;n<r.length;n+=1)if(!xa(r[n].charCodeAt(0),t))return!1;return!0}(e,La.isLoaded())},Wa.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Wa.prototype.getCrossfadeParameters=function(){var e=this.zoom,t=e-Math.floor(e),n=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*t}};var Na=function(e,t){this.property=e,this.value=t,this.expression=function(e,t){if(tr(e))return new mr(e,t);if(ur(e)){var n=fr(e,t);if("error"===n.result)throw new Error(n.value.map(function(e){return e.key+": "+e.message}).join(", "));return n.value}var r=e;return"string"==typeof e&&"color"===t.type&&(r=lt.parse(e)),{kind:"constant",evaluate:function(){return r}}}(void 0===t?e.specification.default:t,e.specification)};Na.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},Na.prototype.possiblyEvaluate=function(e,t,n){return this.property.possiblyEvaluate(this,e,t,n)};var Pa=function(e){this.property=e,this.value=new Na(e,void 0)};Pa.prototype.transitioned=function(e,t){return new Fa(this.property,this.value,t,h({},e.transition,this.transition),e.now)},Pa.prototype.untransitioned=function(){return new Fa(this.property,this.value,null,{},0)};var Ba=function(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)};Ba.prototype.getValue=function(e){return z(this._values[e].value.value)},Ba.prototype.setValue=function(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Pa(this._values[e].property)),this._values[e].value=new Na(this._values[e].property,null===t?void 0:z(t))},Ba.prototype.getTransition=function(e){return z(this._values[e].transition)},Ba.prototype.setTransition=function(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Pa(this._values[e].property)),this._values[e].transition=z(t)||void 0},Ba.prototype.serialize=function(){for(var e={},t=0,n=Object.keys(this._values);t<n.length;t+=1){var r=n[t],a=this.getValue(r);void 0!==a&&(e[r]=a);var i=this.getTransition(r);void 0!==i&&(e[r+"-transition"]=i)}return e},Ba.prototype.transitioned=function(e,t){for(var n=new ja(this._properties),r=0,a=Object.keys(this._values);r<a.length;r+=1){var i=a[r];n._values[i]=this._values[i].transitioned(e,t._values[i])}return n},Ba.prototype.untransitioned=function(){for(var e=new ja(this._properties),t=0,n=Object.keys(this._values);t<n.length;t+=1){var r=n[t];e._values[r]=this._values[r].untransitioned()}return e};var Fa=function(e,t,n,r,a){this.property=e,this.value=t,this.begin=a+r.delay||0,this.end=this.begin+r.duration||0,e.specification.transition&&(r.delay||r.duration)&&(this.prior=n)};Fa.prototype.possiblyEvaluate=function(e,t,n){var r=e.now||0,a=this.value.possiblyEvaluate(e,t,n),i=this.prior;if(i){if(r>this.end)return this.prior=null,a;if(this.value.isDataDriven())return this.prior=null,a;if(r<this.begin)return i.possiblyEvaluate(e,t,n);var o=(r-this.begin)/(this.end-this.begin);return this.property.interpolate(i.possiblyEvaluate(e,t,n),a,function(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}(o))}return a};var ja=function(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)};ja.prototype.possiblyEvaluate=function(e,t,n){for(var r=new Ha(this._properties),a=0,i=Object.keys(this._values);a<i.length;a+=1){var o=i[a];r._values[o]=this._values[o].possiblyEvaluate(e,t,n)}return r},ja.prototype.hasTransition=function(){for(var e=0,t=Object.keys(this._values);e<t.length;e+=1){var n=t[e];if(this._values[n].prior)return!0}return!1};var Ua=function(e){this._properties=e,this._values=Object.create(e.defaultPropertyValues)};Ua.prototype.getValue=function(e){return z(this._values[e].value)},Ua.prototype.setValue=function(e,t){this._values[e]=new Na(this._values[e].property,null===t?void 0:z(t))},Ua.prototype.serialize=function(){for(var e={},t=0,n=Object.keys(this._values);t<n.length;t+=1){var r=n[t],a=this.getValue(r);void 0!==a&&(e[r]=a)}return e},Ua.prototype.possiblyEvaluate=function(e,t,n){for(var r=new Ha(this._properties),a=0,i=Object.keys(this._values);a<i.length;a+=1){var o=i[a];r._values[o]=this._values[o].possiblyEvaluate(e,t,n)}return r};var Va=function(e,t,n){this.property=e,this.value=t,this.parameters=n};Va.prototype.isConstant=function(){return"constant"===this.value.kind},Va.prototype.constantOr=function(e){return"constant"===this.value.kind?this.value.value:e},Va.prototype.evaluate=function(e,t,n,r){return this.property.evaluate(this.value,this.parameters,e,t,n,r)};var Ha=function(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)};Ha.prototype.get=function(e){return this._values[e]};var Xa=function(e){this.specification=e};Xa.prototype.possiblyEvaluate=function(e,t){return e.expression.evaluate(t)},Xa.prototype.interpolate=function(e,t,n){var r=rn[this.specification.type];return r?r(e,t,n):e};var Ga=function(e,t){this.specification=e,this.overrides=t};Ga.prototype.possiblyEvaluate=function(e,t,n,r){return"constant"===e.expression.kind||"camera"===e.expression.kind?new Va(this,{kind:"constant",value:e.expression.evaluate(t,null,{},n,r)},t):new Va(this,e.expression,t)},Ga.prototype.interpolate=function(e,t,n){if("constant"!==e.value.kind||"constant"!==t.value.kind)return e;if(void 0===e.value.value||void 0===t.value.value)return new Va(this,{kind:"constant",value:void 0},e.parameters);var r=rn[this.specification.type];return r?new Va(this,{kind:"constant",value:r(e.value.value,t.value.value,n)},e.parameters):e},Ga.prototype.evaluate=function(e,t,n,r,a,i){return"constant"===e.kind?e.value:e.evaluate(t,n,r,a,i)};var Ya=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.possiblyEvaluate=function(e,t,n,r){if(void 0===e.value)return new Va(this,{kind:"constant",value:void 0},t);if("constant"===e.expression.kind){var a=e.expression.evaluate(t,null,{},n,r),i="resolvedImage"===e.property.specification.type&&"string"!=typeof a?a.name:a,o=this._calculate(i,i,i,t);return new Va(this,{kind:"constant",value:o},t)}if("camera"===e.expression.kind){var s=this._calculate(e.expression.evaluate({zoom:t.zoom-1}),e.expression.evaluate({zoom:t.zoom}),e.expression.evaluate({zoom:t.zoom+1}),t);return new Va(this,{kind:"constant",value:s},t)}return new Va(this,e.expression,t)},t.prototype.evaluate=function(e,t,n,r,a,i){if("source"===e.kind){var o=e.evaluate(t,n,r,a,i);return this._calculate(o,o,o,t)}return"composite"===e.kind?this._calculate(e.evaluate({zoom:Math.floor(t.zoom)-1},n,r),e.evaluate({zoom:Math.floor(t.zoom)},n,r),e.evaluate({zoom:Math.floor(t.zoom)+1},n,r),t):e.value},t.prototype._calculate=function(e,t,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}},t.prototype.interpolate=function(e){return e},t}(Ga),Za=function(e){this.specification=e};Za.prototype.possiblyEvaluate=function(e,t,n,r){if(void 0!==e.value){if("constant"===e.expression.kind){var a=e.expression.evaluate(t,null,{},n,r);return this._calculate(a,a,a,t)}return this._calculate(e.expression.evaluate(new Wa(Math.floor(t.zoom-1),t)),e.expression.evaluate(new Wa(Math.floor(t.zoom),t)),e.expression.evaluate(new Wa(Math.floor(t.zoom+1),t)),t)}},Za.prototype._calculate=function(e,t,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}},Za.prototype.interpolate=function(e){return e};var $a=function(e){this.specification=e};$a.prototype.possiblyEvaluate=function(e,t,n,r){return!!e.expression.evaluate(t,null,{},n,r)},$a.prototype.interpolate=function(){return!1};var Ja=function(e){for(var t in this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],e){var n=e[t];n.specification.overridable&&this.overridableProperties.push(t);var r=this.defaultPropertyValues[t]=new Na(n,void 0),a=this.defaultTransitionablePropertyValues[t]=new Pa(n);this.defaultTransitioningPropertyValues[t]=a.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=r.possiblyEvaluate({})}};oa("DataDrivenProperty",Ga),oa("DataConstantProperty",Xa),oa("CrossFadedDataDrivenProperty",Ya),oa("CrossFadedProperty",Za),oa("ColorRampProperty",$a);var Qa="-transition",Ka=function(e){function t(t,n){if(e.call(this),this.id=t.id,this.type=t.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},"custom"!==t.type&&(this.metadata=t.metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,"background"!==t.type&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter),n.layout&&(this._unevaluatedLayout=new Ua(n.layout)),n.paint)){for(var r in this._transitionablePaint=new Ba(n.paint),t.paint)this.setPaintProperty(r,t.paint[r],{validate:!1});for(var a in t.layout)this.setLayoutProperty(a,t.layout[a],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ha(n.paint)}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},t.prototype.getLayoutProperty=function(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)},t.prototype.setLayoutProperty=function(e,t,n){if(void 0===n&&(n={}),null!=t){var r="layers."+this.id+".layout."+e;if(this._validate(Qr,r,e,t,n))return}"visibility"!==e?this._unevaluatedLayout.setValue(e,t):this.visibility=t},t.prototype.getPaintProperty=function(e){return v(e,Qa)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)},t.prototype.setPaintProperty=function(e,t,n){if(void 0===n&&(n={}),null!=t){var r="layers."+this.id+".paint."+e;if(this._validate(Jr,r,e,t,n))return!1}if(v(e,Qa))return this._transitionablePaint.setTransition(e.slice(0,-11),t||void 0),!1;var a=this._transitionablePaint._values[e],i="cross-faded-data-driven"===a.property.specification["property-type"],o=a.value.isDataDriven(),s=a.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);var l=this._transitionablePaint._values[e].value;return l.isDataDriven()||o||i||this._handleOverridablePaintPropertyUpdate(e,s,l)},t.prototype._handleSpecialPaintPropertyUpdate=function(e){},t.prototype._handleOverridablePaintPropertyUpdate=function(e,t,n){return!1},t.prototype.isHidden=function(e){return!!(this.minzoom&&e<this.minzoom||this.maxzoom&&e>=this.maxzoom)||"none"===this.visibility},t.prototype.updateTransitions=function(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)},t.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},t.prototype.recalculate=function(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)},t.prototype.serialize=function(){var e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),x(e,function(e,t){return!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length)})},t.prototype._validate=function(e,t,n,r,a){return void 0===a&&(a={}),(!a||!1!==a.validate)&&Kr(this,e.call(Zr,{key:t,layerType:this.type,objectKey:n,value:r,styleSpec:We,style:{glyphs:!0,sprite:!0}}))},t.prototype.is3D=function(){return!1},t.prototype.isTileClipped=function(){return!1},t.prototype.hasOffscreenPass=function(){return!1},t.prototype.resize=function(){},t.prototype.isStateDependent=function(){for(var e in this.paint._values){var t=this.paint.get(e);if(t instanceof Va&&Jn(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1},t}(Ie),ei={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},ti=function(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},ni=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function ri(e,t){void 0===t&&(t=1);var n=0,r=0;return{members:e.map(function(e){var a=function(e){return ei[e].BYTES_PER_ELEMENT}(e.type),i=n=ai(n,Math.max(t,a)),o=e.components||1;return r=Math.max(r,a),n+=a*o,{name:e.name,type:e.type,components:o,offset:i}}),size:ai(n,Math.max(r,t)),alignment:t}}function ai(e,t){return Math.ceil(e/t)*t}ni.serialize=function(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}},ni.deserialize=function(e){var t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t},ni.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},ni.prototype.clear=function(){this.length=0},ni.prototype.resize=function(e){this.reserve(e),this.length=e},ni.prototype.reserve=function(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}},ni.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var ii=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var n=this.length;return this.resize(n+1),this.emplace(n,e,t)},t.prototype.emplace=function(e,t,n){var r=2*e;return this.int16[r+0]=t,this.int16[r+1]=n,e},t}(ni);ii.prototype.bytesPerElement=4,oa("StructArrayLayout2i4",ii);var oi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,a){var i=4*e;return this.int16[i+0]=t,this.int16[i+1]=n,this.int16[i+2]=r,this.int16[i+3]=a,e},t}(ni);oi.prototype.bytesPerElement=8,oa("StructArrayLayout4i8",oi);var si=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,i){var o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,a,i)},t.prototype.emplace=function(e,t,n,r,a,i,o){var s=6*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=a,this.int16[s+4]=i,this.int16[s+5]=o,e},t}(ni);si.prototype.bytesPerElement=12,oa("StructArrayLayout2i4i12",si);var li=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,i){var o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,a,i)},t.prototype.emplace=function(e,t,n,r,a,i,o){var s=4*e,l=8*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.uint8[l+4]=r,this.uint8[l+5]=a,this.uint8[l+6]=i,this.uint8[l+7]=o,e},t}(ni);li.prototype.bytesPerElement=8,oa("StructArrayLayout2i4ub8",li);var ci=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var n=this.length;return this.resize(n+1),this.emplace(n,e,t)},t.prototype.emplace=function(e,t,n){var r=2*e;return this.float32[r+0]=t,this.float32[r+1]=n,e},t}(ni);ci.prototype.bytesPerElement=8,oa("StructArrayLayout2f8",ci);var ui=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,i,o,s,l,c){var u=this.length;return this.resize(u+1),this.emplace(u,e,t,n,r,a,i,o,s,l,c)},t.prototype.emplace=function(e,t,n,r,a,i,o,s,l,c,u){var d=10*e;return this.uint16[d+0]=t,this.uint16[d+1]=n,this.uint16[d+2]=r,this.uint16[d+3]=a,this.uint16[d+4]=i,this.uint16[d+5]=o,this.uint16[d+6]=s,this.uint16[d+7]=l,this.uint16[d+8]=c,this.uint16[d+9]=u,e},t}(ni);ui.prototype.bytesPerElement=20,oa("StructArrayLayout10ui20",ui);var di=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,i,o,s,l,c,u,d){var p=this.length;return this.resize(p+1),this.emplace(p,e,t,n,r,a,i,o,s,l,c,u,d)},t.prototype.emplace=function(e,t,n,r,a,i,o,s,l,c,u,d,p){var h=12*e;return this.int16[h+0]=t,this.int16[h+1]=n,this.int16[h+2]=r,this.int16[h+3]=a,this.uint16[h+4]=i,this.uint16[h+5]=o,this.uint16[h+6]=s,this.uint16[h+7]=l,this.int16[h+8]=c,this.int16[h+9]=u,this.int16[h+10]=d,this.int16[h+11]=p,e},t}(ni);di.prototype.bytesPerElement=24,oa("StructArrayLayout4i4ui4i24",di);var pi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var a=3*e;return this.float32[a+0]=t,this.float32[a+1]=n,this.float32[a+2]=r,e},t}(ni);pi.prototype.bytesPerElement=12,oa("StructArrayLayout3f12",pi);var hi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){var n=1*e;return this.uint32[n+0]=t,e},t}(ni);hi.prototype.bytesPerElement=4,oa("StructArrayLayout1ul4",hi);var fi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,i,o,s,l){var c=this.length;return this.resize(c+1),this.emplace(c,e,t,n,r,a,i,o,s,l)},t.prototype.emplace=function(e,t,n,r,a,i,o,s,l,c){var u=10*e,d=5*e;return this.int16[u+0]=t,this.int16[u+1]=n,this.int16[u+2]=r,this.int16[u+3]=a,this.int16[u+4]=i,this.int16[u+5]=o,this.uint32[d+3]=s,this.uint16[u+8]=l,this.uint16[u+9]=c,e},t}(ni);fi.prototype.bytesPerElement=20,oa("StructArrayLayout6i1ul2ui20",fi);var mi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,i){var o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,a,i)},t.prototype.emplace=function(e,t,n,r,a,i,o){var s=6*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=a,this.int16[s+4]=i,this.int16[s+5]=o,e},t}(ni);mi.prototype.bytesPerElement=12,oa("StructArrayLayout2i2i2i12",mi);var gi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a){var i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r,a)},t.prototype.emplace=function(e,t,n,r,a,i){var o=4*e,s=8*e;return this.float32[o+0]=t,this.float32[o+1]=n,this.float32[o+2]=r,this.int16[s+6]=a,this.int16[s+7]=i,e},t}(ni);gi.prototype.bytesPerElement=16,oa("StructArrayLayout2f1f2i16",gi);var yi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,a){var i=12*e,o=3*e;return this.uint8[i+0]=t,this.uint8[i+1]=n,this.float32[o+1]=r,this.float32[o+2]=a,e},t}(ni);yi.prototype.bytesPerElement=12,oa("StructArrayLayout2ub2f12",yi);var bi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var a=3*e;return this.uint16[a+0]=t,this.uint16[a+1]=n,this.uint16[a+2]=r,e},t}(ni);bi.prototype.bytesPerElement=6,oa("StructArrayLayout3ui6",bi);var vi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g){var y=this.length;return this.resize(y+1),this.emplace(y,e,t,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g)},t.prototype.emplace=function(e,t,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g,y){var b=24*e,v=12*e,M=48*e;return this.int16[b+0]=t,this.int16[b+1]=n,this.uint16[b+2]=r,this.uint16[b+3]=a,this.uint32[v+2]=i,this.uint32[v+3]=o,this.uint32[v+4]=s,this.uint16[b+10]=l,this.uint16[b+11]=c,this.uint16[b+12]=u,this.float32[v+7]=d,this.float32[v+8]=p,this.uint8[M+36]=h,this.uint8[M+37]=f,this.uint8[M+38]=m,this.uint32[v+10]=g,this.int16[b+22]=y,e},t}(ni);vi.prototype.bytesPerElement=48,oa("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",vi);var Mi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g,y,b,v,M,x,z,_,A,O,w,k){var T=this.length;return this.resize(T+1),this.emplace(T,e,t,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g,y,b,v,M,x,z,_,A,O,w,k)},t.prototype.emplace=function(e,t,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g,y,b,v,M,x,z,_,A,O,w,k,T){var S=34*e,C=17*e;return this.int16[S+0]=t,this.int16[S+1]=n,this.int16[S+2]=r,this.int16[S+3]=a,this.int16[S+4]=i,this.int16[S+5]=o,this.int16[S+6]=s,this.int16[S+7]=l,this.uint16[S+8]=c,this.uint16[S+9]=u,this.uint16[S+10]=d,this.uint16[S+11]=p,this.uint16[S+12]=h,this.uint16[S+13]=f,this.uint16[S+14]=m,this.uint16[S+15]=g,this.uint16[S+16]=y,this.uint16[S+17]=b,this.uint16[S+18]=v,this.uint16[S+19]=M,this.uint16[S+20]=x,this.uint16[S+21]=z,this.uint16[S+22]=_,this.uint32[C+12]=A,this.float32[C+13]=O,this.float32[C+14]=w,this.float32[C+15]=k,this.float32[C+16]=T,e},t}(ni);Mi.prototype.bytesPerElement=68,oa("StructArrayLayout8i15ui1ul4f68",Mi);var xi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){var n=1*e;return this.float32[n+0]=t,e},t}(ni);xi.prototype.bytesPerElement=4,oa("StructArrayLayout1f4",xi);var zi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var a=3*e;return this.int16[a+0]=t,this.int16[a+1]=n,this.int16[a+2]=r,e},t}(ni);zi.prototype.bytesPerElement=6,oa("StructArrayLayout3i6",zi);var _i=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var a=2*e,i=4*e;return this.uint32[a+0]=t,this.uint16[i+2]=n,this.uint16[i+3]=r,e},t}(ni);_i.prototype.bytesPerElement=8,oa("StructArrayLayout1ul2ui8",_i);var Ai=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var n=this.length;return this.resize(n+1),this.emplace(n,e,t)},t.prototype.emplace=function(e,t,n){var r=2*e;return this.uint16[r+0]=t,this.uint16[r+1]=n,e},t}(ni);Ai.prototype.bytesPerElement=4,oa("StructArrayLayout2ui4",Ai);var Oi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){var n=1*e;return this.uint16[n+0]=t,e},t}(ni);Oi.prototype.bytesPerElement=2,oa("StructArrayLayout1ui2",Oi);var wi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,a){var i=4*e;return this.float32[i+0]=t,this.float32[i+1]=n,this.float32[i+2]=r,this.float32[i+3]=a,e},t}(ni);wi.prototype.bytesPerElement=16,oa("StructArrayLayout4f16",wi);var ki=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return n.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},n.x1.get=function(){return this._structArray.int16[this._pos2+2]},n.y1.get=function(){return this._structArray.int16[this._pos2+3]},n.x2.get=function(){return this._structArray.int16[this._pos2+4]},n.y2.get=function(){return this._structArray.int16[this._pos2+5]},n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.anchorPoint.get=function(){return new i(this.anchorPointX,this.anchorPointY)},Object.defineProperties(t.prototype,n),t}(ti);ki.prototype.size=20;var Ti=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return new ki(this,e)},t}(fi);oa("CollisionBoxArray",Ti);var Si=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},n.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},n.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},n.segment.get=function(){return this._structArray.uint16[this._pos2+10]},n.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},n.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},n.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},n.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},n.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},n.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},n.placedOrientation.set=function(e){this._structArray.uint8[this._pos1+37]=e},n.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},n.hidden.set=function(e){this._structArray.uint8[this._pos1+38]=e},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},n.crossTileID.set=function(e){this._structArray.uint32[this._pos4+10]=e},n.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(t.prototype,n),t}(ti);Si.prototype.size=48;var Ci=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return new Si(this,e)},t}(vi);oa("PlacedSymbolArray",Ci);var Ei=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},n.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},n.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},n.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},n.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},n.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},n.key.get=function(){return this._structArray.uint16[this._pos2+8]},n.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},n.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},n.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},n.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},n.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},n.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},n.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},n.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},n.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},n.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},n.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},n.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},n.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},n.crossTileID.set=function(e){this._structArray.uint32[this._pos4+12]=e},n.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},n.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},n.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},n.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(t.prototype,n),t}(ti);Ei.prototype.size=68;var qi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return new Ei(this,e)},t}(Mi);oa("SymbolInstanceArray",qi);var Di=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getoffsetX=function(e){return this.float32[1*e+0]},t}(xi);oa("GlyphOffsetArray",Di);var Ri=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getx=function(e){return this.int16[3*e+0]},t.prototype.gety=function(e){return this.int16[3*e+1]},t.prototype.gettileUnitDistanceFromAnchor=function(e){return this.int16[3*e+2]},t}(zi);oa("SymbolLineVertexArray",Ri);var Li=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(t.prototype,n),t}(ti);Li.prototype.size=8;var Ii=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return new Li(this,e)},t}(_i);oa("FeatureIndexArray",Ii);var Wi=ri([{name:"a_pos",components:2,type:"Int16"}],4).members,Ni=function(e){void 0===e&&(e=[]),this.segments=e};function Pi(e,t){return 256*(e=d(Math.floor(e),0,255))+(t=d(Math.floor(t),0,255))}Ni.prototype.prepareSegment=function(e,t,n,r){var a=this.segments[this.segments.length-1];return e>Ni.MAX_VERTEX_ARRAY_LENGTH&&A("Max vertices per segment is "+Ni.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+e),(!a||a.vertexLength+e>Ni.MAX_VERTEX_ARRAY_LENGTH||a.sortKey!==r)&&(a={vertexOffset:t.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==r&&(a.sortKey=r),this.segments.push(a)),a},Ni.prototype.get=function(){return this.segments},Ni.prototype.destroy=function(){for(var e=0,t=this.segments;e<t.length;e+=1){var n=t[e];for(var r in n.vaos)n.vaos[r].destroy()}},Ni.simpleSegment=function(e,t,n,r){return new Ni([{vertexOffset:e,primitiveOffset:t,vertexLength:n,primitiveLength:r,vaos:{},sortKey:0}])},Ni.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,oa("SegmentVector",Ni);var Bi=ri([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),Fi=t(function(e){e.exports=function(e,t){var n,r,a,i,o,s,l,c;for(n=3&e.length,r=e.length-n,a=t,o=3432918353,s=461845907,c=0;c<r;)l=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,a=27492+(65535&(i=5*(65535&(a=(a^=l=(65535&(l=(l=(65535&l)*o+(((l>>>16)*o&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|a>>>19))+((5*(a>>>16)&65535)<<16)&4294967295))+(((i>>>16)+58964&65535)<<16);switch(l=0,n){case 3:l^=(255&e.charCodeAt(c+2))<<16;case 2:l^=(255&e.charCodeAt(c+1))<<8;case 1:a^=l=(65535&(l=(l=(65535&(l^=255&e.charCodeAt(c)))*o+(((l>>>16)*o&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return a^=e.length,a=2246822507*(65535&(a^=a>>>16))+((2246822507*(a>>>16)&65535)<<16)&4294967295,a=3266489909*(65535&(a^=a>>>13))+((3266489909*(a>>>16)&65535)<<16)&4294967295,(a^=a>>>16)>>>0}}),ji=t(function(e){e.exports=function(e,t){for(var n,r=e.length,a=t^r,i=0;r>=4;)n=1540483477*(65535&(n=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(n>>>16)&65535)<<16),a=1540483477*(65535&a)+((1540483477*(a>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++i;switch(r){case 3:a^=(255&e.charCodeAt(i+2))<<16;case 2:a^=(255&e.charCodeAt(i+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(i)))+((1540483477*(a>>>16)&65535)<<16)}return a=1540483477*(65535&(a^=a>>>13))+((1540483477*(a>>>16)&65535)<<16),(a^=a>>>15)>>>0}}),Ui=Fi,Vi=Fi,Hi=ji;Ui.murmur3=Vi,Ui.murmur2=Hi;var Xi=function(){this.ids=[],this.positions=[],this.indexed=!1};Xi.prototype.add=function(e,t,n,r){this.ids.push(Yi(e)),this.positions.push(t,n,r)},Xi.prototype.getPositions=function(e){for(var t=Yi(e),n=0,r=this.ids.length-1;n<r;){var a=n+r>>1;this.ids[a]>=t?r=a:n=a+1}for(var i=[];this.ids[n]===t;){var o=this.positions[3*n],s=this.positions[3*n+1],l=this.positions[3*n+2];i.push({index:o,start:s,end:l}),n++}return i},Xi.serialize=function(e,t){var n=new Float64Array(e.ids),r=new Uint32Array(e.positions);return Zi(n,r,0,n.length-1),t&&t.push(n.buffer,r.buffer),{ids:n,positions:r}},Xi.deserialize=function(e){var t=new Xi;return t.ids=e.ids,t.positions=e.positions,t.indexed=!0,t};var Gi=Math.pow(2,53)-1;function Yi(e){var t=+e;return!isNaN(t)&&t<=Gi?t:Ui(String(e))}function Zi(e,t,n,r){for(;n<r;){for(var a=e[n+r>>1],i=n-1,o=r+1;;){do{i++}while(e[i]<a);do{o--}while(e[o]>a);if(i>=o)break;$i(e,i,o),$i(t,3*i,3*o),$i(t,3*i+1,3*o+1),$i(t,3*i+2,3*o+2)}o-n<r-o?(Zi(e,t,n,o),n=o+1):(Zi(e,t,o+1,r),r=o)}}function $i(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}oa("FeaturePositionMap",Xi);var Ji=function(e,t){this.gl=e.gl,this.location=t},Qi=function(e){function t(t,n){e.call(this,t,n),this.current=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){this.current!==e&&(this.current=e,this.gl.uniform1i(this.location,e))},t}(Ji),Ki=function(e){function t(t,n){e.call(this,t,n),this.current=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){this.current!==e&&(this.current=e,this.gl.uniform1f(this.location,e))},t}(Ji),eo=function(e){function t(t,n){e.call(this,t,n),this.current=[0,0]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){(e[0]!==this.current[0]||e[1]!==this.current[1])&&(this.current=e,this.gl.uniform2f(this.location,e[0],e[1]))},t}(Ji),to=function(e){function t(t,n){e.call(this,t,n),this.current=[0,0,0]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){(e[0]!==this.current[0]||e[1]!==this.current[1]||e[2]!==this.current[2])&&(this.current=e,this.gl.uniform3f(this.location,e[0],e[1],e[2]))},t}(Ji),no=function(e){function t(t,n){e.call(this,t,n),this.current=[0,0,0,0]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){(e[0]!==this.current[0]||e[1]!==this.current[1]||e[2]!==this.current[2]||e[3]!==this.current[3])&&(this.current=e,this.gl.uniform4f(this.location,e[0],e[1],e[2],e[3]))},t}(Ji),ro=function(e){function t(t,n){e.call(this,t,n),this.current=lt.transparent}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){(e.r!==this.current.r||e.g!==this.current.g||e.b!==this.current.b||e.a!==this.current.a)&&(this.current=e,this.gl.uniform4f(this.location,e.r,e.g,e.b,e.a))},t}(Ji),ao=new Float32Array(16),io=function(e){function t(t,n){e.call(this,t,n),this.current=ao}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){if(e[12]!==this.current[12]||e[0]!==this.current[0])return this.current=e,void this.gl.uniformMatrix4fv(this.location,!1,e);for(var t=1;t<16;t++)if(e[t]!==this.current[t]){this.current=e,this.gl.uniformMatrix4fv(this.location,!1,e);break}},t}(Ji);function oo(e){return[Pi(255*e.r,255*e.g),Pi(255*e.b,255*e.a)]}var so=function(e,t,n){this.value=e,this.uniformNames=t.map(function(e){return"u_"+e}),this.type=n};so.prototype.setUniform=function(e,t,n){e.set(n.constantOr(this.value))},so.prototype.getBinding=function(e,t,n){return"color"===this.type?new ro(e,t):new Ki(e,t)};var lo=function(e,t){this.uniformNames=t.map(function(e){return"u_"+e}),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1};lo.prototype.setConstantPatternPositions=function(e,t){this.pixelRatioFrom=t.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=t.tlbr,this.patternTo=e.tlbr},lo.prototype.setUniform=function(e,t,n,r){var a="u_pattern_to"===r?this.patternTo:"u_pattern_from"===r?this.patternFrom:"u_pixel_ratio_to"===r?this.pixelRatioTo:"u_pixel_ratio_from"===r?this.pixelRatioFrom:null;a&&e.set(a)},lo.prototype.getBinding=function(e,t,n){return"u_pattern"===n.substr(0,9)?new no(e,t):new Ki(e,t)};var co=function(e,t,n,r){this.expression=e,this.type=n,this.maxValue=0,this.paintVertexAttributes=t.map(function(e){return{name:"a_"+e,type:"Float32",components:"color"===n?2:1,offset:0}}),this.paintVertexArray=new r};co.prototype.populatePaintArray=function(e,t,n,r,a){var i=this.paintVertexArray.length,o=this.expression.evaluate(new Wa(0),t,{},r,[],a);this.paintVertexArray.resize(e),this._setPaintValue(i,e,o)},co.prototype.updatePaintArray=function(e,t,n,r){var a=this.expression.evaluate({zoom:0},n,r);this._setPaintValue(e,t,a)},co.prototype._setPaintValue=function(e,t,n){if("color"===this.type)for(var r=oo(n),a=e;a<t;a++)this.paintVertexArray.emplace(a,r[0],r[1]);else{for(var i=e;i<t;i++)this.paintVertexArray.emplace(i,n);this.maxValue=Math.max(this.maxValue,Math.abs(n))}},co.prototype.upload=function(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},co.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()};var uo=function(e,t,n,r,a,i){this.expression=e,this.uniformNames=t.map(function(e){return"u_"+e+"_t"}),this.type=n,this.useIntegerZoom=r,this.zoom=a,this.maxValue=0,this.paintVertexAttributes=t.map(function(e){return{name:"a_"+e,type:"Float32",components:"color"===n?4:2,offset:0}}),this.paintVertexArray=new i};uo.prototype.populatePaintArray=function(e,t,n,r,a){var i=this.expression.evaluate(new Wa(this.zoom),t,{},r,[],a),o=this.expression.evaluate(new Wa(this.zoom+1),t,{},r,[],a),s=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(s,e,i,o)},uo.prototype.updatePaintArray=function(e,t,n,r){var a=this.expression.evaluate({zoom:this.zoom},n,r),i=this.expression.evaluate({zoom:this.zoom+1},n,r);this._setPaintValue(e,t,a,i)},uo.prototype._setPaintValue=function(e,t,n,r){if("color"===this.type)for(var a=oo(n),i=oo(r),o=e;o<t;o++)this.paintVertexArray.emplace(o,a[0],a[1],i[0],i[1]);else{for(var s=e;s<t;s++)this.paintVertexArray.emplace(s,n,r);this.maxValue=Math.max(this.maxValue,Math.abs(n),Math.abs(r))}},uo.prototype.upload=function(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},uo.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},uo.prototype.setUniform=function(e,t){var n=this.useIntegerZoom?Math.floor(t.zoom):t.zoom,r=d(this.expression.interpolationFactor(n,this.zoom,this.zoom+1),0,1);e.set(r)},uo.prototype.getBinding=function(e,t,n){return new Ki(e,t)};var po=function(e,t,n,r,a,i){this.expression=e,this.type=t,this.useIntegerZoom=n,this.zoom=r,this.layerId=i,this.zoomInPaintVertexArray=new a,this.zoomOutPaintVertexArray=new a};po.prototype.populatePaintArray=function(e,t,n){var r=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(e),this.zoomOutPaintVertexArray.resize(e),this._setPaintValues(r,e,t.patterns&&t.patterns[this.layerId],n)},po.prototype.updatePaintArray=function(e,t,n,r,a){this._setPaintValues(e,t,n.patterns&&n.patterns[this.layerId],a)},po.prototype._setPaintValues=function(e,t,n,r){if(r&&n){var a=n.min,i=n.mid,o=n.max,s=r[a],l=r[i],c=r[o];if(s&&l&&c)for(var u=e;u<t;u++)this.zoomInPaintVertexArray.emplace(u,l.tl[0],l.tl[1],l.br[0],l.br[1],s.tl[0],s.tl[1],s.br[0],s.br[1],l.pixelRatio,s.pixelRatio),this.zoomOutPaintVertexArray.emplace(u,l.tl[0],l.tl[1],l.br[0],l.br[1],c.tl[0],c.tl[1],c.br[0],c.br[1],l.pixelRatio,c.pixelRatio)}},po.prototype.upload=function(e){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=e.createVertexBuffer(this.zoomInPaintVertexArray,Bi.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=e.createVertexBuffer(this.zoomOutPaintVertexArray,Bi.members,this.expression.isStateDependent))},po.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()};var ho=function(e,t,n){this.binders={},this._buffers=[];var r=[];for(var a in e.paint._values)if(n(a)){var i=e.paint.get(a);if(i instanceof Va&&Jn(i.property.specification)){var o=mo(a,e.type),s=i.value,l=i.property.specification.type,c=i.property.useIntegerZoom,u=i.property.specification["property-type"],d="cross-faded"===u||"cross-faded-data-driven"===u;if("constant"===s.kind)this.binders[a]=d?new lo(s.value,o):new so(s.value,o,l),r.push("/u_"+a);else if("source"===s.kind||d){var p=go(a,l,"source");this.binders[a]=d?new po(s,l,c,t,p,e.id):new co(s,o,l,p),r.push("/a_"+a)}else{var h=go(a,l,"composite");this.binders[a]=new uo(s,o,l,c,t,h),r.push("/z_"+a)}}}this.cacheKey=r.sort().join("")};ho.prototype.getMaxValue=function(e){var t=this.binders[e];return t instanceof co||t instanceof uo?t.maxValue:0},ho.prototype.populatePaintArrays=function(e,t,n,r,a){for(var i in this.binders){var o=this.binders[i];(o instanceof co||o instanceof uo||o instanceof po)&&o.populatePaintArray(e,t,n,r,a)}},ho.prototype.setConstantPatternPositions=function(e,t){for(var n in this.binders){var r=this.binders[n];r instanceof lo&&r.setConstantPatternPositions(e,t)}},ho.prototype.updatePaintArrays=function(e,t,n,r,a){var i=!1;for(var o in e)for(var s=0,l=t.getPositions(o);s<l.length;s+=1){var c=l[s],u=n.feature(c.index);for(var d in this.binders){var p=this.binders[d];if((p instanceof co||p instanceof uo||p instanceof po)&&!0===p.expression.isStateDependent){var h=r.paint.get(d);p.expression=h.value,p.updatePaintArray(c.start,c.end,u,e[o],a),i=!0}}}return i},ho.prototype.defines=function(){var e=[];for(var t in this.binders){var n=this.binders[t];(n instanceof so||n instanceof lo)&&e.push.apply(e,n.uniformNames.map(function(e){return"#define HAS_UNIFORM_"+e}))}return e},ho.prototype.getBinderAttributes=function(){var e=[];for(var t in this.binders){var n=this.binders[t];if(n instanceof co||n instanceof uo)for(var r=0;r<n.paintVertexAttributes.length;r++)e.push(n.paintVertexAttributes[r].name);else if(n instanceof po)for(var a=0;a<Bi.members.length;a++)e.push(Bi.members[a].name)}return e},ho.prototype.getBinderUniforms=function(){var e=[];for(var t in this.binders){var n=this.binders[t];if(n instanceof so||n instanceof lo||n instanceof uo)for(var r=0,a=n.uniformNames;r<a.length;r+=1){var i=a[r];e.push(i)}}return e},ho.prototype.getPaintVertexBuffers=function(){return this._buffers},ho.prototype.getUniforms=function(e,t){var n=[];for(var r in this.binders){var a=this.binders[r];if(a instanceof so||a instanceof lo||a instanceof uo)for(var i=0,o=a.uniformNames;i<o.length;i+=1){var s=o[i];if(t[s]){var l=a.getBinding(e,t[s],s);n.push({name:s,property:r,binding:l})}}}return n},ho.prototype.setUniforms=function(e,t,n,r){for(var a=0,i=t;a<i.length;a+=1){var o=i[a],s=o.name,l=o.property,c=o.binding;this.binders[l].setUniform(c,r,n.get(l),s)}},ho.prototype.updatePaintBuffers=function(e){for(var t in this._buffers=[],this.binders){var n=this.binders[t];if(e&&n instanceof po){var r=2===e.fromScale?n.zoomInPaintVertexBuffer:n.zoomOutPaintVertexBuffer;r&&this._buffers.push(r)}else(n instanceof co||n instanceof uo)&&n.paintVertexBuffer&&this._buffers.push(n.paintVertexBuffer)}},ho.prototype.upload=function(e){for(var t in this.binders){var n=this.binders[t];(n instanceof co||n instanceof uo||n instanceof po)&&n.upload(e)}this.updatePaintBuffers()},ho.prototype.destroy=function(){for(var e in this.binders){var t=this.binders[e];(t instanceof co||t instanceof uo||t instanceof po)&&t.destroy()}};var fo=function(e,t,n){void 0===n&&(n=function(){return!0}),this.programConfigurations={};for(var r=0,a=e;r<a.length;r+=1){var i=a[r];this.programConfigurations[i.id]=new ho(i,t,n)}this.needsUpload=!1,this._featureMap=new Xi,this._bufferOffset=0};function mo(e,t){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[e]||[e.replace(t+"-","").replace(/-/g,"_")]}function go(e,t,n){var r={color:{source:ci,composite:wi},number:{source:xi,composite:ci}},a=function(e){return{"line-pattern":{source:ui,composite:ui},"fill-pattern":{source:ui,composite:ui},"fill-extrusion-pattern":{source:ui,composite:ui}}[e]}(e);return a&&a[n]||r[t][n]}fo.prototype.populatePaintArrays=function(e,t,n,r,a,i){for(var o in this.programConfigurations)this.programConfigurations[o].populatePaintArrays(e,t,r,a,i);void 0!==t.id&&this._featureMap.add(t.id,n,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0},fo.prototype.updatePaintArrays=function(e,t,n,r){for(var a=0,i=n;a<i.length;a+=1){var o=i[a];this.needsUpload=this.programConfigurations[o.id].updatePaintArrays(e,this._featureMap,t,o,r)||this.needsUpload}},fo.prototype.get=function(e){return this.programConfigurations[e]},fo.prototype.upload=function(e){if(this.needsUpload){for(var t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}},fo.prototype.destroy=function(){for(var e in this.programConfigurations)this.programConfigurations[e].destroy()},oa("ConstantBinder",so),oa("CrossFadedConstantBinder",lo),oa("SourceExpressionBinder",co),oa("CrossFadedCompositeBinder",po),oa("CompositeExpressionBinder",uo),oa("ProgramConfiguration",ho,{omit:["_buffers"]}),oa("ProgramConfigurationSet",fo);var yo=8192,bo=Math.pow(2,14)-1,vo=-bo-1;function Mo(e){for(var t=yo/e.extent,n=e.loadGeometry(),r=0;r<n.length;r++)for(var a=n[r],i=0;i<a.length;i++){var o=a[i],s=Math.round(o.x*t),l=Math.round(o.y*t);o.x=d(s,vo,bo),o.y=d(l,vo,bo),(s<o.x||s>o.x+1||l<o.y||l>o.y+1)&&A("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return n}function xo(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?Mo(e):[]}}function zo(e,t,n,r,a){e.emplaceBack(2*t+(r+1)/2,2*n+(a+1)/2)}var _o=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(function(e){return e.id}),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new ii,this.indexArray=new bi,this.segments=new Ni,this.programConfigurations=new fo(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter(function(e){return e.isStateDependent()}).map(function(e){return e.id})};function Ao(e,t){for(var n=0;n<e.length;n++)if(Do(t,e[n]))return!0;for(var r=0;r<t.length;r++)if(Do(e,t[r]))return!0;return!!To(e,t)}function Oo(e,t,n){return!(!Do(e,t)&&!Co(t,e,n))}function wo(e,t){if(1===e.length)return qo(t,e[0]);for(var n=0;n<t.length;n++)for(var r=t[n],a=0;a<r.length;a++)if(Do(e,r[a]))return!0;for(var i=0;i<e.length;i++)if(qo(t,e[i]))return!0;for(var o=0;o<t.length;o++)if(To(e,t[o]))return!0;return!1}function ko(e,t,n){if(e.length>1){if(To(e,t))return!0;for(var r=0;r<t.length;r++)if(Co(t[r],e,n))return!0}for(var a=0;a<e.length;a++)if(Co(e[a],t,n))return!0;return!1}function To(e,t){if(0===e.length||0===t.length)return!1;for(var n=0;n<e.length-1;n++)for(var r=e[n],a=e[n+1],i=0;i<t.length-1;i++)if(So(r,a,t[i],t[i+1]))return!0;return!1}function So(e,t,n,r){return O(e,n,r)!==O(t,n,r)&&O(e,t,n)!==O(e,t,r)}function Co(e,t,n){var r=n*n;if(1===t.length)return e.distSqr(t[0])<r;for(var a=1;a<t.length;a++)if(Eo(e,t[a-1],t[a])<r)return!0;return!1}function Eo(e,t,n){var r=t.distSqr(n);if(0===r)return e.distSqr(t);var a=((e.x-t.x)*(n.x-t.x)+(e.y-t.y)*(n.y-t.y))/r;return a<0?e.distSqr(t):a>1?e.distSqr(n):e.distSqr(n.sub(t)._mult(a)._add(t))}function qo(e,t){for(var n,r,a,i=!1,o=0;o<e.length;o++)for(var s=0,l=(n=e[o]).length-1;s<n.length;l=s++)r=n[s],a=n[l],r.y>t.y!=a.y>t.y&&t.x<(a.x-r.x)*(t.y-r.y)/(a.y-r.y)+r.x&&(i=!i);return i}function Do(e,t){for(var n=!1,r=0,a=e.length-1;r<e.length;a=r++){var i=e[r],o=e[a];i.y>t.y!=o.y>t.y&&t.x<(o.x-i.x)*(t.y-i.y)/(o.y-i.y)+i.x&&(n=!n)}return n}function Ro(e,t,n){var r=n[0],a=n[2];if(e.x<r.x&&t.x<r.x||e.x>a.x&&t.x>a.x||e.y<r.y&&t.y<r.y||e.y>a.y&&t.y>a.y)return!1;var i=O(e,t,n[0]);return i!==O(e,t,n[1])||i!==O(e,t,n[2])||i!==O(e,t,n[3])}function Lo(e,t,n){var r=t.paint.get(e).value;return"constant"===r.kind?r.value:n.programConfigurations.get(t.id).getMaxValue(e)}function Io(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Wo(e,t,n,r,a){if(!t[0]&&!t[1])return e;var o=i.convert(t)._mult(a);"viewport"===n&&o._rotate(-r);for(var s=[],l=0;l<e.length;l++){var c=e[l];s.push(c.sub(o))}return s}_o.prototype.populate=function(e,t,n){var r=this.layers[0],a=[],i=null;"circle"===r.type&&(i=r.layout.get("circle-sort-key"));for(var o=0,s=e;o<s.length;o+=1){var l=s[o],c=l.feature,u=l.id,d=l.index,p=l.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,f=xo(c,h);if(this.layers[0]._featureFilter.filter(new Wa(this.zoom),f,n)){var m=i?i.evaluate(f,{},n):void 0,g={id:u,properties:c.properties,type:c.type,sourceLayerIndex:p,index:d,geometry:h?f.geometry:Mo(c),patterns:{},sortKey:m};a.push(g)}}i&&a.sort(function(e,t){return e.sortKey-t.sortKey});for(var y=0,b=a;y<b.length;y+=1){var v=b[y],M=v,x=M.geometry,z=M.index,_=M.sourceLayerIndex,A=e[z].feature;this.addFeature(v,x,z,n),t.featureIndex.insert(A,x,z,_,this.index)}},_o.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},_o.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},_o.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},_o.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Wi),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0},_o.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},_o.prototype.addFeature=function(e,t,n,r){for(var a=0,i=t;a<i.length;a+=1)for(var o=0,s=i[a];o<s.length;o+=1){var l=s[o],c=l.x,u=l.y;if(!(c<0||c>=yo||u<0||u>=yo)){var d=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),p=d.vertexLength;zo(this.layoutVertexArray,c,u,-1,-1),zo(this.layoutVertexArray,c,u,1,-1),zo(this.layoutVertexArray,c,u,1,1),zo(this.layoutVertexArray,c,u,-1,1),this.indexArray.emplaceBack(p,p+1,p+2),this.indexArray.emplaceBack(p,p+3,p+2),d.vertexLength+=4,d.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,{},r)},oa("CircleBucket",_o,{omit:["layers"]});var No=new Ja({"circle-sort-key":new Ga(We.layout_circle["circle-sort-key"])}),Po={paint:new Ja({"circle-radius":new Ga(We.paint_circle["circle-radius"]),"circle-color":new Ga(We.paint_circle["circle-color"]),"circle-blur":new Ga(We.paint_circle["circle-blur"]),"circle-opacity":new Ga(We.paint_circle["circle-opacity"]),"circle-translate":new Xa(We.paint_circle["circle-translate"]),"circle-translate-anchor":new Xa(We.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Xa(We.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Xa(We.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Ga(We.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Ga(We.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Ga(We.paint_circle["circle-stroke-opacity"])}),layout:No},Bo=typeof Float32Array<"u"?Float32Array:Array;function Fo(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function jo(e,t,n){var r=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],p=t[9],h=t[10],f=t[11],m=t[12],g=t[13],y=t[14],b=t[15],v=n[0],M=n[1],x=n[2],z=n[3];return e[0]=v*r+M*s+x*d+z*m,e[1]=v*a+M*l+x*p+z*g,e[2]=v*i+M*c+x*h+z*y,e[3]=v*o+M*u+x*f+z*b,v=n[4],M=n[5],x=n[6],z=n[7],e[4]=v*r+M*s+x*d+z*m,e[5]=v*a+M*l+x*p+z*g,e[6]=v*i+M*c+x*h+z*y,e[7]=v*o+M*u+x*f+z*b,v=n[8],M=n[9],x=n[10],z=n[11],e[8]=v*r+M*s+x*d+z*m,e[9]=v*a+M*l+x*p+z*g,e[10]=v*i+M*c+x*h+z*y,e[11]=v*o+M*u+x*f+z*b,v=n[12],M=n[13],x=n[14],z=n[15],e[12]=v*r+M*s+x*d+z*m,e[13]=v*a+M*l+x*p+z*g,e[14]=v*i+M*c+x*h+z*y,e[15]=v*o+M*u+x*f+z*b,e}Math.hypot||(Math.hypot=function(){for(var e=arguments,t=0,n=arguments.length;n--;)t+=e[n]*e[n];return Math.sqrt(t)});var Uo=jo,Vo=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e};function Ho(e,t,n){var r=t[0],a=t[1],i=t[2],o=t[3];return e[0]=n[0]*r+n[4]*a+n[8]*i+n[12]*o,e[1]=n[1]*r+n[5]*a+n[9]*i+n[13]*o,e[2]=n[2]*r+n[6]*a+n[10]*i+n[14]*o,e[3]=n[3]*r+n[7]*a+n[11]*i+n[15]*o,e}(function(){var e=new Bo(3);Bo!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0)})(),function(){var e=new Bo(4);Bo!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0)}();var Xo=function(e){var t=e[0],n=e[1];return t*t+n*n},Go=(function(){var e=new Bo(2);Bo!=Float32Array&&(e[0]=0,e[1]=0)}(),function(e){function t(t){e.call(this,t,Po)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.createBucket=function(e){return new _o(e)},t.prototype.queryRadius=function(e){var t=e;return Lo("circle-radius",this,t)+Lo("circle-stroke-width",this,t)+Io(this.paint.get("circle-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,a,i,o,s){for(var l=Wo(e,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),i.angle,o),c=this.paint.get("circle-radius").evaluate(t,n)+this.paint.get("circle-stroke-width").evaluate(t,n),u="map"===this.paint.get("circle-pitch-alignment"),d=u?l:function(e,t){return e.map(function(e){return Yo(e,t)})}(l,s),p=u?c*o:c,h=0,f=r;h<f.length;h+=1)for(var m=0,g=f[h];m<g.length;m+=1){var y=g[m],b=u?y:Yo(y,s),v=p,M=Ho([],[y.x,y.y,0,1],s);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?v*=M[3]/i.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(v*=i.cameraToCenterDistance/M[3]),Oo(d,b,v))return!0}return!1},t}(Ka));function Yo(e,t){var n=Ho([],[e.x,e.y,0,1],t);return new i(n[0]/n[3],n[1]/n[3])}var Zo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(_o);function $o(e,t,n,r){var a=t.width,i=t.height;if(r){if(r instanceof Uint8ClampedArray)r=new Uint8Array(r.buffer);else if(r.length!==a*i*n)throw new RangeError("mismatched image size")}else r=new Uint8Array(a*i*n);return e.width=a,e.height=i,e.data=r,e}function Jo(e,t,n){var r=t.width,a=t.height;if(r!==e.width||a!==e.height){var i=$o({},{width:r,height:a},n);Qo(e,i,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,r),height:Math.min(e.height,a)},n),e.width=r,e.height=a,e.data=i.data}}function Qo(e,t,n,r,a,i){if(0===a.width||0===a.height)return t;if(a.width>e.width||a.height>e.height||n.x>e.width-a.width||n.y>e.height-a.height)throw new RangeError("out of range source coordinates for image copy");if(a.width>t.width||a.height>t.height||r.x>t.width-a.width||r.y>t.height-a.height)throw new RangeError("out of range destination coordinates for image copy");for(var o=e.data,s=t.data,l=0;l<a.height;l++)for(var c=((n.y+l)*e.width+n.x)*i,u=((r.y+l)*t.width+r.x)*i,d=0;d<a.width*i;d++)s[u+d]=o[c+d];return t}oa("HeatmapBucket",Zo,{omit:["layers"]});var Ko=function(e,t){$o(this,e,1,t)};Ko.prototype.resize=function(e){Jo(this,e,1)},Ko.prototype.clone=function(){return new Ko({width:this.width,height:this.height},new Uint8Array(this.data))},Ko.copy=function(e,t,n,r,a){Qo(e,t,n,r,a,1)};var es=function(e,t){$o(this,e,4,t)};es.prototype.resize=function(e){Jo(this,e,4)},es.prototype.replace=function(e,t){t?this.data.set(e):e instanceof Uint8ClampedArray?this.data=new Uint8Array(e.buffer):this.data=e},es.prototype.clone=function(){return new es({width:this.width,height:this.height},new Uint8Array(this.data))},es.copy=function(e,t,n,r,a){Qo(e,t,n,r,a,4)},oa("AlphaImage",Ko),oa("RGBAImage",es);var ts={paint:new Ja({"heatmap-radius":new Ga(We.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Ga(We.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Xa(We.paint_heatmap["heatmap-intensity"]),"heatmap-color":new $a(We.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Xa(We.paint_heatmap["heatmap-opacity"])})};function ns(e){var t={},n=e.resolution||256,r=e.clips?e.clips.length:1,a=e.image||new es({width:n,height:r}),i=function(n,r,i){t[e.evaluationKey]=i;var o=e.expression.evaluate(t);a.data[n+r+0]=Math.floor(255*o.r/o.a),a.data[n+r+1]=Math.floor(255*o.g/o.a),a.data[n+r+2]=Math.floor(255*o.b/o.a),a.data[n+r+3]=Math.floor(255*o.a)};if(e.clips)for(var o=0,s=0;o<r;++o,s+=4*n)for(var l=0,c=0;l<n;l++,c+=4){var u=l/(n-1),d=e.clips[o];i(s,c,d.start*(1-u)+d.end*u)}else for(var p=0,h=0;p<n;p++,h+=4)i(0,h,p/(n-1));return a}var rs=function(e){function t(t){e.call(this,t,ts),this._updateColorRamp()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.createBucket=function(e){return new Zo(e)},t.prototype._handleSpecialPaintPropertyUpdate=function(e){"heatmap-color"===e&&this._updateColorRamp()},t.prototype._updateColorRamp=function(){var e=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=ns({expression:e,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null},t.prototype.resize=function(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)},t.prototype.queryRadius=function(){return 0},t.prototype.queryIntersectsFeature=function(){return!1},t.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility},t}(Ka),as={paint:new Ja({"hillshade-illumination-direction":new Xa(We.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new Xa(We.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new Xa(We.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new Xa(We.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new Xa(We.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new Xa(We.paint_hillshade["hillshade-accent-color"])})},is=function(e){function t(t){e.call(this,t,as)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility},t}(Ka),os=ri([{name:"a_pos",components:2,type:"Int16"}],4).members,ss=cs,ls=cs;function cs(e,t,n){n=n||2;var r,a,i,o,s,l,c,u=t&&t.length,d=u?t[0]*n:e.length,p=us(e,0,d,n,!0),h=[];if(!p||p.next===p.prev)return h;if(u&&(p=function(e,t,n,r){var a,i,o,s,l,c=[];for(a=0,i=t.length;a<i;a++)o=t[a]*r,s=a<i-1?t[a+1]*r:e.length,(l=us(e,o,s,r,!1))===l.next&&(l.steiner=!0),c.push(xs(l));for(c.sort(ys),a=0;a<c.length;a++)bs(c[a],n),n=ds(n,n.next);return n}(e,t,p,n)),e.length>80*n){r=i=e[0],a=o=e[1];for(var f=n;f<d;f+=n)(s=e[f])<r&&(r=s),(l=e[f+1])<a&&(a=l),s>i&&(i=s),l>o&&(o=l);c=0!==(c=Math.max(i-r,o-a))?1/c:0}return ps(p,h,n,r,a,c),h}function us(e,t,n,r,a){var i,o;if(a===Rs(e,t,n,r)>0)for(i=t;i<n;i+=r)o=Es(i,e[i],e[i+1],o);else for(i=n-r;i>=t;i-=r)o=Es(i,e[i],e[i+1],o);return o&&Os(o,o.next)&&(qs(o),o=o.next),o}function ds(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!Os(r,r.next)&&0!==As(r.prev,r,r.next))r=r.next;else{if(qs(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function ps(e,t,n,r,a,i,o){if(e){!o&&i&&function(e,t,n,r){var a=e;do{null===a.z&&(a.z=Ms(a.x,a.y,t,n,r)),a.prevZ=a.prev,a.nextZ=a.next,a=a.next}while(a!==e);a.prevZ.nextZ=null,a.prevZ=null,function(e){var t,n,r,a,i,o,s,l,c=1;do{for(n=e,e=null,i=null,o=0;n;){for(o++,r=n,s=0,t=0;t<c&&(s++,r=r.nextZ);t++);for(l=c;s>0||l>0&&r;)0!==s&&(0===l||!r||n.z<=r.z)?(a=n,n=n.nextZ,s--):(a=r,r=r.nextZ,l--),i?i.nextZ=a:e=a,a.prevZ=i,i=a;n=r}i.nextZ=null,c*=2}while(o>1)}(a)}(e,r,a,i);for(var s,l,c=e;e.prev!==e.next;)if(s=e.prev,l=e.next,i?fs(e,r,a,i):hs(e))t.push(s.i/n),t.push(e.i/n),t.push(l.i/n),qs(e),e=l.next,c=l.next;else if((e=l)===c){o?1===o?ps(e=ms(ds(e),t,n),t,n,r,a,i,2):2===o&&gs(e,t,n,r,a,i):ps(ds(e),t,n,r,a,i,1);break}}}function hs(e){var t=e.prev,n=e,r=e.next;if(As(t,n,r)>=0)return!1;for(var a=e.next.next;a!==e.prev;){if(zs(t.x,t.y,n.x,n.y,r.x,r.y,a.x,a.y)&&As(a.prev,a,a.next)>=0)return!1;a=a.next}return!0}function fs(e,t,n,r){var a=e.prev,i=e,o=e.next;if(As(a,i,o)>=0)return!1;for(var s=a.x<i.x?a.x<o.x?a.x:o.x:i.x<o.x?i.x:o.x,l=a.y<i.y?a.y<o.y?a.y:o.y:i.y<o.y?i.y:o.y,c=a.x>i.x?a.x>o.x?a.x:o.x:i.x>o.x?i.x:o.x,u=a.y>i.y?a.y>o.y?a.y:o.y:i.y>o.y?i.y:o.y,d=Ms(s,l,t,n,r),p=Ms(c,u,t,n,r),h=e.prevZ,f=e.nextZ;h&&h.z>=d&&f&&f.z<=p;){if(h!==e.prev&&h!==e.next&&zs(a.x,a.y,i.x,i.y,o.x,o.y,h.x,h.y)&&As(h.prev,h,h.next)>=0||(h=h.prevZ,f!==e.prev&&f!==e.next&&zs(a.x,a.y,i.x,i.y,o.x,o.y,f.x,f.y)&&As(f.prev,f,f.next)>=0))return!1;f=f.nextZ}for(;h&&h.z>=d;){if(h!==e.prev&&h!==e.next&&zs(a.x,a.y,i.x,i.y,o.x,o.y,h.x,h.y)&&As(h.prev,h,h.next)>=0)return!1;h=h.prevZ}for(;f&&f.z<=p;){if(f!==e.prev&&f!==e.next&&zs(a.x,a.y,i.x,i.y,o.x,o.y,f.x,f.y)&&As(f.prev,f,f.next)>=0)return!1;f=f.nextZ}return!0}function ms(e,t,n){var r=e;do{var a=r.prev,i=r.next.next;!Os(a,i)&&ws(a,r,r.next,i)&&Ss(a,i)&&Ss(i,a)&&(t.push(a.i/n),t.push(r.i/n),t.push(i.i/n),qs(r),qs(r.next),r=e=i),r=r.next}while(r!==e);return ds(r)}function gs(e,t,n,r,a,i){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&_s(o,s)){var l=Cs(o,s);return o=ds(o,o.next),l=ds(l,l.next),ps(o,t,n,r,a,i),void ps(l,t,n,r,a,i)}s=s.next}o=o.next}while(o!==e)}function ys(e,t){return e.x-t.x}function bs(e,t){if(t=function(e,t){var n,r=t,a=e.x,i=e.y,o=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=a&&s>o){if(o=s,s===a){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(a===o)return n;var l,c=n,u=n.x,d=n.y,p=1/0;r=n;do{a>=r.x&&r.x>=u&&a!==r.x&&zs(i<d?a:o,i,u,d,i<d?o:a,i,r.x,r.y)&&(l=Math.abs(i-r.y)/(a-r.x),Ss(r,e)&&(l<p||l===p&&(r.x>n.x||r.x===n.x&&vs(n,r)))&&(n=r,p=l)),r=r.next}while(r!==c);return n}(e,t),t){var n=Cs(t,e);ds(t,t.next),ds(n,n.next)}}function vs(e,t){return As(e.prev,e,t.prev)<0&&As(t.next,e,e.next)<0}function Ms(e,t,n,r,a){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*a)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*a)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function xs(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function zs(e,t,n,r,a,i,o,s){return(a-o)*(t-s)-(e-o)*(i-s)>=0&&(e-o)*(r-s)-(n-o)*(t-s)>=0&&(n-o)*(i-s)-(a-o)*(r-s)>=0}function _s(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&ws(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(Ss(e,t)&&Ss(t,e)&&function(e,t){var n=e,r=!1,a=(e.x+t.x)/2,i=(e.y+t.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&a<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(As(e.prev,e,t.prev)||As(e,t.prev,t))||Os(e,t)&&As(e.prev,e,e.next)>0&&As(t.prev,t,t.next)>0)}function As(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Os(e,t){return e.x===t.x&&e.y===t.y}function ws(e,t,n,r){var a=Ts(As(e,t,n)),i=Ts(As(e,t,r)),o=Ts(As(n,r,e)),s=Ts(As(n,r,t));return!!(a!==i&&o!==s||0===a&&ks(e,n,t)||0===i&&ks(e,r,t)||0===o&&ks(n,e,r)||0===s&&ks(n,t,r))}function ks(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function Ts(e){return e>0?1:e<0?-1:0}function Ss(e,t){return As(e.prev,e,e.next)<0?As(e,t,e.next)>=0&&As(e,e.prev,t)>=0:As(e,t,e.prev)<0||As(e,e.next,t)<0}function Cs(e,t){var n=new Ds(e.i,e.x,e.y),r=new Ds(t.i,t.x,t.y),a=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=a,a.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function Es(e,t,n,r){var a=new Ds(e,t,n);return r?(a.next=r.next,a.prev=r,r.next.prev=a,r.next=a):(a.prev=a,a.next=a),a}function qs(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Ds(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Rs(e,t,n,r){for(var a=0,i=t,o=n-r;i<n;i+=r)a+=(e[o]-e[i])*(e[i+1]+e[o+1]),o=i;return a}function Ls(e,t,n,r,a){Is(e,t,n||0,r||e.length-1,a||Ns)}function Is(e,t,n,r,a){for(;r>n;){if(r-n>600){var i=r-n+1,o=t-n+1,s=Math.log(i),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(i-l)/i)*(o-i/2<0?-1:1);Is(e,t,Math.max(n,Math.floor(t-o*l/i+c)),Math.min(r,Math.floor(t+(i-o)*l/i+c)),a)}var u=e[t],d=n,p=r;for(Ws(e,n,t),a(e[r],u)>0&&Ws(e,n,r);d<p;){for(Ws(e,d,p),d++,p--;a(e[d],u)<0;)d++;for(;a(e[p],u)>0;)p--}0===a(e[n],u)?Ws(e,n,p):Ws(e,++p,r),p<=t&&(n=p+1),t<=p&&(r=p-1)}}function Ws(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Ns(e,t){return e<t?-1:e>t?1:0}function Ps(e,t){var n=e.length;if(n<=1)return[e];for(var r,a,i=[],o=0;o<n;o++){var s=w(e[o]);0!==s&&(e[o].area=Math.abs(s),void 0===a&&(a=s<0),a===s<0?(r&&i.push(r),r=[e[o]]):r.push(e[o]))}if(r&&i.push(r),t>1)for(var l=0;l<i.length;l++)i[l].length<=t||(Ls(i[l],t,1,i[l].length-1,Bs),i[l]=i[l].slice(0,t));return i}function Bs(e,t){return t.area-e.area}function Fs(e,t,n){for(var r=n.patternDependencies,a=!1,i=0,o=t;i<o.length;i+=1){var s=o[i].paint.get(e+"-pattern");s.isConstant()||(a=!0);var l=s.constantOr(null);l&&(a=!0,r[l.to]=!0,r[l.from]=!0)}return a}function js(e,t,n,r,a){for(var i=a.patternDependencies,o=0,s=t;o<s.length;o+=1){var l=s[o],c=l.paint.get(e+"-pattern").value;if("constant"!==c.kind){var u=c.evaluate({zoom:r-1},n,{},a.availableImages),d=c.evaluate({zoom:r},n,{},a.availableImages),p=c.evaluate({zoom:r+1},n,{},a.availableImages);u=u&&u.name?u.name:u,d=d&&d.name?d.name:d,p=p&&p.name?p.name:p,i[u]=!0,i[d]=!0,i[p]=!0,n.patterns[l.id]={min:u,mid:d,max:p}}}return n}cs.deviation=function(e,t,n,r){var a=t&&t.length,i=a?t[0]*n:e.length,o=Math.abs(Rs(e,0,i,n));if(a)for(var s=0,l=t.length;s<l;s++){var c=t[s]*n,u=s<l-1?t[s+1]*n:e.length;o-=Math.abs(Rs(e,c,u,n))}var d=0;for(s=0;s<r.length;s+=3){var p=r[s]*n,h=r[s+1]*n,f=r[s+2]*n;d+=Math.abs((e[p]-e[f])*(e[h+1]-e[p+1])-(e[p]-e[h])*(e[f+1]-e[p+1]))}return 0===o&&0===d?0:Math.abs((d-o)/o)},cs.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,a=0;a<e.length;a++){for(var i=0;i<e[a].length;i++)for(var o=0;o<t;o++)n.vertices.push(e[a][i][o]);a>0&&(r+=e[a-1].length,n.holes.push(r))}return n},ss.default=ls;var Us=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(function(e){return e.id}),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new ii,this.indexArray=new bi,this.indexArray2=new Ai,this.programConfigurations=new fo(e.layers,e.zoom),this.segments=new Ni,this.segments2=new Ni,this.stateDependentLayerIds=this.layers.filter(function(e){return e.isStateDependent()}).map(function(e){return e.id})};Us.prototype.populate=function(e,t,n){this.hasPattern=Fs("fill",this.layers,t);for(var r=this.layers[0].layout.get("fill-sort-key"),a=[],i=0,o=e;i<o.length;i+=1){var s=o[i],l=s.feature,c=s.id,u=s.index,d=s.sourceLayerIndex,p=this.layers[0]._featureFilter.needGeometry,h=xo(l,p);if(this.layers[0]._featureFilter.filter(new Wa(this.zoom),h,n)){var f=r?r.evaluate(h,{},n,t.availableImages):void 0,m={id:c,properties:l.properties,type:l.type,sourceLayerIndex:d,index:u,geometry:p?h.geometry:Mo(l),patterns:{},sortKey:f};a.push(m)}}r&&a.sort(function(e,t){return e.sortKey-t.sortKey});for(var g=0,y=a;g<y.length;g+=1){var b=y[g],v=b,M=v.geometry,x=v.index,z=v.sourceLayerIndex;if(this.hasPattern){var _=js("fill",this.layers,b,this.zoom,t);this.patternFeatures.push(_)}else this.addFeature(b,M,x,n,{});var A=e[x].feature;t.featureIndex.insert(A,M,x,z,this.index)}},Us.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},Us.prototype.addFeatures=function(e,t,n){for(var r=0,a=this.patternFeatures;r<a.length;r+=1){var i=a[r];this.addFeature(i,i.geometry,i.index,t,n)}},Us.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Us.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Us.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,os),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0},Us.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},Us.prototype.addFeature=function(e,t,n,r,a){for(var i=0,o=Ps(t,500);i<o.length;i+=1){for(var s=o[i],l=0,c=0,u=s;c<u.length;c+=1)l+=u[c].length;for(var d=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray),p=d.vertexLength,h=[],f=[],m=0,g=s;m<g.length;m+=1){var y=g[m];if(0!==y.length){y!==s[0]&&f.push(h.length/2);var b=this.segments2.prepareSegment(y.length,this.layoutVertexArray,this.indexArray2),v=b.vertexLength;this.layoutVertexArray.emplaceBack(y[0].x,y[0].y),this.indexArray2.emplaceBack(v+y.length-1,v),h.push(y[0].x),h.push(y[0].y);for(var M=1;M<y.length;M++)this.layoutVertexArray.emplaceBack(y[M].x,y[M].y),this.indexArray2.emplaceBack(v+M-1,v+M),h.push(y[M].x),h.push(y[M].y);b.vertexLength+=y.length,b.primitiveLength+=y.length}}for(var x=ss(h,f),z=0;z<x.length;z+=3)this.indexArray.emplaceBack(p+x[z],p+x[z+1],p+x[z+2]);d.vertexLength+=l,d.primitiveLength+=x.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,a,r)},oa("FillBucket",Us,{omit:["layers","patternFeatures"]});var Vs=new Ja({"fill-sort-key":new Ga(We.layout_fill["fill-sort-key"])}),Hs={paint:new Ja({"fill-antialias":new Xa(We.paint_fill["fill-antialias"]),"fill-opacity":new Ga(We.paint_fill["fill-opacity"]),"fill-color":new Ga(We.paint_fill["fill-color"]),"fill-outline-color":new Ga(We.paint_fill["fill-outline-color"]),"fill-translate":new Xa(We.paint_fill["fill-translate"]),"fill-translate-anchor":new Xa(We.paint_fill["fill-translate-anchor"]),"fill-pattern":new Ya(We.paint_fill["fill-pattern"])}),layout:Vs},Xs=function(e){function t(t){e.call(this,t,Hs)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.recalculate=function(t,n){e.prototype.recalculate.call(this,t,n);var r=this.paint._values["fill-outline-color"];"constant"===r.value.kind&&void 0===r.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])},t.prototype.createBucket=function(e){return new Us(e)},t.prototype.queryRadius=function(){return Io(this.paint.get("fill-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,a,i,o){return wo(Wo(e,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),i.angle,o),r)},t.prototype.isTileClipped=function(){return!0},t}(Ka),Gs=ri([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4).members,Ys=Zs;function Zs(e,t,n,r,a){this.properties={},this.extent=n,this.type=0,this._pbf=e,this._geometry=-1,this._keys=r,this._values=a,e.readFields($s,this,t)}function $s(e,t,n){1==e?t.id=n.readVarint():2==e?function(e,t){for(var n=e.readVarint()+e.pos;e.pos<n;){var r=t._keys[e.readVarint()],a=t._values[e.readVarint()];t.properties[r]=a}}(n,t):3==e?t.type=n.readVarint():4==e&&(t._geometry=n.pos)}function Js(e){for(var t,n,r=0,a=0,i=e.length,o=i-1;a<i;o=a++)t=e[a],r+=((n=e[o]).x-t.x)*(t.y+n.y);return r}Zs.types=["Unknown","Point","LineString","Polygon"],Zs.prototype.loadGeometry=function(){var e=this._pbf;e.pos=this._geometry;for(var t,n=e.readVarint()+e.pos,r=1,a=0,o=0,s=0,l=[];e.pos<n;){if(a<=0){var c=e.readVarint();r=7&c,a=c>>3}if(a--,1===r||2===r)o+=e.readSVarint(),s+=e.readSVarint(),1===r&&(t&&l.push(t),t=[]),t.push(new i(o,s));else{if(7!==r)throw new Error("unknown command "+r);t&&t.push(t[0].clone())}}return t&&l.push(t),l},Zs.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,n=1,r=0,a=0,i=0,o=1/0,s=-1/0,l=1/0,c=-1/0;e.pos<t;){if(r<=0){var u=e.readVarint();n=7&u,r=u>>3}if(r--,1===n||2===n)(a+=e.readSVarint())<o&&(o=a),a>s&&(s=a),(i+=e.readSVarint())<l&&(l=i),i>c&&(c=i);else if(7!==n)throw new Error("unknown command "+n)}return[o,l,s,c]},Zs.prototype.toGeoJSON=function(e,t,n){var r,a,i=this.extent*Math.pow(2,n),o=this.extent*e,s=this.extent*t,l=this.loadGeometry(),c=Zs.types[this.type];function u(e){for(var t=0;t<e.length;t++){var n=e[t],r=180-360*(n.y+s)/i;e[t]=[360*(n.x+o)/i-180,360/Math.PI*Math.atan(Math.exp(r*Math.PI/180))-90]}}switch(this.type){case 1:var d=[];for(r=0;r<l.length;r++)d[r]=l[r][0];u(l=d);break;case 2:for(r=0;r<l.length;r++)u(l[r]);break;case 3:for(l=function(e){var t=e.length;if(t<=1)return[e];for(var n,r,a=[],i=0;i<t;i++){var o=Js(e[i]);0!==o&&(void 0===r&&(r=o<0),r===o<0?(n&&a.push(n),n=[e[i]]):n.push(e[i]))}return n&&a.push(n),a}(l),r=0;r<l.length;r++)for(a=0;a<l[r].length;a++)u(l[r][a])}1===l.length?l=l[0]:c="Multi"+c;var p={type:"Feature",geometry:{type:c,coordinates:l},properties:this.properties};return"id"in this&&(p.id=this.id),p};var Qs=Ks;function Ks(e,t){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],e.readFields(el,this,t),this.length=this._features.length}function el(e,t,n){15===e?t.version=n.readVarint():1===e?t.name=n.readString():5===e?t.extent=n.readVarint():2===e?t._features.push(n.pos):3===e?t._keys.push(n.readString()):4===e&&t._values.push(function(e){for(var t=null,n=e.readVarint()+e.pos;e.pos<n;){var r=e.readVarint()>>3;t=1===r?e.readString():2===r?e.readFloat():3===r?e.readDouble():4===r?e.readVarint64():5===r?e.readVarint():6===r?e.readSVarint():7===r?e.readBoolean():null}return t}(n))}Ks.prototype.feature=function(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new Ys(this._pbf,t,this.extent,this._keys,this._values)};var tl=function(e,t){this.layers=e.readFields(nl,{},t)};function nl(e,t,n){if(3===e){var r=new Qs(n,n.readVarint()+n.pos);r.length&&(t[r.name]=r)}}var rl={VectorTile:tl,VectorTileFeature:Ys,VectorTileLayer:Qs},al=rl.VectorTileFeature.types,il=Math.pow(2,13);function ol(e,t,n,r,a,i,o,s){e.emplaceBack(t,n,2*Math.floor(r*il)+o,a*il*2,i*il*2,Math.round(s))}var sl=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(function(e){return e.id}),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new si,this.indexArray=new bi,this.programConfigurations=new fo(e.layers,e.zoom),this.segments=new Ni,this.stateDependentLayerIds=this.layers.filter(function(e){return e.isStateDependent()}).map(function(e){return e.id})};function ll(e,t){return e.x===t.x&&(e.x<0||e.x>yo)||e.y===t.y&&(e.y<0||e.y>yo)}function cl(e){return e.every(function(e){return e.x<0})||e.every(function(e){return e.x>yo})||e.every(function(e){return e.y<0})||e.every(function(e){return e.y>yo})}sl.prototype.populate=function(e,t,n){this.features=[],this.hasPattern=Fs("fill-extrusion",this.layers,t);for(var r=0,a=e;r<a.length;r+=1){var i=a[r],o=i.feature,s=i.id,l=i.index,c=i.sourceLayerIndex,u=this.layers[0]._featureFilter.needGeometry,d=xo(o,u);if(this.layers[0]._featureFilter.filter(new Wa(this.zoom),d,n)){var p={id:s,sourceLayerIndex:c,index:l,geometry:u?d.geometry:Mo(o),properties:o.properties,type:o.type,patterns:{}};this.hasPattern?this.features.push(js("fill-extrusion",this.layers,p,this.zoom,t)):this.addFeature(p,p.geometry,l,n,{}),t.featureIndex.insert(o,p.geometry,l,c,this.index,!0)}}},sl.prototype.addFeatures=function(e,t,n){for(var r=0,a=this.features;r<a.length;r+=1){var i=a[r],o=i.geometry;this.addFeature(i,o,i.index,t,n)}},sl.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},sl.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},sl.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},sl.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Gs),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0},sl.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},sl.prototype.addFeature=function(e,t,n,r,a){for(var i=0,o=Ps(t,500);i<o.length;i+=1){for(var s=o[i],l=0,c=0,u=s;c<u.length;c+=1)l+=u[c].length;for(var d=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),p=0,h=s;p<h.length;p+=1){var f=h[p];if(0!==f.length&&!cl(f))for(var m=0,g=0;g<f.length;g++){var y=f[g];if(g>=1){var b=f[g-1];if(!ll(y,b)){d.vertexLength+4>Ni.MAX_VERTEX_ARRAY_LENGTH&&(d=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var v=y.sub(b)._perp()._unit(),M=b.dist(y);m+M>32768&&(m=0),ol(this.layoutVertexArray,y.x,y.y,v.x,v.y,0,0,m),ol(this.layoutVertexArray,y.x,y.y,v.x,v.y,0,1,m),m+=M,ol(this.layoutVertexArray,b.x,b.y,v.x,v.y,0,0,m),ol(this.layoutVertexArray,b.x,b.y,v.x,v.y,0,1,m);var x=d.vertexLength;this.indexArray.emplaceBack(x,x+2,x+1),this.indexArray.emplaceBack(x+1,x+2,x+3),d.vertexLength+=4,d.primitiveLength+=2}}}}if(d.vertexLength+l>Ni.MAX_VERTEX_ARRAY_LENGTH&&(d=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray)),"Polygon"===al[e.type]){for(var z=[],_=[],A=d.vertexLength,O=0,w=s;O<w.length;O+=1){var k=w[O];if(0!==k.length){k!==s[0]&&_.push(z.length/2);for(var T=0;T<k.length;T++){var S=k[T];ol(this.layoutVertexArray,S.x,S.y,0,0,1,1,0),z.push(S.x),z.push(S.y)}}}for(var C=ss(z,_),E=0;E<C.length;E+=3)this.indexArray.emplaceBack(A+C[E],A+C[E+2],A+C[E+1]);d.primitiveLength+=C.length/3,d.vertexLength+=l}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,a,r)},oa("FillExtrusionBucket",sl,{omit:["layers","features"]});var ul={paint:new Ja({"fill-extrusion-opacity":new Xa(We["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Ga(We["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Xa(We["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Xa(We["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Ya(We["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Ga(We["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Ga(We["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Xa(We["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})},dl=function(e){function t(t){e.call(this,t,ul)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.createBucket=function(e){return new sl(e)},t.prototype.queryRadius=function(){return Io(this.paint.get("fill-extrusion-translate"))},t.prototype.is3D=function(){return!0},t.prototype.queryIntersectsFeature=function(e,t,n,r,a,o,s,l){var c=Wo(e,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),o.angle,s),u=this.paint.get("fill-extrusion-height").evaluate(t,n),d=this.paint.get("fill-extrusion-base").evaluate(t,n),p=function(e,t,n,r){for(var a=[],o=0,s=e;o<s.length;o+=1){var l=s[o],c=[l.x,l.y,r,1];Ho(c,c,t),a.push(new i(c[0]/c[3],c[1]/c[3]))}return a}(c,l,0,0),h=function(e,t,n,r){for(var a=[],o=[],s=r[8]*t,l=r[9]*t,c=r[10]*t,u=r[11]*t,d=r[8]*n,p=r[9]*n,h=r[10]*n,f=r[11]*n,m=0,g=e;m<g.length;m+=1){for(var y=[],b=[],v=0,M=g[m];v<M.length;v+=1){var x=M[v],z=x.x,_=x.y,A=r[0]*z+r[4]*_+r[12],O=r[1]*z+r[5]*_+r[13],w=r[2]*z+r[6]*_+r[14],k=r[3]*z+r[7]*_+r[15],T=w+c,S=k+u,C=A+d,E=O+p,q=w+h,D=k+f,R=new i((A+s)/S,(O+l)/S);R.z=T/S,y.push(R);var L=new i(C/D,E/D);L.z=q/D,b.push(L)}a.push(y),o.push(b)}return[a,o]}(r,d,u,l);return function(e,t,n){var r=1/0;wo(n,t)&&(r=hl(n,t[0]));for(var a=0;a<t.length;a++)for(var i=t[a],o=e[a],s=0;s<i.length-1;s++){var l=i[s],c=i[s+1],u=o[s],d=[l,c,o[s+1],u,l];Ao(n,d)&&(r=Math.min(r,hl(n,d)))}return r!==1/0&&r}(h[0],h[1],p)},t}(Ka);function pl(e,t){return e.x*t.x+e.y*t.y}function hl(e,t){if(1===e.length){for(var n,r=0,a=t[r++];!n||a.equals(n);)if(!(n=t[r++]))return 1/0;for(;r<t.length;r++){var i=t[r],o=e[0],s=n.sub(a),l=i.sub(a),c=o.sub(a),u=pl(s,s),d=pl(s,l),p=pl(l,l),h=pl(c,s),f=pl(c,l),m=u*p-d*d,g=(p*h-d*f)/m,y=(u*f-d*h)/m,b=1-g-y,v=a.z*b+n.z*g+i.z*y;if(isFinite(v))return v}return 1/0}for(var M=1/0,x=0,z=t;x<z.length;x+=1){var _=z[x];M=Math.min(M,_.z)}return M}var fl=ri([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4).members,ml=ri([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]).members,gl=rl.VectorTileFeature.types,yl=Math.cos(Math.PI/180*37.5),bl=Math.pow(2,14)/.5,vl=function(e){var t=this;this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(function(e){return e.id}),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(function(e){t.gradients[e.id]={}}),this.layoutVertexArray=new li,this.layoutVertexArray2=new ci,this.indexArray=new bi,this.programConfigurations=new fo(e.layers,e.zoom),this.segments=new Ni,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(function(e){return e.isStateDependent()}).map(function(e){return e.id})};vl.prototype.populate=function(e,t,n){this.hasPattern=Fs("line",this.layers,t);for(var r=this.layers[0].layout.get("line-sort-key"),a=[],i=0,o=e;i<o.length;i+=1){var s=o[i],l=s.feature,c=s.id,u=s.index,d=s.sourceLayerIndex,p=this.layers[0]._featureFilter.needGeometry,h=xo(l,p);if(this.layers[0]._featureFilter.filter(new Wa(this.zoom),h,n)){var f=r?r.evaluate(h,{},n):void 0,m={id:c,properties:l.properties,type:l.type,sourceLayerIndex:d,index:u,geometry:p?h.geometry:Mo(l),patterns:{},sortKey:f};a.push(m)}}r&&a.sort(function(e,t){return e.sortKey-t.sortKey});for(var g=0,y=a;g<y.length;g+=1){var b=y[g],v=b,M=v.geometry,x=v.index,z=v.sourceLayerIndex;if(this.hasPattern){var _=js("line",this.layers,b,this.zoom,t);this.patternFeatures.push(_)}else this.addFeature(b,M,x,n,{});var A=e[x].feature;t.featureIndex.insert(A,M,x,z,this.index)}},vl.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},vl.prototype.addFeatures=function(e,t,n){for(var r=0,a=this.patternFeatures;r<a.length;r+=1){var i=a[r];this.addFeature(i,i.geometry,i.index,t,n)}},vl.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},vl.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},vl.prototype.upload=function(e){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,ml)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,fl),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0},vl.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},vl.prototype.lineFeatureClips=function(e){if(e.properties&&e.properties.hasOwnProperty("mapbox_clip_start")&&e.properties.hasOwnProperty("mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}},vl.prototype.addFeature=function(e,t,n,r,a){var i=this.layers[0].layout,o=i.get("line-join").evaluate(e,{}),s=i.get("line-cap"),l=i.get("line-miter-limit"),c=i.get("line-round-limit");this.lineClips=this.lineFeatureClips(e);for(var u=0,d=t;u<d.length;u+=1){var p=d[u];this.addLine(p,e,o,s,l,c)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,a,r)},vl.prototype.addLine=function(e,t,n,r,a,i){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(var o=0;o<e.length-1;o++)this.totalDistance+=e[o].dist(e[o+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}for(var s="Polygon"===gl[t.type],l=e.length;l>=2&&e[l-1].equals(e[l-2]);)l--;for(var c=0;c<l-1&&e[c].equals(e[c+1]);)c++;if(!(l<(s?3:2))){"bevel"===n&&(a=1.05);var u,d=this.overscaling<=16?15*yo/(512*this.overscaling):0,p=this.segments.prepareSegment(10*l,this.layoutVertexArray,this.indexArray),h=void 0,f=void 0,m=void 0,g=void 0;this.e1=this.e2=-1,s&&(u=e[l-2],g=e[c].sub(u)._unit()._perp());for(var y=c;y<l;y++)if(!(f=y===l-1?s?e[c+1]:void 0:e[y+1])||!e[y].equals(f)){g&&(m=g),u&&(h=u),u=e[y],g=f?f.sub(u)._unit()._perp():m;var b=(m=m||g).add(g);(0!==b.x||0!==b.y)&&b._unit();var v=m.x*g.x+m.y*g.y,M=b.x*g.x+b.y*g.y,x=0!==M?1/M:1/0,z=2*Math.sqrt(2-2*M),_=M<yl&&h&&f,A=m.x*g.y-m.y*g.x>0;if(_&&y>c){var O=u.dist(h);if(O>2*d){var w=u.sub(u.sub(h)._mult(d/O)._round());this.updateDistance(h,w),this.addCurrentVertex(w,m,0,0,p),h=w}}var k=h&&f,T=k?n:s?"butt":r;if(k&&"round"===T&&(x<i?T="miter":x<=2&&(T="fakeround")),"miter"===T&&x>a&&(T="bevel"),"bevel"===T&&(x>2&&(T="flipbevel"),x<a&&(T="miter")),h&&this.updateDistance(h,u),"miter"===T)b._mult(x),this.addCurrentVertex(u,b,0,0,p);else if("flipbevel"===T){if(x>100)b=g.mult(-1);else{var S=x*m.add(g).mag()/m.sub(g).mag();b._perp()._mult(S*(A?-1:1))}this.addCurrentVertex(u,b,0,0,p),this.addCurrentVertex(u,b.mult(-1),0,0,p)}else if("bevel"===T||"fakeround"===T){var C=-Math.sqrt(x*x-1),E=A?C:0,q=A?0:C;if(h&&this.addCurrentVertex(u,m,E,q,p),"fakeround"===T)for(var D=Math.round(180*z/Math.PI/20),R=1;R<D;R++){var L=R/D;if(.5!==L){var I=L-.5;L+=L*I*(L-1)*((1.0904+v*(v*(3.55645-1.43519*v)-3.2452))*I*I+(.848013+v*(.215638*v-1.06021)))}var W=g.sub(m)._mult(L)._add(m)._unit()._mult(A?-1:1);this.addHalfVertex(u,W.x,W.y,!1,A,0,p)}f&&this.addCurrentVertex(u,g,-E,-q,p)}else if("butt"===T)this.addCurrentVertex(u,b,0,0,p);else if("square"===T){var N=h?1:-1;this.addCurrentVertex(u,b,N,N,p)}else"round"===T&&(h&&(this.addCurrentVertex(u,m,0,0,p),this.addCurrentVertex(u,m,1,1,p,!0)),f&&(this.addCurrentVertex(u,g,-1,-1,p,!0),this.addCurrentVertex(u,g,0,0,p)));if(_&&y<l-1){var P=u.dist(f);if(P>2*d){var B=u.add(f.sub(u)._mult(d/P)._round());this.updateDistance(u,B),this.addCurrentVertex(B,g,0,0,p),u=B}}}}},vl.prototype.addCurrentVertex=function(e,t,n,r,a,i){void 0===i&&(i=!1);var o=t.x+t.y*n,s=t.y-t.x*n,l=-t.x+t.y*r,c=-t.y-t.x*r;this.addHalfVertex(e,o,s,i,!1,n,a),this.addHalfVertex(e,l,c,i,!0,-r,a),this.distance>bl/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(e,t,n,r,a,i))},vl.prototype.addHalfVertex=function(e,t,n,r,a,i,o){var s=e.x,l=e.y,c=.5*(this.lineClips?this.scaledDistance*(bl-1):this.scaledDistance);if(this.layoutVertexArray.emplaceBack((s<<1)+(r?1:0),(l<<1)+(a?1:0),Math.round(63*t)+128,Math.round(63*n)+128,1+(0===i?0:i<0?-1:1)|(63&c)<<2,c>>6),this.lineClips){var u=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(u,this.lineClipsArray.length)}var d=o.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,d),o.primitiveLength++),a?this.e2=d:this.e1=d},vl.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},vl.prototype.updateDistance=function(e,t){this.distance+=e.dist(t),this.updateScaledDistance()},oa("LineBucket",vl,{omit:["layers","patternFeatures"]});var Ml=new Ja({"line-cap":new Xa(We.layout_line["line-cap"]),"line-join":new Ga(We.layout_line["line-join"]),"line-miter-limit":new Xa(We.layout_line["line-miter-limit"]),"line-round-limit":new Xa(We.layout_line["line-round-limit"]),"line-sort-key":new Ga(We.layout_line["line-sort-key"])}),xl={paint:new Ja({"line-opacity":new Ga(We.paint_line["line-opacity"]),"line-color":new Ga(We.paint_line["line-color"]),"line-translate":new Xa(We.paint_line["line-translate"]),"line-translate-anchor":new Xa(We.paint_line["line-translate-anchor"]),"line-width":new Ga(We.paint_line["line-width"]),"line-gap-width":new Ga(We.paint_line["line-gap-width"]),"line-offset":new Ga(We.paint_line["line-offset"]),"line-blur":new Ga(We.paint_line["line-blur"]),"line-dasharray":new Za(We.paint_line["line-dasharray"]),"line-pattern":new Ya(We.paint_line["line-pattern"]),"line-gradient":new $a(We.paint_line["line-gradient"])}),layout:Ml},zl=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.possiblyEvaluate=function(t,n){return n=new Wa(Math.floor(n.zoom),{now:n.now,fadeDuration:n.fadeDuration,zoomHistory:n.zoomHistory,transition:n.transition}),e.prototype.possiblyEvaluate.call(this,t,n)},t.prototype.evaluate=function(t,n,r,a){return n=h({},n,{zoom:Math.floor(n.zoom)}),e.prototype.evaluate.call(this,t,n,r,a)},t}(Ga),_l=new zl(xl.paint.properties["line-width"].specification);_l.useIntegerZoom=!0;var Al=function(e){function t(t){e.call(this,t,xl),this.gradientVersion=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._handleSpecialPaintPropertyUpdate=function(e){if("line-gradient"===e){var t=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=t._styleExpression.expression instanceof tn,this.gradientVersion=(this.gradientVersion+1)%l}},t.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},t.prototype.recalculate=function(t,n){e.prototype.recalculate.call(this,t,n),this.paint._values["line-floorwidth"]=_l.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)},t.prototype.createBucket=function(e){return new vl(e)},t.prototype.queryRadius=function(e){var t=e,n=Ol(Lo("line-width",this,t),Lo("line-gap-width",this,t)),r=Lo("line-offset",this,t);return n/2+Math.abs(r)+Io(this.paint.get("line-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,a,o,s){var l=Wo(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),o.angle,s),c=s/2*Ol(this.paint.get("line-width").evaluate(t,n),this.paint.get("line-gap-width").evaluate(t,n)),u=this.paint.get("line-offset").evaluate(t,n);return u&&(r=function(e,t){for(var n=[],r=new i(0,0),a=0;a<e.length;a++){for(var o=e[a],s=[],l=0;l<o.length;l++){var c=o[l-1],u=o[l],d=o[l+1],p=0===l?r:u.sub(c)._unit()._perp(),h=l===o.length-1?r:d.sub(u)._unit()._perp(),f=p._add(h)._unit(),m=f.x*h.x+f.y*h.y;f._mult(1/m),s.push(f._mult(t)._add(u))}n.push(s)}return n}(r,u*s)),function(e,t,n){for(var r=0;r<t.length;r++){var a=t[r];if(e.length>=3)for(var i=0;i<a.length;i++)if(Do(e,a[i]))return!0;if(ko(e,a,n))return!0}return!1}(l,r,c)},t.prototype.isTileClipped=function(){return!0},t}(Ka);function Ol(e,t){return t>0?t+2*e:e}var wl=ri([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),kl=ri([{name:"a_projected_pos",components:3,type:"Float32"}],4),Tl=(ri([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),ri([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Sl=(ri([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),ri([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Cl=ri([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function El(e,t,n){return e.sections.forEach(function(e){e.text=function(e,t,n){var r=t.layout.get("text-transform").evaluate(n,{});return"uppercase"===r?e=e.toLocaleUpperCase():"lowercase"===r&&(e=e.toLocaleLowerCase()),La.applyArabicShaping&&(e=La.applyArabicShaping(e)),e}(e.text,t,n)}),e}ri([{name:"triangle",components:3,type:"Uint16"}]),ri([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),ri([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),ri([{type:"Float32",name:"offsetX"}]),ri([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var ql={"!":"︕","#":"",$:"","%":"","&":"","(":"︵",")":"︶","*":"","+":"",",":"︐","-":"︲",".":"・","/":"",":":"︓",";":"︔","<":"︿","=":"",">":"﹀","?":"︖","@":"","[":"﹇","\\":"","]":"﹈","^":"",_:"︳","`":"","{":"︷","|":"―","}":"︸","~":"","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","":"︲","—":"︱","":"﹃","":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","":"︹","":"︺","〖":"︗","〗":"︘","":"︕","":"︵","":"︶","":"︐","":"︲","":"・","":"︓","":"︔","":"︿","":"﹀","":"︖","":"﹇","":"﹈","_":"︳","":"︷","":"―","":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},Dl=24,Rl=function(e,t,n,r,a){var i,o,s=8*a-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?a-1:0,p=n?-1:1,h=e[t+d];for(d+=p,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=p,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=p,u-=8);if(0===i)i=1-c;else{if(i===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),i-=c}return(h?-1:1)*o*Math.pow(2,i-r)},Ll=function(e,t,n,r,a,i){var o,s,l,c=8*i-a-1,u=(1<<c)-1,d=u>>1,p=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,a),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[n+h]=255&s,h+=f,s/=256,a-=8);for(o=o<<a|s,c+=a;c>0;e[n+h]=255&o,h+=f,o/=256,c-=8);e[n+h-f]|=128*m},Il=Wl;function Wl(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}Wl.Varint=0,Wl.Fixed64=1,Wl.Bytes=2,Wl.Fixed32=5;var Nl=4294967296,Pl=1/Nl,Bl=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function Fl(e){return e.type===Wl.Bytes?e.readVarint()+e.pos:e.pos+1}function jl(e,t,n){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(var a=n.pos-1;a>=e;a--)n.buf[a+r]=n.buf[a]}function Ul(e,t){for(var n=0;n<e.length;n++)t.writeVarint(e[n])}function Vl(e,t){for(var n=0;n<e.length;n++)t.writeSVarint(e[n])}function Hl(e,t){for(var n=0;n<e.length;n++)t.writeFloat(e[n])}function Xl(e,t){for(var n=0;n<e.length;n++)t.writeDouble(e[n])}function Gl(e,t){for(var n=0;n<e.length;n++)t.writeBoolean(e[n])}function Yl(e,t){for(var n=0;n<e.length;n++)t.writeFixed32(e[n])}function Zl(e,t){for(var n=0;n<e.length;n++)t.writeSFixed32(e[n])}function $l(e,t){for(var n=0;n<e.length;n++)t.writeFixed64(e[n])}function Jl(e,t){for(var n=0;n<e.length;n++)t.writeSFixed64(e[n])}function Ql(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function Kl(e,t,n){e[n]=t,e[n+1]=t>>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function ec(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}function tc(e,t,n){1===e&&n.readMessage(nc,t)}function nc(e,t,n){if(3===e){var r=n.readMessage(rc,{}),a=r.id,i=r.bitmap,o=r.width,s=r.height,l=r.left,c=r.top,u=r.advance;t.push({id:a,bitmap:new Ko({width:o+6,height:s+6},i),metrics:{width:o,height:s,left:l,top:c,advance:u}})}}function rc(e,t,n){1===e?t.id=n.readVarint():2===e?t.bitmap=n.readBytes():3===e?t.width=n.readVarint():4===e?t.height=n.readVarint():5===e?t.left=n.readSVarint():6===e?t.top=n.readSVarint():7===e&&(t.advance=n.readVarint())}function ac(e){for(var t=0,n=0,r=0,a=e;r<a.length;r+=1){var i=a[r];t+=i.w*i.h,n=Math.max(n,i.w)}e.sort(function(e,t){return t.h-e.h});for(var o=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),n),h:1/0}],s=0,l=0,c=0,u=e;c<u.length;c+=1)for(var d=u[c],p=o.length-1;p>=0;p--){var h=o[p];if(!(d.w>h.w||d.h>h.h)){if(d.x=h.x,d.y=h.y,l=Math.max(l,d.y+d.h),s=Math.max(s,d.x+d.w),d.w===h.w&&d.h===h.h){var f=o.pop();p<o.length&&(o[p]=f)}else d.h===h.h?(h.x+=d.w,h.w-=d.w):d.w===h.w?(h.y+=d.h,h.h-=d.h):(o.push({x:h.x+d.w,y:h.y,w:h.w-d.w,h:d.h}),h.y+=d.h,h.h-=d.h);break}}return{w:s,h:l,fill:t/(s*l)||0}}Wl.prototype={destroy:function(){this.buf=null},readFields:function(e,t,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),a=r>>3,i=this.pos;this.type=7&r,e(a,t,this),this.pos===i&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=Ql(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=ec(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=Ql(this.buf,this.pos)+Ql(this.buf,this.pos+4)*Nl;return this.pos+=8,e},readSFixed64:function(){var e=Ql(this.buf,this.pos)+ec(this.buf,this.pos+4)*Nl;return this.pos+=8,e},readFloat:function(){var e=Rl(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=Rl(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,r=this.buf;return t=127&(n=r[this.pos++]),n<128||(t|=(127&(n=r[this.pos++]))<<7,n<128)||(t|=(127&(n=r[this.pos++]))<<14,n<128)||(t|=(127&(n=r[this.pos++]))<<21,n<128)?t:function(e,t,n){var r,a,i=n.buf;if(a=i[n.pos++],r=(112&a)>>4,a<128||(a=i[n.pos++],r|=(127&a)<<3,a<128)||(a=i[n.pos++],r|=(127&a)<<10,a<128)||(a=i[n.pos++],r|=(127&a)<<17,a<128)||(a=i[n.pos++],r|=(127&a)<<24,a<128)||(a=i[n.pos++],r|=(1&a)<<31,a<128))return function(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}(e,r,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=r[this.pos]))<<28,e,this)},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&Bl?function(e,t,n){return Bl.decode(e.subarray(t,n))}(this.buf,t,e):function(e,t,n){for(var r="",a=t;a<n;){var i,o,s,l=e[a],c=null,u=l>239?4:l>223?3:l>191?2:1;if(a+u>n)break;1===u?l<128&&(c=l):2===u?128==(192&(i=e[a+1]))&&(c=(31&l)<<6|63&i)<=127&&(c=null):3===u?(i=e[a+1],o=e[a+2],128==(192&i)&&128==(192&o)&&((c=(15&l)<<12|(63&i)<<6|63&o)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(i=e[a+1],o=e[a+2],s=e[a+3],128==(192&i)&&128==(192&o)&&128==(192&s)&&((c=(15&l)<<18|(63&i)<<12|(63&o)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,r+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),r+=String.fromCharCode(c),a+=u}return r}(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==Wl.Bytes)return e.push(this.readVarint(t));var n=Fl(this);for(e=e||[];this.pos<n;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==Wl.Bytes)return e.push(this.readSVarint());var t=Fl(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==Wl.Bytes)return e.push(this.readBoolean());var t=Fl(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==Wl.Bytes)return e.push(this.readFloat());var t=Fl(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==Wl.Bytes)return e.push(this.readDouble());var t=Fl(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==Wl.Bytes)return e.push(this.readFixed32());var t=Fl(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==Wl.Bytes)return e.push(this.readSFixed32());var t=Fl(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==Wl.Bytes)return e.push(this.readFixed64());var t=Fl(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==Wl.Bytes)return e.push(this.readSFixed64());var t=Fl(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===Wl.Varint)for(;this.buf[this.pos++]>127;);else if(t===Wl.Bytes)this.pos=this.readVarint()+this.pos;else if(t===Wl.Fixed32)this.pos+=4;else{if(t!==Wl.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t<this.pos+e;)t*=2;if(t!==this.length){var n=new Uint8Array(t);n.set(this.buf),this.buf=n,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),Kl(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),Kl(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),Kl(this.buf,-1&e,this.pos),Kl(this.buf,Math.floor(e*Pl),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),Kl(this.buf,-1&e,this.pos),Kl(this.buf,Math.floor(e*Pl),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var n,r;if(e>=0?(n=e%4294967296|0,r=e/4294967296|0):(r=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?n=n+1|0:(n=0,r=r+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,n){n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos]=127&e}(n,0,t),function(e,t){var n=(7&e)<<4;t.buf[t.pos++]|=n|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}(r,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),!(e<=127)&&(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),!(e<=127)&&(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),!(e<=127)&&(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(!!e)},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,n){for(var r,a,i=0;i<t.length;i++){if((r=t.charCodeAt(i))>55295&&r<57344){if(!a){r>56319||i+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):a=r;continue}if(r<56320){e[n++]=239,e[n++]=191,e[n++]=189,a=r;continue}r=a-55296<<10|r-56320|65536,a=null}else a&&(e[n++]=239,e[n++]=191,e[n++]=189,a=null);r<128?e[n++]=r:(r<2048?e[n++]=r>>6|192:(r<65536?e[n++]=r>>12|224:(e[n++]=r>>18|240,e[n++]=r>>12&63|128),e[n++]=r>>6&63|128),e[n++]=63&r|128)}return n}(this.buf,e,this.pos);var n=this.pos-t;n>=128&&jl(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),Ll(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),Ll(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var n=0;n<t;n++)this.buf[this.pos++]=e[n]},writeRawMessage:function(e,t){this.pos++;var n=this.pos;e(t,this);var r=this.pos-n;r>=128&&jl(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,n){this.writeTag(e,Wl.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,Ul,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,Vl,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,Gl,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,Hl,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,Xl,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,Yl,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,Zl,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,$l,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,Jl,t)},writeBytesField:function(e,t){this.writeTag(e,Wl.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,Wl.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,Wl.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,Wl.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,Wl.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,Wl.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,Wl.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,Wl.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,Wl.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,Wl.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,!!t)}};var ic=function(e,t){var n=t.pixelRatio,r=t.version,a=t.stretchX,i=t.stretchY,o=t.content;this.paddedRect=e,this.pixelRatio=n,this.stretchX=a,this.stretchY=i,this.content=o,this.version=r},oc={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};oc.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},oc.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},oc.tlbr.get=function(){return this.tl.concat(this.br)},oc.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(ic.prototype,oc);var sc=function(e,t){var n={},r={};this.haveRenderCallbacks=[];var a=[];this.addImages(e,n,a),this.addImages(t,r,a);var i=ac(a),o=i.w,s=i.h,l=new es({width:o||1,height:s||1});for(var c in e){var u=e[c],d=n[c].paddedRect;es.copy(u.data,l,{x:0,y:0},{x:d.x+1,y:d.y+1},u.data)}for(var p in t){var h=t[p],f=r[p].paddedRect,m=f.x+1,g=f.y+1,y=h.data.width,b=h.data.height;es.copy(h.data,l,{x:0,y:0},{x:m,y:g},h.data),es.copy(h.data,l,{x:0,y:b-1},{x:m,y:g-1},{width:y,height:1}),es.copy(h.data,l,{x:0,y:0},{x:m,y:g+b},{width:y,height:1}),es.copy(h.data,l,{x:y-1,y:0},{x:m-1,y:g},{width:1,height:b}),es.copy(h.data,l,{x:0,y:0},{x:m+y,y:g},{width:1,height:b})}this.image=l,this.iconPositions=n,this.patternPositions=r};sc.prototype.addImages=function(e,t,n){for(var r in e){var a=e[r],i={x:0,y:0,w:a.data.width+2,h:a.data.height+2};n.push(i),t[r]=new ic(i,a),a.hasRenderCallback&&this.haveRenderCallbacks.push(r)}},sc.prototype.patchUpdatedImages=function(e,t){for(var n in e.dispatchRenderCallbacks(this.haveRenderCallbacks),e.updatedImages)this.patchUpdatedImage(this.iconPositions[n],e.getImage(n),t),this.patchUpdatedImage(this.patternPositions[n],e.getImage(n),t)},sc.prototype.patchUpdatedImage=function(e,t,n){if(e&&t&&e.version!==t.version){e.version=t.version;var r=e.tl,a=r[0],i=r[1];n.update(t.data,void 0,{x:a,y:i})}},oa("ImagePosition",ic),oa("ImageAtlas",sc);var lc={horizontal:1,vertical:2,horizontalOnly:3},cc=-17,uc=function(){this.scale=1,this.fontStack="",this.imageName=null};uc.forText=function(e,t){var n=new uc;return n.scale=e||1,n.fontStack=t,n},uc.forImage=function(e){var t=new uc;return t.imageName=e,t};var dc=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function pc(e,t,n,r,a,i,o,s,l,c,u,d,p,h,f,m){var g=dc.fromFeature(e,a);d===lc.vertical&&g.verticalizePunctuation();var y,b=La.processBidirectionalText,v=La.processStyledBidirectionalText;if(b&&1===g.sections.length){y=[];for(var M=0,x=b(g.toString(),Mc(g,c,i,t,r,h,f));M<x.length;M+=1){var z=x[M],_=new dc;_.text=z,_.sections=g.sections;for(var A=0;A<z.length;A++)_.sectionIndex.push(0);y.push(_)}}else if(v){y=[];for(var O=0,w=v(g.text,g.sectionIndex,Mc(g,c,i,t,r,h,f));O<w.length;O+=1){var k=w[O],T=new dc;T.text=k[0],T.sectionIndex=k[1],T.sections=g.sections,y.push(T)}}else y=function(e,t){for(var n=[],r=e.text,a=0,i=0,o=t;i<o.length;i+=1){var s=o[i];n.push(e.substring(a,s)),a=s}return a<r.length&&n.push(e.substring(a,r.length)),n}(g,Mc(g,c,i,t,r,h,f));var S=[],C={positionedLines:S,text:g.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:d,iconsInText:!1,verticalizable:!1};return function(e,t,n,r,a,i,o,s,l,c,u,d){for(var p=0,h=cc,f=0,m=0,g="right"===s?1:"left"===s?0:.5,y=0,b=0,v=a;b<v.length;b+=1){var M=v[b];M.trim();var x=M.getMaxScale(),z=(x-1)*Dl,_={positionedGlyphs:[],lineOffset:0};e.positionedLines[y]=_;var A=_.positionedGlyphs,O=0;if(M.length()){for(var w=0;w<M.length();w++){var k=M.getSection(w),T=M.getSectionIndex(w),S=M.getCharCode(w),C=0,E=null,q=null,D=null,R=Dl,L=!(l===lc.horizontal||!u&&!ya(S)||u&&(hc[S]||va(S)));if(k.imageName){var I=r[k.imageName];if(!I)continue;D=k.imageName,e.iconsInText=e.iconsInText||!0,q=I.paddedRect;var W=I.displaySize;k.scale=k.scale*Dl/d,E={width:W[0],height:W[1],left:1,top:-3,advance:L?W[1]:W[0]},C=z+(Dl-W[1]*k.scale),R=E.advance;var N=L?W[0]*k.scale-Dl*x:W[1]*k.scale-Dl*x;N>0&&N>O&&(O=N)}else{var P=n[k.fontStack],B=P&&P[S];if(B&&B.rect)q=B.rect,E=B.metrics;else{var F=t[k.fontStack],j=F&&F[S];if(!j)continue;E=j.metrics}C=(x-k.scale)*Dl}L?(e.verticalizable=!0,A.push({glyph:S,imageName:D,x:p,y:h+C,vertical:L,scale:k.scale,fontStack:k.fontStack,sectionIndex:T,metrics:E,rect:q}),p+=R*k.scale+c):(A.push({glyph:S,imageName:D,x:p,y:h+C,vertical:L,scale:k.scale,fontStack:k.fontStack,sectionIndex:T,metrics:E,rect:q}),p+=E.advance*k.scale+c)}if(0!==A.length){var U=p-c;f=Math.max(U,f),zc(A,0,A.length-1,g,O)}p=0;var V=i*x+O;_.lineOffset=Math.max(O,z),h+=V,m=Math.max(V,m),++y}else h+=i,++y}var H=h-cc,X=xc(o),G=X.horizontalAlign,Y=X.verticalAlign;(function(e,t,n,r,a,i,o,s,l){var c=(t-n)*a,u=0;u=i!==o?-s*r-cc:(-r*l+.5)*o;for(var d=0,p=e;d<p.length;d+=1)for(var h=p[d],f=0,m=h.positionedGlyphs;f<m.length;f+=1){var g=m[f];g.x+=c,g.y+=u}})(e.positionedLines,g,G,Y,f,m,i,H,a.length),e.top+=-Y*H,e.bottom=e.top+H,e.left+=-G*f,e.right=e.left+f}(C,t,n,r,y,o,s,l,d,c,p,m),!function(e){for(var t=0,n=e;t<n.length;t+=1)if(0!==n[t].positionedGlyphs.length)return!1;return!0}(S)&&C}dc.fromFeature=function(e,t){for(var n=new dc,r=0;r<e.sections.length;r++){var a=e.sections[r];a.image?n.addImageSection(a):n.addTextSection(a,t)}return n},dc.prototype.length=function(){return this.text.length},dc.prototype.getSection=function(e){return this.sections[this.sectionIndex[e]]},dc.prototype.getSectionIndex=function(e){return this.sectionIndex[e]},dc.prototype.getCharCode=function(e){return this.text.charCodeAt(e)},dc.prototype.verticalizePunctuation=function(){this.text=function(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n+1)||null,a=e.charCodeAt(n-1)||null;r&&ba(r)&&!ql[e[n+1]]||a&&ba(a)&&!ql[e[n-1]]||!ql[e[n]]?t+=e[n]:t+=ql[e[n]]}return t}(this.text)},dc.prototype.trim=function(){for(var e=0,t=0;t<this.text.length&&hc[this.text.charCodeAt(t)];t++)e++;for(var n=this.text.length,r=this.text.length-1;r>=0&&r>=e&&hc[this.text.charCodeAt(r)];r--)n--;this.text=this.text.substring(e,n),this.sectionIndex=this.sectionIndex.slice(e,n)},dc.prototype.substring=function(e,t){var n=new dc;return n.text=this.text.substring(e,t),n.sectionIndex=this.sectionIndex.slice(e,t),n.sections=this.sections,n},dc.prototype.toString=function(){return this.text},dc.prototype.getMaxScale=function(){var e=this;return this.sectionIndex.reduce(function(t,n){return Math.max(t,e.sections[n].scale)},0)},dc.prototype.addTextSection=function(e,t){this.text+=e.text,this.sections.push(uc.forText(e.scale,e.fontStack||t));for(var n=this.sections.length-1,r=0;r<e.text.length;++r)this.sectionIndex.push(n)},dc.prototype.addImageSection=function(e){var t=e.image?e.image.name:"";if(0!==t.length){var n=this.getNextImageSectionCharCode();n?(this.text+=String.fromCharCode(n),this.sections.push(uc.forImage(t)),this.sectionIndex.push(this.sections.length-1)):A("Reached maximum number of images 6401")}else A("Can't add FormattedSection with an empty image.")},dc.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var hc={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},fc={};function mc(e,t,n,r,a,i){if(t.imageName){var o=r[t.imageName];return o?o.displaySize[0]*t.scale*Dl/i+a:0}var s=n[t.fontStack],l=s&&s[e];return l?l.metrics.advance*t.scale+a:0}function gc(e,t,n,r){var a=Math.pow(e-t,2);return r?e<t?a/2:2*a:a+Math.abs(n)*n}function yc(e,t,n){var r=0;return 10===e&&(r-=1e4),n&&(r+=150),(40===e||65288===e)&&(r+=50),(41===t||65289===t)&&(r+=50),r}function bc(e,t,n,r,a,i){for(var o=null,s=gc(t,n,a,i),l=0,c=r;l<c.length;l+=1){var u=c[l],d=gc(t-u.x,n,a,i)+u.badness;d<=s&&(o=u,s=d)}return{index:e,x:t,priorBreak:o,badness:s}}function vc(e){return e?vc(e.priorBreak).concat(e.index):[]}function Mc(e,t,n,r,a,i,o){if("point"!==i)return[];if(!e)return[];for(var s=[],l=function(e,t,n,r,a,i){for(var o=0,s=0;s<e.length();s++){var l=e.getSection(s);o+=mc(e.getCharCode(s),l,r,a,t,i)}return o/Math.max(1,Math.ceil(o/n))}(e,t,n,r,a,o),c=e.text.indexOf("")>=0,u=0,d=0;d<e.length();d++){var p=e.getSection(d),h=e.getCharCode(d);if(hc[h]||(u+=mc(h,p,r,a,t,o)),d<e.length()-1){var f=ga(h);(fc[h]||f||p.imageName)&&s.push(bc(d+1,u,l,s,yc(h,e.getCharCode(d+1),f&&c),!1))}}return vc(bc(e.length(),u,l,s,0,!0))}function xc(e){var t=.5,n=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:t,verticalAlign:n}}function zc(e,t,n,r,a){if(r||a)for(var i=e[n],o=i.metrics.advance*i.scale,s=(e[n].x+o)*r,l=t;l<=n;l++)e[l].x-=s,e[l].y+=a}function _c(e,t,n,r,a,i){var o,s=e.image;if(s.content){var l=s.content,c=s.pixelRatio||1;o=[l[0]/c,l[1]/c,s.displaySize[0]-l[2]/c,s.displaySize[1]-l[3]/c]}var u,d,p,h,f=t.left*i,m=t.right*i;"width"===n||"both"===n?(h=a[0]+f-r[3],d=a[0]+m+r[1]):d=(h=a[0]+(f+m-s.displaySize[0])/2)+s.displaySize[0];var g=t.top*i,y=t.bottom*i;return"height"===n||"both"===n?(u=a[1]+g-r[0],p=a[1]+y+r[2]):p=(u=a[1]+(g+y-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:u,right:d,bottom:p,left:h,collisionPadding:o}}fc[10]=!0,fc[32]=!0,fc[38]=!0,fc[40]=!0,fc[41]=!0,fc[43]=!0,fc[45]=!0,fc[47]=!0,fc[173]=!0,fc[183]=!0,fc[8203]=!0,fc[8208]=!0,fc[8211]=!0,fc[8231]=!0;var Ac=function(e){function t(t,n,r,a){e.call(this,t,n),this.angle=r,void 0!==a&&(this.segment=a)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.clone=function(){return new t(this.x,this.y,this.angle,this.segment)},t}(i);oa("Anchor",Ac);var Oc=128;function wc(e,t){var n=t.expression;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new Wa(e+1))};if("source"===n.kind)return{kind:"source"};for(var r=n.zoomStops,a=n.interpolationType,i=0;i<r.length&&r[i]<=e;)i++;for(var o=i=Math.max(0,i-1);o<r.length&&r[o]<e+1;)o++;o=Math.min(r.length-1,o);var s=r[i],l=r[o];return"composite"===n.kind?{kind:"composite",minZoom:s,maxZoom:l,interpolationType:a}:{kind:"camera",minZoom:s,maxZoom:l,minSize:n.evaluate(new Wa(s)),maxSize:n.evaluate(new Wa(l)),interpolationType:a}}function kc(e,t,n){var r=t.uSize,a=t.uSizeT,i=n.lowerSize,o=n.upperSize;return"source"===e.kind?i/Oc:"composite"===e.kind?nn(i/Oc,o/Oc,a):r}function Tc(e,t){var n=0,r=0;if("constant"===e.kind)r=e.layoutSize;else if("source"!==e.kind){var a=e.interpolationType,i=e.minZoom,o=e.maxZoom,s=a?d(_n.interpolationFactor(a,t,i,o),0,1):0;"camera"===e.kind?r=nn(e.minSize,e.maxSize,s):n=s}return{uSizeT:n,uSize:r}}var Sc=Object.freeze({__proto__:null,getSizeData:wc,evaluateSizeForFeature:kc,evaluateSizeForZoom:Tc,SIZE_PACK_FACTOR:Oc});function Cc(e,t,n,r,a){if(void 0===t.segment)return!0;for(var i=t,o=t.segment+1,s=0;s>-n/2;){if(--o<0)return!1;s-=e[o].dist(i),i=e[o]}s+=e[o].dist(e[o+1]),o++;for(var l=[],c=0;s<n/2;){var u=e[o-1],d=e[o],p=e[o+1];if(!p)return!1;var h=u.angleTo(d)-d.angleTo(p);for(h=Math.abs((h+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:h}),c+=h;s-l[0].distance>r;)c-=l.shift().angleDelta;if(c>a)return!1;o++,s+=d.dist(p)}return!0}function Ec(e){for(var t=0,n=0;n<e.length-1;n++)t+=e[n].dist(e[n+1]);return t}function qc(e,t,n){return e?.6*t*n:0}function Dc(e,t){return Math.max(e?e.right-e.left:0,t?t.right-t.left:0)}function Rc(e,t,n,r,a,i){for(var o=qc(n,a,i),s=Dc(n,r)*i,l=0,c=Ec(e)/2,u=0;u<e.length-1;u++){var d=e[u],p=e[u+1],h=d.dist(p);if(l+h>c){var f=(c-l)/h,m=nn(d.x,p.x,f),g=nn(d.y,p.y,f),y=new Ac(m,g,p.angleTo(d),u);return y._round(),!o||Cc(e,y,s,o,t)?y:void 0}l+=h}}function Lc(e,t,n,r,a,i,o,s,l){var c=qc(r,i,o),u=Dc(r,a),d=u*o,p=0===e[0].x||e[0].x===l||0===e[0].y||e[0].y===l;return t-d<t/4&&(t=d+t/4),Ic(e,p?t/2*s%t:(u/2+2*i)*o*s%t,t,c,n,d,p,!1,l)}function Ic(e,t,n,r,a,i,o,s,l){for(var c=i/2,u=Ec(e),d=0,p=t-n,h=[],f=0;f<e.length-1;f++){for(var m=e[f],g=e[f+1],y=m.dist(g),b=g.angleTo(m);p+n<d+y;){var v=((p+=n)-d)/y,M=nn(m.x,g.x,v),x=nn(m.y,g.y,v);if(M>=0&&M<l&&x>=0&&x<l&&p-c>=0&&p+c<=u){var z=new Ac(M,x,b,f);z._round(),(!r||Cc(e,z,i,r,a))&&h.push(z)}}d+=y}return!s&&!h.length&&!o&&(h=Ic(e,d/2,n,r,a,i,o,!0,l)),h}function Wc(e,t,n,r,a){for(var o=[],s=0;s<e.length;s++)for(var l=e[s],c=void 0,u=0;u<l.length-1;u++){var d=l[u],p=l[u+1];d.x<t&&p.x<t||(d.x<t?d=new i(t,d.y+(p.y-d.y)*((t-d.x)/(p.x-d.x)))._round():p.x<t&&(p=new i(t,d.y+(p.y-d.y)*((t-d.x)/(p.x-d.x)))._round()),!(d.y<n&&p.y<n)&&(d.y<n?d=new i(d.x+(p.x-d.x)*((n-d.y)/(p.y-d.y)),n)._round():p.y<n&&(p=new i(d.x+(p.x-d.x)*((n-d.y)/(p.y-d.y)),n)._round()),!(d.x>=r&&p.x>=r)&&(d.x>=r?d=new i(r,d.y+(p.y-d.y)*((r-d.x)/(p.x-d.x)))._round():p.x>=r&&(p=new i(r,d.y+(p.y-d.y)*((r-d.x)/(p.x-d.x)))._round()),!(d.y>=a&&p.y>=a)&&(d.y>=a?d=new i(d.x+(p.x-d.x)*((a-d.y)/(p.y-d.y)),a)._round():p.y>=a&&(p=new i(d.x+(p.x-d.x)*((a-d.y)/(p.y-d.y)),a)._round()),(!c||!d.equals(c[c.length-1]))&&(c=[d],o.push(c)),c.push(p)))))}return o}function Nc(e,t,n,r){var a=[],o=e.image,s=o.pixelRatio,l=o.paddedRect.w-2,c=o.paddedRect.h-2,u=e.right-e.left,d=e.bottom-e.top,p=o.stretchX||[[0,l]],h=o.stretchY||[[0,c]],f=function(e,t){return e+t[1]-t[0]},m=p.reduce(f,0),g=h.reduce(f,0),y=l-m,b=c-g,v=0,M=m,x=0,z=g,_=0,A=y,O=0,w=b;if(o.content&&r){var k=o.content;v=Pc(p,0,k[0]),x=Pc(h,0,k[1]),M=Pc(p,k[0],k[2]),z=Pc(h,k[1],k[3]),_=k[0]-v,O=k[1]-x,A=k[2]-k[0]-M,w=k[3]-k[1]-z}var T=function(r,a,l,c){var p=Fc(r.stretch-v,M,u,e.left),h=jc(r.fixed-_,A,r.stretch,m),f=Fc(a.stretch-x,z,d,e.top),y=jc(a.fixed-O,w,a.stretch,g),b=Fc(l.stretch-v,M,u,e.left),k=jc(l.fixed-_,A,l.stretch,m),T=Fc(c.stretch-x,z,d,e.top),S=jc(c.fixed-O,w,c.stretch,g),C=new i(p,f),E=new i(b,f),q=new i(b,T),D=new i(p,T),R=new i(h/s,y/s),L=new i(k/s,S/s),I=t*Math.PI/180;if(I){var W=Math.sin(I),N=Math.cos(I),P=[N,-W,W,N];C._matMult(P),E._matMult(P),D._matMult(P),q._matMult(P)}var B=r.stretch+r.fixed,F=l.stretch+l.fixed,j=a.stretch+a.fixed,U=c.stretch+c.fixed;return{tl:C,tr:E,bl:D,br:q,tex:{x:o.paddedRect.x+1+B,y:o.paddedRect.y+1+j,w:F-B,h:U-j},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:R,pixelOffsetBR:L,minFontScaleX:A/s/u,minFontScaleY:w/s/d,isSDF:n}};if(r&&(o.stretchX||o.stretchY))for(var S=Bc(p,y,m),C=Bc(h,b,g),E=0;E<S.length-1;E++)for(var q=S[E],D=S[E+1],R=0;R<C.length-1;R++){var L=C[R],I=C[R+1];a.push(T(q,L,D,I))}else a.push(T({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return a}function Pc(e,t,n){for(var r=0,a=0,i=e;a<i.length;a+=1){var o=i[a];r+=Math.max(t,Math.min(n,o[1]))-Math.max(t,Math.min(n,o[0]))}return r}function Bc(e,t,n){for(var r=[{fixed:-1,stretch:0}],a=0,i=e;a<i.length;a+=1){var o=i[a],s=o[0],l=o[1],c=r[r.length-1];r.push({fixed:s-c.stretch,stretch:c.stretch}),r.push({fixed:s-c.stretch,stretch:c.stretch+(l-s)})}return r.push({fixed:t+1,stretch:n}),r}function Fc(e,t,n,r){return e/t*n+r}function jc(e,t,n,r){return e-t*n/r}var Uc=function(e,t,n,r,a,o,s,l,c,u){if(this.boxStartIndex=e.length,c){var d=o.top,p=o.bottom,h=o.collisionPadding;h&&(d-=h[1],p+=h[3]);var f=p-d;f>0&&(f=Math.max(10,f),this.circleDiameter=f)}else{var m=o.top*s-l,g=o.bottom*s+l,y=o.left*s-l,b=o.right*s+l,v=o.collisionPadding;if(v&&(y-=v[0]*s,m-=v[1]*s,b+=v[2]*s,g+=v[3]*s),u){var M=new i(y,m),x=new i(b,m),z=new i(y,g),_=new i(b,g),A=u*Math.PI/180;M._rotate(A),x._rotate(A),z._rotate(A),_._rotate(A),y=Math.min(M.x,x.x,z.x,_.x),b=Math.max(M.x,x.x,z.x,_.x),m=Math.min(M.y,x.y,z.y,_.y),g=Math.max(M.y,x.y,z.y,_.y)}e.emplaceBack(t.x,t.y,y,m,b,g,n,r,a)}this.boxEndIndex=e.length},Vc=function(e,t){if(void 0===e&&(e=[]),void 0===t&&(t=Hc),this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(var n=(this.length>>1)-1;n>=0;n--)this._down(n)};function Hc(e,t){return e<t?-1:e>t?1:0}function Xc(e,t,n){void 0===t&&(t=1),void 0===n&&(n=!1);for(var r=1/0,a=1/0,o=-1/0,s=-1/0,l=e[0],c=0;c<l.length;c++){var u=l[c];(!c||u.x<r)&&(r=u.x),(!c||u.y<a)&&(a=u.y),(!c||u.x>o)&&(o=u.x),(!c||u.y>s)&&(s=u.y)}var d=o-r,p=s-a,h=Math.min(d,p),f=h/2,m=new Vc([],Gc);if(0===h)return new i(r,a);for(var g=r;g<o;g+=h)for(var y=a;y<s;y+=h)m.push(new Yc(g+f,y+f,f,e));var b=function(e){for(var t=0,n=0,r=0,a=e[0],i=0,o=a.length,s=o-1;i<o;s=i++){var l=a[i],c=a[s],u=l.x*c.y-c.x*l.y;n+=(l.x+c.x)*u,r+=(l.y+c.y)*u,t+=3*u}return new Yc(n/t,r/t,0,e)}(e);for(m.length;m.length;){var v=m.pop();(v.d>b.d||!b.d)&&(b=v,n&&Math.round(1e4*v.d)),!(v.max-b.d<=t)&&(f=v.h/2,m.push(new Yc(v.p.x-f,v.p.y-f,f,e)),m.push(new Yc(v.p.x+f,v.p.y-f,f,e)),m.push(new Yc(v.p.x-f,v.p.y+f,f,e)),m.push(new Yc(v.p.x+f,v.p.y+f,f,e)))}return n&&b.d,b.p}function Gc(e,t){return t.max-e.max}function Yc(e,t,n,r){this.p=new i(e,t),this.h=n,this.d=function(e,t){for(var n=!1,r=1/0,a=0;a<t.length;a++)for(var i=t[a],o=0,s=i.length,l=s-1;o<s;l=o++){var c=i[o],u=i[l];c.y>e.y!=u.y>e.y&&e.x<(u.x-c.x)*(e.y-c.y)/(u.y-c.y)+c.x&&(n=!n),r=Math.min(r,Eo(e,c,u))}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}Vc.prototype.push=function(e){this.data.push(e),this.length++,this._up(this.length-1)},Vc.prototype.pop=function(){if(0!==this.length){var e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}},Vc.prototype.peek=function(){return this.data[0]},Vc.prototype._up=function(e){for(var t=this.data,n=this.compare,r=t[e];e>0;){var a=e-1>>1,i=t[a];if(n(r,i)>=0)break;t[e]=i,e=a}t[e]=r},Vc.prototype._down=function(e){for(var t=this.data,n=this.compare,r=this.length>>1,a=t[e];e<r;){var i=1+(e<<1),o=t[i],s=i+1;if(s<this.length&&n(t[s],o)<0&&(i=s,o=t[s]),n(o,a)>=0)break;t[e]=o,e=i}t[e]=a};var Zc=Number.POSITIVE_INFINITY;function $c(e,t){return t[1]!==Zc?function(e,t,n){var r=0,a=0;switch(t=Math.abs(t),n=Math.abs(n),e){case"top-right":case"top-left":case"top":a=n-7;break;case"bottom-right":case"bottom-left":case"bottom":a=7-n}switch(e){case"top-right":case"bottom-right":case"right":r=-t;break;case"top-left":case"bottom-left":case"left":r=t}return[r,a]}(e,t[0],t[1]):function(e,t){var n=0,r=0;t<0&&(t=0);var a=t/Math.sqrt(2);switch(e){case"top-right":case"top-left":r=a-7;break;case"bottom-right":case"bottom-left":r=7-a;break;case"bottom":r=7-t;break;case"top":r=t-7}switch(e){case"top-right":case"bottom-right":n=-a;break;case"top-left":case"bottom-left":n=a;break;case"left":n=t;break;case"right":n=-t}return[n,r]}(e,t[0])}function Jc(e){switch(e){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}var Qc=255,Kc=Qc*Oc;function eu(e,t,n,r,a,o,s,l,c,u,d,p,h,f,m){var g=function(e,t,n,r,a,o,s,l){for(var c=r.layout.get("text-rotate").evaluate(o,{})*Math.PI/180,u=[],d=0,p=t.positionedLines;d<p.length;d+=1)for(var h=p[d],f=0,m=h.positionedGlyphs;f<m.length;f+=1){var g=m[f];if(g.rect){var y=g.rect||{},b=4,v=!0,M=1,x=0,z=(a||l)&&g.vertical,_=g.metrics.advance*g.scale/2;if(l&&t.verticalizable){var A=(g.scale-1)*Dl,O=(Dl-g.metrics.width*g.scale)/2;x=h.lineOffset/2-(g.imageName?-O:A)}if(g.imageName){var w=s[g.imageName];v=w.sdf,b=1/(M=w.pixelRatio)}var k=a?[g.x+_,g.y]:[0,0],T=a?[0,0]:[g.x+_+n[0],g.y+n[1]-x],S=[0,0];z&&(S=T,T=[0,0]);var C=(g.metrics.left-b)*g.scale-_+T[0],E=(-g.metrics.top-b)*g.scale+T[1],q=C+y.w*g.scale/M,D=E+y.h*g.scale/M,R=new i(C,E),L=new i(q,E),I=new i(C,D),W=new i(q,D);if(z){var N=new i(-_,_-cc),P=-Math.PI/2,B=12-_,F=g.imageName?B:0,j=new i(22-B,-F),U=new(Function.prototype.bind.apply(i,[null].concat(S)));R._rotateAround(P,N)._add(j)._add(U),L._rotateAround(P,N)._add(j)._add(U),I._rotateAround(P,N)._add(j)._add(U),W._rotateAround(P,N)._add(j)._add(U)}if(c){var V=Math.sin(c),H=Math.cos(c),X=[H,-V,V,H];R._matMult(X),L._matMult(X),I._matMult(X),W._matMult(X)}var G=new i(0,0),Y=new i(0,0);u.push({tl:R,tr:L,bl:I,br:W,tex:y,writingMode:t.writingMode,glyphOffset:k,sectionIndex:g.sectionIndex,isSDF:v,pixelOffsetTL:G,pixelOffsetBR:Y,minFontScaleX:0,minFontScaleY:0})}}return u}(0,n,l,a,o,s,r,e.allowVerticalPlacement),y=e.textSizeData,b=null;"source"===y.kind?(b=[Oc*a.layout.get("text-size").evaluate(s,{})])[0]>Kc&&A(e.layerIds[0]+': Value for "text-size" is >= '+Qc+'. Reduce your "text-size".'):"composite"===y.kind&&((b=[Oc*f.compositeTextSizes[0].evaluate(s,{},m),Oc*f.compositeTextSizes[1].evaluate(s,{},m)])[0]>Kc||b[1]>Kc)&&A(e.layerIds[0]+': Value for "text-size" is >= '+Qc+'. Reduce your "text-size".'),e.addSymbols(e.text,g,b,l,o,s,u,t,c.lineStartIndex,c.lineLength,h,m);for(var v=0,M=d;v<M.length;v+=1)p[M[v]]=e.text.placedSymbolArray.length-1;return 4*g.length}function tu(e){for(var t in e)return e[t];return null}function nu(e,t,n,r){var a=e.compareText;if(t in a){for(var i=a[t],o=i.length-1;o>=0;o--)if(r.dist(i[o])<n)return!0}else a[t]=[];return a[t].push(r),!1}var ru=rl.VectorTileFeature.types,au=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function iu(e,t,n,r,a,i,o,s,l,c,u,d,p){var h=s?Math.min(Kc,Math.round(s[0])):0,f=s?Math.min(Kc,Math.round(s[1])):0;e.emplaceBack(t,n,Math.round(32*r),Math.round(32*a),i,o,(h<<1)+(l?1:0),f,16*c,16*u,256*d,256*p)}function ou(e,t,n){e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n)}function su(e){for(var t=0,n=e.sections;t<n.length;t+=1)if(za(n[t].text))return!0;return!1}var lu=function(e){this.layoutVertexArray=new di,this.indexArray=new bi,this.programConfigurations=e,this.segments=new Ni,this.dynamicLayoutVertexArray=new pi,this.opacityVertexArray=new hi,this.placedSymbolArray=new Ci};lu.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length},lu.prototype.upload=function(e,t,n,r){this.isEmpty()||(n&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,wl.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,kl.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,au,!0),this.opacityVertexBuffer.itemSize=1),(n||r)&&this.programConfigurations.upload(e))},lu.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},oa("SymbolBuffers",lu);var cu=function(e,t,n){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new n,this.segments=new Ni,this.collisionVertexArray=new yi};cu.prototype.upload=function(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,Tl.members,!0)},cu.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},oa("CollisionBuffers",cu);var uu=function(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(function(e){return e.id}),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Fo([]),this.placementViewportMatrix=Fo([]);var t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=wc(this.zoom,t["text-size"]),this.iconSizeData=wc(this.zoom,t["icon-size"]);var n=this.layers[0].layout,r=n.get("symbol-sort-key"),a=n.get("symbol-z-order");this.canOverlap=n.get("text-allow-overlap")||n.get("icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==a&&void 0!==r.constantOr(1);var i="viewport-y"===a||"auto"===a&&!this.sortFeaturesByKey;this.sortFeaturesByY=i&&this.canOverlap,"point"===n.get("symbol-placement")&&(this.writingModes=n.get("text-writing-mode").map(function(e){return lc[e]})),this.stateDependentLayerIds=this.layers.filter(function(e){return e.isStateDependent()}).map(function(e){return e.id}),this.sourceID=e.sourceID};uu.prototype.createArrays=function(){this.text=new lu(new fo(this.layers,this.zoom,function(e){return/^text/.test(e)})),this.icon=new lu(new fo(this.layers,this.zoom,function(e){return/^icon/.test(e)})),this.glyphOffsetArray=new Di,this.lineVertexArray=new Ri,this.symbolInstances=new qi},uu.prototype.calculateGlyphDependencies=function(e,t,n,r,a){for(var i=0;i<e.length;i++)if(t[e.charCodeAt(i)]=!0,(n||r)&&a){var o=ql[e.charAt(i)];o&&(t[o.charCodeAt(0)]=!0)}},uu.prototype.populate=function(e,t,n){var r=this.layers[0],a=r.layout,i=a.get("text-font"),o=a.get("text-field"),s=a.get("icon-image"),l=("constant"!==o.value.kind||o.value.value instanceof dt&&!o.value.value.isEmpty()||o.value.value.toString().length>0)&&("constant"!==i.value.kind||i.value.value.length>0),c="constant"!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length>0,u=a.get("symbol-sort-key");if(this.features=[],l||c){for(var d=t.iconDependencies,p=t.glyphDependencies,h=t.availableImages,f=new Wa(this.zoom),m=0,g=e;m<g.length;m+=1){var y=g[m],b=y.feature,v=y.id,M=y.index,x=y.sourceLayerIndex,z=r._featureFilter.needGeometry,_=xo(b,z);if(r._featureFilter.filter(f,_,n)){z||(_.geometry=Mo(b));var A=void 0;if(l){var O=r.getValueAndResolveTokens("text-field",_,n,h),w=dt.factory(O);su(w)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===Da()||this.hasRTLText&&La.isParsed())&&(A=El(w,r,_))}var k=void 0;if(c){var T=r.getValueAndResolveTokens("icon-image",_,n,h);k=T instanceof pt?T:pt.fromString(T)}if(A||k){var S=this.sortFeaturesByKey?u.evaluate(_,{},n):void 0,C={id:v,text:A,icon:k,index:M,sourceLayerIndex:x,geometry:_.geometry,properties:b.properties,type:ru[b.type],sortKey:S};if(this.features.push(C),k&&(d[k.name]=!0),A){var E=i.evaluate(_,{},n).join(","),q="map"===a.get("text-rotation-alignment")&&"point"!==a.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(lc.vertical)>=0;for(var D=0,R=A.sections;D<R.length;D+=1){var L=R[D];if(L.image)d[L.image.name]=!0;else{var I=fa(A.toString()),W=L.fontStack||E,N=p[W]=p[W]||{};this.calculateGlyphDependencies(L.text,N,q,this.allowVerticalPlacement,I)}}}}}}"line"===a.get("symbol-placement")&&(this.features=function(e){var t={},n={},r=[],a=0;function i(t){r.push(e[t]),a++}function o(e,t,a){var i=n[e];return delete n[e],n[t]=i,r[i].geometry[0].pop(),r[i].geometry[0]=r[i].geometry[0].concat(a[0]),i}function s(e,n,a){var i=t[n];return delete t[n],t[e]=i,r[i].geometry[0].shift(),r[i].geometry[0]=a[0].concat(r[i].geometry[0]),i}function l(e,t,n){var r=n?t[0][t[0].length-1]:t[0][0];return e+":"+r.x+":"+r.y}for(var c=0;c<e.length;c++){var u=e[c],d=u.geometry,p=u.text?u.text.toString():null;if(p){var h=l(p,d),f=l(p,d,!0);if(h in n&&f in t&&n[h]!==t[f]){var m=s(h,f,d),g=o(h,f,r[m].geometry);delete t[h],delete n[f],n[l(p,r[g].geometry,!0)]=g,r[m].geometry=null}else h in n?o(h,f,d):f in t?s(h,f,d):(i(c),t[h]=a-1,n[f]=a-1)}else i(c)}return r.filter(function(e){return e.geometry})}(this.features)),this.sortFeaturesByKey&&this.features.sort(function(e,t){return e.sortKey-t.sortKey})}},uu.prototype.update=function(e,t,n){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,n),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,n))},uu.prototype.isEmpty=function(){return 0===this.symbolInstances.length&&!this.hasRTLText},uu.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},uu.prototype.upload=function(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},uu.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},uu.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()},uu.prototype.addToLineVertexArray=function(e,t){var n=this.lineVertexArray.length;if(void 0!==e.segment){for(var r=e.dist(t[e.segment+1]),a=e.dist(t[e.segment]),i={},o=e.segment+1;o<t.length;o++)i[o]={x:t[o].x,y:t[o].y,tileUnitDistanceFromAnchor:r},o<t.length-1&&(r+=t[o+1].dist(t[o]));for(var s=e.segment||0;s>=0;s--)i[s]={x:t[s].x,y:t[s].y,tileUnitDistanceFromAnchor:a},s>0&&(a+=t[s-1].dist(t[s]));for(var l=0;l<t.length;l++){var c=i[l];this.lineVertexArray.emplaceBack(c.x,c.y,c.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}},uu.prototype.addSymbols=function(e,t,n,r,a,i,o,s,l,c,u,d){for(var p=e.indexArray,h=e.layoutVertexArray,f=e.segments.prepareSegment(4*t.length,h,p,this.canOverlap?i.sortKey:void 0),m=this.glyphOffsetArray.length,g=f.vertexLength,y=this.allowVerticalPlacement&&o===lc.vertical?Math.PI/2:0,b=i.text&&i.text.sections,v=0;v<t.length;v++){var M=t[v],x=M.tl,z=M.tr,_=M.bl,A=M.br,O=M.tex,w=M.pixelOffsetTL,k=M.pixelOffsetBR,T=M.minFontScaleX,S=M.minFontScaleY,C=M.glyphOffset,E=M.isSDF,q=M.sectionIndex,D=f.vertexLength,R=C[1];iu(h,s.x,s.y,x.x,R+x.y,O.x,O.y,n,E,w.x,w.y,T,S),iu(h,s.x,s.y,z.x,R+z.y,O.x+O.w,O.y,n,E,k.x,w.y,T,S),iu(h,s.x,s.y,_.x,R+_.y,O.x,O.y+O.h,n,E,w.x,k.y,T,S),iu(h,s.x,s.y,A.x,R+A.y,O.x+O.w,O.y+O.h,n,E,k.x,k.y,T,S),ou(e.dynamicLayoutVertexArray,s,y),p.emplaceBack(D,D+1,D+2),p.emplaceBack(D+1,D+2,D+3),f.vertexLength+=4,f.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(C[0]),(v===t.length-1||q!==t[v+1].sectionIndex)&&e.programConfigurations.populatePaintArrays(h.length,i,i.index,{},d,b&&b[q])}e.placedSymbolArray.emplaceBack(s.x,s.y,m,this.glyphOffsetArray.length-m,g,l,c,s.segment,n?n[0]:0,n?n[1]:0,r[0],r[1],o,0,!1,0,u)},uu.prototype._addCollisionDebugVertex=function(e,t,n,r,a,i){return t.emplaceBack(0,0),e.emplaceBack(n.x,n.y,r,a,Math.round(i.x),Math.round(i.y))},uu.prototype.addCollisionDebugVertices=function(e,t,n,r,a,o,s){var l=a.segments.prepareSegment(4,a.layoutVertexArray,a.indexArray),c=l.vertexLength,u=a.layoutVertexArray,d=a.collisionVertexArray,p=s.anchorX,h=s.anchorY;this._addCollisionDebugVertex(u,d,o,p,h,new i(e,t)),this._addCollisionDebugVertex(u,d,o,p,h,new i(n,t)),this._addCollisionDebugVertex(u,d,o,p,h,new i(n,r)),this._addCollisionDebugVertex(u,d,o,p,h,new i(e,r)),l.vertexLength+=4;var f=a.indexArray;f.emplaceBack(c,c+1),f.emplaceBack(c+1,c+2),f.emplaceBack(c+2,c+3),f.emplaceBack(c+3,c),l.primitiveLength+=4},uu.prototype.addDebugCollisionBoxes=function(e,t,n,r){for(var a=e;a<t;a++){var i=this.collisionBoxArray.get(a),o=i.x1,s=i.y1,l=i.x2,c=i.y2;this.addCollisionDebugVertices(o,s,l,c,r?this.textCollisionBox:this.iconCollisionBox,i.anchorPoint,n)}},uu.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new cu(mi,Sl.members,Ai),this.iconCollisionBox=new cu(mi,Sl.members,Ai);for(var e=0;e<this.symbolInstances.length;e++){var t=this.symbolInstances.get(e);this.addDebugCollisionBoxes(t.textBoxStartIndex,t.textBoxEndIndex,t,!0),this.addDebugCollisionBoxes(t.verticalTextBoxStartIndex,t.verticalTextBoxEndIndex,t,!0),this.addDebugCollisionBoxes(t.iconBoxStartIndex,t.iconBoxEndIndex,t,!1),this.addDebugCollisionBoxes(t.verticalIconBoxStartIndex,t.verticalIconBoxEndIndex,t,!1)}},uu.prototype._deserializeCollisionBoxesForSymbol=function(e,t,n,r,a,i,o,s,l){for(var c={},u=t;u<n;u++){var d=e.get(u);c.textBox={x1:d.x1,y1:d.y1,x2:d.x2,y2:d.y2,anchorPointX:d.anchorPointX,anchorPointY:d.anchorPointY},c.textFeatureIndex=d.featureIndex;break}for(var p=r;p<a;p++){var h=e.get(p);c.verticalTextBox={x1:h.x1,y1:h.y1,x2:h.x2,y2:h.y2,anchorPointX:h.anchorPointX,anchorPointY:h.anchorPointY},c.verticalTextFeatureIndex=h.featureIndex;break}for(var f=i;f<o;f++){var m=e.get(f);c.iconBox={x1:m.x1,y1:m.y1,x2:m.x2,y2:m.y2,anchorPointX:m.anchorPointX,anchorPointY:m.anchorPointY},c.iconFeatureIndex=m.featureIndex;break}for(var g=s;g<l;g++){var y=e.get(g);c.verticalIconBox={x1:y.x1,y1:y.y1,x2:y.x2,y2:y.y2,anchorPointX:y.anchorPointX,anchorPointY:y.anchorPointY},c.verticalIconFeatureIndex=y.featureIndex;break}return c},uu.prototype.deserializeCollisionBoxes=function(e){this.collisionArrays=[];for(var t=0;t<this.symbolInstances.length;t++){var n=this.symbolInstances.get(t);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(e,n.textBoxStartIndex,n.textBoxEndIndex,n.verticalTextBoxStartIndex,n.verticalTextBoxEndIndex,n.iconBoxStartIndex,n.iconBoxEndIndex,n.verticalIconBoxStartIndex,n.verticalIconBoxEndIndex))}},uu.prototype.hasTextData=function(){return this.text.segments.get().length>0},uu.prototype.hasIconData=function(){return this.icon.segments.get().length>0},uu.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},uu.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},uu.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},uu.prototype.addIndicesForPlacedSymbol=function(e,t){for(var n=e.placedSymbolArray.get(t),r=n.vertexStartIndex+4*n.numGlyphs,a=n.vertexStartIndex;a<r;a+=4)e.indexArray.emplaceBack(a,a+1,a+2),e.indexArray.emplaceBack(a+1,a+2,a+3)},uu.prototype.getSortedSymbolIndexes=function(e){if(this.sortedAngle===e&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var t=Math.sin(e),n=Math.cos(e),r=[],a=[],i=[],o=0;o<this.symbolInstances.length;++o){i.push(o);var s=this.symbolInstances.get(o);r.push(0|Math.round(t*s.anchorX+n*s.anchorY)),a.push(s.featureIndex)}return i.sort(function(e,t){return r[e]-r[t]||a[t]-a[e]}),i},uu.prototype.addToSortKeyRanges=function(e,t){var n=this.sortKeyRanges[this.sortKeyRanges.length-1];n&&n.sortKey===t?n.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})},uu.prototype.sortFeatures=function(e){var t=this;if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var n=0,r=this.symbolInstanceIndexes;n<r.length;n+=1){var a=r[n],i=this.symbolInstances.get(a);this.featureSortOrder.push(i.featureIndex),[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach(function(e,n,r){e>=0&&r.indexOf(e)===n&&t.addIndicesForPlacedSymbol(t.text,e)}),i.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,i.verticalPlacedTextSymbolIndex),i.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,i.placedIconSymbolIndex),i.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,i.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},oa("SymbolBucket",uu,{omit:["layers","collisionBoxArray","features","compareText"]}),uu.MAX_GLYPHS=65535,uu.addDynamicAttributes=ou;var du=new Ja({"symbol-placement":new Xa(We.layout_symbol["symbol-placement"]),"symbol-spacing":new Xa(We.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Xa(We.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Ga(We.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Xa(We.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Xa(We.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Xa(We.layout_symbol["icon-ignore-placement"]),"icon-optional":new Xa(We.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Xa(We.layout_symbol["icon-rotation-alignment"]),"icon-size":new Ga(We.layout_symbol["icon-size"]),"icon-text-fit":new Xa(We.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Xa(We.layout_symbol["icon-text-fit-padding"]),"icon-image":new Ga(We.layout_symbol["icon-image"]),"icon-rotate":new Ga(We.layout_symbol["icon-rotate"]),"icon-padding":new Xa(We.layout_symbol["icon-padding"]),"icon-keep-upright":new Xa(We.layout_symbol["icon-keep-upright"]),"icon-offset":new Ga(We.layout_symbol["icon-offset"]),"icon-anchor":new Ga(We.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Xa(We.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Xa(We.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Xa(We.layout_symbol["text-rotation-alignment"]),"text-field":new Ga(We.layout_symbol["text-field"]),"text-font":new Ga(We.layout_symbol["text-font"]),"text-size":new Ga(We.layout_symbol["text-size"]),"text-max-width":new Ga(We.layout_symbol["text-max-width"]),"text-line-height":new Xa(We.layout_symbol["text-line-height"]),"text-letter-spacing":new Ga(We.layout_symbol["text-letter-spacing"]),"text-justify":new Ga(We.layout_symbol["text-justify"]),"text-radial-offset":new Ga(We.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Xa(We.layout_symbol["text-variable-anchor"]),"text-anchor":new Ga(We.layout_symbol["text-anchor"]),"text-max-angle":new Xa(We.layout_symbol["text-max-angle"]),"text-writing-mode":new Xa(We.layout_symbol["text-writing-mode"]),"text-rotate":new Ga(We.layout_symbol["text-rotate"]),"text-padding":new Xa(We.layout_symbol["text-padding"]),"text-keep-upright":new Xa(We.layout_symbol["text-keep-upright"]),"text-transform":new Ga(We.layout_symbol["text-transform"]),"text-offset":new Ga(We.layout_symbol["text-offset"]),"text-allow-overlap":new Xa(We.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Xa(We.layout_symbol["text-ignore-placement"]),"text-optional":new Xa(We.layout_symbol["text-optional"])}),pu=new Ja({"icon-opacity":new Ga(We.paint_symbol["icon-opacity"]),"icon-color":new Ga(We.paint_symbol["icon-color"]),"icon-halo-color":new Ga(We.paint_symbol["icon-halo-color"]),"icon-halo-width":new Ga(We.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Ga(We.paint_symbol["icon-halo-blur"]),"icon-translate":new Xa(We.paint_symbol["icon-translate"]),"icon-translate-anchor":new Xa(We.paint_symbol["icon-translate-anchor"]),"text-opacity":new Ga(We.paint_symbol["text-opacity"]),"text-color":new Ga(We.paint_symbol["text-color"],{runtimeType:Ze,getOverride:function(e){return e.textColor},hasOverride:function(e){return!!e.textColor}}),"text-halo-color":new Ga(We.paint_symbol["text-halo-color"]),"text-halo-width":new Ga(We.paint_symbol["text-halo-width"]),"text-halo-blur":new Ga(We.paint_symbol["text-halo-blur"]),"text-translate":new Xa(We.paint_symbol["text-translate"]),"text-translate-anchor":new Xa(We.paint_symbol["text-translate-anchor"])}),hu={paint:pu,layout:du},fu=function(e){this.type=e.property.overrides?e.property.overrides.runtimeType:He,this.defaultValue=e};fu.prototype.evaluate=function(e){if(e.formattedSection){var t=this.defaultValue.property.overrides;if(t&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default},fu.prototype.eachChild=function(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)},fu.prototype.outputDefined=function(){return!1},fu.prototype.serialize=function(){return null},oa("FormatSectionOverride",fu,{omit:["defaultValue"]});var mu=function(e){function t(t){e.call(this,t,hu)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.recalculate=function(t,n){if(e.prototype.recalculate.call(this,t,n),"auto"===this.layout.get("icon-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var r=this.layout.get("text-writing-mode");if(r){for(var a=[],i=0,o=r;i<o.length;i+=1){var s=o[i];a.indexOf(s)<0&&a.push(s)}this.layout._values["text-writing-mode"]=a}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()},t.prototype.getValueAndResolveTokens=function(e,t,n,r){var a=this.layout.get(e).evaluate(t,{},n,r),i=this._unevaluatedLayout._values[e];return i.isDataDriven()||ur(i.value)||!a?a:function(e,t){return t.replace(/{([^{}]+)}/g,function(t,n){return n in e?String(e[n]):""})}(t.properties,a)},t.prototype.createBucket=function(e){return new uu(e)},t.prototype.queryRadius=function(){return 0},t.prototype.queryIntersectsFeature=function(){return!1},t.prototype._setPaintOverrides=function(){for(var e=0,n=hu.paint.overridableProperties;e<n.length;e+=1){var r=n[e];if(t.hasPaintOverride(this.layout,r)){var a=this.paint.get(r),i=new fu(a),o=new cr(i,a.property.specification),s=null;s="constant"===a.value.kind||"source"===a.value.kind?new pr("source",o):new hr("composite",o,a.value.zoomStops,a.value._interpolationType),this.paint._values[r]=new Va(a.property,s,a.parameters)}}},t.prototype._handleOverridablePaintPropertyUpdate=function(e,n,r){return!(!this.layout||n.isDataDriven()||r.isDataDriven())&&t.hasPaintOverride(this.layout,e)},t.hasPaintOverride=function(e,t){var n=e.get("text-field"),r=hu.paint.properties[t],a=!1,i=function(e){for(var t=0,n=e;t<n.length;t+=1){var i=n[t];if(r.overrides&&r.overrides.hasOverride(i))return void(a=!0)}};if("constant"===n.value.kind&&n.value.value instanceof dt)i(n.value.value.sections);else if("source"===n.value.kind){var o=function(e){if(!a)if(e instanceof yt&&mt(e.value)===Ke){var t=e.value;i(t.sections)}else e instanceof xt?i(e.sections):e.eachChild(o)},s=n.value;s._styleExpression&&o(s._styleExpression.expression)}return a},t}(Ka),gu={paint:new Ja({"background-color":new Xa(We.paint_background["background-color"]),"background-pattern":new Za(We.paint_background["background-pattern"]),"background-opacity":new Xa(We.paint_background["background-opacity"])})},yu=function(e){function t(t){e.call(this,t,gu)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Ka),bu={paint:new Ja({"raster-opacity":new Xa(We.paint_raster["raster-opacity"]),"raster-hue-rotate":new Xa(We.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Xa(We.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Xa(We.paint_raster["raster-brightness-max"]),"raster-saturation":new Xa(We.paint_raster["raster-saturation"]),"raster-contrast":new Xa(We.paint_raster["raster-contrast"]),"raster-resampling":new Xa(We.paint_raster["raster-resampling"]),"raster-fade-duration":new Xa(We.paint_raster["raster-fade-duration"])})},vu=function(e){function t(t){e.call(this,t,bu)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Ka),Mu=function(e){function t(t){e.call(this,t,{}),this.implementation=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.is3D=function(){return"3d"===this.implementation.renderingMode},t.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},t.prototype.recalculate=function(){},t.prototype.updateTransitions=function(){},t.prototype.hasTransition=function(){},t.prototype.serialize=function(){},t.prototype.onAdd=function(e){this.implementation.onAdd&&this.implementation.onAdd(e,e.painter.context.gl)},t.prototype.onRemove=function(e){this.implementation.onRemove&&this.implementation.onRemove(e,e.painter.context.gl)},t}(Ka),xu={circle:Go,heatmap:rs,hillshade:is,fill:Xs,"fill-extrusion":dl,line:Al,symbol:mu,background:yu,raster:vu},zu=s.HTMLImageElement,_u=s.HTMLCanvasElement,Au=s.HTMLVideoElement,Ou=s.ImageData,wu=s.ImageBitmap,ku=function(e,t,n,r){this.context=e,this.format=n,this.texture=e.gl.createTexture(),this.update(t,r)};ku.prototype.update=function(e,t,n){var r=e.width,a=e.height,i=!(this.size&&this.size[0]===r&&this.size[1]===a||n),o=this.context,s=o.gl;if(this.useMipmap=!(!t||!t.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1),o.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&&(!t||!1!==t.premultiply)),i)this.size=[r,a],e instanceof zu||e instanceof _u||e instanceof Au||e instanceof Ou||wu&&e instanceof wu?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,e):s.texImage2D(s.TEXTURE_2D,0,this.format,r,a,0,this.format,s.UNSIGNED_BYTE,e.data);else{var l=n||{x:0,y:0},c=l.x,u=l.y;e instanceof zu||e instanceof _u||e instanceof Au||e instanceof Ou||wu&&e instanceof wu?s.texSubImage2D(s.TEXTURE_2D,0,c,u,s.RGBA,s.UNSIGNED_BYTE,e):s.texSubImage2D(s.TEXTURE_2D,0,c,u,r,a,s.RGBA,s.UNSIGNED_BYTE,e.data)}this.useMipmap&&this.isSizePowerOfTwo()&&s.generateMipmap(s.TEXTURE_2D)},ku.prototype.bind=function(e,t,n){var r=this.context.gl;r.bindTexture(r.TEXTURE_2D,this.texture),n===r.LINEAR_MIPMAP_NEAREST&&!this.isSizePowerOfTwo()&&(n=r.LINEAR),e!==this.filter&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,e),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,n||e),this.filter=e),t!==this.wrap&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,t),this.wrap=t)},ku.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0},ku.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var Tu=function(e){var t=this;this._callback=e,this._triggered=!1,typeof MessageChannel<"u"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){t._triggered=!1,t._callback()})};Tu.prototype.trigger=function(){var e=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(function(){e._triggered=!1,e._callback()},0))},Tu.prototype.remove=function(){delete this._channel,this._callback=function(){}};var Su=function(e,t,n){this.target=e,this.parent=t,this.mapId=n,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},b(["receive","process"],this),this.invoker=new Tu(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=k()?e:s};function Cu(e,t,n){var r=2*Math.PI*6378137/256/Math.pow(2,n);return[e*r-2*Math.PI*6378137/2,t*r-2*Math.PI*6378137/2]}Su.prototype.send=function(e,t,n,r,a){var i=this;void 0===a&&(a=!1);var o=Math.round(1e18*Math.random()).toString(36).substring(0,10);n&&(this.callbacks[o]=n);var s=C(this.globalScope)?void 0:[];return this.target.postMessage({id:o,type:e,hasCallback:!!n,targetMapId:r,mustQueue:a,sourceMapId:this.mapId,data:ua(t,s)},s),{cancel:function(){n&&delete i.callbacks[o],i.target.postMessage({id:o,type:"<cancel>",targetMapId:r,sourceMapId:i.mapId})}}},Su.prototype.receive=function(e){var t=e.data,n=t.id;if(n&&(!t.targetMapId||this.mapId===t.targetMapId))if("<cancel>"===t.type){delete this.tasks[n];var r=this.cancelCallbacks[n];delete this.cancelCallbacks[n],r&&r()}else k()||t.mustQueue?(this.tasks[n]=t,this.taskQueue.push(n),this.invoker.trigger()):this.processTask(n,t)},Su.prototype.process=function(){if(this.taskQueue.length){var e=this.taskQueue.shift(),t=this.tasks[e];delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),t&&this.processTask(e,t)}},Su.prototype.processTask=function(e,t){var n=this;if("<response>"===t.type){var r=this.callbacks[e];delete this.callbacks[e],r&&(t.error?r(da(t.error)):r(null,da(t.data)))}else{var a=!1,i=C(this.globalScope)?void 0:[],o=t.hasCallback?function(t,r){a=!0,delete n.cancelCallbacks[e],n.target.postMessage({id:e,type:"<response>",sourceMapId:n.mapId,error:t?ua(t):null,data:ua(r,i)},i)}:function(e){a=!0},s=null,l=da(t.data);if(this.parent[t.type])s=this.parent[t.type](t.sourceMapId,l,o);else if(this.parent.getWorkerSource){var c=t.type.split(".");s=this.parent.getWorkerSource(t.sourceMapId,c[0],l.source)[c[1]](l,o)}else o(new Error("Could not find function "+t.type));!a&&s&&s.cancel&&(this.cancelCallbacks[e]=s.cancel)}},Su.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Eu=function(e,t){e&&(t?this.setSouthWest(e).setNorthEast(t):4===e.length?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1]))};Eu.prototype.setNorthEast=function(e){return this._ne=e instanceof Du?new Du(e.lng,e.lat):Du.convert(e),this},Eu.prototype.setSouthWest=function(e){return this._sw=e instanceof Du?new Du(e.lng,e.lat):Du.convert(e),this},Eu.prototype.extend=function(e){var t,n,r=this._sw,a=this._ne;if(e instanceof Du)t=e,n=e;else{if(!(e instanceof Eu)){if(Array.isArray(e)){if(4===e.length||e.every(Array.isArray)){var i=e;return this.extend(Eu.convert(i))}var o=e;return this.extend(Du.convert(o))}return this}if(t=e._sw,n=e._ne,!t||!n)return this}return r||a?(r.lng=Math.min(t.lng,r.lng),r.lat=Math.min(t.lat,r.lat),a.lng=Math.max(n.lng,a.lng),a.lat=Math.max(n.lat,a.lat)):(this._sw=new Du(t.lng,t.lat),this._ne=new Du(n.lng,n.lat)),this},Eu.prototype.getCenter=function(){return new Du((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Eu.prototype.getSouthWest=function(){return this._sw},Eu.prototype.getNorthEast=function(){return this._ne},Eu.prototype.getNorthWest=function(){return new Du(this.getWest(),this.getNorth())},Eu.prototype.getSouthEast=function(){return new Du(this.getEast(),this.getSouth())},Eu.prototype.getWest=function(){return this._sw.lng},Eu.prototype.getSouth=function(){return this._sw.lat},Eu.prototype.getEast=function(){return this._ne.lng},Eu.prototype.getNorth=function(){return this._ne.lat},Eu.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Eu.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Eu.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Eu.prototype.contains=function(e){var t=Du.convert(e),n=t.lng,r=t.lat,a=this._sw.lat<=r&&r<=this._ne.lat,i=this._sw.lng<=n&&n<=this._ne.lng;return this._sw.lng>this._ne.lng&&(i=this._sw.lng>=n&&n>=this._ne.lng),a&&i},Eu.convert=function(e){return!e||e instanceof Eu?e:new Eu(e)};var qu=6371008.8,Du=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid LngLat object: ("+e+", "+t+")");if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Du.prototype.wrap=function(){return new Du(p(this.lng,-180,180),this.lat)},Du.prototype.toArray=function(){return[this.lng,this.lat]},Du.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Du.prototype.distanceTo=function(e){var t=Math.PI/180,n=this.lat*t,r=e.lat*t,a=Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((e.lng-this.lng)*t);return qu*Math.acos(Math.min(a,1))},Du.prototype.toBounds=function(e){void 0===e&&(e=0);var t=360*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return new Eu(new Du(this.lng-n,this.lat-t),new Du(this.lng+n,this.lat+t))},Du.convert=function(e){if(e instanceof Du)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new Du(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new Du(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")};var Ru=2*Math.PI*qu;function Lu(e){return Ru*Math.cos(e*Math.PI/180)}function Iu(e){return(180+e)/360}function Wu(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function Nu(e,t){return e/Lu(t)}function Pu(e){var t=180-360*e;return 360/Math.PI*Math.atan(Math.exp(t*Math.PI/180))-90}var Bu=function(e,t,n){void 0===n&&(n=0),this.x=+e,this.y=+t,this.z=+n};Bu.fromLngLat=function(e,t){void 0===t&&(t=0);var n=Du.convert(e);return new Bu(Iu(n.lng),Wu(n.lat),Nu(t,n.lat))},Bu.prototype.toLngLat=function(){return new Du(function(e){return 360*e-180}(this.x),Pu(this.y))},Bu.prototype.toAltitude=function(){return function(e,t){return e*Lu(Pu(t))}(this.z,this.y)},Bu.prototype.meterInMercatorCoordinateUnits=function(){return 1/Ru*function(e){return 1/Math.cos(e*Math.PI/180)}(Pu(this.y))};var Fu=function(e,t,n){this.z=e,this.x=t,this.y=n,this.key=Vu(0,e,e,t,n)};Fu.prototype.equals=function(e){return this.z===e.z&&this.x===e.x&&this.y===e.y},Fu.prototype.url=function(e,t){var n=function(e,t,n){var r=Cu(256*e,256*(t=Math.pow(2,n)-t-1),n),a=Cu(256*(e+1),256*(t+1),n);return r[0]+","+r[1]+","+a[0]+","+a[1]}(this.x,this.y,this.z),r=function(e,t,n){for(var r,a="",i=e;i>0;i--)a+=(t&(r=1<<i-1)?1:0)+(n&r?2:0);return a}(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===t?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",r).replace("{bbox-epsg-3857}",n)},Fu.prototype.getTilePoint=function(e){var t=Math.pow(2,this.z);return new i((e.x*t-this.x)*yo,(e.y*t-this.y)*yo)},Fu.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var ju=function(e,t){this.wrap=e,this.canonical=t,this.key=Vu(e,t.z,t.z,t.x,t.y)},Uu=function(e,t,n,r,a){this.overscaledZ=e,this.wrap=t,this.canonical=new Fu(n,+r,+a),this.key=Vu(t,e,n,r,a)};function Vu(e,t,n,r,a){(e*=2)<0&&(e=-1*e-1);var i=1<<n;return(i*i*e+i*a+r).toString(36)+n.toString(36)+t.toString(36)}Uu.prototype.equals=function(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)},Uu.prototype.scaledTo=function(e){var t=this.canonical.z-e;return e>this.canonical.z?new Uu(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Uu(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)},Uu.prototype.calculateScaledKey=function(e,t){var n=this.canonical.z-e;return e>this.canonical.z?Vu(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y):Vu(this.wrap*+t,e,e,this.canonical.x>>n,this.canonical.y>>n)},Uu.prototype.isChildOf=function(e){if(e.wrap!==this.wrap)return!1;var t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ<this.overscaledZ&&e.canonical.x===this.canonical.x>>t&&e.canonical.y===this.canonical.y>>t},Uu.prototype.children=function(e){if(this.overscaledZ>=e)return[new Uu(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var t=this.canonical.z+1,n=2*this.canonical.x,r=2*this.canonical.y;return[new Uu(t,this.wrap,t,n,r),new Uu(t,this.wrap,t,n+1,r),new Uu(t,this.wrap,t,n,r+1),new Uu(t,this.wrap,t,n+1,r+1)]},Uu.prototype.isLessThan=function(e){return this.wrap<e.wrap||!(this.wrap>e.wrap)&&(this.overscaledZ<e.overscaledZ||!(this.overscaledZ>e.overscaledZ)&&(this.canonical.x<e.canonical.x||!(this.canonical.x>e.canonical.x)&&this.canonical.y<e.canonical.y))},Uu.prototype.wrapped=function(){return new Uu(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},Uu.prototype.unwrapTo=function(e){return new Uu(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)},Uu.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},Uu.prototype.toUnwrapped=function(){return new ju(this.wrap,this.canonical)},Uu.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},Uu.prototype.getTilePoint=function(e){return this.canonical.getTilePoint(new Bu(e.x-this.wrap,e.y))},oa("CanonicalTileID",Fu),oa("OverscaledTileID",Uu,{omit:["posMatrix"]});var Hu=function(e,t,n){if(this.uid=e,t.height!==t.width)throw new RangeError("DEM tiles must be square");if(n&&"mapbox"!==n&&"terrarium"!==n)return A('"'+n+'" is not a valid encoding type. Valid types include "mapbox" and "terrarium".');this.stride=t.height;var r=this.dim=t.height-2;this.data=new Uint32Array(t.data.buffer),this.encoding=n||"mapbox";for(var a=0;a<r;a++)this.data[this._idx(-1,a)]=this.data[this._idx(0,a)],this.data[this._idx(r,a)]=this.data[this._idx(r-1,a)],this.data[this._idx(a,-1)]=this.data[this._idx(a,0)],this.data[this._idx(a,r)]=this.data[this._idx(a,r-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(r,-1)]=this.data[this._idx(r-1,0)],this.data[this._idx(-1,r)]=this.data[this._idx(0,r-1)],this.data[this._idx(r,r)]=this.data[this._idx(r-1,r-1)]};Hu.prototype.get=function(e,t){var n=new Uint8Array(this.data.buffer),r=4*this._idx(e,t);return("terrarium"===this.encoding?this._unpackTerrarium:this._unpackMapbox)(n[r],n[r+1],n[r+2])},Hu.prototype.getUnpackVector=function(){return"terrarium"===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},Hu.prototype._idx=function(e,t){if(e<-1||e>=this.dim+1||t<-1||t>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(t+1)*this.stride+(e+1)},Hu.prototype._unpackMapbox=function(e,t,n){return(256*e*256+256*t+n)/10-1e4},Hu.prototype._unpackTerrarium=function(e,t,n){return 256*e+t+n/256-32768},Hu.prototype.getPixels=function(){return new es({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Hu.prototype.backfillBorder=function(e,t,n){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");var r=t*this.dim,a=t*this.dim+this.dim,i=n*this.dim,o=n*this.dim+this.dim;switch(t){case-1:r=a-1;break;case 1:a=r+1}switch(n){case-1:i=o-1;break;case 1:o=i+1}for(var s=-t*this.dim,l=-n*this.dim,c=i;c<o;c++)for(var u=r;u<a;u++)this.data[this._idx(u,c)]=e.data[this._idx(u+s,c+l)]},oa("DEMData",Hu);var Xu=function(e){this._stringToNumber={},this._numberToString=[];for(var t=0;t<e.length;t++){var n=e[t];this._stringToNumber[n]=t,this._numberToString[t]=n}};Xu.prototype.encode=function(e){return this._stringToNumber[e]},Xu.prototype.decode=function(e){return this._numberToString[e]};var Gu=function(e,t,n,r,a){this.type="Feature",this._vectorTileFeature=e,e._z=t,e._x=n,e._y=r,this.properties=e.properties,this.id=a},Yu={geometry:{configurable:!0}};Yu.geometry.get=function(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},Yu.geometry.set=function(e){this._geometry=e},Gu.prototype.toJSON=function(){var e={geometry:this.geometry};for(var t in this)"_geometry"===t||"_vectorTileFeature"===t||(e[t]=this[t]);return e},Object.defineProperties(Gu.prototype,Yu);var Zu=function(){this.state={},this.stateChanges={},this.deletedStates={}};Zu.prototype.updateState=function(e,t,n){var r=String(t);if(this.stateChanges[e]=this.stateChanges[e]||{},this.stateChanges[e][r]=this.stateChanges[e][r]||{},h(this.stateChanges[e][r],n),null===this.deletedStates[e])for(var a in this.deletedStates[e]={},this.state[e])a!==r&&(this.deletedStates[e][a]=null);else if(this.deletedStates[e]&&null===this.deletedStates[e][r])for(var i in this.deletedStates[e][r]={},this.state[e][r])n[i]||(this.deletedStates[e][r][i]=null);else for(var o in n)this.deletedStates[e]&&this.deletedStates[e][r]&&null===this.deletedStates[e][r][o]&&delete this.deletedStates[e][r][o]},Zu.prototype.removeFeatureState=function(e,t,n){if(null!==this.deletedStates[e]){var r=String(t);if(this.deletedStates[e]=this.deletedStates[e]||{},n&&void 0!==t)null!==this.deletedStates[e][r]&&(this.deletedStates[e][r]=this.deletedStates[e][r]||{},this.deletedStates[e][r][n]=null);else if(void 0!==t)if(this.stateChanges[e]&&this.stateChanges[e][r])for(n in this.deletedStates[e][r]={},this.stateChanges[e][r])this.deletedStates[e][r][n]=null;else this.deletedStates[e][r]=null;else this.deletedStates[e]=null}},Zu.prototype.getState=function(e,t){var n=String(t),r=this.state[e]||{},a=this.stateChanges[e]||{},i=h({},r[n],a[n]);if(null===this.deletedStates[e])return{};if(this.deletedStates[e]){var o=this.deletedStates[e][t];if(null===o)return{};for(var s in o)delete i[s]}return i},Zu.prototype.initializeTileState=function(e,t){e.setFeatureState(this.state,t)},Zu.prototype.coalesceChanges=function(e,t){var n={};for(var r in this.stateChanges){this.state[r]=this.state[r]||{};var a={};for(var i in this.stateChanges[r])this.state[r][i]||(this.state[r][i]={}),h(this.state[r][i],this.stateChanges[r][i]),a[i]=this.state[r][i];n[r]=a}for(var o in this.deletedStates){this.state[o]=this.state[o]||{};var s={};if(null===this.deletedStates[o])for(var l in this.state[o])s[l]={},this.state[o][l]={};else for(var c in this.deletedStates[o]){if(null===this.deletedStates[o][c])this.state[o][c]={};else for(var u=0,d=Object.keys(this.deletedStates[o][c]);u<d.length;u+=1){var p=d[u];delete this.state[o][c][p]}s[c]=this.state[o][c]}n[o]=n[o]||{},h(n[o],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(var f in e)e[f].setFeatureState(n,t)};var $u=function(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new ea(yo,16,0),this.grid3D=new ea(yo,16,0),this.featureIndexArray=new Ii,this.promoteId=t};function Ju(e,t,n,r,a){return M(e,function(e,i){var o=t instanceof Ha?t.get(i):null;return o&&o.evaluate?o.evaluate(n,r,a):o})}function Qu(e){for(var t=1/0,n=1/0,r=-1/0,a=-1/0,i=0,o=e;i<o.length;i+=1){var s=o[i];t=Math.min(t,s.x),n=Math.min(n,s.y),r=Math.max(r,s.x),a=Math.max(a,s.y)}return{minX:t,minY:n,maxX:r,maxY:a}}function Ku(e,t){return t-e}$u.prototype.insert=function(e,t,n,r,a,i){var o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,r,a);for(var s=i?this.grid3D:this.grid,l=0;l<t.length;l++){for(var c=t[l],u=[1/0,1/0,-1/0,-1/0],d=0;d<c.length;d++){var p=c[d];u[0]=Math.min(u[0],p.x),u[1]=Math.min(u[1],p.y),u[2]=Math.max(u[2],p.x),u[3]=Math.max(u[3],p.y)}u[0]<yo&&u[1]<yo&&u[2]>=0&&u[3]>=0&&s.insert(o,u[0],u[1],u[2],u[3])}},$u.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new rl.VectorTile(new Il(this.rawTileData)).layers,this.sourceLayerCoder=new Xu(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},$u.prototype.query=function(e,t,n,r){var a=this;this.loadVTLayers();for(var o=e.params||{},s=yo/e.tileSize/e.scale,l=Or(o.filter),c=e.queryGeometry,u=e.queryPadding*s,d=Qu(c),p=this.grid.query(d.minX-u,d.minY-u,d.maxX+u,d.maxY+u),h=Qu(e.cameraQueryGeometry),f=this.grid3D.query(h.minX-u,h.minY-u,h.maxX+u,h.maxY+u,function(t,n,r,a){return function(e,t,n,r,a){for(var o=0,s=e;o<s.length;o+=1){var l=s[o];if(t<=l.x&&n<=l.y&&r>=l.x&&a>=l.y)return!0}var c=[new i(t,n),new i(t,a),new i(r,a),new i(r,n)];if(e.length>2)for(var u=0,d=c;u<d.length;u+=1)if(Do(e,d[u]))return!0;for(var p=0;p<e.length-1;p++)if(Ro(e[p],e[p+1],c))return!0;return!1}(e.cameraQueryGeometry,t-u,n-u,r+u,a+u)}),m=0,g=f;m<g.length;m+=1){var y=g[m];p.push(y)}p.sort(Ku);for(var b,v={},M=function(i){var u=p[i];if(u!==b){b=u;var d=a.featureIndexArray.get(u),h=null;a.loadMatchingFeature(v,d.bucketIndex,d.sourceLayerIndex,d.featureIndex,l,o.layers,o.availableImages,t,n,r,function(t,n,r){return h||(h=Mo(t)),n.queryIntersectsFeature(c,t,r,h,a.z,e.transform,s,e.pixelPosMatrix)})}},x=0;x<p.length;x++)M(x);return v},$u.prototype.loadMatchingFeature=function(e,t,n,r,a,i,o,s,l,c,u){var d=this.bucketLayerIDs[t];if(!i||function(e,t){for(var n=0;n<e.length;n++)if(t.indexOf(e[n])>=0)return!0;return!1}(i,d)){var p=this.sourceLayerCoder.decode(n),f=this.vtLayers[p].feature(r);if(a.needGeometry){var m=xo(f,!0);if(!a.filter(new Wa(this.tileID.overscaledZ),m,this.tileID.canonical))return}else if(!a.filter(new Wa(this.tileID.overscaledZ),f))return;for(var g=this.getId(f,p),y=0;y<d.length;y++){var b=d[y];if(!(i&&i.indexOf(b)<0)){var v=s[b];if(v){var M={};void 0!==g&&c&&(M=c.getState(v.sourceLayer||"_geojsonTileLayer",g));var x=h({},l[b]);x.paint=Ju(x.paint,v.paint,f,M,o),x.layout=Ju(x.layout,v.layout,f,M,o);var z=!u||u(f,v,M);if(z){var _=new Gu(f,this.z,this.x,this.y,g);_.layer=x;var A=e[b];void 0===A&&(A=e[b]=[]),A.push({featureIndex:r,feature:_,intersectionZ:z})}}}}}},$u.prototype.lookupSymbolFeatures=function(e,t,n,r,a,i,o,s){var l={};this.loadVTLayers();for(var c=Or(a),u=0,d=e;u<d.length;u+=1){var p=d[u];this.loadMatchingFeature(l,n,r,p,c,i,o,s,t)}return l},$u.prototype.hasLayer=function(e){for(var t=0,n=this.bucketLayerIDs;t<n.length;t+=1)for(var r=0,a=n[t];r<a.length;r+=1)if(e===a[r])return!0;return!1},$u.prototype.getId=function(e,t){var n=e.id;if(this.promoteId){var r="string"==typeof this.promoteId?this.promoteId:this.promoteId[t];"boolean"==typeof(n=e.properties[r])&&(n=Number(n))}return n},oa("FeatureIndex",$u,{omit:["rawTileData","sourceLayerCoder"]});var ed=function(e,t){this.tileID=e,this.uid=m(),this.uses=0,this.tileSize=t,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state="loading"};ed.prototype.registerFadeDuration=function(e){var t=e+this.timeAdded;t<P.now()||this.fadeEndTime&&t<this.fadeEndTime||(this.fadeEndTime=t)},ed.prototype.wasRequested=function(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state},ed.prototype.loadVectorData=function(e,t,n){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",e){for(var r in e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestFeatureIndex.rawTileData=e.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=function(e,t){var n={};if(!t)return n;for(var r=function(){var e=i[a],r=e.layerIds.map(function(e){return t.getLayer(e)}).filter(Boolean);if(0!==r.length){e.layers=r,e.stateDependentLayerIds&&(e.stateDependentLayers=e.stateDependentLayerIds.map(function(e){return r.filter(function(t){return t.id===e})[0]}));for(var o=0,s=r;o<s.length;o+=1){var l=s[o];n[l.id]=e}}},a=0,i=e;a<i.length;a+=1)r();return n}(e.buckets,t.style),this.hasSymbolBuckets=!1,this.buckets){var a=this.buckets[r];if(a instanceof uu){if(this.hasSymbolBuckets=!0,!n)break;a.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var i in this.buckets){var o=this.buckets[i];if(o instanceof uu&&o.hasRTLText){this.hasRTLText=!0,Ia();break}}for(var s in this.queryPadding=0,this.buckets){var l=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(s).queryRadius(l))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage)}else this.collisionBoxArray=new Ti},ed.prototype.unloadVectorData=function(){for(var e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"},ed.prototype.getBucket=function(e){return this.buckets[e.id]},ed.prototype.upload=function(e){for(var t in this.buckets){var n=this.buckets[t];n.uploadPending()&&n.upload(e)}var r=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new ku(e,this.imageAtlas.image,r.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new ku(e,this.glyphAtlasImage,r.ALPHA),this.glyphAtlasImage=null)},ed.prototype.prepare=function(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)},ed.prototype.queryRenderedFeatures=function(e,t,n,r,a,i,o,s,l,c){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:r,cameraQueryGeometry:a,scale:i,tileSize:this.tileSize,pixelPosMatrix:c,transform:s,params:o,queryPadding:this.queryPadding*l},e,t,n):{}},ed.prototype.querySourceFeatures=function(e,t){var n=this.latestFeatureIndex;if(n&&n.rawTileData){var r=n.loadVTLayers(),a=t?t.sourceLayer:"",i=r._geojsonTileLayer||r[a];if(i)for(var o=Or(t&&t.filter),s=this.tileID.canonical,l=s.z,c=s.x,u=s.y,d={z:l,x:c,y:u},p=0;p<i.length;p++){var h=i.feature(p);if(o.needGeometry){var f=xo(h,!0);if(!o.filter(new Wa(this.tileID.overscaledZ),f,this.tileID.canonical))continue}else if(!o.filter(new Wa(this.tileID.overscaledZ),h))continue;var m=n.getId(h,a),g=new Gu(h,l,c,u,m);g.tile=d,e.push(g)}}},ed.prototype.hasData=function(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state},ed.prototype.patternsLoaded=function(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length},ed.prototype.setExpiryData=function(e){var t=this.expirationTime;if(e.cacheControl){var n=T(e.cacheControl);n["max-age"]&&(this.expirationTime=Date.now()+1e3*n["max-age"])}else e.expires&&(this.expirationTime=new Date(e.expires).getTime());if(this.expirationTime){var r=Date.now(),a=!1;if(this.expirationTime>r)a=!1;else if(t)if(this.expirationTime<t)a=!0;else{var i=this.expirationTime-t;i?this.expirationTime=r+Math.max(i,3e4):a=!0}else a=!0;a?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}},ed.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},ed.prototype.setFeatureState=function(e,t){if(this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData&&0!==Object.keys(e).length){var n=this.latestFeatureIndex.loadVTLayers();for(var r in this.buckets)if(t.style.hasLayer(r)){var a=this.buckets[r],i=a.layers[0].sourceLayer||"_geojsonTileLayer",o=n[i],s=e[i];if(o&&s&&0!==Object.keys(s).length){a.update(s,o,this.imageAtlas&&this.imageAtlas.patternPositions||{});var l=t&&t.style&&t.style.getLayer(r);l&&(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(a)))}}}},ed.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},ed.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<P.now()},ed.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},ed.prototype.setHoldDuration=function(e){this.symbolFadeHoldUntil=P.now()+e},ed.prototype.setDependencies=function(e,t){for(var n={},r=0,a=t;r<a.length;r+=1)n[a[r]]=!0;this.dependencies[e]=n},ed.prototype.hasDependency=function(e,t){for(var n=0,r=e;n<r.length;n+=1){var a=r[n],i=this.dependencies[a];if(i)for(var o=0,s=t;o<s.length;o+=1)if(i[s[o]])return!0}return!1};var td=s.performance,nd=function(e){this._marks={start:[e.url,"start"].join("#"),end:[e.url,"end"].join("#"),measure:e.url.toString()},td.mark(this._marks.start)};nd.prototype.finish=function(){td.mark(this._marks.end);var e=td.getEntriesByName(this._marks.measure);return 0===e.length&&(td.measure(this._marks.measure,this._marks.start,this._marks.end),e=td.getEntriesByName(this._marks.measure),td.clearMarks(this._marks.start),td.clearMarks(this._marks.end),td.clearMeasures(this._marks.measure)),e},e.Actor=Su,e.AlphaImage=Ko,e.CanonicalTileID=Fu,e.CollisionBoxArray=Ti,e.Color=lt,e.DEMData=Hu,e.DataConstantProperty=Xa,e.DictionaryCoder=Xu,e.EXTENT=yo,e.ErrorEvent=Le,e.EvaluationParameters=Wa,e.Event=Re,e.Evented=Ie,e.FeatureIndex=$u,e.FillBucket=Us,e.FillExtrusionBucket=sl,e.ImageAtlas=sc,e.ImagePosition=ic,e.LineBucket=vl,e.LngLat=Du,e.LngLatBounds=Eu,e.MercatorCoordinate=Bu,e.ONE_EM=Dl,e.OverscaledTileID=Uu,e.Point=i,e.Point$1=i,e.Properties=Ja,e.Protobuf=Il,e.RGBAImage=es,e.RequestManager=X,e.RequestPerformance=nd,e.ResourceType=Me,e.SegmentVector=Ni,e.SourceFeatureState=Zu,e.StructArrayLayout1ui2=Oi,e.StructArrayLayout2f1f2i16=gi,e.StructArrayLayout2i4=ii,e.StructArrayLayout3ui6=bi,e.StructArrayLayout4i8=oi,e.SymbolBucket=uu,e.Texture=ku,e.Tile=ed,e.Transitionable=Ba,e.Uniform1f=Ki,e.Uniform1i=Qi,e.Uniform2f=eo,e.Uniform3f=to,e.Uniform4f=no,e.UniformColor=ro,e.UniformMatrix4f=io,e.UnwrappedTileID=ju,e.ValidationError=Ne,e.WritingMode=lc,e.ZoomHistory=pa,e.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e},e.addDynamicAttributes=ou,e.asyncAll=function(e,t,n){if(!e.length)return n(null,[]);var r=e.length,a=new Array(e.length),i=null;e.forEach(function(e,o){t(e,function(e,t){e&&(i=e),a[o]=t,0===--r&&n(i,a)})})},e.bezier=c,e.bindAll=b,e.browser=P,e.cacheEntryPossiblyAdded=function(e){++be>pe&&(e.getActor().send("enforceCacheSizeLimit",de),be=0)},e.clamp=d,e.clearTileCache=function(e){var t=s.caches.delete(ue);e&&t.catch(e).then(function(){return e()})},e.clipLine=Wc,e.clone=function(e){var t=new Bo(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.clone$1=z,e.clone$2=function(e){var t=new Bo(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.collisionCircleLayout=Cl,e.config=B,e.create=function(){var e=new Bo(16);return Bo!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e},e.create$1=function(){var e=new Bo(9);return Bo!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e},e.create$2=function(){var e=new Bo(4);return Bo!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e},e.createCommonjsModule=t,e.createExpression=dr,e.createLayout=ri,e.createStyleLayer=function(e){return"custom"===e.type?new Mu(e):new xu[e.type](e)},e.cross=function(e,t,n){var r=t[0],a=t[1],i=t[2],o=n[0],s=n[1],l=n[2];return e[0]=a*l-i*s,e[1]=i*o-r*l,e[2]=r*s-a*o,e},e.deepEqual=function e(t,n){if(Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(var r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1;return!0}if("object"==typeof t&&null!==t&&null!==n){if("object"!=typeof n)return!1;if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var a in t)if(!e(t[a],n[a]))return!1;return!0}return t===n},e.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]},e.dot$1=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},e.ease=u,e.emitValidationErrors=Kr,e.endsWith=v,e.enforceCacheSizeLimit=function(e){he(),ne&&ne.then(function(t){t.keys().then(function(n){for(var r=0;r<n.length-e;r++)t.delete(n[r])})})},e.evaluateSizeForFeature=kc,e.evaluateSizeForZoom=Tc,e.evaluateVariableOffset=$c,e.evented=qa,e.extend=h,e.featureFilter=Or,e.filterObject=x,e.fromRotation=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},e.getAnchorAlignment=xc,e.getAnchorJustification=Jc,e.getArrayBuffer=Oe,e.getImage=Ee,e.getJSON=function(e,t){return Ae(h(e,{type:"json"}),t)},e.getRTLTextPluginStatus=Da,e.getReferrer=ze,e.getVideo=function(e,t){var n=s.document.createElement("video");n.muted=!0,n.onloadstart=function(){t(null,n)};for(var r=0;r<e.length;r++){var a=s.document.createElement("source");ke(e[r])||(n.crossOrigin="Anonymous"),a.src=e[r],n.appendChild(a)}return{cancel:function(){}}},e.identity=Fo,e.invert=function(e,t){var n=t[0],r=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=t[9],p=t[10],h=t[11],f=t[12],m=t[13],g=t[14],y=t[15],b=n*s-r*o,v=n*l-a*o,M=n*c-i*o,x=r*l-a*s,z=r*c-i*s,_=a*c-i*l,A=u*m-d*f,O=u*g-p*f,w=u*y-h*f,k=d*g-p*m,T=d*y-h*m,S=p*y-h*g,C=b*S-v*T+M*k+x*w-z*O+_*A;return C?(C=1/C,e[0]=(s*S-l*T+c*k)*C,e[1]=(a*T-r*S-i*k)*C,e[2]=(m*_-g*z+y*x)*C,e[3]=(p*z-d*_-h*x)*C,e[4]=(l*w-o*S-c*O)*C,e[5]=(n*S-a*w+i*O)*C,e[6]=(g*M-f*_-y*v)*C,e[7]=(u*_-p*M+h*v)*C,e[8]=(o*T-s*w+c*A)*C,e[9]=(r*w-n*T-i*A)*C,e[10]=(f*z-m*M+y*b)*C,e[11]=(d*M-u*z-h*b)*C,e[12]=(s*O-o*k-l*A)*C,e[13]=(n*k-r*O+a*A)*C,e[14]=(m*v-f*x-g*b)*C,e[15]=(u*x-d*v+p*b)*C,e):null},e.isChar=ha,e.isMapboxURL=G,e.keysDifference=function(e,t){var n=[];for(var r in e)r in t||n.push(r);return n},e.makeRequest=Ae,e.mapObject=M,e.mercatorXfromLng=Iu,e.mercatorYfromLat=Wu,e.mercatorZfromAltitude=Nu,e.mul=Uo,e.multiply=jo,e.mvt=rl,e.nextPowerOfTwo=function(e){return e<=1?1:Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},e.normalize=function(e,t){var n=t[0],r=t[1],a=t[2],i=n*n+r*r+a*a;return i>0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e},e.number=nn,e.offscreenCanvasSupported=ve,e.ortho=function(e,t,n,r,a,i,o){var s=1/(t-n),l=1/(r-a),c=1/(i-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+n)*s,e[13]=(a+r)*l,e[14]=(o+i)*c,e[15]=1,e},e.parseGlyphPBF=function(e){return new Il(e).readFields(tc,[])},e.pbf=Il,e.performSymbolLayout=function(e,t,n,r,a,i,o){e.createArrays();var s=512*e.overscaling;e.tilePixelRatio=yo/s,e.compareText={},e.iconsNeedLinear=!1;var l=e.layers[0].layout,c=e.layers[0]._unevaluatedLayout._values,u={};if("composite"===e.textSizeData.kind){var d=e.textSizeData,p=d.minZoom,h=d.maxZoom;u.compositeTextSizes=[c["text-size"].possiblyEvaluate(new Wa(p),o),c["text-size"].possiblyEvaluate(new Wa(h),o)]}if("composite"===e.iconSizeData.kind){var f=e.iconSizeData,m=f.minZoom,g=f.maxZoom;u.compositeIconSizes=[c["icon-size"].possiblyEvaluate(new Wa(m),o),c["icon-size"].possiblyEvaluate(new Wa(g),o)]}u.layoutTextSize=c["text-size"].possiblyEvaluate(new Wa(e.zoom+1),o),u.layoutIconSize=c["icon-size"].possiblyEvaluate(new Wa(e.zoom+1),o),u.textMaxSize=c["text-size"].possiblyEvaluate(new Wa(18));for(var y=l.get("text-line-height")*Dl,b="map"===l.get("text-rotation-alignment")&&"point"!==l.get("symbol-placement"),v=l.get("text-keep-upright"),M=l.get("text-size"),x=function(){var i=_[z],s=l.get("text-font").evaluate(i,{},o).join(","),c=M.evaluate(i,{},o),d=u.layoutTextSize.evaluate(i,{},o),p=u.layoutIconSize.evaluate(i,{},o),h={horizontal:{},vertical:void 0},f=i.text,m=[0,0];if(f){var g=f.toString(),x=l.get("text-letter-spacing").evaluate(i,{},o)*Dl,O=function(e){for(var t=0,n=e;t<n.length;t+=1)if(!ma(n[t].charCodeAt(0)))return!1;return!0}(g)?x:0,w=l.get("text-anchor").evaluate(i,{},o),k=l.get("text-variable-anchor");if(!k){var T=l.get("text-radial-offset").evaluate(i,{},o);m=T?$c(w,[T*Dl,Zc]):l.get("text-offset").evaluate(i,{},o).map(function(e){return e*Dl})}var S=b?"center":l.get("text-justify").evaluate(i,{},o),C=l.get("symbol-placement"),E="point"===C?l.get("text-max-width").evaluate(i,{},o)*Dl:0,q=function(){e.allowVerticalPlacement&&fa(g)&&(h.vertical=pc(f,t,n,a,s,E,y,w,"left",O,m,lc.vertical,!0,C,d,c))};if(!b&&k){for(var D="auto"===S?k.map(function(e){return Jc(e)}):[S],R=!1,L=0;L<D.length;L++){var I=D[L];if(!h.horizontal[I])if(R)h.horizontal[I]=h.horizontal[0];else{var W=pc(f,t,n,a,s,E,y,"center",I,O,m,lc.horizontal,!1,C,d,c);W&&(h.horizontal[I]=W,R=1===W.positionedLines.length)}}q()}else{"auto"===S&&(S=Jc(w));var N=pc(f,t,n,a,s,E,y,w,S,O,m,lc.horizontal,!1,C,d,c);N&&(h.horizontal[S]=N),q(),fa(g)&&b&&v&&(h.vertical=pc(f,t,n,a,s,E,y,w,S,O,m,lc.vertical,!1,C,d,c))}}var P=void 0,B=!1;if(i.icon&&i.icon.name){var F=r[i.icon.name];F&&(P=function(e,t,n){var r=xc(n),a=r.horizontalAlign,i=r.verticalAlign,o=t[0],s=t[1],l=o-e.displaySize[0]*a,c=l+e.displaySize[0],u=s-e.displaySize[1]*i;return{image:e,top:u,bottom:u+e.displaySize[1],left:l,right:c}}(a[i.icon.name],l.get("icon-offset").evaluate(i,{},o),l.get("icon-anchor").evaluate(i,{},o)),B=F.sdf,void 0===e.sdfIcons?e.sdfIcons=F.sdf:e.sdfIcons!==F.sdf&&A("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(F.pixelRatio!==e.pixelRatio||0!==l.get("icon-rotate").constantOr(1))&&(e.iconsNeedLinear=!0))}var j=tu(h.horizontal)||h.vertical;e.iconsInText=!!j&&j.iconsInText,(j||P)&&function(e,t,n,r,a,i,o,s,l,c,u){var d=i.textMaxSize.evaluate(t,{});void 0===d&&(d=o);var p,h=e.layers[0].layout,f=h.get("icon-offset").evaluate(t,{},u),m=tu(n.horizontal),g=24,y=o/g,b=e.tilePixelRatio*y,v=e.tilePixelRatio*d/g,M=e.tilePixelRatio*s,x=e.tilePixelRatio*h.get("symbol-spacing"),z=h.get("text-padding")*e.tilePixelRatio,_=h.get("icon-padding")*e.tilePixelRatio,O=h.get("text-max-angle")/180*Math.PI,w="map"===h.get("text-rotation-alignment")&&"point"!==h.get("symbol-placement"),k="map"===h.get("icon-rotation-alignment")&&"point"!==h.get("symbol-placement"),T=h.get("symbol-placement"),S=x/2,C=h.get("icon-text-fit");r&&"none"!==C&&(e.allowVerticalPlacement&&n.vertical&&(p=_c(r,n.vertical,C,h.get("icon-text-fit-padding"),f,y)),m&&(r=_c(r,m,C,h.get("icon-text-fit-padding"),f,y)));var E=function(s,d){d.x<0||d.x>=yo||d.y<0||d.y>=yo||function(e,t,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g,y,b,v,M,x,z,_,O){var w,k,T,S,C,E=e.addToLineVertexArray(t,n),q=0,D=0,R=0,L=0,I=-1,W=-1,N={},P=Ui(""),B=0,F=0;if(void 0===s._unevaluatedLayout.getValue("text-radial-offset")?(w=s.layout.get("text-offset").evaluate(M,{},_).map(function(e){return e*Dl}),B=w[0],F=w[1]):(B=s.layout.get("text-radial-offset").evaluate(M,{},_)*Dl,F=Zc),e.allowVerticalPlacement&&r.vertical){var j=s.layout.get("text-rotate").evaluate(M,{},_)+90,U=r.vertical;S=new Uc(l,t,c,u,d,U,p,h,f,j),o&&(C=new Uc(l,t,c,u,d,o,g,y,f,j))}if(a){var V=s.layout.get("icon-rotate").evaluate(M,{}),H="none"!==s.layout.get("icon-text-fit"),X=Nc(a,V,z,H),G=o?Nc(o,V,z,H):void 0;T=new Uc(l,t,c,u,d,a,g,y,!1,V),q=4*X.length;var Y=e.iconSizeData,Z=null;"source"===Y.kind?(Z=[Oc*s.layout.get("icon-size").evaluate(M,{})])[0]>Kc&&A(e.layerIds[0]+': Value for "icon-size" is >= '+Qc+'. Reduce your "icon-size".'):"composite"===Y.kind&&((Z=[Oc*x.compositeIconSizes[0].evaluate(M,{},_),Oc*x.compositeIconSizes[1].evaluate(M,{},_)])[0]>Kc||Z[1]>Kc)&&A(e.layerIds[0]+': Value for "icon-size" is >= '+Qc+'. Reduce your "icon-size".'),e.addSymbols(e.icon,X,Z,v,b,M,!1,t,E.lineStartIndex,E.lineLength,-1,_),I=e.icon.placedSymbolArray.length-1,G&&(D=4*G.length,e.addSymbols(e.icon,G,Z,v,b,M,lc.vertical,t,E.lineStartIndex,E.lineLength,-1,_),W=e.icon.placedSymbolArray.length-1)}for(var $ in r.horizontal){var J=r.horizontal[$];if(!k){P=Ui(J.text);var Q=s.layout.get("text-rotate").evaluate(M,{},_);k=new Uc(l,t,c,u,d,J,p,h,f,Q)}var K=1===J.positionedLines.length;if(R+=eu(e,t,J,i,s,f,M,m,E,r.vertical?lc.horizontal:lc.horizontalOnly,K?Object.keys(r.horizontal):[$],N,I,x,_),K)break}r.vertical&&(L+=eu(e,t,r.vertical,i,s,f,M,m,E,lc.vertical,["vertical"],N,W,x,_));var ee=k?k.boxStartIndex:e.collisionBoxArray.length,te=k?k.boxEndIndex:e.collisionBoxArray.length,ne=S?S.boxStartIndex:e.collisionBoxArray.length,re=S?S.boxEndIndex:e.collisionBoxArray.length,ae=T?T.boxStartIndex:e.collisionBoxArray.length,ie=T?T.boxEndIndex:e.collisionBoxArray.length,oe=C?C.boxStartIndex:e.collisionBoxArray.length,se=C?C.boxEndIndex:e.collisionBoxArray.length,le=-1,ce=function(e,t){return e&&e.circleDiameter?Math.max(e.circleDiameter,t):t};le=ce(k,le),le=ce(S,le),le=ce(T,le);var ue=(le=ce(C,le))>-1?1:0;ue&&(le*=O/Dl),e.glyphOffsetArray.length>=uu.MAX_GLYPHS&&A("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==M.sortKey&&e.addToSortKeyRanges(e.symbolInstances.length,M.sortKey),e.symbolInstances.emplaceBack(t.x,t.y,N.right>=0?N.right:-1,N.center>=0?N.center:-1,N.left>=0?N.left:-1,N.vertical||-1,I,W,P,ee,te,ne,re,ae,ie,oe,se,c,R,L,q,D,ue,0,p,B,F,le)}(e,d,s,n,r,a,p,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,b,z,w,l,M,_,k,f,t,i,c,u,o)};if("line"===T)for(var q=0,D=Wc(t.geometry,0,0,yo,yo);q<D.length;q+=1)for(var R=D[q],L=Lc(R,x,O,n.vertical||m,r,g,v,e.overscaling,yo),I=0,W=L;I<W.length;I+=1){var N=W[I];(!m||!nu(e,m.text,S,N))&&E(R,N)}else if("line-center"===T)for(var P=0,B=t.geometry;P<B.length;P+=1){var F=B[P];if(F.length>1){var j=Rc(F,O,n.vertical||m,r,g,v);j&&E(F,j)}}else if("Polygon"===t.type)for(var U=0,V=Ps(t.geometry,0);U<V.length;U+=1){var H=V[U],X=Xc(H,16);E(H[0],new Ac(X.x,X.y,0))}else if("LineString"===t.type)for(var G=0,Y=t.geometry;G<Y.length;G+=1){var Z=Y[G];E(Z,new Ac(Z[0].x,Z[0].y,0))}else if("Point"===t.type)for(var $=0,J=t.geometry;$<J.length;$+=1)for(var Q=J[$],K=0,ee=Q;K<ee.length;K+=1){var te=ee[K];E([te],new Ac(te.x,te.y,0))}}(e,i,h,P,r,u,d,p,m,B,o)},z=0,_=e.features;z<_.length;z+=1)x();i&&e.generateCollisionDebugBuffers()},e.perspective=function(e,t,n,r,a){var i,o=1/Math.tan(t/2);return e[0]=o/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=a&&a!==1/0?(i=1/(r-a),e[10]=(a+r)*i,e[14]=2*a*r*i):(e[10]=-1,e[14]=-2*r),e},e.pick=function(e,t){for(var n={},r=0;r<t.length;r++){var a=t[r];a in e&&(n[a]=e[a])}return n},e.plugin=La,e.polygonIntersectsPolygon=Ao,e.postMapLoadEvent=ce,e.postTurnstileEvent=se,e.potpack=ac,e.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],e.register=oa,e.registerForPluginStateChange=function(e){return e({pluginStatus:Ta,pluginURL:Sa}),qa.on("pluginStateChange",e),e},e.renderColorRamp=ns,e.rotate=function(e,t,n){var r=t[0],a=t[1],i=t[2],o=t[3],s=Math.sin(n),l=Math.cos(n);return e[0]=r*l+i*s,e[1]=a*l+o*s,e[2]=r*-s+i*l,e[3]=a*-s+o*l,e},e.rotateX=function(e,t,n){var r=Math.sin(n),a=Math.cos(n),i=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],d=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*a+c*r,e[5]=o*a+u*r,e[6]=s*a+d*r,e[7]=l*a+p*r,e[8]=c*a-i*r,e[9]=u*a-o*r,e[10]=d*a-s*r,e[11]=p*a-l*r,e},e.rotateZ=function(e,t,n){var r=Math.sin(n),a=Math.cos(n),i=t[0],o=t[1],s=t[2],l=t[3],c=t[4],u=t[5],d=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*a+c*r,e[1]=o*a+u*r,e[2]=s*a+d*r,e[3]=l*a+p*r,e[4]=c*a-i*r,e[5]=u*a-o*r,e[6]=d*a-s*r,e[7]=p*a-l*r,e},e.scale=function(e,t,n){var r=n[0],a=n[1],i=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},e.scale$1=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e},e.scale$2=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e},e.setCacheLimits=function(e,t){de=e,pe=t},e.setRTLTextPlugin=function(e,t,n){if(void 0===n&&(n=!1),Ta===_a||Ta===Aa||Ta===Oa)throw new Error("setRTLTextPlugin cannot be called multiple times.");Sa=P.resolveURL(e),Ta=_a,ka=t,Ea(),n||Ra()},e.sphericalToCartesian=function(e){var t=e[0],n=e[1],r=e[2];return n+=90,n*=Math.PI/180,r*=Math.PI/180,{x:t*Math.cos(n)*Math.sin(r),y:t*Math.sin(n)*Math.sin(r),z:t*Math.cos(r)}},e.sqrLen=Xo,e.styleSpec=We,e.sub=Vo,e.symbolSize=Sc,e.transformMat3=function(e,t,n){var r=t[0],a=t[1],i=t[2];return e[0]=r*n[0]+a*n[3]+i*n[6],e[1]=r*n[1]+a*n[4]+i*n[7],e[2]=r*n[2]+a*n[5]+i*n[8],e},e.transformMat4=Ho,e.translate=function(e,t,n){var r,a,i,o,s,l,c,u,d,p,h,f,m=n[0],g=n[1],y=n[2];return t===e?(e[12]=t[0]*m+t[4]*g+t[8]*y+t[12],e[13]=t[1]*m+t[5]*g+t[9]*y+t[13],e[14]=t[2]*m+t[6]*g+t[10]*y+t[14],e[15]=t[3]*m+t[7]*g+t[11]*y+t[15]):(r=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],p=t[9],h=t[10],f=t[11],e[0]=r,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e[6]=c,e[7]=u,e[8]=d,e[9]=p,e[10]=h,e[11]=f,e[12]=r*m+s*g+d*y+t[12],e[13]=a*m+l*g+p*y+t[13],e[14]=i*m+c*g+h*y+t[14],e[15]=o*m+u*g+f*y+t[15]),e},e.triggerPluginCompletionEvent=Ca,e.uniqueId=m,e.validateCustomStyleLayer=function(e){var t=[],n=e.id;return void 0===n&&t.push({message:"layers."+n+': missing required property "id"'}),void 0===e.render&&t.push({message:"layers."+n+': missing required method "render"'}),e.renderingMode&&"2d"!==e.renderingMode&&"3d"!==e.renderingMode&&t.push({message:"layers."+n+': property "renderingMode" must be either "2d" or "3d"'}),t},e.validateLight=$r,e.validateStyle=Zr,e.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},e.vectorTile=rl,e.version=n,e.warnOnce=A,e.webpSupported=F,e.window=s,e.wrap=p}),r(0,function(e){function t(e){var n=typeof e;if("number"===n||"boolean"===n||"string"===n||null==e)return JSON.stringify(e);if(Array.isArray(e)){for(var r="[",a=0,i=e;a<i.length;a+=1)r+=t(i[a])+",";return r+"]"}for(var o=Object.keys(e).sort(),s="{",l=0;l<o.length;l++)s+=JSON.stringify(o[l])+":"+t(e[o[l]])+",";return s+"}"}function n(n){for(var r="",a=0,i=e.refProperties;a<i.length;a+=1)r+="/"+t(n[i[a]]);return r}var r=function(e){this.keyCache={},e&&this.replace(e)};r.prototype.replace=function(e){this._layerConfigs={},this._layers={},this.update(e,[])},r.prototype.update=function(t,r){for(var a=this,i=0,o=t;i<o.length;i+=1){var s=o[i];this._layerConfigs[s.id]=s;var l=this._layers[s.id]=e.createStyleLayer(s);l._featureFilter=e.featureFilter(l.filter),this.keyCache[s.id]&&delete this.keyCache[s.id]}for(var c=0,u=r;c<u.length;c+=1){var d=u[c];delete this.keyCache[d],delete this._layerConfigs[d],delete this._layers[d]}this.familiesBySource={};for(var p=function(e,t){for(var r={},a=0;a<e.length;a++){var i=t&&t[e[a].id]||n(e[a]);t&&(t[e[a].id]=i);var o=r[i];o||(o=r[i]=[]),o.push(e[a])}var s=[];for(var l in r)s.push(r[l]);return s}(e.values(this._layerConfigs),this.keyCache),h=0,f=p;h<f.length;h+=1){var m=f[h].map(function(e){return a._layers[e.id]}),g=m[0];if("none"!==g.visibility){var y=g.source||"",b=this.familiesBySource[y];b||(b=this.familiesBySource[y]={});var v=g.sourceLayer||"_geojsonTileLayer",M=b[v];M||(M=b[v]=[]),M.push(m)}}};var a=function(t){var n={},r=[];for(var a in t){var i=t[a],o=n[a]={};for(var s in i){var l=i[+s];if(l&&0!==l.bitmap.width&&0!==l.bitmap.height){var c={x:0,y:0,w:l.bitmap.width+2,h:l.bitmap.height+2};r.push(c),o[s]={rect:c,metrics:l.metrics}}}}var u=e.potpack(r),d=u.w,p=u.h,h=new e.AlphaImage({width:d||1,height:p||1});for(var f in t){var m=t[f];for(var g in m){var y=m[+g];if(y&&0!==y.bitmap.width&&0!==y.bitmap.height){var b=n[f][g].rect;e.AlphaImage.copy(y.bitmap,h,{x:0,y:0},{x:b.x+1,y:b.y+1},y.bitmap)}}}this.image=h,this.positions=n};e.register("GlyphAtlas",a);var i=function(t){this.tileID=new e.OverscaledTileID(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId};function o(t,n,r){for(var a=new e.EvaluationParameters(n),i=0,o=t;i<o.length;i+=1)o[i].recalculate(a,r)}function s(t,n){var r=e.getArrayBuffer(t.request,function(t,r,a,i){t?n(t):r&&n(null,{vectorTile:new e.vectorTile.VectorTile(new e.pbf(r)),rawData:r,cacheControl:a,expires:i})});return function(){r.cancel(),n()}}i.prototype.parse=function(t,n,r,i,s){var l=this;this.status="parsing",this.data=t,this.collisionBoxArray=new e.CollisionBoxArray;var c=new e.DictionaryCoder(Object.keys(t.layers).sort()),u=new e.FeatureIndex(this.tileID,this.promoteId);u.bucketLayerIDs=[];var d={},p={featureIndex:u,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:r},h=n.familiesBySource[this.source];for(var f in h){var m=t.layers[f];if(m){1===m.version&&e.warnOnce('Vector tile source "'+this.source+'" layer "'+f+'" does not use vector tile spec v2 and therefore may have some rendering errors.');for(var g=c.encode(f),y=[],b=0;b<m.length;b++){var v=m.feature(b),M=u.getId(v,f);y.push({feature:v,id:M,index:b,sourceLayerIndex:g})}for(var x=0,z=h[f];x<z.length;x+=1){var _=z[x],A=_[0];A.minzoom&&this.zoom<Math.floor(A.minzoom)||A.maxzoom&&this.zoom>=A.maxzoom||"none"===A.visibility||(o(_,this.zoom,r),(d[A.id]=A.createBucket({index:u.bucketLayerIDs.length,layers:_,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:g,sourceID:this.source})).populate(y,p,this.tileID.canonical),u.bucketLayerIDs.push(_.map(function(e){return e.id})))}}}var O,w,k,T,S=e.mapObject(p.glyphDependencies,function(e){return Object.keys(e).map(Number)});Object.keys(S).length?i.send("getGlyphs",{uid:this.uid,stacks:S},function(e,t){O||(O=e,w=t,q.call(l))}):w={};var C=Object.keys(p.iconDependencies);C.length?i.send("getImages",{icons:C,source:this.source,tileID:this.tileID,type:"icons"},function(e,t){O||(O=e,k=t,q.call(l))}):k={};var E=Object.keys(p.patternDependencies);function q(){if(O)return s(O);if(w&&k&&T){var t=new a(w),n=new e.ImageAtlas(k,T);for(var i in d){var l=d[i];l instanceof e.SymbolBucket?(o(l.layers,this.zoom,r),e.performSymbolLayout(l,w,t.positions,k,n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):l.hasPattern&&(l instanceof e.LineBucket||l instanceof e.FillBucket||l instanceof e.FillExtrusionBucket)&&(o(l.layers,this.zoom,r),l.addFeatures(p,this.tileID.canonical,n.patternPositions))}this.status="done",s(null,{buckets:e.values(d).filter(function(e){return!e.isEmpty()}),featureIndex:u,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,imageAtlas:n,glyphMap:this.returnDependencies?w:null,iconMap:this.returnDependencies?k:null,glyphPositions:this.returnDependencies?t.positions:null})}}E.length?i.send("getImages",{icons:E,source:this.source,tileID:this.tileID,type:"patterns"},function(e,t){O||(O=e,T=t,q.call(l))}):T={},q.call(this)};var l=function(e,t,n,r){this.actor=e,this.layerIndex=t,this.availableImages=n,this.loadVectorData=r||s,this.loading={},this.loaded={}};l.prototype.loadTile=function(t,n){var r=this,a=t.uid;this.loading||(this.loading={});var o=!!(t&&t.request&&t.request.collectResourceTiming)&&new e.RequestPerformance(t.request),s=this.loading[a]=new i(t);s.abort=this.loadVectorData(t,function(t,i){if(delete r.loading[a],t||!i)return s.status="done",r.loaded[a]=s,n(t);var l=i.rawData,c={};i.expires&&(c.expires=i.expires),i.cacheControl&&(c.cacheControl=i.cacheControl);var u={};if(o){var d=o.finish();d&&(u.resourceTiming=JSON.parse(JSON.stringify(d)))}s.vectorTile=i.vectorTile,s.parse(i.vectorTile,r.layerIndex,r.availableImages,r.actor,function(t,r){if(t||!r)return n(t);n(null,e.extend({rawTileData:l.slice(0)},r,c,u))}),r.loaded=r.loaded||{},r.loaded[a]=s})},l.prototype.reloadTile=function(e,t){var n=this,r=this.loaded,a=e.uid,i=this;if(r&&r[a]){var o=r[a];o.showCollisionBoxes=e.showCollisionBoxes;var s=function(e,r){var a=o.reloadCallback;a&&(delete o.reloadCallback,o.parse(o.vectorTile,i.layerIndex,n.availableImages,i.actor,a)),t(e,r)};"parsing"===o.status?o.reloadCallback=s:"done"===o.status&&(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},l.prototype.abortTile=function(e,t){var n=this.loading,r=e.uid;n&&n[r]&&n[r].abort&&(n[r].abort(),delete n[r]),t()},l.prototype.removeTile=function(e,t){var n=this.loaded,r=e.uid;n&&n[r]&&delete n[r],t()};var c=e.window.ImageBitmap,u=function(){this.loaded={}};u.prototype.loadTile=function(t,n){var r=t.uid,a=t.encoding,i=t.rawImageData,o=c&&i instanceof c?this.getImageData(i):i,s=new e.DEMData(r,o,a);this.loaded=this.loaded||{},this.loaded[r]=s,n(null,s)},u.prototype.getImageData=function(t){(!this.offscreenCanvas||!this.offscreenCanvasContext)&&(this.offscreenCanvas=new OffscreenCanvas(t.width,t.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=t.width,this.offscreenCanvas.height=t.height,this.offscreenCanvasContext.drawImage(t,0,0,t.width,t.height);var n=this.offscreenCanvasContext.getImageData(-1,-1,t.width+2,t.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new e.RGBAImage({width:n.width,height:n.height},n.data)},u.prototype.removeTile=function(e){var t=this.loaded,n=e.uid;t&&t[n]&&delete t[n]};var d=function e(t,n){var r,a=t&&t.type;if("FeatureCollection"===a)for(r=0;r<t.features.length;r++)e(t.features[r],n);else if("GeometryCollection"===a)for(r=0;r<t.geometries.length;r++)e(t.geometries[r],n);else if("Feature"===a)e(t.geometry,n);else if("Polygon"===a)p(t.coordinates,n);else if("MultiPolygon"===a)for(r=0;r<t.coordinates.length;r++)p(t.coordinates[r],n);return t};function p(e,t){if(0!==e.length){h(e[0],t);for(var n=1;n<e.length;n++)h(e[n],!t)}}function h(e,t){for(var n=0,r=0,a=e.length,i=a-1;r<a;i=r++)n+=(e[r][0]-e[i][0])*(e[i][1]+e[r][1]);n>=0!=!!t&&e.reverse()}var f=e.vectorTile.VectorTileFeature.prototype.toGeoJSON,m=function(t){this._feature=t,this.extent=e.EXTENT,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=parseInt(t.id,10))};m.prototype.loadGeometry=function(){if(1===this._feature.type){for(var t=[],n=0,r=this._feature.geometry;n<r.length;n+=1){var a=r[n];t.push([new e.Point$1(a[0],a[1])])}return t}for(var i=[],o=0,s=this._feature.geometry;o<s.length;o+=1){for(var l=[],c=0,u=s[o];c<u.length;c+=1){var d=u[c];l.push(new e.Point$1(d[0],d[1]))}i.push(l)}return i},m.prototype.toGeoJSON=function(e,t,n){return f.call(this,e,t,n)};var g=function(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.EXTENT,this.length=t.length,this._features=t};g.prototype.feature=function(e){return new m(this._features[e])};var y=e.vectorTile.VectorTileFeature,b=v;function v(e,t){this.options=t||{},this.features=e,this.length=e.length}function M(e,t){this.id="number"==typeof e.id?e.id:void 0,this.type=e.type,this.rawGeometry=1===e.type?[e.geometry]:e.geometry,this.properties=e.tags,this.extent=t||4096}v.prototype.feature=function(e){return new M(this.features[e],this.options.extent)},M.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var n=0;n<t.length;n++){for(var r=t[n],a=[],i=0;i<r.length;i++)a.push(new e.Point$1(r[i][0],r[i][1]));this.geometry.push(a)}return this.geometry},M.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var e=this.geometry,t=1/0,n=-1/0,r=1/0,a=-1/0,i=0;i<e.length;i++)for(var o=e[i],s=0;s<o.length;s++){var l=o[s];t=Math.min(t,l.x),n=Math.max(n,l.x),r=Math.min(r,l.y),a=Math.max(a,l.y)}return[t,r,n,a]},M.prototype.toGeoJSON=y.prototype.toGeoJSON;var x=O,z=O,_=function(e,t){t=t||{};var n={};for(var r in e)n[r]=new b(e[r].features,t),n[r].name=r,n[r].version=t.version,n[r].extent=t.extent;return O({layers:n})},A=b;function O(t){var n=new e.pbf;return function(e,t){for(var n in e.layers)t.writeMessage(3,w,e.layers[n])}(t,n),n.finish()}function w(e,t){t.writeVarintField(15,e.version||1),t.writeStringField(1,e.name||""),t.writeVarintField(5,e.extent||4096);var n,r={keys:[],values:[],keycache:{},valuecache:{}};for(n=0;n<e.length;n++)r.feature=e.feature(n),t.writeMessage(2,k,r);var a=r.keys;for(n=0;n<a.length;n++)t.writeStringField(3,a[n]);var i=r.values;for(n=0;n<i.length;n++)t.writeMessage(4,q,i[n])}function k(e,t){var n=e.feature;void 0!==n.id&&t.writeVarintField(1,n.id),t.writeMessage(2,T,e),t.writeVarintField(3,n.type),t.writeMessage(4,E,n)}function T(e,t){var n=e.feature,r=e.keys,a=e.values,i=e.keycache,o=e.valuecache;for(var s in n.properties){var l=i[s];typeof l>"u"&&(r.push(s),l=r.length-1,i[s]=l),t.writeVarint(l);var c=n.properties[s],u=typeof c;"string"!==u&&"boolean"!==u&&"number"!==u&&(c=JSON.stringify(c));var d=u+":"+c,p=o[d];typeof p>"u"&&(a.push(c),p=a.length-1,o[d]=p),t.writeVarint(p)}}function S(e,t){return(t<<3)+(7&e)}function C(e){return e<<1^e>>31}function E(e,t){for(var n=e.loadGeometry(),r=e.type,a=0,i=0,o=n.length,s=0;s<o;s++){var l=n[s],c=1;1===r&&(c=l.length),t.writeVarint(S(1,c));for(var u=3===r?l.length-1:l.length,d=0;d<u;d++){1===d&&1!==r&&t.writeVarint(S(2,u-1));var p=l[d].x-a,h=l[d].y-i;t.writeVarint(C(p)),t.writeVarint(C(h)),a+=p,i+=h}3===r&&t.writeVarint(S(7,1))}}function q(e,t){var n=typeof e;"string"===n?t.writeStringField(1,e):"boolean"===n?t.writeBooleanField(7,e):"number"===n&&(e%1!=0?t.writeDoubleField(3,e):e<0?t.writeSVarintField(6,e):t.writeVarintField(5,e))}function D(e,t,n,r,a,i){if(!(a-r<=n)){var o=r+a>>1;R(e,t,o,r,a,i%2),D(e,t,n,r,o-1,i+1),D(e,t,n,o+1,a,i+1)}}function R(e,t,n,r,a,i){for(;a>r;){if(a-r>600){var o=a-r+1,s=n-r+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2<0?-1:1);R(e,t,n,Math.max(r,Math.floor(n-s*c/o+u)),Math.min(a,Math.floor(n+(o-s)*c/o+u)),i)}var d=t[2*n+i],p=r,h=a;for(L(e,t,r,n),t[2*a+i]>d&&L(e,t,r,a);p<h;){for(L(e,t,p,h),p++,h--;t[2*p+i]<d;)p++;for(;t[2*h+i]>d;)h--}t[2*r+i]===d?L(e,t,r,h):L(e,t,++h,a),h<=n&&(r=h+1),n<=h&&(a=h-1)}}function L(e,t,n,r){I(e,n,r),I(t,2*n,2*r),I(t,2*n+1,2*r+1)}function I(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function W(e,t,n,r){var a=e-n,i=t-r;return a*a+i*i}x.fromVectorTileJs=z,x.fromGeojsonVt=_,x.GeoJSONWrapper=A;var N=function(e){return e[0]},P=function(e){return e[1]},B=function(e,t,n,r,a){void 0===t&&(t=N),void 0===n&&(n=P),void 0===r&&(r=64),void 0===a&&(a=Float64Array),this.nodeSize=r,this.points=e;for(var i=e.length<65536?Uint16Array:Uint32Array,o=this.ids=new i(e.length),s=this.coords=new a(2*e.length),l=0;l<e.length;l++)o[l]=l,s[2*l]=t(e[l]),s[2*l+1]=n(e[l]);D(o,s,r,0,o.length-1,0)};B.prototype.range=function(e,t,n,r){return function(e,t,n,r,a,i,o){for(var s,l,c=[0,e.length-1,0],u=[];c.length;){var d=c.pop(),p=c.pop(),h=c.pop();if(p-h<=o)for(var f=h;f<=p;f++)s=t[2*f],l=t[2*f+1],s>=n&&s<=a&&l>=r&&l<=i&&u.push(e[f]);else{var m=Math.floor((h+p)/2);s=t[2*m],l=t[2*m+1],s>=n&&s<=a&&l>=r&&l<=i&&u.push(e[m]);var g=(d+1)%2;(0===d?n<=s:r<=l)&&(c.push(h),c.push(m-1),c.push(g)),(0===d?a>=s:i>=l)&&(c.push(m+1),c.push(p),c.push(g))}}return u}(this.ids,this.coords,e,t,n,r,this.nodeSize)},B.prototype.within=function(e,t,n){return function(e,t,n,r,a,i){for(var o=[0,e.length-1,0],s=[],l=a*a;o.length;){var c=o.pop(),u=o.pop(),d=o.pop();if(u-d<=i)for(var p=d;p<=u;p++)W(t[2*p],t[2*p+1],n,r)<=l&&s.push(e[p]);else{var h=Math.floor((d+u)/2),f=t[2*h],m=t[2*h+1];W(f,m,n,r)<=l&&s.push(e[h]);var g=(c+1)%2;(0===c?n-a<=f:r-a<=m)&&(o.push(d),o.push(h-1),o.push(g)),(0===c?n+a>=f:r+a>=m)&&(o.push(h+1),o.push(u),o.push(g))}}return s}(this.ids,this.coords,e,t,n,this.nodeSize)};var F={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(e){return e}},j=function(e){this.options=J(Object.create(F),e),this.trees=new Array(this.options.maxZoom+1)};function U(e,t,n,r,a){return{x:e,y:t,zoom:1/0,id:n,parentId:-1,numPoints:r,properties:a}}function V(e,t){var n=e.geometry.coordinates,r=n[0],a=n[1];return{x:G(r),y:Y(a),zoom:1/0,index:t,parentId:-1}}function H(e){return{type:"Feature",id:e.id,properties:X(e),geometry:{type:"Point",coordinates:[Z(e.x),$(e.y)]}}}function X(e){var t=e.numPoints,n=t>=1e4?Math.round(t/1e3)+"k":t>=1e3?Math.round(t/100)/10+"k":t;return J(J({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function G(e){return e/360+.5}function Y(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function Z(e){return 360*(e-.5)}function $(e){var t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function J(e,t){for(var n in t)e[n]=t[n];return e}function Q(e){return e.x}function K(e){return e.y}function ee(e,t,n,r){for(var a,i=r,o=n-t>>1,s=n-t,l=e[t],c=e[t+1],u=e[n],d=e[n+1],p=t+3;p<n;p+=3){var h=te(e[p],e[p+1],l,c,u,d);if(h>i)a=p,i=h;else if(h===i){var f=Math.abs(p-o);f<s&&(a=p,s=f)}}i>r&&(a-t>3&&ee(e,t,a,r),e[a+2]=i,n-a>3&&ee(e,a,n,r))}function te(e,t,n,r,a,i){var o=a-n,s=i-r;if(0!==o||0!==s){var l=((e-n)*o+(t-r)*s)/(o*o+s*s);l>1?(n=a,r=i):l>0&&(n+=o*l,r+=s*l)}return(o=e-n)*o+(s=t-r)*s}function ne(e,t,n,r){var a={id:typeof e>"u"?null:e,type:t,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(e){var t=e.geometry,n=e.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)re(e,t);else if("Polygon"===n||"MultiLineString"===n)for(var r=0;r<t.length;r++)re(e,t[r]);else if("MultiPolygon"===n)for(r=0;r<t.length;r++)for(var a=0;a<t[r].length;a++)re(e,t[r][a])}(a),a}function re(e,t){for(var n=0;n<t.length;n+=3)e.minX=Math.min(e.minX,t[n]),e.minY=Math.min(e.minY,t[n+1]),e.maxX=Math.max(e.maxX,t[n]),e.maxY=Math.max(e.maxY,t[n+1])}function ae(e,t,n,r){if(t.geometry){var a=t.geometry.coordinates,i=t.geometry.type,o=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),s=[],l=t.id;if(n.promoteId?l=t.properties[n.promoteId]:n.generateId&&(l=r||0),"Point"===i)ie(a,s);else if("MultiPoint"===i)for(var c=0;c<a.length;c++)ie(a[c],s);else if("LineString"===i)oe(a,s,o,!1);else if("MultiLineString"===i){if(n.lineMetrics){for(c=0;c<a.length;c++)s=[],oe(a[c],s,o,!1),e.push(ne(l,"LineString",s,t.properties));return}se(a,s,o,!1)}else if("Polygon"===i)se(a,s,o,!0);else{if("MultiPolygon"!==i){if("GeometryCollection"===i){for(c=0;c<t.geometry.geometries.length;c++)ae(e,{id:l,geometry:t.geometry.geometries[c],properties:t.properties},n,r);return}throw new Error("Input data is not a valid GeoJSON object.")}for(c=0;c<a.length;c++){var u=[];se(a[c],u,o,!0),s.push(u)}}e.push(ne(l,i,s,t.properties))}}function ie(e,t){t.push(le(e[0])),t.push(ce(e[1])),t.push(0)}function oe(e,t,n,r){for(var a,i,o=0,s=0;s<e.length;s++){var l=le(e[s][0]),c=ce(e[s][1]);t.push(l),t.push(c),t.push(0),s>0&&(o+=r?(a*c-l*i)/2:Math.sqrt(Math.pow(l-a,2)+Math.pow(c-i,2))),a=l,i=c}var u=t.length-3;t[2]=1,ee(t,0,u,n),t[u+2]=1,t.size=Math.abs(o),t.start=0,t.end=t.size}function se(e,t,n,r){for(var a=0;a<e.length;a++){var i=[];oe(e[a],i,n,r),t.push(i)}}function le(e){return e/360+.5}function ce(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function ue(e,t,n,r,a,i,o,s){if(r/=t,i>=(n/=t)&&o<r)return e;if(o<n||i>=r)return null;for(var l=[],c=0;c<e.length;c++){var u=e[c],d=u.geometry,p=u.type,h=0===a?u.minX:u.minY,f=0===a?u.maxX:u.maxY;if(h>=n&&f<r)l.push(u);else if(!(f<n||h>=r)){var m=[];if("Point"===p||"MultiPoint"===p)de(d,m,n,r,a);else if("LineString"===p)pe(d,m,n,r,a,!1,s.lineMetrics);else if("MultiLineString"===p)fe(d,m,n,r,a,!1);else if("Polygon"===p)fe(d,m,n,r,a,!0);else if("MultiPolygon"===p)for(var g=0;g<d.length;g++){var y=[];fe(d[g],y,n,r,a,!0),y.length&&m.push(y)}if(m.length){if(s.lineMetrics&&"LineString"===p){for(g=0;g<m.length;g++)l.push(ne(u.id,p,m[g],u.tags));continue}("LineString"===p||"MultiLineString"===p)&&(1===m.length?(p="LineString",m=m[0]):p="MultiLineString"),("Point"===p||"MultiPoint"===p)&&(p=3===m.length?"Point":"MultiPoint"),l.push(ne(u.id,p,m,u.tags))}}}return l.length?l:null}function de(e,t,n,r,a){for(var i=0;i<e.length;i+=3){var o=e[i+a];o>=n&&o<=r&&(t.push(e[i]),t.push(e[i+1]),t.push(e[i+2]))}}function pe(e,t,n,r,a,i,o){for(var s,l,c=he(e),u=0===a?ge:ye,d=e.start,p=0;p<e.length-3;p+=3){var h=e[p],f=e[p+1],m=e[p+2],g=e[p+3],y=e[p+4],b=0===a?h:f,v=0===a?g:y,M=!1;o&&(s=Math.sqrt(Math.pow(h-g,2)+Math.pow(f-y,2))),b<n?v>n&&(l=u(c,h,f,g,y,n),o&&(c.start=d+s*l)):b>r?v<r&&(l=u(c,h,f,g,y,r),o&&(c.start=d+s*l)):me(c,h,f,m),v<n&&b>=n&&(l=u(c,h,f,g,y,n),M=!0),v>r&&b<=r&&(l=u(c,h,f,g,y,r),M=!0),!i&&M&&(o&&(c.end=d+s*l),t.push(c),c=he(e)),o&&(d+=s)}var x=e.length-3;h=e[x],f=e[x+1],m=e[x+2],(b=0===a?h:f)>=n&&b<=r&&me(c,h,f,m),x=c.length-3,i&&x>=3&&(c[x]!==c[0]||c[x+1]!==c[1])&&me(c,c[0],c[1],c[2]),c.length&&t.push(c)}function he(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function fe(e,t,n,r,a,i){for(var o=0;o<e.length;o++)pe(e[o],t,n,r,a,i,!1)}function me(e,t,n,r){e.push(t),e.push(n),e.push(r)}function ge(e,t,n,r,a,i){var o=(i-t)/(r-t);return e.push(i),e.push(n+(a-n)*o),e.push(1),o}function ye(e,t,n,r,a,i){var o=(i-n)/(a-n);return e.push(t+(r-t)*o),e.push(i),e.push(1),o}function be(e,t){for(var n=[],r=0;r<e.length;r++){var a,i=e[r],o=i.type;if("Point"===o||"MultiPoint"===o||"LineString"===o)a=ve(i.geometry,t);else if("MultiLineString"===o||"Polygon"===o){a=[];for(var s=0;s<i.geometry.length;s++)a.push(ve(i.geometry[s],t))}else if("MultiPolygon"===o)for(a=[],s=0;s<i.geometry.length;s++){for(var l=[],c=0;c<i.geometry[s].length;c++)l.push(ve(i.geometry[s][c],t));a.push(l)}n.push(ne(i.id,o,a,i.tags))}return n}function ve(e,t){var n=[];n.size=e.size,void 0!==e.start&&(n.start=e.start,n.end=e.end);for(var r=0;r<e.length;r+=3)n.push(e[r]+t,e[r+1],e[r+2]);return n}function Me(e,t){if(e.transformed)return e;var n,r,a,i=1<<e.z,o=e.x,s=e.y;for(n=0;n<e.features.length;n++){var l=e.features[n],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(r=0;r<c.length;r+=2)l.geometry.push(xe(c[r],c[r+1],t,i,o,s));else for(r=0;r<c.length;r++){var d=[];for(a=0;a<c[r].length;a+=2)d.push(xe(c[r][a],c[r][a+1],t,i,o,s));l.geometry.push(d)}}return e.transformed=!0,e}function xe(e,t,n,r,a,i){return[Math.round(n*(e*r-a)),Math.round(n*(t*r-i))]}function ze(e,t,n,r,a){for(var i=t===a.maxZoom?0:a.tolerance/((1<<t)*a.extent),o={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:n,y:r,z:t,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s<e.length;s++){o.numFeatures++,_e(o,e[s],i,a);var l=e[s].minX,c=e[s].minY,u=e[s].maxX,d=e[s].maxY;l<o.minX&&(o.minX=l),c<o.minY&&(o.minY=c),u>o.maxX&&(o.maxX=u),d>o.maxY&&(o.maxY=d)}return o}function _e(e,t,n,r){var a=t.geometry,i=t.type,o=[];if("Point"===i||"MultiPoint"===i)for(var s=0;s<a.length;s+=3)o.push(a[s]),o.push(a[s+1]),e.numPoints++,e.numSimplified++;else if("LineString"===i)Ae(o,a,e,n,!1,!1);else if("MultiLineString"===i||"Polygon"===i)for(s=0;s<a.length;s++)Ae(o,a[s],e,n,"Polygon"===i,0===s);else if("MultiPolygon"===i)for(var l=0;l<a.length;l++){var c=a[l];for(s=0;s<c.length;s++)Ae(o,c[s],e,n,!0,0===s)}if(o.length){var u=t.tags||null;if("LineString"===i&&r.lineMetrics){for(var d in u={},t.tags)u[d]=t.tags[d];u.mapbox_clip_start=a.start/a.size,u.mapbox_clip_end=a.end/a.size}var p={geometry:o,type:"Polygon"===i||"MultiPolygon"===i?3:"LineString"===i||"MultiLineString"===i?2:1,tags:u};null!==t.id&&(p.id=t.id),e.features.push(p)}}function Ae(e,t,n,r,a,i){var o=r*r;if(r>0&&t.size<(a?o:r))n.numPoints+=t.length/3;else{for(var s=[],l=0;l<t.length;l+=3)(0===r||t[l+2]>o)&&(n.numSimplified++,s.push(t[l]),s.push(t[l+1])),n.numPoints++;a&&function(e,t){for(var n=0,r=0,a=e.length,i=a-2;r<a;i=r,r+=2)n+=(e[r]-e[i])*(e[r+1]+e[i+1]);if(n>0===t)for(r=0,a=e.length;r<a/2;r+=2){var o=e[r],s=e[r+1];e[r]=e[a-2-r],e[r+1]=e[a-1-r],e[a-2-r]=o,e[a-1-r]=s}}(s,i),e.push(s)}}function Oe(e,t){t=this.options=function(e,t){for(var n in t)e[n]=t[n];return e}(Object.create(this.options),t);var n=t.debug;if(n&&console.time("preprocess data"),t.maxZoom<0||t.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(e,t){var n=[];if("FeatureCollection"===e.type)for(var r=0;r<e.features.length;r++)ae(n,e.features[r],t,r);else"Feature"===e.type?ae(n,e,t):ae(n,{geometry:e},t);return n}(e,t);this.tiles={},this.tileCoords=[],n&&(console.timeEnd("preprocess data"),t.indexMaxZoom,t.indexMaxPoints,console.time("generate tiles"),this.stats={},this.total=0),r=function(e,t){var n=t.buffer/t.extent,r=e,a=ue(e,1,-1-n,n,0,-1,2,t),i=ue(e,1,1-n,2+n,0,-1,2,t);return(a||i)&&(r=ue(e,1,-n,1+n,0,-1,2,t)||[],a&&(r=be(a,1).concat(r)),i&&(r=r.concat(be(i,-1)))),r}(r,t),r.length&&this.splitTile(r,0,0,0),n&&(r.length&&(this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),this.total,JSON.stringify(this.stats))}function we(e,t,n){return 32*((1<<e)*n+t)+e}function ke(e,t){var n=e.tileID.canonical;if(!this._geoJSONIndex)return t(null,null);var r=this._geoJSONIndex.getTile(n.z,n.x,n.y);if(!r)return t(null,null);var a=new g(r.features),i=x(a);(0!==i.byteOffset||i.byteLength!==i.buffer.byteLength)&&(i=new Uint8Array(i)),t(null,{vectorTile:a,rawData:i.buffer})}j.prototype.load=function(e){var t=this.options,n=t.log,r=t.minZoom,a=t.maxZoom,i=t.nodeSize;n&&console.time("total time");var o="prepare "+e.length+" points";n&&console.time(o),this.points=e;for(var s=[],l=0;l<e.length;l++)e[l].geometry&&s.push(V(e[l],l));this.trees[a+1]=new B(s,Q,K,i,Float32Array),n&&console.timeEnd(o);for(var c=a;c>=r;c--)Date.now(),s=this._cluster(s,c),this.trees[c]=new B(s,Q,K,i,Float32Array),n&&(s.length,Date.now());return n&&console.timeEnd("total time"),this},j.prototype.getClusters=function(e,t){var n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),a=180===e[2]?180:((e[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,a=180;else if(n>a){var o=this.getClusters([n,r,180,i],t),s=this.getClusters([-180,r,a,i],t);return o.concat(s)}for(var l=this.trees[this._limitZoom(t)],c=[],u=0,d=l.range(G(n),Y(i),G(a),Y(r));u<d.length;u+=1){var p=d[u],h=l.points[p];c.push(h.numPoints?H(h):this.points[h.index])}return c},j.prototype.getChildren=function(e){var t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",a=this.trees[n];if(!a)throw new Error(r);var i=a.points[t];if(!i)throw new Error(r);for(var o=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=[],l=0,c=a.within(i.x,i.y,o);l<c.length;l+=1){var u=c[l],d=a.points[u];d.parentId===e&&s.push(d.numPoints?H(d):this.points[d.index])}if(0===s.length)throw new Error(r);return s},j.prototype.getLeaves=function(e,t,n){t=t||10,n=n||0;var r=[];return this._appendLeaves(r,e,t,n,0),r},j.prototype.getTile=function(e,t,n){var r=this.trees[this._limitZoom(e)],a=Math.pow(2,e),i=this.options,o=i.extent,s=i.radius/o,l=(n-s)/a,c=(n+1+s)/a,u={features:[]};return this._addTileFeatures(r.range((t-s)/a,l,(t+1+s)/a,c),r.points,t,n,a,u),0===t&&this._addTileFeatures(r.range(1-s/a,l,1,c),r.points,a,n,a,u),t===a-1&&this._addTileFeatures(r.range(0,l,s/a,c),r.points,-1,n,a,u),u.features.length?u:null},j.prototype.getClusterExpansionZoom=function(e){for(var t=this._getOriginZoom(e)-1;t<=this.options.maxZoom;){var n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t},j.prototype._appendLeaves=function(e,t,n,r,a){for(var i=0,o=this.getChildren(t);i<o.length;i+=1){var s=o[i],l=s.properties;if(l&&l.cluster?a+l.point_count<=r?a+=l.point_count:a=this._appendLeaves(e,l.cluster_id,n,r,a):a<r?a++:e.push(s),e.length===n)break}return a},j.prototype._addTileFeatures=function(e,t,n,r,a,i){for(var o=0,s=e;o<s.length;o+=1){var l=t[s[o]],c=l.numPoints,u={type:1,geometry:[[Math.round(this.options.extent*(l.x*a-n)),Math.round(this.options.extent*(l.y*a-r))]],tags:c?X(l):this.points[l.index].properties},d=void 0;c?d=l.id:this.options.generateId?d=l.index:this.points[l.index].id&&(d=this.points[l.index].id),void 0!==d&&(u.id=d),i.features.push(u)}},j.prototype._limitZoom=function(e){return Math.max(this.options.minZoom,Math.min(+e,this.options.maxZoom+1))},j.prototype._cluster=function(e,t){for(var n=[],r=this.options,a=r.radius,i=r.extent,o=r.reduce,s=r.minPoints,l=a/(i*Math.pow(2,t)),c=0;c<e.length;c++){var u=e[c];if(!(u.zoom<=t)){u.zoom=t;for(var d=this.trees[t+1],p=d.within(u.x,u.y,l),h=u.numPoints||1,f=h,m=0,g=p;m<g.length;m+=1){var y=g[m],b=d.points[y];b.zoom>t&&(f+=b.numPoints||1)}if(f>=s){for(var v=u.x*h,M=u.y*h,x=o&&h>1?this._map(u,!0):null,z=(c<<5)+(t+1)+this.points.length,_=0,A=p;_<A.length;_+=1){var O=A[_],w=d.points[O];if(!(w.zoom<=t)){w.zoom=t;var k=w.numPoints||1;v+=w.x*k,M+=w.y*k,w.parentId=z,o&&(x||(x=this._map(u,!0)),o(x,this._map(w)))}}u.parentId=z,n.push(U(v/f,M/f,z,f,x))}else if(n.push(u),f>1)for(var T=0,S=p;T<S.length;T+=1){var C=S[T],E=d.points[C];E.zoom<=t||(E.zoom=t,n.push(E))}}}return n},j.prototype._getOriginId=function(e){return e-this.points.length>>5},j.prototype._getOriginZoom=function(e){return(e-this.points.length)%32},j.prototype._map=function(e,t){if(e.numPoints)return t?J({},e.properties):e.properties;var n=this.points[e.index].properties,r=this.options.map(n);return t&&r===n?J({},r):r},Oe.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Oe.prototype.splitTile=function(e,t,n,r,a,i,o){for(var s=[e,t,n,r],l=this.options,c=l.debug;s.length;){r=s.pop(),n=s.pop(),t=s.pop(),e=s.pop();var u=1<<t,d=we(t,n,r),p=this.tiles[d];if(!p&&(c>1&&console.time("creation"),p=this.tiles[d]=ze(e,t,n,r,l),this.tileCoords.push({z:t,x:n,y:r}),c)){c>1&&(p.numFeatures,p.numPoints,p.numSimplified,console.timeEnd("creation"));var h="z"+t;this.stats[h]=(this.stats[h]||0)+1,this.total++}if(p.source=e,a){if(t===l.maxZoom||t===a)continue;var f=1<<a-t;if(n!==Math.floor(i/f)||r!==Math.floor(o/f))continue}else if(t===l.indexMaxZoom||p.numPoints<=l.indexMaxPoints)continue;if(p.source=null,0!==e.length){c>1&&console.time("clipping");var m,g,y,b,v,M,x=.5*l.buffer/l.extent,z=.5-x,_=.5+x,A=1+x;m=g=y=b=null,v=ue(e,u,n-x,n+_,0,p.minX,p.maxX,l),M=ue(e,u,n+z,n+A,0,p.minX,p.maxX,l),e=null,v&&(m=ue(v,u,r-x,r+_,1,p.minY,p.maxY,l),g=ue(v,u,r+z,r+A,1,p.minY,p.maxY,l),v=null),M&&(y=ue(M,u,r-x,r+_,1,p.minY,p.maxY,l),b=ue(M,u,r+z,r+A,1,p.minY,p.maxY,l),M=null),c>1&&console.timeEnd("clipping"),s.push(m||[],t+1,2*n,2*r),s.push(g||[],t+1,2*n,2*r+1),s.push(y||[],t+1,2*n+1,2*r),s.push(b||[],t+1,2*n+1,2*r+1)}}},Oe.prototype.getTile=function(e,t,n){var r=this.options,a=r.extent,i=r.debug;if(e<0||e>24)return null;var o=1<<e,s=we(e,t=(t%o+o)%o,n);if(this.tiles[s])return Me(this.tiles[s],a);for(var l,c=e,u=t,d=n;!l&&c>0;)c--,u=Math.floor(u/2),d=Math.floor(d/2),l=this.tiles[we(c,u,d)];return l&&l.source?(i>1&&console.time("drilling down"),this.splitTile(l.source,c,u,d,e,t,n),i>1&&console.timeEnd("drilling down"),this.tiles[s]?Me(this.tiles[s],a):null):null};var Te=function(t){function n(e,n,r,a){t.call(this,e,n,r,ke),a&&(this.loadGeoJSON=a)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.loadData=function(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=t,this._pendingLoadDataParams=e,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},n.prototype._loadData=function(){var t=this;if(this._pendingCallback&&this._pendingLoadDataParams){var n=this._pendingCallback,r=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var a=!!(r&&r.request&&r.request.collectResourceTiming)&&new e.RequestPerformance(r.request);this.loadGeoJSON(r,function(i,o){if(i||!o)return n(i);if("object"!=typeof o)return n(new Error("Input data given to '"+r.source+"' is not a valid GeoJSON object."));d(o,!0);try{if(r.filter){var s=e.createExpression(r.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===s.result)throw new Error(s.value.map(function(e){return e.key+": "+e.message}).join(", "));var l=o.features.filter(function(e){return s.value.evaluate({zoom:0},e)});o={type:"FeatureCollection",features:l}}t._geoJSONIndex=r.cluster?new j(function(t){var n=t.superclusterOptions,r=t.clusterProperties;if(!r||!n)return n;for(var a={},i={},o={accumulated:null,zoom:0},s={properties:null},l=Object.keys(r),c=0,u=l;c<u.length;c+=1){var d=u[c],p=r[d],h=p[0],f=p[1],m=e.createExpression(f),g=e.createExpression("string"==typeof h?[h,["accumulated"],["get",d]]:h);a[d]=m.value,i[d]=g.value}return n.map=function(e){s.properties=e;for(var t={},n=0,r=l;n<r.length;n+=1){var i=r[n];t[i]=a[i].evaluate(o,s)}return t},n.reduce=function(e,t){s.properties=t;for(var n=0,r=l;n<r.length;n+=1){var a=r[n];o.accumulated=e[a],e[a]=i[a].evaluate(o,s)}},n}(r)).load(o.features):function(e,t){return new Oe(e,t)}(o,r.geojsonVtOptions)}catch(e){return n(e)}t.loaded={};var c={};if(a){var u=a.finish();u&&(c.resourceTiming={},c.resourceTiming[r.source]=JSON.parse(JSON.stringify(u)))}n(null,c)})}},n.prototype.coalesce=function(){"Coalescing"===this._state?this._state="Idle":"NeedsLoadData"===this._state&&(this._state="Coalescing",this._loadData())},n.prototype.reloadTile=function(e,n){var r=this.loaded,a=e.uid;return r&&r[a]?t.prototype.reloadTile.call(this,e,n):this.loadTile(e,n)},n.prototype.loadGeoJSON=function(t,n){if(t.request)e.getJSON(t.request,n);else{if("string"!=typeof t.data)return n(new Error("Input data given to '"+t.source+"' is not a valid GeoJSON object."));try{return n(null,JSON.parse(t.data))}catch{return n(new Error("Input data given to '"+t.source+"' is not a valid GeoJSON object."))}}},n.prototype.removeSource=function(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),t()},n.prototype.getClusterExpansionZoom=function(e,t){try{t(null,this._geoJSONIndex.getClusterExpansionZoom(e.clusterId))}catch(e){t(e)}},n.prototype.getClusterChildren=function(e,t){try{t(null,this._geoJSONIndex.getChildren(e.clusterId))}catch(e){t(e)}},n.prototype.getClusterLeaves=function(e,t){try{t(null,this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset))}catch(e){t(e)}},n}(l),Se=function(t){var n=this;this.self=t,this.actor=new e.Actor(t,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:l,geojson:Te},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(e,t){if(n.workerSourceTypes[e])throw new Error('Worker source with name "'+e+'" already registered.');n.workerSourceTypes[e]=t},this.self.registerRTLTextPlugin=function(t){if(e.plugin.isParsed())throw new Error("RTL text plugin already registered.");e.plugin.applyArabicShaping=t.applyArabicShaping,e.plugin.processBidirectionalText=t.processBidirectionalText,e.plugin.processStyledBidirectionalText=t.processStyledBidirectionalText}};return Se.prototype.setReferrer=function(e,t){this.referrer=t},Se.prototype.setImages=function(e,t,n){for(var r in this.availableImages[e]=t,this.workerSources[e]){var a=this.workerSources[e][r];for(var i in a)a[i].availableImages=t}n()},Se.prototype.setLayers=function(e,t,n){this.getLayerIndex(e).replace(t),n()},Se.prototype.updateLayers=function(e,t,n){this.getLayerIndex(e).update(t.layers,t.removedIds),n()},Se.prototype.loadTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).loadTile(t,n)},Se.prototype.loadDEMTile=function(e,t,n){this.getDEMWorkerSource(e,t.source).loadTile(t,n)},Se.prototype.reloadTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).reloadTile(t,n)},Se.prototype.abortTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).abortTile(t,n)},Se.prototype.removeTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).removeTile(t,n)},Se.prototype.removeDEMTile=function(e,t){this.getDEMWorkerSource(e,t.source).removeTile(t)},Se.prototype.removeSource=function(e,t,n){if(this.workerSources[e]&&this.workerSources[e][t.type]&&this.workerSources[e][t.type][t.source]){var r=this.workerSources[e][t.type][t.source];delete this.workerSources[e][t.type][t.source],void 0!==r.removeSource?r.removeSource(t,n):n()}},Se.prototype.loadWorkerSource=function(e,t,n){try{this.self.importScripts(t.url),n()}catch(e){n(e.toString())}},Se.prototype.syncRTLPluginState=function(t,n,r){try{e.plugin.setState(n);var a=e.plugin.getPluginURL();if(e.plugin.isLoaded()&&!e.plugin.isParsed()&&null!=a){this.self.importScripts(a);var i=e.plugin.isParsed();r(i?void 0:new Error("RTL Text Plugin failed to import scripts from "+a),i)}}catch(e){r(e.toString())}},Se.prototype.getAvailableImages=function(e){var t=this.availableImages[e];return t||(t=[]),t},Se.prototype.getLayerIndex=function(e){var t=this.layerIndexes[e];return t||(t=this.layerIndexes[e]=new r),t},Se.prototype.getWorkerSource=function(e,t,n){var r=this;if(this.workerSources[e]||(this.workerSources[e]={}),this.workerSources[e][t]||(this.workerSources[e][t]={}),!this.workerSources[e][t][n]){var a={send:function(t,n,a){r.actor.send(t,n,a,e)}};this.workerSources[e][t][n]=new this.workerSourceTypes[t](a,this.getLayerIndex(e),this.getAvailableImages(e))}return this.workerSources[e][t][n]},Se.prototype.getDEMWorkerSource=function(e,t){return this.demWorkerSources[e]||(this.demWorkerSources[e]={}),this.demWorkerSources[e][t]||(this.demWorkerSources[e][t]=new u),this.demWorkerSources[e][t]},Se.prototype.enforceCacheSizeLimit=function(t,n){e.enforceCacheSizeLimit(n)},typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope&&(self.worker=new Se(self)),Se}),r(0,function(e){var t=e.createCommonjsModule(function(e){function t(e){return!n(e)}function n(e){return typeof window<"u"&&typeof document<"u"?Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var e,t,n=new Blob([""],{type:"text/javascript"}),r=URL.createObjectURL(n);try{t=new Worker(r),e=!0}catch{e=!1}return t&&t.terminate(),URL.revokeObjectURL(r),e}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var e=document.createElement("canvas");e.width=e.height=1;var t=e.getContext("2d");if(!t)return!1;var n=t.getImageData(0,0,1,1);return n&&n.width===e.width}()?function(e){return void 0===r[e]&&(r[e]=function(e){var n=function(e){var n=document.createElement("canvas"),r=Object.create(t.webGLContextAttributes);return r.failIfMajorPerformanceCaveat=e,n.probablySupportsContext?n.probablySupportsContext("webgl",r)||n.probablySupportsContext("experimental-webgl",r):n.supportsContext?n.supportsContext("webgl",r)||n.supportsContext("experimental-webgl",r):n.getContext("webgl",r)||n.getContext("experimental-webgl",r)}(e);if(!n)return!1;var r=n.createShader(n.VERTEX_SHADER);return!(!r||n.isContextLost())&&(n.shaderSource(r,"void main() {}"),n.compileShader(r),!0===n.getShaderParameter(r,n.COMPILE_STATUS))}(e)),r[e]}(e&&e.failIfMajorPerformanceCaveat)?void 0:"insufficient WebGL support":"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support":"not a browser"}e.exports?e.exports=t:window&&(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=t,window.mapboxgl.notSupportedReason=n);var r={};t.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}}),n={create:function(t,n,r){var a=e.window.document.createElement(t);return void 0!==n&&(a.className=n),r&&r.appendChild(a),a},createNS:function(t,n){return e.window.document.createElementNS(t,n)}},r=e.window.document&&e.window.document.documentElement.style;function a(e){if(!r)return e[0];for(var t=0;t<e.length;t++)if(e[t]in r)return e[t];return e[0]}var i,o=a(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]);n.disableDrag=function(){r&&o&&(i=r[o],r[o]="none")},n.enableDrag=function(){r&&o&&(r[o]=i)};var s=a(["transform","WebkitTransform"]);n.setTransform=function(e,t){e.style[s]=t};var l=!1;try{var c=Object.defineProperty({},"passive",{get:function(){l=!0}});e.window.addEventListener("test",c,c),e.window.removeEventListener("test",c,c)}catch{l=!1}n.addEventListener=function(e,t,n,r){void 0===r&&(r={}),"passive"in r&&l?e.addEventListener(t,n,r):e.addEventListener(t,n,r.capture)},n.removeEventListener=function(e,t,n,r){void 0===r&&(r={}),"passive"in r&&l?e.removeEventListener(t,n,r):e.removeEventListener(t,n,r.capture)};var u=function(t){t.preventDefault(),t.stopPropagation(),e.window.removeEventListener("click",u,!0)};function d(e){var t=e.userImage;return!!(t&&t.render&&t.render())&&(e.data.replace(new Uint8Array(t.data.buffer)),!0)}n.suppressClick=function(){e.window.addEventListener("click",u,!0),e.window.setTimeout(function(){e.window.removeEventListener("click",u,!0)},0)},n.mousePos=function(t,n){var r=t.getBoundingClientRect();return new e.Point(n.clientX-r.left-t.clientLeft,n.clientY-r.top-t.clientTop)},n.touchPos=function(t,n){for(var r=t.getBoundingClientRect(),a=[],i=0;i<n.length;i++)a.push(new e.Point(n[i].clientX-r.left-t.clientLeft,n[i].clientY-r.top-t.clientTop));return a},n.mouseButton=function(t){return typeof e.window.InstallTrigger<"u"&&2===t.button&&t.ctrlKey&&e.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:t.button},n.remove=function(e){e.parentNode&&e.parentNode.removeChild(e)};var p=function(t){function n(){t.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new e.RGBAImage({width:1,height:1}),this.dirty=!0}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.isLoaded=function(){return this.loaded},n.prototype.setLoaded=function(e){if(this.loaded!==e&&(this.loaded=e,e)){for(var t=0,n=this.requestors;t<n.length;t+=1){var r=n[t],a=r.ids,i=r.callback;this._notify(a,i)}this.requestors=[]}},n.prototype.getImage=function(e){return this.images[e]},n.prototype.addImage=function(e,t){this._validate(e,t)&&(this.images[e]=t)},n.prototype._validate=function(t,n){var r=!0;return this._validateStretch(n.stretchX,n.data&&n.data.width)||(this.fire(new e.ErrorEvent(new Error('Image "'+t+'" has invalid "stretchX" value'))),r=!1),this._validateStretch(n.stretchY,n.data&&n.data.height)||(this.fire(new e.ErrorEvent(new Error('Image "'+t+'" has invalid "stretchY" value'))),r=!1),this._validateContent(n.content,n)||(this.fire(new e.ErrorEvent(new Error('Image "'+t+'" has invalid "content" value'))),r=!1),r},n.prototype._validateStretch=function(e,t){if(!e)return!0;for(var n=0,r=0,a=e;r<a.length;r+=1){var i=a[r];if(i[0]<n||i[1]<i[0]||t<i[1])return!1;n=i[1]}return!0},n.prototype._validateContent=function(e,t){return!e||!(4!==e.length||e[0]<0||t.data.width<e[0]||e[1]<0||t.data.height<e[1]||e[2]<0||t.data.width<e[2]||e[3]<0||t.data.height<e[3]||e[2]<e[0]||e[3]<e[1])},n.prototype.updateImage=function(e,t){var n=this.images[e];t.version=n.version+1,this.images[e]=t,this.updatedImages[e]=!0},n.prototype.removeImage=function(e){var t=this.images[e];delete this.images[e],delete this.patterns[e],t.userImage&&t.userImage.onRemove&&t.userImage.onRemove()},n.prototype.listImages=function(){return Object.keys(this.images)},n.prototype.getImages=function(e,t){var n=!0;if(!this.isLoaded())for(var r=0,a=e;r<a.length;r+=1){var i=a[r];this.images[i]||(n=!1)}this.isLoaded()||n?this._notify(e,t):this.requestors.push({ids:e,callback:t})},n.prototype._notify=function(t,n){for(var r={},a=0,i=t;a<i.length;a+=1){var o=i[a];this.images[o]||this.fire(new e.Event("styleimagemissing",{id:o}));var s=this.images[o];s?r[o]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,version:s.version,stretchX:s.stretchX,stretchY:s.stretchY,content:s.content,hasRenderCallback:!(!s.userImage||!s.userImage.render)}:e.warnOnce('Image "'+o+'" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.')}n(null,r)},n.prototype.getPixelSize=function(){var e=this.atlasImage;return{width:e.width,height:e.height}},n.prototype.getPattern=function(t){var n=this.patterns[t],r=this.getImage(t);if(!r)return null;if(n&&n.position.version===r.version)return n.position;if(n)n.position.version=r.version;else{var a={w:r.data.width+2,h:r.data.height+2,x:0,y:0},i=new e.ImagePosition(a,r);this.patterns[t]={bin:a,position:i}}return this._updatePatternAtlas(),this.patterns[t].position},n.prototype.bind=function(t){var n=t.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new e.Texture(t,this.atlasImage,n.RGBA),this.atlasTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)},n.prototype._updatePatternAtlas=function(){var t=[];for(var n in this.patterns)t.push(this.patterns[n].bin);var r=e.potpack(t),a=r.w,i=r.h,o=this.atlasImage;for(var s in o.resize({width:a||1,height:i||1}),this.patterns){var l=this.patterns[s].bin,c=l.x+1,u=l.y+1,d=this.images[s].data,p=d.width,h=d.height;e.RGBAImage.copy(d,o,{x:0,y:0},{x:c,y:u},{width:p,height:h}),e.RGBAImage.copy(d,o,{x:0,y:h-1},{x:c,y:u-1},{width:p,height:1}),e.RGBAImage.copy(d,o,{x:0,y:0},{x:c,y:u+h},{width:p,height:1}),e.RGBAImage.copy(d,o,{x:p-1,y:0},{x:c-1,y:u},{width:1,height:h}),e.RGBAImage.copy(d,o,{x:0,y:0},{x:c+p,y:u},{width:1,height:h})}this.dirty=!0},n.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},n.prototype.dispatchRenderCallbacks=function(e){for(var t=0,n=e;t<n.length;t+=1){var r=n[t];if(!this.callbackDispatchedThisFrame[r]){this.callbackDispatchedThisFrame[r]=!0;var a=this.images[r];d(a)&&this.updateImage(r,a)}}},n}(e.Evented),h=g,f=g,m=1e20;function g(e,t,n,r,a,i){this.fontSize=e||24,this.buffer=void 0===t?3:t,this.cutoff=r||.25,this.fontFamily=a||"sans-serif",this.fontWeight=i||"normal",this.radius=n||8;var o=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=o,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textBaseline="middle",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(o*o),this.gridInner=new Float64Array(o*o),this.f=new Float64Array(o),this.d=new Float64Array(o),this.z=new Float64Array(o+1),this.v=new Int16Array(o),this.middle=Math.round(o/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function y(e,t,n,r,a,i,o){for(var s=0;s<t;s++){for(var l=0;l<n;l++)r[l]=e[l*t+s];for(b(r,a,i,o,n),l=0;l<n;l++)e[l*t+s]=a[l]}for(l=0;l<n;l++){for(s=0;s<t;s++)r[s]=e[l*t+s];for(b(r,a,i,o,t),s=0;s<t;s++)e[l*t+s]=Math.sqrt(a[s])}}function b(e,t,n,r,a){n[0]=0,r[0]=-m,r[1]=+m;for(var i=1,o=0;i<a;i++){for(var s=(e[i]+i*i-(e[n[o]]+n[o]*n[o]))/(2*i-2*n[o]);s<=r[o];)o--,s=(e[i]+i*i-(e[n[o]]+n[o]*n[o]))/(2*i-2*n[o]);n[++o]=i,r[o]=s,r[o+1]=+m}for(i=0,o=0;i<a;i++){for(;r[o+1]<i;)o++;t[i]=(i-n[o])*(i-n[o])+e[n[o]]}}g.prototype.draw=function(e){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(e,this.buffer,this.middle);for(var t=this.ctx.getImageData(0,0,this.size,this.size),n=new Uint8ClampedArray(this.size*this.size),r=0;r<this.size*this.size;r++){var a=t.data[4*r+3]/255;this.gridOuter[r]=1===a?0:0===a?m:Math.pow(Math.max(0,.5-a),2),this.gridInner[r]=1===a?m:0===a?0:Math.pow(Math.max(0,a-.5),2)}for(y(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),y(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),r=0;r<this.size*this.size;r++){var i=this.gridOuter[r]-this.gridInner[r];n[r]=Math.max(0,Math.min(255,Math.round(255-255*(i/this.radius+this.cutoff))))}return n},h.default=f;var v=function(e,t){this.requestManager=e,this.localIdeographFontFamily=t,this.entries={}};v.prototype.setURL=function(e){this.url=e},v.prototype.getGlyphs=function(t,n){var r=this,a=[];for(var i in t)for(var o=0,s=t[i];o<s.length;o+=1){var l=s[o];a.push({stack:i,id:l})}e.asyncAll(a,function(e,t){var n=e.stack,a=e.id,i=r.entries[n];i||(i=r.entries[n]={glyphs:{},requests:{},ranges:{}});var o=i.glyphs[a];if(void 0===o){if(o=r._tinySDF(i,n,a))return i.glyphs[a]=o,void t(null,{stack:n,id:a,glyph:o});var s=Math.floor(a/256);if(256*s>65535)t(new Error("glyphs > 65535 not supported"));else if(i.ranges[s])t(null,{stack:n,id:a,glyph:o});else{var l=i.requests[s];l||(l=i.requests[s]=[],v.loadGlyphRange(n,s,r.url,r.requestManager,function(e,t){if(t){for(var n in t)r._doesCharSupportLocalGlyph(+n)||(i.glyphs[+n]=t[+n]);i.ranges[s]=!0}for(var a=0,o=l;a<o.length;a+=1)(0,o[a])(e,t);delete i.requests[s]})),l.push(function(e,r){e?t(e):r&&t(null,{stack:n,id:a,glyph:r[a]||null})})}}else t(null,{stack:n,id:a,glyph:o})},function(e,t){if(e)n(e);else if(t){for(var r={},a=0,i=t;a<i.length;a+=1){var o=i[a],s=o.stack,l=o.id,c=o.glyph;(r[s]||(r[s]={}))[l]=c&&{id:c.id,bitmap:c.bitmap.clone(),metrics:c.metrics}}n(null,r)}})},v.prototype._doesCharSupportLocalGlyph=function(t){return!!this.localIdeographFontFamily&&(e.isChar["CJK Unified Ideographs"](t)||e.isChar["Hangul Syllables"](t)||e.isChar.Hiragana(t)||e.isChar.Katakana(t))},v.prototype._tinySDF=function(t,n,r){var a=this.localIdeographFontFamily;if(a&&this._doesCharSupportLocalGlyph(r)){var i=t.tinySDF;if(!i){var o="400";/bold/i.test(n)?o="900":/medium/i.test(n)?o="500":/light/i.test(n)&&(o="200"),i=t.tinySDF=new v.TinySDF(24,3,8,.25,a,o)}return{id:r,bitmap:new e.AlphaImage({width:30,height:30},i.draw(String.fromCharCode(r))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},v.loadGlyphRange=function(t,n,r,a,i){var o=256*n,s=o+255,l=a.transformRequest(a.normalizeGlyphsURL(r).replace("{fontstack}",t).replace("{range}",o+"-"+s),e.ResourceType.Glyphs);e.getArrayBuffer(l,function(t,n){if(t)i(t);else if(n){for(var r={},a=0,o=e.parseGlyphPBF(n);a<o.length;a+=1){var s=o[a];r[s.id]=s}i(null,r)}})},v.TinySDF=h;var M=function(){this.specification=e.styleSpec.light.position};M.prototype.possiblyEvaluate=function(t,n){return e.sphericalToCartesian(t.expression.evaluate(n))},M.prototype.interpolate=function(t,n,r){return{x:e.number(t.x,n.x,r),y:e.number(t.y,n.y,r),z:e.number(t.z,n.z,r)}};var x=new e.Properties({anchor:new e.DataConstantProperty(e.styleSpec.light.anchor),position:new M,color:new e.DataConstantProperty(e.styleSpec.light.color),intensity:new e.DataConstantProperty(e.styleSpec.light.intensity)}),z="-transition",_=function(t){function n(n){t.call(this),this._transitionable=new e.Transitionable(x),this.setLight(n),this._transitioning=this._transitionable.untransitioned()}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.getLight=function(){return this._transitionable.serialize()},n.prototype.setLight=function(t,n){if(void 0===n&&(n={}),!this._validate(e.validateLight,t,n))for(var r in t){var a=t[r];e.endsWith(r,z)?this._transitionable.setTransition(r.slice(0,-11),a):this._transitionable.setValue(r,a)}},n.prototype.updateTransitions=function(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)},n.prototype.hasTransition=function(){return this._transitioning.hasTransition()},n.prototype.recalculate=function(e){this.properties=this._transitioning.possiblyEvaluate(e)},n.prototype._validate=function(t,n,r){return(!r||!1!==r.validate)&&e.emitValidationErrors(this,t.call(e.validateStyle,e.extend({value:n,style:{glyphs:!0,sprite:!0},styleSpec:e.styleSpec})))},n}(e.Evented),A=function(e,t){this.width=e,this.height=t,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}};A.prototype.getDash=function(e,t){var n=e.join(",")+String(t);return this.dashEntry[n]||(this.dashEntry[n]=this.addDash(e,t)),this.dashEntry[n]},A.prototype.getDashRanges=function(e,t,n){var r=[],a=e.length%2==1?-e[e.length-1]*n:0,i=e[0]*n,o=!0;r.push({left:a,right:i,isDash:o,zeroLength:0===e[0]});for(var s=e[0],l=1;l<e.length;l++){o=!o;var c=e[l];a=s*n,i=(s+=c)*n,r.push({left:a,right:i,isDash:o,zeroLength:0===c})}return r},A.prototype.addRoundDash=function(e,t,n){for(var r=t/2,a=-n;a<=n;a++)for(var i=this.nextRow+n+a,o=this.width*i,s=0,l=e[s],c=0;c<this.width;c++){c/l.right>1&&(l=e[++s]);var u=Math.abs(c-l.left),d=Math.abs(c-l.right),p=Math.min(u,d),h=void 0,f=a/n*(r+1);if(l.isDash){var m=r-Math.abs(f);h=Math.sqrt(p*p+m*m)}else h=r-Math.sqrt(p*p+f*f);this.data[o+c]=Math.max(0,Math.min(255,h+128))}},A.prototype.addRegularDash=function(e){for(var t=e.length-1;t>=0;--t){var n=e[t],r=e[t+1];n.zeroLength?e.splice(t,1):r&&r.isDash===n.isDash&&(r.left=n.left,e.splice(t,1))}var a=e[0],i=e[e.length-1];a.isDash===i.isDash&&(a.left=i.left-this.width,i.right=a.right+this.width);for(var o=this.width*this.nextRow,s=0,l=e[s],c=0;c<this.width;c++){c/l.right>1&&(l=e[++s]);var u=Math.abs(c-l.left),d=Math.abs(c-l.right),p=Math.min(u,d),h=l.isDash?p:-p;this.data[o+c]=Math.max(0,Math.min(255,h+128))}},A.prototype.addDash=function(t,n){var r=n?7:0,a=2*r+1;if(this.nextRow+a>this.height)return e.warnOnce("LineAtlas out of space"),null;for(var i=0,o=0;o<t.length;o++)i+=t[o];if(0!==i){var s=this.width/i,l=this.getDashRanges(t,this.width,s);n?this.addRoundDash(l,s,r):this.addRegularDash(l)}var c={y:(this.nextRow+r+.5)/this.height,height:2*r/this.height,width:i};return this.nextRow+=a,this.dirty=!0,c},A.prototype.bind=function(e){var t=e.gl;this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.ALPHA,t.UNSIGNED_BYTE,this.data))):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,this.width,this.height,0,t.ALPHA,t.UNSIGNED_BYTE,this.data))};var O=function t(n,r){this.workerPool=n,this.actors=[],this.currentActor=0,this.id=e.uniqueId();for(var a=this.workerPool.acquire(this.id),i=0;i<a.length;i++){var o=a[i],s=new t.Actor(o,r,this.id);s.name="Worker "+i,this.actors.push(s)}};function w(t,n,r){var a=function(a,i){if(a)return r(a);if(i){var o=e.pick(e.extend(i,t),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);i.vector_layers&&(o.vectorLayers=i.vector_layers,o.vectorLayerIds=o.vectorLayers.map(function(e){return e.id})),o.tiles=n.canonicalizeTileset(o,t.url),r(null,o)}};return t.url?e.getJSON(n.transformRequest(n.normalizeSourceURL(t.url),e.ResourceType.Source),a):e.browser.frame(function(){return a(null,t)})}O.prototype.broadcast=function(t,n,r){r=r||function(){},e.asyncAll(this.actors,function(e,r){e.send(t,n,r)},r)},O.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},O.prototype.remove=function(){this.actors.forEach(function(e){e.remove()}),this.actors=[],this.workerPool.release(this.id)},O.Actor=e.Actor;var k=function(t,n,r){this.bounds=e.LngLatBounds.convert(this.validateBounds(t)),this.minzoom=n||0,this.maxzoom=r||24};k.prototype.validateBounds=function(e){return Array.isArray(e)&&4===e.length?[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]:[-180,-90,180,90]},k.prototype.contains=function(t){var n=Math.pow(2,t.z),r=Math.floor(e.mercatorXfromLng(this.bounds.getWest())*n),a=Math.floor(e.mercatorYfromLat(this.bounds.getNorth())*n),i=Math.ceil(e.mercatorXfromLng(this.bounds.getEast())*n),o=Math.ceil(e.mercatorYfromLat(this.bounds.getSouth())*n);return t.x>=r&&t.x<i&&t.y>=a&&t.y<o};var T=function(t){function n(n,r,a,i){if(t.call(this),this.id=n,this.dispatcher=a,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,e.extend(this,e.pick(r,["url","scheme","tileSize","promoteId"])),this._options=e.extend({type:"vector"},r),this._collectResourceTiming=r.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(i)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.load=function(){var t=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=w(this._options,this.map._requestManager,function(n,r){t._tileJSONRequest=null,t._loaded=!0,n?t.fire(new e.ErrorEvent(n)):r&&(e.extend(t,r),r.bounds&&(t.tileBounds=new k(r.bounds,t.minzoom,t.maxzoom)),e.postTurnstileEvent(r.tiles,t.map._requestManager._customAccessToken),e.postMapLoadEvent(r.tiles,t.map._getMapId(),t.map._requestManager._skuToken,t.map._requestManager._customAccessToken),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))})},n.prototype.loaded=function(){return this._loaded},n.prototype.hasTile=function(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.setSourceProperty=function(e){this._tileJSONRequest&&this._tileJSONRequest.cancel(),e(),this.map.style.sourceCaches[this.id].clearTiles(),this.load()},n.prototype.setTiles=function(e){var t=this;return this.setSourceProperty(function(){t._options.tiles=e}),this},n.prototype.setUrl=function(e){var t=this;return this.setSourceProperty(function(){t.url=e,t._options.url=e}),this},n.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},n.prototype.serialize=function(){return e.extend({},this._options)},n.prototype.loadTile=function(t,n){var r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme)),a={request:this.map._requestManager.transformRequest(r,e.ResourceType.Tile),uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:e.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function i(r,a){return delete t.request,t.aborted?n(null):r&&404!==r.status?n(r):(a&&a.resourceTiming&&(t.resourceTiming=a.resourceTiming),this.map._refreshExpiredTiles&&a&&t.setExpiryData(a),t.loadVectorData(a,this.map.painter),e.cacheEntryPossiblyAdded(this.dispatcher),n(null),void(t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)))}a.request.collectResourceTiming=this._collectResourceTiming,t.actor&&"expired"!==t.state?"loading"===t.state?t.reloadCallback=n:t.request=t.actor.send("reloadTile",a,i.bind(this)):(t.actor=this.dispatcher.getActor(),t.request=t.actor.send("loadTile",a,i.bind(this)))},n.prototype.abortTile=function(e){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.type,source:this.id},void 0)},n.prototype.unloadTile=function(e){e.unloadVectorData(),e.actor&&e.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id},void 0)},n.prototype.hasTransition=function(){return!1},n}(e.Evented),S=function(t){function n(n,r,a,i){t.call(this),this.id=n,this.dispatcher=a,this.setEventedParent(i),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=e.extend({type:"raster"},r),e.extend(this,e.pick(r,["url","scheme","tileSize"]))}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.load=function(){var t=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=w(this._options,this.map._requestManager,function(n,r){t._tileJSONRequest=null,t._loaded=!0,n?t.fire(new e.ErrorEvent(n)):r&&(e.extend(t,r),r.bounds&&(t.tileBounds=new k(r.bounds,t.minzoom,t.maxzoom)),e.postTurnstileEvent(r.tiles),e.postMapLoadEvent(r.tiles,t.map._getMapId(),t.map._requestManager._skuToken),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))})},n.prototype.loaded=function(){return this._loaded},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},n.prototype.serialize=function(){return e.extend({},this._options)},n.prototype.hasTile=function(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)},n.prototype.loadTile=function(t,n){var r=this,a=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);t.request=e.getImage(this.map._requestManager.transformRequest(a,e.ResourceType.Tile),function(a,i){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(a)t.state="errored",n(a);else if(i){r.map._refreshExpiredTiles&&t.setExpiryData(i),delete i.cacheControl,delete i.expires;var o=r.map.painter.context,s=o.gl;t.texture=r.map.painter.getTileTexture(i.width),t.texture?t.texture.update(i,{useMipmap:!0}):(t.texture=new e.Texture(o,i,s.RGBA,{useMipmap:!0}),t.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),o.extTextureFilterAnisotropic&&s.texParameterf(s.TEXTURE_2D,o.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,o.extTextureFilterAnisotropicMax)),t.state="loaded",e.cacheEntryPossiblyAdded(r.dispatcher),n(null)}})},n.prototype.abortTile=function(e,t){e.request&&(e.request.cancel(),delete e.request),t()},n.prototype.unloadTile=function(e,t){e.texture&&this.map.painter.saveTileTexture(e.texture),t()},n.prototype.hasTransition=function(){return!1},n}(e.Evented),C=function(t){function n(n,r,a,i){t.call(this,n,r,a,i),this.type="raster-dem",this.maxzoom=22,this._options=e.extend({type:"raster-dem"},r),this.encoding=r.encoding||"mapbox"}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.serialize=function(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},n.prototype.loadTile=function(t,n){var r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);function a(e,r){e&&(t.state="errored",n(e)),r&&(t.dem=r,t.needsHillshadePrepare=!0,t.state="loaded",n(null))}t.request=e.getImage(this.map._requestManager.transformRequest(r,e.ResourceType.Tile),function(r,i){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(r)t.state="errored",n(r);else if(i){this.map._refreshExpiredTiles&&t.setExpiryData(i),delete i.cacheControl,delete i.expires;var o=e.window.ImageBitmap&&i instanceof e.window.ImageBitmap&&e.offscreenCanvasSupported()?i:e.browser.getImageData(i,1),s={uid:t.uid,coord:t.tileID,source:this.id,rawImageData:o,encoding:this.encoding};(!t.actor||"expired"===t.state)&&(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",s,a.bind(this)))}}.bind(this)),t.neighboringTiles=this._getNeighboringTiles(t.tileID)},n.prototype._getNeighboringTiles=function(t){var n=t.canonical,r=Math.pow(2,n.z),a=(n.x-1+r)%r,i=0===n.x?t.wrap-1:t.wrap,o=(n.x+1+r)%r,s=n.x+1===r?t.wrap+1:t.wrap,l={};return l[new e.OverscaledTileID(t.overscaledZ,i,n.z,a,n.y).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,s,n.z,o,n.y).key]={backfilled:!1},n.y>0&&(l[new e.OverscaledTileID(t.overscaledZ,i,n.z,a,n.y-1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,s,n.z,o,n.y-1).key]={backfilled:!1}),n.y+1<r&&(l[new e.OverscaledTileID(t.overscaledZ,i,n.z,a,n.y+1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y+1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,s,n.z,o,n.y+1).key]={backfilled:!1}),l},n.prototype.unloadTile=function(e){e.demTexture&&this.map.painter.saveTileTexture(e.demTexture),e.fbo&&(e.fbo.destroy(),delete e.fbo),e.dem&&delete e.dem,delete e.neighboringTiles,e.state="unloaded",e.actor&&e.actor.send("removeDEMTile",{uid:e.uid,source:this.id})},n}(S),E=function(t){function n(n,r,a,i){t.call(this),this.id=n,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=a.getActor(),this.setEventedParent(i),this._data=r.data,this._options=e.extend({},r),this._collectResourceTiming=r.collectResourceTiming,this._resourceTiming=[],void 0!==r.maxzoom&&(this.maxzoom=r.maxzoom),r.type&&(this.type=r.type),r.attribution&&(this.attribution=r.attribution),this.promoteId=r.promoteId;var o=e.EXTENT/this.tileSize;this.workerOptions=e.extend({source:this.id,cluster:r.cluster||!1,geojsonVtOptions:{buffer:(void 0!==r.buffer?r.buffer:128)*o,tolerance:(void 0!==r.tolerance?r.tolerance:.375)*o,extent:e.EXTENT,maxZoom:this.maxzoom,lineMetrics:r.lineMetrics||!1,generateId:r.generateId||!1},superclusterOptions:{maxZoom:void 0!==r.clusterMaxZoom?Math.min(r.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,minPoints:Math.max(2,r.clusterMinPoints||2),extent:e.EXTENT,radius:(r.clusterRadius||50)*o,log:!1,generateId:r.generateId||!1},clusterProperties:r.clusterProperties,filter:r.filter},r.workerOptions)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.load=function(){var t=this;this.fire(new e.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(n){if(n)t.fire(new e.ErrorEvent(n));else{var r={dataType:"source",sourceDataType:"metadata"};t._collectResourceTiming&&t._resourceTiming&&t._resourceTiming.length>0&&(r.resourceTiming=t._resourceTiming,t._resourceTiming=[]),t.fire(new e.Event("data",r))}})},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.setData=function(t){var n=this;return this._data=t,this.fire(new e.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(t){if(t)n.fire(new e.ErrorEvent(t));else{var r={dataType:"source",sourceDataType:"content"};n._collectResourceTiming&&n._resourceTiming&&n._resourceTiming.length>0&&(r.resourceTiming=n._resourceTiming,n._resourceTiming=[]),n.fire(new e.Event("data",r))}}),this},n.prototype.getClusterExpansionZoom=function(e,t){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:e,source:this.id},t),this},n.prototype.getClusterChildren=function(e,t){return this.actor.send("geojson.getClusterChildren",{clusterId:e,source:this.id},t),this},n.prototype.getClusterLeaves=function(e,t,n,r){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:e,limit:t,offset:n},r),this},n.prototype._updateWorkerData=function(t){var n=this;this._loaded=!1;var r=e.extend({},this.workerOptions),a=this._data;"string"==typeof a?(r.request=this.map._requestManager.transformRequest(e.browser.resolveURL(a),e.ResourceType.Source),r.request.collectResourceTiming=this._collectResourceTiming):r.data=JSON.stringify(a),this.actor.send(this.type+".loadData",r,function(e,a){n._removed||a&&a.abandoned||(n._loaded=!0,a&&a.resourceTiming&&a.resourceTiming[n.id]&&(n._resourceTiming=a.resourceTiming[n.id].slice(0)),n.actor.send(n.type+".coalesce",{source:r.source},null),t(e))})},n.prototype.loaded=function(){return this._loaded},n.prototype.loadTile=function(t,n){var r=this,a=t.actor?"reloadTile":"loadTile";t.actor=this.actor;var i={type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:e.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};t.request=this.actor.send(a,i,function(e,i){return delete t.request,t.unloadVectorData(),t.aborted?n(null):e?n(e):(t.loadVectorData(i,r.map.painter,"reloadTile"===a),n(null))})},n.prototype.abortTile=function(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0},n.prototype.unloadTile=function(e){e.unloadVectorData(),this.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id})},n.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},n.prototype.serialize=function(){return e.extend({},this._options,{type:this.type,data:this._data})},n.prototype.hasTransition=function(){return!1},n}(e.Evented),q=e.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),D=function(t){function n(e,n,r,a){t.call(this),this.id=e,this.dispatcher=r,this.coordinates=n.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(a),this.options=n}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.load=function(t,n){var r=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this.url=this.options.url,e.getImage(this.map._requestManager.transformRequest(this.url,e.ResourceType.Image),function(a,i){r._loaded=!0,a?r.fire(new e.ErrorEvent(a)):i&&(r.image=i,t&&(r.coordinates=t),n&&n(),r._finishLoading())})},n.prototype.loaded=function(){return this._loaded},n.prototype.updateImage=function(e){var t=this;return this.image&&e.url?(this.options.url=e.url,this.load(e.coordinates,function(){t.texture=null}),this):this},n.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})))},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.setCoordinates=function(t){var n=this;this.coordinates=t;var r=t.map(e.MercatorCoordinate.fromLngLat);this.tileID=function(t){for(var n=1/0,r=1/0,a=-1/0,i=-1/0,o=0,s=t;o<s.length;o+=1){var l=s[o];n=Math.min(n,l.x),r=Math.min(r,l.y),a=Math.max(a,l.x),i=Math.max(i,l.y)}var c=a-n,u=i-r,d=Math.max(c,u),p=Math.max(0,Math.floor(-Math.log(d)/Math.LN2)),h=Math.pow(2,p);return new e.CanonicalTileID(p,Math.floor((n+a)/2*h),Math.floor((r+i)/2*h))}(r),this.minzoom=this.maxzoom=this.tileID.z;var a=r.map(function(e){return n.tileID.getTilePoint(e)._round()});return this._boundsArray=new e.StructArrayLayout4i8,this._boundsArray.emplaceBack(a[0].x,a[0].y,0,0),this._boundsArray.emplaceBack(a[1].x,a[1].y,e.EXTENT,0),this._boundsArray.emplaceBack(a[3].x,a[3].y,0,e.EXTENT),this._boundsArray.emplaceBack(a[2].x,a[2].y,e.EXTENT,e.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})),this},n.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&&this.image){var t=this.map.painter.context,n=t.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,q.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new e.Texture(t,this.image,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this.tiles){var a=this.tiles[r];"loaded"!==a.state&&(a.state="loaded",a.texture=this.texture)}}},n.prototype.loadTile=function(e,t){this.tileID&&this.tileID.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={},t(null)):(e.state="errored",t(null))},n.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},n.prototype.hasTransition=function(){return!1},n}(e.Evented),R=function(t){function n(e,n,r,a){t.call(this,e,n,r,a),this.roundZoom=!0,this.type="video",this.options=n}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.load=function(){var t=this;this._loaded=!1;var n=this.options;this.urls=[];for(var r=0,a=n.urls;r<a.length;r+=1){var i=a[r];this.urls.push(this.map._requestManager.transformRequest(i,e.ResourceType.Source).url)}e.getVideo(this.urls,function(n,r){t._loaded=!0,n?t.fire(new e.ErrorEvent(n)):r&&(t.video=r,t.video.loop=!0,t.video.addEventListener("playing",function(){t.map.triggerRepaint()}),t.map&&t.video.play(),t._finishLoading())})},n.prototype.pause=function(){this.video&&this.video.pause()},n.prototype.play=function(){this.video&&this.video.play()},n.prototype.seek=function(t){if(this.video){var n=this.video.seekable;t<n.start(0)||t>n.end(0)?this.fire(new e.ErrorEvent(new e.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+n.start(0)+" and "+n.end(0)+"-second mark."))):this.video.currentTime=t}},n.prototype.getVideo=function(){return this.video},n.prototype.onAdd=function(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},n.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var t=this.map.painter.context,n=t.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,q.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new e.Texture(t,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this.tiles){var a=this.tiles[r];"loaded"!==a.state&&(a.state="loaded",a.texture=this.texture)}}},n.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},n.prototype.hasTransition=function(){return this.video&&!this.video.paused},n}(D),L=function(t){function n(n,r,a,i){t.call(this,n,r,a,i),r.coordinates?(!Array.isArray(r.coordinates)||4!==r.coordinates.length||r.coordinates.some(function(e){return!Array.isArray(e)||2!==e.length||e.some(function(e){return"number"!=typeof e})}))&&this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'missing required property "coordinates"'))),r.animate&&"boolean"!=typeof r.animate&&this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'optional "animate" property must be a boolean value'))),r.canvas?"string"!=typeof r.canvas&&!(r.canvas instanceof e.window.HTMLCanvasElement)&&this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'missing required property "canvas"'))),this.options=r,this.animate=void 0===r.animate||r.animate}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof e.window.HTMLCanvasElement?this.options.canvas:e.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},n.prototype.getCanvas=function(){return this.canvas},n.prototype.onAdd=function(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()},n.prototype.onRemove=function(){this.pause()},n.prototype.prepare=function(){var t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var n=this.map.painter.context,r=n.gl;for(var a in this.boundsBuffer||(this.boundsBuffer=n.createVertexBuffer(this._boundsArray,q.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new e.Texture(n,this.canvas,r.RGBA,{premultiply:!0}),this.tiles){var i=this.tiles[a];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},n.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},n.prototype.hasTransition=function(){return this._playing},n.prototype._hasInvalidDimensions=function(){for(var e=0,t=[this.canvas.width,this.canvas.height];e<t.length;e+=1){var n=t[e];if(isNaN(n)||n<=0)return!0}return!1},n}(D),I={vector:T,raster:S,"raster-dem":C,geojson:E,video:R,image:D,canvas:L};function W(t,n){var r=e.identity([]);return e.translate(r,r,[1,1,0]),e.scale(r,r,[.5*t.width,.5*t.height,1]),e.multiply(r,r,t.calculatePosMatrix(n.toUnwrapped()))}function N(e,t,n,r,a,i){var o=function(e,t,n){if(e)for(var r=0,a=e;r<a.length;r+=1){var i=t[a[r]];if(i&&i.source===n&&"fill-extrusion"===i.type)return!0}else for(var o in t){var s=t[o];if(s.source===n&&"fill-extrusion"===s.type)return!0}return!1}(a&&a.layers,t,e.id),s=i.maxPitchScaleFactor(),l=e.tilesIn(r,s,o);l.sort(P);for(var c=[],u=0,d=l;u<d.length;u+=1){var p=d[u];c.push({wrappedTileID:p.tileID.wrapped().key,queryResults:p.tile.queryRenderedFeatures(t,n,e._state,p.queryGeometry,p.cameraQueryGeometry,p.scale,a,i,s,W(e.transform,p.tileID))})}var h=function(e){for(var t={},n={},r=0,a=e;r<a.length;r+=1){var i=a[r],o=i.queryResults,s=i.wrappedTileID,l=n[s]=n[s]||{};for(var c in o)for(var u=o[c],d=l[c]=l[c]||{},p=t[c]=t[c]||[],h=0,f=u;h<f.length;h+=1){var m=f[h];d[m.featureIndex]||(d[m.featureIndex]=!0,p.push(m))}}return t}(c);for(var f in h)h[f].forEach(function(t){var n=t.feature,r=e.getFeatureState(n.layer["source-layer"],n.id);n.source=n.layer.source,n.layer["source-layer"]&&(n.sourceLayer=n.layer["source-layer"]),n.state=r});return h}function P(e,t){var n=e.tileID,r=t.tileID;return n.overscaledZ-r.overscaledZ||n.canonical.y-r.canonical.y||n.wrap-r.wrap||n.canonical.x-r.canonical.x}var B=function(e,t){this.max=e,this.onRemove=t,this.reset()};B.prototype.reset=function(){for(var e in this.data)for(var t=0,n=this.data[e];t<n.length;t+=1){var r=n[t];r.timeout&&clearTimeout(r.timeout),this.onRemove(r.value)}return this.data={},this.order=[],this},B.prototype.add=function(e,t,n){var r=this,a=e.wrapped().key;void 0===this.data[a]&&(this.data[a]=[]);var i={value:t,timeout:void 0};if(void 0!==n&&(i.timeout=setTimeout(function(){r.remove(e,i)},n)),this.data[a].push(i),this.order.push(a),this.order.length>this.max){var o=this._getAndRemoveByKey(this.order[0]);o&&this.onRemove(o)}return this},B.prototype.has=function(e){return e.wrapped().key in this.data},B.prototype.getAndRemove=function(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null},B.prototype._getAndRemoveByKey=function(e){var t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value},B.prototype.getByKey=function(e){var t=this.data[e];return t?t[0].value:null},B.prototype.get=function(e){return this.has(e)?this.data[e.wrapped().key][0].value:null},B.prototype.remove=function(e,t){if(!this.has(e))return this;var n=e.wrapped().key,r=void 0===t?0:this.data[n].indexOf(t),a=this.data[n][r];return this.data[n].splice(r,1),a.timeout&&clearTimeout(a.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(a.value),this.order.splice(this.order.indexOf(n),1),this},B.prototype.setMaxSize=function(e){for(this.max=e;this.order.length>this.max;){var t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this},B.prototype.filter=function(e){var t=[];for(var n in this.data)for(var r=0,a=this.data[n];r<a.length;r+=1){var i=a[r];e(i.value)||t.push(i)}for(var o=0,s=t;o<s.length;o+=1){var l=s[o];this.remove(l.value.tileID,l)}};var F=function(e,t,n){this.context=e;var r=e.gl;this.buffer=r.createBuffer(),this.dynamicDraw=!!n,this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),r.bufferData(r.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer};F.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},F.prototype.updateData=function(e){var t=this.context.gl;this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)},F.prototype.destroy=function(){var e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)};var j={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},U=function(e,t,n,r){this.length=t.length,this.attributes=n,this.itemSize=t.bytesPerElement,this.dynamicDraw=r,this.context=e;var a=e.gl;this.buffer=a.createBuffer(),e.bindVertexBuffer.set(this.buffer),a.bufferData(a.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?a.DYNAMIC_DRAW:a.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer};U.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},U.prototype.updateData=function(e){var t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)},U.prototype.enableAttributes=function(e,t){for(var n=0;n<this.attributes.length;n++){var r=this.attributes[n],a=t.attributes[r.name];void 0!==a&&e.enableVertexAttribArray(a)}},U.prototype.setVertexAttribPointers=function(e,t,n){for(var r=0;r<this.attributes.length;r++){var a=this.attributes[r],i=t.attributes[a.name];void 0!==i&&e.vertexAttribPointer(i,a.components,e[j[a.type]],!1,this.itemSize,a.offset+this.itemSize*(n||0))}},U.prototype.destroy=function(){var e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)};var V=function(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};V.prototype.get=function(){return this.current},V.prototype.set=function(e){},V.prototype.getDefault=function(){return this.default},V.prototype.setDefault=function(){this.set(this.default)};var H=function(t){function n(){t.apply(this,arguments)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.getDefault=function(){return e.Color.transparent},n.prototype.set=function(e){var t=this.current;e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a&&!this.dirty||(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)},n}(V),X=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return 1},t.prototype.set=function(e){e===this.current&&!this.dirty||(this.gl.clearDepth(e),this.current=e,this.dirty=!1)},t}(V),G=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return 0},t.prototype.set=function(e){e===this.current&&!this.dirty||(this.gl.clearStencil(e),this.current=e,this.dirty=!1)},t}(V),Y=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return[!0,!0,!0,!0]},t.prototype.set=function(e){var t=this.current;e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&!this.dirty||(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)},t}(V),Z=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!0},t.prototype.set=function(e){e===this.current&&!this.dirty||(this.gl.depthMask(e),this.current=e,this.dirty=!1)},t}(V),$=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return 255},t.prototype.set=function(e){e===this.current&&!this.dirty||(this.gl.stencilMask(e),this.current=e,this.dirty=!1)},t}(V),J=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},t.prototype.set=function(e){var t=this.current;e.func===t.func&&e.ref===t.ref&&e.mask===t.mask&&!this.dirty||(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)},t}(V),Q=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){var e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]},t.prototype.set=function(e){var t=this.current;e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&!this.dirty||(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)},t}(V),K=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}},t}(V),ee=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return[0,1]},t.prototype.set=function(e){var t=this.current;e[0]===t[0]&&e[1]===t[1]&&!this.dirty||(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)},t}(V),te=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}},t}(V),ne=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return this.gl.LESS},t.prototype.set=function(e){e===this.current&&!this.dirty||(this.gl.depthFunc(e),this.current=e,this.dirty=!1)},t}(V),re=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}},t}(V),ae=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){var e=this.gl;return[e.ONE,e.ZERO]},t.prototype.set=function(e){var t=this.current;e[0]===t[0]&&e[1]===t[1]&&!this.dirty||(this.gl.blendFunc(e[0],e[1]),this.current=e,this.dirty=!1)},t}(V),ie=function(t){function n(){t.apply(this,arguments)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.getDefault=function(){return e.Color.transparent},n.prototype.set=function(e){var t=this.current;e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a&&!this.dirty||(this.gl.blendColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)},n}(V),oe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return this.gl.FUNC_ADD},t.prototype.set=function(e){e===this.current&&!this.dirty||(this.gl.blendEquation(e),this.current=e,this.dirty=!1)},t}(V),se=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}},t}(V),le=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return this.gl.BACK},t.prototype.set=function(e){e===this.current&&!this.dirty||(this.gl.cullFace(e),this.current=e,this.dirty=!1)},t}(V),ce=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return this.gl.CCW},t.prototype.set=function(e){e===this.current&&!this.dirty||(this.gl.frontFace(e),this.current=e,this.dirty=!1)},t}(V),ue=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){e===this.current&&!this.dirty||(this.gl.useProgram(e),this.current=e,this.dirty=!1)},t}(V),de=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return this.gl.TEXTURE0},t.prototype.set=function(e){e===this.current&&!this.dirty||(this.gl.activeTexture(e),this.current=e,this.dirty=!1)},t}(V),pe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){var e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]},t.prototype.set=function(e){var t=this.current;e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&!this.dirty||(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)},t}(V),he=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}},t}(V),fe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},t}(V),me=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}},t}(V),ge=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},t}(V),ye=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){var t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1},t}(V),be=function(e){function t(t){e.call(this,t),this.vao=t.extVertexArrayObject}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){!this.vao||e===this.current&&!this.dirty||(this.vao.bindVertexArrayOES(e),this.current=e,this.dirty=!1)},t}(V),ve=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return 4},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}},t}(V),Me=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}},t}(V),xe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}},t}(V),ze=function(e){function t(t,n){e.call(this,t),this.context=t,this.parent=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t}(V),_e=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setDirty=function(){this.dirty=!0},t.prototype.set=function(e){if(e!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}},t}(ze),Ae=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){if(e!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},t}(ze),Oe=function(e,t,n,r){this.context=e,this.width=t,this.height=n;var a=e.gl,i=this.framebuffer=a.createFramebuffer();this.colorAttachment=new _e(e,i),r&&(this.depthAttachment=new Ae(e,i))};Oe.prototype.destroy=function(){var e=this.context.gl,t=this.colorAttachment.get();if(t&&e.deleteTexture(t),this.depthAttachment){var n=this.depthAttachment.get();n&&e.deleteRenderbuffer(n)}e.deleteFramebuffer(this.framebuffer)};var we=function(e,t,n){this.func=e,this.mask=t,this.range=n};we.ReadOnly=!1,we.ReadWrite=!0,we.disabled=new we(519,we.ReadOnly,[0,1]);var ke=7680,Te=function(e,t,n,r,a,i){this.test=e,this.ref=t,this.mask=n,this.fail=r,this.depthFail=a,this.pass=i};Te.disabled=new Te({func:519,mask:0},0,0,ke,ke,ke);var Se=function(e,t,n){this.blendFunction=e,this.blendColor=t,this.mask=n};Se.disabled=new Se(Se.Replace=[1,0],e.Color.transparent,[!1,!1,!1,!1]),Se.unblended=new Se(Se.Replace,e.Color.transparent,[!0,!0,!0,!0]),Se.alphaBlended=new Se([1,771],e.Color.transparent,[!0,!0,!0,!0]);var Ce=function(e,t,n){this.enable=e,this.mode=t,this.frontFace=n};Ce.disabled=new Ce(!1,1029,2305),Ce.backCCW=new Ce(!0,1029,2305);var Ee=function(e){this.gl=e,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new H(this),this.clearDepth=new X(this),this.clearStencil=new G(this),this.colorMask=new Y(this),this.depthMask=new Z(this),this.stencilMask=new $(this),this.stencilFunc=new J(this),this.stencilOp=new Q(this),this.stencilTest=new K(this),this.depthRange=new ee(this),this.depthTest=new te(this),this.depthFunc=new ne(this),this.blend=new re(this),this.blendFunc=new ae(this),this.blendColor=new ie(this),this.blendEquation=new oe(this),this.cullFace=new se(this),this.cullFaceSide=new le(this),this.frontFace=new ce(this),this.program=new ue(this),this.activeTexture=new de(this),this.viewport=new pe(this),this.bindFramebuffer=new he(this),this.bindRenderbuffer=new fe(this),this.bindTexture=new me(this),this.bindVertexBuffer=new ge(this),this.bindElementBuffer=new ye(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new be(this),this.pixelStoreUnpack=new ve(this),this.pixelStoreUnpackPremultiplyAlpha=new Me(this),this.pixelStoreUnpackFlipY=new xe(this),this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=e.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&(e.getExtension("OES_texture_half_float_linear"),this.extRenderToTextureHalfFloat=e.getExtension("EXT_color_buffer_half_float")),this.extTimerQuery=e.getExtension("EXT_disjoint_timer_query"),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE)};Ee.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},Ee.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},Ee.prototype.createIndexBuffer=function(e,t){return new F(this,e,t)},Ee.prototype.createVertexBuffer=function(e,t,n){return new U(this,e,t,n)},Ee.prototype.createRenderbuffer=function(e,t,n){var r=this.gl,a=r.createRenderbuffer();return this.bindRenderbuffer.set(a),r.renderbufferStorage(r.RENDERBUFFER,e,t,n),this.bindRenderbuffer.set(null),a},Ee.prototype.createFramebuffer=function(e,t,n){return new Oe(this,e,t,n)},Ee.prototype.clear=function(e){var t=e.color,n=e.depth,r=this.gl,a=0;t&&(a|=r.COLOR_BUFFER_BIT,this.clearColor.set(t),this.colorMask.set([!0,!0,!0,!0])),typeof n<"u"&&(a|=r.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(n),this.depthMask.set(!0)),r.clear(a)},Ee.prototype.setCullFace=function(e){!1===e.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))},Ee.prototype.setDepthMode=function(e){e.func!==this.gl.ALWAYS||e.mask?(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range)):this.depthTest.set(!1)},Ee.prototype.setStencilMode=function(e){e.test.func!==this.gl.ALWAYS||e.mask?(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask})):this.stencilTest.set(!1)},Ee.prototype.setColorMode=function(t){e.deepEqual(t.blendFunction,Se.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(t.blendFunction),this.blendColor.set(t.blendColor)),this.colorMask.set(t.mask)},Ee.prototype.unbindVAO=function(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)};var qe=function(t){function n(n,r,a){var i=this;t.call(this),this.id=n,this.dispatcher=a,this.on("data",function(e){"source"===e.dataType&&"metadata"===e.sourceDataType&&(i._sourceLoaded=!0),i._sourceLoaded&&!i._paused&&"source"===e.dataType&&"content"===e.sourceDataType&&(i.reload(),i.transform&&i.update(i.transform))}),this.on("error",function(){i._sourceErrored=!0}),this._source=function(t,n,r,a){var i=new I[n.type](t,n,r,a);if(i.id!==t)throw new Error("Expected Source id to be "+t+" instead of "+i.id);return e.bindAll(["load","abort","unload","serialize","prepare"],i),i}(n,r,a,this),this._tiles={},this._cache=new B(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new e.SourceFeatureState}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.onAdd=function(e){this.map=e,this._maxTileCacheSize=e?e._maxTileCacheSize:null,this._source&&this._source.onAdd&&this._source.onAdd(e)},n.prototype.onRemove=function(e){this._source&&this._source.onRemove&&this._source.onRemove(e)},n.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;for(var e in this._tiles){var t=this._tiles[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}return!0},n.prototype.getSource=function(){return this._source},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){if(this._paused){var e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform)}},n.prototype._loadTile=function(e,t){return this._source.loadTile(e,t)},n.prototype._unloadTile=function(e){if(this._source.unloadTile)return this._source.unloadTile(e,function(){})},n.prototype._abortTile=function(e){if(this._source.abortTile)return this._source.abortTile(e,function(){})},n.prototype.serialize=function(){return this._source.serialize()},n.prototype.prepare=function(e){for(var t in this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var n=this._tiles[t];n.upload(e),n.prepare(this.map.style.imageManager)}},n.prototype.getIds=function(){return e.values(this._tiles).map(function(e){return e.tileID}).sort(De).map(function(e){return e.key})},n.prototype.getRenderableIds=function(t){var n=this,r=[];for(var a in this._tiles)this._isIdRenderable(a,t)&&r.push(this._tiles[a]);return t?r.sort(function(t,r){var a=t.tileID,i=r.tileID,o=new e.Point(a.canonical.x,a.canonical.y)._rotate(n.transform.angle),s=new e.Point(i.canonical.x,i.canonical.y)._rotate(n.transform.angle);return a.overscaledZ-i.overscaledZ||s.y-o.y||s.x-o.x}).map(function(e){return e.tileID.key}):r.map(function(e){return e.tileID}).sort(De).map(function(e){return e.key})},n.prototype.hasRenderableParent=function(e){var t=this.findLoadedParent(e,0);return!!t&&this._isIdRenderable(t.tileID.key)},n.prototype._isIdRenderable=function(e,t){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(t||!this._tiles[e].holdingForFade())},n.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var e in this._cache.reset(),this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(e,"reloading")},n.prototype._reloadTile=function(e,t){var n=this._tiles[e];n&&("loading"!==n.state&&(n.state=t),this._loadTile(n,this._tileLoaded.bind(this,n,e,t)))},n.prototype._tileLoaded=function(t,n,r,a){if(a)return t.state="errored",void(404!==a.status?this._source.fire(new e.ErrorEvent(a,{tile:t})):this.update(this.transform));t.timeAdded=e.browser.now(),"expired"===r&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(n,t),"raster-dem"===this.getSource().type&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null),this._source.fire(new e.Event("data",{dataType:"source",tile:t,coord:t.tileID}))},n.prototype._backfillDEM=function(e){for(var t=this.getRenderableIds(),n=0;n<t.length;n++){var r=t[n];if(e.neighboringTiles&&e.neighboringTiles[r]){var a=this.getTileByID(r);i(e,a),i(a,e)}}function i(e,t){e.needsHillshadePrepare=!0;var n=t.tileID.canonical.x-e.tileID.canonical.x,r=t.tileID.canonical.y-e.tileID.canonical.y,a=Math.pow(2,e.tileID.canonical.z),i=t.tileID.key;0===n&&0===r||Math.abs(r)>1||(Math.abs(n)>1&&(1===Math.abs(n+a)?n+=a:1===Math.abs(n-a)&&(n-=a)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,n,r),e.neighboringTiles&&e.neighboringTiles[i]&&(e.neighboringTiles[i].backfilled=!0)))}},n.prototype.getTile=function(e){return this.getTileByID(e.key)},n.prototype.getTileByID=function(e){return this._tiles[e]},n.prototype._retainLoadedChildren=function(e,t,n,r){for(var a in this._tiles){var i=this._tiles[a];if(!(r[a]||!i.hasData()||i.tileID.overscaledZ<=t||i.tileID.overscaledZ>n)){for(var o=i.tileID;i&&i.tileID.overscaledZ>t+1;){var s=i.tileID.scaledTo(i.tileID.overscaledZ-1);(i=this._tiles[s.key])&&i.hasData()&&(o=s)}for(var l=o;l.overscaledZ>t;)if(e[(l=l.scaledTo(l.overscaledZ-1)).key]){r[o.key]=o;break}}}},n.prototype.findLoadedParent=function(e,t){if(e.key in this._loadedParentTiles){var n=this._loadedParentTiles[e.key];return n&&n.tileID.overscaledZ>=t?n:null}for(var r=e.overscaledZ-1;r>=t;r--){var a=e.scaledTo(r),i=this._getLoadedTile(a);if(i)return i}},n.prototype._getLoadedTile=function(e){var t=this._tiles[e.key];return t&&t.hasData()?t:this._cache.getByKey(e.wrapped().key)},n.prototype.updateCacheSize=function(e){var t=(Math.ceil(e.width/this._source.tileSize)+1)*(Math.ceil(e.height/this._source.tileSize)+1),n=Math.floor(5*t),r="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,n):n;this._cache.setMaxSize(r)},n.prototype.handleWrapJump=function(e){var t=(e-(void 0===this._prevLng?e:this._prevLng))/360,n=Math.round(t);if(this._prevLng=e,n){var r={};for(var a in this._tiles){var i=this._tiles[a];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+n),r[i.tileID.key]=i}for(var o in this._tiles=r,this._timers)clearTimeout(this._timers[o]),delete this._timers[o];for(var s in this._tiles){var l=this._tiles[s];this._setTileReloadTimer(s,l)}}},n.prototype.update=function(t){var r=this;if(this.transform=t,this._sourceLoaded&&!this._paused){var a;this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?a=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(t){return new e.OverscaledTileID(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y)}):(a=t.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(a=a.filter(function(e){return r._source.hasTile(e)}))):a=[];var i=t.coveringZoomLevel(this._source),o=Math.max(i-n.maxOverzooming,this._source.minzoom),s=Math.max(i+n.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(a,i);if(Re(this._source.type)){for(var c={},u={},d=0,p=Object.keys(l);d<p.length;d+=1){var h=p[d],f=l[h],m=this._tiles[h];if(m&&!(m.fadeEndTime&&m.fadeEndTime<=e.browser.now())){var g=this.findLoadedParent(f,o);g&&(this._addTile(g.tileID),c[g.tileID.key]=g.tileID),u[h]=f}}for(var y in this._retainLoadedChildren(u,i,s,l),c)l[y]||(this._coveredTiles[y]=!0,l[y]=c[y])}for(var b in l)this._tiles[b].clearFadeHold();for(var v=0,M=e.keysDifference(this._tiles,l);v<M.length;v+=1){var x=M[v],z=this._tiles[x];z.hasSymbolBuckets&&!z.holdingForFade()?z.setHoldDuration(this.map._fadeDuration):(!z.hasSymbolBuckets||z.symbolFadeFinished())&&this._removeTile(x)}this._updateLoadedParentTileCache()}},n.prototype.releaseSymbolFadeTiles=function(){for(var e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(e)},n.prototype._updateRetainedTiles=function(e,t){for(var r={},a={},i=Math.max(t-n.maxOverzooming,this._source.minzoom),o=Math.max(t+n.maxUnderzooming,this._source.minzoom),s={},l=0,c=e;l<c.length;l+=1){var u=c[l],d=this._addTile(u);r[u.key]=u,!d.hasData()&&t<this._source.maxzoom&&(s[u.key]=u)}this._retainLoadedChildren(s,t,o,r);for(var p=0,h=e;p<h.length;p+=1){var f=h[p],m=this._tiles[f.key];if(!m.hasData()){if(t+1>this._source.maxzoom){var g=f.children(this._source.maxzoom)[0],y=this.getTile(g);if(y&&y.hasData()){r[g.key]=g;continue}}else{var b=f.children(this._source.maxzoom);if(r[b[0].key]&&r[b[1].key]&&r[b[2].key]&&r[b[3].key])continue}for(var v=m.wasRequested(),M=f.overscaledZ-1;M>=i;--M){var x=f.scaledTo(M);if(a[x.key]||(a[x.key]=!0,!(m=this.getTile(x))&&v&&(m=this._addTile(x)),m&&(r[x.key]=x,v=m.wasRequested(),m.hasData())))break}}}return r},n.prototype._updateLoadedParentTileCache=function(){for(var e in this._loadedParentTiles={},this._tiles){for(var t=[],n=void 0,r=this._tiles[e].tileID;r.overscaledZ>0;){if(r.key in this._loadedParentTiles){n=this._loadedParentTiles[r.key];break}t.push(r.key);var a=r.scaledTo(r.overscaledZ-1);if(n=this._getLoadedTile(a))break;r=a}for(var i=0,o=t;i<o.length;i+=1){var s=o[i];this._loadedParentTiles[s]=n}}},n.prototype._addTile=function(t){var n=this._tiles[t.key];if(n)return n;(n=this._cache.getAndRemove(t))&&(this._setTileReloadTimer(t.key,n),n.tileID=t,this._state.initializeTileState(n,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,n)));var r=!!n;return r||(n=new e.Tile(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(n,this._tileLoaded.bind(this,n,t.key,n.state))),n?(n.uses++,this._tiles[t.key]=n,r||this._source.fire(new e.Event("dataloading",{tile:n,coord:n.tileID,dataType:"source"})),n):null},n.prototype._setTileReloadTimer=function(e,t){var n=this;e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);var r=t.getExpiryTimeout();r&&(this._timers[e]=setTimeout(function(){n._reloadTile(e,"expired"),delete n._timers[e]},r))},n.prototype._removeTile=function(e){var t=this._tiles[e];t&&(t.uses--,delete this._tiles[e],this._timers[e]&&(clearTimeout(this._timers[e]),delete this._timers[e]),!(t.uses>0)&&(t.hasData()&&"reloading"!==t.state?this._cache.add(t.tileID,t,t.getExpiryTimeout()):(t.aborted=!0,this._abortTile(t),this._unloadTile(t))))},n.prototype.clearTiles=function(){for(var e in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(e);this._cache.reset()},n.prototype.tilesIn=function(t,n,r){var a=this,i=[],o=this.transform;if(!o)return i;for(var s=r?o.getCameraQueryGeometry(t):t,l=t.map(function(e){return o.pointCoordinate(e)}),c=s.map(function(e){return o.pointCoordinate(e)}),u=this.getIds(),d=1/0,p=1/0,h=-1/0,f=-1/0,m=0,g=c;m<g.length;m+=1){var y=g[m];d=Math.min(d,y.x),p=Math.min(p,y.y),h=Math.max(h,y.x),f=Math.max(f,y.y)}for(var b=function(t){var r=a._tiles[u[t]];if(!r.holdingForFade()){var s=r.tileID,m=Math.pow(2,o.zoom-r.tileID.overscaledZ),g=n*r.queryPadding*e.EXTENT/r.tileSize/m,y=[s.getTilePoint(new e.MercatorCoordinate(d,p)),s.getTilePoint(new e.MercatorCoordinate(h,f))];if(y[0].x-g<e.EXTENT&&y[0].y-g<e.EXTENT&&y[1].x+g>=0&&y[1].y+g>=0){var b=l.map(function(e){return s.getTilePoint(e)}),v=c.map(function(e){return s.getTilePoint(e)});i.push({tile:r,tileID:s,queryGeometry:b,cameraQueryGeometry:v,scale:m})}}},v=0;v<u.length;v++)b(v);return i},n.prototype.getVisibleCoordinates=function(e){for(var t=this,n=this.getRenderableIds(e).map(function(e){return t._tiles[e].tileID}),r=0,a=n;r<a.length;r+=1){var i=a[r];i.posMatrix=this.transform.calculatePosMatrix(i.toUnwrapped())}return n},n.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(Re(this._source.type))for(var t in this._tiles){var n=this._tiles[t];if(void 0!==n.fadeEndTime&&n.fadeEndTime>=e.browser.now())return!0}return!1},n.prototype.setFeatureState=function(e,t,n){e=e||"_geojsonTileLayer",this._state.updateState(e,t,n)},n.prototype.removeFeatureState=function(e,t,n){e=e||"_geojsonTileLayer",this._state.removeFeatureState(e,t,n)},n.prototype.getFeatureState=function(e,t){return e=e||"_geojsonTileLayer",this._state.getState(e,t)},n.prototype.setDependencies=function(e,t,n){var r=this._tiles[e];r&&r.setDependencies(t,n)},n.prototype.reloadTilesForDependencies=function(e,t){for(var n in this._tiles)this._tiles[n].hasDependency(e,t)&&this._reloadTile(n,"reloading");this._cache.filter(function(n){return!n.hasDependency(e,t)})},n}(e.Evented);function De(e,t){var n=Math.abs(2*e.wrap)-+(e.wrap<0),r=Math.abs(2*t.wrap)-+(t.wrap<0);return e.overscaledZ-t.overscaledZ||r-n||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}function Re(e){return"raster"===e||"image"===e||"video"===e}function Le(){return new e.window.Worker(si.workerUrl)}qe.maxOverzooming=10,qe.maxUnderzooming=3;var Ie="mapboxgl_preloaded_worker_pool",We=function(){this.active={}};We.prototype.acquire=function(e){if(!this.workers)for(this.workers=[];this.workers.length<We.workerCount;)this.workers.push(new Le);return this.active[e]=!0,this.workers.slice()},We.prototype.release=function(e){delete this.active[e],0===this.numActive()&&(this.workers.forEach(function(e){e.terminate()}),this.workers=null)},We.prototype.isPreloaded=function(){return!!this.active[Ie]},We.prototype.numActive=function(){return Object.keys(this.active).length};var Ne,Pe=Math.floor(e.browser.hardwareConcurrency/2);function Be(){return Ne||(Ne=new We),Ne}function Fe(t,n){var r={};for(var a in t)"ref"!==a&&(r[a]=t[a]);return e.refProperties.forEach(function(e){e in n&&(r[e]=n[e])}),r}function je(e){e=e.slice();for(var t=Object.create(null),n=0;n<e.length;n++)t[e[n].id]=e[n];for(var r=0;r<e.length;r++)"ref"in e[r]&&(e[r]=Fe(e[r],t[e[r].ref]));return e}We.workerCount=Math.max(Math.min(Pe,6),1);var Ue={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight"};function Ve(e,t,n){n.push({command:Ue.addSource,args:[e,t[e]]})}function He(e,t,n){t.push({command:Ue.removeSource,args:[e]}),n[e]=!0}function Xe(e,t,n,r){He(e,n,r),Ve(e,t,n)}function Ge(t,n,r){var a;for(a in t[r])if(t[r].hasOwnProperty(a)&&"data"!==a&&!e.deepEqual(t[r][a],n[r][a]))return!1;for(a in n[r])if(n[r].hasOwnProperty(a)&&"data"!==a&&!e.deepEqual(t[r][a],n[r][a]))return!1;return!0}function Ye(t,n,r,a,i,o){var s;for(s in n=n||{},t=t||{})t.hasOwnProperty(s)&&(e.deepEqual(t[s],n[s])||r.push({command:o,args:[a,s,n[s],i]}));for(s in n)!n.hasOwnProperty(s)||t.hasOwnProperty(s)||e.deepEqual(t[s],n[s])||r.push({command:o,args:[a,s,n[s],i]})}function Ze(e){return e.id}function $e(e,t){return e[t.id]=t,e}function Je(t,n){if(!t)return[{command:Ue.setStyle,args:[n]}];var r=[];try{if(!e.deepEqual(t.version,n.version))return[{command:Ue.setStyle,args:[n]}];e.deepEqual(t.center,n.center)||r.push({command:Ue.setCenter,args:[n.center]}),e.deepEqual(t.zoom,n.zoom)||r.push({command:Ue.setZoom,args:[n.zoom]}),e.deepEqual(t.bearing,n.bearing)||r.push({command:Ue.setBearing,args:[n.bearing]}),e.deepEqual(t.pitch,n.pitch)||r.push({command:Ue.setPitch,args:[n.pitch]}),e.deepEqual(t.sprite,n.sprite)||r.push({command:Ue.setSprite,args:[n.sprite]}),e.deepEqual(t.glyphs,n.glyphs)||r.push({command:Ue.setGlyphs,args:[n.glyphs]}),e.deepEqual(t.transition,n.transition)||r.push({command:Ue.setTransition,args:[n.transition]}),e.deepEqual(t.light,n.light)||r.push({command:Ue.setLight,args:[n.light]});var a={},i=[];!function(t,n,r,a){var i;for(i in n=n||{},t=t||{})t.hasOwnProperty(i)&&(n.hasOwnProperty(i)||He(i,r,a));for(i in n)n.hasOwnProperty(i)&&(t.hasOwnProperty(i)?e.deepEqual(t[i],n[i])||("geojson"===t[i].type&&"geojson"===n[i].type&&Ge(t,n,i)?r.push({command:Ue.setGeoJSONSourceData,args:[i,n[i].data]}):Xe(i,n,r,a)):Ve(i,n,r))}(t.sources,n.sources,i,a);var o=[];t.layers&&t.layers.forEach(function(e){a[e.source]?r.push({command:Ue.removeLayer,args:[e.id]}):o.push(e)}),r=r.concat(i),function(t,n,r){n=n||[];var a,i,o,s,l,c,u,d=(t=t||[]).map(Ze),p=n.map(Ze),h=t.reduce($e,{}),f=n.reduce($e,{}),m=d.slice(),g=Object.create(null);for(a=0,i=0;a<d.length;a++)o=d[a],f.hasOwnProperty(o)?i++:(r.push({command:Ue.removeLayer,args:[o]}),m.splice(m.indexOf(o,i),1));for(a=0,i=0;a<p.length;a++)o=p[p.length-1-a],m[m.length-1-a]!==o&&(h.hasOwnProperty(o)?(r.push({command:Ue.removeLayer,args:[o]}),m.splice(m.lastIndexOf(o,m.length-i),1)):i++,c=m[m.length-a],r.push({command:Ue.addLayer,args:[f[o],c]}),m.splice(m.length-a,0,o),g[o]=!0);for(a=0;a<p.length;a++)if(s=h[o=p[a]],l=f[o],!g[o]&&!e.deepEqual(s,l)){if(!e.deepEqual(s.source,l.source)||!e.deepEqual(s["source-layer"],l["source-layer"])||!e.deepEqual(s.type,l.type)){r.push({command:Ue.removeLayer,args:[o]}),c=m[m.lastIndexOf(o)+1],r.push({command:Ue.addLayer,args:[l,c]});continue}for(u in Ye(s.layout,l.layout,r,o,null,Ue.setLayoutProperty),Ye(s.paint,l.paint,r,o,null,Ue.setPaintProperty),e.deepEqual(s.filter,l.filter)||r.push({command:Ue.setFilter,args:[o,l.filter]}),(!e.deepEqual(s.minzoom,l.minzoom)||!e.deepEqual(s.maxzoom,l.maxzoom))&&r.push({command:Ue.setLayerZoomRange,args:[o,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(u)&&("layout"===u||"paint"===u||"filter"===u||"metadata"===u||"minzoom"===u||"maxzoom"===u||(0===u.indexOf("paint.")?Ye(s[u],l[u],r,o,u.slice(6),Ue.setPaintProperty):e.deepEqual(s[u],l[u])||r.push({command:Ue.setLayerProperty,args:[o,u,l[u]]})));for(u in l)!l.hasOwnProperty(u)||s.hasOwnProperty(u)||"layout"===u||"paint"===u||"filter"===u||"metadata"===u||"minzoom"===u||"maxzoom"===u||(0===u.indexOf("paint.")?Ye(s[u],l[u],r,o,u.slice(6),Ue.setPaintProperty):e.deepEqual(s[u],l[u])||r.push({command:Ue.setLayerProperty,args:[o,u,l[u]]}))}}(o,n.layers,r)}catch(e){console.warn("Unable to compute style diff:",e),r=[{command:Ue.setStyle,args:[n]}]}return r}var Qe=function(e,t){this.reset(e,t)};Qe.prototype.reset=function(e,t){this.points=e||[],this._distances=[0];for(var n=1;n<this.points.length;n++)this._distances[n]=this._distances[n-1]+this.points[n].dist(this.points[n-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(t||0,.5*this.length),this.paddedLength=this.length-2*this.padding},Qe.prototype.lerp=function(t){if(1===this.points.length)return this.points[0];t=e.clamp(t,0,1);for(var n=1,r=this._distances[n],a=t*this.paddedLength+this.padding;r<a&&n<this._distances.length;)r=this._distances[++n];var i=n-1,o=this._distances[i],s=r-o,l=s>0?(a-o)/s:0;return this.points[i].mult(1-l).add(this.points[n].mult(l))};var Ke=function(e,t,n){var r=this.boxCells=[],a=this.circleCells=[];this.xCellCount=Math.ceil(e/n),this.yCellCount=Math.ceil(t/n);for(var i=0;i<this.xCellCount*this.yCellCount;i++)r.push([]),a.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=e,this.height=t,this.xScale=this.xCellCount/e,this.yScale=this.yCellCount/t,this.boxUid=0,this.circleUid=0};function et(t,n,r,a,i){var o=e.create();return n?(e.scale(o,o,[1/i,1/i,1]),r||e.rotateZ(o,o,a.angle)):e.multiply(o,a.labelPlaneMatrix,t),o}function tt(t,n,r,a,i){if(n){var o=e.clone(t);return e.scale(o,o,[i,i,1]),r||e.rotateZ(o,o,-a.angle),o}return a.glCoordMatrix}function nt(t,n){var r=[t.x,t.y,0,1];ht(r,r,n);var a=r[3];return{point:new e.Point(r[0]/a,r[1]/a),signedDistanceFromCamera:a}}function rt(e,t){return.5+e/t*.5}function at(e,t){var n=e[0]/e[3],r=e[1]/e[3];return n>=-t[0]&&n<=t[0]&&r>=-t[1]&&r<=t[1]}function it(t,n,r,a,i,o,s,l){var c=a?t.textSizeData:t.iconSizeData,u=e.evaluateSizeForZoom(c,r.transform.zoom),d=[256/r.width*2+1,256/r.height*2+1],p=a?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;p.clear();for(var h=t.lineVertexArray,f=a?t.text.placedSymbolArray:t.icon.placedSymbolArray,m=r.transform.width/r.transform.height,g=!1,y=0;y<f.length;y++){var b=f.get(y);if(b.hidden||b.writingMode===e.WritingMode.vertical&&!g)pt(b.numGlyphs,p);else{g=!1;var v=[b.anchorX,b.anchorY,0,1];if(e.transformMat4(v,v,n),at(v,d)){var M=v[3],x=rt(r.transform.cameraToCenterDistance,M),z=e.evaluateSizeForFeature(c,u,b),_=s?z/x:z*x,A=new e.Point(b.anchorX,b.anchorY),O=nt(A,i).point,w={},k=lt(b,_,!1,l,n,i,o,t.glyphOffsetArray,h,p,O,A,w,m);g=k.useVertical,(k.notEnoughRoom||g||k.needsFlipping&&lt(b,_,!0,l,n,i,o,t.glyphOffsetArray,h,p,O,A,w,m).notEnoughRoom)&&pt(b.numGlyphs,p)}else pt(b.numGlyphs,p)}}a?t.text.dynamicLayoutVertexBuffer.updateData(p):t.icon.dynamicLayoutVertexBuffer.updateData(p)}function ot(e,t,n,r,a,i,o,s,l,c,u){var d=s.glyphStartIndex+s.numGlyphs,p=s.lineStartIndex,h=s.lineStartIndex+s.lineLength,f=t.getoffsetX(s.glyphStartIndex),m=t.getoffsetX(d-1),g=ut(e*f,n,r,a,i,o,s.segment,p,h,l,c,u);if(!g)return null;var y=ut(e*m,n,r,a,i,o,s.segment,p,h,l,c,u);return y?{first:g,last:y}:null}function st(t,n,r,a){return t===e.WritingMode.horizontal&&Math.abs(r.y-n.y)>Math.abs(r.x-n.x)*a?{useVertical:!0}:(t===e.WritingMode.vertical?n.y<r.y:n.x>r.x)?{needsFlipping:!0}:null}function lt(t,n,r,a,i,o,s,l,c,u,d,p,h,f){var m,g=n/24,y=t.lineOffsetX*g,b=t.lineOffsetY*g;if(t.numGlyphs>1){var v=t.glyphStartIndex+t.numGlyphs,M=t.lineStartIndex,x=t.lineStartIndex+t.lineLength,z=ot(g,l,y,b,r,d,p,t,c,o,h);if(!z)return{notEnoughRoom:!0};var _=nt(z.first.point,s).point,A=nt(z.last.point,s).point;if(a&&!r){var O=st(t.writingMode,_,A,f);if(O)return O}m=[z.first];for(var w=t.glyphStartIndex+1;w<v-1;w++)m.push(ut(g*l.getoffsetX(w),y,b,r,d,p,t.segment,M,x,c,o,h));m.push(z.last)}else{if(a&&!r){var k=nt(p,i).point,T=t.lineStartIndex+t.segment+1,S=new e.Point(c.getx(T),c.gety(T)),C=nt(S,i),E=C.signedDistanceFromCamera>0?C.point:ct(p,S,k,1,i),q=st(t.writingMode,k,E,f);if(q)return q}var D=ut(g*l.getoffsetX(t.glyphStartIndex),y,b,r,d,p,t.segment,t.lineStartIndex,t.lineStartIndex+t.lineLength,c,o,h);if(!D)return{notEnoughRoom:!0};m=[D]}for(var R=0,L=m;R<L.length;R+=1){var I=L[R];e.addDynamicAttributes(u,I.point,I.angle)}return{}}function ct(e,t,n,r,a){var i=nt(e.add(e.sub(t)._unit()),a).point,o=n.sub(i);return n.add(o._mult(r/o.mag()))}function ut(t,n,r,a,i,o,s,l,c,u,d,p){var h=a?t-n:t+n,f=h>0?1:-1,m=0;a&&(f*=-1,m=Math.PI),f<0&&(m+=Math.PI);for(var g=f>0?l+s:l+s+1,y=i,b=i,v=0,M=0,x=Math.abs(h),z=[];v+M<=x;){if((g+=f)<l||g>=c)return null;if(b=y,z.push(y),void 0===(y=p[g])){var _=new e.Point(u.getx(g),u.gety(g)),A=nt(_,d);if(A.signedDistanceFromCamera>0)y=p[g]=A.point;else{var O=g-f;y=ct(0===v?o:new e.Point(u.getx(O),u.gety(O)),_,b,x-v+1,d)}}v+=M,M=b.dist(y)}var w=(x-v)/M,k=y.sub(b),T=k.mult(w)._add(b);T._add(k._unit()._perp()._mult(r*f));var S=m+Math.atan2(y.y-b.y,y.x-b.x);return z.push(T),{point:T,angle:S,path:z}}Ke.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Ke.prototype.insert=function(e,t,n,r,a){this._forEachCell(t,n,r,a,this._insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(a)},Ke.prototype.insertCircle=function(e,t,n,r){this._forEachCell(t-r,n-r,t+r,n+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(e),this.circles.push(t),this.circles.push(n),this.circles.push(r)},Ke.prototype._insertBoxCell=function(e,t,n,r,a,i){this.boxCells[a].push(i)},Ke.prototype._insertCircleCell=function(e,t,n,r,a,i){this.circleCells[a].push(i)},Ke.prototype._query=function(e,t,n,r,a,i){if(n<0||e>this.width||r<0||t>this.height)return!a&&[];var o=[];if(e<=0&&t<=0&&this.width<=n&&this.height<=r){if(a)return!0;for(var s=0;s<this.boxKeys.length;s++)o.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var l=0;l<this.circleKeys.length;l++){var c=this.circles[3*l],u=this.circles[3*l+1],d=this.circles[3*l+2];o.push({key:this.circleKeys[l],x1:c-d,y1:u-d,x2:c+d,y2:u+d})}return i?o.filter(i):o}var p={hitTest:a,seenUids:{box:{},circle:{}}};return this._forEachCell(e,t,n,r,this._queryCell,o,p,i),a?o.length>0:o},Ke.prototype._queryCircle=function(e,t,n,r,a){var i=e-n,o=e+n,s=t-n,l=t+n;if(o<0||i>this.width||l<0||s>this.height)return!r&&[];var c=[],u={hitTest:r,circle:{x:e,y:t,radius:n},seenUids:{box:{},circle:{}}};return this._forEachCell(i,s,o,l,this._queryCellCircle,c,u,a),r?c.length>0:c},Ke.prototype.query=function(e,t,n,r,a){return this._query(e,t,n,r,!1,a)},Ke.prototype.hitTest=function(e,t,n,r,a){return this._query(e,t,n,r,!0,a)},Ke.prototype.hitTestCircle=function(e,t,n,r){return this._queryCircle(e,t,n,!0,r)},Ke.prototype._queryCell=function(e,t,n,r,a,i,o,s){var l=o.seenUids,c=this.boxCells[a];if(null!==c)for(var u=this.bboxes,d=0,p=c;d<p.length;d+=1){var h=p[d];if(!l.box[h]){l.box[h]=!0;var f=4*h;if(e<=u[f+2]&&t<=u[f+3]&&n>=u[f+0]&&r>=u[f+1]&&(!s||s(this.boxKeys[h]))){if(o.hitTest)return i.push(!0),!0;i.push({key:this.boxKeys[h],x1:u[f],y1:u[f+1],x2:u[f+2],y2:u[f+3]})}}}var m=this.circleCells[a];if(null!==m)for(var g=this.circles,y=0,b=m;y<b.length;y+=1){var v=b[y];if(!l.circle[v]){l.circle[v]=!0;var M=3*v;if(this._circleAndRectCollide(g[M],g[M+1],g[M+2],e,t,n,r)&&(!s||s(this.circleKeys[v]))){if(o.hitTest)return i.push(!0),!0;var x=g[M],z=g[M+1],_=g[M+2];i.push({key:this.circleKeys[v],x1:x-_,y1:z-_,x2:x+_,y2:z+_})}}}},Ke.prototype._queryCellCircle=function(e,t,n,r,a,i,o,s){var l=o.circle,c=o.seenUids,u=this.boxCells[a];if(null!==u)for(var d=this.bboxes,p=0,h=u;p<h.length;p+=1){var f=h[p];if(!c.box[f]){c.box[f]=!0;var m=4*f;if(this._circleAndRectCollide(l.x,l.y,l.radius,d[m+0],d[m+1],d[m+2],d[m+3])&&(!s||s(this.boxKeys[f])))return i.push(!0),!0}}var g=this.circleCells[a];if(null!==g)for(var y=this.circles,b=0,v=g;b<v.length;b+=1){var M=v[b];if(!c.circle[M]){c.circle[M]=!0;var x=3*M;if(this._circlesCollide(y[x],y[x+1],y[x+2],l.x,l.y,l.radius)&&(!s||s(this.circleKeys[M])))return i.push(!0),!0}}},Ke.prototype._forEachCell=function(e,t,n,r,a,i,o,s){for(var l=this._convertToXCellCoord(e),c=this._convertToYCellCoord(t),u=this._convertToXCellCoord(n),d=this._convertToYCellCoord(r),p=l;p<=u;p++)for(var h=c;h<=d;h++){var f=this.xCellCount*h+p;if(a.call(this,e,t,n,r,f,i,o,s))return}},Ke.prototype._convertToXCellCoord=function(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))},Ke.prototype._convertToYCellCoord=function(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))},Ke.prototype._circlesCollide=function(e,t,n,r,a,i){var o=r-e,s=a-t,l=n+i;return l*l>o*o+s*s},Ke.prototype._circleAndRectCollide=function(e,t,n,r,a,i,o){var s=(i-r)/2,l=Math.abs(e-(r+s));if(l>s+n)return!1;var c=(o-a)/2,u=Math.abs(t-(a+c));if(u>c+n)return!1;if(l<=s||u<=c)return!0;var d=l-s,p=u-c;return d*d+p*p<=n*n};var dt=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function pt(e,t){for(var n=0;n<e;n++){var r=t.length;t.resize(r+4),t.float32.set(dt,3*r)}}function ht(e,t,n){var r=t[0],a=t[1];return e[0]=n[0]*r+n[4]*a+n[12],e[1]=n[1]*r+n[5]*a+n[13],e[3]=n[3]*r+n[7]*a+n[15],e}var ft=100,mt=function(e,t,n){void 0===t&&(t=new Ke(e.width+200,e.height+200,25)),void 0===n&&(n=new Ke(e.width+200,e.height+200,25)),this.transform=e,this.grid=t,this.ignoredGrid=n,this.pitchfactor=Math.cos(e._pitch)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+ft,this.screenBottomBoundary=e.height+ft,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200};function gt(t,n,r){return n*(e.EXTENT/(t.tileSize*Math.pow(2,r-t.tileID.overscaledZ)))}mt.prototype.placeCollisionBox=function(e,t,n,r,a){var i=this.projectAndGetPerspectiveRatio(r,e.anchorPointX,e.anchorPointY),o=n*i.perspectiveRatio,s=e.x1*o+i.point.x,l=e.y1*o+i.point.y,c=e.x2*o+i.point.x,u=e.y2*o+i.point.y;return!this.isInsideGrid(s,l,c,u)||!t&&this.grid.hitTest(s,l,c,u,a)?{box:[],offscreen:!1}:{box:[s,l,c,u],offscreen:this.isOffscreen(s,l,c,u)}},mt.prototype.placeCollisionCircles=function(t,n,r,a,i,o,s,l,c,u,d,p,h){var f=[],m=new e.Point(n.anchorX,n.anchorY),g=nt(m,o),y=rt(this.transform.cameraToCenterDistance,g.signedDistanceFromCamera),b=(u?i/y:i*y)/e.ONE_EM,v=nt(m,s).point,M=ot(b,a,n.lineOffsetX*b,n.lineOffsetY*b,!1,v,m,n,r,s,{}),x=!1,z=!1,_=!0;if(M){for(var A=.5*p*y+h,O=new e.Point(-ft,-ft),w=new e.Point(this.screenRightBoundary,this.screenBottomBoundary),k=new Qe,T=M.first,S=M.last,C=[],E=T.path.length-1;E>=1;E--)C.push(T.path[E]);for(var q=1;q<S.path.length;q++)C.push(S.path[q]);var D=2.5*A;if(l){var R=C.map(function(e){return nt(e,l)});C=R.some(function(e){return e.signedDistanceFromCamera<=0})?[]:R.map(function(e){return e.point})}var L=[];if(C.length>0){for(var I=C[0].clone(),W=C[0].clone(),N=1;N<C.length;N++)I.x=Math.min(I.x,C[N].x),I.y=Math.min(I.y,C[N].y),W.x=Math.max(W.x,C[N].x),W.y=Math.max(W.y,C[N].y);L=I.x>=O.x&&W.x<=w.x&&I.y>=O.y&&W.y<=w.y?[C]:W.x<O.x||I.x>w.x||W.y<O.y||I.y>w.y?[]:e.clipLine([C],O.x,O.y,w.x,w.y)}for(var P=0,B=L;P<B.length;P+=1){var F=B[P];k.reset(F,.25*A);var j=0;j=k.length<=.5*A?1:Math.ceil(k.paddedLength/D)+1;for(var U=0;U<j;U++){var V=U/Math.max(j-1,1),H=k.lerp(V),X=H.x+ft,G=H.y+ft;f.push(X,G,A,0);var Y=X-A,Z=G-A,$=X+A,J=G+A;if(_=_&&this.isOffscreen(Y,Z,$,J),z=z||this.isInsideGrid(Y,Z,$,J),!t&&this.grid.hitTestCircle(X,G,A,d)&&(x=!0,!c))return{circles:[],offscreen:!1,collisionDetected:x}}}}return{circles:!c&&x||!z?[]:f,offscreen:_,collisionDetected:x}},mt.prototype.queryRenderedSymbols=function(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};for(var n=[],r=1/0,a=1/0,i=-1/0,o=-1/0,s=0,l=t;s<l.length;s+=1){var c=l[s],u=new e.Point(c.x+ft,c.y+ft);r=Math.min(r,u.x),a=Math.min(a,u.y),i=Math.max(i,u.x),o=Math.max(o,u.y),n.push(u)}for(var d={},p={},h=0,f=this.grid.query(r,a,i,o).concat(this.ignoredGrid.query(r,a,i,o));h<f.length;h+=1){var m=f[h],g=m.key;if(void 0===d[g.bucketInstanceId]&&(d[g.bucketInstanceId]={}),!d[g.bucketInstanceId][g.featureIndex]){var y=[new e.Point(m.x1,m.y1),new e.Point(m.x2,m.y1),new e.Point(m.x2,m.y2),new e.Point(m.x1,m.y2)];e.polygonIntersectsPolygon(n,y)&&(d[g.bucketInstanceId][g.featureIndex]=!0,void 0===p[g.bucketInstanceId]&&(p[g.bucketInstanceId]=[]),p[g.bucketInstanceId].push(g.featureIndex))}}return p},mt.prototype.insertCollisionBox=function(e,t,n,r,a){var i={bucketInstanceId:n,featureIndex:r,collisionGroupID:a};(t?this.ignoredGrid:this.grid).insert(i,e[0],e[1],e[2],e[3])},mt.prototype.insertCollisionCircles=function(e,t,n,r,a){for(var i=t?this.ignoredGrid:this.grid,o={bucketInstanceId:n,featureIndex:r,collisionGroupID:a},s=0;s<e.length;s+=4)i.insertCircle(o,e[s],e[s+1],e[s+2])},mt.prototype.projectAndGetPerspectiveRatio=function(t,n,r){var a=[n,r,0,1];return ht(a,a,t),{point:new e.Point((a[0]/a[3]+1)/2*this.transform.width+ft,(-a[1]/a[3]+1)/2*this.transform.height+ft),perspectiveRatio:.5+this.transform.cameraToCenterDistance/a[3]*.5}},mt.prototype.isOffscreen=function(e,t,n,r){return n<ft||e>=this.screenRightBoundary||r<ft||t>this.screenBottomBoundary},mt.prototype.isInsideGrid=function(e,t,n,r){return n>=0&&e<this.gridRightBoundary&&r>=0&&t<this.gridBottomBoundary},mt.prototype.getViewportMatrix=function(){var t=e.identity([]);return e.translate(t,t,[-ft,-ft,0]),t};var yt=function(e,t,n,r){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):r&&n?1:0,this.placed=n};yt.prototype.isHidden=function(){return 0===this.opacity&&!this.placed};var bt=function(e,t,n,r,a){this.text=new yt(e?e.text:null,t,n,a),this.icon=new yt(e?e.icon:null,t,r,a)};bt.prototype.isHidden=function(){return this.text.isHidden()&&this.icon.isHidden()};var vt=function(e,t,n){this.text=e,this.icon=t,this.skipFade=n},Mt=function(){this.invProjMatrix=e.create(),this.viewportMatrix=e.create(),this.circles=[]},xt=function(e,t,n,r,a){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=n,this.bucketIndex=r,this.tileID=a},zt=function(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}};function _t(t,n,r,a,i){var o=e.getAnchorAlignment(t),s=-(o.horizontalAlign-.5)*n,l=-(o.verticalAlign-.5)*r,c=e.evaluateVariableOffset(t,a);return new e.Point(s+c[0]*i,l+c[1]*i)}function At(t,n,r,a,i,o){var s=t.x1,l=t.x2,c=t.y1,u=t.y2,d=t.anchorPointX,p=t.anchorPointY,h=new e.Point(n,r);return a&&h._rotate(i?o:-o),{x1:s+h.x,y1:c+h.y,x2:l+h.x,y2:u+h.y,anchorPointX:d,anchorPointY:p}}zt.prototype.get=function(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){var t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:function(e){return e.collisionGroupID===t}}}return this.collisionGroups[e]};var Ot=function(e,t,n,r){this.transform=e.clone(),this.collisionIndex=new mt(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=t,this.retainedQueryData={},this.collisionGroups=new zt(n),this.collisionCircleArrays={},this.prevPlacement=r,r&&(r.prevPlacement=void 0),this.placedOrientations={}};function wt(e,t,n,r,a){e.emplaceBack(t?1:0,n?1:0,r||0,a||0),e.emplaceBack(t?1:0,n?1:0,r||0,a||0),e.emplaceBack(t?1:0,n?1:0,r||0,a||0),e.emplaceBack(t?1:0,n?1:0,r||0,a||0)}Ot.prototype.getBucketParts=function(t,n,r,a){var i=r.getBucket(n),o=r.latestFeatureIndex;if(i&&o&&n.id===i.layerIds[0]){var s=r.collisionBoxArray,l=i.layers[0].layout,c=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),u=r.tileSize/e.EXTENT,d=this.transform.calculatePosMatrix(r.tileID.toUnwrapped()),p="map"===l.get("text-pitch-alignment"),h="map"===l.get("text-rotation-alignment"),f=gt(r,1,this.transform.zoom),m=et(d,p,h,this.transform,f),g=null;if(p){var y=tt(d,p,h,this.transform,f);g=e.multiply([],this.transform.labelPlaneMatrix,y)}this.retainedQueryData[i.bucketInstanceId]=new xt(i.bucketInstanceId,o,i.sourceLayerIndex,i.index,r.tileID);var b={bucket:i,layout:l,posMatrix:d,textLabelPlaneMatrix:m,labelToScreenMatrix:g,scale:c,textPixelRatio:u,holdingForFade:r.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:e.evaluateSizeForZoom(i.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(i.sourceID)};if(a)for(var v=0,M=i.sortKeyRanges;v<M.length;v+=1){var x=M[v],z=x.sortKey,_=x.symbolInstanceStart,A=x.symbolInstanceEnd;t.push({sortKey:z,symbolInstanceStart:_,symbolInstanceEnd:A,parameters:b})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:i.symbolInstances.length,parameters:b})}},Ot.prototype.attemptAnchorPlacement=function(e,t,n,r,a,i,o,s,l,c,u,d,p,h,f){var m,g=[d.textOffset0,d.textOffset1],y=_t(e,n,r,g,a),b=this.collisionIndex.placeCollisionBox(At(t,y.x,y.y,i,o,this.transform.angle),u,s,l,c.predicate);if(!f||0!==this.collisionIndex.placeCollisionBox(At(f,y.x,y.y,i,o,this.transform.angle),u,s,l,c.predicate).box.length)return b.box.length>0?(this.prevPlacement&&this.prevPlacement.variableOffsets[d.crossTileID]&&this.prevPlacement.placements[d.crossTileID]&&this.prevPlacement.placements[d.crossTileID].text&&(m=this.prevPlacement.variableOffsets[d.crossTileID].anchor),this.variableOffsets[d.crossTileID]={textOffset:g,width:n,height:r,anchor:e,textBoxScale:a,prevAnchor:m},this.markUsedJustification(p,e,d,h),p.allowVerticalPlacement&&(this.markUsedOrientation(p,h,d),this.placedOrientations[d.crossTileID]=h),{shift:y,placedGlyphBoxes:b}):void 0},Ot.prototype.placeLayerBucketPart=function(t,n,r){var a=this,i=t.parameters,o=i.bucket,s=i.layout,l=i.posMatrix,c=i.textLabelPlaneMatrix,u=i.labelToScreenMatrix,d=i.textPixelRatio,p=i.holdingForFade,h=i.collisionBoxArray,f=i.partiallyEvaluatedTextSize,m=i.collisionGroup,g=s.get("text-optional"),y=s.get("icon-optional"),b=s.get("text-allow-overlap"),v=s.get("icon-allow-overlap"),M="map"===s.get("text-rotation-alignment"),x="map"===s.get("text-pitch-alignment"),z="none"!==s.get("icon-text-fit"),_="viewport-y"===s.get("symbol-z-order"),A=b&&(v||!o.hasIconData()||y),O=v&&(b||!o.hasTextData()||g);!o.collisionArrays&&h&&o.deserializeCollisionBoxes(h);var w=function(t,i){if(!n[t.crossTileID]){if(p)return void(a.placements[t.crossTileID]=new vt(!1,!1,!1));var h,_=!1,w=!1,k=!0,T=null,S={box:null,offscreen:null},C={box:null,offscreen:null},E=null,q=null,D=0,R=0,L=0;i.textFeatureIndex?D=i.textFeatureIndex:t.useRuntimeCollisionCircles&&(D=t.featureIndex),i.verticalTextFeatureIndex&&(R=i.verticalTextFeatureIndex);var I=i.textBox;if(I){var W=function(n){var r=e.WritingMode.horizontal;if(o.allowVerticalPlacement&&!n&&a.prevPlacement){var i=a.prevPlacement.placedOrientations[t.crossTileID];i&&(a.placedOrientations[t.crossTileID]=i,r=i,a.markUsedOrientation(o,r,t))}return r},N=function(n,r){if(o.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&i.verticalTextBox)for(var a=0,s=o.writingModes;a<s.length&&(s[a]===e.WritingMode.vertical?(S=r(),C=S):S=n(),!(S&&S.box&&S.box.length));a+=1);else S=n()};if(s.get("text-variable-anchor")){var P=s.get("text-variable-anchor");if(a.prevPlacement&&a.prevPlacement.variableOffsets[t.crossTileID]){var B=a.prevPlacement.variableOffsets[t.crossTileID];P.indexOf(B.anchor)>0&&(P=P.filter(function(e){return e!==B.anchor})).unshift(B.anchor)}var F=function(e,n,r){for(var i=e.x2-e.x1,s=e.y2-e.y1,c=t.textBoxScale,u=z&&!v?n:null,p={box:[],offscreen:!1},h=b?2*P.length:P.length,f=0;f<h;++f){var g=P[f%P.length],y=f>=P.length,A=a.attemptAnchorPlacement(g,e,i,s,c,M,x,d,l,m,y,t,o,r,u);if(A&&(p=A.placedGlyphBoxes)&&p.box&&p.box.length){_=!0,T=A.shift;break}}return p};N(function(){return F(I,i.iconBox,e.WritingMode.horizontal)},function(){var n=i.verticalTextBox,r=S&&S.box&&S.box.length;return o.allowVerticalPlacement&&!r&&t.numVerticalGlyphVertices>0&&n?F(n,i.verticalIconBox,e.WritingMode.vertical):{box:null,offscreen:null}}),S&&(_=S.box,k=S.offscreen);var j=W(S&&S.box);if(!_&&a.prevPlacement){var U=a.prevPlacement.variableOffsets[t.crossTileID];U&&(a.variableOffsets[t.crossTileID]=U,a.markUsedJustification(o,U.anchor,t,j))}}else{var V=function(e,n){var r=a.collisionIndex.placeCollisionBox(e,b,d,l,m.predicate);return r&&r.box&&r.box.length&&(a.markUsedOrientation(o,n,t),a.placedOrientations[t.crossTileID]=n),r};N(function(){return V(I,e.WritingMode.horizontal)},function(){var n=i.verticalTextBox;return o.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&n?V(n,e.WritingMode.vertical):{box:null,offscreen:null}}),W(S&&S.box&&S.box.length)}}if(_=(h=S)&&h.box&&h.box.length>0,k=h&&h.offscreen,t.useRuntimeCollisionCircles){var H=o.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex),X=e.evaluateSizeForFeature(o.textSizeData,f,H),G=s.get("text-padding"),Y=t.collisionCircleDiameter;E=a.collisionIndex.placeCollisionCircles(b,H,o.lineVertexArray,o.glyphOffsetArray,X,l,c,u,r,x,m.predicate,Y,G),_=b||E.circles.length>0&&!E.collisionDetected,k=k&&E.offscreen}if(i.iconFeatureIndex&&(L=i.iconFeatureIndex),i.iconBox){var Z=function(e){var t=z&&T?At(e,T.x,T.y,M,x,a.transform.angle):e;return a.collisionIndex.placeCollisionBox(t,v,d,l,m.predicate)};w=C&&C.box&&C.box.length&&i.verticalIconBox?(q=Z(i.verticalIconBox)).box.length>0:(q=Z(i.iconBox)).box.length>0,k=k&&q.offscreen}var $=g||0===t.numHorizontalGlyphVertices&&0===t.numVerticalGlyphVertices,J=y||0===t.numIconVertices;if($||J?J?$||(w=w&&_):_=w&&_:w=_=w&&_,_&&h&&h.box&&(C&&C.box&&R?a.collisionIndex.insertCollisionBox(h.box,s.get("text-ignore-placement"),o.bucketInstanceId,R,m.ID):a.collisionIndex.insertCollisionBox(h.box,s.get("text-ignore-placement"),o.bucketInstanceId,D,m.ID)),w&&q&&a.collisionIndex.insertCollisionBox(q.box,s.get("icon-ignore-placement"),o.bucketInstanceId,L,m.ID),E&&(_&&a.collisionIndex.insertCollisionCircles(E.circles,s.get("text-ignore-placement"),o.bucketInstanceId,D,m.ID),r)){var Q=o.bucketInstanceId,K=a.collisionCircleArrays[Q];void 0===K&&(K=a.collisionCircleArrays[Q]=new Mt);for(var ee=0;ee<E.circles.length;ee+=4)K.circles.push(E.circles[ee+0]),K.circles.push(E.circles[ee+1]),K.circles.push(E.circles[ee+2]),K.circles.push(E.collisionDetected?1:0)}a.placements[t.crossTileID]=new vt(_||A,w||O,k||o.justReloaded),n[t.crossTileID]=!0}};if(_)for(var k=o.getSortedSymbolIndexes(this.transform.angle),T=k.length-1;T>=0;--T){var S=k[T];w(o.symbolInstances.get(S),o.collisionArrays[S])}else for(var C=t.symbolInstanceStart;C<t.symbolInstanceEnd;C++)w(o.symbolInstances.get(C),o.collisionArrays[C]);if(r&&o.bucketInstanceId in this.collisionCircleArrays){var E=this.collisionCircleArrays[o.bucketInstanceId];e.invert(E.invProjMatrix,l),E.viewportMatrix=this.collisionIndex.getViewportMatrix()}o.justReloaded=!1},Ot.prototype.markUsedJustification=function(t,n,r,a){var i,o={left:r.leftJustifiedTextSymbolIndex,center:r.centerJustifiedTextSymbolIndex,right:r.rightJustifiedTextSymbolIndex};i=a===e.WritingMode.vertical?r.verticalPlacedTextSymbolIndex:o[e.getAnchorJustification(n)];for(var s=0,l=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex,r.verticalPlacedTextSymbolIndex];s<l.length;s+=1){var c=l[s];c>=0&&(t.text.placedSymbolArray.get(c).crossTileID=i>=0&&c!==i?0:r.crossTileID)}},Ot.prototype.markUsedOrientation=function(t,n,r){for(var a=n===e.WritingMode.horizontal||n===e.WritingMode.horizontalOnly?n:0,i=n===e.WritingMode.vertical?n:0,o=0,s=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];o<s.length;o+=1){var l=s[o];t.text.placedSymbolArray.get(l).placedOrientation=a}r.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=i)},Ot.prototype.commit=function(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;var t=this.prevPlacement,n=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;var r=t?t.symbolFadeChange(e):1,a=t?t.opacities:{},i=t?t.variableOffsets:{},o=t?t.placedOrientations:{};for(var s in this.placements){var l=this.placements[s],c=a[s];c?(this.opacities[s]=new bt(c,r,l.text,l.icon),n=n||l.text!==c.text.placed||l.icon!==c.icon.placed):(this.opacities[s]=new bt(null,r,l.text,l.icon,l.skipFade),n=n||l.text||l.icon)}for(var u in a){var d=a[u];if(!this.opacities[u]){var p=new bt(d,r,!1,!1);p.isHidden()||(this.opacities[u]=p,n=n||d.text.placed||d.icon.placed)}}for(var h in i)!this.variableOffsets[h]&&this.opacities[h]&&!this.opacities[h].isHidden()&&(this.variableOffsets[h]=i[h]);for(var f in o)!this.placedOrientations[f]&&this.opacities[f]&&!this.opacities[f].isHidden()&&(this.placedOrientations[f]=o[f]);n?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)},Ot.prototype.updateLayerOpacities=function(e,t){for(var n={},r=0,a=t;r<a.length;r+=1){var i=a[r],o=i.getBucket(e);o&&i.latestFeatureIndex&&e.id===o.layerIds[0]&&this.updateBucketOpacities(o,n,i.collisionBoxArray)}},Ot.prototype.updateBucketOpacities=function(t,n,r){var a=this;t.hasTextData()&&t.text.opacityVertexArray.clear(),t.hasIconData()&&t.icon.opacityVertexArray.clear(),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();var i=t.layers[0].layout,o=new bt(null,0,!1,!1,!0),s=i.get("text-allow-overlap"),l=i.get("icon-allow-overlap"),c=i.get("text-variable-anchor"),u="map"===i.get("text-rotation-alignment"),d="map"===i.get("text-pitch-alignment"),p="none"!==i.get("icon-text-fit"),h=new bt(null,0,s&&(l||!t.hasIconData()||i.get("icon-optional")),l&&(s||!t.hasTextData()||i.get("text-optional")),!0);!t.collisionArrays&&r&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(r);for(var f=function(e,t,n){for(var r=0;r<t/4;r++)e.opacityVertexArray.emplaceBack(n)},m=function(r){var i=t.symbolInstances.get(r),s=i.numHorizontalGlyphVertices,l=i.numVerticalGlyphVertices,m=i.crossTileID,g=n[m],y=a.opacities[m];g?y=o:y||(y=h,a.opacities[m]=y),n[m]=!0;var b=s>0||l>0,v=i.numIconVertices>0,M=a.placedOrientations[i.crossTileID],x=M===e.WritingMode.vertical,z=M===e.WritingMode.horizontal||M===e.WritingMode.horizontalOnly;if(b){var _=Rt(y.text),A=x?Lt:_;f(t.text,s,A);var O=z?Lt:_;f(t.text,l,O);var w=y.text.isHidden();[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach(function(e){e>=0&&(t.text.placedSymbolArray.get(e).hidden=w||x?1:0)}),i.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(i.verticalPlacedTextSymbolIndex).hidden=w||z?1:0);var k=a.variableOffsets[i.crossTileID];k&&a.markUsedJustification(t,k.anchor,i,M);var T=a.placedOrientations[i.crossTileID];T&&(a.markUsedJustification(t,"left",i,T),a.markUsedOrientation(t,T,i))}if(v){var S=Rt(y.icon),C=!(p&&i.verticalPlacedIconSymbolIndex&&x);if(i.placedIconSymbolIndex>=0){var E=C?S:Lt;f(t.icon,i.numIconVertices,E),t.icon.placedSymbolArray.get(i.placedIconSymbolIndex).hidden=y.icon.isHidden()}if(i.verticalPlacedIconSymbolIndex>=0){var q=C?Lt:S;f(t.icon,i.numVerticalIconVertices,q),t.icon.placedSymbolArray.get(i.verticalPlacedIconSymbolIndex).hidden=y.icon.isHidden()}}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){var D=t.collisionArrays[r];if(D){var R=new e.Point(0,0);if(D.textBox||D.verticalTextBox){var L=!0;if(c){var I=a.variableOffsets[m];I?(R=_t(I.anchor,I.width,I.height,I.textOffset,I.textBoxScale),u&&R._rotate(d?a.transform.angle:-a.transform.angle)):L=!1}D.textBox&&wt(t.textCollisionBox.collisionVertexArray,y.text.placed,!L||x,R.x,R.y),D.verticalTextBox&&wt(t.textCollisionBox.collisionVertexArray,y.text.placed,!L||z,R.x,R.y)}var W=!(z||!D.verticalIconBox);D.iconBox&&wt(t.iconCollisionBox.collisionVertexArray,y.icon.placed,W,p?R.x:0,p?R.y:0),D.verticalIconBox&&wt(t.iconCollisionBox.collisionVertexArray,y.icon.placed,!W,p?R.x:0,p?R.y:0)}}},g=0;g<t.symbolInstances.length;g++)m(g);if(t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.bucketInstanceId in this.collisionCircleArrays){var y=this.collisionCircleArrays[t.bucketInstanceId];t.placementInvProjMatrix=y.invProjMatrix,t.placementViewportMatrix=y.viewportMatrix,t.collisionCircleArray=y.circles,delete this.collisionCircleArrays[t.bucketInstanceId]}},Ot.prototype.symbolFadeChange=function(e){return 0===this.fadeDuration?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},Ot.prototype.zoomAdjustment=function(e){return Math.max(0,(this.transform.zoom-e)/1.5)},Ot.prototype.hasTransitions=function(e){return this.stale||e-this.lastPlacementChangeTime<this.fadeDuration},Ot.prototype.stillRecent=function(e,t){var n=this.zoomAtLastRecencyCheck===t?1-this.zoomAdjustment(t):1;return this.zoomAtLastRecencyCheck=t,this.commitTime+this.fadeDuration*n>e},Ot.prototype.setStale=function(){this.stale=!0};var kt=Math.pow(2,25),Tt=Math.pow(2,24),St=Math.pow(2,17),Ct=Math.pow(2,16),Et=Math.pow(2,9),qt=Math.pow(2,8),Dt=Math.pow(2,1);function Rt(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;var t=e.placed?1:0,n=Math.floor(127*e.opacity);return n*kt+t*Tt+n*St+t*Ct+n*Et+t*qt+n*Dt+t}var Lt=0,It=function(e){this._sortAcrossTiles="viewport-y"!==e.layout.get("symbol-z-order")&&void 0!==e.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};It.prototype.continuePlacement=function(e,t,n,r,a){for(var i=this._bucketParts;this._currentTileIndex<e.length;){var o=e[this._currentTileIndex];if(t.getBucketParts(i,r,o,this._sortAcrossTiles),this._currentTileIndex++,a())return!0}for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,i.sort(function(e,t){return e.sortKey-t.sortKey}));this._currentPartIndex<i.length;){var s=i[this._currentPartIndex];if(t.placeLayerBucketPart(s,this._seenCrossTileIDs,n),this._currentPartIndex++,a())return!0}return!1};var Wt=function(e,t,n,r,a,i,o){this.placement=new Ot(e,a,i,o),this._currentPlacementIndex=t.length-1,this._forceFullPlacement=n,this._showCollisionBoxes=r,this._done=!1};Wt.prototype.isDone=function(){return this._done},Wt.prototype.continuePlacement=function(t,n,r){for(var a=this,i=e.browser.now(),o=function(){var t=e.browser.now()-i;return!a._forceFullPlacement&&t>2};this._currentPlacementIndex>=0;){var s=n[t[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&(!s.minzoom||s.minzoom<=l)&&(!s.maxzoom||s.maxzoom>l)){if(this._inProgressLayer||(this._inProgressLayer=new It(s)),this._inProgressLayer.continuePlacement(r[s.source],this.placement,this._showCollisionBoxes,s,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Wt.prototype.commit=function(e){return this.placement.commit(e),this.placement};var Nt=512/e.EXTENT/2,Pt=function(e,t,n){this.tileID=e,this.indexedSymbolInstances={},this.bucketInstanceId=n;for(var r=0;r<t.length;r++){var a=t.get(r),i=a.key;this.indexedSymbolInstances[i]||(this.indexedSymbolInstances[i]=[]),this.indexedSymbolInstances[i].push({crossTileID:a.crossTileID,coord:this.getScaledCoordinates(a,e)})}};Pt.prototype.getScaledCoordinates=function(t,n){var r=n.canonical.z-this.tileID.canonical.z,a=Nt/Math.pow(2,r);return{x:Math.floor((n.canonical.x*e.EXTENT+t.anchorX)*a),y:Math.floor((n.canonical.y*e.EXTENT+t.anchorY)*a)}},Pt.prototype.findMatches=function(e,t,n){for(var r=this.tileID.canonical.z<t.canonical.z?1:Math.pow(2,this.tileID.canonical.z-t.canonical.z),a=0;a<e.length;a++){var i=e.get(a);if(!i.crossTileID){var o=this.indexedSymbolInstances[i.key];if(o)for(var s=this.getScaledCoordinates(i,t),l=0,c=o;l<c.length;l+=1){var u=c[l];if(Math.abs(u.coord.x-s.x)<=r&&Math.abs(u.coord.y-s.y)<=r&&!n[u.crossTileID]){n[u.crossTileID]=!0,i.crossTileID=u.crossTileID;break}}}}};var Bt=function(){this.maxCrossTileID=0};Bt.prototype.generate=function(){return++this.maxCrossTileID};var Ft=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};Ft.prototype.handleWrapJump=function(e){var t=Math.round((e-this.lng)/360);if(0!==t)for(var n in this.indexes){var r=this.indexes[n],a={};for(var i in r){var o=r[i];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+t),a[o.tileID.key]=o}this.indexes[n]=a}this.lng=e},Ft.prototype.addBucket=function(e,t,n){if(this.indexes[e.overscaledZ]&&this.indexes[e.overscaledZ][e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(var r=0;r<t.symbolInstances.length;r++)t.symbolInstances.get(r).crossTileID=0;this.usedCrossTileIDs[e.overscaledZ]||(this.usedCrossTileIDs[e.overscaledZ]={});var a=this.usedCrossTileIDs[e.overscaledZ];for(var i in this.indexes){var o=this.indexes[i];if(Number(i)>e.overscaledZ)for(var s in o){var l=o[s];l.tileID.isChildOf(e)&&l.findMatches(t.symbolInstances,e,a)}else{var c=o[e.scaledTo(Number(i)).key];c&&c.findMatches(t.symbolInstances,e,a)}}for(var u=0;u<t.symbolInstances.length;u++){var d=t.symbolInstances.get(u);d.crossTileID||(d.crossTileID=n.generate(),a[d.crossTileID]=!0)}return void 0===this.indexes[e.overscaledZ]&&(this.indexes[e.overscaledZ]={}),this.indexes[e.overscaledZ][e.key]=new Pt(e,t.symbolInstances,t.bucketInstanceId),!0},Ft.prototype.removeBucketCrossTileIDs=function(e,t){for(var n in t.indexedSymbolInstances)for(var r=0,a=t.indexedSymbolInstances[n];r<a.length;r+=1){var i=a[r];delete this.usedCrossTileIDs[e][i.crossTileID]}},Ft.prototype.removeStaleBuckets=function(e){var t=!1;for(var n in this.indexes){var r=this.indexes[n];for(var a in r)e[r[a].bucketInstanceId]||(this.removeBucketCrossTileIDs(n,r[a]),delete r[a],t=!0)}return t};var jt=function(){this.layerIndexes={},this.crossTileIDs=new Bt,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};jt.prototype.addLayer=function(e,t,n){var r=this.layerIndexes[e.id];void 0===r&&(r=this.layerIndexes[e.id]=new Ft);var a=!1,i={};r.handleWrapJump(n);for(var o=0,s=t;o<s.length;o+=1){var l=s[o],c=l.getBucket(e);!c||e.id!==c.layerIds[0]||(c.bucketInstanceId||(c.bucketInstanceId=++this.maxBucketInstanceId),r.addBucket(l.tileID,c,this.crossTileIDs)&&(a=!0),i[c.bucketInstanceId]=!0)}return r.removeStaleBuckets(i)&&(a=!0),a},jt.prototype.pruneUnusedLayers=function(e){var t={};for(var n in e.forEach(function(e){t[e]=!0}),this.layerIndexes)t[n]||delete this.layerIndexes[n]};var Ut=function(t,n){return e.emitValidationErrors(t,n&&n.filter(function(e){return"source.canvas"!==e.identifier}))},Vt=e.pick(Ue,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData"]),Ht=e.pick(Ue,["setCenter","setZoom","setBearing","setPitch"]),Xt=function(){var t={},n=e.styleSpec.$version;for(var r in e.styleSpec.$root){var a=e.styleSpec.$root[r];if(a.required){var i=null;null!=(i="version"===r?n:"array"===a.type?[]:{})&&(t[r]=i)}}return t}(),Gt=function(t){function n(r,a){var i=this;void 0===a&&(a={}),t.call(this),this.map=r,this.dispatcher=new O(Be(),this),this.imageManager=new p,this.imageManager.setEventedParent(this),this.glyphManager=new v(r._requestManager,a.localIdeographFontFamily),this.lineAtlas=new A(256,512),this.crossTileSymbolIndex=new jt,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new e.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("setReferrer",e.getReferrer());var o=this;this._rtlTextPluginCallback=n.registerForPluginStateChange(function(t){var n={pluginStatus:t.pluginStatus,pluginURL:t.pluginURL};o.dispatcher.broadcast("syncRTLPluginState",n,function(t,n){if(e.triggerPluginCompletionEvent(t),n&&n.every(function(e){return e}))for(var r in o.sourceCaches)o.sourceCaches[r].reload()})}),this.on("data",function(e){if("source"===e.dataType&&"metadata"===e.sourceDataType){var t=i.sourceCaches[e.sourceId];if(t){var n=t.getSource();if(n&&n.vectorLayerIds)for(var r in i._layers){var a=i._layers[r];a.source===n.id&&i._validateLayer(a)}}}})}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.loadURL=function(t,n){var r=this;void 0===n&&(n={}),this.fire(new e.Event("dataloading",{dataType:"style"}));var a="boolean"==typeof n.validate?n.validate:!e.isMapboxURL(t);t=this.map._requestManager.normalizeStyleURL(t,n.accessToken);var i=this.map._requestManager.transformRequest(t,e.ResourceType.Style);this._request=e.getJSON(i,function(t,n){r._request=null,t?r.fire(new e.ErrorEvent(t)):n&&r._load(n,a)})},n.prototype.loadJSON=function(t,n){var r=this;void 0===n&&(n={}),this.fire(new e.Event("dataloading",{dataType:"style"})),this._request=e.browser.frame(function(){r._request=null,r._load(t,!1!==n.validate)})},n.prototype.loadEmpty=function(){this.fire(new e.Event("dataloading",{dataType:"style"})),this._load(Xt,!1)},n.prototype._load=function(t,n){if(!n||!Ut(this,e.validateStyle(t))){for(var r in this._loaded=!0,this.stylesheet=t,t.sources)this.addSource(r,t.sources[r],{validate:!1});t.sprite?this._loadSprite(t.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(t.glyphs);var a=je(this.stylesheet.layers);this._order=a.map(function(e){return e.id}),this._layers={},this._serializedLayers={};for(var i=0,o=a;i<o.length;i+=1){var s=o[i];(s=e.createStyleLayer(s)).setEventedParent(this,{layer:{id:s.id}}),this._layers[s.id]=s,this._serializedLayers[s.id]=s.serialize()}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new _(this.stylesheet.light),this.fire(new e.Event("data",{dataType:"style"})),this.fire(new e.Event("style.load"))}},n.prototype._loadSprite=function(t){var n=this;this._spriteRequest=function(t,n,r){var a,i,o,s=e.browser.devicePixelRatio>1?"@2x":"",l=e.getJSON(n.transformRequest(n.normalizeSpriteURL(t,s,".json"),e.ResourceType.SpriteJSON),function(e,t){l=null,o||(o=e,a=t,u())}),c=e.getImage(n.transformRequest(n.normalizeSpriteURL(t,s,".png"),e.ResourceType.SpriteImage),function(e,t){c=null,o||(o=e,i=t,u())});function u(){if(o)r(o);else if(a&&i){var t=e.browser.getImageData(i),n={};for(var s in a){var l=a[s],c=l.width,u=l.height,d=l.x,p=l.y,h=l.sdf,f=l.pixelRatio,m=l.stretchX,g=l.stretchY,y=l.content,b=new e.RGBAImage({width:c,height:u});e.RGBAImage.copy(t,b,{x:d,y:p},{x:0,y:0},{width:c,height:u}),n[s]={data:b,pixelRatio:f,sdf:h,stretchX:m,stretchY:g,content:y}}r(null,n)}}return{cancel:function(){l&&(l.cancel(),l=null),c&&(c.cancel(),c=null)}}}(t,this.map._requestManager,function(t,r){if(n._spriteRequest=null,t)n.fire(new e.ErrorEvent(t));else if(r)for(var a in r)n.imageManager.addImage(a,r[a]);n.imageManager.setLoaded(!0),n._availableImages=n.imageManager.listImages(),n.dispatcher.broadcast("setImages",n._availableImages),n.fire(new e.Event("data",{dataType:"style"}))})},n.prototype._validateLayer=function(t){var n=this.sourceCaches[t.source];if(n){var r=t.sourceLayer;if(r){var a=n.getSource();("geojson"===a.type||a.vectorLayerIds&&-1===a.vectorLayerIds.indexOf(r))&&this.fire(new e.ErrorEvent(new Error('Source layer "'+r+'" does not exist on source "'+a.id+'" as specified by style layer "'+t.id+'"')))}}},n.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var e in this.sourceCaches)if(!this.sourceCaches[e].loaded())return!1;return!!this.imageManager.isLoaded()},n.prototype._serializeLayers=function(e){for(var t=[],n=0,r=e;n<r.length;n+=1){var a=r[n],i=this._layers[a];"custom"!==i.type&&t.push(i.serialize())}return t},n.prototype.hasTransitions=function(){if(this.light&&this.light.hasTransition())return!0;for(var e in this.sourceCaches)if(this.sourceCaches[e].hasTransition())return!0;for(var t in this._layers)if(this._layers[t].hasTransition())return!0;return!1},n.prototype._checkLoaded=function(){if(!this._loaded)throw new Error("Style is not done loading")},n.prototype.update=function(t){if(this._loaded){var n=this._changed;if(this._changed){var r=Object.keys(this._updatedLayers),a=Object.keys(this._removedLayers);for(var i in(r.length||a.length)&&this._updateWorkerLayers(r,a),this._updatedSources){var o=this._updatedSources[i];"reload"===o?this._reloadSource(i):"clear"===o&&this._clearSource(i)}for(var s in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[s].updateTransitions(t);this.light.updateTransitions(t),this._resetUpdates()}var l={};for(var c in this.sourceCaches){var u=this.sourceCaches[c];l[c]=u.used,u.used=!1}for(var d=0,p=this._order;d<p.length;d+=1){var h=p[d],f=this._layers[h];f.recalculate(t,this._availableImages),!f.isHidden(t.zoom)&&f.source&&(this.sourceCaches[f.source].used=!0)}for(var m in l){var g=this.sourceCaches[m];l[m]!==g.used&&g.fire(new e.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:m}))}this.light.recalculate(t),this.z=t.zoom,n&&this.fire(new e.Event("data",{dataType:"style"}))}},n.prototype._updateTilesForChangedImages=function(){var e=Object.keys(this._changedImages);if(e.length){for(var t in this.sourceCaches)this.sourceCaches[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}},n.prototype._updateWorkerLayers=function(e,t){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(e),removedIds:t})},n.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}},n.prototype.setState=function(t){var n=this;if(this._checkLoaded(),Ut(this,e.validateStyle(t)))return!1;(t=e.clone$1(t)).layers=je(t.layers);var r=Je(this.serialize(),t).filter(function(e){return!(e.command in Ht)});if(0===r.length)return!1;var a=r.filter(function(e){return!(e.command in Vt)});if(a.length>0)throw new Error("Unimplemented: "+a.map(function(e){return e.command}).join(", ")+".");return r.forEach(function(e){"setTransition"!==e.command&&n[e.command].apply(n,e.args)}),this.stylesheet=t,!0},n.prototype.addImage=function(t,n){if(this.getImage(t))return this.fire(new e.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(t,n),this._afterImageUpdated(t)},n.prototype.updateImage=function(e,t){this.imageManager.updateImage(e,t)},n.prototype.getImage=function(e){return this.imageManager.getImage(e)},n.prototype.removeImage=function(t){if(!this.getImage(t))return this.fire(new e.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(t),this._afterImageUpdated(t)},n.prototype._afterImageUpdated=function(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.Event("data",{dataType:"style"}))},n.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},n.prototype.addSource=function(t,n,r){var a=this;if(void 0===r&&(r={}),this._checkLoaded(),void 0!==this.sourceCaches[t])throw new Error("There is already a source with this ID");if(!n.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(n).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(e.validateStyle.source,"sources."+t,n,null,r))){this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);var i=this.sourceCaches[t]=new qe(t,n,this.dispatcher);i.style=this,i.setEventedParent(this,function(){return{isSourceLoaded:a.loaded(),source:i.serialize(),sourceId:t}}),i.onAdd(this.map),this._changed=!0}},n.prototype.removeSource=function(t){if(this._checkLoaded(),void 0===this.sourceCaches[t])throw new Error("There is no source with this ID");for(var n in this._layers)if(this._layers[n].source===t)return this.fire(new e.ErrorEvent(new Error('Source "'+t+'" cannot be removed while layer "'+n+'" is using it.')));var r=this.sourceCaches[t];delete this.sourceCaches[t],delete this._updatedSources[t],r.fire(new e.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:t})),r.setEventedParent(null),r.clearTiles(),r.onRemove&&r.onRemove(this.map),this._changed=!0},n.prototype.setGeoJSONSourceData=function(e,t){this._checkLoaded(),this.sourceCaches[e].getSource().setData(t),this._changed=!0},n.prototype.getSource=function(e){return this.sourceCaches[e]&&this.sourceCaches[e].getSource()},n.prototype.addLayer=function(t,n,r){void 0===r&&(r={}),this._checkLoaded();var a=t.id;if(this.getLayer(a))this.fire(new e.ErrorEvent(new Error('Layer with id "'+a+'" already exists on this map')));else{var i;if("custom"===t.type){if(Ut(this,e.validateCustomStyleLayer(t)))return;i=e.createStyleLayer(t)}else{if("object"==typeof t.source&&(this.addSource(a,t.source),t=e.clone$1(t),t=e.extend(t,{source:a})),this._validate(e.validateStyle.layer,"layers."+a,t,{arrayIndex:-1},r))return;i=e.createStyleLayer(t),this._validateLayer(i),i.setEventedParent(this,{layer:{id:a}}),this._serializedLayers[i.id]=i.serialize()}var o=n?this._order.indexOf(n):this._order.length;if(n&&-1===o)this.fire(new e.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.')));else{if(this._order.splice(o,0,a),this._layerOrderChanged=!0,this._layers[a]=i,this._removedLayers[a]&&i.source&&"custom"!==i.type){var s=this._removedLayers[a];delete this._removedLayers[a],s.type!==i.type?this._updatedSources[i.source]="clear":(this._updatedSources[i.source]="reload",this.sourceCaches[i.source].pause())}this._updateLayer(i),i.onAdd&&i.onAdd(this.map)}}},n.prototype.moveLayer=function(t,n){if(this._checkLoaded(),this._changed=!0,this._layers[t]){if(t!==n){var r=this._order.indexOf(t);this._order.splice(r,1);var a=n?this._order.indexOf(n):this._order.length;if(n&&-1===a)return void this.fire(new e.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.')));this._order.splice(a,0,t),this._layerOrderChanged=!0}}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be moved.")))},n.prototype.removeLayer=function(t){this._checkLoaded();var n=this._layers[t];if(n){n.setEventedParent(null);var r=this._order.indexOf(t);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=n,delete this._layers[t],delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],n.onRemove&&n.onRemove(this.map)}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be removed.")))},n.prototype.getLayer=function(e){return this._layers[e]},n.prototype.hasLayer=function(e){return e in this._layers},n.prototype.setLayerZoomRange=function(t,n,r){this._checkLoaded();var a=this.getLayer(t);a?a.minzoom===n&&a.maxzoom===r||(null!=n&&(a.minzoom=n),null!=r&&(a.maxzoom=r),this._updateLayer(a)):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot have zoom extent.")))},n.prototype.setFilter=function(t,n,r){void 0===r&&(r={}),this._checkLoaded();var a=this.getLayer(t);if(a){if(!e.deepEqual(a.filter,n)){if(null==n)return a.filter=void 0,void this._updateLayer(a);this._validate(e.validateStyle.filter,"layers."+a.id+".filter",n,null,r)||(a.filter=e.clone$1(n),this._updateLayer(a))}}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be filtered.")))},n.prototype.getFilter=function(t){return e.clone$1(this.getLayer(t).filter)},n.prototype.setLayoutProperty=function(t,n,r,a){void 0===a&&(a={}),this._checkLoaded();var i=this.getLayer(t);i?e.deepEqual(i.getLayoutProperty(n),r)||(i.setLayoutProperty(n,r,a),this._updateLayer(i)):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getLayoutProperty=function(t,n){var r=this.getLayer(t);if(r)return r.getLayoutProperty(n);this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style.")))},n.prototype.setPaintProperty=function(t,n,r,a){void 0===a&&(a={}),this._checkLoaded();var i=this.getLayer(t);i?e.deepEqual(i.getPaintProperty(n),r)||(i.setPaintProperty(n,r,a)&&this._updateLayer(i),this._changed=!0,this._updatedPaintProps[t]=!0):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getPaintProperty=function(e,t){return this.getLayer(e).getPaintProperty(t)},n.prototype.setFeatureState=function(t,n){this._checkLoaded();var r=t.source,a=t.sourceLayer,i=this.sourceCaches[r];if(void 0!==i){var o=i.getSource().type;"geojson"===o&&a?this.fire(new e.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==o||a?(void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),i.setFeatureState(a,t.id,n)):this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.removeFeatureState=function(t,n){this._checkLoaded();var r=t.source,a=this.sourceCaches[r];if(void 0!==a){var i=a.getSource().type,o="vector"===i?t.sourceLayer:void 0;"vector"!==i||o?n&&"string"!=typeof t.id&&"number"!=typeof t.id?this.fire(new e.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):a.removeFeatureState(o,t.id,n):this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.getFeatureState=function(t){this._checkLoaded();var n=t.source,r=t.sourceLayer,a=this.sourceCaches[n];if(void 0!==a){if("vector"!==a.getSource().type||r)return void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),a.getFeatureState(r,t.id);this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},n.prototype.getTransition=function(){return e.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},n.prototype.serialize=function(){return e.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:e.mapObject(this.sourceCaches,function(e){return e.serialize()}),layers:this._serializeLayers(this._order)},function(e){return void 0!==e})},n.prototype._updateLayer=function(e){this._updatedLayers[e.id]=!0,e.source&&!this._updatedSources[e.source]&&"raster"!==this.sourceCaches[e.source].getSource().type&&(this._updatedSources[e.source]="reload",this.sourceCaches[e.source].pause()),this._changed=!0},n.prototype._flattenAndSortRenderedFeatures=function(e){for(var t=this,n=function(e){return"fill-extrusion"===t._layers[e].type},r={},a=[],i=this._order.length-1;i>=0;i--){var o=this._order[i];if(n(o)){r[o]=i;for(var s=0,l=e;s<l.length;s+=1){var c=l[s][o];if(c)for(var u=0,d=c;u<d.length;u+=1){var p=d[u];a.push(p)}}}}a.sort(function(e,t){return t.intersectionZ-e.intersectionZ});for(var h=[],f=this._order.length-1;f>=0;f--){var m=this._order[f];if(n(m))for(var g=a.length-1;g>=0;g--){var y=a[g].feature;if(r[y.layer.id]<f)break;h.push(y),a.pop()}else for(var b=0,v=e;b<v.length;b+=1){var M=v[b][m];if(M)for(var x=0,z=M;x<z.length;x+=1){var _=z[x];h.push(_.feature)}}}return h},n.prototype.queryRenderedFeatures=function(t,n,r){n&&n.filter&&this._validate(e.validateStyle.filter,"queryRenderedFeatures.filter",n.filter,null,n);var a={};if(n&&n.layers){if(!Array.isArray(n.layers))return this.fire(new e.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(var i=0,o=n.layers;i<o.length;i+=1){var s=o[i],l=this._layers[s];if(!l)return this.fire(new e.ErrorEvent(new Error("The layer '"+s+"' does not exist in the map's style and cannot be queried for features."))),[];a[l.source]=!0}}var c=[];for(var u in n.availableImages=this._availableImages,this.sourceCaches)n.layers&&!a[u]||c.push(N(this.sourceCaches[u],this._layers,this._serializedLayers,t,n,r));return this.placement&&c.push(function(e,t,n,r,a,i,o){for(var s={},l=i.queryRenderedSymbols(r),c=[],u=0,d=Object.keys(l).map(Number);u<d.length;u+=1){var p=d[u];c.push(o[p])}c.sort(P);for(var h=function(){var n=m[f],r=n.featureIndex.lookupSymbolFeatures(l[n.bucketInstanceId],t,n.bucketIndex,n.sourceLayerIndex,a.filter,a.layers,a.availableImages,e);for(var i in r){var o=s[i]=s[i]||[],c=r[i];c.sort(function(e,t){var r=n.featureSortOrder;if(r){var a=r.indexOf(e.featureIndex);return r.indexOf(t.featureIndex)-a}return t.featureIndex-e.featureIndex});for(var u=0,d=c;u<d.length;u+=1){var p=d[u];o.push(p)}}},f=0,m=c;f<m.length;f+=1)h();var g=function(t){s[t].forEach(function(r){var a=r.feature,i=e[t],o=n[i.source].getFeatureState(a.layer["source-layer"],a.id);a.source=a.layer.source,a.layer["source-layer"]&&(a.sourceLayer=a.layer["source-layer"]),a.state=o})};for(var y in s)g(y);return s}(this._layers,this._serializedLayers,this.sourceCaches,t,n,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(c)},n.prototype.querySourceFeatures=function(t,n){n&&n.filter&&this._validate(e.validateStyle.filter,"querySourceFeatures.filter",n.filter,null,n);var r=this.sourceCaches[t];return r?function(e,t){for(var n=e.getRenderableIds().map(function(t){return e.getTileByID(t)}),r=[],a={},i=0;i<n.length;i++){var o=n[i],s=o.tileID.canonical.key;a[s]||(a[s]=!0,o.querySourceFeatures(r,t))}return r}(r,n):[]},n.prototype.addSourceType=function(e,t,r){return n.getSourceType(e)?r(new Error('A source type called "'+e+'" already exists.')):(n.setSourceType(e,t),t.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:e,url:t.workerSourceURL},r):r(null,null))},n.prototype.getLight=function(){return this.light.getLight()},n.prototype.setLight=function(t,n){void 0===n&&(n={}),this._checkLoaded();var r=this.light.getLight(),a=!1;for(var i in t)if(!e.deepEqual(t[i],r[i])){a=!0;break}if(a){var o={now:e.browser.now(),transition:e.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(t,n),this.light.updateTransitions(o)}},n.prototype._validate=function(t,n,r,a,i){return void 0===i&&(i={}),(!i||!1!==i.validate)&&Ut(this,t.call(e.validateStyle,e.extend({key:n,style:this.serialize(),value:r,styleSpec:e.styleSpec},a)))},n.prototype._remove=function(){for(var t in this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),e.evented.off("pluginStateChange",this._rtlTextPluginCallback),this._layers)this._layers[t].setEventedParent(null);for(var n in this.sourceCaches)this.sourceCaches[n].clearTiles(),this.sourceCaches[n].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},n.prototype._clearSource=function(e){this.sourceCaches[e].clearTiles()},n.prototype._reloadSource=function(e){this.sourceCaches[e].resume(),this.sourceCaches[e].reload()},n.prototype._updateSources=function(e){for(var t in this.sourceCaches)this.sourceCaches[t].update(e)},n.prototype._generateCollisionBoxes=function(){for(var e in this.sourceCaches)this._reloadSource(e)},n.prototype._updatePlacement=function(t,n,r,a,i){void 0===i&&(i=!1);for(var o=!1,s=!1,l={},c=0,u=this._order;c<u.length;c+=1){var d=u[c],p=this._layers[d];if("symbol"===p.type){if(!l[p.source]){var h=this.sourceCaches[p.source];l[p.source]=h.getRenderableIds(!0).map(function(e){return h.getTileByID(e)}).sort(function(e,t){return t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1)})}var f=this.crossTileSymbolIndex.addLayer(p,l[p.source],t.center.lng);o=o||f}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((i=i||this._layerOrderChanged||0===r)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(e.browser.now(),t.zoom))&&(this.pauseablePlacement=new Wt(t,this._order,i,n,r,a,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(e.browser.now()),s=!0),o&&this.pauseablePlacement.placement.setStale()),s||o)for(var m=0,g=this._order;m<g.length;m+=1){var y=g[m],b=this._layers[y];"symbol"===b.type&&this.placement.updateLayerOpacities(b,l[b.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(e.browser.now())},n.prototype._releaseSymbolFadeTiles=function(){for(var e in this.sourceCaches)this.sourceCaches[e].releaseSymbolFadeTiles()},n.prototype.getImages=function(e,t,n){this.imageManager.getImages(t.icons,n),this._updateTilesForChangedImages();var r=this.sourceCaches[t.source];r&&r.setDependencies(t.tileID.key,t.type,t.icons)},n.prototype.getGlyphs=function(e,t,n){this.glyphManager.getGlyphs(t.stacks,n)},n.prototype.getResource=function(t,n,r){return e.makeRequest(n,r)},n}(e.Evented);Gt.getSourceType=function(e){return I[e]},Gt.setSourceType=function(e,t){I[e]=t},Gt.registerForPluginStateChange=e.registerForPluginStateChange;var Yt=e.createLayout([{name:"a_pos",type:"Int16",components:2}]),Zt=zn("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}"),$t=zn("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),Jt=zn("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),Qt=zn("varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"),Kt=zn("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),en=zn("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}"),tn=zn("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),nn=zn("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),rn=zn("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),an=zn("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),on=zn("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),sn=zn("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),ln=zn("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),cn=zn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),un=zn("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),dn=zn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),pn=zn("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hn=zn("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),fn=zn("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),mn=zn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),gn=zn("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),yn=zn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),bn=zn("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),vn=zn("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}"),Mn=zn("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),xn=zn("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}");function zn(e,t){var n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=t.match(/attribute ([\w]+) ([\w]+)/g),a=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),i=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=i?i.concat(a):a,s={};return{fragmentSource:e=e.replace(n,function(e,t,n,r,a){return s[a]=!0,"define"===t?"\n#ifndef HAS_UNIFORM_u_"+a+"\nvarying "+n+" "+r+" "+a+";\n#else\nuniform "+n+" "+r+" u_"+a+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+a+"\n "+n+" "+r+" "+a+" = u_"+a+";\n#endif\n"}),vertexSource:t=t.replace(n,function(e,t,n,r,a){var i="float"===r?"vec2":"vec4",o=a.match(/color/)?"color":i;return s[a]?"define"===t?"\n#ifndef HAS_UNIFORM_u_"+a+"\nuniform lowp float u_"+a+"_t;\nattribute "+n+" "+i+" a_"+a+";\nvarying "+n+" "+r+" "+a+";\n#else\nuniform "+n+" "+r+" u_"+a+";\n#endif\n":"vec4"===o?"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+a+" = a_"+a+";\n#else\n "+n+" "+r+" "+a+" = u_"+a+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+a+" = unpack_mix_"+o+"(a_"+a+", u_"+a+"_t);\n#else\n "+n+" "+r+" "+a+" = u_"+a+";\n#endif\n":"define"===t?"\n#ifndef HAS_UNIFORM_u_"+a+"\nuniform lowp float u_"+a+"_t;\nattribute "+n+" "+i+" a_"+a+";\n#else\nuniform "+n+" "+r+" u_"+a+";\n#endif\n":"vec4"===o?"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+n+" "+r+" "+a+" = a_"+a+";\n#else\n "+n+" "+r+" "+a+" = u_"+a+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+n+" "+r+" "+a+" = unpack_mix_"+o+"(a_"+a+", u_"+a+"_t);\n#else\n "+n+" "+r+" "+a+" = u_"+a+";\n#endif\n"}),staticAttributes:r,staticUniforms:o}}var _n=Object.freeze({__proto__:null,prelude:Zt,background:$t,backgroundPattern:Jt,circle:Qt,clippingMask:Kt,heatmap:en,heatmapTexture:tn,collisionBox:nn,collisionCircle:rn,debug:an,fill:on,fillOutline:sn,fillOutlinePattern:ln,fillPattern:cn,fillExtrusion:un,fillExtrusionPattern:dn,hillshadePrepare:pn,hillshade:hn,line:fn,lineGradient:mn,linePattern:gn,lineSDF:yn,raster:bn,symbolIcon:vn,symbolSDF:Mn,symbolTextAndIcon:xn}),An=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function On(e){for(var t=[],n=0;n<e.length;n++)if(null!==e[n]){var r=e[n].split(" ");t.push(r.pop())}return t}An.prototype.bind=function(e,t,n,r,a,i,o,s){this.context=e;for(var l=this.boundPaintVertexBuffers.length!==r.length,c=0;!l&&c<r.length;c++)this.boundPaintVertexBuffers[c]!==r[c]&&(l=!0);var u=!this.vao||this.boundProgram!==t||this.boundLayoutVertexBuffer!==n||l||this.boundIndexBuffer!==a||this.boundVertexOffset!==i||this.boundDynamicVertexBuffer!==o||this.boundDynamicVertexBuffer2!==s;!e.extVertexArrayObject||u?this.freshBind(t,n,r,a,i,o,s):(e.bindVertexArrayOES.set(this.vao),o&&o.bind(),a&&a.dynamicDraw&&a.bind(),s&&s.bind())},An.prototype.freshBind=function(e,t,n,r,a,i,o){var s,l=e.numAttributes,c=this.context,u=c.gl;if(c.extVertexArrayObject)this.vao&&this.destroy(),this.vao=c.extVertexArrayObject.createVertexArrayOES(),c.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=e,this.boundLayoutVertexBuffer=t,this.boundPaintVertexBuffers=n,this.boundIndexBuffer=r,this.boundVertexOffset=a,this.boundDynamicVertexBuffer=i,this.boundDynamicVertexBuffer2=o;else{s=c.currentNumAttributes||0;for(var d=l;d<s;d++)u.disableVertexAttribArray(d)}t.enableAttributes(u,e);for(var p=0,h=n;p<h.length;p+=1)h[p].enableAttributes(u,e);i&&i.enableAttributes(u,e),o&&o.enableAttributes(u,e),t.bind(),t.setVertexAttribPointers(u,e,a);for(var f=0,m=n;f<m.length;f+=1){var g=m[f];g.bind(),g.setVertexAttribPointers(u,e,a)}i&&(i.bind(),i.setVertexAttribPointers(u,e,a)),r&&r.bind(),o&&(o.bind(),o.setVertexAttribPointers(u,e,a)),c.currentNumAttributes=l},An.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var wn=function(e,t,n,r,a,i){var o=e.gl;this.program=o.createProgram();for(var s=On(n.staticAttributes),l=r?r.getBinderAttributes():[],c=s.concat(l),u=n.staticUniforms?On(n.staticUniforms):[],d=r?r.getBinderUniforms():[],p=[],h=0,f=u.concat(d);h<f.length;h+=1){var m=f[h];p.indexOf(m)<0&&p.push(m)}var g=r?r.defines():[];i&&g.push("#define OVERDRAW_INSPECTOR;");var y=g.concat(Zt.fragmentSource,n.fragmentSource).join("\n"),b=g.concat(Zt.vertexSource,n.vertexSource).join("\n"),v=o.createShader(o.FRAGMENT_SHADER);if(o.isContextLost())this.failedToCreate=!0;else{o.shaderSource(v,y),o.compileShader(v),o.attachShader(this.program,v);var M=o.createShader(o.VERTEX_SHADER);if(o.isContextLost())this.failedToCreate=!0;else{o.shaderSource(M,b),o.compileShader(M),o.attachShader(this.program,M),this.attributes={};var x={};this.numAttributes=c.length;for(var z=0;z<this.numAttributes;z++)c[z]&&(o.bindAttribLocation(this.program,z,c[z]),this.attributes[c[z]]=z);o.linkProgram(this.program),o.deleteShader(M),o.deleteShader(v);for(var _=0;_<p.length;_++){var A=p[_];if(A&&!x[A]){var O=o.getUniformLocation(this.program,A);O&&(x[A]=O)}}this.fixedUniforms=a(e,x),this.binderUniforms=r?r.getUniforms(e,x):[]}}};function kn(e,t,n){var r=1/gt(n,1,t.transform.tileZoom),a=Math.pow(2,n.tileID.overscaledZ),i=n.tileSize*Math.pow(2,t.transform.tileZoom)/a,o=i*(n.tileID.canonical.x+n.tileID.wrap*a),s=i*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[r,e.fromScale,e.toScale],u_fade:e.t,u_pixel_coord_upper:[o>>16,s>>16],u_pixel_coord_lower:[65535&o,65535&s]}}wn.prototype.draw=function(e,t,n,r,a,i,o,s,l,c,u,d,p,h,f,m){var g,y=e.gl;if(!this.failedToCreate){for(var b in e.program.set(this.program),e.setDepthMode(n),e.setStencilMode(r),e.setColorMode(a),e.setCullFace(i),this.fixedUniforms)this.fixedUniforms[b].set(o[b]);h&&h.setUniforms(e,this.binderUniforms,d,{zoom:p});for(var v=(g={},g[y.LINES]=2,g[y.TRIANGLES]=3,g[y.LINE_STRIP]=1,g)[t],M=0,x=u.get();M<x.length;M+=1){var z=x[M],_=z.vaos||(z.vaos={});(_[s]||(_[s]=new An)).bind(e,this,l,h?h.getPaintVertexBuffers():[],c,z.vertexOffset,f,m),y.drawElements(t,z.primitiveLength*v,y.UNSIGNED_SHORT,z.primitiveOffset*v*2)}}};var Tn=function(t,n,r,a){var i=n.style.light,o=i.properties.get("position"),s=[o.x,o.y,o.z],l=e.create$1();"viewport"===i.properties.get("anchor")&&e.fromRotation(l,-n.transform.angle),e.transformMat3(s,s,l);var c=i.properties.get("color");return{u_matrix:t,u_lightpos:s,u_lightintensity:i.properties.get("intensity"),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+r,u_opacity:a}},Sn=function(t,n,r,a,i,o,s){return e.extend(Tn(t,n,r,a),kn(o,n,s),{u_height_factor:-Math.pow(2,i.overscaledZ)/s.tileSize/8})},Cn=function(e){return{u_matrix:e}},En=function(t,n,r,a){return e.extend(Cn(t),kn(r,n,a))},qn=function(e,t){return{u_matrix:e,u_world:t}},Dn=function(t,n,r,a,i){return e.extend(En(t,n,r,a),{u_world:i})},Rn=function(t,n,r,a){var i,o,s=t.transform;if("map"===a.paint.get("circle-pitch-alignment")){var l=gt(r,1,s.zoom);i=!0,o=[l,l]}else i=!1,o=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+("map"===a.paint.get("circle-pitch-scale")),u_matrix:t.translatePosMatrix(n.posMatrix,r,a.paint.get("circle-translate"),a.paint.get("circle-translate-anchor")),u_pitch_with_map:+i,u_device_pixel_ratio:e.browser.devicePixelRatio,u_extrude_scale:o}},Ln=function(e,t,n){var r=gt(n,1,t.zoom),a=Math.pow(2,t.zoom-n.tileID.overscaledZ),i=n.tileID.overscaleFactor();return{u_matrix:e,u_camera_to_center_distance:t.cameraToCenterDistance,u_pixels_to_tile_units:r,u_extrude_scale:[t.pixelsToGLUnits[0]/(r*a),t.pixelsToGLUnits[1]/(r*a)],u_overscale_factor:i}},In=function(e,t,n){return{u_matrix:e,u_inv_matrix:t,u_camera_to_center_distance:n.cameraToCenterDistance,u_viewport_size:[n.width,n.height]}},Wn=function(e,t,n){return void 0===n&&(n=1),{u_matrix:e,u_color:t,u_overlay:0,u_overlay_scale:n}},Nn=function(e){return{u_matrix:e}},Pn=function(e,t,n,r){return{u_matrix:e,u_extrude_scale:gt(t,1,n),u_intensity:r}};function Bn(t,n){var r=Math.pow(2,n.canonical.z),a=n.canonical.y;return[new e.MercatorCoordinate(0,a/r).toLngLat().lat,new e.MercatorCoordinate(0,(a+1)/r).toLngLat().lat]}var Fn=function(t,n,r){var a=t.transform;return{u_matrix:Xn(t,n,r),u_ratio:1/gt(n,1,a.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},jn=function(t,n,r,a){return e.extend(Fn(t,n,r),{u_image:0,u_image_height:a})},Un=function(t,n,r,a){var i=t.transform,o=Hn(n,i);return{u_matrix:Xn(t,n,r),u_texsize:n.imageAtlasTexture.size,u_ratio:1/gt(n,1,i.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_image:0,u_scale:[o,a.fromScale,a.toScale],u_fade:a.t,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Vn=function(t,n,r,a,i){var o=t.transform,s=t.lineAtlas,l=Hn(n,o),c="round"===r.layout.get("line-cap"),u=s.getDash(a.from,c),d=s.getDash(a.to,c),p=u.width*i.fromScale,h=d.width*i.toScale;return e.extend(Fn(t,n,r),{u_patternscale_a:[l/p,-u.height/2],u_patternscale_b:[l/h,-d.height/2],u_sdfgamma:s.width/(256*Math.min(p,h)*e.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:u.y,u_tex_y_b:d.y,u_mix:i.t})};function Hn(e,t){return 1/gt(e,1,t.tileZoom)}function Xn(e,t,n){return e.translatePosMatrix(t.tileID.posMatrix,t,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}var Gn=function(e,t,n,r,a){return{u_matrix:e,u_tl_parent:t,u_scale_parent:n,u_buffer_scale:1,u_fade_t:r.mix,u_opacity:r.opacity*a.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:a.paint.get("raster-brightness-min"),u_brightness_high:a.paint.get("raster-brightness-max"),u_saturation_factor:$n(a.paint.get("raster-saturation")),u_contrast_factor:Zn(a.paint.get("raster-contrast")),u_spin_weights:Yn(a.paint.get("raster-hue-rotate"))}};function Yn(e){e*=Math.PI/180;var t=Math.sin(e),n=Math.cos(e);return[(2*n+1)/3,(-Math.sqrt(3)*t-n+1)/3,(Math.sqrt(3)*t-n+1)/3]}function Zn(e){return e>0?1/(1-e):1+e}function $n(e){return e>0?1-1/(1.001-e):-e}var Jn,Qn=function(e,t,n,r,a,i,o,s,l,c){var u=a.transform;return{u_is_size_zoom_constant:+("constant"===e||"source"===e),u_is_size_feature_constant:+("constant"===e||"camera"===e),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_camera_to_center_distance:u.cameraToCenterDistance,u_pitch:u.pitch/360*2*Math.PI,u_rotate_symbol:+n,u_aspect_ratio:u.width/u.height,u_fade_change:a.options.fadeDuration?a.symbolFadeChange:1,u_matrix:i,u_label_plane_matrix:o,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+r,u_texsize:c,u_texture:0}},Kn=function(t,n,r,a,i,o,s,l,c,u,d){var p=i.transform;return e.extend(Qn(t,n,r,a,i,o,s,l,c,u),{u_gamma_scale:a?Math.cos(p._pitch)*p.cameraToCenterDistance:1,u_device_pixel_ratio:e.browser.devicePixelRatio,u_is_halo:+d})},er=function(t,n,r,a,i,o,s,l,c,u){return e.extend(Kn(t,n,r,a,i,o,s,l,!0,c,!0),{u_texsize_icon:u,u_texture_icon:1})},tr=function(e,t,n){return{u_matrix:e,u_opacity:t,u_color:n}},nr=function(t,n,r,a,i,o){return e.extend(function(e,t,n,r){var a=n.imageManager.getPattern(e.from.toString()),i=n.imageManager.getPattern(e.to.toString()),o=n.imageManager.getPixelSize(),s=o.width,l=o.height,c=Math.pow(2,r.tileID.overscaledZ),u=r.tileSize*Math.pow(2,n.transform.tileZoom)/c,d=u*(r.tileID.canonical.x+r.tileID.wrap*c),p=u*r.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:a.tl,u_pattern_br_a:a.br,u_pattern_tl_b:i.tl,u_pattern_br_b:i.br,u_texsize:[s,l],u_mix:t.t,u_pattern_size_a:a.displaySize,u_pattern_size_b:i.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/gt(r,1,n.transform.tileZoom),u_pixel_coord_upper:[d>>16,p>>16],u_pixel_coord_lower:[65535&d,65535&p]}}(a,o,r,i),{u_matrix:t,u_opacity:n})},rr={fillExtrusion:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_lightpos:new e.Uniform3f(t,n.u_lightpos),u_lightintensity:new e.Uniform1f(t,n.u_lightintensity),u_lightcolor:new e.Uniform3f(t,n.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,n.u_vertical_gradient),u_opacity:new e.Uniform1f(t,n.u_opacity)}},fillExtrusionPattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_lightpos:new e.Uniform3f(t,n.u_lightpos),u_lightintensity:new e.Uniform1f(t,n.u_lightintensity),u_lightcolor:new e.Uniform3f(t,n.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,n.u_vertical_gradient),u_height_factor:new e.Uniform1f(t,n.u_height_factor),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade),u_opacity:new e.Uniform1f(t,n.u_opacity)}},fill:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},fillPattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}},fillOutline:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world)}},fillOutlinePattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}},circle:function(t,n){return{u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_scale_with_map:new e.Uniform1i(t,n.u_scale_with_map),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_extrude_scale:new e.Uniform2f(t,n.u_extrude_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},collisionBox:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pixels_to_tile_units:new e.Uniform1f(t,n.u_pixels_to_tile_units),u_extrude_scale:new e.Uniform2f(t,n.u_extrude_scale),u_overscale_factor:new e.Uniform1f(t,n.u_overscale_factor)}},collisionCircle:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_inv_matrix:new e.UniformMatrix4f(t,n.u_inv_matrix),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_viewport_size:new e.Uniform2f(t,n.u_viewport_size)}},debug:function(t,n){return{u_color:new e.UniformColor(t,n.u_color),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_overlay:new e.Uniform1i(t,n.u_overlay),u_overlay_scale:new e.Uniform1f(t,n.u_overlay_scale)}},clippingMask:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},heatmap:function(t,n){return{u_extrude_scale:new e.Uniform1f(t,n.u_extrude_scale),u_intensity:new e.Uniform1f(t,n.u_intensity),u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},heatmapTexture:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world),u_image:new e.Uniform1i(t,n.u_image),u_color_ramp:new e.Uniform1i(t,n.u_color_ramp),u_opacity:new e.Uniform1f(t,n.u_opacity)}},hillshade:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_latrange:new e.Uniform2f(t,n.u_latrange),u_light:new e.Uniform2f(t,n.u_light),u_shadow:new e.UniformColor(t,n.u_shadow),u_highlight:new e.UniformColor(t,n.u_highlight),u_accent:new e.UniformColor(t,n.u_accent)}},hillshadePrepare:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_dimension:new e.Uniform2f(t,n.u_dimension),u_zoom:new e.Uniform1f(t,n.u_zoom),u_unpack:new e.Uniform4f(t,n.u_unpack)}},line:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels)}},lineGradient:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_image:new e.Uniform1i(t,n.u_image),u_image_height:new e.Uniform1f(t,n.u_image_height)}},linePattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_texsize:new e.Uniform2f(t,n.u_texsize),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_image:new e.Uniform1i(t,n.u_image),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}},lineSDF:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_patternscale_a:new e.Uniform2f(t,n.u_patternscale_a),u_patternscale_b:new e.Uniform2f(t,n.u_patternscale_b),u_sdfgamma:new e.Uniform1f(t,n.u_sdfgamma),u_image:new e.Uniform1i(t,n.u_image),u_tex_y_a:new e.Uniform1f(t,n.u_tex_y_a),u_tex_y_b:new e.Uniform1f(t,n.u_tex_y_b),u_mix:new e.Uniform1f(t,n.u_mix)}},raster:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_tl_parent:new e.Uniform2f(t,n.u_tl_parent),u_scale_parent:new e.Uniform1f(t,n.u_scale_parent),u_buffer_scale:new e.Uniform1f(t,n.u_buffer_scale),u_fade_t:new e.Uniform1f(t,n.u_fade_t),u_opacity:new e.Uniform1f(t,n.u_opacity),u_image0:new e.Uniform1i(t,n.u_image0),u_image1:new e.Uniform1i(t,n.u_image1),u_brightness_low:new e.Uniform1f(t,n.u_brightness_low),u_brightness_high:new e.Uniform1f(t,n.u_brightness_high),u_saturation_factor:new e.Uniform1f(t,n.u_saturation_factor),u_contrast_factor:new e.Uniform1f(t,n.u_contrast_factor),u_spin_weights:new e.Uniform3f(t,n.u_spin_weights)}},symbolIcon:function(t,n){return{u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1i(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texture:new e.Uniform1i(t,n.u_texture)}},symbolSDF:function(t,n){return{u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1i(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texture:new e.Uniform1i(t,n.u_texture),u_gamma_scale:new e.Uniform1f(t,n.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(t,n.u_is_halo)}},symbolTextAndIcon:function(t,n){return{u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1i(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texsize_icon:new e.Uniform2f(t,n.u_texsize_icon),u_texture:new e.Uniform1i(t,n.u_texture),u_texture_icon:new e.Uniform1i(t,n.u_texture_icon),u_gamma_scale:new e.Uniform1f(t,n.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(t,n.u_is_halo)}},background:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_opacity:new e.Uniform1f(t,n.u_opacity),u_color:new e.UniformColor(t,n.u_color)}},backgroundPattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_opacity:new e.Uniform1f(t,n.u_opacity),u_image:new e.Uniform1i(t,n.u_image),u_pattern_tl_a:new e.Uniform2f(t,n.u_pattern_tl_a),u_pattern_br_a:new e.Uniform2f(t,n.u_pattern_br_a),u_pattern_tl_b:new e.Uniform2f(t,n.u_pattern_tl_b),u_pattern_br_b:new e.Uniform2f(t,n.u_pattern_br_b),u_texsize:new e.Uniform2f(t,n.u_texsize),u_mix:new e.Uniform1f(t,n.u_mix),u_pattern_size_a:new e.Uniform2f(t,n.u_pattern_size_a),u_pattern_size_b:new e.Uniform2f(t,n.u_pattern_size_b),u_scale_a:new e.Uniform1f(t,n.u_scale_a),u_scale_b:new e.Uniform1f(t,n.u_scale_b),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_tile_units_to_pixels:new e.Uniform1f(t,n.u_tile_units_to_pixels)}}};function ar(t,n,r,a,i,o,s){for(var l=t.context,c=l.gl,u=t.useProgram("collisionBox"),d=[],p=0,h=0,f=0;f<a.length;f++){var m=a[f],g=n.getTile(m),y=g.getBucket(r);if(y){var b=m.posMatrix;(0!==i[0]||0!==i[1])&&(b=t.translatePosMatrix(m.posMatrix,g,i,o));var v=s?y.textCollisionBox:y.iconCollisionBox,M=y.collisionCircleArray;if(M.length>0){var x=e.create(),z=b;e.mul(x,y.placementInvProjMatrix,t.transform.glCoordMatrix),e.mul(x,x,y.placementViewportMatrix),d.push({circleArray:M,circleOffset:h,transform:z,invTransform:x}),h=p+=M.length/4}v&&u.draw(l,c.LINES,we.disabled,Te.disabled,t.colorModeForRenderPass(),Ce.disabled,Ln(b,t.transform,g),r.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,null,t.transform.zoom,null,null,v.collisionVertexBuffer)}}if(s&&d.length){var _=t.useProgram("collisionCircle"),A=new e.StructArrayLayout2f1f2i16;A.resize(4*p),A._trim();for(var O=0,w=0,k=d;w<k.length;w+=1)for(var T=k[w],S=0;S<T.circleArray.length/4;S++){var C=4*S,E=T.circleArray[C+0],q=T.circleArray[C+1],D=T.circleArray[C+2],R=T.circleArray[C+3];A.emplace(O++,E,q,D,R,0),A.emplace(O++,E,q,D,R,1),A.emplace(O++,E,q,D,R,2),A.emplace(O++,E,q,D,R,3)}(!Jn||Jn.length<2*p)&&(Jn=function(t){var n=2*t,r=new e.StructArrayLayout3ui6;r.resize(n),r._trim();for(var a=0;a<n;a++){var i=6*a;r.uint16[i+0]=4*a+0,r.uint16[i+1]=4*a+1,r.uint16[i+2]=4*a+2,r.uint16[i+3]=4*a+2,r.uint16[i+4]=4*a+3,r.uint16[i+5]=4*a+0}return r}(p));for(var L=l.createIndexBuffer(Jn,!0),I=l.createVertexBuffer(A,e.collisionCircleLayout.members,!0),W=0,N=d;W<N.length;W+=1){var P=N[W],B=In(P.transform,P.invTransform,t.transform);_.draw(l,c.TRIANGLES,we.disabled,Te.disabled,t.colorModeForRenderPass(),Ce.disabled,B,r.id,I,L,e.SegmentVector.simpleSegment(0,2*P.circleOffset,P.circleArray.length,P.circleArray.length/2),null,t.transform.zoom,null,null,null)}I.destroy(),L.destroy()}}var ir=e.identity(new Float32Array(16));function or(t,n,r,a,i,o){var s=e.getAnchorAlignment(t),l=-(s.horizontalAlign-.5)*n,c=-(s.verticalAlign-.5)*r,u=e.evaluateVariableOffset(t,a);return new e.Point((l/i+u[0])*o,(c/i+u[1])*o)}function sr(t,n,r,a,i,o,s,l,c,u,d){var p=t.text.placedSymbolArray,h=t.text.dynamicLayoutVertexArray,f=t.icon.dynamicLayoutVertexArray,m={};h.clear();for(var g=0;g<p.length;g++){var y=p.get(g),b=t.allowVerticalPlacement&&!y.placedOrientation,v=y.hidden||!y.crossTileID||b?null:a[y.crossTileID];if(v){var M=new e.Point(y.anchorX,y.anchorY),x=nt(M,r?l:s),z=rt(o.cameraToCenterDistance,x.signedDistanceFromCamera),_=i.evaluateSizeForFeature(t.textSizeData,u,y)*z/e.ONE_EM;r&&(_*=t.tilePixelRatio/c);for(var A=v.width,O=v.height,w=or(v.anchor,A,O,v.textOffset,v.textBoxScale,_),k=r?nt(M.add(w),s).point:x.point.add(n?w.rotate(-o.angle):w),T=t.allowVerticalPlacement&&y.placedOrientation===e.WritingMode.vertical?Math.PI/2:0,S=0;S<y.numGlyphs;S++)e.addDynamicAttributes(h,k,T);d&&y.associatedIconIndex>=0&&(m[y.associatedIconIndex]={shiftedAnchor:k,angle:T})}else pt(y.numGlyphs,h)}if(d){f.clear();for(var C=t.icon.placedSymbolArray,E=0;E<C.length;E++){var q=C.get(E);if(q.hidden)pt(q.numGlyphs,f);else{var D=m[E];if(D)for(var R=0;R<q.numGlyphs;R++)e.addDynamicAttributes(f,D.shiftedAnchor,D.angle);else pt(q.numGlyphs,f)}}t.icon.dynamicLayoutVertexBuffer.updateData(f)}t.text.dynamicLayoutVertexBuffer.updateData(h)}function lr(e,t,n){return n.iconsInText&&t?"symbolTextAndIcon":e?"symbolSDF":"symbolIcon"}function cr(t,n,r,a,i,o,s,l,c,u,d,p){for(var h=t.context,f=h.gl,m=t.transform,g="map"===l,y="map"===c,b=g&&"point"!==r.layout.get("symbol-placement"),v=g&&!y&&!b,M=void 0!==r.layout.get("symbol-sort-key").constantOr(1),x=!1,z=t.depthModeForSublayer(0,we.ReadOnly),_=r.layout.get("text-variable-anchor"),A=[],O=0,w=a;O<w.length;O+=1){var k=w[O],T=n.getTile(k),S=T.getBucket(r);if(S){var C=i?S.text:S.icon;if(C&&C.segments.get().length){var E=C.programConfigurations.get(r.id),q=i||S.sdfIcons,D=i?S.textSizeData:S.iconSizeData,R=y||0!==m.pitch,L=t.useProgram(lr(q,i,S),E),I=e.evaluateSizeForZoom(D,m.zoom),W=void 0,N=[0,0],P=void 0,B=void 0,F=null,j=void 0;if(i){if(P=T.glyphAtlasTexture,B=f.LINEAR,W=T.glyphAtlasTexture.size,S.iconsInText){N=T.imageAtlasTexture.size,F=T.imageAtlasTexture;var U="composite"===D.kind||"camera"===D.kind;j=R||t.options.rotating||t.options.zooming||U?f.LINEAR:f.NEAREST}}else{var V=1!==r.layout.get("icon-size").constantOr(0)||S.iconsNeedLinear;P=T.imageAtlasTexture,B=q||t.options.rotating||t.options.zooming||V||R?f.LINEAR:f.NEAREST,W=T.imageAtlasTexture.size}var H=gt(T,1,t.transform.zoom),X=et(k.posMatrix,y,g,t.transform,H),G=tt(k.posMatrix,y,g,t.transform,H),Y=_&&S.hasTextData(),Z="none"!==r.layout.get("icon-text-fit")&&Y&&S.hasIconData();b&&it(S,k.posMatrix,t,i,X,G,y,u);var $=t.translatePosMatrix(k.posMatrix,T,o,s),J=b||i&&_||Z?ir:X,Q=t.translatePosMatrix(G,T,o,s,!0),K=q&&0!==r.paint.get(i?"text-halo-width":"icon-halo-width").constantOr(1),ee={program:L,buffers:C,uniformValues:q?S.iconsInText?er(D.kind,I,v,y,t,$,J,Q,W,N):Kn(D.kind,I,v,y,t,$,J,Q,i,W,!0):Qn(D.kind,I,v,y,t,$,J,Q,i,W),atlasTexture:P,atlasTextureIcon:F,atlasInterpolation:B,atlasInterpolationIcon:j,isSDF:q,hasHalo:K};if(M&&S.canOverlap){x=!0;for(var te=0,ne=C.segments.get();te<ne.length;te+=1){var re=ne[te];A.push({segments:new e.SegmentVector([re]),sortKey:re.sortKey,state:ee})}}else A.push({segments:C.segments,sortKey:0,state:ee})}}}x&&A.sort(function(e,t){return e.sortKey-t.sortKey});for(var ae=0,ie=A;ae<ie.length;ae+=1){var oe=ie[ae],se=oe.state;if(h.activeTexture.set(f.TEXTURE0),se.atlasTexture.bind(se.atlasInterpolation,f.CLAMP_TO_EDGE),se.atlasTextureIcon&&(h.activeTexture.set(f.TEXTURE1),se.atlasTextureIcon&&se.atlasTextureIcon.bind(se.atlasInterpolationIcon,f.CLAMP_TO_EDGE)),se.isSDF){var le=se.uniformValues;se.hasHalo&&(le.u_is_halo=1,ur(se.buffers,oe.segments,r,t,se.program,z,d,p,le)),le.u_is_halo=0}ur(se.buffers,oe.segments,r,t,se.program,z,d,p,se.uniformValues)}}function ur(e,t,n,r,a,i,o,s,l){var c=r.context,u=c.gl;a.draw(c,u.TRIANGLES,i,o,s,Ce.disabled,l,n.id,e.layoutVertexBuffer,e.indexBuffer,t,n.paint,r.transform.zoom,e.programConfigurations.get(n.id),e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer)}function dr(e,t,n,r,a,i,o){var s,l,c,u,d,p=e.context.gl,h=n.paint.get("fill-pattern"),f=h&&h.constantOr(1),m=n.getCrossfadeParameters();o?(l=f&&!n.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",s=p.LINES):(l=f?"fillPattern":"fill",s=p.TRIANGLES);for(var g=0,y=r;g<y.length;g+=1){var b=y[g],v=t.getTile(b);if(!f||v.patternsLoaded()){var M=v.getBucket(n);if(M){var x=M.programConfigurations.get(n.id),z=e.useProgram(l,x);f&&(e.context.activeTexture.set(p.TEXTURE0),v.imageAtlasTexture.bind(p.LINEAR,p.CLAMP_TO_EDGE),x.updatePaintBuffers(m));var _=h.constantOr(null);if(_&&v.imageAtlas){var A=v.imageAtlas,O=A.patternPositions[_.to.toString()],w=A.patternPositions[_.from.toString()];O&&w&&x.setConstantPatternPositions(O,w)}var k=e.translatePosMatrix(b.posMatrix,v,n.paint.get("fill-translate"),n.paint.get("fill-translate-anchor"));if(o){u=M.indexBuffer2,d=M.segments2;var T=[p.drawingBufferWidth,p.drawingBufferHeight];c="fillOutlinePattern"===l&&f?Dn(k,e,m,v,T):qn(k,T)}else u=M.indexBuffer,d=M.segments,c=f?En(k,e,m,v):Cn(k);z.draw(e.context,s,a,e.stencilModeForClipping(b),i,Ce.disabled,c,n.id,M.layoutVertexBuffer,u,d,n.paint,e.transform.zoom,x)}}}}function pr(e,t,n,r,a,i,o){for(var s=e.context,l=s.gl,c=n.paint.get("fill-extrusion-pattern"),u=c.constantOr(1),d=n.getCrossfadeParameters(),p=n.paint.get("fill-extrusion-opacity"),h=0,f=r;h<f.length;h+=1){var m=f[h],g=t.getTile(m),y=g.getBucket(n);if(y){var b=y.programConfigurations.get(n.id),v=e.useProgram(u?"fillExtrusionPattern":"fillExtrusion",b);u&&(e.context.activeTexture.set(l.TEXTURE0),g.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),b.updatePaintBuffers(d));var M=c.constantOr(null);if(M&&g.imageAtlas){var x=g.imageAtlas,z=x.patternPositions[M.to.toString()],_=x.patternPositions[M.from.toString()];z&&_&&b.setConstantPatternPositions(z,_)}var A=e.translatePosMatrix(m.posMatrix,g,n.paint.get("fill-extrusion-translate"),n.paint.get("fill-extrusion-translate-anchor")),O=n.paint.get("fill-extrusion-vertical-gradient"),w=u?Sn(A,e,O,p,m,d,g):Tn(A,e,O,p);v.draw(s,s.gl.TRIANGLES,a,i,o,Ce.backCCW,w,n.id,y.layoutVertexBuffer,y.indexBuffer,y.segments,n.paint,e.transform.zoom,b)}}}function hr(e,t,n,r,a,i){var o=e.context,s=o.gl,l=t.fbo;if(l){var c=e.useProgram("hillshade");o.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,l.colorAttachment.get());var u=function(e,t,n){var r=n.paint.get("hillshade-shadow-color"),a=n.paint.get("hillshade-highlight-color"),i=n.paint.get("hillshade-accent-color"),o=n.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===n.paint.get("hillshade-illumination-anchor")&&(o-=e.transform.angle);var s=!e.options.moving;return{u_matrix:e.transform.calculatePosMatrix(t.tileID.toUnwrapped(),s),u_image:0,u_latrange:Bn(0,t.tileID),u_light:[n.paint.get("hillshade-exaggeration"),o],u_shadow:r,u_highlight:a,u_accent:i}}(e,t,n);c.draw(o,s.TRIANGLES,r,a,i,Ce.disabled,u,n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}}function fr(t,n,r,a,i,o){var s=t.context,l=s.gl,c=n.dem;if(c&&c.data){var u=c.dim,d=c.stride,p=c.getPixels();if(s.activeTexture.set(l.TEXTURE1),s.pixelStoreUnpackPremultiplyAlpha.set(!1),n.demTexture=n.demTexture||t.getTileTexture(d),n.demTexture){var h=n.demTexture;h.update(p,{premultiply:!1}),h.bind(l.NEAREST,l.CLAMP_TO_EDGE)}else n.demTexture=new e.Texture(s,p,l.RGBA,{premultiply:!1}),n.demTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE);s.activeTexture.set(l.TEXTURE0);var f=n.fbo;if(!f){var m=new e.Texture(s,{width:u,height:u,data:null},l.RGBA);m.bind(l.LINEAR,l.CLAMP_TO_EDGE),(f=n.fbo=s.createFramebuffer(u,u,!0)).colorAttachment.set(m.texture)}s.bindFramebuffer.set(f.framebuffer),s.viewport.set([0,0,u,u]),t.useProgram("hillshadePrepare").draw(s,l.TRIANGLES,a,i,o,Ce.disabled,function(t,n){var r=n.stride,a=e.create();return e.ortho(a,0,e.EXTENT,-e.EXTENT,0,0,1),e.translate(a,a,[0,-e.EXTENT,0]),{u_matrix:a,u_image:1,u_dimension:[r,r],u_zoom:t.overscaledZ,u_unpack:n.getUnpackVector()}}(n.tileID,c),r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments),n.needsHillshadePrepare=!1}}function mr(t,n,r,a,i){var o=a.paint.get("raster-fade-duration");if(o>0){var s=e.browser.now(),l=(s-t.timeAdded)/o,c=n?(s-n.timeAdded)/o:-1,u=r.getSource(),d=i.coveringZoomLevel({tileSize:u.tileSize,roundZoom:u.roundZoom}),p=!n||Math.abs(n.tileID.overscaledZ-d)>Math.abs(t.tileID.overscaledZ-d),h=p&&t.refreshedUponExpiration?1:e.clamp(p?l:1-c,0,1);return t.refreshedUponExpiration&&l>=1&&(t.refreshedUponExpiration=!1),n?{opacity:1,mix:1-h}:{opacity:h,mix:0}}return{opacity:1,mix:0}}var gr=new e.Color(1,0,0,1),yr=new e.Color(0,1,0,1),br=new e.Color(0,0,1,1),vr=new e.Color(1,0,1,1),Mr=new e.Color(0,1,1,1);function xr(e){var t=e.transform.padding;zr(e,e.transform.height-(t.top||0),3,gr),zr(e,t.bottom||0,3,yr),_r(e,t.left||0,3,br),_r(e,e.transform.width-(t.right||0),3,vr);var n=e.transform.centerPoint;!function(e,t,n,r){var a=20,i=2;Ar(e,t-i/2,n-a/2,i,a,r),Ar(e,t-a/2,n-i/2,a,i,r)}(e,n.x,e.transform.height-n.y,Mr)}function zr(e,t,n,r){Ar(e,0,t+n/2,e.transform.width,n,r)}function _r(e,t,n,r){Ar(e,t-n/2,0,n,e.transform.height,r)}function Ar(t,n,r,a,i,o){var s=t.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(n*e.browser.devicePixelRatio,r*e.browser.devicePixelRatio,a*e.browser.devicePixelRatio,i*e.browser.devicePixelRatio),s.clear({color:o}),l.disable(l.SCISSOR_TEST)}function Or(t,n,r){var a=t.context,i=a.gl,o=r.posMatrix,s=t.useProgram("debug"),l=we.disabled,c=Te.disabled,u=t.colorModeForRenderPass(),d="$debug";a.activeTexture.set(i.TEXTURE0),t.emptyTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE),s.draw(a,i.LINE_STRIP,l,c,u,Ce.disabled,Wn(o,e.Color.red),d,t.debugBuffer,t.tileBorderIndexBuffer,t.debugSegments);var p=n.getTileByID(r.key).latestRawTileData,h=p&&p.byteLength||0,f=Math.floor(h/1024),m=n.getTile(r).tileSize,g=512/Math.min(m,512)*(r.overscaledZ/t.transform.zoom)*.5,y=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(y+=" => "+r.overscaledZ),function(e,t){e.initDebugOverlayCanvas();var n=e.debugOverlayCanvas,r=e.context.gl,a=e.debugOverlayCanvas.getContext("2d");a.clearRect(0,0,n.width,n.height),a.shadowColor="white",a.shadowBlur=2,a.lineWidth=1.5,a.strokeStyle="white",a.textBaseline="top",a.font="bold 36px Open Sans, sans-serif",a.fillText(t,5,5),a.strokeText(t,5,5),e.debugOverlayTexture.update(n),e.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(t,y+" "+f+"kb"),s.draw(a,i.TRIANGLES,l,c,Se.alphaBlended,Ce.disabled,Wn(o,e.Color.transparent,g),d,t.debugBuffer,t.quadTriangleIndexBuffer,t.debugSegments)}var wr={symbol:function(t,n,r,a,i){if("translucent"===t.renderPass){var o=Te.disabled,s=t.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&function(t,n,r,a,i,o,s){for(var l=n.transform,c="map"===i,u="map"===o,d=0,p=t;d<p.length;d+=1){var h=p[d],f=a.getTile(h),m=f.getBucket(r);if(m&&m.text&&m.text.segments.get().length){var g=m.textSizeData,y=e.evaluateSizeForZoom(g,l.zoom),b=gt(f,1,n.transform.zoom),v=et(h.posMatrix,u,c,n.transform,b),M="none"!==r.layout.get("icon-text-fit")&&m.hasIconData();if(y){var x=Math.pow(2,l.zoom-f.tileID.overscaledZ);sr(m,c,u,s,e.symbolSize,l,v,h.posMatrix,x,y,M)}}}}(a,t,r,n,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),i),0!==r.paint.get("icon-opacity").constantOr(1)&&cr(t,n,r,a,!1,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),r.layout.get("icon-rotation-alignment"),r.layout.get("icon-pitch-alignment"),r.layout.get("icon-keep-upright"),o,s),0!==r.paint.get("text-opacity").constantOr(1)&&cr(t,n,r,a,!0,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),r.layout.get("text-keep-upright"),o,s),n.map.showCollisionBoxes&&(ar(t,n,r,a,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),!0),ar(t,n,r,a,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),!1))}},circle:function(t,n,r,a){if("translucent"===t.renderPass){var i=r.paint.get("circle-opacity"),o=r.paint.get("circle-stroke-width"),s=r.paint.get("circle-stroke-opacity"),l=void 0!==r.layout.get("circle-sort-key").constantOr(1);if(0!==i.constantOr(1)||0!==o.constantOr(1)&&0!==s.constantOr(1)){for(var c=t.context,u=c.gl,d=t.depthModeForSublayer(0,we.ReadOnly),p=Te.disabled,h=t.colorModeForRenderPass(),f=[],m=0;m<a.length;m++){var g=a[m],y=n.getTile(g),b=y.getBucket(r);if(b){var v=b.programConfigurations.get(r.id),M={programConfiguration:v,program:t.useProgram("circle",v),layoutVertexBuffer:b.layoutVertexBuffer,indexBuffer:b.indexBuffer,uniformValues:Rn(t,g,y,r)};if(l)for(var x=0,z=b.segments.get();x<z.length;x+=1){var _=z[x];f.push({segments:new e.SegmentVector([_]),sortKey:_.sortKey,state:M})}else f.push({segments:b.segments,sortKey:0,state:M})}}l&&f.sort(function(e,t){return e.sortKey-t.sortKey});for(var A=0,O=f;A<O.length;A+=1){var w=O[A],k=w.state,T=k.programConfiguration,S=k.program,C=k.layoutVertexBuffer,E=k.indexBuffer,q=k.uniformValues,D=w.segments;S.draw(c,u.TRIANGLES,d,p,h,Ce.disabled,q,r.id,C,E,D,r.paint,t.transform.zoom,T)}}}},heatmap:function(t,n,r,a){if(0!==r.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){var i=t.context,o=i.gl,s=Te.disabled,l=new Se([o.ONE,o.ONE],e.Color.transparent,[!0,!0,!0,!0]);(function(e,t,n){var r=e.gl;e.activeTexture.set(r.TEXTURE1),e.viewport.set([0,0,t.width/4,t.height/4]);var a=n.heatmapFbo;if(a)r.bindTexture(r.TEXTURE_2D,a.colorAttachment.get()),e.bindFramebuffer.set(a.framebuffer);else{var i=r.createTexture();r.bindTexture(r.TEXTURE_2D,i),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),a=n.heatmapFbo=e.createFramebuffer(t.width/4,t.height/4,!1),function(e,t,n,r){var a=e.gl,i=e.extRenderToTextureHalfFloat?e.extTextureHalfFloat.HALF_FLOAT_OES:a.UNSIGNED_BYTE;a.texImage2D(a.TEXTURE_2D,0,a.RGBA,t.width/4,t.height/4,0,a.RGBA,i,null),r.colorAttachment.set(n)}(e,t,i,a)}})(i,t,r),i.clear({color:e.Color.transparent});for(var c=0;c<a.length;c++){var u=a[c];if(!n.hasRenderableParent(u)){var d=n.getTile(u),p=d.getBucket(r);if(p){var h=p.programConfigurations.get(r.id),f=t.useProgram("heatmap",h),m=t.transform.zoom;f.draw(i,o.TRIANGLES,we.disabled,s,l,Ce.disabled,Pn(u.posMatrix,d,m,r.paint.get("heatmap-intensity")),r.id,p.layoutVertexBuffer,p.indexBuffer,p.segments,r.paint,t.transform.zoom,h)}}}i.viewport.set([0,0,t.width,t.height])}else"translucent"===t.renderPass&&(t.context.setColorMode(t.colorModeForRenderPass()),function(t,n){var r=t.context,a=r.gl,i=n.heatmapFbo;if(i){r.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,i.colorAttachment.get()),r.activeTexture.set(a.TEXTURE1);var o=n.colorRampTexture;o||(o=n.colorRampTexture=new e.Texture(r,n.colorRamp,a.RGBA)),o.bind(a.LINEAR,a.CLAMP_TO_EDGE),t.useProgram("heatmapTexture").draw(r,a.TRIANGLES,we.disabled,Te.disabled,t.colorModeForRenderPass(),Ce.disabled,function(t,n,r,a){var i=e.create();e.ortho(i,0,t.width,t.height,0,0,1);var o=t.context.gl;return{u_matrix:i,u_world:[o.drawingBufferWidth,o.drawingBufferHeight],u_image:r,u_color_ramp:a,u_opacity:n.paint.get("heatmap-opacity")}}(t,n,0,1),n.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,n.paint,t.transform.zoom)}}(t,r))},line:function(t,n,r,a){if("translucent"===t.renderPass){var i=r.paint.get("line-opacity"),o=r.paint.get("line-width");if(0!==i.constantOr(1)&&0!==o.constantOr(1))for(var s=t.depthModeForSublayer(0,we.ReadOnly),l=t.colorModeForRenderPass(),c=r.paint.get("line-dasharray"),u=r.paint.get("line-pattern"),d=u.constantOr(1),p=r.paint.get("line-gradient"),h=r.getCrossfadeParameters(),f=d?"linePattern":c?"lineSDF":p?"lineGradient":"line",m=t.context,g=m.gl,y=!0,b=0,v=a;b<v.length;b+=1){var M=v[b],x=n.getTile(M);if(!d||x.patternsLoaded()){var z=x.getBucket(r);if(z){var _=z.programConfigurations.get(r.id),A=t.context.program.get(),O=t.useProgram(f,_),w=y||O.program!==A,k=u.constantOr(null);if(k&&x.imageAtlas){var T=x.imageAtlas,S=T.patternPositions[k.to.toString()],C=T.patternPositions[k.from.toString()];S&&C&&_.setConstantPatternPositions(S,C)}var E=d?Un(t,x,r,h):c?Vn(t,x,r,c,h):p?jn(t,x,r,z.lineClipsArray.length):Fn(t,x,r);if(d)m.activeTexture.set(g.TEXTURE0),x.imageAtlasTexture.bind(g.LINEAR,g.CLAMP_TO_EDGE),_.updatePaintBuffers(h);else if(c&&(w||t.lineAtlas.dirty))m.activeTexture.set(g.TEXTURE0),t.lineAtlas.bind(m);else if(p){var q=z.gradients[r.id],D=q.texture;if(r.gradientVersion!==q.version){var R=256;if(r.stepInterpolant){var L=n.getSource().maxzoom,I=M.canonical.z===L?Math.ceil(1<<t.transform.maxZoom-M.canonical.z):1,W=z.maxLineLength/e.EXTENT*1024*I;R=e.clamp(e.nextPowerOfTwo(W),256,m.maxTextureSize)}q.gradient=e.renderColorRamp({expression:r.gradientExpression(),evaluationKey:"lineProgress",resolution:R,image:q.gradient||void 0,clips:z.lineClipsArray}),q.texture?q.texture.update(q.gradient):q.texture=new e.Texture(m,q.gradient,g.RGBA),q.version=r.gradientVersion,D=q.texture}m.activeTexture.set(g.TEXTURE0),D.bind(r.stepInterpolant?g.NEAREST:g.LINEAR,g.CLAMP_TO_EDGE)}O.draw(m,g.TRIANGLES,s,t.stencilModeForClipping(M),l,Ce.disabled,E,r.id,z.layoutVertexBuffer,z.indexBuffer,z.segments,r.paint,t.transform.zoom,_,z.layoutVertexBuffer2),y=!1}}}}},fill:function(t,n,r,a){var i=r.paint.get("fill-color"),o=r.paint.get("fill-opacity");if(0!==o.constantOr(1)){var s=t.colorModeForRenderPass(),l=r.paint.get("fill-pattern"),c=t.opaquePassEnabledForLayer()&&!l.constantOr(1)&&1===i.constantOr(e.Color.transparent).a&&1===o.constantOr(0)?"opaque":"translucent";if(t.renderPass===c){var u=t.depthModeForSublayer(1,"opaque"===t.renderPass?we.ReadWrite:we.ReadOnly);dr(t,n,r,a,u,s,!1)}if("translucent"===t.renderPass&&r.paint.get("fill-antialias")){var d=t.depthModeForSublayer(r.getPaintProperty("fill-outline-color")?2:0,we.ReadOnly);dr(t,n,r,a,d,s,!0)}}},"fill-extrusion":function(e,t,n,r){var a=n.paint.get("fill-extrusion-opacity");if(0!==a&&"translucent"===e.renderPass){var i=new we(e.context.gl.LEQUAL,we.ReadWrite,e.depthRangeFor3D);if(1!==a||n.paint.get("fill-extrusion-pattern").constantOr(1))pr(e,t,n,r,i,Te.disabled,Se.disabled),pr(e,t,n,r,i,e.stencilModeFor3D(),e.colorModeForRenderPass());else{var o=e.colorModeForRenderPass();pr(e,t,n,r,i,Te.disabled,o)}}},hillshade:function(e,t,n,r){if("offscreen"===e.renderPass||"translucent"===e.renderPass){for(var a=e.context,i=e.depthModeForSublayer(0,we.ReadOnly),o=e.colorModeForRenderPass(),s="translucent"===e.renderPass?e.stencilConfigForOverlap(r):[{},r],l=s[0],c=0,u=s[1];c<u.length;c+=1){var d=u[c],p=t.getTile(d);p.needsHillshadePrepare&&"offscreen"===e.renderPass?fr(e,p,n,i,Te.disabled,o):"translucent"===e.renderPass&&hr(e,p,n,i,l[d.overscaledZ],o)}a.viewport.set([0,0,e.width,e.height])}},raster:function(e,t,n,r){if("translucent"===e.renderPass&&0!==n.paint.get("raster-opacity")&&r.length)for(var a=e.context,i=a.gl,o=t.getSource(),s=e.useProgram("raster"),l=e.colorModeForRenderPass(),c=o instanceof D?[{},r]:e.stencilConfigForOverlap(r),u=c[0],d=c[1],p=d[d.length-1].overscaledZ,h=!e.options.moving,f=0,m=d;f<m.length;f+=1){var g=m[f],y=e.depthModeForSublayer(g.overscaledZ-p,1===n.paint.get("raster-opacity")?we.ReadWrite:we.ReadOnly,i.LESS),b=t.getTile(g),v=e.transform.calculatePosMatrix(g.toUnwrapped(),h);b.registerFadeDuration(n.paint.get("raster-fade-duration"));var M=t.findLoadedParent(g,0),x=mr(b,M,t,n,e.transform),z=void 0,_=void 0,A="nearest"===n.paint.get("raster-resampling")?i.NEAREST:i.LINEAR;a.activeTexture.set(i.TEXTURE0),b.texture.bind(A,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_NEAREST),a.activeTexture.set(i.TEXTURE1),M?(M.texture.bind(A,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_NEAREST),z=Math.pow(2,M.tileID.overscaledZ-b.tileID.overscaledZ),_=[b.tileID.canonical.x*z%1,b.tileID.canonical.y*z%1]):b.texture.bind(A,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_NEAREST);var O=Gn(v,_||[0,0],z||1,x,n);o instanceof D?s.draw(a,i.TRIANGLES,y,Te.disabled,l,Ce.disabled,O,n.id,o.boundsBuffer,e.quadTriangleIndexBuffer,o.boundsSegments):s.draw(a,i.TRIANGLES,y,u[g.overscaledZ],l,Ce.disabled,O,n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}},background:function(e,t,n){var r=n.paint.get("background-color"),a=n.paint.get("background-opacity");if(0!==a){var i=e.context,o=i.gl,s=e.transform,l=s.tileSize,c=n.paint.get("background-pattern");if(!e.isPatternMissing(c)){var u=!c&&1===r.a&&1===a&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(e.renderPass===u){var d=Te.disabled,p=e.depthModeForSublayer(0,"opaque"===u?we.ReadWrite:we.ReadOnly),h=e.colorModeForRenderPass(),f=e.useProgram(c?"backgroundPattern":"background"),m=s.coveringTiles({tileSize:l});c&&(i.activeTexture.set(o.TEXTURE0),e.imageManager.bind(e.context));for(var g=n.getCrossfadeParameters(),y=0,b=m;y<b.length;y+=1){var v=b[y],M=e.transform.calculatePosMatrix(v.toUnwrapped()),x=c?nr(M,a,e,c,{tileID:v,tileSize:l},g):tr(M,a,r);f.draw(i,o.TRIANGLES,p,d,h,Ce.disabled,x,n.id,e.tileExtentBuffer,e.quadTriangleIndexBuffer,e.tileExtentSegments)}}}}},debug:function(e,t,n){for(var r=0;r<n.length;r++)Or(e,t,n[r])},custom:function(e,t,n){var r=e.context,a=n.implementation;if("offscreen"===e.renderPass){var i=a.prerender;i&&(e.setCustomLayerDefaults(),r.setColorMode(e.colorModeForRenderPass()),i.call(a,r.gl,e.transform.customLayerMatrix()),r.setDirty(),e.setBaseState())}else if("translucent"===e.renderPass){e.setCustomLayerDefaults(),r.setColorMode(e.colorModeForRenderPass()),r.setStencilMode(Te.disabled);var o="3d"===a.renderingMode?new we(e.context.gl.LEQUAL,we.ReadWrite,e.depthRangeFor3D):e.depthModeForSublayer(0,we.ReadOnly);r.setDepthMode(o),a.render(r.gl,e.transform.customLayerMatrix()),r.setDirty(),e.setBaseState(),r.bindFramebuffer.set(null)}}},kr=function(e,t){this.context=new Ee(e),this.transform=t,this._tileTextures={},this.setup(),this.numSublayers=qe.maxUnderzooming+qe.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new jt,this.gpuTimers={}};kr.prototype.resize=function(t,n){if(this.width=t*e.browser.devicePixelRatio,this.height=n*e.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var r=0,a=this.style._order;r<a.length;r+=1){var i=a[r];this.style._layers[i].resize()}},kr.prototype.setup=function(){var t=this.context,n=new e.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(e.EXTENT,0),n.emplaceBack(0,e.EXTENT),n.emplaceBack(e.EXTENT,e.EXTENT),this.tileExtentBuffer=t.createVertexBuffer(n,Yt.members),this.tileExtentSegments=e.SegmentVector.simpleSegment(0,0,4,2);var r=new e.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(e.EXTENT,0),r.emplaceBack(0,e.EXTENT),r.emplaceBack(e.EXTENT,e.EXTENT),this.debugBuffer=t.createVertexBuffer(r,Yt.members),this.debugSegments=e.SegmentVector.simpleSegment(0,0,4,5);var a=new e.StructArrayLayout4i8;a.emplaceBack(0,0,0,0),a.emplaceBack(e.EXTENT,0,e.EXTENT,0),a.emplaceBack(0,e.EXTENT,0,e.EXTENT),a.emplaceBack(e.EXTENT,e.EXTENT,e.EXTENT,e.EXTENT),this.rasterBoundsBuffer=t.createVertexBuffer(a,q.members),this.rasterBoundsSegments=e.SegmentVector.simpleSegment(0,0,4,2);var i=new e.StructArrayLayout2i4;i.emplaceBack(0,0),i.emplaceBack(1,0),i.emplaceBack(0,1),i.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(i,Yt.members),this.viewportSegments=e.SegmentVector.simpleSegment(0,0,4,2);var o=new e.StructArrayLayout1ui2;o.emplaceBack(0),o.emplaceBack(1),o.emplaceBack(3),o.emplaceBack(2),o.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(o);var s=new e.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(s),this.emptyTexture=new e.Texture(t,{width:1,height:1,data:new Uint8Array([0,0,0,0])},t.gl.RGBA);var l=this.context.gl;this.stencilClearMode=new Te({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)},kr.prototype.clearStencil=function(){var t=this.context,n=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var r=e.create();e.ortho(r,0,this.width,this.height,0,0,1),e.scale(r,r,[n.drawingBufferWidth,n.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(t,n.TRIANGLES,we.disabled,this.stencilClearMode,Se.disabled,Ce.disabled,Nn(r),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},kr.prototype._renderTileClippingMasks=function(e,t){if(this.currentStencilSource!==e.source&&e.isTileClipped()&&t&&t.length){this.currentStencilSource=e.source;var n=this.context,r=n.gl;this.nextStencilID+t.length>256&&this.clearStencil(),n.setColorMode(Se.disabled),n.setDepthMode(we.disabled);var a=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var i=0,o=t;i<o.length;i+=1){var s=o[i],l=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;a.draw(n,r.TRIANGLES,we.disabled,new Te({func:r.ALWAYS,mask:0},l,255,r.KEEP,r.KEEP,r.REPLACE),Se.disabled,Ce.disabled,Nn(s.posMatrix),"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},kr.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();var e=this.nextStencilID++,t=this.context.gl;return new Te({func:t.NOTEQUAL,mask:255},e,255,t.KEEP,t.KEEP,t.REPLACE)},kr.prototype.stencilModeForClipping=function(e){var t=this.context.gl;return new Te({func:t.EQUAL,mask:255},this._tileClippingMaskIDs[e.key],0,t.KEEP,t.KEEP,t.REPLACE)},kr.prototype.stencilConfigForOverlap=function(e){var t,n=this.context.gl,r=e.sort(function(e,t){return t.overscaledZ-e.overscaledZ}),a=r[r.length-1].overscaledZ,i=r[0].overscaledZ-a+1;if(i>1){this.currentStencilSource=void 0,this.nextStencilID+i>256&&this.clearStencil();for(var o={},s=0;s<i;s++)o[s+a]=new Te({func:n.GEQUAL,mask:255},s+this.nextStencilID,255,n.KEEP,n.KEEP,n.REPLACE);return this.nextStencilID+=i,[o,r]}return[(t={},t[a]=Te.disabled,t),r]},kr.prototype.colorModeForRenderPass=function(){var t=this.context.gl;if(this._showOverdrawInspector){var n=1/8;return new Se([t.CONSTANT_COLOR,t.ONE],new e.Color(n,n,n,0),[!0,!0,!0,!0])}return"opaque"===this.renderPass?Se.unblended:Se.alphaBlended},kr.prototype.depthModeForSublayer=function(e,t,n){if(!this.opaquePassEnabledForLayer())return we.disabled;var r=1-((1+this.currentLayer)*this.numSublayers+e)*this.depthEpsilon;return new we(n||this.context.gl.LEQUAL,t,[r,r])},kr.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer<this.opaquePassCutoff},kr.prototype.render=function(t,n){var r=this;this.style=t,this.options=n,this.lineAtlas=t.lineAtlas,this.imageManager=t.imageManager,this.glyphManager=t.glyphManager,this.symbolFadeChange=t.placement.symbolFadeChange(e.browser.now()),this.imageManager.beginFrame();var a=this.style._order,i=this.style.sourceCaches;for(var o in i){var s=i[o];s.used&&s.prepare(this.context)}var l,c,u={},d={},p={};for(var h in i){var f=i[h];u[h]=f.getVisibleCoordinates(),d[h]=u[h].slice().reverse(),p[h]=f.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(var m=0;m<a.length;m++){var g=a[m];if(this.style._layers[g].is3D()){this.opaquePassCutoff=m;break}}this.renderPass="offscreen";for(var y=0,b=a;y<b.length;y+=1){var v=b[y],M=this.style._layers[v];if(M.hasOffscreenPass()&&!M.isHidden(this.transform.zoom)){var x=d[M.source];"custom"!==M.type&&!x.length||this.renderLayer(this,i[M.source],M,x)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:n.showOverdrawInspector?e.Color.black:e.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=n.showOverdrawInspector,this.depthRangeFor3D=[0,1-(t._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass="opaque",this.currentLayer=a.length-1;this.currentLayer>=0;this.currentLayer--){var z=this.style._layers[a[this.currentLayer]],_=i[z.source],A=u[z.source];this._renderTileClippingMasks(z,A),this.renderLayer(this,_,z,A)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<a.length;this.currentLayer++){var O=this.style._layers[a[this.currentLayer]],w=i[O.source],k=("symbol"===O.type?p:d)[O.source];this._renderTileClippingMasks(O,u[O.source]),this.renderLayer(this,w,O,k)}this.options.showTileBoundaries&&(e.values(this.style._layers).forEach(function(e){e.source&&!e.isHidden(r.transform.zoom)&&(e.source!==(c&&c.id)&&(c=r.style.sourceCaches[e.source]),(!l||l.getSource().maxzoom<c.getSource().maxzoom)&&(l=c))}),l&&wr.debug(this,l,l.getVisibleCoordinates())),this.options.showPadding&&xr(this),this.context.setDefault()},kr.prototype.renderLayer=function(e,t,n,r){n.isHidden(this.transform.zoom)||"background"!==n.type&&"custom"!==n.type&&!r.length||(this.id=n.id,this.gpuTimingStart(n),wr[n.type](e,t,n,r,this.style.placement.variableOffsets),this.gpuTimingEnd())},kr.prototype.gpuTimingStart=function(e){if(this.options.gpuTiming){var t=this.context.extTimerQuery,n=this.gpuTimers[e.id];n||(n=this.gpuTimers[e.id]={calls:0,cpuTime:0,query:t.createQueryEXT()}),n.calls++,t.beginQueryEXT(t.TIME_ELAPSED_EXT,n.query)}},kr.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var e=this.context.extTimerQuery;e.endQueryEXT(e.TIME_ELAPSED_EXT)}},kr.prototype.collectGpuTimers=function(){var e=this.gpuTimers;return this.gpuTimers={},e},kr.prototype.queryGpuTimers=function(e){var t={};for(var n in e){var r=e[n],a=this.context.extTimerQuery,i=a.getQueryObjectEXT(r.query,a.QUERY_RESULT_EXT)/1e6;a.deleteQueryEXT(r.query),t[n]=i}return t},kr.prototype.translatePosMatrix=function(t,n,r,a,i){if(!r[0]&&!r[1])return t;var o=i?"map"===a?this.transform.angle:0:"viewport"===a?-this.transform.angle:0;if(o){var s=Math.sin(o),l=Math.cos(o);r=[r[0]*l-r[1]*s,r[0]*s+r[1]*l]}var c=[i?r[0]:gt(n,r[0],this.transform.zoom),i?r[1]:gt(n,r[1],this.transform.zoom),0],u=new Float32Array(16);return e.translate(u,t,c),u},kr.prototype.saveTileTexture=function(e){var t=this._tileTextures[e.size[0]];t?t.push(e):this._tileTextures[e.size[0]]=[e]},kr.prototype.getTileTexture=function(e){var t=this._tileTextures[e];return t&&t.length>0?t.pop():null},kr.prototype.isPatternMissing=function(e){if(!e)return!1;if(!e.from||!e.to)return!0;var t=this.imageManager.getPattern(e.from.toString()),n=this.imageManager.getPattern(e.to.toString());return!t||!n},kr.prototype.useProgram=function(e,t){this.cache=this.cache||{};var n=""+e+(t?t.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[n]||(this.cache[n]=new wn(this.context,e,_n[e],t,rr[e],this._showOverdrawInspector)),this.cache[n]},kr.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},kr.prototype.setBaseState=function(){var e=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(e.FUNC_ADD)},kr.prototype.initDebugOverlayCanvas=function(){if(null==this.debugOverlayCanvas){this.debugOverlayCanvas=e.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var t=this.context.gl;this.debugOverlayTexture=new e.Texture(this.context,this.debugOverlayCanvas,t.RGBA)}},kr.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Tr=function(e,t){this.points=e,this.planes=t};Tr.fromInvProjectionMatrix=function(t,n,r){var a=Math.pow(2,r),i=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(n){return e.transformMat4([],n,t)}).map(function(t){return e.scale$1([],t,1/t[3]/n*a)}),o=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(t){var n=e.sub([],i[t[0]],i[t[1]]),r=e.sub([],i[t[2]],i[t[1]]),a=e.normalize([],e.cross([],n,r)),o=-e.dot(a,i[t[1]]);return a.concat(o)});return new Tr(i,o)};var Sr=function(t,n){this.min=t,this.max=n,this.center=e.scale$2([],e.add([],this.min,this.max),.5)};Sr.prototype.quadrant=function(t){for(var n=[t%2==0,t<2],r=e.clone$2(this.min),a=e.clone$2(this.max),i=0;i<n.length;i++)r[i]=n[i]?this.min[i]:this.center[i],a[i]=n[i]?this.center[i]:this.max[i];return a[2]=this.max[2],new Sr(r,a)},Sr.prototype.distanceX=function(e){return Math.max(Math.min(this.max[0],e[0]),this.min[0])-e[0]},Sr.prototype.distanceY=function(e){return Math.max(Math.min(this.max[1],e[1]),this.min[1])-e[1]},Sr.prototype.intersects=function(t){for(var n=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]],r=!0,a=0;a<t.planes.length;a++){for(var i=t.planes[a],o=0,s=0;s<n.length;s++)o+=e.dot$1(i,n[s])>=0;if(0===o)return 0;o!==n.length&&(r=!1)}if(r)return 2;for(var l=0;l<3;l++){for(var c=Number.MAX_VALUE,u=-Number.MAX_VALUE,d=0;d<t.points.length;d++){var p=t.points[d][l]-this.min[l];c=Math.min(c,p),u=Math.max(u,p)}if(u<0||c>this.max[l]-this.min[l])return 0}return 1};var Cr=function(e,t,n,r){if(void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),isNaN(e)||e<0||isNaN(t)||t<0||isNaN(n)||n<0||isNaN(r)||r<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=t,this.left=n,this.right=r};Cr.prototype.interpolate=function(t,n,r){return null!=n.top&&null!=t.top&&(this.top=e.number(t.top,n.top,r)),null!=n.bottom&&null!=t.bottom&&(this.bottom=e.number(t.bottom,n.bottom,r)),null!=n.left&&null!=t.left&&(this.left=e.number(t.left,n.left,r)),null!=n.right&&null!=t.right&&(this.right=e.number(t.right,n.right,r)),this},Cr.prototype.getCenter=function(t,n){var r=e.clamp((this.left+t-this.right)/2,0,t),a=e.clamp((this.top+n-this.bottom)/2,0,n);return new e.Point(r,a)},Cr.prototype.equals=function(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right},Cr.prototype.clone=function(){return new Cr(this.top,this.bottom,this.left,this.right)},Cr.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Er=function(t,n,r,a,i){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===i||i,this._minZoom=t||0,this._maxZoom=n||22,this._minPitch=r??0,this._maxPitch=a??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new e.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Cr,this._posMatrixCache={},this._alignedPosMatrixCache={}},qr={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Er.prototype.clone=function(){var e=new Er(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return e.tileSize=this.tileSize,e.latRange=this.latRange,e.width=this.width,e.height=this.height,e._center=this._center,e.zoom=this.zoom,e.angle=this.angle,e._fov=this._fov,e._pitch=this._pitch,e._unmodified=this._unmodified,e._edgeInsets=this._edgeInsets.clone(),e._calcMatrices(),e},qr.minZoom.get=function(){return this._minZoom},qr.minZoom.set=function(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))},qr.maxZoom.get=function(){return this._maxZoom},qr.maxZoom.set=function(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))},qr.minPitch.get=function(){return this._minPitch},qr.minPitch.set=function(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))},qr.maxPitch.get=function(){return this._maxPitch},qr.maxPitch.set=function(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))},qr.renderWorldCopies.get=function(){return this._renderWorldCopies},qr.renderWorldCopies.set=function(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e},qr.worldSize.get=function(){return this.tileSize*this.scale},qr.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},qr.size.get=function(){return new e.Point(this.width,this.height)},qr.bearing.get=function(){return-this.angle/Math.PI*180},qr.bearing.set=function(t){var n=-e.wrap(t,-180,180)*Math.PI/180;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=e.create$2(),e.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},qr.pitch.get=function(){return this._pitch/Math.PI*180},qr.pitch.set=function(t){var n=e.clamp(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())},qr.fov.get=function(){return this._fov/Math.PI*180},qr.fov.set=function(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=e/180*Math.PI,this._calcMatrices())},qr.zoom.get=function(){return this._zoom},qr.zoom.set=function(e){var t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._zoom=t,this.scale=this.zoomScale(t),this.tileZoom=Math.floor(t),this.zoomFraction=t-this.tileZoom,this._constrain(),this._calcMatrices())},qr.center.get=function(){return this._center},qr.center.set=function(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._constrain(),this._calcMatrices())},qr.padding.get=function(){return this._edgeInsets.toJSON()},qr.padding.set=function(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())},qr.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Er.prototype.isPaddingEqual=function(e){return this._edgeInsets.equals(e)},Er.prototype.interpolatePadding=function(e,t,n){this._unmodified=!1,this._edgeInsets.interpolate(e,t,n),this._constrain(),this._calcMatrices()},Er.prototype.coveringZoomLevel=function(e){var t=(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize));return Math.max(0,t)},Er.prototype.getVisibleUnwrappedCoordinates=function(t){var n=[new e.UnwrappedTileID(0,t)];if(this._renderWorldCopies)for(var r=this.pointCoordinate(new e.Point(0,0)),a=this.pointCoordinate(new e.Point(this.width,0)),i=this.pointCoordinate(new e.Point(this.width,this.height)),o=this.pointCoordinate(new e.Point(0,this.height)),s=Math.floor(Math.min(r.x,a.x,i.x,o.x)),l=Math.floor(Math.max(r.x,a.x,i.x,o.x)),c=s-1;c<=l+1;c++)0!==c&&n.push(new e.UnwrappedTileID(c,t));return n},Er.prototype.coveringTiles=function(t){var n=this.coveringZoomLevel(t),r=n;if(void 0!==t.minzoom&&n<t.minzoom)return[];void 0!==t.maxzoom&&n>t.maxzoom&&(n=t.maxzoom);var a=e.MercatorCoordinate.fromLngLat(this.center),i=Math.pow(2,n),o=[i*a.x,i*a.y,0],s=Tr.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,n),l=t.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(l=n);var c=function(e){return{aabb:new Sr([e*i,0,0],[(e+1)*i,i,0]),zoom:0,x:0,y:0,wrap:e,fullyVisible:!1}},u=[],d=[],p=n,h=t.reparseOverscaled?r:n;if(this._renderWorldCopies)for(var f=1;f<=3;f++)u.push(c(-f)),u.push(c(f));for(u.push(c(0));u.length>0;){var m=u.pop(),g=m.x,y=m.y,b=m.fullyVisible;if(!b){var v=m.aabb.intersects(s);if(0===v)continue;b=2===v}var M=m.aabb.distanceX(o),x=m.aabb.distanceY(o),z=Math.max(Math.abs(M),Math.abs(x)),_=3+(1<<p-m.zoom)-2;if(m.zoom===p||z>_&&m.zoom>=l)d.push({tileID:new e.OverscaledTileID(m.zoom===p?h:m.zoom,m.wrap,m.zoom,g,y),distanceSq:e.sqrLen([o[0]-.5-g,o[1]-.5-y])});else for(var A=0;A<4;A++){var O=(g<<1)+A%2,w=(y<<1)+(A>>1);u.push({aabb:m.aabb.quadrant(A),zoom:m.zoom+1,x:O,y:w,wrap:m.wrap,fullyVisible:b})}}return d.sort(function(e,t){return e.distanceSq-t.distanceSq}).map(function(e){return e.tileID})},Er.prototype.resize=function(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()},qr.unmodified.get=function(){return this._unmodified},Er.prototype.zoomScale=function(e){return Math.pow(2,e)},Er.prototype.scaleZoom=function(e){return Math.log(e)/Math.LN2},Er.prototype.project=function(t){var n=e.clamp(t.lat,-this.maxValidLatitude,this.maxValidLatitude);return new e.Point(e.mercatorXfromLng(t.lng)*this.worldSize,e.mercatorYfromLat(n)*this.worldSize)},Er.prototype.unproject=function(t){return new e.MercatorCoordinate(t.x/this.worldSize,t.y/this.worldSize).toLngLat()},qr.point.get=function(){return this.project(this.center)},Er.prototype.setLocationAtPoint=function(t,n){var r=this.pointCoordinate(n),a=this.pointCoordinate(this.centerPoint),i=this.locationCoordinate(t),o=new e.MercatorCoordinate(i.x-(r.x-a.x),i.y-(r.y-a.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&&(this.center=this.center.wrap())},Er.prototype.locationPoint=function(e){return this.coordinatePoint(this.locationCoordinate(e))},Er.prototype.pointLocation=function(e){return this.coordinateLocation(this.pointCoordinate(e))},Er.prototype.locationCoordinate=function(t){return e.MercatorCoordinate.fromLngLat(t)},Er.prototype.coordinateLocation=function(e){return e.toLngLat()},Er.prototype.pointCoordinate=function(t){var n=[t.x,t.y,0,1],r=[t.x,t.y,1,1];e.transformMat4(n,n,this.pixelMatrixInverse),e.transformMat4(r,r,this.pixelMatrixInverse);var a=n[3],i=r[3],o=n[0]/a,s=r[0]/i,l=n[1]/a,c=r[1]/i,u=n[2]/a,d=r[2]/i,p=u===d?0:(0-u)/(d-u);return new e.MercatorCoordinate(e.number(o,s,p)/this.worldSize,e.number(l,c,p)/this.worldSize)},Er.prototype.coordinatePoint=function(t){var n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.transformMat4(n,n,this.pixelMatrix),new e.Point(n[0]/n[3],n[1]/n[3])},Er.prototype.getBounds=function(){return(new e.LngLatBounds).extend(this.pointLocation(new e.Point(0,0))).extend(this.pointLocation(new e.Point(this.width,0))).extend(this.pointLocation(new e.Point(this.width,this.height))).extend(this.pointLocation(new e.Point(0,this.height)))},Er.prototype.getMaxBounds=function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new e.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Er.prototype.setMaxBounds=function(e){e?(this.lngRange=[e.getWest(),e.getEast()],this.latRange=[e.getSouth(),e.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Er.prototype.calculatePosMatrix=function(t,n){void 0===n&&(n=!1);var r=t.key,a=n?this._alignedPosMatrixCache:this._posMatrixCache;if(a[r])return a[r];var i=t.canonical,o=this.worldSize/this.zoomScale(i.z),s=i.x+Math.pow(2,i.z)*t.wrap,l=e.identity(new Float64Array(16));return e.translate(l,l,[s*o,i.y*o,0]),e.scale(l,l,[o/e.EXTENT,o/e.EXTENT,1]),e.multiply(l,n?this.alignedProjMatrix:this.projMatrix,l),a[r]=new Float32Array(l),a[r]},Er.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Er.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var t,n,r,a,i=-90,o=90,s=-180,l=180,c=this.size,u=this._unmodified;if(this.latRange){var d=this.latRange;i=e.mercatorYfromLat(d[1])*this.worldSize,t=(o=e.mercatorYfromLat(d[0])*this.worldSize)-i<c.y?c.y/(o-i):0}if(this.lngRange){var p=this.lngRange;s=e.mercatorXfromLng(p[0])*this.worldSize,n=(l=e.mercatorXfromLng(p[1])*this.worldSize)-s<c.x?c.x/(l-s):0}var h=this.point,f=Math.max(n||0,t||0);if(f)return this.center=this.unproject(new e.Point(n?(l+s)/2:h.x,t?(o+i)/2:h.y)),this.zoom+=this.scaleZoom(f),this._unmodified=u,void(this._constraining=!1);if(this.latRange){var m=h.y,g=c.y/2;m-g<i&&(a=i+g),m+g>o&&(a=o-g)}if(this.lngRange){var y=h.x,b=c.x/2;y-b<s&&(r=s+b),y+b>l&&(r=l-b)}(void 0!==r||void 0!==a)&&(this.center=this.unproject(new e.Point(void 0!==r?r:h.x,void 0!==a?a:h.y))),this._unmodified=u,this._constraining=!1}},Er.prototype._calcMatrices=function(){if(this.height){var t=this._fov/2,n=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(t)*this.height;var r=Math.PI/2+this._pitch,a=this._fov*(.5+n.y/this.height),i=Math.sin(a)*this.cameraToCenterDistance/Math.sin(e.clamp(Math.PI-r-a,.01,Math.PI-.01)),o=this.point,s=o.x,l=o.y,c=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),u=this.height/50,d=new Float64Array(16);e.perspective(d,this._fov,this.width/this.height,u,c),d[8]=2*-n.x/this.width,d[9]=2*n.y/this.height,e.scale(d,d,[1,-1,1]),e.translate(d,d,[0,0,-this.cameraToCenterDistance]),e.rotateX(d,d,this._pitch),e.rotateZ(d,d,this.angle),e.translate(d,d,[-s,-l,0]),this.mercatorMatrix=e.scale([],d,[this.worldSize,this.worldSize,this.worldSize]),e.scale(d,d,[1,1,e.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=d,this.invProjMatrix=e.invert([],this.projMatrix);var p=this.width%2/2,h=this.height%2/2,f=Math.cos(this.angle),m=Math.sin(this.angle),g=s-Math.round(s)+f*p+m*h,y=l-Math.round(l)+f*h+m*p,b=new Float64Array(d);if(e.translate(b,b,[g>.5?g-1:g,y>.5?y-1:y,0]),this.alignedProjMatrix=b,d=e.create(),e.scale(d,d,[this.width/2,-this.height/2,1]),e.translate(d,d,[1,-1,0]),this.labelPlaneMatrix=d,d=e.create(),e.scale(d,d,[1,-1,1]),e.translate(d,d,[-1,-1,0]),e.scale(d,d,[2/this.width,2/this.height,1]),this.glCoordMatrix=d,this.pixelMatrix=e.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(d=e.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=d,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Er.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var t=this.pointCoordinate(new e.Point(0,0)),n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.transformMat4(n,n,this.pixelMatrix)[3]/this.cameraToCenterDistance},Er.prototype.getCameraPoint=function(){var t=this._pitch,n=Math.tan(t)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.Point(0,n))},Er.prototype.getCameraQueryGeometry=function(t){var n=this.getCameraPoint();if(1===t.length)return[t[0],n];for(var r=n.x,a=n.y,i=n.x,o=n.y,s=0,l=t;s<l.length;s+=1){var c=l[s];r=Math.min(r,c.x),a=Math.min(a,c.y),i=Math.max(i,c.x),o=Math.max(o,c.y)}return[new e.Point(r,a),new e.Point(i,a),new e.Point(i,o),new e.Point(r,o),new e.Point(r,a)]},Object.defineProperties(Er.prototype,qr);var Dr=function(t){this._hashName=t&&encodeURIComponent(t),e.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=function(e,t){var n=!1,r=null,a=function(){r=null,n&&(e(),r=setTimeout(a,t),n=!1)};return function(){return n=!0,r||a(),r}}(this._updateHashUnthrottled.bind(this),300)};Dr.prototype.addTo=function(t){return this._map=t,e.window.addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this},Dr.prototype.remove=function(){return e.window.removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},Dr.prototype.getHashString=function(t){var n=this._map.getCenter(),r=Math.round(100*this._map.getZoom())/100,a=Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),i=Math.pow(10,a),o=Math.round(n.lng*i)/i,s=Math.round(n.lat*i)/i,l=this._map.getBearing(),c=this._map.getPitch(),u="";if(u+=t?"/"+o+"/"+s+"/"+r:r+"/"+s+"/"+o,(l||c)&&(u+="/"+Math.round(10*l)/10),c&&(u+="/"+Math.round(c)),this._hashName){var d=this._hashName,p=!1,h=e.window.location.hash.slice(1).split("&").map(function(e){var t=e.split("=")[0];return t===d?(p=!0,t+"="+u):e}).filter(function(e){return e});return p||h.push(d+"="+u),"#"+h.join("&")}return"#"+u},Dr.prototype._getCurrentHash=function(){var t,n=this,r=e.window.location.hash.replace("#","");return this._hashName?(r.split("&").map(function(e){return e.split("=")}).forEach(function(e){e[0]===n._hashName&&(t=e)}),(t&&t[1]||"").split("/")):r.split("/")},Dr.prototype._onHashChange=function(){var e=this._getCurrentHash();if(e.length>=3&&!e.some(function(e){return isNaN(e)})){var t=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(e[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+e[2],+e[1]],zoom:+e[0],bearing:t,pitch:+(e[4]||0)}),!0}return!1},Dr.prototype._updateHashUnthrottled=function(){var t=e.window.location.href.replace(/(#.+)?$/,this.getHashString());try{e.window.history.replaceState(e.window.history.state,null,t)}catch{}};var Rr={linearity:.3,easing:e.bezier(0,0,.3,1)},Lr=e.extend({deceleration:2500,maxSpeed:1400},Rr),Ir=e.extend({deceleration:20,maxSpeed:1400},Rr),Wr=e.extend({deceleration:1e3,maxSpeed:360},Rr),Nr=e.extend({deceleration:1e3,maxSpeed:90},Rr),Pr=function(e){this._map=e,this.clear()};function Br(e,t){(!e.duration||e.duration<t.duration)&&(e.duration=t.duration,e.easing=t.easing)}function Fr(t,n,r){var a=r.maxSpeed,i=r.linearity,o=r.deceleration,s=e.clamp(t*i/(n/1e3),-a,a),l=Math.abs(s)/(o*i);return{easing:r.easing,duration:1e3*l,amount:s*(l/2)}}Pr.prototype.clear=function(){this._inertiaBuffer=[]},Pr.prototype.record=function(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:e.browser.now(),settings:t})},Pr.prototype._drainInertiaBuffer=function(){for(var t=this._inertiaBuffer,n=e.browser.now();t.length>0&&n-t[0].time>160;)t.shift()},Pr.prototype._onMoveEnd=function(t){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var n={zoom:0,bearing:0,pitch:0,pan:new e.Point(0,0),pinchAround:void 0,around:void 0},r=0,a=this._inertiaBuffer;r<a.length;r+=1){var i=a[r].settings;n.zoom+=i.zoomDelta||0,n.bearing+=i.bearingDelta||0,n.pitch+=i.pitchDelta||0,i.panDelta&&n.pan._add(i.panDelta),i.around&&(n.around=i.around),i.pinchAround&&(n.pinchAround=i.pinchAround)}var o=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,s={};if(n.pan.mag()){var l=Fr(n.pan.mag(),o,e.extend({},Lr,t||{}));s.offset=n.pan.mult(l.amount/n.pan.mag()),s.center=this._map.transform.center,Br(s,l)}if(n.zoom){var c=Fr(n.zoom,o,Ir);s.zoom=this._map.transform.zoom+c.amount,Br(s,c)}if(n.bearing){var u=Fr(n.bearing,o,Wr);s.bearing=this._map.transform.bearing+e.clamp(u.amount,-179,179),Br(s,u)}if(n.pitch){var d=Fr(n.pitch,o,Nr);s.pitch=this._map.transform.pitch+d.amount,Br(s,d)}if(s.zoom||s.bearing){var p=void 0===n.pinchAround?n.around:n.pinchAround;s.around=p?this._map.unproject(p):this._map.getCenter()}return this.clear(),e.extend(s,{noMoveStart:!0})}};var jr=function(t){function r(r,a,i,o){void 0===o&&(o={});var s=n.mousePos(a.getCanvasContainer(),i),l=a.unproject(s);t.call(this,r,e.extend({point:s,lngLat:l,originalEvent:i},o)),this._defaultPrevented=!1,this.target=a}t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r;var a={defaultPrevented:{configurable:!0}};return r.prototype.preventDefault=function(){this._defaultPrevented=!0},a.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(r.prototype,a),r}(e.Event),Ur=function(t){function r(r,a,i){var o="touchend"===r?i.changedTouches:i.touches,s=n.touchPos(a.getCanvasContainer(),o),l=s.map(function(e){return a.unproject(e)}),c=s.reduce(function(e,t,n,r){return e.add(t.div(r.length))},new e.Point(0,0)),u=a.unproject(c);t.call(this,r,{points:s,point:c,lngLats:l,lngLat:u,originalEvent:i}),this._defaultPrevented=!1}t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r;var a={defaultPrevented:{configurable:!0}};return r.prototype.preventDefault=function(){this._defaultPrevented=!0},a.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(r.prototype,a),r}(e.Event),Vr=function(e){function t(t,n,r){e.call(this,t,{originalEvent:r}),this._defaultPrevented=!1}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={defaultPrevented:{configurable:!0}};return t.prototype.preventDefault=function(){this._defaultPrevented=!0},n.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(t.prototype,n),t}(e.Event),Hr=function(e,t){this._map=e,this._clickTolerance=t.clickTolerance};Hr.prototype.reset=function(){delete this._mousedownPos},Hr.prototype.wheel=function(e){return this._firePreventable(new Vr(e.type,this._map,e))},Hr.prototype.mousedown=function(e,t){return this._mousedownPos=t,this._firePreventable(new jr(e.type,this._map,e))},Hr.prototype.mouseup=function(e){this._map.fire(new jr(e.type,this._map,e))},Hr.prototype.click=function(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||this._map.fire(new jr(e.type,this._map,e))},Hr.prototype.dblclick=function(e){return this._firePreventable(new jr(e.type,this._map,e))},Hr.prototype.mouseover=function(e){this._map.fire(new jr(e.type,this._map,e))},Hr.prototype.mouseout=function(e){this._map.fire(new jr(e.type,this._map,e))},Hr.prototype.touchstart=function(e){return this._firePreventable(new Ur(e.type,this._map,e))},Hr.prototype.touchmove=function(e){this._map.fire(new Ur(e.type,this._map,e))},Hr.prototype.touchend=function(e){this._map.fire(new Ur(e.type,this._map,e))},Hr.prototype.touchcancel=function(e){this._map.fire(new Ur(e.type,this._map,e))},Hr.prototype._firePreventable=function(e){if(this._map.fire(e),e.defaultPrevented)return{}},Hr.prototype.isEnabled=function(){return!0},Hr.prototype.isActive=function(){return!1},Hr.prototype.enable=function(){},Hr.prototype.disable=function(){};var Xr=function(e){this._map=e};Xr.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Xr.prototype.mousemove=function(e){this._map.fire(new jr(e.type,this._map,e))},Xr.prototype.mousedown=function(){this._delayContextMenu=!0},Xr.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new jr("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Xr.prototype.contextmenu=function(e){this._delayContextMenu?this._contextMenuEvent=e:this._map.fire(new jr(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()},Xr.prototype.isEnabled=function(){return!0},Xr.prototype.isActive=function(){return!1},Xr.prototype.enable=function(){},Xr.prototype.disable=function(){};var Gr=function(e,t){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1};function Yr(e,t){for(var n={},r=0;r<e.length;r++)n[e[r].identifier]=t[r];return n}Gr.prototype.isEnabled=function(){return!!this._enabled},Gr.prototype.isActive=function(){return!!this._active},Gr.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Gr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Gr.prototype.mousedown=function(e,t){this.isEnabled()&&e.shiftKey&&0===e.button&&(n.disableDrag(),this._startPos=this._lastPos=t,this._active=!0)},Gr.prototype.mousemoveWindow=function(e,t){if(this._active){var r=t;if(!(this._lastPos.equals(r)||!this._box&&r.dist(this._startPos)<this._clickTolerance)){var a=this._startPos;this._lastPos=r,this._box||(this._box=n.create("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",e));var i=Math.min(a.x,r.x),o=Math.max(a.x,r.x),s=Math.min(a.y,r.y),l=Math.max(a.y,r.y);n.setTransform(this._box,"translate("+i+"px,"+s+"px)"),this._box.style.width=o-i+"px",this._box.style.height=l-s+"px"}}},Gr.prototype.mouseupWindow=function(t,r){var a=this;if(this._active&&0===t.button){var i=this._startPos,o=r;if(this.reset(),n.suppressClick(),i.x!==o.x||i.y!==o.y)return this._map.fire(new e.Event("boxzoomend",{originalEvent:t})),{cameraAnimation:function(e){return e.fitScreenCoordinates(i,o,a._map.getBearing(),{linear:!0})}};this._fireEvent("boxzoomcancel",t)}},Gr.prototype.keydown=function(e){this._active&&27===e.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",e))},Gr.prototype.reset=function(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(n.remove(this._box),this._box=null),n.enableDrag(),delete this._startPos,delete this._lastPos},Gr.prototype._fireEvent=function(t,n){return this._map.fire(new e.Event(t,{originalEvent:n}))};var Zr=function(e){this.reset(),this.numTouches=e.numTouches};Zr.prototype.reset=function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1},Zr.prototype.touchstart=function(t,n,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),!this.aborted&&(void 0===this.startTime&&(this.startTime=t.timeStamp),r.length===this.numTouches&&(this.centroid=function(t){for(var n=new e.Point(0,0),r=0,a=t;r<a.length;r+=1){var i=a[r];n._add(i)}return n.div(t.length)}(n),this.touches=Yr(r,n)))},Zr.prototype.touchmove=function(e,t,n){if(!this.aborted&&this.centroid){var r=Yr(n,t);for(var a in this.touches){var i=this.touches[a],o=r[a];(!o||o.dist(i)>30)&&(this.aborted=!0)}}},Zr.prototype.touchend=function(e,t,n){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===n.length){var r=!this.aborted&&this.centroid;if(this.reset(),r)return r}};var $r=function(e){this.singleTap=new Zr(e),this.numTaps=e.numTaps,this.reset()};$r.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},$r.prototype.touchstart=function(e,t,n){this.singleTap.touchstart(e,t,n)},$r.prototype.touchmove=function(e,t,n){this.singleTap.touchmove(e,t,n)},$r.prototype.touchend=function(e,t,n){var r=this.singleTap.touchend(e,t,n);if(r){var a=e.timeStamp-this.lastTime<500,i=!this.lastTap||this.lastTap.dist(r)<30;if((!a||!i)&&this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}};var Jr=function(){this._zoomIn=new $r({numTouches:1,numTaps:2}),this._zoomOut=new $r({numTouches:2,numTaps:1}),this.reset()};Jr.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Jr.prototype.touchstart=function(e,t,n){this._zoomIn.touchstart(e,t,n),this._zoomOut.touchstart(e,t,n)},Jr.prototype.touchmove=function(e,t,n){this._zoomIn.touchmove(e,t,n),this._zoomOut.touchmove(e,t,n)},Jr.prototype.touchend=function(e,t,n){var r=this,a=this._zoomIn.touchend(e,t,n),i=this._zoomOut.touchend(e,t,n);return a?(this._active=!0,e.preventDefault(),setTimeout(function(){return r.reset()},0),{cameraAnimation:function(t){return t.easeTo({duration:300,zoom:t.getZoom()+1,around:t.unproject(a)},{originalEvent:e})}}):i?(this._active=!0,e.preventDefault(),setTimeout(function(){return r.reset()},0),{cameraAnimation:function(t){return t.easeTo({duration:300,zoom:t.getZoom()-1,around:t.unproject(i)},{originalEvent:e})}}):void 0},Jr.prototype.touchcancel=function(){this.reset()},Jr.prototype.enable=function(){this._enabled=!0},Jr.prototype.disable=function(){this._enabled=!1,this.reset()},Jr.prototype.isEnabled=function(){return this._enabled},Jr.prototype.isActive=function(){return this._active};var Qr={0:1,2:2},Kr=function(e){this.reset(),this._clickTolerance=e.clickTolerance||1};Kr.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Kr.prototype._correctButton=function(e,t){return!1},Kr.prototype._move=function(e,t){return{}},Kr.prototype.mousedown=function(e,t){if(!this._lastPoint){var r=n.mouseButton(e);this._correctButton(e,r)&&(this._lastPoint=t,this._eventButton=r)}},Kr.prototype.mousemoveWindow=function(e,t){var n=this._lastPoint;if(n){if(e.preventDefault(),function(e,t){var n=Qr[t];return void 0===e.buttons||(e.buttons&n)!==n}(e,this._eventButton))return void this.reset();if(this._moved||!(t.dist(n)<this._clickTolerance))return this._moved=!0,this._lastPoint=t,this._move(n,t)}},Kr.prototype.mouseupWindow=function(e){this._lastPoint&&n.mouseButton(e)===this._eventButton&&(this._moved&&n.suppressClick(),this.reset())},Kr.prototype.enable=function(){this._enabled=!0},Kr.prototype.disable=function(){this._enabled=!1,this.reset()},Kr.prototype.isEnabled=function(){return this._enabled},Kr.prototype.isActive=function(){return this._active};var ea=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.mousedown=function(t,n){e.prototype.mousedown.call(this,t,n),this._lastPoint&&(this._active=!0)},t.prototype._correctButton=function(e,t){return 0===t&&!e.ctrlKey},t.prototype._move=function(e,t){return{around:t,panDelta:t.sub(e)}},t}(Kr),ta=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._correctButton=function(e,t){return 0===t&&e.ctrlKey||2===t},t.prototype._move=function(e,t){var n=.8*(t.x-e.x);if(n)return this._active=!0,{bearingDelta:n}},t.prototype.contextmenu=function(e){e.preventDefault()},t}(Kr),na=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._correctButton=function(e,t){return 0===t&&e.ctrlKey||2===t},t.prototype._move=function(e,t){var n=-.5*(t.y-e.y);if(n)return this._active=!0,{pitchDelta:n}},t.prototype.contextmenu=function(e){e.preventDefault()},t}(Kr),ra=function(e){this._minTouches=1,this._clickTolerance=e.clickTolerance||1,this.reset()};ra.prototype.reset=function(){this._active=!1,this._touches={},this._sum=new e.Point(0,0)},ra.prototype.touchstart=function(e,t,n){return this._calculateTransform(e,t,n)},ra.prototype.touchmove=function(e,t,n){if(this._active&&!(n.length<this._minTouches))return e.preventDefault(),this._calculateTransform(e,t,n)},ra.prototype.touchend=function(e,t,n){this._calculateTransform(e,t,n),this._active&&n.length<this._minTouches&&this.reset()},ra.prototype.touchcancel=function(){this.reset()},ra.prototype._calculateTransform=function(t,n,r){r.length>0&&(this._active=!0);var a=Yr(r,n),i=new e.Point(0,0),o=new e.Point(0,0),s=0;for(var l in a){var c=a[l],u=this._touches[l];u&&(i._add(c),o._add(c.sub(u)),s++,a[l]=c)}if(this._touches=a,!(s<this._minTouches)&&o.mag()){var d=o.div(s);if(this._sum._add(d),!(this._sum.mag()<this._clickTolerance))return{around:i.div(s),panDelta:d}}},ra.prototype.enable=function(){this._enabled=!0},ra.prototype.disable=function(){this._enabled=!1,this.reset()},ra.prototype.isEnabled=function(){return this._enabled},ra.prototype.isActive=function(){return this._active};var aa=function(){this.reset()};function ia(e,t,n){for(var r=0;r<e.length;r++)if(e[r].identifier===n)return t[r]}function oa(e,t){return Math.log(e/t)/Math.LN2}aa.prototype.reset=function(){this._active=!1,delete this._firstTwoTouches},aa.prototype._start=function(e){},aa.prototype._move=function(e,t,n){return{}},aa.prototype.touchstart=function(e,t,n){this._firstTwoTouches||n.length<2||(this._firstTwoTouches=[n[0].identifier,n[1].identifier],this._start([t[0],t[1]]))},aa.prototype.touchmove=function(e,t,n){if(this._firstTwoTouches){e.preventDefault();var r=this._firstTwoTouches,a=r[0],i=r[1],o=ia(n,t,a),s=ia(n,t,i);if(o&&s){var l=this._aroundCenter?null:o.add(s).div(2);return this._move([o,s],l,e)}}},aa.prototype.touchend=function(e,t,r){if(this._firstTwoTouches){var a=this._firstTwoTouches,i=a[0],o=a[1],s=ia(r,t,i),l=ia(r,t,o);s&&l||(this._active&&n.suppressClick(),this.reset())}},aa.prototype.touchcancel=function(){this.reset()},aa.prototype.enable=function(e){this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around},aa.prototype.disable=function(){this._enabled=!1,this.reset()},aa.prototype.isEnabled=function(){return this._enabled},aa.prototype.isActive=function(){return this._active};var sa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.reset=function(){e.prototype.reset.call(this),delete this._distance,delete this._startDistance},t.prototype._start=function(e){this._startDistance=this._distance=e[0].dist(e[1])},t.prototype._move=function(e,t){var n=this._distance;if(this._distance=e[0].dist(e[1]),this._active||!(Math.abs(oa(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:oa(this._distance,n),pinchAround:t}},t}(aa);function la(e,t){return 180*e.angleWith(t)/Math.PI}var ca=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.reset=function(){e.prototype.reset.call(this),delete this._minDiameter,delete this._startVector,delete this._vector},t.prototype._start=function(e){this._startVector=this._vector=e[0].sub(e[1]),this._minDiameter=e[0].dist(e[1])},t.prototype._move=function(e,t){var n=this._vector;if(this._vector=e[0].sub(e[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:la(this._vector,n),pinchAround:t}},t.prototype._isBelowThreshold=function(e){this._minDiameter=Math.min(this._minDiameter,e.mag());var t=25/(Math.PI*this._minDiameter)*360,n=la(e,this._startVector);return Math.abs(n)<t},t}(aa);function ua(e){return Math.abs(e.y)>Math.abs(e.x)}var da=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.reset=function(){e.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},t.prototype._start=function(e){this._lastPoints=e,ua(e[0].sub(e[1]))&&(this._valid=!1)},t.prototype._move=function(e,t,n){var r=e[0].sub(this._lastPoints[0]),a=e[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(r,a,n.timeStamp),this._valid)return this._lastPoints=e,this._active=!0,{pitchDelta:(r.y+a.y)/2*-.5}},t.prototype.gestureBeginsVertically=function(e,t,n){if(void 0!==this._valid)return this._valid;var r=e.mag()>=2,a=t.mag()>=2;if(r||a){if(!r||!a)return void 0===this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;var i=e.y>0==t.y>0;return ua(e)&&ua(t)&&i}},t}(aa),pa={panStep:100,bearingStep:15,pitchStep:10},ha=function(){var e=pa;this._panStep=e.panStep,this._bearingStep=e.bearingStep,this._pitchStep=e.pitchStep,this._rotationDisabled=!1};function fa(e){return e*(2-e)}ha.prototype.reset=function(){this._active=!1},ha.prototype.keydown=function(e){var t=this;if(!(e.altKey||e.ctrlKey||e.metaKey)){var n=0,r=0,a=0,i=0,o=0;switch(e.keyCode){case 61:case 107:case 171:case 187:n=1;break;case 189:case 109:case 173:n=-1;break;case 37:e.shiftKey?r=-1:(e.preventDefault(),i=-1);break;case 39:e.shiftKey?r=1:(e.preventDefault(),i=1);break;case 38:e.shiftKey?a=1:(e.preventDefault(),o=-1);break;case 40:e.shiftKey?a=-1:(e.preventDefault(),o=1);break;default:return}return this._rotationDisabled&&(r=0,a=0),{cameraAnimation:function(s){var l=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:fa,zoom:n?Math.round(l)+n*(e.shiftKey?2:1):l,bearing:s.getBearing()+r*t._bearingStep,pitch:s.getPitch()+a*t._pitchStep,offset:[-i*t._panStep,-o*t._panStep],center:s.getCenter()},{originalEvent:e})}}}},ha.prototype.enable=function(){this._enabled=!0},ha.prototype.disable=function(){this._enabled=!1,this.reset()},ha.prototype.isEnabled=function(){return this._enabled},ha.prototype.isActive=function(){return this._active},ha.prototype.disableRotation=function(){this._rotationDisabled=!0},ha.prototype.enableRotation=function(){this._rotationDisabled=!1};var ma=4.000244140625,ga=1/450,ya=function(t,n){this._map=t,this._el=t.getCanvasContainer(),this._handler=n,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=ga,e.bindAll(["_onTimeout"],this)};ya.prototype.setZoomRate=function(e){this._defaultZoomRate=e},ya.prototype.setWheelZoomRate=function(e){this._wheelZoomRate=e},ya.prototype.isEnabled=function(){return!!this._enabled},ya.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},ya.prototype.isZooming=function(){return!!this._zooming},ya.prototype.enable=function(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=e&&"center"===e.around)},ya.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},ya.prototype.wheel=function(t){if(this.isEnabled()){var n=t.deltaMode===e.window.WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY,r=e.browser.now(),a=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==n&&n%ma===0?this._type="wheel":0!==n&&Math.abs(n)<4?this._type="trackpad":a>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(a*n)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),t.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=t,this._delta-=n,this._active||this._start(t)),t.preventDefault()}},ya.prototype._onTimeout=function(e){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)},ya.prototype._start=function(t){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var r=n.mousePos(this._el,t);this._around=e.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(r)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},ya.prototype.renderFrame=function(){var t=this;if(this._frameId&&(this._frameId=null,this.isActive())){var n=this._map.transform;if(0!==this._delta){var r="wheel"===this._type&&Math.abs(this._delta)>ma?this._wheelZoomRate:this._defaultZoomRate,a=2/(1+Math.exp(-Math.abs(this._delta*r)));this._delta<0&&0!==a&&(a=1/a);var i="number"==typeof this._targetZoom?n.zoomScale(this._targetZoom):n.scale;this._targetZoom=Math.min(n.maxZoom,Math.max(n.minZoom,n.scaleZoom(i*a))),"wheel"===this._type&&(this._startZoom=n.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var o,s="number"==typeof this._targetZoom?this._targetZoom:n.zoom,l=this._startZoom,c=this._easing,u=!1;if("wheel"===this._type&&l&&c){var d=Math.min((e.browser.now()-this._lastWheelEventTime)/200,1),p=c(d);o=e.number(l,s,p),d<1?this._frameId||(this._frameId=!0):u=!0}else o=s,u=!0;return this._active=!0,u&&(this._active=!1,this._finishTimeout=setTimeout(function(){t._zooming=!1,t._handler._triggerRenderFrame(),delete t._targetZoom,delete t._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!u,zoomDelta:o-n.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},ya.prototype._smoothOutEasing=function(t){var n=e.ease;if(this._prevEase){var r=this._prevEase,a=(e.browser.now()-r.start)/r.duration,i=r.easing(a+.01)-r.easing(a),o=.27/Math.sqrt(i*i+1e-4)*.01,s=Math.sqrt(.0729-o*o);n=e.bezier(o,s,.25,1)}return this._prevEase={start:e.browser.now(),duration:t,easing:n},n},ya.prototype.reset=function(){this._active=!1};var ba=function(e,t){this._clickZoom=e,this._tapZoom=t};ba.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},ba.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},ba.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},ba.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var va=function(){this.reset()};va.prototype.reset=function(){this._active=!1},va.prototype.dblclick=function(e,t){return e.preventDefault(),{cameraAnimation:function(n){n.easeTo({duration:300,zoom:n.getZoom()+(e.shiftKey?-1:1),around:n.unproject(t)},{originalEvent:e})}}},va.prototype.enable=function(){this._enabled=!0},va.prototype.disable=function(){this._enabled=!1,this.reset()},va.prototype.isEnabled=function(){return this._enabled},va.prototype.isActive=function(){return this._active};var Ma=function(){this._tap=new $r({numTouches:1,numTaps:1}),this.reset()};Ma.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Ma.prototype.touchstart=function(e,t,n){this._swipePoint||(this._tapTime&&e.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?n.length>0&&(this._swipePoint=t[0],this._swipeTouch=n[0].identifier):this._tap.touchstart(e,t,n))},Ma.prototype.touchmove=function(e,t,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;var r=t[0],a=r.y-this._swipePoint.y;return this._swipePoint=r,e.preventDefault(),this._active=!0,{zoomDelta:a/128}}}else this._tap.touchmove(e,t,n)},Ma.prototype.touchend=function(e,t,n){this._tapTime?this._swipePoint&&0===n.length&&this.reset():this._tap.touchend(e,t,n)&&(this._tapTime=e.timeStamp)},Ma.prototype.touchcancel=function(){this.reset()},Ma.prototype.enable=function(){this._enabled=!0},Ma.prototype.disable=function(){this._enabled=!1,this.reset()},Ma.prototype.isEnabled=function(){return this._enabled},Ma.prototype.isActive=function(){return this._active};var xa=function(e,t,n){this._el=e,this._mousePan=t,this._touchPan=n};xa.prototype.enable=function(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},xa.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},xa.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},xa.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var za=function(e,t,n){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=n};za.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},za.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},za.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},za.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var _a=function(e,t,n,r){this._el=e,this._touchZoom=t,this._touchRotate=n,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0};_a.prototype.enable=function(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},_a.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},_a.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},_a.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},_a.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},_a.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Aa=function(e){return e.zoom||e.drag||e.pitch||e.rotate},Oa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(e.Event);function wa(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}var ka=function(t,r){this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Pr(t),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r),e.bindAll(["handleEvent","handleWindowEvent"],this);var a=this._el;this._listeners=[[a,"touchstart",{passive:!0}],[a,"touchmove",{passive:!1}],[a,"touchend",void 0],[a,"touchcancel",void 0],[a,"mousedown",void 0],[a,"mousemove",void 0],[a,"mouseup",void 0],[e.window.document,"mousemove",{capture:!0}],[e.window.document,"mouseup",void 0],[a,"mouseover",void 0],[a,"mouseout",void 0],[a,"dblclick",void 0],[a,"click",void 0],[a,"keydown",{capture:!1}],[a,"keyup",void 0],[a,"wheel",{passive:!1}],[a,"contextmenu",void 0],[e.window,"blur",void 0]];for(var i=0,o=this._listeners;i<o.length;i+=1){var s=o[i],l=s[0],c=s[1],u=s[2];n.addEventListener(l,c,l===e.window.document?this.handleWindowEvent:this.handleEvent,u)}};ka.prototype.destroy=function(){for(var t=0,r=this._listeners;t<r.length;t+=1){var a=r[t],i=a[0],o=a[1],s=a[2];n.removeEventListener(i,o,i===e.window.document?this.handleWindowEvent:this.handleEvent,s)}},ka.prototype._addDefaultHandlers=function(e){var t=this._map,n=t.getCanvasContainer();this._add("mapEvent",new Hr(t,e));var r=t.boxZoom=new Gr(t,e);this._add("boxZoom",r);var a=new Jr,i=new va;t.doubleClickZoom=new ba(i,a),this._add("tapZoom",a),this._add("clickZoom",i);var o=new Ma;this._add("tapDragZoom",o);var s=t.touchPitch=new da;this._add("touchPitch",s);var l=new ta(e),c=new na(e);t.dragRotate=new za(e,l,c),this._add("mouseRotate",l,["mousePitch"]),this._add("mousePitch",c,["mouseRotate"]);var u=new ea(e),d=new ra(e);t.dragPan=new xa(n,u,d),this._add("mousePan",u),this._add("touchPan",d,["touchZoom","touchRotate"]);var p=new ca,h=new sa;t.touchZoomRotate=new _a(n,h,p,o),this._add("touchRotate",p,["touchPan","touchZoom"]),this._add("touchZoom",h,["touchPan","touchRotate"]);var f=t.scrollZoom=new ya(t,this);this._add("scrollZoom",f,["mousePan"]);var m=t.keyboard=new ha;this._add("keyboard",m),this._add("blockableMapEvent",new Xr(t));for(var g=0,y=["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"];g<y.length;g+=1){var b=y[g];e.interactive&&e[b]&&t[b].enable(e[b])}},ka.prototype._add=function(e,t,n){this._handlers.push({handlerName:e,handler:t,allowed:n}),this._handlersById[e]=t},ka.prototype.stop=function(e){if(!this._updatingCamera){for(var t=0,n=this._handlers;t<n.length;t+=1)n[t].handler.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}},ka.prototype.isActive=function(){for(var e=0,t=this._handlers;e<t.length;e+=1)if(t[e].handler.isActive())return!0;return!1},ka.prototype.isZooming=function(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()},ka.prototype.isRotating=function(){return!!this._eventsInProgress.rotate},ka.prototype.isMoving=function(){return!!Aa(this._eventsInProgress)||this.isZooming()},ka.prototype._blockedByActive=function(e,t,n){for(var r in e)if(r!==n&&(!t||t.indexOf(r)<0))return!0;return!1},ka.prototype.handleWindowEvent=function(e){this.handleEvent(e,e.type+"Window")},ka.prototype._getMapTouches=function(e){for(var t=[],n=0,r=e;n<r.length;n+=1){var a=r[n],i=a.target;this._el.contains(i)&&t.push(a)}return t},ka.prototype.handleEvent=function(e,t){if("blur"!==e.type){this._updatingCamera=!0;for(var r="renderFrame"===e.type?void 0:e,a={needsRenderFrame:!1},i={},o={},s=e.touches?this._getMapTouches(e.touches):void 0,l=s?n.touchPos(this._el,s):n.mousePos(this._el,e),c=0,u=this._handlers;c<u.length;c+=1){var d=u[c],p=d.handlerName,h=d.handler,f=d.allowed;if(h.isEnabled()){var m=void 0;this._blockedByActive(o,f,p)?h.reset():h[t||e.type]&&(m=h[t||e.type](e,l,s),this.mergeHandlerResult(a,i,m,p,r),m&&m.needsRenderFrame&&this._triggerRenderFrame()),(m||h.isActive())&&(o[p]=h)}}var g={};for(var y in this._previousActiveHandlers)o[y]||(g[y]=r);this._previousActiveHandlers=o,(Object.keys(g).length||wa(a))&&(this._changes.push([a,i,g]),this._triggerRenderFrame()),(Object.keys(o).length||wa(a))&&this._map._stop(!0),this._updatingCamera=!1;var b=a.cameraAnimation;b&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],b(this._map))}else this.stop(!0)},ka.prototype.mergeHandlerResult=function(t,n,r,a,i){if(r){e.extend(t,r);var o={handlerName:a,originalEvent:r.originalEvent||i};void 0!==r.zoomDelta&&(n.zoom=o),void 0!==r.panDelta&&(n.drag=o),void 0!==r.pitchDelta&&(n.pitch=o),void 0!==r.bearingDelta&&(n.rotate=o)}},ka.prototype._applyChanges=function(){for(var t={},n={},r={},a=0,i=this._changes;a<i.length;a+=1){var o=i[a],s=o[0],l=o[1],c=o[2];s.panDelta&&(t.panDelta=(t.panDelta||new e.Point(0,0))._add(s.panDelta)),s.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+s.zoomDelta),s.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+s.bearingDelta),s.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+s.pitchDelta),void 0!==s.around&&(t.around=s.around),void 0!==s.pinchAround&&(t.pinchAround=s.pinchAround),s.noInertia&&(t.noInertia=s.noInertia),e.extend(n,l),e.extend(r,c)}this._updateMapTransform(t,n,r),this._changes=[]},ka.prototype._updateMapTransform=function(e,t,n){var r=this._map,a=r.transform;if(!wa(e))return this._fireEvents(t,n,!0);var i=e.panDelta,o=e.zoomDelta,s=e.bearingDelta,l=e.pitchDelta,c=e.around,u=e.pinchAround;void 0!==u&&(c=u),r._stop(!0),c=c||r.transform.centerPoint;var d=a.pointLocation(i?c.sub(i):c);s&&(a.bearing+=s),l&&(a.pitch+=l),o&&(a.zoom+=o),a.setLocationAtPoint(d,c),this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(t,n,!0)},ka.prototype._fireEvents=function(t,n,r){var a=this,i=Aa(this._eventsInProgress),o=Aa(t),s={};for(var l in t){var c=t[l].originalEvent;this._eventsInProgress[l]||(s[l+"start"]=c),this._eventsInProgress[l]=t[l]}for(var u in!i&&o&&this._fireEvent("movestart",o.originalEvent),s)this._fireEvent(u,s[u]);for(var d in o&&this._fireEvent("move",o.originalEvent),t){var p=t[d].originalEvent;this._fireEvent(d,p)}var h,f={};for(var m in this._eventsInProgress){var g=this._eventsInProgress[m],y=g.handlerName,b=g.originalEvent;this._handlersById[y].isActive()||(delete this._eventsInProgress[m],h=n[y]||b,f[m+"end"]=h)}for(var v in f)this._fireEvent(v,f[v]);var M=Aa(this._eventsInProgress);if(r&&(i||o)&&!M){this._updatingCamera=!0;var x=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),z=function(e){return 0!==e&&-a._bearingSnap<e&&e<a._bearingSnap};x?(z(x.bearing||this._map.getBearing())&&(x.bearing=0),this._map.easeTo(x,{originalEvent:h})):(this._map.fire(new e.Event("moveend",{originalEvent:h})),z(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}},ka.prototype._fireEvent=function(t,n){this._map.fire(new e.Event(t,n?{originalEvent:n}:{}))},ka.prototype._requestFrame=function(){var e=this;return this._map.triggerRepaint(),this._map._renderTaskQueue.add(function(t){delete e._frameId,e.handleEvent(new Oa("renderFrame",{timeStamp:t})),e._applyChanges()})},ka.prototype._triggerRenderFrame=function(){void 0===this._frameId&&(this._frameId=this._requestFrame())};var Ta=function(t){function n(n,r){t.call(this),this._moving=!1,this._zooming=!1,this.transform=n,this._bearingSnap=r.bearingSnap,e.bindAll(["_renderFrameCallback"],this)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.getCenter=function(){return new e.LngLat(this.transform.center.lng,this.transform.center.lat)},n.prototype.setCenter=function(e,t){return this.jumpTo({center:e},t)},n.prototype.panBy=function(t,n,r){return t=e.Point.convert(t).mult(-1),this.panTo(this.transform.center,e.extend({offset:t},n),r)},n.prototype.panTo=function(t,n,r){return this.easeTo(e.extend({center:t},n),r)},n.prototype.getZoom=function(){return this.transform.zoom},n.prototype.setZoom=function(e,t){return this.jumpTo({zoom:e},t),this},n.prototype.zoomTo=function(t,n,r){return this.easeTo(e.extend({zoom:t},n),r)},n.prototype.zoomIn=function(e,t){return this.zoomTo(this.getZoom()+1,e,t),this},n.prototype.zoomOut=function(e,t){return this.zoomTo(this.getZoom()-1,e,t),this},n.prototype.getBearing=function(){return this.transform.bearing},n.prototype.setBearing=function(e,t){return this.jumpTo({bearing:e},t),this},n.prototype.getPadding=function(){return this.transform.padding},n.prototype.setPadding=function(e,t){return this.jumpTo({padding:e},t),this},n.prototype.rotateTo=function(t,n,r){return this.easeTo(e.extend({bearing:t},n),r)},n.prototype.resetNorth=function(t,n){return this.rotateTo(0,e.extend({duration:1e3},t),n),this},n.prototype.resetNorthPitch=function(t,n){return this.easeTo(e.extend({bearing:0,pitch:0,duration:1e3},t),n),this},n.prototype.snapToNorth=function(e,t){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(e,t):this},n.prototype.getPitch=function(){return this.transform.pitch},n.prototype.setPitch=function(e,t){return this.jumpTo({pitch:e},t),this},n.prototype.cameraForBounds=function(t,n){t=e.LngLatBounds.convert(t);var r=n&&n.bearing||0;return this._cameraForBoxAndBearing(t.getNorthWest(),t.getSouthEast(),r,n)},n.prototype._cameraForBoxAndBearing=function(t,n,r,a){var i={top:0,bottom:0,right:0,left:0};if("number"==typeof(a=e.extend({padding:i,offset:[0,0],maxZoom:this.transform.maxZoom},a)).padding){var o=a.padding;a.padding={top:o,bottom:o,right:o,left:o}}a.padding=e.extend(i,a.padding);var s=this.transform,l=s.padding,c=s.project(e.LngLat.convert(t)),u=s.project(e.LngLat.convert(n)),d=c.rotate(-r*Math.PI/180),p=u.rotate(-r*Math.PI/180),h=new e.Point(Math.max(d.x,p.x),Math.max(d.y,p.y)),f=new e.Point(Math.min(d.x,p.x),Math.min(d.y,p.y)),m=h.sub(f),g=(s.width-(l.left+l.right+a.padding.left+a.padding.right))/m.x,y=(s.height-(l.top+l.bottom+a.padding.top+a.padding.bottom))/m.y;if(!(y<0||g<0)){var b=Math.min(s.scaleZoom(s.scale*Math.min(g,y)),a.maxZoom),v="number"==typeof a.offset.x?new e.Point(a.offset.x,a.offset.y):e.Point.convert(a.offset),M=(a.padding.left-a.padding.right)/2,x=(a.padding.top-a.padding.bottom)/2,z=new e.Point(M,x).rotate(r*Math.PI/180),_=v.add(z).mult(s.scale/s.zoomScale(b));return{center:s.unproject(c.add(u).div(2).sub(_)),zoom:b,bearing:r}}e.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")},n.prototype.fitBounds=function(e,t,n){return this._fitInternal(this.cameraForBounds(e,t),t,n)},n.prototype.fitScreenCoordinates=function(t,n,r,a,i){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(e.Point.convert(t)),this.transform.pointLocation(e.Point.convert(n)),r,a),a,i)},n.prototype._fitInternal=function(t,n,r){return t?(delete(n=e.extend(t,n)).padding,n.linear?this.easeTo(n,r):this.flyTo(n,r)):this},n.prototype.jumpTo=function(t,n){this.stop();var r=this.transform,a=!1,i=!1,o=!1;return"zoom"in t&&r.zoom!==+t.zoom&&(a=!0,r.zoom=+t.zoom),void 0!==t.center&&(r.center=e.LngLat.convert(t.center)),"bearing"in t&&r.bearing!==+t.bearing&&(i=!0,r.bearing=+t.bearing),"pitch"in t&&r.pitch!==+t.pitch&&(o=!0,r.pitch=+t.pitch),null!=t.padding&&!r.isPaddingEqual(t.padding)&&(r.padding=t.padding),this.fire(new e.Event("movestart",n)).fire(new e.Event("move",n)),a&&this.fire(new e.Event("zoomstart",n)).fire(new e.Event("zoom",n)).fire(new e.Event("zoomend",n)),i&&this.fire(new e.Event("rotatestart",n)).fire(new e.Event("rotate",n)).fire(new e.Event("rotateend",n)),o&&this.fire(new e.Event("pitchstart",n)).fire(new e.Event("pitch",n)).fire(new e.Event("pitchend",n)),this.fire(new e.Event("moveend",n))},n.prototype.easeTo=function(t,n){var r=this;this._stop(!1,t.easeId),(!1===(t=e.extend({offset:[0,0],duration:500,easing:e.ease},t)).animate||!t.essential&&e.browser.prefersReducedMotion)&&(t.duration=0);var a=this.transform,i=this.getZoom(),o=this.getBearing(),s=this.getPitch(),l=this.getPadding(),c="zoom"in t?+t.zoom:i,u="bearing"in t?this._normalizeBearing(t.bearing,o):o,d="pitch"in t?+t.pitch:s,p="padding"in t?t.padding:a.padding,h=e.Point.convert(t.offset),f=a.centerPoint.add(h),m=a.pointLocation(f),g=e.LngLat.convert(t.center||m);this._normalizeCenter(g);var y,b,v=a.project(m),M=a.project(g).sub(v),x=a.zoomScale(c-i);t.around&&(y=e.LngLat.convert(t.around),b=a.locationPoint(y));var z={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||c!==i,this._rotating=this._rotating||o!==u,this._pitching=this._pitching||d!==s,this._padding=!a.isPaddingEqual(p),this._easeId=t.easeId,this._prepareEase(n,t.noMoveStart,z),this._ease(function(t){if(r._zooming&&(a.zoom=e.number(i,c,t)),r._rotating&&(a.bearing=e.number(o,u,t)),r._pitching&&(a.pitch=e.number(s,d,t)),r._padding&&(a.interpolatePadding(l,p,t),f=a.centerPoint.add(h)),y)a.setLocationAtPoint(y,b);else{var m=a.zoomScale(a.zoom-i),g=c>i?Math.min(2,x):Math.max(.5,x),z=Math.pow(g,1-t),_=a.unproject(v.add(M.mult(t*z)).mult(m));a.setLocationAtPoint(a.renderWorldCopies?_.wrap():_,f)}r._fireMoveEvents(n)},function(e){r._afterEase(n,e)},t),this},n.prototype._prepareEase=function(t,n,r){void 0===r&&(r={}),this._moving=!0,!n&&!r.moving&&this.fire(new e.Event("movestart",t)),this._zooming&&!r.zooming&&this.fire(new e.Event("zoomstart",t)),this._rotating&&!r.rotating&&this.fire(new e.Event("rotatestart",t)),this._pitching&&!r.pitching&&this.fire(new e.Event("pitchstart",t))},n.prototype._fireMoveEvents=function(t){this.fire(new e.Event("move",t)),this._zooming&&this.fire(new e.Event("zoom",t)),this._rotating&&this.fire(new e.Event("rotate",t)),this._pitching&&this.fire(new e.Event("pitch",t))},n.prototype._afterEase=function(t,n){if(!this._easeId||!n||this._easeId!==n){delete this._easeId;var r=this._zooming,a=this._rotating,i=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new e.Event("zoomend",t)),a&&this.fire(new e.Event("rotateend",t)),i&&this.fire(new e.Event("pitchend",t)),this.fire(new e.Event("moveend",t))}},n.prototype.flyTo=function(t,n){var r=this;if(!t.essential&&e.browser.prefersReducedMotion){var a=e.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(a,n)}this.stop(),t=e.extend({offset:[0,0],speed:1.2,curve:1.42,easing:e.ease},t);var i=this.transform,o=this.getZoom(),s=this.getBearing(),l=this.getPitch(),c=this.getPadding(),u="zoom"in t?e.clamp(+t.zoom,i.minZoom,i.maxZoom):o,d="bearing"in t?this._normalizeBearing(t.bearing,s):s,p="pitch"in t?+t.pitch:l,h="padding"in t?t.padding:i.padding,f=i.zoomScale(u-o),m=e.Point.convert(t.offset),g=i.centerPoint.add(m),y=i.pointLocation(g),b=e.LngLat.convert(t.center||y);this._normalizeCenter(b);var v=i.project(y),M=i.project(b).sub(v),x=t.curve,z=Math.max(i.width,i.height),_=z/f,A=M.mag();if("minZoom"in t){var O=e.clamp(Math.min(t.minZoom,o,u),i.minZoom,i.maxZoom),w=z/i.zoomScale(O-o);x=Math.sqrt(w/A*2)}var k=x*x;function T(e){var t=(_*_-z*z+(e?-1:1)*k*k*A*A)/(2*(e?_:z)*k*A);return Math.log(Math.sqrt(t*t+1)-t)}function S(e){return(Math.exp(e)-Math.exp(-e))/2}function C(e){return(Math.exp(e)+Math.exp(-e))/2}var E=T(0),q=function(e){return C(E)/C(E+x*e)},D=function(e){return z*((C(E)*function(e){return S(e)/C(e)}(E+x*e)-S(E))/k)/A},R=(T(1)-E)/x;if(Math.abs(A)<1e-6||!isFinite(R)){if(Math.abs(z-_)<1e-6)return this.easeTo(t,n);var L=_<z?-1:1;R=Math.abs(Math.log(_/z))/x,D=function(){return 0},q=function(e){return Math.exp(L*x*e)}}if("duration"in t)t.duration=+t.duration;else{var I="screenSpeed"in t?+t.screenSpeed/x:+t.speed;t.duration=1e3*R/I}return t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=s!==d,this._pitching=p!==l,this._padding=!i.isPaddingEqual(h),this._prepareEase(n,!1),this._ease(function(t){var a=t*R,f=1/q(a);i.zoom=1===t?u:o+i.scaleZoom(f),r._rotating&&(i.bearing=e.number(s,d,t)),r._pitching&&(i.pitch=e.number(l,p,t)),r._padding&&(i.interpolatePadding(c,h,t),g=i.centerPoint.add(m));var y=1===t?b:i.unproject(v.add(M.mult(D(a))).mult(f));i.setLocationAtPoint(i.renderWorldCopies?y.wrap():y,g),r._fireMoveEvents(n)},function(){return r._afterEase(n)},t),this},n.prototype.isEasing=function(){return!!this._easeFrameId},n.prototype.stop=function(){return this._stop()},n.prototype._stop=function(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var n=this._onEaseEnd;delete this._onEaseEnd,n.call(this,t)}if(!e){var r=this.handlers;r&&r.stop(!1)}return this},n.prototype._ease=function(t,n,r){!1===r.animate||0===r.duration?(t(1),n()):(this._easeStart=e.browser.now(),this._easeOptions=r,this._onEaseFrame=t,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},n.prototype._renderFrameCallback=function(){var t=Math.min((e.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},n.prototype._normalizeBearing=function(t,n){t=e.wrap(t,-180,180);var r=Math.abs(t-n);return Math.abs(t-360-n)<r&&(t-=360),Math.abs(t+360-n)<r&&(t+=360),t},n.prototype._normalizeCenter=function(e){var t=this.transform;if(t.renderWorldCopies&&!t.lngRange){var n=e.lng-t.center.lng;e.lng+=n>180?-360:n<-180?360:0}},n}(e.Evented),Sa=function(t){void 0===t&&(t={}),this.options=t,e.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Sa.prototype.getDefaultPosition=function(){return"bottom-right"},Sa.prototype.onAdd=function(e){var t=this.options&&this.options.compact;return this._map=e,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=n.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=n.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),t&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===t&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Sa.prototype.onRemove=function(){n.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Sa.prototype._setElementTitle=function(e,t){var n=this._map._getUIString("AttributionControl."+t);e.title=n,e.setAttribute("aria-label",n)},Sa.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Sa.prototype._updateEditLink=function(){var t=this._editLink;t||(t=this._editLink=this._container.querySelector(".mapbox-improve-map"));var n=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||e.config.ACCESS_TOKEN}];if(t){var r=n.reduce(function(e,t,r){return t.value&&(e+=t.key+"="+t.value+(r<n.length-1?"&":"")),e},"?");t.href=e.config.FEEDBACK_URL+"/"+r+(this._map._hash?this._map._hash.getHashString(!0):""),t.rel="noopener nofollow",this._setElementTitle(t,"MapFeedback")}},Sa.prototype._updateData=function(e){e&&("metadata"===e.sourceDataType||"visibility"===e.sourceDataType||"style"===e.dataType)&&(this._updateAttributions(),this._updateEditLink())},Sa.prototype._updateAttributions=function(){if(this._map.style){var e=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=e.concat(this.options.customAttribution.map(function(e){return"string"!=typeof e?"":e})):"string"==typeof this.options.customAttribution&&e.push(this.options.customAttribution)),this._map.style.stylesheet){var t=this._map.style.stylesheet;this.styleOwner=t.owner,this.styleId=t.id}var n=this._map.style.sourceCaches;for(var r in n){var a=n[r];if(a.used){var i=a.getSource();i.attribution&&e.indexOf(i.attribution)<0&&e.push(i.attribution)}}e.sort(function(e,t){return e.length-t.length});var o=(e=e.filter(function(t,n){for(var r=n+1;r<e.length;r++)if(e[r].indexOf(t)>=0)return!1;return!0})).join(" | ");o!==this._attribHTML&&(this._attribHTML=o,e.length?(this._innerContainer.innerHTML=o,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Sa.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Ca=function(){e.bindAll(["_updateLogo"],this),e.bindAll(["_updateCompact"],this)};Ca.prototype.onAdd=function(e){this._map=e,this._container=n.create("div","mapboxgl-ctrl");var t=n.create("a","mapboxgl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://www.mapbox.com/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Ca.prototype.onRemove=function(){n.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Ca.prototype.getDefaultPosition=function(){return"bottom-left"},Ca.prototype._updateLogo=function(e){(!e||"metadata"===e.sourceDataType)&&(this._container.style.display=this._logoRequired()?"block":"none")},Ca.prototype._logoRequired=function(){if(this._map.style){var e=this._map.style.sourceCaches;for(var t in e)if(e[t].getSource().mapbox_logo)return!0;return!1}},Ca.prototype._updateCompact=function(){var e=this._container.children;if(e.length){var t=e[0];this._map.getCanvasContainer().offsetWidth<250?t.classList.add("mapboxgl-compact"):t.classList.remove("mapboxgl-compact")}};var Ea=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Ea.prototype.add=function(e){var t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t},Ea.prototype.remove=function(e){for(var t=this._currentlyRunning,n=0,r=t?this._queue.concat(t):this._queue;n<r.length;n+=1){var a=r[n];if(a.id===e)return void(a.cancelled=!0)}},Ea.prototype.run=function(e){void 0===e&&(e=0);var t=this._currentlyRunning=this._queue;this._queue=[];for(var n=0,r=t;n<r.length;n+=1){var a=r[n];if(!a.cancelled&&(a.callback(e),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},Ea.prototype.clear=function(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]};var qa={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm"},Da=e.window.HTMLImageElement,Ra=e.window.HTMLElement,La=e.window.ImageBitmap,Ia=60,Wa={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:Ia,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Na=function(r){function a(t){var n=this;if(null!=(t=e.extend({},Wa,t)).minZoom&&null!=t.maxZoom&&t.minZoom>t.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=t.minPitch&&null!=t.maxPitch&&t.minPitch>t.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=t.minPitch&&t.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=t.maxPitch&&t.maxPitch>Ia)throw new Error("maxPitch must be less than or equal to 60");var a=new Er(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies);if(r.call(this,a,t),this._interactive=t.interactive,this._maxTileCacheSize=t.maxTileCacheSize,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._crossSourceCollisions=t.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=t.collectResourceTiming,this._renderTaskQueue=new Ea,this._controls=[],this._mapId=e.uniqueId(),this._locale=e.extend({},qa,t.locale),this._clickTolerance=t.clickTolerance,this._requestManager=new e.RequestManager(t.transformRequest,t.accessToken),"string"==typeof t.container){if(this._container=e.window.document.getElementById(t.container),!this._container)throw new Error("Container '"+t.container+"' not found.")}else{if(!(t.container instanceof Ra))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(t.maxBounds&&this.setMaxBounds(t.maxBounds),e.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return n._update(!1)}),this.on("moveend",function(){return n._update(!1)}),this.on("zoom",function(){return n._update(!0)}),typeof e.window<"u"&&(e.window.addEventListener("online",this._onWindowOnline,!1),e.window.addEventListener("resize",this._onWindowResize,!1),e.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new ka(this,t);var i="string"==typeof t.hash&&t.hash||void 0;this._hash=t.hash&&new Dr(i).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,e.extend({},t.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=t.localIdeographFontFamily,t.style&&this.setStyle(t.style,{localIdeographFontFamily:t.localIdeographFontFamily}),t.attributionControl&&this.addControl(new Sa({customAttribution:t.customAttribution})),this.addControl(new Ca,t.logoPosition),this.on("style.load",function(){n.transform.unmodified&&n.jumpTo(n.style.stylesheet)}),this.on("data",function(t){n._update("style"===t.dataType),n.fire(new e.Event(t.dataType+"data",t))}),this.on("dataloading",function(t){n.fire(new e.Event(t.dataType+"dataloading",t))})}r&&(a.__proto__=r),a.prototype=Object.create(r&&r.prototype),a.prototype.constructor=a;var i={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return a.prototype._getMapId=function(){return this._mapId},a.prototype.addControl=function(t,n){if(void 0===n&&(n=t.getDefaultPosition?t.getDefaultPosition():"top-right"),!t||!t.onAdd)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var r=t.onAdd(this);this._controls.push(t);var a=this._controlPositions[n];return-1!==n.indexOf("bottom")?a.insertBefore(r,a.firstChild):a.appendChild(r),this},a.prototype.removeControl=function(t){if(!t||!t.onRemove)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var n=this._controls.indexOf(t);return n>-1&&this._controls.splice(n,1),t.onRemove(this),this},a.prototype.hasControl=function(e){return this._controls.indexOf(e)>-1},a.prototype.resize=function(t){var n=this._containerDimensions(),r=n[0],a=n[1];this._resizeCanvas(r,a),this.transform.resize(r,a),this.painter.resize(r,a);var i=!this._moving;return i&&(this.stop(),this.fire(new e.Event("movestart",t)).fire(new e.Event("move",t))),this.fire(new e.Event("resize",t)),i&&this.fire(new e.Event("moveend",t)),this},a.prototype.getBounds=function(){return this.transform.getBounds()},a.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},a.prototype.setMaxBounds=function(t){return this.transform.setMaxBounds(e.LngLatBounds.convert(t)),this._update()},a.prototype.setMinZoom=function(e){if((e=e??-2)>=-2&&e<=this.transform.maxZoom)return this.transform.minZoom=e,this._update(),this.getZoom()<e&&this.setZoom(e),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")},a.prototype.getMinZoom=function(){return this.transform.minZoom},a.prototype.setMaxZoom=function(e){if((e=e??22)>=this.transform.minZoom)return this.transform.maxZoom=e,this._update(),this.getZoom()>e&&this.setZoom(e),this;throw new Error("maxZoom must be greater than the current minZoom")},a.prototype.getMaxZoom=function(){return this.transform.maxZoom},a.prototype.setMinPitch=function(e){if((e=e??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(e>=0&&e<=this.transform.maxPitch)return this.transform.minPitch=e,this._update(),this.getPitch()<e&&this.setPitch(e),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")},a.prototype.getMinPitch=function(){return this.transform.minPitch},a.prototype.setMaxPitch=function(e){if((e=e??Ia)>Ia)throw new Error("maxPitch must be less than or equal to 60");if(e>=this.transform.minPitch)return this.transform.maxPitch=e,this._update(),this.getPitch()>e&&this.setPitch(e),this;throw new Error("maxPitch must be greater than the current minPitch")},a.prototype.getMaxPitch=function(){return this.transform.maxPitch},a.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},a.prototype.setRenderWorldCopies=function(e){return this.transform.renderWorldCopies=e,this._update()},a.prototype.project=function(t){return this.transform.locationPoint(e.LngLat.convert(t))},a.prototype.unproject=function(t){return this.transform.pointLocation(e.Point.convert(t))},a.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},a.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},a.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},a.prototype._createDelegatedListener=function(e,t,n){var r,a=this;if("mouseenter"===e||"mouseover"===e){var i=!1;return{layer:t,listener:n,delegates:{mousemove:function(r){var o=a.getLayer(t)?a.queryRenderedFeatures(r.point,{layers:[t]}):[];o.length?i||(i=!0,n.call(a,new jr(e,a,r.originalEvent,{features:o}))):i=!1},mouseout:function(){i=!1}}}}if("mouseleave"===e||"mouseout"===e){var o=!1;return{layer:t,listener:n,delegates:{mousemove:function(r){(a.getLayer(t)?a.queryRenderedFeatures(r.point,{layers:[t]}):[]).length?o=!0:o&&(o=!1,n.call(a,new jr(e,a,r.originalEvent)))},mouseout:function(t){o&&(o=!1,n.call(a,new jr(e,a,t.originalEvent)))}}}}return{layer:t,listener:n,delegates:(r={},r[e]=function(e){var r=a.getLayer(t)?a.queryRenderedFeatures(e.point,{layers:[t]}):[];r.length&&(e.features=r,n.call(a,e),delete e.features)},r)}},a.prototype.on=function(e,t,n){if(void 0===n)return r.prototype.on.call(this,e,t);var a=this._createDelegatedListener(e,t,n);for(var i in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(a),a.delegates)this.on(i,a.delegates[i]);return this},a.prototype.once=function(e,t,n){if(void 0===n)return r.prototype.once.call(this,e,t);var a=this._createDelegatedListener(e,t,n);for(var i in a.delegates)this.once(i,a.delegates[i]);return this},a.prototype.off=function(e,t,n){var a=this;return void 0===n?r.prototype.off.call(this,e,t):(this._delegatedListeners&&this._delegatedListeners[e]&&function(r){for(var i=r[e],o=0;o<i.length;o++){var s=i[o];if(s.layer===t&&s.listener===n){for(var l in s.delegates)a.off(l,s.delegates[l]);return i.splice(o,1),a}}}(this._delegatedListeners),this)},a.prototype.queryRenderedFeatures=function(t,n){if(!this.style)return[];var r;if(void 0===n&&void 0!==t&&!(t instanceof e.Point)&&!Array.isArray(t)&&(n=t,t=void 0),n=n||{},(t=t||[[0,0],[this.transform.width,this.transform.height]])instanceof e.Point||"number"==typeof t[0])r=[e.Point.convert(t)];else{var a=e.Point.convert(t[0]),i=e.Point.convert(t[1]);r=[a,new e.Point(i.x,a.y),i,new e.Point(a.x,i.y),a]}return this.style.queryRenderedFeatures(r,n,this.transform)},a.prototype.querySourceFeatures=function(e,t){return this.style.querySourceFeatures(e,t)},a.prototype.setStyle=function(t,n){return!1!==(n=e.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},n)).diff&&n.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&t?(this._diffStyle(t,n),this):(this._localIdeographFontFamily=n.localIdeographFontFamily,this._updateStyle(t,n))},a.prototype._getUIString=function(e){var t=this._locale[e];if(null==t)throw new Error("Missing UI string '"+e+"'");return t},a.prototype._updateStyle=function(e,t){return this.style&&(this.style.setEventedParent(null),this.style._remove()),e?(this.style=new Gt(this,t||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof e?this.style.loadURL(e):this.style.loadJSON(e),this):(delete this.style,this)},a.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new Gt(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},a.prototype._diffStyle=function(t,n){var r=this;if("string"==typeof t){var a=this._requestManager.normalizeStyleURL(t),i=this._requestManager.transformRequest(a,e.ResourceType.Style);e.getJSON(i,function(t,a){t?r.fire(new e.ErrorEvent(t)):a&&r._updateDiff(a,n)})}else"object"==typeof t&&this._updateDiff(t,n)},a.prototype._updateDiff=function(t,n){try{this.style.setState(t)&&this._update(!0)}catch(r){e.warnOnce("Unable to perform style diff: "+(r.message||r.error||r)+". Rebuilding the style from scratch."),this._updateStyle(t,n)}},a.prototype.getStyle=function(){if(this.style)return this.style.serialize()},a.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():e.warnOnce("There is no style added to the map.")},a.prototype.addSource=function(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)},a.prototype.isSourceLoaded=function(t){var n=this.style&&this.style.sourceCaches[t];if(void 0!==n)return n.loaded();this.fire(new e.ErrorEvent(new Error("There is no source with ID '"+t+"'")))},a.prototype.areTilesLoaded=function(){var e=this.style&&this.style.sourceCaches;for(var t in e){var n=e[t]._tiles;for(var r in n){var a=n[r];if("loaded"!==a.state&&"errored"!==a.state)return!1}}return!0},a.prototype.addSourceType=function(e,t,n){return this._lazyInitEmptyStyle(),this.style.addSourceType(e,t,n)},a.prototype.removeSource=function(e){return this.style.removeSource(e),this._update(!0)},a.prototype.getSource=function(e){return this.style.getSource(e)},a.prototype.addImage=function(t,n,r){void 0===r&&(r={});var a=r.pixelRatio;void 0===a&&(a=1);var i=r.sdf;void 0===i&&(i=!1);var o=r.stretchX,s=r.stretchY,l=r.content;if(this._lazyInitEmptyStyle(),n instanceof Da||La&&n instanceof La){var c=e.browser.getImageData(n),u=c.width,d=c.height,p=c.data;this.style.addImage(t,{data:new e.RGBAImage({width:u,height:d},p),pixelRatio:a,stretchX:o,stretchY:s,content:l,sdf:i,version:0})}else{if(void 0===n.width||void 0===n.height)return this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));var h=n.width,f=n.height,m=n.data,g=n;this.style.addImage(t,{data:new e.RGBAImage({width:h,height:f},new Uint8Array(m)),pixelRatio:a,stretchX:o,stretchY:s,content:l,sdf:i,version:0,userImage:g}),g.onAdd&&g.onAdd(this,t)}},a.prototype.updateImage=function(t,n){var r=this.style.getImage(t);if(!r)return this.fire(new e.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));var a=n instanceof Da||La&&n instanceof La?e.browser.getImageData(n):n,i=a.width,o=a.height,s=a.data;if(void 0===i||void 0===o)return this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(i!==r.data.width||o!==r.data.height)return this.fire(new e.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image")));var l=!(n instanceof Da||La&&n instanceof La);r.data.replace(s,l),this.style.updateImage(t,r)},a.prototype.hasImage=function(t){return t?!!this.style.getImage(t):(this.fire(new e.ErrorEvent(new Error("Missing required image id"))),!1)},a.prototype.removeImage=function(e){this.style.removeImage(e)},a.prototype.loadImage=function(t,n){e.getImage(this._requestManager.transformRequest(t,e.ResourceType.Image),n)},a.prototype.listImages=function(){return this.style.listImages()},a.prototype.addLayer=function(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)},a.prototype.moveLayer=function(e,t){return this.style.moveLayer(e,t),this._update(!0)},a.prototype.removeLayer=function(e){return this.style.removeLayer(e),this._update(!0)},a.prototype.getLayer=function(e){return this.style.getLayer(e)},a.prototype.setLayerZoomRange=function(e,t,n){return this.style.setLayerZoomRange(e,t,n),this._update(!0)},a.prototype.setFilter=function(e,t,n){return void 0===n&&(n={}),this.style.setFilter(e,t,n),this._update(!0)},a.prototype.getFilter=function(e){return this.style.getFilter(e)},a.prototype.setPaintProperty=function(e,t,n,r){return void 0===r&&(r={}),this.style.setPaintProperty(e,t,n,r),this._update(!0)},a.prototype.getPaintProperty=function(e,t){return this.style.getPaintProperty(e,t)},a.prototype.setLayoutProperty=function(e,t,n,r){return void 0===r&&(r={}),this.style.setLayoutProperty(e,t,n,r),this._update(!0)},a.prototype.getLayoutProperty=function(e,t){return this.style.getLayoutProperty(e,t)},a.prototype.setLight=function(e,t){return void 0===t&&(t={}),this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)},a.prototype.getLight=function(){return this.style.getLight()},a.prototype.setFeatureState=function(e,t){return this.style.setFeatureState(e,t),this._update()},a.prototype.removeFeatureState=function(e,t){return this.style.removeFeatureState(e,t),this._update()},a.prototype.getFeatureState=function(e){return this.style.getFeatureState(e)},a.prototype.getContainer=function(){return this._container},a.prototype.getCanvasContainer=function(){return this._canvasContainer},a.prototype.getCanvas=function(){return this._canvas},a.prototype._containerDimensions=function(){var e=0,t=0;return this._container&&(e=this._container.clientWidth||400,t=this._container.clientHeight||300),[e,t]},a.prototype._detectMissingCSS=function(){"rgb(250, 128, 114)"!==e.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&e.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")},a.prototype._setupContainer=function(){var e=this._container;e.classList.add("mapboxgl-map"),(this._missingCSSCanary=n.create("div","mapboxgl-canary",e)).style.visibility="hidden",this._detectMissingCSS();var t=this._canvasContainer=n.create("div","mapboxgl-canvas-container",e);this._interactive&&t.classList.add("mapboxgl-interactive"),this._canvas=n.create("canvas","mapboxgl-canvas",t),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","region");var r=this._containerDimensions();this._resizeCanvas(r[0],r[1]);var a=this._controlContainer=n.create("div","mapboxgl-control-container",e),i=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(function(e){i[e]=n.create("div","mapboxgl-ctrl-"+e,a)}),this._container.addEventListener("scroll",this._onMapScroll,!1)},a.prototype._resizeCanvas=function(t,n){var r=e.browser.devicePixelRatio||1;this._canvas.width=r*t,this._canvas.height=r*n,this._canvas.style.width=t+"px",this._canvas.style.height=n+"px"},a.prototype._setupPainter=function(){var n=e.extend({},t.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),r=this._canvas.getContext("webgl",n)||this._canvas.getContext("experimental-webgl",n);r?(this.painter=new kr(r,this.transform),e.webpSupported.testSupport(r)):this.fire(new e.ErrorEvent(new Error("Failed to initialize WebGL")))},a.prototype._contextLost=function(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new e.Event("webglcontextlost",{originalEvent:t}))},a.prototype._contextRestored=function(t){this._setupPainter(),this.resize(),this._update(),this.fire(new e.Event("webglcontextrestored",{originalEvent:t}))},a.prototype._onMapScroll=function(e){if(e.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},a.prototype.loaded=function(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()},a.prototype._update=function(e){return this.style?(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint(),this):this},a.prototype._requestRenderFrame=function(e){return this._update(),this._renderTaskQueue.add(e)},a.prototype._cancelRenderFrame=function(e){this._renderTaskQueue.remove(e)},a.prototype._render=function(t){var n,r=this,a=0,i=this.painter.context.extTimerQuery;if(this.listens("gpu-timing-frame")&&(n=i.createQueryEXT(),i.beginQueryEXT(i.TIME_ELAPSED_EXT,n),a=e.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(t),!this._removed){var o=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;var s=this.transform.zoom,l=e.browser.now();this.style.zoomHistory.update(s,l);var c=new e.EvaluationParameters(s,{now:l,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),u=c.crossFadingFactor();(1!==u||u!==this._crossFadingFactor)&&(o=!0,this._crossFadingFactor=u),this.style.update(c)}if(this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer")}),this.fire(new e.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new e.Event("load"))),this.style&&(this.style.hasTransitions()||o)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){var d=e.browser.now()-a;i.endQueryEXT(i.TIME_ELAPSED_EXT,n),setTimeout(function(){var t=i.getQueryObjectEXT(n,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(n),r.fire(new e.Event("gpu-timing-frame",{cpuTime:d,gpuTime:t}))},50)}if(this.listens("gpu-timing-layer")){var p=this.painter.collectGpuTimers();setTimeout(function(){var t=r.painter.queryGpuTimers(p);r.fire(new e.Event("gpu-timing-layer",{layerTimes:t}))},50)}var h=this._sourcesDirty||this._styleDirty||this._placementDirty;return h||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new e.Event("idle")),this._loaded&&!this._fullyLoaded&&!h&&(this._fullyLoaded=!0),this}},a.prototype.remove=function(){this._hash&&this._hash.remove();for(var t=0,n=this._controls;t<n.length;t+=1)n[t].onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof e.window<"u"&&(e.window.removeEventListener("resize",this._onWindowResize,!1),e.window.removeEventListener("orientationchange",this._onWindowResize,!1),e.window.removeEventListener("online",this._onWindowOnline,!1));var r=this.painter.context.gl.getExtension("WEBGL_lose_context");r&&r.loseContext&&r.loseContext(),Pa(this._canvasContainer),Pa(this._controlContainer),Pa(this._missingCSSCanary),this._container.classList.remove("mapboxgl-map"),this._removed=!0,this.fire(new e.Event("remove"))},a.prototype.triggerRepaint=function(){var t=this;this.style&&!this._frame&&(this._frame=e.browser.frame(function(e){t._frame=null,t._render(e)}))},a.prototype._onWindowOnline=function(){this._update()},a.prototype._onWindowResize=function(e){this._trackResize&&this.resize({originalEvent:e})._update()},i.showTileBoundaries.get=function(){return!!this._showTileBoundaries},i.showTileBoundaries.set=function(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())},i.showPadding.get=function(){return!!this._showPadding},i.showPadding.set=function(e){this._showPadding!==e&&(this._showPadding=e,this._update())},i.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},i.showCollisionBoxes.set=function(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())},i.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},i.showOverdrawInspector.set=function(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())},i.repaint.get=function(){return!!this._repaint},i.repaint.set=function(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())},i.vertices.get=function(){return!!this._vertices},i.vertices.set=function(e){this._vertices=e,this._update()},a.prototype._setCacheLimits=function(t,n){e.setCacheLimits(t,n)},i.version.get=function(){return e.version},Object.defineProperties(a.prototype,i),a}(Ta);function Pa(e){e.parentNode&&e.parentNode.removeChild(e)}var Ba={showCompass:!0,showZoom:!0,visualizePitch:!1},Fa=function(t){var r=this;this.options=e.extend({},Ba,t),this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",function(e){return e.preventDefault()}),this.options.showZoom&&(e.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",function(e){return r._map.zoomIn({},{originalEvent:e})}),n.create("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden",!0),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",function(e){return r._map.zoomOut({},{originalEvent:e})}),n.create("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden",!0)),this.options.showCompass&&(e.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",function(e){r.options.visualizePitch?r._map.resetNorthPitch({},{originalEvent:e}):r._map.resetNorth({},{originalEvent:e})}),this._compassIcon=n.create("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden",!0))};Fa.prototype._updateZoomButtons=function(){var e=this._map.getZoom(),t=e===this._map.getMaxZoom(),n=e===this._map.getMinZoom();this._zoomInButton.disabled=t,this._zoomOutButton.disabled=n,this._zoomInButton.setAttribute("aria-disabled",t.toString()),this._zoomOutButton.setAttribute("aria-disabled",n.toString())},Fa.prototype._rotateCompassArrow=function(){var e=this.options.visualizePitch?"scale("+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+") rotateX("+this._map.transform.pitch+"deg) rotateZ("+this._map.transform.angle*(180/Math.PI)+"deg)":"rotate("+this._map.transform.angle*(180/Math.PI)+"deg)";this._compassIcon.style.transform=e},Fa.prototype.onAdd=function(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new ja(this._map,this._compass,this.options.visualizePitch)),this._container},Fa.prototype.onRemove=function(){n.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map},Fa.prototype._createButton=function(e,t){var r=n.create("button",e,this._container);return r.type="button",r.addEventListener("click",t),r},Fa.prototype._setButtonTitle=function(e,t){var n=this._map._getUIString("NavigationControl."+t);e.title=n,e.setAttribute("aria-label",n)};var ja=function(t,r,a){void 0===a&&(a=!1),this._clickTolerance=10,this.element=r,this.mouseRotate=new ta({clickTolerance:t.dragRotate._mouseRotate._clickTolerance}),this.map=t,a&&(this.mousePitch=new na({clickTolerance:t.dragRotate._mousePitch._clickTolerance})),e.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),n.addEventListener(r,"mousedown",this.mousedown),n.addEventListener(r,"touchstart",this.touchstart,{passive:!1}),n.addEventListener(r,"touchmove",this.touchmove),n.addEventListener(r,"touchend",this.touchend),n.addEventListener(r,"touchcancel",this.reset)};function Ua(t,n,r){if(t=new e.LngLat(t.lng,t.lat),n){var a=new e.LngLat(t.lng-360,t.lat),i=new e.LngLat(t.lng+360,t.lat),o=r.locationPoint(t).distSqr(n);r.locationPoint(a).distSqr(n)<o?t=a:r.locationPoint(i).distSqr(n)<o&&(t=i)}for(;Math.abs(t.lng-r.center.lng)>180;){var s=r.locationPoint(t);if(s.x>=0&&s.y>=0&&s.x<=r.width&&s.y<=r.height)break;t.lng>r.center.lng?t.lng-=360:t.lng+=360}return t}ja.prototype.down=function(e,t){this.mouseRotate.mousedown(e,t),this.mousePitch&&this.mousePitch.mousedown(e,t),n.disableDrag()},ja.prototype.move=function(e,t){var n=this.map,r=this.mouseRotate.mousemoveWindow(e,t);if(r&&r.bearingDelta&&n.setBearing(n.getBearing()+r.bearingDelta),this.mousePitch){var a=this.mousePitch.mousemoveWindow(e,t);a&&a.pitchDelta&&n.setPitch(n.getPitch()+a.pitchDelta)}},ja.prototype.off=function(){var e=this.element;n.removeEventListener(e,"mousedown",this.mousedown),n.removeEventListener(e,"touchstart",this.touchstart,{passive:!1}),n.removeEventListener(e,"touchmove",this.touchmove),n.removeEventListener(e,"touchend",this.touchend),n.removeEventListener(e,"touchcancel",this.reset),this.offTemp()},ja.prototype.offTemp=function(){n.enableDrag(),n.removeEventListener(e.window,"mousemove",this.mousemove),n.removeEventListener(e.window,"mouseup",this.mouseup)},ja.prototype.mousedown=function(t){this.down(e.extend({},t,{ctrlKey:!0,preventDefault:function(){return t.preventDefault()}}),n.mousePos(this.element,t)),n.addEventListener(e.window,"mousemove",this.mousemove),n.addEventListener(e.window,"mouseup",this.mouseup)},ja.prototype.mousemove=function(e){this.move(e,n.mousePos(this.element,e))},ja.prototype.mouseup=function(e){this.mouseRotate.mouseupWindow(e),this.mousePitch&&this.mousePitch.mouseupWindow(e),this.offTemp()},ja.prototype.touchstart=function(e){1!==e.targetTouches.length?this.reset():(this._startPos=this._lastPos=n.touchPos(this.element,e.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return e.preventDefault()}},this._startPos))},ja.prototype.touchmove=function(e){1!==e.targetTouches.length?this.reset():(this._lastPos=n.touchPos(this.element,e.targetTouches)[0],this.move({preventDefault:function(){return e.preventDefault()}},this._lastPos))},ja.prototype.touchend=function(e){0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()},ja.prototype.reset=function(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()};var Va={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Ha(e,t,n){var r=e.classList;for(var a in Va)r.remove("mapboxgl-"+n+"-anchor-"+a);r.add("mapboxgl-"+n+"-anchor-"+t)}var Xa,Ga=function(t){function r(r,a){if(t.call(this),(r instanceof e.window.HTMLElement||a)&&(r=e.extend({element:r},a)),e.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=r&&r.anchor||"center",this._color=r&&r.color||"#3FB1CE",this._scale=r&&r.scale||1,this._draggable=r&&r.draggable||!1,this._clickTolerance=r&&r.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=r&&r.rotation||0,this._rotationAlignment=r&&r.rotationAlignment||"auto",this._pitchAlignment=r&&r.pitchAlignment&&"auto"!==r.pitchAlignment?r.pitchAlignment:this._rotationAlignment,r&&r.element)this._element=r.element,this._offset=e.Point.convert(r&&r.offset||[0,0]);else{this._defaultMarker=!0,this._element=n.create("div"),this._element.setAttribute("aria-label","Map marker");var i=n.createNS("http://www.w3.org/2000/svg","svg");i.setAttributeNS(null,"display","block"),i.setAttributeNS(null,"height","41px"),i.setAttributeNS(null,"width","27px"),i.setAttributeNS(null,"viewBox","0 0 27 41");var o=n.createNS("http://www.w3.org/2000/svg","g");o.setAttributeNS(null,"stroke","none"),o.setAttributeNS(null,"stroke-width","1"),o.setAttributeNS(null,"fill","none"),o.setAttributeNS(null,"fill-rule","evenodd");var s=n.createNS("http://www.w3.org/2000/svg","g");s.setAttributeNS(null,"fill-rule","nonzero");var l=n.createNS("http://www.w3.org/2000/svg","g");l.setAttributeNS(null,"transform","translate(3.0, 29.0)"),l.setAttributeNS(null,"fill","#000000");for(var c=0,u=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];c<u.length;c+=1){var d=u[c],p=n.createNS("http://www.w3.org/2000/svg","ellipse");p.setAttributeNS(null,"opacity","0.04"),p.setAttributeNS(null,"cx","10.5"),p.setAttributeNS(null,"cy","5.80029008"),p.setAttributeNS(null,"rx",d.rx),p.setAttributeNS(null,"ry",d.ry),l.appendChild(p)}var h=n.createNS("http://www.w3.org/2000/svg","g");h.setAttributeNS(null,"fill",this._color);var f=n.createNS("http://www.w3.org/2000/svg","path");f.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),h.appendChild(f);var m=n.createNS("http://www.w3.org/2000/svg","g");m.setAttributeNS(null,"opacity","0.25"),m.setAttributeNS(null,"fill","#000000");var g=n.createNS("http://www.w3.org/2000/svg","path");g.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),m.appendChild(g);var y=n.createNS("http://www.w3.org/2000/svg","g");y.setAttributeNS(null,"transform","translate(6.0, 7.0)"),y.setAttributeNS(null,"fill","#FFFFFF");var b=n.createNS("http://www.w3.org/2000/svg","g");b.setAttributeNS(null,"transform","translate(8.0, 8.0)");var v=n.createNS("http://www.w3.org/2000/svg","circle");v.setAttributeNS(null,"fill","#000000"),v.setAttributeNS(null,"opacity","0.25"),v.setAttributeNS(null,"cx","5.5"),v.setAttributeNS(null,"cy","5.5"),v.setAttributeNS(null,"r","5.4999962");var M=n.createNS("http://www.w3.org/2000/svg","circle");M.setAttributeNS(null,"fill","#FFFFFF"),M.setAttributeNS(null,"cx","5.5"),M.setAttributeNS(null,"cy","5.5"),M.setAttributeNS(null,"r","5.4999962"),b.appendChild(v),b.appendChild(M),s.appendChild(l),s.appendChild(h),s.appendChild(m),s.appendChild(y),s.appendChild(b),i.appendChild(s),i.setAttributeNS(null,"height",41*this._scale+"px"),i.setAttributeNS(null,"width",27*this._scale+"px"),this._element.appendChild(i),this._offset=e.Point.convert(r&&r.offset||[0,-14])}this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",function(e){e.preventDefault()}),this._element.addEventListener("mousedown",function(e){e.preventDefault()}),Ha(this._element,this._anchor,"marker"),this._popup=null}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.addTo=function(e){return this.remove(),this._map=e,e.getCanvasContainer().appendChild(this._element),e.on("move",this._update),e.on("moveend",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this},r.prototype.remove=function(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),n.remove(this._element),this._popup&&this._popup.remove(),this},r.prototype.getLngLat=function(){return this._lngLat},r.prototype.setLngLat=function(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this},r.prototype.getElement=function(){return this._element},r.prototype.setPopup=function(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),e){if(!("offset"in e.options)){var t=38.1,n=13.5,r=Math.sqrt(Math.pow(n,2)/2);e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-t],"bottom-left":[r,-1*(24.6+r)],"bottom-right":[-r,-1*(24.6+r)],left:[n,-24.6],right:[-n,-24.6]}:this._offset}this._popup=e,this._lngLat&&this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this},r.prototype._onKeyPress=function(e){var t=e.code,n=e.charCode||e.keyCode;("Space"===t||"Enter"===t||32===n||13===n)&&this.togglePopup()},r.prototype._onMapClick=function(e){var t=e.originalEvent.target,n=this._element;this._popup&&(t===n||n.contains(t))&&this.togglePopup()},r.prototype.getPopup=function(){return this._popup},r.prototype.togglePopup=function(){var e=this._popup;return e?(e.isOpen()?e.remove():e.addTo(this._map),this):this},r.prototype._update=function(e){if(this._map){this._map.transform.renderWorldCopies&&(this._lngLat=Ua(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);var t="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?t="rotateZ("+this._rotation+"deg)":"map"===this._rotationAlignment&&(t="rotateZ("+(this._rotation-this._map.getBearing())+"deg)");var r="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?r="rotateX(0deg)":"map"===this._pitchAlignment&&(r="rotateX("+this._map.getPitch()+"deg)"),(!e||"moveend"===e.type)&&(this._pos=this._pos.round()),n.setTransform(this._element,Va[this._anchor]+" translate("+this._pos.x+"px, "+this._pos.y+"px) "+r+" "+t)}},r.prototype.getOffset=function(){return this._offset},r.prototype.setOffset=function(t){return this._offset=e.Point.convert(t),this._update(),this},r.prototype._onMove=function(t){if(!this._isDragging){var n=this._clickTolerance||this._map._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=n}this._isDragging&&(this._pos=t.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new e.Event("dragstart"))),this.fire(new e.Event("drag")))},r.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new e.Event("dragend")),this._state="inactive"},r.prototype._addDragHandler=function(e){this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(this._pos).add(this._offset),this._pointerdownPos=e.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},r.prototype.setDraggable=function(e){return this._draggable=!!e,this._map&&(e?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},r.prototype.isDraggable=function(){return this._draggable},r.prototype.setRotation=function(e){return this._rotation=e||0,this._update(),this},r.prototype.getRotation=function(){return this._rotation},r.prototype.setRotationAlignment=function(e){return this._rotationAlignment=e||"auto",this._update(),this},r.prototype.getRotationAlignment=function(){return this._rotationAlignment},r.prototype.setPitchAlignment=function(e){return this._pitchAlignment=e&&"auto"!==e?e:this._rotationAlignment,this._update(),this},r.prototype.getPitchAlignment=function(){return this._pitchAlignment},r}(e.Evented),Ya={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Za=0,$a=!1,Ja=function(t){function r(n){t.call(this),this.options=e.extend({},Ya,n),e.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.onAdd=function(t){return this._map=t,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),function(t){void 0!==Xa?t(Xa):void 0!==e.window.navigator.permissions?e.window.navigator.permissions.query({name:"geolocation"}).then(function(e){Xa="denied"!==e.state,t(Xa)}):(Xa=!!e.window.navigator.geolocation,t(Xa))}(this._setupUI),this._container},r.prototype.onRemove=function(){void 0!==this._geolocationWatchID&&(e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),n.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Za=0,$a=!1},r.prototype._isOutOfMapMaxBounds=function(e){var t=this._map.getMaxBounds(),n=e.coords;return t&&(n.longitude<t.getWest()||n.longitude>t.getEast()||n.latitude<t.getSouth()||n.latitude>t.getNorth())},r.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},r.prototype._onSuccess=function(t){if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.Event("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),(!this.options.trackUserLocation||"ACTIVE_LOCK"===this._watchState)&&this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("geolocate",t)),this._finish()}},r.prototype._updateCamera=function(t){var n=new e.LngLat(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy,a=this._map.getBearing(),i=e.extend({bearing:a},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(r),i,{geolocateSource:!0})},r.prototype._updateMarker=function(t){if(t){var n=new e.LngLat(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},r.prototype._updateCircleRadius=function(){var e=this._map._container.clientHeight/2,t=this._map.unproject([0,e]),n=this._map.unproject([1,e]),r=t.distanceTo(n),a=Math.ceil(2*this._accuracy/r);this._circleElement.style.width=a+"px",this._circleElement.style.height=a+"px"},r.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},r.prototype._onError=function(t){if(this._map){if(this.options.trackUserLocation)if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var n=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=n,this._geolocateButton.setAttribute("aria-label",n),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&$a)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("error",t)),this._finish()}},r.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},r.prototype._setupUI=function(t){var r=this;if(this._container.addEventListener("contextmenu",function(e){return e.preventDefault()}),this._geolocateButton=n.create("button","mapboxgl-ctrl-geolocate",this._container),n.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",!1===t){e.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var a=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=a,this._geolocateButton.setAttribute("aria-label",a)}else{var i=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=i,this._geolocateButton.setAttribute("aria-label",i)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=n.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Ga(this._dotElement),this._circleElement=n.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Ga({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(t){var n=t.originalEvent&&"resize"===t.originalEvent.type;!t.geolocateSource&&"ACTIVE_LOCK"===r._watchState&&!n&&(r._watchState="BACKGROUND",r._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),r._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),r.fire(new e.Event("trackuserlocationend")))})},r.prototype.trigger=function(){if(!this._setup)return e.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new e.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Za--,$a=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new e.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var t;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Za>1?(t={maximumAge:6e5,timeout:0},$a=!0):(t=this.options.positionOptions,$a=!1),this._geolocationWatchID=e.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,t)}}else e.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},r.prototype._clearWatch=function(){e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},r}(e.Evented),Qa={maxWidth:100,unit:"metric"},Ka=function(t){this.options=e.extend({},Qa,t),e.bindAll(["_onMove","setUnit"],this)};function ei(e,t,n){var r=n&&n.maxWidth||100,a=e._container.clientHeight/2,i=e.unproject([0,a]),o=e.unproject([r,a]),s=i.distanceTo(o);if(n&&"imperial"===n.unit){var l=3.2808*s;l>5280?ti(t,r,l/5280,e._getUIString("ScaleControl.Miles")):ti(t,r,l,e._getUIString("ScaleControl.Feet"))}else n&&"nautical"===n.unit?ti(t,r,s/1852,e._getUIString("ScaleControl.NauticalMiles")):s>=1e3?ti(t,r,s/1e3,e._getUIString("ScaleControl.Kilometers")):ti(t,r,s,e._getUIString("ScaleControl.Meters"))}function ti(e,t,n,r){var a=function(e){var t=Math.pow(10,(""+Math.floor(e)).length-1),n=e/t;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:n>=1?1:function(e){var t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(n),t*n}(n),i=a/n;e.style.width=t*i+"px",e.innerHTML=a+"&nbsp;"+r}Ka.prototype.getDefaultPosition=function(){return"bottom-left"},Ka.prototype._onMove=function(){ei(this._map,this._container,this.options)},Ka.prototype.onAdd=function(e){return this._map=e,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Ka.prototype.onRemove=function(){n.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Ka.prototype.setUnit=function(e){this.options.unit=e,ei(this._map,this._container,this.options)};var ni=function(t){this._fullscreen=!1,t&&t.container&&(t.container instanceof e.window.HTMLElement?this._container=t.container:e.warnOnce("Full screen control 'container' must be a DOM element.")),e.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in e.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in e.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in e.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in e.window.document&&(this._fullscreenchange="MSFullscreenChange")};ni.prototype.onAdd=function(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},ni.prototype.onRemove=function(){n.remove(this._controlContainer),this._map=null,e.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},ni.prototype._checkFullscreenSupport=function(){return!!(e.window.document.fullscreenEnabled||e.window.document.mozFullScreenEnabled||e.window.document.msFullscreenEnabled||e.window.document.webkitFullscreenEnabled)},ni.prototype._setupUI=function(){var t=this._fullscreenButton=n.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);n.create("span","mapboxgl-ctrl-icon",t).setAttribute("aria-hidden",!0),t.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),e.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},ni.prototype._updateTitle=function(){var e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e},ni.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},ni.prototype._isFullscreen=function(){return this._fullscreen},ni.prototype._changeIcon=function(){(e.window.document.fullscreenElement||e.window.document.mozFullScreenElement||e.window.document.webkitFullscreenElement||e.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},ni.prototype._onClickFullscreen=function(){this._isFullscreen()?e.window.document.exitFullscreen?e.window.document.exitFullscreen():e.window.document.mozCancelFullScreen?e.window.document.mozCancelFullScreen():e.window.document.msExitFullscreen?e.window.document.msExitFullscreen():e.window.document.webkitCancelFullScreen&&e.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var ri={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},ai=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),ii=function(t){function r(n){t.call(this),this.options=e.extend(Object.create(ri),n),e.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.addTo=function(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new e.Event("open")),this},r.prototype.isOpen=function(){return!!this._map},r.prototype.remove=function(){return this._content&&n.remove(this._content),this._container&&(n.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new e.Event("close")),this},r.prototype.getLngLat=function(){return this._lngLat},r.prototype.setLngLat=function(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},r.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},r.prototype.getElement=function(){return this._container},r.prototype.setText=function(t){return this.setDOMContent(e.window.document.createTextNode(t))},r.prototype.setHTML=function(t){var n,r=e.window.document.createDocumentFragment(),a=e.window.document.createElement("body");for(a.innerHTML=t;n=a.firstChild;)r.appendChild(n);return this.setDOMContent(r)},r.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},r.prototype.setMaxWidth=function(e){return this.options.maxWidth=e,this._update(),this},r.prototype.setDOMContent=function(e){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=n.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(e),this._createCloseButton(),this._update(),this._focusFirstElement(),this},r.prototype.addClassName=function(e){this._container&&this._container.classList.add(e)},r.prototype.removeClassName=function(e){this._container&&this._container.classList.remove(e)},r.prototype.setOffset=function(e){return this.options.offset=e,this._update(),this},r.prototype.toggleClassName=function(e){if(this._container)return this._container.classList.toggle(e)},r.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=n.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="&#215;",this._closeButton.addEventListener("click",this._onClose))},r.prototype._onMouseUp=function(e){this._update(e.point)},r.prototype._onMouseMove=function(e){this._update(e.point)},r.prototype._onDrag=function(e){this._update(e.point)},r.prototype._update=function(e){var t=this,r=this._lngLat||this._trackPointer;if(this._map&&r&&this._content&&(this._container||(this._container=n.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=n.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(e){return t._container.classList.add(e)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Ua(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var a=this._pos=this._trackPointer&&e?e:this._map.project(this._lngLat),i=this.options.anchor,o=oi(this.options.offset);if(!i){var s,l=this._container.offsetWidth,c=this._container.offsetHeight;s=a.y+o.bottom.y<c?["top"]:a.y>this._map.transform.height-c?["bottom"]:[],a.x<l/2?s.push("left"):a.x>this._map.transform.width-l/2&&s.push("right"),i=0===s.length?"bottom":s.join("-")}var u=a.add(o[i]).round();n.setTransform(this._container,Va[i]+" translate("+u.x+"px,"+u.y+"px)"),Ha(this._container,i,"popup")}},r.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var e=this._container.querySelector(ai);e&&e.focus()}},r.prototype._onClose=function(){this.remove()},r}(e.Evented);function oi(t){if(t){if("number"==typeof t){var n=Math.round(Math.sqrt(.5*Math.pow(t,2)));return{center:new e.Point(0,0),top:new e.Point(0,t),"top-left":new e.Point(n,n),"top-right":new e.Point(-n,n),bottom:new e.Point(0,-t),"bottom-left":new e.Point(n,-n),"bottom-right":new e.Point(-n,-n),left:new e.Point(t,0),right:new e.Point(-t,0)}}if(t instanceof e.Point||Array.isArray(t)){var r=e.Point.convert(t);return{center:r,top:r,"top-left":r,"top-right":r,bottom:r,"bottom-left":r,"bottom-right":r,left:r,right:r}}return{center:e.Point.convert(t.center||[0,0]),top:e.Point.convert(t.top||[0,0]),"top-left":e.Point.convert(t["top-left"]||[0,0]),"top-right":e.Point.convert(t["top-right"]||[0,0]),bottom:e.Point.convert(t.bottom||[0,0]),"bottom-left":e.Point.convert(t["bottom-left"]||[0,0]),"bottom-right":e.Point.convert(t["bottom-right"]||[0,0]),left:e.Point.convert(t.left||[0,0]),right:e.Point.convert(t.right||[0,0])}}return oi(new e.Point(0,0))}var si={version:e.version,supported:t,setRTLTextPlugin:e.setRTLTextPlugin,getRTLTextPluginStatus:e.getRTLTextPluginStatus,Map:Na,NavigationControl:Fa,GeolocateControl:Ja,AttributionControl:Sa,ScaleControl:Ka,FullscreenControl:ni,Popup:ii,Marker:Ga,Style:Gt,LngLat:e.LngLat,LngLatBounds:e.LngLatBounds,Point:e.Point,MercatorCoordinate:e.MercatorCoordinate,Evented:e.Evented,config:e.config,prewarm:function(){Be().acquire(Ie)},clearPrewarmedResources:function(){var e=Ne;e&&(e.isPreloaded()&&1===e.numActive()?(e.release(Ie),Ne=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return e.config.ACCESS_TOKEN},set accessToken(t){e.config.ACCESS_TOKEN=t},get baseApiUrl(){return e.config.API_URL},set baseApiUrl(t){e.config.API_URL=t},get workerCount(){return We.workerCount},set workerCount(e){We.workerCount=e},get maxParallelImageRequests(){return e.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){e.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage:function(t){e.clearTileCache(t)},workerUrl:""};return si}),n},"object"==typeof e&&typeof t<"u"?t.exports=r():"function"==typeof define&&define.amd?define(r):(n=n||self).mapboxgl=r()}),dyt=Ee((e,t)=>{var n=Fr(),r=q1().sanitizeHTML,a=Tme(),i=a_();function o(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=i.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var s=o.prototype;function l(e){if(!e.visible)return!1;var t=e.source;if(Array.isArray(t)&&t.length>0){for(var r=0;r<t.length;r++)if("string"!=typeof t[r]||0===t[r].length)return!1;return!0}return n.isPlainObject(t)||"string"==typeof t&&t.length>0}function c(e){var t={},r={};switch(e.type){case"circle":n.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":n.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":n.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var i=e.symbol,o=a(i.textposition,i.iconsize);n.extendFlat(t,{"icon-image":i.icon+"-15","icon-size":i.iconsize/10,"text-field":i.text,"text-size":i.textfont.size,"text-anchor":o.anchor,"text-offset":o.offset,"symbol-placement":i.placement}),n.extendFlat(r,{"icon-color":e.color,"text-color":i.textfont.color,"text-opacity":e.opacity});break;case"raster":n.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity})}return{layout:t,paint:r}}s.update=function(e){this.visible?this.needsNewImage(e)?this.updateImage(e):this.needsNewSource(e)?(this.removeLayer(),this.updateSource(e),this.updateLayer(e)):this.needsNewLayer(e)?this.updateLayer(e):this.updateStyle(e):(this.updateSource(e),this.updateLayer(e)),this.visible=l(e)},s.needsNewImage=function(e){return this.subplot.map.getSource(this.idSource)&&"image"===this.sourceType&&"image"===e.sourcetype&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))},s.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type},s.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]},s.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]},s.updateImage=function(e){this.subplot.map.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var t=this.findFollowingMapboxLayerId(this.lookupBelow());null!==t&&this.subplot.map.moveLayer(this.idLayer,t)},s.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,l(e)){var n=function(e){var t,n=e.sourcetype,a=e.source,i={type:n};return"geojson"===n?t="data":"vector"===n?t="string"==typeof a?"url":"tiles":"raster"===n?(t="tiles",i.tileSize=256):"image"===n&&(t="url",i.coordinates=e.coordinates),i[t]=a,e.sourceattribution&&(i.attribution=r(e.sourceattribution)),i}(e);t.addSource(this.idSource,n)}},s.findFollowingMapboxLayerId=function(e){if("traces"===e)for(var t=this.subplot.getMapLayers(),n=0;n<t.length;n++){var r=t[n].id;if("string"==typeof r&&0===r.indexOf(i.traceLayerPrefix)){e=r;break}}return e},s.updateLayer=function(e){var t=this.subplot,n=c(e),r=this.lookupBelow(),a=this.findFollowingMapboxLayerId(r);this.removeLayer(),l(e)&&t.addLayer({id:this.idLayer,source:this.idSource,"source-layer":e.sourcelayer||"",type:e.type,minzoom:e.minzoom,maxzoom:e.maxzoom,layout:n.layout,paint:n.paint},a),this.layerType=e.type,this.below=r},s.updateStyle=function(e){if(l(e)){var t=c(e);this.subplot.setOptions(this.idLayer,"setLayoutProperty",t.layout),this.subplot.setOptions(this.idLayer,"setPaintProperty",t.paint)}},s.removeLayer=function(){var e=this.subplot.map;e.getLayer(this.idLayer)&&e.removeLayer(this.idLayer)},s.dispose=function(){var e=this.subplot.map;e.getLayer(this.idLayer)&&e.removeLayer(this.idLayer),e.getSource(this.idSource)&&e.removeSource(this.idSource)},t.exports=function(e,t,n){var r=new o(e,t);return r.update(n),r}}),Myt=Ee((e,t)=>{var n=Dme(),r=Fr(),a=D4(),i=vo(),o=es(),s=p2(),l=_d(),c=Qy(),u=c.drawMode,d=c.selectMode,p=uf().prepSelect,h=uf().clearOutline,f=uf().clearSelectionsCache,m=uf().selectOnClick,g=a_(),y=dyt();function b(e,t){this.id=t,this.gd=e;var n=e._fullLayout,r=e._context;this.container=n._glcontainer.node(),this.isStatic=r.staticPlot,this.uid=n._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(n),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var v=b.prototype;v.plot=function(e,t,n){var r,a=this,i=t[a.id];a.map&&i.accesstoken!==a.accessToken&&(a.map.remove(),a.map=null,a.styleObj=null,a.traceHash={},a.layerList=[]),r=a.map?new Promise(function(n,r){a.updateMap(e,t,n,r)}):new Promise(function(n,r){a.createMap(e,t,n,r)}),n.push(r)},v.createMap=function(e,t,r,i){var o=this,s=t[o.id],l=o.styleObj=x(s.style,t);o.accessToken=s.accesstoken;var c=s.bounds,u=c?[[c.west,c.south],[c.east,c.north]]:null,d=o.map=new n.Map({container:o.div,style:l.style,center:_(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,maxBounds:u,interactive:!o.isStatic,preserveDrawingBuffer:o.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new n.AttributionControl({compact:!0}));d._canvas.style.left="0px",d._canvas.style.top="0px",o.rejectOnError(i),o.isStatic||o.initFx(e,t);var p=[];p.push(new Promise(function(e){d.once("load",e)})),p=p.concat(a.fetchTraceGeoData(e)),Promise.all(p).then(function(){o.fillBelowLookup(e,t),o.updateData(e),o.updateLayout(t),o.resolveOnRender(r)}).catch(i)},v.updateMap=function(e,t,n,r){var i=this,o=i.map,s=t[this.id];i.rejectOnError(r);var l=[],c=x(s.style,t);JSON.stringify(i.styleObj)!==JSON.stringify(c)&&(i.styleObj=c,o.setStyle(c.style),i.traceHash={},l.push(new Promise(function(e){o.once("styledata",e)}))),l=l.concat(a.fetchTraceGeoData(e)),Promise.all(l).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(n)}).catch(r)},v.fillBelowLookup=function(e,t){var n,r,a=t[this.id].layers,i=this.belowLookup={},o=!1;for(n=0;n<e.length;n++){var s=e[n][0].trace,l=s._module;"string"==typeof s.below?r=s.below:l.getBelow&&(r=l.getBelow(s,this)),""===r&&(o=!0),i["trace-"+s.uid]=r||""}for(n=0;n<a.length;n++){var c=a[n];r="string"==typeof c.below?c.below:o?"traces":"",i["layout-"+n]=r}var u,d,p={};for(u in i)p[r=i[u]]?p[r].push(u):p[r]=[u];for(r in p){var h=p[r];if(h.length>1)for(n=0;n<h.length;n++)0===(u=h[n]).indexOf("trace-")?(d=u.split("trace-")[1],this.traceHash[d]&&(this.traceHash[d].below=null)):0===u.indexOf("layout-")&&(d=u.split("layout-")[1],this.layerList[d]&&(this.layerList[d].below=null))}};var M={choroplethmapbox:0,densitymapbox:1,scattermapbox:2};function x(e,t){var n={};if(r.isPlainObject(e))n.id=e.id,n.style=e;else if("string"==typeof e)if(n.id=e,-1!==g.styleValuesMapbox.indexOf(e))n.style=z(e);else if(g.stylesNonMapbox[e]){n.style=g.stylesNonMapbox[e];var a=n.style.sources["plotly-"+e],i=a?a.tiles:void 0;i&&i[0]&&"?api_key="===i[0].slice(-9)&&(i[0]+=t._mapboxAccessToken)}else n.style=e;else n.id=g.styleValueDflt,n.style=z(g.styleValueDflt);return n.transition={duration:0,delay:0},n}function z(e){return g.styleUrlPrefix+e+"-"+g.styleUrlSuffix}function _(e){return[e.lon,e.lat]}v.updateData=function(e){var t,n,r,a,i=this.traceHash,o=e.slice().sort(function(e,t){return M[e[0].trace.type]-M[t[0].trace.type]});for(r=0;r<o.length;r++){var s=o[r],l=!1;(t=i[(n=s[0].trace).uid])&&(t.type===n.type?(t.update(s),l=!0):t.dispose()),!l&&n._module&&(i[n.uid]=n._module.plot(this,s))}var c=Object.keys(i);e:for(r=0;r<c.length;r++){var u=c[r];for(a=0;a<e.length;a++)if(u===(n=e[a][0].trace).uid)continue e;(t=i[u]).dispose(),delete i[u]}},v.updateLayout=function(e){var t=this.map,n=e[this.id];!this.dragging&&!this.wheeling&&(t.setCenter(_(n.center)),t.setZoom(n.zoom),t.setBearing(n.bearing),t.setPitch(n.pitch)),this.updateLayers(e),this.updateFramework(e),this.updateFx(e),this.map.resize(),this.gd._context._scrollZoom.mapbox?t.scrollZoom.enable():t.scrollZoom.disable()},v.resolveOnRender=function(e){var t=this.map;t.on("render",function n(){t.loaded()&&(t.off("render",n),setTimeout(e,10))})},v.rejectOnError=function(e){var t=this.map;function n(){e(new Error(g.mapOnErrorMsg))}t.once("error",n),t.once("style.error",n),t.once("source.error",n),t.once("tile.error",n),t.once("layer.error",n)},v.createFramework=function(e){var t=this,n=t.div=document.createElement("div");n.id=t.uid,n.style.position="absolute",t.container.appendChild(n),t.xaxis={_id:"x",c2p:function(e){return t.project(e).x}},t.yaxis={_id:"y",c2p:function(e){return t.project(e).y}},t.updateFramework(e),t.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},o.setConvert(t.mockAxis,e)},v.initFx=function(e,t){var n=this,r=n.gd,a=n.map;function o(){l.loneUnhover(t._hoverlayer)}function s(){var e=n.getView();r.emit("plotly_relayouting",n.getViewEditsWithDerived(e))}a.on("moveend",function(e){if(n.map){var t=r._fullLayout;if(e.originalEvent||n.wheeling){var a=t[n.id];i.call("_storeDirectGUIEdit",r.layout,t._preGUI,n.getViewEdits(a));var o=n.getView();a._input.center=a.center=o.center,a._input.zoom=a.zoom=o.zoom,a._input.bearing=a.bearing=o.bearing,a._input.pitch=a.pitch=o.pitch,r.emit("plotly_relayout",n.getViewEditsWithDerived(o))}e.originalEvent&&"mouseup"===e.originalEvent.type?n.dragging=!1:n.wheeling&&(n.wheeling=!1),t._rehover&&t._rehover()}}),a.on("wheel",function(){n.wheeling=!0}),a.on("mousemove",function(e){var t=n.div.getBoundingClientRect(),i=[e.originalEvent.offsetX,e.originalEvent.offsetY];e.target.getBoundingClientRect=function(){return t},n.xaxis.p2c=function(){return a.unproject(i).lng},n.yaxis.p2c=function(){return a.unproject(i).lat},r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===n.id&&r._fullLayout[n.id]&&l.hover(r,e,n.id)},l.hover(r,e,n.id),r._fullLayout._hoversubplot=n.id}),a.on("dragstart",function(){n.dragging=!0,o()}),a.on("zoomstart",o),a.on("mouseout",function(){r._fullLayout._hoversubplot=null}),a.on("drag",s),a.on("zoom",s),a.on("dblclick",function(){var e=r._fullLayout[n.id];i.call("_storeDirectGUIEdit",r.layout,r._fullLayout._preGUI,n.getViewEdits(e));var t=n.viewInitial;a.setCenter(_(t.center)),a.setZoom(t.zoom),a.setBearing(t.bearing),a.setPitch(t.pitch);var o=n.getView();e._input.center=e.center=o.center,e._input.zoom=e.zoom=o.zoom,e._input.bearing=e.bearing=o.bearing,e._input.pitch=e.pitch=o.pitch,r.emit("plotly_doubleclick",null),r.emit("plotly_relayout",n.getViewEditsWithDerived(o))}),n.clearOutline=function(){f(n.dragOptions),h(n.dragOptions.gd)},n.onClickInPanFn=function(e){return function(t){var a=r._fullLayout.clickmode;a.indexOf("select")>-1&&m(t.originalEvent,r,[n.xaxis],[n.yaxis],n.id,e),a.indexOf("event")>-1&&l.click(r,t.originalEvent)}}},v.updateFx=function(e){var t=this,n=t.map,a=t.gd;if(!t.isStatic){var i,o=e.dragmode;i=function(e,n){n.isRect?(e.range={})[t.id]=[c([n.xmin,n.ymin]),c([n.xmax,n.ymax])]:(e.lassoPoints={})[t.id]=n.map(c)};var l=t.dragOptions;t.dragOptions=r.extendDeep(l||{},{dragmode:e.dragmode,element:t.div,gd:a,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:i},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),n.off("click",t.onClickInPanHandler),d(o)||u(o)?(n.dragPan.disable(),n.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(e,n,r){p(e,n,r,t.dragOptions,o)},s.init(t.dragOptions)):(n.dragPan.enable(),n.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),n.on("click",t.onClickInPanHandler))}function c(e){var n=t.map.unproject(e);return[n.lng,n.lat]}},v.updateFramework=function(e){var t=e[this.id].domain,n=e._size,r=this.div.style;r.width=n.w*(t.x[1]-t.x[0])+"px",r.height=n.h*(t.y[1]-t.y[0])+"px",r.left=n.l+t.x[0]*n.w+"px",r.top=n.t+(1-t.y[1])*n.h+"px",this.xaxis._offset=n.l+t.x[0]*n.w,this.xaxis._length=n.w*(t.x[1]-t.x[0]),this.yaxis._offset=n.t+(1-t.y[1])*n.h,this.yaxis._length=n.h*(t.y[1]-t.y[0])},v.updateLayers=function(e){var t,n=e[this.id].layers,r=this.layerList;if(n.length!==r.length){for(t=0;t<r.length;t++)r[t].dispose();for(r=this.layerList=[],t=0;t<n.length;t++)r.push(y(this,t,n[t]))}else for(t=0;t<n.length;t++)r[t].update(n[t])},v.destroy=function(){this.map&&(this.map.remove(),this.map=null,this.container.removeChild(this.div))},v.toImage=function(){return this.map.stop(),this.map.getCanvas().toDataURL()},v.setOptions=function(e,t,n){for(var r in n)this.map[t](e,r,n[r])},v.getMapLayers=function(){return this.map.getStyle().layers},v.addLayer=function(e,t){var n=this.map;if("string"==typeof t){if(""===t)return void n.addLayer(e,t);for(var a=this.getMapLayers(),i=0;i<a.length;i++)if(t===a[i].id)return void n.addLayer(e,t);r.warn(["Trying to add layer with *below* value",t,"referencing a layer that does not exist","or that does not yet exist."].join(" "))}n.addLayer(e)},v.project=function(e){return this.map.project(new n.LngLat(e[0],e[1]))},v.getView=function(){var e=this.map,t=e.getCenter(),n={lon:t.lng,lat:t.lat},r=e.getCanvas(),a=parseInt(r.style.width),i=parseInt(r.style.height);return{center:n,zoom:e.getZoom(),bearing:e.getBearing(),pitch:e.getPitch(),_derived:{coordinates:[e.unproject([0,0]).toArray(),e.unproject([a,0]).toArray(),e.unproject([a,i]).toArray(),e.unproject([0,i]).toArray()]}}},v.getViewEdits=function(e){for(var t=this.id,n=["center","zoom","bearing","pitch"],r={},a=0;a<n.length;a++){var i=n[a];r[t+"."+i]=e[i]}return r},v.getViewEditsWithDerived=function(e){var t=this.id,n=this.getViewEdits(e);return n[t+"._derived"]=e._derived,n},t.exports=b}),zyt=Ee((e,t)=>{var n=Fr(),r=p4(),a=Pp(),i=kP();function o(e,t,n,r){n("accesstoken",r.accessToken),n("style"),n("center.lon"),n("center.lat"),n("zoom"),n("bearing"),n("pitch");var i=n("bounds.west"),o=n("bounds.east"),l=n("bounds.south"),c=n("bounds.north");(void 0===i||void 0===o||void 0===l||void 0===c)&&delete t.bounds,a(e,t,{name:"layers",handleItemDefaults:s}),t._input=e}function s(e,t){function r(r,a){return n.coerce(e,t,i.layers,r,a)}if(r("visible")){var a,o=r("sourcetype"),s="raster"===o||"image"===o;r("source"),r("sourceattribution"),"vector"===o&&r("sourcelayer"),"image"===o&&r("coordinates"),s&&(a="raster");var l=r("type",a);s&&"raster"!==l&&(l=t.type="raster",n.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),"circle"===l&&r("circle.radius"),"line"===l&&(r("line.width"),r("line.dash")),"fill"===l&&r("fill.outlinecolor"),"symbol"===l&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),n.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}t.exports=function(e,t,n){r(e,t,n,{type:"mapbox",attributes:i,handleDefaults:o,partition:"y",accessToken:t._mapboxAccessToken})}}),c$=Ee(e=>{var t=Dme(),n=Fr(),r=n.strTranslate,a=n.strScale,i=mp().getSubplotCalcData,o=Dv(),s=mo(),l=vs(),c=q1(),u=Myt(),d="mapbox",p=e.constants=a_();e.name=d,e.attr="subplot",e.idRoot=d,e.idRegex=e.attrRegex=n.counterRegex(d);var h=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");e.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc",description:[h,"Sets a reference between this trace's data coordinates and","a mapbox subplot.","If *mapbox* (the default value), the data refer to `layout.mapbox`.","If *mapbox2*, the data refer to `layout.mapbox2`, and so on."].join(" ")}},e.layoutAttributes=kP(),e.supplyLayoutDefaults=zyt();var f=!0;function m(e){return"string"==typeof e&&(-1!==p.styleValuesMapbox.indexOf(e)||0===e.indexOf("mapbox://")||0===e.indexOf("stamen"))}e.plot=function(e){f&&(f=!1,n.warn(h));var r=e._fullLayout,a=e.calcdata,o=r._subplots[d];if(t.version!==p.requiredVersion)throw new Error(p.wrongVersionErrorMsg);var s=function(e,t){var r=e._fullLayout,a=e._context;if(""===a.mapboxAccessToken)return"";for(var i=[],o=[],s=!1,l=!1,c=0;c<t.length;c++){var u=r[t[c]],d=u.accesstoken;m(u.style)&&(d?n.pushUnique(i,d):(m(u._input.style)&&(n.error("Uses Mapbox map style, but did not set an access token."),s=!0),l=!0)),d&&n.pushUnique(o,d)}if(l){var h=s?p.noAccessTokenErrorMsg:p.missingStyleErrorMsg;throw n.error(h),new Error(h)}return i.length?(i.length>1&&n.warn(p.multipleTokensErrorMsg),i[0]):(o.length&&n.log(["Listed mapbox access token(s)",o.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}(e,o);t.accessToken=s;for(var l=0;l<o.length;l++){var c=o[l],g=i(a,d,c),y=r[c],b=y._subplot;b||(b=new u(e,c),r[c]._subplot=b),b.viewInitial||(b.viewInitial={center:n.extendFlat({},y.center),zoom:y.zoom,bearing:y.bearing,pitch:y.pitch}),b.plot(g,r,e._promises)}},e.clean=function(e,t,n,r){for(var a=r._subplots[d]||[],i=0;i<a.length;i++){var o=a[i];!t[o]&&r[o]._subplot&&r[o]._subplot.destroy()}},e.toSVG=function(e){for(var t=e._fullLayout,n=t._subplots[d],i=t._size,u=0;u<n.length;u++){var h=t[n[u]],f=h.domain,m=h._subplot.toImage("png");t._glimages.append("svg:image").attr({xmlns:o.svg,"xlink:href":m,x:i.l+i.w*f.x[0],y:i.t+i.h*(1-f.y[1]),width:i.w*(f.x[1]-f.x[0]),height:i.h*(f.y[1]-f.y[0]),preserveAspectRatio:"none"});var g=s.select(h._subplot.div);if(!(null===g.select(".mapboxgl-ctrl-logo").node().offsetParent)){var y=t._glimages.append("g");y.attr("transform",r(i.l+i.w*f.x[0]+10,i.t+i.h*(1-f.y[0])-31)),y.append("path").attr("d",p.mapboxLogo.path0).style({opacity:.9,fill:"#ffffff","enable-background":"new"}),y.append("path").attr("d",p.mapboxLogo.path1).style("opacity",.35).style("enable-background","new"),y.append("path").attr("d",p.mapboxLogo.path2).style("opacity",.35).style("enable-background","new"),y.append("polygon").attr("points",p.mapboxLogo.polygon).style({opacity:.9,fill:"#ffffff","enable-background":"new"})}var b=g.select(".mapboxgl-ctrl-attrib").text().replace("Improve this map",""),v=t._glimages.append("g"),M=v.append("text");M.text(b).classed("static-attribution",!0).attr({"font-size":12,"font-family":"Arial",color:"rgba(0, 0, 0, 0.75)","text-anchor":"end","data-unformatted":b});var x=l.bBox(M.node()),z=i.w*(f.x[1]-f.x[0]);if(x.width>z/2){var _=b.split("|").join("<br>");M.text(_).attr("data-unformatted",_).call(c.convertToTspans,e),x=l.bBox(M.node())}M.attr("transform",r(-3,8-x.height)),v.insert("rect",".static-attribution").attr({x:-x.width-6,y:-x.height-3,width:x.width+6,height:x.height+3,fill:"rgba(255, 255, 255, 0.75)"});var A=1;x.width+6>z&&(A=z/(x.width+6));var O=[i.l+i.w*f.x[1],i.t+i.h*(1-f.y[0])];v.attr("transform",r(O[0],O[1])+a(A))}},e.updateFx=function(e){for(var t=e._fullLayout,n=t._subplots[d],r=0;r<n.length;r++){t[n[r]]._subplot.updateFx(t)}}}),Cyt=Ee((e,t)=>{var n=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");t.exports={attributes:t$(),supplyDefaults:Fgt(),colorbar:Wp(),formatLabels:Ome(),calc:wY(),plot:eyt(),hoverPoints:o$().hoverPoints,eventData:ayt(),selectPoints:oyt(),styleOnSelect:function(e,t){t&&t[0].trace._glTrace.update(t)},moduleType:"trace",name:"scattermapbox",basePlotModule:c$(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{hrName:"scatter_mapbox",description:[n,"The data visualized as scatter point, lines or marker symbols","on a Mapbox GL geographic map","is provided by longitude/latitude pairs in `lon` and `lat`."].join(" ")}}}),qyt=Ee((e,t)=>{t.exports=Cyt()}),Wme=Ee((e,t)=>{var n=n9(),r=Oc(),{hovertemplateAttrs:a,templatefallbackAttrs:i}=p1(),o=S1(),s=ms().extendFlat;t.exports=s({locations:{valType:"data_array",editType:"calc",description:["Sets which features found in *geojson* to plot using","their feature `id` field."].join(" ")},z:{valType:"data_array",editType:"calc",description:"Sets the color values."},geojson:{valType:"any",editType:"calc",description:["Sets the GeoJSON data associated with this trace.","It can be set as a valid GeoJSON object or as a URL string.","Note that we only accept GeoJSONs of type *FeatureCollection* or *Feature*","with geometries of type *Polygon* or *MultiPolygon*."].join(" ")},featureidkey:s({},n.featureidkey,{description:["Sets the key in GeoJSON features which is used as id to match the items","included in the `locations` array.","Support nested property, for example *properties.name*."].join(" ")}),below:{valType:"string",editType:"plot",description:["Determines if the choropleth polygons will be inserted","before the layer with the specified ID.","By default, choroplethmapbox traces are placed above the water layers.","If set to '',","the layer will be inserted above every existing layer."].join(" ")},text:n.text,hovertext:n.hovertext,marker:{line:{color:s({},n.marker.line.color,{editType:"plot"}),width:s({},n.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:s({},n.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:s({},n.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:s({},n.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:n.hoverinfo,hovertemplate:a({},{keys:["properties"]}),hovertemplatefallback:i(),showlegend:s({},o.showlegend,{dflt:!1})},r("",{cLetter:"z",editTypeOverride:"calc"}))}),Lyt=Ee((e,t)=>{var n=Fr(),r=kh(),a=Wme();t.exports=function(e,t,i,o){function s(r,i){return n.coerce(e,t,a,r,i)}var l=s("locations"),c=s("z"),u=s("geojson");n.isArrayOrTypedArray(l)&&l.length&&n.isArrayOrTypedArray(c)&&c.length&&("string"==typeof u&&""!==u||n.isPlainObject(u))?(s("featureidkey"),t._length=Math.min(l.length,c.length),s("below"),s("text"),s("hovertext"),s("hovertemplate"),s("hovertemplatefallback"),s("marker.line.width")&&s("marker.line.color"),s("marker.opacity"),r(e,t,o,s,{prefix:"",cLetter:"z"}),n.coerceSelectionMarkerOpacity(t,s)):t.visible=!1}}),Fme=Ee((e,t)=>{var n=xs(),r=Fr(),a=xu(),i=vs(),o=E4().makeBlank,s=D4();function l(e){var t,n=e[0].trace,a=n._opts;if(n.selectedpoints){for(var o=i.makeSelectedPointStyleFns(n),s=0;s<e.length;s++){var l=e[s];l.fOut&&(l.fOut.properties.mo2=o.selectedOpacityFn(l))}t={type:"identity",property:"mo2"}}else t=r.isArrayOrTypedArray(n.marker.opacity)?{type:"identity",property:"mo"}:n.marker.opacity;return r.extendFlat(a.fill.paint,{"fill-opacity":t}),r.extendFlat(a.line.paint,{"line-opacity":t}),a}t.exports={convert:function(e){var t=e[0].trace,i=!0===t.visible&&0!==t._length,c={layout:{visibility:"none"},paint:{}},u={layout:{visibility:"none"},paint:{}},d=t._opts={fill:c,line:u,geojson:o()};if(!i)return d;var p=s.extractTraceFeature(e);if(!p)return d;var h,f,m,g=a.makeColorScaleFuncFromTrace(t),y=t.marker,b=y.line||{};r.isArrayOrTypedArray(y.opacity)&&(h=function(e){var t=e.mo;return n(t)?+r.constrain(t,0,1):0}),r.isArrayOrTypedArray(b.color)&&(f=function(e){return e.mlc}),r.isArrayOrTypedArray(b.width)&&(m=function(e){return e.mlw});for(var v=0;v<e.length;v++){var M=e[v],x=M.fOut;if(x){var z=x.properties;z.fc=g(M.z),h&&(z.mo=h(M)),f&&(z.mlc=f(M)),m&&(z.mlw=m(M)),M.ct=z.ct,M._polygons=s.feature2polygons(x)}}var _=h?{type:"identity",property:"mo"}:y.opacity;return r.extendFlat(c.paint,{"fill-color":{type:"identity",property:"fc"},"fill-opacity":_}),r.extendFlat(u.paint,{"line-color":f?{type:"identity",property:"mlc"}:b.color,"line-width":m?{type:"identity",property:"mlw"}:b.width,"line-opacity":_}),c.layout.visibility="visible",u.layout.visibility="visible",d.geojson={type:"FeatureCollection",features:p},l(e),d},convertOnSelect:l}}),Hyt=Ee((e,t)=>{var n=Fme().convert,r=Fme().convertOnSelect,a=a_().traceLayerPrefix;function i(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",a+t+"-fill"],["line",a+t+"-line"]],this.below=null}var o=i.prototype;o.update=function(e){this._update(n(e)),e[0].trace._glTrace=this},o.updateOnSelect=function(e){this._update(r(e))},o._update=function(e){var t=this.subplot,n=this.layerList,r=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),r!==this.below&&(this._removeLayers(),this._addLayers(e,r),this.below=r);for(var a=0;a<n.length;a++){var i=n[a],o=i[0],s=i[1],l=e[o];t.setOptions(s,"setLayoutProperty",l.layout),"visible"===l.layout.visibility&&t.setOptions(s,"setPaintProperty",l.paint)}},o._addLayers=function(e,t){for(var n=this.subplot,r=this.layerList,a=this.sourceId,i=0;i<r.length;i++){var o=r[i],s=o[0],l=e[s];n.addLayer({type:s,id:o[1],source:a,layout:l.layout,paint:l.paint},t)}},o._removeLayers=function(){for(var e=this.subplot.map,t=this.layerList,n=t.length-1;n>=0;n--)e.removeLayer(t[n][1])},o.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)},t.exports=function(e,t){var r=t[0].trace,a=new i(e,r.uid),o=a.sourceId,s=n(t),l=a.below=e.belowLookup["trace-"+r.uid];return e.map.addSource(o,{type:"geojson",data:s.geojson}),a._addLayers(s,l),t[0].trace._glTrace=a,a}}),jyt=Ee((e,t)=>{var n=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");t.exports={attributes:Wme(),supplyDefaults:Lyt(),colorbar:d4(),calc:GY(),plot:Hyt(),hoverPoints:YY(),eventData:ZY(),selectPoints:$Y(),styleOnSelect:function(e,t){t&&t[0].trace._glTrace.updateOnSelect(t)},getBelow:function(e,t){for(var n=t.getMapLayers(),r=n.length-2;r>=0;r--){var a=n[r].id;if("string"==typeof a&&0===a.indexOf("water"))for(var i=r+1;i<n.length;i++)if("string"==typeof(a=n[i].id)&&-1===a.indexOf("plotly-"))return a}},moduleType:"trace",name:"choroplethmapbox",basePlotModule:c$(),categories:["mapbox","gl","noOpacity","showLegend"],meta:{hr_name:"choropleth_mapbox",description:[n,"GeoJSON features to be filled are set in `geojson`","The data that describes the choropleth value-to-color mapping","is set in `locations` and `z`."].join(" ")}}}),Xyt=Ee((e,t)=>{t.exports=jyt()}),Ume=Ee((e,t)=>{var n=Oc(),{hovertemplateAttrs:r,templatefallbackAttrs:a}=p1(),i=S1(),o=t$(),s=ms().extendFlat;t.exports=s({lon:o.lon,lat:o.lat,z:{valType:"data_array",editType:"calc",description:["Sets the points' weight.","For example, a value of 10 would be equivalent to having 10 points of weight 1","in the same spot"].join(" ")},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30,description:["Sets the radius of influence of one `lon` / `lat` point in pixels.","Increasing the value makes the densitymapbox trace smoother, but less detailed."].join(" ")},below:{valType:"string",editType:"plot",description:["Determines if the densitymapbox trace will be inserted","before the layer with the specified ID.","By default, densitymapbox traces are placed below the first","layer of type symbol","If set to '',","the layer will be inserted above every existing layer."].join(" ")},text:o.text,hovertext:o.hovertext,hoverinfo:s({},i.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:r(),hovertemplatefallback:a(),showlegend:s({},i.showlegend,{dflt:!1})},n("",{cLetter:"z",editTypeOverride:"calc"}))}),Kyt=Ee((e,t)=>{var n=Fr(),r=kh(),a=Ume();t.exports=function(e,t,i,o){function s(r,i){return n.coerce(e,t,a,r,i)}var l=s("lon")||[],c=s("lat")||[],u=Math.min(l.length,c.length);u?(t._length=u,s("z"),s("radius"),s("below"),s("text"),s("hovertext"),s("hovertemplate"),s("hovertemplatefallback"),r(e,t,o,s,{prefix:"",cLetter:"z"})):t.visible=!1}}),ebt=Ee((e,t)=>{var n=xs(),r=Fr().isArrayOrTypedArray,a=T0().BADNUM,i=f2(),o=Fr()._;t.exports=function(e,t){for(var s=t._length,l=new Array(s),c=t.z,u=r(c)&&c.length,d=0;d<s;d++){var p=l[d]={},h=t.lon[d],f=t.lat[d];if(p.lonlat=n(h)&&n(f)?[+h,+f]:[a,a],u){var m=c[d];p.z=n(m)?m:a}}return i(e,t,{vals:u?c:[0,1],containerStr:"",cLetter:"z"}),s&&(l[0].t={labels:{lat:o(e,"lat:")+" ",lon:o(e,"lon:")+" "}}),l}}),ibt=Ee((e,t)=>{var n=xs(),r=Fr(),a=ao(),i=xu(),o=T0().BADNUM,s=E4().makeBlank;t.exports=function(e){var t=e[0].trace,l=!0===t.visible&&0!==t._length,c=t._opts={heatmap:{layout:{visibility:"none"},paint:{}},geojson:s()};if(!l)return c;var u,d=[],p=t.z,h=t.radius,f=r.isArrayOrTypedArray(p)&&p.length,m=r.isArrayOrTypedArray(h);for(u=0;u<e.length;u++){var g=e[u],y=g.lonlat;if(y[0]!==o){var b={};if(f){var v=g.z;b.z=v!==o?v:0}m&&(b.r=n(h[u])&&h[u]>0?+h[u]:0),d.push({type:"Feature",geometry:{type:"Point",coordinates:y},properties:b})}}var M=i.extractOpts(t),x=M.reversescale?i.flipScale(M.colorscale):M.colorscale,z=x[0][1],_=["interpolate",["linear"],["heatmap-density"],0,a.opacity(z)<1?z:a.addOpacity(z,0)];for(u=1;u<x.length;u++)_.push(x[u][0],x[u][1]);var A=["interpolate",["linear"],["get","z"],M.min,0,M.max,1];return r.extendFlat(c.heatmap.paint,{"heatmap-weight":f?A:1/(M.max-M.min),"heatmap-color":_,"heatmap-radius":m?{type:"identity",property:"r"}:t.radius,"heatmap-opacity":t.opacity}),c.geojson={type:"FeatureCollection",features:d},c.heatmap.layout.visibility="visible",c}}),cbt=Ee((e,t)=>{var n=ibt(),r=a_().traceLayerPrefix;function a(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",r+t+"-heatmap"]],this.below=null}var i=a.prototype;i.update=function(e){var t=this.subplot,r=this.layerList,a=n(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(a.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(a,i),this.below=i);for(var o=0;o<r.length;o++){var s=r[o],l=s[0],c=s[1],u=a[l];t.setOptions(c,"setLayoutProperty",u.layout),"visible"===u.layout.visibility&&t.setOptions(c,"setPaintProperty",u.paint)}},i._addLayers=function(e,t){for(var n=this.subplot,r=this.layerList,a=this.sourceId,i=0;i<r.length;i++){var o=r[i],s=o[0],l=e[s];n.addLayer({type:s,id:o[1],source:a,layout:l.layout,paint:l.paint},t)}},i._removeLayers=function(){for(var e=this.subplot.map,t=this.layerList,n=t.length-1;n>=0;n--)e.removeLayer(t[n][1])},i.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)},t.exports=function(e,t){var r=t[0].trace,i=new a(e,r.uid),o=i.sourceId,s=n(t),l=i.below=e.belowLookup["trace-"+r.uid];return e.map.addSource(o,{type:"geojson",data:s.geojson}),i._addLayers(s,l),i}}),dbt=Ee((e,t)=>{var n=es(),r=o$().hoverPoints,a=o$().getExtraText;t.exports=function(e,t,i){var o=r(e,t,i);if(o){var s=o[0],l=s.cd,c=l[0].trace,u=l[s.index];if(delete s.color,"z"in u){var d=s.subplot.mockAxis;s.z=u.z,s.zLabel=n.tickText(d,d.c2l(u.z),"hover").text}return s.extraText=a(c,u,l[0].t.labels),[s]}}}),hbt=Ee((e,t)=>{t.exports=function(e,t){return e.lon=t.lon,e.lat=t.lat,e.z=t.z,e}}),mbt=Ee((e,t)=>{var n=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");t.exports={attributes:Ume(),supplyDefaults:Kyt(),colorbar:d4(),formatLabels:Ome(),calc:ebt(),plot:cbt(),hoverPoints:dbt(),eventData:hbt(),getBelow:function(e,t){for(var n=t.getMapLayers(),r=0;r<n.length;r++){var a=n[r],i=a.id;if("symbol"===a.type&&"string"==typeof i&&-1===i.indexOf("plotly-"))return i}},moduleType:"trace",name:"densitymapbox",basePlotModule:c$(),categories:["mapbox","gl","showLegend"],meta:{hr_name:"density_mapbox",description:[n,"Draws a bivariate kernel density estimation with a Gaussian kernel","from `lon` and `lat` coordinates and optional `z` values using a colorscale."].join(" ")}}}),gbt=Ee((e,t)=>{t.exports=mbt()}),bbt=Ee((e,t)=>{t.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI &copy; <a href='http://www.esri.com'>ESRI</a>"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}\n{name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-ocean",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["==","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-other",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["!in","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":{stops:[[0,10],[6,14]]},"text-field":"{name:latin}\n{name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2,visibility:"visible"},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"poi-level-3",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:16,filter:["all",["==","$type","Point"],[">=","rank",25]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":"{name:latin}\n{name:nonlatin}","text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-2",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:15,filter:["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":"{name:latin}\n{name:nonlatin}","text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-1",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:14,filter:["all",["==","$type","Point"],["<=","rank",14],["has","name"]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":"{name:latin}\n{name:nonlatin}","text-offset":[0,.6],"text-size":11,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"rgba(191, 228, 172, 1)","text-halo-width":1,"text-halo-color":"rgba(30, 29, 29, 1)"}},{id:"poi-railway",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:13,filter:["all",["==","$type","Point"],["has","name"],["==","class","railway"],["==","subclass","station"]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":"{name:latin}\n{name:nonlatin}","text-offset":[0,.6],"text-size":12,"text-max-width":9,"icon-optional":!1,"icon-ignore-placement":!1,"icon-allow-overlap":!1,"text-ignore-placement":!1,"text-allow-overlap":!1,"text-optional":!0},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"road_oneway",type:"symbol",source:"openmaptiles","source-layer":"transportation",minzoom:15,filter:["all",["==","oneway",1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],layout:{"symbol-placement":"line","icon-image":"oneway","symbol-spacing":75,"icon-padding":2,"icon-rotation-alignment":"map","icon-rotate":90,"icon-size":{stops:[[15,.5],[19,1]]}},paint:{"icon-opacity":.5}},{id:"road_oneway_opposite",type:"symbol",source:"openmaptiles","source-layer":"transportation",minzoom:15,filter:["all",["==","oneway",-1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],layout:{"symbol-placement":"line","icon-image":"oneway","symbol-spacing":75,"icon-padding":2,"icon-rotation-alignment":"map","icon-rotate":-90,"icon-size":{stops:[[15,.5],[19,1]]}},paint:{"icon-opacity":.5}},{id:"highway-name-path",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:15.5,filter:["==","class","path"],layout:{"text-size":{base:1,stops:[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},paint:{"text-halo-color":"#f8f4f0","text-color":"hsl(30, 23%, 62%)","text-halo-width":.5}},{id:"highway-name-minor",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:15,filter:["all",["==","$type","LineString"],["in","class","minor","service","track"]],layout:{"text-size":{base:1,stops:[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},paint:{"text-halo-blur":.5,"text-color":"#765","text-halo-width":1}},{id:"highway-name-major",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:12.2,filter:["in","class","primary","secondary","tertiary","trunk"],layout:{"text-size":{base:1,stops:[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},paint:{"text-halo-blur":.5,"text-color":"#765","text-halo-width":1}},{id:"highway-shield",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:8,filter:["all",["<=","ref_length",6],["==","$type","LineString"],["!in","network","us-interstate","us-highway","us-state"]],layout:{"text-size":10,"icon-image":"road_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{base:1,stops:[[10,"point"],[11,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},paint:{"text-opacity":1,"text-color":"rgba(20, 19, 19, 1)","text-halo-color":"rgba(230, 221, 221, 0)","text-halo-width":2,"icon-color":"rgba(183, 18, 18, 1)","icon-opacity":.3,"icon-halo-color":"rgba(183, 55, 55, 0)"}},{id:"highway-shield-us-interstate",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:7,filter:["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-interstate"]],layout:{"text-size":10,"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{base:1,stops:[[7,"point"],[7,"line"],[8,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},paint:{"text-color":"rgba(0, 0, 0, 1)"}},{id:"highway-shield-us-other",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:9,filter:["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-highway","us-state"]],layout:{"text-size":10,"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{base:1,stops:[[10,"point"],[11,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},paint:{"text-color":"rgba(0, 0, 0, 1)"}},{id:"place-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",minzoom:12,filter:["!in","class","city","town","village","country","continent"],layout:{"text-letter-spacing":.1,"text-size":{base:1.2,stops:[[12,10],[15,14]]},"text-font":["Noto Sans Bold"],"text-field":"{name:latin}\n{name:nonlatin}","text-transform":"uppercase","text-max-width":9,visibility:"visible"},paint:{"text-color":"rgba(255,255,255,1)","text-halo-width":1.2,"text-halo-color":"rgba(57, 28, 28, 1)"}},{id:"place-village",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",minzoom:10,filter:["==","class","village"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,12],[15,16]]},"text-field":"{name:latin}\n{name:nonlatin}","text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(10, 9, 9, 0.8)"}},{id:"place-town",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["==","class","town"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,14],[15,24]]},"text-field":"{name:latin}\n{name:nonlatin}","text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(22, 22, 22, 0.8)"}},{id:"place-city",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["!=","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":"{name:latin}\n{name:nonlatin}","text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(0, 0, 0, 1)","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-city-capital",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":"{name:latin}\n{name:nonlatin}","text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}}),xbt=Ee((e,t)=>{t.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI &copy; <a href='http://www.esri.com'>ESRI</a>"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}}),J4=Ee((e,t)=>{var n=qz(),r=bbt(),a="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",i="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",o="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",s={basic:o,streets:o,outdoors:o,light:a,dark:i,satellite:xbt(),"satellite-streets":r,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:'© <a target="_blank" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":a,"carto-darkmatter":i,"carto-voyager":o,"carto-positron-nolabels":"https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json","carto-darkmatter-nolabels":"https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json","carto-voyager-nolabels":"https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json"},l=n(s);t.exports={styleValueDflt:"basic",stylesMap:s,styleValuesMap:l,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",l.join(", "),"or use a tile service."].join("\n"),mapOnErrorMsg:"Map error."}}),RP=Ee((e,t)=>{var n=Fr(),r=ao().defaultLine,a=ad().attributes,i=Mu(),o=Id().textposition,s=Wu().overrideAll,l=Kl().templatedArray,c=J4(),u=i({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,description:["Sets the icon text font (color=map.layer.paint.text-color, size=map.layer.layout.text-size).","Has an effect only when `type` is set to *symbol*."].join(" ")});u.family.dflt="Open Sans Regular, Arial Unicode MS Regular",(t.exports=s({_arrayAttrRegexps:[n.counterRegex("map",".layers",!0)],domain:a({name:"map"}),style:{valType:"any",values:c.styleValuesMap,dflt:c.styleValueDflt,description:["Defines the map layers that are rendered by default below the trace layers defined in `data`,","which are themselves by default rendered below the layers defined in `layout.map.layers`.","","These layers can be defined either explicitly as a Map Style object which can contain multiple","layer definitions that load data from any public or private Tile Map Service (TMS or XYZ) or Web Map Service (WMS)","or implicitly by using one of the built-in style objects which use WMSes","or by using a custom style URL","","Map Style objects are of the form described in the MapLibre GL JS documentation available at","https://maplibre.org/maplibre-style-spec/","","The built-in plotly.js styles objects are:",c.styleValuesMap.join(", ")+"."].join(" ")},center:{lon:{valType:"number",dflt:0,description:"Sets the longitude of the center of the map (in degrees East)."},lat:{valType:"number",dflt:0,description:"Sets the latitude of the center of the map (in degrees North)."}},zoom:{valType:"number",dflt:1,description:"Sets the zoom level of the map (map.zoom)."},bearing:{valType:"number",dflt:0,description:"Sets the bearing angle of the map in degrees counter-clockwise from North (map.bearing)."},pitch:{valType:"number",dflt:0,description:["Sets the pitch angle of the map","(in degrees, where *0* means perpendicular to the surface of the map) (map.pitch)."].join(" ")},bounds:{west:{valType:"number",description:["Sets the minimum longitude of the map (in degrees East)","if `east`, `south` and `north` are declared."].join(" ")},east:{valType:"number",description:["Sets the maximum longitude of the map (in degrees East)","if `west`, `south` and `north` are declared."].join(" ")},south:{valType:"number",description:["Sets the minimum latitude of the map (in degrees North)","if `east`, `west` and `north` are declared."].join(" ")},north:{valType:"number",description:["Sets the maximum latitude of the map (in degrees North)","if `east`, `west` and `south` are declared."].join(" ")}},layers:l("layer",{visible:{valType:"boolean",dflt:!0,description:["Determines whether this layer is displayed"].join(" ")},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson",description:["Sets the source type for this layer,","that is the type of the layer data."].join(" ")},source:{valType:"any",description:["Sets the source data for this layer (map.layer.source).","When `sourcetype` is set to *geojson*, `source` can be a URL to a GeoJSON","or a GeoJSON object.","When `sourcetype` is set to *vector* or *raster*, `source` can be a URL or","an array of tile URLs.","When `sourcetype` is set to *image*, `source` can be a URL to an image."].join(" ")},sourcelayer:{valType:"string",dflt:"",description:["Specifies the layer to use from a vector tile source (map.layer.source-layer).","Required for *vector* source type that supports multiple layers."].join(" ")},sourceattribution:{valType:"string",description:["Sets the attribution for this source."].join(" ")},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle",description:["Sets the layer type,","that is the how the layer data set in `source` will be rendered","With `sourcetype` set to *geojson*, the following values are allowed:","*circle*, *line*, *fill* and *symbol*.","but note that *line* and *fill* are not compatible with Point","GeoJSON geometries.","With `sourcetype` set to *vector*, the following values are allowed:"," *circle*, *line*, *fill* and *symbol*.","With `sourcetype` set to *raster* or *image*, only the *raster* value is allowed."].join(" ")},coordinates:{valType:"any",description:["Sets the coordinates array contains [longitude, latitude] pairs","for the image corners listed in clockwise order:","top left, top right, bottom right, bottom left.","Only has an effect for *image* `sourcetype`."].join(" ")},below:{valType:"string",description:["Determines if the layer will be inserted","before the layer with the specified ID.","If omitted or set to '',","the layer will be inserted above every existing layer."].join(" ")},color:{valType:"color",dflt:r,description:["Sets the primary layer color.","If `type` is *circle*, color corresponds to the circle color (map.layer.paint.circle-color)","If `type` is *line*, color corresponds to the line color (map.layer.paint.line-color)","If `type` is *fill*, color corresponds to the fill color (map.layer.paint.fill-color)","If `type` is *symbol*, color corresponds to the icon color (map.layer.paint.icon-color)"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,description:["Sets the opacity of the layer.","If `type` is *circle*, opacity corresponds to the circle opacity (map.layer.paint.circle-opacity)","If `type` is *line*, opacity corresponds to the line opacity (map.layer.paint.line-opacity)","If `type` is *fill*, opacity corresponds to the fill opacity (map.layer.paint.fill-opacity)","If `type` is *symbol*, opacity corresponds to the icon/text opacity (map.layer.paint.text-opacity)"].join(" ")},minzoom:{valType:"number",min:0,max:24,dflt:0,description:["Sets the minimum zoom level (map.layer.minzoom).","At zoom levels less than the minzoom, the layer will be hidden."].join(" ")},maxzoom:{valType:"number",min:0,max:24,dflt:24,description:["Sets the maximum zoom level (map.layer.maxzoom).","At zoom levels equal to or greater than the maxzoom, the layer will be hidden."].join(" ")},circle:{radius:{valType:"number",dflt:15,description:["Sets the circle radius (map.layer.paint.circle-radius).","Has an effect only when `type` is set to *circle*."].join(" ")}},line:{width:{valType:"number",dflt:2,description:["Sets the line width (map.layer.paint.line-width).","Has an effect only when `type` is set to *line*."].join(" ")},dash:{valType:"data_array",description:["Sets the length of dashes and gaps (map.layer.paint.line-dasharray).","Has an effect only when `type` is set to *line*."].join(" ")}},fill:{outlinecolor:{valType:"color",dflt:r,description:["Sets the fill outline color (map.layer.paint.fill-outline-color).","Has an effect only when `type` is set to *fill*."].join(" ")}},symbol:{icon:{valType:"string",dflt:"marker",description:["Sets the symbol icon image (map.layer.layout.icon-image).","Full list: https://www.mapbox.com/maki-icons/"].join(" ")},iconsize:{valType:"number",dflt:10,description:["Sets the symbol icon size (map.layer.layout.icon-size).","Has an effect only when `type` is set to *symbol*."].join(" ")},text:{valType:"string",dflt:"",description:["Sets the symbol text (map.layer.layout.text-field)."].join(" ")},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point",description:["Sets the symbol and/or text placement (map.layer.layout.symbol-placement).","If `placement` is *point*, the label is placed where the geometry is located","If `placement` is *line*, the label is placed along the line of the geometry","If `placement` is *line-center*, the label is placed on the center of the geometry"].join(" ")},textfont:u,textposition:n.extendFlat({},o,{arrayOk:!1})}})},"plot","from-root")).uirevision={valType:"any",editType:"none",description:["Controls persistence of user-driven changes in the view:","`center`, `zoom`, `bearing`, `pitch`. Defaults to `layout.uirevision`."].join(" ")}}),h$=Ee((e,t)=>{var{hovertemplateAttrs:n,texttemplateAttrs:r,templatefallbackAttrs:a}=p1(),i=tb(),o=zO(),s=Id(),l=RP(),c=S1(),u=Oc(),d=ms().extendFlat,p=Wu().overrideAll,h=RP(),f=o.line,m=o.marker;t.exports=p({lon:o.lon,lat:o.lat,cluster:{enabled:{valType:"boolean",description:"Determines whether clustering is enabled or disabled."},maxzoom:d({},h.layers.maxzoom,{description:["Sets the maximum zoom level.","At zoom levels equal to or greater than this, points will never be clustered."].join(" ")}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1,description:["Sets how many points it takes to create a cluster or advance to the next cluster step.","Use this in conjunction with arrays for `size` and / or `color`.","If an integer, steps start at multiples of this number.","If an array, each step extends from the given value until one less than the next value."].join(" ")},size:{valType:"number",arrayOk:!0,dflt:20,min:0,description:["Sets the size for each cluster step."].join(" ")},color:{valType:"color",arrayOk:!0,description:["Sets the color for each cluster step."].join(" ")},opacity:d({},m.opacity,{dflt:1})},mode:d({},s.mode,{dflt:"markers",description:["Determines the drawing mode for this scatter trace.","If the provided `mode` includes *text* then the `text` elements","appear at the coordinates. Otherwise, the `text` elements","appear on hover."].join(" ")}),text:d({},s.text,{description:["Sets text elements associated with each (lon,lat) pair","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (lon,lat) coordinates.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")}),texttemplate:r({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:a({editType:"plot"}),hovertext:d({},s.hovertext,{description:["Sets hover text elements associated with each (lon,lat) pair","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (lon,lat) coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")}),line:{color:f.color,width:f.width},connectgaps:s.connectgaps,marker:d({symbol:{valType:"string",dflt:"circle",arrayOk:!0,description:["Sets the marker symbol.","Full list: https://www.mapbox.com/maki-icons/","Note that the array `marker.color` and `marker.size`","are only available for *circle* symbols."].join(" ")},angle:{valType:"number",dflt:"auto",arrayOk:!0,description:["Sets the marker orientation from true North, in degrees clockwise.","When using the *auto* default, no rotation would be applied","in perspective views which is different from using a zero angle."].join(" ")},allowoverlap:{valType:"boolean",dflt:!1,description:["Flag to draw all symbols, even if they overlap."].join(" ")},opacity:m.opacity,size:m.size,sizeref:m.sizeref,sizemin:m.sizemin,sizemode:m.sizemode},u("marker")),fill:o.fill,fillcolor:i(),textfont:l.layers.symbol.textfont,textposition:l.layers.symbol.textposition,below:{valType:"string",description:["Determines if this scattermap trace's layers are to be inserted","before the layer with the specified ID.","By default, scattermap layers are inserted","above all the base layers.","To place the scattermap layers above every other layer, set `below` to *''*."].join(" ")},selected:{marker:s.selected.marker},unselected:{marker:s.unselected.marker},hoverinfo:d({},c.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:n(),hovertemplatefallback:a()},"calc","nested")}),Xme=Ee((e,t)=>{var n=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];t.exports={isSupportedFont:function(e){return-1!==n.indexOf(e)}}}),Nbt=Ee((e,t)=>{var n=Fr(),r=Hc(),a=Wv(),i=Yg(),o=Zg(),s=ib(),l=h$(),c=Xme().isSupportedFont;t.exports=function(e,t,u,d){function p(r,a){return n.coerce(e,t,l,r,a)}function h(r,a){return n.coerce2(e,t,l,r,a)}var f=function(e,t,n){var r=n("lon")||[],a=n("lat")||[],i=Math.min(r.length,a.length);return t._length=i,i}(0,t,p);if(f){if(p("text"),p("texttemplate"),p("texttemplatefallback"),p("hovertext"),p("hovertemplate"),p("hovertemplatefallback"),p("mode"),p("below"),r.hasMarkers(t)){a(e,t,u,d,p,{noLine:!0,noAngle:!0}),p("marker.allowoverlap"),p("marker.angle");var m=t.marker;"circle"!==m.symbol&&(n.isArrayOrTypedArray(m.size)&&(m.size=m.size[0]),n.isArrayOrTypedArray(m.color)&&(m.color=m.color[0]))}r.hasLines(t)&&(i(e,t,u,d,p,{noDash:!0}),p("connectgaps"));var g=h("cluster.maxzoom"),y=h("cluster.step"),b=h("cluster.color",t.marker&&t.marker.color||u),v=h("cluster.size"),M=h("cluster.opacity");if(p("cluster.enabled",!1!==g||!1!==y||!1!==b||!1!==v||!1!==M)||r.hasText(t)){var x=d.font.family;o(e,t,d,p,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:c(x)?x:"Open Sans Regular",weight:d.font.weight,style:d.font.style,size:d.font.size,color:d.font.color}})}p("fill"),"none"!==t.fill&&s(e,t,u,p),n.coerceSelectionMarkerOpacity(t,p)}else t.visible=!1}}),Zme=Ee((e,t)=>{var n=es();t.exports=function(e,t,r){var a={},i=r[t.subplot]._subplot.mockAxis,o=e.lonlat;return a.lonLabel=n.tickText(i,i.c2l(o[0]),!0).text,a.latLabel=n.tickText(i,i.c2l(o[1]),!0).text,a}}),$me=Ee((e,t)=>{var n=Fr();t.exports=function(e,t){var r=e.split(" "),a=r[0],i=r[1],o=n.isArrayOrTypedArray(t)?n.mean(t):t,s=.5+o/100,l=1.5+o/100,c=["",""],u=[0,0];switch(a){case"top":c[0]="top",u[1]=-l;break;case"bottom":c[0]="bottom",u[1]=l}switch(i){case"left":c[1]="right",u[0]=-s;break;case"right":c[1]="left",u[0]=s}return{anchor:c[0]&&c[1]?c.join("-"):c[0]?c[0]:c[1]?c[1]:"center",offset:u}}}),Ybt=Ee((e,t)=>{var n=xs(),r=Fr(),a=T0().BADNUM,i=E4(),o=xu(),s=vs(),l=iS(),c=Hc(),u=Xme().isSupportedFont,d=$me(),p=fm().appendArrayPointValue,h=q1().NEWLINES,f=q1().BR_TAG_ALL;function m(e){return{type:e,geojson:i.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function g(e,t){return r.isArrayOrTypedArray(e)?t?function(t){return n(e[t])?+e[t]:0}:function(t){return e[t]}:e?function(){return e}:y}function y(){return""}function b(e){return e[0]===a}function v(e,t){var n;if(r.isArrayOrTypedArray(e)&&r.isArrayOrTypedArray(t)){n=["step",["get","point_count"],e[0]];for(var a=1;a<e.length;a++)n.push(t[a-1],e[a])}else n=e;return n}function M(e){var t=e.textfont,n=t.family,r=t.style,a=t.weight,i=n.split(" "),o="Italic"===i[i.length-1];o&&i.pop(),o=o||"italic"===r;var s=i.join(" ");return"bold"===a&&-1===i.indexOf("Bold")?s+=" Bold":a<=1e3&&("Metropolis"===i[0]?(s="Metropolis",s+=a>850?" Black":a>750?" Extra Bold":a>650?" Bold":a>550?" Semi Bold":a>450?" Medium":a>350?" Regular":a>250?" Light":a>150?" Extra Light":" Thin"):"Open Sans"===i.slice(0,2).join(" ")?(s="Open Sans",s+=a>750?" Extrabold":a>650?" Bold":a>550?" Semibold":a>350?" Regular":" Light"):"Klokantech Noto Sans"===i.slice(0,3).join(" ")&&(s="Klokantech Noto Sans","CJK"===i[3]&&(s+=" CJK"),s+=a>500?" Bold":" Regular")),o&&(s+=" Italic"),"Open Sans Regular Italic"===s?s="Open Sans Italic":"Open Sans Regular Bold"===s?s="Open Sans Bold":"Open Sans Regular Bold Italic"===s?s="Open Sans Bold Italic":"Klokantech Noto Sans Regular Italic"===s&&(s="Klokantech Noto Sans Italic"),u(s)||(s=n),s.split(", ")}t.exports=function(e,t){var a,u=t[0].trace,x=!0===u.visible&&0!==u._length,z="none"!==u.fill,_=c.hasLines(u),A=c.hasMarkers(u),O=c.hasText(u),w=A&&"circle"===u.marker.symbol,k=A&&"circle"!==u.marker.symbol,T=u.cluster&&u.cluster.enabled,S=m("fill"),C=m("line"),E=m("circle"),q=m("symbol"),D={fill:S,line:C,circle:E,symbol:q};if(!x)return D;if((z||_)&&(a=i.calcTraceToLineCoords(t)),z&&(S.geojson=i.makePolygon(a),S.layout.visibility="visible",r.extendFlat(S.paint,{"fill-color":u.fillcolor})),_&&(C.geojson=i.makeLine(a),C.layout.visibility="visible",r.extendFlat(C.paint,{"line-width":u.line.width,"line-color":u.line.color,"line-opacity":u.opacity})),w){var R=function(e){var t,a,i,c,u=e[0].trace,d=u.marker,p=u.selectedpoints,h=r.isArrayOrTypedArray(d.color),f=r.isArrayOrTypedArray(d.size),m=r.isArrayOrTypedArray(d.opacity);function g(e){return u.opacity*e}function y(e){return e/2}h&&(a=o.hasColorscale(u,"marker")?o.makeColorScaleFuncFromTrace(d):r.identity),f&&(i=l(u)),m&&(c=function(e){return g(n(e)?+r.constrain(e,0,1):0)});var v,M=[];for(t=0;t<e.length;t++){var x=e[t],z=x.lonlat;if(!b(z)){var _={};a&&(_.mcc=x.mcc=a(x.mc)),i&&(_.mrc=x.mrc=i(x.ms)),c&&(_.mo=c(x.mo)),p&&(_.selected=x.selected||0),M.push({type:"Feature",id:t+1,geometry:{type:"Point",coordinates:z},properties:_})}}if(p)for(v=s.makeSelectedPointStyleFns(u),t=0;t<M.length;t++){var A=M[t].properties;v.selectedOpacityFn&&(A.mo=g(v.selectedOpacityFn(A))),v.selectedColorFn&&(A.mcc=v.selectedColorFn(A)),v.selectedSizeFn&&(A.mrc=v.selectedSizeFn(A))}return{geojson:{type:"FeatureCollection",features:M},mcc:h||v&&v.selectedColorFn?{type:"identity",property:"mcc"}:d.color,mrc:f||v&&v.selectedSizeFn?{type:"identity",property:"mrc"}:y(d.size),mo:m||v&&v.selectedOpacityFn?{type:"identity",property:"mo"}:g(d.opacity)}}(t);E.geojson=R.geojson,E.layout.visibility="visible",T&&(E.filter=["!",["has","point_count"]],D.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":v(u.cluster.color,u.cluster.step),"circle-radius":v(u.cluster.size,u.cluster.step),"circle-opacity":v(u.cluster.opacity,u.cluster.step)}},D.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":M(u),"text-size":12}}),r.extendFlat(E.paint,{"circle-color":R.mcc,"circle-radius":R.mrc,"circle-opacity":R.mo})}if(w&&T&&(E.filter=["!",["has","point_count"]]),(k||O)&&(q.geojson=function(e,t){for(var n=t._fullLayout,a=e[0].trace,i=a.marker||{},o=i.symbol,s=i.angle,l="circle"!==o?g(o):y,u="auto"!==s?g(s,!0):y,d=c.hasText(a)?g(a.text):y,m=[],v=0;v<e.length;v++){var M=e[v];if(!b(M.lonlat)){var x,z=a.texttemplate;if(z){var _=Array.isArray(z)?z[v]||"":z,A=a._module.formatLabels(M,a,n),O={};p(O,a,M.i),x=r.texttemplateString({data:[O,M,a._meta],fallback:a.texttemplatefallback,labels:A,locale:n._d3locale,template:_})}else x=d(v);x&&(x=x.replace(h,"").replace(f,"\n")),m.push({type:"Feature",geometry:{type:"Point",coordinates:M.lonlat},properties:{symbol:l(v),angle:u(v),text:x}})}}return{type:"FeatureCollection",features:m}}(t,e),r.extendFlat(q.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),k&&(r.extendFlat(q.layout,{"icon-size":u.marker.size/10}),"angle"in u.marker&&"auto"!==u.marker.angle&&r.extendFlat(q.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),q.layout["icon-allow-overlap"]=u.marker.allowoverlap,r.extendFlat(q.paint,{"icon-opacity":u.opacity*u.marker.opacity,"icon-color":u.marker.color})),O)){var L=(u.marker||{}).size,I=d(u.textposition,L);r.extendFlat(q.layout,{"text-size":u.textfont.size,"text-anchor":I.anchor,"text-offset":I.offset,"text-font":M(u)}),r.extendFlat(q.paint,{"text-color":u.textfont.color,"text-opacity":u.opacity})}return D}}),Jbt=Ee((e,t)=>{var n=Fr(),r=Ybt(),a=J4().traceLayerPrefix,i={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function o(e,t,n,r){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=n,this.isHidden=r,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:a+t+"-fill",line:a+t+"-line",circle:a+t+"-circle",symbol:a+t+"-symbol",cluster:a+t+"-cluster",clusterCount:a+t+"-cluster-count"},this.below=null}var s=o.prototype;s.addSource=function(e,t,r){var a={type:"geojson",data:t.geojson};r&&r.enabled&&n.extendFlat(a,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],a)},s.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)},s.addLayer=function(e,t,n){var r={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(r.filter=t.filter);for(var a,i=this.layerIds[e],o=this.subplot.getMapLayers(),s=0;s<o.length;s++)if(o[s].id===i){a=!0;break}a?(this.subplot.setOptions(i,"setLayoutProperty",r.layout),"visible"===r.layout.visibility&&this.subplot.setOptions(i,"setPaintProperty",r.paint)):this.subplot.addLayer(r,n)},s.update=function(e){var t=e[0].trace,n=this.subplot,a=n.map,o=r(n.gd,e),s=n.belowLookup["trace-"+this.uid],l=!(!t.cluster||!t.cluster.enabled),c=!!this.clusterEnabled,u=this;function d(e){c?function(e){for(var t=i.cluster,n=t.length-1;n>=0;n--){var r=t[n];a.removeLayer(u.layerIds[r])}e||a.removeSource(u.sourceIds.circle)}(e):function(e){for(var t=i.nonCluster,n=t.length-1;n>=0;n--){var r=t[n];a.removeLayer(u.layerIds[r]),e||a.removeSource(u.sourceIds[r])}}(e)}function p(e){l?function(e){e||u.addSource("circle",o.circle,t.cluster);for(var n=i.cluster,r=0;r<n.length;r++){var a=n[r],l=o[a];u.addLayer(a,l,s)}}(e):function(e){for(var t=i.nonCluster,n=0;n<t.length;n++){var r=t[n],a=o[r];e||u.addSource(r,a),u.addLayer(r,a,s)}}(e)}var h=this.isHidden,f=!0!==t.visible;f?h||d():h?f||p():c!==l?(d(),p()):(this.below!==s&&(d(!0),p(!0)),function(){for(var e=l?i.cluster:i.nonCluster,t=0;t<e.length;t++){var r=e[t],a=o[r];a&&(n.setOptions(u.layerIds[r],"setLayoutProperty",a.layout),"visible"===a.layout.visibility&&("cluster"!==r&&u.setSourceData(r,a),n.setOptions(u.layerIds[r],"setPaintProperty",a.paint)))}}()),this.clusterEnabled=l,this.isHidden=f,this.below=s,e[0].trace._glTrace=this},s.dispose=function(){for(var e=this.subplot.map,t=this.clusterEnabled?i.cluster:i.nonCluster,n=t.length-1;n>=0;n--){var r=t[n];e.removeLayer(this.layerIds[r]),e.removeSource(this.sourceIds[r])}},t.exports=function(e,t){var n,a,s,l=t[0].trace,c=l.cluster&&l.cluster.enabled,u=!0!==l.visible,d=new o(e,l.uid,c,u),p=r(e.gd,t),h=d.below=e.belowLookup["trace-"+l.uid];if(c)for(d.addSource("circle",p.circle,l.cluster),n=0;n<i.cluster.length;n++)s=p[a=i.cluster[n]],d.addLayer(a,s,h);else for(n=0;n<i.nonCluster.length;n++)s=p[a=i.nonCluster[n]],d.addSource(a,s,l.cluster),d.addLayer(a,s,h);return t[0].trace._glTrace=d,d}}),y$=Ee((e,t)=>{var n=_d(),r=Fr(),a=NS(),i=r.fillText,o=T0().BADNUM,s=J4().traceLayerPrefix;function l(e,t,n){if(!e.hovertemplate){var r=(t.hi||e.hoverinfo).split("+"),a=-1!==r.indexOf("all"),o=-1!==r.indexOf("lon"),s=-1!==r.indexOf("lat"),l=t.lonlat,c=[];return a||o&&s?c.push("("+u(l[1])+", "+u(l[0])+")"):o?c.push(n.lon+u(l[0])):s&&c.push(n.lat+u(l[1])),(a||-1!==r.indexOf("text"))&&i(t,e,c),c.join("<br>")}function u(e){return e+"°"}}t.exports={hoverPoints:function(e,t,i){var c=e.cd,u=c[0].trace,d=e.xa,p=e.ya,h=e.subplot,f=[],m=s+u.uid+"-circle",g=u.cluster&&u.cluster.enabled;if(g){var y=h.map.queryRenderedFeatures(null,{layers:[m]});f=y.map(function(e){return e.id})}var b=360*(t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360)),v=t-b;if(n.getClosest(c,function(e){var t=e.lonlat;if(t[0]===o||g&&-1===f.indexOf(e.i+1))return 1/0;var n=r.modHalf(t[0],360),a=t[1],s=h.project([n,a]),l=s.x-d.c2p([v,a]),c=s.y-p.c2p([n,i]),u=Math.max(3,e.mrc||0);return Math.max(Math.sqrt(l*l+c*c)-u,1-3/u)},e),!1!==e.index){var M=c[e.index],x=M.lonlat,z=[r.modHalf(x[0],360)+b,x[1]],_=d.c2p(z),A=p.c2p(z),O=M.mrc||1;e.x0=_-O,e.x1=_+O,e.y0=A-O,e.y1=A+O;var w={};w[u.subplot]={_subplot:h};var k=u._module.formatLabels(M,u,w);return e.lonLabel=k.lonLabel,e.latLabel=k.latLabel,e.color=a(u,M),e.extraText=l(u,M,c[0].t.labels),e.hovertemplate=u.hovertemplate,[e]}},getExtraText:l}}),r3t=Ee((e,t)=>{t.exports=function(e,t){return e.lon=t.lon,e.lat=t.lat,e}}),a3t=Ee((e,t)=>{var n=Fr(),r=Hc(),a=T0().BADNUM;t.exports=function(e,t){var i,o=e.cd,s=e.xaxis,l=e.yaxis,c=[],u=o[0].trace;if(!r.hasMarkers(u))return[];if(!1===t)for(i=0;i<o.length;i++)o[i].selected=0;else for(i=0;i<o.length;i++){var d=o[i],p=d.lonlat;if(p[0]!==a){var h=[n.modHalf(p[0],360),p[1]],f=[s.c2p(h),l.c2p(h)];t.contains(f,null,i,e)?(c.push({pointNumber:i,lon:p[0],lat:p[1]}),d.selected=1):d.selected=0}}return c}}),o3t=Ee((e,t)=>{var n,r;n=e,r=function(){var e={},t={};function n(n,r,a){if(t[n]=a,"index"===n){var i="var sharedModule = {}; ("+t.shared+")(sharedModule); ("+t.worker+")(sharedModule);",o={};return t.shared(o),t.index(e,o),typeof window<"u"&&e.setWorkerUrl(window.URL.createObjectURL(new Blob([i],{type:"text/javascript"}))),e}}return n("shared",0,function(e){function t(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var r=a;function a(e,t){this.x=e,this.y=t}a.prototype={clone:function(){return new a(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=t,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=n*this.x+t*this.y;return this.x=t*this.x-n*this.y,this.y=r,this},_rotateAround:function(e,t){var n=Math.cos(e),r=Math.sin(e),a=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=t.x+n*(this.x-t.x)-r*(this.y-t.y),this.y=a,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},a.convert=function(e){return e instanceof a?e:Array.isArray(e)?new a(e[0],e[1]):e};var i=n(r),o=s;function s(e,t,n,r){this.cx=3*e,this.bx=3*(n-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=t,this.p2x=n,this.p2y=r}s.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,t){if(void 0===t&&(t=1e-6),e<0)return 0;if(e>1)return 1;for(var n=e,r=0;r<8;r++){var a=this.sampleCurveX(n)-e;if(Math.abs(a)<t)return n;var i=this.sampleCurveDerivativeX(n);if(Math.abs(i)<1e-6)break;n-=a/i}var o=0,s=1;for(n=e,r=0;r<20&&(a=this.sampleCurveX(n),!(Math.abs(a-e)<t));r++)e>a?o=n:s=n,n=.5*(s-o)+o;return n},solve:function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))}};var l=n(o);let c,u;function d(){return null==c&&(c=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof createImageBitmap),c}function p(){if(null==u&&(u=!1,d())){let e=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(e){for(let t=0;t<25;t++){let n=4*t;e.fillStyle=`rgb(${n},${n+1},${n+2})`,e.fillRect(t%5,Math.floor(t/5),1,1)}let t=e.getImageData(0,0,5,5).data;for(let e=0;e<100;e++)if(e%4!=3&&t[e]!==e){u=!0;break}}}return u||!1}function h(e,t,n,r){let a=new l(e,t,n,r);return e=>a.solve(e)}let f=h(.25,.1,.25,1);function m(e,t,n){return Math.min(n,Math.max(t,e))}function g(e,t,n){let r=n-t,a=((e-t)%r+r)%r+t;return a===t?n:a}function y(e,...t){for(let n of t)for(let t in n)e[t]=n[t];return e}let b=1;function v(e,t,n){let r={};for(let n in e)r[n]=t.call(this,e[n],n,e);return r}function M(e,t,n){let r={};for(let n in e)t.call(this,e[n],n,e)&&(r[n]=e[n]);return r}function x(e){return Array.isArray(e)?e.map(x):"object"==typeof e&&e?v(e,x):e}let z={};function _(e){z[e]||(typeof console<"u"&&console.warn(e),z[e]=!0)}function A(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}function O(e){return typeof WorkerGlobalScope<"u"&&void 0!==e&&e instanceof WorkerGlobalScope}let w=null;function k(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}let T="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function S(e,n,r,a,i){return t(this,void 0,void 0,function*(){if(typeof VideoFrame>"u")throw new Error("VideoFrame not supported");let t=new VideoFrame(e,{timestamp:0});try{let o=t?.format;if(!o||!o.startsWith("BGR")&&!o.startsWith("RGB"))throw new Error(`Unrecognized format ${o}`);let s=o.startsWith("BGR"),l=new Uint8ClampedArray(a*i*4);if(yield t.copyTo(l,function(e,t,n,r,a){let i=4*Math.max(-t,0),o=(Math.max(0,n)-n)*r*4+i,s=4*r,l=Math.max(0,t),c=Math.max(0,n);return{rect:{x:l,y:c,width:Math.min(e.width,t+r)-l,height:Math.min(e.height,n+a)-c},layout:[{offset:o,stride:s}]}}(e,n,r,a,i)),s)for(let e=0;e<l.length;e+=4){let t=l[e];l[e]=l[e+2],l[e+2]=t}return l}finally{t.close()}})}let C,E,q="AbortError";function D(){return new Error(q)}let R={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};function L(e){return R.REGISTERED_PROTOCOLS[e.substring(0,e.indexOf("://"))]}let I="global-dispatcher";class W extends Error{constructor(e,t,n,r){super(`AJAXError: ${t} (${e}): ${n}`),this.status=e,this.statusText=t,this.url=n,this.body=r}}let N=()=>O(self)?self.worker&&self.worker.referrer:("blob:"===window.location.protocol?window.parent:window).location.href,P=function(e,n){if(/:\/\//.test(e.url)&&!/^https?:|^file:/.test(e.url)){let t=L(e.url);if(t)return t(e,n);if(O(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:e,targetMapId:I},n)}if(!(/^file:/.test(r=e.url)||/^file:/.test(N())&&!/^\w+:/.test(r))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return function(e,n){return t(this,void 0,void 0,function*(){let t=new Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,cache:e.cache,referrer:N(),signal:n.signal});"json"!==e.type||t.headers.has("Accept")||t.headers.set("Accept","application/json");let r,a=yield fetch(t);if(!a.ok){let t=yield a.blob();throw new W(a.status,a.statusText,e.url,t)}r="arrayBuffer"===e.type||"image"===e.type?a.arrayBuffer():"json"===e.type?a.json():a.text();let i=yield r;if(n.signal.aborted)throw D();return{data:i,cacheControl:a.headers.get("Cache-Control"),expires:a.headers.get("Expires")}})}(e,n);if(O(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:e,mustQueue:!0,targetMapId:I},n)}var r,a,i;return a=e,i=n,new Promise((e,t)=>{var n;let r=new XMLHttpRequest;r.open(a.method||"GET",a.url,!0),"arrayBuffer"!==a.type&&"image"!==a.type||(r.responseType="arraybuffer");for(let e in a.headers)r.setRequestHeader(e,a.headers[e]);"json"===a.type&&(r.responseType="text",!(null===(n=a.headers)||void 0===n)&&n.Accept||r.setRequestHeader("Accept","application/json")),r.withCredentials="include"===a.credentials,r.onerror=()=>{t(new Error(r.statusText))},r.onload=()=>{if(!i.signal.aborted)if((r.status>=200&&r.status<300||0===r.status)&&null!==r.response){let n=r.response;if("json"===a.type)try{n=JSON.parse(r.response)}catch(e){return void t(e)}e({data:n,cacheControl:r.getResponseHeader("Cache-Control"),expires:r.getResponseHeader("Expires")})}else{let e=new Blob([r.response],{type:r.getResponseHeader("Content-Type")});t(new W(r.status,r.statusText,a.url,e))}},i.signal.addEventListener("abort",()=>{r.abort(),t(D())}),r.send(a.body)})};function B(e){if(!e||e.indexOf("://")<=0||0===e.indexOf("data:image/")||0===e.indexOf("blob:"))return!0;let t=new URL(e),n=window.location;return t.protocol===n.protocol&&t.host===n.host}function F(e,t,n){n[e]&&-1!==n[e].indexOf(t)||(n[e]=n[e]||[],n[e].push(t))}function j(e,t,n){if(n&&n[e]){let r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}class U{constructor(e,t={}){y(this,t),this.type=e}}class V extends U{constructor(e,t={}){super("error",y({error:e},t))}}class H{on(e,t){return this._listeners=this._listeners||{},F(e,t,this._listeners),this}off(e,t){return j(e,t,this._listeners),j(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners=this._oneTimeListeners||{},F(e,t,this._oneTimeListeners),this):new Promise(t=>this.once(e,t))}fire(e,t){"string"==typeof e&&(e=new U(e,t||{}));let n=e.type;if(this.listens(n)){e.target=this;let t=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];for(let n of t)n.call(this,e);let r=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];for(let t of r)j(n,t,this._oneTimeListeners),t.call(this,e);let a=this._eventedParent;a&&(y(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),a.fire(e))}else e instanceof V&&console.error(e.error);return this}listens(e){return this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}}var X={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};let G=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Y(e,t){let n={};for(let t in e)"ref"!==t&&(n[t]=e[t]);return G.forEach(e=>{e in t&&(n[e]=t[e])}),n}function Z(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Z(e[n],t[n]))return!1;return!0}if("object"==typeof e&&null!==e&&null!==t){if("object"!=typeof t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(!Z(e[n],t[n]))return!1;return!0}return e===t}function $(e,t){e.push(t)}function J(e,t,n){$(n,{command:"addSource",args:[e,t[e]]})}function Q(e,t,n){$(t,{command:"removeSource",args:[e]}),n[e]=!0}function K(e,t,n,r){Q(e,n,r),J(e,t,n)}function ee(e,t,n){let r;for(r in e[n])if(Object.prototype.hasOwnProperty.call(e[n],r)&&"data"!==r&&!Z(e[n][r],t[n][r]))return!1;for(r in t[n])if(Object.prototype.hasOwnProperty.call(t[n],r)&&"data"!==r&&!Z(e[n][r],t[n][r]))return!1;return!0}function te(e,t,n,r,a,i){e=e||{},t=t||{};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Z(e[o],t[o])||n.push({command:i,args:[r,o,t[o],a]}));for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!Object.prototype.hasOwnProperty.call(e,o)&&(Z(e[o],t[o])||n.push({command:i,args:[r,o,t[o],a]}))}function ne(e){return e.id}function re(e,t){return e[t.id]=t,e}class ae{constructor(e,t,n,r){this.message=(e?`${e}: `:"")+n,r&&(this.identifier=r),null!=t&&t.__line__&&(this.line=t.__line__)}}function ie(e,...t){for(let n of t)for(let t in n)e[t]=n[t];return e}class oe extends Error{constructor(e,t){super(t),this.message=t,this.key=e}}class se{constructor(e,t=[]){this.parent=e,this.bindings={};for(let[e,n]of t)this.bindings[e]=n}concat(e){return new se(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}let le={kind:"null"},ce={kind:"number"},ue={kind:"string"},de={kind:"boolean"},pe={kind:"color"},he={kind:"object"},fe={kind:"value"},me={kind:"collator"},ge={kind:"formatted"},ye={kind:"padding"},be={kind:"resolvedImage"},ve={kind:"variableAnchorOffsetCollection"};function Me(e,t){return{kind:"array",itemType:e,N:t}}function xe(e){if("array"===e.kind){let t=xe(e.itemType);return"number"==typeof e.N?`array<${t}, ${e.N}>`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}let ze=[le,ce,ue,de,pe,ge,he,Me(fe),ye,be,ve];function _e(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!_e(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(let e of ze)if(!_e(e,t))return null}return`Expected ${xe(e)} but found ${xe(t)} instead.`}function Ae(e,t){return t.some(t=>t.kind===e.kind)}function Oe(e,t){return t.some(t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e)}function we(e,t){return"array"===e.kind&&"array"===t.kind?e.itemType.kind===t.itemType.kind&&"number"==typeof e.N:e.kind===t.kind}let ke=.96422,Te=.82521,Se=4/29,Ce=6/29,Ee=3*Ce*Ce,qe=Ce*Ce*Ce,De=Math.PI/180,Re=180/Math.PI;function Le(e){return(e%=360)<0&&(e+=360),e}function Ie([e,t,n,r]){let a,i,o=Ne((.2225045*(e=We(e))+.7168786*(t=We(t))+.0606169*(n=We(n)))/1);e===t&&t===n?a=i=o:(a=Ne((.4360747*e+.3850649*t+.1430804*n)/ke),i=Ne((.0139322*e+.0971045*t+.7141733*n)/Te));let s=116*o-16;return[s<0?0:s,500*(a-o),200*(o-i),r]}function We(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ne(e){return e>qe?Math.pow(e,1/3):e/Ee+Se}function Pe([e,t,n,r]){let a=(e+16)/116,i=isNaN(t)?a:a+t/500,o=isNaN(n)?a:a-n/200;return a=1*Fe(a),i=ke*Fe(i),o=Te*Fe(o),[Be(3.1338561*i-1.6168667*a-.4906146*o),Be(-.9787684*i+1.9161415*a+.033454*o),Be(.0719453*i-.2289914*a+1.4052427*o),r]}function Be(e){return(e=e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055)<0?0:e>1?1:e}function Fe(e){return e>Ce?e*e*e:Ee*(e-Se)}function je(e){return parseInt(e.padEnd(2,e),16)/255}function Ue(e,t){return Ve(t?e/100:e,0,1)}function Ve(e,t,n){return Math.min(Math.max(t,e),n)}function He(e){return!e.some(Number.isNaN)}let Xe={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class Ge{constructor(e,t,n,r=1,a=!0){this.r=e,this.g=t,this.b=n,this.a=r,a||(this.r*=r,this.g*=r,this.b*=r,r||this.overwriteGetter("rgb",[e,t,n,r]))}static parse(e){if(e instanceof Ge)return e;if("string"!=typeof e)return;let t=function(e){if("transparent"===(e=e.toLowerCase().trim()))return[0,0,0,0];let t=Xe[e];if(t){let[e,n,r]=t;return[e/255,n/255,r/255,1]}if(e.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(e)){let t=e.length<6?1:2,n=1;return[je(e.slice(n,n+=t)),je(e.slice(n,n+=t)),je(e.slice(n,n+=t)),je(e.slice(n,n+t)||"ff")]}if(e.startsWith("rgb")){let t=e.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(t){let[e,n,r,a,i,o,s,l,c,u,d,p]=t,h=[a||" ",s||" ",u].join("");if(" "===h||" /"===h||",,"===h||",,,"===h){let e=[r,o,c].join(""),t="%%%"===e?100:""===e?255:0;if(t){let e=[Ve(+n/t,0,1),Ve(+i/t,0,1),Ve(+l/t,0,1),d?Ue(+d,p):1];if(He(e))return e}}return}}let n=e.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(n){let[e,t,r,a,i,o,s,l,c]=n,u=[r||" ",i||" ",s].join("");if(" "===u||" /"===u||",,"===u||",,,"===u){let e=[+t,Ve(+a,0,100),Ve(+o,0,100),l?Ue(+l,c):1];if(He(e))return function([e,t,n,r]){function a(r){let a=(r+e/30)%12,i=t*Math.min(n,1-n);return n-i*Math.max(-1,Math.min(a-3,9-a,1))}return e=Le(e),t/=100,n/=100,[a(0),a(8),a(4),r]}(e)}}}(e);return t?new Ge(...t,!1):void 0}get rgb(){let{r:e,g:t,b:n,a:r}=this,a=r||1/0;return this.overwriteGetter("rgb",[e/a,t/a,n/a,r])}get hcl(){return this.overwriteGetter("hcl",function(e){let[t,n,r,a]=Ie(e),i=Math.sqrt(n*n+r*r);return[Math.round(1e4*i)?Le(Math.atan2(r,n)*Re):NaN,i,t,a]}(this.rgb))}get lab(){return this.overwriteGetter("lab",Ie(this.rgb))}overwriteGetter(e,t){return Object.defineProperty(this,e,{value:t}),t}toString(){let[e,t,n,r]=this.rgb;return`rgba(${[e,t,n].map(e=>Math.round(255*e)).join(",")},${r})`}}Ge.black=new Ge(0,0,0,1),Ge.white=new Ge(1,1,1,1),Ge.transparent=new Ge(0,0,0,0),Ge.red=new Ge(1,0,0,1);class Ye{constructor(e,t,n){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Ze{constructor(e,t,n,r,a){this.text=e,this.image=t,this.scale=n,this.fontStack=r,this.textColor=a}}class $e{constructor(e){this.sections=e}static fromString(e){return new $e([new Ze(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(e=>0!==e.text.length||e.image&&0!==e.image.name.length)}static factory(e){return e instanceof $e?e:$e.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map(e=>e.text).join("")}}class Je{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof Je)return e;if("number"==typeof e)return new Je([e,e,e,e]);if(Array.isArray(e)&&!(e.length<1||e.length>4)){for(let t of e)if("number"!=typeof t)return;switch(e.length){case 1:e=[e[0],e[0],e[0],e[0]];break;case 2:e=[e[0],e[1],e[0],e[1]];break;case 3:e=[e[0],e[1],e[2],e[1]]}return new Je(e)}}toString(){return JSON.stringify(this.values)}}let Qe=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class Ke{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof Ke)return e;if(Array.isArray(e)&&!(e.length<1)&&e.length%2==0){for(let t=0;t<e.length;t+=2){let n=e[t],r=e[t+1];if("string"!=typeof n||!Qe.has(n)||!Array.isArray(r)||2!==r.length||"number"!=typeof r[0]||"number"!=typeof r[1])return}return new Ke(e)}}toString(){return JSON.stringify(this.values)}}class et{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new et({name:e,available:!1}):null}}function tt(e,t,n,r){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:`Invalid rgba value [${[e,t,n,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof r?[e,t,n,r]:[e,t,n]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function nt(e){if(null===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||e instanceof Ge||e instanceof Ye||e instanceof $e||e instanceof Je||e instanceof Ke||e instanceof et)return!0;if(Array.isArray(e)){for(let t of e)if(!nt(t))return!1;return!0}if("object"==typeof e){for(let t in e)if(!nt(e[t]))return!1;return!0}return!1}function rt(e){if(null===e)return le;if("string"==typeof e)return ue;if("boolean"==typeof e)return de;if("number"==typeof e)return ce;if(e instanceof Ge)return pe;if(e instanceof Ye)return me;if(e instanceof $e)return ge;if(e instanceof Je)return ye;if(e instanceof Ke)return ve;if(e instanceof et)return be;if(Array.isArray(e)){let t,n=e.length;for(let n of e){let e=rt(n);if(t){if(t===e)continue;t=fe;break}t=e}return Me(t||fe,n)}return he}function at(e){let t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof Ge||e instanceof $e||e instanceof Je||e instanceof Ke||e instanceof et?e.toString():JSON.stringify(e)}class it{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(2!==e.length)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!nt(e[1]))return t.error("invalid value");let n=e[1],r=rt(n),a=t.expectedType;return"array"!==r.kind||0!==r.N||!a||"array"!==a.kind||"number"==typeof a.N&&0!==a.N||(r=a),new it(r,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class ot{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}let st={string:ue,number:ce,boolean:de,object:he};class lt{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let n,r=1,a=e[0];if("array"===a){let a,i;if(e.length>2){let n=e[1];if("string"!=typeof n||!(n in st)||"object"===n)return t.error('The item type argument of "array" must be one of string, number, boolean',1);a=st[n],r++}else a=fe;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);i=e[2],r++}n=Me(a,i)}else{if(!st[a])throw new Error(`Types doesn't contain name = ${a}`);n=st[a]}let i=[];for(;r<e.length;r++){let n=t.parse(e[r],r,fe);if(!n)return null;i.push(n)}return new lt(n,i)}evaluate(e){for(let t=0;t<this.args.length;t++){let n=this.args[t].evaluate(e);if(!_e(this.type,rt(n)))return n;if(t===this.args.length-1)throw new ot(`Expected value to be of type ${xe(this.type)}, but found ${xe(rt(n))} instead.`)}throw new Error}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}}let ct={"to-boolean":de,"to-color":pe,"to-number":ce,"to-string":ue};class ut{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let n=e[0];if(!ct[n])throw new Error(`Can't parse ${n} as it is not part of the known types`);if(("to-boolean"===n||"to-string"===n)&&2!==e.length)return t.error("Expected one argument.");let r=ct[n],a=[];for(let n=1;n<e.length;n++){let r=t.parse(e[n],n,fe);if(!r)return null;a.push(r)}return new ut(r,a)}evaluate(e){switch(this.type.kind){case"boolean":return!!this.args[0].evaluate(e);case"color":{let t,n;for(let r of this.args){if(t=r.evaluate(e),n=null,t instanceof Ge)return t;if("string"==typeof t){let n=e.parseColor(t);if(n)return n}else if(Array.isArray(t)&&(n=t.length<3||t.length>4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:tt(t[0],t[1],t[2],t[3]),!n))return new Ge(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new ot(n||`Could not parse color from value '${"string"==typeof t?t:JSON.stringify(t)}'`)}case"padding":{let t;for(let n of this.args){t=n.evaluate(e);let r=Je.parse(t);if(r)return r}throw new ot(`Could not parse padding from value '${"string"==typeof t?t:JSON.stringify(t)}'`)}case"variableAnchorOffsetCollection":{let t;for(let n of this.args){t=n.evaluate(e);let r=Ke.parse(t);if(r)return r}throw new ot(`Could not parse variableAnchorOffsetCollection from value '${"string"==typeof t?t:JSON.stringify(t)}'`)}case"number":{let t=null;for(let n of this.args){if(t=n.evaluate(e),null===t)return 0;let r=Number(t);if(!isNaN(r))return r}throw new ot(`Could not convert ${JSON.stringify(t)} to number.`)}case"formatted":return $e.fromString(at(this.args[0].evaluate(e)));case"resolvedImage":return et.fromString(at(this.args[0].evaluate(e)));default:return at(this.args[0].evaluate(e))}}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}}let dt=["Unknown","Point","LineString","Polygon"];class pt{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?dt[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=Ge.parse(e)),t}}class ht{constructor(e,t,n=[],r,a=new se,i=[]){this.registry=e,this.path=n,this.key=n.map(e=>`[${e}]`).join(""),this.scope=a,this.errors=i,this.expectedType=r,this._isConstant=t}parse(e,t,n,r,a={}){return t?this.concat(t,n,r)._parse(e,a):this._parse(e,a)}_parse(e,t){function n(e,t,n){return"assert"===n?new lt(t,[e]):"coerce"===n?new ut(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let r=e[0];if("string"!=typeof r)return this.error(`Expression name must be a string, but found ${typeof r} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let a=this.registry[r];if(a){let r=a.parse(e,this);if(!r)return null;if(this.expectedType){let e=this.expectedType,a=r.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==a.kind)if("color"!==e.kind&&"formatted"!==e.kind&&"resolvedImage"!==e.kind||"value"!==a.kind&&"string"!==a.kind)if("padding"!==e.kind||"value"!==a.kind&&"number"!==a.kind&&"array"!==a.kind)if("variableAnchorOffsetCollection"!==e.kind||"value"!==a.kind&&"array"!==a.kind){if(this.checkSubtype(e,a))return null}else r=n(r,e,t.typeAnnotation||"coerce");else r=n(r,e,t.typeAnnotation||"coerce");else r=n(r,e,t.typeAnnotation||"coerce");else r=n(r,e,t.typeAnnotation||"assert")}if(!(r instanceof it)&&"resolvedImage"!==r.type.kind&&this._isConstant(r)){let e=new pt;try{r=new it(r.type,r.evaluate(e))}catch(e){return this.error(e.message),null}}return r}return this.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===e?"'undefined' value invalid. Use null instead.":"object"==typeof e?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,t,n){let r="number"==typeof e?this.path.concat(e):this.path,a=n?this.scope.concat(n):this.scope;return new ht(this.registry,this._isConstant,r,t||null,a,this.errors)}error(e,...t){let n=`${this.key}${t.map(e=>`[${e}]`).join("")}`;this.errors.push(new oe(n,e))}checkSubtype(e,t){let n=_e(e,t);return n&&this.error(n),n}}class ft{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(let t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);let n=[];for(let r=1;r<e.length-1;r+=2){let a=e[r];if("string"!=typeof a)return t.error(`Expected string, but found ${typeof a} instead.`,r);if(/[^a-zA-Z0-9_]/.test(a))return t.error("Variable names must contain only alphanumeric characters or '_'.",r);let i=t.parse(e[r+1],r+1);if(!i)return null;n.push([a,i])}let r=t.parse(e[e.length-1],e.length-1,t.expectedType,n);return r?new ft(n,r):null}outputDefined(){return this.result.outputDefined()}}class mt{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");let n=e[1];return t.scope.has(n)?new mt(n,t.scope.get(n)):t.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}}class gt{constructor(e,t,n){this.type=e,this.index=t,this.input=n}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);let n=t.parse(e[1],1,ce),r=t.parse(e[2],2,Me(t.expectedType||fe));return n&&r?new gt(r.type.itemType,n,r):null}evaluate(e){let t=this.index.evaluate(e),n=this.input.evaluate(e);if(t<0)throw new ot(`Array index out of bounds: ${t} < 0.`);if(t>=n.length)throw new ot(`Array index out of bounds: ${t} > ${n.length-1}.`);if(t!==Math.floor(t))throw new ot(`Array index must be an integer, but found ${t} instead.`);return n[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}}class yt{constructor(e,t){this.type=de,this.needle=e,this.haystack=t}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);let n=t.parse(e[1],1,fe),r=t.parse(e[2],2,fe);return n&&r?Ae(n.type,[de,ue,ce,le,fe])?new yt(n,r):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${xe(n.type)} instead`):null}evaluate(e){let t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!n)return!1;if(!Oe(t,["boolean","string","number","null"]))throw new ot(`Expected first argument to be of type boolean, string, number or null, but found ${xe(rt(t))} instead.`);if(!Oe(n,["string","array"]))throw new ot(`Expected second argument to be of type array or string, but found ${xe(rt(n))} instead.`);return n.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}}class bt{constructor(e,t,n){this.type=ce,this.needle=e,this.haystack=t,this.fromIndex=n}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);let n=t.parse(e[1],1,fe),r=t.parse(e[2],2,fe);if(!n||!r)return null;if(!Ae(n.type,[de,ue,ce,le,fe]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${xe(n.type)} instead`);if(4===e.length){let a=t.parse(e[3],3,ce);return a?new bt(n,r,a):null}return new bt(n,r)}evaluate(e){let t,n=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(!Oe(n,["boolean","string","number","null"]))throw new ot(`Expected first argument to be of type boolean, string, number or null, but found ${xe(rt(n))} instead.`);if(this.fromIndex&&(t=this.fromIndex.evaluate(e)),Oe(r,["string"])){let e=r.indexOf(n,t);return-1===e?-1:[...r.slice(0,e)].length}if(Oe(r,["array"]))return r.indexOf(n,t);throw new ot(`Expected second argument to be of type array or string, but found ${xe(rt(r))} instead.`)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}}class vt{constructor(e,t,n,r,a,i){this.inputType=e,this.type=t,this.input=n,this.cases=r,this.outputs=a,this.otherwise=i}static parse(e,t){if(e.length<5)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return t.error("Expected an even number of arguments.");let n,r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);let a={},i=[];for(let o=2;o<e.length-1;o+=2){let s=e[o],l=e[o+1];Array.isArray(s)||(s=[s]);let c=t.concat(o);if(0===s.length)return c.error("Expected at least one branch label.");for(let e of s){if("number"!=typeof e&&"string"!=typeof e)return c.error("Branch labels must be numbers or strings.");if("number"==typeof e&&Math.abs(e)>Number.MAX_SAFE_INTEGER)return c.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return c.error("Numeric branch labels must be integer values.");if(n){if(c.checkSubtype(n,rt(e)))return null}else n=rt(e);if(void 0!==a[String(e)])return c.error("Branch labels must be unique.");a[String(e)]=i.length}let u=t.parse(l,o,r);if(!u)return null;r=r||u.type,i.push(u)}let o=t.parse(e[1],1,fe);if(!o)return null;let s=t.parse(e[e.length-1],e.length-1,r);return s?"value"!==o.type.kind&&t.concat(1).checkSubtype(n,o.type)?null:new vt(n,r,o,a,i,s):null}evaluate(e){let t=this.input.evaluate(e);return(rt(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}}class Mt{constructor(e,t,n){this.type=e,this.branches=t,this.otherwise=n}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return t.error("Expected an odd number of arguments.");let n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);let r=[];for(let a=1;a<e.length-1;a+=2){let i=t.parse(e[a],a,de);if(!i)return null;let o=t.parse(e[a+1],a+1,n);if(!o)return null;r.push([i,o]),n=n||o.type}let a=t.parse(e[e.length-1],e.length-1,n);if(!a)return null;if(!n)throw new Error("Can't infer output type");return new Mt(n,r,a)}evaluate(e){for(let[t,n]of this.branches)if(t.evaluate(e))return n.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(let[t,n]of this.branches)e(t),e(n);e(this.otherwise)}outputDefined(){return this.branches.every(([e,t])=>t.outputDefined())&&this.otherwise.outputDefined()}}class xt{constructor(e,t,n,r){this.type=e,this.input=t,this.beginIndex=n,this.endIndex=r}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);let n=t.parse(e[1],1,fe),r=t.parse(e[2],2,ce);if(!n||!r)return null;if(!Ae(n.type,[Me(fe),ue,fe]))return t.error(`Expected first argument to be of type array or string, but found ${xe(n.type)} instead`);if(4===e.length){let a=t.parse(e[3],3,ce);return a?new xt(n.type,n,r,a):null}return new xt(n.type,n,r)}evaluate(e){let t,n=this.input.evaluate(e),r=this.beginIndex.evaluate(e);if(this.endIndex&&(t=this.endIndex.evaluate(e)),Oe(n,["string"]))return[...n].slice(r,t).join("");if(Oe(n,["array"]))return n.slice(r,t);throw new ot(`Expected first argument to be of type array or string, but found ${xe(rt(n))} instead.`)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}}function zt(e,t){let n,r,a=e.length-1,i=0,o=a,s=0;for(;i<=o;)if(s=Math.floor((i+o)/2),n=e[s],r=e[s+1],n<=t){if(s===a||t<r)return s;i=s+1}else{if(!(n>t))throw new ot("Input is not a number.");o=s-1}return 0}class _t{constructor(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(let[e,t]of n)this.labels.push(e),this.outputs.push(t)}static parse(e,t){if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");let n=t.parse(e[1],1,ce);if(!n)return null;let r=[],a=null;t.expectedType&&"value"!==t.expectedType.kind&&(a=t.expectedType);for(let n=1;n<e.length;n+=2){let i=1===n?-1/0:e[n],o=e[n+1],s=n,l=n+1;if("number"!=typeof i)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',s);if(r.length&&r[r.length-1][0]>=i)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',s);let c=t.parse(o,l,a);if(!c)return null;a=a||c.type,r.push([i,c])}return new _t(a,n,r)}evaluate(e){let t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);let r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);let a=t.length;return r>=t[a-1]?n[a-1].evaluate(e):n[zt(t,r)].evaluate(e)}eachChild(e){e(this.input);for(let t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}}var At=Ot;function Ot(e,t,n,r){this.cx=3*e,this.bx=3*(n-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=t,this.p2x=n,this.p2y=r}Ot.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,t){if(void 0===t&&(t=1e-6),e<0)return 0;if(e>1)return 1;for(var n=e,r=0;r<8;r++){var a=this.sampleCurveX(n)-e;if(Math.abs(a)<t)return n;var i=this.sampleCurveDerivativeX(n);if(Math.abs(i)<1e-6)break;n-=a/i}var o=0,s=1;for(n=e,r=0;r<20&&(a=this.sampleCurveX(n),!(Math.abs(a-e)<t));r++)e>a?o=n:s=n,n=.5*(s-o)+o;return n},solve:function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))}};var wt,kt=(wt=At)&&wt.__esModule&&Object.prototype.hasOwnProperty.call(wt,"default")?wt.default:wt;function Tt(e,t,n){return e+n*(t-e)}function St(e,t,n){return e.map((e,r)=>Tt(e,t[r],n))}let Ct={number:Tt,color:function(e,t,n,r="rgb"){switch(r){case"rgb":{let[r,a,i,o]=St(e.rgb,t.rgb,n);return new Ge(r,a,i,o,!1)}case"hcl":{let r,a,[i,o,s,l]=e.hcl,[c,u,d,p]=t.hcl;if(isNaN(i)||isNaN(c))isNaN(i)?isNaN(c)?r=NaN:(r=c,1!==s&&0!==s||(a=u)):(r=i,1!==d&&0!==d||(a=o));else{let e=c-i;c>i&&e>180?e-=360:c<i&&i-c>180&&(e+=360),r=i+n*e}let[h,f,m,g]=function([e,t,n,r]){return e=isNaN(e)?0:e*De,Pe([n,Math.cos(e)*t,Math.sin(e)*t,r])}([r,a??Tt(o,u,n),Tt(s,d,n),Tt(l,p,n)]);return new Ge(h,f,m,g,!1)}case"lab":{let[r,a,i,o]=Pe(St(e.lab,t.lab,n));return new Ge(r,a,i,o,!1)}}},array:St,padding:function(e,t,n){return new Je(St(e.values,t.values,n))},variableAnchorOffsetCollection:function(e,t,n){let r=e.values,a=t.values;if(r.length!==a.length)throw new ot(`Cannot interpolate values of different length. from: ${e.toString()}, to: ${t.toString()}`);let i=[];for(let e=0;e<r.length;e+=2){if(r[e]!==a[e])throw new ot(`Cannot interpolate values containing mismatched anchors. from[${e}]: ${r[e]}, to[${e}]: ${a[e]}`);i.push(r[e]);let[t,o]=r[e+1],[s,l]=a[e+1];i.push([Tt(t,s,n),Tt(o,l,n)])}return new Ke(i)}};class Et{constructor(e,t,n,r,a){this.type=e,this.operator=t,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(let[e,t]of a)this.labels.push(e),this.outputs.push(t)}static interpolationFactor(e,t,n,r){let a=0;if("exponential"===e.name)a=qt(t,e.base,n,r);else if("linear"===e.name)a=qt(t,1,n,r);else if("cubic-bezier"===e.name){let i=e.controlPoints;a=new kt(i[0],i[1],i[2],i[3]).solve(qt(t,1,n,r))}return a}static parse(e,t){let[n,r,a,...i]=e;if(!Array.isArray(r)||0===r.length)return t.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){let e=r[1];if("number"!=typeof e)return t.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:e}}else{if("cubic-bezier"!==r[0])return t.error(`Unknown interpolation type ${String(r[0])}`,1,0);{let e=r.slice(1);if(4!==e.length||e.some(e=>"number"!=typeof e||e<0||e>1))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:e}}}if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(a=t.parse(a,2,ce),!a)return null;let o=[],s=null;"interpolate-hcl"===n||"interpolate-lab"===n?s=pe:t.expectedType&&"value"!==t.expectedType.kind&&(s=t.expectedType);for(let e=0;e<i.length;e+=2){let n=i[e],r=i[e+1],a=e+3,l=e+4;if("number"!=typeof n)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',a);if(o.length&&o[o.length-1][0]>=n)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',a);let c=t.parse(r,l,s);if(!c)return null;s=s||c.type,o.push([n,c])}return we(s,ce)||we(s,pe)||we(s,ye)||we(s,ve)||we(s,Me(ce))?new Et(s,n,r,a,o):t.error(`Type ${xe(s)} is not interpolatable.`)}evaluate(e){let t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);let r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);let a=t.length;if(r>=t[a-1])return n[a-1].evaluate(e);let i=zt(t,r),o=Et.interpolationFactor(this.interpolation,r,t[i],t[i+1]),s=n[i].evaluate(e),l=n[i+1].evaluate(e);switch(this.operator){case"interpolate":return Ct[this.type.kind](s,l,o);case"interpolate-hcl":return Ct.color(s,l,o,"hcl");case"interpolate-lab":return Ct.color(s,l,o,"lab")}}eachChild(e){e(this.input);for(let t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}}function qt(e,t,n,r){let a=r-n,i=e-n;return 0===a?0:1===t?i/a:(Math.pow(t,i)-1)/(Math.pow(t,a)-1)}class Dt{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expectected at least one argument.");let n=null,r=t.expectedType;r&&"value"!==r.kind&&(n=r);let a=[];for(let r of e.slice(1)){let e=t.parse(r,1+a.length,n,void 0,{typeAnnotation:"omit"});if(!e)return null;n=n||e.type,a.push(e)}if(!n)throw new Error("No output type");let i=r&&a.some(e=>_e(r,e.type));return new Dt(i?fe:n,a)}evaluate(e){let t,n=null,r=0;for(let a of this.args)if(r++,n=a.evaluate(e),n&&n instanceof et&&!n.available&&(t||(t=n.name),n=null,r===this.args.length&&(n=t)),null!==n)break;return n}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}}function Rt(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function Lt(e,t,n,r){return 0===r.compare(t,n)}function It(e,t,n){let r="=="!==e&&"!="!==e;return class a{constructor(e,t,n){this.type=de,this.lhs=e,this.rhs=t,this.collator=n,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");let n=e[0],i=t.parse(e[1],1,fe);if(!i)return null;if(!Rt(n,i.type))return t.concat(1).error(`"${n}" comparisons are not supported for type '${xe(i.type)}'.`);let o=t.parse(e[2],2,fe);if(!o)return null;if(!Rt(n,o.type))return t.concat(2).error(`"${n}" comparisons are not supported for type '${xe(o.type)}'.`);if(i.type.kind!==o.type.kind&&"value"!==i.type.kind&&"value"!==o.type.kind)return t.error(`Cannot compare types '${xe(i.type)}' and '${xe(o.type)}'.`);r&&("value"===i.type.kind&&"value"!==o.type.kind?i=new lt(o.type,[i]):"value"!==i.type.kind&&"value"===o.type.kind&&(o=new lt(i.type,[o])));let s=null;if(4===e.length){if("string"!==i.type.kind&&"string"!==o.type.kind&&"value"!==i.type.kind&&"value"!==o.type.kind)return t.error("Cannot use collator to compare non-string types.");if(s=t.parse(e[3],3,me),!s)return null}return new a(i,o,s)}evaluate(a){let i=this.lhs.evaluate(a),o=this.rhs.evaluate(a);if(r&&this.hasUntypedArgument){let t=rt(i),n=rt(o);if(t.kind!==n.kind||"string"!==t.kind&&"number"!==t.kind)throw new ot(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${n.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){let e=rt(i),n=rt(o);if("string"!==e.kind||"string"!==n.kind)return t(a,i,o)}return this.collator?n(a,i,o,this.collator.evaluate(a)):t(a,i,o)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}}}let Wt=It("==",function(e,t,n){return t===n},Lt),Nt=It("!=",function(e,t,n){return t!==n},function(e,t,n,r){return!Lt(0,t,n,r)}),Pt=It("<",function(e,t,n){return t<n},function(e,t,n,r){return r.compare(t,n)<0}),Bt=It(">",function(e,t,n){return t>n},function(e,t,n,r){return r.compare(t,n)>0}),Ft=It("<=",function(e,t,n){return t<=n},function(e,t,n,r){return r.compare(t,n)<=0}),jt=It(">=",function(e,t,n){return t>=n},function(e,t,n,r){return r.compare(t,n)>=0});class Ut{constructor(e,t,n){this.type=me,this.locale=n,this.caseSensitive=e,this.diacriticSensitive=t}static parse(e,t){if(2!==e.length)return t.error("Expected one argument.");let n=e[1];if("object"!=typeof n||Array.isArray(n))return t.error("Collator options argument must be an object.");let r=t.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,de);if(!r)return null;let a=t.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,de);if(!a)return null;let i=null;return n.locale&&(i=t.parse(n.locale,1,ue),!i)?null:new Ut(r,a,i)}evaluate(e){return new Ye(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}}class Vt{constructor(e,t,n,r,a){this.type=ue,this.number=e,this.locale=t,this.currency=n,this.minFractionDigits=r,this.maxFractionDigits=a}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");let n=t.parse(e[1],1,ce);if(!n)return null;let r=e[2];if("object"!=typeof r||Array.isArray(r))return t.error("NumberFormat options argument must be an object.");let a=null;if(r.locale&&(a=t.parse(r.locale,1,ue),!a))return null;let i=null;if(r.currency&&(i=t.parse(r.currency,1,ue),!i))return null;let o=null;if(r["min-fraction-digits"]&&(o=t.parse(r["min-fraction-digits"],1,ce),!o))return null;let s=null;return r["max-fraction-digits"]&&(s=t.parse(r["max-fraction-digits"],1,ce),!s)?null:new Vt(n,a,i,o,s)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}}class Ht{constructor(e){this.type=ge,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let n=e[1];if(!Array.isArray(n)&&"object"==typeof n)return t.error("First argument must be an image or text section.");let r=[],a=!1;for(let n=1;n<=e.length-1;++n){let i=e[n];if(a&&"object"==typeof i&&!Array.isArray(i)){a=!1;let e=null;if(i["font-scale"]&&(e=t.parse(i["font-scale"],1,ce),!e))return null;let n=null;if(i["text-font"]&&(n=t.parse(i["text-font"],1,Me(ue)),!n))return null;let o=null;if(i["text-color"]&&(o=t.parse(i["text-color"],1,pe),!o))return null;let s=r[r.length-1];s.scale=e,s.font=n,s.textColor=o}else{let i=t.parse(e[n],1,fe);if(!i)return null;let o=i.type.kind;if("string"!==o&&"value"!==o&&"null"!==o&&"resolvedImage"!==o)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");a=!0,r.push({content:i,scale:null,font:null,textColor:null})}}return new Ht(r)}evaluate(e){return new $e(this.sections.map(t=>{let n=t.content.evaluate(e);return rt(n)===be?new Ze("",n,null,null,null):new Ze(at(n),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)}))}eachChild(e){for(let t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}}class Xt{constructor(e){this.type=be,this.input=e}static parse(e,t){if(2!==e.length)return t.error("Expected two arguments.");let n=t.parse(e[1],1,ue);return n?new Xt(n):t.error("No image name provided.")}evaluate(e){let t=this.input.evaluate(e),n=et.fromString(t);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(t)>-1),n}eachChild(e){e(this.input)}outputDefined(){return!1}}class Gt{constructor(e){this.type=ce,this.input=e}static parse(e,t){if(2!==e.length)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);let n=t.parse(e[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?t.error(`Expected argument of type string or array, but found ${xe(n.type)} instead.`):new Gt(n):null}evaluate(e){let t=this.input.evaluate(e);if("string"==typeof t)return[...t].length;if(Array.isArray(t))return t.length;throw new ot(`Expected value to be of type string or array, but found ${xe(rt(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}}let Yt=8192;function Zt(e,t){let n=(180+e[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e[1]*Math.PI/360)))/360,a=Math.pow(2,t.z);return[Math.round(n*a*Yt),Math.round(r*a*Yt)]}function $t(e,t){let n=Math.pow(2,t.z);return[(a=(e[0]/Yt+t.x)/n,360*a-180),(r=(e[1]/Yt+t.y)/n,360/Math.PI*Math.atan(Math.exp((180-360*r)*Math.PI/180))-90)];var r,a}function Jt(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function Qt(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function Kt(e,t,n){let r=e[0]-t[0],a=e[1]-t[1],i=e[0]-n[0],o=e[1]-n[1];return r*o-i*a==0&&r*i<=0&&a*o<=0}function en(e,t,n,r){return(a=[r[0]-n[0],r[1]-n[1]])[0]*(i=[t[0]-e[0],t[1]-e[1]])[1]-a[1]*i[0]!=0&&!(!sn(e,t,n,r)||!sn(n,r,e,t));var a,i}function tn(e,t,n){for(let r of n)for(let n=0;n<r.length-1;++n)if(en(e,t,r[n],r[n+1]))return!0;return!1}function nn(e,t,n=!1){let r=!1;for(let s of t)for(let t=0;t<s.length-1;t++){if(Kt(e,s[t],s[t+1]))return n;(i=s[t])[1]>(a=e)[1]!=(o=s[t+1])[1]>a[1]&&a[0]<(o[0]-i[0])*(a[1]-i[1])/(o[1]-i[1])+i[0]&&(r=!r)}var a,i,o;return r}function rn(e,t){for(let n of t)if(nn(e,n))return!0;return!1}function an(e,t){for(let n of e)if(!nn(n,t))return!1;for(let n=0;n<e.length-1;++n)if(tn(e[n],e[n+1],t))return!1;return!0}function on(e,t){for(let n of t)if(an(e,n))return!0;return!1}function sn(e,t,n,r){let a=r[0]-n[0],i=r[1]-n[1],o=(e[0]-n[0])*i-a*(e[1]-n[1]),s=(t[0]-n[0])*i-a*(t[1]-n[1]);return o>0&&s<0||o<0&&s>0}function ln(e,t,n){let r=[];for(let a=0;a<e.length;a++){let i=[];for(let r=0;r<e[a].length;r++){let o=Zt(e[a][r],n);Jt(t,o),i.push(o)}r.push(i)}return r}function cn(e,t,n){let r=[];for(let a=0;a<e.length;a++){let i=ln(e[a],t,n);r.push(i)}return r}function un(e,t,n,r){if(e[0]<n[0]||e[0]>n[2]){let t=.5*r,a=e[0]-n[0]>t?-r:n[0]-e[0]>t?r:0;0===a&&(a=e[0]-n[2]>t?-r:n[2]-e[0]>t?r:0),e[0]+=a}Jt(t,e)}function dn(e,t,n,r){let a=Math.pow(2,r.z)*Yt,i=[r.x*Yt,r.y*Yt],o=[];for(let r of e)for(let e of r){let r=[e.x+i[0],e.y+i[1]];un(r,t,n,a),o.push(r)}return o}function pn(e,t,n,r){let a=Math.pow(2,r.z)*Yt,i=[r.x*Yt,r.y*Yt],o=[];for(let n of e){let e=[];for(let r of n){let n=[r.x+i[0],r.y+i[1]];Jt(t,n),e.push(n)}o.push(e)}if(t[2]-t[0]<=a/2){(s=t)[0]=s[1]=1/0,s[2]=s[3]=-1/0;for(let e of o)for(let r of e)un(r,t,n,a)}var s;return o}class hn{constructor(e,t){this.type=de,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(nt(e[1])){let t=e[1];if("FeatureCollection"===t.type){let e=[];for(let n of t.features){let{type:t,coordinates:r}=n.geometry;"Polygon"===t&&e.push(r),"MultiPolygon"===t&&e.push(...r)}if(e.length)return new hn(t,{type:"MultiPolygon",coordinates:e})}else if("Feature"===t.type){let e=t.geometry.type;if("Polygon"===e||"MultiPolygon"===e)return new hn(t,t.geometry)}else if("Polygon"===t.type||"MultiPolygon"===t.type)return new hn(t,t)}return t.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){let n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],a=e.canonicalID();if("Polygon"===t.type){let i=ln(t.coordinates,r,a),o=dn(e.geometry(),n,r,a);if(!Qt(n,r))return!1;for(let e of o)if(!nn(e,i))return!1}if("MultiPolygon"===t.type){let i=cn(t.coordinates,r,a),o=dn(e.geometry(),n,r,a);if(!Qt(n,r))return!1;for(let e of o)if(!rn(e,i))return!1}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){let n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],a=e.canonicalID();if("Polygon"===t.type){let i=ln(t.coordinates,r,a),o=pn(e.geometry(),n,r,a);if(!Qt(n,r))return!1;for(let e of o)if(!an(e,i))return!1}if("MultiPolygon"===t.type){let i=cn(t.coordinates,r,a),o=pn(e.geometry(),n,r,a);if(!Qt(n,r))return!1;for(let e of o)if(!on(e,i))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let fn=class{constructor(e=[],t=(e,t)=>e<t?-1:e>t?1:0){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let e=(this.length>>1)-1;e>=0;e--)this._down(e)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(0===this.length)return;let e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:n}=this,r=t[e];for(;e>0;){let a=e-1>>1,i=t[a];if(n(r,i)>=0)break;t[e]=i,e=a}t[e]=r}_down(e){let{data:t,compare:n}=this,r=this.length>>1,a=t[e];for(;e<r;){let r=1+(e<<1),i=r+1;if(i<this.length&&n(t[i],t[r])<0&&(r=i),n(t[r],a)>=0)break;t[e]=t[r],e=r}t[e]=a}};function mn(e,t,n,r,a){gn(e,t,n,r||e.length-1,a||bn)}function gn(e,t,n,r,a){for(;r>n;){if(r-n>600){var i=r-n+1,o=t-n+1,s=Math.log(i),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(i-l)/i)*(o-i/2<0?-1:1);gn(e,t,Math.max(n,Math.floor(t-o*l/i+c)),Math.min(r,Math.floor(t+(i-o)*l/i+c)),a)}var u=e[t],d=n,p=r;for(yn(e,n,t),a(e[r],u)>0&&yn(e,n,r);d<p;){for(yn(e,d,p),d++,p--;a(e[d],u)<0;)d++;for(;a(e[p],u)>0;)p--}0===a(e[n],u)?yn(e,n,p):yn(e,++p,r),p<=t&&(n=p+1),t<=p&&(r=p-1)}}function yn(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function bn(e,t){return e<t?-1:e>t?1:0}function vn(e,t){if(e.length<=1)return[e];let n,r,a=[];for(let t of e){let e=xn(t);0!==e&&(t.area=Math.abs(e),void 0===r&&(r=e<0),r===e<0?(n&&a.push(n),n=[t]):n.push(t))}if(n&&a.push(n),t>1)for(let e=0;e<a.length;e++)a[e].length<=t||(mn(a[e],t,1,a[e].length-1,Mn),a[e]=a[e].slice(0,t));return a}function Mn(e,t){return t.area-e.area}function xn(e){let t=0;for(let n,r,a=0,i=e.length,o=i-1;a<i;o=a++)n=e[a],r=e[o],t+=(r.x-n.x)*(n.y+r.y);return t}let zn=1/298.257223563,_n=zn*(2-zn),An=Math.PI/180;class On{constructor(e){let t=6378.137*An*1e3,n=Math.cos(e*An),r=1/(1-_n*(1-n*n)),a=Math.sqrt(r);this.kx=t*a*n,this.ky=t*a*r*(1-_n)}distance(e,t){let n=this.wrap(e[0]-t[0])*this.kx,r=(e[1]-t[1])*this.ky;return Math.sqrt(n*n+r*r)}pointOnLine(e,t){let n,r,a,i,o=1/0;for(let s=0;s<e.length-1;s++){let l=e[s][0],c=e[s][1],u=this.wrap(e[s+1][0]-l)*this.kx,d=(e[s+1][1]-c)*this.ky,p=0;0===u&&0===d||(p=(this.wrap(t[0]-l)*this.kx*u+(t[1]-c)*this.ky*d)/(u*u+d*d),p>1?(l=e[s+1][0],c=e[s+1][1]):p>0&&(l+=u/this.kx*p,c+=d/this.ky*p)),u=this.wrap(t[0]-l)*this.kx,d=(t[1]-c)*this.ky;let h=u*u+d*d;h<o&&(o=h,n=l,r=c,a=s,i=p)}return{point:[n,r],index:a,t:Math.max(0,Math.min(1,i))}}wrap(e){for(;e<-180;)e+=360;for(;e>180;)e-=360;return e}}function wn(e,t){return t[0]-e[0]}function kn(e){return e[1]-e[0]+1}function Tn(e,t){return e[1]>=e[0]&&e[1]<t}function Sn(e,t){if(e[0]>e[1])return[null,null];let n=kn(e);if(t){if(2===n)return[e,null];let t=Math.floor(n/2);return[[e[0],e[0]+t],[e[0]+t,e[1]]]}if(1===n)return[e,null];let r=Math.floor(n/2)-1;return[[e[0],e[0]+r],[e[0]+r+1,e[1]]]}function Cn(e,t){if(!Tn(t,e.length))return[1/0,1/0,-1/0,-1/0];let n=[1/0,1/0,-1/0,-1/0];for(let r=t[0];r<=t[1];++r)Jt(n,e[r]);return n}function En(e){let t=[1/0,1/0,-1/0,-1/0];for(let n of e)for(let e of n)Jt(t,e);return t}function qn(e){return e[0]!==-1/0&&e[1]!==-1/0&&e[2]!==1/0&&e[3]!==1/0}function Dn(e,t,n){if(!qn(e)||!qn(t))return NaN;let r=0,a=0;return e[2]<t[0]&&(r=t[0]-e[2]),e[0]>t[2]&&(r=e[0]-t[2]),e[1]>t[3]&&(a=e[1]-t[3]),e[3]<t[1]&&(a=t[1]-e[3]),n.distance([0,0],[r,a])}function Rn(e,t,n){let r=n.pointOnLine(t,e);return n.distance(e,r.point)}function Ln(e,t,n,r,a){let i=Math.min(Rn(e,[n,r],a),Rn(t,[n,r],a)),o=Math.min(Rn(n,[e,t],a),Rn(r,[e,t],a));return Math.min(i,o)}function In(e,t,n,r,a){if(!Tn(t,e.length)||!Tn(r,n.length))return 1/0;let i=1/0;for(let o=t[0];o<t[1];++o){let t=e[o],s=e[o+1];for(let e=r[0];e<r[1];++e){let r=n[e],o=n[e+1];if(en(t,s,r,o))return 0;i=Math.min(i,Ln(t,s,r,o,a))}}return i}function Wn(e,t,n,r,a){if(!Tn(t,e.length)||!Tn(r,n.length))return NaN;let i=1/0;for(let o=t[0];o<=t[1];++o)for(let t=r[0];t<=r[1];++t)if(i=Math.min(i,a.distance(e[o],n[t])),0===i)return i;return i}function Nn(e,t,n){if(nn(e,t,!0))return 0;let r=1/0;for(let a of t){let t=a[0],i=a[a.length-1];if(t!==i&&(r=Math.min(r,Rn(e,[i,t],n)),0===r))return r;let o=n.pointOnLine(a,e);if(r=Math.min(r,n.distance(e,o.point)),0===r)return r}return r}function Pn(e,t,n,r){if(!Tn(t,e.length))return NaN;for(let r=t[0];r<=t[1];++r)if(nn(e[r],n,!0))return 0;let a=1/0;for(let i=t[0];i<t[1];++i){let t=e[i],o=e[i+1];for(let e of n)for(let n=0,i=e.length,s=i-1;n<i;s=n++){let i=e[s],l=e[n];if(en(t,o,i,l))return 0;a=Math.min(a,Ln(t,o,i,l,r))}}return a}function Bn(e,t){for(let n of e)for(let e of n)if(nn(e,t,!0))return!0;return!1}function Fn(e,t,n,r=1/0){let a=En(e),i=En(t);if(r!==1/0&&Dn(a,i,n)>=r)return r;if(Qt(a,i)){if(Bn(e,t))return 0}else if(Bn(t,e))return 0;let o=1/0;for(let r of e)for(let e=0,a=r.length,i=a-1;e<a;i=e++){let a=r[i],s=r[e];for(let e of t)for(let t=0,r=e.length,i=r-1;t<r;i=t++){let r=e[i],l=e[t];if(en(a,s,r,l))return 0;o=Math.min(o,Ln(a,s,r,l,n))}}return o}function jn(e,t,n,r,a,i){if(!i)return;let o=Dn(Cn(r,i),a,n);o<t&&e.push([o,i,[0,0]])}function Un(e,t,n,r,a,i,o){if(!i||!o)return;let s=Dn(Cn(r,i),Cn(a,o),n);s<t&&e.push([s,i,o])}function Vn(e,t,n,r,a=1/0){let i=Math.min(r.distance(e[0],n[0][0]),a);if(0===i)return i;let o=new fn([[0,[0,e.length-1],[0,0]]],wn),s=En(n);for(;o.length>0;){let a=o.pop();if(a[0]>=i)continue;let l=a[1],c=t?50:100;if(kn(l)<=c){if(!Tn(l,e.length))return NaN;if(t){let t=Pn(e,l,n,r);if(isNaN(t)||0===t)return t;i=Math.min(i,t)}else for(let t=l[0];t<=l[1];++t){let a=Nn(e[t],n,r);if(i=Math.min(i,a),0===i)return 0}}else{let n=Sn(l,t);jn(o,i,r,e,s,n[0]),jn(o,i,r,e,s,n[1])}}return i}function Hn(e,t,n,r,a,i=1/0){let o=Math.min(i,a.distance(e[0],n[0]));if(0===o)return o;let s=new fn([[0,[0,e.length-1],[0,n.length-1]]],wn);for(;s.length>0;){let i=s.pop();if(i[0]>=o)continue;let l=i[1],c=i[2],u=t?50:100,d=r?50:100;if(kn(l)<=u&&kn(c)<=d){if(!Tn(l,e.length)&&Tn(c,n.length))return NaN;let i;if(t&&r)i=In(e,l,n,c,a),o=Math.min(o,i);else if(t&&!r){let t=e.slice(l[0],l[1]+1);for(let e=c[0];e<=c[1];++e)if(i=Rn(n[e],t,a),o=Math.min(o,i),0===o)return o}else if(!t&&r){let t=n.slice(c[0],c[1]+1);for(let n=l[0];n<=l[1];++n)if(i=Rn(e[n],t,a),o=Math.min(o,i),0===o)return o}else i=Wn(e,l,n,c,a),o=Math.min(o,i)}else{let i=Sn(l,t),u=Sn(c,r);Un(s,o,a,e,n,i[0],u[0]),Un(s,o,a,e,n,i[0],u[1]),Un(s,o,a,e,n,i[1],u[0]),Un(s,o,a,e,n,i[1],u[1])}}return o}function Xn(e){return"MultiPolygon"===e.type?e.coordinates.map(e=>({type:"Polygon",coordinates:e})):"MultiLineString"===e.type?e.coordinates.map(e=>({type:"LineString",coordinates:e})):"MultiPoint"===e.type?e.coordinates.map(e=>({type:"Point",coordinates:e})):[e]}class Gn{constructor(e,t){this.type=ce,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'distance' expression requires exactly one argument, but found ${e.length-1} instead.`);if(nt(e[1])){let t=e[1];if("FeatureCollection"===t.type)return new Gn(t,t.features.map(e=>Xn(e.geometry)).flat());if("Feature"===t.type)return new Gn(t,Xn(t.geometry));if("type"in t&&"coordinates"in t)return new Gn(t,Xn(t))}return t.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){let n=e.geometry(),r=n.flat().map(t=>$t([t.x,t.y],e.canonical));if(0===n.length)return NaN;let a=new On(r[0][1]),i=1/0;for(let e of t){switch(e.type){case"Point":i=Math.min(i,Hn(r,!1,[e.coordinates],!1,a,i));break;case"LineString":i=Math.min(i,Hn(r,!1,e.coordinates,!0,a,i));break;case"Polygon":i=Math.min(i,Vn(r,!1,e.coordinates,a,i))}if(0===i)return i}return i}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){let n=e.geometry(),r=n.flat().map(t=>$t([t.x,t.y],e.canonical));if(0===n.length)return NaN;let a=new On(r[0][1]),i=1/0;for(let e of t){switch(e.type){case"Point":i=Math.min(i,Hn(r,!0,[e.coordinates],!1,a,i));break;case"LineString":i=Math.min(i,Hn(r,!0,e.coordinates,!0,a,i));break;case"Polygon":i=Math.min(i,Vn(r,!0,e.coordinates,a,i))}if(0===i)return i}return i}(e,this.geometries);if("Polygon"===e.geometryType())return function(e,t){let n=e.geometry();if(0===n.length||0===n[0].length)return NaN;let r=vn(n,0).map(t=>t.map(t=>t.map(t=>$t([t.x,t.y],e.canonical)))),a=new On(r[0][0][0][1]),i=1/0;for(let e of t)for(let t of r){switch(e.type){case"Point":i=Math.min(i,Vn([e.coordinates],!1,t,a,i));break;case"LineString":i=Math.min(i,Vn(e.coordinates,!0,t,a,i));break;case"Polygon":i=Math.min(i,Fn(t,e.coordinates,a,i))}if(0===i)return i}return i}(e,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let Yn={"==":Wt,"!=":Nt,">":Bt,"<":Pt,">=":jt,"<=":Ft,array:lt,at:gt,boolean:lt,case:Mt,coalesce:Dt,collator:Ut,format:Ht,image:Xt,in:yt,"index-of":bt,interpolate:Et,"interpolate-hcl":Et,"interpolate-lab":Et,length:Gt,let:ft,literal:it,match:vt,number:lt,"number-format":Vt,object:lt,slice:xt,step:_t,string:lt,"to-boolean":ut,"to-color":ut,"to-number":ut,"to-string":ut,var:mt,within:hn,distance:Gn};class Zn{constructor(e,t,n,r){this.name=e,this.type=t,this._evaluate=n,this.args=r}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}static parse(e,t){let n=e[0],r=Zn.definitions[n];if(!r)return t.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);let a=Array.isArray(r)?r[0]:r.type,i=Array.isArray(r)?[[r[1],r[2]]]:r.overloads,o=i.filter(([t])=>!Array.isArray(t)||t.length===e.length-1),s=null;for(let[r,i]of o){s=new ht(t.registry,er,t.path,null,t.scope);let o=[],l=!1;for(let t=1;t<e.length;t++){let n=e[t],a=Array.isArray(r)?r[t-1]:r.type,i=s.parse(n,1+o.length,a);if(!i){l=!0;break}o.push(i)}if(!l)if(Array.isArray(r)&&r.length!==o.length)s.error(`Expected ${r.length} arguments, but found ${o.length} instead.`);else{for(let e=0;e<o.length;e++){let t=Array.isArray(r)?r[e]:r.type,n=o[e];s.concat(e+1).checkSubtype(t,n.type)}if(0===s.errors.length)return new Zn(n,a,i,o)}}if(1===o.length)t.errors.push(...s.errors);else{let n=(o.length?o:i).map(([e])=>{return t=e,Array.isArray(t)?`(${t.map(xe).join(", ")})`:`(${xe(t.type)}...)`;var t}).join(" | "),r=[];for(let n=1;n<e.length;n++){let a=t.parse(e[n],1+r.length);if(!a)return null;r.push(xe(a.type))}t.error(`Expected arguments of type ${n}, but found (${r.join(", ")}) instead.`)}return null}static register(e,t){Zn.definitions=t;for(let n in t)e[n]=Zn}}function $n(e,[t,n,r,a]){t=t.evaluate(e),n=n.evaluate(e),r=r.evaluate(e);let i=a?a.evaluate(e):1,o=tt(t,n,r,i);if(o)throw new ot(o);return new Ge(t/255,n/255,r/255,i,!1)}function Jn(e,t){return e in t}function Qn(e,t){let n=t[e];return void 0===n?null:n}function Kn(e){return{type:e}}function er(e){if(e instanceof mt)return er(e.boundExpression);if(e instanceof Zn&&"error"===e.name||e instanceof Ut||e instanceof hn||e instanceof Gn)return!1;let t=e instanceof ut||e instanceof lt,n=!0;return e.eachChild(e=>{n=t?n&&er(e):n&&e instanceof it}),!!n&&tr(e)&&rr(e,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function tr(e){if(e instanceof Zn&&("get"===e.name&&1===e.args.length||"feature-state"===e.name||"has"===e.name&&1===e.args.length||"properties"===e.name||"geometry-type"===e.name||"id"===e.name||/^filter-/.test(e.name))||e instanceof hn||e instanceof Gn)return!1;let t=!0;return e.eachChild(e=>{t&&!tr(e)&&(t=!1)}),t}function nr(e){if(e instanceof Zn&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild(e=>{t&&!nr(e)&&(t=!1)}),t}function rr(e,t){if(e instanceof Zn&&t.indexOf(e.name)>=0)return!1;let n=!0;return e.eachChild(e=>{n&&!rr(e,t)&&(n=!1)}),n}function ar(e){return{result:"success",value:e}}function ir(e){return{result:"error",value:e}}function or(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function sr(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function lr(e){return!!e.expression&&e.expression.interpolated}function cr(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function ur(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function dr(e){return e}function pr(e,t){let n="color"===t.type,r=e.stops&&"object"==typeof e.stops[0][0],a=r||!(r||void 0!==e.property),i=e.type||(lr(t)?"exponential":"interval");if(n||"padding"===t.type){let r=n?Ge.parse:Je.parse;(e=ie({},e)).stops&&(e.stops=e.stops.map(e=>[e[0],r(e[1])])),e.default=r(e.default?e.default:t.default)}if(e.colorSpace&&"rgb"!==(o=e.colorSpace)&&"hcl"!==o&&"lab"!==o)throw new Error(`Unknown color space: "${e.colorSpace}"`);var o;let s,l,c;if("exponential"===i)s=gr;else if("interval"===i)s=mr;else if("categorical"===i){s=fr,l=Object.create(null);for(let t of e.stops)l[t[0]]=t[1];c=typeof e.stops[0][0]}else{if("identity"!==i)throw new Error(`Unknown function type "${i}"`);s=yr}if(r){let n={},r=[];for(let t=0;t<e.stops.length;t++){let a=e.stops[t],i=a[0].zoom;void 0===n[i]&&(n[i]={zoom:i,type:e.type,property:e.property,default:e.default,stops:[]},r.push(i)),n[i].stops.push([a[0].value,a[1]])}let a=[];for(let e of r)a.push([n[e].zoom,pr(n[e],t)]);let i={name:"linear"};return{kind:"composite",interpolationType:i,interpolationFactor:Et.interpolationFactor.bind(void 0,i),zoomStops:a.map(e=>e[0]),evaluate:({zoom:n},r)=>gr({stops:a,base:e.base},t,n).evaluate(n,r)}}if(a){let n="exponential"===i?{name:"exponential",base:void 0!==e.base?e.base:1}:null;return{kind:"camera",interpolationType:n,interpolationFactor:Et.interpolationFactor.bind(void 0,n),zoomStops:e.stops.map(e=>e[0]),evaluate:({zoom:n})=>s(e,t,n,l,c)}}return{kind:"source",evaluate(n,r){let a=r&&r.properties?r.properties[e.property]:void 0;return void 0===a?hr(e.default,t.default):s(e,t,a,l,c)}}}function hr(e,t,n){return void 0!==e?e:void 0!==t?t:void 0!==n?n:void 0}function fr(e,t,n,r,a){return hr(typeof n===a?r[n]:void 0,e.default,t.default)}function mr(e,t,n){if("number"!==cr(n))return hr(e.default,t.default);let r=e.stops.length;if(1===r||n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[r-1][0])return e.stops[r-1][1];let a=zt(e.stops.map(e=>e[0]),n);return e.stops[a][1]}function gr(e,t,n){let r=void 0!==e.base?e.base:1;if("number"!==cr(n))return hr(e.default,t.default);let a=e.stops.length;if(1===a||n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[a-1][0])return e.stops[a-1][1];let i=zt(e.stops.map(e=>e[0]),n),o=function(e,t,n,r){let a=r-n,i=e-n;return 0===a?0:1===t?i/a:(Math.pow(t,i)-1)/(Math.pow(t,a)-1)}(n,r,e.stops[i][0],e.stops[i+1][0]),s=e.stops[i][1],l=e.stops[i+1][1],c=Ct[t.type]||dr;return"function"==typeof s.evaluate?{evaluate(...t){let n=s.evaluate.apply(void 0,t),r=l.evaluate.apply(void 0,t);if(void 0!==n&&void 0!==r)return c(n,r,o,e.colorSpace)}}:c(s,l,o,e.colorSpace)}function yr(e,t,n){switch(t.type){case"color":n=Ge.parse(n);break;case"formatted":n=$e.fromString(n.toString());break;case"resolvedImage":n=et.fromString(n.toString());break;case"padding":n=Je.parse(n);break;default:cr(n)===t.type||"enum"===t.type&&t.values[n]||(n=void 0)}return hr(n,e.default,t.default)}Zn.register(Yn,{error:[{kind:"error"},[ue],(e,[t])=>{throw new ot(t.evaluate(e))}],typeof:[ue,[fe],(e,[t])=>xe(rt(t.evaluate(e)))],"to-rgba":[Me(ce,4),[pe],(e,[t])=>{let[n,r,a,i]=t.evaluate(e).rgb;return[255*n,255*r,255*a,i]}],rgb:[pe,[ce,ce,ce],$n],rgba:[pe,[ce,ce,ce,ce],$n],has:{type:de,overloads:[[[ue],(e,[t])=>Jn(t.evaluate(e),e.properties())],[[ue,he],(e,[t,n])=>Jn(t.evaluate(e),n.evaluate(e))]]},get:{type:fe,overloads:[[[ue],(e,[t])=>Qn(t.evaluate(e),e.properties())],[[ue,he],(e,[t,n])=>Qn(t.evaluate(e),n.evaluate(e))]]},"feature-state":[fe,[ue],(e,[t])=>Qn(t.evaluate(e),e.featureState||{})],properties:[he,[],e=>e.properties()],"geometry-type":[ue,[],e=>e.geometryType()],id:[fe,[],e=>e.id()],zoom:[ce,[],e=>e.globals.zoom],"heatmap-density":[ce,[],e=>e.globals.heatmapDensity||0],"line-progress":[ce,[],e=>e.globals.lineProgress||0],accumulated:[fe,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[ce,Kn(ce),(e,t)=>{let n=0;for(let r of t)n+=r.evaluate(e);return n}],"*":[ce,Kn(ce),(e,t)=>{let n=1;for(let r of t)n*=r.evaluate(e);return n}],"-":{type:ce,overloads:[[[ce,ce],(e,[t,n])=>t.evaluate(e)-n.evaluate(e)],[[ce],(e,[t])=>-t.evaluate(e)]]},"/":[ce,[ce,ce],(e,[t,n])=>t.evaluate(e)/n.evaluate(e)],"%":[ce,[ce,ce],(e,[t,n])=>t.evaluate(e)%n.evaluate(e)],ln2:[ce,[],()=>Math.LN2],pi:[ce,[],()=>Math.PI],e:[ce,[],()=>Math.E],"^":[ce,[ce,ce],(e,[t,n])=>Math.pow(t.evaluate(e),n.evaluate(e))],sqrt:[ce,[ce],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[ce,[ce],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[ce,[ce],(e,[t])=>Math.log(t.evaluate(e))],log2:[ce,[ce],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[ce,[ce],(e,[t])=>Math.sin(t.evaluate(e))],cos:[ce,[ce],(e,[t])=>Math.cos(t.evaluate(e))],tan:[ce,[ce],(e,[t])=>Math.tan(t.evaluate(e))],asin:[ce,[ce],(e,[t])=>Math.asin(t.evaluate(e))],acos:[ce,[ce],(e,[t])=>Math.acos(t.evaluate(e))],atan:[ce,[ce],(e,[t])=>Math.atan(t.evaluate(e))],min:[ce,Kn(ce),(e,t)=>Math.min(...t.map(t=>t.evaluate(e)))],max:[ce,Kn(ce),(e,t)=>Math.max(...t.map(t=>t.evaluate(e)))],abs:[ce,[ce],(e,[t])=>Math.abs(t.evaluate(e))],round:[ce,[ce],(e,[t])=>{let n=t.evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[ce,[ce],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[ce,[ce],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[de,[ue,fe],(e,[t,n])=>e.properties()[t.value]===n.value],"filter-id-==":[de,[fe],(e,[t])=>e.id()===t.value],"filter-type-==":[de,[ue],(e,[t])=>e.geometryType()===t.value],"filter-<":[de,[ue,fe],(e,[t,n])=>{let r=e.properties()[t.value],a=n.value;return typeof r==typeof a&&r<a}],"filter-id-<":[de,[fe],(e,[t])=>{let n=e.id(),r=t.value;return typeof n==typeof r&&n<r}],"filter->":[de,[ue,fe],(e,[t,n])=>{let r=e.properties()[t.value],a=n.value;return typeof r==typeof a&&r>a}],"filter-id->":[de,[fe],(e,[t])=>{let n=e.id(),r=t.value;return typeof n==typeof r&&n>r}],"filter-<=":[de,[ue,fe],(e,[t,n])=>{let r=e.properties()[t.value],a=n.value;return typeof r==typeof a&&r<=a}],"filter-id-<=":[de,[fe],(e,[t])=>{let n=e.id(),r=t.value;return typeof n==typeof r&&n<=r}],"filter->=":[de,[ue,fe],(e,[t,n])=>{let r=e.properties()[t.value],a=n.value;return typeof r==typeof a&&r>=a}],"filter-id->=":[de,[fe],(e,[t])=>{let n=e.id(),r=t.value;return typeof n==typeof r&&n>=r}],"filter-has":[de,[fe],(e,[t])=>t.value in e.properties()],"filter-has-id":[de,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[de,[Me(ue)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[de,[Me(fe)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[de,[ue,Me(fe)],(e,[t,n])=>n.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[de,[ue,Me(fe)],(e,[t,n])=>function(e,t,n,r){for(;n<=r;){let a=n+r>>1;if(t[a]===e)return!0;t[a]>e?r=a-1:n=a+1}return!1}(e.properties()[t.value],n.value,0,n.value.length-1)],all:{type:de,overloads:[[[de,de],(e,[t,n])=>t.evaluate(e)&&n.evaluate(e)],[Kn(de),(e,t)=>{for(let n of t)if(!n.evaluate(e))return!1;return!0}]]},any:{type:de,overloads:[[[de,de],(e,[t,n])=>t.evaluate(e)||n.evaluate(e)],[Kn(de),(e,t)=>{for(let n of t)if(n.evaluate(e))return!0;return!1}]]},"!":[de,[de],(e,[t])=>!t.evaluate(e)],"is-supported-script":[de,[ue],(e,[t])=>{let n=e.globals&&e.globals.isSupportedScript;return!n||n(t.evaluate(e))}],upcase:[ue,[ue],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[ue,[ue],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[ue,Kn(fe),(e,t)=>t.map(t=>at(t.evaluate(e))).join("")],"resolved-locale":[ue,[me],(e,[t])=>t.evaluate(e).resolvedLocale()]});class br{constructor(e,t){var n;this.expression=e,this._warningHistory={},this._evaluator=new pt,this._defaultValue=t?"color"===(n=t).type&&ur(n.default)?new Ge(0,0,0,0):"color"===n.type?Ge.parse(n.default)||null:"padding"===n.type?Je.parse(n.default)||null:"variableAnchorOffsetCollection"===n.type?Ke.parse(n.default)||null:void 0===n.default?null:n.default:null,this._enumValues=t&&"enum"===t.type?t.values:null}evaluateWithoutErrorHandling(e,t,n,r,a,i){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.canonical=r,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=i,this.expression.evaluate(this._evaluator)}evaluate(e,t,n,r,a,i){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=i||null;try{let e=this.expression.evaluate(this._evaluator);if(null==e||"number"==typeof e&&e!=e)return this._defaultValue;if(this._enumValues&&!(e in this._enumValues))throw new ot(`Expected value to be one of ${Object.keys(this._enumValues).map(e=>JSON.stringify(e)).join(", ")}, but found ${JSON.stringify(e)} instead.`);return e}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,typeof console<"u"&&console.warn(e.message)),this._defaultValue}}}function vr(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in Yn}function Mr(e,t){let n=new ht(Yn,er,[],t?function(e){let t={color:pe,string:ue,number:ce,enum:ue,boolean:de,formatted:ge,padding:ye,resolvedImage:be,variableAnchorOffsetCollection:ve};return"array"===e.type?Me(t[e.value]||fe,e.length):t[e.type]}(t):void 0),r=n.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return r?ar(new br(r,t)):ir(n.errors)}class xr{constructor(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!nr(t.expression)}evaluateWithoutErrorHandling(e,t,n,r,a,i){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,a,i)}evaluate(e,t,n,r,a,i){return this._styleExpression.evaluate(e,t,n,r,a,i)}}class zr{constructor(e,t,n,r){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!nr(t.expression),this.interpolationType=r}evaluateWithoutErrorHandling(e,t,n,r,a,i){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,a,i)}evaluate(e,t,n,r,a,i){return this._styleExpression.evaluate(e,t,n,r,a,i)}interpolationFactor(e,t,n){return this.interpolationType?Et.interpolationFactor(this.interpolationType,e,t,n):0}}function _r(e,t){let n=Mr(e,t);if("error"===n.result)return n;let r=n.value.expression,a=tr(r);if(!a&&!or(t))return ir([new oe("","data expressions not supported")]);let i=rr(r,["zoom"]);if(!i&&!sr(t))return ir([new oe("","zoom expressions not supported")]);let o=Or(r);return o||i?o instanceof oe?ir([o]):o instanceof Et&&!lr(t)?ir([new oe("",'"interpolate" expressions cannot be used with this property')]):ar(o?new zr(a?"camera":"composite",n.value,o.labels,o instanceof Et?o.interpolation:void 0):new xr(a?"constant":"source",n.value)):ir([new oe("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Ar{constructor(e,t){this._parameters=e,this._specification=t,ie(this,pr(this._parameters,this._specification))}static deserialize(e){return new Ar(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function Or(e){let t=null;if(e instanceof ft)t=Or(e.result);else if(e instanceof Dt){for(let n of e.args)if(t=Or(n),t)break}else(e instanceof _t||e instanceof Et)&&e.input instanceof Zn&&"zoom"===e.input.name&&(t=e);return t instanceof oe||e.eachChild(e=>{let n=Or(e);n instanceof oe?t=n:!t&&n?t=new oe("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&n&&t!==n&&(t=new oe("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),t}function wr(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(let t of e.slice(1))if(!wr(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}let kr={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Tr(e){if(null==e)return{filter:()=>!0,needGeometry:!1};wr(e)||(e=Er(e));let t=Mr(e,kr);if("error"===t.result)throw new Error(t.value.map(e=>`${e.key}: ${e.message}`).join(", "));return{filter:(e,n,r)=>t.value.evaluate(e,n,{},r),needGeometry:Cr(e)}}function Sr(e,t){return e<t?-1:e>t?1:0}function Cr(e){if(!Array.isArray(e))return!1;if("within"===e[0]||"distance"===e[0])return!0;for(let t=1;t<e.length;t++)if(Cr(e[t]))return!0;return!1}function Er(e){if(!e)return!0;let t=e[0];return e.length<=1?"any"!==t:"=="===t?qr(e[1],e[2],"=="):"!="===t?Lr(qr(e[1],e[2],"==")):"<"===t||">"===t||"<="===t||">="===t?qr(e[1],e[2],t):"any"===t?(n=e.slice(1),["any"].concat(n.map(Er))):"all"===t?["all"].concat(e.slice(1).map(Er)):"none"===t?["all"].concat(e.slice(1).map(Er).map(Lr)):"in"===t?Dr(e[1],e.slice(2)):"!in"===t?Lr(Dr(e[1],e.slice(2))):"has"===t?Rr(e[1]):"!has"!==t||Lr(Rr(e[1]));var n}function qr(e,t,n){switch(e){case"$type":return[`filter-type-${n}`,t];case"$id":return[`filter-id-${n}`,t];default:return[`filter-${n}`,e,t]}}function Dr(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(e=>typeof e!=typeof t[0])?["filter-in-large",e,["literal",t.sort(Sr)]]:["filter-in-small",e,["literal",t]]}}function Rr(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Lr(e){return["!",e]}function Ir(e){let t=typeof e;if("number"===t||"boolean"===t||"string"===t||null==e)return JSON.stringify(e);if(Array.isArray(e)){let t="[";for(let n of e)t+=`${Ir(n)},`;return`${t}]`}let n=Object.keys(e).sort(),r="{";for(let t=0;t<n.length;t++)r+=`${JSON.stringify(n[t])}:${Ir(e[n[t]])},`;return`${r}}`}function Wr(e){let t="";for(let n of G)t+=`/${Ir(e[n])}`;return t}function Nr(e){let t=e.value;return t?[new ae(e.key,t,"constants have been deprecated as of v8")]:[]}function Pr(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function Br(e){if(Array.isArray(e))return e.map(Br);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){let t={};for(let n in e)t[n]=Br(e[n]);return t}return Pr(e)}function Fr(e){let t=e.key,n=e.value,r=e.valueSpec||{},a=e.objectElementValidators||{},i=e.style,o=e.styleSpec,s=e.validateSpec,l=[],c=cr(n);if("object"!==c)return[new ae(t,n,`object expected, ${c} found`)];for(let e in n){let c,u=e.split(".")[0],d=r[u]||r["*"];if(a[u])c=a[u];else if(r[u])c=s;else if(a["*"])c=a["*"];else{if(!r["*"]){l.push(new ae(t,n[e],`unknown property "${e}"`));continue}c=s}l=l.concat(c({key:(t&&`${t}.`)+e,value:n[e],valueSpec:d,style:i,styleSpec:o,object:n,objectKey:e,validateSpec:s},n))}for(let e in r)a[e]||r[e].required&&void 0===r[e].default&&void 0===n[e]&&l.push(new ae(t,n,`missing required property "${e}"`));return l}function jr(e){let t=e.value,n=e.valueSpec,r=e.style,a=e.styleSpec,i=e.key,o=e.arrayElementValidator||e.validateSpec;if("array"!==cr(t))return[new ae(i,t,`array expected, ${cr(t)} found`)];if(n.length&&t.length!==n.length)return[new ae(i,t,`array length ${n.length} expected, length ${t.length} found`)];if(n["min-length"]&&t.length<n["min-length"])return[new ae(i,t,`array length at least ${n["min-length"]} expected, length ${t.length} found`)];let s={type:n.value,values:n.values};a.$version<7&&(s.function=n.function),"object"===cr(n.value)&&(s=n.value);let l=[];for(let n=0;n<t.length;n++)l=l.concat(o({array:t,arrayIndex:n,value:t[n],valueSpec:s,validateSpec:e.validateSpec,style:r,styleSpec:a,key:`${i}[${n}]`}));return l}function Ur(e){let t=e.key,n=e.value,r=e.valueSpec,a=cr(n);return"number"===a&&n!=n&&(a="NaN"),"number"!==a?[new ae(t,n,`number expected, ${a} found`)]:"minimum"in r&&n<r.minimum?[new ae(t,n,`${n} is less than the minimum value ${r.minimum}`)]:"maximum"in r&&n>r.maximum?[new ae(t,n,`${n} is greater than the maximum value ${r.maximum}`)]:[]}function Vr(e){let t,n,r,a=e.valueSpec,i=Pr(e.value.type),o={},s="categorical"!==i&&void 0===e.value.property,l=!s,c="array"===cr(e.value.stops)&&"array"===cr(e.value.stops[0])&&"object"===cr(e.value.stops[0][0]),u=Fr({key:e.key,value:e.value,valueSpec:e.styleSpec.function,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===i)return[new ae(e.key,e.value,'identity function may not have a "stops" property')];let t=[],n=e.value;return t=t.concat(jr({key:e.key,value:n,valueSpec:e.valueSpec,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:d})),"array"===cr(n)&&0===n.length&&t.push(new ae(e.key,n,"array must have at least one stop")),t},default:function(e){return e.validateSpec({key:e.key,value:e.value,valueSpec:a,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===i&&s&&u.push(new ae(e.key,e.value,'missing required property "property"')),"identity"===i||e.value.stops||u.push(new ae(e.key,e.value,'missing required property "stops"')),"exponential"===i&&e.valueSpec.expression&&!lr(e.valueSpec)&&u.push(new ae(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!or(e.valueSpec)?u.push(new ae(e.key,e.value,"property functions not supported")):s&&!sr(e.valueSpec)&&u.push(new ae(e.key,e.value,"zoom functions not supported"))),"categorical"!==i&&!c||void 0!==e.value.property||u.push(new ae(e.key,e.value,'"property" property is required')),u;function d(e){let t=[],i=e.value,s=e.key;if("array"!==cr(i))return[new ae(s,i,`array expected, ${cr(i)} found`)];if(2!==i.length)return[new ae(s,i,`array length 2 expected, length ${i.length} found`)];if(c){if("object"!==cr(i[0]))return[new ae(s,i,`object expected, ${cr(i[0])} found`)];if(void 0===i[0].zoom)return[new ae(s,i,"object stop key must have zoom")];if(void 0===i[0].value)return[new ae(s,i,"object stop key must have value")];if(r&&r>Pr(i[0].zoom))return[new ae(s,i[0].zoom,"stop zoom values must appear in ascending order")];Pr(i[0].zoom)!==r&&(r=Pr(i[0].zoom),n=void 0,o={}),t=t.concat(Fr({key:`${s}[0]`,value:i[0],valueSpec:{zoom:{}},validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:Ur,value:p}}))}else t=t.concat(p({key:`${s}[0]`,value:i[0],valueSpec:{},validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec},i));return vr(Br(i[1]))?t.concat([new ae(`${s}[1]`,i[1],"expressions are not allowed in function stops.")]):t.concat(e.validateSpec({key:`${s}[1]`,value:i[1],valueSpec:a,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec}))}function p(e,r){let s=cr(e.value),l=Pr(e.value),c=null!==e.value?e.value:r;if(t){if(s!==t)return[new ae(e.key,c,`${s} stop domain type must match previous stop domain type ${t}`)]}else t=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new ae(e.key,c,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==i){let t=`number expected, ${s} found`;return or(a)&&void 0===i&&(t+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ae(e.key,c,t)]}return"categorical"!==i||"number"!==s||isFinite(l)&&Math.floor(l)===l?"categorical"!==i&&"number"===s&&void 0!==n&&l<n?[new ae(e.key,c,"stop domain values must appear in ascending order")]:(n=l,"categorical"===i&&l in o?[new ae(e.key,c,"stop domain values must be unique")]:(o[l]=!0,[])):[new ae(e.key,c,`integer expected, found ${l}`)]}}function Hr(e){let t=("property"===e.expressionContext?_r:Mr)(Br(e.value),e.valueSpec);if("error"===t.result)return t.value.map(t=>new ae(`${e.key}${t.key}`,e.value,t.message));let n=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&!n.outputDefined())return[new ae(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===e.expressionContext&&"layout"===e.propertyType&&!nr(n))return[new ae(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext&&!nr(n))return[new ae(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!rr(n,["zoom","feature-state"]))return[new ae(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!tr(n))return[new ae(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Xr(e){let t=e.key,n=e.value,r=e.valueSpec,a=[];return Array.isArray(r.values)?-1===r.values.indexOf(Pr(n))&&a.push(new ae(t,n,`expected one of [${r.values.join(", ")}], ${JSON.stringify(n)} found`)):-1===Object.keys(r.values).indexOf(Pr(n))&&a.push(new ae(t,n,`expected one of [${Object.keys(r.values).join(", ")}], ${JSON.stringify(n)} found`)),a}function Gr(e){return wr(Br(e.value))?Hr(ie({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Yr(e)}function Yr(e){let t=e.value,n=e.key;if("array"!==cr(t))return[new ae(n,t,`array expected, ${cr(t)} found`)];let r,a=e.styleSpec,i=[];if(t.length<1)return[new ae(n,t,"filter array must have at least 1 element")];switch(i=i.concat(Xr({key:`${n}[0]`,value:t[0],valueSpec:a.filter_operator,style:e.style,styleSpec:e.styleSpec})),Pr(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&"$type"===Pr(t[1])&&i.push(new ae(n,t,`"$type" cannot be use with operator "${t[0]}"`));case"==":case"!=":3!==t.length&&i.push(new ae(n,t,`filter array for operator "${t[0]}" must have 3 elements`));case"in":case"!in":t.length>=2&&(r=cr(t[1]),"string"!==r&&i.push(new ae(`${n}[1]`,t[1],`string expected, ${r} found`)));for(let o=2;o<t.length;o++)r=cr(t[o]),"$type"===Pr(t[1])?i=i.concat(Xr({key:`${n}[${o}]`,value:t[o],valueSpec:a.geometry_type,style:e.style,styleSpec:e.styleSpec})):"string"!==r&&"number"!==r&&"boolean"!==r&&i.push(new ae(`${n}[${o}]`,t[o],`string, number, or boolean expected, ${r} found`));break;case"any":case"all":case"none":for(let r=1;r<t.length;r++)i=i.concat(Yr({key:`${n}[${r}]`,value:t[r],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":r=cr(t[1]),2!==t.length?i.push(new ae(n,t,`filter array for "${t[0]}" operator must have 2 elements`)):"string"!==r&&i.push(new ae(`${n}[1]`,t[1],`string expected, ${r} found`))}return i}function Zr(e,t){let n=e.key,r=e.validateSpec,a=e.style,i=e.styleSpec,o=e.value,s=e.objectKey,l=i[`${t}_${e.layerType}`];if(!l)return[];let c=s.match(/^(.*)-transition$/);if("paint"===t&&c&&l[c[1]]&&l[c[1]].transition)return r({key:n,value:o,valueSpec:i.transition,style:a,styleSpec:i});let u,d=e.valueSpec||l[s];if(!d)return[new ae(n,o,`unknown property "${s}"`)];if("string"===cr(o)&&or(d)&&!d.tokens&&(u=/^{([^}]+)}$/.exec(o)))return[new ae(n,o,`"${s}" does not support interpolation syntax\nUse an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(u[1])} }\`.`)];let p=[];return"symbol"===e.layerType&&("text-field"===s&&a&&!a.glyphs&&p.push(new ae(n,o,'use of "text-field" requires a style "glyphs" property')),"text-font"===s&&ur(Br(o))&&"identity"===Pr(o.type)&&p.push(new ae(n,o,'"text-font" does not support identity functions'))),p.concat(r({key:e.key,value:o,valueSpec:d,style:a,styleSpec:i,expressionContext:"property",propertyType:t,propertyKey:s}))}function $r(e){return Zr(e,"paint")}function Jr(e){return Zr(e,"layout")}function Qr(e){let t=[],n=e.value,r=e.key,a=e.style,i=e.styleSpec;n.type||n.ref||t.push(new ae(r,n,'either "type" or "ref" is required'));let o=Pr(n.type),s=Pr(n.ref);if(n.id){let i=Pr(n.id);for(let o=0;o<e.arrayIndex;o++){let e=a.layers[o];Pr(e.id)===i&&t.push(new ae(r,n.id,`duplicate layer id "${n.id}", previously used at line ${e.id.__line__}`))}}if("ref"in n){let e;["type","source","source-layer","filter","layout"].forEach(e=>{e in n&&t.push(new ae(r,n[e],`"${e}" is prohibited for ref layers`))}),a.layers.forEach(t=>{Pr(t.id)===s&&(e=t)}),e?e.ref?t.push(new ae(r,n.ref,"ref cannot reference another ref layer")):o=Pr(e.type):t.push(new ae(r,n.ref,`ref layer "${s}" not found`))}else if("background"!==o)if(n.source){let e=a.sources&&a.sources[n.source],i=e&&Pr(e.type);e?"vector"===i&&"raster"===o?t.push(new ae(r,n.source,`layer "${n.id}" requires a raster source`)):"raster-dem"!==i&&"hillshade"===o?t.push(new ae(r,n.source,`layer "${n.id}" requires a raster-dem source`)):"raster"===i&&"raster"!==o?t.push(new ae(r,n.source,`layer "${n.id}" requires a vector source`)):"vector"!==i||n["source-layer"]?"raster-dem"===i&&"hillshade"!==o?t.push(new ae(r,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==o||!n.paint||!n.paint["line-gradient"]||"geojson"===i&&e.lineMetrics||t.push(new ae(r,n,`layer "${n.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new ae(r,n,`layer "${n.id}" must specify a "source-layer"`)):t.push(new ae(r,n.source,`source "${n.source}" not found`))}else t.push(new ae(r,n,'missing required property "source"'));return t=t.concat(Fr({key:r,value:n,valueSpec:i.layer,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*":()=>[],type:()=>e.validateSpec({key:`${r}.type`,value:n.type,valueSpec:i.layer.type,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,object:n,objectKey:"type"}),filter:Gr,layout:e=>Fr({layer:n,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*":e=>Jr(ie({layerType:o},e))}}),paint:e=>Fr({layer:n,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*":e=>$r(ie({layerType:o},e))}})}})),t}function Kr(e){let t=e.value,n=e.key,r=cr(t);return"string"!==r?[new ae(n,t,`string expected, ${r} found`)]:[]}let ea={promoteId:function({key:e,value:t}){if("string"===cr(t))return Kr({key:e,value:t});{let n=[];for(let r in t)n.push(...Kr({key:`${e}.${r}`,value:t[r]}));return n}}};function ta(e){let t=e.value,n=e.key,r=e.styleSpec,a=e.style,i=e.validateSpec;if(!t.type)return[new ae(n,t,'"type" is required')];let o,s=Pr(t.type);switch(s){case"vector":case"raster":return o=Fr({key:n,value:t,valueSpec:r[`source_${s.replace("-","_")}`],style:e.style,styleSpec:r,objectElementValidators:ea,validateSpec:i}),o;case"raster-dem":return o=function(e){var t;let n=null!==(t=e.sourceName)&&void 0!==t?t:"",r=e.value,a=e.styleSpec,i=a.source_raster_dem,o=e.style,s=[],l=cr(r);if(void 0===r)return s;if("object"!==l)return s.push(new ae("source_raster_dem",r,`object expected, ${l} found`)),s;let c="custom"===Pr(r.encoding),u=["redFactor","greenFactor","blueFactor","baseShift"],d=e.value.encoding?`"${e.value.encoding}"`:"Default";for(let t in r)!c&&u.includes(t)?s.push(new ae(t,r[t],`In "${n}": "${t}" is only valid when "encoding" is set to "custom". ${d} encoding found`)):i[t]?s=s.concat(e.validateSpec({key:t,value:r[t],valueSpec:i[t],validateSpec:e.validateSpec,style:o,styleSpec:a})):s.push(new ae(t,r[t],`unknown property "${t}"`));return s}({sourceName:n,value:t,style:e.style,styleSpec:r,validateSpec:i}),o;case"geojson":if(o=Fr({key:n,value:t,valueSpec:r.source_geojson,style:a,styleSpec:r,validateSpec:i,objectElementValidators:ea}),t.cluster)for(let e in t.clusterProperties){let[r,a]=t.clusterProperties[e],s="string"==typeof r?[r,["accumulated"],["get",e]]:r;o.push(...Hr({key:`${n}.${e}.map`,value:a,validateSpec:i,expressionContext:"cluster-map"})),o.push(...Hr({key:`${n}.${e}.reduce`,value:s,validateSpec:i,expressionContext:"cluster-reduce"}))}return o;case"video":return Fr({key:n,value:t,valueSpec:r.source_video,style:a,validateSpec:i,styleSpec:r});case"image":return Fr({key:n,value:t,valueSpec:r.source_image,style:a,validateSpec:i,styleSpec:r});case"canvas":return[new ae(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Xr({key:`${n}.type`,value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:a,validateSpec:i,styleSpec:r})}}function na(e){let t=e.value,n=e.styleSpec,r=n.light,a=e.style,i=[],o=cr(t);if(void 0===t)return i;if("object"!==o)return i=i.concat([new ae("light",t,`object expected, ${o} found`)]),i;for(let o in t){let s=o.match(/^(.*)-transition$/);i=i.concat(s&&r[s[1]]&&r[s[1]].transition?e.validateSpec({key:o,value:t[o],valueSpec:n.transition,validateSpec:e.validateSpec,style:a,styleSpec:n}):r[o]?e.validateSpec({key:o,value:t[o],valueSpec:r[o],validateSpec:e.validateSpec,style:a,styleSpec:n}):[new ae(o,t[o],`unknown property "${o}"`)])}return i}function ra(e){let t=e.value,n=e.styleSpec,r=n.sky,a=e.style,i=cr(t);if(void 0===t)return[];if("object"!==i)return[new ae("sky",t,`object expected, ${i} found`)];let o=[];for(let i in t)o=o.concat(r[i]?e.validateSpec({key:i,value:t[i],valueSpec:r[i],style:a,styleSpec:n}):[new ae(i,t[i],`unknown property "${i}"`)]);return o}function aa(e){let t=e.value,n=e.styleSpec,r=n.terrain,a=e.style,i=[],o=cr(t);if(void 0===t)return i;if("object"!==o)return i=i.concat([new ae("terrain",t,`object expected, ${o} found`)]),i;for(let o in t)i=i.concat(r[o]?e.validateSpec({key:o,value:t[o],valueSpec:r[o],validateSpec:e.validateSpec,style:a,styleSpec:n}):[new ae(o,t[o],`unknown property "${o}"`)]);return i}function ia(e){let t=[],n=e.value,r=e.key;if(Array.isArray(n)){let a=[],i=[];for(let o in n)n[o].id&&a.includes(n[o].id)&&t.push(new ae(r,n,`all the sprites' ids must be unique, but ${n[o].id} is duplicated`)),a.push(n[o].id),n[o].url&&i.includes(n[o].url)&&t.push(new ae(r,n,`all the sprites' URLs must be unique, but ${n[o].url} is duplicated`)),i.push(n[o].url),t=t.concat(Fr({key:`${r}[${o}]`,value:n[o],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:e.validateSpec}));return t}return Kr({key:r,value:n})}let oa={"*":()=>[],array:jr,boolean:function(e){let t=e.value,n=e.key,r=cr(t);return"boolean"!==r?[new ae(n,t,`boolean expected, ${r} found`)]:[]},number:Ur,color:function(e){let t=e.key,n=e.value,r=cr(n);return"string"!==r?[new ae(t,n,`color expected, ${r} found`)]:Ge.parse(String(n))?[]:[new ae(t,n,`color expected, "${n}" found`)]},constants:Nr,enum:Xr,filter:Gr,function:Vr,layer:Qr,object:Fr,source:ta,light:na,sky:ra,terrain:aa,projection:function(e){let t=e.value,n=e.styleSpec,r=n.projection,a=e.style,i=cr(t);if(void 0===t)return[];if("object"!==i)return[new ae("projection",t,`object expected, ${i} found`)];let o=[];for(let i in t)o=o.concat(r[i]?e.validateSpec({key:i,value:t[i],valueSpec:r[i],style:a,styleSpec:n}):[new ae(i,t[i],`unknown property "${i}"`)]);return o},string:Kr,formatted:function(e){return 0===Kr(e).length?[]:Hr(e)},resolvedImage:function(e){return 0===Kr(e).length?[]:Hr(e)},padding:function(e){let t=e.key,n=e.value;if("array"===cr(n)){if(n.length<1||n.length>4)return[new ae(t,n,`padding requires 1 to 4 values; ${n.length} values found`)];let r={type:"number"},a=[];for(let i=0;i<n.length;i++)a=a.concat(e.validateSpec({key:`${t}[${i}]`,value:n[i],validateSpec:e.validateSpec,valueSpec:r}));return a}return Ur({key:t,value:n,valueSpec:{}})},variableAnchorOffsetCollection:function(e){let t=e.key,n=e.value,r=cr(n),a=e.styleSpec;if("array"!==r||n.length<1||n.length%2!=0)return[new ae(t,n,"variableAnchorOffsetCollection requires a non-empty array of even length")];let i=[];for(let r=0;r<n.length;r+=2)i=i.concat(Xr({key:`${t}[${r}]`,value:n[r],valueSpec:a.layout_symbol["text-anchor"]})),i=i.concat(jr({key:`${t}[${r+1}]`,value:n[r+1],valueSpec:{length:2,value:"number"},validateSpec:e.validateSpec,style:e.style,styleSpec:a}));return i},sprite:ia};function sa(e){let t=e.value,n=e.valueSpec,r=e.styleSpec;return e.validateSpec=sa,n.expression&&ur(Pr(t))?Vr(e):n.expression&&vr(Br(t))?Hr(e):n.type&&oa[n.type]?oa[n.type](e):Fr(ie({},e,{valueSpec:n.type?r[n.type]:n}))}function la(e){let t=e.value,n=e.key,r=Kr(e);return r.length||(-1===t.indexOf("{fontstack}")&&r.push(new ae(n,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&r.push(new ae(n,t,'"glyphs" url must include a "{range}" token'))),r}function ca(e,t=X){let n=[];return n=n.concat(sa({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,validateSpec:sa,objectElementValidators:{glyphs:la,"*":()=>[]}})),e.constants&&(n=n.concat(Nr({key:"constants",value:e.constants,style:e,styleSpec:t,validateSpec:sa}))),da(n)}function ua(e){return function(t){return e({...t,validateSpec:sa})}}function da(e){return[].concat(e).sort((e,t)=>e.line-t.line)}function pa(e){return function(...t){return da(e.apply(this,t))}}ca.source=pa(ua(ta)),ca.sprite=pa(ua(ia)),ca.glyphs=pa(ua(la)),ca.light=pa(ua(na)),ca.sky=pa(ua(ra)),ca.terrain=pa(ua(aa)),ca.layer=pa(ua(Qr)),ca.filter=pa(ua(Gr)),ca.paintProperty=pa(ua($r)),ca.layoutProperty=pa(ua(Jr));let ha=ca,fa=ha.light,ma=ha.sky,ga=ha.paintProperty,ya=ha.layoutProperty;function ba(e,t){let n=!1;if(t&&t.length)for(let r of t)e.fire(new V(new Error(r.message))),n=!0;return n}class va{constructor(e,t,n){let r=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;let a=new Int32Array(this.arrayBuffer);e=a[0],this.d=(t=a[1])+2*(n=a[2]);for(let e=0;e<this.d*this.d;e++){let t=a[3+e],n=a[3+e+1];r.push(t===n?null:a.subarray(t,n))}let i=a[3+r.length+1];this.keys=a.subarray(a[3+r.length],i),this.bboxes=a.subarray(i),this.insert=this._insertReadonly}else{this.d=t+2*n;for(let e=0;e<this.d*this.d;e++)r.push([]);this.keys=[],this.bboxes=[]}this.n=t,this.extent=e,this.padding=n,this.scale=t/e,this.uid=0;let a=n/t*e;this.min=-a,this.max=e+a}insert(e,t,n,r,a){this._forEachCell(t,n,r,a,this._insertCell,this.uid++,void 0,void 0),this.keys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(a)}_insertReadonly(){throw new Error("Cannot insert into a GridIndex created from an ArrayBuffer.")}_insertCell(e,t,n,r,a,i){this.cells[a].push(i)}query(e,t,n,r,a){let i=this.min,o=this.max;if(e<=i&&t<=i&&o<=n&&o<=r&&!a)return Array.prototype.slice.call(this.keys);{let i=[];return this._forEachCell(e,t,n,r,this._queryCell,i,{},a),i}}_queryCell(e,t,n,r,a,i,o,s){let l=this.cells[a];if(null!==l){let a=this.keys,c=this.bboxes;for(let u=0;u<l.length;u++){let d=l[u];if(void 0===o[d]){let l=4*d;(s?s(c[l+0],c[l+1],c[l+2],c[l+3]):e<=c[l+2]&&t<=c[l+3]&&n>=c[l+0]&&r>=c[l+1])?(o[d]=!0,i.push(a[d])):o[d]=!1}}}}_forEachCell(e,t,n,r,a,i,o,s){let l=this._convertToCellCoord(e),c=this._convertToCellCoord(t),u=this._convertToCellCoord(n),d=this._convertToCellCoord(r);for(let p=l;p<=u;p++)for(let l=c;l<=d;l++){let c=this.d*l+p;if((!s||s(this._convertFromCellCoord(p),this._convertFromCellCoord(l),this._convertFromCellCoord(p+1),this._convertFromCellCoord(l+1)))&&a.call(this,e,t,n,r,c,i,o,s))return}}_convertFromCellCoord(e){return(e-this.padding)/this.scale}_convertToCellCoord(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let e=this.cells,t=3+this.cells.length+1+1,n=0;for(let e=0;e<this.cells.length;e++)n+=this.cells[e].length;let r=new Int32Array(t+n+this.keys.length+this.bboxes.length);r[0]=this.extent,r[1]=this.n,r[2]=this.padding;let a=t;for(let t=0;t<e.length;t++){let n=e[t];r[3+t]=a,r.set(n,a),a+=n.length}return r[3+e.length]=a,r.set(this.keys,a),a+=this.keys.length,r[3+e.length+1]=a,r.set(this.bboxes,a),a+=this.bboxes.length,r.buffer}static serialize(e,t){let n=e.toArrayBuffer();return t&&t.push(n),{buffer:n}}static deserialize(e){return new va(e.buffer)}}let Ma={};function xa(e,t,n={}){if(Ma[e])throw new Error(`${e} is already registered.`);Object.defineProperty(t,"_classRegistryKey",{value:e,writeable:!1}),Ma[e]={klass:t,omit:n.omit||[],shallow:n.shallow||[]}}xa("Object",Object),xa("TransferableGridIndex",va),xa("Color",Ge),xa("Error",Error),xa("AJAXError",W),xa("ResolvedImage",et),xa("StylePropertyFunction",Ar),xa("StyleExpression",br,{omit:["_evaluator"]}),xa("ZoomDependentExpression",zr),xa("ZoomConstantExpression",xr),xa("CompoundExpression",Zn,{omit:["_evaluate"]});for(let e in Yn)Yn[e]._classRegistryKey||xa(`Expression_${e}`,Yn[e]);function za(e){return e&&typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function _a(e){return e.$name||e.constructor._classRegistryKey}function Aa(e){return!function(e){if(null===e||"object"!=typeof e)return!1;let t=_a(e);return!(!t||"Object"===t)}(e)&&(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||e instanceof Blob||e instanceof Error||za(e)||k(e)||ArrayBuffer.isView(e)||e instanceof ImageData)}function Oa(e,t){if(Aa(e))return(za(e)||k(e))&&t&&t.push(e),ArrayBuffer.isView(e)&&t&&t.push(e.buffer),e instanceof ImageData&&t&&t.push(e.data.buffer),e;if(Array.isArray(e)){let n=[];for(let r of e)n.push(Oa(r,t));return n}if("object"!=typeof e)throw new Error("can't serialize object of type "+typeof e);let n=_a(e);if(!n)throw new Error(`can't serialize object of unregistered class ${e.constructor.name}`);if(!Ma[n])throw new Error(`${n} is not registered.`);let{klass:r}=Ma[n],a=r.serialize?r.serialize(e,t):{};if(r.serialize){if(t&&a===t[t.length-1])throw new Error("statically serialized object won't survive transfer of $name property")}else{for(let r in e){if(!e.hasOwnProperty(r)||Ma[n].omit.indexOf(r)>=0)continue;let i=e[r];a[r]=Ma[n].shallow.indexOf(r)>=0?i:Oa(i,t)}e instanceof Error&&(a.message=e.message)}if(a.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==n&&(a.$name=n),a}function wa(e){if(Aa(e))return e;if(Array.isArray(e))return e.map(wa);if("object"!=typeof e)throw new Error("can't deserialize object of type "+typeof e);let t=_a(e)||"Object";if(!Ma[t])throw new Error(`can't deserialize unregistered class ${t}`);let{klass:n}=Ma[t];if(!n)throw new Error(`can't deserialize unregistered class ${t}`);if(n.deserialize)return n.deserialize(e);let r=Object.create(n.prototype);for(let n of Object.keys(e)){if("$name"===n)continue;let a=e[n];r[n]=Ma[t].shallow.indexOf(n)>=0?a:wa(a)}return r}class ka{constructor(){this.first=!0}update(e,t){let n=Math.floor(e);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=e,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=t):this.lastFloorZoom<n&&(this.lastIntegerZoom=n,this.lastIntegerZoomTime=t),e!==this.lastZoom&&(this.lastZoom=e,this.lastFloorZoom=n,!0))}}let Ta=e=>e>=128&&e<=255,Sa=e=>e>=6016&&e<=6143,Ca=e=>e>=8192&&e<=8303,Ea=e=>e>=8448&&e<=8527,qa=e=>e>=8528&&e<=8591,Da=e=>e>=8960&&e<=9215,Ra=e=>e>=9216&&e<=9279,La=e=>e>=9280&&e<=9311,Ia=e=>e>=9312&&e<=9471,Wa=e=>e>=9632&&e<=9727,Na=e=>e>=9728&&e<=9983,Pa=e=>e>=11008&&e<=11263,Ba=e=>e>=12272&&e<=12287,Fa=e=>e>=12288&&e<=12351,ja=e=>e>=12448&&e<=12543,Ua=e=>e>=12688&&e<=12703,Va=e=>e>=12736&&e<=12783,Ha=e=>e>=12800&&e<=13055,Xa=e=>e>=13056&&e<=13311,Ga=e=>e>=19904&&e<=19967,Ya=e=>e>=57344&&e<=63743,Za=e=>e>=65040&&e<=65055,$a=e=>e>=65072&&e<=65103,Ja=e=>e>=65104&&e<=65135,Qa=e=>e>=65280&&e<=65519;function Ka(e){for(let t of e)if(ii(t.charCodeAt(0)))return!0;return!1}function ei(e){for(let t of e)if(!ri(t.charCodeAt(0)))return!1;return!0}function ti(e){let t=e.map(e=>{try{return new RegExp(`\\p{sc=${e}}`,"u").source}catch{return null}}).filter(e=>e);return new RegExp(t.join("|"),"u")}let ni=ti(["Arab","Dupl","Mong","Ougr","Syrc"]);function ri(e){return!ni.test(String.fromCodePoint(e))}let ai=ti(["Bopo","Hani","Hira","Kana","Kits","Nshu","Tang","Yiii"]);function ii(e){return!(746!==e&&747!==e&&(e<4352||!($a(e)&&!(e>=65097&&e<=65103)||Xa(e)||Va(e)||!(!Fa(e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||Ha(e)||Ba(e)||Ua(e)||ja(e)&&12540!==e||!(!Qa(e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!Ja(e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||Za(e)||Ga(e)||/\p{sc=Cans}/u.test(String.fromCodePoint(e))||/\p{sc=Hang}/u.test(String.fromCodePoint(e))||ai.test(String.fromCodePoint(e)))))}function oi(e){return!(ii(e)||(t=e,Ta(t)&&(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||Ca(t)&&(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||Ea(t)||qa(t)||Da(t)&&(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||9003===t||t>=9085&&t<=9114||t>=9150&&t<=9165||9167===t||t>=9169&&t<=9179||t>=9186&&t<=9215)||Ra(t)&&9251!==t||La(t)||Ia(t)||Wa(t)||Na(t)&&!(t>=9754&&t<=9759)||Pa(t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||Fa(t)||ja(t)||Ya(t)||$a(t)||Ja(t)||Qa(t)||8734===t||8756===t||8757===t||t>=9984&&t<=10087||t>=10102&&t<=10131||65532===t||65533===t));var t}let si=ti(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function li(e){return si.test(String.fromCodePoint(e))}function ci(e,t){return!(!t&&li(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||Sa(e))}function ui(e){for(let t of e)if(li(t.charCodeAt(0)))return!0;return!1}let di=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(e){this.pluginStatus=e.pluginStatus,this.pluginURL=e.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(e){this.applyArabicShaping=e.applyArabicShaping,this.processBidirectionalText=e.processBidirectionalText,this.processStyledBidirectionalText=e.processStyledBidirectionalText}isParsed(){return null!=this.applyArabicShaping&&null!=this.processBidirectionalText&&null!=this.processStyledBidirectionalText}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class pi{constructor(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.zoomHistory=t.zoomHistory,this.transition=t.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new ka,this.transition={})}isSupportedScript(e){return function(e,t){for(let n of e)if(!ci(n.charCodeAt(0),t))return!1;return!0}(e,"loaded"===di.getRTLTextPluginStatus())}crossFadingFactor(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let e=this.zoom,t=e-Math.floor(e),n=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*t}}}class hi{constructor(e,t){this.property=e,this.value=t,this.expression=function(e,t){if(ur(e))return new Ar(e,t);if(vr(e)){let n=_r(e,t);if("error"===n.result)throw new Error(n.value.map(e=>`${e.key}: ${e.message}`).join(", "));return n.value}{let n=e;return"color"===t.type&&"string"==typeof e?n=Ge.parse(e):"padding"!==t.type||"number"!=typeof e&&!Array.isArray(e)?"variableAnchorOffsetCollection"===t.type&&Array.isArray(e)&&(n=Ke.parse(e)):n=Je.parse(e),{kind:"constant",evaluate:()=>n}}}(void 0===t?e.specification.default:t,e.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(e,t,n){return this.property.possiblyEvaluate(this,e,t,n)}}class fi{constructor(e){this.property=e,this.value=new hi(e,void 0)}transitioned(e,t){return new gi(this.property,this.value,t,y({},e.transition,this.transition),e.now)}untransitioned(){return new gi(this.property,this.value,null,{},0)}}class mi{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)}getValue(e){return x(this._values[e].value.value)}setValue(e,t){Object.prototype.hasOwnProperty.call(this._values,e)||(this._values[e]=new fi(this._values[e].property)),this._values[e].value=new hi(this._values[e].property,null===t?void 0:x(t))}getTransition(e){return x(this._values[e].transition)}setTransition(e,t){Object.prototype.hasOwnProperty.call(this._values,e)||(this._values[e]=new fi(this._values[e].property)),this._values[e].transition=x(t)||void 0}serialize(){let e={};for(let t of Object.keys(this._values)){let n=this.getValue(t);void 0!==n&&(e[t]=n);let r=this.getTransition(t);void 0!==r&&(e[`${t}-transition`]=r)}return e}transitioned(e,t){let n=new yi(this._properties);for(let r of Object.keys(this._values))n._values[r]=this._values[r].transitioned(e,t._values[r]);return n}untransitioned(){let e=new yi(this._properties);for(let t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}}class gi{constructor(e,t,n,r,a){this.property=e,this.value=t,this.begin=a+r.delay||0,this.end=this.begin+r.duration||0,e.specification.transition&&(r.delay||r.duration)&&(this.prior=n)}possiblyEvaluate(e,t,n){let r=e.now||0,a=this.value.possiblyEvaluate(e,t,n),i=this.prior;if(i){if(r>this.end)return this.prior=null,a;if(this.value.isDataDriven())return this.prior=null,a;if(r<this.begin)return i.possiblyEvaluate(e,t,n);{let o=(r-this.begin)/(this.end-this.begin);return this.property.interpolate(i.possiblyEvaluate(e,t,n),a,function(e){if(e<=0)return 0;if(e>=1)return 1;let t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}(o))}}return a}}class yi{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,t,n){let r=new Mi(this._properties);for(let a of Object.keys(this._values))r._values[a]=this._values[a].possiblyEvaluate(e,t,n);return r}hasTransition(){for(let e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class bi{constructor(e){this._properties=e,this._values=Object.create(e.defaultPropertyValues)}hasValue(e){return void 0!==this._values[e].value}getValue(e){return x(this._values[e].value)}setValue(e,t){this._values[e]=new hi(this._values[e].property,null===t?void 0:x(t))}serialize(){let e={};for(let t of Object.keys(this._values)){let n=this.getValue(t);void 0!==n&&(e[t]=n)}return e}possiblyEvaluate(e,t,n){let r=new Mi(this._properties);for(let a of Object.keys(this._values))r._values[a]=this._values[a].possiblyEvaluate(e,t,n);return r}}class vi{constructor(e,t,n){this.property=e,this.value=t,this.parameters=n}isConstant(){return"constant"===this.value.kind}constantOr(e){return"constant"===this.value.kind?this.value.value:e}evaluate(e,t,n,r){return this.property.evaluate(this.value,this.parameters,e,t,n,r)}}class Mi{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class xi{constructor(e){this.specification=e}possiblyEvaluate(e,t){if(e.isDataDriven())throw new Error("Value should not be data driven");return e.expression.evaluate(t)}interpolate(e,t,n){let r=Ct[this.specification.type];return r?r(e,t,n):e}}class zi{constructor(e,t){this.specification=e,this.overrides=t}possiblyEvaluate(e,t,n,r){return new vi(this,"constant"===e.expression.kind||"camera"===e.expression.kind?{kind:"constant",value:e.expression.evaluate(t,null,{},n,r)}:e.expression,t)}interpolate(e,t,n){if("constant"!==e.value.kind||"constant"!==t.value.kind)return e;if(void 0===e.value.value||void 0===t.value.value)return new vi(this,{kind:"constant",value:void 0},e.parameters);let r=Ct[this.specification.type];if(r){let a=r(e.value.value,t.value.value,n);return new vi(this,{kind:"constant",value:a},e.parameters)}return e}evaluate(e,t,n,r,a,i){return"constant"===e.kind?e.value:e.evaluate(t,n,r,a,i)}}class _i extends zi{possiblyEvaluate(e,t,n,r){if(void 0===e.value)return new vi(this,{kind:"constant",value:void 0},t);if("constant"===e.expression.kind){let a=e.expression.evaluate(t,null,{},n,r),i="resolvedImage"===e.property.specification.type&&"string"!=typeof a?a.name:a,o=this._calculate(i,i,i,t);return new vi(this,{kind:"constant",value:o},t)}if("camera"===e.expression.kind){let n=this._calculate(e.expression.evaluate({zoom:t.zoom-1}),e.expression.evaluate({zoom:t.zoom}),e.expression.evaluate({zoom:t.zoom+1}),t);return new vi(this,{kind:"constant",value:n},t)}return new vi(this,e.expression,t)}evaluate(e,t,n,r,a,i){if("source"===e.kind){let o=e.evaluate(t,n,r,a,i);return this._calculate(o,o,o,t)}return"composite"===e.kind?this._calculate(e.evaluate({zoom:Math.floor(t.zoom)-1},n,r),e.evaluate({zoom:Math.floor(t.zoom)},n,r),e.evaluate({zoom:Math.floor(t.zoom)+1},n,r),t):e.value}_calculate(e,t,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}}interpolate(e){return e}}class Ai{constructor(e){this.specification=e}possiblyEvaluate(e,t,n,r){if(void 0!==e.value){if("constant"===e.expression.kind){let a=e.expression.evaluate(t,null,{},n,r);return this._calculate(a,a,a,t)}return this._calculate(e.expression.evaluate(new pi(Math.floor(t.zoom-1),t)),e.expression.evaluate(new pi(Math.floor(t.zoom),t)),e.expression.evaluate(new pi(Math.floor(t.zoom+1),t)),t)}}_calculate(e,t,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}}interpolate(e){return e}}class Oi{constructor(e){this.specification=e}possiblyEvaluate(e,t,n,r){return!!e.expression.evaluate(t,null,{},n,r)}interpolate(){return!1}}class wi{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let t in e){let n=e[t];n.specification.overridable&&this.overridableProperties.push(t);let r=this.defaultPropertyValues[t]=new hi(n,void 0),a=this.defaultTransitionablePropertyValues[t]=new fi(n);this.defaultTransitioningPropertyValues[t]=a.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=r.possiblyEvaluate({})}}}xa("DataDrivenProperty",zi),xa("DataConstantProperty",xi),xa("CrossFadedDataDrivenProperty",_i),xa("CrossFadedProperty",Ai),xa("ColorRampProperty",Oi);let ki="-transition";class Ti extends H{constructor(e,t){if(super(),this.id=e.id,this.type=e.type,this._featureFilter={filter:()=>!0,needGeometry:!1},"custom"!==e.type&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),t.layout&&(this._unevaluatedLayout=new bi(t.layout)),t.paint)){this._transitionablePaint=new mi(t.paint);for(let t in e.paint)this.setPaintProperty(t,e.paint[t],{validate:!1});for(let t in e.layout)this.setLayoutProperty(t,e.layout[t],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Mi(t.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,t,n={}){null!=t&&this._validate(ya,`layers.${this.id}.layout.${e}`,e,t,n)||("visibility"!==e?this._unevaluatedLayout.setValue(e,t):this.visibility=t)}getPaintProperty(e){return e.endsWith(ki)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)}setPaintProperty(e,t,n={}){if(null!=t&&this._validate(ga,`layers.${this.id}.paint.${e}`,e,t,n))return!1;if(e.endsWith(ki))return this._transitionablePaint.setTransition(e.slice(0,-11),t||void 0),!1;{let n=this._transitionablePaint._values[e],r="cross-faded-data-driven"===n.property.specification["property-type"],a=n.value.isDataDriven(),i=n.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);let o=this._transitionablePaint._values[e].value;return o.isDataDriven()||a||r||this._handleOverridablePaintPropertyUpdate(e,i,o)}}_handleSpecialPaintPropertyUpdate(e){}_handleOverridablePaintPropertyUpdate(e,t,n){return!1}isHidden(e){return!!(this.minzoom&&e<this.minzoom)||!!(this.maxzoom&&e>=this.maxzoom)||"none"===this.visibility}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}serialize(){let e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),M(e,(e,t)=>!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length))}_validate(e,t,n,r,a={}){return(!a||!1!==a.validate)&&ba(this,e.call(ha,{key:t,layerType:this.type,objectKey:n,value:r,styleSpec:X,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let e in this.paint._values){let t=this.paint.get(e);if(t instanceof vi&&or(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1}}let Si={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Ci{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class Ei{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){let t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function qi(e,t=1){let n=0,r=0;return{members:e.map(e=>{let a=Si[e.type].BYTES_PER_ELEMENT,i=n=Di(n,Math.max(t,a)),o=e.components||1;return r=Math.max(r,a),n+=a*o,{name:e.name,type:e.type,components:o,offset:i}}),size:Di(n,Math.max(r,t)),alignment:t}}function Di(e,t){return Math.ceil(e/t)*t}class Ri extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){let n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){let r=2*e;return this.int16[r+0]=t,this.int16[r+1]=n,e}}Ri.prototype.bytesPerElement=4,xa("StructArrayLayout2i4",Ri);class Li extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n){let r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)}emplace(e,t,n,r){let a=3*e;return this.int16[a+0]=t,this.int16[a+1]=n,this.int16[a+2]=r,e}}Li.prototype.bytesPerElement=6,xa("StructArrayLayout3i6",Li);class Ii extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r){let a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r)}emplace(e,t,n,r,a){let i=4*e;return this.int16[i+0]=t,this.int16[i+1]=n,this.int16[i+2]=r,this.int16[i+3]=a,e}}Ii.prototype.bytesPerElement=8,xa("StructArrayLayout4i8",Ii);class Wi extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,a,i){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,a,i)}emplace(e,t,n,r,a,i,o){let s=6*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=a,this.int16[s+4]=i,this.int16[s+5]=o,e}}Wi.prototype.bytesPerElement=12,xa("StructArrayLayout2i4i12",Wi);class Ni extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,a,i){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,a,i)}emplace(e,t,n,r,a,i,o){let s=4*e,l=8*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.uint8[l+4]=r,this.uint8[l+5]=a,this.uint8[l+6]=i,this.uint8[l+7]=o,e}}Ni.prototype.bytesPerElement=8,xa("StructArrayLayout2i4ub8",Ni);class Pi extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){let n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){let r=2*e;return this.float32[r+0]=t,this.float32[r+1]=n,e}}Pi.prototype.bytesPerElement=8,xa("StructArrayLayout2f8",Pi);class Bi extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,a,i,o,s,l,c){let u=this.length;return this.resize(u+1),this.emplace(u,e,t,n,r,a,i,o,s,l,c)}emplace(e,t,n,r,a,i,o,s,l,c,u){let d=10*e;return this.uint16[d+0]=t,this.uint16[d+1]=n,this.uint16[d+2]=r,this.uint16[d+3]=a,this.uint16[d+4]=i,this.uint16[d+5]=o,this.uint16[d+6]=s,this.uint16[d+7]=l,this.uint16[d+8]=c,this.uint16[d+9]=u,e}}Bi.prototype.bytesPerElement=20,xa("StructArrayLayout10ui20",Bi);class Fi extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,a,i,o,s,l,c,u,d){let p=this.length;return this.resize(p+1),this.emplace(p,e,t,n,r,a,i,o,s,l,c,u,d)}emplace(e,t,n,r,a,i,o,s,l,c,u,d,p){let h=12*e;return this.int16[h+0]=t,this.int16[h+1]=n,this.int16[h+2]=r,this.int16[h+3]=a,this.uint16[h+4]=i,this.uint16[h+5]=o,this.uint16[h+6]=s,this.uint16[h+7]=l,this.int16[h+8]=c,this.int16[h+9]=u,this.int16[h+10]=d,this.int16[h+11]=p,e}}Fi.prototype.bytesPerElement=24,xa("StructArrayLayout4i4ui4i24",Fi);class ji extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n){let r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)}emplace(e,t,n,r){let a=3*e;return this.float32[a+0]=t,this.float32[a+1]=n,this.float32[a+2]=r,e}}ji.prototype.bytesPerElement=12,xa("StructArrayLayout3f12",ji);class Ui extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint32[1*e+0]=t,e}}Ui.prototype.bytesPerElement=4,xa("StructArrayLayout1ul4",Ui);class Vi extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,a,i,o,s,l){let c=this.length;return this.resize(c+1),this.emplace(c,e,t,n,r,a,i,o,s,l)}emplace(e,t,n,r,a,i,o,s,l,c){let u=10*e,d=5*e;return this.int16[u+0]=t,this.int16[u+1]=n,this.int16[u+2]=r,this.int16[u+3]=a,this.int16[u+4]=i,this.int16[u+5]=o,this.uint32[d+3]=s,this.uint16[u+8]=l,this.uint16[u+9]=c,e}}Vi.prototype.bytesPerElement=20,xa("StructArrayLayout6i1ul2ui20",Vi);class Hi extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,a,i){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,a,i)}emplace(e,t,n,r,a,i,o){let s=6*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=a,this.int16[s+4]=i,this.int16[s+5]=o,e}}Hi.prototype.bytesPerElement=12,xa("StructArrayLayout2i2i2i12",Hi);class Xi extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,a){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r,a)}emplace(e,t,n,r,a,i){let o=4*e,s=8*e;return this.float32[o+0]=t,this.float32[o+1]=n,this.float32[o+2]=r,this.int16[s+6]=a,this.int16[s+7]=i,e}}Xi.prototype.bytesPerElement=16,xa("StructArrayLayout2f1f2i16",Xi);class Gi extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,r,a,i){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,a,i)}emplace(e,t,n,r,a,i,o){let s=16*e,l=4*e,c=8*e;return this.uint8[s+0]=t,this.uint8[s+1]=n,this.float32[l+1]=r,this.float32[l+2]=a,this.int16[c+6]=i,this.int16[c+7]=o,e}}Gi.prototype.bytesPerElement=16,xa("StructArrayLayout2ub2f2i16",Gi);class Yi extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n){let r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)}emplace(e,t,n,r){let a=3*e;return this.uint16[a+0]=t,this.uint16[a+1]=n,this.uint16[a+2]=r,e}}Yi.prototype.bytesPerElement=6,xa("StructArrayLayout3ui6",Yi);class Zi extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g){let y=this.length;return this.resize(y+1),this.emplace(y,e,t,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g)}emplace(e,t,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g,y){let b=24*e,v=12*e,M=48*e;return this.int16[b+0]=t,this.int16[b+1]=n,this.uint16[b+2]=r,this.uint16[b+3]=a,this.uint32[v+2]=i,this.uint32[v+3]=o,this.uint32[v+4]=s,this.uint16[b+10]=l,this.uint16[b+11]=c,this.uint16[b+12]=u,this.float32[v+7]=d,this.float32[v+8]=p,this.uint8[M+36]=h,this.uint8[M+37]=f,this.uint8[M+38]=m,this.uint32[v+10]=g,this.int16[b+22]=y,e}}Zi.prototype.bytesPerElement=48,xa("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Zi);class $i extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g,y,b,v,M,x,z,_,A,O,w,k){let T=this.length;return this.resize(T+1),this.emplace(T,e,t,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g,y,b,v,M,x,z,_,A,O,w,k)}emplace(e,t,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g,y,b,v,M,x,z,_,A,O,w,k,T){let S=32*e,C=16*e;return this.int16[S+0]=t,this.int16[S+1]=n,this.int16[S+2]=r,this.int16[S+3]=a,this.int16[S+4]=i,this.int16[S+5]=o,this.int16[S+6]=s,this.int16[S+7]=l,this.uint16[S+8]=c,this.uint16[S+9]=u,this.uint16[S+10]=d,this.uint16[S+11]=p,this.uint16[S+12]=h,this.uint16[S+13]=f,this.uint16[S+14]=m,this.uint16[S+15]=g,this.uint16[S+16]=y,this.uint16[S+17]=b,this.uint16[S+18]=v,this.uint16[S+19]=M,this.uint16[S+20]=x,this.uint16[S+21]=z,this.uint16[S+22]=_,this.uint32[C+12]=A,this.float32[C+13]=O,this.float32[C+14]=w,this.uint16[S+30]=k,this.uint16[S+31]=T,e}}$i.prototype.bytesPerElement=64,xa("StructArrayLayout8i15ui1ul2f2ui64",$i);class Ji extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.float32[1*e+0]=t,e}}Ji.prototype.bytesPerElement=4,xa("StructArrayLayout1f4",Ji);class Qi extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n){let r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)}emplace(e,t,n,r){let a=3*e;return this.uint16[6*e+0]=t,this.float32[a+1]=n,this.float32[a+2]=r,e}}Qi.prototype.bytesPerElement=12,xa("StructArrayLayout1ui2f12",Qi);class Ki extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n){let r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)}emplace(e,t,n,r){let a=4*e;return this.uint32[2*e+0]=t,this.uint16[a+2]=n,this.uint16[a+3]=r,e}}Ki.prototype.bytesPerElement=8,xa("StructArrayLayout1ul2ui8",Ki);class eo extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){let n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){let r=2*e;return this.uint16[r+0]=t,this.uint16[r+1]=n,e}}eo.prototype.bytesPerElement=4,xa("StructArrayLayout2ui4",eo);class to extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint16[1*e+0]=t,e}}to.prototype.bytesPerElement=2,xa("StructArrayLayout1ui2",to);class no extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,r){let a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r)}emplace(e,t,n,r,a){let i=4*e;return this.float32[i+0]=t,this.float32[i+1]=n,this.float32[i+2]=r,this.float32[i+3]=a,e}}no.prototype.bytesPerElement=16,xa("StructArrayLayout4f16",no);class ro extends Ci{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new i(this.anchorPointX,this.anchorPointY)}}ro.prototype.size=20;class ao extends Vi{get(e){return new ro(this,e)}}xa("CollisionBoxArray",ao);class io extends Ci{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(e){this._structArray.uint8[this._pos1+37]=e}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(e){this._structArray.uint8[this._pos1+38]=e}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(e){this._structArray.uint32[this._pos4+10]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}io.prototype.size=48;class oo extends Zi{get(e){return new io(this,e)}}xa("PlacedSymbolArray",oo);class so extends Ci{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(e){this._structArray.uint32[this._pos4+12]=e}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}so.prototype.size=64;class lo extends $i{get(e){return new so(this,e)}}xa("SymbolInstanceArray",lo);class co extends Ji{getoffsetX(e){return this.float32[1*e+0]}}xa("GlyphOffsetArray",co);class uo extends Li{getx(e){return this.int16[3*e+0]}gety(e){return this.int16[3*e+1]}gettileUnitDistanceFromAnchor(e){return this.int16[3*e+2]}}xa("SymbolLineVertexArray",uo);class po extends Ci{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}po.prototype.size=12;class ho extends Qi{get(e){return new po(this,e)}}xa("TextAnchorOffsetArray",ho);class fo extends Ci{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}fo.prototype.size=8;class mo extends Ki{get(e){return new fo(this,e)}}xa("FeatureIndexArray",mo);class go extends Ri{}class yo extends Ri{}class bo extends Ri{}class vo extends Wi{}class Mo extends Ni{}class xo extends Pi{}class zo extends Bi{}class _o extends Fi{}class Ao extends ji{}class Oo extends Ui{}class wo extends Hi{}class ko extends Gi{}class To extends Yi{}class So extends eo{}let Co=qi([{name:"a_pos",components:2,type:"Int16"}],4),{members:Eo}=Co;class qo{constructor(e=[]){this.segments=e}prepareSegment(e,t,n,r){let a=this.segments[this.segments.length-1];return e>qo.MAX_VERTEX_ARRAY_LENGTH&&_(`Max vertices per segment is ${qo.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!a||a.vertexLength+e>qo.MAX_VERTEX_ARRAY_LENGTH||a.sortKey!==r)&&(a={vertexOffset:t.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==r&&(a.sortKey=r),this.segments.push(a)),a}get(){return this.segments}destroy(){for(let e of this.segments)for(let t in e.vaos)e.vaos[t].destroy()}static simpleSegment(e,t,n,r){return new qo([{vertexOffset:e,primitiveOffset:t,vertexLength:n,primitiveLength:r,vaos:{},sortKey:0}])}}function Do(e,t){return 256*(e=m(Math.floor(e),0,255))+m(Math.floor(t),0,255)}qo.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,xa("SegmentVector",qo);let Ro=qi([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var Lo={exports:{}},Io={exports:{}};Io.exports=function(e,t){var n,r,a,i,o,s,l,c;for(r=e.length-(n=3&e.length),a=t,o=3432918353,s=461845907,c=0;c<r;)l=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,a=27492+(65535&(i=5*(65535&(a=(a^=l=(65535&(l=(l=(65535&l)*o+(((l>>>16)*o&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|a>>>19))+((5*(a>>>16)&65535)<<16)&4294967295))+((58964+(i>>>16)&65535)<<16);switch(l=0,n){case 3:l^=(255&e.charCodeAt(c+2))<<16;case 2:l^=(255&e.charCodeAt(c+1))<<8;case 1:a^=l=(65535&(l=(l=(65535&(l^=255&e.charCodeAt(c)))*o+(((l>>>16)*o&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return a^=e.length,a=2246822507*(65535&(a^=a>>>16))+((2246822507*(a>>>16)&65535)<<16)&4294967295,a=3266489909*(65535&(a^=a>>>13))+((3266489909*(a>>>16)&65535)<<16)&4294967295,(a^=a>>>16)>>>0};var Wo=Io.exports,No={exports:{}};No.exports=function(e,t){for(var n,r=e.length,a=t^r,i=0;r>=4;)n=1540483477*(65535&(n=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(n>>>16)&65535)<<16),a=1540483477*(65535&a)+((1540483477*(a>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++i;switch(r){case 3:a^=(255&e.charCodeAt(i+2))<<16;case 2:a^=(255&e.charCodeAt(i+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(i)))+((1540483477*(a>>>16)&65535)<<16)}return a=1540483477*(65535&(a^=a>>>13))+((1540483477*(a>>>16)&65535)<<16),(a^=a>>>15)>>>0};var Po=Wo,Bo=No.exports;Lo.exports=Po,Lo.exports.murmur3=Po,Lo.exports.murmur2=Bo;var Fo=n(Lo.exports);class jo{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,t,n,r){this.ids.push(Uo(e)),this.positions.push(t,n,r)}getPositions(e){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let t=Uo(e),n=0,r=this.ids.length-1;for(;n<r;){let e=n+r>>1;this.ids[e]>=t?r=e:n=e+1}let a=[];for(;this.ids[n]===t;)a.push({index:this.positions[3*n],start:this.positions[3*n+1],end:this.positions[3*n+2]}),n++;return a}static serialize(e,t){let n=new Float64Array(e.ids),r=new Uint32Array(e.positions);return Vo(n,r,0,n.length-1),t&&t.push(n.buffer,r.buffer),{ids:n,positions:r}}static deserialize(e){let t=new jo;return t.ids=e.ids,t.positions=e.positions,t.indexed=!0,t}}function Uo(e){let t=+e;return!isNaN(t)&&t<=Number.MAX_SAFE_INTEGER?t:Fo(String(e))}function Vo(e,t,n,r){for(;n<r;){let a=e[n+r>>1],i=n-1,o=r+1;for(;;){do{i++}while(e[i]<a);do{o--}while(e[o]>a);if(i>=o)break;Ho(e,i,o),Ho(t,3*i,3*o),Ho(t,3*i+1,3*o+1),Ho(t,3*i+2,3*o+2)}o-n<r-o?(Vo(e,t,n,o),n=o+1):(Vo(e,t,o+1,r),r=o)}}function Ho(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}xa("FeaturePositionMap",jo);class Xo{constructor(e,t){this.gl=e.gl,this.location=t}}class Go extends Xo{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1f(this.location,e))}}class Yo extends Xo{constructor(e,t){super(e,t),this.current=[0,0,0,0]}set(e){e[0]===this.current[0]&&e[1]===this.current[1]&&e[2]===this.current[2]&&e[3]===this.current[3]||(this.current=e,this.gl.uniform4f(this.location,e[0],e[1],e[2],e[3]))}}class Zo extends Xo{constructor(e,t){super(e,t),this.current=Ge.transparent}set(e){e.r===this.current.r&&e.g===this.current.g&&e.b===this.current.b&&e.a===this.current.a||(this.current=e,this.gl.uniform4f(this.location,e.r,e.g,e.b,e.a))}}let $o=new Float32Array(16);function Jo(e){return[Do(255*e.r,255*e.g),Do(255*e.b,255*e.a)]}class Qo{constructor(e,t,n){this.value=e,this.uniformNames=t.map(e=>`u_${e}`),this.type=n}setUniform(e,t,n){e.set(n.constantOr(this.value))}getBinding(e,t,n){return"color"===this.type?new Zo(e,t):new Go(e,t)}}class Ko{constructor(e,t){this.uniformNames=t.map(e=>`u_${e}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,t){this.pixelRatioFrom=t.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=t.tlbr,this.patternTo=e.tlbr}setUniform(e,t,n,r){let a="u_pattern_to"===r?this.patternTo:"u_pattern_from"===r?this.patternFrom:"u_pixel_ratio_to"===r?this.pixelRatioTo:"u_pixel_ratio_from"===r?this.pixelRatioFrom:null;a&&e.set(a)}getBinding(e,t,n){return"u_pattern"===n.substr(0,9)?new Yo(e,t):new Go(e,t)}}class es{constructor(e,t,n,r){this.expression=e,this.type=n,this.maxValue=0,this.paintVertexAttributes=t.map(e=>({name:`a_${e}`,type:"Float32",components:"color"===n?2:1,offset:0})),this.paintVertexArray=new r}populatePaintArray(e,t,n,r,a){let i=this.paintVertexArray.length,o=this.expression.evaluate(new pi(0),t,{},r,[],a);this.paintVertexArray.resize(e),this._setPaintValue(i,e,o)}updatePaintArray(e,t,n,r){let a=this.expression.evaluate({zoom:0},n,r);this._setPaintValue(e,t,a)}_setPaintValue(e,t,n){if("color"===this.type){let r=Jo(n);for(let n=e;n<t;n++)this.paintVertexArray.emplace(n,r[0],r[1])}else{for(let r=e;r<t;r++)this.paintVertexArray.emplace(r,n);this.maxValue=Math.max(this.maxValue,Math.abs(n))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class ts{constructor(e,t,n,r,a,i){this.expression=e,this.uniformNames=t.map(e=>`u_${e}_t`),this.type=n,this.useIntegerZoom=r,this.zoom=a,this.maxValue=0,this.paintVertexAttributes=t.map(e=>({name:`a_${e}`,type:"Float32",components:"color"===n?4:2,offset:0})),this.paintVertexArray=new i}populatePaintArray(e,t,n,r,a){let i=this.expression.evaluate(new pi(this.zoom),t,{},r,[],a),o=this.expression.evaluate(new pi(this.zoom+1),t,{},r,[],a),s=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(s,e,i,o)}updatePaintArray(e,t,n,r){let a=this.expression.evaluate({zoom:this.zoom},n,r),i=this.expression.evaluate({zoom:this.zoom+1},n,r);this._setPaintValue(e,t,a,i)}_setPaintValue(e,t,n,r){if("color"===this.type){let a=Jo(n),i=Jo(r);for(let n=e;n<t;n++)this.paintVertexArray.emplace(n,a[0],a[1],i[0],i[1])}else{for(let a=e;a<t;a++)this.paintVertexArray.emplace(a,n,r);this.maxValue=Math.max(this.maxValue,Math.abs(n),Math.abs(r))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(e,t){let n=this.useIntegerZoom?Math.floor(t.zoom):t.zoom,r=m(this.expression.interpolationFactor(n,this.zoom,this.zoom+1),0,1);e.set(r)}getBinding(e,t,n){return new Go(e,t)}}class ns{constructor(e,t,n,r,a,i){this.expression=e,this.type=t,this.useIntegerZoom=n,this.zoom=r,this.layerId=i,this.zoomInPaintVertexArray=new a,this.zoomOutPaintVertexArray=new a}populatePaintArray(e,t,n){let r=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(e),this.zoomOutPaintVertexArray.resize(e),this._setPaintValues(r,e,t.patterns&&t.patterns[this.layerId],n)}updatePaintArray(e,t,n,r,a){this._setPaintValues(e,t,n.patterns&&n.patterns[this.layerId],a)}_setPaintValues(e,t,n,r){if(!r||!n)return;let{min:a,mid:i,max:o}=n,s=r[a],l=r[i],c=r[o];if(s&&l&&c)for(let n=e;n<t;n++)this.zoomInPaintVertexArray.emplace(n,l.tl[0],l.tl[1],l.br[0],l.br[1],s.tl[0],s.tl[1],s.br[0],s.br[1],l.pixelRatio,s.pixelRatio),this.zoomOutPaintVertexArray.emplace(n,l.tl[0],l.tl[1],l.br[0],l.br[1],c.tl[0],c.tl[1],c.br[0],c.br[1],l.pixelRatio,c.pixelRatio)}upload(e){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=e.createVertexBuffer(this.zoomInPaintVertexArray,Ro.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=e.createVertexBuffer(this.zoomOutPaintVertexArray,Ro.members,this.expression.isStateDependent))}destroy(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()}}class rs{constructor(e,t,n){this.binders={},this._buffers=[];let r=[];for(let a in e.paint._values){if(!n(a))continue;let i=e.paint.get(a);if(!(i instanceof vi&&or(i.property.specification)))continue;let o=is(a,e.type),s=i.value,l=i.property.specification.type,c=i.property.useIntegerZoom,u=i.property.specification["property-type"],d="cross-faded"===u||"cross-faded-data-driven"===u;if("constant"===s.kind)this.binders[a]=d?new Ko(s.value,o):new Qo(s.value,o,l),r.push(`/u_${a}`);else if("source"===s.kind||d){let n=os(a,l,"source");this.binders[a]=d?new ns(s,l,c,t,n,e.id):new es(s,o,l,n),r.push(`/a_${a}`)}else{let e=os(a,l,"composite");this.binders[a]=new ts(s,o,l,c,t,e),r.push(`/z_${a}`)}}this.cacheKey=r.sort().join("")}getMaxValue(e){let t=this.binders[e];return t instanceof es||t instanceof ts?t.maxValue:0}populatePaintArrays(e,t,n,r,a){for(let i in this.binders){let o=this.binders[i];(o instanceof es||o instanceof ts||o instanceof ns)&&o.populatePaintArray(e,t,n,r,a)}}setConstantPatternPositions(e,t){for(let n in this.binders){let r=this.binders[n];r instanceof Ko&&r.setConstantPatternPositions(e,t)}}updatePaintArrays(e,t,n,r,a){let i=!1;for(let o in e){let s=t.getPositions(o);for(let t of s){let s=n.feature(t.index);for(let n in this.binders){let l=this.binders[n];if((l instanceof es||l instanceof ts||l instanceof ns)&&!0===l.expression.isStateDependent){let c=r.paint.get(n);l.expression=c.value,l.updatePaintArray(t.start,t.end,s,e[o],a),i=!0}}}}return i}defines(){let e=[];for(let t in this.binders){let n=this.binders[t];(n instanceof Qo||n instanceof Ko)&&e.push(...n.uniformNames.map(e=>`#define HAS_UNIFORM_${e}`))}return e}getBinderAttributes(){let e=[];for(let t in this.binders){let n=this.binders[t];if(n instanceof es||n instanceof ts)for(let t=0;t<n.paintVertexAttributes.length;t++)e.push(n.paintVertexAttributes[t].name);else if(n instanceof ns)for(let t=0;t<Ro.members.length;t++)e.push(Ro.members[t].name)}return e}getBinderUniforms(){let e=[];for(let t in this.binders){let n=this.binders[t];if(n instanceof Qo||n instanceof Ko||n instanceof ts)for(let t of n.uniformNames)e.push(t)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e,t){let n=[];for(let r in this.binders){let a=this.binders[r];if(a instanceof Qo||a instanceof Ko||a instanceof ts)for(let i of a.uniformNames)if(t[i]){let o=a.getBinding(e,t[i],i);n.push({name:i,property:r,binding:o})}}return n}setUniforms(e,t,n,r){for(let{name:e,property:a,binding:i}of t)this.binders[a].setUniform(i,r,n.get(a),e)}updatePaintBuffers(e){this._buffers=[];for(let t in this.binders){let n=this.binders[t];if(e&&n instanceof ns){let t=2===e.fromScale?n.zoomInPaintVertexBuffer:n.zoomOutPaintVertexBuffer;t&&this._buffers.push(t)}else(n instanceof es||n instanceof ts)&&n.paintVertexBuffer&&this._buffers.push(n.paintVertexBuffer)}}upload(e){for(let t in this.binders){let n=this.binders[t];(n instanceof es||n instanceof ts||n instanceof ns)&&n.upload(e)}this.updatePaintBuffers()}destroy(){for(let e in this.binders){let t=this.binders[e];(t instanceof es||t instanceof ts||t instanceof ns)&&t.destroy()}}}class as{constructor(e,t,n=()=>!0){this.programConfigurations={};for(let r of e)this.programConfigurations[r.id]=new rs(r,t,n);this.needsUpload=!1,this._featureMap=new jo,this._bufferOffset=0}populatePaintArrays(e,t,n,r,a,i){for(let n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(e,t,r,a,i);void 0!==t.id&&this._featureMap.add(t.id,n,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,n,r){for(let a of n)this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(e,this._featureMap,t,a,r)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(let t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(let e in this.programConfigurations)this.programConfigurations[e].destroy()}}function is(e,t){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[e]||[e.replace(`${t}-`,"").replace(/-/g,"_")]}function os(e,t,n){let r={color:{source:Pi,composite:no},number:{source:Ji,composite:Pi}},a={"line-pattern":{source:zo,composite:zo},"fill-pattern":{source:zo,composite:zo},"fill-extrusion-pattern":{source:zo,composite:zo}}[e];return a&&a[n]||r[t][n]}xa("ConstantBinder",Qo),xa("CrossFadedConstantBinder",Ko),xa("SourceExpressionBinder",es),xa("CrossFadedCompositeBinder",ns),xa("CompositeExpressionBinder",ts),xa("ProgramConfiguration",rs,{omit:["_buffers"]}),xa("ProgramConfigurationSet",as);let ss,ls,cs=8192,us=Math.pow(2,14)-1,ds=-us-1;function ps(e){let t=cs/e.extent,n=e.loadGeometry();for(let e=0;e<n.length;e++){let r=n[e];for(let e=0;e<r.length;e++){let n=r[e],a=Math.round(n.x*t),i=Math.round(n.y*t);n.x=m(a,ds,us),n.y=m(i,ds,us),(a<n.x||a>n.x+1||i<n.y||i>n.y+1)&&_("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return n}function hs(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?ps(e):[]}}function fs(e,t,n,r,a){e.emplaceBack(2*t+(r+1)/2,2*n+(a+1)/2)}class ms{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new yo,this.indexArray=new To,this.segments=new qo,this.programConfigurations=new as(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(e,t,n){let r=this.layers[0],a=[],i=null,o=!1;"circle"===r.type&&(i=r.layout.get("circle-sort-key"),o=!i.isConstant());for(let{feature:t,id:r,index:s,sourceLayerIndex:l}of e){let e=this.layers[0]._featureFilter.needGeometry,c=hs(t,e);if(!this.layers[0]._featureFilter.filter(new pi(this.zoom),c,n))continue;let u=o?i.evaluate(c,{},n):void 0,d={id:r,properties:t.properties,type:t.type,sourceLayerIndex:l,index:s,geometry:e?c.geometry:ps(t),patterns:{},sortKey:u};a.push(d)}o&&a.sort((e,t)=>e.sortKey-t.sortKey);for(let r of a){let{geometry:a,index:i,sourceLayerIndex:o}=r,s=e[i].feature;this.addFeature(r,a,i,n),t.featureIndex.insert(s,a,i,o,this.index)}}update(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Eo),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,n,r){for(let n of t)for(let t of n){let n=t.x,r=t.y;if(n<0||n>=cs||r<0||r>=cs)continue;let a=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),i=a.vertexLength;fs(this.layoutVertexArray,n,r,-1,-1),fs(this.layoutVertexArray,n,r,1,-1),fs(this.layoutVertexArray,n,r,1,1),fs(this.layoutVertexArray,n,r,-1,1),this.indexArray.emplaceBack(i,i+1,i+2),this.indexArray.emplaceBack(i,i+3,i+2),a.vertexLength+=4,a.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,{},r)}}function gs(e,t){for(let n=0;n<e.length;n++)if(Os(t,e[n]))return!0;for(let n=0;n<t.length;n++)if(Os(e,t[n]))return!0;return!!Ms(e,t)}function ys(e,t,n){return!!Os(e,t)||!!zs(t,e,n)}function bs(e,t){if(1===e.length)return As(t,e[0]);for(let n=0;n<t.length;n++){let r=t[n];for(let t=0;t<r.length;t++)if(Os(e,r[t]))return!0}for(let n=0;n<e.length;n++)if(As(t,e[n]))return!0;for(let n=0;n<t.length;n++)if(Ms(e,t[n]))return!0;return!1}function vs(e,t,n){if(e.length>1){if(Ms(e,t))return!0;for(let r=0;r<t.length;r++)if(zs(t[r],e,n))return!0}for(let r=0;r<e.length;r++)if(zs(e[r],t,n))return!0;return!1}function Ms(e,t){if(0===e.length||0===t.length)return!1;for(let n=0;n<e.length-1;n++){let r=e[n],a=e[n+1];for(let e=0;e<t.length-1;e++)if(xs(r,a,t[e],t[e+1]))return!0}return!1}function xs(e,t,n,r){return A(e,n,r)!==A(t,n,r)&&A(e,t,n)!==A(e,t,r)}function zs(e,t,n){let r=n*n;if(1===t.length)return e.distSqr(t[0])<r;for(let n=1;n<t.length;n++)if(_s(e,t[n-1],t[n])<r)return!0;return!1}function _s(e,t,n){let r=t.distSqr(n);if(0===r)return e.distSqr(t);let a=((e.x-t.x)*(n.x-t.x)+(e.y-t.y)*(n.y-t.y))/r;return e.distSqr(a<0?t:a>1?n:n.sub(t)._mult(a)._add(t))}function As(e,t){let n,r,a,i=!1;for(let o=0;o<e.length;o++){n=e[o];for(let e=0,o=n.length-1;e<n.length;o=e++)r=n[e],a=n[o],r.y>t.y!=a.y>t.y&&t.x<(a.x-r.x)*(t.y-r.y)/(a.y-r.y)+r.x&&(i=!i)}return i}function Os(e,t){let n=!1;for(let r=0,a=e.length-1;r<e.length;a=r++){let i=e[r],o=e[a];i.y>t.y!=o.y>t.y&&t.x<(o.x-i.x)*(t.y-i.y)/(o.y-i.y)+i.x&&(n=!n)}return n}function ws(e,t,n){let r=n[0],a=n[2];if(e.x<r.x&&t.x<r.x||e.x>a.x&&t.x>a.x||e.y<r.y&&t.y<r.y||e.y>a.y&&t.y>a.y)return!1;let i=A(e,t,n[0]);return i!==A(e,t,n[1])||i!==A(e,t,n[2])||i!==A(e,t,n[3])}function ks(e,t,n){let r=t.paint.get(e).value;return"constant"===r.kind?r.value:n.programConfigurations.get(t.id).getMaxValue(e)}function Ts(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Ss(e,t,n,r,a){if(!t[0]&&!t[1])return e;let o=i.convert(t)._mult(a);"viewport"===n&&o._rotate(-r);let s=[];for(let t=0;t<e.length;t++)s.push(e[t].sub(o));return s}xa("CircleBucket",ms,{omit:["layers"]});var Cs={get paint(){return ls=ls||new wi({"circle-radius":new zi(X.paint_circle["circle-radius"]),"circle-color":new zi(X.paint_circle["circle-color"]),"circle-blur":new zi(X.paint_circle["circle-blur"]),"circle-opacity":new zi(X.paint_circle["circle-opacity"]),"circle-translate":new xi(X.paint_circle["circle-translate"]),"circle-translate-anchor":new xi(X.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new xi(X.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new xi(X.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new zi(X.paint_circle["circle-stroke-width"]),"circle-stroke-color":new zi(X.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new zi(X.paint_circle["circle-stroke-opacity"])})},get layout(){return ss=ss||new wi({"circle-sort-key":new zi(X.layout_circle["circle-sort-key"])})}},Es=1e-6,qs=typeof Float32Array<"u"?Float32Array:Array;function Ds(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function Rs(e,t,n){var r=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],p=t[9],h=t[10],f=t[11],m=t[12],g=t[13],y=t[14],b=t[15],v=n[0],M=n[1],x=n[2],z=n[3];return e[0]=v*r+M*s+x*d+z*m,e[1]=v*a+M*l+x*p+z*g,e[2]=v*i+M*c+x*h+z*y,e[3]=v*o+M*u+x*f+z*b,e[4]=(v=n[4])*r+(M=n[5])*s+(x=n[6])*d+(z=n[7])*m,e[5]=v*a+M*l+x*p+z*g,e[6]=v*i+M*c+x*h+z*y,e[7]=v*o+M*u+x*f+z*b,e[8]=(v=n[8])*r+(M=n[9])*s+(x=n[10])*d+(z=n[11])*m,e[9]=v*a+M*l+x*p+z*g,e[10]=v*i+M*c+x*h+z*y,e[11]=v*o+M*u+x*f+z*b,e[12]=(v=n[12])*r+(M=n[13])*s+(x=n[14])*d+(z=n[15])*m,e[13]=v*a+M*l+x*p+z*g,e[14]=v*i+M*c+x*h+z*y,e[15]=v*o+M*u+x*f+z*b,e}Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var Ls,Is=Rs;function Ws(e,t,n){var r=t[0],a=t[1],i=t[2],o=t[3];return e[0]=n[0]*r+n[4]*a+n[8]*i+n[12]*o,e[1]=n[1]*r+n[5]*a+n[9]*i+n[13]*o,e[2]=n[2]*r+n[6]*a+n[10]*i+n[14]*o,e[3]=n[3]*r+n[7]*a+n[11]*i+n[15]*o,e}Ls=new qs(4),qs!=Float32Array&&(Ls[0]=0,Ls[1]=0,Ls[2]=0,Ls[3]=0);class Ns extends Ti{constructor(e){super(e,Cs)}createBucket(e){return new ms(e)}queryRadius(e){let t=e;return ks("circle-radius",this,t)+ks("circle-stroke-width",this,t)+Ts(this.paint.get("circle-translate"))}queryIntersectsFeature(e,t,n,r,a,i,o,s){let l=Ss(e,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),i.angle,o),c=this.paint.get("circle-radius").evaluate(t,n)+this.paint.get("circle-stroke-width").evaluate(t,n),u="map"===this.paint.get("circle-pitch-alignment"),d=u?l:(h=s,l.map(e=>Ps(e,h))),p=u?c*o:c;var h;for(let e of r)for(let t of e){let e=u?t:Ps(t,s),n=p,r=Ws([],[t.x,t.y,0,1],s);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?n*=r[3]/i.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(n*=i.cameraToCenterDistance/r[3]),ys(d,e,n))return!0}return!1}}function Ps(e,t){let n=Ws([],[e.x,e.y,0,1],t);return new i(n[0]/n[3],n[1]/n[3])}class Bs extends ms{}let Fs;xa("HeatmapBucket",Bs,{omit:["layers"]});var js={get paint(){return Fs=Fs||new wi({"heatmap-radius":new zi(X.paint_heatmap["heatmap-radius"]),"heatmap-weight":new zi(X.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new xi(X.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Oi(X.paint_heatmap["heatmap-color"]),"heatmap-opacity":new xi(X.paint_heatmap["heatmap-opacity"])})}};function Us(e,{width:t,height:n},r,a){if(a){if(a instanceof Uint8ClampedArray)a=new Uint8Array(a.buffer);else if(a.length!==t*n*r)throw new RangeError(`mismatched image size. expected: ${a.length} but got: ${t*n*r}`)}else a=new Uint8Array(t*n*r);return e.width=t,e.height=n,e.data=a,e}function Vs(e,{width:t,height:n},r){if(t===e.width&&n===e.height)return;let a=Us({},{width:t,height:n},r);Hs(e,a,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,t),height:Math.min(e.height,n)},r),e.width=t,e.height=n,e.data=a.data}function Hs(e,t,n,r,a,i){if(0===a.width||0===a.height)return t;if(a.width>e.width||a.height>e.height||n.x>e.width-a.width||n.y>e.height-a.height)throw new RangeError("out of range source coordinates for image copy");if(a.width>t.width||a.height>t.height||r.x>t.width-a.width||r.y>t.height-a.height)throw new RangeError("out of range destination coordinates for image copy");let o=e.data,s=t.data;if(o===s)throw new Error("srcData equals dstData, so image is already copied");for(let l=0;l<a.height;l++){let c=((n.y+l)*e.width+n.x)*i,u=((r.y+l)*t.width+r.x)*i;for(let e=0;e<a.width*i;e++)s[u+e]=o[c+e]}return t}class Xs{constructor(e,t){Us(this,e,1,t)}resize(e){Vs(this,e,1)}clone(){return new Xs({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,n,r,a){Hs(e,t,n,r,a,1)}}class Gs{constructor(e,t){Us(this,e,4,t)}resize(e){Vs(this,e,4)}replace(e,t){t?this.data.set(e):this.data=e instanceof Uint8ClampedArray?new Uint8Array(e.buffer):e}clone(){return new Gs({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,n,r,a){Hs(e,t,n,r,a,4)}}function Ys(e){let t={},n=e.resolution||256,r=e.clips?e.clips.length:1,a=e.image||new Gs({width:n,height:r});if(Math.log(n)/Math.LN2%1!=0)throw new Error(`width is not a power of 2 - ${n}`);let i=(n,r,i)=>{t[e.evaluationKey]=i;let o=e.expression.evaluate(t);a.data[n+r+0]=Math.floor(255*o.r/o.a),a.data[n+r+1]=Math.floor(255*o.g/o.a),a.data[n+r+2]=Math.floor(255*o.b/o.a),a.data[n+r+3]=Math.floor(255*o.a)};if(e.clips)for(let t=0,a=0;t<r;++t,a+=4*n)for(let r=0,o=0;r<n;r++,o+=4){let s=r/(n-1),{start:l,end:c}=e.clips[t];i(a,o,l*(1-s)+c*s)}else for(let e=0,t=0;e<n;e++,t+=4)i(0,t,e/(n-1));return a}xa("AlphaImage",Xs),xa("RGBAImage",Gs);let Zs,$s="big-fb";class Js extends Ti{createBucket(e){return new Bs(e)}constructor(e){super(e,js),this.heatmapFbos=new Map,this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){"heatmap-color"===e&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=Ys({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbos.has($s)&&this.heatmapFbos.delete($s)}queryRadius(){return 0}queryIntersectsFeature(){return!1}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}}var Qs={get paint(){return Zs=Zs||new wi({"hillshade-illumination-direction":new xi(X.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new xi(X.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new xi(X.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new xi(X.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new xi(X.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new xi(X.paint_hillshade["hillshade-accent-color"])})}};class Ks extends Ti{constructor(e){super(e,Qs)}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}}let el,tl,nl=qi([{name:"a_pos",components:2,type:"Int16"}],4),{members:rl}=nl;function al(e,t,n=2){let r,a,i,o=t&&t.length,s=o?t[0]*n:e.length,l=il(e,0,s,n,!0),c=[];if(!l||l.next===l.prev)return c;if(o&&(l=function(e,t,n,r){let a=[];for(let n=0,i=t.length;n<i;n++){let o=il(e,t[n]*r,n<i-1?t[n+1]*r:e.length,r,!1);o===o.next&&(o.steiner=!0),a.push(gl(o))}a.sort(pl);for(let e=0;e<a.length;e++)n=hl(a[e],n);return n}(e,t,l,n)),e.length>80*n){r=1/0,a=1/0;let t=-1/0,o=-1/0;for(let i=n;i<s;i+=n){let n=e[i],s=e[i+1];n<r&&(r=n),s<a&&(a=s),n>t&&(t=n),s>o&&(o=s)}i=Math.max(t-r,o-a),i=0!==i?32767/i:0}return sl(l,c,n,r,a,i,0),c}function il(e,t,n,r,a){let i;if(a===function(e,t,n,r){let a=0;for(let i=t,o=n-r;i<n;i+=r)a+=(e[o]-e[i])*(e[i+1]+e[o+1]),o=i;return a}(e,t,n,r)>0)for(let a=t;a<n;a+=r)i=wl(a/r|0,e[a],e[a+1],i);else for(let a=n-r;a>=t;a-=r)i=wl(a/r|0,e[a],e[a+1],i);return i&&Ml(i,i.next)&&(kl(i),i=i.next),i}function ol(e,t){if(!e)return e;t||(t=e);let n,r=e;do{if(n=!1,r.steiner||!Ml(r,r.next)&&0!==vl(r.prev,r,r.next))r=r.next;else{if(kl(r),r=t=r.prev,r===r.next)break;n=!0}}while(n||r!==t);return t}function sl(e,t,n,r,a,i,o){if(!e)return;!o&&i&&function(e,t,n,r){let a=e;do{0===a.z&&(a.z=ml(a.x,a.y,t,n,r)),a.prevZ=a.prev,a.nextZ=a.next,a=a.next}while(a!==e);a.prevZ.nextZ=null,a.prevZ=null,function(e){let t,n=1;do{let r,a=e;e=null;let i=null;for(t=0;a;){t++;let o=a,s=0;for(let e=0;e<n&&(s++,o=o.nextZ,o);e++);let l=n;for(;s>0||l>0&&o;)0!==s&&(0===l||!o||a.z<=o.z)?(r=a,a=a.nextZ,s--):(r=o,o=o.nextZ,l--),i?i.nextZ=r:e=r,r.prevZ=i,i=r;a=o}i.nextZ=null,n*=2}while(t>1)}(a)}(e,r,a,i);let s=e;for(;e.prev!==e.next;){let l=e.prev,c=e.next;if(i?cl(e,r,a,i):ll(e))t.push(l.i,e.i,c.i),kl(e),e=c.next,s=c.next;else if((e=c)===s){o?1===o?sl(e=ul(ol(e),t),t,n,r,a,i,2):2===o&&dl(e,t,n,r,a,i):sl(ol(e),t,n,r,a,i,1);break}}}function ll(e){let t=e.prev,n=e,r=e.next;if(vl(t,n,r)>=0)return!1;let a=t.x,i=n.x,o=r.x,s=t.y,l=n.y,c=r.y,u=a<i?a<o?a:o:i<o?i:o,d=s<l?s<c?s:c:l<c?l:c,p=a>i?a>o?a:o:i>o?i:o,h=s>l?s>c?s:c:l>c?l:c,f=r.next;for(;f!==t;){if(f.x>=u&&f.x<=p&&f.y>=d&&f.y<=h&&yl(a,s,i,l,o,c,f.x,f.y)&&vl(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}function cl(e,t,n,r){let a=e.prev,i=e,o=e.next;if(vl(a,i,o)>=0)return!1;let s=a.x,l=i.x,c=o.x,u=a.y,d=i.y,p=o.y,h=s<l?s<c?s:c:l<c?l:c,f=u<d?u<p?u:p:d<p?d:p,m=s>l?s>c?s:c:l>c?l:c,g=u>d?u>p?u:p:d>p?d:p,y=ml(h,f,t,n,r),b=ml(m,g,t,n,r),v=e.prevZ,M=e.nextZ;for(;v&&v.z>=y&&M&&M.z<=b;){if(v.x>=h&&v.x<=m&&v.y>=f&&v.y<=g&&v!==a&&v!==o&&yl(s,u,l,d,c,p,v.x,v.y)&&vl(v.prev,v,v.next)>=0||(v=v.prevZ,M.x>=h&&M.x<=m&&M.y>=f&&M.y<=g&&M!==a&&M!==o&&yl(s,u,l,d,c,p,M.x,M.y)&&vl(M.prev,M,M.next)>=0))return!1;M=M.nextZ}for(;v&&v.z>=y;){if(v.x>=h&&v.x<=m&&v.y>=f&&v.y<=g&&v!==a&&v!==o&&yl(s,u,l,d,c,p,v.x,v.y)&&vl(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;M&&M.z<=b;){if(M.x>=h&&M.x<=m&&M.y>=f&&M.y<=g&&M!==a&&M!==o&&yl(s,u,l,d,c,p,M.x,M.y)&&vl(M.prev,M,M.next)>=0)return!1;M=M.nextZ}return!0}function ul(e,t){let n=e;do{let r=n.prev,a=n.next.next;!Ml(r,a)&&xl(r,n,n.next,a)&&Al(r,a)&&Al(a,r)&&(t.push(r.i,n.i,a.i),kl(n),kl(n.next),n=e=a),n=n.next}while(n!==e);return ol(n)}function dl(e,t,n,r,a,i){let o=e;do{let e=o.next.next;for(;e!==o.prev;){if(o.i!==e.i&&bl(o,e)){let s=Ol(o,e);return o=ol(o,o.next),s=ol(s,s.next),sl(o,t,n,r,a,i,0),void sl(s,t,n,r,a,i,0)}e=e.next}o=o.next}while(o!==e)}function pl(e,t){return e.x-t.x}function hl(e,t){let n=function(e,t){let n,r=t,a=e.x,i=e.y,o=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){let e=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(e<=a&&e>o&&(o=e,n=r.x<r.next.x?r:r.next,e===a))return n}r=r.next}while(r!==t);if(!n)return null;let s=n,l=n.x,c=n.y,u=1/0;r=n;do{if(a>=r.x&&r.x>=l&&a!==r.x&&yl(i<c?a:o,i,l,c,i<c?o:a,i,r.x,r.y)){let t=Math.abs(i-r.y)/(a-r.x);Al(r,e)&&(t<u||t===u&&(r.x>n.x||r.x===n.x&&fl(n,r)))&&(n=r,u=t)}r=r.next}while(r!==s);return n}(e,t);if(!n)return t;let r=Ol(n,e);return ol(r,r.next),ol(n,n.next)}function fl(e,t){return vl(e.prev,e,t.prev)<0&&vl(t.next,e,e.next)<0}function ml(e,t,n,r,a){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*a|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*a|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function gl(e){let t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function yl(e,t,n,r,a,i,o,s){return(a-o)*(t-s)>=(e-o)*(i-s)&&(e-o)*(r-s)>=(n-o)*(t-s)&&(n-o)*(i-s)>=(a-o)*(r-s)}function bl(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&xl(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(Al(e,t)&&Al(t,e)&&function(e,t){let n=e,r=!1,a=(e.x+t.x)/2,i=(e.y+t.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&a<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(vl(e.prev,e,t.prev)||vl(e,t.prev,t))||Ml(e,t)&&vl(e.prev,e,e.next)>0&&vl(t.prev,t,t.next)>0)}function vl(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Ml(e,t){return e.x===t.x&&e.y===t.y}function xl(e,t,n,r){let a=_l(vl(e,t,n)),i=_l(vl(e,t,r)),o=_l(vl(n,r,e)),s=_l(vl(n,r,t));return a!==i&&o!==s||!(0!==a||!zl(e,n,t))||!(0!==i||!zl(e,r,t))||!(0!==o||!zl(n,e,r))||!(0!==s||!zl(n,t,r))}function zl(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function _l(e){return e>0?1:e<0?-1:0}function Al(e,t){return vl(e.prev,e,e.next)<0?vl(e,t,e.next)>=0&&vl(e,e.prev,t)>=0:vl(e,t,e.prev)<0||vl(e,e.next,t)<0}function Ol(e,t){let n=Tl(e.i,e.x,e.y),r=Tl(t.i,t.x,t.y),a=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=a,a.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function wl(e,t,n,r){let a=Tl(e,t,n);return r?(a.next=r.next,a.prev=r,r.next.prev=a,r.next=a):(a.prev=a,a.next=a),a}function kl(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Tl(e,t,n){return{i:e,x:t,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function Sl(e,t,n){let r=n.patternDependencies,a=!1;for(let n of t){let t=n.paint.get(`${e}-pattern`);t.isConstant()||(a=!0);let i=t.constantOr(null);i&&(a=!0,r[i.to]=!0,r[i.from]=!0)}return a}function Cl(e,t,n,r,a){let i=a.patternDependencies;for(let o of t){let t=o.paint.get(`${e}-pattern`).value;if("constant"!==t.kind){let e=t.evaluate({zoom:r-1},n,{},a.availableImages),s=t.evaluate({zoom:r},n,{},a.availableImages),l=t.evaluate({zoom:r+1},n,{},a.availableImages);e=e&&e.name?e.name:e,s=s&&s.name?s.name:s,l=l&&l.name?l.name:l,i[e]=!0,i[s]=!0,i[l]=!0,n.patterns[o.id]={min:e,mid:s,max:l}}}return n}class El{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new bo,this.indexArray=new To,this.indexArray2=new So,this.programConfigurations=new as(e.layers,e.zoom),this.segments=new qo,this.segments2=new qo,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(e,t,n){this.hasPattern=Sl("fill",this.layers,t);let r=this.layers[0].layout.get("fill-sort-key"),a=!r.isConstant(),i=[];for(let{feature:o,id:s,index:l,sourceLayerIndex:c}of e){let e=this.layers[0]._featureFilter.needGeometry,u=hs(o,e);if(!this.layers[0]._featureFilter.filter(new pi(this.zoom),u,n))continue;let d=a?r.evaluate(u,{},n,t.availableImages):void 0,p={id:s,properties:o.properties,type:o.type,sourceLayerIndex:c,index:l,geometry:e?u.geometry:ps(o),patterns:{},sortKey:d};i.push(p)}a&&i.sort((e,t)=>e.sortKey-t.sortKey);for(let r of i){let{geometry:a,index:i,sourceLayerIndex:o}=r;if(this.hasPattern){let e=Cl("fill",this.layers,r,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(r,a,i,n,{});t.featureIndex.insert(e[i].feature,a,i,o,this.index)}}update(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)}addFeatures(e,t,n){for(let e of this.patternFeatures)this.addFeature(e,e.geometry,e.index,t,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,rl),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,t,n,r,a){for(let e of vn(t,500)){let t=0;for(let n of e)t+=n.length;let n=this.segments.prepareSegment(t,this.layoutVertexArray,this.indexArray),r=n.vertexLength,a=[],i=[];for(let t of e){if(0===t.length)continue;t!==e[0]&&i.push(a.length/2);let n=this.segments2.prepareSegment(t.length,this.layoutVertexArray,this.indexArray2),r=n.vertexLength;this.layoutVertexArray.emplaceBack(t[0].x,t[0].y),this.indexArray2.emplaceBack(r+t.length-1,r),a.push(t[0].x),a.push(t[0].y);for(let e=1;e<t.length;e++)this.layoutVertexArray.emplaceBack(t[e].x,t[e].y),this.indexArray2.emplaceBack(r+e-1,r+e),a.push(t[e].x),a.push(t[e].y);n.vertexLength+=t.length,n.primitiveLength+=t.length}let o=al(a,i);for(let e=0;e<o.length;e+=3)this.indexArray.emplaceBack(r+o[e],r+o[e+1],r+o[e+2]);n.vertexLength+=t,n.primitiveLength+=o.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,a,r)}}xa("FillBucket",El,{omit:["layers","patternFeatures"]});var ql={get paint(){return tl=tl||new wi({"fill-antialias":new xi(X.paint_fill["fill-antialias"]),"fill-opacity":new zi(X.paint_fill["fill-opacity"]),"fill-color":new zi(X.paint_fill["fill-color"]),"fill-outline-color":new zi(X.paint_fill["fill-outline-color"]),"fill-translate":new xi(X.paint_fill["fill-translate"]),"fill-translate-anchor":new xi(X.paint_fill["fill-translate-anchor"]),"fill-pattern":new _i(X.paint_fill["fill-pattern"])})},get layout(){return el=el||new wi({"fill-sort-key":new zi(X.layout_fill["fill-sort-key"])})}};class Dl extends Ti{constructor(e){super(e,ql)}recalculate(e,t){super.recalculate(e,t);let n=this.paint._values["fill-outline-color"];"constant"===n.value.kind&&void 0===n.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(e){return new El(e)}queryRadius(){return Ts(this.paint.get("fill-translate"))}queryIntersectsFeature(e,t,n,r,a,i,o){return bs(Ss(e,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),i.angle,o),r)}isTileClipped(){return!0}}let Rl=qi([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),Ll=qi([{name:"a_centroid",components:2,type:"Int16"}],4),{members:Il}=Rl;var Wl={},Nl=r,Pl=Bl;function Bl(e,t,n,r,a){this.properties={},this.extent=n,this.type=0,this._pbf=e,this._geometry=-1,this._keys=r,this._values=a,e.readFields(Fl,this,t)}function Fl(e,t,n){1==e?t.id=n.readVarint():2==e?function(e,t){for(var n=e.readVarint()+e.pos;e.pos<n;){var r=t._keys[e.readVarint()],a=t._values[e.readVarint()];t.properties[r]=a}}(n,t):3==e?t.type=n.readVarint():4==e&&(t._geometry=n.pos)}function jl(e){for(var t,n,r=0,a=0,i=e.length,o=i-1;a<i;o=a++)r+=((n=e[o]).x-(t=e[a]).x)*(t.y+n.y);return r}Bl.types=["Unknown","Point","LineString","Polygon"],Bl.prototype.loadGeometry=function(){var e=this._pbf;e.pos=this._geometry;for(var t,n=e.readVarint()+e.pos,r=1,a=0,i=0,o=0,s=[];e.pos<n;){if(a<=0){var l=e.readVarint();r=7&l,a=l>>3}if(a--,1===r||2===r)i+=e.readSVarint(),o+=e.readSVarint(),1===r&&(t&&s.push(t),t=[]),t.push(new Nl(i,o));else{if(7!==r)throw new Error("unknown command "+r);t&&t.push(t[0].clone())}}return t&&s.push(t),s},Bl.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,n=1,r=0,a=0,i=0,o=1/0,s=-1/0,l=1/0,c=-1/0;e.pos<t;){if(r<=0){var u=e.readVarint();n=7&u,r=u>>3}if(r--,1===n||2===n)(a+=e.readSVarint())<o&&(o=a),a>s&&(s=a),(i+=e.readSVarint())<l&&(l=i),i>c&&(c=i);else if(7!==n)throw new Error("unknown command "+n)}return[o,l,s,c]},Bl.prototype.toGeoJSON=function(e,t,n){var r,a,i=this.extent*Math.pow(2,n),o=this.extent*e,s=this.extent*t,l=this.loadGeometry(),c=Bl.types[this.type];function u(e){for(var t=0;t<e.length;t++){var n=e[t];e[t]=[360*(n.x+o)/i-180,360/Math.PI*Math.atan(Math.exp((180-360*(n.y+s)/i)*Math.PI/180))-90]}}switch(this.type){case 1:var d=[];for(r=0;r<l.length;r++)d[r]=l[r][0];u(l=d);break;case 2:for(r=0;r<l.length;r++)u(l[r]);break;case 3:for(l=function(e){var t=e.length;if(t<=1)return[e];for(var n,r,a=[],i=0;i<t;i++){var o=jl(e[i]);0!==o&&(void 0===r&&(r=o<0),r===o<0?(n&&a.push(n),n=[e[i]]):n.push(e[i]))}return n&&a.push(n),a}(l),r=0;r<l.length;r++)for(a=0;a<l[r].length;a++)u(l[r][a])}1===l.length?l=l[0]:c="Multi"+c;var p={type:"Feature",geometry:{type:c,coordinates:l},properties:this.properties};return"id"in this&&(p.id=this.id),p};var Ul=Pl,Vl=Hl;function Hl(e,t){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],e.readFields(Xl,this,t),this.length=this._features.length}function Xl(e,t,n){15===e?t.version=n.readVarint():1===e?t.name=n.readString():5===e?t.extent=n.readVarint():2===e?t._features.push(n.pos):3===e?t._keys.push(n.readString()):4===e&&t._values.push(function(e){for(var t=null,n=e.readVarint()+e.pos;e.pos<n;){var r=e.readVarint()>>3;t=1===r?e.readString():2===r?e.readFloat():3===r?e.readDouble():4===r?e.readVarint64():5===r?e.readVarint():6===r?e.readSVarint():7===r?e.readBoolean():null}return t}(n))}Hl.prototype.feature=function(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new Ul(this._pbf,t,this.extent,this._keys,this._values)};var Gl=Vl;function Yl(e,t,n){if(3===e){var r=new Gl(n,n.readVarint()+n.pos);r.length&&(t[r.name]=r)}}Wl.VectorTile=function(e,t){this.layers=e.readFields(Yl,{},t)},Wl.VectorTileFeature=Pl,Wl.VectorTileLayer=Vl;let Zl,$l=Wl.VectorTileFeature.types,Jl=Math.pow(2,13);function Ql(e,t,n,r,a,i,o,s){e.emplaceBack(t,n,2*Math.floor(r*Jl)+o,a*Jl*2,i*Jl*2,Math.round(s))}class Kl{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new vo,this.centroidVertexArray=new go,this.indexArray=new To,this.programConfigurations=new as(e.layers,e.zoom),this.segments=new qo,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(e,t,n){this.features=[],this.hasPattern=Sl("fill-extrusion",this.layers,t);for(let{feature:r,id:a,index:i,sourceLayerIndex:o}of e){let e=this.layers[0]._featureFilter.needGeometry,s=hs(r,e);if(!this.layers[0]._featureFilter.filter(new pi(this.zoom),s,n))continue;let l={id:a,sourceLayerIndex:o,index:i,geometry:e?s.geometry:ps(r),properties:r.properties,type:r.type,patterns:{}};this.hasPattern?this.features.push(Cl("fill-extrusion",this.layers,l,this.zoom,t)):this.addFeature(l,l.geometry,i,n,{}),t.featureIndex.insert(r,l.geometry,i,o,this.index,!0)}}addFeatures(e,t,n){for(let e of this.features){let{geometry:r}=e;this.addFeature(e,r,e.index,t,n)}}update(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.centroidVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Il),this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,Ll.members,!0),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(e,t,n,r,a){for(let n of vn(t,500)){let t={x:0,y:0,vertexCount:0},r=0;for(let e of n)r+=e.length;let a=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let e of n){if(0===e.length||tc(e))continue;let n=0;for(let r=0;r<e.length;r++){let i=e[r];if(r>=1){let o=e[r-1];if(!ec(i,o)){a.vertexLength+4>qo.MAX_VERTEX_ARRAY_LENGTH&&(a=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let e=i.sub(o)._perp()._unit(),r=o.dist(i);n+r>32768&&(n=0),Ql(this.layoutVertexArray,i.x,i.y,e.x,e.y,0,0,n),Ql(this.layoutVertexArray,i.x,i.y,e.x,e.y,0,1,n),t.x+=2*i.x,t.y+=2*i.y,t.vertexCount+=2,n+=r,Ql(this.layoutVertexArray,o.x,o.y,e.x,e.y,0,0,n),Ql(this.layoutVertexArray,o.x,o.y,e.x,e.y,0,1,n),t.x+=2*o.x,t.y+=2*o.y,t.vertexCount+=2;let s=a.vertexLength;this.indexArray.emplaceBack(s,s+2,s+1),this.indexArray.emplaceBack(s+1,s+2,s+3),a.vertexLength+=4,a.primitiveLength+=2}}}}if(a.vertexLength+r>qo.MAX_VERTEX_ARRAY_LENGTH&&(a=this.segments.prepareSegment(r,this.layoutVertexArray,this.indexArray)),"Polygon"!==$l[e.type])continue;let i=[],o=[],s=a.vertexLength;for(let e of n)if(0!==e.length){e!==n[0]&&o.push(i.length/2);for(let n=0;n<e.length;n++){let r=e[n];Ql(this.layoutVertexArray,r.x,r.y,0,0,1,1,0),t.x+=r.x,t.y+=r.y,t.vertexCount+=1,i.push(r.x),i.push(r.y)}}let l=al(i,o);for(let e=0;e<l.length;e+=3)this.indexArray.emplaceBack(s+l[e],s+l[e+2],s+l[e+1]);a.primitiveLength+=l.length/3,a.vertexLength+=r;for(let e=0;e<t.vertexCount;e++){let e=Math.floor(t.x/t.vertexCount),n=Math.floor(t.y/t.vertexCount);this.centroidVertexArray.emplaceBack(e,n)}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,a,r)}}function ec(e,t){return e.x===t.x&&(e.x<0||e.x>cs)||e.y===t.y&&(e.y<0||e.y>cs)}function tc(e){return e.every(e=>e.x<0)||e.every(e=>e.x>cs)||e.every(e=>e.y<0)||e.every(e=>e.y>cs)}xa("FillExtrusionBucket",Kl,{omit:["layers","features"]});var nc={get paint(){return Zl=Zl||new wi({"fill-extrusion-opacity":new xi(X["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new zi(X["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new xi(X["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new xi(X["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new _i(X["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new zi(X["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new zi(X["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new xi(X["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class rc extends Ti{constructor(e){super(e,nc)}createBucket(e){return new Kl(e)}queryRadius(){return Ts(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(e,t,n,r,a,o,s,l){let c=Ss(e,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),o.angle,s),u=this.paint.get("fill-extrusion-height").evaluate(t,n),d=this.paint.get("fill-extrusion-base").evaluate(t,n),p=function(e,t){let n=[];for(let r of e){let e=[r.x,r.y,0,1];Ws(e,e,t),n.push(new i(e[0]/e[3],e[1]/e[3]))}return n}(c,l),h=function(e,t,n,r){let a=[],o=[],s=r[8]*t,l=r[9]*t,c=r[10]*t,u=r[11]*t,d=r[8]*n,p=r[9]*n,h=r[10]*n,f=r[11]*n;for(let t of e){let e=[],n=[];for(let a of t){let t=a.x,o=a.y,m=r[0]*t+r[4]*o+r[12],g=r[1]*t+r[5]*o+r[13],y=r[2]*t+r[6]*o+r[14],b=r[3]*t+r[7]*o+r[15],v=y+c,M=b+u,x=m+d,z=g+p,_=y+h,A=b+f,O=new i((m+s)/M,(g+l)/M);O.z=v/M,e.push(O);let w=new i(x/A,z/A);w.z=_/A,n.push(w)}a.push(e),o.push(n)}return[a,o]}(r,d,u,l);return function(e,t,n){let r=1/0;bs(n,t)&&(r=ic(n,t[0]));for(let a=0;a<t.length;a++){let i=t[a],o=e[a];for(let e=0;e<i.length-1;e++){let t=i[e],a=[t,i[e+1],o[e+1],o[e],t];gs(n,a)&&(r=Math.min(r,ic(n,a)))}}return r!==1/0&&r}(h[0],h[1],p)}}function ac(e,t){return e.x*t.x+e.y*t.y}function ic(e,t){if(1===e.length){let n,r=0,a=t[r++];for(;!n||a.equals(n);)if(n=t[r++],!n)return 1/0;for(;r<t.length;r++){let i=t[r],o=e[0],s=n.sub(a),l=i.sub(a),c=o.sub(a),u=ac(s,s),d=ac(s,l),p=ac(l,l),h=ac(c,s),f=ac(c,l),m=u*p-d*d,g=(p*h-d*f)/m,y=(u*f-d*h)/m,b=a.z*(1-g-y)+n.z*g+i.z*y;if(isFinite(b))return b}return 1/0}{let e=1/0;for(let n of t)e=Math.min(e,n.z);return e}}let oc,sc,lc=qi([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),{members:cc}=lc,uc=qi([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),{members:dc}=uc,pc=Wl.VectorTileFeature.types,hc=Math.cos(Math.PI/180*37.5),fc=Math.pow(2,14)/.5;class mc{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(e=>{this.gradients[e.id]={}}),this.layoutVertexArray=new Mo,this.layoutVertexArray2=new xo,this.indexArray=new To,this.programConfigurations=new as(e.layers,e.zoom),this.segments=new qo,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(e,t,n){this.hasPattern=Sl("line",this.layers,t);let r=this.layers[0].layout.get("line-sort-key"),a=!r.isConstant(),i=[];for(let{feature:t,id:o,index:s,sourceLayerIndex:l}of e){let e=this.layers[0]._featureFilter.needGeometry,c=hs(t,e);if(!this.layers[0]._featureFilter.filter(new pi(this.zoom),c,n))continue;let u=a?r.evaluate(c,{},n):void 0,d={id:o,properties:t.properties,type:t.type,sourceLayerIndex:l,index:s,geometry:e?c.geometry:ps(t),patterns:{},sortKey:u};i.push(d)}a&&i.sort((e,t)=>e.sortKey-t.sortKey);for(let r of i){let{geometry:a,index:i,sourceLayerIndex:o}=r;if(this.hasPattern){let e=Cl("line",this.layers,r,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(r,a,i,n,{});t.featureIndex.insert(e[i].feature,a,i,o,this.index)}}update(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)}addFeatures(e,t,n){for(let e of this.patternFeatures)this.addFeature(e,e.geometry,e.index,t,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,dc)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,cc),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&Object.prototype.hasOwnProperty.call(e.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(e.properties,"mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}}addFeature(e,t,n,r,a){let i=this.layers[0].layout,o=i.get("line-join").evaluate(e,{}),s=i.get("line-cap"),l=i.get("line-miter-limit"),c=i.get("line-round-limit");this.lineClips=this.lineFeatureClips(e);for(let n of t)this.addLine(n,e,o,s,l,c);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,a,r)}addLine(e,t,n,r,a,i){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let t=0;t<e.length-1;t++)this.totalDistance+=e[t].dist(e[t+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}let o="Polygon"===pc[t.type],s=e.length;for(;s>=2&&e[s-1].equals(e[s-2]);)s--;let l=0;for(;l<s-1&&e[l].equals(e[l+1]);)l++;if(s<(o?3:2))return;"bevel"===n&&(a=1.05);let c,u,d,p,h,f=this.overscaling<=16?15*cs/(512*this.overscaling):0,m=this.segments.prepareSegment(10*s,this.layoutVertexArray,this.indexArray);this.e1=this.e2=-1,o&&(c=e[s-2],h=e[l].sub(c)._unit()._perp());for(let t=l;t<s;t++){if(d=t===s-1?o?e[l+1]:void 0:e[t+1],d&&e[t].equals(d))continue;h&&(p=h),c&&(u=c),c=e[t],h=d?d.sub(c)._unit()._perp():p,p=p||h;let g=p.add(h);0===g.x&&0===g.y||g._unit();let y=p.x*h.x+p.y*h.y,b=g.x*h.x+g.y*h.y,v=0!==b?1/b:1/0,M=2*Math.sqrt(2-2*b),x=b<hc&&u&&d,z=p.x*h.y-p.y*h.x>0;if(x&&t>l){let e=c.dist(u);if(e>2*f){let t=c.sub(c.sub(u)._mult(f/e)._round());this.updateDistance(u,t),this.addCurrentVertex(t,p,0,0,m),u=t}}let _=u&&d,A=_?n:o?"butt":r;if(_&&"round"===A&&(v<i?A="miter":v<=2&&(A="fakeround")),"miter"===A&&v>a&&(A="bevel"),"bevel"===A&&(v>2&&(A="flipbevel"),v<a&&(A="miter")),u&&this.updateDistance(u,c),"miter"===A)g._mult(v),this.addCurrentVertex(c,g,0,0,m);else if("flipbevel"===A){if(v>100)g=h.mult(-1);else{let e=v*p.add(h).mag()/p.sub(h).mag();g._perp()._mult(e*(z?-1:1))}this.addCurrentVertex(c,g,0,0,m),this.addCurrentVertex(c,g.mult(-1),0,0,m)}else if("bevel"===A||"fakeround"===A){let e=-Math.sqrt(v*v-1),t=z?e:0,n=z?0:e;if(u&&this.addCurrentVertex(c,p,t,n,m),"fakeround"===A){let e=Math.round(180*M/Math.PI/20);for(let t=1;t<e;t++){let n=t/e;if(.5!==n){let e=n-.5;n+=n*e*(n-1)*((1.0904+y*(y*(3.55645-1.43519*y)-3.2452))*e*e+(.848013+y*(.215638*y-1.06021)))}let r=h.sub(p)._mult(n)._add(p)._unit()._mult(z?-1:1);this.addHalfVertex(c,r.x,r.y,!1,z,0,m)}}d&&this.addCurrentVertex(c,h,-t,-n,m)}else if("butt"===A)this.addCurrentVertex(c,g,0,0,m);else if("square"===A){let e=u?1:-1;this.addCurrentVertex(c,g,e,e,m)}else"round"===A&&(u&&(this.addCurrentVertex(c,p,0,0,m),this.addCurrentVertex(c,p,1,1,m,!0)),d&&(this.addCurrentVertex(c,h,-1,-1,m,!0),this.addCurrentVertex(c,h,0,0,m)));if(x&&t<s-1){let e=c.dist(d);if(e>2*f){let t=c.add(d.sub(c)._mult(f/e)._round());this.updateDistance(c,t),this.addCurrentVertex(t,h,0,0,m),c=t}}}}addCurrentVertex(e,t,n,r,a,i=!1){let o=t.y*r-t.x,s=-t.y-t.x*r;this.addHalfVertex(e,t.x+t.y*n,t.y-t.x*n,i,!1,n,a),this.addHalfVertex(e,o,s,i,!0,-r,a),this.distance>fc/2&&0===this.totalDistance&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(e,t,n,r,a,i))}addHalfVertex({x:e,y:t},n,r,a,i,o,s){let l=.5*(this.lineClips?this.scaledDistance*(fc-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((e<<1)+(a?1:0),(t<<1)+(i?1:0),Math.round(63*n)+128,Math.round(63*r)+128,1+(0===o?0:o<0?-1:1)|(63&l)<<2,l>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let c=s.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,c),s.primitiveLength++),i?this.e2=c:this.e1=c}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(e,t){this.distance+=e.dist(t),this.updateScaledDistance()}}xa("LineBucket",mc,{omit:["layers","patternFeatures"]});var gc={get paint(){return sc=sc||new wi({"line-opacity":new zi(X.paint_line["line-opacity"]),"line-color":new zi(X.paint_line["line-color"]),"line-translate":new xi(X.paint_line["line-translate"]),"line-translate-anchor":new xi(X.paint_line["line-translate-anchor"]),"line-width":new zi(X.paint_line["line-width"]),"line-gap-width":new zi(X.paint_line["line-gap-width"]),"line-offset":new zi(X.paint_line["line-offset"]),"line-blur":new zi(X.paint_line["line-blur"]),"line-dasharray":new Ai(X.paint_line["line-dasharray"]),"line-pattern":new _i(X.paint_line["line-pattern"]),"line-gradient":new Oi(X.paint_line["line-gradient"])})},get layout(){return oc=oc||new wi({"line-cap":new xi(X.layout_line["line-cap"]),"line-join":new zi(X.layout_line["line-join"]),"line-miter-limit":new xi(X.layout_line["line-miter-limit"]),"line-round-limit":new xi(X.layout_line["line-round-limit"]),"line-sort-key":new zi(X.layout_line["line-sort-key"])})}};class yc extends zi{possiblyEvaluate(e,t){return t=new pi(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,zoomHistory:t.zoomHistory,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,n,r){return t=y({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,n,r)}}let bc;class vc extends Ti{constructor(e){super(e,gc),this.gradientVersion=0,bc||(bc=new yc(gc.paint.properties["line-width"].specification),bc.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(e){if("line-gradient"===e){let e=this.gradientExpression();this.stepInterpolant=!(void 0===e._styleExpression)&&e._styleExpression.expression instanceof _t,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(e,t){super.recalculate(e,t),this.paint._values["line-floorwidth"]=bc.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new mc(e)}queryRadius(e){let t=e,n=Mc(ks("line-width",this,t),ks("line-gap-width",this,t)),r=ks("line-offset",this,t);return n/2+Math.abs(r)+Ts(this.paint.get("line-translate"))}queryIntersectsFeature(e,t,n,r,a,o,s){let l=Ss(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),o.angle,s),c=s/2*Mc(this.paint.get("line-width").evaluate(t,n),this.paint.get("line-gap-width").evaluate(t,n)),u=this.paint.get("line-offset").evaluate(t,n);return u&&(r=function(e,t){let n=[];for(let r=0;r<e.length;r++){let a=e[r],o=[];for(let e=0;e<a.length;e++){let n=a[e-1],r=a[e],s=a[e+1],l=0===e?new i(0,0):r.sub(n)._unit()._perp(),c=e===a.length-1?new i(0,0):s.sub(r)._unit()._perp(),u=l._add(c)._unit(),d=u.x*c.x+u.y*c.y;0!==d&&u._mult(1/d),o.push(u._mult(t)._add(r))}n.push(o)}return n}(r,u*s)),function(e,t,n){for(let r=0;r<t.length;r++){let a=t[r];if(e.length>=3)for(let t=0;t<a.length;t++)if(Os(e,a[t]))return!0;if(vs(e,a,n))return!0}return!1}(l,r,c)}isTileClipped(){return!0}}function Mc(e,t){return t>0?t+2*e:e}let xc=qi([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),zc=qi([{name:"a_projected_pos",components:3,type:"Float32"}],4);qi([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let _c=qi([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);qi([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let Ac=qi([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Oc=qi([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function wc(e,t,n){return e.sections.forEach(e=>{e.text=function(e,t,n){let r=t.layout.get("text-transform").evaluate(n,{});return"uppercase"===r?e=e.toLocaleUpperCase():"lowercase"===r&&(e=e.toLocaleLowerCase()),di.applyArabicShaping&&(e=di.applyArabicShaping(e)),e}(e.text,t,n)}),e}qi([{name:"triangle",components:3,type:"Uint16"}]),qi([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),qi([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),qi([{type:"Float32",name:"offsetX"}]),qi([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),qi([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let kc={"!":"︕","#":"",$:"","%":"","&":"","(":"︵",")":"︶","*":"","+":"",",":"︐","-":"︲",".":"・","/":"",":":"︓",";":"︔","<":"︿","=":"",">":"﹀","?":"︖","@":"","[":"﹇","\\":"","]":"﹈","^":"",_:"︳","`":"","{":"︷","|":"―","}":"︸","~":"","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","":"︲","—":"︱","":"﹃","":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","":"︹","":"︺","〖":"︗","〗":"︘","":"︕","":"︵","":"︶","":"︐","":"︲","":"・","":"︓","":"︔","":"︿","":"﹀","":"︖","":"﹇","":"﹈","_":"︳","":"︷","":"―","":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};var Tc=24,Sc=qc,Cc=function(e,t,n,r,a){var i,o,s=8*a-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?a-1:0,p=n?-1:1,h=e[t+d];for(d+=p,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=p,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=p,u-=8);if(0===i)i=1-c;else{if(i===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),i-=c}return(h?-1:1)*o*Math.pow(2,i-r)},Ec=function(e,t,n,r,a,i){var o,s,l,c=8*i-a-1,u=(1<<c)-1,d=u>>1,p=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,a),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[n+h]=255&s,h+=f,s/=256,a-=8);for(o=o<<a|s,c+=a;c>0;e[n+h]=255&o,h+=f,o/=256,c-=8);e[n+h-f]|=128*m};function qc(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}qc.Varint=0,qc.Fixed64=1,qc.Bytes=2,qc.Fixed32=5;var Dc=4294967296,Rc=1/Dc,Lc=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");function Ic(e){return e.type===qc.Bytes?e.readVarint()+e.pos:e.pos+1}function Wc(e,t,n){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(var a=n.pos-1;a>=e;a--)n.buf[a+r]=n.buf[a]}function Nc(e,t){for(var n=0;n<e.length;n++)t.writeVarint(e[n])}function Pc(e,t){for(var n=0;n<e.length;n++)t.writeSVarint(e[n])}function Bc(e,t){for(var n=0;n<e.length;n++)t.writeFloat(e[n])}function Fc(e,t){for(var n=0;n<e.length;n++)t.writeDouble(e[n])}function jc(e,t){for(var n=0;n<e.length;n++)t.writeBoolean(e[n])}function Uc(e,t){for(var n=0;n<e.length;n++)t.writeFixed32(e[n])}function Vc(e,t){for(var n=0;n<e.length;n++)t.writeSFixed32(e[n])}function Hc(e,t){for(var n=0;n<e.length;n++)t.writeFixed64(e[n])}function Xc(e,t){for(var n=0;n<e.length;n++)t.writeSFixed64(e[n])}function Gc(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function Yc(e,t,n){e[n]=t,e[n+1]=t>>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function Zc(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}qc.prototype={destroy:function(){this.buf=null},readFields:function(e,t,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),a=r>>3,i=this.pos;this.type=7&r,e(a,t,this),this.pos===i&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=Gc(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=Zc(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=Gc(this.buf,this.pos)+Gc(this.buf,this.pos+4)*Dc;return this.pos+=8,e},readSFixed64:function(){var e=Gc(this.buf,this.pos)+Zc(this.buf,this.pos+4)*Dc;return this.pos+=8,e},readFloat:function(){var e=Cc(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=Cc(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,r=this.buf;return t=127&(n=r[this.pos++]),n<128?t:(t|=(127&(n=r[this.pos++]))<<7,n<128?t:(t|=(127&(n=r[this.pos++]))<<14,n<128?t:(t|=(127&(n=r[this.pos++]))<<21,n<128?t:function(e,t,n){var r,a,i=n.buf;if(r=(112&(a=i[n.pos++]))>>4,a<128||(r|=(127&(a=i[n.pos++]))<<3,a<128)||(r|=(127&(a=i[n.pos++]))<<10,a<128)||(r|=(127&(a=i[n.pos++]))<<17,a<128)||(r|=(127&(a=i[n.pos++]))<<24,a<128)||(r|=(1&(a=i[n.pos++]))<<31,a<128))return function(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}(e,r,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=r[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var e,t,n,r=this.readVarint()+this.pos,a=this.pos;return this.pos=r,r-a>=12&&Lc?(e=this.buf,t=a,n=r,Lc.decode(e.subarray(t,n))):function(e,t,n){for(var r="",a=t;a<n;){var i,o,s,l=e[a],c=null,u=l>239?4:l>223?3:l>191?2:1;if(a+u>n)break;1===u?l<128&&(c=l):2===u?128==(192&(i=e[a+1]))&&(c=(31&l)<<6|63&i)<=127&&(c=null):3===u?(o=e[a+2],128==(192&(i=e[a+1]))&&128==(192&o)&&((c=(15&l)<<12|(63&i)<<6|63&o)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(o=e[a+2],s=e[a+3],128==(192&(i=e[a+1]))&&128==(192&o)&&128==(192&s)&&((c=(15&l)<<18|(63&i)<<12|(63&o)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,r+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),r+=String.fromCharCode(c),a+=u}return r}(this.buf,a,r)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==qc.Bytes)return e.push(this.readVarint(t));var n=Ic(this);for(e=e||[];this.pos<n;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==qc.Bytes)return e.push(this.readSVarint());var t=Ic(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==qc.Bytes)return e.push(this.readBoolean());var t=Ic(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==qc.Bytes)return e.push(this.readFloat());var t=Ic(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==qc.Bytes)return e.push(this.readDouble());var t=Ic(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==qc.Bytes)return e.push(this.readFixed32());var t=Ic(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==qc.Bytes)return e.push(this.readSFixed32());var t=Ic(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==qc.Bytes)return e.push(this.readFixed64());var t=Ic(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==qc.Bytes)return e.push(this.readSFixed64());var t=Ic(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===qc.Varint)for(;this.buf[this.pos++]>127;);else if(t===qc.Bytes)this.pos=this.readVarint()+this.pos;else if(t===qc.Fixed32)this.pos+=4;else{if(t!==qc.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t<this.pos+e;)t*=2;if(t!==this.length){var n=new Uint8Array(t);n.set(this.buf),this.buf=n,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),Yc(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),Yc(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),Yc(this.buf,-1&e,this.pos),Yc(this.buf,Math.floor(e*Rc),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),Yc(this.buf,-1&e,this.pos),Yc(this.buf,Math.floor(e*Rc),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var n,r,a,i;if(e>=0?(n=e%4294967296|0,r=e/4294967296|0):(r=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?n=n+1|0:(n=0,r=r+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),a=n,(i=t).buf[i.pos++]=127&a|128,a>>>=7,i.buf[i.pos++]=127&a|128,a>>>=7,i.buf[i.pos++]=127&a|128,a>>>=7,i.buf[i.pos++]=127&a|128,i.buf[i.pos]=127&(a>>>=7),function(e,t){var n=(7&e)<<4;t.buf[t.pos++]|=n|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}(r,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(!!e)},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,n){for(var r,a,i=0;i<t.length;i++){if((r=t.charCodeAt(i))>55295&&r<57344){if(!a){r>56319||i+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):a=r;continue}if(r<56320){e[n++]=239,e[n++]=191,e[n++]=189,a=r;continue}r=a-55296<<10|r-56320|65536,a=null}else a&&(e[n++]=239,e[n++]=191,e[n++]=189,a=null);r<128?e[n++]=r:(r<2048?e[n++]=r>>6|192:(r<65536?e[n++]=r>>12|224:(e[n++]=r>>18|240,e[n++]=r>>12&63|128),e[n++]=r>>6&63|128),e[n++]=63&r|128)}return n}(this.buf,e,this.pos);var n=this.pos-t;n>=128&&Wc(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),Ec(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),Ec(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var n=0;n<t;n++)this.buf[this.pos++]=e[n]},writeRawMessage:function(e,t){this.pos++;var n=this.pos;e(t,this);var r=this.pos-n;r>=128&&Wc(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,n){this.writeTag(e,qc.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,Nc,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,Pc,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,jc,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,Bc,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,Fc,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,Uc,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,Vc,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,Hc,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,Xc,t)},writeBytesField:function(e,t){this.writeTag(e,qc.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,qc.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,qc.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,qc.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,qc.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,qc.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,qc.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,qc.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,qc.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,qc.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,!!t)}};var $c,Jc=n(Sc);function Qc(e,t,n){1===e&&n.readMessage(Kc,t)}function Kc(e,t,n){if(3===e){let{id:e,bitmap:r,width:a,height:i,left:o,top:s,advance:l}=n.readMessage(eu,{});t.push({id:e,bitmap:new Xs({width:a+6,height:i+6},r),metrics:{width:a,height:i,left:o,top:s,advance:l}})}}function eu(e,t,n){1===e?t.id=n.readVarint():2===e?t.bitmap=n.readBytes():3===e?t.width=n.readVarint():4===e?t.height=n.readVarint():5===e?t.left=n.readSVarint():6===e?t.top=n.readSVarint():7===e&&(t.advance=n.readVarint())}function tu(e){let t=0,n=0;for(let r of e)t+=r.w*r.h,n=Math.max(n,r.w);e.sort((e,t)=>t.h-e.h);let r=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),n),h:1/0}],a=0,i=0;for(let t of e)for(let e=r.length-1;e>=0;e--){let n=r[e];if(!(t.w>n.w||t.h>n.h)){if(t.x=n.x,t.y=n.y,i=Math.max(i,t.y+t.h),a=Math.max(a,t.x+t.w),t.w===n.w&&t.h===n.h){let t=r.pop();e<r.length&&(r[e]=t)}else t.h===n.h?(n.x+=t.w,n.w-=t.w):t.w===n.w?(n.y+=t.h,n.h-=t.h):(r.push({x:n.x+t.w,y:n.y,w:n.w-t.w,h:t.h}),n.y+=t.h,n.h-=t.h);break}}return{w:a,h:i,fill:t/(a*i)||0}}class nu{constructor(e,{pixelRatio:t,version:n,stretchX:r,stretchY:a,content:i,textFitWidth:o,textFitHeight:s}){this.paddedRect=e,this.pixelRatio=t,this.stretchX=r,this.stretchY=a,this.content=i,this.version=n,this.textFitWidth=o,this.textFitHeight=s}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get tlbr(){return this.tl.concat(this.br)}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}}class ru{constructor(e,t){let n={},r={};this.haveRenderCallbacks=[];let a=[];this.addImages(e,n,a),this.addImages(t,r,a);let{w:i,h:o}=tu(a),s=new Gs({width:i||1,height:o||1});for(let t in e){let r=e[t],a=n[t].paddedRect;Gs.copy(r.data,s,{x:0,y:0},{x:a.x+1,y:a.y+1},r.data)}for(let e in t){let n=t[e],a=r[e].paddedRect,i=a.x+1,o=a.y+1,l=n.data.width,c=n.data.height;Gs.copy(n.data,s,{x:0,y:0},{x:i,y:o},n.data),Gs.copy(n.data,s,{x:0,y:c-1},{x:i,y:o-1},{width:l,height:1}),Gs.copy(n.data,s,{x:0,y:0},{x:i,y:o+c},{width:l,height:1}),Gs.copy(n.data,s,{x:l-1,y:0},{x:i-1,y:o},{width:1,height:c}),Gs.copy(n.data,s,{x:0,y:0},{x:i+l,y:o},{width:1,height:c})}this.image=s,this.iconPositions=n,this.patternPositions=r}addImages(e,t,n){for(let r in e){let a=e[r],i={x:0,y:0,w:a.data.width+2,h:a.data.height+2};n.push(i),t[r]=new nu(i,a),a.hasRenderCallback&&this.haveRenderCallbacks.push(r)}}patchUpdatedImages(e,t){e.dispatchRenderCallbacks(this.haveRenderCallbacks);for(let n in e.updatedImages)this.patchUpdatedImage(this.iconPositions[n],e.getImage(n),t),this.patchUpdatedImage(this.patternPositions[n],e.getImage(n),t)}patchUpdatedImage(e,t,n){if(!e||!t||e.version===t.version)return;e.version=t.version;let[r,a]=e.tl;n.update(t.data,void 0,{x:r,y:a})}}xa("ImagePosition",nu),xa("ImageAtlas",ru),e.ah=void 0,($c=e.ah||(e.ah={}))[$c.none=0]="none",$c[$c.horizontal=1]="horizontal",$c[$c.vertical=2]="vertical",$c[$c.horizontalOnly=3]="horizontalOnly";let au=-17;class iu{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(e,t){let n=new iu;return n.scale=e||1,n.fontStack=t,n}static forImage(e){let t=new iu;return t.imageName=e,t}}class ou{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(e,t){let n=new ou;for(let r=0;r<e.sections.length;r++){let a=e.sections[r];a.image?n.addImageSection(a):n.addTextSection(a,t)}return n}length(){return this.text.length}getSection(e){return this.sections[this.sectionIndex[e]]}getSectionIndex(e){return this.sectionIndex[e]}getCharCode(e){return this.text.charCodeAt(e)}verticalizePunctuation(){this.text=function(e){let t="";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n+1)||null,a=e.charCodeAt(n-1)||null;t+=r&&oi(r)&&!kc[e[n+1]]||a&&oi(a)&&!kc[e[n-1]]||!kc[e[n]]?e[n]:kc[e[n]]}return t}(this.text)}trim(){let e=0;for(let t=0;t<this.text.length&&lu[this.text.charCodeAt(t)];t++)e++;let t=this.text.length;for(let n=this.text.length-1;n>=0&&n>=e&&lu[this.text.charCodeAt(n)];n--)t--;this.text=this.text.substring(e,t),this.sectionIndex=this.sectionIndex.slice(e,t)}substring(e,t){let n=new ou;return n.text=this.text.substring(e,t),n.sectionIndex=this.sectionIndex.slice(e,t),n.sections=this.sections,n}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((e,t)=>Math.max(e,this.sections[t].scale),0)}addTextSection(e,t){this.text+=e.text,this.sections.push(iu.forText(e.scale,e.fontStack||t));let n=this.sections.length-1;for(let t=0;t<e.text.length;++t)this.sectionIndex.push(n)}addImageSection(e){let t=e.image?e.image.name:"";if(0===t.length)return void _("Can't add FormattedSection with an empty image.");let n=this.getNextImageSectionCharCode();n?(this.text+=String.fromCharCode(n),this.sections.push(iu.forImage(t)),this.sectionIndex.push(this.sections.length-1)):_("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function su(t,n,r,a,i,o,s,l,c,u,d,p,h,f,m){let g,y=ou.fromFeature(t,i);p===e.ah.vertical&&y.verticalizePunctuation();let{processBidirectionalText:b,processStyledBidirectionalText:v}=di;if(b&&1===y.sections.length){g=[];let e=b(y.toString(),gu(y,u,o,n,a,f));for(let t of e){let e=new ou;e.text=t,e.sections=y.sections;for(let n=0;n<t.length;n++)e.sectionIndex.push(0);g.push(e)}}else if(v){g=[];let e=v(y.text,y.sectionIndex,gu(y,u,o,n,a,f));for(let t of e){let e=new ou;e.text=t[0],e.sectionIndex=t[1],e.sections=y.sections,g.push(e)}}else g=function(e,t){let n=[],r=e.text,a=0;for(let r of t)n.push(e.substring(a,r)),a=r;return a<r.length&&n.push(e.substring(a,r.length)),n}(y,gu(y,u,o,n,a,f));let M=[],x={positionedLines:M,text:y.toString(),top:d[1],bottom:d[1],left:d[0],right:d[0],writingMode:p,iconsInText:!1,verticalizable:!1};return function(t,n,r,a,i,o,s,l,c,u,d,p){let h=0,f=au,m=0,g=0,y="right"===l?1:"left"===l?0:.5,b=0;for(let s of i){s.trim();let i=s.getMaxScale(),l=(i-1)*Tc,M={positionedGlyphs:[],lineOffset:0};t.positionedLines[b]=M;let x=M.positionedGlyphs,z=0;if(!s.length()){f+=o,++b;continue}for(let o=0;o<s.length();o++){let m=s.getSection(o),g=s.getSectionIndex(o),y=s.getCharCode(o),b=0,M=null,_=null,A=null,O=Tc,w=!(c===e.ah.horizontal||!d&&!ii(y)||d&&(lu[y]||(v=y,/\p{sc=Arab}/u.test(String.fromCodePoint(v)))));if(m.imageName){let e=a[m.imageName];if(!e)continue;A=m.imageName,t.iconsInText=t.iconsInText||!0,_=e.paddedRect;let n=e.displaySize;m.scale=m.scale*Tc/p,M={width:n[0],height:n[1],left:1,top:-3,advance:w?n[1]:n[0]},b=l+(Tc-n[1]*m.scale),O=M.advance;let r=w?n[0]*m.scale-Tc*i:n[1]*m.scale-Tc*i;r>0&&r>z&&(z=r)}else{let e=r[m.fontStack],t=e&&e[y];if(t&&t.rect)_=t.rect,M=t.metrics;else{let e=n[m.fontStack],t=e&&e[y];if(!t)continue;M=t.metrics}b=(i-m.scale)*Tc}w?(t.verticalizable=!0,x.push({glyph:y,imageName:A,x:h,y:f+b,vertical:w,scale:m.scale,fontStack:m.fontStack,sectionIndex:g,metrics:M,rect:_}),h+=O*m.scale+u):(x.push({glyph:y,imageName:A,x:h,y:f+b,vertical:w,scale:m.scale,fontStack:m.fontStack,sectionIndex:g,metrics:M,rect:_}),h+=M.advance*m.scale+u)}0!==x.length&&(m=Math.max(h-u,m),bu(x,0,x.length-1,y,z)),h=0;let _=o*i+z;M.lineOffset=Math.max(z,l),f+=_,g=Math.max(_,g),++b}var v;let M=f-au,{horizontalAlign:x,verticalAlign:z}=yu(s);(function(e,t,n,r,a,i,o,s,l){let c=(t-n)*a,u=0;u=i!==o?-s*r-au:(-r*l+.5)*o;for(let t of e)for(let e of t.positionedGlyphs)e.x+=c,e.y+=u})(t.positionedLines,y,x,z,m,g,o,M,i.length),t.top+=-z*M,t.bottom=t.top+M,t.left+=-x*m,t.right=t.left+m}(x,n,r,a,g,s,l,c,p,u,h,m),!function(e){for(let t of e)if(0!==t.positionedGlyphs.length)return!1;return!0}(M)&&x}let lu={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},cu={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},uu={40:!0};function du(e,t,n,r,a,i){if(t.imageName){let e=r[t.imageName];return e?e.displaySize[0]*t.scale*Tc/i+a:0}{let r=n[t.fontStack],i=r&&r[e];return i?i.metrics.advance*t.scale+a:0}}function pu(e,t,n,r){let a=Math.pow(e-t,2);return r?e<t?a/2:2*a:a+Math.abs(n)*n}function hu(e,t,n){let r=0;return 10===e&&(r-=1e4),n&&(r+=150),40!==e&&65288!==e||(r+=50),41!==t&&65289!==t||(r+=50),r}function fu(e,t,n,r,a,i){let o=null,s=pu(t,n,a,i);for(let e of r){let r=pu(t-e.x,n,a,i)+e.badness;r<=s&&(o=e,s=r)}return{index:e,x:t,priorBreak:o,badness:s}}function mu(e){return e?mu(e.priorBreak).concat(e.index):[]}function gu(e,t,n,r,a,i){if(!e)return[];let o=[],s=function(e,t,n,r,a,i){let o=0;for(let n=0;n<e.length();n++){let s=e.getSection(n);o+=du(e.getCharCode(n),s,r,a,t,i)}return o/Math.max(1,Math.ceil(o/n))}(e,t,n,r,a,i),l=e.text.indexOf("")>=0,c=0;for(let n=0;n<e.length();n++){let d=e.getSection(n),p=e.getCharCode(n);if(lu[p]||(c+=du(p,d,r,a,t,i)),n<e.length()-1){let t=!((u=p)<11904)&&(!!$a(u)||!!Xa(u)||!!Va(u)||!!Fa(u)||!!Ha(u)||!!Qa(u)||!!Ba(u)||!!Za(u)||ai.test(String.fromCodePoint(u)));(cu[p]||t||d.imageName||n!==e.length()-2&&uu[e.getCharCode(n+1)])&&o.push(fu(n+1,c,s,o,hu(p,e.getCharCode(n+1),t&&l),!1))}}var u;return mu(fu(e.length(),c,s,o,0,!0))}function yu(e){let t=.5,n=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:t,verticalAlign:n}}function bu(e,t,n,r,a){if(!r&&!a)return;let i=e[n],o=(e[n].x+i.metrics.advance*i.scale)*r;for(let r=t;r<=n;r++)e[r].x-=o,e[r].y+=a}function vu(e,t,n){let{horizontalAlign:r,verticalAlign:a}=yu(n),i=t[0]-e.displaySize[0]*r,o=t[1]-e.displaySize[1]*a;return{image:e,top:o,bottom:o+e.displaySize[1],left:i,right:i+e.displaySize[0]}}function Mu(e){var t,n;let r=e.left,a=e.top,i=e.right-r,o=e.bottom-a,s=null!==(t=e.image.textFitWidth)&&void 0!==t?t:"stretchOrShrink",l=null!==(n=e.image.textFitHeight)&&void 0!==n?n:"stretchOrShrink",c=(e.image.content[2]-e.image.content[0])/(e.image.content[3]-e.image.content[1]);if("proportional"===l){if("stretchOnly"===s&&i/o<c||"proportional"===s){let e=Math.ceil(o*c);r*=e/i,i=e}}else if("proportional"===s&&"stretchOnly"===l&&0!==c&&i/o>c){let e=Math.ceil(i/c);a*=e/o,o=e}return{x1:r,y1:a,x2:r+i,y2:a+o}}function xu(e,t,n,r,a,i){let o,s=e.image;if(s.content){let e=s.content,t=s.pixelRatio||1;o=[e[0]/t,e[1]/t,s.displaySize[0]-e[2]/t,s.displaySize[1]-e[3]/t]}let l,c,u,d,p=t.left*i,h=t.right*i;"width"===n||"both"===n?(d=a[0]+p-r[3],c=a[0]+h+r[1]):(d=a[0]+(p+h-s.displaySize[0])/2,c=d+s.displaySize[0]);let f=t.top*i,m=t.bottom*i;return"height"===n||"both"===n?(l=a[1]+f-r[0],u=a[1]+m+r[2]):(l=a[1]+(f+m-s.displaySize[1])/2,u=l+s.displaySize[1]),{image:s,top:l,right:c,bottom:u,left:d,collisionPadding:o}}let zu=128,_u=32640;function Au(e,t){let{expression:n}=t;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new pi(e+1))};if("source"===n.kind)return{kind:"source"};{let{zoomStops:t,interpolationType:r}=n,a=0;for(;a<t.length&&t[a]<=e;)a++;a=Math.max(0,a-1);let i=a;for(;i<t.length&&t[i]<e+1;)i++;i=Math.min(t.length-1,i);let o=t[a],s=t[i];return"composite"===n.kind?{kind:"composite",minZoom:o,maxZoom:s,interpolationType:r}:{kind:"camera",minZoom:o,maxZoom:s,minSize:n.evaluate(new pi(o)),maxSize:n.evaluate(new pi(s)),interpolationType:r}}}function Ou(e,t,n){let r="never",a=e.get(t);return a?r=a:e.get(n)&&(r="always"),r}let wu,ku,Tu=Wl.VectorTileFeature.types,Su=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function Cu(e,t,n,r,a,i,o,s,l,c,u,d,p){let h=s?Math.min(_u,Math.round(s[0])):0,f=s?Math.min(_u,Math.round(s[1])):0;e.emplaceBack(t,n,Math.round(32*r),Math.round(32*a),i,o,(h<<1)+(l?1:0),f,16*c,16*u,256*d,256*p)}function Eu(e,t,n){e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n)}function qu(e){for(let t of e.sections)if(ui(t.text))return!0;return!1}class Du{constructor(e){this.layoutVertexArray=new _o,this.indexArray=new To,this.programConfigurations=e,this.segments=new qo,this.dynamicLayoutVertexArray=new Ao,this.opacityVertexArray=new Oo,this.hasVisibleVertices=!1,this.placedSymbolArray=new oo}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length}upload(e,t,n,r){this.isEmpty()||(n&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,xc.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,zc.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,Su,!0),this.opacityVertexBuffer.itemSize=1),(n||r)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}}xa("SymbolBuffers",Du);class Ru{constructor(e,t,n){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new n,this.segments=new qo,this.collisionVertexArray=new ko}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,_c.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())}}xa("CollisionBuffers",Ru);class Lu{constructor(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Ds([]),this.placementViewportMatrix=Ds([]);let n=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Au(this.zoom,n["text-size"]),this.iconSizeData=Au(this.zoom,n["icon-size"]);let r=this.layers[0].layout,a=r.get("symbol-sort-key"),i=r.get("symbol-z-order");this.canOverlap="never"!==Ou(r,"text-overlap","text-allow-overlap")||"never"!==Ou(r,"icon-overlap","icon-allow-overlap")||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==i&&!a.isConstant(),this.sortFeaturesByY=("viewport-y"===i||"auto"===i&&!this.sortFeaturesByKey)&&this.canOverlap,"point"===r.get("symbol-placement")&&(this.writingModes=r.get("text-writing-mode").map(t=>e.ah[t])),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.sourceID=t.sourceID}createArrays(){this.text=new Du(new as(this.layers,this.zoom,e=>/^text/.test(e))),this.icon=new Du(new as(this.layers,this.zoom,e=>/^icon/.test(e))),this.glyphOffsetArray=new co,this.lineVertexArray=new uo,this.symbolInstances=new lo,this.textAnchorOffsets=new ho}calculateGlyphDependencies(e,t,n,r,a){for(let i=0;i<e.length;i++)if(t[e.charCodeAt(i)]=!0,(n||r)&&a){let n=kc[e.charAt(i)];n&&(t[n.charCodeAt(0)]=!0)}}populate(t,n,r){let a=this.layers[0],i=a.layout,o=i.get("text-font"),s=i.get("text-field"),l=i.get("icon-image"),c=("constant"!==s.value.kind||s.value.value instanceof $e&&!s.value.value.isEmpty()||s.value.value.toString().length>0)&&("constant"!==o.value.kind||o.value.value.length>0),u="constant"!==l.value.kind||!!l.value.value||Object.keys(l.parameters).length>0,d=i.get("symbol-sort-key");if(this.features=[],!c&&!u)return;let p=n.iconDependencies,h=n.glyphDependencies,f=n.availableImages,m=new pi(this.zoom);for(let{feature:n,id:s,index:l,sourceLayerIndex:g}of t){let t,y,b=a._featureFilter.needGeometry,v=hs(n,b);if(!a._featureFilter.filter(m,v,r))continue;if(b||(v.geometry=ps(n)),c){let e=a.getValueAndResolveTokens("text-field",v,r,f),n=$e.factory(e),i=this.hasRTLText=this.hasRTLText||qu(n);(!i||"unavailable"===di.getRTLTextPluginStatus()||i&&di.isParsed())&&(t=wc(n,a,v))}if(u){let e=a.getValueAndResolveTokens("icon-image",v,r,f);y=e instanceof et?e:et.fromString(e)}if(!t&&!y)continue;let M=this.sortFeaturesByKey?d.evaluate(v,{},r):void 0;if(this.features.push({id:s,text:t,icon:y,index:l,sourceLayerIndex:g,geometry:v.geometry,properties:n.properties,type:Tu[n.type],sortKey:M}),y&&(p[y.name]=!0),t){let n=o.evaluate(v,{},r).join(","),a="viewport"!==i.get("text-rotation-alignment")&&"point"!==i.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(e.ah.vertical)>=0;for(let e of t.sections)if(e.image)p[e.image.name]=!0;else{let r=Ka(t.toString()),i=e.fontStack||n,o=h[i]=h[i]||{};this.calculateGlyphDependencies(e.text,o,a,this.allowVerticalPlacement,r)}}}"line"===i.get("symbol-placement")&&(this.features=function(e){let t={},n={},r=[],a=0;function i(t){r.push(e[t]),a++}function o(e,t,a){let i=n[e];return delete n[e],n[t]=i,r[i].geometry[0].pop(),r[i].geometry[0]=r[i].geometry[0].concat(a[0]),i}function s(e,n,a){let i=t[n];return delete t[n],t[e]=i,r[i].geometry[0].shift(),r[i].geometry[0]=a[0].concat(r[i].geometry[0]),i}function l(e,t,n){let r=n?t[0][t[0].length-1]:t[0][0];return`${e}:${r.x}:${r.y}`}for(let c=0;c<e.length;c++){let u=e[c],d=u.geometry,p=u.text?u.text.toString():null;if(!p){i(c);continue}let h=l(p,d),f=l(p,d,!0);if(h in n&&f in t&&n[h]!==t[f]){let e=s(h,f,d),a=o(h,f,r[e].geometry);delete t[h],delete n[f],n[l(p,r[a].geometry,!0)]=a,r[e].geometry=null}else h in n?o(h,f,d):f in t?s(h,f,d):(i(c),t[h]=a-1,n[f]=a-1)}return r.filter(e=>e.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((e,t)=>e.sortKey-t.sortKey)}update(e,t,n){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,n),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,n))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){let n=this.lineVertexArray.length;if(void 0!==e.segment){let n=e.dist(t[e.segment+1]),r=e.dist(t[e.segment]),a={};for(let r=e.segment+1;r<t.length;r++)a[r]={x:t[r].x,y:t[r].y,tileUnitDistanceFromAnchor:n},r<t.length-1&&(n+=t[r+1].dist(t[r]));for(let n=e.segment||0;n>=0;n--)a[n]={x:t[n].x,y:t[n].y,tileUnitDistanceFromAnchor:r},n>0&&(r+=t[n-1].dist(t[n]));for(let e=0;e<t.length;e++){let t=a[e];this.lineVertexArray.emplaceBack(t.x,t.y,t.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}}addSymbols(t,n,r,a,i,o,s,l,c,u,d,p){let h=t.indexArray,f=t.layoutVertexArray,m=t.segments.prepareSegment(4*n.length,f,h,this.canOverlap?o.sortKey:void 0),g=this.glyphOffsetArray.length,y=m.vertexLength,b=this.allowVerticalPlacement&&s===e.ah.vertical?Math.PI/2:0,v=o.text&&o.text.sections;for(let e=0;e<n.length;e++){let{tl:a,tr:i,bl:s,br:c,tex:u,pixelOffsetTL:d,pixelOffsetBR:g,minFontScaleX:y,minFontScaleY:M,glyphOffset:x,isSDF:z,sectionIndex:_}=n[e],A=m.vertexLength,O=x[1];Cu(f,l.x,l.y,a.x,O+a.y,u.x,u.y,r,z,d.x,d.y,y,M),Cu(f,l.x,l.y,i.x,O+i.y,u.x+u.w,u.y,r,z,g.x,d.y,y,M),Cu(f,l.x,l.y,s.x,O+s.y,u.x,u.y+u.h,r,z,d.x,g.y,y,M),Cu(f,l.x,l.y,c.x,O+c.y,u.x+u.w,u.y+u.h,r,z,g.x,g.y,y,M),Eu(t.dynamicLayoutVertexArray,l,b),h.emplaceBack(A,A+1,A+2),h.emplaceBack(A+1,A+2,A+3),m.vertexLength+=4,m.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(x[0]),e!==n.length-1&&_===n[e+1].sectionIndex||t.programConfigurations.populatePaintArrays(f.length,o,o.index,{},p,v&&v[_])}t.placedSymbolArray.emplaceBack(l.x,l.y,g,this.glyphOffsetArray.length-g,y,c,u,l.segment,r?r[0]:0,r?r[1]:0,a[0],a[1],s,0,!1,0,d)}_addCollisionDebugVertex(e,t,n,r,a,i){return t.emplaceBack(0,0),e.emplaceBack(n.x,n.y,r,a,Math.round(i.x),Math.round(i.y))}addCollisionDebugVertices(e,t,n,r,a,o,s){let l=a.segments.prepareSegment(4,a.layoutVertexArray,a.indexArray),c=l.vertexLength,u=a.layoutVertexArray,d=a.collisionVertexArray,p=s.anchorX,h=s.anchorY;this._addCollisionDebugVertex(u,d,o,p,h,new i(e,t)),this._addCollisionDebugVertex(u,d,o,p,h,new i(n,t)),this._addCollisionDebugVertex(u,d,o,p,h,new i(n,r)),this._addCollisionDebugVertex(u,d,o,p,h,new i(e,r)),l.vertexLength+=4;let f=a.indexArray;f.emplaceBack(c,c+1),f.emplaceBack(c+1,c+2),f.emplaceBack(c+2,c+3),f.emplaceBack(c+3,c),l.primitiveLength+=4}addDebugCollisionBoxes(e,t,n,r){for(let a=e;a<t;a++){let e=this.collisionBoxArray.get(a);this.addCollisionDebugVertices(e.x1,e.y1,e.x2,e.y2,r?this.textCollisionBox:this.iconCollisionBox,e.anchorPoint,n)}}generateCollisionDebugBuffers(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new Ru(wo,Ac.members,So),this.iconCollisionBox=new Ru(wo,Ac.members,So);for(let e=0;e<this.symbolInstances.length;e++){let t=this.symbolInstances.get(e);this.addDebugCollisionBoxes(t.textBoxStartIndex,t.textBoxEndIndex,t,!0),this.addDebugCollisionBoxes(t.verticalTextBoxStartIndex,t.verticalTextBoxEndIndex,t,!0),this.addDebugCollisionBoxes(t.iconBoxStartIndex,t.iconBoxEndIndex,t,!1),this.addDebugCollisionBoxes(t.verticalIconBoxStartIndex,t.verticalIconBoxEndIndex,t,!1)}}_deserializeCollisionBoxesForSymbol(e,t,n,r,a,i,o,s,l){let c={};for(let r=t;r<n;r++){let t=e.get(r);c.textBox={x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,anchorPointX:t.anchorPointX,anchorPointY:t.anchorPointY},c.textFeatureIndex=t.featureIndex;break}for(let t=r;t<a;t++){let n=e.get(t);c.verticalTextBox={x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,anchorPointX:n.anchorPointX,anchorPointY:n.anchorPointY},c.verticalTextFeatureIndex=n.featureIndex;break}for(let t=i;t<o;t++){let n=e.get(t);c.iconBox={x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,anchorPointX:n.anchorPointX,anchorPointY:n.anchorPointY},c.iconFeatureIndex=n.featureIndex;break}for(let t=s;t<l;t++){let n=e.get(t);c.verticalIconBox={x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,anchorPointX:n.anchorPointX,anchorPointY:n.anchorPointY},c.verticalIconFeatureIndex=n.featureIndex;break}return c}deserializeCollisionBoxes(e){this.collisionArrays=[];for(let t=0;t<this.symbolInstances.length;t++){let n=this.symbolInstances.get(t);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(e,n.textBoxStartIndex,n.textBoxEndIndex,n.verticalTextBoxStartIndex,n.verticalTextBoxEndIndex,n.iconBoxStartIndex,n.iconBoxEndIndex,n.verticalIconBoxStartIndex,n.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,t){let n=e.placedSymbolArray.get(t),r=n.vertexStartIndex+4*n.numGlyphs;for(let t=n.vertexStartIndex;t<r;t+=4)e.indexArray.emplaceBack(t,t+1,t+2),e.indexArray.emplaceBack(t+1,t+2,t+3)}getSortedSymbolIndexes(e){if(this.sortedAngle===e&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;let t=Math.sin(e),n=Math.cos(e),r=[],a=[],i=[];for(let e=0;e<this.symbolInstances.length;++e){i.push(e);let o=this.symbolInstances.get(e);r.push(0|Math.round(t*o.anchorX+n*o.anchorY)),a.push(o.featureIndex)}return i.sort((e,t)=>r[e]-r[t]||a[t]-a[e]),i}addToSortKeyRanges(e,t){let n=this.sortKeyRanges[this.sortKeyRanges.length-1];n&&n.sortKey===t?n.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let e of this.symbolInstanceIndexes){let t=this.symbolInstances.get(e);this.featureSortOrder.push(t.featureIndex),[t.rightJustifiedTextSymbolIndex,t.centerJustifiedTextSymbolIndex,t.leftJustifiedTextSymbolIndex].forEach((e,t,n)=>{e>=0&&n.indexOf(e)===t&&this.addIndicesForPlacedSymbol(this.text,e)}),t.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,t.verticalPlacedTextSymbolIndex),t.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.placedIconSymbolIndex),t.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}xa("SymbolBucket",Lu,{omit:["layers","collisionBoxArray","features","compareText"]}),Lu.MAX_GLYPHS=65535,Lu.addDynamicAttributes=Eu;var Iu={get paint(){return ku=ku||new wi({"icon-opacity":new zi(X.paint_symbol["icon-opacity"]),"icon-color":new zi(X.paint_symbol["icon-color"]),"icon-halo-color":new zi(X.paint_symbol["icon-halo-color"]),"icon-halo-width":new zi(X.paint_symbol["icon-halo-width"]),"icon-halo-blur":new zi(X.paint_symbol["icon-halo-blur"]),"icon-translate":new xi(X.paint_symbol["icon-translate"]),"icon-translate-anchor":new xi(X.paint_symbol["icon-translate-anchor"]),"text-opacity":new zi(X.paint_symbol["text-opacity"]),"text-color":new zi(X.paint_symbol["text-color"],{runtimeType:pe,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new zi(X.paint_symbol["text-halo-color"]),"text-halo-width":new zi(X.paint_symbol["text-halo-width"]),"text-halo-blur":new zi(X.paint_symbol["text-halo-blur"]),"text-translate":new xi(X.paint_symbol["text-translate"]),"text-translate-anchor":new xi(X.paint_symbol["text-translate-anchor"])})},get layout(){return wu=wu||new wi({"symbol-placement":new xi(X.layout_symbol["symbol-placement"]),"symbol-spacing":new xi(X.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new xi(X.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new zi(X.layout_symbol["symbol-sort-key"]),"symbol-z-order":new xi(X.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new xi(X.layout_symbol["icon-allow-overlap"]),"icon-overlap":new xi(X.layout_symbol["icon-overlap"]),"icon-ignore-placement":new xi(X.layout_symbol["icon-ignore-placement"]),"icon-optional":new xi(X.layout_symbol["icon-optional"]),"icon-rotation-alignment":new xi(X.layout_symbol["icon-rotation-alignment"]),"icon-size":new zi(X.layout_symbol["icon-size"]),"icon-text-fit":new xi(X.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new xi(X.layout_symbol["icon-text-fit-padding"]),"icon-image":new zi(X.layout_symbol["icon-image"]),"icon-rotate":new zi(X.layout_symbol["icon-rotate"]),"icon-padding":new zi(X.layout_symbol["icon-padding"]),"icon-keep-upright":new xi(X.layout_symbol["icon-keep-upright"]),"icon-offset":new zi(X.layout_symbol["icon-offset"]),"icon-anchor":new zi(X.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new xi(X.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new xi(X.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new xi(X.layout_symbol["text-rotation-alignment"]),"text-field":new zi(X.layout_symbol["text-field"]),"text-font":new zi(X.layout_symbol["text-font"]),"text-size":new zi(X.layout_symbol["text-size"]),"text-max-width":new zi(X.layout_symbol["text-max-width"]),"text-line-height":new xi(X.layout_symbol["text-line-height"]),"text-letter-spacing":new zi(X.layout_symbol["text-letter-spacing"]),"text-justify":new zi(X.layout_symbol["text-justify"]),"text-radial-offset":new zi(X.layout_symbol["text-radial-offset"]),"text-variable-anchor":new xi(X.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new zi(X.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new zi(X.layout_symbol["text-anchor"]),"text-max-angle":new xi(X.layout_symbol["text-max-angle"]),"text-writing-mode":new xi(X.layout_symbol["text-writing-mode"]),"text-rotate":new zi(X.layout_symbol["text-rotate"]),"text-padding":new xi(X.layout_symbol["text-padding"]),"text-keep-upright":new xi(X.layout_symbol["text-keep-upright"]),"text-transform":new zi(X.layout_symbol["text-transform"]),"text-offset":new zi(X.layout_symbol["text-offset"]),"text-allow-overlap":new xi(X.layout_symbol["text-allow-overlap"]),"text-overlap":new xi(X.layout_symbol["text-overlap"]),"text-ignore-placement":new xi(X.layout_symbol["text-ignore-placement"]),"text-optional":new xi(X.layout_symbol["text-optional"])})}};class Wu{constructor(e){if(void 0===e.property.overrides)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=e.property.overrides?e.property.overrides.runtimeType:le,this.defaultValue=e}evaluate(e){if(e.formattedSection){let t=this.defaultValue.property.overrides;if(t&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}xa("FormatSectionOverride",Wu,{omit:["defaultValue"]});class Nu extends Ti{constructor(e){super(e,Iu)}recalculate(e,t){if(super.recalculate(e,t),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]="map"===this.layout.get("text-rotation-alignment")?"map":"viewport"),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){let e=this.layout.get("text-writing-mode");if(e){let t=[];for(let n of e)t.indexOf(n)<0&&t.push(n);this.layout._values["text-writing-mode"]=t}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(e,t,n,r){let a=this.layout.get(e).evaluate(t,{},n,r),i=this._unevaluatedLayout._values[e];return i.isDataDriven()||vr(i.value)||!a?a:(o=t.properties,a.replace(/{([^{}]+)}/g,(e,t)=>o&&t in o?String(o[t]):""));var o}createBucket(e){return new Lu(e)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let e of Iu.paint.overridableProperties){if(!Nu.hasPaintOverride(this.layout,e))continue;let t=this.paint.get(e),n=new Wu(t),r=new br(n,t.property.specification),a=null;a="constant"===t.value.kind||"source"===t.value.kind?new xr("source",r):new zr("composite",r,t.value.zoomStops),this.paint._values[e]=new vi(t.property,a,t.parameters)}}_handleOverridablePaintPropertyUpdate(e,t,n){return!(!this.layout||t.isDataDriven()||n.isDataDriven())&&Nu.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,t){let n=e.get("text-field"),r=Iu.paint.properties[t],a=!1,i=e=>{for(let t of e)if(r.overrides&&r.overrides.hasOverride(t))return void(a=!0)};if("constant"===n.value.kind&&n.value.value instanceof $e)i(n.value.value.sections);else if("source"===n.value.kind){let e=t=>{a||(t instanceof it&&rt(t.value)===ge?i(t.value.sections):t instanceof Ht?i(t.sections):t.eachChild(e))},t=n.value;t._styleExpression&&e(t._styleExpression.expression)}return a}}let Pu;var Bu={get paint(){return Pu=Pu||new wi({"background-color":new xi(X.paint_background["background-color"]),"background-pattern":new Ai(X.paint_background["background-pattern"]),"background-opacity":new xi(X.paint_background["background-opacity"])})}};class Fu extends Ti{constructor(e){super(e,Bu)}}let ju;var Uu={get paint(){return ju=ju||new wi({"raster-opacity":new xi(X.paint_raster["raster-opacity"]),"raster-hue-rotate":new xi(X.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new xi(X.paint_raster["raster-brightness-min"]),"raster-brightness-max":new xi(X.paint_raster["raster-brightness-max"]),"raster-saturation":new xi(X.paint_raster["raster-saturation"]),"raster-contrast":new xi(X.paint_raster["raster-contrast"]),"raster-resampling":new xi(X.paint_raster["raster-resampling"]),"raster-fade-duration":new xi(X.paint_raster["raster-fade-duration"])})}};class Vu extends Ti{constructor(e){super(e,Uu)}}class Hu extends Ti{constructor(e){super(e,{}),this.onAdd=e=>{this.implementation.onAdd&&this.implementation.onAdd(e,e.painter.context.gl)},this.onRemove=e=>{this.implementation.onRemove&&this.implementation.onRemove(e,e.painter.context.gl)},this.implementation=e}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class Xu{constructor(e){this._methodToThrottle=e,this._triggered=!1,typeof MessageChannel<"u"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._methodToThrottle()},0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}let Gu=6371008.8;class Yu{constructor(e,t){if(isNaN(e)||isNaN(t))throw new Error(`Invalid LngLat object: (${e}, ${t})`);if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Yu(g(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){let t=Math.PI/180,n=this.lat*t,r=e.lat*t,a=Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((e.lng-this.lng)*t);return Gu*Math.acos(Math.min(a,1))}static convert(e){if(e instanceof Yu)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new Yu(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new Yu(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}let Zu=2*Math.PI*Gu;function $u(e){return Zu*Math.cos(e*Math.PI/180)}function Ju(e){return(180+e)/360}function Qu(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function Ku(e,t){return e/$u(t)}function ed(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180))-90}class td{constructor(e,t,n=0){this.x=+e,this.y=+t,this.z=+n}static fromLngLat(e,t=0){let n=Yu.convert(e);return new td(Ju(n.lng),Qu(n.lat),Ku(t,n.lat))}toLngLat(){return new Yu(360*this.x-180,ed(this.y))}toAltitude(){return this.z*$u(ed(this.y))}meterInMercatorCoordinateUnits(){return 1/Zu*(e=ed(this.y),1/Math.cos(e*Math.PI/180));var e}}function nd(e,t,n){var r=2*Math.PI*6378137/256/Math.pow(2,n);return[e*r-2*Math.PI*6378137/2,t*r-2*Math.PI*6378137/2]}class rd{constructor(e,t,n){if(a=t,i=n,(r=e)<0||r>25||i<0||i>=Math.pow(2,r)||a<0||a>=Math.pow(2,r))throw new Error(`x=${t}, y=${n}, z=${e} outside of bounds. 0<=x<${Math.pow(2,e)}, 0<=y<${Math.pow(2,e)} 0<=z<=25 `);var r,a,i;this.z=e,this.x=t,this.y=n,this.key=od(0,e,e,t,n)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t,n){let r=(i=this.y,o=this.z,s=nd(256*(a=this.x),256*(i=Math.pow(2,o)-i-1),o),l=nd(256*(a+1),256*(i+1),o),s[0]+","+s[1]+","+l[0]+","+l[1]);var a,i,o,s,l;let c=function(e,t,n){let r,a="";for(let i=e;i>0;i--)r=1<<i-1,a+=(t&r?1:0)+(n&r?2:0);return a}(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String("tms"===n?Math.pow(2,this.z)-this.y-1:this.y)).replace(/{ratio}/g,t>1?"@2x":"").replace(/{quadkey}/g,c).replace(/{bbox-epsg-3857}/g,r)}isChildOf(e){let t=this.z-e.z;return t>0&&e.x===this.x>>t&&e.y===this.y>>t}getTilePoint(e){let t=Math.pow(2,this.z);return new i((e.x*t-this.x)*cs,(e.y*t-this.y)*cs)}toString(){return`${this.z}/${this.x}/${this.y}`}}class ad{constructor(e,t){this.wrap=e,this.canonical=t,this.key=od(e,t.z,t.z,t.x,t.y)}}class id{constructor(e,t,n,r,a){if(e<n)throw new Error(`overscaledZ should be >= z; overscaledZ = ${e}; z = ${n}`);this.overscaledZ=e,this.wrap=t,this.canonical=new rd(n,+r,+a),this.key=od(t,e,n,r,a)}clone(){return new id(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){if(e>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let t=this.canonical.z-e;return e>this.canonical.z?new id(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new id(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)}calculateScaledKey(e,t){if(e>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let n=this.canonical.z-e;return e>this.canonical.z?od(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y):od(this.wrap*+t,e,e,this.canonical.x>>n,this.canonical.y>>n)}isChildOf(e){if(e.wrap!==this.wrap)return!1;let t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ<this.overscaledZ&&e.canonical.x===this.canonical.x>>t&&e.canonical.y===this.canonical.y>>t}children(e){if(this.overscaledZ>=e)return[new id(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let t=this.canonical.z+1,n=2*this.canonical.x,r=2*this.canonical.y;return[new id(t,this.wrap,t,n,r),new id(t,this.wrap,t,n+1,r),new id(t,this.wrap,t,n,r+1),new id(t,this.wrap,t,n+1,r+1)]}isLessThan(e){return this.wrap<e.wrap||!(this.wrap>e.wrap)&&(this.overscaledZ<e.overscaledZ||!(this.overscaledZ>e.overscaledZ)&&(this.canonical.x<e.canonical.x||!(this.canonical.x>e.canonical.x)&&this.canonical.y<e.canonical.y))}wrapped(){return new id(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(e){return new id(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new ad(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}getTilePoint(e){return this.canonical.getTilePoint(new td(e.x-this.wrap,e.y))}}function od(e,t,n,r,a){(e*=2)<0&&(e=-1*e-1);let i=1<<n;return(i*i*e+i*a+r).toString(36)+n.toString(36)+t.toString(36)}xa("CanonicalTileID",rd),xa("OverscaledTileID",id,{omit:["posMatrix"]});class sd{constructor(e,t,n,r=1,a=1,i=1,o=0){if(this.uid=e,t.height!==t.width)throw new RangeError("DEM tiles must be square");if(n&&!["mapbox","terrarium","custom"].includes(n))return void _(`"${n}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);this.stride=t.height;let s=this.dim=t.height-2;switch(this.data=new Uint32Array(t.data.buffer),n){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=r,this.greenFactor=a,this.blueFactor=i,this.baseShift=o;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let e=0;e<s;e++)this.data[this._idx(-1,e)]=this.data[this._idx(0,e)],this.data[this._idx(s,e)]=this.data[this._idx(s-1,e)],this.data[this._idx(e,-1)]=this.data[this._idx(e,0)],this.data[this._idx(e,s)]=this.data[this._idx(e,s-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(s,-1)]=this.data[this._idx(s-1,0)],this.data[this._idx(-1,s)]=this.data[this._idx(0,s-1)],this.data[this._idx(s,s)]=this.data[this._idx(s-1,s-1)],this.min=Number.MAX_SAFE_INTEGER,this.max=Number.MIN_SAFE_INTEGER;for(let e=0;e<s;e++)for(let t=0;t<s;t++){let n=this.get(e,t);n>this.max&&(this.max=n),n<this.min&&(this.min=n)}}get(e,t){let n=new Uint8Array(this.data.buffer),r=4*this._idx(e,t);return this.unpack(n[r],n[r+1],n[r+2])}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(e,t){if(e<-1||e>=this.dim+1||t<-1||t>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(t+1)*this.stride+(e+1)}unpack(e,t,n){return e*this.redFactor+t*this.greenFactor+n*this.blueFactor-this.baseShift}getPixels(){return new Gs({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(e,t,n){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");let r=t*this.dim,a=t*this.dim+this.dim,i=n*this.dim,o=n*this.dim+this.dim;switch(t){case-1:r=a-1;break;case 1:a=r+1}switch(n){case-1:i=o-1;break;case 1:o=i+1}let s=-t*this.dim,l=-n*this.dim;for(let t=i;t<o;t++)for(let n=r;n<a;n++)this.data[this._idx(n,t)]=e.data[this._idx(n+s,t+l)]}}xa("DEMData",sd);class ld{constructor(e){this._stringToNumber={},this._numberToString=[];for(let t=0;t<e.length;t++){let n=e[t];this._stringToNumber[n]=t,this._numberToString[t]=n}}encode(e){return this._stringToNumber[e]}decode(e){if(e>=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${e} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[e]}}class cd{constructor(e,t,n,r,a){this.type="Feature",this._vectorTileFeature=e,e._z=t,e._x=n,e._y=r,this.properties=e.properties,this.id=a}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(e){this._geometry=e}toJSON(){let e={geometry:this.geometry};for(let t in this)"_geometry"!==t&&"_vectorTileFeature"!==t&&(e[t]=this[t]);return e}}class ud{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new va(cs,16,0),this.grid3D=new va(cs,16,0),this.featureIndexArray=new mo,this.promoteId=t}insert(e,t,n,r,a,i){let o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,r,a);let s=i?this.grid3D:this.grid;for(let e=0;e<t.length;e++){let n=t[e],r=[1/0,1/0,-1/0,-1/0];for(let e=0;e<n.length;e++){let t=n[e];r[0]=Math.min(r[0],t.x),r[1]=Math.min(r[1],t.y),r[2]=Math.max(r[2],t.x),r[3]=Math.max(r[3],t.y)}r[0]<cs&&r[1]<cs&&r[2]>=0&&r[3]>=0&&s.insert(o,r[0],r[1],r[2],r[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new Wl.VectorTile(new Jc(this.rawTileData)).layers,this.sourceLayerCoder=new ld(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(e,t,n,r){this.loadVTLayers();let a=e.params||{},o=cs/e.tileSize/e.scale,s=Tr(a.filter),l=e.queryGeometry,c=e.queryPadding*o,u=pd(l),d=this.grid.query(u.minX-c,u.minY-c,u.maxX+c,u.maxY+c),p=pd(e.cameraQueryGeometry),h=this.grid3D.query(p.minX-c,p.minY-c,p.maxX+c,p.maxY+c,(t,n,r,a)=>function(e,t,n,r,a){for(let i of e)if(t<=i.x&&n<=i.y&&r>=i.x&&a>=i.y)return!0;let o=[new i(t,n),new i(t,a),new i(r,a),new i(r,n)];if(e.length>2)for(let t of o)if(Os(e,t))return!0;for(let t=0;t<e.length-1;t++)if(ws(e[t],e[t+1],o))return!0;return!1}(e.cameraQueryGeometry,t-c,n-c,r+c,a+c));for(let e of h)d.push(e);d.sort(hd);let f,m={};for(let i=0;i<d.length;i++){let c=d[i];if(c===f)continue;f=c;let u=this.featureIndexArray.get(c),p=null;this.loadMatchingFeature(m,u.bucketIndex,u.sourceLayerIndex,u.featureIndex,s,a.layers,a.availableImages,t,n,r,(t,n,r)=>(p||(p=ps(t)),n.queryIntersectsFeature(l,t,r,p,this.z,e.transform,o,e.pixelPosMatrix)))}return m}loadMatchingFeature(e,t,n,r,a,i,o,s,l,c,u){let d=this.bucketLayerIDs[t];if(i&&!function(e,t){for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>=0)return!0;return!1}(i,d))return;let p=this.sourceLayerCoder.decode(n),h=this.vtLayers[p].feature(r);if(a.needGeometry){let e=hs(h,!0);if(!a.filter(new pi(this.tileID.overscaledZ),e,this.tileID.canonical))return}else if(!a.filter(new pi(this.tileID.overscaledZ),h))return;let f=this.getId(h,p);for(let t=0;t<d.length;t++){let n=d[t];if(i&&i.indexOf(n)<0)continue;let a=s[n];if(!a)continue;let p={};f&&c&&(p=c.getState(a.sourceLayer||"_geojsonTileLayer",f));let m=y({},l[n]);m.paint=dd(m.paint,a.paint,h,p,o),m.layout=dd(m.layout,a.layout,h,p,o);let g=!u||u(h,a,p);if(!g)continue;let b=new cd(h,this.z,this.x,this.y,f);b.layer=m;let v=e[n];void 0===v&&(v=e[n]=[]),v.push({featureIndex:r,feature:b,intersectionZ:g})}}lookupSymbolFeatures(e,t,n,r,a,i,o,s){let l={};this.loadVTLayers();let c=Tr(a);for(let a of e)this.loadMatchingFeature(l,n,r,a,c,i,o,s,t);return l}hasLayer(e){for(let t of this.bucketLayerIDs)for(let n of t)if(e===n)return!0;return!1}getId(e,t){let n=e.id;return this.promoteId&&(n=e.properties["string"==typeof this.promoteId?this.promoteId:this.promoteId[t]],"boolean"==typeof n&&(n=Number(n))),n}}function dd(e,t,n,r,a){return v(e,(e,i)=>{let o=t instanceof Mi?t.get(i):null;return o&&o.evaluate?o.evaluate(n,r,a):o})}function pd(e){let t=1/0,n=1/0,r=-1/0,a=-1/0;for(let i of e)t=Math.min(t,i.x),n=Math.min(n,i.y),r=Math.max(r,i.x),a=Math.max(a,i.y);return{minX:t,minY:n,maxX:r,maxY:a}}function hd(e,t){return t-e}function fd(e,t,n,r,a){let o=[];for(let s=0;s<e.length;s++){let l,c=e[s];for(let e=0;e<c.length-1;e++){let s=c[e],u=c[e+1];s.x<t&&u.x<t||(s.x<t?s=new i(t,s.y+(t-s.x)/(u.x-s.x)*(u.y-s.y))._round():u.x<t&&(u=new i(t,s.y+(t-s.x)/(u.x-s.x)*(u.y-s.y))._round()),s.y<n&&u.y<n||(s.y<n?s=new i(s.x+(n-s.y)/(u.y-s.y)*(u.x-s.x),n)._round():u.y<n&&(u=new i(s.x+(n-s.y)/(u.y-s.y)*(u.x-s.x),n)._round()),s.x>=r&&u.x>=r||(s.x>=r?s=new i(r,s.y+(r-s.x)/(u.x-s.x)*(u.y-s.y))._round():u.x>=r&&(u=new i(r,s.y+(r-s.x)/(u.x-s.x)*(u.y-s.y))._round()),s.y>=a&&u.y>=a||(s.y>=a?s=new i(s.x+(a-s.y)/(u.y-s.y)*(u.x-s.x),a)._round():u.y>=a&&(u=new i(s.x+(a-s.y)/(u.y-s.y)*(u.x-s.x),a)._round()),l&&s.equals(l[l.length-1])||(l=[s],o.push(l)),l.push(u)))))}}return o}xa("FeatureIndex",ud,{omit:["rawTileData","sourceLayerCoder"]});class md extends i{constructor(e,t,n,r){super(e,t),this.angle=n,void 0!==r&&(this.segment=r)}clone(){return new md(this.x,this.y,this.angle,this.segment)}}function gd(e,t,n,r,a){if(void 0===t.segment||0===n)return!0;let i=t,o=t.segment+1,s=0;for(;s>-n/2;){if(o--,o<0)return!1;s-=e[o].dist(i),i=e[o]}s+=e[o].dist(e[o+1]),o++;let l=[],c=0;for(;s<n/2;){let t=e[o],n=e[o+1];if(!n)return!1;let i=e[o-1].angleTo(t)-t.angleTo(n);for(i=Math.abs((i+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:i}),c+=i;s-l[0].distance>r;)c-=l.shift().angleDelta;if(c>a)return!1;o++,s+=t.dist(n)}return!0}function yd(e){let t=0;for(let n=0;n<e.length-1;n++)t+=e[n].dist(e[n+1]);return t}function bd(e,t,n){return e?.6*t*n:0}function vd(e,t){return Math.max(e?e.right-e.left:0,t?t.right-t.left:0)}function Md(e,t,n,r,a,i){let o=bd(n,a,i),s=vd(n,r)*i,l=0,c=yd(e)/2;for(let n=0;n<e.length-1;n++){let r=e[n],a=e[n+1],i=r.dist(a);if(l+i>c){let u=(c-l)/i,d=Ct.number(r.x,a.x,u),p=Ct.number(r.y,a.y,u),h=new md(d,p,a.angleTo(r),n);return h._round(),!o||gd(e,h,s,o,t)?h:void 0}l+=i}}function xd(e,t,n,r,a,i,o,s,l){let c=bd(r,i,o),u=vd(r,a),d=u*o,p=0===e[0].x||e[0].x===l||0===e[0].y||e[0].y===l;return t-d<t/4&&(t=d+t/4),zd(e,p?t/2*s%t:(u/2+2*i)*o*s%t,t,c,n,d,p,!1,l)}function zd(e,t,n,r,a,i,o,s,l){let c=i/2,u=yd(e),d=0,p=t-n,h=[];for(let t=0;t<e.length-1;t++){let o=e[t],s=e[t+1],f=o.dist(s),m=s.angleTo(o);for(;p+n<d+f;){p+=n;let g=(p-d)/f,y=Ct.number(o.x,s.x,g),b=Ct.number(o.y,s.y,g);if(y>=0&&y<l&&b>=0&&b<l&&p-c>=0&&p+c<=u){let n=new md(y,b,m,t);n._round(),r&&!gd(e,n,i,r,a)||h.push(n)}}d+=f}return s||h.length||o||(h=zd(e,d/2,n,r,a,i,o,!0,l)),h}function _d(e,t,n,r){let a=[],o=e.image,s=o.pixelRatio,l=o.paddedRect.w-2,c=o.paddedRect.h-2,u={x1:e.left,y1:e.top,x2:e.right,y2:e.bottom},d=o.stretchX||[[0,l]],p=o.stretchY||[[0,c]],h=(e,t)=>e+t[1]-t[0],f=d.reduce(h,0),m=p.reduce(h,0),g=l-f,y=c-m,b=0,v=f,M=0,x=m,z=0,_=g,A=0,O=y;if(o.content&&r){let t=o.content,n=t[2]-t[0],r=t[3]-t[1];(o.textFitWidth||o.textFitHeight)&&(u=Mu(e)),b=Ad(d,0,t[0]),M=Ad(p,0,t[1]),v=Ad(d,t[0],t[2]),x=Ad(p,t[1],t[3]),z=t[0]-b,A=t[1]-M,_=n-v,O=r-x}let w=u.x1,k=u.y1,T=u.x2-w,S=u.y2-k,C=(e,r,a,l)=>{let c=wd(e.stretch-b,v,T,w),u=kd(e.fixed-z,_,e.stretch,f),d=wd(r.stretch-M,x,S,k),p=kd(r.fixed-A,O,r.stretch,m),h=wd(a.stretch-b,v,T,w),g=kd(a.fixed-z,_,a.stretch,f),y=wd(l.stretch-M,x,S,k),C=kd(l.fixed-A,O,l.stretch,m),E=new i(c,d),q=new i(h,d),D=new i(h,y),R=new i(c,y),L=new i(u/s,p/s),I=new i(g/s,C/s),W=t*Math.PI/180;if(W){let e=Math.sin(W),t=Math.cos(W),n=[t,-e,e,t];E._matMult(n),q._matMult(n),R._matMult(n),D._matMult(n)}let N=e.stretch+e.fixed,P=r.stretch+r.fixed;return{tl:E,tr:q,bl:R,br:D,tex:{x:o.paddedRect.x+1+N,y:o.paddedRect.y+1+P,w:a.stretch+a.fixed-N,h:l.stretch+l.fixed-P},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:L,pixelOffsetBR:I,minFontScaleX:_/s/T,minFontScaleY:O/s/S,isSDF:n}};if(r&&(o.stretchX||o.stretchY)){let e=Od(d,g,f),t=Od(p,y,m);for(let n=0;n<e.length-1;n++){let r=e[n],i=e[n+1];for(let e=0;e<t.length-1;e++)a.push(C(r,t[e],i,t[e+1]))}}else a.push(C({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return a}function Ad(e,t,n){let r=0;for(let a of e)r+=Math.max(t,Math.min(n,a[1]))-Math.max(t,Math.min(n,a[0]));return r}function Od(e,t,n){let r=[{fixed:-1,stretch:0}];for(let[t,n]of e){let e=r[r.length-1];r.push({fixed:t-e.stretch,stretch:e.stretch}),r.push({fixed:t-e.stretch,stretch:e.stretch+(n-t)})}return r.push({fixed:t+1,stretch:n}),r}function wd(e,t,n,r){return e/t*n+r}function kd(e,t,n,r){return e-t*n/r}xa("Anchor",md);class Td{constructor(e,t,n,r,a,o,s,l,c,u){var d;if(this.boxStartIndex=e.length,c){let e=o.top,t=o.bottom,n=o.collisionPadding;n&&(e-=n[1],t+=n[3]);let r=t-e;r>0&&(r=Math.max(10,r),this.circleDiameter=r)}else{let c=null!==(d=o.image)&&void 0!==d&&d.content&&(o.image.textFitWidth||o.image.textFitHeight)?Mu(o):{x1:o.left,y1:o.top,x2:o.right,y2:o.bottom};c.y1=c.y1*s-l[0],c.y2=c.y2*s+l[2],c.x1=c.x1*s-l[3],c.x2=c.x2*s+l[1];let p=o.collisionPadding;if(p&&(c.x1-=p[0]*s,c.y1-=p[1]*s,c.x2+=p[2]*s,c.y2+=p[3]*s),u){let e=new i(c.x1,c.y1),t=new i(c.x2,c.y1),n=new i(c.x1,c.y2),r=new i(c.x2,c.y2),a=u*Math.PI/180;e._rotate(a),t._rotate(a),n._rotate(a),r._rotate(a),c.x1=Math.min(e.x,t.x,n.x,r.x),c.x2=Math.max(e.x,t.x,n.x,r.x),c.y1=Math.min(e.y,t.y,n.y,r.y),c.y2=Math.max(e.y,t.y,n.y,r.y)}e.emplaceBack(t.x,t.y,c.x1,c.y1,c.x2,c.y2,n,r,a)}this.boxEndIndex=e.length}}class Sd{constructor(e=[],t=(e,t)=>e<t?-1:e>t?1:0){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let e=(this.length>>1)-1;e>=0;e--)this._down(e)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(0===this.length)return;let e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:n}=this,r=t[e];for(;e>0;){let a=e-1>>1,i=t[a];if(n(r,i)>=0)break;t[e]=i,e=a}t[e]=r}_down(e){let{data:t,compare:n}=this,r=this.length>>1,a=t[e];for(;e<r;){let r=1+(e<<1),i=r+1;if(i<this.length&&n(t[i],t[r])<0&&(r=i),n(t[r],a)>=0)break;t[e]=t[r],e=r}t[e]=a}}function Cd(e,t=1,n=!1){let r=1/0,a=1/0,o=-1/0,s=-1/0,l=e[0];for(let e=0;e<l.length;e++){let t=l[e];(!e||t.x<r)&&(r=t.x),(!e||t.y<a)&&(a=t.y),(!e||t.x>o)&&(o=t.x),(!e||t.y>s)&&(s=t.y)}let c=Math.min(o-r,s-a),u=c/2,d=new Sd([],Ed);if(0===c)return new i(r,a);for(let t=r;t<o;t+=c)for(let n=a;n<s;n+=c)d.push(new qd(t+u,n+u,u,e));let p=function(e){let t=0,n=0,r=0,a=e[0];for(let e=0,i=a.length,o=i-1;e<i;o=e++){let i=a[e],s=a[o],l=i.x*s.y-s.x*i.y;n+=(i.x+s.x)*l,r+=(i.y+s.y)*l,t+=3*l}return new qd(n/t,r/t,0,e)}(e),h=d.length;for(;d.length;){let r=d.pop();(r.d>p.d||!p.d)&&(p=r,n&&Math.round(1e4*r.d)),r.max-p.d<=t||(u=r.h/2,d.push(new qd(r.p.x-u,r.p.y-u,u,e)),d.push(new qd(r.p.x+u,r.p.y-u,u,e)),d.push(new qd(r.p.x-u,r.p.y+u,u,e)),d.push(new qd(r.p.x+u,r.p.y+u,u,e)),h+=4)}return n&&p.d,p.p}function Ed(e,t){return t.max-e.max}function qd(e,t,n,r){this.p=new i(e,t),this.h=n,this.d=function(e,t){let n=!1,r=1/0;for(let a=0;a<t.length;a++){let i=t[a];for(let t=0,a=i.length,o=a-1;t<a;o=t++){let a=i[t],s=i[o];a.y>e.y!=s.y>e.y&&e.x<(s.x-a.x)*(e.y-a.y)/(s.y-a.y)+a.x&&(n=!n),r=Math.min(r,_s(e,a,s))}}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}var Dd;e.aq=void 0,(Dd=e.aq||(e.aq={}))[Dd.center=1]="center",Dd[Dd.left=2]="left",Dd[Dd.right=3]="right",Dd[Dd.top=4]="top",Dd[Dd.bottom=5]="bottom",Dd[Dd["top-left"]=6]="top-left",Dd[Dd["top-right"]=7]="top-right",Dd[Dd["bottom-left"]=8]="bottom-left",Dd[Dd["bottom-right"]=9]="bottom-right";let Rd=Number.POSITIVE_INFINITY;function Ld(e,t){return t[1]!==Rd?function(e,t,n){let r=0,a=0;switch(t=Math.abs(t),n=Math.abs(n),e){case"top-right":case"top-left":case"top":a=n-7;break;case"bottom-right":case"bottom-left":case"bottom":a=7-n}switch(e){case"top-right":case"bottom-right":case"right":r=-t;break;case"top-left":case"bottom-left":case"left":r=t}return[r,a]}(e,t[0],t[1]):function(e,t){let n=0,r=0;t<0&&(t=0);let a=t/Math.SQRT2;switch(e){case"top-right":case"top-left":r=a-7;break;case"bottom-right":case"bottom-left":r=7-a;break;case"bottom":r=7-t;break;case"top":r=t-7}switch(e){case"top-right":case"bottom-right":n=-a;break;case"top-left":case"bottom-left":n=a;break;case"left":n=t;break;case"right":n=-t}return[n,r]}(e,t[0])}function Id(e,t,n){var r;let a=e.layout,i=null===(r=a.get("text-variable-anchor-offset"))||void 0===r?void 0:r.evaluate(t,{},n);if(i){let e=i.values,t=[];for(let n=0;n<e.length;n+=2){let r=t[n]=e[n],a=e[n+1].map(e=>e*Tc);r.startsWith("top")?a[1]-=7:r.startsWith("bottom")&&(a[1]+=7),t[n+1]=a}return new Ke(t)}let o=a.get("text-variable-anchor");if(o){let r;r=void 0!==e._unevaluatedLayout.getValue("text-radial-offset")?[a.get("text-radial-offset").evaluate(t,{},n)*Tc,Rd]:a.get("text-offset").evaluate(t,{},n).map(e=>e*Tc);let i=[];for(let e of o)i.push(e,Ld(e,r));return new Ke(i)}return null}function Wd(e){switch(e){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Nd(t,n,r,a,i,o,s,l,c,u,d){let p=o.textMaxSize.evaluate(n,{});void 0===p&&(p=s);let h,f=t.layers[0].layout,m=f.get("icon-offset").evaluate(n,{},d),g=Bd(r.horizontal),y=s/24,b=t.tilePixelRatio*y,v=t.tilePixelRatio*p/24,M=t.tilePixelRatio*l,x=t.tilePixelRatio*f.get("symbol-spacing"),z=f.get("text-padding")*t.tilePixelRatio,A=function(e,t,n,r=1){let a=e.get("icon-padding").evaluate(t,{},n),i=a&&a.values;return[i[0]*r,i[1]*r,i[2]*r,i[3]*r]}(f,n,d,t.tilePixelRatio),O=f.get("text-max-angle")/180*Math.PI,w="viewport"!==f.get("text-rotation-alignment")&&"point"!==f.get("symbol-placement"),k="map"===f.get("icon-rotation-alignment")&&"point"!==f.get("symbol-placement"),T=f.get("symbol-placement"),S=x/2,C=f.get("icon-text-fit");a&&"none"!==C&&(t.allowVerticalPlacement&&r.vertical&&(h=xu(a,r.vertical,C,f.get("icon-text-fit-padding"),m,y)),g&&(a=xu(a,g,C,f.get("icon-text-fit-padding"),m,y)));let E=(l,p)=>{p.x<0||p.x>=cs||p.y<0||p.y>=cs||function(t,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g,y,b,v,M,x,z,A,O,w){let k,T,S,C,E=t.addToLineVertexArray(n,r),q=0,D=0,R=0,L=0,I=-1,W=-1,N={},P=Fo("");if(t.allowVerticalPlacement&&a.vertical){let e=l.layout.get("text-rotate").evaluate(x,{},O)+90;S=new Td(c,n,u,d,p,a.vertical,h,f,m,e),s&&(C=new Td(c,n,u,d,p,s,y,b,m,e))}if(i){let r=l.layout.get("icon-rotate").evaluate(x,{}),a="none"!==l.layout.get("icon-text-fit"),o=_d(i,r,A,a),h=s?_d(s,r,A,a):void 0;T=new Td(c,n,u,d,p,i,y,b,!1,r),q=4*o.length;let f=t.iconSizeData,m=null;"source"===f.kind?(m=[zu*l.layout.get("icon-size").evaluate(x,{})],m[0]>_u&&_(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):"composite"===f.kind&&(m=[zu*z.compositeIconSizes[0].evaluate(x,{},O),zu*z.compositeIconSizes[1].evaluate(x,{},O)],(m[0]>_u||m[1]>_u)&&_(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),t.addSymbols(t.icon,o,m,M,v,x,e.ah.none,n,E.lineStartIndex,E.lineLength,-1,O),I=t.icon.placedSymbolArray.length-1,h&&(D=4*h.length,t.addSymbols(t.icon,h,m,M,v,x,e.ah.vertical,n,E.lineStartIndex,E.lineLength,-1,O),W=t.icon.placedSymbolArray.length-1)}let B=Object.keys(a.horizontal);for(let r of B){let i=a.horizontal[r];if(!k){P=Fo(i.text);let e=l.layout.get("text-rotate").evaluate(x,{},O);k=new Td(c,n,u,d,p,i,h,f,m,e)}let s=1===i.positionedLines.length;if(R+=Pd(t,n,i,o,l,m,x,g,E,a.vertical?e.ah.horizontal:e.ah.horizontalOnly,s?B:[r],N,I,z,O),s)break}a.vertical&&(L+=Pd(t,n,a.vertical,o,l,m,x,g,E,e.ah.vertical,["vertical"],N,W,z,O));let F=k?k.boxStartIndex:t.collisionBoxArray.length,j=k?k.boxEndIndex:t.collisionBoxArray.length,U=S?S.boxStartIndex:t.collisionBoxArray.length,V=S?S.boxEndIndex:t.collisionBoxArray.length,H=T?T.boxStartIndex:t.collisionBoxArray.length,X=T?T.boxEndIndex:t.collisionBoxArray.length,G=C?C.boxStartIndex:t.collisionBoxArray.length,Y=C?C.boxEndIndex:t.collisionBoxArray.length,Z=-1,$=(e,t)=>e&&e.circleDiameter?Math.max(e.circleDiameter,t):t;Z=$(k,Z),Z=$(S,Z),Z=$(T,Z),Z=$(C,Z);let J=Z>-1?1:0;J&&(Z*=w/Tc),t.glyphOffsetArray.length>=Lu.MAX_GLYPHS&&_("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==x.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,x.sortKey);let Q=Id(l,x,O),[K,ee]=function(t,n){let r=t.length,a=n?.values;if(a?.length>0)for(let n=0;n<a.length;n+=2){let r=a[n+1];t.emplaceBack(e.aq[a[n]],r[0],r[1])}return[r,t.length]}(t.textAnchorOffsets,Q);t.symbolInstances.emplaceBack(n.x,n.y,N.right>=0?N.right:-1,N.center>=0?N.center:-1,N.left>=0?N.left:-1,N.vertical||-1,I,W,P,F,j,U,V,H,X,G,Y,u,R,L,q,D,J,0,h,Z,K,ee)}(t,p,l,r,a,i,h,t.layers[0],t.collisionBoxArray,n.index,n.sourceLayerIndex,t.index,b,[z,z,z,z],w,c,M,A,k,m,n,o,u,d,s)};if("line"===T)for(let e of fd(n.geometry,0,0,cs,cs)){let n=xd(e,x,O,r.vertical||g,a,24,v,t.overscaling,cs);for(let r of n)g&&Fd(t,g.text,S,r)||E(e,r)}else if("line-center"===T){for(let e of n.geometry)if(e.length>1){let t=Md(e,O,r.vertical||g,a,24,v);t&&E(e,t)}}else if("Polygon"===n.type)for(let e of vn(n.geometry,0)){let t=Cd(e,16);E(e[0],new md(t.x,t.y,0))}else if("LineString"===n.type)for(let e of n.geometry)E(e,new md(e[0].x,e[0].y,0));else if("Point"===n.type)for(let e of n.geometry)for(let t of e)E([t],new md(t.x,t.y,0))}function Pd(e,t,n,r,a,o,s,l,c,u,d,p,h,f,m){let g=function(e,t,n,r,a,o,s,l){let c=r.layout.get("text-rotate").evaluate(o,{})*Math.PI/180,u=[];for(let e of t.positionedLines)for(let r of e.positionedGlyphs){if(!r.rect)continue;let o=r.rect||{},d=4,p=!0,h=1,f=0,m=(a||l)&&r.vertical,g=r.metrics.advance*r.scale/2;if(l&&t.verticalizable&&(f=e.lineOffset/2-(r.imageName?-(Tc-r.metrics.width*r.scale)/2:(r.scale-1)*Tc)),r.imageName){let e=s[r.imageName];p=e.sdf,h=e.pixelRatio,d=1/h}let y=a?[r.x+g,r.y]:[0,0],b=a?[0,0]:[r.x+g+n[0],r.y+n[1]-f],v=[0,0];m&&(v=b,b=[0,0]);let M=r.metrics.isDoubleResolution?2:1,x=(r.metrics.left-d)*r.scale-g+b[0],z=(-r.metrics.top-d)*r.scale+b[1],_=x+o.w/M*r.scale/h,A=z+o.h/M*r.scale/h,O=new i(x,z),w=new i(_,z),k=new i(x,A),T=new i(_,A);if(m){let e=new i(-g,g-au),t=-Math.PI/2,n=12-g,a=new i(22-n,-(r.imageName?n:0)),o=new i(...v);O._rotateAround(t,e)._add(a)._add(o),w._rotateAround(t,e)._add(a)._add(o),k._rotateAround(t,e)._add(a)._add(o),T._rotateAround(t,e)._add(a)._add(o)}if(c){let e=Math.sin(c),t=Math.cos(c),n=[t,-e,e,t];O._matMult(n),w._matMult(n),k._matMult(n),T._matMult(n)}let S=new i(0,0),C=new i(0,0);u.push({tl:O,tr:w,bl:k,br:T,tex:o,writingMode:t.writingMode,glyphOffset:y,sectionIndex:r.sectionIndex,isSDF:p,pixelOffsetTL:S,pixelOffsetBR:C,minFontScaleX:0,minFontScaleY:0})}return u}(0,n,l,a,o,s,r,e.allowVerticalPlacement),y=e.textSizeData,b=null;"source"===y.kind?(b=[zu*a.layout.get("text-size").evaluate(s,{})],b[0]>_u&&_(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):"composite"===y.kind&&(b=[zu*f.compositeTextSizes[0].evaluate(s,{},m),zu*f.compositeTextSizes[1].evaluate(s,{},m)],(b[0]>_u||b[1]>_u)&&_(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),e.addSymbols(e.text,g,b,l,o,s,u,t,c.lineStartIndex,c.lineLength,h,m);for(let t of d)p[t]=e.text.placedSymbolArray.length-1;return 4*g.length}function Bd(e){for(let t in e)return e[t];return null}function Fd(e,t,n,r){let a=e.compareText;if(t in a){let e=a[t];for(let t=e.length-1;t>=0;t--)if(r.dist(e[t])<n)return!0}else a[t]=[];return a[t].push(r),!1}let jd=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class Ud{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");let[t,n]=new Uint8Array(e,0,2);if(219!==t)throw new Error("Data does not appear to be in a KDBush format.");let r=n>>4;if(1!==r)throw new Error(`Got v${r} data when expected v1.`);let a=jd[15&n];if(!a)throw new Error("Unrecognized array type.");let[i]=new Uint16Array(e,2,1),[o]=new Uint32Array(e,4,1);return new Ud(o,i,a,e)}constructor(e,t=64,n=Float64Array,r){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=n,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;let a=jd.indexOf(this.ArrayType),i=2*e*this.ArrayType.BYTES_PER_ELEMENT,o=e*this.IndexArrayType.BYTES_PER_ELEMENT,s=(8-o%8)%8;if(a<0)throw new Error(`Unexpected typed array class: ${n}.`);r&&r instanceof ArrayBuffer?(this.data=r,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+o+s,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+i+o+s),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+o+s,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+a]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){let n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=e,this.coords[this._pos++]=t,n}finish(){let e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return Vd(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,n,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:a,coords:i,nodeSize:o}=this,s=[0,a.length-1,0],l=[];for(;s.length;){let c=s.pop()||0,u=s.pop()||0,d=s.pop()||0;if(u-d<=o){for(let o=d;o<=u;o++){let s=i[2*o],c=i[2*o+1];s>=e&&s<=n&&c>=t&&c<=r&&l.push(a[o])}continue}let p=d+u>>1,h=i[2*p],f=i[2*p+1];h>=e&&h<=n&&f>=t&&f<=r&&l.push(a[p]),(0===c?e<=h:t<=f)&&(s.push(d),s.push(p-1),s.push(1-c)),(0===c?n>=h:r>=f)&&(s.push(p+1),s.push(u),s.push(1-c))}return l}within(e,t,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:r,coords:a,nodeSize:i}=this,o=[0,r.length-1,0],s=[],l=n*n;for(;o.length;){let c=o.pop()||0,u=o.pop()||0,d=o.pop()||0;if(u-d<=i){for(let n=d;n<=u;n++)Yd(a[2*n],a[2*n+1],e,t)<=l&&s.push(r[n]);continue}let p=d+u>>1,h=a[2*p],f=a[2*p+1];Yd(h,f,e,t)<=l&&s.push(r[p]),(0===c?e-n<=h:t-n<=f)&&(o.push(d),o.push(p-1),o.push(1-c)),(0===c?e+n>=h:t+n>=f)&&(o.push(p+1),o.push(u),o.push(1-c))}return s}}function Vd(e,t,n,r,a,i){if(a-r<=n)return;let o=r+a>>1;Hd(e,t,o,r,a,i),Vd(e,t,n,r,o-1,1-i),Vd(e,t,n,o+1,a,1-i)}function Hd(e,t,n,r,a,i){for(;a>r;){if(a-r>600){let o=a-r+1,s=n-r+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2<0?-1:1);Hd(e,t,n,Math.max(r,Math.floor(n-s*c/o+u)),Math.min(a,Math.floor(n+(o-s)*c/o+u)),i)}let o=t[2*n+i],s=r,l=a;for(Xd(e,t,r,n),t[2*a+i]>o&&Xd(e,t,r,a);s<l;){for(Xd(e,t,s,l),s++,l--;t[2*s+i]<o;)s++;for(;t[2*l+i]>o;)l--}t[2*r+i]===o?Xd(e,t,r,l):(l++,Xd(e,t,l,a)),l<=n&&(r=l+1),n<=l&&(a=l-1)}}function Xd(e,t,n,r){Gd(e,n,r),Gd(t,2*n,2*r),Gd(t,2*n+1,2*r+1)}function Gd(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function Yd(e,t,n,r){let a=e-n,i=t-r;return a*a+i*i}var Zd;e.bg=void 0,(Zd=e.bg||(e.bg={})).create="create",Zd.load="load",Zd.fullLoad="fullLoad";let $d=null,Jd=[],Qd=1e3/60,Kd="loadTime",ep="fullLoadTime",tp={mark(e){performance.mark(e)},frame(e){let t=e;null!=$d&&Jd.push(t-$d),$d=t},clearMetrics(){$d=null,Jd=[],performance.clearMeasures(Kd),performance.clearMeasures(ep);for(let t in e.bg)performance.clearMarks(e.bg[t])},getPerformanceMetrics(){performance.measure(Kd,e.bg.create,e.bg.load),performance.measure(ep,e.bg.create,e.bg.fullLoad);let t=performance.getEntriesByName(Kd)[0].duration,n=performance.getEntriesByName(ep)[0].duration,r=Jd.length,a=1/(Jd.reduce((e,t)=>e+t,0)/r/1e3),i=Jd.filter(e=>e>Qd).reduce((e,t)=>e+(t-Qd)/Qd,0);return{loadTime:t,fullLoadTime:n,fps:a,percentDroppedFrames:i/(r+i)*100,totalFrames:r}}};e.$=class extends Ii{},e.A=qs,e.B=ma,e.C=function(e){if(null==w){let t=e.navigator?e.navigator.userAgent:null;w=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return w},e.D=xi,e.E=H,e.F=class{constructor(e,t){var n,r,a;this.target=e,this.mapId=t,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new Xu(()=>this.process()),this.subscription=(n=this.target,r="message",a=e=>this.receive(e),n.addEventListener(r,a,!1),{unsubscribe:()=>{n.removeEventListener(r,a,!1)}}),this.globalScope=O(self)?e:window}registerMessageHandler(e,t){this.messageHandlers[e]=t}sendAsync(e,t){return new Promise((n,r)=>{let a=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[a]={resolve:n,reject:r},t&&t.signal.addEventListener("abort",()=>{delete this.resolveRejects[a];let t={id:a,type:"<cancel>",origin:location.origin,targetMapId:e.targetMapId,sourceMapId:this.mapId};this.target.postMessage(t)},{once:!0});let i=[],o=Object.assign(Object.assign({},e),{id:a,sourceMapId:this.mapId,origin:location.origin,data:Oa(e.data,i)});this.target.postMessage(o,{transfer:i})})}receive(e){let t=e.data,n=t.id;if(!("file://"!==t.origin&&"file://"!==location.origin&&"resource://android"!==t.origin&&"resource://android"!==location.origin&&t.origin!==location.origin||t.targetMapId&&this.mapId!==t.targetMapId)){if("<cancel>"===t.type){delete this.tasks[n];let e=this.abortControllers[n];return delete this.abortControllers[n],void(e&&e.abort())}if(O(self)||t.mustQueue)return this.tasks[n]=t,this.taskQueue.push(n),void this.invoker.trigger();this.processTask(n,t)}}process(){if(0===this.taskQueue.length)return;let e=this.taskQueue.shift(),t=this.tasks[e];delete this.tasks[e],this.taskQueue.length>0&&this.invoker.trigger(),t&&this.processTask(e,t)}processTask(e,n){return t(this,void 0,void 0,function*(){if("<response>"===n.type){let t=this.resolveRejects[e];return delete this.resolveRejects[e],t?void(n.error?t.reject(wa(n.error)):t.resolve(wa(n.data))):void 0}if(!this.messageHandlers[n.type])return void this.completeTask(e,new Error(`Could not find a registered handler for ${n.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let t=wa(n.data),r=new AbortController;this.abortControllers[e]=r;try{let a=yield this.messageHandlers[n.type](n.sourceMapId,t,r);this.completeTask(e,null,a)}catch(t){this.completeTask(e,t)}})}completeTask(e,t,n){let r=[];delete this.abortControllers[e];let a={id:e,type:"<response>",sourceMapId:this.mapId,origin:location.origin,error:t?Oa(t):null,data:Oa(n,r)};this.target.postMessage(a,{transfer:r})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},e.G=I,e.H=function(){var e=new qs(16);return qs!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e},e.I=nu,e.J=function(e,t,n){var r,a,i,o,s,l,c,u,d,p,h,f,m=n[0],g=n[1],y=n[2];return t===e?(e[12]=t[0]*m+t[4]*g+t[8]*y+t[12],e[13]=t[1]*m+t[5]*g+t[9]*y+t[13],e[14]=t[2]*m+t[6]*g+t[10]*y+t[14],e[15]=t[3]*m+t[7]*g+t[11]*y+t[15]):(a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],p=t[9],h=t[10],f=t[11],e[0]=r=t[0],e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e[6]=c,e[7]=u,e[8]=d,e[9]=p,e[10]=h,e[11]=f,e[12]=r*m+s*g+d*y+t[12],e[13]=a*m+l*g+p*y+t[13],e[14]=i*m+c*g+h*y+t[14],e[15]=o*m+u*g+f*y+t[15]),e},e.K=function(e,t,n){var r=n[0],a=n[1],i=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},e.L=Rs,e.M=function(e,t){let n={};for(let r=0;r<t.length;r++){let a=t[r];a in e&&(n[a]=e[a])}return n},e.N=Yu,e.O=Ju,e.P=i,e.Q=Qu,e.R=Gs,e.S=id,e.T=mi,e.U=d,e.V=p,e.W=S,e.X=cs,e.Y=qi,e.Z=td,e._=t,e.a=R,e.a$=function(e,t){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=e[9],p=e[10],h=e[11],f=e[12],m=e[13],g=e[14],y=e[15],b=t[0],v=t[1],M=t[2],x=t[3],z=t[4],_=t[5],A=t[6],O=t[7],w=t[8],k=t[9],T=t[10],S=t[11],C=t[12],E=t[13],q=t[14],D=t[15];return Math.abs(n-b)<=Es*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(r-v)<=Es*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(a-M)<=Es*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(i-x)<=Es*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(o-z)<=Es*Math.max(1,Math.abs(o),Math.abs(z))&&Math.abs(s-_)<=Es*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(l-A)<=Es*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(c-O)<=Es*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(u-w)<=Es*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(d-k)<=Es*Math.max(1,Math.abs(d),Math.abs(k))&&Math.abs(p-T)<=Es*Math.max(1,Math.abs(p),Math.abs(T))&&Math.abs(h-S)<=Es*Math.max(1,Math.abs(h),Math.abs(S))&&Math.abs(f-C)<=Es*Math.max(1,Math.abs(f),Math.abs(C))&&Math.abs(m-E)<=Es*Math.max(1,Math.abs(m),Math.abs(E))&&Math.abs(g-q)<=Es*Math.max(1,Math.abs(g),Math.abs(q))&&Math.abs(y-D)<=Es*Math.max(1,Math.abs(y),Math.abs(D))},e.a0=qo,e.a1=rd,e.a2=ae,e.a3=e=>{let t=window.document.createElement("video");return t.muted=!0,new Promise(n=>{t.onloadstart=()=>{n(t)};for(let n of e){let e=window.document.createElement("source");B(n)||(t.crossOrigin="Anonymous"),e.src=n,t.appendChild(e)}})},e.a4=function(){return b++},e.a5=ao,e.a6=Lu,e.a7=Tr,e.a8=hs,e.a9=cd,e.aA=function(e){if("custom"===e.type)return new Hu(e);switch(e.type){case"background":return new Fu(e);case"circle":return new Ns(e);case"fill":return new Dl(e);case"fill-extrusion":return new rc(e);case"heatmap":return new Js(e);case"hillshade":return new Ks(e);case"line":return new vc(e);case"raster":return new Vu(e);case"symbol":return new Nu(e)}},e.aB=x,e.aC=function(e,t){if(!e)return[{command:"setStyle",args:[t]}];let n=[];try{if(!Z(e.version,t.version))return[{command:"setStyle",args:[t]}];Z(e.center,t.center)||n.push({command:"setCenter",args:[t.center]}),Z(e.zoom,t.zoom)||n.push({command:"setZoom",args:[t.zoom]}),Z(e.bearing,t.bearing)||n.push({command:"setBearing",args:[t.bearing]}),Z(e.pitch,t.pitch)||n.push({command:"setPitch",args:[t.pitch]}),Z(e.sprite,t.sprite)||n.push({command:"setSprite",args:[t.sprite]}),Z(e.glyphs,t.glyphs)||n.push({command:"setGlyphs",args:[t.glyphs]}),Z(e.transition,t.transition)||n.push({command:"setTransition",args:[t.transition]}),Z(e.light,t.light)||n.push({command:"setLight",args:[t.light]}),Z(e.terrain,t.terrain)||n.push({command:"setTerrain",args:[t.terrain]}),Z(e.sky,t.sky)||n.push({command:"setSky",args:[t.sky]}),Z(e.projection,t.projection)||n.push({command:"setProjection",args:[t.projection]});let r={},a=[];!function(e,t,n,r){let a;for(a in t=t||{},e=e||{})Object.prototype.hasOwnProperty.call(e,a)&&(Object.prototype.hasOwnProperty.call(t,a)||Q(a,n,r));for(a in t)Object.prototype.hasOwnProperty.call(t,a)&&(Object.prototype.hasOwnProperty.call(e,a)?Z(e[a],t[a])||("geojson"===e[a].type&&"geojson"===t[a].type&&ee(e,t,a)?$(n,{command:"setGeoJSONSourceData",args:[a,t[a].data]}):K(a,t,n,r)):J(a,t,n))}(e.sources,t.sources,a,r);let i=[];e.layers&&e.layers.forEach(e=>{"source"in e&&r[e.source]?n.push({command:"removeLayer",args:[e.id]}):i.push(e)}),n=n.concat(a),function(e,t,n){t=t||[];let r,a,i,o,s,l=(e=e||[]).map(ne),c=t.map(ne),u=e.reduce(re,{}),d=t.reduce(re,{}),p=l.slice(),h=Object.create(null);for(let e=0,t=0;e<l.length;e++)r=l[e],Object.prototype.hasOwnProperty.call(d,r)?t++:($(n,{command:"removeLayer",args:[r]}),p.splice(p.indexOf(r,t),1));for(let e=0,t=0;e<c.length;e++)r=c[c.length-1-e],p[p.length-1-e]!==r&&(Object.prototype.hasOwnProperty.call(u,r)?($(n,{command:"removeLayer",args:[r]}),p.splice(p.lastIndexOf(r,p.length-t),1)):t++,o=p[p.length-e],$(n,{command:"addLayer",args:[d[r],o]}),p.splice(p.length-e,0,r),h[r]=!0);for(let e=0;e<c.length;e++)if(r=c[e],a=u[r],i=d[r],!h[r]&&!Z(a,i))if(Z(a.source,i.source)&&Z(a["source-layer"],i["source-layer"])&&Z(a.type,i.type)){for(s in te(a.layout,i.layout,n,r,null,"setLayoutProperty"),te(a.paint,i.paint,n,r,null,"setPaintProperty"),Z(a.filter,i.filter)||$(n,{command:"setFilter",args:[r,i.filter]}),Z(a.minzoom,i.minzoom)&&Z(a.maxzoom,i.maxzoom)||$(n,{command:"setLayerZoomRange",args:[r,i.minzoom,i.maxzoom]}),a)Object.prototype.hasOwnProperty.call(a,s)&&"layout"!==s&&"paint"!==s&&"filter"!==s&&"metadata"!==s&&"minzoom"!==s&&"maxzoom"!==s&&(0===s.indexOf("paint.")?te(a[s],i[s],n,r,s.slice(6),"setPaintProperty"):Z(a[s],i[s])||$(n,{command:"setLayerProperty",args:[r,s,i[s]]}));for(s in i)Object.prototype.hasOwnProperty.call(i,s)&&!Object.prototype.hasOwnProperty.call(a,s)&&"layout"!==s&&"paint"!==s&&"filter"!==s&&"metadata"!==s&&"minzoom"!==s&&"maxzoom"!==s&&(0===s.indexOf("paint.")?te(a[s],i[s],n,r,s.slice(6),"setPaintProperty"):Z(a[s],i[s])||$(n,{command:"setLayerProperty",args:[r,s,i[s]]}))}else $(n,{command:"removeLayer",args:[r]}),o=p[p.lastIndexOf(r)+1],$(n,{command:"addLayer",args:[i,o]})}(i,t.layers,n)}catch(e){console.warn("Unable to compute style diff:",e),n=[{command:"setStyle",args:[t]}]}return n},e.aD=function(e){let t=[],n=e.id;return void 0===n&&t.push({message:`layers.${n}: missing required property "id"`}),void 0===e.render&&t.push({message:`layers.${n}: missing required method "render"`}),e.renderingMode&&"2d"!==e.renderingMode&&"3d"!==e.renderingMode&&t.push({message:`layers.${n}: property "renderingMode" must be either "2d" or "3d"`}),t},e.aE=function e(t,n){if(Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1;return!0}if("object"==typeof t&&null!==t&&null!==n){if("object"!=typeof n||Object.keys(t).length!==Object.keys(n).length)return!1;for(let r in t)if(!e(t[r],n[r]))return!1;return!0}return t===n},e.aF=v,e.aG=M,e.aH=class extends Xo{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1i(this.location,e))}},e.aI=Go,e.aJ=class extends Xo{constructor(e,t){super(e,t),this.current=$o}set(e){if(e[12]!==this.current[12]||e[0]!==this.current[0])return this.current=e,void this.gl.uniformMatrix4fv(this.location,!1,e);for(let t=1;t<16;t++)if(e[t]!==this.current[t]){this.current=e,this.gl.uniformMatrix4fv(this.location,!1,e);break}}},e.aK=Yo,e.aL=Zo,e.aM=Ge,e.aN=class extends Xo{constructor(e,t){super(e,t),this.current=[0,0,0]}set(e){e[0]===this.current[0]&&e[1]===this.current[1]&&e[2]===this.current[2]||(this.current=e,this.gl.uniform3f(this.location,e[0],e[1],e[2]))}},e.aO=class extends Xo{constructor(e,t){super(e,t),this.current=[0,0]}set(e){e[0]===this.current[0]&&e[1]===this.current[1]||(this.current=e,this.gl.uniform2f(this.location,e[0],e[1]))}},e.aP=function(e,t,n,r,a,i,o){var s=1/(t-n),l=1/(r-a),c=1/(i-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+n)*s,e[13]=(a+r)*l,e[14]=(o+i)*c,e[15]=1,e},e.aQ=Is,e.aR=class extends Xi{},e.aS=Oc,e.aT=class extends Yi{},e.aU=$s,e.aV=function(e){return e<=1?1:Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},e.aW=Ys,e.aX=go,e.aY=To,e.aZ=class extends to{},e.a_=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]},e.aa=function(e){let t={};if(e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(e,n,r,a)=>{let i=r||a;return t[n]=!i||i.toLowerCase(),""}),t["max-age"]){let e=parseInt(t["max-age"],10);isNaN(e)?delete t["max-age"]:t["max-age"]=e}return t},e.ab=function(e,t){let n=[];for(let r in e)r in t||n.push(r);return n},e.ac=m,e.ad=function(e,t,n){var r=Math.sin(n),a=Math.cos(n),i=t[0],o=t[1],s=t[2],l=t[3],c=t[4],u=t[5],d=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*a+c*r,e[1]=o*a+u*r,e[2]=s*a+d*r,e[3]=l*a+p*r,e[4]=c*a-i*r,e[5]=u*a-o*r,e[6]=d*a-s*r,e[7]=p*a-l*r,e},e.ae=function(e){var t=new qs(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.af=Ws,e.ag=function(e,t){let n=0,r=0;if("constant"===e.kind)r=e.layoutSize;else if("source"!==e.kind){let{interpolationType:a,minZoom:i,maxZoom:o}=e,s=a?m(Et.interpolationFactor(a,t,i,o),0,1):0;"camera"===e.kind?r=Ct.number(e.minSize,e.maxSize,s):n=s}return{uSizeT:n,uSize:r}},e.ai=function(e,{uSize:t,uSizeT:n},{lowerSize:r,upperSize:a}){return"source"===e.kind?r/zu:"composite"===e.kind?Ct.number(r/zu,a/zu,n):t},e.aj=Eu,e.ak=function(e,t,n,r){let a=t.y-e.y,o=t.x-e.x,s=r.y-n.y,l=r.x-n.x,c=s*o-l*a;if(0===c)return null;let u=(l*(e.y-n.y)-s*(e.x-n.x))/c;return new i(e.x+u*o,e.y+u*a)},e.al=fd,e.am=gs,e.an=Ds,e.ao=function(e){let t=1/0,n=1/0,r=-1/0,a=-1/0;for(let i of e)t=Math.min(t,i.x),n=Math.min(n,i.y),r=Math.max(r,i.x),a=Math.max(a,i.y);return[t,n,r,a]},e.ap=Tc,e.ar=Ou,e.as=function(e,t){var n=t[0],r=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=t[9],p=t[10],h=t[11],f=t[12],m=t[13],g=t[14],y=t[15],b=n*s-r*o,v=n*l-a*o,M=n*c-i*o,x=r*l-a*s,z=r*c-i*s,_=a*c-i*l,A=u*m-d*f,O=u*g-p*f,w=u*y-h*f,k=d*g-p*m,T=d*y-h*m,S=p*y-h*g,C=b*S-v*T+M*k+x*w-z*O+_*A;return C?(e[0]=(s*S-l*T+c*k)*(C=1/C),e[1]=(a*T-r*S-i*k)*C,e[2]=(m*_-g*z+y*x)*C,e[3]=(p*z-d*_-h*x)*C,e[4]=(l*w-o*S-c*O)*C,e[5]=(n*S-a*w+i*O)*C,e[6]=(g*M-f*_-y*v)*C,e[7]=(u*_-p*M+h*v)*C,e[8]=(o*T-s*w+c*A)*C,e[9]=(r*w-n*T-i*A)*C,e[10]=(f*z-m*M+y*b)*C,e[11]=(d*M-u*z-h*b)*C,e[12]=(s*O-o*k-l*A)*C,e[13]=(n*k-r*O+a*A)*C,e[14]=(m*v-f*x-g*b)*C,e[15]=(u*x-d*v+p*b)*C,e):null},e.at=Wd,e.au=yu,e.av=Ud,e.aw=function(){let e={},t=X.$version;for(let n in X.$root){let r=X.$root[n];if(r.required){let a=null;a="version"===n?t:"array"===r.type?[]:{},null!=a&&(e[n]=a)}}return e},e.ax=ka,e.ay=N,e.az=function(e){e=e.slice();let t=Object.create(null);for(let n=0;n<e.length;n++)t[e[n].id]=e[n];for(let n=0;n<e.length;n++)"ref"in e[n]&&(e[n]=Y(e[n],t[e[n].ref]));return e},e.b=k,e.b0=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},e.b1=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e},e.b2=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},e.b3=g,e.b4=ad,e.b5=Ku,e.b6=function(e,t,n,r,a){var i,o=1/Math.tan(t/2);return e[0]=o/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=a&&a!==1/0?(e[10]=(a+r)*(i=1/(r-a)),e[14]=2*a*r*i):(e[10]=-1,e[14]=-2*r),e},e.b7=function(e,t,n){var r=Math.sin(n),a=Math.cos(n),i=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],d=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*a+c*r,e[5]=o*a+u*r,e[6]=s*a+d*r,e[7]=l*a+p*r,e[8]=c*a-i*r,e[9]=u*a-o*r,e[10]=d*a-s*r,e[11]=p*a-l*r,e},e.b8=h,e.b9=f,e.bA=Sc,e.bB=function(e){return e.message===q},e.bC=Mr,e.bD=di,e.ba=function(e){return e*Math.PI/180},e.bb=function(e,t){let{x:n,y:r}=td.fromLngLat(t);return!(e<0||e>25||r<0||r>=1||n<0||n>=1)},e.bc=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},e.bd=class extends Li{},e.be=Gu,e.bf=tp,e.bh=W,e.bi=function(e,t){R.REGISTERED_PROTOCOLS[e]=t},e.bj=function(e){delete R.REGISTERED_PROTOCOLS[e]},e.bk=function(e,t){let n={};for(let r=0;r<e.length;r++){let a=t&&t[e[r].id]||Wr(e[r]);t&&(t[e[r].id]=a);let i=n[a];i||(i=n[a]=[]),i.push(e[r])}let r=[];for(let e in n)r.push(n[e]);return r},e.bl=xa,e.bm=ld,e.bn=ud,e.bo=ru,e.bp=function(t){t.bucket.createArrays(),t.bucket.tilePixelRatio=cs/(512*t.bucket.overscaling),t.bucket.compareText={},t.bucket.iconsNeedLinear=!1;let n=t.bucket.layers[0],r=n.layout,a=n._unevaluatedLayout._values,i={layoutIconSize:a["icon-size"].possiblyEvaluate(new pi(t.bucket.zoom+1),t.canonical),layoutTextSize:a["text-size"].possiblyEvaluate(new pi(t.bucket.zoom+1),t.canonical),textMaxSize:a["text-size"].possiblyEvaluate(new pi(18))};if("composite"===t.bucket.textSizeData.kind){let{minZoom:e,maxZoom:n}=t.bucket.textSizeData;i.compositeTextSizes=[a["text-size"].possiblyEvaluate(new pi(e),t.canonical),a["text-size"].possiblyEvaluate(new pi(n),t.canonical)]}if("composite"===t.bucket.iconSizeData.kind){let{minZoom:e,maxZoom:n}=t.bucket.iconSizeData;i.compositeIconSizes=[a["icon-size"].possiblyEvaluate(new pi(e),t.canonical),a["icon-size"].possiblyEvaluate(new pi(n),t.canonical)]}let o=r.get("text-line-height")*Tc,s="viewport"!==r.get("text-rotation-alignment")&&"point"!==r.get("symbol-placement"),l=r.get("text-keep-upright"),c=r.get("text-size");for(let a of t.bucket.features){let u,d=r.get("text-font").evaluate(a,{},t.canonical).join(","),p=c.evaluate(a,{},t.canonical),h=i.layoutTextSize.evaluate(a,{},t.canonical),f=i.layoutIconSize.evaluate(a,{},t.canonical),m={horizontal:{},vertical:void 0},g=a.text,y=[0,0];if(g){let i=g.toString(),c=r.get("text-letter-spacing").evaluate(a,{},t.canonical)*Tc,u=ei(i)?c:0,f=r.get("text-anchor").evaluate(a,{},t.canonical),b=Id(n,a,t.canonical);if(!b){let e=r.get("text-radial-offset").evaluate(a,{},t.canonical);y=e?Ld(f,[e*Tc,Rd]):r.get("text-offset").evaluate(a,{},t.canonical).map(e=>e*Tc)}let v=s?"center":r.get("text-justify").evaluate(a,{},t.canonical),M="point"===r.get("symbol-placement")?r.get("text-max-width").evaluate(a,{},t.canonical)*Tc:1/0,x=()=>{t.bucket.allowVerticalPlacement&&Ka(i)&&(m.vertical=su(g,t.glyphMap,t.glyphPositions,t.imagePositions,d,M,o,f,"left",u,y,e.ah.vertical,!0,h,p))};if(!s&&b){let n=new Set;if("auto"===v)for(let e=0;e<b.values.length;e+=2)n.add(Wd(b.values[e]));else n.add(v);let r=!1;for(let a of n)if(!m.horizontal[a])if(r)m.horizontal[a]=m.horizontal[0];else{let n=su(g,t.glyphMap,t.glyphPositions,t.imagePositions,d,M,o,"center",a,u,y,e.ah.horizontal,!1,h,p);n&&(m.horizontal[a]=n,r=1===n.positionedLines.length)}x()}else{"auto"===v&&(v=Wd(f));let n=su(g,t.glyphMap,t.glyphPositions,t.imagePositions,d,M,o,f,v,u,y,e.ah.horizontal,!1,h,p);n&&(m.horizontal[v]=n),x(),Ka(i)&&s&&l&&(m.vertical=su(g,t.glyphMap,t.glyphPositions,t.imagePositions,d,M,o,f,v,u,y,e.ah.vertical,!1,h,p))}}let b=!1;if(a.icon&&a.icon.name){let e=t.imageMap[a.icon.name];e&&(u=vu(t.imagePositions[a.icon.name],r.get("icon-offset").evaluate(a,{},t.canonical),r.get("icon-anchor").evaluate(a,{},t.canonical)),b=!!e.sdf,void 0===t.bucket.sdfIcons?t.bucket.sdfIcons=b:t.bucket.sdfIcons!==b&&_("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(e.pixelRatio!==t.bucket.pixelRatio||0!==r.get("icon-rotate").constantOr(1))&&(t.bucket.iconsNeedLinear=!0))}let v=Bd(m.horizontal)||m.vertical;t.bucket.iconsInText=!!v&&v.iconsInText,(v||u)&&Nd(t.bucket,a,m,u,t.imageMap,i,h,f,y,b,t.canonical)}t.showCollisionBoxes&&t.bucket.generateCollisionDebugBuffers()},e.bq=mc,e.br=El,e.bs=Kl,e.bt=Wl,e.bu=Jc,e.bv=class{constructor(e){this._marks={start:[e.url,"start"].join("#"),end:[e.url,"end"].join("#"),measure:e.url.toString()},performance.mark(this._marks.start)}finish(){performance.mark(this._marks.end);let e=performance.getEntriesByName(this._marks.measure);return 0===e.length&&(performance.measure(this._marks.measure,this._marks.start,this._marks.end),e=performance.getEntriesByName(this._marks.measure),performance.clearMarks(this._marks.start),performance.clearMarks(this._marks.end),performance.clearMeasures(this._marks.measure)),e}},e.bw=function(e,n,r,a,i){return t(this,void 0,void 0,function*(){if(p())try{return yield S(e,n,r,a,i)}catch{}return function(e,t,n,r,a){let i=e.width,o=e.height;C&&E||(C=new OffscreenCanvas(i,o),E=C.getContext("2d",{willReadFrequently:!0})),C.width=i,C.height=o,E.drawImage(e,0,0,i,o);let s=E.getImageData(t,n,r,a);return E.clearRect(0,0,i,o),s.data}(e,n,r,a,i)})},e.bx=sd,e.by=n,e.bz=r,e.c=D,e.d=e=>t(void 0,void 0,void 0,function*(){if(0===e.byteLength)return createImageBitmap(new ImageData(1,1));let t=new Blob([new Uint8Array(e)],{type:"image/png"});try{return createImageBitmap(t)}catch(e){throw new Error(`Could not load image because of ${e.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),e.e=y,e.f=e=>new Promise((t,n)=>{let r=new Image;r.onload=()=>{t(r),URL.revokeObjectURL(r.src),r.onload=null,window.requestAnimationFrame(()=>{r.src=T})},r.onerror=()=>n(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let a=new Blob([new Uint8Array(e)],{type:"image/png"});r.src=e.byteLength?URL.createObjectURL(a):T}),e.g=L,e.h=(e,t)=>P(y(e,{type:"json"}),t),e.i=O,e.j=V,e.k=U,e.l=(e,t)=>P(y(e,{type:"arrayBuffer"}),t),e.m=P,e.n=function(e){return new Jc(e).readFields(Qc,[])},e.o=Xs,e.p=tu,e.q=wi,e.r=fa,e.s=B,e.t=ba,e.u=ha,e.v=X,e.w=_,e.x=function([e,t,n]){return t+=90,t*=Math.PI/180,n*=Math.PI/180,{x:e*Math.cos(t)*Math.sin(n),y:e*Math.sin(t)*Math.sin(n),z:e*Math.cos(n)}},e.y=Ct,e.z=pi}),n("worker",0,function(e){class t{constructor(e){this.keyCache={},e&&this.replace(e)}replace(e){this._layerConfigs={},this._layers={},this.update(e,[])}update(t,n){for(let n of t){this._layerConfigs[n.id]=n;let t=this._layers[n.id]=e.aA(n);t._featureFilter=e.a7(t.filter),this.keyCache[n.id]&&delete this.keyCache[n.id]}for(let e of n)delete this.keyCache[e],delete this._layerConfigs[e],delete this._layers[e];this.familiesBySource={};let r=e.bk(Object.values(this._layerConfigs),this.keyCache);for(let e of r){let t=e.map(e=>this._layers[e.id]),n=t[0];if("none"===n.visibility)continue;let r=n.source||"",a=this.familiesBySource[r];a||(a=this.familiesBySource[r]={});let i=n.sourceLayer||"_geojsonTileLayer",o=a[i];o||(o=a[i]=[]),o.push(t)}}}class n{constructor(t){let n={},r=[];for(let e in t){let a=t[e],i=n[e]={};for(let e in a){let t=a[+e];if(!t||0===t.bitmap.width||0===t.bitmap.height)continue;let n={x:0,y:0,w:t.bitmap.width+2,h:t.bitmap.height+2};r.push(n),i[e]={rect:n,metrics:t.metrics}}}let{w:a,h:i}=e.p(r),o=new e.o({width:a||1,height:i||1});for(let r in t){let a=t[r];for(let t in a){let i=a[+t];if(!i||0===i.bitmap.width||0===i.bitmap.height)continue;let s=n[r][t].rect;e.o.copy(i.bitmap,o,{x:0,y:0},{x:s.x+1,y:s.y+1},i.bitmap)}}this.image=o,this.positions=n}}e.bl("GlyphAtlas",n);class r{constructor(t){this.tileID=new e.S(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId,this.inFlightDependencies=[]}parse(t,r,i,o){return e._(this,void 0,void 0,function*(){this.status="parsing",this.data=t,this.collisionBoxArray=new e.a5;let s=new e.bm(Object.keys(t.layers).sort()),l=new e.bn(this.tileID,this.promoteId);l.bucketLayerIDs=[];let c={},u={featureIndex:l,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:i},d=r.familiesBySource[this.source];for(let n in d){let r=t.layers[n];if(!r)continue;1===r.version&&e.w(`Vector tile source "${this.source}" layer "${n}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let o=s.encode(n),p=[];for(let e=0;e<r.length;e++){let t=r.feature(e),a=l.getId(t,n);p.push({feature:t,id:a,index:e,sourceLayerIndex:o})}for(let t of d[n]){let n=t[0];n.source!==this.source&&e.w(`layer.source = ${n.source} does not equal this.source = ${this.source}`),n.minzoom&&this.zoom<Math.floor(n.minzoom)||n.maxzoom&&this.zoom>=n.maxzoom||"none"!==n.visibility&&(a(t,this.zoom,i),(c[n.id]=n.createBucket({index:l.bucketLayerIDs.length,layers:t,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:o,sourceID:this.source})).populate(p,u,this.tileID.canonical),l.bucketLayerIDs.push(t.map(e=>e.id)))}}let p=e.aF(u.glyphDependencies,e=>Object.keys(e).map(Number));this.inFlightDependencies.forEach(e=>e?.abort()),this.inFlightDependencies=[];let h=Promise.resolve({});if(Object.keys(p).length){let e=new AbortController;this.inFlightDependencies.push(e),h=o.sendAsync({type:"GG",data:{stacks:p,source:this.source,tileID:this.tileID,type:"glyphs"}},e)}let f=Object.keys(u.iconDependencies),m=Promise.resolve({});if(f.length){let e=new AbortController;this.inFlightDependencies.push(e),m=o.sendAsync({type:"GI",data:{icons:f,source:this.source,tileID:this.tileID,type:"icons"}},e)}let g=Object.keys(u.patternDependencies),y=Promise.resolve({});if(g.length){let e=new AbortController;this.inFlightDependencies.push(e),y=o.sendAsync({type:"GI",data:{icons:g,source:this.source,tileID:this.tileID,type:"patterns"}},e)}let[b,v,M]=yield Promise.all([h,m,y]),x=new n(b),z=new e.bo(v,M);for(let t in c){let n=c[t];n instanceof e.a6?(a(n.layers,this.zoom,i),e.bp({bucket:n,glyphMap:b,glyphPositions:x.positions,imageMap:v,imagePositions:z.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):n.hasPattern&&(n instanceof e.bq||n instanceof e.br||n instanceof e.bs)&&(a(n.layers,this.zoom,i),n.addFeatures(u,this.tileID.canonical,z.patternPositions))}return this.status="done",{buckets:Object.values(c).filter(e=>!e.isEmpty()),featureIndex:l,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:x.image,imageAtlas:z,glyphMap:this.returnDependencies?b:null,iconMap:this.returnDependencies?v:null,glyphPositions:this.returnDependencies?x.positions:null}})}}function a(t,n,r){let a=new e.z(n);for(let e of t)e.recalculate(a,r)}class i{constructor(e,t,n){this.actor=e,this.layerIndex=t,this.availableImages=n,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(t,n){return e._(this,void 0,void 0,function*(){let r=yield e.l(t.request,n);try{return{vectorTile:new e.bt.VectorTile(new e.bu(r.data)),rawData:r.data,cacheControl:r.cacheControl,expires:r.expires}}catch(e){let n=new Uint8Array(r.data),a=`Unable to parse the tile at ${t.request.url}, `;throw a+=31===n[0]&&139===n[1]?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${e.message}`,new Error(a)}})}loadTile(t){return e._(this,void 0,void 0,function*(){let n=t.uid,a=!!(t&&t.request&&t.request.collectResourceTiming)&&new e.bv(t.request),i=new r(t);this.loading[n]=i;let o=new AbortController;i.abort=o;try{let r=yield this.loadVectorTile(t,o);if(delete this.loading[n],!r)return null;let s=r.rawData,l={};r.expires&&(l.expires=r.expires),r.cacheControl&&(l.cacheControl=r.cacheControl);let c={};if(a){let e=a.finish();e&&(c.resourceTiming=JSON.parse(JSON.stringify(e)))}i.vectorTile=r.vectorTile;let u=i.parse(r.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[n]=i,this.fetching[n]={rawTileData:s,cacheControl:l,resourceTiming:c};try{let t=yield u;return e.e({rawTileData:s.slice(0)},t,l,c)}finally{delete this.fetching[n]}}catch(e){throw delete this.loading[n],i.status="done",this.loaded[n]=i,e}})}reloadTile(t){return e._(this,void 0,void 0,function*(){let n=t.uid;if(!this.loaded||!this.loaded[n])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");let r=this.loaded[n];if(r.showCollisionBoxes=t.showCollisionBoxes,"parsing"===r.status){let t,a=yield r.parse(r.vectorTile,this.layerIndex,this.availableImages,this.actor);if(this.fetching[n]){let{rawTileData:r,cacheControl:i,resourceTiming:o}=this.fetching[n];delete this.fetching[n],t=e.e({rawTileData:r.slice(0)},a,i,o)}else t=a;return t}if("done"===r.status&&r.vectorTile)return r.parse(r.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(t){return e._(this,void 0,void 0,function*(){let e=this.loading,n=t.uid;e&&e[n]&&e[n].abort&&(e[n].abort.abort(),delete e[n])})}removeTile(t){return e._(this,void 0,void 0,function*(){this.loaded&&this.loaded[t.uid]&&delete this.loaded[t.uid]})}}class o{constructor(){this.loaded={}}loadTile(t){return e._(this,void 0,void 0,function*(){let{uid:n,encoding:r,rawImageData:a,redFactor:i,greenFactor:o,blueFactor:s,baseShift:l}=t,c=a.width+2,u=a.height+2,d=e.b(a)?new e.R({width:c,height:u},yield e.bw(a,-1,-1,c,u)):a,p=new e.bx(n,d,r,i,o,s,l);return this.loaded=this.loaded||{},this.loaded[n]=p,p})}removeTile(e){let t=this.loaded,n=e.uid;t&&t[n]&&delete t[n]}}function s(e,t){if(0!==e.length){l(e[0],t);for(var n=1;n<e.length;n++)l(e[n],!t)}}function l(e,t){for(var n=0,r=0,a=0,i=e.length,o=i-1;a<i;o=a++){var s=(e[a][0]-e[o][0])*(e[o][1]+e[a][1]),l=n+s;r+=Math.abs(n)>=Math.abs(s)?n-l+s:s-l+n,n=l}n+r>=0!=!!t&&e.reverse()}var c=e.by(function e(t,n){var r,a=t&&t.type;if("FeatureCollection"===a)for(r=0;r<t.features.length;r++)e(t.features[r],n);else if("GeometryCollection"===a)for(r=0;r<t.geometries.length;r++)e(t.geometries[r],n);else if("Feature"===a)e(t.geometry,n);else if("Polygon"===a)s(t.coordinates,n);else if("MultiPolygon"===a)for(r=0;r<t.coordinates.length;r++)s(t.coordinates[r],n);return t});let u=e.bt.VectorTileFeature.prototype.toGeoJSON;var d={exports:{}},p=e.bz,h=e.bt.VectorTileFeature,f=m;function m(e,t){this.options=t||{},this.features=e,this.length=e.length}function g(e,t){this.id="number"==typeof e.id?e.id:void 0,this.type=e.type,this.rawGeometry=1===e.type?[e.geometry]:e.geometry,this.properties=e.tags,this.extent=t||4096}m.prototype.feature=function(e){return new g(this.features[e],this.options.extent)},g.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var t=0;t<e.length;t++){for(var n=e[t],r=[],a=0;a<n.length;a++)r.push(new p(n[a][0],n[a][1]));this.geometry.push(r)}return this.geometry},g.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var e=this.geometry,t=1/0,n=-1/0,r=1/0,a=-1/0,i=0;i<e.length;i++)for(var o=e[i],s=0;s<o.length;s++){var l=o[s];t=Math.min(t,l.x),n=Math.max(n,l.x),r=Math.min(r,l.y),a=Math.max(a,l.y)}return[t,r,n,a]},g.prototype.toGeoJSON=h.prototype.toGeoJSON;var y=e.bA,b=f;function v(e){var t=new y;return function(e,t){for(var n in e.layers)t.writeMessage(3,M,e.layers[n])}(e,t),t.finish()}function M(e,t){var n;t.writeVarintField(15,e.version||1),t.writeStringField(1,e.name||""),t.writeVarintField(5,e.extent||4096);var r={keys:[],values:[],keycache:{},valuecache:{}};for(n=0;n<e.length;n++)r.feature=e.feature(n),t.writeMessage(2,x,r);var a=r.keys;for(n=0;n<a.length;n++)t.writeStringField(3,a[n]);var i=r.values;for(n=0;n<i.length;n++)t.writeMessage(4,w,i[n])}function x(e,t){var n=e.feature;void 0!==n.id&&t.writeVarintField(1,n.id),t.writeMessage(2,z,e),t.writeVarintField(3,n.type),t.writeMessage(4,O,n)}function z(e,t){var n=e.feature,r=e.keys,a=e.values,i=e.keycache,o=e.valuecache;for(var s in n.properties){var l=n.properties[s],c=i[s];if(null!==l){void 0===c&&(r.push(s),i[s]=c=r.length-1),t.writeVarint(c);var u=typeof l;"string"!==u&&"boolean"!==u&&"number"!==u&&(l=JSON.stringify(l));var d=u+":"+l,p=o[d];void 0===p&&(a.push(l),o[d]=p=a.length-1),t.writeVarint(p)}}}function _(e,t){return(t<<3)+(7&e)}function A(e){return e<<1^e>>31}function O(e,t){for(var n=e.loadGeometry(),r=e.type,a=0,i=0,o=n.length,s=0;s<o;s++){var l=n[s],c=1;1===r&&(c=l.length),t.writeVarint(_(1,c));for(var u=3===r?l.length-1:l.length,d=0;d<u;d++){1===d&&1!==r&&t.writeVarint(_(2,u-1));var p=l[d].x-a,h=l[d].y-i;t.writeVarint(A(p)),t.writeVarint(A(h)),a+=p,i+=h}3===r&&t.writeVarint(_(7,1))}}function w(e,t){var n=typeof e;"string"===n?t.writeStringField(1,e):"boolean"===n?t.writeBooleanField(7,e):"number"===n&&(e%1!=0?t.writeDoubleField(3,e):e<0?t.writeSVarintField(6,e):t.writeVarintField(5,e))}d.exports=v,d.exports.fromVectorTileJs=v,d.exports.fromGeojsonVt=function(e,t){t=t||{};var n={};for(var r in e)n[r]=new b(e[r].features,t),n[r].name=r,n[r].version=t.version,n[r].extent=t.extent;return v({layers:n})},d.exports.GeoJSONWrapper=b;var k=e.by(d.exports);let T={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},S=Math.fround||(C=new Float32Array(1),e=>(C[0]=+e,C[0]));var C;class E{constructor(e){this.options=Object.assign(Object.create(T),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){let{log:t,minZoom:n,maxZoom:r}=this.options;t&&console.time("total time");let a=`prepare ${e.length} points`;t&&console.time(a),this.points=e;let i=[];for(let t=0;t<e.length;t++){let n=e[t];if(!n.geometry)continue;let[r,a]=n.geometry.coordinates,o=S(R(r)),s=S(L(a));i.push(o,s,1/0,t,-1,1),this.options.reduce&&i.push(0)}let o=this.trees[r+1]=this._createTree(i);t&&console.timeEnd(a);for(let e=r;e>=n;e--)Date.now(),o=this.trees[e]=this._createTree(this._cluster(o,e)),t&&(o.numItems,Date.now());return t&&console.timeEnd("total time"),this}getClusters(e,t){let n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),a=180===e[2]?180:((e[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,a=180;else if(n>a){let e=this.getClusters([n,r,180,i],t),o=this.getClusters([-180,r,a,i],t);return e.concat(o)}let o=this.trees[this._limitZoom(t)],s=o.range(R(n),L(i),R(a),L(r)),l=o.data,c=[];for(let e of s){let t=this.stride*e;c.push(l[t+5]>1?q(l,t,this.clusterProps):this.points[l[t+3]])}return c}getChildren(e){let t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",a=this.trees[n];if(!a)throw new Error(r);let i=a.data;if(t*this.stride>=i.length)throw new Error(r);let o=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=a.within(i[t*this.stride],i[t*this.stride+1],o),l=[];for(let t of s){let n=t*this.stride;i[n+4]===e&&l.push(i[n+5]>1?q(i,n,this.clusterProps):this.points[i[n+3]])}if(0===l.length)throw new Error(r);return l}getLeaves(e,t,n){let r=[];return this._appendLeaves(r,e,t=t||10,n=n||0,0),r}getTile(e,t,n){let r=this.trees[this._limitZoom(e)],a=Math.pow(2,e),{extent:i,radius:o}=this.options,s=o/i,l=(n-s)/a,c=(n+1+s)/a,u={features:[]};return this._addTileFeatures(r.range((t-s)/a,l,(t+1+s)/a,c),r.data,t,n,a,u),0===t&&this._addTileFeatures(r.range(1-s/a,l,1,c),r.data,a,n,a,u),t===a-1&&this._addTileFeatures(r.range(0,l,s/a,c),r.data,-1,n,a,u),u.features.length?u:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){let n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t}_appendLeaves(e,t,n,r,a){let i=this.getChildren(t);for(let t of i){let i=t.properties;if(i&&i.cluster?a+i.point_count<=r?a+=i.point_count:a=this._appendLeaves(e,i.cluster_id,n,r,a):a<r?a++:e.push(t),e.length===n)break}return a}_createTree(t){let n=new e.av(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let e=0;e<t.length;e+=this.stride)n.add(t[e],t[e+1]);return n.finish(),n.data=t,n}_addTileFeatures(e,t,n,r,a,i){for(let o of e){let e,s,l,c=o*this.stride,u=t[c+5]>1;if(u)e=D(t,c,this.clusterProps),s=t[c],l=t[c+1];else{let n=this.points[t[c+3]];e=n.properties;let[r,a]=n.geometry.coordinates;s=R(r),l=L(a)}let d,p={type:1,geometry:[[Math.round(this.options.extent*(s*a-n)),Math.round(this.options.extent*(l*a-r))]],tags:e};d=u||this.options.generateId?t[c+3]:this.points[t[c+3]].id,void 0!==d&&(p.id=d),i.features.push(p)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){let{radius:n,extent:r,reduce:a,minPoints:i}=this.options,o=n/(r*Math.pow(2,t)),s=e.data,l=[],c=this.stride;for(let n=0;n<s.length;n+=c){if(s[n+2]<=t)continue;s[n+2]=t;let r=s[n],u=s[n+1],d=e.within(s[n],s[n+1],o),p=s[n+5],h=p;for(let e of d){let n=e*c;s[n+2]>t&&(h+=s[n+5])}if(h>p&&h>=i){let e,i=r*p,o=u*p,f=-1,m=(n/c<<5)+(t+1)+this.points.length;for(let r of d){let l=r*c;if(s[l+2]<=t)continue;s[l+2]=t;let u=s[l+5];i+=s[l]*u,o+=s[l+1]*u,s[l+4]=m,a&&(e||(e=this._map(s,n,!0),f=this.clusterProps.length,this.clusterProps.push(e)),a(e,this._map(s,l)))}s[n+4]=m,l.push(i/h,o/h,1/0,m,-1,h),a&&l.push(f)}else{for(let e=0;e<c;e++)l.push(s[n+e]);if(h>1)for(let e of d){let n=e*c;if(!(s[n+2]<=t)){s[n+2]=t;for(let e=0;e<c;e++)l.push(s[n+e])}}}}return l}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,n){if(e[t+5]>1){let r=this.clusterProps[e[t+6]];return n?Object.assign({},r):r}let r=this.points[e[t+3]].properties,a=this.options.map(r);return n&&a===r?Object.assign({},a):a}}function q(e,t,n){return{type:"Feature",id:e[t+3],properties:D(e,t,n),geometry:{type:"Point",coordinates:[(r=e[t],360*(r-.5)),I(e[t+1])]}};var r}function D(e,t,n){let r=e[t+5],a=r>=1e4?`${Math.round(r/1e3)}k`:r>=1e3?Math.round(r/100)/10+"k":r,i=e[t+6],o=-1===i?{}:Object.assign({},n[i]);return Object.assign(o,{cluster:!0,cluster_id:e[t+3],point_count:r,point_count_abbreviated:a})}function R(e){return e/360+.5}function L(e){let t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function I(e){let t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function W(e,t,n,r){let a,i=r,o=t+(n-t>>1),s=n-t,l=e[t],c=e[t+1],u=e[n],d=e[n+1];for(let r=t+3;r<n;r+=3){let t=N(e[r],e[r+1],l,c,u,d);if(t>i)a=r,i=t;else if(t===i){let e=Math.abs(r-o);e<s&&(a=r,s=e)}}i>r&&(a-t>3&&W(e,t,a,r),e[a+2]=i,n-a>3&&W(e,a,n,r))}function N(e,t,n,r,a,i){let o=a-n,s=i-r;if(0!==o||0!==s){let l=((e-n)*o+(t-r)*s)/(o*o+s*s);l>1?(n=a,r=i):l>0&&(n+=o*l,r+=s*l)}return o=e-n,s=t-r,o*o+s*s}function P(e,t,n,r){let a={id:e??null,type:t,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if("Point"===t||"MultiPoint"===t||"LineString"===t)B(a,n);else if("Polygon"===t)B(a,n[0]);else if("MultiLineString"===t)for(let e of n)B(a,e);else if("MultiPolygon"===t)for(let e of n)B(a,e[0]);return a}function B(e,t){for(let n=0;n<t.length;n+=3)e.minX=Math.min(e.minX,t[n]),e.minY=Math.min(e.minY,t[n+1]),e.maxX=Math.max(e.maxX,t[n]),e.maxY=Math.max(e.maxY,t[n+1])}function F(e,t,n,r){if(!t.geometry)return;let a=t.geometry.coordinates;if(a&&0===a.length)return;let i=t.geometry.type,o=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),s=[],l=t.id;if(n.promoteId?l=t.properties[n.promoteId]:n.generateId&&(l=r||0),"Point"===i)j(a,s);else if("MultiPoint"===i)for(let e of a)j(e,s);else if("LineString"===i)U(a,s,o,!1);else if("MultiLineString"===i){if(n.lineMetrics){for(let n of a)s=[],U(n,s,o,!1),e.push(P(l,"LineString",s,t.properties));return}V(a,s,o,!1)}else if("Polygon"===i)V(a,s,o,!0);else{if("MultiPolygon"!==i){if("GeometryCollection"===i){for(let a of t.geometry.geometries)F(e,{id:l,geometry:a,properties:t.properties},n,r);return}throw new Error("Input data is not a valid GeoJSON object.")}for(let e of a){let t=[];V(e,t,o,!0),s.push(t)}}e.push(P(l,i,s,t.properties))}function j(e,t){t.push(H(e[0]),X(e[1]),0)}function U(e,t,n,r){let a,i,o=0;for(let n=0;n<e.length;n++){let s=H(e[n][0]),l=X(e[n][1]);t.push(s,l,0),n>0&&(o+=r?(a*l-s*i)/2:Math.sqrt(Math.pow(s-a,2)+Math.pow(l-i,2))),a=s,i=l}let s=t.length-3;t[2]=1,W(t,0,s,n),t[s+2]=1,t.size=Math.abs(o),t.start=0,t.end=t.size}function V(e,t,n,r){for(let a=0;a<e.length;a++){let i=[];U(e[a],i,n,r),t.push(i)}}function H(e){return e/360+.5}function X(e){let t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function G(e,t,n,r,a,i,o,s){if(r/=t,i>=(n/=t)&&o<r)return e;if(o<n||i>=r)return null;let l=[];for(let t of e){let e=t.geometry,i=t.type,o=0===a?t.minX:t.minY,c=0===a?t.maxX:t.maxY;if(o>=n&&c<r){l.push(t);continue}if(c<n||o>=r)continue;let u=[];if("Point"===i||"MultiPoint"===i)Y(e,u,n,r,a);else if("LineString"===i)Z(e,u,n,r,a,!1,s.lineMetrics);else if("MultiLineString"===i)J(e,u,n,r,a,!1);else if("Polygon"===i)J(e,u,n,r,a,!0);else if("MultiPolygon"===i)for(let t of e){let e=[];J(t,e,n,r,a,!0),e.length&&u.push(e)}if(u.length){if(s.lineMetrics&&"LineString"===i){for(let e of u)l.push(P(t.id,i,e,t.tags));continue}"LineString"!==i&&"MultiLineString"!==i||(1===u.length?(i="LineString",u=u[0]):i="MultiLineString"),"Point"!==i&&"MultiPoint"!==i||(i=3===u.length?"Point":"MultiPoint"),l.push(P(t.id,i,u,t.tags))}}return l.length?l:null}function Y(e,t,n,r,a){for(let i=0;i<e.length;i+=3){let o=e[i+a];o>=n&&o<=r&&Q(t,e[i],e[i+1],e[i+2])}}function Z(e,t,n,r,a,i,o){let s,l,c=$(e),u=0===a?K:ee,d=e.start;for(let p=0;p<e.length-3;p+=3){let h=e[p],f=e[p+1],m=e[p+2],g=e[p+3],y=e[p+4],b=0===a?h:f,v=0===a?g:y,M=!1;o&&(s=Math.sqrt(Math.pow(h-g,2)+Math.pow(f-y,2))),b<n?v>n&&(l=u(c,h,f,g,y,n),o&&(c.start=d+s*l)):b>r?v<r&&(l=u(c,h,f,g,y,r),o&&(c.start=d+s*l)):Q(c,h,f,m),v<n&&b>=n&&(l=u(c,h,f,g,y,n),M=!0),v>r&&b<=r&&(l=u(c,h,f,g,y,r),M=!0),!i&&M&&(o&&(c.end=d+s*l),t.push(c),c=$(e)),o&&(d+=s)}let p=e.length-3,h=e[p],f=e[p+1],m=0===a?h:f;m>=n&&m<=r&&Q(c,h,f,e[p+2]),p=c.length-3,i&&p>=3&&(c[p]!==c[0]||c[p+1]!==c[1])&&Q(c,c[0],c[1],c[2]),c.length&&t.push(c)}function $(e){let t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function J(e,t,n,r,a,i){for(let o of e)Z(o,t,n,r,a,i,!1)}function Q(e,t,n,r){e.push(t,n,r)}function K(e,t,n,r,a,i){let o=(i-t)/(r-t);return Q(e,i,n+(a-n)*o,1),o}function ee(e,t,n,r,a,i){let o=(i-n)/(a-n);return Q(e,t+(r-t)*o,i,1),o}function te(e,t){let n=[];for(let r=0;r<e.length;r++){let a,i=e[r],o=i.type;if("Point"===o||"MultiPoint"===o||"LineString"===o)a=ne(i.geometry,t);else if("MultiLineString"===o||"Polygon"===o){a=[];for(let e of i.geometry)a.push(ne(e,t))}else if("MultiPolygon"===o){a=[];for(let e of i.geometry){let n=[];for(let r of e)n.push(ne(r,t));a.push(n)}}n.push(P(i.id,o,a,i.tags))}return n}function ne(e,t){let n=[];n.size=e.size,void 0!==e.start&&(n.start=e.start,n.end=e.end);for(let r=0;r<e.length;r+=3)n.push(e[r]+t,e[r+1],e[r+2]);return n}function re(e,t){if(e.transformed)return e;let n=1<<e.z,r=e.x,a=e.y;for(let i of e.features){let e=i.geometry,o=i.type;if(i.geometry=[],1===o)for(let o=0;o<e.length;o+=2)i.geometry.push(ae(e[o],e[o+1],t,n,r,a));else for(let o=0;o<e.length;o++){let s=[];for(let i=0;i<e[o].length;i+=2)s.push(ae(e[o][i],e[o][i+1],t,n,r,a));i.geometry.push(s)}}return e.transformed=!0,e}function ae(e,t,n,r,a,i){return[Math.round(n*(e*r-a)),Math.round(n*(t*r-i))]}function ie(e,t,n,r,a){let i=t===a.maxZoom?0:a.tolerance/((1<<t)*a.extent),o={features:[],numPoints:0,numSimplified:0,numFeatures:e.length,source:null,x:n,y:r,z:t,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0};for(let t of e)oe(o,t,i,a);return o}function oe(e,t,n,r){let a=t.geometry,i=t.type,o=[];if(e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),"Point"===i||"MultiPoint"===i)for(let t=0;t<a.length;t+=3)o.push(a[t],a[t+1]),e.numPoints++,e.numSimplified++;else if("LineString"===i)se(o,a,e,n,!1,!1);else if("MultiLineString"===i||"Polygon"===i)for(let t=0;t<a.length;t++)se(o,a[t],e,n,"Polygon"===i,0===t);else if("MultiPolygon"===i)for(let t=0;t<a.length;t++){let r=a[t];for(let t=0;t<r.length;t++)se(o,r[t],e,n,!0,0===t)}if(o.length){let n=t.tags||null;if("LineString"===i&&r.lineMetrics){n={};for(let e in t.tags)n[e]=t.tags[e];n.mapbox_clip_start=a.start/a.size,n.mapbox_clip_end=a.end/a.size}let s={geometry:o,type:"Polygon"===i||"MultiPolygon"===i?3:"LineString"===i||"MultiLineString"===i?2:1,tags:n};null!==t.id&&(s.id=t.id),e.features.push(s)}}function se(e,t,n,r,a,i){let o=r*r;if(r>0&&t.size<(a?o:r))return void(n.numPoints+=t.length/3);let s=[];for(let e=0;e<t.length;e+=3)(0===r||t[e+2]>o)&&(n.numSimplified++,s.push(t[e],t[e+1])),n.numPoints++;a&&function(e,t){let n=0;for(let t=0,r=e.length,a=r-2;t<r;a=t,t+=2)n+=(e[t]-e[a])*(e[t+1]+e[a+1]);if(n>0===t)for(let t=0,n=e.length;t<n/2;t+=2){let r=e[t],a=e[t+1];e[t]=e[n-2-t],e[t+1]=e[n-1-t],e[n-2-t]=r,e[n-1-t]=a}}(s,i),e.push(s)}let le={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0};class ce{constructor(e,t){let n=(t=this.options=function(e,t){for(let n in t)e[n]=t[n];return e}(Object.create(le),t)).debug;if(n&&console.time("preprocess data"),t.maxZoom<0||t.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");let r=function(e,t){let n=[];if("FeatureCollection"===e.type)for(let r=0;r<e.features.length;r++)F(n,e.features[r],t,r);else F(n,"Feature"===e.type?e:{geometry:e},t);return n}(e,t);this.tiles={},this.tileCoords=[],n&&(console.timeEnd("preprocess data"),t.indexMaxZoom,t.indexMaxPoints,console.time("generate tiles"),this.stats={},this.total=0),r=function(e,t){let n=t.buffer/t.extent,r=e,a=G(e,1,-1-n,n,0,-1,2,t),i=G(e,1,1-n,2+n,0,-1,2,t);return(a||i)&&(r=G(e,1,-n,1+n,0,-1,2,t)||[],a&&(r=te(a,1).concat(r)),i&&(r=r.concat(te(i,-1)))),r}(r,t),r.length&&this.splitTile(r,0,0,0),n&&(r.length&&(this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),this.total,JSON.stringify(this.stats))}splitTile(e,t,n,r,a,i,o){let s=[e,t,n,r],l=this.options,c=l.debug;for(;s.length;){r=s.pop(),n=s.pop(),t=s.pop(),e=s.pop();let u=1<<t,d=ue(t,n,r),p=this.tiles[d];if(!p&&(c>1&&console.time("creation"),p=this.tiles[d]=ie(e,t,n,r,l),this.tileCoords.push({z:t,x:n,y:r}),c)){c>1&&(p.numFeatures,p.numPoints,p.numSimplified,console.timeEnd("creation"));let e=`z${t}`;this.stats[e]=(this.stats[e]||0)+1,this.total++}if(p.source=e,null==a){if(t===l.indexMaxZoom||p.numPoints<=l.indexMaxPoints)continue}else{if(t===l.maxZoom||t===a)continue;if(null!=a){let e=a-t;if(n!==i>>e||r!==o>>e)continue}}if(p.source=null,0===e.length)continue;c>1&&console.time("clipping");let h=.5*l.buffer/l.extent,f=.5-h,m=.5+h,g=1+h,y=null,b=null,v=null,M=null,x=G(e,u,n-h,n+m,0,p.minX,p.maxX,l),z=G(e,u,n+f,n+g,0,p.minX,p.maxX,l);e=null,x&&(y=G(x,u,r-h,r+m,1,p.minY,p.maxY,l),b=G(x,u,r+f,r+g,1,p.minY,p.maxY,l),x=null),z&&(v=G(z,u,r-h,r+m,1,p.minY,p.maxY,l),M=G(z,u,r+f,r+g,1,p.minY,p.maxY,l),z=null),c>1&&console.timeEnd("clipping"),s.push(y||[],t+1,2*n,2*r),s.push(b||[],t+1,2*n,2*r+1),s.push(v||[],t+1,2*n+1,2*r),s.push(M||[],t+1,2*n+1,2*r+1)}}getTile(e,t,n){e=+e,t=+t,n=+n;let r=this.options,{extent:a,debug:i}=r;if(e<0||e>24)return null;let o=1<<e,s=ue(e,t=t+o&o-1,n);if(this.tiles[s])return re(this.tiles[s],a);let l,c=e,u=t,d=n;for(;!l&&c>0;)c--,u>>=1,d>>=1,l=this.tiles[ue(c,u,d)];return l&&l.source?(i>1&&console.time("drilling down"),this.splitTile(l.source,c,u,d,e,t,n),i>1&&console.timeEnd("drilling down"),this.tiles[s]?re(this.tiles[s],a):null):null}}function ue(e,t,n){return 32*((1<<e)*n+t)+e}function de(e,t){return t?e.properties[t]:e.id}function pe(e,t){if(null==e)return!0;if("Feature"===e.type)return null!=de(e,t);if("FeatureCollection"===e.type){let n=new Set;for(let r of e.features){let e=de(r,t);if(null==e||n.has(e))return!1;n.add(e)}return!0}return!1}function he(e,t){let n=new Map;if(null!=e)if("Feature"===e.type)n.set(de(e,t),e);else for(let r of e.features)n.set(de(r,t),r);return n}class fe extends i{constructor(){super(...arguments),this._dataUpdateable=new Map}loadVectorTile(t,n){return e._(this,void 0,void 0,function*(){let n=t.tileID.canonical;if(!this._geoJSONIndex)throw new Error("Unable to parse the data into a cluster or geojson");let r=this._geoJSONIndex.getTile(n.z,n.x,n.y);if(!r)return null;let a=new class{constructor(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.X,this.length=t.length,this._features=t}feature(t){return new class{constructor(t){this._feature=t,this.extent=e.X,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=parseInt(t.id,10))}loadGeometry(){if(1===this._feature.type){let t=[];for(let n of this._feature.geometry)t.push([new e.P(n[0],n[1])]);return t}{let t=[];for(let n of this._feature.geometry){let r=[];for(let t of n)r.push(new e.P(t[0],t[1]));t.push(r)}return t}}toGeoJSON(e,t,n){return u.call(this,e,t,n)}}(this._features[t])}}(r.features),i=k(a);return 0===i.byteOffset&&i.byteLength===i.buffer.byteLength||(i=new Uint8Array(i)),{vectorTile:a,rawData:i.buffer}})}loadData(t){return e._(this,void 0,void 0,function*(){var n;null===(n=this._pendingRequest)||void 0===n||n.abort();let r=!!(t&&t.request&&t.request.collectResourceTiming)&&new e.bv(t.request);this._pendingRequest=new AbortController;try{this._pendingData=this.loadAndProcessGeoJSON(t,this._pendingRequest),this._geoJSONIndex=t.cluster?new E(function({superclusterOptions:t,clusterProperties:n}){if(!n||!t)return t;let r={},a={},i={accumulated:null,zoom:0},o={properties:null},s=Object.keys(n);for(let t of s){let[i,o]=n[t],s=e.bC(o),l=e.bC("string"==typeof i?[i,["accumulated"],["get",t]]:i);r[t]=s.value,a[t]=l.value}return t.map=e=>{o.properties=e;let t={};for(let e of s)t[e]=r[e].evaluate(i,o);return t},t.reduce=(e,t)=>{o.properties=t;for(let t of s)i.accumulated=e[t],e[t]=a[t].evaluate(i,o)},t}(t)).load((yield this._pendingData).features):(a=yield this._pendingData,new ce(a,t.geojsonVtOptions)),this.loaded={};let n={};if(r){let e=r.finish();e&&(n.resourceTiming={},n.resourceTiming[t.source]=JSON.parse(JSON.stringify(e)))}return n}catch(t){if(delete this._pendingRequest,e.bB(t))return{abandoned:!0};throw t}var a})}getData(){return e._(this,void 0,void 0,function*(){return this._pendingData})}reloadTile(e){let t=this.loaded;return t&&t[e.uid]?super.reloadTile(e):this.loadTile(e)}loadAndProcessGeoJSON(t,n){return e._(this,void 0,void 0,function*(){let r=yield this.loadGeoJSON(t,n);if(delete this._pendingRequest,"object"!=typeof r)throw new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`);if(c(r,!0),t.filter){let n=e.bC(t.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===n.result)throw new Error(n.value.map(e=>`${e.key}: ${e.message}`).join(", "));r={type:"FeatureCollection",features:r.features.filter(e=>n.value.evaluate({zoom:0},e))}}return r})}loadGeoJSON(t,n){return e._(this,void 0,void 0,function*(){let{promoteId:r}=t;if(t.request){let a=yield e.h(t.request,n);return this._dataUpdateable=pe(a.data,r)?he(a.data,r):void 0,a.data}if("string"==typeof t.data)try{let e=JSON.parse(t.data);return this._dataUpdateable=pe(e,r)?he(e,r):void 0,e}catch{throw new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`)}if(!t.dataDiff)throw new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${t.source}`);return function(e,t,n){var r,a,i,o;if(t.removeAll&&e.clear(),t.remove)for(let n of t.remove)e.delete(n);if(t.add)for(let r of t.add){let t=de(r,n);null!=t&&e.set(t,r)}if(t.update)for(let n of t.update){let t=e.get(n.id);if(null==t)continue;let s=!n.removeAllProperties&&((null===(r=n.removeProperties)||void 0===r?void 0:r.length)>0||(null===(a=n.addOrUpdateProperties)||void 0===a?void 0:a.length)>0);if((n.newGeometry||n.removeAllProperties||s)&&(t=Object.assign({},t),e.set(n.id,t),s&&(t.properties=Object.assign({},t.properties))),n.newGeometry&&(t.geometry=n.newGeometry),n.removeAllProperties)t.properties={};else if((null===(i=n.removeProperties)||void 0===i?void 0:i.length)>0)for(let e of n.removeProperties)Object.prototype.hasOwnProperty.call(t.properties,e)&&delete t.properties[e];if((null===(o=n.addOrUpdateProperties)||void 0===o?void 0:o.length)>0)for(let{key:e,value:r}of n.addOrUpdateProperties)t.properties[e]=r}}(this._dataUpdateable,t.dataDiff,r),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(t){return e._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(e){return this._geoJSONIndex.getClusterExpansionZoom(e.clusterId)}getClusterChildren(e){return this._geoJSONIndex.getChildren(e.clusterId)}getClusterLeaves(e){return this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset)}}class me{constructor(t){this.self=t,this.actor=new e.F(t),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(e,t)=>{if(this.externalWorkerSourceTypes[e])throw new Error(`Worker source with name "${e}" already registered.`);this.externalWorkerSourceTypes[e]=t},this.self.addProtocol=e.bi,this.self.removeProtocol=e.bj,this.self.registerRTLTextPlugin=t=>{if(e.bD.isParsed())throw new Error("RTL text plugin already registered.");e.bD.setMethods(t)},this.actor.registerMessageHandler("LDT",(e,t)=>this._getDEMWorkerSource(e,t.source).loadTile(t)),this.actor.registerMessageHandler("RDT",(t,n)=>e._(this,void 0,void 0,function*(){this._getDEMWorkerSource(t,n.source).removeTile(n)})),this.actor.registerMessageHandler("GCEZ",(t,n)=>e._(this,void 0,void 0,function*(){return this._getWorkerSource(t,n.type,n.source).getClusterExpansionZoom(n)})),this.actor.registerMessageHandler("GCC",(t,n)=>e._(this,void 0,void 0,function*(){return this._getWorkerSource(t,n.type,n.source).getClusterChildren(n)})),this.actor.registerMessageHandler("GCL",(t,n)=>e._(this,void 0,void 0,function*(){return this._getWorkerSource(t,n.type,n.source).getClusterLeaves(n)})),this.actor.registerMessageHandler("LD",(e,t)=>this._getWorkerSource(e,t.type,t.source).loadData(t)),this.actor.registerMessageHandler("GD",(e,t)=>this._getWorkerSource(e,t.type,t.source).getData()),this.actor.registerMessageHandler("LT",(e,t)=>this._getWorkerSource(e,t.type,t.source).loadTile(t)),this.actor.registerMessageHandler("RT",(e,t)=>this._getWorkerSource(e,t.type,t.source).reloadTile(t)),this.actor.registerMessageHandler("AT",(e,t)=>this._getWorkerSource(e,t.type,t.source).abortTile(t)),this.actor.registerMessageHandler("RMT",(e,t)=>this._getWorkerSource(e,t.type,t.source).removeTile(t)),this.actor.registerMessageHandler("RS",(t,n)=>e._(this,void 0,void 0,function*(){if(!this.workerSources[t]||!this.workerSources[t][n.type]||!this.workerSources[t][n.type][n.source])return;let e=this.workerSources[t][n.type][n.source];delete this.workerSources[t][n.type][n.source],void 0!==e.removeSource&&e.removeSource(n)})),this.actor.registerMessageHandler("RM",t=>e._(this,void 0,void 0,function*(){delete this.layerIndexes[t],delete this.availableImages[t],delete this.workerSources[t],delete this.demWorkerSources[t]})),this.actor.registerMessageHandler("SR",(t,n)=>e._(this,void 0,void 0,function*(){this.referrer=n})),this.actor.registerMessageHandler("SRPS",(e,t)=>this._syncRTLPluginState(e,t)),this.actor.registerMessageHandler("IS",(t,n)=>e._(this,void 0,void 0,function*(){this.self.importScripts(n)})),this.actor.registerMessageHandler("SI",(e,t)=>this._setImages(e,t)),this.actor.registerMessageHandler("UL",(t,n)=>e._(this,void 0,void 0,function*(){this._getLayerIndex(t).update(n.layers,n.removedIds)})),this.actor.registerMessageHandler("SL",(t,n)=>e._(this,void 0,void 0,function*(){this._getLayerIndex(t).replace(n)}))}_setImages(t,n){return e._(this,void 0,void 0,function*(){this.availableImages[t]=n;for(let e in this.workerSources[t]){let r=this.workerSources[t][e];for(let e in r)r[e].availableImages=n}})}_syncRTLPluginState(t,n){return e._(this,void 0,void 0,function*(){if(e.bD.isParsed())return e.bD.getState();if("loading"!==n.pluginStatus)return e.bD.setState(n),n;let t=n.pluginURL;if(this.self.importScripts(t),e.bD.isParsed()){let n={pluginStatus:"loaded",pluginURL:t};return e.bD.setState(n),n}throw e.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${t}`)})}_getAvailableImages(e){let t=this.availableImages[e];return t||(t=[]),t}_getLayerIndex(e){let n=this.layerIndexes[e];return n||(n=this.layerIndexes[e]=new t),n}_getWorkerSource(e,t,n){if(this.workerSources[e]||(this.workerSources[e]={}),this.workerSources[e][t]||(this.workerSources[e][t]={}),!this.workerSources[e][t][n]){let r={sendAsync:(t,n)=>(t.targetMapId=e,this.actor.sendAsync(t,n))};switch(t){case"vector":this.workerSources[e][t][n]=new i(r,this._getLayerIndex(e),this._getAvailableImages(e));break;case"geojson":this.workerSources[e][t][n]=new fe(r,this._getLayerIndex(e),this._getAvailableImages(e));break;default:this.workerSources[e][t][n]=new this.externalWorkerSourceTypes[t](r,this._getLayerIndex(e),this._getAvailableImages(e))}}return this.workerSources[e][t][n]}_getDEMWorkerSource(e,t){return this.demWorkerSources[e]||(this.demWorkerSources[e]={}),this.demWorkerSources[e][t]||(this.demWorkerSources[e][t]=new o),this.demWorkerSources[e][t]}}return e.i(self)&&(self.worker=new me(self)),me}),n("index",0,function(e,t){var n="4.7.1";let r,a,i={now:typeof performance<"u"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:e=>new Promise((n,r)=>{let a=requestAnimationFrame(n);e.signal.addEventListener("abort",()=>{cancelAnimationFrame(a),r(t.c())})}),getImageData(e,t=0){return this.getImageCanvasContext(e).getImageData(-t,-t,e.width+2*t,e.height+2*t)},getImageCanvasContext(e){let t=window.document.createElement("canvas"),n=t.getContext("2d",{willReadFrequently:!0});if(!n)throw new Error("failed to create canvas 2d context");return t.width=e.width,t.height=e.height,n.drawImage(e,0,0,e.width,e.height),n},resolveURL:e=>(r||(r=document.createElement("a")),r.href=e,r.href),hardwareConcurrency:typeof navigator<"u"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(null==a&&(a=matchMedia("(prefers-reduced-motion: reduce)")),a.matches)}};class o{static testProp(e){if(!o.docStyle)return e[0];for(let t=0;t<e.length;t++)if(e[t]in o.docStyle)return e[t];return e[0]}static create(e,t,n){let r=window.document.createElement(e);return void 0!==t&&(r.className=t),n&&n.appendChild(r),r}static createNS(e,t){return window.document.createElementNS(e,t)}static disableDrag(){o.docStyle&&o.selectProp&&(o.userSelect=o.docStyle[o.selectProp],o.docStyle[o.selectProp]="none")}static enableDrag(){o.docStyle&&o.selectProp&&(o.docStyle[o.selectProp]=o.userSelect)}static setTransform(e,t){e.style[o.transformProp]=t}static addEventListener(e,t,n,r={}){e.addEventListener(t,n,"passive"in r?r:r.capture)}static removeEventListener(e,t,n,r={}){e.removeEventListener(t,n,"passive"in r?r:r.capture)}static suppressClickInternal(e){e.preventDefault(),e.stopPropagation(),window.removeEventListener("click",o.suppressClickInternal,!0)}static suppressClick(){window.addEventListener("click",o.suppressClickInternal,!0),window.setTimeout(()=>{window.removeEventListener("click",o.suppressClickInternal,!0)},0)}static getScale(e){let t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}static getPoint(e,n,r){let a=n.boundingClientRect;return new t.P((r.clientX-a.left)/n.x-e.clientLeft,(r.clientY-a.top)/n.y-e.clientTop)}static mousePos(e,t){let n=o.getScale(e);return o.getPoint(e,n,t)}static touchPos(e,t){let n=[],r=o.getScale(e);for(let a=0;a<t.length;a++)n.push(o.getPoint(e,r,t[a]));return n}static mouseButton(e){return e.button}static remove(e){e.parentNode&&e.parentNode.removeChild(e)}}o.docStyle=typeof window<"u"&&window.document&&window.document.documentElement.style,o.selectProp=o.testProp(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]),o.transformProp=o.testProp(["transform","WebkitTransform"]);let s,l,c={supported:!1,testSupport:function(e){!u&&l&&(d?p(e):s=e)}},u=!1,d=!1;function p(e){let t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,l),e.isContextLost())return;c.supported=!0}catch{}e.deleteTexture(t),u=!0}var h;typeof document<"u"&&(l=document.createElement("img"),l.onload=()=>{s&&p(s),s=null,d=!0},l.onerror=()=>{u=!0,s=null},l.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(e){let n,r,a,i;e.resetRequestQueue=()=>{n=[],r=0,a=0,i={}},e.addThrottleControl=e=>{let t=a++;return i[t]=e,t},e.removeThrottleControl=e=>{delete i[e],s()},e.getImage=(e,r,a=!0)=>new Promise((i,o)=>{c.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*"),t.e(e,{type:"image"}),n.push({abortController:r,requestParameters:e,supportImageRefresh:a,state:"queued",onError:e=>{o(e)},onSuccess:e=>{i(e)}}),s()});let o=e=>t._(this,void 0,void 0,function*(){e.state="running";let{requestParameters:n,supportImageRefresh:a,onError:i,onSuccess:o,abortController:c}=e,u=!1===a&&!t.i(self)&&!t.g(n.url)&&(!n.headers||Object.keys(n.headers).reduce((e,t)=>e&&"accept"===t,!0));r++;let d=u?l(n,c):t.m(n,c);try{let n=yield d;delete e.abortController,e.state="completed",n.data instanceof HTMLImageElement||t.b(n.data)?o(n):n.data&&o({data:yield(p=n.data,"function"==typeof createImageBitmap?t.d(p):t.f(p)),cacheControl:n.cacheControl,expires:n.expires})}catch(t){delete e.abortController,i(t)}finally{r--,s()}var p}),s=()=>{let e=(()=>{for(let e of Object.keys(i))if(i[e]())return!0;return!1})()?t.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:t.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let t=r;t<e&&n.length>0;t++){let e=n.shift();e.abortController.signal.aborted?t--:o(e)}},l=(e,n)=>new Promise((r,a)=>{let i=new Image,o=e.url,s=e.credentials;s&&"include"===s?i.crossOrigin="use-credentials":(s&&"same-origin"===s||!t.s(o))&&(i.crossOrigin="anonymous"),n.signal.addEventListener("abort",()=>{i.src="",a(t.c())}),i.fetchPriority="high",i.onload=()=>{i.onerror=i.onload=null,r({data:i})},i.onerror=()=>{i.onerror=i.onload=null,n.signal.aborted||a(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},i.src=o})}(h||(h={})),h.resetRequestQueue();class f{constructor(e){this._transformRequestFn=e}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}setTransformRequest(e){this._transformRequestFn=e}}function m(e){var n=new t.A(3);return n[0]=e[0],n[1]=e[1],n[2]=e[2],n}var g,y=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e};g=new t.A(3),t.A!=Float32Array&&(g[0]=0,g[1]=0,g[2]=0);var b,v=function(e){var t=e[0],n=e[1];return t*t+n*n};function M(e){let t=[];if("string"==typeof e)t.push({id:"default",url:e});else if(e&&e.length>0){let n=[];for(let{id:r,url:a}of e){let e=`${r}${a}`;-1===n.indexOf(e)&&(n.push(e),t.push({id:r,url:a}))}}return t}function x(e,t,n){let r=e.split("?");return r[0]+=`${t}${n}`,r.join("?")}b=new t.A(2),t.A!=Float32Array&&(b[0]=0,b[1]=0);class z{constructor(e,t,n,r){this.context=e,this.format=n,this.texture=e.gl.createTexture(),this.update(t,r)}update(e,n,r){let{width:a,height:i}=e,o=!(this.size&&this.size[0]===a&&this.size[1]===i||r),{context:s}=this,{gl:l}=s;if(this.useMipmap=!(!n||!n.useMipmap),l.bindTexture(l.TEXTURE_2D,this.texture),s.pixelStoreUnpackFlipY.set(!1),s.pixelStoreUnpack.set(1),s.pixelStoreUnpackPremultiplyAlpha.set(this.format===l.RGBA&&(!n||!1!==n.premultiply)),o)this.size=[a,i],e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof ImageData||t.b(e)?l.texImage2D(l.TEXTURE_2D,0,this.format,this.format,l.UNSIGNED_BYTE,e):l.texImage2D(l.TEXTURE_2D,0,this.format,a,i,0,this.format,l.UNSIGNED_BYTE,e.data);else{let{x:n,y:o}=r||{x:0,y:0};e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof ImageData||t.b(e)?l.texSubImage2D(l.TEXTURE_2D,0,n,o,l.RGBA,l.UNSIGNED_BYTE,e):l.texSubImage2D(l.TEXTURE_2D,0,n,o,a,i,l.RGBA,l.UNSIGNED_BYTE,e.data)}this.useMipmap&&this.isSizePowerOfTwo()&&l.generateMipmap(l.TEXTURE_2D)}bind(e,t,n){let{context:r}=this,{gl:a}=r;a.bindTexture(a.TEXTURE_2D,this.texture),n!==a.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(n=a.LINEAR),e!==this.filter&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,e),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,n||e),this.filter=e),t!==this.wrap&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,t),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,t),this.wrap=t)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null}}function _(e){let{userImage:t}=e;return!!(t&&t.render&&t.render())&&(e.data.replace(new Uint8Array(t.data.buffer)),!0)}class A extends t.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(e){if(this.loaded!==e&&(this.loaded=e,e)){for(let{ids:e,promiseResolve:t}of this.requestors)t(this._getImagesForIds(e));this.requestors=[]}}getImage(e){let n=this.images[e];if(n&&!n.data&&n.spriteData){let e=n.spriteData;n.data=new t.R({width:e.width,height:e.height},e.context.getImageData(e.x,e.y,e.width,e.height).data),n.spriteData=null}return n}addImage(e,t){if(this.images[e])throw new Error(`Image id ${e} already exist, use updateImage instead`);this._validate(e,t)&&(this.images[e]=t)}_validate(e,n){let r=!0,a=n.data||n.spriteData;return this._validateStretch(n.stretchX,a&&a.width)||(this.fire(new t.j(new Error(`Image "${e}" has invalid "stretchX" value`))),r=!1),this._validateStretch(n.stretchY,a&&a.height)||(this.fire(new t.j(new Error(`Image "${e}" has invalid "stretchY" value`))),r=!1),this._validateContent(n.content,n)||(this.fire(new t.j(new Error(`Image "${e}" has invalid "content" value`))),r=!1),r}_validateStretch(e,t){if(!e)return!0;let n=0;for(let r of e){if(r[0]<n||r[1]<r[0]||t<r[1])return!1;n=r[1]}return!0}_validateContent(e,t){if(!e)return!0;if(4!==e.length)return!1;let n=t.spriteData,r=n&&n.width||t.data.width,a=n&&n.height||t.data.height;return!(e[0]<0||r<e[0]||e[1]<0||a<e[1]||e[2]<0||r<e[2]||e[3]<0||a<e[3]||e[2]<e[0]||e[3]<e[1])}updateImage(e,t,n=!0){let r=this.getImage(e);if(n&&(r.data.width!==t.data.width||r.data.height!==t.data.height))throw new Error(`size mismatch between old image (${r.data.width}x${r.data.height}) and new image (${t.data.width}x${t.data.height}).`);t.version=r.version+1,this.images[e]=t,this.updatedImages[e]=!0}removeImage(e){let t=this.images[e];delete this.images[e],delete this.patterns[e],t.userImage&&t.userImage.onRemove&&t.userImage.onRemove()}listImages(){return Object.keys(this.images)}getImages(e){return new Promise((t,n)=>{let r=!0;if(!this.isLoaded())for(let t of e)this.images[t]||(r=!1);this.isLoaded()||r?t(this._getImagesForIds(e)):this.requestors.push({ids:e,promiseResolve:t})})}_getImagesForIds(e){let n={};for(let r of e){let e=this.getImage(r);e||(this.fire(new t.k("styleimagemissing",{id:r})),e=this.getImage(r)),e?n[r]={data:e.data.clone(),pixelRatio:e.pixelRatio,sdf:e.sdf,version:e.version,stretchX:e.stretchX,stretchY:e.stretchY,content:e.content,textFitWidth:e.textFitWidth,textFitHeight:e.textFitHeight,hasRenderCallback:!(!e.userImage||!e.userImage.render)}:t.w(`Image "${r}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return n}getPixelSize(){let{width:e,height:t}=this.atlasImage;return{width:e,height:t}}getPattern(e){let n=this.patterns[e],r=this.getImage(e);if(!r)return null;if(n&&n.position.version===r.version)return n.position;if(n)n.position.version=r.version;else{let n={w:r.data.width+2,h:r.data.height+2,x:0,y:0},a=new t.I(n,r);this.patterns[e]={bin:n,position:a}}return this._updatePatternAtlas(),this.patterns[e].position}bind(e){let t=e.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new z(e,this.atlasImage,t.RGBA),this.atlasTexture.bind(t.LINEAR,t.CLAMP_TO_EDGE)}_updatePatternAtlas(){let e=[];for(let t in this.patterns)e.push(this.patterns[t].bin);let{w:n,h:r}=t.p(e),a=this.atlasImage;a.resize({width:n||1,height:r||1});for(let e in this.patterns){let{bin:n}=this.patterns[e],r=n.x+1,i=n.y+1,o=this.getImage(e).data,s=o.width,l=o.height;t.R.copy(o,a,{x:0,y:0},{x:r,y:i},{width:s,height:l}),t.R.copy(o,a,{x:0,y:l-1},{x:r,y:i-1},{width:s,height:1}),t.R.copy(o,a,{x:0,y:0},{x:r,y:i+l},{width:s,height:1}),t.R.copy(o,a,{x:s-1,y:0},{x:r-1,y:i},{width:1,height:l}),t.R.copy(o,a,{x:0,y:0},{x:r+s,y:i},{width:1,height:l})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(e){for(let n of e){if(this.callbackDispatchedThisFrame[n])continue;this.callbackDispatchedThisFrame[n]=!0;let e=this.getImage(n);e||t.w(`Image with ID: "${n}" was not found`),_(e)&&this.updateImage(n,e)}}}let O,w=1e20;function k(e,t,n,r,a,i,o,s,l){for(let c=t;c<t+r;c++)T(e,n*i+c,i,a,o,s,l);for(let c=n;c<n+a;c++)T(e,c*i+t,1,r,o,s,l)}function T(e,t,n,r,a,i,o){i[0]=0,o[0]=-w,o[1]=w,a[0]=e[t];for(let s=1,l=0,c=0;s<r;s++){a[s]=e[t+s*n];let r=s*s;do{let e=i[l];c=(a[s]-a[e]+r-e*e)/(s-e)/2}while(c<=o[l]&&--l>-1);l++,i[l]=s,o[l]=c,o[l+1]=w}for(let s=0,l=0;s<r;s++){for(;o[l+1]<s;)l++;let r=i[l],c=s-r;e[t+s*n]=a[r]+c*c}}class S{constructor(e,t){this.requestManager=e,this.localIdeographFontFamily=t,this.entries={}}setURL(e){this.url=e}getGlyphs(e){return t._(this,void 0,void 0,function*(){let t=[];for(let n in e)for(let r of e[n])t.push(this._getAndCacheGlyphsPromise(n,r));let n=yield Promise.all(t),r={};for(let{stack:e,id:t,glyph:a}of n)r[e]||(r[e]={}),r[e][t]=a&&{id:a.id,bitmap:a.bitmap.clone(),metrics:a.metrics};return r})}_getAndCacheGlyphsPromise(e,n){return t._(this,void 0,void 0,function*(){let t=this.entries[e];t||(t=this.entries[e]={glyphs:{},requests:{},ranges:{}});let r=t.glyphs[n];if(void 0!==r)return{stack:e,id:n,glyph:r};if(r=this._tinySDF(t,e,n),r)return t.glyphs[n]=r,{stack:e,id:n,glyph:r};let a=Math.floor(n/256);if(256*a>65535)throw new Error("glyphs > 65535 not supported");if(t.ranges[a])return{stack:e,id:n,glyph:r};if(!this.url)throw new Error("glyphsUrl is not set");if(!t.requests[a]){let n=S.loadGlyphRange(e,a,this.url,this.requestManager);t.requests[a]=n}let i=yield t.requests[a];for(let e in i)this._doesCharSupportLocalGlyph(+e)||(t.glyphs[+e]=i[+e]);return t.ranges[a]=!0,{stack:e,id:n,glyph:i[n]||null}})}_doesCharSupportLocalGlyph(e){return!!this.localIdeographFontFamily&&/\p{Ideo}|\p{sc=Hang}|\p{sc=Hira}|\p{sc=Kana}/u.test(String.fromCodePoint(e))}_tinySDF(e,n,r){let a=this.localIdeographFontFamily;if(!a||!this._doesCharSupportLocalGlyph(r))return;let i=e.tinySDF;if(!i){let t="400";/bold/i.test(n)?t="900":/medium/i.test(n)?t="500":/light/i.test(n)&&(t="200"),i=e.tinySDF=new S.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:a,fontWeight:t})}let o=i.draw(String.fromCharCode(r));return{id:r,bitmap:new t.o({width:o.width||60,height:o.height||60},o.data),metrics:{width:o.glyphWidth/2||24,height:o.glyphHeight/2||24,left:o.glyphLeft/2+.5||0,top:o.glyphTop/2-27.5||-8,advance:o.glyphAdvance/2||24,isDoubleResolution:!0}}}}S.loadGlyphRange=function(e,n,r,a){return t._(this,void 0,void 0,function*(){let i=256*n,o=i+255,s=a.transformRequest(r.replace("{fontstack}",e).replace("{range}",`${i}-${o}`),"Glyphs"),l=yield t.l(s,new AbortController);if(!l||!l.data)throw new Error(`Could not load glyph range. range: ${n}, ${i}-${o}`);let c={};for(let e of t.n(l.data))c[e.id]=e;return c})},S.TinySDF=class{constructor({fontSize:e=24,buffer:t=3,radius:n=8,cutoff:r=.25,fontFamily:a="sans-serif",fontWeight:i="normal",fontStyle:o="normal"}={}){this.buffer=t,this.cutoff=r,this.radius=n;let s=this.size=e+4*t,l=this._createCanvas(s),c=this.ctx=l.getContext("2d",{willReadFrequently:!0});c.font=`${o} ${i} ${e}px ${a}`,c.textBaseline="alphabetic",c.textAlign="left",c.fillStyle="black",this.gridOuter=new Float64Array(s*s),this.gridInner=new Float64Array(s*s),this.f=new Float64Array(s),this.z=new Float64Array(s+1),this.v=new Uint16Array(s)}_createCanvas(e){let t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){let{width:t,actualBoundingBoxAscent:n,actualBoundingBoxDescent:r,actualBoundingBoxLeft:a,actualBoundingBoxRight:i}=this.ctx.measureText(e),o=Math.ceil(n),s=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(i-a))),l=Math.min(this.size-this.buffer,o+Math.ceil(r)),c=s+2*this.buffer,u=l+2*this.buffer,d=Math.max(c*u,0),p=new Uint8ClampedArray(d),h={data:p,width:c,height:u,glyphWidth:s,glyphHeight:l,glyphTop:o,glyphLeft:0,glyphAdvance:t};if(0===s||0===l)return h;let{ctx:f,buffer:m,gridInner:g,gridOuter:y}=this;f.clearRect(m,m,s,l),f.fillText(e,m,m+o);let b=f.getImageData(m,m,s,l);y.fill(w,0,d),g.fill(0,0,d);for(let e=0;e<l;e++)for(let t=0;t<s;t++){let n=b.data[4*(e*s+t)+3]/255;if(0===n)continue;let r=(e+m)*c+t+m;if(1===n)y[r]=0,g[r]=w;else{let e=.5-n;y[r]=e>0?e*e:0,g[r]=e<0?e*e:0}}k(y,0,0,c,u,c,this.f,this.v,this.z),k(g,m,m,s,l,c,this.f,this.v,this.z);for(let e=0;e<d;e++){let t=Math.sqrt(y[e])-Math.sqrt(g[e]);p[e]=Math.round(255-255*(t/this.radius+this.cutoff))}return h}};class C{constructor(){this.specification=t.v.light.position}possiblyEvaluate(e,n){return t.x(e.expression.evaluate(n))}interpolate(e,n,r){return{x:t.y.number(e.x,n.x,r),y:t.y.number(e.y,n.y,r),z:t.y.number(e.z,n.z,r)}}}class E extends t.E{constructor(e){super(),O=O||new t.q({anchor:new t.D(t.v.light.anchor),position:new C,color:new t.D(t.v.light.color),intensity:new t.D(t.v.light.intensity)}),this._transitionable=new t.T(O),this.setLight(e),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(e,n={}){if(!this._validate(t.r,e,n))for(let t in e){let n=e[t];t.endsWith("-transition")?this._transitionable.setTransition(t.slice(0,-11),n):this._transitionable.setValue(t,n)}}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(e,n,r){return(!r||!1!==r.validate)&&t.t(this,e.call(t.u,{value:n,style:{glyphs:!0,sprite:!0},styleSpec:t.v}))}}let q=new t.q({"sky-color":new t.D(t.v.sky["sky-color"]),"horizon-color":new t.D(t.v.sky["horizon-color"]),"fog-color":new t.D(t.v.sky["fog-color"]),"fog-ground-blend":new t.D(t.v.sky["fog-ground-blend"]),"horizon-fog-blend":new t.D(t.v.sky["horizon-fog-blend"]),"sky-horizon-blend":new t.D(t.v.sky["sky-horizon-blend"]),"atmosphere-blend":new t.D(t.v.sky["atmosphere-blend"])});class D extends t.E{constructor(e){super(),this._transitionable=new t.T(q),this.setSky(e),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new t.z(0))}setSky(e,n={}){if(!this._validate(t.B,e,n)){e||(e={"sky-color":"transparent","horizon-color":"transparent","fog-color":"transparent","fog-ground-blend":1,"atmosphere-blend":0});for(let t in e){let n=e[t];t.endsWith("-transition")?this._transitionable.setTransition(t.slice(0,-11),n):this._transitionable.setValue(t,n)}}}getSky(){return this._transitionable.serialize()}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(e,n,r={}){return!1!==r?.validate&&t.t(this,e.call(t.u,t.e({value:n,style:{glyphs:!0,sprite:!0},styleSpec:t.v})))}calculateFogBlendOpacity(e){return e<60?0:e<70?(e-60)/10:1}}class R{constructor(e,t){this.width=e,this.height=t,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(e,t){let n=e.join(",")+String(t);return this.dashEntry[n]||(this.dashEntry[n]=this.addDash(e,t)),this.dashEntry[n]}getDashRanges(e,t,n){let r=[],a=e.length%2==1?-e[e.length-1]*n:0,i=e[0]*n,o=!0;r.push({left:a,right:i,isDash:o,zeroLength:0===e[0]});let s=e[0];for(let t=1;t<e.length;t++){o=!o;let l=e[t];a=s*n,s+=l,i=s*n,r.push({left:a,right:i,isDash:o,zeroLength:0===l})}return r}addRoundDash(e,t,n){let r=t/2;for(let t=-n;t<=n;t++){let a=this.width*(this.nextRow+n+t),i=0,o=e[i];for(let s=0;s<this.width;s++){s/o.right>1&&(o=e[++i]);let l,c=Math.abs(s-o.left),u=Math.abs(s-o.right),d=Math.min(c,u),p=t/n*(r+1);if(o.isDash){let e=r-Math.abs(p);l=Math.sqrt(d*d+e*e)}else l=r-Math.sqrt(d*d+p*p);this.data[a+s]=Math.max(0,Math.min(255,l+128))}}}addRegularDash(e){for(let t=e.length-1;t>=0;--t){let n=e[t],r=e[t+1];n.zeroLength?e.splice(t,1):r&&r.isDash===n.isDash&&(r.left=n.left,e.splice(t,1))}let t=e[0],n=e[e.length-1];t.isDash===n.isDash&&(t.left=n.left-this.width,n.right=t.right+this.width);let r=this.width*this.nextRow,a=0,i=e[a];for(let t=0;t<this.width;t++){t/i.right>1&&(i=e[++a]);let n=Math.abs(t-i.left),o=Math.abs(t-i.right),s=Math.min(n,o);this.data[r+t]=Math.max(0,Math.min(255,(i.isDash?s:-s)+128))}}addDash(e,n){let r=n?7:0,a=2*r+1;if(this.nextRow+a>this.height)return t.w("LineAtlas out of space"),null;let i=0;for(let t=0;t<e.length;t++)i+=e[t];if(0!==i){let t=this.width/i,a=this.getDashRanges(e,this.width,t);n?this.addRoundDash(a,t,r):this.addRegularDash(a)}let o={y:(this.nextRow+r+.5)/this.height,height:2*r/this.height,width:i};return this.nextRow+=a,this.dirty=!0,o}bind(e){let t=e.gl;this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.ALPHA,t.UNSIGNED_BYTE,this.data))):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,this.width,this.height,0,t.ALPHA,t.UNSIGNED_BYTE,this.data))}}let L="maplibre_preloaded_worker_pool";class I{constructor(){this.active={}}acquire(e){if(!this.workers)for(this.workers=[];this.workers.length<I.workerCount;)this.workers.push(new Worker(t.a.WORKER_URL));return this.active[e]=!0,this.workers.slice()}release(e){delete this.active[e],0===this.numActive()&&(this.workers.forEach(e=>{e.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[L]}numActive(){return Object.keys(this.active).length}}let W,N,P=Math.floor(i.hardwareConcurrency/2);function B(){return W||(W=new I),W}I.workerCount=t.C(globalThis)?Math.max(Math.min(P,3),1):1;class F{constructor(e,n){this.workerPool=e,this.actors=[],this.currentActor=0,this.id=n;let r=this.workerPool.acquire(n);for(let e=0;e<r.length;e++){let a=new t.F(r[e],n);a.name=`Worker ${e}`,this.actors.push(a)}if(!this.actors.length)throw new Error("No actors found")}broadcast(e,t){let n=[];for(let r of this.actors)n.push(r.sendAsync({type:e,data:t}));return Promise.all(n)}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(e=!0){this.actors.forEach(e=>{e.remove()}),this.actors=[],e&&this.workerPool.release(this.id)}registerMessageHandler(e,t){for(let n of this.actors)n.registerMessageHandler(e,t)}}function j(){return N||(N=new F(B(),t.G),N.registerMessageHandler("GR",(e,n,r)=>t.m(n,r))),N}function U(e,n){let r=t.H();return t.J(r,r,[1,1,0]),t.K(r,r,[.5*e.width,.5*e.height,1]),t.L(r,r,e.calculatePosMatrix(n.toUnwrapped()))}function V(e,t,n,r,a,i){let o=function(e,t,n){if(e)for(let r of e){let e=t[r];if(e&&e.source===n&&"fill-extrusion"===e.type)return!0}else for(let e in t){let r=t[e];if(r.source===n&&"fill-extrusion"===r.type)return!0}return!1}(a&&a.layers,t,e.id),s=i.maxPitchScaleFactor(),l=e.tilesIn(r,s,o);l.sort(H);let c=[];for(let r of l)c.push({wrappedTileID:r.tileID.wrapped().key,queryResults:r.tile.queryRenderedFeatures(t,n,e._state,r.queryGeometry,r.cameraQueryGeometry,r.scale,a,i,s,U(e.transform,r.tileID))});let u=function(e){let t={},n={};for(let r of e){let e=r.queryResults,a=r.wrappedTileID,i=n[a]=n[a]||{};for(let n in e){let r=e[n],a=i[n]=i[n]||{},o=t[n]=t[n]||[];for(let e of r)a[e.featureIndex]||(a[e.featureIndex]=!0,o.push(e))}}return t}(c);for(let t in u)u[t].forEach(t=>{let n=t.feature,r=e.getFeatureState(n.layer["source-layer"],n.id);n.source=n.layer.source,n.layer["source-layer"]&&(n.sourceLayer=n.layer["source-layer"]),n.state=r});return u}function H(e,t){let n=e.tileID,r=t.tileID;return n.overscaledZ-r.overscaledZ||n.canonical.y-r.canonical.y||n.wrap-r.wrap||n.canonical.x-r.canonical.x}function X(e,n,r){return t._(this,void 0,void 0,function*(){let a=e;if(e.url?a=(yield t.h(n.transformRequest(e.url,"Source"),r)).data:yield i.frameAsync(r),!a)return null;let o=t.M(t.e(a,e),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in a&&a.vector_layers&&(o.vectorLayerIds=a.vector_layers.map(e=>e.id)),o})}class G{constructor(e,t){e&&(t?this.setSouthWest(e).setNorthEast(t):Array.isArray(e)&&(4===e.length?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1])))}setNorthEast(e){return this._ne=e instanceof t.N?new t.N(e.lng,e.lat):t.N.convert(e),this}setSouthWest(e){return this._sw=e instanceof t.N?new t.N(e.lng,e.lat):t.N.convert(e),this}extend(e){let n,r,a=this._sw,i=this._ne;if(e instanceof t.N)n=e,r=e;else{if(!(e instanceof G))return Array.isArray(e)?4===e.length||e.every(Array.isArray)?this.extend(G.convert(e)):this.extend(t.N.convert(e)):e&&("lng"in e||"lon"in e)&&"lat"in e?this.extend(t.N.convert(e)):this;if(n=e._sw,r=e._ne,!n||!r)return this}return a||i?(a.lng=Math.min(n.lng,a.lng),a.lat=Math.min(n.lat,a.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new t.N(n.lng,n.lat),this._ne=new t.N(r.lng,r.lat)),this}getCenter(){return new t.N((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new t.N(this.getWest(),this.getNorth())}getSouthEast(){return new t.N(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(e){let{lng:n,lat:r}=t.N.convert(e),a=this._sw.lng<=n&&n<=this._ne.lng;return this._sw.lng>this._ne.lng&&(a=this._sw.lng>=n&&n>=this._ne.lng),this._sw.lat<=r&&r<=this._ne.lat&&a}static convert(e){return e instanceof G?e:e&&new G(e)}static fromLngLat(e,n=0){let r=360*n/40075017,a=r/Math.cos(Math.PI/180*e.lat);return new G(new t.N(e.lng-a,e.lat-r),new t.N(e.lng+a,e.lat+r))}adjustAntiMeridian(){let e=new t.N(this._sw.lng,this._sw.lat),n=new t.N(this._ne.lng,this._ne.lat);return new G(e,e.lng>n.lng?new t.N(n.lng+360,n.lat):n)}}class Y{constructor(e,t,n){this.bounds=G.convert(this.validateBounds(e)),this.minzoom=t||0,this.maxzoom=n||24}validateBounds(e){return Array.isArray(e)&&4===e.length?[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]:[-180,-90,180,90]}contains(e){let n=Math.pow(2,e.z),r=Math.floor(t.O(this.bounds.getWest())*n),a=Math.floor(t.Q(this.bounds.getNorth())*n),i=Math.ceil(t.O(this.bounds.getEast())*n),o=Math.ceil(t.Q(this.bounds.getSouth())*n);return e.x>=r&&e.x<i&&e.y>=a&&e.y<o}}class Z extends t.E{constructor(e,n,r,a){if(super(),this.id=e,this.dispatcher=r,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.e(this,t.M(n,["url","scheme","tileSize","promoteId"])),this._options=t.e({type:"vector"},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(a)}load(){return t._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new t.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{let e=yield X(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,this.map.style.sourceCaches[this.id].clearTiles(),e&&(t.e(this,e),e.bounds&&(this.tileBounds=new Y(e.bounds,this.minzoom,this.maxzoom)),this.fire(new t.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new t.k("data",{dataType:"source",sourceDataType:"content"})))}catch(e){this._tileJSONRequest=null,this.fire(new t.j(e))}})}loaded(){return this._loaded}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}onAdd(e){this.map=e,this.load()}setSourceProperty(e){this._tileJSONRequest&&this._tileJSONRequest.abort(),e(),this.load()}setTiles(e){return this.setSourceProperty(()=>{this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return t.e({},this._options)}loadTile(e){return t._(this,void 0,void 0,function*(){let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),n={request:this.map._requestManager.transformRequest(t,"Tile"),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};n.request.collectResourceTiming=this._collectResourceTiming;let r="RT";if(e.actor&&"expired"!==e.state){if("loading"===e.state)return new Promise((t,n)=>{e.reloadPromise={resolve:t,reject:n}})}else e.actor=this.dispatcher.getActor(),r="LT";e.abortController=new AbortController;try{let t=yield e.actor.sendAsync({type:r,data:n},e.abortController);if(delete e.abortController,e.aborted)return;this._afterTileLoadWorkerResponse(e,t)}catch(t){if(delete e.abortController,e.aborted)return;if(t&&404!==t.status)throw t;this._afterTileLoadWorkerResponse(e,null)}})}_afterTileLoadWorkerResponse(e,t){if(t&&t.resourceTiming&&(e.resourceTiming=t.resourceTiming),t&&this.map._refreshExpiredTiles&&e.setExpiryData(t),e.loadVectorData(t,this.map.painter),e.reloadPromise){let t=e.reloadPromise;e.reloadPromise=null,this.loadTile(e).then(t.resolve).catch(t.reject)}}abortTile(e){return t._(this,void 0,void 0,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController),e.actor&&(yield e.actor.sendAsync({type:"AT",data:{uid:e.uid,type:this.type,source:this.id}}))})}unloadTile(e){return t._(this,void 0,void 0,function*(){e.unloadVectorData(),e.actor&&(yield e.actor.sendAsync({type:"RMT",data:{uid:e.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}}class $ extends t.E{constructor(e,n,r,a){super(),this.id=e,this.dispatcher=r,this.setEventedParent(a),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=t.e({type:"raster"},n),t.e(this,t.M(n,["url","scheme","tileSize"]))}load(){return t._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new t.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{let e=yield X(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,e&&(t.e(this,e),e.bounds&&(this.tileBounds=new Y(e.bounds,this.minzoom,this.maxzoom)),this.fire(new t.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new t.k("data",{dataType:"source",sourceDataType:"content"})))}catch(e){this._tileJSONRequest=null,this.fire(new t.j(e))}})}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(e){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),e(),this.load()}setTiles(e){return this.setSourceProperty(()=>{this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}serialize(){return t.e({},this._options)}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(e){return t._(this,void 0,void 0,function*(){let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);e.abortController=new AbortController;try{let n=yield h.getImage(this.map._requestManager.transformRequest(t,"Tile"),e.abortController,this.map._refreshExpiredTiles);if(delete e.abortController,e.aborted)return void(e.state="unloaded");if(n&&n.data){this.map._refreshExpiredTiles&&n.cacheControl&&n.expires&&e.setExpiryData({cacheControl:n.cacheControl,expires:n.expires});let t=this.map.painter.context,r=t.gl,a=n.data;e.texture=this.map.painter.getTileTexture(a.width),e.texture?e.texture.update(a,{useMipmap:!0}):(e.texture=new z(t,a,r.RGBA,{useMipmap:!0}),e.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE,r.LINEAR_MIPMAP_NEAREST)),e.state="loaded"}}catch(t){if(delete e.abortController,e.aborted)e.state="unloaded";else if(t)throw e.state="errored",t}})}abortTile(e){return t._(this,void 0,void 0,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController)})}unloadTile(e){return t._(this,void 0,void 0,function*(){e.texture&&this.map.painter.saveTileTexture(e.texture)})}hasTransition(){return!1}}class J extends ${constructor(e,n,r,a){super(e,n,r,a),this.type="raster-dem",this.maxzoom=22,this._options=t.e({type:"raster-dem"},n),this.encoding=n.encoding||"mapbox",this.redFactor=n.redFactor,this.greenFactor=n.greenFactor,this.blueFactor=n.blueFactor,this.baseShift=n.baseShift}loadTile(e){return t._(this,void 0,void 0,function*(){let n=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),r=this.map._requestManager.transformRequest(n,"Tile");e.neighboringTiles=this._getNeighboringTiles(e.tileID),e.abortController=new AbortController;try{let n=yield h.getImage(r,e.abortController,this.map._refreshExpiredTiles);if(delete e.abortController,e.aborted)return void(e.state="unloaded");if(n&&n.data){let r=n.data;this.map._refreshExpiredTiles&&n.cacheControl&&n.expires&&e.setExpiryData({cacheControl:n.cacheControl,expires:n.expires});let a=t.b(r)&&t.U()?r:yield this.readImageNow(r),i={type:this.type,uid:e.uid,source:this.id,rawImageData:a,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!e.actor||"expired"===e.state){e.actor=this.dispatcher.getActor();let t=yield e.actor.sendAsync({type:"LDT",data:i});e.dem=t,e.needsHillshadePrepare=!0,e.needsTerrainPrepare=!0,e.state="loaded"}}}catch(t){if(delete e.abortController,e.aborted)e.state="unloaded";else if(t)throw e.state="errored",t}})}readImageNow(e){return t._(this,void 0,void 0,function*(){if(typeof VideoFrame<"u"&&t.V()){let n=e.width+2,r=e.height+2;try{return new t.R({width:n,height:r},yield t.W(e,-1,-1,n,r))}catch{}}return i.getImageData(e,1)})}_getNeighboringTiles(e){let n=e.canonical,r=Math.pow(2,n.z),a=(n.x-1+r)%r,i=0===n.x?e.wrap-1:e.wrap,o=(n.x+1+r)%r,s=n.x+1===r?e.wrap+1:e.wrap,l={};return l[new t.S(e.overscaledZ,i,n.z,a,n.y).key]={backfilled:!1},l[new t.S(e.overscaledZ,s,n.z,o,n.y).key]={backfilled:!1},n.y>0&&(l[new t.S(e.overscaledZ,i,n.z,a,n.y-1).key]={backfilled:!1},l[new t.S(e.overscaledZ,e.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},l[new t.S(e.overscaledZ,s,n.z,o,n.y-1).key]={backfilled:!1}),n.y+1<r&&(l[new t.S(e.overscaledZ,i,n.z,a,n.y+1).key]={backfilled:!1},l[new t.S(e.overscaledZ,e.wrap,n.z,n.x,n.y+1).key]={backfilled:!1},l[new t.S(e.overscaledZ,s,n.z,o,n.y+1).key]={backfilled:!1}),l}unloadTile(e){return t._(this,void 0,void 0,function*(){e.demTexture&&this.map.painter.saveTileTexture(e.demTexture),e.fbo&&(e.fbo.destroy(),delete e.fbo),e.dem&&delete e.dem,delete e.neighboringTiles,e.state="unloaded",e.actor&&(yield e.actor.sendAsync({type:"RDT",data:{type:this.type,uid:e.uid,source:this.id}}))})}}class Q extends t.E{constructor(e,n,r,a){super(),this.id=e,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._pendingLoads=0,this.actor=r.getActor(),this.setEventedParent(a),this._data=n.data,this._options=t.e({},n),this._collectResourceTiming=n.collectResourceTiming,void 0!==n.maxzoom&&(this.maxzoom=n.maxzoom),n.type&&(this.type=n.type),n.attribution&&(this.attribution=n.attribution),this.promoteId=n.promoteId;let i=t.X/this.tileSize;void 0!==n.clusterMaxZoom&&this.maxzoom<=n.clusterMaxZoom&&t.w(`The maxzoom value "${this.maxzoom}" is expected to be greater than the clusterMaxZoom value "${n.clusterMaxZoom}".`),this.workerOptions=t.e({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*i,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*i,extent:t.X,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?n.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,n.clusterMinPoints||2),extent:t.X,radius:(n.clusterRadius||50)*i,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties,filter:n.filter},n.workerOptions),"string"==typeof this.promoteId&&(this.workerOptions.promoteId=this.promoteId)}load(){return t._(this,void 0,void 0,function*(){yield this._updateWorkerData()})}onAdd(e){this.map=e,this.load()}setData(e){return this._data=e,this._updateWorkerData(),this}updateData(e){return this._updateWorkerData(e),this}getData(){return t._(this,void 0,void 0,function*(){let e=t.e({type:this.type},this.workerOptions);return this.actor.sendAsync({type:"GD",data:e})})}setClusterOptions(e){return this.workerOptions.cluster=e.cluster,e&&(void 0!==e.clusterRadius&&(this.workerOptions.superclusterOptions.radius=e.clusterRadius),void 0!==e.clusterMaxZoom&&(this.workerOptions.superclusterOptions.maxZoom=e.clusterMaxZoom)),this._updateWorkerData(),this}getClusterExpansionZoom(e){return this.actor.sendAsync({type:"GCEZ",data:{type:this.type,clusterId:e,source:this.id}})}getClusterChildren(e){return this.actor.sendAsync({type:"GCC",data:{type:this.type,clusterId:e,source:this.id}})}getClusterLeaves(e,t,n){return this.actor.sendAsync({type:"GCL",data:{type:this.type,source:this.id,clusterId:e,limit:t,offset:n}})}_updateWorkerData(e){return t._(this,void 0,void 0,function*(){let n=t.e({type:this.type},this.workerOptions);e?n.dataDiff=e:"string"==typeof this._data?(n.request=this.map._requestManager.transformRequest(i.resolveURL(this._data),"Source"),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(this._data),this._pendingLoads++,this.fire(new t.k("dataloading",{dataType:"source"}));try{let e=yield this.actor.sendAsync({type:"LD",data:n});if(this._pendingLoads--,this._removed||e.abandoned)return void this.fire(new t.k("dataabort",{dataType:"source"}));let r=null;e.resourceTiming&&e.resourceTiming[this.id]&&(r=e.resourceTiming[this.id].slice(0));let a={dataType:"source"};this._collectResourceTiming&&r&&r.length>0&&t.e(a,{resourceTiming:r}),this.fire(new t.k("data",Object.assign(Object.assign({},a),{sourceDataType:"metadata"}))),this.fire(new t.k("data",Object.assign(Object.assign({},a),{sourceDataType:"content"})))}catch(e){if(this._pendingLoads--,this._removed)return void this.fire(new t.k("dataabort",{dataType:"source"}));this.fire(new t.j(e))}})}loaded(){return 0===this._pendingLoads}loadTile(e){return t._(this,void 0,void 0,function*(){let t=e.actor?"RT":"LT";e.actor=this.actor;let n={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};e.abortController=new AbortController;let r=yield this.actor.sendAsync({type:t,data:n},e.abortController);delete e.abortController,e.unloadVectorData(),e.aborted||e.loadVectorData(r,this.map.painter,"RT"===t)})}abortTile(e){return t._(this,void 0,void 0,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController),e.aborted=!0})}unloadTile(e){return t._(this,void 0,void 0,function*(){e.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:e.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return t.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var K=t.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class ee extends t.E{constructor(e,t,n,r){super(),this.id=e,this.dispatcher=n,this.coordinates=t.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(r),this.options=t}load(e){return t._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new t.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{let t=yield h.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,t&&t.data&&(this.image=t.data,e&&(this.coordinates=e),this._finishLoading())}catch(e){this._request=null,this._loaded=!0,this.fire(new t.j(e))}})}loaded(){return this._loaded}updateImage(e){return e.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=e.url,this.load(e.coordinates).finally(()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(e){this.coordinates=e;let n=e.map(t.Z.fromLngLat);this.tileID=function(e){let n=1/0,r=1/0,a=-1/0,i=-1/0;for(let t of e)n=Math.min(n,t.x),r=Math.min(r,t.y),a=Math.max(a,t.x),i=Math.max(i,t.y);let o=Math.max(a-n,i-r),s=Math.max(0,Math.floor(-Math.log(o)/Math.LN2)),l=Math.pow(2,s);return new t.a1(s,Math.floor((n+a)/2*l),Math.floor((r+i)/2*l))}(n),this.minzoom=this.maxzoom=this.tileID.z;let r=n.map(e=>this.tileID.getTilePoint(e)._round());return this._boundsArray=new t.$,this._boundsArray.emplaceBack(r[0].x,r[0].y,0,0),this._boundsArray.emplaceBack(r[1].x,r[1].y,t.X,0),this._boundsArray.emplaceBack(r[3].x,r[3].y,0,t.X),this._boundsArray.emplaceBack(r[2].x,r[2].y,t.X,t.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;let e=this.map.painter.context,n=e.gl;this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,K.members)),this.boundsSegments||(this.boundsSegments=t.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new z(e,this.image,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE));let r=!1;for(let e in this.tiles){let t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture,r=!0)}r&&this.fire(new t.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(e){return t._(this,void 0,void 0,function*(){this.tileID&&this.tileID.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={}):e.state="errored"})}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class te extends ee{constructor(e,t,n,r){super(e,t,n,r),this.roundZoom=!0,this.type="video",this.options=t}load(){return t._(this,void 0,void 0,function*(){this._loaded=!1;let e=this.options;this.urls=[];for(let t of e.urls)this.urls.push(this.map._requestManager.transformRequest(t,"Source").url);try{let e=yield t.a3(this.urls);if(this._loaded=!0,!e)return;this.video=e,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading()}catch(e){this.fire(new t.j(e))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(e){if(this.video){let n=this.video.seekable;e<n.start(0)||e>n.end(0)?this.fire(new t.j(new t.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${n.start(0)} and ${n.end(0)}-second mark.`))):this.video.currentTime=e}}getVideo(){return this.video}onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;let e=this.map.painter.context,n=e.gl;this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,K.members)),this.boundsSegments||(this.boundsSegments=t.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new z(e,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE));let r=!1;for(let e in this.tiles){let t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture,r=!0)}r&&this.fire(new t.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class ne extends ee{constructor(e,n,r,a){super(e,n,r,a),n.coordinates?Array.isArray(n.coordinates)&&4===n.coordinates.length&&!n.coordinates.some(e=>!Array.isArray(e)||2!==e.length||e.some(e=>"number"!=typeof e))||this.fire(new t.j(new t.a2(`sources.${e}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.j(new t.a2(`sources.${e}`,null,'missing required property "coordinates"'))),n.animate&&"boolean"!=typeof n.animate&&this.fire(new t.j(new t.a2(`sources.${e}`,null,'optional "animate" property must be a boolean value'))),n.canvas?"string"==typeof n.canvas||n.canvas instanceof HTMLCanvasElement||this.fire(new t.j(new t.a2(`sources.${e}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.j(new t.a2(`sources.${e}`,null,'missing required property "canvas"'))),this.options=n,this.animate=void 0===n.animate||n.animate}load(){return t._(this,void 0,void 0,function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())})}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),this._hasInvalidDimensions()||0===Object.keys(this.tiles).length)return;let n=this.map.painter.context,r=n.gl;this.boundsBuffer||(this.boundsBuffer=n.createVertexBuffer(this._boundsArray,K.members)),this.boundsSegments||(this.boundsSegments=t.a0.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new z(n,this.canvas,r.RGBA,{premultiply:!0});let a=!1;for(let e in this.tiles){let t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture,a=!0)}a&&this.fire(new t.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}}let re={},ae=e=>{switch(e){case"geojson":return Q;case"image":return ee;case"raster":return $;case"raster-dem":return J;case"vector":return Z;case"video":return te;case"canvas":return ne}return re[e]},ie="RTLPluginLoaded";class oe extends t.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=j()}_syncState(e){return this.status=e,this.dispatcher.broadcast("SRPS",{pluginStatus:e,pluginURL:this.url}).catch(e=>{throw this.status="error",e})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(e){return t._(this,arguments,void 0,function*(e,t=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=i.resolveURL(e),!this.url)throw new Error(`requested url ${e} is invalid`);if("unavailable"===this.status){if(!t)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if("requested"===this.status)return this._requestImport()})}_requestImport(){return t._(this,void 0,void 0,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new t.k(ie))})}lazyLoad(){"unavailable"===this.status?this.status="requested":"deferred"===this.status&&this._requestImport()}}let se=null;function le(){return se||(se=new oe),se}class ce{constructor(e,n){this.timeAdded=0,this.fadeEndTime=0,this.tileID=e,this.uid=t.a4(),this.uses=0,this.tileSize=n,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(e){let t=e+this.timeAdded;t<this.fadeEndTime||(this.fadeEndTime=t)}wasRequested(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state}clearTextures(e){this.demTexture&&e.saveTileTexture(this.demTexture),this.demTexture=null}loadVectorData(e,n,r){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",e){e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestFeatureIndex.rawTileData=e.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=function(e,t){let n={};if(!t)return n;for(let r of e){let e=r.layerIds.map(e=>t.getLayer(e)).filter(Boolean);if(0!==e.length){r.layers=e,r.stateDependentLayerIds&&(r.stateDependentLayers=r.stateDependentLayerIds.map(t=>e.filter(e=>e.id===t)[0]));for(let t of e)n[t.id]=r}}return n}(e.buckets,n.style),this.hasSymbolBuckets=!1;for(let e in this.buckets){let n=this.buckets[e];if(n instanceof t.a6){if(this.hasSymbolBuckets=!0,!r)break;n.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let e in this.buckets){let n=this.buckets[e];if(n instanceof t.a6&&n.hasRTLText){this.hasRTLText=!0,le().lazyLoad();break}}this.queryPadding=0;for(let e in this.buckets){let t=this.buckets[e];this.queryPadding=Math.max(this.queryPadding,n.style.getLayer(e).queryRadius(t))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage)}else this.collisionBoxArray=new t.a5}unloadVectorData(){for(let e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(e){return this.buckets[e.id]}upload(e){for(let t in this.buckets){let n=this.buckets[t];n.uploadPending()&&n.upload(e)}let t=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new z(e,this.imageAtlas.image,t.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new z(e,this.glyphAtlasImage,t.ALPHA),this.glyphAtlasImage=null)}prepare(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)}queryRenderedFeatures(e,t,n,r,a,i,o,s,l,c){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:r,cameraQueryGeometry:a,scale:i,tileSize:this.tileSize,pixelPosMatrix:c,transform:s,params:o,queryPadding:this.queryPadding*l},e,t,n):{}}querySourceFeatures(e,n){let r=this.latestFeatureIndex;if(!r||!r.rawTileData)return;let a=r.loadVTLayers(),i=n&&n.sourceLayer?n.sourceLayer:"",o=a._geojsonTileLayer||a[i];if(!o)return;let s=t.a7(n&&n.filter),{z:l,x:c,y:u}=this.tileID.canonical,d={z:l,x:c,y:u};for(let n=0;n<o.length;n++){let a=o.feature(n);if(s.needGeometry){let e=t.a8(a,!0);if(!s.filter(new t.z(this.tileID.overscaledZ),e,this.tileID.canonical))continue}else if(!s.filter(new t.z(this.tileID.overscaledZ),a))continue;let p=r.getId(a,i),h=new t.a9(a,l,c,u,p);h.tile=d,e.push(h)}}hasData(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state}patternsLoaded(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(e){let n=this.expirationTime;if(e.cacheControl){let n=t.aa(e.cacheControl);n["max-age"]&&(this.expirationTime=Date.now()+1e3*n["max-age"])}else e.expires&&(this.expirationTime=new Date(e.expires).getTime());if(this.expirationTime){let e=Date.now(),t=!1;if(this.expirationTime>e)t=!1;else if(n)if(this.expirationTime<n)t=!0;else{let r=this.expirationTime-n;r?this.expirationTime=e+Math.max(r,3e4):t=!0}else t=!0;t?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)}setFeatureState(e,t){if(!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData||0===Object.keys(e).length)return;let n=this.latestFeatureIndex.loadVTLayers();for(let r in this.buckets){if(!t.style.hasLayer(r))continue;let a=this.buckets[r],i=a.layers[0].sourceLayer||"_geojsonTileLayer",o=n[i],s=e[i];if(!o||!s||0===Object.keys(s).length)continue;a.update(s,o,this.imageAtlas&&this.imageAtlas.patternPositions||{});let l=t&&t.style&&t.style.getLayer(r);l&&(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(a)))}}holdingForFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<i.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0}setHoldDuration(e){this.symbolFadeHoldUntil=i.now()+e}setDependencies(e,t){let n={};for(let e of t)n[e]=!0;this.dependencies[e]=n}hasDependency(e,t){for(let n of e){let e=this.dependencies[n];if(e)for(let n of t)if(e[n])return!0}return!1}}class ue{constructor(e,t){this.max=e,this.onRemove=t,this.reset()}reset(){for(let e in this.data)for(let t of this.data[e])t.timeout&&clearTimeout(t.timeout),this.onRemove(t.value);return this.data={},this.order=[],this}add(e,t,n){let r=e.wrapped().key;void 0===this.data[r]&&(this.data[r]=[]);let a={value:t,timeout:void 0};if(void 0!==n&&(a.timeout=setTimeout(()=>{this.remove(e,a)},n)),this.data[r].push(a),this.order.push(r),this.order.length>this.max){let e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){let t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}getByKey(e){let t=this.data[e];return t?t[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;let n=e.wrapped().key,r=void 0===t?0:this.data[n].indexOf(t),a=this.data[n][r];return this.data[n].splice(r,1),a.timeout&&clearTimeout(a.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(a.value),this.order.splice(this.order.indexOf(n),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){let e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}filter(e){let t=[];for(let n in this.data)for(let r of this.data[n])e(r.value)||t.push(r);for(let e of t)this.remove(e.value.tileID,e)}}class de{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(e,n,r){let a=String(n);if(this.stateChanges[e]=this.stateChanges[e]||{},this.stateChanges[e][a]=this.stateChanges[e][a]||{},t.e(this.stateChanges[e][a],r),null===this.deletedStates[e]){this.deletedStates[e]={};for(let t in this.state[e])t!==a&&(this.deletedStates[e][t]=null)}else if(this.deletedStates[e]&&null===this.deletedStates[e][a]){this.deletedStates[e][a]={};for(let t in this.state[e][a])r[t]||(this.deletedStates[e][a][t]=null)}else for(let t in r)this.deletedStates[e]&&this.deletedStates[e][a]&&null===this.deletedStates[e][a][t]&&delete this.deletedStates[e][a][t]}removeFeatureState(e,t,n){if(null===this.deletedStates[e])return;let r=String(t);if(this.deletedStates[e]=this.deletedStates[e]||{},n&&void 0!==t)null!==this.deletedStates[e][r]&&(this.deletedStates[e][r]=this.deletedStates[e][r]||{},this.deletedStates[e][r][n]=null);else if(void 0!==t)if(this.stateChanges[e]&&this.stateChanges[e][r])for(n in this.deletedStates[e][r]={},this.stateChanges[e][r])this.deletedStates[e][r][n]=null;else this.deletedStates[e][r]=null;else this.deletedStates[e]=null}getState(e,n){let r=String(n),a=t.e({},(this.state[e]||{})[r],(this.stateChanges[e]||{})[r]);if(null===this.deletedStates[e])return{};if(this.deletedStates[e]){let t=this.deletedStates[e][n];if(null===t)return{};for(let e in t)delete a[e]}return a}initializeTileState(e,t){e.setFeatureState(this.state,t)}coalesceChanges(e,n){let r={};for(let e in this.stateChanges){this.state[e]=this.state[e]||{};let n={};for(let r in this.stateChanges[e])this.state[e][r]||(this.state[e][r]={}),t.e(this.state[e][r],this.stateChanges[e][r]),n[r]=this.state[e][r];r[e]=n}for(let e in this.deletedStates){this.state[e]=this.state[e]||{};let n={};if(null===this.deletedStates[e])for(let t in this.state[e])n[t]={},this.state[e][t]={};else for(let t in this.deletedStates[e]){if(null===this.deletedStates[e][t])this.state[e][t]={};else for(let n of Object.keys(this.deletedStates[e][t]))delete this.state[e][t][n];n[t]=this.state[e][t]}r[e]=r[e]||{},t.e(r[e],n)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(r).length)for(let t in e)e[t].setFeatureState(r,n)}}class pe extends t.E{constructor(e,t,n){super(),this.id=e,this.dispatcher=n,this.on("data",e=>this._dataHandler(e)),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((e,t,n,r)=>{let a=new(ae(t.type))(e,t,n,r);if(a.id!==e)throw new Error(`Expected Source id to be ${e} instead of ${a.id}`);return a})(e,t,n,this),this._tiles={},this._cache=new ue(0,e=>this._unloadTile(e)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new de,this._didEmitContent=!1,this._updated=!1}onAdd(e){this.map=e,this._maxTileCacheSize=e?e._maxTileCacheSize:null,this._maxTileCacheZoomLevels=e?e._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(e)}onRemove(e){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(e)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(void 0===this.used&&void 0===this.usedForTerrain||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(let e in this._tiles){let t=this._tiles[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(e,n,r){return t._(this,void 0,void 0,function*(){try{yield this._source.loadTile(e),this._tileLoaded(e,n,r)}catch(n){e.state="errored",404!==n.status?this._source.fire(new t.j(n,{tile:e})):this.update(this.transform,this.terrain)}})}_unloadTile(e){this._source.unloadTile&&this._source.unloadTile(e)}_abortTile(e){this._source.abortTile&&this._source.abortTile(e),this._source.fire(new t.k("dataabort",{tile:e,coord:e.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(e){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(let t in this._tiles){let n=this._tiles[t];n.upload(e),n.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(e=>e.tileID).sort(he).map(e=>e.key)}getRenderableIds(e){let n=[];for(let t in this._tiles)this._isIdRenderable(t,e)&&n.push(this._tiles[t]);return e?n.sort((e,n)=>{let r=e.tileID,a=n.tileID,i=new t.P(r.canonical.x,r.canonical.y)._rotate(this.transform.angle),o=new t.P(a.canonical.x,a.canonical.y)._rotate(this.transform.angle);return r.overscaledZ-a.overscaledZ||o.y-i.y||o.x-i.x}).map(e=>e.tileID.key):n.map(e=>e.tileID).sort(he).map(e=>e.key)}hasRenderableParent(e){let t=this.findLoadedParent(e,0);return!!t&&this._isIdRenderable(t.tileID.key)}_isIdRenderable(e,t){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(t||!this._tiles[e].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(let e in this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(e,"reloading")}}_reloadTile(e,n){return t._(this,void 0,void 0,function*(){let t=this._tiles[e];t&&("loading"!==t.state&&(t.state=n),yield this._loadTile(t,e,n))})}_tileLoaded(e,n,r){e.timeAdded=i.now(),"expired"===r&&(e.refreshedUponExpiration=!0),this._setTileReloadTimer(n,e),"raster-dem"===this.getSource().type&&e.dem&&this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),e.aborted||this._source.fire(new t.k("data",{dataType:"source",tile:e,coord:e.tileID}))}_backfillDEM(e){let t=this.getRenderableIds();for(let r=0;r<t.length;r++){let a=t[r];if(e.neighboringTiles&&e.neighboringTiles[a]){let t=this.getTileByID(a);n(e,t),n(t,e)}}function n(e,t){e.needsHillshadePrepare=!0,e.needsTerrainPrepare=!0;let n=t.tileID.canonical.x-e.tileID.canonical.x,r=t.tileID.canonical.y-e.tileID.canonical.y,a=Math.pow(2,e.tileID.canonical.z),i=t.tileID.key;0===n&&0===r||Math.abs(r)>1||(Math.abs(n)>1&&(1===Math.abs(n+a)?n+=a:1===Math.abs(n-a)&&(n-=a)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,n,r),e.neighboringTiles&&e.neighboringTiles[i]&&(e.neighboringTiles[i].backfilled=!0)))}}getTile(e){return this.getTileByID(e.key)}getTileByID(e){return this._tiles[e]}_retainLoadedChildren(e,t,n,r){for(let a in this._tiles){let i=this._tiles[a];if(r[a]||!i.hasData()||i.tileID.overscaledZ<=t||i.tileID.overscaledZ>n)continue;let o=i.tileID;for(;i&&i.tileID.overscaledZ>t+1;){let e=i.tileID.scaledTo(i.tileID.overscaledZ-1);i=this._tiles[e.key],i&&i.hasData()&&(o=e)}let s=o;for(;s.overscaledZ>t;)if(s=s.scaledTo(s.overscaledZ-1),e[s.key]){r[o.key]=o;break}}}findLoadedParent(e,t){if(e.key in this._loadedParentTiles){let n=this._loadedParentTiles[e.key];return n&&n.tileID.overscaledZ>=t?n:null}for(let n=e.overscaledZ-1;n>=t;n--){let t=e.scaledTo(n),r=this._getLoadedTile(t);if(r)return r}}findLoadedSibling(e){return this._getLoadedTile(e)}_getLoadedTile(e){let t=this._tiles[e.key];return t&&t.hasData()?t:this._cache.getByKey(e.wrapped().key)}updateCacheSize(e){let n=Math.ceil(e.width/this._source.tileSize)+1,r=Math.ceil(e.height/this._source.tileSize)+1,a=Math.floor(n*r*(null===this._maxTileCacheZoomLevels?t.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),i="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,a):a;this._cache.setMaxSize(i)}handleWrapJump(e){let t=Math.round((e-(void 0===this._prevLng?e:this._prevLng))/360);if(this._prevLng=e,t){let e={};for(let n in this._tiles){let r=this._tiles[n];r.tileID=r.tileID.unwrapTo(r.tileID.wrap+t),e[r.tileID.key]=r}this._tiles=e;for(let e in this._timers)clearTimeout(this._timers[e]),delete this._timers[e];for(let e in this._tiles)this._setTileReloadTimer(e,this._tiles[e])}}_updateCoveredAndRetainedTiles(e,t,n,r,a,o){let s={},l={},c=Object.keys(e),u=i.now();for(let n of c){let r=e[n],a=this._tiles[n];if(!a||0!==a.fadeEndTime&&a.fadeEndTime<=u)continue;let i=this.findLoadedParent(r,t),o=this.findLoadedSibling(r),c=i||o||null;c&&(this._addTile(c.tileID),s[c.tileID.key]=c.tileID),l[n]=r}this._retainLoadedChildren(l,r,n,e);for(let t in s)e[t]||(this._coveredTiles[t]=!0,e[t]=s[t]);if(o){let t={},n={};for(let e of a)this._tiles[e.key].hasData()?t[e.key]=e:n[e.key]=e;for(let r in n){let a=n[r].children(this._source.maxzoom);this._tiles[a[0].key]&&this._tiles[a[1].key]&&this._tiles[a[2].key]&&this._tiles[a[3].key]&&(t[a[0].key]=e[a[0].key]=a[0],t[a[1].key]=e[a[1].key]=a[1],t[a[2].key]=e[a[2].key]=a[2],t[a[3].key]=e[a[3].key]=a[3],delete n[r])}for(let r in n){let a=n[r],i=this.findLoadedParent(a,this._source.minzoom),o=this.findLoadedSibling(a),s=i||o||null;if(s){t[s.tileID.key]=e[s.tileID.key]=s.tileID;for(let e in t)t[e].isChildOf(s.tileID)&&delete t[e]}}for(let e in this._tiles)t[e]||(this._coveredTiles[e]=!0)}}update(e,n){if(!this._sourceLoaded||this._paused)return;let r;this.transform=e,this.terrain=n,this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?r=e.getVisibleUnwrappedCoordinates(this._source.tileID).map(e=>new t.S(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)):(r=e.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:n}),this._source.hasTile&&(r=r.filter(e=>this._source.hasTile(e)))):r=[];let a=e.coveringZoomLevel(this._source),i=Math.max(a-pe.maxOverzooming,this._source.minzoom),o=Math.max(a+pe.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let e={};for(let t of r)if(t.canonical.z>this._source.minzoom){let n=t.scaledTo(t.canonical.z-1);e[n.key]=n;let r=t.scaledTo(Math.max(this._source.minzoom,Math.min(t.canonical.z,5)));e[r.key]=r}r=r.concat(Object.values(e))}let s=0===r.length&&!this._updated&&this._didEmitContent;this._updated=!0,s&&this.fire(new t.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let l=this._updateRetainedTiles(r,a);fe(this._source.type)&&this._updateCoveredAndRetainedTiles(l,i,o,a,r,n);for(let e in l)this._tiles[e].clearFadeHold();let c=t.ab(this._tiles,l);for(let e of c){let t=this._tiles[e];t.hasSymbolBuckets&&!t.holdingForFade()?t.setHoldDuration(this.map._fadeDuration):t.hasSymbolBuckets&&!t.symbolFadeFinished()||this._removeTile(e)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(let e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(e)}_updateRetainedTiles(e,t){var n;let r={},a={},i=Math.max(t-pe.maxOverzooming,this._source.minzoom),o=Math.max(t+pe.maxUnderzooming,this._source.minzoom),s={};for(let n of e){let e=this._addTile(n);r[n.key]=n,e.hasData()||t<this._source.maxzoom&&(s[n.key]=n)}this._retainLoadedChildren(s,t,o,r);for(let o of e){let e=this._tiles[o.key];if(e.hasData())continue;if(t+1>this._source.maxzoom){let e=o.children(this._source.maxzoom)[0],t=this.getTile(e);if(t&&t.hasData()){r[e.key]=e;continue}}else{let e=o.children(this._source.maxzoom);if(r[e[0].key]&&r[e[1].key]&&r[e[2].key]&&r[e[3].key])continue}let s=e.wasRequested();for(let t=o.overscaledZ-1;t>=i;--t){let i=o.scaledTo(t);if(a[i.key])break;if(a[i.key]=!0,e=this.getTile(i),!e&&s&&(e=this._addTile(i)),e){let t=e.hasData();if((t||!(null!==(n=this.map)&&void 0!==n&&n.cancelPendingTileRequestsWhileZooming)||s)&&(r[i.key]=i),s=e.wasRequested(),t)break}}}return r}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(let e in this._tiles){let t,n=[],r=this._tiles[e].tileID;for(;r.overscaledZ>0;){if(r.key in this._loadedParentTiles){t=this._loadedParentTiles[r.key];break}n.push(r.key);let e=r.scaledTo(r.overscaledZ-1);if(t=this._getLoadedTile(e),t)break;r=e}for(let e of n)this._loadedParentTiles[e]=t}}_updateLoadedSiblingTileCache(){this._loadedSiblingTiles={};for(let e in this._tiles){let t=this._tiles[e].tileID,n=this._getLoadedTile(t);this._loadedSiblingTiles[t.key]=n}}_addTile(e){let n=this._tiles[e.key];if(n)return n;n=this._cache.getAndRemove(e),n&&(this._setTileReloadTimer(e.key,n),n.tileID=e,this._state.initializeTileState(n,this.map?this.map.painter:null),this._cacheTimers[e.key]&&(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,n)));let r=n;return n||(n=new ce(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(n,e.key,n.state)),n.uses++,this._tiles[e.key]=n,r||this._source.fire(new t.k("dataloading",{tile:n,coord:n.tileID,dataType:"source"})),n}_setTileReloadTimer(e,t){e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);let n=t.getExpiryTimeout();n&&(this._timers[e]=setTimeout(()=>{this._reloadTile(e,"expired"),delete this._timers[e]},n))}_removeTile(e){let t=this._tiles[e];t&&(t.uses--,delete this._tiles[e],this._timers[e]&&(clearTimeout(this._timers[e]),delete this._timers[e]),t.uses>0||(t.hasData()&&"reloading"!==t.state?this._cache.add(t.tileID,t,t.getExpiryTimeout()):(t.aborted=!0,this._abortTile(t),this._unloadTile(t))))}_dataHandler(e){let t=e.sourceDataType;"source"===e.dataType&&"metadata"===t&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===e.dataType&&"content"===t&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let e in this._tiles)this._removeTile(e);this._cache.reset()}tilesIn(e,n,r){let a=[],i=this.transform;if(!i)return a;let o=r?i.getCameraQueryGeometry(e):e,s=e.map(e=>i.pointCoordinate(e,this.terrain)),l=o.map(e=>i.pointCoordinate(e,this.terrain)),c=this.getIds(),u=1/0,d=1/0,p=-1/0,h=-1/0;for(let e of l)u=Math.min(u,e.x),d=Math.min(d,e.y),p=Math.max(p,e.x),h=Math.max(h,e.y);for(let e=0;e<c.length;e++){let r=this._tiles[c[e]];if(r.holdingForFade())continue;let o=r.tileID,f=Math.pow(2,i.zoom-r.tileID.overscaledZ),m=n*r.queryPadding*t.X/r.tileSize/f,g=[o.getTilePoint(new t.Z(u,d)),o.getTilePoint(new t.Z(p,h))];if(g[0].x-m<t.X&&g[0].y-m<t.X&&g[1].x+m>=0&&g[1].y+m>=0){let e=s.map(e=>o.getTilePoint(e)),t=l.map(e=>o.getTilePoint(e));a.push({tile:r,tileID:o,queryGeometry:e,cameraQueryGeometry:t,scale:f})}}return a}getVisibleCoordinates(e){let t=this.getRenderableIds(e).map(e=>this._tiles[e].tileID);for(let e of t)e.posMatrix=this.transform.calculatePosMatrix(e.toUnwrapped());return t}hasTransition(){if(this._source.hasTransition())return!0;if(fe(this._source.type)){let e=i.now();for(let t in this._tiles)if(this._tiles[t].fadeEndTime>=e)return!0}return!1}setFeatureState(e,t,n){this._state.updateState(e=e||"_geojsonTileLayer",t,n)}removeFeatureState(e,t,n){this._state.removeFeatureState(e=e||"_geojsonTileLayer",t,n)}getFeatureState(e,t){return this._state.getState(e=e||"_geojsonTileLayer",t)}setDependencies(e,t,n){let r=this._tiles[e];r&&r.setDependencies(t,n)}reloadTilesForDependencies(e,t){for(let n in this._tiles)this._tiles[n].hasDependency(e,t)&&this._reloadTile(n,"reloading");this._cache.filter(n=>!n.hasDependency(e,t))}}function he(e,t){let n=Math.abs(2*e.wrap)-+(e.wrap<0),r=Math.abs(2*t.wrap)-+(t.wrap<0);return e.overscaledZ-t.overscaledZ||r-n||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}function fe(e){return"raster"===e||"image"===e||"video"===e}pe.maxOverzooming=10,pe.maxUnderzooming=3;class me{constructor(e,t){this.reset(e,t)}reset(e,t){this.points=e||[],this._distances=[0];for(let e=1;e<this.points.length;e++)this._distances[e]=this._distances[e-1]+this.points[e].dist(this.points[e-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(t||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(e){if(1===this.points.length)return this.points[0];e=t.ac(e,0,1);let n=1,r=this._distances[n],a=e*this.paddedLength+this.padding;for(;r<a&&n<this._distances.length;)r=this._distances[++n];let i=n-1,o=this._distances[i],s=r-o,l=s>0?(a-o)/s:0;return this.points[i].mult(1-l).add(this.points[n].mult(l))}}function ge(e,t){let n=!0;return"always"===e||"never"!==e&&"never"!==t||(n=!1),n}class ye{constructor(e,t,n){let r=this.boxCells=[],a=this.circleCells=[];this.xCellCount=Math.ceil(e/n),this.yCellCount=Math.ceil(t/n);for(let e=0;e<this.xCellCount*this.yCellCount;e++)r.push([]),a.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=e,this.height=t,this.xScale=this.xCellCount/e,this.yScale=this.yCellCount/t,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(e,t,n,r,a){this._forEachCell(t,n,r,a,this._insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(a)}insertCircle(e,t,n,r){this._forEachCell(t-r,n-r,t+r,n+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(e),this.circles.push(t),this.circles.push(n),this.circles.push(r)}_insertBoxCell(e,t,n,r,a,i){this.boxCells[a].push(i)}_insertCircleCell(e,t,n,r,a,i){this.circleCells[a].push(i)}_query(e,t,n,r,a,i,o){if(n<0||e>this.width||r<0||t>this.height)return[];let s=[];if(e<=0&&t<=0&&this.width<=n&&this.height<=r){if(a)return[{key:null,x1:e,y1:t,x2:n,y2:r}];for(let e=0;e<this.boxKeys.length;e++)s.push({key:this.boxKeys[e],x1:this.bboxes[4*e],y1:this.bboxes[4*e+1],x2:this.bboxes[4*e+2],y2:this.bboxes[4*e+3]});for(let e=0;e<this.circleKeys.length;e++){let t=this.circles[3*e],n=this.circles[3*e+1],r=this.circles[3*e+2];s.push({key:this.circleKeys[e],x1:t-r,y1:n-r,x2:t+r,y2:n+r})}}else this._forEachCell(e,t,n,r,this._queryCell,s,{hitTest:a,overlapMode:i,seenUids:{box:{},circle:{}}},o);return s}query(e,t,n,r){return this._query(e,t,n,r,!1,null)}hitTest(e,t,n,r,a,i){return this._query(e,t,n,r,!0,a,i).length>0}hitTestCircle(e,t,n,r,a){let i=e-n,o=e+n,s=t-n,l=t+n;if(o<0||i>this.width||l<0||s>this.height)return!1;let c=[];return this._forEachCell(i,s,o,l,this._queryCellCircle,c,{hitTest:!0,overlapMode:r,circle:{x:e,y:t,radius:n},seenUids:{box:{},circle:{}}},a),c.length>0}_queryCell(e,t,n,r,a,i,o,s){let{seenUids:l,hitTest:c,overlapMode:u}=o,d=this.boxCells[a];if(null!==d){let a=this.bboxes;for(let o of d)if(!l.box[o]){l.box[o]=!0;let d=4*o,p=this.boxKeys[o];if(e<=a[d+2]&&t<=a[d+3]&&n>=a[d+0]&&r>=a[d+1]&&(!s||s(p))&&(!c||!ge(u,p.overlapMode))&&(i.push({key:p,x1:a[d],y1:a[d+1],x2:a[d+2],y2:a[d+3]}),c))return!0}}let p=this.circleCells[a];if(null!==p){let a=this.circles;for(let o of p)if(!l.circle[o]){l.circle[o]=!0;let d=3*o,p=this.circleKeys[o];if(this._circleAndRectCollide(a[d],a[d+1],a[d+2],e,t,n,r)&&(!s||s(p))&&(!c||!ge(u,p.overlapMode))){let e=a[d],t=a[d+1],n=a[d+2];if(i.push({key:p,x1:e-n,y1:t-n,x2:e+n,y2:t+n}),c)return!0}}}return!1}_queryCellCircle(e,t,n,r,a,i,o,s){let{circle:l,seenUids:c,overlapMode:u}=o,d=this.boxCells[a];if(null!==d){let e=this.bboxes;for(let t of d)if(!c.box[t]){c.box[t]=!0;let n=4*t,r=this.boxKeys[t];if(this._circleAndRectCollide(l.x,l.y,l.radius,e[n+0],e[n+1],e[n+2],e[n+3])&&(!s||s(r))&&!ge(u,r.overlapMode))return i.push(!0),!0}}let p=this.circleCells[a];if(null!==p){let e=this.circles;for(let t of p)if(!c.circle[t]){c.circle[t]=!0;let n=3*t,r=this.circleKeys[t];if(this._circlesCollide(e[n],e[n+1],e[n+2],l.x,l.y,l.radius)&&(!s||s(r))&&!ge(u,r.overlapMode))return i.push(!0),!0}}}_forEachCell(e,t,n,r,a,i,o,s){let l=this._convertToXCellCoord(e),c=this._convertToYCellCoord(t),u=this._convertToXCellCoord(n),d=this._convertToYCellCoord(r);for(let p=l;p<=u;p++)for(let l=c;l<=d;l++)if(a.call(this,e,t,n,r,this.xCellCount*l+p,i,o,s))return}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,n,r,a,i){let o=r-e,s=a-t,l=n+i;return l*l>o*o+s*s}_circleAndRectCollide(e,t,n,r,a,i,o){let s=(i-r)/2,l=Math.abs(e-(r+s));if(l>s+n)return!1;let c=(o-a)/2,u=Math.abs(t-(a+c));if(u>c+n)return!1;if(l<=s||u<=c)return!0;let d=l-s,p=u-c;return d*d+p*p<=n*n}}function be(e,n,r,a,i){let o=t.H();return n?(t.K(o,o,[1/i,1/i,1]),r||t.ad(o,o,a.angle)):t.L(o,a.labelPlaneMatrix,e),o}function ve(e,n,r,a,i){if(n){let n=t.ae(e);return t.K(n,n,[i,i,1]),r||t.ad(n,n,-a.angle),n}return a.glCoordMatrix}function Me(e,n,r,a){let i;a?(i=[e,n,a(e,n),1],t.af(i,i,r)):(i=[e,n,0,1],Le(i,i,r));let o=i[3];return{point:new t.P(i[0]/o,i[1]/o),signedDistanceFromCamera:o,isOccluded:!1}}function xe(e,t){return.5+e/t*.5}function ze(e,t){return e.x>=-t[0]&&e.x<=t[0]&&e.y>=-t[1]&&e.y<=t[1]}function _e(e,n,r,a,i,o,s,l,c,u,d,p,h,f,m){let g=a?e.textSizeData:e.iconSizeData,y=t.ag(g,r.transform.zoom),b=[256/r.width*2+1,256/r.height*2+1],v=a?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;v.clear();let M=e.lineVertexArray,x=a?e.text.placedSymbolArray:e.icon.placedSymbolArray,z=r.transform.width/r.transform.height,_=!1;for(let a=0;a<x.length;a++){let A=x.get(a);if(A.hidden||A.writingMode===t.ah.vertical&&!_){Re(A.numGlyphs,v);continue}_=!1;let O=Me(A.anchorX,A.anchorY,n,m);if(!ze(O.point,b)){Re(A.numGlyphs,v);continue}let w=xe(r.transform.cameraToCenterDistance,O.signedDistanceFromCamera),k=t.ai(g,y,A),T=s?k/w:k*w,S={getElevation:m,labelPlaneMatrix:i,lineVertexArray:M,pitchWithMap:s,projectionCache:{projections:{},offsets:{},cachedAnchorPoint:void 0,anyProjectionOccluded:!1},projection:u,tileAnchorPoint:new t.P(A.anchorX,A.anchorY),unwrappedTileID:d,width:p,height:h,translation:f},C=we(S,A,T,!1,l,n,o,e.glyphOffsetArray,v,z,c);_=C.useVertical,(C.notEnoughRoom||_||C.needsFlipping&&we(S,A,T,!0,l,n,o,e.glyphOffsetArray,v,z,c).notEnoughRoom)&&Re(A.numGlyphs,v)}a?e.text.dynamicLayoutVertexBuffer.updateData(v):e.icon.dynamicLayoutVertexBuffer.updateData(v)}function Ae(e,t,n,r,a,i,o,s){let l=i.glyphStartIndex+i.numGlyphs,c=i.lineStartIndex,u=i.lineStartIndex+i.lineLength,d=t.getoffsetX(i.glyphStartIndex),p=t.getoffsetX(l-1),h=qe(e*d,n,r,a,i.segment,c,u,s,o);if(!h)return null;let f=qe(e*p,n,r,a,i.segment,c,u,s,o);return f?s.projectionCache.anyProjectionOccluded?null:{first:h,last:f}:null}function Oe(e,n,r,a){return e===t.ah.horizontal&&Math.abs(r.y-n.y)>Math.abs(r.x-n.x)*a?{useVertical:!0}:(e===t.ah.vertical?n.y<r.y:n.x>r.x)?{needsFlipping:!0}:null}function we(e,n,r,a,i,o,s,l,c,u,d){let p,h=r/24,f=n.lineOffsetX*h,m=n.lineOffsetY*h;if(n.numGlyphs>1){let t=n.glyphStartIndex+n.numGlyphs,r=n.lineStartIndex,o=n.lineStartIndex+n.lineLength,c=Ae(h,l,f,m,a,n,d,e);if(!c)return{notEnoughRoom:!0};let g=Me(c.first.point.x,c.first.point.y,s,e.getElevation).point,y=Me(c.last.point.x,c.last.point.y,s,e.getElevation).point;if(i&&!a){let e=Oe(n.writingMode,g,y,u);if(e)return e}p=[c.first];for(let i=n.glyphStartIndex+1;i<t-1;i++)p.push(qe(h*l.getoffsetX(i),f,m,a,n.segment,r,o,e,d));p.push(c.last)}else{if(i&&!a){let r=Me(e.tileAnchorPoint.x,e.tileAnchorPoint.y,o,e.getElevation).point,a=n.lineStartIndex+n.segment+1,i=new t.P(e.lineVertexArray.getx(a),e.lineVertexArray.gety(a)),s=Me(i.x,i.y,o,e.getElevation),l=s.signedDistanceFromCamera>0?s.point:ke(e.tileAnchorPoint,i,r,1,o,e),c=Oe(n.writingMode,r,l,u);if(c)return c}let r=qe(h*l.getoffsetX(n.glyphStartIndex),f,m,a,n.segment,n.lineStartIndex,n.lineStartIndex+n.lineLength,e,d);if(!r||e.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};p=[r]}for(let e of p)t.aj(c,e.point,e.angle);return{}}function ke(e,t,n,r,a,i){let o=e.add(e.sub(t)._unit()),s=void 0!==a?Me(o.x,o.y,a,i.getElevation).point:Se(o.x,o.y,i).point,l=n.sub(s);return n.add(l._mult(r/l.mag()))}function Te(e,n,r){let a=n.projectionCache;if(a.projections[e])return a.projections[e];let i=new t.P(n.lineVertexArray.getx(e),n.lineVertexArray.gety(e)),o=Se(i.x,i.y,n);if(o.signedDistanceFromCamera>0)return a.projections[e]=o.point,a.anyProjectionOccluded=a.anyProjectionOccluded||o.isOccluded,o.point;let s=e-r.direction;return l=0===r.distanceFromAnchor?n.tileAnchorPoint:new t.P(n.lineVertexArray.getx(s),n.lineVertexArray.gety(s)),c=i,u=r.previousVertex,d=r.absOffsetX-r.distanceFromAnchor+1,ke(l,c,u,d,void 0,n);var l,c,u,d}function Se(e,t,n){let r,a=e+n.translation[0],i=t+n.translation[1];return!n.pitchWithMap&&n.projection.useSpecialProjectionForSymbols?(r=n.projection.projectTileCoordinates(a,i,n.unwrappedTileID,n.getElevation),r.point.x=(.5*r.point.x+.5)*n.width,r.point.y=(.5*-r.point.y+.5)*n.height):(r=Me(a,i,n.labelPlaneMatrix,n.getElevation),r.isOccluded=!1),r}function Ce(e,t,n){return e._unit()._perp()._mult(t*n)}function Ee(e,n,r,a,i,o,s,l,c){if(l.projectionCache.offsets[e])return l.projectionCache.offsets[e];let u=r.add(n);if(e+c.direction<a||e+c.direction>=i)return l.projectionCache.offsets[e]=u,u;let d=Te(e+c.direction,l,c),p=Ce(d.sub(r),s,c.direction),h=r.add(p),f=d.add(p);return l.projectionCache.offsets[e]=t.ak(o,u,h,f)||u,l.projectionCache.offsets[e]}function qe(e,t,n,r,a,i,o,s,l){let c=r?e-t:e+t,u=c>0?1:-1,d=0;r&&(u*=-1,d=Math.PI),u<0&&(d+=Math.PI);let p,h=u>0?i+a:i+a+1;s.projectionCache.cachedAnchorPoint?p=s.projectionCache.cachedAnchorPoint:(p=Se(s.tileAnchorPoint.x,s.tileAnchorPoint.y,s).point,s.projectionCache.cachedAnchorPoint=p);let f,m,g,y=p,b=p,v=0,M=0,x=Math.abs(c),z=[];for(;v+M<=x;){if(h+=u,h<i||h>=o)return null;v+=M,b=y,m=f;let e={absOffsetX:x,direction:u,distanceFromAnchor:v,previousVertex:b};if(y=Te(h,s,e),0===n)z.push(b),g=y.sub(b);else{let t,r=y.sub(b);t=0===r.mag()?Ce(Te(h+u,s,e).sub(y),n,u):Ce(r,n,u),m||(m=b.add(t)),f=Ee(h,t,y,i,o,m,n,s,e),z.push(m),g=f.sub(m)}M=g.mag()}let _=g._mult((x-v)/M)._add(m||b),A=d+Math.atan2(y.y-b.y,y.x-b.x);return z.push(_),{point:_,angle:l?A:0,path:z}}let De=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Re(e,t){for(let n=0;n<e;n++){let e=t.length;t.resize(e+4),t.float32.set(De,3*e)}}function Le(e,t,n){let r=t[0],a=t[1];return e[0]=n[0]*r+n[4]*a+n[12],e[1]=n[1]*r+n[5]*a+n[13],e[3]=n[3]*r+n[7]*a+n[15],e}let Ie=100;class We{constructor(e,t,n=new ye(e.width+200,e.height+200,25),r=new ye(e.width+200,e.height+200,25)){this.transform=e,this.mapProjection=t,this.grid=n,this.ignoredGrid=r,this.pitchFactor=Math.cos(e._pitch)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+Ie,this.screenBottomBoundary=e.height+Ie,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200,this.perspectiveRatioCutoff=.6}placeCollisionBox(e,t,n,r,a,i,o,s,l,c,u){let d,p=e.anchorPointX+s[0],h=e.anchorPointY+s[1],f=this.projectAndGetPerspectiveRatio(r,p,h,a,c),m=n*f.perspectiveRatio;if(i||o)d=this._projectCollisionBox(e,m,r,a,i,o,s,f,c,u);else{let t=f.point.x+(u?u.x*m:0),n=f.point.y+(u?u.y*m:0);d={allPointsOccluded:!1,box:[t+e.x1*m,n+e.y1*m,t+e.x2*m,n+e.y2*m]}}let[g,y,b,v]=d.box;return this.mapProjection.useSpecialProjectionForSymbols&&(i?d.allPointsOccluded:this.mapProjection.isOccluded(p,h,a))||f.perspectiveRatio<this.perspectiveRatioCutoff||!this.isInsideGrid(g,y,b,v)||"always"!==t&&this.grid.hitTest(g,y,b,v,t,l)?{box:[g,y,b,v],placeable:!1,offscreen:!1}:{box:[g,y,b,v],placeable:!0,offscreen:this.isOffscreen(g,y,b,v)}}placeCollisionCircles(e,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g){let y=[],b=new t.P(n.anchorX,n.anchorY),v=this.getPerspectiveRatio(o,b.x,b.y,s,g),M=(d?i/v:i*v)/t.ap,x={getElevation:g,labelPlaneMatrix:l,lineVertexArray:r,pitchWithMap:d,projectionCache:{projections:{},offsets:{},cachedAnchorPoint:void 0,anyProjectionOccluded:!1},projection:this.mapProjection,tileAnchorPoint:b,unwrappedTileID:s,width:this.transform.width,height:this.transform.height,translation:m},z=Ae(M,a,n.lineOffsetX*M,n.lineOffsetY*M,!1,n,!1,x),_=!1,A=!1,O=!0;if(z){let n=.5*h*v+f,r=new t.P(-100,-100),a=new t.P(this.screenRightBoundary,this.screenBottomBoundary),i=new me,o=z.first,s=z.last,l=[];for(let e=o.path.length-1;e>=1;e--)l.push(o.path[e]);for(let e=1;e<s.path.length;e++)l.push(s.path[e]);let d=2.5*n;if(c){let e=this.projectPathToScreenSpace(l,x,c);l=e.some(e=>e.signedDistanceFromCamera<=0)?[]:e.map(e=>e.point)}let m=[];if(l.length>0){let e=l[0].clone(),n=l[0].clone();for(let t=1;t<l.length;t++)e.x=Math.min(e.x,l[t].x),e.y=Math.min(e.y,l[t].y),n.x=Math.max(n.x,l[t].x),n.y=Math.max(n.y,l[t].y);m=e.x>=r.x&&n.x<=a.x&&e.y>=r.y&&n.y<=a.y?[l]:n.x<r.x||e.x>a.x||n.y<r.y||e.y>a.y?[]:t.al([l],r.x,r.y,a.x,a.y)}for(let t of m){i.reset(t,.25*n);let r=0;r=i.length<=.5*n?1:Math.ceil(i.paddedLength/d)+1;for(let t=0;t<r;t++){let a=t/Math.max(r-1,1),o=i.lerp(a),s=o.x+Ie,l=o.y+Ie;y.push(s,l,n,0);let c=s-n,d=l-n,h=s+n,f=l+n;if(O=O&&this.isOffscreen(c,d,h,f),A=A||this.isInsideGrid(c,d,h,f),"always"!==e&&this.grid.hitTestCircle(s,l,n,e,p)&&(_=!0,!u))return{circles:[],offscreen:!1,collisionDetected:_}}}}return{circles:!u&&_||!A||v<this.perspectiveRatioCutoff?[]:y,offscreen:O,collisionDetected:_}}projectPathToScreenSpace(e,t,n){return e.map(e=>Me(e.x,e.y,n,t.getElevation))}queryRenderedSymbols(e){if(0===e.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};let n=[],r=1/0,a=1/0,i=-1/0,o=-1/0;for(let s of e){let e=new t.P(s.x+Ie,s.y+Ie);r=Math.min(r,e.x),a=Math.min(a,e.y),i=Math.max(i,e.x),o=Math.max(o,e.y),n.push(e)}let s=this.grid.query(r,a,i,o).concat(this.ignoredGrid.query(r,a,i,o)),l={},c={};for(let e of s){let r=e.key;if(void 0===l[r.bucketInstanceId]&&(l[r.bucketInstanceId]={}),l[r.bucketInstanceId][r.featureIndex])continue;let a=[new t.P(e.x1,e.y1),new t.P(e.x2,e.y1),new t.P(e.x2,e.y2),new t.P(e.x1,e.y2)];t.am(n,a)&&(l[r.bucketInstanceId][r.featureIndex]=!0,void 0===c[r.bucketInstanceId]&&(c[r.bucketInstanceId]=[]),c[r.bucketInstanceId].push(r.featureIndex))}return c}insertCollisionBox(e,t,n,r,a,i){(n?this.ignoredGrid:this.grid).insert({bucketInstanceId:r,featureIndex:a,collisionGroupID:i,overlapMode:t},e[0],e[1],e[2],e[3])}insertCollisionCircles(e,t,n,r,a,i){let o=n?this.ignoredGrid:this.grid,s={bucketInstanceId:r,featureIndex:a,collisionGroupID:i,overlapMode:t};for(let t=0;t<e.length;t+=4)o.insertCircle(s,e[t],e[t+1],e[t+2])}projectAndGetPerspectiveRatio(e,n,r,a,i){let o;i?(o=[n,r,i(n,r),1],t.af(o,o,e)):(o=[n,r,0,1],Le(o,o,e));let s=o[3];return{point:new t.P((o[0]/s+1)/2*this.transform.width+Ie,(-o[1]/s+1)/2*this.transform.height+Ie),perspectiveRatio:.5+this.transform.cameraToCenterDistance/s*.5,isOccluded:!1,signedDistanceFromCamera:s}}getPerspectiveRatio(e,t,n,r,a){let i=this.mapProjection.useSpecialProjectionForSymbols?this.mapProjection.projectTileCoordinates(t,n,r,a):Me(t,n,e,a);return.5+this.transform.cameraToCenterDistance/i.signedDistanceFromCamera*.5}isOffscreen(e,t,n,r){return n<Ie||e>=this.screenRightBoundary||r<Ie||t>this.screenBottomBoundary}isInsideGrid(e,t,n,r){return n>=0&&e<this.gridRightBoundary&&r>=0&&t<this.gridBottomBoundary}getViewportMatrix(){let e=t.an([]);return t.J(e,e,[-100,-100,0]),e}_projectCollisionBox(e,n,r,a,i,o,s,l,c,u){let d=new t.P(1,0),p=new t.P(0,1),h=new t.P(e.anchorPointX+s[0],e.anchorPointY+s[1]);if(o&&!i){let e=this.projectAndGetPerspectiveRatio(r,h.x+1,h.y,a,c).point.sub(l.point).unit(),n=Math.atan(e.y/e.x)+(e.x<0?Math.PI:0),i=Math.sin(n),o=Math.cos(n);d=new t.P(o,i),p=new t.P(-i,o)}else if(!o&&i){let e=-this.transform.angle,n=Math.sin(e),r=Math.cos(e);d=new t.P(r,n),p=new t.P(-n,r)}let f=l.point,m=n;if(i){f=h;let e=this.transform.zoom-Math.floor(this.transform.zoom);m=Math.pow(2,-e),m*=this.mapProjection.getPitchedTextCorrection(this.transform,h,a),u||(m*=t.ac(.5+l.signedDistanceFromCamera/this.transform.cameraToCenterDistance*.5,0,4))}u&&(f=f.add(d.mult(u.x*m)).add(p.mult(u.y*m)));let g=e.x1*m,y=e.x2*m,b=(g+y)/2,v=e.y1*m,M=e.y2*m,x=(v+M)/2,z=[{offsetX:g,offsetY:v},{offsetX:b,offsetY:v},{offsetX:y,offsetY:v},{offsetX:y,offsetY:x},{offsetX:y,offsetY:M},{offsetX:b,offsetY:M},{offsetX:g,offsetY:M},{offsetX:g,offsetY:x}],_=[];for(let{offsetX:e,offsetY:n}of z)_.push(new t.P(f.x+d.x*e+p.x*n,f.y+d.y*e+p.y*n));let A=!1;if(i){let e=_.map(e=>this.projectAndGetPerspectiveRatio(r,e.x,e.y,a,c));A=e.some(e=>!e.isOccluded),_=e.map(e=>e.point)}else A=!0;return{box:t.ao(_),allPointsOccluded:!A}}}function Ne(e,n,r){return n*(t.X/(e.tileSize*Math.pow(2,r-e.tileID.overscaledZ)))}class Pe{constructor(e,t,n,r){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):r&&n?1:0,this.placed=n}isHidden(){return 0===this.opacity&&!this.placed}}class Be{constructor(e,t,n,r,a){this.text=new Pe(e?e.text:null,t,n,a),this.icon=new Pe(e?e.icon:null,t,r,a)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Fe{constructor(e,t,n){this.text=e,this.icon=t,this.skipFade=n}}class je{constructor(){this.invProjMatrix=t.H(),this.viewportMatrix=t.H(),this.circles=[]}}class Ue{constructor(e,t,n,r,a){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=n,this.bucketIndex=r,this.tileID=a}}class Ve{constructor(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}}get(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){let t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:e=>e.collisionGroupID===t}}return this.collisionGroups[e]}}function He(e,n,r,a,i){let{horizontalAlign:o,verticalAlign:s}=t.au(e);return new t.P(-(o-.5)*n+a[0]*i,-(s-.5)*r+a[1]*i)}class Xe{constructor(e,t,n,r,a,i){this.transform=e.clone(),this.terrain=n,this.collisionIndex=new We(this.transform,t),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=r,this.retainedQueryData={},this.collisionGroups=new Ve(a),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=i,i&&(i.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(e){let t=this.terrain;return t?(n,r)=>t.getElevation(e,n,r):null}getBucketParts(e,n,r,a){let i=r.getBucket(n),o=r.latestFeatureIndex;if(!i||!o||n.id!==i.layerIds[0])return;let s=r.collisionBoxArray,l=i.layers[0].layout,c=i.layers[0].paint,u=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),d=r.tileSize/t.X,p=r.tileID.toUnwrapped(),h=this.transform.calculatePosMatrix(p),f="map"===l.get("text-pitch-alignment"),m="map"===l.get("text-rotation-alignment"),g=Ne(r,1,this.transform.zoom),y=this.collisionIndex.mapProjection.translatePosition(this.transform,r,c.get("text-translate"),c.get("text-translate-anchor")),b=this.collisionIndex.mapProjection.translatePosition(this.transform,r,c.get("icon-translate"),c.get("icon-translate-anchor")),v=be(h,f,m,this.transform,g),M=null;if(f){let e=ve(h,f,m,this.transform,g);M=t.L([],this.transform.labelPlaneMatrix,e)}this.retainedQueryData[i.bucketInstanceId]=new Ue(i.bucketInstanceId,o,i.sourceLayerIndex,i.index,r.tileID);let x={bucket:i,layout:l,translationText:y,translationIcon:b,posMatrix:h,unwrappedTileID:p,textLabelPlaneMatrix:v,labelToScreenMatrix:M,scale:u,textPixelRatio:d,holdingForFade:r.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:t.ag(i.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(i.sourceID)};if(a)for(let t of i.sortKeyRanges){let{sortKey:n,symbolInstanceStart:r,symbolInstanceEnd:a}=t;e.push({sortKey:n,symbolInstanceStart:r,symbolInstanceEnd:a,parameters:x})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:i.symbolInstances.length,parameters:x})}attemptAnchorPlacement(e,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g,y,b,v){let M=t.aq[e.textAnchor],x=[e.textOffset0,e.textOffset1],z=He(M,r,a,x,i),_=this.collisionIndex.placeCollisionBox(n,p,l,c,u,s,o,g,d.predicate,v,z);if((!b||this.collisionIndex.placeCollisionBox(b,p,l,c,u,s,o,y,d.predicate,v,z).placeable)&&_.placeable){let e;if(this.prevPlacement&&this.prevPlacement.variableOffsets[h.crossTileID]&&this.prevPlacement.placements[h.crossTileID]&&this.prevPlacement.placements[h.crossTileID].text&&(e=this.prevPlacement.variableOffsets[h.crossTileID].anchor),0===h.crossTileID)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[h.crossTileID]={textOffset:x,width:r,height:a,anchor:M,textBoxScale:i,prevAnchor:e},this.markUsedJustification(f,M,h,m),f.allowVerticalPlacement&&(this.markUsedOrientation(f,m,h),this.placedOrientations[h.crossTileID]=m),{shift:z,placedGlyphBoxes:_}}}placeLayerBucketPart(e,n,r){let{bucket:a,layout:i,translationText:o,translationIcon:s,posMatrix:l,unwrappedTileID:c,textLabelPlaneMatrix:u,labelToScreenMatrix:d,textPixelRatio:p,holdingForFade:h,collisionBoxArray:f,partiallyEvaluatedTextSize:m,collisionGroup:g}=e.parameters,y=i.get("text-optional"),b=i.get("icon-optional"),v=t.ar(i,"text-overlap","text-allow-overlap"),M="always"===v,x=t.ar(i,"icon-overlap","icon-allow-overlap"),z="always"===x,_="map"===i.get("text-rotation-alignment"),A="map"===i.get("text-pitch-alignment"),O="none"!==i.get("icon-text-fit"),w="viewport-y"===i.get("symbol-z-order"),k=M&&(z||!a.hasIconData()||b),T=z&&(M||!a.hasTextData()||y);!a.collisionArrays&&f&&a.deserializeCollisionBoxes(f);let S=this._getTerrainElevationFunc(this.retainedQueryData[a.bucketInstanceId].tileID),C=(e,f,z)=>{var w,C;if(n[e.crossTileID])return;if(h)return void(this.placements[e.crossTileID]=new Fe(!1,!1,!1));let E=!1,q=!1,D=!0,R=null,L={box:null,placeable:!1,offscreen:null},I={box:null,placeable:!1,offscreen:null},W=null,N=null,P=null,B=0,F=0,j=0;f.textFeatureIndex?B=f.textFeatureIndex:e.useRuntimeCollisionCircles&&(B=e.featureIndex),f.verticalTextFeatureIndex&&(F=f.verticalTextFeatureIndex);let U=f.textBox;if(U){let n=n=>{let r=t.ah.horizontal;if(a.allowVerticalPlacement&&!n&&this.prevPlacement){let t=this.prevPlacement.placedOrientations[e.crossTileID];t&&(this.placedOrientations[e.crossTileID]=t,r=t,this.markUsedOrientation(a,r,e))}return r},i=(n,r)=>{if(a.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&f.verticalTextBox){for(let e of a.writingModes)if(e===t.ah.vertical?(L=r(),I=L):L=n(),L&&L.placeable)break}else L=n()},u=e.textAnchorOffsetStartIndex,d=e.textAnchorOffsetEndIndex;if(d===u){let r=(t,n)=>{let r=this.collisionIndex.placeCollisionBox(t,v,p,l,c,A,_,o,g.predicate,S);return r&&r.placeable&&(this.markUsedOrientation(a,n,e),this.placedOrientations[e.crossTileID]=n),r};i(()=>r(U,t.ah.horizontal),()=>{let n=f.verticalTextBox;return a.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&n?r(n,t.ah.vertical):{box:null,offscreen:null}}),n(L&&L.placeable)}else{let h=t.aq[null===(C=null===(w=this.prevPlacement)||void 0===w?void 0:w.variableOffsets[e.crossTileID])||void 0===C?void 0:C.anchor],m=(n,i,f)=>{let m=n.x2-n.x1,y=n.y2-n.y1,b=e.textBoxScale,M=O&&"never"===x?i:null,z=null,w="never"===v?1:2,k="never";h&&w++;for(let t=0;t<w;t++){for(let t=u;t<d;t++){let r=a.textAnchorOffsets.get(t);if(h&&r.textAnchor!==h)continue;let i=this.attemptAnchorPlacement(r,n,m,y,b,_,A,p,l,c,g,k,e,a,f,o,s,M,S);if(i&&(z=i.placedGlyphBoxes,z&&z.placeable))return E=!0,R=i.shift,z}h?h=null:k=v}return r&&!z&&(z={box:this.collisionIndex.placeCollisionBox(U,"always",p,l,c,A,_,o,g.predicate,S,new t.P(0,0)).box,offscreen:!1,placeable:!1}),z};i(()=>m(U,f.iconBox,t.ah.horizontal),()=>{let n=f.verticalTextBox;return a.allowVerticalPlacement&&(!L||!L.placeable)&&e.numVerticalGlyphVertices>0&&n?m(n,f.verticalIconBox,t.ah.vertical):{box:null,occluded:!0,offscreen:null}}),L&&(E=L.placeable,D=L.offscreen);let y=n(L&&L.placeable);if(!E&&this.prevPlacement){let t=this.prevPlacement.variableOffsets[e.crossTileID];t&&(this.variableOffsets[e.crossTileID]=t,this.markUsedJustification(a,t.anchor,e,y))}}}if(W=L,E=W&&W.placeable,D=W&&W.offscreen,e.useRuntimeCollisionCircles){let n=a.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),s=t.ai(a.textSizeData,m,n),p=i.get("text-padding");N=this.collisionIndex.placeCollisionCircles(v,n,a.lineVertexArray,a.glyphOffsetArray,s,l,c,u,d,r,A,g.predicate,e.collisionCircleDiameter,p,o,S),N.circles.length&&N.collisionDetected&&!r&&t.w("Collisions detected, but collision boxes are not shown"),E=M||N.circles.length>0&&!N.collisionDetected,D=D&&N.offscreen}if(f.iconFeatureIndex&&(j=f.iconFeatureIndex),f.iconBox){let e=e=>this.collisionIndex.placeCollisionBox(e,x,p,l,c,A,_,s,g.predicate,S,O&&R?R:void 0);I&&I.placeable&&f.verticalIconBox?(P=e(f.verticalIconBox),q=P.placeable):(P=e(f.iconBox),q=P.placeable),D=D&&P.offscreen}let V=y||0===e.numHorizontalGlyphVertices&&0===e.numVerticalGlyphVertices,H=b||0===e.numIconVertices;V||H?H?V||(q=q&&E):E=q&&E:q=E=q&&E;let X=q&&P.placeable;if(E&&W.placeable&&this.collisionIndex.insertCollisionBox(W.box,v,i.get("text-ignore-placement"),a.bucketInstanceId,I&&I.placeable&&F?F:B,g.ID),X&&this.collisionIndex.insertCollisionBox(P.box,x,i.get("icon-ignore-placement"),a.bucketInstanceId,j,g.ID),N&&E&&this.collisionIndex.insertCollisionCircles(N.circles,v,i.get("text-ignore-placement"),a.bucketInstanceId,B,g.ID),r&&this.storeCollisionData(a.bucketInstanceId,z,f,W,P,N),0===e.crossTileID)throw new Error("symbolInstance.crossTileID can't be 0");if(0===a.bucketInstanceId)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[e.crossTileID]=new Fe(E||k,q||T,D||a.justReloaded),n[e.crossTileID]=!0};if(w){if(0!==e.symbolInstanceStart)throw new Error("bucket.bucketInstanceId should be 0");let t=a.getSortedSymbolIndexes(this.transform.angle);for(let e=t.length-1;e>=0;--e){let n=t[e];C(a.symbolInstances.get(n),a.collisionArrays[n],n)}}else for(let t=e.symbolInstanceStart;t<e.symbolInstanceEnd;t++)C(a.symbolInstances.get(t),a.collisionArrays[t],t);if(r&&a.bucketInstanceId in this.collisionCircleArrays){let e=this.collisionCircleArrays[a.bucketInstanceId];t.as(e.invProjMatrix,l),e.viewportMatrix=this.collisionIndex.getViewportMatrix()}a.justReloaded=!1}storeCollisionData(e,t,n,r,a,i){if(n.textBox||n.iconBox){let i,o;this.collisionBoxArrays.has(e)?i=this.collisionBoxArrays.get(e):(i=new Map,this.collisionBoxArrays.set(e,i)),i.has(t)?o=i.get(t):(o={text:null,icon:null},i.set(t,o)),n.textBox&&(o.text=r.box),n.iconBox&&(o.icon=a.box)}if(i){let t=this.collisionCircleArrays[e];void 0===t&&(t=this.collisionCircleArrays[e]=new je);for(let e=0;e<i.circles.length;e+=4)t.circles.push(i.circles[e+0]),t.circles.push(i.circles[e+1]),t.circles.push(i.circles[e+2]),t.circles.push(i.collisionDetected?1:0)}}markUsedJustification(e,n,r,a){let i;i=a===t.ah.vertical?r.verticalPlacedTextSymbolIndex:{left:r.leftJustifiedTextSymbolIndex,center:r.centerJustifiedTextSymbolIndex,right:r.rightJustifiedTextSymbolIndex}[t.at(n)];let o=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex,r.verticalPlacedTextSymbolIndex];for(let t of o)t>=0&&(e.text.placedSymbolArray.get(t).crossTileID=i>=0&&t!==i?0:r.crossTileID)}markUsedOrientation(e,n,r){let a=n===t.ah.horizontal||n===t.ah.horizontalOnly?n:0,i=n===t.ah.vertical?n:0,o=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];for(let t of o)e.text.placedSymbolArray.get(t).placedOrientation=a;r.verticalPlacedTextSymbolIndex&&(e.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=i)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;let t=this.prevPlacement,n=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;let r=t?t.symbolFadeChange(e):1,a=t?t.opacities:{},i=t?t.variableOffsets:{},o=t?t.placedOrientations:{};for(let e in this.placements){let t=this.placements[e],i=a[e];i?(this.opacities[e]=new Be(i,r,t.text,t.icon),n=n||t.text!==i.text.placed||t.icon!==i.icon.placed):(this.opacities[e]=new Be(null,r,t.text,t.icon,t.skipFade),n=n||t.text||t.icon)}for(let e in a){let t=a[e];if(!this.opacities[e]){let a=new Be(t,r,!1,!1);a.isHidden()||(this.opacities[e]=a,n=n||t.text.placed||t.icon.placed)}}for(let e in i)this.variableOffsets[e]||!this.opacities[e]||this.opacities[e].isHidden()||(this.variableOffsets[e]=i[e]);for(let e in o)this.placedOrientations[e]||!this.opacities[e]||this.opacities[e].isHidden()||(this.placedOrientations[e]=o[e]);if(t&&void 0===t.lastPlacementChangeTime)throw new Error("Last placement time for previous placement is not defined");n?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t){let n={};for(let r of t){let t=r.getBucket(e);t&&r.latestFeatureIndex&&e.id===t.layerIds[0]&&this.updateBucketOpacities(t,r.tileID,n,r.collisionBoxArray)}}updateBucketOpacities(e,n,r,a){e.hasTextData()&&(e.text.opacityVertexArray.clear(),e.text.hasVisibleVertices=!1),e.hasIconData()&&(e.icon.opacityVertexArray.clear(),e.icon.hasVisibleVertices=!1),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexArray.clear();let i=e.layers[0],o=i.layout,s=new Be(null,0,!1,!1,!0),l=o.get("text-allow-overlap"),c=o.get("icon-allow-overlap"),u=i._unevaluatedLayout.hasValue("text-variable-anchor")||i._unevaluatedLayout.hasValue("text-variable-anchor-offset"),d="map"===o.get("text-rotation-alignment"),p="map"===o.get("text-pitch-alignment"),h="none"!==o.get("icon-text-fit"),f=new Be(null,0,l&&(c||!e.hasIconData()||o.get("icon-optional")),c&&(l||!e.hasTextData()||o.get("text-optional")),!0);!e.collisionArrays&&a&&(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&&e.deserializeCollisionBoxes(a);let m=(e,t,n)=>{for(let r=0;r<t/4;r++)e.opacityVertexArray.emplaceBack(n);e.hasVisibleVertices=e.hasVisibleVertices||n!==nt},g=this.collisionBoxArrays.get(e.bucketInstanceId);for(let n=0;n<e.symbolInstances.length;n++){let a=e.symbolInstances.get(n),{numHorizontalGlyphVertices:i,numVerticalGlyphVertices:o,crossTileID:l}=a,c=this.opacities[l];r[l]?c=s:c||(c=f,this.opacities[l]=c),r[l]=!0;let y=a.numIconVertices>0,b=this.placedOrientations[a.crossTileID],v=b===t.ah.vertical,M=b===t.ah.horizontal||b===t.ah.horizontalOnly;if(i>0||o>0){let t=tt(c.text);m(e.text,i,v?nt:t),m(e.text,o,M?nt:t);let n=c.text.isHidden();[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach(t=>{t>=0&&(e.text.placedSymbolArray.get(t).hidden=n||v?1:0)}),a.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=n||M?1:0);let r=this.variableOffsets[a.crossTileID];r&&this.markUsedJustification(e,r.anchor,a,b);let s=this.placedOrientations[a.crossTileID];s&&(this.markUsedJustification(e,"left",a,s),this.markUsedOrientation(e,s,a))}if(y){let t=tt(c.icon),n=!(h&&a.verticalPlacedIconSymbolIndex&&v);a.placedIconSymbolIndex>=0&&(m(e.icon,a.numIconVertices,n?t:nt),e.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=c.icon.isHidden()),a.verticalPlacedIconSymbolIndex>=0&&(m(e.icon,a.numVerticalIconVertices,n?nt:t),e.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=c.icon.isHidden())}let x=g&&g.has(n)?g.get(n):{text:null,icon:null};if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){let r=e.collisionArrays[n];if(r){let n=new t.P(0,0);if(r.textBox||r.verticalTextBox){let t=!0;if(u){let e=this.variableOffsets[l];e?(n=He(e.anchor,e.width,e.height,e.textOffset,e.textBoxScale),d&&n._rotate(p?this.transform.angle:-this.transform.angle)):t=!1}if(r.textBox||r.verticalTextBox){let a;r.textBox&&(a=v),r.verticalTextBox&&(a=M),Ge(e.textCollisionBox.collisionVertexArray,c.text.placed,!t||a,x.text,n.x,n.y)}}if(r.iconBox||r.verticalIconBox){let t,a=!(M||!r.verticalIconBox);r.iconBox&&(t=a),r.verticalIconBox&&(t=!a),Ge(e.iconCollisionBox.collisionVertexArray,c.icon.placed,t,x.icon,h?n.x:0,h?n.y:0)}}}}if(e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&&(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&&e.text.opacityVertexBuffer&&e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&&e.icon.opacityVertexBuffer&&e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexBuffer&&e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexBuffer&&e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.text.opacityVertexArray.length!==e.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${e.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${e.text.layoutVertexArray.length}) / 4`);if(e.icon.opacityVertexArray.length!==e.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${e.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${e.icon.layoutVertexArray.length}) / 4`);if(e.bucketInstanceId in this.collisionCircleArrays){let t=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=t.invProjMatrix,e.placementViewportMatrix=t.viewportMatrix,e.collisionCircleArray=t.circles,delete this.collisionCircleArrays[e.bucketInstanceId]}}symbolFadeChange(e){return 0===this.fadeDuration?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(e,t){let n=this.zoomAtLastRecencyCheck===t?1-this.zoomAdjustment(t):1;return this.zoomAtLastRecencyCheck=t,this.commitTime+this.fadeDuration*n>e}setStale(){this.stale=!0}}function Ge(e,t,n,r,a,i){r&&0!==r.length||(r=[0,0,0,0]);let o=r[0]-Ie,s=r[1]-Ie,l=r[2]-Ie,c=r[3]-Ie;e.emplaceBack(t?1:0,n?1:0,a||0,i||0,o,s),e.emplaceBack(t?1:0,n?1:0,a||0,i||0,l,s),e.emplaceBack(t?1:0,n?1:0,a||0,i||0,l,c),e.emplaceBack(t?1:0,n?1:0,a||0,i||0,o,c)}let Ye=Math.pow(2,25),Ze=Math.pow(2,24),$e=Math.pow(2,17),Je=Math.pow(2,16),Qe=Math.pow(2,9),Ke=Math.pow(2,8),et=Math.pow(2,1);function tt(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;let t=e.placed?1:0,n=Math.floor(127*e.opacity);return n*Ye+t*Ze+n*$e+t*Je+n*Qe+t*Ke+n*et+t}let nt=0;function rt(){return{isOccluded:(e,t,n)=>!1,getPitchedTextCorrection:(e,t,n)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(e,t,n,r){throw new Error("Not implemented.")},translatePosition:(e,t,n,r)=>function(e,t,n,r,a=!1){if(!n[0]&&!n[1])return[0,0];let i=a?"map"===r?e.angle:0:"viewport"===r?-e.angle:0;if(i){let e=Math.sin(i),t=Math.cos(i);n=[n[0]*t-n[1]*e,n[0]*e+n[1]*t]}return[a?n[0]:Ne(t,n[0],e.zoom),a?n[1]:Ne(t,n[1],e.zoom)]}(e,t,n,r),getCircleRadiusCorrection:e=>1}}class at{constructor(e){this._sortAcrossTiles="viewport-y"!==e.layout.get("symbol-z-order")&&!e.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(e,t,n,r,a){let i=this._bucketParts;for(;this._currentTileIndex<e.length;)if(t.getBucketParts(i,r,e[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,a())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,i.sort((e,t)=>e.sortKey-t.sortKey));this._currentPartIndex<i.length;)if(t.placeLayerBucketPart(i[this._currentPartIndex],this._seenCrossTileIDs,n),this._currentPartIndex++,a())return!0;return!1}}class it{constructor(e,t,n,r,a,i,o,s){this.placement=new Xe(e,rt(),t,i,o,s),this._currentPlacementIndex=n.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=a,this._done=!1}isDone(){return this._done}continuePlacement(e,t,n){let r=i.now(),a=()=>!this._forceFullPlacement&&i.now()-r>2;for(;this._currentPlacementIndex>=0;){let r=t[e[this._currentPlacementIndex]],i=this.placement.collisionIndex.transform.zoom;if("symbol"===r.type&&(!r.minzoom||r.minzoom<=i)&&(!r.maxzoom||r.maxzoom>i)){if(this._inProgressLayer||(this._inProgressLayer=new at(r)),this._inProgressLayer.continuePlacement(n[r.source],this.placement,this._showCollisionBoxes,r,a))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}}let ot=512/t.X/2;class st{constructor(e,n,r){this.tileID=e,this.bucketInstanceId=r,this._symbolsByKey={};let a=new Map;for(let e=0;e<n.length;e++){let t=n.get(e),r=t.key,i=a.get(r);i?i.push(t):a.set(r,[t])}for(let[e,n]of a){let r={positions:n.map(e=>({x:Math.floor(e.anchorX*ot),y:Math.floor(e.anchorY*ot)})),crossTileIDs:n.map(e=>e.crossTileID)};if(r.positions.length>128){let e=new t.av(r.positions.length,16,Uint16Array);for(let{x:t,y:n}of r.positions)e.add(t,n);e.finish(),delete r.positions,r.index=e}this._symbolsByKey[e]=r}}getScaledCoordinates(e,n){let{x:r,y:a,z:i}=this.tileID.canonical,{x:o,y:s,z:l}=n.canonical,c=ot/Math.pow(2,l-i),u=(s*t.X+e.anchorY)*c,d=a*t.X*ot;return{x:Math.floor((o*t.X+e.anchorX)*c-r*t.X*ot),y:Math.floor(u-d)}}findMatches(e,t,n){let r=this.tileID.canonical.z<t.canonical.z?1:Math.pow(2,this.tileID.canonical.z-t.canonical.z);for(let a=0;a<e.length;a++){let i=e.get(a);if(i.crossTileID)continue;let o=this._symbolsByKey[i.key];if(!o)continue;let s=this.getScaledCoordinates(i,t);if(o.index){let e=o.index.range(s.x-r,s.y-r,s.x+r,s.y+r).sort();for(let t of e){let e=o.crossTileIDs[t];if(!n[e]){n[e]=!0,i.crossTileID=e;break}}}else if(o.positions)for(let e=0;e<o.positions.length;e++){let t=o.positions[e],a=o.crossTileIDs[e];if(Math.abs(t.x-s.x)<=r&&Math.abs(t.y-s.y)<=r&&!n[a]){n[a]=!0,i.crossTileID=a;break}}}}getCrossTileIDsLists(){return Object.values(this._symbolsByKey).map(({crossTileIDs:e})=>e)}}class lt{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class ct{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(e){let t=Math.round((e-this.lng)/360);if(0!==t)for(let e in this.indexes){let n=this.indexes[e],r={};for(let e in n){let a=n[e];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+t),r[a.tileID.key]=a}this.indexes[e]=r}this.lng=e}addBucket(e,t,n){if(this.indexes[e.overscaledZ]&&this.indexes[e.overscaledZ][e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(let e=0;e<t.symbolInstances.length;e++)t.symbolInstances.get(e).crossTileID=0;this.usedCrossTileIDs[e.overscaledZ]||(this.usedCrossTileIDs[e.overscaledZ]={});let r=this.usedCrossTileIDs[e.overscaledZ];for(let n in this.indexes){let a=this.indexes[n];if(Number(n)>e.overscaledZ)for(let n in a){let i=a[n];i.tileID.isChildOf(e)&&i.findMatches(t.symbolInstances,e,r)}else{let i=a[e.scaledTo(Number(n)).key];i&&i.findMatches(t.symbolInstances,e,r)}}for(let e=0;e<t.symbolInstances.length;e++){let a=t.symbolInstances.get(e);a.crossTileID||(a.crossTileID=n.generate(),r[a.crossTileID]=!0)}return void 0===this.indexes[e.overscaledZ]&&(this.indexes[e.overscaledZ]={}),this.indexes[e.overscaledZ][e.key]=new st(e,t.symbolInstances,t.bucketInstanceId),!0}removeBucketCrossTileIDs(e,t){for(let n of t.getCrossTileIDsLists())for(let t of n)delete this.usedCrossTileIDs[e][t]}removeStaleBuckets(e){let t=!1;for(let n in this.indexes){let r=this.indexes[n];for(let a in r)e[r[a].bucketInstanceId]||(this.removeBucketCrossTileIDs(n,r[a]),delete r[a],t=!0)}return t}}class ut{constructor(){this.layerIndexes={},this.crossTileIDs=new lt,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(e,t,n){let r=this.layerIndexes[e.id];void 0===r&&(r=this.layerIndexes[e.id]=new ct);let a=!1,i={};r.handleWrapJump(n);for(let n of t){let t=n.getBucket(e);t&&e.id===t.layerIds[0]&&(t.bucketInstanceId||(t.bucketInstanceId=++this.maxBucketInstanceId),r.addBucket(n.tileID,t,this.crossTileIDs)&&(a=!0),i[t.bucketInstanceId]=!0)}return r.removeStaleBuckets(i)&&(a=!0),a}pruneUnusedLayers(e){let t={};e.forEach(e=>{t[e]=!0});for(let e in this.layerIndexes)t[e]||delete this.layerIndexes[e]}}let dt=(e,n)=>t.t(e,n&&n.filter(e=>"source.canvas"!==e.identifier)),pt=t.aw();class ht extends t.E{constructor(e,n={}){super(),this._rtlPluginLoaded=()=>{for(let e in this.sourceCaches){let t=this.sourceCaches[e].getSource().type;"vector"!==t&&"geojson"!==t||this.sourceCaches[e].reload()}},this.map=e,this.dispatcher=new F(B(),e._getMapId()),this.dispatcher.registerMessageHandler("GG",(e,t)=>this.getGlyphs(e,t)),this.dispatcher.registerMessageHandler("GI",(e,t)=>this.getImages(e,t)),this.imageManager=new A,this.imageManager.setEventedParent(this),this.glyphManager=new S(e._requestManager,n.localIdeographFontFamily),this.lineAtlas=new R(256,512),this.crossTileSymbolIndex=new ut,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ax,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",t.ay()),le().on(ie,this._rtlPluginLoaded),this.on("data",e=>{if("source"!==e.dataType||"metadata"!==e.sourceDataType)return;let t=this.sourceCaches[e.sourceId];if(!t)return;let n=t.getSource();if(n&&n.vectorLayerIds)for(let e in this._layers){let t=this._layers[e];t.source===n.id&&this._validateLayer(t)}})}loadURL(e,n={},r){this.fire(new t.k("dataloading",{dataType:"style"})),n.validate="boolean"!=typeof n.validate||n.validate;let a=this.map._requestManager.transformRequest(e,"Style");this._loadStyleRequest=new AbortController;let i=this._loadStyleRequest;t.h(a,this._loadStyleRequest).then(e=>{this._loadStyleRequest=null,this._load(e.data,n,r)}).catch(e=>{this._loadStyleRequest=null,e&&!i.signal.aborted&&this.fire(new t.j(e))})}loadJSON(e,n={},r){this.fire(new t.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,i.frameAsync(this._frameRequest).then(()=>{this._frameRequest=null,n.validate=!1!==n.validate,this._load(e,n,r)}).catch(()=>{})}loadEmpty(){this.fire(new t.k("dataloading",{dataType:"style"})),this._load(pt,{validate:!1})}_load(e,n,r){var a;let i=n.transformStyle?n.transformStyle(r,e):e;if(!n.validate||!dt(this,t.u(i))){this._loaded=!0,this.stylesheet=i;for(let e in i.sources)this.addSource(e,i.sources[e],{validate:!1});i.sprite?this._loadSprite(i.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(i.glyphs),this._createLayers(),this.light=new E(this.stylesheet.light),this.sky=new D(this.stylesheet.sky),this.map.setTerrain(null!==(a=this.stylesheet.terrain)&&void 0!==a?a:null),this.fire(new t.k("data",{dataType:"style"})),this.fire(new t.k("style.load"))}}_createLayers(){let e=t.az(this.stylesheet.layers);this.dispatcher.broadcast("SL",e),this._order=e.map(e=>e.id),this._layers={},this._serializedLayers=null;for(let n of e){let e=t.aA(n);e.setEventedParent(this,{layer:{id:n.id}}),this._layers[n.id]=e}}_loadSprite(e,n=!1,r=void 0){let a;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,function(e,n,r,a){return t._(this,void 0,void 0,function*(){let o=M(e),s=r>1?"@2x":"",l={},c={};for(let{id:e,url:r}of o){let i=n.transformRequest(x(r,s,".json"),"SpriteJSON");l[e]=t.h(i,a);let o=n.transformRequest(x(r,s,".png"),"SpriteImage");c[e]=h.getImage(o,a)}return yield Promise.all([...Object.values(l),...Object.values(c)]),function(e,n){return t._(this,void 0,void 0,function*(){let t={};for(let r in e){t[r]={};let a=i.getImageCanvasContext((yield n[r]).data),o=(yield e[r]).data;for(let e in o){let{width:n,height:i,x:s,y:l,sdf:c,pixelRatio:u,stretchX:d,stretchY:p,content:h,textFitWidth:f,textFitHeight:m}=o[e];t[r][e]={data:null,pixelRatio:u,sdf:c,stretchX:d,stretchY:p,content:h,textFitWidth:f,textFitHeight:m,spriteData:{width:n,height:i,x:s,y:l,context:a}}}}return t})}(l,c)})}(e,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(e=>{if(this._spriteRequest=null,e)for(let t in e){this._spritesImagesIds[t]=[];let r=this._spritesImagesIds[t]?this._spritesImagesIds[t].filter(t=>!(t in e)):[];for(let e of r)this.imageManager.removeImage(e),this._changedImages[e]=!0;for(let r in e[t]){let a="default"===t?r:`${t}:${r}`;this._spritesImagesIds[t].push(a),a in this.imageManager.images?this.imageManager.updateImage(a,e[t][r],!1):this.imageManager.addImage(a,e[t][r]),n&&(this._changedImages[a]=!0)}}}).catch(e=>{this._spriteRequest=null,a=e,this.fire(new t.j(a))}).finally(()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),n&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new t.k("data",{dataType:"style"})),r&&r(a)})}_unloadSprite(){for(let e of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(e),this._changedImages[e]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new t.k("data",{dataType:"style"}))}_validateLayer(e){let n=this.sourceCaches[e.source];if(!n)return;let r=e.sourceLayer;if(!r)return;let a=n.getSource();("geojson"===a.type||a.vectorLayerIds&&-1===a.vectorLayerIds.indexOf(r))&&this.fire(new t.j(new Error(`Source layer "${r}" does not exist on source "${a.id}" as specified by style layer "${e.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let e in this.sourceCaches)if(!this.sourceCaches[e].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(e,n=!1){let r=this._serializedAllLayers();if(!e||0===e.length)return Object.values(n?t.aB(r):r);let a=[];for(let i of e)if(r[i]){let e=n?t.aB(r[i]):r[i];a.push(e)}return a}_serializedAllLayers(){let e=this._serializedLayers;if(e)return e;e=this._serializedLayers={};let t=Object.keys(this._layers);for(let n of t){let t=this._layers[n];"custom"!==t.type&&(e[n]=t.serialize())}return e}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(let e in this.sourceCaches)if(this.sourceCaches[e].hasTransition())return!0;for(let e in this._layers)if(this._layers[e].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(e){if(!this._loaded)return;let n=this._changed;if(n){let t=Object.keys(this._updatedLayers),n=Object.keys(this._removedLayers);(t.length||n.length)&&this._updateWorkerLayers(t,n);for(let e in this._updatedSources){let t=this._updatedSources[e];if("reload"===t)this._reloadSource(e);else{if("clear"!==t)throw new Error(`Invalid action ${t}`);this._clearSource(e)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let t in this._updatedPaintProps)this._layers[t].updateTransitions(e);this.light.updateTransitions(e),this.sky.updateTransitions(e),this._resetUpdates()}let r={};for(let e in this.sourceCaches){let t=this.sourceCaches[e];r[e]=t.used,t.used=!1}for(let t of this._order){let n=this._layers[t];n.recalculate(e,this._availableImages),!n.isHidden(e.zoom)&&n.source&&(this.sourceCaches[n.source].used=!0)}for(let e in r){let n=this.sourceCaches[e];!!r[e]!=!!n.used&&n.fire(new t.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:e}))}this.light.recalculate(e),this.sky.recalculate(e),this.z=e.zoom,n&&this.fire(new t.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){let e=Object.keys(this._changedImages);if(e.length){for(let t in this.sourceCaches)this.sourceCaches[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(e,t){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(e,!1),removedIds:t})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(e,n={}){var r;this._checkLoaded();let a=this.serialize();if(e=n.transformStyle?n.transformStyle(a,e):e,(null===(r=n.validate)||void 0===r||r)&&dt(this,t.u(e)))return!1;(e=t.aB(e)).layers=t.az(e.layers);let i=t.aC(a,e),o=this._getOperationsToPerform(i);if(o.unimplemented.length>0)throw new Error(`Unimplemented: ${o.unimplemented.join(", ")}.`);if(0===o.operations.length)return!1;for(let e of o.operations)e();return this.stylesheet=e,this._serializedLayers=null,!0}_getOperationsToPerform(e){let t=[],n=[];for(let r of e)switch(r.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":t.push(()=>this.addLayer.apply(this,r.args));break;case"removeLayer":t.push(()=>this.removeLayer.apply(this,r.args));break;case"setPaintProperty":t.push(()=>this.setPaintProperty.apply(this,r.args));break;case"setLayoutProperty":t.push(()=>this.setLayoutProperty.apply(this,r.args));break;case"setFilter":t.push(()=>this.setFilter.apply(this,r.args));break;case"addSource":t.push(()=>this.addSource.apply(this,r.args));break;case"removeSource":t.push(()=>this.removeSource.apply(this,r.args));break;case"setLayerZoomRange":t.push(()=>this.setLayerZoomRange.apply(this,r.args));break;case"setLight":t.push(()=>this.setLight.apply(this,r.args));break;case"setGeoJSONSourceData":t.push(()=>this.setGeoJSONSourceData.apply(this,r.args));break;case"setGlyphs":t.push(()=>this.setGlyphs.apply(this,r.args));break;case"setSprite":t.push(()=>this.setSprite.apply(this,r.args));break;case"setSky":t.push(()=>this.setSky.apply(this,r.args));break;case"setTerrain":t.push(()=>this.map.setTerrain.apply(this,r.args));break;case"setTransition":t.push(()=>{});break;default:n.push(r.command)}return{operations:t,unimplemented:n}}addImage(e,n){if(this.getImage(e))return this.fire(new t.j(new Error(`An image named "${e}" already exists.`)));this.imageManager.addImage(e,n),this._afterImageUpdated(e)}updateImage(e,t){this.imageManager.updateImage(e,t)}getImage(e){return this.imageManager.getImage(e)}removeImage(e){if(!this.getImage(e))return this.fire(new t.j(new Error(`An image named "${e}" does not exist.`)));this.imageManager.removeImage(e),this._afterImageUpdated(e)}_afterImageUpdated(e){this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new t.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(e,n,r={}){if(this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error(`Source "${e}" already exists.`);if(!n.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(n).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(t.u.source,`sources.${e}`,n,null,r))return;this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);let a=this.sourceCaches[e]=new pe(e,n,this.dispatcher);a.style=this,a.setEventedParent(this,()=>({isSourceLoaded:a.loaded(),source:a.serialize(),sourceId:e})),a.onAdd(this.map),this._changed=!0}removeSource(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error("There is no source with this ID");for(let n in this._layers)if(this._layers[n].source===e)return this.fire(new t.j(new Error(`Source "${e}" cannot be removed while layer "${n}" is using it.`)));let n=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],n.fire(new t.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:e})),n.setEventedParent(null),n.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(e,t){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error(`There is no source with this ID=${e}`);let n=this.sourceCaches[e].getSource();if("geojson"!==n.type)throw new Error(`geojsonSource.type is ${n.type}, which is !== 'geojson`);n.setData(t),this._changed=!0}getSource(e){return this.sourceCaches[e]&&this.sourceCaches[e].getSource()}addLayer(e,n,r={}){this._checkLoaded();let a,i=e.id;if(this.getLayer(i))return void this.fire(new t.j(new Error(`Layer "${i}" already exists on this map.`)));if("custom"===e.type){if(dt(this,t.aD(e)))return;a=t.aA(e)}else{if("source"in e&&"object"==typeof e.source&&(this.addSource(i,e.source),e=t.aB(e),e=t.e(e,{source:i})),this._validate(t.u.layer,`layers.${i}`,e,{arrayIndex:-1},r))return;a=t.aA(e),this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}})}let o=n?this._order.indexOf(n):this._order.length;if(n&&-1===o)this.fire(new t.j(new Error(`Cannot add layer "${i}" before non-existing layer "${n}".`)));else{if(this._order.splice(o,0,i),this._layerOrderChanged=!0,this._layers[i]=a,this._removedLayers[i]&&a.source&&"custom"!==a.type){let e=this._removedLayers[i];delete this._removedLayers[i],e.type!==a.type?this._updatedSources[a.source]="clear":(this._updatedSources[a.source]="reload",this.sourceCaches[a.source].pause())}this._updateLayer(a),a.onAdd&&a.onAdd(this.map)}}moveLayer(e,n){if(this._checkLoaded(),this._changed=!0,!this._layers[e])return void this.fire(new t.j(new Error(`The layer '${e}' does not exist in the map's style and cannot be moved.`)));if(e===n)return;let r=this._order.indexOf(e);this._order.splice(r,1);let a=n?this._order.indexOf(n):this._order.length;n&&-1===a?this.fire(new t.j(new Error(`Cannot move layer "${e}" before non-existing layer "${n}".`))):(this._order.splice(a,0,e),this._layerOrderChanged=!0)}removeLayer(e){this._checkLoaded();let n=this._layers[e];if(!n)return void this.fire(new t.j(new Error(`Cannot remove non-existing layer "${e}".`)));n.setEventedParent(null);let r=this._order.indexOf(e);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=n,delete this._layers[e],this._serializedLayers&&delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],n.onRemove&&n.onRemove(this.map)}getLayer(e){return this._layers[e]}getLayersOrder(){return[...this._order]}hasLayer(e){return e in this._layers}setLayerZoomRange(e,n,r){this._checkLoaded();let a=this.getLayer(e);a?a.minzoom===n&&a.maxzoom===r||(null!=n&&(a.minzoom=n),null!=r&&(a.maxzoom=r),this._updateLayer(a)):this.fire(new t.j(new Error(`Cannot set the zoom range of non-existing layer "${e}".`)))}setFilter(e,n,r={}){this._checkLoaded();let a=this.getLayer(e);if(a){if(!t.aE(a.filter,n))return null==n?(a.filter=void 0,void this._updateLayer(a)):void(this._validate(t.u.filter,`layers.${a.id}.filter`,n,null,r)||(a.filter=t.aB(n),this._updateLayer(a)))}else this.fire(new t.j(new Error(`Cannot filter non-existing layer "${e}".`)))}getFilter(e){return t.aB(this.getLayer(e).filter)}setLayoutProperty(e,n,r,a={}){this._checkLoaded();let i=this.getLayer(e);i?t.aE(i.getLayoutProperty(n),r)||(i.setLayoutProperty(n,r,a),this._updateLayer(i)):this.fire(new t.j(new Error(`Cannot style non-existing layer "${e}".`)))}getLayoutProperty(e,n){let r=this.getLayer(e);if(r)return r.getLayoutProperty(n);this.fire(new t.j(new Error(`Cannot get style of non-existing layer "${e}".`)))}setPaintProperty(e,n,r,a={}){this._checkLoaded();let i=this.getLayer(e);i?t.aE(i.getPaintProperty(n),r)||(i.setPaintProperty(n,r,a)&&this._updateLayer(i),this._changed=!0,this._updatedPaintProps[e]=!0,this._serializedLayers=null):this.fire(new t.j(new Error(`Cannot style non-existing layer "${e}".`)))}getPaintProperty(e,t){return this.getLayer(e).getPaintProperty(t)}setFeatureState(e,n){this._checkLoaded();let r=e.source,a=e.sourceLayer,i=this.sourceCaches[r];if(void 0===i)return void this.fire(new t.j(new Error(`The source '${r}' does not exist in the map's style.`)));let o=i.getSource().type;"geojson"===o&&a?this.fire(new t.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==o||a?(void 0===e.id&&this.fire(new t.j(new Error("The feature id parameter must be provided."))),i.setFeatureState(a,e.id,n)):this.fire(new t.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(e,n){this._checkLoaded();let r=e.source,a=this.sourceCaches[r];if(void 0===a)return void this.fire(new t.j(new Error(`The source '${r}' does not exist in the map's style.`)));let i=a.getSource().type,o="vector"===i?e.sourceLayer:void 0;"vector"!==i||o?n&&"string"!=typeof e.id&&"number"!=typeof e.id?this.fire(new t.j(new Error("A feature id is required to remove its specific state property."))):a.removeFeatureState(o,e.id,n):this.fire(new t.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(e){this._checkLoaded();let n=e.source,r=e.sourceLayer,a=this.sourceCaches[n];if(void 0!==a)return"vector"!==a.getSource().type||r?(void 0===e.id&&this.fire(new t.j(new Error("The feature id parameter must be provided."))),a.getFeatureState(r,e.id)):void this.fire(new t.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new t.j(new Error(`The source '${n}' does not exist in the map's style.`)))}getTransition(){return t.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;let e=t.aF(this.sourceCaches,e=>e.serialize()),n=this._serializeByIds(this._order,!0),r=this.map.getTerrain()||void 0,a=this.stylesheet;return t.aG({version:a.version,name:a.name,metadata:a.metadata,light:a.light,sky:a.sky,center:a.center,zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,sprite:a.sprite,glyphs:a.glyphs,transition:a.transition,sources:e,layers:n,terrain:r},e=>void 0!==e)}_updateLayer(e){this._updatedLayers[e.id]=!0,e.source&&!this._updatedSources[e.source]&&"raster"!==this.sourceCaches[e.source].getSource().type&&(this._updatedSources[e.source]="reload",this.sourceCaches[e.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(e){let t=e=>"fill-extrusion"===this._layers[e].type,n={},r=[];for(let a=this._order.length-1;a>=0;a--){let i=this._order[a];if(t(i)){n[i]=a;for(let t of e){let e=t[i];if(e)for(let t of e)r.push(t)}}}r.sort((e,t)=>t.intersectionZ-e.intersectionZ);let a=[];for(let i=this._order.length-1;i>=0;i--){let o=this._order[i];if(t(o))for(let e=r.length-1;e>=0;e--){let t=r[e].feature;if(n[t.layer.id]<i)break;a.push(t),r.pop()}else for(let t of e){let e=t[o];if(e)for(let t of e)a.push(t.feature)}}return a}queryRenderedFeatures(e,n,r){n&&n.filter&&this._validate(t.u.filter,"queryRenderedFeatures.filter",n.filter,null,n);let a={};if(n&&n.layers){if(!Array.isArray(n.layers))return this.fire(new t.j(new Error("parameters.layers must be an Array."))),[];for(let e of n.layers){let n=this._layers[e];if(!n)return this.fire(new t.j(new Error(`The layer '${e}' does not exist in the map's style and cannot be queried for features.`))),[];a[n.source]=!0}}let i=[];n.availableImages=this._availableImages;let o=this._serializedAllLayers();for(let t in this.sourceCaches)n.layers&&!a[t]||i.push(V(this.sourceCaches[t],this._layers,o,e,n,r));return this.placement&&i.push(function(e,t,n,r,a,i,o){let s={},l=i.queryRenderedSymbols(r),c=[];for(let e of Object.keys(l).map(Number))c.push(o[e]);c.sort(H);for(let n of c){let r=n.featureIndex.lookupSymbolFeatures(l[n.bucketInstanceId],t,n.bucketIndex,n.sourceLayerIndex,a.filter,a.layers,a.availableImages,e);for(let e in r){let t=s[e]=s[e]||[],a=r[e];a.sort((e,t)=>{let r=n.featureSortOrder;if(r){let n=r.indexOf(e.featureIndex);return r.indexOf(t.featureIndex)-n}return t.featureIndex-e.featureIndex});for(let e of a)t.push(e)}}for(let t in s)s[t].forEach(r=>{let a=r.feature,i=n[e[t].source].getFeatureState(a.layer["source-layer"],a.id);a.source=a.layer.source,a.layer["source-layer"]&&(a.sourceLayer=a.layer["source-layer"]),a.state=i});return s}(this._layers,o,this.sourceCaches,e,n,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(i)}querySourceFeatures(e,n){n&&n.filter&&this._validate(t.u.filter,"querySourceFeatures.filter",n.filter,null,n);let r=this.sourceCaches[e];return r?function(e,t){let n=e.getRenderableIds().map(t=>e.getTileByID(t)),r=[],a={};for(let e=0;e<n.length;e++){let i=n[e],o=i.tileID.canonical.key;a[o]||(a[o]=!0,i.querySourceFeatures(r,t))}return r}(r,n):[]}getLight(){return this.light.getLight()}setLight(e,n={}){this._checkLoaded();let r=this.light.getLight(),a=!1;for(let n in e)if(!t.aE(e[n],r[n])){a=!0;break}if(!a)return;let o={now:i.now(),transition:t.e({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,n),this.light.updateTransitions(o)}getSky(){var e;return null===(e=this.stylesheet)||void 0===e?void 0:e.sky}setSky(e,n={}){let r=this.getSky(),a=!1;if(!e&&!r)return;if(e&&!r)a=!0;else if(!e&&r)a=!0;else for(let n in e)if(!t.aE(e[n],r[n])){a=!0;break}if(!a)return;let o={now:i.now(),transition:t.e({duration:300,delay:0},this.stylesheet.transition)};this.stylesheet.sky=e,this.sky.setSky(e,n),this.sky.updateTransitions(o)}_validate(e,n,r,a,i={}){return(!i||!1!==i.validate)&&dt(this,e.call(t.u,t.e({key:n,style:this.serialize(),value:r,styleSpec:t.v},a)))}_remove(e=!0){this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._loadStyleRequest&&(this._loadStyleRequest.abort(),this._loadStyleRequest=null),this._spriteRequest&&(this._spriteRequest.abort(),this._spriteRequest=null),le().off(ie,this._rtlPluginLoaded);for(let e in this._layers)this._layers[e].setEventedParent(null);for(let e in this.sourceCaches){let t=this.sourceCaches[e];t.setEventedParent(null),t.onRemove(this.map)}this.imageManager.setEventedParent(null),this.setEventedParent(null),e&&this.dispatcher.broadcast("RM",void 0),this.dispatcher.remove(e)}_clearSource(e){this.sourceCaches[e].clearTiles()}_reloadSource(e){this.sourceCaches[e].resume(),this.sourceCaches[e].reload()}_updateSources(e){for(let t in this.sourceCaches)this.sourceCaches[t].update(e,this.map.terrain)}_generateCollisionBoxes(){for(let e in this.sourceCaches)this._reloadSource(e)}_updatePlacement(e,t,n,r,a=!1){let o=!1,s=!1,l={};for(let t of this._order){let n=this._layers[t];if("symbol"!==n.type)continue;if(!l[n.source]){let e=this.sourceCaches[n.source];l[n.source]=e.getRenderableIds(!0).map(t=>e.getTileByID(t)).sort((e,t)=>t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1))}let r=this.crossTileSymbolIndex.addLayer(n,l[n.source],e.center.lng);o=o||r}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((a=a||this._layerOrderChanged||0===n)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(i.now(),e.zoom))&&(this.pauseablePlacement=new it(e,this.map.terrain,this._order,a,t,n,r,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(i.now()),s=!0),o&&this.pauseablePlacement.placement.setStale()),s||o)for(let e of this._order){let t=this._layers[e];"symbol"===t.type&&this.placement.updateLayerOpacities(t,l[t.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(i.now())}_releaseSymbolFadeTiles(){for(let e in this.sourceCaches)this.sourceCaches[e].releaseSymbolFadeTiles()}getImages(e,n){return t._(this,void 0,void 0,function*(){let e=yield this.imageManager.getImages(n.icons);this._updateTilesForChangedImages();let t=this.sourceCaches[n.source];return t&&t.setDependencies(n.tileID.key,n.type,n.icons),e})}getGlyphs(e,n){return t._(this,void 0,void 0,function*(){let e=yield this.glyphManager.getGlyphs(n.stacks),t=this.sourceCaches[n.source];return t&&t.setDependencies(n.tileID.key,n.type,[""]),e})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(e,n={}){this._checkLoaded(),e&&this._validate(t.u.glyphs,"glyphs",e,null,n)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=e,this.glyphManager.entries={},this.glyphManager.setURL(e))}addSprite(e,n,r={},a){this._checkLoaded();let i=[{id:e,url:n}],o=[...M(this.stylesheet.sprite),...i];this._validate(t.u.sprite,"sprite",o,null,r)||(this.stylesheet.sprite=o,this._loadSprite(i,!0,a))}removeSprite(e){this._checkLoaded();let n=M(this.stylesheet.sprite);if(n.find(t=>t.id===e)){if(this._spritesImagesIds[e])for(let t of this._spritesImagesIds[e])this.imageManager.removeImage(t),this._changedImages[t]=!0;n.splice(n.findIndex(t=>t.id===e),1),this.stylesheet.sprite=n.length>0?n:void 0,delete this._spritesImagesIds[e],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new t.k("data",{dataType:"style"}))}else this.fire(new t.j(new Error(`Sprite "${e}" doesn't exists on this map.`)))}getSprite(){return M(this.stylesheet.sprite)}setSprite(e,n={},r){this._checkLoaded(),e&&this._validate(t.u.sprite,"sprite",e,null,n)||(this.stylesheet.sprite=e,e?this._loadSprite(e,!0,r):(this._unloadSprite(),r&&r(null)))}}var ft=t.Y([{name:"a_pos",type:"Int16",components:2}]);let mt={prelude:gt("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\n","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}\n#ifdef TERRAIN3D\nuniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth;\n#endif\nconst highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) {\n#ifdef TERRAIN3D\nhighp float d=unpack(texture2D(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0));\n#else\nreturn 1.0;\n#endif\n}float calculate_visibility(vec4 pos) {\n#ifdef TERRAIN3D\nvec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;\n#else\nreturn 1.0;\n#endif\n}float ele(vec2 pos) {\n#ifdef TERRAIN3D\nvec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;\n#else\nreturn 0.0;\n#endif\n}float get_elevation(vec2 pos) {\n#ifdef TERRAIN3D\nvec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;\n#else\nreturn 0.0;\n#endif\n}"),background:gt("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),backgroundPattern:gt("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:gt("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_blur=v_data.z;float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"),clippingMask:gt("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:gt("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,get_elevation(floor(a_pos*0.5)),1);gl_Position=u_matrix*pos;}"),heatmapTexture:gt("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:gt("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_anchor_pos;attribute vec2 a_placed;attribute vec2 a_box_real;uniform mat4 u_matrix;uniform vec2 u_pixel_extrude_scale;varying float v_placed;varying float v_notUsed;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:gt("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:gt("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"),fill:gt("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),fillOutline:gt("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),fillOutlinePattern:gt("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),fillPattern:gt("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),fillExtrusion:gt("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;\n#ifdef TERRAIN3D\nattribute vec2 a_centroid;\n#endif\nvarying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),fillExtrusionPattern:gt("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;\n#ifdef TERRAIN3D\nattribute vec2 a_centroid;\n#endif\nvarying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),hillshadePrepare:gt("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:gt("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),line:gt("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}"),lineGradient:gt("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}"),linePattern:gt("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),lineSDF:gt("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),raster:gt("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),symbolIcon:gt("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_tex;varying float v_fade_opacity;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}"),symbolSDF:gt("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);inner_edge=inner_edge+gamma*gamma_scale;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);if (u_is_halo) {lowp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha=min(smoothstep(halo_edge-gamma_scaled,halo_edge+gamma_scaled,dist),1.0-alpha);}gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_data0;varying vec3 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),symbolTextAndIcon:gt("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec4 v_data0;varying vec4 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}"),terrain:gt("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:gt("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:gt("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:gt("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function gt(e,t){let n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=t.match(/attribute ([\w]+) ([\w]+)/g),a=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),i=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=i?i.concat(a):a,s={};return{fragmentSource:e=e.replace(n,(e,t,n,r,a)=>(s[a]=!0,"define"===t?`\n#ifndef HAS_UNIFORM_u_${a}\nvarying ${n} ${r} ${a};\n#else\nuniform ${n} ${r} u_${a};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${a}\n ${n} ${r} ${a} = u_${a};\n#endif\n`)),vertexSource:t=t.replace(n,(e,t,n,r,a)=>{let i="float"===r?"vec2":"vec4",o=a.match(/color/)?"color":i;return s[a]?"define"===t?`\n#ifndef HAS_UNIFORM_u_${a}\nuniform lowp float u_${a}_t;\nattribute ${n} ${i} a_${a};\nvarying ${n} ${r} ${a};\n#else\nuniform ${n} ${r} u_${a};\n#endif\n`:"vec4"===o?`\n#ifndef HAS_UNIFORM_u_${a}\n ${a} = a_${a};\n#else\n ${n} ${r} ${a} = u_${a};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${a}\n ${a} = unpack_mix_${o}(a_${a}, u_${a}_t);\n#else\n ${n} ${r} ${a} = u_${a};\n#endif\n`:"define"===t?`\n#ifndef HAS_UNIFORM_u_${a}\nuniform lowp float u_${a}_t;\nattribute ${n} ${i} a_${a};\n#else\nuniform ${n} ${r} u_${a};\n#endif\n`:"vec4"===o?`\n#ifndef HAS_UNIFORM_u_${a}\n ${n} ${r} ${a} = a_${a};\n#else\n ${n} ${r} ${a} = u_${a};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${a}\n ${n} ${r} ${a} = unpack_mix_${o}(a_${a}, u_${a}_t);\n#else\n ${n} ${r} ${a} = u_${a};\n#endif\n`}),staticAttributes:r,staticUniforms:o}}class yt{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(e,t,n,r,a,i,o,s,l){this.context=e;let c=this.boundPaintVertexBuffers.length!==r.length;for(let e=0;!c&&e<r.length;e++)this.boundPaintVertexBuffers[e]!==r[e]&&(c=!0);!this.vao||this.boundProgram!==t||this.boundLayoutVertexBuffer!==n||c||this.boundIndexBuffer!==a||this.boundVertexOffset!==i||this.boundDynamicVertexBuffer!==o||this.boundDynamicVertexBuffer2!==s||this.boundDynamicVertexBuffer3!==l?this.freshBind(t,n,r,a,i,o,s,l):(e.bindVertexArray.set(this.vao),o&&o.bind(),a&&a.dynamicDraw&&a.bind(),s&&s.bind(),l&&l.bind())}freshBind(e,t,n,r,a,i,o,s){let l=e.numAttributes,c=this.context,u=c.gl;this.vao&&this.destroy(),this.vao=c.createVertexArray(),c.bindVertexArray.set(this.vao),this.boundProgram=e,this.boundLayoutVertexBuffer=t,this.boundPaintVertexBuffers=n,this.boundIndexBuffer=r,this.boundVertexOffset=a,this.boundDynamicVertexBuffer=i,this.boundDynamicVertexBuffer2=o,this.boundDynamicVertexBuffer3=s,t.enableAttributes(u,e);for(let t of n)t.enableAttributes(u,e);i&&i.enableAttributes(u,e),o&&o.enableAttributes(u,e),s&&s.enableAttributes(u,e),t.bind(),t.setVertexAttribPointers(u,e,a);for(let t of n)t.bind(),t.setVertexAttribPointers(u,e,a);i&&(i.bind(),i.setVertexAttribPointers(u,e,a)),r&&r.bind(),o&&(o.bind(),o.setVertexAttribPointers(u,e,a)),s&&(s.bind(),s.setVertexAttribPointers(u,e,a)),c.currentNumAttributes=l}destroy(){this.vao&&(this.context.deleteVertexArray(this.vao),this.vao=null)}}let bt=(e,n,r,a,i)=>({u_matrix:e,u_texture:0,u_ele_delta:n,u_fog_matrix:r,u_fog_color:a?a.properties.get("fog-color"):t.aM.white,u_fog_ground_blend:a?a.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:a?a.calculateFogBlendOpacity(i):0,u_horizon_color:a?a.properties.get("horizon-color"):t.aM.white,u_horizon_fog_blend:a?a.properties.get("horizon-fog-blend"):1});function vt(e){let t=[];for(let n=0;n<e.length;n++){if(null===e[n])continue;let r=e[n].split(" ");t.push(r.pop())}return t}class Mt{constructor(e,n,r,a,i,o){let s=e.gl;this.program=s.createProgram();let l=vt(n.staticAttributes),c=r?r.getBinderAttributes():[],u=l.concat(c),d=mt.prelude.staticUniforms?vt(mt.prelude.staticUniforms):[],p=n.staticUniforms?vt(n.staticUniforms):[],h=r?r.getBinderUniforms():[],f=d.concat(p).concat(h),m=[];for(let e of f)m.indexOf(e)<0&&m.push(e);let g=r?r.defines():[];i&&g.push("#define OVERDRAW_INSPECTOR;"),o&&g.push("#define TERRAIN3D;");let y=g.concat(mt.prelude.fragmentSource,n.fragmentSource).join("\n"),b=g.concat(mt.prelude.vertexSource,n.vertexSource).join("\n"),v=s.createShader(s.FRAGMENT_SHADER);if(s.isContextLost())return void(this.failedToCreate=!0);if(s.shaderSource(v,y),s.compileShader(v),!s.getShaderParameter(v,s.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${s.getShaderInfoLog(v)}`);s.attachShader(this.program,v);let M=s.createShader(s.VERTEX_SHADER);if(s.isContextLost())return void(this.failedToCreate=!0);if(s.shaderSource(M,b),s.compileShader(M),!s.getShaderParameter(M,s.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${s.getShaderInfoLog(M)}`);s.attachShader(this.program,M),this.attributes={};let x={};this.numAttributes=u.length;for(let e=0;e<this.numAttributes;e++)u[e]&&(s.bindAttribLocation(this.program,e,u[e]),this.attributes[u[e]]=e);if(s.linkProgram(this.program),!s.getProgramParameter(this.program,s.LINK_STATUS))throw new Error(`Program failed to link: ${s.getProgramInfoLog(this.program)}`);s.deleteShader(M),s.deleteShader(v);for(let e=0;e<m.length;e++){let t=m[e];if(t&&!x[t]){let e=s.getUniformLocation(this.program,t);e&&(x[t]=e)}}var z,_;this.fixedUniforms=a(e,x),this.terrainUniforms=(z=e,_=x,{u_depth:new t.aH(z,_.u_depth),u_terrain:new t.aH(z,_.u_terrain),u_terrain_dim:new t.aI(z,_.u_terrain_dim),u_terrain_matrix:new t.aJ(z,_.u_terrain_matrix),u_terrain_unpack:new t.aK(z,_.u_terrain_unpack),u_terrain_exaggeration:new t.aI(z,_.u_terrain_exaggeration)}),this.binderUniforms=r?r.getUniforms(e,x):[]}draw(e,t,n,r,a,i,o,s,l,c,u,d,p,h,f,m,g,y){let b=e.gl;if(this.failedToCreate)return;if(e.program.set(this.program),e.setDepthMode(n),e.setStencilMode(r),e.setColorMode(a),e.setCullFace(i),s){e.activeTexture.set(b.TEXTURE2),b.bindTexture(b.TEXTURE_2D,s.depthTexture),e.activeTexture.set(b.TEXTURE3),b.bindTexture(b.TEXTURE_2D,s.texture);for(let e in this.terrainUniforms)this.terrainUniforms[e].set(s[e])}for(let e in this.fixedUniforms)this.fixedUniforms[e].set(o[e]);f&&f.setUniforms(e,this.binderUniforms,p,{zoom:h});let v=0;switch(t){case b.LINES:v=2;break;case b.TRIANGLES:v=3;break;case b.LINE_STRIP:v=1}for(let n of d.get()){let r=n.vaos||(n.vaos={});(r[l]||(r[l]=new yt)).bind(e,this,c,f?f.getPaintVertexBuffers():[],u,n.vertexOffset,m,g,y),b.drawElements(t,n.primitiveLength*v,b.UNSIGNED_SHORT,n.primitiveOffset*v*2)}}}function xt(e,t,n){let r=1/Ne(n,1,t.transform.tileZoom),a=Math.pow(2,n.tileID.overscaledZ),i=n.tileSize*Math.pow(2,t.transform.tileZoom)/a,o=i*(n.tileID.canonical.x+n.tileID.wrap*a),s=i*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[r,e.fromScale,e.toScale],u_fade:e.t,u_pixel_coord_upper:[o>>16,s>>16],u_pixel_coord_lower:[65535&o,65535&s]}}let zt=(e,n,r,a)=>{let i=n.style.light,o=i.properties.get("position"),s=[o.x,o.y,o.z],l=(c=new t.A(9),t.A!=Float32Array&&(c[1]=0,c[2]=0,c[3]=0,c[5]=0,c[6]=0,c[7]=0),c[0]=1,c[4]=1,c[8]=1,c);var c;"viewport"===i.properties.get("anchor")&&function(e,t){var n=Math.sin(t),r=Math.cos(t);e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1}(l,-n.transform.angle),function(e,t,n){var r=t[0],a=t[1],i=t[2];e[0]=r*n[0]+a*n[3]+i*n[6],e[1]=r*n[1]+a*n[4]+i*n[7],e[2]=r*n[2]+a*n[5]+i*n[8]}(s,s,l);let u=i.properties.get("color");return{u_matrix:e,u_lightpos:s,u_lightintensity:i.properties.get("intensity"),u_lightcolor:[u.r,u.g,u.b],u_vertical_gradient:+r,u_opacity:a}},_t=(e,n,r,a,i,o,s)=>t.e(zt(e,n,r,a),xt(o,n,s),{u_height_factor:-Math.pow(2,i.overscaledZ)/s.tileSize/8}),At=e=>({u_matrix:e}),Ot=(e,n,r,a)=>t.e(At(e),xt(r,n,a)),wt=(e,t)=>({u_matrix:e,u_world:t}),kt=(e,n,r,a,i)=>t.e(Ot(e,n,r,a),{u_world:i}),Tt=(e,t,n,r)=>{let a,i,o=e.transform;if("map"===r.paint.get("circle-pitch-alignment")){let e=Ne(n,1,o.zoom);a=!0,i=[e,e]}else a=!1,i=o.pixelsToGLUnits;return{u_camera_to_center_distance:o.cameraToCenterDistance,u_scale_with_map:+("map"===r.paint.get("circle-pitch-scale")),u_matrix:e.translatePosMatrix(t.posMatrix,n,r.paint.get("circle-translate"),r.paint.get("circle-translate-anchor")),u_pitch_with_map:+a,u_device_pixel_ratio:e.pixelRatio,u_extrude_scale:i}},St=(e,t,n)=>({u_matrix:e,u_inv_matrix:t,u_camera_to_center_distance:n.cameraToCenterDistance,u_viewport_size:[n.width,n.height]}),Ct=(e,t,n=1)=>({u_matrix:e,u_color:t,u_overlay:0,u_overlay_scale:n}),Et=e=>({u_matrix:e}),qt=(e,t,n,r)=>({u_matrix:e,u_extrude_scale:Ne(t,1,n),u_intensity:r}),Dt=(e,n,r,a)=>{let i=t.H();t.aP(i,0,e.width,e.height,0,0,1);let o=e.context.gl;return{u_matrix:i,u_world:[o.drawingBufferWidth,o.drawingBufferHeight],u_image:r,u_color_ramp:a,u_opacity:n.paint.get("heatmap-opacity")}};function Rt(e,n){let r=Math.pow(2,n.canonical.z),a=n.canonical.y;return[new t.Z(0,a/r).toLngLat().lat,new t.Z(0,(a+1)/r).toLngLat().lat]}let Lt=(e,t,n,r)=>{let a=e.transform;return{u_matrix:Bt(e,t,n,r),u_ratio:1/Ne(t,1,a.zoom),u_device_pixel_ratio:e.pixelRatio,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},It=(e,n,r,a,i)=>t.e(Lt(e,n,r,i),{u_image:0,u_image_height:a}),Wt=(e,t,n,r,a)=>{let i=e.transform,o=Pt(t,i);return{u_matrix:Bt(e,t,n,a),u_texsize:t.imageAtlasTexture.size,u_ratio:1/Ne(t,1,i.zoom),u_device_pixel_ratio:e.pixelRatio,u_image:0,u_scale:[o,r.fromScale,r.toScale],u_fade:r.t,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Nt=(e,n,r,a,i,o)=>{let s=e.lineAtlas,l=Pt(n,e.transform),c="round"===r.layout.get("line-cap"),u=s.getDash(a.from,c),d=s.getDash(a.to,c),p=u.width*i.fromScale,h=d.width*i.toScale;return t.e(Lt(e,n,r,o),{u_patternscale_a:[l/p,-u.height/2],u_patternscale_b:[l/h,-d.height/2],u_sdfgamma:s.width/(256*Math.min(p,h)*e.pixelRatio)/2,u_image:0,u_tex_y_a:u.y,u_tex_y_b:d.y,u_mix:i.t})};function Pt(e,t){return 1/Ne(e,1,t.tileZoom)}function Bt(e,t,n,r){return e.translatePosMatrix(r?r.posMatrix:t.tileID.posMatrix,t,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}let Ft=(e,t,n,r,a)=>{return{u_matrix:e,u_tl_parent:t,u_scale_parent:n,u_buffer_scale:1,u_fade_t:r.mix,u_opacity:r.opacity*a.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:a.paint.get("raster-brightness-min"),u_brightness_high:a.paint.get("raster-brightness-max"),u_saturation_factor:(o=a.paint.get("raster-saturation"),o>0?1-1/(1.001-o):-o),u_contrast_factor:(i=a.paint.get("raster-contrast"),i>0?1/(1-i):1+i),u_spin_weights:jt(a.paint.get("raster-hue-rotate"))};var i,o};function jt(e){e*=Math.PI/180;let t=Math.sin(e),n=Math.cos(e);return[(2*n+1)/3,(-Math.sqrt(3)*t-n+1)/3,(Math.sqrt(3)*t-n+1)/3]}let Ut=(e,t,n,r,a,i,o,s,l,c,u,d,p,h)=>{let f=o.transform;return{u_is_size_zoom_constant:+("constant"===e||"source"===e),u_is_size_feature_constant:+("constant"===e||"camera"===e),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_camera_to_center_distance:f.cameraToCenterDistance,u_pitch:f.pitch/360*2*Math.PI,u_rotate_symbol:+n,u_aspect_ratio:f.width/f.height,u_fade_change:o.options.fadeDuration?o.symbolFadeChange:1,u_matrix:s,u_label_plane_matrix:l,u_coord_matrix:c,u_is_text:+d,u_pitch_with_map:+r,u_is_along_line:a,u_is_variable_anchor:i,u_texsize:p,u_texture:0,u_translation:u,u_pitched_scale:h}},Vt=(e,n,r,a,i,o,s,l,c,u,d,p,h,f,m)=>{let g=s.transform;return t.e(Ut(e,n,r,a,i,o,s,l,c,u,d,p,h,m),{u_gamma_scale:a?Math.cos(g._pitch)*g.cameraToCenterDistance:1,u_device_pixel_ratio:s.pixelRatio,u_is_halo:+f})},Ht=(e,n,r,a,i,o,s,l,c,u,d,p,h,f)=>t.e(Vt(e,n,r,a,i,o,s,l,c,u,d,!0,p,!0,f),{u_texsize_icon:h,u_texture_icon:1}),Xt=(e,t,n)=>({u_matrix:e,u_opacity:t,u_color:n}),Gt=(e,n,r,a,i,o)=>t.e(function(e,t,n,r){let a=n.imageManager.getPattern(e.from.toString()),i=n.imageManager.getPattern(e.to.toString()),{width:o,height:s}=n.imageManager.getPixelSize(),l=Math.pow(2,r.tileID.overscaledZ),c=r.tileSize*Math.pow(2,n.transform.tileZoom)/l,u=c*(r.tileID.canonical.x+r.tileID.wrap*l),d=c*r.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:a.tl,u_pattern_br_a:a.br,u_pattern_tl_b:i.tl,u_pattern_br_b:i.br,u_texsize:[o,s],u_mix:t.t,u_pattern_size_a:a.displaySize,u_pattern_size_b:i.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/Ne(r,1,n.transform.tileZoom),u_pixel_coord_upper:[u>>16,d>>16],u_pixel_coord_lower:[65535&u,65535&d]}}(a,o,r,i),{u_matrix:e,u_opacity:n}),Yt={fillExtrusion:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_lightpos:new t.aN(e,n.u_lightpos),u_lightintensity:new t.aI(e,n.u_lightintensity),u_lightcolor:new t.aN(e,n.u_lightcolor),u_vertical_gradient:new t.aI(e,n.u_vertical_gradient),u_opacity:new t.aI(e,n.u_opacity)}),fillExtrusionPattern:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_lightpos:new t.aN(e,n.u_lightpos),u_lightintensity:new t.aI(e,n.u_lightintensity),u_lightcolor:new t.aN(e,n.u_lightcolor),u_vertical_gradient:new t.aI(e,n.u_vertical_gradient),u_height_factor:new t.aI(e,n.u_height_factor),u_image:new t.aH(e,n.u_image),u_texsize:new t.aO(e,n.u_texsize),u_pixel_coord_upper:new t.aO(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.aO(e,n.u_pixel_coord_lower),u_scale:new t.aN(e,n.u_scale),u_fade:new t.aI(e,n.u_fade),u_opacity:new t.aI(e,n.u_opacity)}),fill:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix)}),fillPattern:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_image:new t.aH(e,n.u_image),u_texsize:new t.aO(e,n.u_texsize),u_pixel_coord_upper:new t.aO(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.aO(e,n.u_pixel_coord_lower),u_scale:new t.aN(e,n.u_scale),u_fade:new t.aI(e,n.u_fade)}),fillOutline:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_world:new t.aO(e,n.u_world)}),fillOutlinePattern:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_world:new t.aO(e,n.u_world),u_image:new t.aH(e,n.u_image),u_texsize:new t.aO(e,n.u_texsize),u_pixel_coord_upper:new t.aO(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.aO(e,n.u_pixel_coord_lower),u_scale:new t.aN(e,n.u_scale),u_fade:new t.aI(e,n.u_fade)}),circle:(e,n)=>({u_camera_to_center_distance:new t.aI(e,n.u_camera_to_center_distance),u_scale_with_map:new t.aH(e,n.u_scale_with_map),u_pitch_with_map:new t.aH(e,n.u_pitch_with_map),u_extrude_scale:new t.aO(e,n.u_extrude_scale),u_device_pixel_ratio:new t.aI(e,n.u_device_pixel_ratio),u_matrix:new t.aJ(e,n.u_matrix)}),collisionBox:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_pixel_extrude_scale:new t.aO(e,n.u_pixel_extrude_scale)}),collisionCircle:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_inv_matrix:new t.aJ(e,n.u_inv_matrix),u_camera_to_center_distance:new t.aI(e,n.u_camera_to_center_distance),u_viewport_size:new t.aO(e,n.u_viewport_size)}),debug:(e,n)=>({u_color:new t.aL(e,n.u_color),u_matrix:new t.aJ(e,n.u_matrix),u_overlay:new t.aH(e,n.u_overlay),u_overlay_scale:new t.aI(e,n.u_overlay_scale)}),clippingMask:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix)}),heatmap:(e,n)=>({u_extrude_scale:new t.aI(e,n.u_extrude_scale),u_intensity:new t.aI(e,n.u_intensity),u_matrix:new t.aJ(e,n.u_matrix)}),heatmapTexture:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_world:new t.aO(e,n.u_world),u_image:new t.aH(e,n.u_image),u_color_ramp:new t.aH(e,n.u_color_ramp),u_opacity:new t.aI(e,n.u_opacity)}),hillshade:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_image:new t.aH(e,n.u_image),u_latrange:new t.aO(e,n.u_latrange),u_light:new t.aO(e,n.u_light),u_shadow:new t.aL(e,n.u_shadow),u_highlight:new t.aL(e,n.u_highlight),u_accent:new t.aL(e,n.u_accent)}),hillshadePrepare:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_image:new t.aH(e,n.u_image),u_dimension:new t.aO(e,n.u_dimension),u_zoom:new t.aI(e,n.u_zoom),u_unpack:new t.aK(e,n.u_unpack)}),line:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_ratio:new t.aI(e,n.u_ratio),u_device_pixel_ratio:new t.aI(e,n.u_device_pixel_ratio),u_units_to_pixels:new t.aO(e,n.u_units_to_pixels)}),lineGradient:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_ratio:new t.aI(e,n.u_ratio),u_device_pixel_ratio:new t.aI(e,n.u_device_pixel_ratio),u_units_to_pixels:new t.aO(e,n.u_units_to_pixels),u_image:new t.aH(e,n.u_image),u_image_height:new t.aI(e,n.u_image_height)}),linePattern:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_texsize:new t.aO(e,n.u_texsize),u_ratio:new t.aI(e,n.u_ratio),u_device_pixel_ratio:new t.aI(e,n.u_device_pixel_ratio),u_image:new t.aH(e,n.u_image),u_units_to_pixels:new t.aO(e,n.u_units_to_pixels),u_scale:new t.aN(e,n.u_scale),u_fade:new t.aI(e,n.u_fade)}),lineSDF:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_ratio:new t.aI(e,n.u_ratio),u_device_pixel_ratio:new t.aI(e,n.u_device_pixel_ratio),u_units_to_pixels:new t.aO(e,n.u_units_to_pixels),u_patternscale_a:new t.aO(e,n.u_patternscale_a),u_patternscale_b:new t.aO(e,n.u_patternscale_b),u_sdfgamma:new t.aI(e,n.u_sdfgamma),u_image:new t.aH(e,n.u_image),u_tex_y_a:new t.aI(e,n.u_tex_y_a),u_tex_y_b:new t.aI(e,n.u_tex_y_b),u_mix:new t.aI(e,n.u_mix)}),raster:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_tl_parent:new t.aO(e,n.u_tl_parent),u_scale_parent:new t.aI(e,n.u_scale_parent),u_buffer_scale:new t.aI(e,n.u_buffer_scale),u_fade_t:new t.aI(e,n.u_fade_t),u_opacity:new t.aI(e,n.u_opacity),u_image0:new t.aH(e,n.u_image0),u_image1:new t.aH(e,n.u_image1),u_brightness_low:new t.aI(e,n.u_brightness_low),u_brightness_high:new t.aI(e,n.u_brightness_high),u_saturation_factor:new t.aI(e,n.u_saturation_factor),u_contrast_factor:new t.aI(e,n.u_contrast_factor),u_spin_weights:new t.aN(e,n.u_spin_weights)}),symbolIcon:(e,n)=>({u_is_size_zoom_constant:new t.aH(e,n.u_is_size_zoom_constant),u_is_size_feature_constant:new t.aH(e,n.u_is_size_feature_constant),u_size_t:new t.aI(e,n.u_size_t),u_size:new t.aI(e,n.u_size),u_camera_to_center_distance:new t.aI(e,n.u_camera_to_center_distance),u_pitch:new t.aI(e,n.u_pitch),u_rotate_symbol:new t.aH(e,n.u_rotate_symbol),u_aspect_ratio:new t.aI(e,n.u_aspect_ratio),u_fade_change:new t.aI(e,n.u_fade_change),u_matrix:new t.aJ(e,n.u_matrix),u_label_plane_matrix:new t.aJ(e,n.u_label_plane_matrix),u_coord_matrix:new t.aJ(e,n.u_coord_matrix),u_is_text:new t.aH(e,n.u_is_text),u_pitch_with_map:new t.aH(e,n.u_pitch_with_map),u_is_along_line:new t.aH(e,n.u_is_along_line),u_is_variable_anchor:new t.aH(e,n.u_is_variable_anchor),u_texsize:new t.aO(e,n.u_texsize),u_texture:new t.aH(e,n.u_texture),u_translation:new t.aO(e,n.u_translation),u_pitched_scale:new t.aI(e,n.u_pitched_scale)}),symbolSDF:(e,n)=>({u_is_size_zoom_constant:new t.aH(e,n.u_is_size_zoom_constant),u_is_size_feature_constant:new t.aH(e,n.u_is_size_feature_constant),u_size_t:new t.aI(e,n.u_size_t),u_size:new t.aI(e,n.u_size),u_camera_to_center_distance:new t.aI(e,n.u_camera_to_center_distance),u_pitch:new t.aI(e,n.u_pitch),u_rotate_symbol:new t.aH(e,n.u_rotate_symbol),u_aspect_ratio:new t.aI(e,n.u_aspect_ratio),u_fade_change:new t.aI(e,n.u_fade_change),u_matrix:new t.aJ(e,n.u_matrix),u_label_plane_matrix:new t.aJ(e,n.u_label_plane_matrix),u_coord_matrix:new t.aJ(e,n.u_coord_matrix),u_is_text:new t.aH(e,n.u_is_text),u_pitch_with_map:new t.aH(e,n.u_pitch_with_map),u_is_along_line:new t.aH(e,n.u_is_along_line),u_is_variable_anchor:new t.aH(e,n.u_is_variable_anchor),u_texsize:new t.aO(e,n.u_texsize),u_texture:new t.aH(e,n.u_texture),u_gamma_scale:new t.aI(e,n.u_gamma_scale),u_device_pixel_ratio:new t.aI(e,n.u_device_pixel_ratio),u_is_halo:new t.aH(e,n.u_is_halo),u_translation:new t.aO(e,n.u_translation),u_pitched_scale:new t.aI(e,n.u_pitched_scale)}),symbolTextAndIcon:(e,n)=>({u_is_size_zoom_constant:new t.aH(e,n.u_is_size_zoom_constant),u_is_size_feature_constant:new t.aH(e,n.u_is_size_feature_constant),u_size_t:new t.aI(e,n.u_size_t),u_size:new t.aI(e,n.u_size),u_camera_to_center_distance:new t.aI(e,n.u_camera_to_center_distance),u_pitch:new t.aI(e,n.u_pitch),u_rotate_symbol:new t.aH(e,n.u_rotate_symbol),u_aspect_ratio:new t.aI(e,n.u_aspect_ratio),u_fade_change:new t.aI(e,n.u_fade_change),u_matrix:new t.aJ(e,n.u_matrix),u_label_plane_matrix:new t.aJ(e,n.u_label_plane_matrix),u_coord_matrix:new t.aJ(e,n.u_coord_matrix),u_is_text:new t.aH(e,n.u_is_text),u_pitch_with_map:new t.aH(e,n.u_pitch_with_map),u_is_along_line:new t.aH(e,n.u_is_along_line),u_is_variable_anchor:new t.aH(e,n.u_is_variable_anchor),u_texsize:new t.aO(e,n.u_texsize),u_texsize_icon:new t.aO(e,n.u_texsize_icon),u_texture:new t.aH(e,n.u_texture),u_texture_icon:new t.aH(e,n.u_texture_icon),u_gamma_scale:new t.aI(e,n.u_gamma_scale),u_device_pixel_ratio:new t.aI(e,n.u_device_pixel_ratio),u_is_halo:new t.aH(e,n.u_is_halo),u_translation:new t.aO(e,n.u_translation),u_pitched_scale:new t.aI(e,n.u_pitched_scale)}),background:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_opacity:new t.aI(e,n.u_opacity),u_color:new t.aL(e,n.u_color)}),backgroundPattern:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_opacity:new t.aI(e,n.u_opacity),u_image:new t.aH(e,n.u_image),u_pattern_tl_a:new t.aO(e,n.u_pattern_tl_a),u_pattern_br_a:new t.aO(e,n.u_pattern_br_a),u_pattern_tl_b:new t.aO(e,n.u_pattern_tl_b),u_pattern_br_b:new t.aO(e,n.u_pattern_br_b),u_texsize:new t.aO(e,n.u_texsize),u_mix:new t.aI(e,n.u_mix),u_pattern_size_a:new t.aO(e,n.u_pattern_size_a),u_pattern_size_b:new t.aO(e,n.u_pattern_size_b),u_scale_a:new t.aI(e,n.u_scale_a),u_scale_b:new t.aI(e,n.u_scale_b),u_pixel_coord_upper:new t.aO(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.aO(e,n.u_pixel_coord_lower),u_tile_units_to_pixels:new t.aI(e,n.u_tile_units_to_pixels)}),terrain:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_texture:new t.aH(e,n.u_texture),u_ele_delta:new t.aI(e,n.u_ele_delta),u_fog_matrix:new t.aJ(e,n.u_fog_matrix),u_fog_color:new t.aL(e,n.u_fog_color),u_fog_ground_blend:new t.aI(e,n.u_fog_ground_blend),u_fog_ground_blend_opacity:new t.aI(e,n.u_fog_ground_blend_opacity),u_horizon_color:new t.aL(e,n.u_horizon_color),u_horizon_fog_blend:new t.aI(e,n.u_horizon_fog_blend)}),terrainDepth:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_ele_delta:new t.aI(e,n.u_ele_delta)}),terrainCoords:(e,n)=>({u_matrix:new t.aJ(e,n.u_matrix),u_texture:new t.aH(e,n.u_texture),u_terrain_coords_id:new t.aI(e,n.u_terrain_coords_id),u_ele_delta:new t.aI(e,n.u_ele_delta)}),sky:(e,n)=>({u_sky_color:new t.aL(e,n.u_sky_color),u_horizon_color:new t.aL(e,n.u_horizon_color),u_horizon:new t.aI(e,n.u_horizon),u_sky_horizon_blend:new t.aI(e,n.u_sky_horizon_blend)})};class Zt{constructor(e,t,n){this.context=e;let r=e.gl;this.buffer=r.createBuffer(),this.dynamicDraw=!!n,this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),r.bufferData(r.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){let t=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let $t={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class Jt{constructor(e,t,n,r){this.length=t.length,this.attributes=n,this.itemSize=t.bytesPerElement,this.dynamicDraw=r,this.context=e;let a=e.gl;this.buffer=a.createBuffer(),e.bindVertexBuffer.set(this.buffer),a.bufferData(a.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?a.DYNAMIC_DRAW:a.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){if(e.length!==this.length)throw new Error(`Length of new data is ${e.length}, which doesn't match current length of ${this.length}`);let t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let n=0;n<this.attributes.length;n++){let r=t.attributes[this.attributes[n].name];void 0!==r&&e.enableVertexAttribArray(r)}}setVertexAttribPointers(e,t,n){for(let r=0;r<this.attributes.length;r++){let a=this.attributes[r],i=t.attributes[a.name];void 0!==i&&e.vertexAttribPointer(i,a.components,e[$t[a.type]],!1,this.itemSize,a.offset+this.itemSize*(n||0))}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let Qt=new WeakMap;function Kt(e){var t;if(Qt.has(e))return Qt.get(e);{let n=null===(t=e.getParameter(e.VERSION))||void 0===t?void 0:t.startsWith("WebGL 2.0");return Qt.set(e,n),n}}class en{constructor(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(e){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class tn extends en{getDefault(){return t.aM.transparent}set(e){let t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}}class nn extends en{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}}class rn extends en{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}}class an extends en{getDefault(){return[!0,!0,!0,!0]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class on extends en{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}}class sn extends en{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}}class ln extends en{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(e){let t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)}}class cn extends en{getDefault(){let e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)}}class un extends en{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}}class dn extends en{getDefault(){return[0,1]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)}}class pn extends en{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}}class hn extends en{getDefault(){return this.gl.LESS}set(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)}}class fn extends en{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}}class mn extends en{getDefault(){let e=this.gl;return[e.ONE,e.ZERO]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.blendFunc(e[0],e[1]),this.current=e,this.dirty=!1)}}class gn extends en{getDefault(){return t.aM.transparent}set(e){let t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}}class yn extends en{getDefault(){return this.gl.FUNC_ADD}set(e){(e!==this.current||this.dirty)&&(this.gl.blendEquation(e),this.current=e,this.dirty=!1)}}class bn extends en{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}}class vn extends en{getDefault(){return this.gl.BACK}set(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)}}class Mn extends en{getDefault(){return this.gl.CCW}set(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)}}class xn extends en{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}}class zn extends en{getDefault(){return this.gl.TEXTURE0}set(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)}}class _n extends en{getDefault(){let e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class An extends en{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}}class On extends en{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class wn extends en{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}}class kn extends en{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class Tn extends en{getDefault(){return null}set(e){let t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class Sn extends en{getDefault(){return null}set(e){var t;if(e===this.current&&!this.dirty)return;let n=this.gl;Kt(n)?n.bindVertexArray(e):null===(t=n.getExtension("OES_vertex_array_object"))||void 0===t||t.bindVertexArrayOES(e),this.current=e,this.dirty=!1}}class Cn extends en{getDefault(){return 4}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}}class En extends en{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}}class qn extends en{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}}class Dn extends en{constructor(e,t){super(e),this.context=e,this.parent=t}getDefault(){return null}}class Rn extends Dn{setDirty(){this.dirty=!0}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}}class Ln extends Dn{set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class In extends Dn{set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class Wn{constructor(e,t,n,r,a){this.context=e,this.width=t,this.height=n;let i=e.gl,o=this.framebuffer=i.createFramebuffer();if(this.colorAttachment=new Rn(e,o),r)this.depthAttachment=a?new In(e,o):new Ln(e,o);else if(a)throw new Error("Stencil cannot be set without depth");if(i.checkFramebufferStatus(i.FRAMEBUFFER)!==i.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer is not complete")}destroy(){let e=this.context.gl,t=this.colorAttachment.get();if(t&&e.deleteTexture(t),this.depthAttachment){let t=this.depthAttachment.get();t&&e.deleteRenderbuffer(t)}e.deleteFramebuffer(this.framebuffer)}}class Nn{constructor(e,t,n){this.blendFunction=e,this.blendColor=t,this.mask=n}}Nn.Replace=[1,0],Nn.disabled=new Nn(Nn.Replace,t.aM.transparent,[!1,!1,!1,!1]),Nn.unblended=new Nn(Nn.Replace,t.aM.transparent,[!0,!0,!0,!0]),Nn.alphaBlended=new Nn([1,771],t.aM.transparent,[!0,!0,!0,!0]);class Pn{constructor(e){var t,n;if(this.gl=e,this.clearColor=new tn(this),this.clearDepth=new nn(this),this.clearStencil=new rn(this),this.colorMask=new an(this),this.depthMask=new on(this),this.stencilMask=new sn(this),this.stencilFunc=new ln(this),this.stencilOp=new cn(this),this.stencilTest=new un(this),this.depthRange=new dn(this),this.depthTest=new pn(this),this.depthFunc=new hn(this),this.blend=new fn(this),this.blendFunc=new mn(this),this.blendColor=new gn(this),this.blendEquation=new yn(this),this.cullFace=new bn(this),this.cullFaceSide=new vn(this),this.frontFace=new Mn(this),this.program=new xn(this),this.activeTexture=new zn(this),this.viewport=new _n(this),this.bindFramebuffer=new An(this),this.bindRenderbuffer=new On(this),this.bindTexture=new wn(this),this.bindVertexBuffer=new kn(this),this.bindElementBuffer=new Tn(this),this.bindVertexArray=new Sn(this),this.pixelStoreUnpack=new Cn(this),this.pixelStoreUnpackPremultiplyAlpha=new En(this),this.pixelStoreUnpackFlipY=new qn(this),this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),Kt(e)){this.HALF_FLOAT=e.HALF_FLOAT;let r=e.getExtension("EXT_color_buffer_half_float");this.RGBA16F=null!==(t=e.RGBA16F)&&void 0!==t?t:r?.RGBA16F_EXT,this.RGB16F=null!==(n=e.RGB16F)&&void 0!==n?n:r?.RGB16F_EXT,e.getExtension("EXT_color_buffer_float")}else{e.getExtension("EXT_color_buffer_half_float"),e.getExtension("OES_texture_half_float_linear");let t=e.getExtension("OES_texture_half_float");this.HALF_FLOAT=t?.HALF_FLOAT_OES}}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.bindVertexArray.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(e,t){return new Zt(this,e,t)}createVertexBuffer(e,t,n){return new Jt(this,e,t,n)}createRenderbuffer(e,t,n){let r=this.gl,a=r.createRenderbuffer();return this.bindRenderbuffer.set(a),r.renderbufferStorage(r.RENDERBUFFER,e,t,n),this.bindRenderbuffer.set(null),a}createFramebuffer(e,t,n,r){return new Wn(this,e,t,n,r)}clear({color:e,depth:t,stencil:n}){let r=this.gl,a=0;e&&(a|=r.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==t&&(a|=r.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(t),this.depthMask.set(!0)),void 0!==n&&(a|=r.STENCIL_BUFFER_BIT,this.clearStencil.set(n),this.stencilMask.set(255)),r.clear(a)}setCullFace(e){!1===e.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))}setDepthMode(e){e.func!==this.gl.ALWAYS||e.mask?(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range)):this.depthTest.set(!1)}setStencilMode(e){e.test.func!==this.gl.ALWAYS||e.mask?(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask})):this.stencilTest.set(!1)}setColorMode(e){t.aE(e.blendFunction,Nn.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)}createVertexArray(){var e;return Kt(this.gl)?this.gl.createVertexArray():null===(e=this.gl.getExtension("OES_vertex_array_object"))||void 0===e?void 0:e.createVertexArrayOES()}deleteVertexArray(e){var t;return Kt(this.gl)?this.gl.deleteVertexArray(e):null===(t=this.gl.getExtension("OES_vertex_array_object"))||void 0===t?void 0:t.deleteVertexArrayOES(e)}unbindVAO(){this.bindVertexArray.set(null)}}class Bn{constructor(e,t,n){this.func=e,this.mask=t,this.range=n}}Bn.ReadOnly=!1,Bn.ReadWrite=!0,Bn.disabled=new Bn(519,Bn.ReadOnly,[0,1]);let Fn,jn=7680;class Un{constructor(e,t,n,r,a,i){this.test=e,this.ref=t,this.mask=n,this.fail=r,this.depthFail=a,this.pass=i}}Un.disabled=new Un({func:519,mask:0},0,0,jn,jn,jn);class Vn{constructor(e,t,n){this.enable=e,this.mode=t,this.frontFace=n}}function Hn(e,n,r,a,i){let o=e.context,s=o.gl,l=e.useProgram("collisionBox"),c=[],u=0,d=0;for(let h=0;h<a.length;h++){let f=a[h],m=n.getTile(f).getBucket(r);if(!m)continue;let g=i?m.textCollisionBox:m.iconCollisionBox,y=m.collisionCircleArray;if(y.length>0){let n=t.H();t.aQ(n,m.placementInvProjMatrix,e.transform.glCoordMatrix),t.aQ(n,n,m.placementViewportMatrix),c.push({circleArray:y,circleOffset:d,transform:f.posMatrix,invTransform:n,coord:f}),u+=y.length/4,d=u}g&&l.draw(o,s.LINES,Bn.disabled,Un.disabled,e.colorModeForRenderPass(),Vn.disabled,{u_matrix:f.posMatrix,u_pixel_extrude_scale:[1/(p=e.transform).width,1/p.height]},e.style.map.terrain&&e.style.map.terrain.getTerrainData(f),r.id,g.layoutVertexBuffer,g.indexBuffer,g.segments,null,e.transform.zoom,null,null,g.collisionVertexBuffer)}var p;if(!i||!c.length)return;let h=e.useProgram("collisionCircle"),f=new t.aR;f.resize(4*u),f._trim();let m=0;for(let e of c)for(let t=0;t<e.circleArray.length/4;t++){let n=4*t,r=e.circleArray[n+0],a=e.circleArray[n+1],i=e.circleArray[n+2],o=e.circleArray[n+3];f.emplace(m++,r,a,i,o,0),f.emplace(m++,r,a,i,o,1),f.emplace(m++,r,a,i,o,2),f.emplace(m++,r,a,i,o,3)}(!Fn||Fn.length<2*u)&&(Fn=function(e){let n=2*e,r=new t.aT;r.resize(n),r._trim();for(let e=0;e<n;e++){let t=6*e;r.uint16[t+0]=4*e+0,r.uint16[t+1]=4*e+1,r.uint16[t+2]=4*e+2,r.uint16[t+3]=4*e+2,r.uint16[t+4]=4*e+3,r.uint16[t+5]=4*e+0}return r}(u));let g=o.createIndexBuffer(Fn,!0),y=o.createVertexBuffer(f,t.aS.members,!0);for(let n of c){let a=St(n.transform,n.invTransform,e.transform);h.draw(o,s.TRIANGLES,Bn.disabled,Un.disabled,e.colorModeForRenderPass(),Vn.disabled,a,e.style.map.terrain&&e.style.map.terrain.getTerrainData(n.coord),r.id,y,g,t.a0.simpleSegment(0,2*n.circleOffset,n.circleArray.length,n.circleArray.length/2),null,e.transform.zoom,null,null,null)}y.destroy(),g.destroy()}Vn.disabled=new Vn(!1,1029,2305),Vn.backCCW=new Vn(!0,1029,2305);let Xn=t.an(new Float32Array(16));function Gn(e,n,r,a,i,o){let{horizontalAlign:s,verticalAlign:l}=t.au(e);return new t.P((-(s-.5)*n/i+a[0])*o,(-(l-.5)*r/i+a[1])*o)}function Yn(e,n,r,a,i,o){let s=n.tileAnchorPoint.add(new t.P(n.translation[0],n.translation[1]));if(n.pitchWithMap){let e=a.mult(o);r||(e=e.rotate(-i));let t=s.add(e);return Me(t.x,t.y,n.labelPlaneMatrix,n.getElevation).point}if(r){let t=Se(n.tileAnchorPoint.x+1,n.tileAnchorPoint.y,n).point.sub(e),r=Math.atan(t.y/t.x)+(t.x<0?Math.PI:0);return e.add(a.rotate(r))}return e.add(a)}function Zn(e,n,r,a,i,o,s,l,c,u,d,p,h,f){let m=e.text.placedSymbolArray,g=e.text.dynamicLayoutVertexArray,y=e.icon.dynamicLayoutVertexArray,b={};g.clear();for(let y=0;y<m.length;y++){let v=m.get(y),M=v.hidden||!v.crossTileID||e.allowVerticalPlacement&&!v.placedOrientation?null:a[v.crossTileID];if(M){let a=new t.P(v.anchorX,v.anchorY),m={getElevation:f,width:i.width,height:i.height,labelPlaneMatrix:o,lineVertexArray:null,pitchWithMap:r,projection:d,projectionCache:null,tileAnchorPoint:a,translation:p,unwrappedTileID:h},y=r?Me(a.x,a.y,s,f):Se(a.x,a.y,m),x=xe(i.cameraToCenterDistance,y.signedDistanceFromCamera),z=t.ai(e.textSizeData,c,v)*x/t.ap;r&&(z*=e.tilePixelRatio/l);let{width:_,height:A,anchor:O,textOffset:w,textBoxScale:k}=M,T=Gn(O,_,A,w,k,z),S=d.getPitchedTextCorrection(i,a.add(new t.P(p[0],p[1])),h),C=Yn(y.point,m,n,T,i.angle,S),E=e.allowVerticalPlacement&&v.placedOrientation===t.ah.vertical?Math.PI/2:0;for(let e=0;e<v.numGlyphs;e++)t.aj(g,C,E);u&&v.associatedIconIndex>=0&&(b[v.associatedIconIndex]={shiftedAnchor:C,angle:E})}else Re(v.numGlyphs,g)}if(u){y.clear();let n=e.icon.placedSymbolArray;for(let e=0;e<n.length;e++){let r=n.get(e);if(r.hidden)Re(r.numGlyphs,y);else{let n=b[e];if(n)for(let e=0;e<r.numGlyphs;e++)t.aj(y,n.shiftedAnchor,n.angle);else Re(r.numGlyphs,y)}}e.icon.dynamicLayoutVertexBuffer.updateData(y)}e.text.dynamicLayoutVertexBuffer.updateData(g)}function $n(e,t,n){return n.iconsInText&&t?"symbolTextAndIcon":e?"symbolSDF":"symbolIcon"}function Jn(e,n,r,a,i,o,s,l,c,u,d,p){let h=e.context,f=h.gl,m=e.transform,g=rt(),y="map"===l,b="map"===c,v="viewport"!==l&&"point"!==r.layout.get("symbol-placement"),M=y&&!b&&!v,x=!b&&v,z=!r.layout.get("symbol-sort-key").isConstant(),_=!1,A=e.depthModeForSublayer(0,Bn.ReadOnly),O=r._unevaluatedLayout.hasValue("text-variable-anchor")||r._unevaluatedLayout.hasValue("text-variable-anchor-offset"),w=[],k=g.getCircleRadiusCorrection(m);for(let l of a){let a=n.getTile(l),c=a.getBucket(r);if(!c)continue;let d=i?c.text:c.icon;if(!d||!d.segments.get().length||!d.hasVisibleVertices)continue;let p,h,A,T,S=d.programConfigurations.get(r.id),C=i||c.sdfIcons,E=i?c.textSizeData:c.iconSizeData,q=b||0!==m.pitch,D=e.useProgram($n(C,i,c),S),R=t.ag(E,m.zoom),L=e.style.map.terrain&&e.style.map.terrain.getTerrainData(l),I=[0,0],W=null;if(i)h=a.glyphAtlasTexture,A=f.LINEAR,p=a.glyphAtlasTexture.size,c.iconsInText&&(I=a.imageAtlasTexture.size,W=a.imageAtlasTexture,T=q||e.options.rotating||e.options.zooming||"composite"===E.kind||"camera"===E.kind?f.LINEAR:f.NEAREST);else{let t=1!==r.layout.get("icon-size").constantOr(0)||c.iconsNeedLinear;h=a.imageAtlasTexture,A=C||e.options.rotating||e.options.zooming||t||q?f.LINEAR:f.NEAREST,p=a.imageAtlasTexture.size}let N=Ne(a,1,e.transform.zoom),P=x?l.posMatrix:Xn,B=be(P,b,y,e.transform,N),F=ve(P,b,y,e.transform,N),j=ve(l.posMatrix,b,y,e.transform,N),U=g.translatePosition(e.transform,a,o,s),V=O&&c.hasTextData(),H="none"!==r.layout.get("icon-text-fit")&&V&&c.hasIconData();if(v){let t=e.style.map.terrain?(t,n)=>e.style.map.terrain.getElevation(l,t,n):null,n="map"===r.layout.get("text-rotation-alignment");_e(c,l.posMatrix,e,i,B,j,b,u,n,g,l.toUnwrapped(),m.width,m.height,U,t)}let X,G=l.posMatrix,Y=i&&O||H,Z=v||Y?Xn:B,$=F,J=C&&0!==r.paint.get(i?"text-halo-width":"icon-halo-width").constantOr(1);X=C?c.iconsInText?Ht(E.kind,R,M,b,v,Y,e,G,Z,$,U,p,I,k):Vt(E.kind,R,M,b,v,Y,e,G,Z,$,U,i,p,!0,k):Ut(E.kind,R,M,b,v,Y,e,G,Z,$,U,i,p,k);let Q={program:D,buffers:d,uniformValues:X,atlasTexture:h,atlasTextureIcon:W,atlasInterpolation:A,atlasInterpolationIcon:T,isSDF:C,hasHalo:J};if(z&&c.canOverlap){_=!0;let e=d.segments.get();for(let n of e)w.push({segments:new t.a0([n]),sortKey:n.sortKey,state:Q,terrainData:L})}else w.push({segments:d.segments,sortKey:0,state:Q,terrainData:L})}_&&w.sort((e,t)=>e.sortKey-t.sortKey);for(let t of w){let n=t.state;if(h.activeTexture.set(f.TEXTURE0),n.atlasTexture.bind(n.atlasInterpolation,f.CLAMP_TO_EDGE),n.atlasTextureIcon&&(h.activeTexture.set(f.TEXTURE1),n.atlasTextureIcon&&n.atlasTextureIcon.bind(n.atlasInterpolationIcon,f.CLAMP_TO_EDGE)),n.isSDF){let a=n.uniformValues;n.hasHalo&&(a.u_is_halo=1,Qn(n.buffers,t.segments,r,e,n.program,A,d,p,a,t.terrainData)),a.u_is_halo=0}Qn(n.buffers,t.segments,r,e,n.program,A,d,p,n.uniformValues,t.terrainData)}}function Qn(e,t,n,r,a,i,o,s,l,c){let u=r.context;a.draw(u,u.gl.TRIANGLES,i,o,s,Vn.disabled,l,c,n.id,e.layoutVertexBuffer,e.indexBuffer,t,n.paint,r.transform.zoom,e.programConfigurations.get(n.id),e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer)}function Kn(e,n,r,a){let i=e.context,o=i.gl,s=Un.disabled,l=new Nn([o.ONE,o.ONE],t.aM.transparent,[!0,!0,!0,!0]),c=n.getBucket(r);if(!c)return;let u=a.key,d=r.heatmapFbos.get(u);d||(d=tr(i,n.tileSize,n.tileSize),r.heatmapFbos.set(u,d)),i.bindFramebuffer.set(d.framebuffer),i.viewport.set([0,0,n.tileSize,n.tileSize]),i.clear({color:t.aM.transparent});let p=c.programConfigurations.get(r.id),h=e.useProgram("heatmap",p),f=e.style.map.terrain.getTerrainData(a);h.draw(i,o.TRIANGLES,Bn.disabled,s,l,Vn.disabled,qt(a.posMatrix,n,e.transform.zoom,r.paint.get("heatmap-intensity")),f,r.id,c.layoutVertexBuffer,c.indexBuffer,c.segments,r.paint,e.transform.zoom,p)}function er(e,t,n){let r=e.context,a=r.gl;r.setColorMode(e.colorModeForRenderPass());let i=nr(r,t),o=n.key,s=t.heatmapFbos.get(o);s&&(r.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,s.colorAttachment.get()),r.activeTexture.set(a.TEXTURE1),i.bind(a.LINEAR,a.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(r,a.TRIANGLES,Bn.disabled,Un.disabled,e.colorModeForRenderPass(),Vn.disabled,Dt(e,t,0,1),null,t.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments,t.paint,e.transform.zoom),s.destroy(),t.heatmapFbos.delete(o))}function tr(e,t,n){var r,a;let i=e.gl,o=i.createTexture();i.bindTexture(i.TEXTURE_2D,o),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR);let s=null!==(r=e.HALF_FLOAT)&&void 0!==r?r:i.UNSIGNED_BYTE,l=null!==(a=e.RGBA16F)&&void 0!==a?a:i.RGBA;i.texImage2D(i.TEXTURE_2D,0,l,t,n,0,i.RGBA,s,null);let c=e.createFramebuffer(t,n,!1,!1);return c.colorAttachment.set(o),c}function nr(e,t){return t.colorRampTexture||(t.colorRampTexture=new z(e,t.colorRamp,e.gl.RGBA)),t.colorRampTexture}function rr(e,t,n,r,a){if(!n||!r||!r.imageAtlas)return;let i=r.imageAtlas.patternPositions,o=i[n.to.toString()],s=i[n.from.toString()];if(!o&&s&&(o=s),!s&&o&&(s=o),!o||!s){let e=a.getPaintProperty(t);o=i[e],s=i[e]}o&&s&&e.setConstantPatternPositions(o,s)}function ar(e,t,n,r,a,i,o){let s,l,c,u,d,p=e.context.gl,h="fill-pattern",f=n.paint.get(h),m=f&&f.constantOr(1),g=n.getCrossfadeParameters();o?(l=m&&!n.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",s=p.LINES):(l=m?"fillPattern":"fill",s=p.TRIANGLES);let y=f.constantOr(null);for(let f of r){let r=t.getTile(f);if(m&&!r.patternsLoaded())continue;let b=r.getBucket(n);if(!b)continue;let v=b.programConfigurations.get(n.id),M=e.useProgram(l,v),x=e.style.map.terrain&&e.style.map.terrain.getTerrainData(f);m&&(e.context.activeTexture.set(p.TEXTURE0),r.imageAtlasTexture.bind(p.LINEAR,p.CLAMP_TO_EDGE),v.updatePaintBuffers(g)),rr(v,h,y,r,n);let z=x?f:null,_=e.translatePosMatrix(z?z.posMatrix:f.posMatrix,r,n.paint.get("fill-translate"),n.paint.get("fill-translate-anchor"));if(o){u=b.indexBuffer2,d=b.segments2;let t=[p.drawingBufferWidth,p.drawingBufferHeight];c="fillOutlinePattern"===l&&m?kt(_,e,g,r,t):wt(_,t)}else u=b.indexBuffer,d=b.segments,c=m?Ot(_,e,g,r):At(_);M.draw(e.context,s,a,e.stencilModeForClipping(f),i,Vn.disabled,c,x,n.id,b.layoutVertexBuffer,u,d,n.paint,e.transform.zoom,v)}}function ir(e,t,n,r,a,i,o){let s=e.context,l=s.gl,c="fill-extrusion-pattern",u=n.paint.get(c),d=u.constantOr(1),p=n.getCrossfadeParameters(),h=n.paint.get("fill-extrusion-opacity"),f=u.constantOr(null);for(let u of r){let r=t.getTile(u),m=r.getBucket(n);if(!m)continue;let g=e.style.map.terrain&&e.style.map.terrain.getTerrainData(u),y=m.programConfigurations.get(n.id),b=e.useProgram(d?"fillExtrusionPattern":"fillExtrusion",y);d&&(e.context.activeTexture.set(l.TEXTURE0),r.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),y.updatePaintBuffers(p)),rr(y,c,f,r,n);let v=e.translatePosMatrix(u.posMatrix,r,n.paint.get("fill-extrusion-translate"),n.paint.get("fill-extrusion-translate-anchor")),M=n.paint.get("fill-extrusion-vertical-gradient"),x=d?_t(v,e,M,h,u,p,r):zt(v,e,M,h);b.draw(s,s.gl.TRIANGLES,a,i,o,Vn.backCCW,x,g,n.id,m.layoutVertexBuffer,m.indexBuffer,m.segments,n.paint,e.transform.zoom,y,e.style.map.terrain&&m.centroidVertexBuffer)}}function or(e,t,n,r,a,i,o){let s=e.context,l=s.gl,c=n.fbo;if(!c)return;let u=e.useProgram("hillshade"),d=e.style.map.terrain&&e.style.map.terrain.getTerrainData(t);s.activeTexture.set(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,c.colorAttachment.get()),u.draw(s,l.TRIANGLES,a,i,o,Vn.disabled,((e,t,n,r)=>{let a=n.paint.get("hillshade-shadow-color"),i=n.paint.get("hillshade-highlight-color"),o=n.paint.get("hillshade-accent-color"),s=n.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===n.paint.get("hillshade-illumination-anchor")&&(s-=e.transform.angle);let l=!e.options.moving;return{u_matrix:r?r.posMatrix:e.transform.calculatePosMatrix(t.tileID.toUnwrapped(),l),u_image:0,u_latrange:Rt(0,t.tileID),u_light:[n.paint.get("hillshade-exaggeration"),s],u_shadow:a,u_highlight:i,u_accent:o}})(e,n,r,d?t:null),d,r.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}function sr(e,n,r,a,i,o){let s=e.context,l=s.gl,c=n.dem;if(c&&c.data){let u=c.dim,d=c.stride,p=c.getPixels();if(s.activeTexture.set(l.TEXTURE1),s.pixelStoreUnpackPremultiplyAlpha.set(!1),n.demTexture=n.demTexture||e.getTileTexture(d),n.demTexture){let e=n.demTexture;e.update(p,{premultiply:!1}),e.bind(l.NEAREST,l.CLAMP_TO_EDGE)}else n.demTexture=new z(s,p,l.RGBA,{premultiply:!1}),n.demTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE);s.activeTexture.set(l.TEXTURE0);let h=n.fbo;if(!h){let e=new z(s,{width:u,height:u,data:null},l.RGBA);e.bind(l.LINEAR,l.CLAMP_TO_EDGE),h=n.fbo=s.createFramebuffer(u,u,!0,!1),h.colorAttachment.set(e.texture)}s.bindFramebuffer.set(h.framebuffer),s.viewport.set([0,0,u,u]),e.useProgram("hillshadePrepare").draw(s,l.TRIANGLES,a,i,o,Vn.disabled,((e,n)=>{let r=n.stride,a=t.H();return t.aP(a,0,t.X,-t.X,0,0,1),t.J(a,a,[0,-t.X,0]),{u_matrix:a,u_image:1,u_dimension:[r,r],u_zoom:e.overscaledZ,u_unpack:n.getUnpackVector()}})(n.tileID,c),null,r.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),n.needsHillshadePrepare=!1}}function lr(e,n,r,a,o,s){let l=a.paint.get("raster-fade-duration");if(!s&&l>0){let a=i.now(),s=(a-e.timeAdded)/l,c=n?(a-n.timeAdded)/l:-1,u=r.getSource(),d=o.coveringZoomLevel({tileSize:u.tileSize,roundZoom:u.roundZoom}),p=!n||Math.abs(n.tileID.overscaledZ-d)>Math.abs(e.tileID.overscaledZ-d),h=p&&e.refreshedUponExpiration?1:t.ac(p?s:1-c,0,1);return e.refreshedUponExpiration&&s>=1&&(e.refreshedUponExpiration=!1),n?{opacity:1,mix:1-h}:{opacity:h,mix:0}}return{opacity:1,mix:0}}let cr=new t.aM(1,0,0,1),ur=new t.aM(0,1,0,1),dr=new t.aM(0,0,1,1),pr=new t.aM(1,0,1,1),hr=new t.aM(0,1,1,1);function fr(e,t,n,r){gr(e,0,t+n/2,e.transform.width,n,r)}function mr(e,t,n,r){gr(e,t-n/2,0,n,e.transform.height,r)}function gr(e,t,n,r,a,i){let o=e.context,s=o.gl;s.enable(s.SCISSOR_TEST),s.scissor(t*e.pixelRatio,n*e.pixelRatio,r*e.pixelRatio,a*e.pixelRatio),o.clear({color:i}),s.disable(s.SCISSOR_TEST)}function yr(e,n,r){let a=e.context,i=a.gl,o=r.posMatrix,s=e.useProgram("debug"),l=Bn.disabled,c=Un.disabled,u=e.colorModeForRenderPass(),d="$debug",p=e.style.map.terrain&&e.style.map.terrain.getTerrainData(r);a.activeTexture.set(i.TEXTURE0);let h=n.getTileByID(r.key).latestRawTileData,f=Math.floor((h&&h.byteLength||0)/1024),m=n.getTile(r).tileSize,g=512/Math.min(m,512)*(r.overscaledZ/e.transform.zoom)*.5,y=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(y+=` => ${r.overscaledZ}`),function(e,t){e.initDebugOverlayCanvas();let n=e.debugOverlayCanvas,r=e.context.gl,a=e.debugOverlayCanvas.getContext("2d");a.clearRect(0,0,n.width,n.height),a.shadowColor="white",a.shadowBlur=2,a.lineWidth=1.5,a.strokeStyle="white",a.textBaseline="top",a.font="bold 36px Open Sans, sans-serif",a.fillText(t,5,5),a.strokeText(t,5,5),e.debugOverlayTexture.update(n),e.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(e,`${y} ${f}kB`),s.draw(a,i.TRIANGLES,l,c,Nn.alphaBlended,Vn.disabled,Ct(o,t.aM.transparent,g),null,d,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments),s.draw(a,i.LINE_STRIP,l,c,u,Vn.disabled,Ct(o,t.aM.red),p,d,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments)}function br(e,t,n){let r=e.context,a=r.gl,i=e.colorModeForRenderPass(),o=new Bn(a.LEQUAL,Bn.ReadWrite,e.depthRangeFor3D),s=e.useProgram("terrain"),l=t.getTerrainMesh();r.bindFramebuffer.set(null),r.viewport.set([0,0,e.width,e.height]);for(let c of n){let n=e.renderToTexture.getTexture(c),u=t.getTerrainData(c.tileID);r.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,n.texture);let d=e.transform.calculatePosMatrix(c.tileID.toUnwrapped()),p=t.getMeshFrameDelta(e.transform.zoom),h=e.transform.calculateFogMatrix(c.tileID.toUnwrapped()),f=bt(d,p,h,e.style.sky,e.transform.pitch);s.draw(r,a.TRIANGLES,o,Un.disabled,i,Vn.backCCW,f,u,"terrain",l.vertexBuffer,l.indexBuffer,l.segments)}}class vr{constructor(e,t,n){this.vertexBuffer=e,this.indexBuffer=t,this.segments=n}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}class Mr{constructor(e,n){this.context=new Pn(e),this.transform=n,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:t.an(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=pe.maxUnderzooming+pe.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new ut}resize(e,t,n){if(this.width=Math.floor(e*n),this.height=Math.floor(t*n),this.pixelRatio=n,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let e of this.style._order)this.style._layers[e].resize()}setup(){let e=this.context,n=new t.aX;n.emplaceBack(0,0),n.emplaceBack(t.X,0),n.emplaceBack(0,t.X),n.emplaceBack(t.X,t.X),this.tileExtentBuffer=e.createVertexBuffer(n,ft.members),this.tileExtentSegments=t.a0.simpleSegment(0,0,4,2);let r=new t.aX;r.emplaceBack(0,0),r.emplaceBack(t.X,0),r.emplaceBack(0,t.X),r.emplaceBack(t.X,t.X),this.debugBuffer=e.createVertexBuffer(r,ft.members),this.debugSegments=t.a0.simpleSegment(0,0,4,5);let a=new t.$;a.emplaceBack(0,0,0,0),a.emplaceBack(t.X,0,t.X,0),a.emplaceBack(0,t.X,0,t.X),a.emplaceBack(t.X,t.X,t.X,t.X),this.rasterBoundsBuffer=e.createVertexBuffer(a,K.members),this.rasterBoundsSegments=t.a0.simpleSegment(0,0,4,2);let i=new t.aX;i.emplaceBack(0,0),i.emplaceBack(1,0),i.emplaceBack(0,1),i.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(i,ft.members),this.viewportSegments=t.a0.simpleSegment(0,0,4,2);let o=new t.aZ;o.emplaceBack(0),o.emplaceBack(1),o.emplaceBack(3),o.emplaceBack(2),o.emplaceBack(0),this.tileBorderIndexBuffer=e.createIndexBuffer(o);let s=new t.aY;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(s);let l=this.context.gl;this.stencilClearMode=new Un({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)}clearStencil(){let e=this.context,n=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let r=t.H();t.aP(r,0,this.width,this.height,0,0,1),t.K(r,r,[n.drawingBufferWidth,n.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(e,n.TRIANGLES,Bn.disabled,this.stencilClearMode,Nn.disabled,Vn.disabled,Et(r),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(e,t){if(this.currentStencilSource===e.source||!e.isTileClipped()||!t||!t.length)return;this.currentStencilSource=e.source;let n=this.context,r=n.gl;this.nextStencilID+t.length>256&&this.clearStencil(),n.setColorMode(Nn.disabled),n.setDepthMode(Bn.disabled);let a=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let e of t){let t=this._tileClippingMaskIDs[e.key]=this.nextStencilID++,i=this.style.map.terrain&&this.style.map.terrain.getTerrainData(e);a.draw(n,r.TRIANGLES,Bn.disabled,new Un({func:r.ALWAYS,mask:0},t,255,r.KEEP,r.KEEP,r.REPLACE),Nn.disabled,Vn.disabled,Et(e.posMatrix),i,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let e=this.nextStencilID++,t=this.context.gl;return new Un({func:t.NOTEQUAL,mask:255},e,255,t.KEEP,t.KEEP,t.REPLACE)}stencilModeForClipping(e){let t=this.context.gl;return new Un({func:t.EQUAL,mask:255},this._tileClippingMaskIDs[e.key],0,t.KEEP,t.KEEP,t.REPLACE)}stencilConfigForOverlap(e){let t=this.context.gl,n=e.sort((e,t)=>t.overscaledZ-e.overscaledZ),r=n[n.length-1].overscaledZ,a=n[0].overscaledZ-r+1;if(a>1){this.currentStencilSource=void 0,this.nextStencilID+a>256&&this.clearStencil();let e={};for(let n=0;n<a;n++)e[n+r]=new Un({func:t.GEQUAL,mask:255},n+this.nextStencilID,255,t.KEEP,t.KEEP,t.REPLACE);return this.nextStencilID+=a,[e,n]}return[{[r]:Un.disabled},n]}colorModeForRenderPass(){let e=this.context.gl;return this._showOverdrawInspector?new Nn([e.CONSTANT_COLOR,e.ONE],new t.aM(.125,.125,.125,0),[!0,!0,!0,!0]):"opaque"===this.renderPass?Nn.unblended:Nn.alphaBlended}depthModeForSublayer(e,t,n){if(!this.opaquePassEnabledForLayer())return Bn.disabled;let r=1-((1+this.currentLayer)*this.numSublayers+e)*this.depthEpsilon;return new Bn(n||this.context.gl.LEQUAL,t,[r,r])}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}render(e,n){this.style=e,this.options=n,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(i.now()),this.imageManager.beginFrame();let r=this.style._order,a=this.style.sourceCaches,o={},s={},l={};for(let e in a){let t=a[e];t.used&&t.prepare(this.context),o[e]=t.getVisibleCoordinates(),s[e]=o[e].slice().reverse(),l[e]=t.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(let e=0;e<r.length;e++)if(this.style._layers[r[e]].is3D()){this.opaquePassCutoff=e;break}this.maybeDrawDepthAndCoords(!1),this.renderToTexture&&(this.renderToTexture.prepareForRender(this.style,this.transform.zoom),this.opaquePassCutoff=0),this.renderPass="offscreen";for(let e of r){let t=this.style._layers[e];if(!t.hasOffscreenPass()||t.isHidden(this.transform.zoom))continue;let n=s[t.source];("custom"===t.type||n.length)&&this.renderLayer(this,a[t.source],t,n)}if(this.context.bindFramebuffer.set(null),this.context.clear({color:n.showOverdrawInspector?t.aM.black:t.aM.transparent,depth:1}),this.clearStencil(),this.style.sky&&function(e,n){let r=e.context,a=r.gl,i=(u=n,d=e.style.map.transform,p=e.pixelRatio,{u_sky_color:u.properties.get("sky-color"),u_horizon_color:u.properties.get("horizon-color"),u_horizon:(d.height/2+d.getHorizon())*p,u_sky_horizon_blend:u.properties.get("sky-horizon-blend")*d.height/2*p}),o=new Bn(a.LEQUAL,Bn.ReadWrite,[0,1]),s=Un.disabled,l=e.colorModeForRenderPass(),c=e.useProgram("sky");var u,d,p;if(!n.mesh){let e=new t.aX;e.emplaceBack(-1,-1),e.emplaceBack(1,-1),e.emplaceBack(1,1),e.emplaceBack(-1,1);let a=new t.aY;a.emplaceBack(0,1,2),a.emplaceBack(0,2,3),n.mesh=new vr(r.createVertexBuffer(e,ft.members),r.createIndexBuffer(a),t.a0.simpleSegment(0,0,e.length,a.length))}c.draw(r,a.TRIANGLES,o,s,l,Vn.disabled,i,void 0,"sky",n.mesh.vertexBuffer,n.mesh.indexBuffer,n.mesh.segments)}(this,this.style.sky),this._showOverdrawInspector=n.showOverdrawInspector,this.depthRangeFor3D=[0,1-(e._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=r.length-1;this.currentLayer>=0;this.currentLayer--){let e=this.style._layers[r[this.currentLayer]],t=a[e.source],n=o[e.source];this._renderTileClippingMasks(e,n),this.renderLayer(this,t,e,n)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<r.length;this.currentLayer++){let e=this.style._layers[r[this.currentLayer]],t=a[e.source];if(this.renderToTexture&&this.renderToTexture.renderLayer(e))continue;let n=("symbol"===e.type?l:s)[e.source];this._renderTileClippingMasks(e,o[e.source]),this.renderLayer(this,t,e,n)}if(this.options.showTileBoundaries){let e=function(e,t){let n=null,r=Object.values(e._layers).flatMap(n=>n.source&&!n.isHidden(t)?[e.sourceCaches[n.source]]:[]),a=r.filter(e=>"vector"===e.getSource().type),i=r.filter(e=>"vector"!==e.getSource().type),o=e=>{(!n||n.getSource().maxzoom<e.getSource().maxzoom)&&(n=e)};return a.forEach(e=>o(e)),n||i.forEach(e=>o(e)),n}(this.style,this.transform.zoom);e&&function(e,t,n){for(let r=0;r<n.length;r++)yr(e,t,n[r])}(this,e,e.getVisibleCoordinates())}this.options.showPadding&&function(e){let t=e.transform.padding;fr(e,e.transform.height-(t.top||0),3,cr),fr(e,t.bottom||0,3,ur),mr(e,t.left||0,3,dr),mr(e,e.transform.width-(t.right||0),3,pr);let n=e.transform.centerPoint;var r,a,i,o;r=e,a=n.x,i=e.transform.height-n.y,gr(r,a-1,i-10,2,20,o=hr),gr(r,a-10,i-1,20,2,o)}(this),this.context.setDefault()}maybeDrawDepthAndCoords(e){if(!this.style||!this.style.map||!this.style.map.terrain)return;let n=this.terrainFacilitator.matrix,r=this.transform.modelViewProjectionMatrix,a=this.terrainFacilitator.dirty;a||(a=e?!t.a_(n,r):!t.a$(n,r)),a||(a=this.style.map.terrain.sourceCache.tilesAfterTime(this.terrainFacilitator.renderTime).length>0),a&&(t.b0(n,r),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(e,n){let r=e.context,a=r.gl,i=Nn.unblended,o=new Bn(a.LEQUAL,Bn.ReadWrite,[0,1]),s=n.getTerrainMesh(),l=n.sourceCache.getRenderableTiles(),c=e.useProgram("terrainDepth");r.bindFramebuffer.set(n.getFramebuffer("depth").framebuffer),r.viewport.set([0,0,e.width/devicePixelRatio,e.height/devicePixelRatio]),r.clear({color:t.aM.transparent,depth:1});for(let t of l){let l=n.getTerrainData(t.tileID),u={u_matrix:e.transform.calculatePosMatrix(t.tileID.toUnwrapped()),u_ele_delta:n.getMeshFrameDelta(e.transform.zoom)};c.draw(r,a.TRIANGLES,o,Un.disabled,i,Vn.backCCW,u,l,"terrain",s.vertexBuffer,s.indexBuffer,s.segments)}r.bindFramebuffer.set(null),r.viewport.set([0,0,e.width,e.height])}(this,this.style.map.terrain),function(e,n){let r=e.context,a=r.gl,i=Nn.unblended,o=new Bn(a.LEQUAL,Bn.ReadWrite,[0,1]),s=n.getTerrainMesh(),l=n.getCoordsTexture(),c=n.sourceCache.getRenderableTiles(),u=e.useProgram("terrainCoords");r.bindFramebuffer.set(n.getFramebuffer("coords").framebuffer),r.viewport.set([0,0,e.width/devicePixelRatio,e.height/devicePixelRatio]),r.clear({color:t.aM.transparent,depth:1}),n.coordsIndex=[];for(let t of c){let c=n.getTerrainData(t.tileID);r.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,l.texture);let d={u_matrix:e.transform.calculatePosMatrix(t.tileID.toUnwrapped()),u_terrain_coords_id:(255-n.coordsIndex.length)/255,u_texture:0,u_ele_delta:n.getMeshFrameDelta(e.transform.zoom)};u.draw(r,a.TRIANGLES,o,Un.disabled,i,Vn.backCCW,d,c,"terrain",s.vertexBuffer,s.indexBuffer,s.segments),n.coordsIndex.push(t.tileID.key)}r.bindFramebuffer.set(null),r.viewport.set([0,0,e.width,e.height])}(this,this.style.map.terrain))}renderLayer(e,n,r,a){if(!r.isHidden(this.transform.zoom)&&("background"===r.type||"custom"===r.type||(a||[]).length))switch(this.id=r.id,r.type){case"symbol":!function(e,n,r,a,i){if("translucent"!==e.renderPass)return;let o=Un.disabled,s=e.colorModeForRenderPass();(r._unevaluatedLayout.hasValue("text-variable-anchor")||r._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(e,n,r,a,i,o,s,l,c){let u=n.transform,d=rt(),p="map"===i,h="map"===o;for(let i of e){let e=a.getTile(i),o=e.getBucket(r);if(!o||!o.text||!o.text.segments.get().length)continue;let f=t.ag(o.textSizeData,u.zoom),m=Ne(e,1,n.transform.zoom),g=be(i.posMatrix,h,p,n.transform,m),y="none"!==r.layout.get("icon-text-fit")&&o.hasIconData();if(f){let t=Math.pow(2,u.zoom-e.tileID.overscaledZ),r=n.style.map.terrain?(e,t)=>n.style.map.terrain.getElevation(i,e,t):null,a=d.translatePosition(u,e,s,l);Zn(o,p,h,c,u,g,i.posMatrix,t,f,y,d,a,i.toUnwrapped(),r)}}}(a,e,r,n,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),i),0!==r.paint.get("icon-opacity").constantOr(1)&&Jn(e,n,r,a,!1,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),r.layout.get("icon-rotation-alignment"),r.layout.get("icon-pitch-alignment"),r.layout.get("icon-keep-upright"),o,s),0!==r.paint.get("text-opacity").constantOr(1)&&Jn(e,n,r,a,!0,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),r.layout.get("text-keep-upright"),o,s),n.map.showCollisionBoxes&&(Hn(e,n,r,a,!0),Hn(e,n,r,a,!1))}(e,n,r,a,this.style.placement.variableOffsets);break;case"circle":!function(e,n,r,a){if("translucent"!==e.renderPass)return;let i=r.paint.get("circle-opacity"),o=r.paint.get("circle-stroke-width"),s=r.paint.get("circle-stroke-opacity"),l=!r.layout.get("circle-sort-key").isConstant();if(0===i.constantOr(1)&&(0===o.constantOr(1)||0===s.constantOr(1)))return;let c=e.context,u=c.gl,d=e.depthModeForSublayer(0,Bn.ReadOnly),p=Un.disabled,h=e.colorModeForRenderPass(),f=[];for(let i=0;i<a.length;i++){let o=a[i],s=n.getTile(o),c=s.getBucket(r);if(!c)continue;let u=c.programConfigurations.get(r.id),d=e.useProgram("circle",u),p=c.layoutVertexBuffer,h=c.indexBuffer,m=e.style.map.terrain&&e.style.map.terrain.getTerrainData(o),g={programConfiguration:u,program:d,layoutVertexBuffer:p,indexBuffer:h,uniformValues:Tt(e,o,s,r),terrainData:m};if(l){let e=c.segments.get();for(let n of e)f.push({segments:new t.a0([n]),sortKey:n.sortKey,state:g})}else f.push({segments:c.segments,sortKey:0,state:g})}l&&f.sort((e,t)=>e.sortKey-t.sortKey);for(let t of f){let{programConfiguration:n,program:a,layoutVertexBuffer:i,indexBuffer:o,uniformValues:s,terrainData:l}=t.state;a.draw(c,u.TRIANGLES,d,p,h,Vn.disabled,s,l,r.id,i,o,t.segments,r.paint,e.transform.zoom,n)}}(e,n,r,a);break;case"heatmap":!function(e,n,r,a){if(0===r.paint.get("heatmap-opacity"))return;let i=e.context;if(e.style.map.terrain){for(let t of a){let a=n.getTile(t);n.hasRenderableParent(t)||("offscreen"===e.renderPass?Kn(e,a,r,t):"translucent"===e.renderPass&&er(e,r,t))}i.viewport.set([0,0,e.width,e.height])}else"offscreen"===e.renderPass?function(e,n,r,a){let i=e.context,o=i.gl,s=Un.disabled,l=new Nn([o.ONE,o.ONE],t.aM.transparent,[!0,!0,!0,!0]);(function(e,n,r){let a=e.gl;e.activeTexture.set(a.TEXTURE1),e.viewport.set([0,0,n.width/4,n.height/4]);let i=r.heatmapFbos.get(t.aU);i?(a.bindTexture(a.TEXTURE_2D,i.colorAttachment.get()),e.bindFramebuffer.set(i.framebuffer)):(i=tr(e,n.width/4,n.height/4),r.heatmapFbos.set(t.aU,i))})(i,e,r),i.clear({color:t.aM.transparent});for(let t=0;t<a.length;t++){let c=a[t];if(n.hasRenderableParent(c))continue;let u=n.getTile(c),d=u.getBucket(r);if(!d)continue;let p=d.programConfigurations.get(r.id),h=e.useProgram("heatmap",p),{zoom:f}=e.transform;h.draw(i,o.TRIANGLES,Bn.disabled,s,l,Vn.disabled,qt(c.posMatrix,u,f,r.paint.get("heatmap-intensity")),null,r.id,d.layoutVertexBuffer,d.indexBuffer,d.segments,r.paint,e.transform.zoom,p)}i.viewport.set([0,0,e.width,e.height])}(e,n,r,a):"translucent"===e.renderPass&&function(e,n){let r=e.context,a=r.gl;r.setColorMode(e.colorModeForRenderPass());let i=n.heatmapFbos.get(t.aU);i&&(r.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,i.colorAttachment.get()),r.activeTexture.set(a.TEXTURE1),nr(r,n).bind(a.LINEAR,a.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(r,a.TRIANGLES,Bn.disabled,Un.disabled,e.colorModeForRenderPass(),Vn.disabled,Dt(e,n,0,1),null,n.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,n.paint,e.transform.zoom))}(e,r)}(e,n,r,a);break;case"line":!function(e,n,r,a){if("translucent"!==e.renderPass)return;let i=r.paint.get("line-opacity"),o=r.paint.get("line-width");if(0===i.constantOr(1)||0===o.constantOr(1))return;let s=e.depthModeForSublayer(0,Bn.ReadOnly),l=e.colorModeForRenderPass(),c=r.paint.get("line-dasharray"),u=r.paint.get("line-pattern"),d=u.constantOr(1),p=r.paint.get("line-gradient"),h=r.getCrossfadeParameters(),f=d?"linePattern":c?"lineSDF":p?"lineGradient":"line",m=e.context,g=m.gl,y=!0;for(let i of a){let a=n.getTile(i);if(d&&!a.patternsLoaded())continue;let o=a.getBucket(r);if(!o)continue;let b=o.programConfigurations.get(r.id),v=e.context.program.get(),M=e.useProgram(f,b),x=y||M.program!==v,_=e.style.map.terrain&&e.style.map.terrain.getTerrainData(i),A=u.constantOr(null);if(A&&a.imageAtlas){let e=a.imageAtlas,t=e.patternPositions[A.to.toString()],n=e.patternPositions[A.from.toString()];t&&n&&b.setConstantPatternPositions(t,n)}let O=_?i:null,w=d?Wt(e,a,r,h,O):c?Nt(e,a,r,c,h,O):p?It(e,a,r,o.lineClipsArray.length,O):Lt(e,a,r,O);if(d)m.activeTexture.set(g.TEXTURE0),a.imageAtlasTexture.bind(g.LINEAR,g.CLAMP_TO_EDGE),b.updatePaintBuffers(h);else if(c&&(x||e.lineAtlas.dirty))m.activeTexture.set(g.TEXTURE0),e.lineAtlas.bind(m);else if(p){let a=o.gradients[r.id],s=a.texture;if(r.gradientVersion!==a.version){let l=256;if(r.stepInterpolant){let r=n.getSource().maxzoom,a=i.canonical.z===r?Math.ceil(1<<e.transform.maxZoom-i.canonical.z):1;l=t.ac(t.aV(o.maxLineLength/t.X*1024*a),256,m.maxTextureSize)}a.gradient=t.aW({expression:r.gradientExpression(),evaluationKey:"lineProgress",resolution:l,image:a.gradient||void 0,clips:o.lineClipsArray}),a.texture?a.texture.update(a.gradient):a.texture=new z(m,a.gradient,g.RGBA),a.version=r.gradientVersion,s=a.texture}m.activeTexture.set(g.TEXTURE0),s.bind(r.stepInterpolant?g.NEAREST:g.LINEAR,g.CLAMP_TO_EDGE)}M.draw(m,g.TRIANGLES,s,e.stencilModeForClipping(i),l,Vn.disabled,w,_,r.id,o.layoutVertexBuffer,o.indexBuffer,o.segments,r.paint,e.transform.zoom,b,o.layoutVertexBuffer2),y=!1}}(e,n,r,a);break;case"fill":!function(e,n,r,a){let i=r.paint.get("fill-color"),o=r.paint.get("fill-opacity");if(0===o.constantOr(1))return;let s=e.colorModeForRenderPass(),l=r.paint.get("fill-pattern"),c=e.opaquePassEnabledForLayer()&&!l.constantOr(1)&&1===i.constantOr(t.aM.transparent).a&&1===o.constantOr(0)?"opaque":"translucent";if(e.renderPass===c){let t=e.depthModeForSublayer(1,"opaque"===e.renderPass?Bn.ReadWrite:Bn.ReadOnly);ar(e,n,r,a,t,s,!1)}if("translucent"===e.renderPass&&r.paint.get("fill-antialias")){let t=e.depthModeForSublayer(r.getPaintProperty("fill-outline-color")?2:0,Bn.ReadOnly);ar(e,n,r,a,t,s,!0)}}(e,n,r,a);break;case"fill-extrusion":!function(e,t,n,r){let a=n.paint.get("fill-extrusion-opacity");if(0!==a&&"translucent"===e.renderPass){let i=new Bn(e.context.gl.LEQUAL,Bn.ReadWrite,e.depthRangeFor3D);if(1!==a||n.paint.get("fill-extrusion-pattern").constantOr(1))ir(e,t,n,r,i,Un.disabled,Nn.disabled),ir(e,t,n,r,i,e.stencilModeFor3D(),e.colorModeForRenderPass());else{let a=e.colorModeForRenderPass();ir(e,t,n,r,i,Un.disabled,a)}}}(e,n,r,a);break;case"hillshade":!function(e,t,n,r){if("offscreen"!==e.renderPass&&"translucent"!==e.renderPass)return;let a=e.context,i=e.depthModeForSublayer(0,Bn.ReadOnly),o=e.colorModeForRenderPass(),[s,l]="translucent"===e.renderPass?e.stencilConfigForOverlap(r):[{},r];for(let r of l){let a=t.getTile(r);void 0!==a.needsHillshadePrepare&&a.needsHillshadePrepare&&"offscreen"===e.renderPass?sr(e,a,n,i,Un.disabled,o):"translucent"===e.renderPass&&or(e,r,a,n,i,s[r.overscaledZ],o)}a.viewport.set([0,0,e.width,e.height])}(e,n,r,a);break;case"raster":!function(e,t,n,r){if("translucent"!==e.renderPass||0===n.paint.get("raster-opacity")||!r.length)return;let a=e.context,i=a.gl,o=t.getSource(),s=e.useProgram("raster"),l=e.colorModeForRenderPass(),[c,u]=o instanceof ee?[{},r]:e.stencilConfigForOverlap(r),d=u[u.length-1].overscaledZ,p=!e.options.moving;for(let r of u){let u=e.depthModeForSublayer(r.overscaledZ-d,1===n.paint.get("raster-opacity")?Bn.ReadWrite:Bn.ReadOnly,i.LESS),h=t.getTile(r);h.registerFadeDuration(n.paint.get("raster-fade-duration"));let f,m,g=t.findLoadedParent(r,0),y=t.findLoadedSibling(r),b=lr(h,g||y||null,t,n,e.transform,e.style.map.terrain),v="nearest"===n.paint.get("raster-resampling")?i.NEAREST:i.LINEAR;a.activeTexture.set(i.TEXTURE0),h.texture.bind(v,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_NEAREST),a.activeTexture.set(i.TEXTURE1),g?(g.texture.bind(v,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_NEAREST),f=Math.pow(2,g.tileID.overscaledZ-h.tileID.overscaledZ),m=[h.tileID.canonical.x*f%1,h.tileID.canonical.y*f%1]):h.texture.bind(v,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_NEAREST),h.texture.useMipmap&&a.extTextureFilterAnisotropic&&e.transform.pitch>20&&i.texParameterf(i.TEXTURE_2D,a.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,a.extTextureFilterAnisotropicMax);let M=e.style.map.terrain&&e.style.map.terrain.getTerrainData(r),x=M?r:null,z=x?x.posMatrix:e.transform.calculatePosMatrix(r.toUnwrapped(),p),_=Ft(z,m||[0,0],f||1,b,n);o instanceof ee?s.draw(a,i.TRIANGLES,u,Un.disabled,l,Vn.disabled,_,M,n.id,o.boundsBuffer,e.quadTriangleIndexBuffer,o.boundsSegments):s.draw(a,i.TRIANGLES,u,c[r.overscaledZ],l,Vn.disabled,_,M,n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}}(e,n,r,a);break;case"background":!function(e,t,n,r){let a=n.paint.get("background-color"),i=n.paint.get("background-opacity");if(0===i)return;let o=e.context,s=o.gl,l=e.transform,c=l.tileSize,u=n.paint.get("background-pattern");if(e.isPatternMissing(u))return;let d=!u&&1===a.a&&1===i&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(e.renderPass!==d)return;let p=Un.disabled,h=e.depthModeForSublayer(0,"opaque"===d?Bn.ReadWrite:Bn.ReadOnly),f=e.colorModeForRenderPass(),m=e.useProgram(u?"backgroundPattern":"background"),g=r||l.coveringTiles({tileSize:c,terrain:e.style.map.terrain});u&&(o.activeTexture.set(s.TEXTURE0),e.imageManager.bind(e.context));let y=n.getCrossfadeParameters();for(let t of g){let l=r?t.posMatrix:e.transform.calculatePosMatrix(t.toUnwrapped()),d=u?Gt(l,i,e,u,{tileID:t,tileSize:c},y):Xt(l,i,a),g=e.style.map.terrain&&e.style.map.terrain.getTerrainData(t);m.draw(o,s.TRIANGLES,h,p,f,Vn.disabled,d,g,n.id,e.tileExtentBuffer,e.quadTriangleIndexBuffer,e.tileExtentSegments)}}(e,0,r,a);break;case"custom":!function(e,t,n){let r=e.context,a=n.implementation;if("offscreen"===e.renderPass){let t=a.prerender;t&&(e.setCustomLayerDefaults(),r.setColorMode(e.colorModeForRenderPass()),t.call(a,r.gl,e.transform.customLayerMatrix()),r.setDirty(),e.setBaseState())}else if("translucent"===e.renderPass){e.setCustomLayerDefaults(),r.setColorMode(e.colorModeForRenderPass()),r.setStencilMode(Un.disabled);let t="3d"===a.renderingMode?new Bn(e.context.gl.LEQUAL,Bn.ReadWrite,e.depthRangeFor3D):e.depthModeForSublayer(0,Bn.ReadOnly);r.setDepthMode(t),a.render(r.gl,e.transform.customLayerMatrix(),{farZ:e.transform.farZ,nearZ:e.transform.nearZ,fov:e.transform._fov,modelViewProjectionMatrix:e.transform.modelViewProjectionMatrix,projectionMatrix:e.transform.projectionMatrix}),r.setDirty(),e.setBaseState(),r.bindFramebuffer.set(null)}}(e,0,r)}}translatePosMatrix(e,n,r,a,i){if(!r[0]&&!r[1])return e;let o=i?"map"===a?this.transform.angle:0:"viewport"===a?-this.transform.angle:0;if(o){let e=Math.sin(o),t=Math.cos(o);r=[r[0]*t-r[1]*e,r[0]*e+r[1]*t]}let s=[i?r[0]:Ne(n,r[0],this.transform.zoom),i?r[1]:Ne(n,r[1],this.transform.zoom),0],l=new Float32Array(16);return t.J(l,e,s),l}saveTileTexture(e){let t=this._tileTextures[e.size[0]];t?t.push(e):this._tileTextures[e.size[0]]=[e]}getTileTexture(e){let t=this._tileTextures[e];return t&&t.length>0?t.pop():null}isPatternMissing(e){if(!e)return!1;if(!e.from||!e.to)return!0;let t=this.imageManager.getPattern(e.from.toString()),n=this.imageManager.getPattern(e.to.toString());return!t||!n}useProgram(e,t){this.cache=this.cache||{};let n=e+(t?t.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[n]||(this.cache[n]=new Mt(this.context,mt[e],t,Yt[e],this._showOverdrawInspector,this.style.map.terrain)),this.cache[n]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let e=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(e.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new z(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){let{drawingBufferWidth:e,drawingBufferHeight:t}=this.context.gl;return this.width!==e||this.height!==t}}class xr{constructor(e,t){this.points=e,this.planes=t}static fromInvProjectionMatrix(e,n,r){let a=Math.pow(2,r),i=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(r=>{let i=1/(r=t.af([],r,e))[3]/n*a;return t.b1(r,r,[i,i,1/r[3],i])}),o=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(e=>{let t=function(e,t){var n=t[0],r=t[1],a=t[2],i=n*n+r*r+a*a;return i>0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}([],(r=[],a=y([],i[e[0]],i[e[1]]),o=y([],i[e[2]],i[e[1]]),s=a[0],l=a[1],c=a[2],u=o[0],d=o[1],p=o[2],r[0]=l*p-c*d,r[1]=c*u-s*p,r[2]=s*d-l*u,r)),n=-((h=t)[0]*(f=i[e[1]])[0]+h[1]*f[1]+h[2]*f[2]);var r,a,o,s,l,c,u,d,p,h,f;return t.concat(n)});return new xr(i,o)}}class zr{constructor(e,t){var n,r,a;this.min=e,this.max=t,this.center=function(e,t){return e[0]=.5*t[0],e[1]=.5*t[1],e[2]=.5*t[2],e}([],(n=[],r=this.min,a=this.max,n[0]=r[0]+a[0],n[1]=r[1]+a[1],n[2]=r[2]+a[2],n))}quadrant(e){let t=[e%2==0,e<2],n=m(this.min),r=m(this.max);for(let e=0;e<t.length;e++)n[e]=t[e]?this.min[e]:this.center[e],r[e]=t[e]?this.center[e]:this.max[e];return r[2]=this.max[2],new zr(n,r)}distanceX(e){return Math.max(Math.min(this.max[0],e[0]),this.min[0])-e[0]}distanceY(e){return Math.max(Math.min(this.max[1],e[1]),this.min[1])-e[1]}intersects(e){let n=[[this.min[0],this.min[1],this.min[2],1],[this.max[0],this.min[1],this.min[2],1],[this.max[0],this.max[1],this.min[2],1],[this.min[0],this.max[1],this.min[2],1],[this.min[0],this.min[1],this.max[2],1],[this.max[0],this.min[1],this.max[2],1],[this.max[0],this.max[1],this.max[2],1],[this.min[0],this.max[1],this.max[2],1]],r=!0;for(let a=0;a<e.planes.length;a++){let i=e.planes[a],o=0;for(let e=0;e<n.length;e++)t.b2(i,n[e])>=0&&o++;if(0===o)return 0;o!==n.length&&(r=!1)}if(r)return 2;for(let t=0;t<3;t++){let n=Number.MAX_VALUE,r=-Number.MAX_VALUE;for(let a=0;a<e.points.length;a++){let i=e.points[a][t]-this.min[t];n=Math.min(n,i),r=Math.max(r,i)}if(r<0||n>this.max[t]-this.min[t])return 0}return 1}}class _r{constructor(e=0,t=0,n=0,r=0){if(isNaN(e)||e<0||isNaN(t)||t<0||isNaN(n)||n<0||isNaN(r)||r<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=t,this.left=n,this.right=r}interpolate(e,n,r){return null!=n.top&&null!=e.top&&(this.top=t.y.number(e.top,n.top,r)),null!=n.bottom&&null!=e.bottom&&(this.bottom=t.y.number(e.bottom,n.bottom,r)),null!=n.left&&null!=e.left&&(this.left=t.y.number(e.left,n.left,r)),null!=n.right&&null!=e.right&&(this.right=t.y.number(e.right,n.right,r)),this}getCenter(e,n){let r=t.ac((this.left+e-this.right)/2,0,e),a=t.ac((this.top+n-this.bottom)/2,0,n);return new t.P(r,a)}equals(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right}clone(){return new _r(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}let Ar=85.051129;class Or{constructor(e,n,r,a,i){this.tileSize=512,this._renderWorldCopies=void 0===i||!!i,this._minZoom=e||0,this._maxZoom=n||22,this._minPitch=r??0,this._maxPitch=a??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new _r,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){let e=new Or(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return e.apply(this),e}apply(e){this.tileSize=e.tileSize,this.latRange=e.latRange,this.lngRange=e.lngRange,this.width=e.width,this.height=e.height,this._center=e._center,this._elevation=e._elevation,this.minElevationForCurrentTile=e.minElevationForCurrentTile,this.zoom=e.zoom,this.angle=e.angle,this._fov=e._fov,this._pitch=e._pitch,this._unmodified=e._unmodified,this._edgeInsets=e._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))}get maxZoom(){return this._maxZoom}set maxZoom(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))}get minPitch(){return this._minPitch}set minPitch(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))}get maxPitch(){return this._maxPitch}set maxPitch(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new t.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(e){let n=-t.b3(e,-180,180)*Math.PI/180;var r;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=(r=new t.A(4),t.A!=Float32Array&&(r[1]=0,r[2]=0),r[0]=1,r[3]=1,r),function(e,t,n){var r=t[0],a=t[1],i=t[2],o=t[3],s=Math.sin(n),l=Math.cos(n);e[0]=r*l+i*s,e[1]=a*l+o*s,e[2]=r*-s+i*l,e[3]=a*-s+o*l}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(e){let n=t.ac(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=e/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(e){let t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._zoom=t,this.tileZoom=Math.max(0,Math.floor(t)),this.scale=this.zoomScale(t),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(e){e!==this._elevation&&(this._elevation=e,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,t,n){this._unmodified=!1,this._edgeInsets.interpolate(e,t,n),this._constrain(),this._calcMatrices()}coveringZoomLevel(e){let t=(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize));return Math.max(0,t)}getVisibleUnwrappedCoordinates(e){let n=[new t.b4(0,e)];if(this._renderWorldCopies){let r=this.pointCoordinate(new t.P(0,0)),a=this.pointCoordinate(new t.P(this.width,0)),i=this.pointCoordinate(new t.P(this.width,this.height)),o=this.pointCoordinate(new t.P(0,this.height)),s=Math.floor(Math.min(r.x,a.x,i.x,o.x)),l=Math.floor(Math.max(r.x,a.x,i.x,o.x)),c=1;for(let r=s-c;r<=l+c;r++)0!==r&&n.push(new t.b4(r,e))}return n}coveringTiles(e){var n,r;let a=this.coveringZoomLevel(e),i=a;if(void 0!==e.minzoom&&a<e.minzoom)return[];void 0!==e.maxzoom&&a>e.maxzoom&&(a=e.maxzoom);let o=this.pointCoordinate(this.getCameraPoint()),s=t.Z.fromLngLat(this.center),l=Math.pow(2,a),c=[l*o.x,l*o.y,0],u=[l*s.x,l*s.y,0],d=xr.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,a),p=e.minzoom||0;!e.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(p=a);let h=e.terrain?2/Math.min(this.tileSize,e.tileSize)*this.tileSize:3,f=e=>({aabb:new zr([e*l,0,0],[(e+1)*l,l,0]),zoom:0,x:0,y:0,wrap:e,fullyVisible:!1}),m=[],g=[],y=a,b=e.reparseOverscaled?i:a;if(this._renderWorldCopies)for(let e=1;e<=3;e++)m.push(f(-e)),m.push(f(e));for(m.push(f(0));m.length>0;){let a=m.pop(),i=a.x,o=a.y,s=a.fullyVisible;if(!s){let e=a.aabb.intersects(d);if(0===e)continue;s=2===e}let l=e.terrain?c:u,f=a.aabb.distanceX(l),M=a.aabb.distanceY(l),x=Math.max(Math.abs(f),Math.abs(M));if(a.zoom===y||x>h+(1<<y-a.zoom)-2&&a.zoom>=p){let e=y-a.zoom,n=c[0]-.5-(i<<e),r=c[1]-.5-(o<<e);g.push({tileID:new t.S(a.zoom===y?b:a.zoom,a.wrap,a.zoom,i,o),distanceSq:v([u[0]-.5-i,u[1]-.5-o]),tileDistanceToCamera:Math.sqrt(n*n+r*r)})}else for(let l=0;l<4;l++){let c=(i<<1)+l%2,u=(o<<1)+(l>>1),d=a.zoom+1,p=a.aabb.quadrant(l);if(e.terrain){let i=new t.S(d,a.wrap,d,c,u),o=e.terrain.getMinMaxElevation(i),s=null!==(n=o.minElevation)&&void 0!==n?n:this.elevation,l=null!==(r=o.maxElevation)&&void 0!==r?r:this.elevation;p=new zr([p.min[0],p.min[1],s],[p.max[0],p.max[1],l])}m.push({aabb:p,zoom:d,x:c,y:u,wrap:a.wrap,fullyVisible:s})}}return g.sort((e,t)=>e.distanceSq-t.distanceSq).map(e=>e.tileID)}resize(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(e){return Math.pow(2,e)}scaleZoom(e){return Math.log(e)/Math.LN2}project(e){let n=t.ac(e.lat,-85.051129,Ar);return new t.P(t.O(e.lng)*this.worldSize,t.Q(n)*this.worldSize)}unproject(e){return new t.Z(e.x/this.worldSize,e.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(e){let n=this.elevation,r=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,a=this.pointLocation(this.centerPoint,e),i=e.getElevationForLngLatZoom(a,this.tileZoom);if(!(this.elevation-i))return;let o=r+n-i,s=Math.cos(this._pitch)*this.cameraToCenterDistance/o/t.b5(1,a.lat),l=this.scaleZoom(s/this.tileSize);this._elevation=i,this._center=a,this.zoom=l}setLocationAtPoint(e,n){let r=this.pointCoordinate(n),a=this.pointCoordinate(this.centerPoint),i=this.locationCoordinate(e),o=new t.Z(i.x-(r.x-a.x),i.y-(r.y-a.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(e,t){return t?this.coordinatePoint(this.locationCoordinate(e),t.getElevationForLngLatZoom(e,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(e))}pointLocation(e,t){return this.coordinateLocation(this.pointCoordinate(e,t))}locationCoordinate(e){return t.Z.fromLngLat(e)}coordinateLocation(e){return e&&e.toLngLat()}pointCoordinate(e,n){if(n){let t=n.pointCoordinate(e);if(null!=t)return t}let r=[e.x,e.y,0,1],a=[e.x,e.y,1,1];t.af(r,r,this.pixelMatrixInverse),t.af(a,a,this.pixelMatrixInverse);let i=r[3],o=a[3],s=r[1]/i,l=a[1]/o,c=r[2]/i,u=a[2]/o,d=c===u?0:(0-c)/(u-c);return new t.Z(t.y.number(r[0]/i,a[0]/o,d)/this.worldSize,t.y.number(s,l,d)/this.worldSize)}coordinatePoint(e,n=0,r=this.pixelMatrix){let a=[e.x*this.worldSize,e.y*this.worldSize,n,1];return t.af(a,a,r),new t.P(a[0]/a[3],a[1]/a[3])}getBounds(){let e=Math.max(0,this.height/2-this.getHorizon());return(new G).extend(this.pointLocation(new t.P(0,e))).extend(this.pointLocation(new t.P(this.width,e))).extend(this.pointLocation(new t.P(this.width,this.height))).extend(this.pointLocation(new t.P(0,this.height)))}getMaxBounds(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new G([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(e){e?(this.lngRange=[e.getWest(),e.getEast()],this.latRange=[e.getSouth(),e.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-85.051129,Ar])}calculateTileMatrix(e){let n=e.canonical,r=this.worldSize/this.zoomScale(n.z),a=n.x+Math.pow(2,n.z)*e.wrap,i=t.an(new Float64Array(16));return t.J(i,i,[a*r,n.y*r,0]),t.K(i,i,[r/t.X,r/t.X,1]),i}calculatePosMatrix(e,n=!1){let r=e.key,a=n?this._alignedPosMatrixCache:this._posMatrixCache;if(a[r])return a[r];let i=this.calculateTileMatrix(e);return t.L(i,n?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,i),a[r]=new Float32Array(i),a[r]}calculateFogMatrix(e){let n=e.key,r=this._fogMatrixCache;if(r[n])return r[n];let a=this.calculateTileMatrix(e);return t.L(a,this.fogMatrix,a),r[n]=new Float32Array(a),r[n]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(e,n){n=t.ac(+n,this.minZoom,this.maxZoom);let r={center:new t.N(e.lng,e.lat),zoom:n},a=this.lngRange;if(!this._renderWorldCopies&&null===a){let e=179.9999999999;a=[-e,e]}let i=this.tileSize*this.zoomScale(r.zoom),o=0,s=i,l=0,c=i,u=0,d=0,{x:p,y:h}=this.size;if(this.latRange){let e=this.latRange;o=t.Q(e[1])*i,s=t.Q(e[0])*i,s-o<h&&(u=h/(s-o))}a&&(l=t.b3(t.O(a[0])*i,0,i),c=t.b3(t.O(a[1])*i,0,i),c<l&&(c+=i),c-l<p&&(d=p/(c-l)));let f,m,{x:g,y:y}=this.project.call({worldSize:i},e),b=Math.max(d||0,u||0);if(b){let e=new t.P(d?(c+l)/2:g,u?(s+o)/2:y);return r.center=this.unproject.call({worldSize:i},e).wrap(),r.zoom+=this.scaleZoom(b),r}if(this.latRange){let e=h/2;y-e<o&&(m=o+e),y+e>s&&(m=s-e)}if(a){let e=(l+c)/2,n=g;this._renderWorldCopies&&(n=t.b3(g,e-i/2,e+i/2));let r=p/2;n-r<l&&(f=l+r),n+r>c&&(f=c-r)}if(void 0!==f||void 0!==m){let e=new t.P(f??g,m??y);r.center=this.unproject.call({worldSize:i},e).wrap()}return r}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let e=this._unmodified,{center:t,zoom:n}=this.getConstrained(this.center,this.zoom);this.center=t,this.zoom=n,this._unmodified=e,this._constraining=!1}_calcMatrices(){if(!this.height)return;let e=this.centerOffset,n=this.point.x,r=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=t.b5(1,this.center.lat)*this.worldSize;let a=t.an(new Float64Array(16));t.K(a,a,[this.width/2,-this.height/2,1]),t.J(a,a,[1,-1,0]),this.labelPlaneMatrix=a,a=t.an(new Float64Array(16)),t.K(a,a,[1,-1,1]),t.J(a,a,[-1,-1,0]),t.K(a,a,[2/this.width,2/this.height,1]),this.glCoordMatrix=a;let i=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),o=Math.min(this.elevation,this.minElevationForCurrentTile),s=i-o*this._pixelPerMeter/Math.cos(this._pitch),l=o<0?s:i,c=Math.PI/2+this._pitch,u=this._fov*(.5+e.y/this.height),d=Math.sin(u)*l/Math.sin(t.ac(Math.PI-c-u,.01,Math.PI-.01)),p=this.getHorizon(),h=2*Math.atan(p/this.cameraToCenterDistance)*(.5+e.y/(2*p)),f=Math.sin(h)*l/Math.sin(t.ac(Math.PI-c-h,.01,Math.PI-.01)),m=Math.min(d,f);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*m+l),this.nearZ=this.height/50,a=new Float64Array(16),t.b6(a,this._fov,this.width/this.height,this.nearZ,this.farZ),a[8]=2*-e.x/this.width,a[9]=2*e.y/this.height,this.projectionMatrix=t.ae(a),t.K(a,a,[1,-1,1]),t.J(a,a,[0,0,-this.cameraToCenterDistance]),t.b7(a,a,this._pitch),t.ad(a,a,this.angle),t.J(a,a,[-n,-r,0]),this.mercatorMatrix=t.K([],a,[this.worldSize,this.worldSize,this.worldSize]),t.K(a,a,[1,1,this._pixelPerMeter]),this.pixelMatrix=t.L(new Float64Array(16),this.labelPlaneMatrix,a),t.J(a,a,[0,0,-this.elevation]),this.modelViewProjectionMatrix=a,this.invModelViewProjectionMatrix=t.as([],a),this.fogMatrix=new Float64Array(16),t.b6(this.fogMatrix,this._fov,this.width/this.height,i,this.farZ),this.fogMatrix[8]=2*-e.x/this.width,this.fogMatrix[9]=2*e.y/this.height,t.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),t.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),t.b7(this.fogMatrix,this.fogMatrix,this._pitch),t.ad(this.fogMatrix,this.fogMatrix,this.angle),t.J(this.fogMatrix,this.fogMatrix,[-n,-r,0]),t.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),t.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=t.L(new Float64Array(16),this.labelPlaneMatrix,a);let g=this.width%2/2,y=this.height%2/2,b=Math.cos(this.angle),v=Math.sin(this.angle),M=n-Math.round(n)+b*g+v*y,x=r-Math.round(r)+b*y+v*g,z=new Float64Array(a);if(t.J(z,z,[M>.5?M-1:M,x>.5?x-1:x,0]),this.alignedModelViewProjectionMatrix=z,a=t.as(new Float64Array(16),this.pixelMatrix),!a)throw new Error("failed to invert matrix");this.pixelMatrixInverse=a,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;let e=this.pointCoordinate(new t.P(0,0)),n=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.af(n,n,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){let e=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.P(0,e))}getCameraQueryGeometry(e){let n=this.getCameraPoint();if(1===e.length)return[e[0],n];{let r=n.x,a=n.y,i=n.x,o=n.y;for(let t of e)r=Math.min(r,t.x),a=Math.min(a,t.y),i=Math.max(i,t.x),o=Math.max(o,t.y);return[new t.P(r,a),new t.P(i,a),new t.P(i,o),new t.P(r,o),new t.P(r,a)]}}lngLatToCameraDepth(e,n){let r=this.locationCoordinate(e),a=[r.x*this.worldSize,r.y*this.worldSize,n,1];return t.af(a,a,this.modelViewProjectionMatrix),a[2]/a[3]}}function wr(e,t){let n,r=!1,a=null,i=null,o=()=>{a=null,r&&(e.apply(i,n),a=setTimeout(o,t),r=!1)};return(...e)=>(r=!0,i=this,n=e,a||o(),a)}class kr{constructor(e){this._getCurrentHash=()=>{let e=window.location.hash.replace("#","");if(this._hashName){let t;return e.split("&").map(e=>e.split("=")).forEach(e=>{e[0]===this._hashName&&(t=e)}),(t&&t[1]||"").split("/")}return e.split("/")},this._onHashChange=()=>{let e=this._getCurrentHash();if(e.length>=3&&!e.some(e=>isNaN(e))){let t=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(e[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+e[2],+e[1]],zoom:+e[0],bearing:t,pitch:+(e[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{let e=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,e)},this._removeHash=()=>{let e=this._getCurrentHash();if(0===e.length)return;let t=e.join("/"),n=t;n.split("&").length>0&&(n=n.split("&")[0]),this._hashName&&(n=`${this._hashName}=${t}`);let r=window.location.hash.replace(n,"");r.startsWith("#&")?r=r.slice(0,1)+r.slice(2):"#"===r&&(r="");let a=window.location.href.replace(/(#.+)?$/,r);a=a.replace("&&","&"),window.history.replaceState(window.history.state,null,a)},this._updateHash=wr(this._updateHashUnthrottled,300),this._hashName=e&&encodeURIComponent(e)}addTo(e){return this._map=e,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(e){let t=this._map.getCenter(),n=Math.round(100*this._map.getZoom())/100,r=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),a=Math.pow(10,r),i=Math.round(t.lng*a)/a,o=Math.round(t.lat*a)/a,s=this._map.getBearing(),l=this._map.getPitch(),c="";if(c+=e?`/${i}/${o}/${n}`:`${n}/${o}/${i}`,(s||l)&&(c+="/"+Math.round(10*s)/10),l&&(c+=`/${Math.round(l)}`),this._hashName){let e=this._hashName,t=!1,n=window.location.hash.slice(1).split("&").map(n=>{let r=n.split("=")[0];return r===e?(t=!0,`${r}=${c}`):n}).filter(e=>e);return t||n.push(`${e}=${c}`),`#${n.join("&")}`}return`#${c}`}}let Tr={linearity:.3,easing:t.b8(0,0,.3,1)},Sr=t.e({deceleration:2500,maxSpeed:1400},Tr),Cr=t.e({deceleration:20,maxSpeed:1400},Tr),Er=t.e({deceleration:1e3,maxSpeed:360},Tr),qr=t.e({deceleration:1e3,maxSpeed:90},Tr);class Dr{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.now(),settings:e})}_drainInertiaBuffer(){let e=this._inertiaBuffer,t=i.now();for(;e.length>0&&t-e[0].time>160;)e.shift()}_onMoveEnd(e){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let n={zoom:0,bearing:0,pitch:0,pan:new t.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:e}of this._inertiaBuffer)n.zoom+=e.zoomDelta||0,n.bearing+=e.bearingDelta||0,n.pitch+=e.pitchDelta||0,e.panDelta&&n.pan._add(e.panDelta),e.around&&(n.around=e.around),e.pinchAround&&(n.pinchAround=e.pinchAround);let r=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,a={};if(n.pan.mag()){let i=Lr(n.pan.mag(),r,t.e({},Sr,e||{}));a.offset=n.pan.mult(i.amount/n.pan.mag()),a.center=this._map.transform.center,Rr(a,i)}if(n.zoom){let e=Lr(n.zoom,r,Cr);a.zoom=this._map.transform.zoom+e.amount,Rr(a,e)}if(n.bearing){let e=Lr(n.bearing,r,Er);a.bearing=this._map.transform.bearing+t.ac(e.amount,-179,179),Rr(a,e)}if(n.pitch){let e=Lr(n.pitch,r,qr);a.pitch=this._map.transform.pitch+e.amount,Rr(a,e)}if(a.zoom||a.bearing){let e=void 0===n.pinchAround?n.around:n.pinchAround;a.around=e?this._map.unproject(e):this._map.getCenter()}return this.clear(),t.e(a,{noMoveStart:!0})}}function Rr(e,t){(!e.duration||e.duration<t.duration)&&(e.duration=t.duration,e.easing=t.easing)}function Lr(e,n,r){let{maxSpeed:a,linearity:i,deceleration:o}=r,s=t.ac(e*i/(n/1e3),-a,a),l=Math.abs(s)/(o*i);return{easing:r.easing,duration:1e3*l,amount:s*(l/2)}}class Ir extends t.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,n,r,a={}){let i=o.mousePos(n.getCanvas(),r),s=n.unproject(i);super(e,t.e({point:i,lngLat:s,originalEvent:r},a)),this._defaultPrevented=!1,this.target=n}}class Wr extends t.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,n,r){let a="touchend"===e?r.changedTouches:r.touches,i=o.touchPos(n.getCanvasContainer(),a),s=i.map(e=>n.unproject(e)),l=i.reduce((e,t,n,r)=>e.add(t.div(r.length)),new t.P(0,0));super(e,{points:i,point:l,lngLats:s,lngLat:n.unproject(l),originalEvent:r}),this._defaultPrevented=!1}}class Nr extends t.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,n){super(e,{originalEvent:n}),this._defaultPrevented=!1}}class Pr{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){delete this._mousedownPos}wheel(e){return this._firePreventable(new Nr(e.type,this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new Ir(e.type,this._map,e))}mouseup(e){this._map.fire(new Ir(e.type,this._map,e))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||this._map.fire(new Ir(e.type,this._map,e))}dblclick(e){return this._firePreventable(new Ir(e.type,this._map,e))}mouseover(e){this._map.fire(new Ir(e.type,this._map,e))}mouseout(e){this._map.fire(new Ir(e.type,this._map,e))}touchstart(e){return this._firePreventable(new Wr(e.type,this._map,e))}touchmove(e){this._map.fire(new Wr(e.type,this._map,e))}touchend(e){this._map.fire(new Wr(e.type,this._map,e))}touchcancel(e){this._map.fire(new Wr(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Br{constructor(e){this._map=e}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(e){this._map.fire(new Ir(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Ir("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(e){this._delayContextMenu?this._contextMenuEvent=e:this._ignoreContextMenu||this._map.fire(new Ir(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Fr{constructor(e){this._map=e}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(e){return this.transform.pointLocation(t.P.convert(e),this._map.terrain)}}class jr{constructor(e,t){this._map=e,this._tr=new Fr(e),this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&0===e.button&&(o.disableDrag(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;let n=t;if(this._lastPos.equals(n)||!this._box&&n.dist(this._startPos)<this._clickTolerance)return;let r=this._startPos;this._lastPos=n,this._box||(this._box=o.create("div","maplibregl-boxzoom",this._container),this._container.classList.add("maplibregl-crosshair"),this._fireEvent("boxzoomstart",e));let a=Math.min(r.x,n.x),i=Math.max(r.x,n.x),s=Math.min(r.y,n.y),l=Math.max(r.y,n.y);o.setTransform(this._box,`translate(${a}px,${s}px)`),this._box.style.width=i-a+"px",this._box.style.height=l-s+"px"}mouseupWindow(e,n){if(!this._active||0!==e.button)return;let r=this._startPos,a=n;if(this.reset(),o.suppressClick(),r.x!==a.x||r.y!==a.y)return this._map.fire(new t.k("boxzoomend",{originalEvent:e})),{cameraAnimation:e=>e.fitScreenCoordinates(r,a,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",e)}keydown(e){this._active&&27===e.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",e))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(o.remove(this._box),this._box=null),o.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(e,n){return this._map.fire(new t.k(e,{originalEvent:n}))}}function Ur(e,t){if(e.length!==t.length)throw new Error(`The number of touches and points are not equal - touches ${e.length}, points ${t.length}`);let n={};for(let r=0;r<e.length;r++)n[e[r].identifier]=t[r];return n}class Vr{constructor(e){this.reset(),this.numTouches=e.numTouches}reset(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1}touchstart(e,n,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=e.timeStamp),r.length===this.numTouches&&(this.centroid=function(e){let n=new t.P(0,0);for(let t of e)n._add(t);return n.div(e.length)}(n),this.touches=Ur(r,n)))}touchmove(e,t,n){if(this.aborted||!this.centroid)return;let r=Ur(n,t);for(let e in this.touches){let t=r[e];(!t||t.dist(this.touches[e])>30)&&(this.aborted=!0)}}touchend(e,t,n){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===n.length){let e=!this.aborted&&this.centroid;if(this.reset(),e)return e}}}class Hr{constructor(e){this.singleTap=new Vr(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(e,t,n){this.singleTap.touchstart(e,t,n)}touchmove(e,t,n){this.singleTap.touchmove(e,t,n)}touchend(e,t,n){let r=this.singleTap.touchend(e,t,n);if(r){let t=e.timeStamp-this.lastTime<500,n=!this.lastTap||this.lastTap.dist(r)<30;if(t&&n||this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}}}class Xr{constructor(e){this._tr=new Fr(e),this._zoomIn=new Hr({numTouches:1,numTaps:2}),this._zoomOut=new Hr({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,n){this._zoomIn.touchstart(e,t,n),this._zoomOut.touchstart(e,t,n)}touchmove(e,t,n){this._zoomIn.touchmove(e,t,n),this._zoomOut.touchmove(e,t,n)}touchend(e,t,n){let r=this._zoomIn.touchend(e,t,n),a=this._zoomOut.touchend(e,t,n),i=this._tr;return r?(this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:i.zoom+1,around:i.unproject(r)},{originalEvent:e})}):a?(this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:i.zoom-1,around:i.unproject(a)},{originalEvent:e})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Gr{constructor(e){this._enabled=!!e.enable,this._moveStateManager=e.moveStateManager,this._clickTolerance=e.clickTolerance||1,this._moveFunction=e.move,this._activateOnStart=!!e.activateOnStart,e.assignEvents(this),this.reset()}reset(e){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(e)}_move(...e){let t=this._moveFunction(...e);if(t.bearingDelta||t.pitchDelta||t.around||t.panDelta)return this._active=!0,t}dragStart(e,t){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(e)&&(this._moveStateManager.startMove(e),this._lastPoint=t.length?t[0]:t,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(e,t){if(!this.isEnabled())return;let n=this._lastPoint;if(!n)return;if(e.preventDefault(),!this._moveStateManager.isValidMoveEvent(e))return void this.reset(e);let r=t.length?t[0]:t;return!this._moved&&r.dist(n)<this._clickTolerance?void 0:(this._moved=!0,this._lastPoint=r,this._move(n,r))}dragEnd(e){this.isEnabled()&&this._lastPoint&&this._moveStateManager.isValidEndEvent(e)&&(this._moved&&o.suppressClick(),this.reset(e))}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}getClickTolerance(){return this._clickTolerance}}let Yr={0:1,2:2};class Zr{constructor(e){this._correctEvent=e.checkCorrectEvent}startMove(e){let t=o.mouseButton(e);this._eventButton=t}endMove(e){delete this._eventButton}isValidStartEvent(e){return this._correctEvent(e)}isValidMoveEvent(e){return!function(e,t){let n=Yr[t];return void 0===e.buttons||(e.buttons&n)!==n}(e,this._eventButton)}isValidEndEvent(e){return o.mouseButton(e)===this._eventButton}}class $r{constructor(){this._firstTouch=void 0}_isOneFingerTouch(e){return 1===e.targetTouches.length}_isSameTouchEvent(e){return e.targetTouches[0].identifier===this._firstTouch}startMove(e){this._firstTouch=e.targetTouches[0].identifier}endMove(e){delete this._firstTouch}isValidStartEvent(e){return this._isOneFingerTouch(e)}isValidMoveEvent(e){return this._isOneFingerTouch(e)&&this._isSameTouchEvent(e)}isValidEndEvent(e){return this._isOneFingerTouch(e)&&this._isSameTouchEvent(e)}}let Jr=e=>{e.mousedown=e.dragStart,e.mousemoveWindow=e.dragMove,e.mouseup=e.dragEnd,e.contextmenu=e=>{e.preventDefault()}},Qr=({enable:e,clickTolerance:t,bearingDegreesPerPixelMoved:n=.8})=>{let r=new Zr({checkCorrectEvent:e=>0===o.mouseButton(e)&&e.ctrlKey||2===o.mouseButton(e)});return new Gr({clickTolerance:t,move:(e,t)=>({bearingDelta:(t.x-e.x)*n}),moveStateManager:r,enable:e,assignEvents:Jr})},Kr=({enable:e,clickTolerance:t,pitchDegreesPerPixelMoved:n=-.5})=>{let r=new Zr({checkCorrectEvent:e=>0===o.mouseButton(e)&&e.ctrlKey||2===o.mouseButton(e)});return new Gr({clickTolerance:t,move:(e,t)=>({pitchDelta:(t.y-e.y)*n}),moveStateManager:r,enable:e,assignEvents:Jr})};class ea{constructor(e,t){this._clickTolerance=e.clickTolerance||1,this._map=t,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new t.P(0,0)}_shouldBePrevented(e){return e<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(e,t,n){return this._calculateTransform(e,t,n)}touchmove(e,t,n){if(this._active){if(!this._shouldBePrevented(n.length))return e.preventDefault(),this._calculateTransform(e,t,n);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",e)}}touchend(e,t,n){this._calculateTransform(e,t,n),this._active&&this._shouldBePrevented(n.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(e,n,r){r.length>0&&(this._active=!0);let a=Ur(r,n),i=new t.P(0,0),o=new t.P(0,0),s=0;for(let e in a){let t=a[e],n=this._touches[e];n&&(i._add(t),o._add(t.sub(n)),s++,a[e]=t)}if(this._touches=a,this._shouldBePrevented(s)||!o.mag())return;let l=o.div(s);return this._sum._add(l),this._sum.mag()<this._clickTolerance?void 0:{around:i.div(s),panDelta:l}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class ta{constructor(){this.reset()}reset(){this._active=!1,delete this._firstTwoTouches}touchstart(e,t,n){this._firstTwoTouches||n.length<2||(this._firstTwoTouches=[n[0].identifier,n[1].identifier],this._start([t[0],t[1]]))}touchmove(e,t,n){if(!this._firstTwoTouches)return;e.preventDefault();let[r,a]=this._firstTwoTouches,i=na(n,t,r),o=na(n,t,a);if(!i||!o)return;let s=this._aroundCenter?null:i.add(o).div(2);return this._move([i,o],s,e)}touchend(e,t,n){if(!this._firstTwoTouches)return;let[r,a]=this._firstTwoTouches,i=na(n,t,r),s=na(n,t,a);i&&s||(this._active&&o.suppressClick(),this.reset())}touchcancel(){this.reset()}enable(e){this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return!!this._enabled}isActive(){return!!this._active}}function na(e,t,n){for(let r=0;r<e.length;r++)if(e[r].identifier===n)return t[r]}function ra(e,t){return Math.log(e/t)/Math.LN2}class aa extends ta{reset(){super.reset(),delete this._distance,delete this._startDistance}_start(e){this._startDistance=this._distance=e[0].dist(e[1])}_move(e,t){let n=this._distance;if(this._distance=e[0].dist(e[1]),this._active||!(Math.abs(ra(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:ra(this._distance,n),pinchAround:t}}}function ia(e,t){return 180*e.angleWith(t)/Math.PI}class oa extends ta{reset(){super.reset(),delete this._minDiameter,delete this._startVector,delete this._vector}_start(e){this._startVector=this._vector=e[0].sub(e[1]),this._minDiameter=e[0].dist(e[1])}_move(e,t,n){let r=this._vector;if(this._vector=e[0].sub(e[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:ia(this._vector,r),pinchAround:t}}_isBelowThreshold(e){this._minDiameter=Math.min(this._minDiameter,e.mag());let t=25/(Math.PI*this._minDiameter)*360,n=ia(e,this._startVector);return Math.abs(n)<t}}function sa(e){return Math.abs(e.y)>Math.abs(e.x)}class la extends ta{constructor(e){super(),this._currentTouchCount=0,this._map=e}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(e,t,n){super.touchstart(e,t,n),this._currentTouchCount=n.length}_start(e){this._lastPoints=e,sa(e[0].sub(e[1]))&&(this._valid=!1)}_move(e,t,n){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let r=e[0].sub(this._lastPoints[0]),a=e[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(r,a,n.timeStamp),this._valid?(this._lastPoints=e,this._active=!0,{pitchDelta:(r.y+a.y)/2*-.5}):void 0}gestureBeginsVertically(e,t,n){if(void 0!==this._valid)return this._valid;let r=e.mag()>=2,a=t.mag()>=2;if(!r&&!a)return;if(!r||!a)return void 0===this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;let i=e.y>0==t.y>0;return sa(e)&&sa(t)&&i}}let ca={panStep:100,bearingStep:15,pitchStep:10};class ua{constructor(e){this._tr=new Fr(e);let t=ca;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,n=0,r=0,a=0,i=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?n=-1:(e.preventDefault(),a=-1);break;case 39:e.shiftKey?n=1:(e.preventDefault(),a=1);break;case 38:e.shiftKey?r=1:(e.preventDefault(),i=-1);break;case 40:e.shiftKey?r=-1:(e.preventDefault(),i=1);break;default:return}return this._rotationDisabled&&(n=0,r=0),{cameraAnimation:o=>{let s=this._tr;o.easeTo({duration:300,easeId:"keyboardHandler",easing:da,zoom:t?Math.round(s.zoom)+t*(e.shiftKey?2:1):s.zoom,bearing:s.bearing+n*this._bearingStep,pitch:s.pitch+r*this._pitchStep,offset:[-a*this._panStep,-i*this._panStep],center:s.center},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function da(e){return e*(2-e)}let pa=4.000244140625;class ha{constructor(e,t){this._onTimeout=e=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)},this._map=e,this._tr=new Fr(e),this._triggerRenderFrame=t,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return!!this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around)}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(e){return!!this._map.cooperativeGestures.isEnabled()&&!(e.ctrlKey||this._map.cooperativeGestures.isBypassed(e))}wheel(e){if(!this.isEnabled())return;if(this._shouldBePrevented(e))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",e);let t=e.deltaMode===WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,n=i.now(),r=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==t&&t%pa==0?this._type="wheel":0!==t&&Math.abs(t)<4?this._type="trackpad":r>400?(this._type=null,this._lastValue=t,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(r*t)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,t+=this._lastValue)),e.shiftKey&&t&&(t/=4),this._type&&(this._lastWheelEvent=e,this._delta-=t,this._active||this._start(e)),e.preventDefault()}_start(e){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let n=o.mousePos(this._map.getCanvas(),e),r=this._tr;this._around=n.y>r.transform.height/2-r.transform.getHorizon()?t.N.convert(this._aroundCenter?r.center:r.unproject(n)):t.N.convert(r.center),this._aroundPoint=r.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let e=this._tr.transform;if(0!==this._delta){let t="wheel"===this._type&&Math.abs(this._delta)>pa?this._wheelZoomRate:this._defaultZoomRate,n=2/(1+Math.exp(-Math.abs(this._delta*t)));this._delta<0&&0!==n&&(n=1/n);let r="number"==typeof this._targetZoom?e.zoomScale(this._targetZoom):e.scale;this._targetZoom=Math.min(e.maxZoom,Math.max(e.minZoom,e.scaleZoom(r*n))),"wheel"===this._type&&(this._startZoom=e.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let n,r="number"==typeof this._targetZoom?this._targetZoom:e.zoom,a=this._startZoom,o=this._easing,s=!1,l=i.now()-this._lastWheelEventTime;if("wheel"===this._type&&a&&o&&l){let e=Math.min(l/200,1),i=o(e);n=t.y.number(a,r,i),e<1?this._frameId||(this._frameId=!0):s=!0}else n=r,s=!0;return this._active=!0,s&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!s,zoomDelta:n-e.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(e){let n=t.b9;if(this._prevEase){let e=this._prevEase,r=(i.now()-e.start)/e.duration,a=e.easing(r+.01)-e.easing(r),o=.27/Math.sqrt(a*a+1e-4)*.01,s=Math.sqrt(.0729-o*o);n=t.b8(o,s,.25,1)}return this._prevEase={start:i.now(),duration:e,easing:n},n}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class fa{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class ma{constructor(e){this._tr=new Fr(e),this.reset()}reset(){this._active=!1}dblclick(e,t){return e.preventDefault(),{cameraAnimation:n=>{n.easeTo({duration:300,zoom:this._tr.zoom+(e.shiftKey?-1:1),around:this._tr.unproject(t)},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class ga{constructor(){this._tap=new Hr({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(e,t,n){if(!this._swipePoint)if(this._tapTime){let r=t[0],a=e.timeStamp-this._tapTime<500,i=this._tapPoint.dist(r)<30;a&&i?n.length>0&&(this._swipePoint=r,this._swipeTouch=n[0].identifier):this.reset()}else this._tap.touchstart(e,t,n)}touchmove(e,t,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;let r=t[0],a=r.y-this._swipePoint.y;return this._swipePoint=r,e.preventDefault(),this._active=!0,{zoomDelta:a/128}}}else this._tap.touchmove(e,t,n)}touchend(e,t,n){if(this._tapTime)this._swipePoint&&0===n.length&&this.reset();else{let r=this._tap.touchend(e,t,n);r&&(this._tapTime=e.timeStamp,this._tapPoint=r)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class ya{constructor(e,t,n){this._el=e,this._mousePan=t,this._touchPan=n}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class ba{constructor(e,t,n){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=n}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class va{constructor(e,t,n,r){this._el=e,this._touchZoom=t,this._touchRotate=n,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class Ma{constructor(e,t){this._bypassKey=-1!==navigator.userAgent.indexOf("Mac")?"metaKey":"ctrlKey",this._map=e,this._options=t,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let e=this._map.getCanvasContainer();e.classList.add("maplibregl-cooperative-gestures"),this._container=o.create("div","maplibregl-cooperative-gesture-screen",e);let t=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");"metaKey"===this._bypassKey&&(t=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let n=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),r=document.createElement("div");r.className="maplibregl-desktop-message",r.textContent=t,this._container.appendChild(r);let a=document.createElement("div");a.className="maplibregl-mobile-message",a.textContent=n,this._container.appendChild(a),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(o.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(e){return e[this._bypassKey]}notifyGestureBlocked(e,n){this._enabled&&(this._map.fire(new t.k("cooperativegestureprevented",{gestureType:e,originalEvent:n})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}}let xa=e=>e.zoom||e.drag||e.pitch||e.rotate;class za extends t.k{}function _a(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}class Aa{constructor(e,t){this.handleWindowEvent=e=>{this.handleEvent(e,`${e.type}Window`)},this.handleEvent=(e,t)=>{if("blur"===e.type)return void this.stop(!0);this._updatingCamera=!0;let n="renderFrame"===e.type?void 0:e,r={needsRenderFrame:!1},a={},i={},s=e.touches,l=s?this._getMapTouches(s):void 0,c=l?o.touchPos(this._map.getCanvas(),l):o.mousePos(this._map.getCanvas(),e);for(let{handlerName:o,handler:s,allowed:u}of this._handlers){if(!s.isEnabled())continue;let d;this._blockedByActive(i,u,o)?s.reset():s[t||e.type]&&(d=s[t||e.type](e,c,l),this.mergeHandlerResult(r,a,d,o,n),d&&d.needsRenderFrame&&this._triggerRenderFrame()),(d||s.isActive())&&(i[o]=s)}let u={};for(let e in this._previousActiveHandlers)i[e]||(u[e]=n);this._previousActiveHandlers=i,(Object.keys(u).length||_a(r))&&(this._changes.push([r,a,u]),this._triggerRenderFrame()),(Object.keys(i).length||_a(r))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:d}=r;d&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],d(this._map))},this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Dr(e),this._bearingSnap=t.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(t);let n=this._el;this._listeners=[[n,"touchstart",{passive:!0}],[n,"touchmove",{passive:!1}],[n,"touchend",void 0],[n,"touchcancel",void 0],[n,"mousedown",void 0],[n,"mousemove",void 0],[n,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[n,"mouseover",void 0],[n,"mouseout",void 0],[n,"dblclick",void 0],[n,"click",void 0],[n,"keydown",{capture:!1}],[n,"keyup",void 0],[n,"wheel",{passive:!1}],[n,"contextmenu",void 0],[window,"blur",void 0]];for(let[e,t,n]of this._listeners)o.addEventListener(e,t,e===document?this.handleWindowEvent:this.handleEvent,n)}destroy(){for(let[e,t,n]of this._listeners)o.removeEventListener(e,t,e===document?this.handleWindowEvent:this.handleEvent,n)}_addDefaultHandlers(e){let t=this._map,n=t.getCanvasContainer();this._add("mapEvent",new Pr(t,e));let r=t.boxZoom=new jr(t,e);this._add("boxZoom",r),e.interactive&&e.boxZoom&&r.enable();let a=t.cooperativeGestures=new Ma(t,e.cooperativeGestures);this._add("cooperativeGestures",a),e.cooperativeGestures&&a.enable();let i=new Xr(t),s=new ma(t);t.doubleClickZoom=new fa(s,i),this._add("tapZoom",i),this._add("clickZoom",s),e.interactive&&e.doubleClickZoom&&t.doubleClickZoom.enable();let l=new ga;this._add("tapDragZoom",l);let c=t.touchPitch=new la(t);this._add("touchPitch",c),e.interactive&&e.touchPitch&&t.touchPitch.enable(e.touchPitch);let u=Qr(e),d=Kr(e);t.dragRotate=new ba(e,u,d),this._add("mouseRotate",u,["mousePitch"]),this._add("mousePitch",d,["mouseRotate"]),e.interactive&&e.dragRotate&&t.dragRotate.enable();let p=(({enable:e,clickTolerance:t})=>{let n=new Zr({checkCorrectEvent:e=>0===o.mouseButton(e)&&!e.ctrlKey});return new Gr({clickTolerance:t,move:(e,t)=>({around:t,panDelta:t.sub(e)}),activateOnStart:!0,moveStateManager:n,enable:e,assignEvents:Jr})})(e),h=new ea(e,t);t.dragPan=new ya(n,p,h),this._add("mousePan",p),this._add("touchPan",h,["touchZoom","touchRotate"]),e.interactive&&e.dragPan&&t.dragPan.enable(e.dragPan);let f=new oa,m=new aa;t.touchZoomRotate=new va(n,m,f,l),this._add("touchRotate",f,["touchPan","touchZoom"]),this._add("touchZoom",m,["touchPan","touchRotate"]),e.interactive&&e.touchZoomRotate&&t.touchZoomRotate.enable(e.touchZoomRotate);let g=t.scrollZoom=new ha(t,()=>this._triggerRenderFrame());this._add("scrollZoom",g,["mousePan"]),e.interactive&&e.scrollZoom&&t.scrollZoom.enable(e.scrollZoom);let y=t.keyboard=new ua(t);this._add("keyboard",y),e.interactive&&e.keyboard&&t.keyboard.enable(),this._add("blockableMapEvent",new Br(t))}_add(e,t,n){this._handlers.push({handlerName:e,handler:t,allowed:n}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(let{handler:e}of this._handlers)e.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}}isActive(){for(let{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!xa(this._eventsInProgress)||this.isZooming()}_blockedByActive(e,t,n){for(let r in e)if(r!==n&&(!t||t.indexOf(r)<0))return!0;return!1}_getMapTouches(e){let t=[];for(let n of e)this._el.contains(n.target)&&t.push(n);return t}mergeHandlerResult(e,n,r,a,i){if(!r)return;t.e(e,r);let o={handlerName:a,originalEvent:r.originalEvent||i};void 0!==r.zoomDelta&&(n.zoom=o),void 0!==r.panDelta&&(n.drag=o),void 0!==r.pitchDelta&&(n.pitch=o),void 0!==r.bearingDelta&&(n.rotate=o)}_applyChanges(){let e={},n={},r={};for(let[a,i,o]of this._changes)a.panDelta&&(e.panDelta=(e.panDelta||new t.P(0,0))._add(a.panDelta)),a.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+a.zoomDelta),a.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+a.bearingDelta),a.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+a.pitchDelta),void 0!==a.around&&(e.around=a.around),void 0!==a.pinchAround&&(e.pinchAround=a.pinchAround),a.noInertia&&(e.noInertia=a.noInertia),t.e(n,i),t.e(r,o);this._updateMapTransform(e,n,r),this._changes=[]}_updateMapTransform(e,t,n){let r=this._map,a=r._getTransformForUpdate(),i=r.terrain;if(!(_a(e)||i&&this._terrainMovement))return this._fireEvents(t,n,!0);let{panDelta:o,zoomDelta:s,bearingDelta:l,pitchDelta:c,around:u,pinchAround:d}=e;void 0!==d&&(u=d),r._stop(!0),u=u||r.transform.centerPoint;let p=a.pointLocation(o?u.sub(o):u);l&&(a.bearing+=l),c&&(a.pitch+=c),s&&(a.zoom+=s),i?this._terrainMovement||!t.drag&&!t.zoom?t.drag&&this._terrainMovement?a.center=a.pointLocation(a.centerPoint.sub(o)):a.setLocationAtPoint(p,u):(this._terrainMovement=!0,this._map._elevationFreeze=!0,a.setLocationAtPoint(p,u)):a.setLocationAtPoint(p,u),r._applyUpdatedTransform(a),this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(t,n,!0)}_fireEvents(e,n,r){let a=xa(this._eventsInProgress),o=xa(e),s={};for(let t in e){let{originalEvent:n}=e[t];this._eventsInProgress[t]||(s[`${t}start`]=n),this._eventsInProgress[t]=e[t]}!a&&o&&this._fireEvent("movestart",o.originalEvent);for(let e in s)this._fireEvent(e,s[e]);o&&this._fireEvent("move",o.originalEvent);for(let t in e){let{originalEvent:n}=e[t];this._fireEvent(t,n)}let l,c={};for(let e in this._eventsInProgress){let{handlerName:t,originalEvent:r}=this._eventsInProgress[e];this._handlersById[t].isActive()||(delete this._eventsInProgress[e],l=n[t]||r,c[`${e}end`]=l)}for(let e in c)this._fireEvent(e,c[e]);let u=xa(this._eventsInProgress),d=(a||o)&&!u;if(d&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let e=this._map._getTransformForUpdate();e.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(e)}if(r&&d){this._updatingCamera=!0;let e=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),n=e=>0!==e&&-this._bearingSnap<e&&e<this._bearingSnap;!e||!e.essential&&i.prefersReducedMotion?(this._map.fire(new t.k("moveend",{originalEvent:l})),n(this._map.getBearing())&&this._map.resetNorth()):(n(e.bearing||this._map.getBearing())&&(e.bearing=0),e.freezeElevation=!0,this._map.easeTo(e,{originalEvent:l})),this._updatingCamera=!1}}_fireEvent(e,n){this._map.fire(new t.k(e,n?{originalEvent:n}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add(e=>{delete this._frameId,this.handleEvent(new za("renderFrame",{timeStamp:e})),this._applyChanges()})}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}class Oa extends t.E{constructor(e,t){super(),this._renderFrameCallback=()=>{let e=Math.min((i.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=e,this._bearingSnap=t.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new t.N(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}panBy(e,n,r){return e=t.P.convert(e).mult(-1),this.panTo(this.transform.center,t.e({offset:e},n),r)}panTo(e,n,r){return this.easeTo(t.e({center:e},n),r)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(e,n,r){return this.easeTo(t.e({zoom:e},n),r)}zoomIn(e,t){return this.zoomTo(this.getZoom()+1,e,t),this}zoomOut(e,t){return this.zoomTo(this.getZoom()-1,e,t),this}getBearing(){return this.transform.bearing}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(e,n,r){return this.easeTo(t.e({bearing:e},n),r)}resetNorth(e,n){return this.rotateTo(0,t.e({duration:1e3},e),n),this}resetNorthPitch(e,n){return this.easeTo(t.e({bearing:0,pitch:0,duration:1e3},e),n),this}snapToNorth(e,t){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(e,t):this}getPitch(){return this.transform.pitch}setPitch(e,t){return this.jumpTo({pitch:e},t),this}cameraForBounds(e,t){e=G.convert(e).adjustAntiMeridian();let n=t&&t.bearing||0;return this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),n,t)}_cameraForBoxAndBearing(e,n,r,a){let i={top:0,bottom:0,right:0,left:0};if("number"==typeof(a=t.e({padding:i,offset:[0,0],maxZoom:this.transform.maxZoom},a)).padding){let e=a.padding;a.padding={top:e,bottom:e,right:e,left:e}}a.padding=t.e(i,a.padding);let o=this.transform,s=o.padding,l=new G(e,n),c=o.project(l.getNorthWest()),u=o.project(l.getNorthEast()),d=o.project(l.getSouthEast()),p=o.project(l.getSouthWest()),h=t.ba(-r),f=c.rotate(h),m=u.rotate(h),g=d.rotate(h),y=p.rotate(h),b=new t.P(Math.max(f.x,m.x,y.x,g.x),Math.max(f.y,m.y,y.y,g.y)),v=new t.P(Math.min(f.x,m.x,y.x,g.x),Math.min(f.y,m.y,y.y,g.y)),M=b.sub(v),x=(o.width-(s.left+s.right+a.padding.left+a.padding.right))/M.x,z=(o.height-(s.top+s.bottom+a.padding.top+a.padding.bottom))/M.y;if(z<0||x<0)return void t.w("Map cannot fit within canvas with the given bounds, padding, and/or offset.");let _=Math.min(o.scaleZoom(o.scale*Math.min(x,z)),a.maxZoom),A=t.P.convert(a.offset),O=new t.P((a.padding.left-a.padding.right)/2,(a.padding.top-a.padding.bottom)/2).rotate(t.ba(r)),w=A.add(O).mult(o.scale/o.zoomScale(_));return{center:o.unproject(c.add(d).div(2).sub(w)),zoom:_,bearing:r}}fitBounds(e,t,n){return this._fitInternal(this.cameraForBounds(e,t),t,n)}fitScreenCoordinates(e,n,r,a,i){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(t.P.convert(e)),this.transform.pointLocation(t.P.convert(n)),r,a),a,i)}_fitInternal(e,n,r){return e?(delete(n=t.e(e,n)).padding,n.linear?this.easeTo(n,r):this.flyTo(n,r)):this}jumpTo(e,n){this.stop();let r=this._getTransformForUpdate(),a=!1,i=!1,o=!1;return"zoom"in e&&r.zoom!==+e.zoom&&(a=!0,r.zoom=+e.zoom),void 0!==e.center&&(r.center=t.N.convert(e.center)),"bearing"in e&&r.bearing!==+e.bearing&&(i=!0,r.bearing=+e.bearing),"pitch"in e&&r.pitch!==+e.pitch&&(o=!0,r.pitch=+e.pitch),null==e.padding||r.isPaddingEqual(e.padding)||(r.padding=e.padding),this._applyUpdatedTransform(r),this.fire(new t.k("movestart",n)).fire(new t.k("move",n)),a&&this.fire(new t.k("zoomstart",n)).fire(new t.k("zoom",n)).fire(new t.k("zoomend",n)),i&&this.fire(new t.k("rotatestart",n)).fire(new t.k("rotate",n)).fire(new t.k("rotateend",n)),o&&this.fire(new t.k("pitchstart",n)).fire(new t.k("pitch",n)).fire(new t.k("pitchend",n)),this.fire(new t.k("moveend",n))}calculateCameraOptionsFromTo(e,n,r,a=0){let i=t.Z.fromLngLat(e,n),o=t.Z.fromLngLat(r,a),s=o.x-i.x,l=o.y-i.y,c=o.z-i.z,u=Math.hypot(s,l,c);if(0===u)throw new Error("Can't calculate camera options with same From and To");let d=Math.hypot(s,l),p=this.transform.scaleZoom(this.transform.cameraToCenterDistance/u/this.transform.tileSize),h=180*Math.atan2(s,-l)/Math.PI,f=180*Math.acos(d/u)/Math.PI;return f=c<0?90-f:90+f,{center:o.toLngLat(),zoom:p,pitch:f,bearing:h}}easeTo(e,n){var r;this._stop(!1,e.easeId),(!1===(e=t.e({offset:[0,0],duration:500,easing:t.b9},e)).animate||!e.essential&&i.prefersReducedMotion)&&(e.duration=0);let a=this._getTransformForUpdate(),o=a.zoom,s=a.bearing,l=a.pitch,c=a.padding,u="bearing"in e?this._normalizeBearing(e.bearing,s):s,d="pitch"in e?+e.pitch:l,p="padding"in e?e.padding:a.padding,h=t.P.convert(e.offset),f=a.centerPoint.add(h),m=a.pointLocation(f),{center:g,zoom:y}=a.getConstrained(t.N.convert(e.center||m),null!==(r=e.zoom)&&void 0!==r?r:o);this._normalizeCenter(g,a);let b,v,M=a.project(m),x=a.project(g).sub(M),z=a.zoomScale(y-o);e.around&&(b=t.N.convert(e.around),v=a.locationPoint(b));let _={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||y!==o,this._rotating=this._rotating||s!==u,this._pitching=this._pitching||d!==l,this._padding=!a.isPaddingEqual(p),this._easeId=e.easeId,this._prepareEase(n,e.noMoveStart,_),this.terrain&&this._prepareElevation(g),this._ease(r=>{if(this._zooming&&(a.zoom=t.y.number(o,y,r)),this._rotating&&(a.bearing=t.y.number(s,u,r)),this._pitching&&(a.pitch=t.y.number(l,d,r)),this._padding&&(a.interpolatePadding(c,p,r),f=a.centerPoint.add(h)),this.terrain&&!e.freezeElevation&&this._updateElevation(r),b)a.setLocationAtPoint(b,v);else{let e=a.zoomScale(a.zoom-o),t=y>o?Math.min(2,z):Math.max(.5,z),n=Math.pow(t,1-r),i=a.unproject(M.add(x.mult(r*n)).mult(e));a.setLocationAtPoint(a.renderWorldCopies?i.wrap():i,f)}this._applyUpdatedTransform(a),this._fireMoveEvents(n)},t=>{this.terrain&&e.freezeElevation&&this._finalizeElevation(),this._afterEase(n,t)},e),this}_prepareEase(e,n,r={}){this._moving=!0,n||r.moving||this.fire(new t.k("movestart",e)),this._zooming&&!r.zooming&&this.fire(new t.k("zoomstart",e)),this._rotating&&!r.rotating&&this.fire(new t.k("rotatestart",e)),this._pitching&&!r.pitching&&this.fire(new t.k("pitchstart",e))}_prepareElevation(e){this._elevationCenter=e,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(e,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(e){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);let n=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(e<1&&n!==this._elevationTarget){let t=this._elevationTarget-this._elevationStart;this._elevationStart+=e*(t-(n-(t*e+this._elevationStart))/(1-e)),this._elevationTarget=n}this.transform.elevation=t.y.number(this._elevationStart,this._elevationTarget,e)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(e){let t=e.getCameraPosition(),n=this.terrain.getElevationForLngLatZoom(t.lngLat,e.zoom);if(t.altitude<n){let r=this.calculateCameraOptionsFromTo(t.lngLat,n,e.center,e.elevation);return{pitch:r.pitch,zoom:r.zoom}}return{}}_applyUpdatedTransform(e){let t=[];if(this.terrain&&t.push(e=>this._elevateCameraIfInsideTerrain(e)),this.transformCameraUpdate&&t.push(e=>this.transformCameraUpdate(e)),!t.length)return;let n=e.clone();for(let e of t){let t=n.clone(),{center:r,zoom:a,pitch:i,bearing:o,elevation:s}=e(t);r&&(t.center=r),void 0!==a&&(t.zoom=a),void 0!==i&&(t.pitch=i),void 0!==o&&(t.bearing=o),void 0!==s&&(t.elevation=s),n.apply(t)}this.transform.apply(n)}_fireMoveEvents(e){this.fire(new t.k("move",e)),this._zooming&&this.fire(new t.k("zoom",e)),this._rotating&&this.fire(new t.k("rotate",e)),this._pitching&&this.fire(new t.k("pitch",e))}_afterEase(e,n){if(this._easeId&&n&&this._easeId===n)return;delete this._easeId;let r=this._zooming,a=this._rotating,i=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new t.k("zoomend",e)),a&&this.fire(new t.k("rotateend",e)),i&&this.fire(new t.k("pitchend",e)),this.fire(new t.k("moveend",e))}flyTo(e,n){var r;if(!e.essential&&i.prefersReducedMotion){let r=t.M(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(r,n)}this.stop(),e=t.e({offset:[0,0],speed:1.2,curve:1.42,easing:t.b9},e);let a=this._getTransformForUpdate(),o=a.zoom,s=a.bearing,l=a.pitch,c=a.padding,u="bearing"in e?this._normalizeBearing(e.bearing,s):s,d="pitch"in e?+e.pitch:l,p="padding"in e?e.padding:a.padding,h=t.P.convert(e.offset),f=a.centerPoint.add(h),m=a.pointLocation(f),{center:g,zoom:y}=a.getConstrained(t.N.convert(e.center||m),null!==(r=e.zoom)&&void 0!==r?r:o);this._normalizeCenter(g,a);let b=a.zoomScale(y-o),v=a.project(m),M=a.project(g).sub(v),x=e.curve,z=Math.max(a.width,a.height),_=z/b,A=M.mag();if("minZoom"in e){let n=t.ac(Math.min(e.minZoom,o,y),a.minZoom,a.maxZoom),r=z/a.zoomScale(n-o);x=Math.sqrt(r/A*2)}let O=x*x;function w(e){let t=(_*_-z*z+(e?-1:1)*O*O*A*A)/(2*(e?_:z)*O*A);return Math.log(Math.sqrt(t*t+1)-t)}function k(e){return(Math.exp(e)-Math.exp(-e))/2}function T(e){return(Math.exp(e)+Math.exp(-e))/2}let S=w(!1),C=function(e){return T(S)/T(S+x*e)},E=function(e){return z*((T(S)*(k(t=S+x*e)/T(t))-k(S))/O)/A;var t},q=(w(!0)-S)/x;if(Math.abs(A)<1e-6||!isFinite(q)){if(Math.abs(z-_)<1e-6)return this.easeTo(e,n);let t=_<z?-1:1;q=Math.abs(Math.log(_/z))/x,E=()=>0,C=e=>Math.exp(t*x*e)}return e.duration="duration"in e?+e.duration:1e3*q/("screenSpeed"in e?+e.screenSpeed/x:+e.speed),e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=s!==u,this._pitching=d!==l,this._padding=!a.isPaddingEqual(p),this._prepareEase(n,!1),this.terrain&&this._prepareElevation(g),this._ease(r=>{let i=r*q,m=1/C(i);a.zoom=1===r?y:o+a.scaleZoom(m),this._rotating&&(a.bearing=t.y.number(s,u,r)),this._pitching&&(a.pitch=t.y.number(l,d,r)),this._padding&&(a.interpolatePadding(c,p,r),f=a.centerPoint.add(h)),this.terrain&&!e.freezeElevation&&this._updateElevation(r);let b=1===r?g:a.unproject(v.add(M.mult(E(i))).mult(m));a.setLocationAtPoint(a.renderWorldCopies?b.wrap():b,f),this._applyUpdatedTransform(a),this._fireMoveEvents(n)},()=>{this.terrain&&e.freezeElevation&&this._finalizeElevation(),this._afterEase(n)},e),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(e,t){var n;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let e=this._onEaseEnd;delete this._onEaseEnd,e.call(this,t)}return e||null===(n=this.handlers)||void 0===n||n.stop(!1),this}_ease(e,t,n){!1===n.animate||0===n.duration?(e(1),t()):(this._easeStart=i.now(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=t,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(e,n){e=t.b3(e,-180,180);let r=Math.abs(e-n);return Math.abs(e-360-n)<r&&(e-=360),Math.abs(e+360-n)<r&&(e+=360),e}_normalizeCenter(e,t){if(!t.renderWorldCopies||t.lngRange)return;let n=e.lng-t.center.lng;e.lng+=n>180?-360:n<-180?360:0}queryTerrainElevation(e){return this.terrain?this.terrain.getElevationForLngLatZoom(t.N.convert(e),this.transform.tileZoom)-this.transform.elevation:null}}let wa={compact:!0,customAttribution:'<a href="https://maplibre.org/" target="_blank">MapLibre</a>'};class ka{constructor(e=wa){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=e=>{!e||"metadata"!==e.sourceDataType&&"visibility"!==e.sourceDataType&&"style"!==e.dataType&&"terrain"!==e.type||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?!1===this._compact?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=e}getDefaultPosition(){return"bottom-right"}onAdd(e){return this._map=e,this._compact=this.options.compact,this._container=o.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=o.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){o.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(e,t){let n=this._map._getUIString(`AttributionControl.${t}`);e.title=n,e.setAttribute("aria-label",n)}_updateAttributions(){if(!this._map.style)return;let e=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=e.concat(this.options.customAttribution.map(e=>"string"!=typeof e?"":e)):"string"==typeof this.options.customAttribution&&e.push(this.options.customAttribution)),this._map.style.stylesheet){let e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}let t=this._map.style.sourceCaches;for(let n in t){let r=t[n];if(r.used||r.usedForTerrain){let t=r.getSource();t.attribution&&e.indexOf(t.attribution)<0&&e.push(t.attribution)}}e=e.filter(e=>String(e).trim()),e.sort((e,t)=>e.length-t.length),e=e.filter((t,n)=>{for(let r=n+1;r<e.length;r++)if(e[r].indexOf(t)>=0)return!1;return!0});let n=e.join(" | ");n!==this._attribHTML&&(this._attribHTML=n,e.length?(this._innerContainer.innerHTML=n,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class Ta{constructor(e={}){this._updateCompact=()=>{let e=this._container.children;if(e.length){let t=e[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?!1!==this._compact&&t.classList.add("maplibregl-compact"):t.classList.remove("maplibregl-compact")}},this.options=e}getDefaultPosition(){return"bottom-left"}onAdd(e){this._map=e,this._compact=this.options&&this.options.compact,this._container=o.create("div","maplibregl-ctrl");let t=o.create("a","maplibregl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://maplibre.org/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){o.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class Sa{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){let t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){let t=this._currentlyRunning,n=t?this._queue.concat(t):this._queue;for(let t of n)if(t.id===e)return void(t.cancelled=!0)}run(e=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");let t=this._currentlyRunning=this._queue;this._queue=[];for(let n of t)if(!n.cancelled&&(n.callback(e),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var Ca=t.Y([{name:"a_pos3d",type:"Int16",components:3}]);class Ea extends t.E{constructor(e){super(),this.sourceCache=e,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,e.usedForTerrain=!0,e.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(e,n){this.sourceCache.update(e,n),this._renderableTilesKeys=[];let r={};for(let a of e.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:n}))r[a.key]=!0,this._renderableTilesKeys.push(a.key),this._tiles[a.key]||(a.posMatrix=new Float64Array(16),t.aP(a.posMatrix,0,t.X,0,t.X,0,1),this._tiles[a.key]=new ce(a,this.tileSize));for(let e in this._tiles)r[e]||delete this._tiles[e]}freeRtt(e){for(let t in this._tiles){let n=this._tiles[t];(!e||n.tileID.equals(e)||n.tileID.isChildOf(e)||e.isChildOf(n.tileID))&&(n.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(e=>this.getTileByID(e))}getTileByID(e){return this._tiles[e]}getTerrainCoords(e){let n={};for(let r of this._renderableTilesKeys){let a=this._tiles[r].tileID;if(a.canonical.equals(e.canonical)){let a=e.clone();a.posMatrix=new Float64Array(16),t.aP(a.posMatrix,0,t.X,0,t.X,0,1),n[r]=a}else if(a.canonical.isChildOf(e.canonical)){let i=e.clone();i.posMatrix=new Float64Array(16);let o=a.canonical.z-e.canonical.z,s=a.canonical.x-(a.canonical.x>>o<<o),l=a.canonical.y-(a.canonical.y>>o<<o),c=t.X>>o;t.aP(i.posMatrix,0,c,0,c,0,1),t.J(i.posMatrix,i.posMatrix,[-s*c,-l*c,0]),n[r]=i}else if(e.canonical.isChildOf(a.canonical)){let i=e.clone();i.posMatrix=new Float64Array(16);let o=e.canonical.z-a.canonical.z,s=e.canonical.x-(e.canonical.x>>o<<o),l=e.canonical.y-(e.canonical.y>>o<<o),c=t.X>>o;t.aP(i.posMatrix,0,t.X,0,t.X,0,1),t.J(i.posMatrix,i.posMatrix,[s*c,l*c,0]),t.K(i.posMatrix,i.posMatrix,[1/2**o,1/2**o,0]),n[r]=i}}return n}getSourceTile(e,t){let n=this.sourceCache._source,r=e.overscaledZ-this.deltaZoom;if(r>n.maxzoom&&(r=n.maxzoom),r<n.minzoom)return null;this._sourceTileCache[e.key]||(this._sourceTileCache[e.key]=e.scaledTo(r).key);let a=this.sourceCache.getTileByID(this._sourceTileCache[e.key]);if((!a||!a.dem)&&t)for(;r>=n.minzoom&&(!a||!a.dem);)a=this.sourceCache.getTileByID(e.scaledTo(r--).key);return a}tilesAfterTime(e=Date.now()){return Object.values(this._tiles).filter(t=>t.timeAdded>=e)}}class qa{constructor(e,t,n){this.painter=e,this.sourceCache=new Ea(t),this.options=n,this.exaggeration="number"==typeof n.exaggeration?n.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(e,n,r,a=t.X){var i;if(!(n>=0&&n<a&&r>=0&&r<a))return 0;let o=this.getTerrainData(e),s=null===(i=o.tile)||void 0===i?void 0:i.dem;if(!s)return 0;let l=(f=[],m=[n/a*t.X,r/a*t.X],g=o.u_terrain_matrix,y=m[0],b=m[1],f[0]=g[0]*y+g[4]*b+g[12],f[1]=g[1]*y+g[5]*b+g[13],f),c=[l[0]*s.dim,l[1]*s.dim],u=Math.floor(c[0]),d=Math.floor(c[1]),p=c[0]-u,h=c[1]-d;var f,m,g,y,b;return s.get(u,d)*(1-p)*(1-h)+s.get(u+1,d)*p*(1-h)+s.get(u,d+1)*(1-p)*h+s.get(u+1,d+1)*p*h}getElevationForLngLatZoom(e,n){if(!t.bb(n,e.wrap()))return 0;let{tileID:r,mercatorX:a,mercatorY:i}=this._getOverscaledTileIDFromLngLatZoom(e,n);return this.getElevation(r,a%t.X,i%t.X,t.X)}getElevation(e,n,r,a=t.X){return this.getDEMElevation(e,n,r,a)*this.exaggeration}getTerrainData(e){if(!this._emptyDemTexture){let e=this.painter.context,n=new t.R({width:1,height:1},new Uint8Array(4));this._emptyDepthTexture=new z(e,n,e.gl.RGBA,{premultiply:!1}),this._emptyDemUnpack=[0,0,0,0],this._emptyDemTexture=new z(e,new t.R({width:1,height:1}),e.gl.RGBA,{premultiply:!1}),this._emptyDemTexture.bind(e.gl.NEAREST,e.gl.CLAMP_TO_EDGE),this._emptyDemMatrix=t.an([])}let n=this.sourceCache.getSourceTile(e,!0);if(n&&n.dem&&(!n.demTexture||n.needsTerrainPrepare)){let e=this.painter.context;n.demTexture=this.painter.getTileTexture(n.dem.stride),n.demTexture?n.demTexture.update(n.dem.getPixels(),{premultiply:!1}):n.demTexture=new z(e,n.dem.getPixels(),e.gl.RGBA,{premultiply:!1}),n.demTexture.bind(e.gl.NEAREST,e.gl.CLAMP_TO_EDGE),n.needsTerrainPrepare=!1}let r=n&&n+n.tileID.key+e.key;if(r&&!this._demMatrixCache[r]){let r=this.sourceCache.sourceCache._source.maxzoom,a=e.canonical.z-n.tileID.canonical.z;e.overscaledZ>e.canonical.z&&(e.canonical.z>=r?a=e.canonical.z-r:t.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let i=e.canonical.x-(e.canonical.x>>a<<a),o=e.canonical.y-(e.canonical.y>>a<<a),s=t.bc(new Float64Array(16),[1/(t.X<<a),1/(t.X<<a),0]);t.J(s,s,[i*t.X,o*t.X,0]),this._demMatrixCache[e.key]={matrix:s,coord:e}}return{u_depth:2,u_terrain:3,u_terrain_dim:n&&n.dem&&n.dem.dim||1,u_terrain_matrix:r?this._demMatrixCache[e.key].matrix:this._emptyDemMatrix,u_terrain_unpack:n&&n.dem&&n.dem.getUnpackVector()||this._emptyDemUnpack,u_terrain_exaggeration:this.exaggeration,texture:(n&&n.demTexture||this._emptyDemTexture).texture,depthTexture:(this._fboDepthTexture||this._emptyDepthTexture).texture,tile:n}}getFramebuffer(e){let t=this.painter,n=t.width/devicePixelRatio,r=t.height/devicePixelRatio;return!this._fbo||this._fbo.width===n&&this._fbo.height===r||(this._fbo.destroy(),this._fboCoordsTexture.destroy(),this._fboDepthTexture.destroy(),delete this._fbo,delete this._fboDepthTexture,delete this._fboCoordsTexture),this._fboCoordsTexture||(this._fboCoordsTexture=new z(t.context,{width:n,height:r,data:null},t.context.gl.RGBA,{premultiply:!1}),this._fboCoordsTexture.bind(t.context.gl.NEAREST,t.context.gl.CLAMP_TO_EDGE)),this._fboDepthTexture||(this._fboDepthTexture=new z(t.context,{width:n,height:r,data:null},t.context.gl.RGBA,{premultiply:!1}),this._fboDepthTexture.bind(t.context.gl.NEAREST,t.context.gl.CLAMP_TO_EDGE)),this._fbo||(this._fbo=t.context.createFramebuffer(n,r,!0,!1),this._fbo.depthAttachment.set(t.context.createRenderbuffer(t.context.gl.DEPTH_COMPONENT16,n,r))),this._fbo.colorAttachment.set("coords"===e?this._fboCoordsTexture.texture:this._fboDepthTexture.texture),this._fbo}getCoordsTexture(){let e=this.painter.context;if(this._coordsTexture)return this._coordsTexture;let n=new Uint8Array(this._coordsTextureSize*this._coordsTextureSize*4);for(let e=0,t=0;e<this._coordsTextureSize;e++)for(let r=0;r<this._coordsTextureSize;r++,t+=4)n[t+0]=255&r,n[t+1]=255&e,n[t+2]=r>>8<<4|e>>8,n[t+3]=0;let r=new t.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(n.buffer)),a=new z(e,r,e.gl.RGBA,{premultiply:!1});return a.bind(e.gl.NEAREST,e.gl.CLAMP_TO_EDGE),this._coordsTexture=a,a}pointCoordinate(e){this.painter.maybeDrawDepthAndCoords(!0);let n=new Uint8Array(4),r=this.painter.context,a=r.gl,i=Math.round(e.x*this.painter.pixelRatio/devicePixelRatio),o=Math.round(e.y*this.painter.pixelRatio/devicePixelRatio),s=Math.round(this.painter.height/devicePixelRatio);r.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),a.readPixels(i,s-o-1,1,1,a.RGBA,a.UNSIGNED_BYTE,n),r.bindFramebuffer.set(null);let l=n[0]+(n[2]>>4<<8),c=n[1]+((15&n[2])<<8),u=this.coordsIndex[255-n[3]],d=u&&this.sourceCache.getTileByID(u);if(!d)return null;let p=this._coordsTextureSize,h=(1<<d.tileID.canonical.z)*p;return new t.Z((d.tileID.canonical.x*p+l)/h+d.tileID.wrap,(d.tileID.canonical.y*p+c)/h,this.getElevation(d.tileID,l,c,p))}depthAtPoint(e){let t=new Uint8Array(4),n=this.painter.context,r=n.gl;return n.bindFramebuffer.set(this.getFramebuffer("depth").framebuffer),r.readPixels(e.x,this.painter.height/devicePixelRatio-e.y-1,1,1,r.RGBA,r.UNSIGNED_BYTE,t),n.bindFramebuffer.set(null),(t[0]/16777216+t[1]/65536+t[2]/256+t[3])/256}getTerrainMesh(){if(this._mesh)return this._mesh;let e=this.painter.context,n=new t.bd,r=new t.aY,a=this.meshSize,i=t.X/a,o=a*a;for(let e=0;e<=a;e++)for(let t=0;t<=a;t++)n.emplaceBack(t*i,e*i,0);for(let e=0;e<o;e+=a+1)for(let t=0;t<a;t++)r.emplaceBack(t+e,a+t+e+1,a+t+e+2),r.emplaceBack(t+e,a+t+e+2,t+e+1);let s=n.length,l=s+2*(a+1);for(let e of[0,1])for(let r=0;r<=a;r++)for(let a of[0,1])n.emplaceBack(r*i,e*t.X,a);for(let e=0;e<2*a;e+=2)r.emplaceBack(l+e,l+e+1,l+e+3),r.emplaceBack(l+e,l+e+3,l+e+2),r.emplaceBack(s+e,s+e+3,s+e+1),r.emplaceBack(s+e,s+e+2,s+e+3);let c=n.length,u=c+2*(a+1);for(let e of[0,1])for(let r=0;r<=a;r++)for(let a of[0,1])n.emplaceBack(e*t.X,r*i,a);for(let e=0;e<2*a;e+=2)r.emplaceBack(c+e,c+e+1,c+e+3),r.emplaceBack(c+e,c+e+3,c+e+2),r.emplaceBack(u+e,u+e+3,u+e+1),r.emplaceBack(u+e,u+e+2,u+e+3);return this._mesh=new vr(e.createVertexBuffer(n,Ca.members),e.createIndexBuffer(r),t.a0.simpleSegment(0,0,n.length,r.length)),this._mesh}getMeshFrameDelta(e){return 2*Math.PI*t.be/Math.pow(2,e)/5}getMinTileElevationForLngLatZoom(e,t){var n;let{tileID:r}=this._getOverscaledTileIDFromLngLatZoom(e,t);return null!==(n=this.getMinMaxElevation(r).minElevation)&&void 0!==n?n:0}getMinMaxElevation(e){let t=this.getTerrainData(e).tile,n={minElevation:null,maxElevation:null};return t&&t.dem&&(n.minElevation=t.dem.min*this.exaggeration,n.maxElevation=t.dem.max*this.exaggeration),n}_getOverscaledTileIDFromLngLatZoom(e,n){let r=t.Z.fromLngLat(e.wrap()),a=(1<<n)*t.X,i=r.x*a,o=r.y*a,s=Math.floor(i/t.X),l=Math.floor(o/t.X);return{tileID:new t.S(n,0,n,s,l),mercatorX:i,mercatorY:o}}}class Da{constructor(e,t,n){this._context=e,this._size=t,this._tileSize=n,this._objects=[],this._recentlyUsed=[],this._stamp=0}destruct(){for(let e of this._objects)e.texture.destroy(),e.fbo.destroy()}_createObject(e){let t=this._context.createFramebuffer(this._tileSize,this._tileSize,!0,!0),n=new z(this._context,{width:this._tileSize,height:this._tileSize,data:null},this._context.gl.RGBA);return n.bind(this._context.gl.LINEAR,this._context.gl.CLAMP_TO_EDGE),t.depthAttachment.set(this._context.createRenderbuffer(this._context.gl.DEPTH_STENCIL,this._tileSize,this._tileSize)),t.colorAttachment.set(n.texture),{id:e,fbo:t,texture:n,stamp:-1,inUse:!1}}getObjectForId(e){return this._objects[e]}useObject(e){e.inUse=!0,this._recentlyUsed=this._recentlyUsed.filter(t=>e.id!==t),this._recentlyUsed.push(e.id)}stampObject(e){e.stamp=++this._stamp}getOrCreateFreeObject(){for(let e of this._recentlyUsed)if(!this._objects[e].inUse)return this._objects[e];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");let e=this._createObject(this._objects.length);return this._objects.push(e),e}freeObject(e){e.inUse=!1}freeAllObjects(){for(let e of this._objects)this.freeObject(e)}isFull(){return!(this._objects.length<this._size)&&!1===this._objects.some(e=>!e.inUse)}}let Ra={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class La{constructor(e,t){this.painter=e,this.terrain=t,this.pool=new Da(e.context,30,t.sourceCache.tileSize*t.qualityFactor)}destruct(){this.pool.destruct()}getTexture(e){return this.pool.getObjectForId(e.rtt[this._stacks.length-1].id).texture}prepareForRender(e,t){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=e._order.filter(n=>!e._layers[n].isHidden(t)),this._coordsDescendingInv={};for(let t in e.sourceCaches){this._coordsDescendingInv[t]={};let n=e.sourceCaches[t].getVisibleCoordinates();for(let e of n){let n=this.terrain.sourceCache.getTerrainCoords(e);for(let e in n)this._coordsDescendingInv[t][e]||(this._coordsDescendingInv[t][e]=[]),this._coordsDescendingInv[t][e].push(n[e])}}this._coordsDescendingInvStr={};for(let t of e._order){let n=e._layers[t],r=n.source;if(Ra[n.type]&&!this._coordsDescendingInvStr[r]){this._coordsDescendingInvStr[r]={};for(let e in this._coordsDescendingInv[r])this._coordsDescendingInvStr[r][e]=this._coordsDescendingInv[r][e].map(e=>e.key).sort().join()}}for(let e of this._renderableTiles)for(let t in this._coordsDescendingInvStr){let n=this._coordsDescendingInvStr[t][e.tileID.key];n&&n!==e.rttCoords[t]&&(e.rtt=[])}}renderLayer(e){if(e.isHidden(this.painter.transform.zoom))return!1;let n=e.type,r=this.painter,a=this._renderableLayerIds[this._renderableLayerIds.length-1]===e.id;if(Ra[n]&&(this._prevType&&Ra[this._prevType]||this._stacks.push([]),this._prevType=n,this._stacks[this._stacks.length-1].push(e.id),!a))return!0;if(Ra[this._prevType]||Ra[n]&&a){this._prevType=n;let e=this._stacks.length-1,a=this._stacks[e]||[];for(let n of this._renderableTiles){if(this.pool.isFull()&&(br(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(n),n.rtt[e]){let t=this.pool.getObjectForId(n.rtt[e].id);if(t.stamp===n.rtt[e].stamp){this.pool.useObject(t);continue}}let i=this.pool.getOrCreateFreeObject();this.pool.useObject(i),this.pool.stampObject(i),n.rtt[e]={id:i.id,stamp:i.stamp},r.context.bindFramebuffer.set(i.fbo.framebuffer),r.context.clear({color:t.aM.transparent,stencil:0}),r.currentStencilSource=void 0;for(let e=0;e<a.length;e++){let t=r.style._layers[a[e]],o=t.source?this._coordsDescendingInv[t.source][n.tileID.key]:[n.tileID];r.context.viewport.set([0,0,i.fbo.width,i.fbo.height]),r._renderTileClippingMasks(t,o),r.renderLayer(r,r.style.sourceCaches[t.source],t,o),t.source&&(n.rttCoords[t.source]=this._coordsDescendingInvStr[t.source][n.tileID.key])}}return br(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects(),Ra[n]}return!1}}let Ia,Wa={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"MapLibre logo","Map.Title":"Map","Marker.Title":"Map marker","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","Popup.Close":"Close popup","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","TerrainControl.Enable":"Enable terrain","TerrainControl.Disable":"Disable terrain","CooperativeGesturesHandler.WindowsHelpText":"Use Ctrl + scroll to zoom the map","CooperativeGesturesHandler.MacHelpText":"Use ⌘ + scroll to zoom the map","CooperativeGesturesHandler.MobileHelpText":"Use two fingers to move the map"},Na=n,Pa={hash:!1,interactive:!0,bearingSnap:7,attributionControl:wa,maplibreLogo:!1,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,refreshExpiredTiles:!0,scrollZoom:!0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,trackResize:!0,center:[0,0],zoom:0,bearing:0,pitch:0,renderWorldCopies:!0,maxTileCacheSize:null,maxTileCacheZoomLevels:t.a.MAX_TILE_CACHE_ZOOM_LEVELS,transformRequest:null,transformCameraUpdate:null,fadeDuration:300,crossSourceCollisions:!0,clickTolerance:3,localIdeographFontFamily:"sans-serif",pitchWithRotate:!0,validateStyle:!0,maxCanvasSize:[4096,4096],cancelPendingTileRequestsWhileZooming:!0},Ba=e=>{e.touchstart=e.dragStart,e.touchmoveWindow=e.dragMove,e.touchend=e.dragEnd},Fa={showCompass:!0,showZoom:!0,visualizePitch:!1};class ja{constructor(e,n,r=!1){this.mousedown=e=>{this.startMouse(t.e({},e,{ctrlKey:!0,preventDefault:()=>e.preventDefault()}),o.mousePos(this.element,e)),o.addEventListener(window,"mousemove",this.mousemove),o.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=e=>{this.moveMouse(e,o.mousePos(this.element,e))},this.mouseup=e=>{this.mouseRotate.dragEnd(e),this.mousePitch&&this.mousePitch.dragEnd(e),this.offTemp()},this.touchstart=e=>{1!==e.targetTouches.length?this.reset():(this._startPos=this._lastPos=o.touchPos(this.element,e.targetTouches)[0],this.startTouch(e,this._startPos),o.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),o.addEventListener(window,"touchend",this.touchend))},this.touchmove=e=>{1!==e.targetTouches.length?this.reset():(this._lastPos=o.touchPos(this.element,e.targetTouches)[0],this.moveTouch(e,this._lastPos))},this.touchend=e=>{0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),delete this._startPos,delete this._lastPos,this.offTemp()},this.reset=()=>{this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;let a=e.dragRotate._mouseRotate.getClickTolerance(),i=e.dragRotate._mousePitch.getClickTolerance();this.element=n,this.mouseRotate=Qr({clickTolerance:a,enable:!0}),this.touchRotate=(({enable:e,clickTolerance:t,bearingDegreesPerPixelMoved:n=.8})=>{let r=new $r;return new Gr({clickTolerance:t,move:(e,t)=>({bearingDelta:(t.x-e.x)*n}),moveStateManager:r,enable:e,assignEvents:Ba})})({clickTolerance:a,enable:!0}),this.map=e,r&&(this.mousePitch=Kr({clickTolerance:i,enable:!0}),this.touchPitch=(({enable:e,clickTolerance:t,pitchDegreesPerPixelMoved:n=-.5})=>{let r=new $r;return new Gr({clickTolerance:t,move:(e,t)=>({pitchDelta:(t.y-e.y)*n}),moveStateManager:r,enable:e,assignEvents:Ba})})({clickTolerance:i,enable:!0})),o.addEventListener(n,"mousedown",this.mousedown),o.addEventListener(n,"touchstart",this.touchstart,{passive:!1}),o.addEventListener(n,"touchcancel",this.reset)}startMouse(e,t){this.mouseRotate.dragStart(e,t),this.mousePitch&&this.mousePitch.dragStart(e,t),o.disableDrag()}startTouch(e,t){this.touchRotate.dragStart(e,t),this.touchPitch&&this.touchPitch.dragStart(e,t),o.disableDrag()}moveMouse(e,t){let n=this.map,{bearingDelta:r}=this.mouseRotate.dragMove(e,t)||{};if(r&&n.setBearing(n.getBearing()+r),this.mousePitch){let{pitchDelta:r}=this.mousePitch.dragMove(e,t)||{};r&&n.setPitch(n.getPitch()+r)}}moveTouch(e,t){let n=this.map,{bearingDelta:r}=this.touchRotate.dragMove(e,t)||{};if(r&&n.setBearing(n.getBearing()+r),this.touchPitch){let{pitchDelta:r}=this.touchPitch.dragMove(e,t)||{};r&&n.setPitch(n.getPitch()+r)}}off(){let e=this.element;o.removeEventListener(e,"mousedown",this.mousedown),o.removeEventListener(e,"touchstart",this.touchstart,{passive:!1}),o.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),o.removeEventListener(window,"touchend",this.touchend),o.removeEventListener(e,"touchcancel",this.reset),this.offTemp()}offTemp(){o.enableDrag(),o.removeEventListener(window,"mousemove",this.mousemove),o.removeEventListener(window,"mouseup",this.mouseup),o.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),o.removeEventListener(window,"touchend",this.touchend)}}function Ua(e,n,r){let a=new t.N(e.lng,e.lat);if(e=new t.N(e.lng,e.lat),n){let a=new t.N(e.lng-360,e.lat),i=new t.N(e.lng+360,e.lat),o=r.locationPoint(e).distSqr(n);r.locationPoint(a).distSqr(n)<o?e=a:r.locationPoint(i).distSqr(n)<o&&(e=i)}for(;Math.abs(e.lng-r.center.lng)>180;){let t=r.locationPoint(e);if(t.x>=0&&t.y>=0&&t.x<=r.width&&t.y<=r.height)break;e.lng>r.center.lng?e.lng-=360:e.lng+=360}return e.lng!==a.lng&&r.locationPoint(e).y>r.height/2-r.getHorizon()?e:a}let Va={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Ha(e,t,n){let r=e.classList;for(let e in Va)r.remove(`maplibregl-${n}-anchor-${e}`);r.add(`maplibregl-${n}-anchor-${t}`)}class Xa extends t.E{constructor(e){if(super(),this._onKeyPress=e=>{let t=e.code,n=e.charCode||e.keyCode;"Space"!==t&&"Enter"!==t&&32!==n&&13!==n||this.togglePopup()},this._onMapClick=e=>{let t=e.originalEvent.target,n=this._element;this._popup&&(t===n||n.contains(t))&&this.togglePopup()},this._update=e=>{var t;if(!this._map)return;let n=this._map.loaded()&&!this._map.isMoving();("terrain"===e?.type||"render"===e?.type&&!n)&&this._map.once("render",this._update),this._lngLat=this._map.transform.renderWorldCopies?Ua(this._lngLat,this._flatPos,this._map.transform):null===(t=this._lngLat)||void 0===t?void 0:t.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let r="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?r=`rotateZ(${this._rotation}deg)`:"map"===this._rotationAlignment&&(r=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let a="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?a="rotateX(0deg)":"map"===this._pitchAlignment&&(a=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||e&&"moveend"!==e.type||(this._pos=this._pos.round()),o.setTransform(this._element,`${Va[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${a} ${r}`),i.frameAsync(new AbortController).then(()=>{this._updateOpacity(e&&"moveend"===e.type)}).catch(()=>{})},this._onMove=e=>{if(!this._isDragging){let t=this._clickTolerance||this._map._clickTolerance;this._isDragging=e.point.dist(this._pointerdownPos)>=t}this._isDragging&&(this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new t.k("dragstart"))),this.fire(new t.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new t.k("dragend")),this._state="inactive"},this._addDragHandler=e=>{this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(this._pos).add(this._offset),this._pointerdownPos=e.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=e&&e.anchor||"center",this._color=e&&e.color||"#3FB1CE",this._scale=e&&e.scale||1,this._draggable=e&&e.draggable||!1,this._clickTolerance=e&&e.clickTolerance||0,this._subpixelPositioning=e&&e.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=e&&e.rotation||0,this._rotationAlignment=e&&e.rotationAlignment||"auto",this._pitchAlignment=e&&e.pitchAlignment&&"auto"!==e.pitchAlignment?e.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(e?.opacity,e?.opacityWhenCovered),e&&e.element)this._element=e.element,this._offset=t.P.convert(e&&e.offset||[0,0]);else{this._defaultMarker=!0,this._element=o.create("div");let n=o.createNS("http://www.w3.org/2000/svg","svg"),r=41,a=27;n.setAttributeNS(null,"display","block"),n.setAttributeNS(null,"height",`${r}px`),n.setAttributeNS(null,"width",`${a}px`),n.setAttributeNS(null,"viewBox",`0 0 ${a} ${r}`);let i=o.createNS("http://www.w3.org/2000/svg","g");i.setAttributeNS(null,"stroke","none"),i.setAttributeNS(null,"stroke-width","1"),i.setAttributeNS(null,"fill","none"),i.setAttributeNS(null,"fill-rule","evenodd");let s=o.createNS("http://www.w3.org/2000/svg","g");s.setAttributeNS(null,"fill-rule","nonzero");let l=o.createNS("http://www.w3.org/2000/svg","g");l.setAttributeNS(null,"transform","translate(3.0, 29.0)"),l.setAttributeNS(null,"fill","#000000");let c=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(let e of c){let t=o.createNS("http://www.w3.org/2000/svg","ellipse");t.setAttributeNS(null,"opacity","0.04"),t.setAttributeNS(null,"cx","10.5"),t.setAttributeNS(null,"cy","5.80029008"),t.setAttributeNS(null,"rx",e.rx),t.setAttributeNS(null,"ry",e.ry),l.appendChild(t)}let u=o.createNS("http://www.w3.org/2000/svg","g");u.setAttributeNS(null,"fill",this._color);let d=o.createNS("http://www.w3.org/2000/svg","path");d.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),u.appendChild(d);let p=o.createNS("http://www.w3.org/2000/svg","g");p.setAttributeNS(null,"opacity","0.25"),p.setAttributeNS(null,"fill","#000000");let h=o.createNS("http://www.w3.org/2000/svg","path");h.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),p.appendChild(h);let f=o.createNS("http://www.w3.org/2000/svg","g");f.setAttributeNS(null,"transform","translate(6.0, 7.0)"),f.setAttributeNS(null,"fill","#FFFFFF");let m=o.createNS("http://www.w3.org/2000/svg","g");m.setAttributeNS(null,"transform","translate(8.0, 8.0)");let g=o.createNS("http://www.w3.org/2000/svg","circle");g.setAttributeNS(null,"fill","#000000"),g.setAttributeNS(null,"opacity","0.25"),g.setAttributeNS(null,"cx","5.5"),g.setAttributeNS(null,"cy","5.5"),g.setAttributeNS(null,"r","5.4999962");let y=o.createNS("http://www.w3.org/2000/svg","circle");y.setAttributeNS(null,"fill","#FFFFFF"),y.setAttributeNS(null,"cx","5.5"),y.setAttributeNS(null,"cy","5.5"),y.setAttributeNS(null,"r","5.4999962"),m.appendChild(g),m.appendChild(y),s.appendChild(l),s.appendChild(u),s.appendChild(p),s.appendChild(f),s.appendChild(m),n.appendChild(s),n.setAttributeNS(null,"height",r*this._scale+"px"),n.setAttributeNS(null,"width",a*this._scale+"px"),this._element.appendChild(n),this._offset=t.P.convert(e&&e.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",e=>{e.preventDefault()}),this._element.addEventListener("mousedown",e=>{e.preventDefault()}),Ha(this._element,this._anchor,"marker"),e&&e.className)for(let t of e.className.split(" "))this._element.classList.add(t);this._popup=null}addTo(e){return this.remove(),this._map=e,this._element.setAttribute("aria-label",e._getUIString("Marker.Title")),e.getCanvasContainer().appendChild(this._element),e.on("move",this._update),e.on("moveend",this._update),e.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),o.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=t.N.convert(e),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),e){if(!("offset"in e.options)){let t=Math.abs(13.5)/Math.SQRT2;e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[t,-1*(24.6+t)],"bottom-right":[-t,-1*(24.6+t)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=e,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(e){return this._subpixelPositioning=e,this}getPopup(){return this._popup}togglePopup(){let e=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:e?(e.isOpen()?e.remove():(e.setLngLat(this._lngLat),e.addTo(this._map)),this):this}_updateOpacity(e=!1){var n,r;if(null===(n=this._map)||void 0===n||!n.terrain)return void(this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity));if(e)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}let a=this._map,i=a.terrain.depthAtPoint(this._pos),o=a.terrain.getElevationForLngLatZoom(this._lngLat,a.transform.tileZoom);if(a.transform.lngLatToCameraDepth(this._lngLat,o)-i<.006)return void(this._element.style.opacity=this._opacity);let s=-this._offset.y/a.transform._pixelPerMeter,l=Math.sin(a.getPitch()*Math.PI/180)*s,c=a.terrain.depthAtPoint(new t.P(this._pos.x,this._pos.y-this._offset.y)),u=a.transform.lngLatToCameraDepth(this._lngLat,o+l)-c>.006;!(null===(r=this._popup)||void 0===r)&&r.isOpen()&&u&&this._popup.remove(),this._element.style.opacity=u?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(e){return this._offset=t.P.convert(e),this._update(),this}addClassName(e){this._element.classList.add(e)}removeClassName(e){this._element.classList.remove(e)}toggleClassName(e){return this._element.classList.toggle(e)}setDraggable(e){return this._draggable=!!e,this._map&&(e?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e&&"auto"!==e?e:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(e,t){return void 0===e&&void 0===t&&(this._opacity="1",this._opacityWhenCovered="0.2"),void 0!==e&&(this._opacity=e),void 0!==t&&(this._opacityWhenCovered=t),this._map&&this._updateOpacity(!0),this}}let Ga={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Ya=0,Za=!1,$a={maxWidth:100,unit:"metric"};function Ja(e,t,n){let r=n&&n.maxWidth||100,a=e._container.clientHeight/2,i=e.unproject([0,a]),o=e.unproject([r,a]),s=i.distanceTo(o);if(n&&"imperial"===n.unit){let n=3.2808*s;n>5280?Qa(t,r,n/5280,e._getUIString("ScaleControl.Miles")):Qa(t,r,n,e._getUIString("ScaleControl.Feet"))}else n&&"nautical"===n.unit?Qa(t,r,s/1852,e._getUIString("ScaleControl.NauticalMiles")):s>=1e3?Qa(t,r,s/1e3,e._getUIString("ScaleControl.Kilometers")):Qa(t,r,s,e._getUIString("ScaleControl.Meters"))}function Qa(e,t,n,r){let a=function(e){let t=Math.pow(10,`${Math.floor(e)}`.length-1),n=e/t;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:n>=1?1:function(e){let t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(n),t*n}(n);e.style.width=t*(a/n)+"px",e.innerHTML=`${a}&nbsp;${r}`}let Ka={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},ei=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function ti(e){if(e){if("number"==typeof e){let n=Math.round(Math.abs(e)/Math.SQRT2);return{center:new t.P(0,0),top:new t.P(0,e),"top-left":new t.P(n,n),"top-right":new t.P(-n,n),bottom:new t.P(0,-e),"bottom-left":new t.P(n,-n),"bottom-right":new t.P(-n,-n),left:new t.P(e,0),right:new t.P(-e,0)}}if(e instanceof t.P||Array.isArray(e)){let n=t.P.convert(e);return{center:n,top:n,"top-left":n,"top-right":n,bottom:n,"bottom-left":n,"bottom-right":n,left:n,right:n}}return{center:t.P.convert(e.center||[0,0]),top:t.P.convert(e.top||[0,0]),"top-left":t.P.convert(e["top-left"]||[0,0]),"top-right":t.P.convert(e["top-right"]||[0,0]),bottom:t.P.convert(e.bottom||[0,0]),"bottom-left":t.P.convert(e["bottom-left"]||[0,0]),"bottom-right":t.P.convert(e["bottom-right"]||[0,0]),left:t.P.convert(e.left||[0,0]),right:t.P.convert(e.right||[0,0])}}return ti(new t.P(0,0))}let ni=n;e.AJAXError=t.bh,e.Evented=t.E,e.LngLat=t.N,e.MercatorCoordinate=t.Z,e.Point=t.P,e.addProtocol=t.bi,e.config=t.a,e.removeProtocol=t.bj,e.AttributionControl=ka,e.BoxZoomHandler=jr,e.CanvasSource=ne,e.CooperativeGesturesHandler=Ma,e.DoubleClickZoomHandler=fa,e.DragPanHandler=ya,e.DragRotateHandler=ba,e.EdgeInsets=_r,e.FullscreenControl=class extends t.E{constructor(e={}){super(),this._onFullscreenChange=()=>{var e;let t=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;null!==(e=t?.shadowRoot)&&void 0!==e&&e.fullscreenElement;)t=t.shadowRoot.fullscreenElement;t===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,e&&e.container&&(e.container instanceof HTMLElement?this._container=e.container:t.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=o.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){o.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let e=this._fullscreenButton=o.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);o.create("span","maplibregl-ctrl-icon",e).setAttribute("aria-hidden","true"),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new t.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new t.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},e.GeoJSONSource=Q,e.GeolocateControl=class extends t.E{constructor(e){super(),this._onSuccess=e=>{if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.k("outofmaxbounds",e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(e),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(e),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new t.k("geolocate",e)),this._finish()}},this._updateCamera=e=>{let n=new t.N(e.coords.longitude,e.coords.latitude),r=e.coords.accuracy,a=this._map.getBearing(),i=t.e({bearing:a},this.options.fitBoundsOptions),o=G.fromLngLat(n,r);this._map.fitBounds(o,i,{geolocateSource:!0})},this._updateMarker=e=>{if(e){let n=new t.N(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=e=>{if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=e,this._geolocateButton.setAttribute("aria-label",e),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===e.code&&Za)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new t.k("error",e)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",e=>e.preventDefault()),this._geolocateButton=o.create("button","maplibregl-ctrl-geolocate",this._container),o.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=e=>{if(this._map){if(!1===e){t.w("Geolocation support is not available so the GeolocateControl will be disabled.");let e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=e,this._geolocateButton.setAttribute("aria-label",e)}else{let e=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=e,this._geolocateButton.setAttribute("aria-label",e)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new Xa({element:this._dotElement}),this._circleElement=o.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Xa({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",e=>{e.geolocateSource||"ACTIVE_LOCK"!==this._watchState||e.originalEvent&&"resize"===e.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new t.k("trackuserlocationend")),this.fire(new t.k("userlocationlostfocus")))})}},this.options=t.e({},Ga,e)}onAdd(e){return this._map=e,this._container=o.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),function(){return t._(this,arguments,void 0,function*(e=!1){if(void 0!==Ia&&!e)return Ia;if(void 0===window.navigator.permissions)return Ia=!!window.navigator.geolocation,Ia;try{Ia="denied"!==(yield window.navigator.permissions.query({name:"geolocation"})).state}catch{Ia=!!window.navigator.geolocation}return Ia})}().then(e=>this._finishSetupUI(e)),this._container}onRemove(){void 0!==this._geolocationWatchID&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),o.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Ya=0,Za=!1}_isOutOfMapMaxBounds(e){let t=this._map.getMaxBounds(),n=e.coords;return t&&(n.longitude<t.getWest()||n.longitude>t.getEast()||n.latitude<t.getSouth()||n.latitude>t.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){let e=this._map.getBounds(),t=e.getSouthEast(),n=e.getNorthEast(),r=t.distanceTo(n),a=Math.ceil(this._accuracy/(r/this._map._container.clientHeight)*2);this._circleElement.style.width=`${a}px`,this._circleElement.style.height=`${a}px`}trigger(){if(!this._setup)return t.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new t.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Ya--,Za=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new t.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new t.k("trackuserlocationstart")),this.fire(new t.k("userlocationfocus"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let e;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Ya++,Ya>1?(e={maximumAge:6e5,timeout:0},Za=!0):(e=this.options.positionOptions,Za=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},e.Hash=kr,e.ImageSource=ee,e.KeyboardHandler=ua,e.LngLatBounds=G,e.LogoControl=Ta,e.Map=class extends Oa{constructor(e){t.bf.mark(t.bg.create);let n=Object.assign(Object.assign({},Pa),e);if(null!=n.minZoom&&null!=n.maxZoom&&n.minZoom>n.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=n.minPitch&&null!=n.maxPitch&&n.minPitch>n.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=n.minPitch&&n.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=n.maxPitch&&n.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new Or(n.minZoom,n.maxZoom,n.minPitch,n.maxPitch,n.renderWorldCopies),{bearingSnap:n.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new Sa,this._controls=[],this._mapId=t.a4(),this._contextLost=e=>{e.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new t.k("webglcontextlost",{originalEvent:e}))},this._contextRestored=e=>{this._setupPainter(),this.resize(),this._update(),this.fire(new t.k("webglcontextrestored",{originalEvent:e}))},this._onMapScroll=e=>{if(e.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=n.interactive,this._maxTileCacheSize=n.maxTileCacheSize,this._maxTileCacheZoomLevels=n.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=!0===n.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=!0===n.preserveDrawingBuffer,this._antialias=!0===n.antialias,this._trackResize=!0===n.trackResize,this._bearingSnap=n.bearingSnap,this._refreshExpiredTiles=!0===n.refreshExpiredTiles,this._fadeDuration=n.fadeDuration,this._crossSourceCollisions=!0===n.crossSourceCollisions,this._collectResourceTiming=!0===n.collectResourceTiming,this._locale=Object.assign(Object.assign({},Wa),n.locale),this._clickTolerance=n.clickTolerance,this._overridePixelRatio=n.pixelRatio,this._maxCanvasSize=n.maxCanvasSize,this.transformCameraUpdate=n.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=!0===n.cancelPendingTileRequestsWhileZooming,this._imageQueueHandle=h.addThrottleControl(()=>this.isMoving()),this._requestManager=new f(n.transformRequest),"string"==typeof n.container){if(this._container=document.getElementById(n.container),!this._container)throw new Error(`Container '${n.container}' not found.`)}else{if(!(n.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=n.container}if(n.maxBounds&&this.setMaxBounds(n.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)).on("moveend",()=>this._update(!1)).on("zoom",()=>this._update(!0)).on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}).once("idle",()=>{this._idleTriggered=!0}),typeof window<"u"){addEventListener("online",this._onWindowOnline,!1);let e=!1,t=wr(e=>{this._trackResize&&!this._removed&&(this.resize(e),this.redraw())},50);this._resizeObserver=new ResizeObserver(n=>{e?t(n):e=!0}),this._resizeObserver.observe(this._container)}this.handlers=new Aa(this,n),this._hash=n.hash&&new kr("string"==typeof n.hash&&n.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:n.center,zoom:n.zoom,bearing:n.bearing,pitch:n.pitch}),n.bounds&&(this.resize(),this.fitBounds(n.bounds,t.e({},n.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=n.localIdeographFontFamily,this._validateStyle=n.validateStyle,n.style&&this.setStyle(n.style,{localIdeographFontFamily:n.localIdeographFontFamily}),n.attributionControl&&this.addControl(new ka("boolean"==typeof n.attributionControl?void 0:n.attributionControl)),n.maplibreLogo&&this.addControl(new Ta,n.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",e=>{this._update("style"===e.dataType),this.fire(new t.k(`${e.dataType}data`,e))}),this.on("dataloading",e=>{this.fire(new t.k(`${e.dataType}dataloading`,e))}),this.on("dataabort",e=>{this.fire(new t.k("sourcedataabort",e))})}_getMapId(){return this._mapId}addControl(e,n){if(void 0===n&&(n=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!e||!e.onAdd)return this.fire(new t.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let r=e.onAdd(this);this._controls.push(e);let a=this._controlPositions[n];return-1!==n.indexOf("bottom")?a.insertBefore(r,a.firstChild):a.appendChild(r),this}removeControl(e){if(!e||!e.onRemove)return this.fire(new t.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let n=this._controls.indexOf(e);return n>-1&&this._controls.splice(n,1),e.onRemove(this),this}hasControl(e){return this._controls.indexOf(e)>-1}calculateCameraOptionsFromTo(e,t,n,r){return null==r&&this.terrain&&(r=this.terrain.getElevationForLngLatZoom(n,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(e,t,n,r)}resize(e){var n;let r=this._containerDimensions(),a=r[0],i=r[1],o=this._getClampedPixelRatio(a,i);if(this._resizeCanvas(a,i,o),this.painter.resize(a,i,o),this.painter.overLimit()){let e=this.painter.context.gl;this._maxCanvasSize=[e.drawingBufferWidth,e.drawingBufferHeight];let t=this._getClampedPixelRatio(a,i);this._resizeCanvas(a,i,t),this.painter.resize(a,i,t)}this.transform.resize(a,i),null===(n=this._requestedCameraState)||void 0===n||n.resize(a,i);let s=!this._moving;return s&&(this.stop(),this.fire(new t.k("movestart",e)).fire(new t.k("move",e))),this.fire(new t.k("resize",e)),s&&this.fire(new t.k("moveend",e)),this}_getClampedPixelRatio(e,t){let{0:n,1:r}=this._maxCanvasSize,a=this.getPixelRatio(),i=e*a,o=t*a;return Math.min(i>n?n/i:1,o>r?r/o:1)*a}getPixelRatio(){var e;return null!==(e=this._overridePixelRatio)&&void 0!==e?e:devicePixelRatio}setPixelRatio(e){this._overridePixelRatio=e,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(e){return this.transform.setMaxBounds(G.convert(e)),this._update()}setMinZoom(e){if((e=e??-2)>=-2&&e<=this.transform.maxZoom)return this.transform.minZoom=e,this._update(),this.getZoom()<e&&this.setZoom(e),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(e){if((e=e??22)>=this.transform.minZoom)return this.transform.maxZoom=e,this._update(),this.getZoom()>e&&this.setZoom(e),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(e){if((e=e??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(e>=0&&e<=this.transform.maxPitch)return this.transform.minPitch=e,this._update(),this.getPitch()<e&&this.setPitch(e),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(e){if((e=e??60)>85)throw new Error("maxPitch must be less than or equal to 85");if(e>=this.transform.minPitch)return this.transform.maxPitch=e,this._update(),this.getPitch()>e&&this.setPitch(e),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(e){return this.transform.renderWorldCopies=e,this._update()}project(e){return this.transform.locationPoint(t.N.convert(e),this.style&&this.terrain)}unproject(e){return this.transform.pointLocation(t.P.convert(e),this.terrain)}isMoving(){var e;return this._moving||(null===(e=this.handlers)||void 0===e?void 0:e.isMoving())}isZooming(){var e;return this._zooming||(null===(e=this.handlers)||void 0===e?void 0:e.isZooming())}isRotating(){var e;return this._rotating||(null===(e=this.handlers)||void 0===e?void 0:e.isRotating())}_createDelegatedListener(e,t,n){if("mouseenter"===e||"mouseover"===e){let r=!1;return{layers:t,listener:n,delegates:{mousemove:a=>{let i=t.filter(e=>this.getLayer(e)),o=0!==i.length?this.queryRenderedFeatures(a.point,{layers:i}):[];o.length?r||(r=!0,n.call(this,new Ir(e,this,a.originalEvent,{features:o}))):r=!1},mouseout:()=>{r=!1}}}}if("mouseleave"===e||"mouseout"===e){let r=!1;return{layers:t,listener:n,delegates:{mousemove:a=>{let i=t.filter(e=>this.getLayer(e));(0!==i.length?this.queryRenderedFeatures(a.point,{layers:i}):[]).length?r=!0:r&&(r=!1,n.call(this,new Ir(e,this,a.originalEvent)))},mouseout:t=>{r&&(r=!1,n.call(this,new Ir(e,this,t.originalEvent)))}}}}{let r=e=>{let r=t.filter(e=>this.getLayer(e)),a=0!==r.length?this.queryRenderedFeatures(e.point,{layers:r}):[];a.length&&(e.features=a,n.call(this,e),delete e.features)};return{layers:t,listener:n,delegates:{[e]:r}}}}_saveDelegatedListener(e,t){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(t)}_removeDelegatedListener(e,t,n){if(!this._delegatedListeners||!this._delegatedListeners[e])return;let r=this._delegatedListeners[e];for(let e=0;e<r.length;e++){let a=r[e];if(a.listener===n&&a.layers.length===t.length&&a.layers.every(e=>t.includes(e))){for(let e in a.delegates)this.off(e,a.delegates[e]);return void r.splice(e,1)}}}on(e,t,n){if(void 0===n)return super.on(e,t);let r=this._createDelegatedListener(e,"string"==typeof t?[t]:t,n);this._saveDelegatedListener(e,r);for(let e in r.delegates)this.on(e,r.delegates[e]);return this}once(e,t,n){if(void 0===n)return super.once(e,t);let r="string"==typeof t?[t]:t,a=this._createDelegatedListener(e,r,n);for(let t in a.delegates){let i=a.delegates[t];a.delegates[t]=(...t)=>{this._removeDelegatedListener(e,r,n),i(...t)}}this._saveDelegatedListener(e,a);for(let e in a.delegates)this.once(e,a.delegates[e]);return this}off(e,t,n){return void 0===n?super.off(e,t):(this._removeDelegatedListener(e,"string"==typeof t?[t]:t,n),this)}queryRenderedFeatures(e,n){if(!this.style)return[];let r,a=e instanceof t.P||Array.isArray(e),i=a?e:[[0,0],[this.transform.width,this.transform.height]];if(n=n||(a?{}:e)||{},i instanceof t.P||"number"==typeof i[0])r=[t.P.convert(i)];else{let e=t.P.convert(i[0]),n=t.P.convert(i[1]);r=[e,new t.P(n.x,e.y),n,new t.P(e.x,n.y),e]}return this.style.queryRenderedFeatures(r,n,this.transform)}querySourceFeatures(e,t){return this.style.querySourceFeatures(e,t)}setStyle(e,n){return!1!==(n=t.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},n)).diff&&n.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&e?(this._diffStyle(e,n),this):(this._localIdeographFontFamily=n.localIdeographFontFamily,this._updateStyle(e,n))}setTransformRequest(e){return this._requestManager.setTransformRequest(e),this}_getUIString(e){let t=this._locale[e];if(null==t)throw new Error(`Missing UI string '${e}'`);return t}_updateStyle(e,t){if(t.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(e,t));let n=this.style&&t.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!e)),e?(this.style=new ht(this,t||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof e?this.style.loadURL(e,t,n):this.style.loadJSON(e,t,n),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new ht(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(e,n){if("string"==typeof e){let r=this._requestManager.transformRequest(e,"Style");t.h(r,new AbortController).then(e=>{this._updateDiff(e.data,n)}).catch(e=>{e&&this.fire(new t.j(e))})}else"object"==typeof e&&this._updateDiff(e,n)}_updateDiff(e,n){try{this.style.setState(e,n)&&this._update(!0)}catch(r){t.w(`Unable to perform style diff: ${r.message||r.error||r}. Rebuilding the style from scratch.`),this._updateStyle(e,n)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():t.w("There is no style added to the map.")}addSource(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)}isSourceLoaded(e){let n=this.style&&this.style.sourceCaches[e];if(void 0!==n)return n.loaded();this.fire(new t.j(new Error(`There is no source with ID '${e}'`)))}setTerrain(e){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),e){let n=this.style.sourceCaches[e.source];if(!n)throw new Error(`cannot load terrain, because there exists no source with ID: ${e.source}`);null===this.terrain&&n.reload();for(let n in this.style._layers){let r=this.style._layers[n];"hillshade"===r.type&&r.source===e.source&&t.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new qa(this.painter,n,e),this.painter.renderToTexture=new La(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=t=>{"style"===t.dataType?this.terrain.sourceCache.freeRtt():"source"===t.dataType&&t.tile&&(t.sourceId!==e.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(t.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new t.k("terrain",{terrain:e})),this}getTerrain(){var e,t;return null!==(t=null===(e=this.terrain)||void 0===e?void 0:e.options)&&void 0!==t?t:null}areTilesLoaded(){let e=this.style&&this.style.sourceCaches;for(let t in e){let n=e[t]._tiles;for(let e in n){let t=n[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}}return!0}removeSource(e){return this.style.removeSource(e),this._update(!0)}getSource(e){return this.style.getSource(e)}addImage(e,n,r={}){let{pixelRatio:a=1,sdf:o=!1,stretchX:s,stretchY:l,content:c,textFitWidth:u,textFitHeight:d}=r;if(this._lazyInitEmptyStyle(),!(n instanceof HTMLImageElement||t.b(n))){if(void 0===n.width||void 0===n.height)return this.fire(new t.j(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{let{width:r,height:i,data:p}=n,h=n;return this.style.addImage(e,{data:new t.R({width:r,height:i},new Uint8Array(p)),pixelRatio:a,stretchX:s,stretchY:l,content:c,textFitWidth:u,textFitHeight:d,sdf:o,version:0,userImage:h}),h.onAdd&&h.onAdd(this,e),this}}{let{width:r,height:p,data:h}=i.getImageData(n);this.style.addImage(e,{data:new t.R({width:r,height:p},h),pixelRatio:a,stretchX:s,stretchY:l,content:c,textFitWidth:u,textFitHeight:d,sdf:o,version:0})}}updateImage(e,n){let r=this.style.getImage(e);if(!r)return this.fire(new t.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let a=n instanceof HTMLImageElement||t.b(n)?i.getImageData(n):n,{width:o,height:s,data:l}=a;if(void 0===o||void 0===s)return this.fire(new t.j(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(o!==r.data.width||s!==r.data.height)return this.fire(new t.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));let c=!(n instanceof HTMLImageElement||t.b(n));return r.data.replace(l,c),this.style.updateImage(e,r),this}getImage(e){return this.style.getImage(e)}hasImage(e){return e?!!this.style.getImage(e):(this.fire(new t.j(new Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}loadImage(e){return h.getImage(this._requestManager.transformRequest(e,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)}moveLayer(e,t){return this.style.moveLayer(e,t),this._update(!0)}removeLayer(e){return this.style.removeLayer(e),this._update(!0)}getLayer(e){return this.style.getLayer(e)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(e,t,n){return this.style.setLayerZoomRange(e,t,n),this._update(!0)}setFilter(e,t,n={}){return this.style.setFilter(e,t,n),this._update(!0)}getFilter(e){return this.style.getFilter(e)}setPaintProperty(e,t,n,r={}){return this.style.setPaintProperty(e,t,n,r),this._update(!0)}getPaintProperty(e,t){return this.style.getPaintProperty(e,t)}setLayoutProperty(e,t,n,r={}){return this.style.setLayoutProperty(e,t,n,r),this._update(!0)}getLayoutProperty(e,t){return this.style.getLayoutProperty(e,t)}setGlyphs(e,t={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(e,t),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(e,t,n={}){return this._lazyInitEmptyStyle(),this.style.addSprite(e,t,n,e=>{e||this._update(!0)}),this}removeSprite(e){return this._lazyInitEmptyStyle(),this.style.removeSprite(e),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(e,t={}){return this._lazyInitEmptyStyle(),this.style.setSprite(e,t,e=>{e||this._update(!0)}),this}setLight(e,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)}getLight(){return this.style.getLight()}setSky(e){return this._lazyInitEmptyStyle(),this.style.setSky(e),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(e,t){return this.style.setFeatureState(e,t),this._update()}removeFeatureState(e,t){return this.style.removeFeatureState(e,t),this._update()}getFeatureState(e){return this.style.getFeatureState(e)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let e=0,t=0;return this._container&&(e=this._container.clientWidth||400,t=this._container.clientHeight||300),[e,t]}_setupContainer(){let e=this._container;e.classList.add("maplibregl-map");let t=this._canvasContainer=o.create("div","maplibregl-canvas-container",e);this._interactive&&t.classList.add("maplibregl-interactive"),this._canvas=o.create("canvas","maplibregl-canvas",t),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region");let n=this._containerDimensions(),r=this._getClampedPixelRatio(n[0],n[1]);this._resizeCanvas(n[0],n[1],r);let a=this._controlContainer=o.create("div","maplibregl-control-container",e),i=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(e=>{i[e]=o.create("div",`maplibregl-ctrl-${e} `,a)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(e,t,n){this._canvas.width=Math.floor(n*e),this._canvas.height=Math.floor(n*t),this._canvas.style.width=`${e}px`,this._canvas.style.height=`${t}px`}_setupPainter(){let e={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1},t=null;this._canvas.addEventListener("webglcontextcreationerror",n=>{t={requestedAttributes:e},n&&(t.statusMessage=n.statusMessage,t.type=n.type)},{once:!0});let n=this._canvas.getContext("webgl2",e)||this._canvas.getContext("webgl",e);if(!n){let e="Failed to initialize WebGL";throw t?(t.message=e,new Error(JSON.stringify(t))):new Error(e)}this.painter=new Mr(n,this.transform),c.testSupport(n)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(e){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_render(e){let n=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),this._removed)return;let r=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let e=this.transform.zoom,a=i.now();this.style.zoomHistory.update(e,a);let o=new t.z(e,{now:a,fadeDuration:n,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),s=o.crossFadingFactor();1===s&&s===this._crossFadingFactor||(r=!0,this._crossFadingFactor=s),this.style.update(o)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,n,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:n,showPadding:this.showPadding}),this.fire(new t.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,t.bf.mark(t.bg.load),this.fire(new t.k("load"))),this.style&&(this.style.hasTransitions()||r)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let a=this._sourcesDirty||this._styleDirty||this._placementDirty;return a||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new t.k("idle")),!this._loaded||this._fullyLoaded||a||(this._fullyLoaded=!0,t.bf.mark(t.bg.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var e;this._hash&&this._hash.remove();for(let e of this._controls)e.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window<"u"&&removeEventListener("online",this._onWindowOnline,!1),h.removeThrottleControl(this._imageQueueHandle),null===(e=this._resizeObserver)||void 0===e||e.disconnect();let n=this.painter.context.gl.getExtension("WEBGL_lose_context");n?.loseContext&&n.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),o.remove(this._canvasContainer),o.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),t.bf.clearMetrics(),this._removed=!0,this.fire(new t.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,i.frameAsync(this._frameRequest).then(e=>{t.bf.frame(e),this._frameRequest=null,this._render(e)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}get version(){return Na}getCameraTargetElevation(){return this.transform.elevation}},e.MapMouseEvent=Ir,e.MapTouchEvent=Wr,e.MapWheelEvent=Nr,e.Marker=Xa,e.NavigationControl=class{constructor(e){this._updateZoomButtons=()=>{let e=this._map.getZoom(),t=e===this._map.getMaxZoom(),n=e===this._map.getMinZoom();this._zoomInButton.disabled=t,this._zoomOutButton.disabled=n,this._zoomInButton.setAttribute("aria-disabled",t.toString()),this._zoomOutButton.setAttribute("aria-disabled",n.toString())},this._rotateCompassArrow=()=>{let e=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=e},this._setButtonTitle=(e,t)=>{let n=this._map._getUIString(`NavigationControl.${t}`);e.title=n,e.setAttribute("aria-label",n)},this.options=t.e({},Fa,e),this._container=o.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",e=>e.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",e=>this._map.zoomIn({},{originalEvent:e})),o.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",e=>this._map.zoomOut({},{originalEvent:e})),o.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",e=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:e}):this._map.resetNorth({},{originalEvent:e})}),this._compassIcon=o.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new ja(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){o.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(e,t){let n=o.create("button",e,this._container);return n.type="button",n.addEventListener("click",t),n}},e.Popup=class extends t.E{constructor(e){super(),this.remove=()=>(this._content&&o.remove(this._content),this._container&&(o.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new t.k("close"))),this),this._onMouseUp=e=>{this._update(e.point)},this._onMouseMove=e=>{this._update(e.point)},this._onDrag=e=>{this._update(e.point)},this._update=e=>{var t;if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=o.create("div","maplibregl-popup",this._map.getContainer()),this._tip=o.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let e of this.options.className.split(" "))this._container.classList.add(e);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=this._map.transform.renderWorldCopies&&!this._trackPointer?Ua(this._lngLat,this._flatPos,this._map.transform):null===(t=this._lngLat)||void 0===t?void 0:t.wrap(),this._trackPointer&&!e)return;let n=this._flatPos=this._pos=this._trackPointer&&e?e:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&e?e:this._map.transform.locationPoint(this._lngLat));let r=this.options.anchor,a=ti(this.options.offset);if(!r){let e,t=this._container.offsetWidth,i=this._container.offsetHeight;e=n.y+a.bottom.y<i?["top"]:n.y>this._map.transform.height-i?["bottom"]:[],n.x<t/2?e.push("left"):n.x>this._map.transform.width-t/2&&e.push("right"),r=0===e.length?"bottom":e.join("-")}let i=n.add(a[r]);this.options.subpixelPositioning||(i=i.round()),o.setTransform(this._container,`${Va[r]} translate(${i.x}px,${i.y}px)`),Ha(this._container,r,"popup")},this._onClose=()=>{this.remove()},this.options=t.e(Object.create(Ka),e)}addTo(e){return this._map&&this.remove(),this._map=e,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new t.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=t.N.convert(e),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(e){return this.setDOMContent(document.createTextNode(e))}setHTML(e){let t,n=document.createDocumentFragment(),r=document.createElement("body");for(r.innerHTML=e;t=r.firstChild,t;)n.appendChild(t);return this.setDOMContent(n)}getMaxWidth(){var e;return null===(e=this._container)||void 0===e?void 0:e.style.maxWidth}setMaxWidth(e){return this.options.maxWidth=e,this._update(),this}setDOMContent(e){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=o.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(e),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(e){return this._container&&this._container.classList.add(e),this}removeClassName(e){return this._container&&this._container.classList.remove(e),this}setOffset(e){return this.options.offset=e,this._update(),this}toggleClassName(e){if(this._container)return this._container.classList.toggle(e)}setSubpixelPositioning(e){this.options.subpixelPositioning=e}_createCloseButton(){this.options.closeButton&&(this._closeButton=o.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="&#215;",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let e=this._container.querySelector(ei);e&&e.focus()}},e.RasterDEMTileSource=J,e.RasterTileSource=$,e.ScaleControl=class{constructor(e){this._onMove=()=>{Ja(this._map,this._container,this.options)},this.setUnit=e=>{this.options.unit=e,Ja(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},$a),e)}getDefaultPosition(){return"bottom-left"}onAdd(e){return this._map=e,this._container=o.create("div","maplibregl-ctrl maplibregl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},e.ScrollZoomHandler=ha,e.Style=ht,e.TerrainControl=class{constructor(e){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=e}onAdd(e){return this._map=e,this._container=o.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=o.create("button","maplibregl-ctrl-terrain",this._container),o.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){o.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},e.TwoFingersTouchPitchHandler=la,e.TwoFingersTouchRotateHandler=oa,e.TwoFingersTouchZoomHandler=aa,e.TwoFingersTouchZoomRotateHandler=va,e.VectorTileSource=Z,e.VideoSource=te,e.addSourceType=(e,n)=>t._(void 0,void 0,void 0,function*(){if(ae(e))throw new Error(`A source type called "${e}" already exists.`);var t;t=n,re[e]=t}),e.clearPrewarmedResources=function(){let e=W;e&&(e.isPreloaded()&&1===e.numActive()?(e.release(L),W=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},e.getMaxParallelImageRequests=function(){return t.a.MAX_PARALLEL_IMAGE_REQUESTS},e.getRTLTextPluginStatus=function(){return le().getRTLTextPluginStatus()},e.getVersion=function(){return ni},e.getWorkerCount=function(){return I.workerCount},e.getWorkerUrl=function(){return t.a.WORKER_URL},e.importScriptInWorkers=function(e){return j().broadcast("IS",e)},e.prewarm=function(){B().acquire(L)},e.setMaxParallelImageRequests=function(e){t.a.MAX_PARALLEL_IMAGE_REQUESTS=e},e.setRTLTextPlugin=function(e,t){return le().setRTLTextPlugin(e,t)},e.setWorkerCount=function(e){I.workerCount=e},e.setWorkerUrl=function(e){t.a.WORKER_URL=e}}),e},"object"==typeof e&&typeof t<"u"?t.exports=r():"function"==typeof define&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).maplibregl=r()}),d3t=Ee((e,t)=>{var n=Fr(),r=q1().sanitizeHTML,a=$me(),i=J4();function o(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=i.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var s=o.prototype;function l(e){if(!e.visible)return!1;var t=e.source;if(Array.isArray(t)&&t.length>0){for(var r=0;r<t.length;r++)if("string"!=typeof t[r]||0===t[r].length)return!1;return!0}return n.isPlainObject(t)||"string"==typeof t&&t.length>0}function c(e){var t={},r={};switch(e.type){case"circle":n.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":n.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":n.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var i=e.symbol,o=a(i.textposition,i.iconsize);n.extendFlat(t,{"icon-image":i.icon+"-15","icon-size":i.iconsize/10,"text-field":i.text,"text-size":i.textfont.size,"text-anchor":o.anchor,"text-offset":o.offset,"symbol-placement":i.placement}),n.extendFlat(r,{"icon-color":e.color,"text-color":i.textfont.color,"text-opacity":e.opacity});break;case"raster":n.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity})}return{layout:t,paint:r}}s.update=function(e){this.visible?this.needsNewImage(e)?this.updateImage(e):this.needsNewSource(e)?(this.removeLayer(),this.updateSource(e),this.updateLayer(e)):this.needsNewLayer(e)?this.updateLayer(e):this.updateStyle(e):(this.updateSource(e),this.updateLayer(e)),this.visible=l(e)},s.needsNewImage=function(e){return this.subplot.map.getSource(this.idSource)&&"image"===this.sourceType&&"image"===e.sourcetype&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))},s.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type},s.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]},s.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]},s.updateImage=function(e){this.subplot.map.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var t=this.findFollowingMapLayerId(this.lookupBelow());null!==t&&this.subplot.map.moveLayer(this.idLayer,t)},s.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,l(e)){var n=function(e){var t,n=e.sourcetype,a=e.source,i={type:n};return"geojson"===n?t="data":"vector"===n?t="string"==typeof a?"url":"tiles":"raster"===n?(t="tiles",i.tileSize=256):"image"===n&&(t="url",i.coordinates=e.coordinates),i[t]=a,e.sourceattribution&&(i.attribution=r(e.sourceattribution)),i}(e);t.addSource(this.idSource,n)}},s.findFollowingMapLayerId=function(e){if("traces"===e)for(var t=this.subplot.getMapLayers(),n=0;n<t.length;n++){var r=t[n].id;if("string"==typeof r&&0===r.indexOf(i.traceLayerPrefix)){e=r;break}}return e},s.updateLayer=function(e){var t=this.subplot,n=c(e),r=this.lookupBelow(),a=this.findFollowingMapLayerId(r);this.removeLayer(),l(e)&&t.addLayer({id:this.idLayer,source:this.idSource,"source-layer":e.sourcelayer||"",type:e.type,minzoom:e.minzoom,maxzoom:e.maxzoom,layout:n.layout,paint:n.paint},a),this.layerType=e.type,this.below=r},s.updateStyle=function(e){if(l(e)){var t=c(e);this.subplot.setOptions(this.idLayer,"setLayoutProperty",t.layout),this.subplot.setOptions(this.idLayer,"setPaintProperty",t.paint)}},s.removeLayer=function(){var e=this.subplot.map;e.getLayer(this.idLayer)&&e.removeLayer(this.idLayer)},s.dispose=function(){var e=this.subplot.map;e.getLayer(this.idLayer)&&e.removeLayer(this.idLayer),e.getSource(this.idSource)&&e.removeSource(this.idSource)},t.exports=function(e,t,n){var r=new o(e,t);return r.update(n),r}}),b3t=Ee((e,t)=>{var n=o3t(),r=Fr(),a=D4(),i=vo(),o=es(),s=p2(),l=_d(),c=Qy(),u=c.drawMode,d=c.selectMode,p=uf().prepSelect,h=uf().clearOutline,f=uf().clearSelectionsCache,m=uf().selectOnClick,g=J4(),y=d3t();function b(e,t){this.id=t,this.gd=e;var n=e._fullLayout,r=e._context;this.container=n._glcontainer.node(),this.isStatic=r.staticPlot,this.uid=n._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(n),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var v=b.prototype;v.plot=function(e,t,n){var r,a=this;r=a.map?new Promise(function(n,r){a.updateMap(e,t,n,r)}):new Promise(function(n,r){a.createMap(e,t,n,r)}),n.push(r)},v.createMap=function(e,t,r,i){var o=this,s=t[o.id],l=o.styleObj=x(s.style),c=s.bounds,u=c?[[c.west,c.south],[c.east,c.north]]:null,d=o.map=new n.Map({container:o.div,style:l.style,center:z(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,maxBounds:u,interactive:!o.isStatic,preserveDrawingBuffer:o.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new n.AttributionControl({compact:!0})),p={};d.on("styleimagemissing",function(e){var t=e.id;if(!p[t]&&t.includes("-15")){p[t]=!0;var n=new Image(15,15);n.onload=function(){d.addImage(t,n)},n.crossOrigin="Anonymous",n.src="https://unpkg.com/maki@2.1.0/icons/"+t+".svg"}}),d.setTransformRequest(function(e){return{url:e=(e=(e=e.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold")).replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold")).replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular")}}),d._canvas.style.left="0px",d._canvas.style.top="0px",o.rejectOnError(i),o.isStatic||o.initFx(e,t);var h=[];h.push(new Promise(function(e){d.once("load",e)})),h=h.concat(a.fetchTraceGeoData(e)),Promise.all(h).then(function(){o.fillBelowLookup(e,t),o.updateData(e),o.updateLayout(t),o.resolveOnRender(r)}).catch(i)},v.updateMap=function(e,t,n,r){var i=this,o=i.map,s=t[this.id];i.rejectOnError(r);var l=[],c=x(s.style);JSON.stringify(i.styleObj)!==JSON.stringify(c)&&(i.styleObj=c,o.setStyle(c.style),i.traceHash={},l.push(new Promise(function(e){o.once("styledata",e)}))),l=l.concat(a.fetchTraceGeoData(e)),Promise.all(l).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(n)}).catch(r)},v.fillBelowLookup=function(e,t){var n,r,a=t[this.id].layers,i=this.belowLookup={},o=!1;for(n=0;n<e.length;n++){var s=e[n][0].trace,l=s._module;"string"==typeof s.below?r=s.below:l.getBelow&&(r=l.getBelow(s,this)),""===r&&(o=!0),i["trace-"+s.uid]=r||""}for(n=0;n<a.length;n++){var c=a[n];r="string"==typeof c.below?c.below:o?"traces":"",i["layout-"+n]=r}var u,d,p={};for(u in i)p[r=i[u]]?p[r].push(u):p[r]=[u];for(r in p){var h=p[r];if(h.length>1)for(n=0;n<h.length;n++)0===(u=h[n]).indexOf("trace-")?(d=u.split("trace-")[1],this.traceHash[d]&&(this.traceHash[d].below=null)):0===u.indexOf("layout-")&&(d=u.split("layout-")[1],this.layerList[d]&&(this.layerList[d].below=null))}};var M={choroplethmap:0,densitymap:1,scattermap:2};function x(e){var t={};return r.isPlainObject(e)?(t.id=e.id,t.style=e):"string"==typeof e?(t.id=e,g.stylesMap[e]?t.style=g.stylesMap[e]:t.style=e):(t.id=g.styleValueDflt,t.style=function(e){return g.styleUrlPrefix+e+"-"+g.styleUrlSuffix}(g.styleValueDflt)),t.transition={duration:0,delay:0},t}function z(e){return[e.lon,e.lat]}v.updateData=function(e){var t,n,r,a,i=this.traceHash,o=e.slice().sort(function(e,t){return M[e[0].trace.type]-M[t[0].trace.type]});for(r=0;r<o.length;r++){var s=o[r],l=!1;(t=i[(n=s[0].trace).uid])&&(t.type===n.type?(t.update(s),l=!0):t.dispose()),!l&&n._module&&(i[n.uid]=n._module.plot(this,s))}var c=Object.keys(i);e:for(r=0;r<c.length;r++){var u=c[r];for(a=0;a<e.length;a++)if(u===(n=e[a][0].trace).uid)continue e;(t=i[u]).dispose(),delete i[u]}},v.updateLayout=function(e){var t=this.map,n=e[this.id];!this.dragging&&!this.wheeling&&(t.setCenter(z(n.center)),t.setZoom(n.zoom),t.setBearing(n.bearing),t.setPitch(n.pitch)),this.updateLayers(e),this.updateFramework(e),this.updateFx(e),this.map.resize(),this.gd._context._scrollZoom.map?t.scrollZoom.enable():t.scrollZoom.disable()},v.resolveOnRender=function(e){var t=this.map;t.on("render",function n(){t.loaded()&&(t.off("render",n),setTimeout(e,10))})},v.rejectOnError=function(e){var t=this.map;function n(){e(new Error(g.mapOnErrorMsg))}t.once("error",n),t.once("style.error",n),t.once("source.error",n),t.once("tile.error",n),t.once("layer.error",n)},v.createFramework=function(e){var t=this,n=t.div=document.createElement("div");n.id=t.uid,n.style.position="absolute",t.container.appendChild(n),t.xaxis={_id:"x",c2p:function(e){return t.project(e).x}},t.yaxis={_id:"y",c2p:function(e){return t.project(e).y}},t.updateFramework(e),t.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},o.setConvert(t.mockAxis,e)},v.initFx=function(e,t){var n=this,r=n.gd,a=n.map;function o(){l.loneUnhover(t._hoverlayer)}function s(){var e=n.getView();r.emit("plotly_relayouting",n.getViewEditsWithDerived(e))}a.on("moveend",function(e){if(n.map){var t=r._fullLayout;if(e.originalEvent||n.wheeling){var a=t[n.id];i.call("_storeDirectGUIEdit",r.layout,t._preGUI,n.getViewEdits(a));var o=n.getView();a._input.center=a.center=o.center,a._input.zoom=a.zoom=o.zoom,a._input.bearing=a.bearing=o.bearing,a._input.pitch=a.pitch=o.pitch,r.emit("plotly_relayout",n.getViewEditsWithDerived(o))}e.originalEvent&&"mouseup"===e.originalEvent.type?n.dragging=!1:n.wheeling&&(n.wheeling=!1),t&&t._rehover&&t._rehover()}}),a.on("wheel",function(){n.wheeling=!0}),a.on("mousemove",function(e){var t=n.div.getBoundingClientRect(),i=[e.originalEvent.offsetX,e.originalEvent.offsetY];e.target.getBoundingClientRect=function(){return t},n.xaxis.p2c=function(){return a.unproject(i).lng},n.yaxis.p2c=function(){return a.unproject(i).lat},r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===n.id&&r._fullLayout[n.id]&&l.hover(r,e,n.id)},l.hover(r,e,n.id),r._fullLayout._hoversubplot=n.id}),a.on("dragstart",function(){n.dragging=!0,o()}),a.on("zoomstart",o),a.on("mouseout",function(){r._fullLayout._hoversubplot=null}),a.on("drag",s),a.on("zoom",s),a.on("dblclick",function(){var e=r._fullLayout[n.id];i.call("_storeDirectGUIEdit",r.layout,r._fullLayout._preGUI,n.getViewEdits(e));var t=n.viewInitial;a.setCenter(z(t.center)),a.setZoom(t.zoom),a.setBearing(t.bearing),a.setPitch(t.pitch);var o=n.getView();e._input.center=e.center=o.center,e._input.zoom=e.zoom=o.zoom,e._input.bearing=e.bearing=o.bearing,e._input.pitch=e.pitch=o.pitch,r.emit("plotly_doubleclick",null),r.emit("plotly_relayout",n.getViewEditsWithDerived(o))}),n.clearOutline=function(){f(n.dragOptions),h(n.dragOptions.gd)},n.onClickInPanFn=function(e){return function(t){var a=r._fullLayout.clickmode;a.indexOf("select")>-1&&m(t.originalEvent,r,[n.xaxis],[n.yaxis],n.id,e),a.indexOf("event")>-1&&l.click(r,t.originalEvent)}}},v.updateFx=function(e){var t=this,n=t.map,a=t.gd;if(!t.isStatic){var i,o=e.dragmode;i=function(e,n){n.isRect?(e.range={})[t.id]=[c([n.xmin,n.ymin]),c([n.xmax,n.ymax])]:(e.lassoPoints={})[t.id]=n.map(c)};var l=t.dragOptions;t.dragOptions=r.extendDeep(l||{},{dragmode:e.dragmode,element:t.div,gd:a,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:i},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),n.off("click",t.onClickInPanHandler),d(o)||u(o)?(n.dragPan.disable(),n.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(e,n,r){p(e,n,r,t.dragOptions,o)},s.init(t.dragOptions)):(n.dragPan.enable(),n.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),n.on("click",t.onClickInPanHandler))}function c(e){var n=t.map.unproject(e);return[n.lng,n.lat]}},v.updateFramework=function(e){var t=e[this.id].domain,n=e._size,r=this.div.style;r.width=n.w*(t.x[1]-t.x[0])+"px",r.height=n.h*(t.y[1]-t.y[0])+"px",r.left=n.l+t.x[0]*n.w+"px",r.top=n.t+(1-t.y[1])*n.h+"px",this.xaxis._offset=n.l+t.x[0]*n.w,this.xaxis._length=n.w*(t.x[1]-t.x[0]),this.yaxis._offset=n.t+(1-t.y[1])*n.h,this.yaxis._length=n.h*(t.y[1]-t.y[0])},v.updateLayers=function(e){var t,n=e[this.id].layers,r=this.layerList;if(n.length!==r.length){for(t=0;t<r.length;t++)r[t].dispose();for(r=this.layerList=[],t=0;t<n.length;t++)r.push(y(this,t,n[t]))}else for(t=0;t<n.length;t++)r[t].update(n[t])},v.destroy=function(){this.map&&(this.map.remove(),this.map=null,this.container.removeChild(this.div))},v.toImage=function(){return this.map.stop(),this.map.getCanvas().toDataURL()},v.setOptions=function(e,t,n){for(var r in n)this.map[t](e,r,n[r])},v.getMapLayers=function(){return this.map.getStyle().layers},v.addLayer=function(e,t){var n=this.map;if("string"==typeof t){if(""===t)return void n.addLayer(e,t);for(var a=this.getMapLayers(),i=0;i<a.length;i++)if(t===a[i].id)return void n.addLayer(e,t);r.warn(["Trying to add layer with *below* value",t,"referencing a layer that does not exist","or that does not yet exist."].join(" "))}n.addLayer(e)},v.project=function(e){return this.map.project(new n.LngLat(e[0],e[1]))},v.getView=function(){var e=this.map,t=e.getCenter(),n={lon:t.lng,lat:t.lat},r=e.getCanvas(),a=parseInt(r.style.width),i=parseInt(r.style.height);return{center:n,zoom:e.getZoom(),bearing:e.getBearing(),pitch:e.getPitch(),_derived:{coordinates:[e.unproject([0,0]).toArray(),e.unproject([a,0]).toArray(),e.unproject([a,i]).toArray(),e.unproject([0,i]).toArray()]}}},v.getViewEdits=function(e){for(var t=this.id,n=["center","zoom","bearing","pitch"],r={},a=0;a<n.length;a++){var i=n[a];r[t+"."+i]=e[i]}return r},v.getViewEditsWithDerived=function(e){var t=this.id,n=this.getViewEdits(e);return n[t+"._derived"]=e._derived,n},t.exports=b}),_3t=Ee((e,t)=>{var n=Fr(),r=p4(),a=Pp(),i=RP();function o(e,t,n){n("style"),n("center.lon"),n("center.lat"),n("zoom"),n("bearing"),n("pitch");var r=n("bounds.west"),i=n("bounds.east"),o=n("bounds.south"),l=n("bounds.north");(void 0===r||void 0===i||void 0===o||void 0===l)&&delete t.bounds,a(e,t,{name:"layers",handleItemDefaults:s}),t._input=e}function s(e,t){function r(r,a){return n.coerce(e,t,i.layers,r,a)}if(r("visible")){var a,o=r("sourcetype"),s="raster"===o||"image"===o;r("source"),r("sourceattribution"),"vector"===o&&r("sourcelayer"),"image"===o&&r("coordinates"),s&&(a="raster");var l=r("type",a);s&&"raster"!==l&&(l=t.type="raster",n.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),"circle"===l&&r("circle.radius"),"line"===l&&(r("line.width"),r("line.dash")),"fill"===l&&r("fill.outlinecolor"),"symbol"===l&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),n.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}t.exports=function(e,t,n){r(e,t,n,{type:"map",attributes:i,handleDefaults:o,partition:"y"})}}),_$=Ee(e=>{var t=Fr(),n=t.strTranslate,r=t.strScale,a=mp().getSubplotCalcData,i=Dv(),o=mo(),s=vs(),l=q1(),c=b3t(),u="map";e.name=u,e.attr="subplot",e.idRoot=u,e.idRegex=e.attrRegex=t.counterRegex(u),e.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc",description:["Sets a reference between this trace's data coordinates and","a map subplot.","If *map* (the default value), the data refer to `layout.map`.","If *map2*, the data refer to `layout.map2`, and so on."].join(" ")}},e.layoutAttributes=RP(),e.supplyLayoutDefaults=_3t(),e.plot=function(e){for(var n=e._fullLayout,r=e.calcdata,i=n._subplots[u],o=0;o<i.length;o++){var s=i[o],l=a(r,u,s),d=n[s],p=d._subplot;p||(p=new c(e,s),n[s]._subplot=p),p.viewInitial||(p.viewInitial={center:t.extendFlat({},d.center),zoom:d.zoom,bearing:d.bearing,pitch:d.pitch}),p.plot(l,n,e._promises)}},e.clean=function(e,t,n,r){for(var a=r._subplots[u]||[],i=0;i<a.length;i++){var o=a[i];!t[o]&&r[o]._subplot&&r[o]._subplot.destroy()}},e.toSVG=function(e){for(var t=e._fullLayout,a=t._subplots[u],c=t._size,d=0;d<a.length;d++){var p=t[a[d]],h=p.domain,f=p._subplot.toImage("png");t._glimages.append("svg:image").attr({xmlns:i.svg,"xlink:href":f,x:c.l+c.w*h.x[0],y:c.t+c.h*(1-h.y[1]),width:c.w*(h.x[1]-h.x[0]),height:c.h*(h.y[1]-h.y[0]),preserveAspectRatio:"none"});var m=o.select(p._subplot.div).select(".maplibregl-ctrl-attrib").text().replace("Improve this map",""),g=t._glimages.append("g"),y=g.append("text");y.text(m).classed("static-attribution",!0).attr({"font-size":12,"font-family":"Arial",color:"rgba(0, 0, 0, 0.75)","text-anchor":"end","data-unformatted":m});var b=s.bBox(y.node()),v=c.w*(h.x[1]-h.x[0]);if(b.width>v/2){var M=m.split("|").join("<br>");y.text(M).attr("data-unformatted",M).call(l.convertToTspans,e),b=s.bBox(y.node())}y.attr("transform",n(-3,8-b.height)),g.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var x=1;b.width+6>v&&(x=v/(b.width+6));var z=[c.l+c.w*h.x[1],c.t+c.h*(1-h.y[0])];g.attr("transform",n(z[0],z[1])+r(x))}},e.updateFx=function(e){for(var t=e._fullLayout,n=t._subplots[u],r=0;r<n.length;r++){t[n[r]]._subplot.updateFx(t)}}}),O3t=Ee((e,t)=>{t.exports={attributes:h$(),supplyDefaults:Nbt(),colorbar:Wp(),formatLabels:Zme(),calc:wY(),plot:Jbt(),hoverPoints:y$().hoverPoints,eventData:r3t(),selectPoints:a3t(),styleOnSelect:function(e,t){t&&t[0].trace._glTrace.update(t)},moduleType:"trace",name:"scattermap",basePlotModule:_$(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{hrName:"scatter_map",description:["The data visualized as scatter point, lines or marker symbols","on a MapLibre GL geographic map","is provided by longitude/latitude pairs in `lon` and `lat`."].join(" ")}}}),S3t=Ee((e,t)=>{t.exports=O3t()}),ove=Ee((e,t)=>{var n=n9(),r=Oc(),{hovertemplateAttrs:a,templatefallbackAttrs:i}=p1(),o=S1(),s=ms().extendFlat;t.exports=s({locations:{valType:"data_array",editType:"calc",description:["Sets which features found in *geojson* to plot using","their feature `id` field."].join(" ")},z:{valType:"data_array",editType:"calc",description:"Sets the color values."},geojson:{valType:"any",editType:"calc",description:["Sets the GeoJSON data associated with this trace.","It can be set as a valid GeoJSON object or as a URL string.","Note that we only accept GeoJSONs of type *FeatureCollection* or *Feature*","with geometries of type *Polygon* or *MultiPolygon*."].join(" ")},featureidkey:s({},n.featureidkey,{description:["Sets the key in GeoJSON features which is used as id to match the items","included in the `locations` array.","Support nested property, for example *properties.name*."].join(" ")}),below:{valType:"string",editType:"plot",description:["Determines if the choropleth polygons will be inserted","before the layer with the specified ID.","By default, choroplethmap traces are placed above the water layers.","If set to '',","the layer will be inserted above every existing layer."].join(" ")},text:n.text,hovertext:n.hovertext,marker:{line:{color:s({},n.marker.line.color,{editType:"plot"}),width:s({},n.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:s({},n.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:s({},n.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:s({},n.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:n.hoverinfo,hovertemplate:a({},{keys:["properties"]}),hovertemplatefallback:i(),showlegend:s({},o.showlegend,{dflt:!1})},r("",{cLetter:"z",editTypeOverride:"calc"}))}),E3t=Ee((e,t)=>{var n=Fr(),r=kh(),a=ove();t.exports=function(e,t,i,o){function s(r,i){return n.coerce(e,t,a,r,i)}var l=s("locations"),c=s("z"),u=s("geojson");n.isArrayOrTypedArray(l)&&l.length&&n.isArrayOrTypedArray(c)&&c.length&&("string"==typeof u&&""!==u||n.isPlainObject(u))?(s("featureidkey"),t._length=Math.min(l.length,c.length),s("below"),s("text"),s("hovertext"),s("hovertemplate"),s("hovertemplatefallback"),s("marker.line.width")&&s("marker.line.color"),s("marker.opacity"),r(e,t,o,s,{prefix:"",cLetter:"z"}),n.coerceSelectionMarkerOpacity(t,s)):t.visible=!1}}),sve=Ee((e,t)=>{var n=xs(),r=Fr(),a=xu(),i=vs(),o=E4().makeBlank,s=D4();function l(e){var t,n=e[0].trace,a=n._opts;if(n.selectedpoints){for(var o=i.makeSelectedPointStyleFns(n),s=0;s<e.length;s++){var l=e[s];l.fOut&&(l.fOut.properties.mo2=o.selectedOpacityFn(l))}t={type:"identity",property:"mo2"}}else t=r.isArrayOrTypedArray(n.marker.opacity)?{type:"identity",property:"mo"}:n.marker.opacity;return r.extendFlat(a.fill.paint,{"fill-opacity":t}),r.extendFlat(a.line.paint,{"line-opacity":t}),a}t.exports={convert:function(e){var t=e[0].trace,i=!0===t.visible&&0!==t._length,c={layout:{visibility:"none"},paint:{}},u={layout:{visibility:"none"},paint:{}},d=t._opts={fill:c,line:u,geojson:o()};if(!i)return d;var p=s.extractTraceFeature(e);if(!p)return d;var h,f,m,g=a.makeColorScaleFuncFromTrace(t),y=t.marker,b=y.line||{};r.isArrayOrTypedArray(y.opacity)&&(h=function(e){var t=e.mo;return n(t)?+r.constrain(t,0,1):0}),r.isArrayOrTypedArray(b.color)&&(f=function(e){return e.mlc}),r.isArrayOrTypedArray(b.width)&&(m=function(e){return e.mlw});for(var v=0;v<e.length;v++){var M=e[v],x=M.fOut;if(x){var z=x.properties;z.fc=g(M.z),h&&(z.mo=h(M)),f&&(z.mlc=f(M)),m&&(z.mlw=m(M)),M.ct=z.ct,M._polygons=s.feature2polygons(x)}}var _=h?{type:"identity",property:"mo"}:y.opacity;return r.extendFlat(c.paint,{"fill-color":{type:"identity",property:"fc"},"fill-opacity":_}),r.extendFlat(u.paint,{"line-color":f?{type:"identity",property:"mlc"}:b.color,"line-width":m?{type:"identity",property:"mlw"}:b.width,"line-opacity":_}),c.layout.visibility="visible",u.layout.visibility="visible",d.geojson={type:"FeatureCollection",features:p},l(e),d},convertOnSelect:l}}),W3t=Ee((e,t)=>{var n=sve().convert,r=sve().convertOnSelect,a=J4().traceLayerPrefix;function i(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",a+t+"-fill"],["line",a+t+"-line"]],this.below=null}var o=i.prototype;o.update=function(e){this._update(n(e)),e[0].trace._glTrace=this},o.updateOnSelect=function(e){this._update(r(e))},o._update=function(e){var t=this.subplot,n=this.layerList,r=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),r!==this.below&&(this._removeLayers(),this._addLayers(e,r),this.below=r);for(var a=0;a<n.length;a++){var i=n[a],o=i[0],s=i[1],l=e[o];t.setOptions(s,"setLayoutProperty",l.layout),"visible"===l.layout.visibility&&t.setOptions(s,"setPaintProperty",l.paint)}},o._addLayers=function(e,t){for(var n=this.subplot,r=this.layerList,a=this.sourceId,i=0;i<r.length;i++){var o=r[i],s=o[0],l=e[s];n.addLayer({type:s,id:o[1],source:a,layout:l.layout,paint:l.paint},t)}},o._removeLayers=function(){for(var e=this.subplot.map,t=this.layerList,n=t.length-1;n>=0;n--)e.removeLayer(t[n][1])},o.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)},t.exports=function(e,t){var r=t[0].trace,a=new i(e,r.uid),o=a.sourceId,s=n(t),l=a.below=e.belowLookup["trace-"+r.uid];return e.map.addSource(o,{type:"geojson",data:s.geojson}),a._addLayers(s,l),t[0].trace._glTrace=a,a}}),B3t=Ee((e,t)=>{t.exports={attributes:ove(),supplyDefaults:E3t(),colorbar:d4(),calc:GY(),plot:W3t(),hoverPoints:YY(),eventData:ZY(),selectPoints:$Y(),styleOnSelect:function(e,t){t&&t[0].trace._glTrace.updateOnSelect(t)},getBelow:function(e,t){for(var n=t.getMapLayers(),r=n.length-2;r>=0;r--){var a=n[r].id;if("string"==typeof a&&0===a.indexOf("water"))for(var i=r+1;i<n.length;i++)if("string"==typeof(a=n[i].id)&&-1===a.indexOf("plotly-"))return a}},moduleType:"trace",name:"choroplethmap",basePlotModule:_$(),categories:["map","gl","noOpacity","showLegend"],meta:{hr_name:"choropleth_map",description:["GeoJSON features to be filled are set in `geojson`","The data that describes the choropleth value-to-color mapping","is set in `locations` and `z`."].join(" ")}}}),H3t=Ee((e,t)=>{t.exports=B3t()}),cve=Ee((e,t)=>{var n=Oc(),{hovertemplateAttrs:r,templatefallbackAttrs:a}=p1(),i=S1(),o=h$(),s=ms().extendFlat;t.exports=s({lon:o.lon,lat:o.lat,z:{valType:"data_array",editType:"calc",description:["Sets the points' weight.","For example, a value of 10 would be equivalent to having 10 points of weight 1","in the same spot"].join(" ")},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30,description:["Sets the radius of influence of one `lon` / `lat` point in pixels.","Increasing the value makes the densitymap trace smoother, but less detailed."].join(" ")},below:{valType:"string",editType:"plot",description:["Determines if the densitymap trace will be inserted","before the layer with the specified ID.","By default, densitymap traces are placed below the first","layer of type symbol","If set to '',","the layer will be inserted above every existing layer."].join(" ")},text:o.text,hovertext:o.hovertext,hoverinfo:s({},i.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:r(),hovertemplatefallback:a(),showlegend:s({},i.showlegend,{dflt:!1})},n("",{cLetter:"z",editTypeOverride:"calc"}))}),X3t=Ee((e,t)=>{var n=Fr(),r=kh(),a=cve();t.exports=function(e,t,i,o){function s(r,i){return n.coerce(e,t,a,r,i)}var l=s("lon")||[],c=s("lat")||[],u=Math.min(l.length,c.length);u?(t._length=u,s("z"),s("radius"),s("below"),s("text"),s("hovertext"),s("hovertemplate"),s("hovertemplatefallback"),r(e,t,o,s,{prefix:"",cLetter:"z"})):t.visible=!1}}),$3t=Ee((e,t)=>{var n=xs(),r=Fr().isArrayOrTypedArray,a=T0().BADNUM,i=f2(),o=Fr()._;t.exports=function(e,t){for(var s=t._length,l=new Array(s),c=t.z,u=r(c)&&c.length,d=0;d<s;d++){var p=l[d]={},h=t.lon[d],f=t.lat[d];if(p.lonlat=n(h)&&n(f)?[+h,+f]:[a,a],u){var m=c[d];p.z=n(m)?m:a}}return i(e,t,{vals:u?c:[0,1],containerStr:"",cLetter:"z"}),s&&(l[0].t={labels:{lat:o(e,"lat:")+" ",lon:o(e,"lon:")+" "}}),l}}),tMt=Ee((e,t)=>{var n=xs(),r=Fr(),a=ao(),i=xu(),o=T0().BADNUM,s=E4().makeBlank;t.exports=function(e){var t=e[0].trace,l=!0===t.visible&&0!==t._length,c=t._opts={heatmap:{layout:{visibility:"none"},paint:{}},geojson:s()};if(!l)return c;var u,d=[],p=t.z,h=t.radius,f=r.isArrayOrTypedArray(p)&&p.length,m=r.isArrayOrTypedArray(h);for(u=0;u<e.length;u++){var g=e[u],y=g.lonlat;if(y[0]!==o){var b={};if(f){var v=g.z;b.z=v!==o?v:0}m&&(b.r=n(h[u])&&h[u]>0?+h[u]:0),d.push({type:"Feature",geometry:{type:"Point",coordinates:y},properties:b})}}var M=i.extractOpts(t),x=M.reversescale?i.flipScale(M.colorscale):M.colorscale,z=x[0][1],_=["interpolate",["linear"],["heatmap-density"],0,a.opacity(z)<1?z:a.addOpacity(z,0)];for(u=1;u<x.length;u++)_.push(x[u][0],x[u][1]);var A=["interpolate",["linear"],["get","z"],M.min,0,M.max,1];return r.extendFlat(c.heatmap.paint,{"heatmap-weight":f?A:1/(M.max-M.min),"heatmap-color":_,"heatmap-radius":m?{type:"identity",property:"r"}:t.radius,"heatmap-opacity":t.opacity}),c.geojson={type:"FeatureCollection",features:d},c.heatmap.layout.visibility="visible",c}}),iMt=Ee((e,t)=>{var n=tMt(),r=J4().traceLayerPrefix;function a(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",r+t+"-heatmap"]],this.below=null}var i=a.prototype;i.update=function(e){var t=this.subplot,r=this.layerList,a=n(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(a.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(a,i),this.below=i);for(var o=0;o<r.length;o++){var s=r[o],l=s[0],c=s[1],u=a[l];t.setOptions(c,"setLayoutProperty",u.layout),"visible"===u.layout.visibility&&t.setOptions(c,"setPaintProperty",u.paint)}},i._addLayers=function(e,t){for(var n=this.subplot,r=this.layerList,a=this.sourceId,i=0;i<r.length;i++){var o=r[i],s=o[0],l=e[s];n.addLayer({type:s,id:o[1],source:a,layout:l.layout,paint:l.paint},t)}},i._removeLayers=function(){for(var e=this.subplot.map,t=this.layerList,n=t.length-1;n>=0;n--)e.removeLayer(t[n][1])},i.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)},t.exports=function(e,t){var r=t[0].trace,i=new a(e,r.uid),o=i.sourceId,s=n(t),l=i.below=e.belowLookup["trace-"+r.uid];return e.map.addSource(o,{type:"geojson",data:s.geojson}),i._addLayers(s,l),i}}),sMt=Ee((e,t)=>{var n=es(),r=y$().hoverPoints,a=y$().getExtraText;t.exports=function(e,t,i){var o=r(e,t,i);if(o){var s=o[0],l=s.cd,c=l[0].trace,u=l[s.index];if(delete s.color,"z"in u){var d=s.subplot.mockAxis;s.z=u.z,s.zLabel=n.tickText(d,d.c2l(u.z),"hover").text}return s.extraText=a(c,u,l[0].t.labels),[s]}}}),cMt=Ee((e,t)=>{t.exports=function(e,t){return e.lon=t.lon,e.lat=t.lat,e.z=t.z,e}}),dMt=Ee((e,t)=>{t.exports={attributes:cve(),supplyDefaults:X3t(),colorbar:d4(),formatLabels:Zme(),calc:$3t(),plot:iMt(),hoverPoints:sMt(),eventData:cMt(),getBelow:function(e,t){for(var n=t.getMapLayers(),r=0;r<n.length;r++){var a=n[r],i=a.id;if("symbol"===a.type&&"string"==typeof i&&-1===i.indexOf("plotly-"))return i}},moduleType:"trace",name:"densitymap",basePlotModule:_$(),categories:["map","gl","showLegend"],meta:{hr_name:"density_map",description:["Draws a bivariate kernel density estimation with a Gaussian kernel","from `lon` and `lat` coordinates and optional `z` values using a colorscale."].join(" ")}}}),hMt=Ee((e,t)=>{t.exports=dMt()}),pve=Ee((e,t)=>{var n=Mu(),r=S1(),a=oh(),i=I8(),o=ad().attributes,{hovertemplateAttrs:s,templatefallbackAttrs:l}=p1(),c=Oc(),u=Kl().templatedArray,d=Pd().descriptionOnlyNumbers,p=ms().extendFlat,h=Wu().overrideAll;t.exports=h({hoverinfo:p({},r.hoverinfo,{flags:[],arrayOk:!1,description:["Determines which trace information appear on hover.","If `none` or `skip` are set, no information is displayed upon hovering.","But, if `none` is set, click and hover events are still fired.","Note that this attribute is superseded by `node.hoverinfo` and `node.hoverinfo`","for nodes and links respectively."].join(" ")}),hoverlabel:i.hoverlabel,domain:o({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h",description:"Sets the orientation of the Sankey diagram."},valueformat:{valType:"string",dflt:".3s",description:d("value")},valuesuffix:{valType:"string",dflt:"",description:["Adds a unit to follow the value in the hover tooltip. Add a space if a separation","is necessary from the value."].join(" ")},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap",description:["If value is `snap` (the default), the node arrangement is assisted by automatic snapping of elements to","preserve space between nodes specified via `nodepad`.","If value is `perpendicular`, the nodes can only move along a line perpendicular to the flow.","If value is `freeform`, the nodes can freely move on the plane.","If value is `fixed`, the nodes are stationary."].join(" ")},textfont:n({autoShadowDflt:!0,description:"Sets the font for node labels"}),customdata:void 0,node:{label:{valType:"data_array",dflt:[],description:"The shown name of the node."},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"},description:["Groups of nodes.","Each group is defined by an array with the indices of the nodes it contains.","Multiple groups can be specified."].join(" ")},x:{valType:"data_array",dflt:[],description:"The normalized horizontal position of the node."},y:{valType:"data_array",dflt:[],description:"The normalized vertical position of the node."},color:{valType:"color",arrayOk:!0,description:["Sets the `node` color. It can be a single value, or an array for specifying color for each `node`.","If `node.color` is omitted, then the default `Plotly` color palette will be cycled through","to have a variety of colors. These defaults are not fully opaque, to allow some visibility of","what is beneath the node."].join(" ")},customdata:{valType:"data_array",editType:"calc",description:["Assigns extra data to each node."].join(" ")},line:{color:{valType:"color",dflt:a.defaultLine,arrayOk:!0,description:["Sets the color of the `line` around each `node`."].join(" ")},width:{valType:"number",min:0,dflt:.5,arrayOk:!0,description:["Sets the width (in px) of the `line` around each `node`."].join(" ")}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20,description:"Sets the padding (in px) between the `nodes`."},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20,description:"Sets the thickness (in px) of the `nodes`."},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all",description:["Determines which trace information appear when hovering nodes.","If `none` or `skip` are set, no information is displayed upon hovering.","But, if `none` is set, click and hover events are still fired."].join(" ")},hoverlabel:i.hoverlabel,hovertemplate:s({},{description:"Variables `sourceLinks` and `targetLinks` are arrays of link objects.",keys:["value","label"]}),hovertemplatefallback:l(),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify",description:"Sets the alignment method used to position the nodes along the horizontal axis."},description:"The nodes of the Sankey plot."},link:{arrowlen:{valType:"number",min:0,dflt:0,description:["Sets the length (in px) of the links arrow, if 0 no arrow will be drawn."].join(" ")},label:{valType:"data_array",dflt:[],description:"The shown name of the link."},color:{valType:"color",arrayOk:!0,description:["Sets the `link` color. It can be a single value, or an array for specifying color for each `link`.","If `link.color` is omitted, then by default, a translucent grey link will be used."].join(" ")},hovercolor:{valType:"color",arrayOk:!0,description:["Sets the `link` hover color. It can be a single value, or an array for specifying hover colors for","each `link`. If `link.hovercolor` is omitted, then by default, links will become slightly more","opaque when hovered over."].join(" ")},customdata:{valType:"data_array",editType:"calc",description:["Assigns extra data to each link."].join(" ")},line:{color:{valType:"color",dflt:a.defaultLine,arrayOk:!0,description:["Sets the color of the `line` around each `link`."].join(" ")},width:{valType:"number",min:0,dflt:0,arrayOk:!0,description:["Sets the width (in px) of the `line` around each `link`."].join(" ")}},source:{valType:"data_array",dflt:[],description:"An integer number `[0..nodes.length - 1]` that represents the source node."},target:{valType:"data_array",dflt:[],description:"An integer number `[0..nodes.length - 1]` that represents the target node."},value:{valType:"data_array",dflt:[],description:"A numeric value representing the flow volume value."},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all",description:["Determines which trace information appear when hovering links.","If `none` or `skip` are set, no information is displayed upon hovering.","But, if `none` is set, click and hover events are still fired."].join(" ")},hoverlabel:i.hoverlabel,hovertemplate:s({},{description:"Variables `source` and `target` are node objects.",keys:["value","label"]}),hovertemplatefallback:l(),colorscales:u("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",description:"The label of the links to color based on their concentration within a flow.",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1,description:"Sets the upper bound of the color domain."},cmin:{valType:"number",editType:"calc",dflt:0,description:"Sets the lower bound of the color domain."},colorscale:p(c().colorscale,{dflt:[[0,"white"],[1,"black"]]})}),description:"The links of the Sankey plot."}},"calc","nested")}),zMt=Ee((e,t)=>{var n=Fr(),r=pve(),a=ao(),i=Vh(),o=ad().defaults,s=LD(),l=Kl(),c=Pp();function u(e,t){function a(a,i){return n.coerce(e,t,r.link.colorscales,a,i)}a("label"),a("cmin"),a("cmax"),a("colorscale")}t.exports=function(e,t,d,p){function h(a,i){return n.coerce(e,t,r,a,i)}var f=n.extendDeep(p.hoverlabel,e.hoverlabel),m=e.node,g=l.newContainer(t,"node");function y(e,t){return n.coerce(m,g,r.node,e,t)}y("label"),y("groups"),y("x"),y("y"),y("pad"),y("thickness"),y("line.color"),y("line.width"),y("hoverinfo",e.hoverinfo),s(m,g,y,f),y("hovertemplate"),y("align");var b=p.colorway;y("color",g.label.map(function(e,t){return a.addOpacity(function(e){return b[e%b.length]}(t),.8)})),y("customdata");var v=e.link||{},M=l.newContainer(t,"link");function x(e,t){return n.coerce(v,M,r.link,e,t)}x("label"),x("arrowlen"),x("source"),x("target"),x("value"),x("line.color"),x("line.width"),x("hoverinfo",e.hoverinfo),s(v,M,x,f),x("hovertemplate");var z,_=i(p.paper_bgcolor).getLuminance()<.333,A=x("color",_?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)");function O(e){var t=i(e);if(!t.isValid())return e;var n=t.getAlpha();return n<=.8?t.setAlpha(n+.2):t=_?t.brighten():t.darken(),t.toRgbString()}x("hovercolor",Array.isArray(A)?A.map(O):O(A)),x("customdata"),c(v,M,{name:"colorscales",handleItemDefaults:u}),o(t,p,h),h("orientation"),h("valueformat"),h("valuesuffix"),g.x.length&&g.y.length&&(z="freeform"),h("arrangement",z),n.coerceFont(h,"textfont",p.font,{autoShadowDflt:!0}),t._length=null}}),mve=Ee((e,t)=>{t.exports=function(e){for(var t=e.length,n=new Array(t),r=new Array(t),a=new Array(t),i=new Array(t),o=new Array(t),s=new Array(t),l=0;l<t;++l)n[l]=-1,r[l]=0,a[l]=!1,i[l]=0,o[l]=-1,s[l]=[];var c=0,u=[],d=[];function p(t){var l=[t],p=[t];for(n[t]=r[t]=c,a[t]=!0,c+=1;p.length>0;){t=p[p.length-1];var h=e[t];if(i[t]<h.length){for(var f=i[t];f<h.length;++f){var m=h[f];if(n[m]<0){n[m]=r[m]=c,a[m]=!0,c+=1,l.push(m),p.push(m);break}a[m]&&(r[t]=0|Math.min(r[t],r[m])),o[m]>=0&&s[t].push(o[m])}i[t]=f}else{if(r[t]===n[t]){var g=[],y=[],b=0;for(f=l.length-1;f>=0;--f){var v=l[f];if(a[v]=!1,g.push(v),y.push(s[v]),b+=s[v].length,o[v]=u.length,v===t){l.length=f;break}}u.push(g);var M=new Array(b);for(f=0;f<y.length;f++)for(var x=0;x<y[f].length;x++)M[--b]=y[f][x];d.push(M)}p.pop()}}}for(l=0;l<t;++l)n[l]<0&&p(l);var h;for(l=0;l<d.length;l++){var f=d[l];if(0!==f.length){f.sort(function(e,t){return e-t}),h=[f[0]];for(var m=1;m<f.length;m++)f[m]!==f[m-1]&&h.push(f[m]);d[l]=h}}return{components:u,adjacencyList:d}}}),SMt=Ee((e,t)=>{var n=mve(),r=Fr(),a=K3().wrap,i=r.isArrayOrTypedArray,o=r.isIndex,s=xu();function l(e){var t,a=e.node,l=e.link,c=[],u=i(l.color),d=i(l.hovercolor),p=i(l.customdata),h={},f={},m=l.colorscales.length;for(t=0;t<m;t++){var g=l.colorscales[t],y=s.extractScale(g,{cLetter:"c"}),b=s.makeColorScaleFunc(y);f[g.label]=b}var v=0;for(t=0;t<l.value.length;t++)l.source[t]>v&&(v=l.source[t]),l.target[t]>v&&(v=l.target[t]);var M=v+1;e.node._count=M;var x,z=e.node.groups,_={};for(t=0;t<z.length;t++){var A=z[t];for(x=0;x<A.length;x++){var O=A[x],w=M+t;_.hasOwnProperty(O)?r.warn("Node "+O+" is already part of a group."):_[O]=w}}var k={source:[],target:[]};for(t=0;t<l.value.length;t++){var T=l.value[t],S=l.source[t],C=l.target[t];if(T>0&&o(S,M)&&o(C,M)&&(!_.hasOwnProperty(S)||!_.hasOwnProperty(C)||_[S]!==_[C])){_.hasOwnProperty(C)&&(C=_[C]),_.hasOwnProperty(S)&&(S=_[S]),C=+C,h[S=+S]=h[C]=!0;var E="";l.label&&l.label[t]&&(E=l.label[t]);var q=null;E&&f.hasOwnProperty(E)&&(q=f[E]),c.push({pointNumber:t,label:E,color:u?l.color[t]:l.color,hovercolor:d?l.hovercolor[t]:l.hovercolor,customdata:p?l.customdata[t]:l.customdata,concentrationscale:q,source:S,target:C,value:+T}),k.source.push(S),k.target.push(C)}}var D=M+z.length,R=i(a.color),L=i(a.customdata),I=[];for(t=0;t<D;t++)if(h[t]){var W=a.label[t];I.push({group:t>M-1,childrenNodes:[],pointNumber:t,label:W,color:R?a.color[t]:a.color,customdata:L?a.customdata[t]:a.customdata})}var N=!1;return function(e,t,a){for(var i=r.init2dArray(e,0),o=0;o<Math.min(t.length,a.length);o++)if(r.isIndex(t[o],e)&&r.isIndex(a[o],e)){if(t[o]===a[o])return!0;i[t[o]].push(a[o])}var s=n(i);return s.components.some(function(e){return e.length>1})}(D,k.source,k.target)&&(N=!0),{circular:N,links:c,nodes:I,groups:z,groupLookup:_}}t.exports=function(e,t){var n=l(t);return a({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}}),CMt=Ee((e,t)=>{var n,r;n=e,r=function(e){function t(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var a,i,o,s,l,c,u,d,p,h=e._root,f={data:r},m=e._x0,g=e._y0,y=e._x1,b=e._y1;if(!h)return e._root=f,e;for(;h.length;)if((c=t>=(i=(m+y)/2))?m=i:y=i,(u=n>=(o=(g+b)/2))?g=o:b=o,a=h,!(h=h[d=u<<1|c]))return a[d]=f,e;if(s=+e._x.call(null,h.data),l=+e._y.call(null,h.data),t===s&&n===l)return f.next=h,a?a[d]=f:e._root=f,e;do{a=a?a[d]=new Array(4):e._root=new Array(4),(c=t>=(i=(m+y)/2))?m=i:y=i,(u=n>=(o=(g+b)/2))?g=o:b=o}while((d=u<<1|c)==(p=(l>=o)<<1|s>=i));return a[p]=h,a[d]=f,e}function n(e,t,n,r,a){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=a}function r(e){return e[0]}function a(e){return e[1]}function i(e,t,n){var i=new o(t??r,n??a,NaN,NaN,NaN,NaN);return null==e?i:i.addAll(e)}function o(e,t,n,r,a,i){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=a,this._y1=i,this._root=void 0}function s(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var l=i.prototype=o.prototype;l.copy=function(){var e,t,n=new o(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=s(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var a=0;a<4;++a)(t=r.source[a])&&(t.length?e.push({source:t,target:r.target[a]=new Array(4)}):r.target[a]=s(t));return n},l.add=function(e){var n=+this._x.call(null,e),r=+this._y.call(null,e);return t(this.cover(n,r),n,r,e)},l.addAll=function(e){var n,r,a,i,o=e.length,s=new Array(o),l=new Array(o),c=1/0,u=1/0,d=-1/0,p=-1/0;for(r=0;r<o;++r)isNaN(a=+this._x.call(null,n=e[r]))||isNaN(i=+this._y.call(null,n))||(s[r]=a,l[r]=i,a<c&&(c=a),a>d&&(d=a),i<u&&(u=i),i>p&&(p=i));if(c>d||u>p)return this;for(this.cover(c,u).cover(d,p),r=0;r<o;++r)t(this,s[r],l[r],e[r]);return this},l.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,a=this._x1,i=this._y1;if(isNaN(n))a=(n=Math.floor(e))+1,i=(r=Math.floor(t))+1;else{for(var o,s,l=a-n,c=this._root;n>e||e>=a||r>t||t>=i;)switch(s=(t<r)<<1|e<n,o=new Array(4),o[s]=c,c=o,l*=2,s){case 0:a=n+l,i=r+l;break;case 1:n=a-l,i=r+l;break;case 2:a=n+l,r=i-l;break;case 3:n=a-l,r=i-l}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=a,this._y1=i,this},l.data=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},l.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},l.find=function(e,t,r){var a,i,o,s,l,c,u,d=this._x0,p=this._y0,h=this._x1,f=this._y1,m=[],g=this._root;for(g&&m.push(new n(g,d,p,h,f)),null==r?r=1/0:(d=e-r,p=t-r,h=e+r,f=t+r,r*=r);c=m.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(o=c.y0)>f||(s=c.x1)<d||(l=c.y1)<p))if(g.length){var y=(i+s)/2,b=(o+l)/2;m.push(new n(g[3],y,b,s,l),new n(g[2],i,b,y,l),new n(g[1],y,o,s,b),new n(g[0],i,o,y,b)),(u=(t>=b)<<1|e>=y)&&(c=m[m.length-1],m[m.length-1]=m[m.length-1-u],m[m.length-1-u]=c)}else{var v=e-+this._x.call(null,g.data),M=t-+this._y.call(null,g.data),x=v*v+M*M;if(x<r){var z=Math.sqrt(r=x);d=e-z,p=t-z,h=e+z,f=t+z,a=g.data}}return a},l.remove=function(e){if(isNaN(i=+this._x.call(null,e))||isNaN(o=+this._y.call(null,e)))return this;var t,n,r,a,i,o,s,l,c,u,d,p,h=this._root,f=this._x0,m=this._y0,g=this._x1,y=this._y1;if(!h)return this;if(h.length)for(;;){if((c=i>=(s=(f+g)/2))?f=s:g=s,(u=o>=(l=(m+y)/2))?m=l:y=l,t=h,!(h=h[d=u<<1|c]))return this;if(!h.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,p=d)}for(;h.data!==e;)if(r=h,!(h=h.next))return this;return(a=h.next)&&delete h.next,r?(a?r.next=a:delete r.next,this):t?(a?t[d]=a:delete t[d],(h=t[0]||t[1]||t[2]||t[3])&&h===(t[3]||t[2]||t[1]||t[0])&&!h.length&&(n?n[p]=h:this._root=h),this):(this._root=a,this)},l.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},l.root=function(){return this._root},l.size=function(){var e=0;return this.visit(function(t){if(!t.length)do{++e}while(t=t.next)}),e},l.visit=function(e){var t,r,a,i,o,s,l=[],c=this._root;for(c&&l.push(new n(c,this._x0,this._y0,this._x1,this._y1));t=l.pop();)if(!e(c=t.node,a=t.x0,i=t.y0,o=t.x1,s=t.y1)&&c.length){var u=(a+o)/2,d=(i+s)/2;(r=c[3])&&l.push(new n(r,u,d,o,s)),(r=c[2])&&l.push(new n(r,a,d,u,s)),(r=c[1])&&l.push(new n(r,u,i,o,d)),(r=c[0])&&l.push(new n(r,a,i,u,d))}return this},l.visitAfter=function(e){var t,r=[],a=[];for(this._root&&r.push(new n(this._root,this._x0,this._y0,this._x1,this._y1));t=r.pop();){var i=t.node;if(i.length){var o,s=t.x0,l=t.y0,c=t.x1,u=t.y1,d=(s+c)/2,p=(l+u)/2;(o=i[0])&&r.push(new n(o,s,l,d,p)),(o=i[1])&&r.push(new n(o,d,l,c,p)),(o=i[2])&&r.push(new n(o,s,p,d,u)),(o=i[3])&&r.push(new n(o,d,p,c,u))}a.push(t)}for(;t=a.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},l.x=function(e){return arguments.length?(this._x=e,this):this._x},l.y=function(e){return arguments.length?(this._y=e,this):this._y},e.quadtree=i,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?r(e):"function"==typeof define&&define.amd?define(["exports"],r):r((n=n||self).d3=n.d3||{})}),S$=Ee((e,t)=>{var n,r;n=e,r=function(e){var t="$";function n(){}function r(e,t){var r=new n;if(e instanceof n)e.each(function(e,t){r.set(t,e)});else if(Array.isArray(e)){var a,i=-1,o=e.length;if(null==t)for(;++i<o;)r.set(i,e[i]);else for(;++i<o;)r.set(t(a=e[i],i,e),a)}else if(e)for(var s in e)r.set(s,e[s]);return r}function a(){return{}}function i(e,t,n){e[t]=n}function o(){return r()}function s(e,t,n){e.set(t,n)}function l(){}n.prototype=r.prototype={constructor:n,has:function(e){return t+e in this},get:function(e){return this[t+e]},set:function(e,n){return this[t+e]=n,this},remove:function(e){var n=t+e;return n in this&&delete this[n]},clear:function(){for(var e in this)e[0]===t&&delete this[e]},keys:function(){var e=[];for(var n in this)n[0]===t&&e.push(n.slice(1));return e},values:function(){var e=[];for(var n in this)n[0]===t&&e.push(this[n]);return e},entries:function(){var e=[];for(var n in this)n[0]===t&&e.push({key:n.slice(1),value:this[n]});return e},size:function(){var e=0;for(var n in this)n[0]===t&&++e;return e},empty:function(){for(var e in this)if(e[0]===t)return!1;return!0},each:function(e){for(var n in this)n[0]===t&&e(this[n],n.slice(1),this)}};var c=r.prototype;function u(e,t){var n=new l;if(e instanceof l)e.each(function(e){n.add(e)});else if(e){var r=-1,a=e.length;if(null==t)for(;++r<a;)n.add(e[r]);else for(;++r<a;)n.add(t(e[r],r,e))}return n}l.prototype=u.prototype={constructor:l,has:c.has,add:function(e){return this[t+(e+="")]=e,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each},e.nest=function(){var e,t,n,l=[],c=[];function u(n,a,i,o){if(a>=l.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var s,c,d,p=-1,h=n.length,f=l[a++],m=r(),g=i();++p<h;)(d=m.get(s=f(c=n[p])+""))?d.push(c):m.set(s,[c]);return m.each(function(e,t){o(g,t,u(e,a,i,o))}),g}function d(e,n){if(++n>l.length)return e;var r,a=c[n-1];return null!=t&&n>=l.length?r=e.entries():(r=[],e.each(function(e,t){r.push({key:t,values:d(e,n)})})),null!=a?r.sort(function(e,t){return a(e.key,t.key)}):r}return n={object:function(e){return u(e,0,a,i)},map:function(e){return u(e,0,o,s)},entries:function(e){return d(u(e,0,o,s),0)},key:function(e){return l.push(e),n},sortKeys:function(e){return c[l.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}},e.set=u,e.map=r,e.keys=function(e){var t=[];for(var n in e)t.push(n);return t},e.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},e.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?r(e):"function"==typeof define&&define.amd?define(["exports"],r):r(n.d3=n.d3||{})}),DMt=Ee((e,t)=>{var n,r;n=e,r=function(e){var t={value:function(){}};function n(){for(var e,t=0,n=arguments.length,a={};t<n;++t){if(!(e=arguments[t]+"")||e in a||/[\s.]/.test(e))throw new Error("illegal type: "+e);a[e]=[]}return new r(a)}function r(e){this._=e}function a(e,t){for(var n,r=0,a=e.length;r<a;++r)if((n=e[r]).name===t)return n.value}function i(e,n,r){for(var a=0,i=e.length;a<i;++a)if(e[a].name===n){e[a]=t,e=e.slice(0,a).concat(e.slice(a+1));break}return null!=r&&e.push({name:n,value:r}),e}r.prototype=n.prototype={constructor:r,on:function(e,t){var n,r=this._,o=function(e,t){return e.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}})}(e+"",r),s=-1,l=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++s<l;)if(n=(e=o[s]).type)r[n]=i(r[n],e.name,t);else if(null==t)for(n in r)r[n]=i(r[n],e.name,null);return this}for(;++s<l;)if((n=(e=o[s]).type)&&(n=a(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new r(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,a=new Array(n),i=0;i<n;++i)a[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=0,n=(r=this._[e]).length;i<n;++i)r[i].value.apply(t,a)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],a=0,i=r.length;a<i;++a)r[a].value.apply(t,n)}},e.dispatch=n,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?r(e):"function"==typeof define&&define.amd?define(["exports"],r):r((n=n||self).d3=n.d3||{})}),LMt=Ee((e,t)=>{var n,r;n=e,r=function(e){var t,n,r=0,a=0,i=0,o=0,s=0,l=0,c="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function d(){return s||(u(p),s=c.now()+l)}function p(){s=0}function h(){this._call=this._time=this._next=null}function f(e,t,n){var r=new h;return r.restart(e,t,n),r}function m(){d(),++r;for(var e,n=t;n;)(e=s-n._time)>=0&&n._call.call(null,e),n=n._next;--r}function g(){s=(o=c.now())+l,r=a=0;try{m()}finally{r=0,function(){for(var e,r,a=t,i=1/0;a;)a._call?(i>a._time&&(i=a._time),e=a,a=a._next):(r=a._next,a._next=null,a=e?e._next=r:t=r);n=e,b(i)}(),s=0}}function y(){var e=c.now(),t=e-o;t>1e3&&(l-=t,o=e)}function b(e){r||(a&&(a=clearTimeout(a)),e-s>24?(e<1/0&&(a=setTimeout(g,e-c.now()-l)),i&&(i=clearInterval(i))):(i||(o=c.now(),i=setInterval(y,1e3)),r=1,u(g)))}h.prototype=f.prototype={constructor:h,restart:function(e,r,a){if("function"!=typeof e)throw new TypeError("callback is not a function");a=(null==a?d():+a)+(null==r?0:+r),!this._next&&n!==this&&(n?n._next=this:t=this,n=this),this._call=e,this._time=a,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}},e.interval=function(e,t,n){var r=new h,a=t;return null==t?(r.restart(e,t,n),r):(t=+t,n=null==n?d():+n,r.restart(function i(o){o+=a,r.restart(i,a+=t,n),e(o)},t,n),r)},e.now=d,e.timeout=function(e,t,n){var r=new h;return t=null==t?0:+t,r.restart(function(n){r.stop(),e(n+t)},t,n),r},e.timer=f,e.timerFlush=m,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?r(e):"function"==typeof define&&define.amd?define(["exports"],r):r((n=n||self).d3=n.d3||{})}),IMt=Ee((e,t)=>{var n,r;n=e,r=function(e,t,n,r,a){function i(e){return function(){return e}}function o(){return 1e-6*(Math.random()-.5)}function s(e){return e.x+e.vx}function l(e){return e.y+e.vy}function c(e){return e.index}function u(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function d(e){return e.x}function p(e){return e.y}var h=Math.PI*(3-Math.sqrt(5));e.forceCenter=function(e,t){var n;function r(){var r,a,i=n.length,o=0,s=0;for(r=0;r<i;++r)o+=(a=n[r]).x,s+=a.y;for(o=o/i-e,s=s/i-t,r=0;r<i;++r)(a=n[r]).x-=o,a.y-=s}return null==e&&(e=0),null==t&&(t=0),r.initialize=function(e){n=e},r.x=function(t){return arguments.length?(e=+t,r):e},r.y=function(e){return arguments.length?(t=+e,r):t},r},e.forceCollide=function(e){var n,r,a=1,c=1;function u(){for(var e,i,u,p,h,f,m,g=n.length,y=0;y<c;++y)for(i=t.quadtree(n,s,l).visitAfter(d),e=0;e<g;++e)u=n[e],f=r[u.index],m=f*f,p=u.x+u.vx,h=u.y+u.vy,i.visit(b);function b(e,t,n,r,i){var s=e.data,l=e.r,c=f+l;if(!s)return t>p+c||r<p-c||n>h+c||i<h-c;if(s.index>u.index){var d=p-s.x-s.vx,g=h-s.y-s.vy,y=d*d+g*g;y<c*c&&(0===d&&(y+=(d=o())*d),0===g&&(y+=(g=o())*g),y=(c-(y=Math.sqrt(y)))/y*a,u.vx+=(d*=y)*(c=(l*=l)/(m+l)),u.vy+=(g*=y)*c,s.vx-=d*(c=1-c),s.vy-=g*c)}}}function d(e){if(e.data)return e.r=r[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function p(){if(n){var t,a,i=n.length;for(r=new Array(i),t=0;t<i;++t)a=n[t],r[a.index]=+e(a,t,n)}}return"function"!=typeof e&&(e=i(null==e?1:+e)),u.initialize=function(e){n=e,p()},u.iterations=function(e){return arguments.length?(c=+e,u):c},u.strength=function(e){return arguments.length?(a=+e,u):a},u.radius=function(t){return arguments.length?(e="function"==typeof t?t:i(+t),p(),u):e},u},e.forceLink=function(e){var t,r,a,s,l,d=c,p=function(e){return 1/Math.min(s[e.source.index],s[e.target.index])},h=i(30),f=1;function m(n){for(var a=0,i=e.length;a<f;++a)for(var s,c,u,d,p,h,m,g=0;g<i;++g)c=(s=e[g]).source,d=(u=s.target).x+u.vx-c.x-c.vx||o(),p=u.y+u.vy-c.y-c.vy||o(),d*=h=((h=Math.sqrt(d*d+p*p))-r[g])/h*n*t[g],p*=h,u.vx-=d*(m=l[g]),u.vy-=p*m,c.vx+=d*(m=1-m),c.vy+=p*m}function g(){if(a){var i,o,c=a.length,p=e.length,h=n.map(a,d);for(i=0,s=new Array(c);i<p;++i)(o=e[i]).index=i,"object"!=typeof o.source&&(o.source=u(h,o.source)),"object"!=typeof o.target&&(o.target=u(h,o.target)),s[o.source.index]=(s[o.source.index]||0)+1,s[o.target.index]=(s[o.target.index]||0)+1;for(i=0,l=new Array(p);i<p;++i)o=e[i],l[i]=s[o.source.index]/(s[o.source.index]+s[o.target.index]);t=new Array(p),y(),r=new Array(p),b()}}function y(){if(a)for(var n=0,r=e.length;n<r;++n)t[n]=+p(e[n],n,e)}function b(){if(a)for(var t=0,n=e.length;t<n;++t)r[t]=+h(e[t],t,e)}return null==e&&(e=[]),m.initialize=function(e){a=e,g()},m.links=function(t){return arguments.length?(e=t,g(),m):e},m.id=function(e){return arguments.length?(d=e,m):d},m.iterations=function(e){return arguments.length?(f=+e,m):f},m.strength=function(e){return arguments.length?(p="function"==typeof e?e:i(+e),y(),m):p},m.distance=function(e){return arguments.length?(h="function"==typeof e?e:i(+e),b(),m):h},m},e.forceManyBody=function(){var e,n,r,a,s=i(-30),l=1,c=1/0,u=.81;function h(a){var i,o=e.length,s=t.quadtree(e,d,p).visitAfter(m);for(r=a,i=0;i<o;++i)n=e[i],s.visit(g)}function f(){if(e){var t,n,r=e.length;for(a=new Array(r),t=0;t<r;++t)n=e[t],a[n.index]=+s(n,t,e)}}function m(e){var t,n,r,i,o,s=0,l=0;if(e.length){for(r=i=o=0;o<4;++o)(t=e[o])&&(n=Math.abs(t.value))&&(s+=t.value,l+=n,r+=n*t.x,i+=n*t.y);e.x=r/l,e.y=i/l}else{(t=e).x=t.data.x,t.y=t.data.y;do{s+=a[t.data.index]}while(t=t.next)}e.value=s}function g(e,t,i,s){if(!e.value)return!0;var d=e.x-n.x,p=e.y-n.y,h=s-t,f=d*d+p*p;if(h*h/u<f)return f<c&&(0===d&&(f+=(d=o())*d),0===p&&(f+=(p=o())*p),f<l&&(f=Math.sqrt(l*f)),n.vx+=d*e.value*r/f,n.vy+=p*e.value*r/f),!0;if(!(e.length||f>=c)){(e.data!==n||e.next)&&(0===d&&(f+=(d=o())*d),0===p&&(f+=(p=o())*p),f<l&&(f=Math.sqrt(l*f)));do{e.data!==n&&(h=a[e.data.index]*r/f,n.vx+=d*h,n.vy+=p*h)}while(e=e.next)}}return h.initialize=function(t){e=t,f()},h.strength=function(e){return arguments.length?(s="function"==typeof e?e:i(+e),f(),h):s},h.distanceMin=function(e){return arguments.length?(l=e*e,h):Math.sqrt(l)},h.distanceMax=function(e){return arguments.length?(c=e*e,h):Math.sqrt(c)},h.theta=function(e){return arguments.length?(u=e*e,h):Math.sqrt(u)},h},e.forceRadial=function(e,t,n){var r,a,o,s=i(.1);function l(e){for(var i=0,s=r.length;i<s;++i){var l=r[i],c=l.x-t||1e-6,u=l.y-n||1e-6,d=Math.sqrt(c*c+u*u),p=(o[i]-d)*a[i]*e/d;l.vx+=c*p,l.vy+=u*p}}function c(){if(r){var t,n=r.length;for(a=new Array(n),o=new Array(n),t=0;t<n;++t)o[t]=+e(r[t],t,r),a[t]=isNaN(o[t])?0:+s(r[t],t,r)}}return"function"!=typeof e&&(e=i(+e)),null==t&&(t=0),null==n&&(n=0),l.initialize=function(e){r=e,c()},l.strength=function(e){return arguments.length?(s="function"==typeof e?e:i(+e),c(),l):s},l.radius=function(t){return arguments.length?(e="function"==typeof t?t:i(+t),c(),l):e},l.x=function(e){return arguments.length?(t=+e,l):t},l.y=function(e){return arguments.length?(n=+e,l):n},l},e.forceSimulation=function(e){var t,i=1,o=.001,s=1-Math.pow(o,1/300),l=0,c=.6,u=n.map(),d=a.timer(f),p=r.dispatch("tick","end");function f(){m(),p.call("tick",t),i<o&&(d.stop(),p.call("end",t))}function m(n){var r,a,o=e.length;void 0===n&&(n=1);for(var d=0;d<n;++d)for(i+=(l-i)*s,u.each(function(e){e(i)}),r=0;r<o;++r)null==(a=e[r]).fx?a.x+=a.vx*=c:(a.x=a.fx,a.vx=0),null==a.fy?a.y+=a.vy*=c:(a.y=a.fy,a.vy=0);return t}function g(){for(var t,n=0,r=e.length;n<r;++n){if((t=e[n]).index=n,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),isNaN(t.x)||isNaN(t.y)){var a=10*Math.sqrt(n),i=n*h;t.x=a*Math.cos(i),t.y=a*Math.sin(i)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function y(t){return t.initialize&&t.initialize(e),t}return null==e&&(e=[]),g(),t={tick:m,restart:function(){return d.restart(f),t},stop:function(){return d.stop(),t},nodes:function(n){return arguments.length?(e=n,g(),u.each(y),t):e},alpha:function(e){return arguments.length?(i=+e,t):i},alphaMin:function(e){return arguments.length?(o=+e,t):o},alphaDecay:function(e){return arguments.length?(s=+e,t):+s},alphaTarget:function(e){return arguments.length?(l=+e,t):l},velocityDecay:function(e){return arguments.length?(c=1-e,t):1-c},force:function(e,n){return arguments.length>1?(null==n?u.remove(e):u.set(e,y(n)),t):u.get(e)},find:function(t,n,r){var a,i,o,s,l,c=0,u=e.length;for(null==r?r=1/0:r*=r,c=0;c<u;++c)(o=(a=t-(s=e[c]).x)*a+(i=n-s.y)*i)<r&&(l=s,r=o);return l},on:function(e,n){return arguments.length>1?(p.on(e,n),t):p.on(e)}}},e.forceX=function(e){var t,n,r,a=i(.1);function o(e){for(var a,i=0,o=t.length;i<o;++i)(a=t[i]).vx+=(r[i]-a.x)*n[i]*e}function s(){if(t){var i,o=t.length;for(n=new Array(o),r=new Array(o),i=0;i<o;++i)n[i]=isNaN(r[i]=+e(t[i],i,t))?0:+a(t[i],i,t)}}return"function"!=typeof e&&(e=i(null==e?0:+e)),o.initialize=function(e){t=e,s()},o.strength=function(e){return arguments.length?(a="function"==typeof e?e:i(+e),s(),o):a},o.x=function(t){return arguments.length?(e="function"==typeof t?t:i(+t),s(),o):e},o},e.forceY=function(e){var t,n,r,a=i(.1);function o(e){for(var a,i=0,o=t.length;i<o;++i)(a=t[i]).vy+=(r[i]-a.y)*n[i]*e}function s(){if(t){var i,o=t.length;for(n=new Array(o),r=new Array(o),i=0;i<o;++i)n[i]=isNaN(r[i]=+e(t[i],i,t))?0:+a(t[i],i,t)}}return"function"!=typeof e&&(e=i(null==e?0:+e)),o.initialize=function(e){t=e,s()},o.strength=function(e){return arguments.length?(a="function"==typeof e?e:i(+e),s(),o):a},o.y=function(t){return arguments.length?(e="function"==typeof t?t:i(+t),s(),o):e},o},Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?r(e,CMt(),S$(),DMt(),LMt()):"function"==typeof define&&define.amd?define(["exports","d3-quadtree","d3-collection","d3-dispatch","d3-timer"],r):r(n.d3=n.d3||{},n.d3,n.d3,n.d3,n.d3)}),WMt=Ee((e,t)=>{var n,r;n=e,r=function(e){var t=Math.PI,n=2*t,r=1e-6,a=n-r;function i(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new i}i.prototype=o.prototype={constructor:i,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,a,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+a)+","+(this._y1=+i)},arcTo:function(e,n,a,i,o){e=+e,n=+n,a=+a,i=+i,o=+o;var s=this._x1,l=this._y1,c=a-e,u=i-n,d=s-e,p=l-n,h=d*d+p*p;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=n);else if(h>r)if(Math.abs(p*c-u*d)>r&&o){var f=a-s,m=i-l,g=c*c+u*u,y=f*f+m*m,b=Math.sqrt(g),v=Math.sqrt(h),M=o*Math.tan((t-Math.acos((g+h-y)/(2*b*v)))/2),x=M/v,z=M/b;Math.abs(x-1)>r&&(this._+="L"+(e+x*d)+","+(n+x*p)),this._+="A"+o+","+o+",0,0,"+ +(p*f>d*m)+","+(this._x1=e+z*c)+","+(this._y1=n+z*u)}else this._+="L"+(this._x1=e)+","+(this._y1=n)},arc:function(e,i,o,s,l,c){e=+e,i=+i,c=!!c;var u=(o=+o)*Math.cos(s),d=o*Math.sin(s),p=e+u,h=i+d,f=1^c,m=c?s-l:l-s;if(o<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+p+","+h:(Math.abs(this._x1-p)>r||Math.abs(this._y1-h)>r)&&(this._+="L"+p+","+h),o&&(m<0&&(m=m%n+n),m>a?this._+="A"+o+","+o+",0,1,"+f+","+(e-u)+","+(i-d)+"A"+o+","+o+",0,1,"+f+","+(this._x1=p)+","+(this._y1=h):m>r&&(this._+="A"+o+","+o+",0,"+ +(m>=t)+","+f+","+(this._x1=e+o*Math.cos(l))+","+(this._y1=i+o*Math.sin(l))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.path=o,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?r(e):"function"==typeof define&&define.amd?define(["exports"],r):r((n=n||self).d3=n.d3||{})}),vve=Ee((e,t)=>{var n,r;n=e,r=function(e,t){function n(e){return function(){return e}}var r=Math.abs,a=Math.atan2,i=Math.cos,o=Math.max,s=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,d=Math.PI,p=d/2,h=2*d;function f(e){return e>=1?p:e<=-1?-p:Math.asin(e)}function m(e){return e.innerRadius}function g(e){return e.outerRadius}function y(e){return e.startAngle}function b(e){return e.endAngle}function v(e){return e&&e.padAngle}function M(e,t,n,r,a,i,s){var l=e-n,u=t-r,d=(s?i:-i)/c(l*l+u*u),p=d*u,h=-d*l,f=e+p,m=t+h,g=n+p,y=r+h,b=(f+g)/2,v=(m+y)/2,M=g-f,x=y-m,z=M*M+x*x,_=a-i,A=f*y-g*m,O=(x<0?-1:1)*c(o(0,_*_*z-A*A)),w=(A*x-M*O)/z,k=(-A*M-x*O)/z,T=(A*x+M*O)/z,S=(-A*M+x*O)/z,C=w-b,E=k-v,q=T-b,D=S-v;return C*C+E*E>q*q+D*D&&(w=T,k=S),{cx:w,cy:k,x01:-p,y01:-h,x11:w*(a/_-1),y11:k*(a/_-1)}}function x(e){this._context=e}function z(e){return new x(e)}function _(e){return e[0]}function A(e){return e[1]}function O(){var e=_,r=A,a=n(!0),i=null,o=z,s=null;function l(n){var l,c,u,d=n.length,p=!1;for(null==i&&(s=o(u=t.path())),l=0;l<=d;++l)!(l<d&&a(c=n[l],l,n))===p&&((p=!p)?s.lineStart():s.lineEnd()),p&&s.point(+e(c,l,n),+r(c,l,n));if(u)return s=null,u+""||null}return l.x=function(t){return arguments.length?(e="function"==typeof t?t:n(+t),l):e},l.y=function(e){return arguments.length?(r="function"==typeof e?e:n(+e),l):r},l.defined=function(e){return arguments.length?(a="function"==typeof e?e:n(!!e),l):a},l.curve=function(e){return arguments.length?(o=e,null!=i&&(s=o(i)),l):o},l.context=function(e){return arguments.length?(null==e?i=s=null:s=o(i=e),l):i},l}function w(){var e=_,r=null,a=n(0),i=A,o=n(!0),s=null,l=z,c=null;function u(n){var u,d,p,h,f,m=n.length,g=!1,y=new Array(m),b=new Array(m);for(null==s&&(c=l(f=t.path())),u=0;u<=m;++u){if(!(u<m&&o(h=n[u],u,n))===g)if(g=!g)d=u,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),p=u-1;p>=d;--p)c.point(y[p],b[p]);c.lineEnd(),c.areaEnd()}g&&(y[u]=+e(h,u,n),b[u]=+a(h,u,n),c.point(r?+r(h,u,n):y[u],i?+i(h,u,n):b[u]))}if(f)return c=null,f+""||null}function d(){return O().defined(o).curve(l).context(s)}return u.x=function(t){return arguments.length?(e="function"==typeof t?t:n(+t),r=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:n(+t),u):e},u.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:n(+e),u):r},u.y=function(e){return arguments.length?(a="function"==typeof e?e:n(+e),i=null,u):a},u.y0=function(e){return arguments.length?(a="function"==typeof e?e:n(+e),u):a},u.y1=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:n(+e),u):i},u.lineX0=u.lineY0=function(){return d().x(e).y(a)},u.lineY1=function(){return d().x(e).y(i)},u.lineX1=function(){return d().x(r).y(a)},u.defined=function(e){return arguments.length?(o="function"==typeof e?e:n(!!e),u):o},u.curve=function(e){return arguments.length?(l=e,null!=s&&(c=l(s)),u):l},u.context=function(e){return arguments.length?(null==e?s=c=null:c=l(s=e),u):s},u}function k(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function T(e){return e}x.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var S=E(z);function C(e){this._curve=e}function E(e){function t(t){return new C(e(t))}return t._curve=e,t}function q(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(E(e)):t()._curve},e}function D(){return q(O().curve(S))}function R(){var e=w().curve(S),t=e.curve,n=e.lineX0,r=e.lineX1,a=e.lineY0,i=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return q(n())},delete e.lineX0,e.lineEndAngle=function(){return q(r())},delete e.lineX1,e.lineInnerRadius=function(){return q(a())},delete e.lineY0,e.lineOuterRadius=function(){return q(i())},delete e.lineY1,e.curve=function(e){return arguments.length?t(E(e)):t()._curve},e}function L(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}C.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var I=Array.prototype.slice;function W(e){return e.source}function N(e){return e.target}function P(e){var r=W,a=N,i=_,o=A,s=null;function l(){var n,l=I.call(arguments),c=r.apply(this,l),u=a.apply(this,l);if(s||(s=n=t.path()),e(s,+i.apply(this,(l[0]=c,l)),+o.apply(this,l),+i.apply(this,(l[0]=u,l)),+o.apply(this,l)),n)return s=null,n+""||null}return l.source=function(e){return arguments.length?(r=e,l):r},l.target=function(e){return arguments.length?(a=e,l):a},l.x=function(e){return arguments.length?(i="function"==typeof e?e:n(+e),l):i},l.y=function(e){return arguments.length?(o="function"==typeof e?e:n(+e),l):o},l.context=function(e){return arguments.length?(s=e??null,l):s},l}function B(e,t,n,r,a){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,a,r,a)}function F(e,t,n,r,a){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+a)/2,r,n,r,a)}function j(e,t,n,r,a){var i=L(t,n),o=L(t,n=(n+a)/2),s=L(r,n),l=L(r,a);e.moveTo(i[0],i[1]),e.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}var U={draw:function(e,t){var n=Math.sqrt(t/d);e.moveTo(n,0),e.arc(0,0,n,0,h)}},V={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},H=Math.sqrt(1/3),X=2*H,G={draw:function(e,t){var n=Math.sqrt(t/X),r=n*H;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Y=Math.sin(d/10)/Math.sin(7*d/10),Z=Math.sin(h/10)*Y,$=-Math.cos(h/10)*Y,J={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=Z*n,a=$*n;e.moveTo(0,-n),e.lineTo(r,a);for(var i=1;i<5;++i){var o=h*i/5,s=Math.cos(o),l=Math.sin(o);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*a,l*r+s*a)}e.closePath()}},Q={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},K=Math.sqrt(3),ee={draw:function(e,t){var n=-Math.sqrt(t/(3*K));e.moveTo(0,2*n),e.lineTo(-K*n,-n),e.lineTo(K*n,-n),e.closePath()}},te=-.5,ne=Math.sqrt(3)/2,re=1/Math.sqrt(12),ae=3*(re/2+1),ie={draw:function(e,t){var n=Math.sqrt(t/ae),r=n/2,a=n*re,i=r,o=n*re+n,s=-i,l=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(s,l),e.lineTo(te*r-ne*a,ne*r+te*a),e.lineTo(te*i-ne*o,ne*i+te*o),e.lineTo(te*s-ne*l,ne*s+te*l),e.lineTo(te*r+ne*a,te*a-ne*r),e.lineTo(te*i+ne*o,te*o-ne*i),e.lineTo(te*s+ne*l,te*l-ne*s),e.closePath()}},oe=[U,V,G,Q,J,ee,ie];function se(){}function le(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function ce(e){this._context=e}function ue(e){this._context=e}function de(e){this._context=e}function pe(e,t){this._basis=new ce(e),this._beta=t}ce.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:le(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:le(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ue.prototype={areaStart:se,areaEnd:se,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:le(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},de.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:le(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},pe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,a=e[0],i=t[0],o=e[n]-a,s=t[n]-i,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(a+r*o),this._beta*t[l]+(1-this._beta)*(i+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var he=function e(t){function n(e){return 1===t?new ce(e):new pe(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function fe(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function me(e,t){this._context=e,this._k=(1-t)/6}me.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:fe(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:fe(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ge=function e(t){function n(e){return new me(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ye(e,t){this._context=e,this._k=(1-t)/6}ye.prototype={areaStart:se,areaEnd:se,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:fe(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var be=function e(t){function n(e){return new ye(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ve(e,t){this._context=e,this._k=(1-t)/6}ve.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:fe(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Me=function e(t){function n(e){return new ve(e,t)}return n.tension=function(t){return e(+t)},n}(0);function xe(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>u){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>u){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*c+e._x1*e._l23_2a-t*e._l12_2a)/d,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(r,a,i,o,e._x2,e._y2)}function ze(e,t){this._context=e,this._alpha=t}ze.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:xe(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var _e=function e(t){function n(e){return t?new ze(e,t):new me(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ae(e,t){this._context=e,this._alpha=t}Ae.prototype={areaStart:se,areaEnd:se,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:xe(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Oe=function e(t){function n(e){return t?new Ae(e,t):new ye(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function we(e,t){this._context=e,this._alpha=t}we.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:xe(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ke=function e(t){function n(e){return t?new we(e,t):new ve(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Te(e){this._context=e}function Se(e){return e<0?-1:1}function Ce(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),s=(i*a+o*r)/(r+a);return(Se(i)+Se(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function Ee(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function qe(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,a+s*t,i-s,o-s*n,i,o)}function De(e){this._context=e}function Re(e){this._context=new Le(e)}function Le(e){this._context=e}function Ie(e){this._context=e}function We(e){var t,n,r=e.length-1,a=new Array(r),i=new Array(r),o=new Array(r);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[r-1]=2,i[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=a[t]/i[t-1],i[t]-=n,o[t]-=n*o[t-1];for(a[r-1]=o[r-1]/i[r-1],t=r-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function Ne(e,t){this._context=e,this._t=t}function Pe(e,t){if((a=e.length)>1)for(var n,r,a,i=1,o=e[t[0]],s=o.length;i<a;++i)for(r=o,o=e[t[i]],n=0;n<s;++n)o[n][1]+=o[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Be(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Fe(e,t){return e[t]}function je(e){var t=e.map(Ue);return Be(e).sort(function(e,n){return t[e]-t[n]})}function Ue(e){for(var t,n=-1,r=0,a=e.length,i=-1/0;++n<a;)(t=+e[n][1])>i&&(i=t,r=n);return r}function Ve(e){var t=e.map(He);return Be(e).sort(function(e,n){return t[e]-t[n]})}function He(e){for(var t,n=0,r=-1,a=e.length;++r<a;)(t=+e[r][1])&&(n+=t);return n}Te.prototype={areaStart:se,areaEnd:se,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},De.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:qe(this,this._t0,Ee(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,qe(this,Ee(this,n=Ce(this,e,t)),n);break;default:qe(this,this._t0,n=Ce(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Re.prototype=Object.create(De.prototype)).point=function(e,t){De.prototype.point.call(this,t,e)},Le.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}},Ie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=We(e),a=We(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[o],t[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Ne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},e.arc=function(){var e=m,o=g,x=n(0),z=null,_=y,A=b,O=v,w=null;function k(){var n,m,g=+e.apply(this,arguments),y=+o.apply(this,arguments),b=_.apply(this,arguments)-p,v=A.apply(this,arguments)-p,k=r(v-b),T=v>b;if(w||(w=n=t.path()),y<g&&(m=y,y=g,g=m),y>u)if(k>h-u)w.moveTo(y*i(b),y*l(b)),w.arc(0,0,y,b,v,!T),g>u&&(w.moveTo(g*i(v),g*l(v)),w.arc(0,0,g,v,b,T));else{var S,C,E=b,q=v,D=b,R=v,L=k,I=k,W=O.apply(this,arguments)/2,N=W>u&&(z?+z.apply(this,arguments):c(g*g+y*y)),P=s(r(y-g)/2,+x.apply(this,arguments)),B=P,F=P;if(N>u){var j=f(N/g*l(W)),U=f(N/y*l(W));(L-=2*j)>u?(D+=j*=T?1:-1,R-=j):(L=0,D=R=(b+v)/2),(I-=2*U)>u?(E+=U*=T?1:-1,q-=U):(I=0,E=q=(b+v)/2)}var V=y*i(E),H=y*l(E),X=g*i(R),G=g*l(R);if(P>u){var Y,Z=y*i(q),$=y*l(q),J=g*i(D),Q=g*l(D);if(k<d&&(Y=function(e,t,n,r,a,i,o,s){var l=n-e,c=r-t,d=o-a,p=s-i,h=p*l-d*c;if(!(h*h<u))return[e+(h=(d*(t-i)-p*(e-a))/h)*l,t+h*c]}(V,H,J,Q,Z,$,X,G))){var K=V-Y[0],ee=H-Y[1],te=Z-Y[0],ne=$-Y[1],re=1/l(function(e){return e>1?0:e<-1?d:Math.acos(e)}((K*te+ee*ne)/(c(K*K+ee*ee)*c(te*te+ne*ne)))/2),ae=c(Y[0]*Y[0]+Y[1]*Y[1]);B=s(P,(g-ae)/(re-1)),F=s(P,(y-ae)/(re+1))}}I>u?F>u?(S=M(J,Q,V,H,y,F,T),C=M(Z,$,X,G,y,F,T),w.moveTo(S.cx+S.x01,S.cy+S.y01),F<P?w.arc(S.cx,S.cy,F,a(S.y01,S.x01),a(C.y01,C.x01),!T):(w.arc(S.cx,S.cy,F,a(S.y01,S.x01),a(S.y11,S.x11),!T),w.arc(0,0,y,a(S.cy+S.y11,S.cx+S.x11),a(C.cy+C.y11,C.cx+C.x11),!T),w.arc(C.cx,C.cy,F,a(C.y11,C.x11),a(C.y01,C.x01),!T))):(w.moveTo(V,H),w.arc(0,0,y,E,q,!T)):w.moveTo(V,H),g>u&&L>u?B>u?(S=M(X,G,Z,$,g,-B,T),C=M(V,H,J,Q,g,-B,T),w.lineTo(S.cx+S.x01,S.cy+S.y01),B<P?w.arc(S.cx,S.cy,B,a(S.y01,S.x01),a(C.y01,C.x01),!T):(w.arc(S.cx,S.cy,B,a(S.y01,S.x01),a(S.y11,S.x11),!T),w.arc(0,0,g,a(S.cy+S.y11,S.cx+S.x11),a(C.cy+C.y11,C.cx+C.x11),T),w.arc(C.cx,C.cy,B,a(C.y11,C.x11),a(C.y01,C.x01),!T))):w.arc(0,0,g,R,D,T):w.lineTo(X,G)}else w.moveTo(0,0);if(w.closePath(),n)return w=null,n+""||null}return k.centroid=function(){var t=(+e.apply(this,arguments)+ +o.apply(this,arguments))/2,n=(+_.apply(this,arguments)+ +A.apply(this,arguments))/2-d/2;return[i(n)*t,l(n)*t]},k.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:n(+t),k):e},k.outerRadius=function(e){return arguments.length?(o="function"==typeof e?e:n(+e),k):o},k.cornerRadius=function(e){return arguments.length?(x="function"==typeof e?e:n(+e),k):x},k.padRadius=function(e){return arguments.length?(z=null==e?null:"function"==typeof e?e:n(+e),k):z},k.startAngle=function(e){return arguments.length?(_="function"==typeof e?e:n(+e),k):_},k.endAngle=function(e){return arguments.length?(A="function"==typeof e?e:n(+e),k):A},k.padAngle=function(e){return arguments.length?(O="function"==typeof e?e:n(+e),k):O},k.context=function(e){return arguments.length?(w=e??null,k):w},k},e.area=w,e.areaRadial=R,e.curveBasis=function(e){return new ce(e)},e.curveBasisClosed=function(e){return new ue(e)},e.curveBasisOpen=function(e){return new de(e)},e.curveBundle=he,e.curveCardinal=ge,e.curveCardinalClosed=be,e.curveCardinalOpen=Me,e.curveCatmullRom=_e,e.curveCatmullRomClosed=Oe,e.curveCatmullRomOpen=ke,e.curveLinear=z,e.curveLinearClosed=function(e){return new Te(e)},e.curveMonotoneX=function(e){return new De(e)},e.curveMonotoneY=function(e){return new Re(e)},e.curveNatural=function(e){return new Ie(e)},e.curveStep=function(e){return new Ne(e,.5)},e.curveStepAfter=function(e){return new Ne(e,1)},e.curveStepBefore=function(e){return new Ne(e,0)},e.line=O,e.lineRadial=D,e.linkHorizontal=function(){return P(B)},e.linkRadial=function(){var e=P(j);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e},e.linkVertical=function(){return P(F)},e.pie=function(){var e=T,t=k,r=null,a=n(0),i=n(h),o=n(0);function s(n){var s,l,c,u,d,p=n.length,f=0,m=new Array(p),g=new Array(p),y=+a.apply(this,arguments),b=Math.min(h,Math.max(-h,i.apply(this,arguments)-y)),v=Math.min(Math.abs(b)/p,o.apply(this,arguments)),M=v*(b<0?-1:1);for(s=0;s<p;++s)(d=g[m[s]=s]=+e(n[s],s,n))>0&&(f+=d);for(null!=t?m.sort(function(e,n){return t(g[e],g[n])}):null!=r&&m.sort(function(e,t){return r(n[e],n[t])}),s=0,c=f?(b-p*M)/f:0;s<p;++s,y=u)l=m[s],u=y+((d=g[l])>0?d*c:0)+M,g[l]={data:n[l],index:s,value:d,startAngle:y,endAngle:u,padAngle:v};return g}return s.value=function(t){return arguments.length?(e="function"==typeof t?t:n(+t),s):e},s.sortValues=function(e){return arguments.length?(t=e,r=null,s):t},s.sort=function(e){return arguments.length?(r=e,t=null,s):r},s.startAngle=function(e){return arguments.length?(a="function"==typeof e?e:n(+e),s):a},s.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:n(+e),s):i},s.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:n(+e),s):o},s},e.pointRadial=L,e.radialArea=R,e.radialLine=D,e.stack=function(){var e=n([]),t=Be,r=Pe,a=Fe;function i(n){var i,o,s=e.apply(this,arguments),l=n.length,c=s.length,u=new Array(c);for(i=0;i<c;++i){for(var d,p=s[i],h=u[i]=new Array(l),f=0;f<l;++f)h[f]=d=[0,+a(n[f],p,f,n)],d.data=n[f];h.key=p}for(i=0,o=t(u);i<c;++i)u[o[i]].index=i;return r(u,o),u}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:n(I.call(t)),i):e},i.value=function(e){return arguments.length?(a="function"==typeof e?e:n(+e),i):a},i.order=function(e){return arguments.length?(t=null==e?Be:"function"==typeof e?e:n(I.call(e)),i):t},i.offset=function(e){return arguments.length?(r=e??Pe,i):r},i},e.stackOffsetDiverging=function(e,t){if((s=e.length)>0)for(var n,r,a,i,o,s,l=0,c=e[t[0]].length;l<c;++l)for(i=o=0,n=0;n<s;++n)(a=(r=e[t[n]][l])[1]-r[0])>0?(r[0]=i,r[1]=i+=a):a<0?(r[1]=o,r[0]=o+=a):(r[0]=0,r[1]=a)},e.stackOffsetExpand=function(e,t){if((r=e.length)>0){for(var n,r,a,i=0,o=e[0].length;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}Pe(e,t)}},e.stackOffsetNone=Pe,e.stackOffsetSilhouette=function(e,t){if((n=e.length)>0){for(var n,r=0,a=e[t[0]],i=a.length;r<i;++r){for(var o=0,s=0;o<n;++o)s+=e[o][r][1]||0;a[r][1]+=a[r][0]=-s/2}Pe(e,t)}},e.stackOffsetWiggle=function(e,t){if((a=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,a,i=0,o=1;o<r;++o){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[o][1]||0,p=(d-(u[o-1][1]||0))/2,h=0;h<s;++h){var f=e[t[h]];p+=(f[o][1]||0)-(f[o-1][1]||0)}l+=d,c+=p*d}n[o-1][1]+=n[o-1][0]=i,l&&(i-=c/l)}n[o-1][1]+=n[o-1][0]=i,Pe(e,t)}},e.stackOrderAppearance=je,e.stackOrderAscending=Ve,e.stackOrderDescending=function(e){return Ve(e).reverse()},e.stackOrderInsideOut=function(e){var t,n,r=e.length,a=e.map(He),i=je(e),o=0,s=0,l=[],c=[];for(t=0;t<r;++t)n=i[t],o<s?(o+=a[n],l.push(n)):(s+=a[n],c.push(n));return c.reverse().concat(l)},e.stackOrderNone=Be,e.stackOrderReverse=function(e){return Be(e).reverse()},e.symbol=function(){var e=n(U),r=n(64),a=null;function i(){var n;if(a||(a=n=t.path()),e.apply(this,arguments).draw(a,+r.apply(this,arguments)),n)return a=null,n+""||null}return i.type=function(t){return arguments.length?(e="function"==typeof t?t:n(t),i):e},i.size=function(e){return arguments.length?(r="function"==typeof e?e:n(+e),i):r},i.context=function(e){return arguments.length?(a=e??null,i):a},i},e.symbolCircle=U,e.symbolCross=V,e.symbolDiamond=G,e.symbolSquare=Q,e.symbolStar=J,e.symbolTriangle=ee,e.symbolWye=ie,e.symbols=oe,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?r(e,WMt()):"function"==typeof define&&define.amd?define(["exports","d3-path"],r):r((n=n||self).d3=n.d3||{},n.d3)}),UMt=Ee((e,t)=>{var n,r;n=e,r=function(e,t,n,r){function a(e){return e.target.depth}function i(e,t){return e.sourceLinks.length?e.depth:t-1}function o(e){return function(){return e}}function s(e,t){return c(e.source,t.source)||e.index-t.index}function l(e,t){return c(e.target,t.target)||e.index-t.index}function c(e,t){return e.y0-t.y0}function u(e){return e.value}function d(e){return(e.y0+e.y1)/2}function p(e){return d(e.source)*e.value}function h(e){return d(e.target)*e.value}function f(e){return e.index}function m(e){return e.nodes}function g(e){return e.links}function y(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function b(e){return[e.source.x1,e.y0]}function v(e){return[e.target.x0,e.y1]}e.sankey=function(){var e=0,r=0,a=1,b=1,v=24,M=8,x=f,z=i,_=m,A=g,O=32,w=2/3;function k(){var i={nodes:_.apply(null,arguments),links:A.apply(null,arguments)};return function(e){e.nodes.forEach(function(e,t){e.index=t,e.sourceLinks=[],e.targetLinks=[]});var t=n.map(e.nodes,x);e.links.forEach(function(e,n){e.index=n;var r=e.source,a=e.target;"object"!=typeof r&&(r=e.source=y(t,r)),"object"!=typeof a&&(a=e.target=y(t,a)),r.sourceLinks.push(e),a.targetLinks.push(e)})}(i),function(e){e.nodes.forEach(function(e){e.value=Math.max(t.sum(e.sourceLinks,u),t.sum(e.targetLinks,u))})}(i),function(t){var n,r,i;for(n=t.nodes,r=[],i=0;n.length;++i,n=r,r=[])n.forEach(function(e){e.depth=i,e.sourceLinks.forEach(function(e){r.indexOf(e.target)<0&&r.push(e.target)})});for(n=t.nodes,r=[],i=0;n.length;++i,n=r,r=[])n.forEach(function(e){e.height=i,e.targetLinks.forEach(function(e){r.indexOf(e.source)<0&&r.push(e.source)})});var o=(a-e-v)/(i-1);t.nodes.forEach(function(t){t.x1=(t.x0=e+Math.max(0,Math.min(i-1,Math.floor(z.call(null,t,i))))*o)+v})}(i),function(e){var a=n.nest().key(function(e){return e.x0}).sortKeys(t.ascending).entries(e.nodes).map(function(e){return e.values});s(),m();for(var i=1,o=O;o>0;--o)f(i*=.99),m(),l(i),m();function s(){var n=t.max(a,function(e){return e.length}),i=w*(b-r)/(n-1);M>i&&(M=i);var o=t.min(a,function(e){return(b-r-(e.length-1)*M)/t.sum(e,u)});a.forEach(function(e){e.forEach(function(e,t){e.y1=(e.y0=t)+e.value*o})}),e.links.forEach(function(e){e.width=e.value*o})}function l(e){a.forEach(function(n){n.forEach(function(n){if(n.targetLinks.length){var r=(t.sum(n.targetLinks,p)/t.sum(n.targetLinks,u)-d(n))*e;n.y0+=r,n.y1+=r}})})}function f(e){a.slice().reverse().forEach(function(n){n.forEach(function(n){if(n.sourceLinks.length){var r=(t.sum(n.sourceLinks,h)/t.sum(n.sourceLinks,u)-d(n))*e;n.y0+=r,n.y1+=r}})})}function m(){a.forEach(function(e){var t,n,a,i=r,o=e.length;for(e.sort(c),a=0;a<o;++a)(n=i-(t=e[a]).y0)>0&&(t.y0+=n,t.y1+=n),i=t.y1+M;if((n=i-M-b)>0)for(i=t.y0-=n,t.y1-=n,a=o-2;a>=0;--a)(n=(t=e[a]).y1+M-i)>0&&(t.y0-=n,t.y1-=n),i=t.y0})}}(i),T(i),i}function T(e){e.nodes.forEach(function(e){e.sourceLinks.sort(l),e.targetLinks.sort(s)}),e.nodes.forEach(function(e){var t=e.y0,n=t;e.sourceLinks.forEach(function(e){e.y0=t+e.width/2,t+=e.width}),e.targetLinks.forEach(function(e){e.y1=n+e.width/2,n+=e.width})})}return k.update=function(e){return T(e),e},k.nodeId=function(e){return arguments.length?(x="function"==typeof e?e:o(e),k):x},k.nodeAlign=function(e){return arguments.length?(z="function"==typeof e?e:o(e),k):z},k.nodeWidth=function(e){return arguments.length?(v=+e,k):v},k.nodePadding=function(e){return arguments.length?(M=+e,k):M},k.nodes=function(e){return arguments.length?(_="function"==typeof e?e:o(e),k):_},k.links=function(e){return arguments.length?(A="function"==typeof e?e:o(e),k):A},k.size=function(t){return arguments.length?(e=r=0,a=+t[0],b=+t[1],k):[a-e,b-r]},k.extent=function(t){return arguments.length?(e=+t[0][0],a=+t[1][0],r=+t[0][1],b=+t[1][1],k):[[e,r],[a,b]]},k.iterations=function(e){return arguments.length?(O=+e,k):O},k},e.sankeyCenter=function(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?t.min(e.sourceLinks,a)-1:0},e.sankeyLeft=function(e){return e.depth},e.sankeyRight=function(e,t){return t-1-e.height},e.sankeyJustify=i,e.sankeyLinkHorizontal=function(){return r.linkHorizontal().source(b).target(v)},Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?r(e,XL(),S$(),vve()):"function"==typeof define&&define.amd?define(["exports","d3-array","d3-collection","d3-shape"],r):r(n.d3=n.d3||{},n.d3,n.d3,n.d3)}),VMt=Ee((e,t)=>{var n=mve();t.exports=function(e,t){var r,a=[],i=[],o=[],s={},l=[];function c(e){o[e]=!1,s.hasOwnProperty(e)&&Object.keys(s[e]).forEach(function(t){delete s[e][t],o[t]&&c(t)})}function u(e){var t,n,a=!1;for(i.push(e),o[e]=!0,t=0;t<l[e].length;t++)(n=l[e][t])===r?(d(r,i),a=!0):o[n]||(a=u(n));if(a)c(e);else for(t=0;t<l[e].length;t++){n=l[e][t];var p=s[n];p||(p={},s[n]=p),p[n]=!0}return i.pop(),a}function d(e,n){var r=[].concat(n).concat(e);t?t(r):a.push(r)}function p(t){!function(t){for(var n=0;n<e.length;n++)(n<t||!e[n])&&(e[n]=[]),e[n]=e[n].filter(function(e){return e>=t})}(t);for(var r,a=n(e).components.filter(function(e){return e.length>1}),i=1/0,o=0;o<a.length;o++)for(var s=0;s<a[o].length;s++)a[o][s]<i&&(i=a[o][s],r=o);var l=a[r];return!!l&&{leastVertex:i,adjList:e.map(function(e,t){return-1===l.indexOf(t)?[]:e.filter(function(e){return-1!==l.indexOf(e)})})}}r=0;for(var h=e.length;r<h;){var f=p(r);if(r=f.leastVertex,l=f.adjList){for(var m=0;m<l.length;m++)for(var g=0;g<l[m].length;g++){var y=l[m][g];o[+y]=!1,s[y]={}}u(r),r+=1}else r=h}if(!t)return a}}),GMt=Ee((e,t)=>{var n,r;n=e,r=function(e,t,n,r,a){function i(e){return e.target.depth}function o(e,t){return e.sourceLinks.length?e.depth:t-1}function s(e){return function(){return e}}a=a&&a.hasOwnProperty("default")?a.default:a;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function c(e,t){return d(e.source,t.source)||e.index-t.index}function u(e,t){return d(e.target,t.target)||e.index-t.index}function d(e,t){return e.partOfCycle===t.partOfCycle?e.y0-t.y0:"top"===e.circularLinkType||"bottom"===t.circularLinkType?-1:1}function p(e){return e.value}function h(e){return(e.y0+e.y1)/2}function f(e){return h(e.source)}function m(e){return h(e.target)}function g(e){return e.index}function y(e){return e.nodes}function b(e){return e.links}function v(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function M(e,t){return t(e)}var x=25,z=10;function _(e,t){var n=0,r=0;e.links.forEach(function(a){a.circular&&(a.source.circularLinkType||a.target.circularLinkType?a.circularLinkType=a.source.circularLinkType?a.source.circularLinkType:a.target.circularLinkType:a.circularLinkType=n<r?"top":"bottom","top"==a.circularLinkType?n+=1:r+=1,e.nodes.forEach(function(e){(M(e,t)==M(a.source,t)||M(e,t)==M(a.target,t))&&(e.circularLinkType=a.circularLinkType)}))}),e.links.forEach(function(e){e.circular&&(e.source.circularLinkType==e.target.circularLinkType&&(e.circularLinkType=e.source.circularLinkType),X(e,t)&&(e.circularLinkType=e.source.circularLinkType))})}function A(e){var t=Math.abs(e.y1-e.y0),n=Math.abs(e.target.x0-e.source.x1);return Math.atan(n/t)}function O(e,t){return!(e.source.column<t.target.column||e.target.column>t.source.column)}function w(e,t){var n=0;e.sourceLinks.forEach(function(e){n=e.circular&&!X(e,t)?n+1:n});var r=0;return e.targetLinks.forEach(function(e){r=e.circular&&!X(e,t)?r+1:r}),n+r}function k(e){var t=e.source.sourceLinks,n=0;t.forEach(function(e){n=e.circular?n+1:n});var r=e.target.targetLinks,a=0;return r.forEach(function(e){a=e.circular?a+1:a}),!(n>1||a>1)}function T(e,t,n){return e.sort(C),e.forEach(function(r,a){var i=0;if(X(r,n)&&k(r))r.circularPathData.verticalBuffer=i+r.width/2;else{for(var o=0;o<a;o++)if(O(e[a],e[o])){var s=e[o].circularPathData.verticalBuffer+e[o].width/2+t;i=s>i?s:i}r.circularPathData.verticalBuffer=i+r.width/2}}),e}function S(e,n,a,i){var o=t.min(e.links,function(e){return e.source.y0});e.links.forEach(function(e){e.circular&&(e.circularPathData={})}),T(e.links.filter(function(e){return"top"==e.circularLinkType}),n,i),T(e.links.filter(function(e){return"bottom"==e.circularLinkType}),n,i),e.links.forEach(function(t){if(t.circular){if(t.circularPathData.arcRadius=t.width+z,t.circularPathData.leftNodeBuffer=5,t.circularPathData.rightNodeBuffer=5,t.circularPathData.sourceWidth=t.source.x1-t.source.x0,t.circularPathData.sourceX=t.source.x0+t.circularPathData.sourceWidth,t.circularPathData.targetX=t.target.x0,t.circularPathData.sourceY=t.y0,t.circularPathData.targetY=t.y1,X(t,i)&&k(t))t.circularPathData.leftSmallArcRadius=z+t.width/2,t.circularPathData.leftLargeArcRadius=z+t.width/2,t.circularPathData.rightSmallArcRadius=z+t.width/2,t.circularPathData.rightLargeArcRadius=z+t.width/2,"bottom"==t.circularLinkType?(t.circularPathData.verticalFullExtent=t.source.y1+x+t.circularPathData.verticalBuffer,t.circularPathData.verticalLeftInnerExtent=t.circularPathData.verticalFullExtent-t.circularPathData.leftLargeArcRadius,t.circularPathData.verticalRightInnerExtent=t.circularPathData.verticalFullExtent-t.circularPathData.rightLargeArcRadius):(t.circularPathData.verticalFullExtent=t.source.y0-x-t.circularPathData.verticalBuffer,t.circularPathData.verticalLeftInnerExtent=t.circularPathData.verticalFullExtent+t.circularPathData.leftLargeArcRadius,t.circularPathData.verticalRightInnerExtent=t.circularPathData.verticalFullExtent+t.circularPathData.rightLargeArcRadius);else{var s=t.source.column,l=t.circularLinkType,c=e.links.filter(function(e){return e.source.column==s&&e.circularLinkType==l});"bottom"==t.circularLinkType?c.sort(q):c.sort(E);var u=0;c.forEach(function(e,r){e.circularLinkID==t.circularLinkID&&(t.circularPathData.leftSmallArcRadius=z+t.width/2+u,t.circularPathData.leftLargeArcRadius=z+t.width/2+r*n+u),u+=e.width}),s=t.target.column,c=e.links.filter(function(e){return e.target.column==s&&e.circularLinkType==l}),"bottom"==t.circularLinkType?c.sort(R):c.sort(D),u=0,c.forEach(function(e,r){e.circularLinkID==t.circularLinkID&&(t.circularPathData.rightSmallArcRadius=z+t.width/2+u,t.circularPathData.rightLargeArcRadius=z+t.width/2+r*n+u),u+=e.width}),"bottom"==t.circularLinkType?(t.circularPathData.verticalFullExtent=Math.max(a,t.source.y1,t.target.y1)+x+t.circularPathData.verticalBuffer,t.circularPathData.verticalLeftInnerExtent=t.circularPathData.verticalFullExtent-t.circularPathData.leftLargeArcRadius,t.circularPathData.verticalRightInnerExtent=t.circularPathData.verticalFullExtent-t.circularPathData.rightLargeArcRadius):(t.circularPathData.verticalFullExtent=o-x-t.circularPathData.verticalBuffer,t.circularPathData.verticalLeftInnerExtent=t.circularPathData.verticalFullExtent+t.circularPathData.leftLargeArcRadius,t.circularPathData.verticalRightInnerExtent=t.circularPathData.verticalFullExtent+t.circularPathData.rightLargeArcRadius)}t.circularPathData.leftInnerExtent=t.circularPathData.sourceX+t.circularPathData.leftNodeBuffer,t.circularPathData.rightInnerExtent=t.circularPathData.targetX-t.circularPathData.rightNodeBuffer,t.circularPathData.leftFullExtent=t.circularPathData.sourceX+t.circularPathData.leftLargeArcRadius+t.circularPathData.leftNodeBuffer,t.circularPathData.rightFullExtent=t.circularPathData.targetX-t.circularPathData.rightLargeArcRadius-t.circularPathData.rightNodeBuffer}if(t.circular)t.path=function(e){return"top"==e.circularLinkType?"M"+e.circularPathData.sourceX+" "+e.circularPathData.sourceY+" L"+e.circularPathData.leftInnerExtent+" "+e.circularPathData.sourceY+" A"+e.circularPathData.leftLargeArcRadius+" "+e.circularPathData.leftSmallArcRadius+" 0 0 0 "+e.circularPathData.leftFullExtent+" "+(e.circularPathData.sourceY-e.circularPathData.leftSmallArcRadius)+" L"+e.circularPathData.leftFullExtent+" "+e.circularPathData.verticalLeftInnerExtent+" A"+e.circularPathData.leftLargeArcRadius+" "+e.circularPathData.leftLargeArcRadius+" 0 0 0 "+e.circularPathData.leftInnerExtent+" "+e.circularPathData.verticalFullExtent+" L"+e.circularPathData.rightInnerExtent+" "+e.circularPathData.verticalFullExtent+" A"+e.circularPathData.rightLargeArcRadius+" "+e.circularPathData.rightLargeArcRadius+" 0 0 0 "+e.circularPathData.rightFullExtent+" "+e.circularPathData.verticalRightInnerExtent+" L"+e.circularPathData.rightFullExtent+" "+(e.circularPathData.targetY-e.circularPathData.rightSmallArcRadius)+" A"+e.circularPathData.rightLargeArcRadius+" "+e.circularPathData.rightSmallArcRadius+" 0 0 0 "+e.circularPathData.rightInnerExtent+" "+e.circularPathData.targetY+" L"+e.circularPathData.targetX+" "+e.circularPathData.targetY:"M"+e.circularPathData.sourceX+" "+e.circularPathData.sourceY+" L"+e.circularPathData.leftInnerExtent+" "+e.circularPathData.sourceY+" A"+e.circularPathData.leftLargeArcRadius+" "+e.circularPathData.leftSmallArcRadius+" 0 0 1 "+e.circularPathData.leftFullExtent+" "+(e.circularPathData.sourceY+e.circularPathData.leftSmallArcRadius)+" L"+e.circularPathData.leftFullExtent+" "+e.circularPathData.verticalLeftInnerExtent+" A"+e.circularPathData.leftLargeArcRadius+" "+e.circularPathData.leftLargeArcRadius+" 0 0 1 "+e.circularPathData.leftInnerExtent+" "+e.circularPathData.verticalFullExtent+" L"+e.circularPathData.rightInnerExtent+" "+e.circularPathData.verticalFullExtent+" A"+e.circularPathData.rightLargeArcRadius+" "+e.circularPathData.rightLargeArcRadius+" 0 0 1 "+e.circularPathData.rightFullExtent+" "+e.circularPathData.verticalRightInnerExtent+" L"+e.circularPathData.rightFullExtent+" "+(e.circularPathData.targetY+e.circularPathData.rightSmallArcRadius)+" A"+e.circularPathData.rightLargeArcRadius+" "+e.circularPathData.rightSmallArcRadius+" 0 0 1 "+e.circularPathData.rightInnerExtent+" "+e.circularPathData.targetY+" L"+e.circularPathData.targetX+" "+e.circularPathData.targetY}(t);else{var d=r.linkHorizontal().source(function(e){return[e.source.x0+(e.source.x1-e.source.x0),e.y0]}).target(function(e){return[e.target.x0,e.y1]});t.path=d(t)}})}function C(e,t){return L(e)==L(t)?"bottom"==e.circularLinkType?q(e,t):E(e,t):L(t)-L(e)}function E(e,t){return e.y0-t.y0}function q(e,t){return t.y0-e.y0}function D(e,t){return e.y1-t.y1}function R(e,t){return t.y1-e.y1}function L(e){return e.target.column-e.source.column}function I(e){return e.target.x0-e.source.x1}function W(e,t){var n=A(e),r=I(t)/Math.tan(n);return"up"==H(e)?e.y1+r:e.y1-r}function N(e,t){var n=A(e),r=I(t)/Math.tan(n);return"up"==H(e)?e.y1-r:e.y1+r}function P(e,t,n,r){e.links.forEach(function(a){if(!a.circular&&a.target.column-a.source.column>1){var i=a.source.column+1,o=a.target.column-1,s=1,l=o-i+1;for(s=1;i<=o;i++,s++)e.nodes.forEach(function(o){if(o.column==i){var c,u=s/(l+1),d=Math.pow(1-u,3),p=3*u*Math.pow(1-u,2),h=3*Math.pow(u,2)*(1-u),f=Math.pow(u,3),m=d*a.y0+p*a.y0+h*a.y1+f*a.y1,g=m-a.width/2,y=m+a.width/2;g>o.y0&&g<o.y1?(c=o.y1-g+10,c="bottom"==o.circularLinkType?c:-c,o=F(o,c,t,n),e.nodes.forEach(function(e){M(e,r)==M(o,r)||e.column!=o.column||B(o,e)&&F(e,c,t,n)})):(y>o.y0&&y<o.y1||g<o.y0&&y>o.y1)&&(c=y-o.y0+10,o=F(o,c,t,n),e.nodes.forEach(function(e){M(e,r)==M(o,r)||e.column!=o.column||e.y0<o.y1&&e.y1>o.y1&&F(e,c,t,n)}))}})}})}function B(e,t){return e.y0>t.y0&&e.y0<t.y1||e.y1>t.y0&&e.y1<t.y1||e.y0<t.y0&&e.y1>t.y1}function F(e,t,n,r){return e.y0+t>=n&&e.y1+t<=r&&(e.y0=e.y0+t,e.y1=e.y1+t,e.targetLinks.forEach(function(e){e.y1=e.y1+t}),e.sourceLinks.forEach(function(e){e.y0=e.y0+t})),e}function j(e,t,n,r){e.nodes.forEach(function(a){r&&a.y+(a.y1-a.y0)>t&&(a.y=a.y-(a.y+(a.y1-a.y0)-t));var i=e.links.filter(function(e){return M(e.source,n)==M(a,n)}),o=i.length;o>1&&i.sort(function(e,t){if(!e.circular&&!t.circular){if(e.target.column==t.target.column)return e.y1-t.y1;if(!V(e,t))return e.y1-t.y1;if(e.target.column>t.target.column){var n=N(t,e);return e.y1-n}if(t.target.column>e.target.column)return N(e,t)-t.y1}return e.circular&&!t.circular?"top"==e.circularLinkType?-1:1:t.circular&&!e.circular?"top"==t.circularLinkType?1:-1:e.circular&&t.circular?e.circularLinkType===t.circularLinkType&&"top"==e.circularLinkType?e.target.column===t.target.column?e.target.y1-t.target.y1:t.target.column-e.target.column:e.circularLinkType===t.circularLinkType&&"bottom"==e.circularLinkType?e.target.column===t.target.column?t.target.y1-e.target.y1:e.target.column-t.target.column:"top"==e.circularLinkType?-1:1:void 0});var s=a.y0;i.forEach(function(e){e.y0=s+e.width/2,s+=e.width}),i.forEach(function(e,t){if("bottom"==e.circularLinkType){for(var n=t+1,r=0;n<o;n++)r+=i[n].width;e.y0=a.y1-r-e.width/2}})})}function U(e,t,n){e.nodes.forEach(function(t){var r=e.links.filter(function(e){return M(e.target,n)==M(t,n)}),a=r.length;a>1&&r.sort(function(e,t){if(!e.circular&&!t.circular){if(e.source.column==t.source.column)return e.y0-t.y0;if(!V(e,t))return e.y0-t.y0;if(t.source.column<e.source.column){var n=W(t,e);return e.y0-n}if(e.source.column<t.source.column)return W(e,t)-t.y0}return e.circular&&!t.circular?"top"==e.circularLinkType?-1:1:t.circular&&!e.circular?"top"==t.circularLinkType?1:-1:e.circular&&t.circular?e.circularLinkType===t.circularLinkType&&"top"==e.circularLinkType?e.source.column===t.source.column?e.source.y1-t.source.y1:e.source.column-t.source.column:e.circularLinkType===t.circularLinkType&&"bottom"==e.circularLinkType?e.source.column===t.source.column?e.source.y1-t.source.y1:t.source.column-e.source.column:"top"==e.circularLinkType?-1:1:void 0});var i=t.y0;r.forEach(function(e){e.y1=i+e.width/2,i+=e.width}),r.forEach(function(e,n){if("bottom"==e.circularLinkType){for(var i=n+1,o=0;i<a;i++)o+=r[i].width;e.y1=t.y1-o-e.width/2}})})}function V(e,t){return H(e)==H(t)}function H(e){return e.y0-e.y1>0?"up":"down"}function X(e,t){return M(e.source,t)==M(e.target,t)}e.sankeyCircular=function(){var e,r,i=0,M=0,A=1,O=1,k=24,T=g,C=o,E=y,q=b,D=32,R=2,L=null;function I(){var o={nodes:E.apply(null,arguments),links:q.apply(null,arguments)};(function(e){e.nodes.forEach(function(e,t){e.index=t,e.sourceLinks=[],e.targetLinks=[]});var t=n.map(e.nodes,T);e.links.forEach(function(e,n){e.index=n;var r=e.source,a=e.target;"object"!==(typeof r>"u"?"undefined":l(r))&&(r=e.source=v(t,r)),"object"!==(typeof a>"u"?"undefined":l(a))&&(a=e.target=v(t,a)),r.sourceLinks.push(e),a.targetLinks.push(e)})})(o),function(e,t,n){var r=0;if(null===n){for(var i=[],o=0;o<e.links.length;o++){var s=e.links[o],l=s.source.index,c=s.target.index;i[l]||(i[l]=[]),i[c]||(i[c]=[]),-1===i[l].indexOf(c)&&i[l].push(c)}var u=a(i);u.sort(function(e,t){return e.length-t.length});var d={};for(o=0;o<u.length;o++){var p=u[o].slice(-2);d[p[0]]||(d[p[0]]={}),d[p[0]][p[1]]=!0}e.links.forEach(function(e){var t=e.target.index,n=e.source.index;t===n||d[n]&&d[n][t]?(e.circular=!0,e.circularLinkID=r,r+=1):e.circular=!1})}else e.links.forEach(function(e){e.source[n]<e.target[n]?e.circular=!1:(e.circular=!0,e.circularLinkID=r,r+=1)})}(o,0,L),function(e){e.nodes.forEach(function(e){e.partOfCycle=!1,e.value=Math.max(t.sum(e.sourceLinks,p),t.sum(e.targetLinks,p)),e.sourceLinks.forEach(function(t){t.circular&&(e.partOfCycle=!0,e.circularLinkType=t.circularLinkType)}),e.targetLinks.forEach(function(t){t.circular&&(e.partOfCycle=!0,e.circularLinkType=t.circularLinkType)})})}(o),function(e){var t,n,r;for(t=e.nodes,n=[],r=0;t.length;++r,t=n,n=[])t.forEach(function(e){e.depth=r,e.sourceLinks.forEach(function(e){n.indexOf(e.target)<0&&!e.circular&&n.push(e.target)})});for(t=e.nodes,n=[],r=0;t.length;++r,t=n,n=[])t.forEach(function(e){e.height=r,e.targetLinks.forEach(function(e){n.indexOf(e.source)<0&&!e.circular&&n.push(e.source)})});e.nodes.forEach(function(e){e.column=Math.floor(C.call(null,e,r))})}(o),_(o,T),function(a,o,s){var l=n.nest().key(function(e){return e.column}).sortKeys(t.ascending).entries(a.nodes).map(function(e){return e.values});g(s),b();for(var c=1,u=o;u>0;--u)y(c*=.99,s),b();function g(n){if(r){var o=1/0;l.forEach(function(e){var t=O*r/(e.length+1);o=t<o?t:o}),e=o}var s=t.min(l,function(n){return(O-M-(n.length-1)*e)/t.sum(n,p)});s*=.3,a.links.forEach(function(e){e.width=e.value*s});var c=function(e){var n=0,r=0,a=0,i=0,o=t.max(e.nodes,function(e){return e.column});return e.links.forEach(function(e){e.circular&&("top"==e.circularLinkType?n+=e.width:r+=e.width,0==e.target.column&&(i+=e.width),e.source.column==o&&(a+=e.width))}),{top:n=n>0?n+x+z:n,bottom:r=r>0?r+x+z:r,left:i=i>0?i+x+z:i,right:a=a>0?a+x+z:a}}(a),u=function(e,n){var r=t.max(e.nodes,function(e){return e.column}),a=A-i,o=O-M,s=a+n.right+n.left,l=o+n.top+n.bottom,c=a/s,u=o/l;return i=i*c+n.left,A=0==n.right?A:A*c,M=M*u+n.top,O*=u,e.nodes.forEach(function(e){e.x0=i+e.column*((A-i-k)/r),e.x1=e.x0+k}),u}(a,c);s*=u,a.links.forEach(function(e){e.width=e.value*s}),l.forEach(function(e){var t=e.length;e.forEach(function(e,r){e.depth==l.length-1&&1==t||0==e.depth&&1==t?(e.y0=O/2-e.value*s,e.y1=e.y0+e.value*s):e.partOfCycle?0==w(e,n)?(e.y0=O/2+r,e.y1=e.y0+e.value*s):"top"==e.circularLinkType?(e.y0=M+r,e.y1=e.y0+e.value*s):(e.y0=O-e.value*s-r,e.y1=e.y0+e.value*s):0==c.top||0==c.bottom?(e.y0=(O-M)/t*r,e.y1=e.y0+e.value*s):(e.y0=(O-M)/2-t/2+r,e.y1=e.y0+e.value*s)})})}function y(e,n){var r=l.length;l.forEach(function(a){var i=a.length,o=a[0].depth;a.forEach(function(a){var s;if((a.sourceLinks.length||a.targetLinks.length)&&!(a.partOfCycle&&w(a,n)>0))if(0==o&&1==i)s=a.y1-a.y0,a.y0=O/2-s/2,a.y1=O/2+s/2;else if(o==r-1&&1==i)s=a.y1-a.y0,a.y0=O/2-s/2,a.y1=O/2+s/2;else{var l=t.mean(a.sourceLinks,m),c=t.mean(a.targetLinks,f),u=((l&&c?(l+c)/2:l||c)-h(a))*e;a.y0+=u,a.y1+=u}})})}function b(){l.forEach(function(t){var n,r,a,i=M,o=t.length;for(t.sort(d),a=0;a<o;++a)(r=i-(n=t[a]).y0)>0&&(n.y0+=r,n.y1+=r),i=n.y1+e;if((r=i-e-O)>0)for(i=n.y0-=r,n.y1-=r,a=o-2;a>=0;--a)(r=(n=t[a]).y1+e-i)>0&&(n.y0-=r,n.y1-=r),i=n.y0})}}(o,D,T),W(o);for(var s=0;s<4;s++)j(o,O,T),U(o,0,T),P(o,M,O,T),j(o,O,T),U(o,0,T);return function(e,n,r){var a=e.nodes,i=e.links,o=!1,s=!1;if(i.forEach(function(e){"top"==e.circularLinkType?o=!0:"bottom"==e.circularLinkType&&(s=!0)}),0==o||0==s){var l=t.min(a,function(e){return e.y0}),c=t.max(a,function(e){return e.y1}),u=(r-n)/(c-l);a.forEach(function(e){var t=(e.y1-e.y0)*u;e.y0=(e.y0-l)*u,e.y1=e.y0+t}),i.forEach(function(e){e.y0=(e.y0-l)*u,e.y1=(e.y1-l)*u,e.width=e.width*u})}}(o,M,O),S(o,R,O,T),o}function W(e){e.nodes.forEach(function(e){e.sourceLinks.sort(u),e.targetLinks.sort(c)}),e.nodes.forEach(function(e){var t=e.y0,n=t,r=e.y1,a=r;e.sourceLinks.forEach(function(e){e.circular?(e.y0=r-e.width/2,r-=e.width):(e.y0=t+e.width/2,t+=e.width)}),e.targetLinks.forEach(function(e){e.circular?(e.y1=a-e.width/2,a-=e.width):(e.y1=n+e.width/2,n+=e.width)})})}return I.nodeId=function(e){return arguments.length?(T="function"==typeof e?e:s(e),I):T},I.nodeAlign=function(e){return arguments.length?(C="function"==typeof e?e:s(e),I):C},I.nodeWidth=function(e){return arguments.length?(k=+e,I):k},I.nodePadding=function(t){return arguments.length?(e=+t,I):e},I.nodes=function(e){return arguments.length?(E="function"==typeof e?e:s(e),I):E},I.links=function(e){return arguments.length?(q="function"==typeof e?e:s(e),I):q},I.size=function(e){return arguments.length?(i=M=0,A=+e[0],O=+e[1],I):[A-i,O-M]},I.extent=function(e){return arguments.length?(i=+e[0][0],A=+e[1][0],M=+e[0][1],O=+e[1][1],I):[[i,M],[A,O]]},I.iterations=function(e){return arguments.length?(D=+e,I):D},I.circularLinkGap=function(e){return arguments.length?(R=+e,I):R},I.nodePaddingRatio=function(e){return arguments.length?(r=+e,I):r},I.sortNodes=function(e){return arguments.length?(L=e,I):L},I.update=function(e){return _(e,T),W(e),e.links.forEach(function(e){e.circular&&(e.circularLinkType=e.y0+e.y1<O?"top":"bottom",e.source.circularLinkType=e.circularLinkType,e.target.circularLinkType=e.circularLinkType)}),j(e,O,T,!1),U(e,0,T),S(e,R,O,T),e},I},e.sankeyCenter=function(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?t.min(e.sourceLinks,i)-1:0},e.sankeyLeft=function(e){return e.depth},e.sankeyRight=function(e,t){return t-1-e.height},e.sankeyJustify=o,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?r(e,XL(),S$(),vve(),VMt()):"function"==typeof define&&define.amd?define(["exports","d3-array","d3-collection","d3-shape","elementary-circuits-directed-graph"],r):r(n.d3=n.d3||{},n.d3,n.d3,n.d3,null)}),gve=Ee((e,t)=>{t.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}}),oxt=Ee((e,t)=>{var n=IMt(),r=(hO(),E_(fO)).interpolateNumber,a=mo(),i=UMt(),o=GMt(),s=gve(),l=Vh(),c=ao(),u=vs(),d=Fr(),p=d.strTranslate,h=d.strRotate,f=K3(),m=f.keyFun,g=f.repeat,y=f.unwrap,b=q1(),v=vo(),M=lh(),x=M.CAP_SHIFT,z=M.LINE_SPACING;function _(e,t,n){var r,a=y(t),c=a.trace,u=c.domain,p="h"===c.orientation,h=c.node.pad,f=c.node.thickness,m={justify:i.sankeyJustify,left:i.sankeyLeft,right:i.sankeyRight,center:i.sankeyCenter}[c.node.align],g=e.width*(u.x[1]-u.x[0]),b=e.height*(u.y[1]-u.y[0]),v=a._nodes,M=a._links,x=a.circular;(r=x?o.sankeyCircular().circularLinkGap(0):i.sankey()).iterations(s.sankeyIterations).size(p?[g,b]:[b,g]).nodeWidth(f).nodePadding(h).nodeId(function(e){return e.pointNumber}).nodeAlign(m).nodes(v).links(M);var z,_,A,O=r();for(var w in r.nodePadding()<h&&d.warn("node.pad was reduced to ",r.nodePadding()," to fit within the figure."),a._groupLookup){var k,T=parseInt(a._groupLookup[w]);for(z=0;z<O.nodes.length;z++)if(O.nodes[z].pointNumber===T){k=O.nodes[z];break}if(k){var S={pointNumber:parseInt(w),x0:k.x0,x1:k.x1,y0:k.y0,y1:k.y1,partOfGroup:!0,sourceLinks:[],targetLinks:[]};O.nodes.unshift(S),k.childrenNodes.unshift(S)}}if(function(){for(z=0;z<O.nodes.length;z++){var e,t,n=O.nodes[z],r={};for(_=0;_<n.targetLinks.length;_++)e=(t=n.targetLinks[_]).source.pointNumber+":"+t.target.pointNumber,r.hasOwnProperty(e)||(r[e]=[]),r[e].push(t);var a=Object.keys(r);for(_=0;_<a.length;_++){var i=r[e=a[_]],o=0,s={};for(A=0;A<i.length;A++)s[(t=i[A]).label]||(s[t.label]=0),s[t.label]+=t.value,o+=t.value;for(A=0;A<i.length;A++)(t=i[A]).flow={value:o,labelConcentration:s[t.label]/o,concentration:t.value/o,links:i},t.concentrationscale&&(t.color=l(t.concentrationscale(t.flow.labelConcentration)))}var c=0;for(_=0;_<n.sourceLinks.length;_++)c+=n.sourceLinks[_].value;for(_=0;_<n.sourceLinks.length;_++)(t=n.sourceLinks[_]).concentrationOut=t.value/c;var u=0;for(_=0;_<n.targetLinks.length;_++)u+=n.targetLinks[_].value;for(_=0;_<n.targetLinks.length;_++)(t=n.targetLinks[_]).concenrationIn=t.value/u}}(),c.node.x.length&&c.node.y.length){for(z=0;z<Math.min(c.node.x.length,c.node.y.length,O.nodes.length);z++)if(c.node.x[z]&&c.node.y[z]){var C=[c.node.x[z]*g,c.node.y[z]*b];O.nodes[z].x0=C[0]-f/2,O.nodes[z].x1=C[0]+f/2;var E=O.nodes[z].y1-O.nodes[z].y0;O.nodes[z].y0=C[1]-E/2,O.nodes[z].y1=C[1]+E/2}if("snap"===c.arrangement){var q=function(e){var t,n,r=e.map(function(e,t){return{x0:e.x0,index:t}}).sort(function(e,t){return e.x0-t.x0}),a=[],i=-1,o=-1/0;for(z=0;z<r.length;z++){var s=e[r[z].index];s.x0>o+f&&(i+=1,t=s.x0),o=s.x0,a[i]||(a[i]=[]),a[i].push(s),n=t-s.x0,s.x0+=n,s.x1+=n}return a}(v=O.nodes);q.forEach(function(e){var t,n,r,a=0,i=e.length;for(e.sort(function(e,t){return e.y0-t.y0}),r=0;r<i;++r)(t=e[r]).y0>=a||(n=a-t.y0)>1e-6&&(t.y0+=n,t.y1+=n),a=t.y1+h})}r.update(O)}return{circular:x,key:n,trace:c,guid:d.randstr(),horizontal:p,width:g,height:b,nodePad:c.node.pad,nodeLineColor:c.node.line.color,nodeLineWidth:c.node.line.width,linkLineColor:c.link.line.color,linkLineWidth:c.link.line.width,linkArrowLength:c.link.arrowlen,valueFormat:c.valueformat,valueSuffix:c.valuesuffix,textFont:c.textfont,translateX:u.x[0]*e.width+e.margin.l,translateY:e.height-u.y[1]*e.height+e.margin.t,dragParallel:p?b:g,dragPerpendicular:p?g:b,arrangement:c.arrangement,sankey:r,graph:O,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}function A(e,t,n){var r=l(t.color),a=l(t.hovercolor),i=t.source.label+"|"+t.target.label+"__"+n;return t.trace=e.trace,t.curveNumber=e.trace.index,{circular:e.circular,key:i,traceId:e.key,pointNumber:t.pointNumber,link:t,tinyColorHue:c.tinyRGB(r),tinyColorAlpha:r.getAlpha(),tinyColorHoverHue:c.tinyRGB(a),tinyColorHoverAlpha:a.getAlpha(),linkPath:O,linkLineColor:e.linkLineColor,linkLineWidth:e.linkLineWidth,linkArrowLength:e.linkArrowLength,valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,parent:e,interactionState:e.interactionState,flow:t.flow}}function O(){return function(e){var t=e.linkArrowLength;if(e.link.circular)return function(e,t){var n="",r=e.width/2,a=e.circularPathData,i=a.sourceX+a.verticalBuffer<a.targetX,o=a.rightFullExtent-a.rightLargeArcRadius-t<=a.leftFullExtent-r;return Math.abs(a.rightFullExtent-a.leftFullExtent-r),"top"===e.circularLinkType?(n="M "+(a.targetX-t)+" "+(a.targetY+r)+" L "+(a.rightInnerExtent-t)+" "+(a.targetY+r)+"A "+(a.rightLargeArcRadius+r)+" "+(a.rightSmallArcRadius+r)+" 0 0 1 "+(a.rightFullExtent-r-t)+" "+(a.targetY-a.rightSmallArcRadius)+"L "+(a.rightFullExtent-r-t)+" "+a.verticalRightInnerExtent,n+=i&&o?" A "+(a.rightLargeArcRadius+r)+" "+(a.rightLargeArcRadius+r)+" 0 0 1 "+(a.rightFullExtent+r-t-(a.rightLargeArcRadius-r))+" "+(a.verticalRightInnerExtent-(a.rightLargeArcRadius+r))+" L "+(a.rightFullExtent+r-(a.rightLargeArcRadius-r)-t)+" "+(a.verticalRightInnerExtent-(a.rightLargeArcRadius+r))+" A "+(a.leftLargeArcRadius+r)+" "+(a.leftLargeArcRadius+r)+" 0 0 1 "+(a.leftFullExtent+r)+" "+a.verticalRightInnerExtent:i?" A "+(a.rightLargeArcRadius-r)+" "+(a.rightLargeArcRadius-r)+" 0 0 0 "+(a.rightFullExtent-r-t-(a.rightLargeArcRadius-r))+" "+(a.verticalRightInnerExtent-(a.rightLargeArcRadius-r))+" L "+(a.leftFullExtent+r+(a.rightLargeArcRadius-r))+" "+(a.verticalRightInnerExtent-(a.rightLargeArcRadius-r))+" A "+(a.leftLargeArcRadius-r)+" "+(a.leftLargeArcRadius-r)+" 0 0 0 "+(a.leftFullExtent+r)+" "+a.verticalLeftInnerExtent:" A "+(a.rightLargeArcRadius+r)+" "+(a.rightLargeArcRadius+r)+" 0 0 1 "+(a.rightInnerExtent-t)+" "+(a.verticalFullExtent-r)+" L "+a.leftInnerExtent+" "+(a.verticalFullExtent-r)+" A "+(a.leftLargeArcRadius+r)+" "+(a.leftLargeArcRadius+r)+" 0 0 1 "+(a.leftFullExtent+r)+" "+a.verticalLeftInnerExtent,n+=" L "+(a.leftFullExtent+r)+" "+(a.sourceY-a.leftSmallArcRadius)+" A "+(a.leftLargeArcRadius+r)+" "+(a.leftSmallArcRadius+r)+" 0 0 1 "+a.leftInnerExtent+" "+(a.sourceY+r)+" L "+a.sourceX+" "+(a.sourceY+r)+" L "+a.sourceX+" "+(a.sourceY-r)+" L "+a.leftInnerExtent+" "+(a.sourceY-r)+" A "+(a.leftLargeArcRadius-r)+" "+(a.leftSmallArcRadius-r)+" 0 0 0 "+(a.leftFullExtent-r)+" "+(a.sourceY-a.leftSmallArcRadius)+" L "+(a.leftFullExtent-r)+" "+a.verticalLeftInnerExtent,n+=i&&o?" A "+(a.leftLargeArcRadius+r)+" "+(a.leftSmallArcRadius+r)+" 0 0 0 "+(a.leftFullExtent-r)+" "+(a.verticalFullExtent+r)+"L"+(a.rightFullExtent+r-t)+" "+(a.verticalFullExtent+r)+" A "+(a.leftLargeArcRadius+r)+" "+(a.leftSmallArcRadius+r)+" 0 0 0 "+(a.rightFullExtent+r-t)+" "+a.verticalRightInnerExtent:i?" A "+(a.leftLargeArcRadius+r)+" "+(a.leftSmallArcRadius+r)+" 0 0 1 "+(a.leftFullExtent+r)+" "+(a.verticalFullExtent-r)+" L "+(a.rightFullExtent-r-t)+" "+(a.verticalFullExtent-r)+" A "+(a.leftLargeArcRadius+r)+" "+(a.leftSmallArcRadius+r)+" 0 0 1 "+(a.rightFullExtent+r-t)+" "+a.verticalRightInnerExtent:" A "+(a.leftLargeArcRadius-r)+" "+(a.leftLargeArcRadius-r)+" 0 0 0 "+a.leftInnerExtent+" "+(a.verticalFullExtent+r)+" L "+(a.rightInnerExtent-t)+" "+(a.verticalFullExtent+r)+" A "+(a.rightLargeArcRadius-r)+" "+(a.rightLargeArcRadius-r)+" 0 0 0 "+(a.rightFullExtent+r-t)+" "+a.verticalRightInnerExtent,n+=" L "+(a.rightFullExtent+r-t)+" "+(a.targetY-a.rightSmallArcRadius)+" A "+(a.rightLargeArcRadius-r)+" "+(a.rightSmallArcRadius-r)+" 0 0 0 "+(a.rightInnerExtent-t)+" "+(a.targetY-r)+" L "+(a.targetX-t)+" "+(a.targetY-r)+(t>0?" L "+a.targetX+" "+a.targetY:"")+"Z"):(n="M "+(a.targetX-t)+" "+(a.targetY-r)+" L "+(a.rightInnerExtent-t)+" "+(a.targetY-r)+" A "+(a.rightLargeArcRadius+r)+" "+(a.rightSmallArcRadius+r)+" 0 0 0 "+(a.rightFullExtent-r-t)+" "+(a.targetY+a.rightSmallArcRadius)+" L "+(a.rightFullExtent-r-t)+" "+a.verticalRightInnerExtent,n+=i&&o?" A "+(a.rightLargeArcRadius+r)+" "+(a.rightLargeArcRadius+r)+" 0 0 0 "+(a.rightInnerExtent-r-t)+" "+(a.verticalFullExtent+r)+" L "+(a.rightFullExtent+r-t-(a.rightLargeArcRadius-r))+" "+(a.verticalFullExtent+r)+" A "+(a.rightLargeArcRadius+r)+" "+(a.rightLargeArcRadius+r)+" 0 0 0 "+(a.leftFullExtent+r)+" "+a.verticalLeftInnerExtent:i?" A "+(a.rightLargeArcRadius-r)+" "+(a.rightSmallArcRadius-r)+" 0 0 1 "+(a.rightFullExtent-t-r-(a.rightLargeArcRadius-r))+" "+(a.verticalFullExtent-r)+" L "+(a.leftFullExtent+r+(a.rightLargeArcRadius-r))+" "+(a.verticalFullExtent-r)+" A "+(a.rightLargeArcRadius-r)+" "+(a.rightSmallArcRadius-r)+" 0 0 1 "+(a.leftFullExtent+r)+" "+a.verticalLeftInnerExtent:" A "+(a.rightLargeArcRadius+r)+" "+(a.rightLargeArcRadius+r)+" 0 0 0 "+(a.rightInnerExtent-t)+" "+(a.verticalFullExtent+r)+" L "+a.leftInnerExtent+" "+(a.verticalFullExtent+r)+" A "+(a.leftLargeArcRadius+r)+" "+(a.leftLargeArcRadius+r)+" 0 0 0 "+(a.leftFullExtent+r)+" "+a.verticalLeftInnerExtent,n+=" L "+(a.leftFullExtent+r)+" "+(a.sourceY+a.leftSmallArcRadius)+" A "+(a.leftLargeArcRadius+r)+" "+(a.leftSmallArcRadius+r)+" 0 0 0 "+a.leftInnerExtent+" "+(a.sourceY-r)+" L "+a.sourceX+" "+(a.sourceY-r)+" L "+a.sourceX+" "+(a.sourceY+r)+" L "+a.leftInnerExtent+" "+(a.sourceY+r)+" A "+(a.leftLargeArcRadius-r)+" "+(a.leftSmallArcRadius-r)+" 0 0 1 "+(a.leftFullExtent-r)+" "+(a.sourceY+a.leftSmallArcRadius)+" L "+(a.leftFullExtent-r)+" "+a.verticalLeftInnerExtent,n+=i&&o?" A "+(a.rightLargeArcRadius-r)+" "+(a.rightSmallArcRadius-r)+" 0 0 1 "+(a.leftFullExtent-r-(a.rightLargeArcRadius-r))+" "+(a.verticalFullExtent-r)+" L "+(a.rightFullExtent+r-t+(a.rightLargeArcRadius-r))+" "+(a.verticalFullExtent-r)+" A "+(a.rightLargeArcRadius-r)+" "+(a.rightSmallArcRadius-r)+" 0 0 1 "+(a.rightFullExtent+r-t)+" "+a.verticalRightInnerExtent:i?" A "+(a.rightLargeArcRadius+r)+" "+(a.rightLargeArcRadius+r)+" 0 0 0 "+(a.leftFullExtent+r)+" "+(a.verticalFullExtent+r)+" L "+(a.rightFullExtent-t-r)+" "+(a.verticalFullExtent+r)+" A "+(a.rightLargeArcRadius+r)+" "+(a.rightLargeArcRadius+r)+" 0 0 0 "+(a.rightFullExtent+r-t)+" "+a.verticalRightInnerExtent:" A "+(a.leftLargeArcRadius-r)+" "+(a.leftLargeArcRadius-r)+" 0 0 1 "+a.leftInnerExtent+" "+(a.verticalFullExtent-r)+" L "+(a.rightInnerExtent-t)+" "+(a.verticalFullExtent-r)+" A "+(a.rightLargeArcRadius-r)+" "+(a.rightLargeArcRadius-r)+" 0 0 1 "+(a.rightFullExtent+r-t)+" "+a.verticalRightInnerExtent,n+=" L "+(a.rightFullExtent+r-t)+" "+(a.targetY+a.rightSmallArcRadius)+" A "+(a.rightLargeArcRadius-r)+" "+(a.rightSmallArcRadius-r)+" 0 0 1 "+(a.rightInnerExtent-t)+" "+(a.targetY+r)+" L "+(a.targetX-t)+" "+(a.targetY+r)+(t>0?" L "+a.targetX+" "+a.targetY:"")+"Z"),n}(e.link,t);var n=Math.abs((e.link.target.x0-e.link.source.x1)/2);t>n&&(t=n);var a=e.link.source.x1,i=e.link.target.x0-t,o=r(a,i),s=o(.5),l=o(.5),c=e.link.y0-e.link.width/2,u=e.link.y0+e.link.width/2,d=e.link.y1-e.link.width/2,p=e.link.y1+e.link.width/2,h="M"+a+","+c,f="C"+s+","+c+" "+l+","+d+" "+i+","+d,m="C"+l+","+p+" "+s+","+u+" "+a+","+u,g=t>0?"L"+(i+t)+","+(d+e.link.width/2):"";return h+f+(g+="L"+i+","+p)+m+"Z"}}function w(e,t){var n=l(t.color),r=s.nodePadAcross,a=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var i=t.dx,o=Math.max(.5,t.dy),u="node_"+t.pointNumber;return t.group&&(u=d.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:u,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(i),visibleHeight:o,zoneX:-r,zoneY:-a,zoneWidth:i+2*r,zoneHeight:o+2*a,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:1===t.originalLayer,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:n.getBrightness()<=128,tinyColorHue:c.tinyRGB(n),tinyColorAlpha:n.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,u].join("_"),interactionState:e.interactionState,figure:e}}function k(e){e.attr("transform",function(e){return p(e.node.x0.toFixed(3),e.node.y0.toFixed(3))})}function T(e){e.call(k)}function S(e,t){e.call(T),t.attr("d",O())}function C(e){e.attr("width",function(e){return e.node.x1-e.node.x0}).attr("height",function(e){return e.visibleHeight})}function E(e){return e.link.width>1||e.linkLineWidth>0}function q(e){return p(e.translateX,e.translateY)+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function D(e,t,n){e.on(".basic",null).on("mouseover.basic",function(e){!e.interactionState.dragInProgress&&!e.partOfGroup&&(n.hover(this,e,t),e.interactionState.hovered=[this,e])}).on("mousemove.basic",function(e){!e.interactionState.dragInProgress&&!e.partOfGroup&&(n.follow(this,e),e.interactionState.hovered=[this,e])}).on("mouseout.basic",function(e){!e.interactionState.dragInProgress&&!e.partOfGroup&&(n.unhover(this,e,t),e.interactionState.hovered=!1)}).on("click.basic",function(e){e.interactionState.hovered&&(n.unhover(this,e,t),e.interactionState.hovered=!1),!e.interactionState.dragInProgress&&!e.partOfGroup&&n.select(this,e,t)})}function R(e,t,r,i){var o=a.behavior.drag().origin(function(e){return{x:e.node.x0+e.visibleWidth/2,y:e.node.y0+e.visibleHeight/2}}).on("dragstart",function(a){if("fixed"!==a.arrangement&&(d.ensureSingle(i._fullLayout._infolayer,"g","dragcover",function(e){i._fullLayout._dragCover=e}),d.raiseToTop(this),a.interactionState.dragInProgress=a.node,I(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),"snap"===a.arrangement)){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):function(e,t,r){!function(e){for(var t=0;t<e.length;t++)e[t].y=(e[t].y0+e[t].y1)/2,e[t].x=(e[t].x0+e[t].x1)/2}(r.graph.nodes);var a=r.graph.nodes.filter(function(e){return e.originalX===r.node.originalX}).filter(function(e){return!e.partOfGroup});r.forceLayouts[t]=n.forceSimulation(a).alphaDecay(0).force("collide",n.forceCollide().radius(function(e){return e.dy/2+r.nodePad/2}).strength(1).iterations(s.forceIterations)).force("constrain",function(e,t,n,r){return function(){for(var e=0,a=0;a<n.length;a++){var i=n[a];i===r.interactionState.dragInProgress?(i.x=i.lastDraggedX,i.y=i.lastDraggedY):(i.vx=(i.originalX-i.x)/s.forceTicksPerFrame,i.y=Math.min(r.size-i.dy/2,Math.max(i.dy/2,i.y))),e=Math.max(e,Math.abs(i.vx),Math.abs(i.vy))}!r.interactionState.dragInProgress&&e<.1&&r.forceLayouts[t].alpha()>0&&r.forceLayouts[t].alpha(0)}}(0,t,a,r)).stop()}(0,o,a),function(e,t,n,r,a){window.requestAnimationFrame(function i(){var o;for(o=0;o<s.forceTicksPerFrame;o++)n.forceLayouts[r].tick();if(function(e){for(var t=0;t<e.length;t++)e[t].y0=e[t].y-e[t].dy/2,e[t].y1=e[t].y0+e[t].dy,e[t].x0=e[t].x-e[t].dx/2,e[t].x1=e[t].x0+e[t].dx}(n.graph.nodes),n.sankey.update(n.graph),S(e.filter(W(n)),t),n.forceLayouts[r].alpha()>0)window.requestAnimationFrame(i);else{var l=n.node.originalX;n.node.x0=l-n.visibleWidth/2,n.node.x1=l+n.visibleWidth/2,L(n,a)}})}(e,t,a,o,i)}}).on("drag",function(n){if("fixed"!==n.arrangement){var r=a.event.x,i=a.event.y;"snap"===n.arrangement?(n.node.x0=r-n.visibleWidth/2,n.node.x1=r+n.visibleWidth/2,n.node.y0=i-n.visibleHeight/2,n.node.y1=i+n.visibleHeight/2):("freeform"===n.arrangement&&(n.node.x0=r-n.visibleWidth/2,n.node.x1=r+n.visibleWidth/2),i=Math.max(0,Math.min(n.size-n.visibleHeight/2,i)),n.node.y0=i-n.visibleHeight/2,n.node.y1=i+n.visibleHeight/2),I(n.node),"snap"!==n.arrangement&&(n.sankey.update(n.graph),S(e.filter(W(n)),t))}}).on("dragend",function(e){if("fixed"!==e.arrangement){e.interactionState.dragInProgress=!1;for(var t=0;t<e.node.childrenNodes.length;t++)e.node.childrenNodes[t].x=e.node.x,e.node.childrenNodes[t].y=e.node.y;"snap"!==e.arrangement&&L(e,i)}});e.on(".drag",null).call(o)}function L(e,t){for(var n=[],r=[],a=0;a<e.graph.nodes.length;a++){var i=(e.graph.nodes[a].x0+e.graph.nodes[a].x1)/2,o=(e.graph.nodes[a].y0+e.graph.nodes[a].y1)/2;n.push(i/e.figure.width),r.push(o/e.figure.height)}v.call("_guiRestyle",t,{"node.x":[n],"node.y":[r]},e.trace.index).then(function(){t._fullLayout._dragCover&&t._fullLayout._dragCover.remove()})}function I(e){e.lastDraggedX=e.x0+e.dx/2,e.lastDraggedY=e.y0+e.dy/2}function W(e){return function(t){return t.node.originalX===e.node.originalX}}t.exports=function(e,t,n,r,i){var o=e._context.staticPlot,f=!1;d.ensureSingle(e._fullLayout._infolayer,"g","first-render",function(){f=!0});var v=e._fullLayout._dragCover,M=n.filter(function(e){return y(e).trace.visible}).map(_.bind(null,r)),T=t.selectAll("."+s.cn.sankey).data(M,m);T.exit().remove(),T.enter().append("g").classed(s.cn.sankey,!0).style("box-sizing","content-box").style("position","absolute").style("left",0).style("shape-rendering","geometricPrecision").style("pointer-events",o?"none":"auto").attr("transform",q),T.each(function(t,n){e._fullData[n]._sankey=t;var r="bgsankey-"+t.trace.uid+"-"+n;d.ensureSingle(e._fullLayout._draggers,"rect",r),e._fullData[n]._bgRect=a.select("."+r),e._fullData[n]._bgRect.style("pointer-events",o?"none":"all").attr("width",t.width).attr("height",t.height).attr("x",t.translateX).attr("y",t.translateY).classed("bgsankey",!0).style({fill:"transparent","stroke-width":0})}),T.transition().ease(s.ease).duration(s.duration).attr("transform",q);var S=T.selectAll("."+s.cn.sankeyLinks).data(g,m);S.enter().append("g").classed(s.cn.sankeyLinks,!0).style("fill","none");var L=S.selectAll("."+s.cn.sankeyLink).data(function(e){return e.graph.links.filter(function(e){return e.value}).map(A.bind(null,e))},m);L.enter().append("path").classed(s.cn.sankeyLink,!0).call(D,T,i.linkEvents),L.style("stroke",function(e){return E(e)?c.tinyRGB(l(e.linkLineColor)):e.tinyColorHue}).style("stroke-opacity",function(e){return E(e)?c.opacity(e.linkLineColor):e.tinyColorAlpha}).style("fill",function(e){return e.tinyColorHue}).style("fill-opacity",function(e){return e.tinyColorAlpha}).style("stroke-width",function(e){return E(e)?e.linkLineWidth:1}).attr("d",O()),L.style("opacity",function(){return e._context.staticPlot||f||v?1:0}).transition().ease(s.ease).duration(s.duration).style("opacity",1),L.exit().transition().ease(s.ease).duration(s.duration).style("opacity",0).remove();var I=T.selectAll("."+s.cn.sankeyNodeSet).data(g,m);I.enter().append("g").classed(s.cn.sankeyNodeSet,!0),I.style("cursor",function(e){switch(e.arrangement){case"fixed":return"default";case"perpendicular":return"ns-resize";default:return"move"}});var W=I.selectAll("."+s.cn.sankeyNode).data(function(e){var t=e.graph.nodes;return function(e){var t,n=[];for(t=0;t<e.length;t++)e[t].originalX=(e[t].x0+e[t].x1)/2,e[t].originalY=(e[t].y0+e[t].y1)/2,-1===n.indexOf(e[t].originalX)&&n.push(e[t].originalX);for(n.sort(function(e,t){return e-t}),t=0;t<e.length;t++)e[t].originalLayerIndex=n.indexOf(e[t].originalX),e[t].originalLayer=e[t].originalLayerIndex/(n.length-1)}(t),t.map(w.bind(null,e))},m);W.enter().append("g").classed(s.cn.sankeyNode,!0).call(k).style("opacity",function(t){return!e._context.staticPlot&&!f||t.partOfGroup?0:1}),W.call(D,T,i.nodeEvents).call(R,L,i,e),W.transition().ease(s.ease).duration(s.duration).call(k).style("opacity",function(e){return e.partOfGroup?0:1}),W.exit().transition().ease(s.ease).duration(s.duration).style("opacity",0).remove();var N=W.selectAll("."+s.cn.nodeRect).data(g);N.enter().append("rect").classed(s.cn.nodeRect,!0).call(C),N.style("stroke-width",function(e){return e.nodeLineWidth}).style("stroke",function(e){return c.tinyRGB(l(e.nodeLineColor))}).style("stroke-opacity",function(e){return c.opacity(e.nodeLineColor)}).style("fill",function(e){return e.tinyColorHue}).style("fill-opacity",function(e){return e.tinyColorAlpha}),N.transition().ease(s.ease).duration(s.duration).call(C);var P=W.selectAll("."+s.cn.nodeLabel).data(g);P.enter().append("text").classed(s.cn.nodeLabel,!0).style("cursor","default"),P.attr("data-notex",1).text(function(e){return e.node.label}).each(function(t){var n=a.select(this);u.font(n,t.textFont),b.convertToTspans(n,e)}).attr("text-anchor",function(e){return e.horizontal&&e.left?"end":"start"}).attr("transform",function(e){var t=a.select(this),n=b.lineCount(t),r=e.textFont.size*((n-1)*z-x),i=e.nodeLineWidth/2+3,o=((e.horizontal?e.visibleHeight:e.visibleWidth)-r)/2;e.horizontal&&(e.left?i=-i:i+=e.visibleWidth);var s=e.horizontal?"":"scale(-1,1)"+h(90);return p(e.horizontal?i:o,e.horizontal?o:i)+s}),P.transition().ease(s.ease).duration(s.duration)}}),wve=Ee((e,t)=>{var n=mo(),r=Fr(),a=r.numberFormat,i=oxt(),o=_d(),s=ao(),l=gve().cn,c=r._;function u(e){return""!==e}function d(e,t){return e.filter(function(e){return e.key===t.traceId})}function p(e,t){n.select(e).select("path").style("fill-opacity",t),n.select(e).select("rect").style("fill-opacity",t)}function h(e){n.select(e).select("text.name").style("fill","black")}function f(e){return function(t){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function m(e){return function(t){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function g(e,t,n){t&&n&&d(n,t).selectAll("."+l.sankeyLink).filter(f(t)).call(b.bind(0,t,n,!1))}function y(e,t,n){t&&n&&d(n,t).selectAll("."+l.sankeyLink).filter(f(t)).call(v.bind(0,t,n,!1))}function b(e,t,n,r){r.style("fill",function(e){if(!e.link.concentrationscale)return e.tinyColorHoverHue}).style("fill-opacity",function(e){if(!e.link.concentrationscale)return e.tinyColorHoverAlpha}),r.each(function(n){var r=n.link.label;""!==r&&d(t,e).selectAll("."+l.sankeyLink).filter(function(e){return e.link.label===r}).style("fill",function(e){if(!e.link.concentrationscale)return e.tinyColorHoverHue}).style("fill-opacity",function(e){if(!e.link.concentrationscale)return e.tinyColorHoverAlpha})}),n&&d(t,e).selectAll("."+l.sankeyNode).filter(m(e)).call(g)}function v(e,t,n,r){r.style("fill",function(e){return e.tinyColorHue}).style("fill-opacity",function(e){return e.tinyColorAlpha}),r.each(function(n){var r=n.link.label;""!==r&&d(t,e).selectAll("."+l.sankeyLink).filter(function(e){return e.link.label===r}).style("fill",function(e){return e.tinyColorHue}).style("fill-opacity",function(e){return e.tinyColorAlpha})}),n&&d(t,e).selectAll(l.sankeyNode).filter(m(e)).call(y)}function M(e,t){var n=e.hoverlabel||{},a=r.nestedProperty(n,t).get();return!Array.isArray(a)&&a}t.exports=function(e,t){for(var r=e._fullLayout,d=r._paper,f=r._size,m=0;m<e._fullData.length;m++)if(e._fullData[m].visible&&e._fullData[m].type===l.sankey&&!e._fullData[m]._viewInitial){var x=e._fullData[m].node;e._fullData[m]._viewInitial={node:{groups:x.groups.slice(),x:x.x.slice(),y:x.y.slice()}}}var z=c(e,"source:")+" ",_=c(e,"target:")+" ",A=c(e,"concentration:")+" ",O=c(e,"incoming flow count:")+" ",w=c(e,"outgoing flow count:")+" ";i(e,d,t,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{linkEvents:{hover:function(t,r,a){!1!==e._fullLayout.hovermode&&(n.select(t).call(b.bind(0,r,a,!0)),"skip"!==r.link.trace.link.hoverinfo&&(r.link.fullData=r.link.trace,e.emit("plotly_hover",{event:n.event,points:[r.link]})))},follow:function(t,i){if(!1!==e._fullLayout.hovermode){var l=i.link.trace.link;if("none"!==l.hoverinfo&&"skip"!==l.hoverinfo){for(var c=[],d=0,f=0;f<i.flow.links.length;f++){var m=i.flow.links[f];if("closest"!==e._fullLayout.hovermode||i.link.pointNumber===m.pointNumber){i.link.pointNumber===m.pointNumber&&(d=f),m.fullData=m.trace,l=i.link.trace.link;var g=b(m),y={valueLabel:a(i.valueFormat)(m.value)+i.valueSuffix};c.push({x:g[0],y:g[1],name:y.valueLabel,text:[m.label||"",z+m.source.label,_+m.target.label,m.concentrationscale?A+a("%0.2f")(m.flow.labelConcentration):""].filter(u).join("<br>"),color:M(l,"bgcolor")||s.addOpacity(m.color,1),borderColor:M(l,"bordercolor"),fontFamily:M(l,"font.family"),fontSize:M(l,"font.size"),fontColor:M(l,"font.color"),fontWeight:M(l,"font.weight"),fontStyle:M(l,"font.style"),fontVariant:M(l,"font.variant"),fontTextcase:M(l,"font.textcase"),fontLineposition:M(l,"font.lineposition"),fontShadow:M(l,"font.shadow"),nameLength:M(l,"namelength"),textAlign:M(l,"align"),idealAlign:n.event.x<g[0]?"right":"left",hovertemplate:l.hovertemplate,hovertemplateLabels:y,eventData:[m]})}}o.loneHover(c,{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:e,anchorIndex:d}).each(function(){i.link.concentrationscale||p(this,.65),h(this)})}}function b(e){var t,n;e.circular?(t=(e.circularPathData.leftInnerExtent+e.circularPathData.rightInnerExtent)/2,n=e.circularPathData.verticalFullExtent):(t=(e.source.x1+e.target.x0)/2,n=(e.y0+e.y1)/2);var r=[t,n];return"v"===e.trace.orientation&&r.reverse(),r[0]+=i.parent.translateX,r[1]+=i.parent.translateY,r}},unhover:function(t,a,i){!1!==e._fullLayout.hovermode&&(n.select(t).call(v.bind(0,a,i,!0)),"skip"!==a.link.trace.link.hoverinfo&&(a.link.fullData=a.link.trace,e.emit("plotly_unhover",{event:n.event,points:[a.link]})),o.loneUnhover(r._hoverlayer.node()))},select:function(t,r){var a=r.link;a.originalEvent=n.event,e._hoverdata=[a],o.click(e,{target:!0})}},nodeEvents:{hover:function(t,r,a){!1!==e._fullLayout.hovermode&&(n.select(t).call(g,r,a),"skip"!==r.node.trace.node.hoverinfo&&(r.node.fullData=r.node.trace,e.emit("plotly_hover",{event:n.event,points:[r.node]})))},follow:function(t,i){if(!1!==e._fullLayout.hovermode){var s=i.node.trace.node;if("none"!==s.hoverinfo&&"skip"!==s.hoverinfo){var c=n.select(t).select("."+l.nodeRect),d=e._fullLayout._paperdiv.node().getBoundingClientRect(),f=c.node().getBoundingClientRect(),m=f.left-2-d.left,g=f.right+2-d.left,y=f.top+f.height/4-d.top,b={valueLabel:a(i.valueFormat)(i.node.value)+i.valueSuffix};i.node.fullData=i.node.trace,e._fullLayout._calcInverseTransform(e);var v=e._fullLayout._invScaleX,x=e._fullLayout._invScaleY,z=o.loneHover({x0:v*m,x1:v*g,y:x*y,name:a(i.valueFormat)(i.node.value)+i.valueSuffix,text:[i.node.label,O+i.node.targetLinks.length,w+i.node.sourceLinks.length].filter(u).join("<br>"),color:M(s,"bgcolor")||i.tinyColorHue,borderColor:M(s,"bordercolor"),fontFamily:M(s,"font.family"),fontSize:M(s,"font.size"),fontColor:M(s,"font.color"),fontWeight:M(s,"font.weight"),fontStyle:M(s,"font.style"),fontVariant:M(s,"font.variant"),fontTextcase:M(s,"font.textcase"),fontLineposition:M(s,"font.lineposition"),fontShadow:M(s,"font.shadow"),nameLength:M(s,"namelength"),textAlign:M(s,"align"),idealAlign:"left",hovertemplate:s.hovertemplate,hovertemplateLabels:b,eventData:[i.node]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:e});p(z,.85),h(z)}}},unhover:function(t,a,i){!1!==e._fullLayout.hovermode&&(n.select(t).call(y,a,i),"skip"!==a.node.trace.node.hoverinfo&&(a.node.fullData=a.node.trace,e.emit("plotly_unhover",{event:n.event,points:[a.node]})),o.loneUnhover(r._hoverlayer.node()))},select:function(t,r,a){var i=r.node;i.originalEvent=n.event,e._hoverdata=[i],n.select(t).call(y,r,a),o.click(e,{target:!0})}}})}}),vxt=Ee(e=>{var t=Wu().overrideAll,n=mp().getModuleCalcData,r=wve(),a=zz(),i=Ky(),o=p2(),s=uf().prepSelect,l=Fr(),c=vo(),u="sankey";function d(e,t){var n=e._fullData[t],r=e._fullLayout,a=r.dragmode,u="pan"===r.dragmode?"move":"crosshair",d=n._bgRect;if(d&&"pan"!==a&&"zoom"!==a){i(d,u);var p={_id:"x",c2p:l.identity,_offset:n._sankey.translateX,_length:n._sankey.width},h={_id:"y",c2p:l.identity,_offset:n._sankey.translateY,_length:n._sankey.height},f={gd:e,element:d.node(),plotinfo:{id:t,xaxis:p,yaxis:h,fillRangeItems:l.noop},subplot:t,xaxes:[p],yaxes:[h],doneFnCompleted:function(n){var r,a=e._fullData[t],i=a.node.groups.slice(),o=[];function s(e){for(var t=a._sankey.graph.nodes,n=0;n<t.length;n++)if(t[n].pointNumber===e)return t[n]}for(var l=0;l<n.length;l++){var u=s(n[l].pointNumber);if(u)if(u.group){for(var d=0;d<u.childrenNodes.length;d++)o.push(u.childrenNodes[d].pointNumber);i[u.pointNumber-a.node._count]=!1}else o.push(u.pointNumber)}r=i.filter(Boolean).concat([o]),c.call("_guiRestyle",e,{"node.groups":[r]},t)},prepFn:function(e,t,n){s(e,t,n,f,a)}};o.init(f)}}e.name=u,e.baseLayoutAttrOverrides=t({hoverlabel:a.hoverlabel},"plot","nested"),e.plot=function(t){var a=n(t.calcdata,u)[0];r(t,a),e.updateFx(t)},e.clean=function(e,t,n,r){var a=r._has&&r._has(u),i=t._has&&t._has(u);a&&!i&&(r._paperdiv.selectAll(".sankey").remove(),r._paperdiv.selectAll(".bgsankey").remove())},e.updateFx=function(e){for(var t=0;t<e._fullData.length;t++)d(e,t)}}),yxt=Ee((e,t)=>{t.exports=function(e,t){for(var n=[],r=e.cd[0].trace,a=r._sankey.graph.nodes,i=0;i<a.length;i++){var o=a[i];if(!o.partOfGroup){var s=[(o.x0+o.x1)/2,(o.y0+o.y1)/2];"v"===r.orientation&&s.reverse(),t&&t.contains(s,!1,i,e)&&n.push({pointNumber:o.pointNumber})}}return n}}),Mxt=Ee((e,t)=>{t.exports={attributes:pve(),supplyDefaults:zMt(),calc:SMt(),plot:wve(),moduleType:"trace",name:"sankey",basePlotModule:vxt(),selectPoints:yxt(),categories:["noOpacity"],meta:{description:["Sankey plots for network flow data analysis.","The nodes are specified in `nodes` and the links between sources and targets in `links`.","The colors are set in `nodes[i].color` and `links[i].color`, otherwise defaults are used."].join(" ")}}}),_xt=Ee((e,t)=>{t.exports=Mxt()}),Axt=Ee(e=>{var t=td();e.name="indicator",e.plot=function(n,r,a,i){t.plotBasePlot(e.name,n,r,a,i)},e.clean=function(n,r,a,i){t.cleanBasePlot(e.name,n,r,a,i)}}),Sve=Ee((e,t)=>{var n=ms().extendFlat,r=ms().extendDeep,a=Wu().overrideAll,i=Mu(),o=oh(),s=ad().attributes,l=vp(),c=Kl().templatedArray,u=bk(),d=Pd().descriptionOnlyNumbers,p=i({editType:"plot",colorEditType:"plot"}),h={color:{valType:"color",editType:"plot",description:["Sets the background color of the arc."].join(" ")},line:{color:{valType:"color",dflt:o.defaultLine,editType:"plot",description:["Sets the color of the line enclosing each sector."].join(" ")},width:{valType:"number",min:0,dflt:0,editType:"plot",description:["Sets the width (in px) of the line enclosing each sector."].join(" ")},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot",description:["Sets the thickness of the bar as a fraction of the total thickness of the gauge."].join(" ")},editType:"calc"},f={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot",description:["Sets the range of this axis."].join(" ")},m=c("step",r({},h,{range:f}));t.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number",description:["Determines how the value is displayed on the graph.","`number` displays the value numerically in text.","`delta` displays the difference to a reference value in text.","Finally, `gauge` displays the value graphically on an axis."].join(" ")},value:{valType:"number",editType:"calc",anim:!0,description:["Sets the number to be displayed."].join(" ")},align:{valType:"enumerated",values:["left","center","right"],editType:"plot",description:["Sets the horizontal alignment of the `text` within the box.","Note that this attribute has no effect if an angular gauge is displayed:","in this case, it is always centered"].join(" ")},domain:s({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot",description:["Sets the title of this indicator."].join(" ")},align:{valType:"enumerated",values:["left","center","right"],editType:"plot",description:["Sets the horizontal alignment of the title.","It defaults to `center` except for bullet charts","for which it defaults to right."].join(" ")},font:n({},p,{description:["Set the font used to display the title"].join(" ")}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:d("value")},font:n({},p,{description:["Set the font used to display main number"].join(" ")}),prefix:{valType:"string",dflt:"",editType:"plot",description:["Sets a prefix appearing before the number."].join(" ")},suffix:{valType:"string",dflt:"",editType:"plot",description:["Sets a suffix appearing next to the number."].join(" ")},editType:"plot"},delta:{reference:{valType:"number",editType:"calc",description:["Sets the reference value to compute the delta.","By default, it is set to the current value."].join(" ")},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot",description:["Sets the position of delta with respect to the number."].join(" ")},relative:{valType:"boolean",editType:"plot",dflt:!1,description:["Show relative change"].join(" ")},valueformat:{valType:"string",editType:"plot",description:d("value")},increasing:{symbol:{valType:"string",dflt:u.INCREASING.SYMBOL,editType:"plot",description:["Sets the symbol to display for increasing value"].join(" ")},color:{valType:"color",dflt:u.INCREASING.COLOR,editType:"plot",description:["Sets the color for increasing value."].join(" ")},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:u.DECREASING.SYMBOL,editType:"plot",description:["Sets the symbol to display for increasing value"].join(" ")},color:{valType:"color",dflt:u.DECREASING.COLOR,editType:"plot",description:["Sets the color for increasing value."].join(" ")},editType:"plot"},font:n({},p,{description:["Set the font used to display the delta"].join(" ")}),prefix:{valType:"string",dflt:"",editType:"plot",description:["Sets a prefix appearing before the delta."].join(" ")},suffix:{valType:"string",dflt:"",editType:"plot",description:["Sets a suffix appearing next to the delta."].join(" ")},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"],description:["Set the shape of the gauge"].join(" ")},bar:r({},h,{color:{dflt:"green"},description:["Set the appearance of the gauge's value"].join(" ")}),bgcolor:{valType:"color",editType:"plot",description:"Sets the gauge background color."},bordercolor:{valType:"color",dflt:o.defaultLine,editType:"plot",description:"Sets the color of the border enclosing the gauge."},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot",description:"Sets the width (in px) of the border enclosing the gauge."},axis:a({range:f,visible:n({},l.visible,{dflt:!0}),tickmode:l.minor.tickmode,nticks:l.nticks,tick0:l.tick0,dtick:l.dtick,tickvals:l.tickvals,ticktext:l.ticktext,ticks:n({},l.ticks,{dflt:"outside"}),ticklen:l.ticklen,tickwidth:l.tickwidth,tickcolor:l.tickcolor,ticklabelstep:l.ticklabelstep,showticklabels:l.showticklabels,labelalias:l.labelalias,tickfont:i({description:"Sets the color bar's tick label font"}),tickangle:l.tickangle,tickformat:l.tickformat,tickformatstops:l.tickformatstops,tickprefix:l.tickprefix,showtickprefix:l.showtickprefix,ticksuffix:l.ticksuffix,showticksuffix:l.showticksuffix,separatethousands:l.separatethousands,exponentformat:l.exponentformat,minexponent:l.minexponent,showexponent:l.showexponent,editType:"plot"},"plot"),steps:m,threshold:{line:{color:n({},h.line.color,{description:["Sets the color of the threshold line."].join(" ")}),width:n({},h.line.width,{dflt:1,description:["Sets the width (in px) of the threshold line."].join(" ")}),editType:"plot"},thickness:n({},h.thickness,{dflt:.85,description:["Sets the thickness of the threshold line as a fraction of the thickness of the gauge."].join(" ")}),value:{valType:"number",editType:"calc",dflt:!1,description:["Sets a treshold value drawn as a line."].join(" ")},editType:"plot"},description:"The gauge of the Indicator plot.",editType:"plot"}}}),kve=Ee((e,t)=>{t.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}}),Rxt=Ee((e,t)=>{var n=Fr(),r=Sve(),a=ad().defaults,i=Kl(),o=Pp(),s=kve(),l=mw(),c=nS(),u=Nz(),d=Wz();function p(e,t){function a(a,i){return n.coerce(e,t,r.gauge.steps,a,i)}a("color"),a("line.color"),a("line.width"),a("range"),a("thickness")}t.exports={supplyDefaults:function(e,t,h,f){function m(a,i){return n.coerce(e,t,r,a,i)}a(t,f,m),m("mode"),t._hasNumber=-1!==t.mode.indexOf("number"),t._hasDelta=-1!==t.mode.indexOf("delta"),t._hasGauge=-1!==t.mode.indexOf("gauge");var g=m("value");t._range=[0,"number"==typeof g?1.5*g:1];var y,b,v=new Array(2);if(t._hasNumber){m("number.valueformat");var M=n.extendFlat({},f.font);M.size=void 0,n.coerceFont(m,"number.font",M),void 0===t.number.font.size&&(t.number.font.size=s.defaultNumberFontSize,v[0]=!0),m("number.prefix"),m("number.suffix"),y=t.number.font.size}if(t._hasDelta){var x=n.extendFlat({},f.font);x.size=void 0,n.coerceFont(m,"delta.font",x),void 0===t.delta.font.size&&(t.delta.font.size=(t._hasNumber?.5:1)*(y||s.defaultNumberFontSize),v[1]=!0),m("delta.reference",t.value),m("delta.relative"),m("delta.valueformat",t.delta.relative?"2%":""),m("delta.increasing.symbol"),m("delta.increasing.color"),m("delta.decreasing.symbol"),m("delta.decreasing.color"),m("delta.position"),m("delta.prefix"),m("delta.suffix"),b=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||v[0])&&(!t._hasDelta||v[1])||!1;var z,_,A,O,w=n.extendFlat({},f.font);function k(e,t){return n.coerce(z,_,r.gauge,e,t)}function T(e,t){return n.coerce(A,O,r.gauge.axis,e,t)}if(w.size=.25*(y||b||s.defaultNumberFontSize),n.coerceFont(m,"title.font",w),m("title.text"),t._hasGauge){(z=e.gauge)||(z={}),_=i.newContainer(t,"gauge"),k("shape"),(t._isBullet="bullet"===t.gauge.shape)||m("title.align","center"),(t._isAngular="angular"===t.gauge.shape)||m("align","center"),k("bgcolor",f.paper_bgcolor),k("borderwidth"),k("bordercolor"),k("bar.color"),k("bar.line.color"),k("bar.line.width"),k("bar.thickness",s.valueThickness*("bullet"===t.gauge.shape?.5:1)),o(z,_,{name:"steps",handleItemDefaults:p}),k("threshold.value"),k("threshold.thickness"),k("threshold.line.width"),k("threshold.line.color"),A={},z&&(A=z.axis||{}),O=i.newContainer(_,"axis"),T("visible"),t._range=T("range",t._range);var S={font:f.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};l(A,O,T,"linear"),d(A,O,T,"linear",S),u(A,O,T,"linear",S),c(A,O,T,S)}else m("title.align","center"),m("align","center"),t._isAngular=t._isBullet=!1;t._length=null}}}),Pxt=Ee((e,t)=>{t.exports={calc:function(e,t){var n=[],r=t.value;"number"!=typeof t._lastValue&&(t._lastValue=t.value);var a=t._lastValue,i=a;return t._hasDelta&&"number"==typeof t.delta.reference&&(i=t.delta.reference),n[0]={y:r,lastY:a,delta:r-i,relativeDelta:(r-i)/i},n}}}),Uxt=Ee((e,t)=>{var n=mo(),r=(hO(),E_(fO)).interpolate,a=(hO(),E_(fO)).interpolateNumber,i=Fr(),o=i.strScale,s=i.strTranslate,l=i.rad2deg,c=lh().MID_SHIFT,u=vs(),d=kve(),p=q1(),h=es(),f=TR(),m=Dj(),g=vp(),y=ao(),b={left:"start",center:"middle",right:"end"},v={left:0,center:.5,right:1},M=/[yzafpnµmkMGTPEZY]/;function x(e){return e&&e.duration>0}function z(e){e.each(function(e){y.stroke(n.select(this),e.line.color)}).each(function(e){y.fill(n.select(this),e.color)}).style("stroke-width",function(e){return e.line.width})}function _(e,t,n){var r=e._fullLayout,a=i.extendFlat({type:"linear",ticks:"outside",range:n,showline:!0},t),o={type:"linear",_id:"x"+t._id},s={letter:"x",font:r.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function l(e,t){return i.coerce(a,o,g,e,t)}return f(a,o,l,s,r),m(a,o,l,s),o}function A(e,t,n){return[Math.min(t/e.width,n/e.height),e,t+"x"+n]}function O(e,t,r,a){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),o=n.select(i);return o.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(p.convertToTspans,a).call(u.font,t),u.bBox(o.node())}function w(e,t,n,r,a,o){var s="_cache"+t;e[s]&&e[s].key===a||(e[s]={key:a,value:n});var l=i.aggNums(o,null,[e[s].value,r],2);return e[s].value=l,l}t.exports=function(e,t,f,m){var g,k=e._fullLayout;x(f)&&m&&(g=m()),i.makeTraceGroups(k._indicatorlayer,t,"trace").each(function(t){var m,T,S,C,E,q=t[0].trace,D=n.select(this),R=q._hasGauge,L=q._isAngular,I=q._isBullet,W=q.domain,N={w:k._size.w*(W.x[1]-W.x[0]),h:k._size.h*(W.y[1]-W.y[0]),l:k._size.l+k._size.w*W.x[0],r:k._size.r+k._size.w*(1-W.x[1]),t:k._size.t+k._size.h*(1-W.y[1]),b:k._size.b+k._size.h*W.y[0]},P=N.l+N.w/2,B=N.t+N.h/2,F=Math.min(N.w/2,N.h),j=d.innerRadius*F,U=q.align||"center";if(T=B,R){if(L&&(m=P,T=B+F/2,S=function(e){return function(e,t){var n=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),r=t/n;return[r,e,t]}(e,.9*j)}),I){var V=d.bulletPadding,H=1-d.bulletNumberDomainSize+V;m=N.l+(H+(1-H)*v[U])*N.w,S=function(e){return A(e,(d.bulletNumberDomainSize-V)*N.w,N.h)}}}else m=N.l+v[U]*N.w,S=function(e){return A(e,N.w,N.h)};!function(e,t,r,l){var c,d,f,m=r[0].trace,g=l.numbersX,z=l.numbersY,A=m.align||"center",k=b[A],T=l.transitionOpts,S=l.onComplete,C=i.ensureSingle(t,"g","numbers"),E=[];m._hasNumber&&E.push("number"),m._hasDelta&&(E.push("delta"),"left"===m.delta.position&&E.reverse());var q=C.selectAll("text").data(E);function D(t,n,r,a){if(!t.match("s")||r>=0==a>=0||n(r).slice(-1).match(M)||n(a).slice(-1).match(M))return n;var i=t.slice().replace("s","f").replace(/\d+/,function(e){return parseInt(e)-1}),o=_(e,{tickformat:i});return function(e){return Math.abs(e)<1?h.tickText(o,e).text:n(e)}}function R(){var t=_(e,{tickformat:m.number.valueformat},m._range);t.setScale(),h.prepTicks(t);var i=function(e){return h.tickText(t,e).text},o=m.number.suffix,s=m.number.prefix,l=C.select("text.number");function d(){var t="number"==typeof r[0].y?s+i(r[0].y)+o:"-";l.text(t).call(u.font,m.number.font).call(p.convertToTspans,e)}return x(T)?l.transition().duration(T.duration).ease(T.easing).each("end",function(){d(),S&&S()}).each("interrupt",function(){d(),S&&S()}).attrTween("text",function(){var e=n.select(this),t=a(r[0].lastY,r[0].y);m._lastValue=r[0].y;var l=D(m.number.valueformat,i,r[0].lastY,r[0].y);return function(n){e.text(s+l(t(n))+o)}}):d(),c=O(s+i(r[0].y)+o,m.number.font,k,e),l}function L(){var t=_(e,{tickformat:m.delta.valueformat},m._range);t.setScale(),h.prepTicks(t);var i=function(e){return h.tickText(t,e).text},o=m.delta.suffix,s=m.delta.prefix,l=function(e){return m.delta.relative?e.relativeDelta:e.delta},c=function(e,t){return 0===e||"number"!=typeof e||isNaN(e)?"-":(e>0?m.delta.increasing.symbol:m.delta.decreasing.symbol)+s+t(e)+o},f=function(e){return e.delta>=0?m.delta.increasing.color:m.delta.decreasing.color};void 0===m._deltaLastValue&&(m._deltaLastValue=l(r[0]));var g=C.select("text.delta");function b(){g.text(c(l(r[0]),i)).call(y.fill,f(r[0])).call(p.convertToTspans,e)}return g.call(u.font,m.delta.font).call(y.fill,f({delta:m._deltaLastValue})),x(T)?g.transition().duration(T.duration).ease(T.easing).tween("text",function(){var e=n.select(this),t=l(r[0]),o=m._deltaLastValue,s=D(m.delta.valueformat,i,o,t),u=a(o,t);return m._deltaLastValue=t,function(t){e.text(c(u(t),s)),e.call(y.fill,f({delta:u(t)}))}}).each("end",function(){b(),S&&S()}).each("interrupt",function(){b(),S&&S()}):b(),d=O(c(l(r[0]),i),m.delta.font,k,e),g}q.enter().append("text"),q.attr("text-anchor",function(){return k}).attr("class",function(e){return e}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),q.exit().remove();var I,W=m.mode+m.align;if(m._hasDelta&&(I=L(),W+=m.delta.position+m.delta.font.size+m.delta.font.family+m.delta.valueformat,W+=m.delta.increasing.symbol+m.delta.decreasing.symbol,f=d),m._hasNumber&&(R(),W+=m.number.font.size+m.number.font.family+m.number.valueformat+m.number.suffix+m.number.prefix,f=c),m._hasDelta&&m._hasNumber){var N,P,B=[(c.left+c.right)/2,(c.top+c.bottom)/2],F=[(d.left+d.right)/2,(d.top+d.bottom)/2],j=.75*m.delta.font.size;"left"===m.delta.position&&(N=w(m,"deltaPos",0,-1*(c.width*v[m.align]+d.width*(1-v[m.align])+j),W,Math.min),P=B[1]-F[1],f={width:c.width+d.width+j,height:Math.max(c.height,d.height),left:d.left+N,right:c.right,top:Math.min(c.top,d.top+P),bottom:Math.max(c.bottom,d.bottom+P)}),"right"===m.delta.position&&(N=w(m,"deltaPos",0,c.width*(1-v[m.align])+d.width*v[m.align]+j,W,Math.max),P=B[1]-F[1],f={width:c.width+d.width+j,height:Math.max(c.height,d.height),left:c.left,right:d.right+N,top:Math.min(c.top,d.top+P),bottom:Math.max(c.bottom,d.bottom+P)}),"bottom"===m.delta.position&&(N=null,P=d.height,f={width:Math.max(c.width,d.width),height:c.height+d.height,left:Math.min(c.left,d.left),right:Math.max(c.right,d.right),top:c.bottom-c.height,bottom:c.bottom+d.height}),"top"===m.delta.position&&(N=null,P=c.top,f={width:Math.max(c.width,d.width),height:c.height+d.height,left:Math.min(c.left,d.left),right:Math.max(c.right,d.right),top:c.bottom-c.height-d.height,bottom:c.bottom}),I.attr({dx:N,dy:P})}(m._hasNumber||m._hasDelta)&&C.attr("transform",function(){var e=l.numbersScaler(f);W+=e[2];var t,n=w(m,"numbersScale",1,e[0],W,Math.min);m._scaleNumbers||(n=1),t=m._isAngular?z-n*f.bottom:z-n*(f.top+f.bottom)/2,m._numbersTop=n*f.top+t;var r=f[A];"center"===A&&(r=(f.left+f.right)/2);var a=g-n*r;return a=w(m,"numbersTranslate",0,a,W,Math.max),s(a,t)+o(n)})}(e,D,t,{numbersX:m,numbersY:T,numbersScaler:S,transitionOpts:f,onComplete:g}),R&&(C={range:q.gauge.axis.range,color:q.gauge.bgcolor,line:{color:q.gauge.bordercolor,width:0},thickness:1},E={range:q.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:q.gauge.bordercolor,width:q.gauge.borderwidth},thickness:1});var X=D.selectAll("g.angular").data(L?t:[]);X.exit().remove();var G=D.selectAll("g.angularaxis").data(L?t:[]);G.exit().remove(),L&&function(e,t,a,i){var o,u,d,p,f=a[0].trace,m=i.size,g=i.radius,y=i.innerRadius,b=i.gaugeBg,v=i.gaugeOutline,M=[m.l+m.w/2,m.t+m.h/2+g/2],A=i.gauge,O=i.layer,w=i.transitionOpts,k=i.onComplete,T=Math.PI/2;function S(e){var t=f.gauge.axis.range[0],n=(e-t)/(f.gauge.axis.range[1]-t)*Math.PI-T;return n<-T?-T:n>T?T:n}function C(e){return n.svg.arc().innerRadius((y+g)/2-e/2*(g-y)).outerRadius((y+g)/2+e/2*(g-y)).startAngle(-T)}function E(e){e.attr("d",function(e){return C(e.thickness).startAngle(S(e.range[0])).endAngle(S(e.range[1]))()})}A.enter().append("g").classed("angular",!0),A.attr("transform",s(M[0],M[1])),O.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),O.selectAll("g.xangularaxistick,path,text").remove(),o=_(e,f.gauge.axis),o.type="linear",o.range=f.gauge.axis.range,o._id="xangularaxis",o.ticklabeloverflow="allow",o.setScale();var q=function(e){return(o.range[0]-e.x)/(o.range[1]-o.range[0])*Math.PI+Math.PI},D={},R=h.makeLabelFns(o,0),L=R.labelStandoff;D.xFn=function(e){var t=q(e);return Math.cos(t)*L},D.yFn=function(e){var t=q(e),n=Math.sin(t)>0?.2:1;return-Math.sin(t)*(L+e.fontSize*n)+Math.abs(Math.cos(t))*(e.fontSize*c)},D.anchorFn=function(e){var t=q(e),n=Math.cos(t);return Math.abs(n)<.1?"middle":n>0?"start":"end"},D.heightFn=function(e,t,n){var r=q(e);return-.5*(1+Math.sin(r))*n};var I=function(e){return s(M[0]+g*Math.cos(e),M[1]-g*Math.sin(e))};d=function(e){return I(q(e))};var W=function(e){var t=q(e);return I(t)+"rotate("+-l(t)+")"};if(u=h.calcTicks(o),p=h.getTickSigns(o)[2],o.visible){p="inside"===o.ticks?-1:1;var N=(o.linewidth||1)/2;h.drawTicks(e,o,{vals:u,layer:O,path:"M"+p*N+",0h"+p*o.ticklen,transFn:W}),h.drawLabels(e,o,{vals:u,layer:O,transFn:d,labelFns:D})}var P=[b].concat(f.gauge.steps),B=A.selectAll("g.bg-arc").data(P);B.enter().append("g").classed("bg-arc",!0).append("path"),B.select("path").call(E).call(z),B.exit().remove();var F=C(f.gauge.bar.thickness),j=A.selectAll("g.value-arc").data([f.gauge.bar]);j.enter().append("g").classed("value-arc",!0).append("path");var U=j.select("path");x(w)?(U.transition().duration(w.duration).ease(w.easing).each("end",function(){k&&k()}).each("interrupt",function(){k&&k()}).attrTween("d",function(e,t,n){return function(){var a=r(t,n);return function(t){return e.endAngle(a(t))()}}}(F,S(a[0].lastY),S(a[0].y))),f._lastValue=a[0].y):U.attr("d","number"==typeof a[0].y?F.endAngle(S(a[0].y)):"M0,0Z"),U.call(z),j.exit().remove(),P=[];var V=f.gauge.threshold.value;(V||0===V)&&P.push({range:[V,V],color:f.gauge.threshold.color,line:{color:f.gauge.threshold.line.color,width:f.gauge.threshold.line.width},thickness:f.gauge.threshold.thickness});var H=A.selectAll("g.threshold-arc").data(P);H.enter().append("g").classed("threshold-arc",!0).append("path"),H.select("path").call(E).call(z),H.exit().remove();var X=A.selectAll("g.gauge-outline").data([v]);X.enter().append("g").classed("gauge-outline",!0).append("path"),X.select("path").call(E).call(z),X.exit().remove()}(e,0,t,{radius:F,innerRadius:j,gauge:X,layer:G,size:N,gaugeBg:C,gaugeOutline:E,transitionOpts:f,onComplete:g});var Y=D.selectAll("g.bullet").data(I?t:[]);Y.exit().remove();var Z=D.selectAll("g.bulletaxis").data(I?t:[]);Z.exit().remove(),I&&function(e,t,n,r){var a,i,o,l,c,u=n[0].trace,p=r.gauge,f=r.layer,m=r.gaugeBg,g=r.gaugeOutline,b=r.size,v=u.domain,M=r.transitionOpts,A=r.onComplete;p.enter().append("g").classed("bullet",!0),p.attr("transform",s(b.l,b.t)),f.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),f.selectAll("g.xbulletaxistick,path,text").remove();var O=b.h,w=u.gauge.bar.thickness*O,k=v.x[0],T=v.x[0]+(v.x[1]-v.x[0])*(u._hasNumber||u._hasDelta?1-d.bulletNumberDomainSize:1);function S(e){e.attr("width",function(e){return Math.max(0,a.c2p(e.range[1])-a.c2p(e.range[0]))}).attr("x",function(e){return a.c2p(e.range[0])}).attr("y",function(e){return.5*(1-e.thickness)*O}).attr("height",function(e){return e.thickness*O})}a=_(e,u.gauge.axis),a._id="xbulletaxis",a.domain=[k,T],a.setScale(),i=h.calcTicks(a),o=h.makeTransTickFn(a),l=h.getTickSigns(a)[2],c=b.t+b.h,a.visible&&(h.drawTicks(e,a,{vals:"inside"===a.ticks?h.clipEnds(a,i):i,layer:f,path:h.makeTickPath(a,c,l),transFn:o}),h.drawLabels(e,a,{vals:i,layer:f,transFn:o,labelFns:h.makeLabelFns(a,c)}));var C=[m].concat(u.gauge.steps),E=p.selectAll("g.bg-bullet").data(C);E.enter().append("g").classed("bg-bullet",!0).append("rect"),E.select("rect").call(S).call(z),E.exit().remove();var q=p.selectAll("g.value-bullet").data([u.gauge.bar]);q.enter().append("g").classed("value-bullet",!0).append("rect"),q.select("rect").attr("height",w).attr("y",(O-w)/2).call(z),x(M)?q.select("rect").transition().duration(M.duration).ease(M.easing).each("end",function(){A&&A()}).each("interrupt",function(){A&&A()}).attr("width",Math.max(0,a.c2p(Math.min(u.gauge.axis.range[1],n[0].y)))):q.select("rect").attr("width","number"==typeof n[0].y?Math.max(0,a.c2p(Math.min(u.gauge.axis.range[1],n[0].y))):0),q.exit().remove();var D=n.filter(function(){return u.gauge.threshold.value||0===u.gauge.threshold.value}),R=p.selectAll("g.threshold-bullet").data(D);R.enter().append("g").classed("threshold-bullet",!0).append("line"),R.select("line").attr("x1",a.c2p(u.gauge.threshold.value)).attr("x2",a.c2p(u.gauge.threshold.value)).attr("y1",(1-u.gauge.threshold.thickness)/2*O).attr("y2",(1-(1-u.gauge.threshold.thickness)/2)*O).call(y.stroke,u.gauge.threshold.line.color).style("stroke-width",u.gauge.threshold.line.width),R.exit().remove();var L=p.selectAll("g.gauge-outline").data([g]);L.enter().append("g").classed("gauge-outline",!0).append("rect"),L.select("rect").call(S).call(z),L.exit().remove()}(e,0,t,{gauge:Y,layer:Z,size:N,gaugeBg:C,gaugeOutline:E,transitionOpts:f,onComplete:g});var $=D.selectAll("text.title").data(t);$.exit().remove(),$.enter().append("text").classed("title",!0),$.attr("text-anchor",function(){return I?b.right:b[q.title.align]}).text(q.title.text).call(u.font,q.title.font).call(p.convertToTspans,e),$.attr("transform",function(){var e,t=N.l+N.w*v[q.title.align],n=d.titlePadding,r=u.bBox($.node());if(R){if(L)if(q.gauge.axis.visible){e=u.bBox(G.node()).top-n-r.bottom}else e=N.t+N.h/2-F/2-r.bottom-n;I&&(e=T-(r.top+r.bottom)/2,t=N.l-d.bulletPadding*N.w)}else e=q._numbersTop-n-r.bottom;return s(t,e)})})}}),Vxt=Ee((e,t)=>{t.exports={moduleType:"trace",name:"indicator",basePlotModule:Axt(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:Sve(),supplyDefaults:Rxt().supplyDefaults,calc:Pxt().calc,plot:Uxt(),meta:{description:["An indicator is used to visualize a single `value` along with some","contextual information such as `steps` or a `threshold`, using a","combination of three visual elements: a number, a delta, and/or a gauge.","Deltas are taken with respect to a `reference`.","Gauges can be either angular or bullet (aka linear) gauges."].join(" ")}}}),Gxt=Ee((e,t)=>{t.exports=Vxt()}),Eve=Ee((e,t)=>{var n=Iw(),r=ms().extendFlat,a=Wu().overrideAll,i=Mu(),o=ad().attributes,s=Pd().descriptionOnlyNumbers;t.exports=a({domain:o({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null,description:["The width of columns expressed as a ratio. Columns fill the available width","in proportion of their specified column widths."].join(" ")},columnorder:{valType:"data_array",description:["Specifies the rendered order of the data columns; for example, a value `2` at position `0`","means that column index `0` in the data will be rendered as the","third column, as columns have an index base of zero."].join(" ")},header:{values:{valType:"data_array",dflt:[],description:["Header cell values. `values[m][n]` represents the value of the `n`th point in column `m`,","therefore the `values[m]` vector length for all columns must be the same (longer vectors","will be truncated). Each value must be a finite number or a string."].join(" ")},format:{valType:"data_array",dflt:[],description:s("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null,description:"Prefix for cell values."},suffix:{valType:"string",arrayOk:!0,dflt:null,description:"Suffix for cell values."},height:{valType:"number",dflt:28,description:"The height of cells."},align:r({},n.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white",description:["Sets the cell fill color. It accepts either a specific color","or an array of colors or a 2D array of colors."].join(" ")}},font:r({},i({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[],description:["Cell values. `values[m][n]` represents the value of the `n`th point in column `m`,","therefore the `values[m]` vector length for all columns must be the same (longer vectors","will be truncated). Each value must be a finite number or a string."].join(" ")},format:{valType:"data_array",dflt:[],description:s("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null,description:"Prefix for cell values."},suffix:{valType:"string",arrayOk:!0,dflt:null,description:"Suffix for cell values."},height:{valType:"number",dflt:20,description:"The height of cells."},align:r({},n.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white",description:["Sets the cell fill color. It accepts either a specific color","or an array of colors or a 2D array of colors."].join(" ")}},font:r({},i({arrayOk:!0}))}},"calc","from-root")}),Jxt=Ee((e,t)=>{var n=Fr(),r=Eve(),a=ad().defaults;t.exports=function(e,t,i,o){function s(a,i){return n.coerce(e,t,r,a,i)}a(t,o,s),s("columnwidth"),s("header.values"),s("header.format"),s("header.align"),s("header.prefix"),s("header.suffix"),s("header.height"),s("header.line.width"),s("header.line.color"),s("header.fill.color"),n.coerceFont(s,"header.font",o.font),function(e,t){for(var n=e.columnorder||[],r=e.header.values.length,a=n.slice(0,r),i=a.slice().sort(function(e,t){return e-t}),o=a.map(function(e){return i.indexOf(e)}),s=o.length;s<r;s++)o.push(s);t("columnorder",o)}(t,s),s("cells.values"),s("cells.format"),s("cells.align"),s("cells.prefix"),s("cells.suffix"),s("cells.height"),s("cells.line.width"),s("cells.line.color"),s("cells.fill.color"),n.coerceFont(s,"cells.font",o.font),t._length=null}}),e_t=Ee((e,t)=>{var n=K3().wrap;t.exports=function(){return n({})}}),Dve=Ee((e,t)=>{t.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:"<br>",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}}),u_t=Ee((e,t)=>{var n=Dve(),r=ms().extendFlat,a=xs(),i=Lp().isTypedArray,o=Lp().isArrayOrTypedArray;function s(e){if(o(e)){for(var t=0,n=0;n<e.length;n++)t=Math.max(t,s(e[n]));return t}return e}function l(e,t){return e+t}function c(e){var t,n=e.slice(),r=1/0,a=0;for(t=0;t<n.length;t++)i(n[t])?n[t]=Array.from(n[t]):o(n[t])||(n[t]=[n[t]]),r=Math.min(r,n[t].length),a=Math.max(a,n[t].length);if(r!==a)for(t=0;t<n.length;t++){var s=a-n[t].length;s&&(n[t]=n[t].concat(u(s)))}return n}function u(e){for(var t=new Array(e),n=0;n<e;n++)t[n]="";return t}function d(e){return e.calcdata.columns.reduce(function(t,n){return n.xIndex<e.xIndex?t+n.columnWidth:t},0)}function p(e,t){return Object.keys(e).map(function(n){return r({},e[n],{auxiliaryBlocks:t})})}function h(e,t){for(var n,r={},a=0,i=0,o={firstRowIndex:null,lastRowIndex:null,rows:[]},s=0,l=0,c=0;c<e.length;c++)n=e[c],o.rows.push({rowIndex:c,rowHeight:n}),((i+=n)>=t||c===e.length-1)&&(r[a]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=c,o=f(),a+=i,s=c+1,i=0);return r}function f(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}t.exports=function(e,t){var i=c(t.cells.values),f=function(e){return e.slice(t.header.values.length,e.length)},m=c(t.header.values);m.length&&!m[0].length&&(m[0]=[""],m=c(m));var g=m.concat(f(i).map(function(){return u((m[0]||[""]).length)})),y=t.domain,b=Math.floor(e._fullLayout._size.w*(y.x[1]-y.x[0])),v=Math.floor(e._fullLayout._size.h*(y.y[1]-y.y[0])),M=t.header.values.length?g[0].map(function(){return t.header.height}):[n.emptyHeaderHeight],x=i.length?i[0].map(function(){return t.cells.height}):[],z=M.reduce(l,0),_=h(x,v-z+n.uplift),A=p(h(M,z),[]),O=p(_,A),w={},k=t._fullInput.columnorder;o(k)&&(k=Array.from(k)),k=k.concat(f(i.map(function(e,t){return t})));var T=g.map(function(e,n){var r=o(t.columnwidth)?t.columnwidth[Math.min(n,t.columnwidth.length-1)]:t.columnwidth;return a(r)?Number(r):1}),S=T.reduce(l,0);T=T.map(function(e){return e/S*b});var C=Math.max(s(t.header.line.width),s(t.cells.line.width)),E={key:t.uid+e._context.staticPlot,translateX:y.x[0]*e._fullLayout._size.w,translateY:e._fullLayout._size.h*(1-y.y[1]),size:e._fullLayout._size,width:b,maxLineWidth:C,height:v,columnOrder:k,groupHeight:v,rowBlocks:O,headerRowBlocks:A,scrollY:0,cells:r({},t.cells,{values:i}),headerCells:r({},t.header,{values:g}),gdColumns:g.map(function(e){return e[0]}),gdColumnsOriginalOrder:g.map(function(e){return e[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:g.map(function(e,t){var n=w[e];return w[e]=(n||0)+1,{key:e+"__"+w[e],label:e,specIndex:t,xIndex:k[t],xScale:d,x:void 0,calcdata:void 0,columnWidth:T[t]}})};return E.columns.forEach(function(e){e.calcdata=E,e.x=d(e)}),E}}),d_t=Ee(e=>{var t=ms().extendFlat;e.splitToPanels=function(e){var n=[0,0],r=t({},e,{key:"header",type:"header",page:0,prevPages:n,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:t({},e.calcdata,{cells:e.calcdata.headerCells})});return[t({},e,{key:"cells1",type:"cells",page:0,prevPages:n,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),t({},e,{key:"cells2",type:"cells",page:1,prevPages:n,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),r]},e.splitToCells=function(e){var t=function(e){var t=e.rowBlocks[e.page],n=t?t.rows[0].rowIndex:0,r=t?n+t.rows.length:0;return[n,r]}(e);return(e.values||[]).slice(t[0],t[1]).map(function(n,r){return{keyWithinBlock:r+("string"==typeof n&&n.match(/[<$&> ]/)?"_keybuster_"+Math.random():""),key:t[0]+r,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:n}})}}),Xve=Ee((e,t)=>{var n=Dve(),r=mo(),a=Fr(),i=a.numberFormat,o=K3(),s=vs(),l=q1(),c=Fr().raiseToTop,u=Fr().strTranslate,d=Fr().cancelTransition,p=u_t(),h=d_t(),f=ao();function m(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function g(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function y(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function b(e){return[].concat.apply([],e.map(function(e){return e})).map(function(e){return e.__data__})}function v(e,t,a){var i=e.selectAll("."+n.cn.scrollbarKit).data(o.repeat,o.keyFun);i.enter().append("g").classed(n.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),i.each(function(e){var t=e.scrollbarState;t.totalHeight=function(e){var t=e.rowBlocks;return L(t,t.length-1)+(t.length?I(t[t.length-1],1/0):1)}(e),t.scrollableAreaHeight=e.groupHeight-k(e),t.currentlyVisibleHeight=Math.min(t.totalHeight,t.scrollableAreaHeight),t.ratio=t.currentlyVisibleHeight/t.totalHeight,t.barLength=Math.max(t.ratio*t.currentlyVisibleHeight,n.goldenRatio*n.scrollbarWidth),t.barWiggleRoom=t.currentlyVisibleHeight-t.barLength,t.wiggleRoom=Math.max(0,t.totalHeight-t.scrollableAreaHeight),t.topY=0===t.barWiggleRoom?0:e.scrollY/t.wiggleRoom*t.barWiggleRoom,t.bottomY=t.topY+t.barLength,t.dragMultiplier=t.wiggleRoom/t.barWiggleRoom}).attr("transform",function(e){var t=e.width+n.scrollbarWidth/2+n.scrollbarOffset;return u(t,k(e))});var s=i.selectAll("."+n.cn.scrollbar).data(o.repeat,o.keyFun);s.enter().append("g").classed(n.cn.scrollbar,!0);var l=s.selectAll("."+n.cn.scrollbarSlider).data(o.repeat,o.keyFun);l.enter().append("g").classed(n.cn.scrollbarSlider,!0),l.attr("transform",function(e){return u(0,e.scrollbarState.topY||0)});var c=l.selectAll("."+n.cn.scrollbarGlyph).data(o.repeat,o.keyFun);c.enter().append("line").classed(n.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",n.scrollbarWidth).attr("stroke-linecap","round").attr("y1",n.scrollbarWidth/2),c.attr("y2",function(e){return e.scrollbarState.barLength-n.scrollbarWidth/2}).attr("stroke-opacity",function(e){return e.columnDragInProgress||!e.scrollbarState.barWiggleRoom||a?0:.4}),c.transition().delay(0).duration(0),c.transition().delay(n.scrollbarHideDelay).duration(n.scrollbarHideDuration).attr("stroke-opacity",0);var d=s.selectAll("."+n.cn.scrollbarCaptureZone).data(o.repeat,o.keyFun);d.enter().append("line").classed(n.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",n.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(n){var a=r.event.y,i=this.getBoundingClientRect(),o=n.scrollbarState,s=a-i.top,l=r.scale.linear().domain([0,o.scrollableAreaHeight]).range([0,o.totalHeight]).clamp(!0);o.topY<=s&&s<=o.bottomY||S(t,e,null,l(s-o.barLength/2))(n)}).call(r.behavior.drag().origin(function(e){return r.event.stopPropagation(),e.scrollbarState.scrollbarScrollInProgress=!0,e}).on("drag",S(t,e)).on("dragend",function(){})),d.attr("y2",function(e){return e.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(c.remove(),d.remove())}function M(e,t,a,i){var l=function(e){var t=e.selectAll("."+n.cn.columnCells).data(o.repeat,o.keyFun);return t.enter().append("g").classed(n.cn.columnCells,!0),t.exit().remove(),t}(a),c=function(e){var t=e.selectAll("."+n.cn.columnCell).data(h.splitToCells,function(e){return e.keyWithinBlock});return t.enter().append("g").classed(n.cn.columnCell,!0),t.exit().remove(),t}(l);!function(e){e.each(function(e,t){var n=e.calcdata.cells.font,r=e.column.specIndex,a={size:_(n.size,r,t),color:_(n.color,r,t),family:_(n.family,r,t),weight:_(n.weight,r,t),style:_(n.style,r,t),variant:_(n.variant,r,t),textcase:_(n.textcase,r,t),lineposition:_(n.lineposition,r,t),shadow:_(n.shadow,r,t)};e.rowNumber=e.key,e.align=_(e.calcdata.cells.align,r,t),e.cellBorderWidth=_(e.calcdata.cells.line.width,r,t),e.font=a})}(c);var u=function(e){var t=e.selectAll("."+n.cn.cellRect).data(o.repeat,function(e){return e.keyWithinBlock});return t.enter().append("rect").classed(n.cn.cellRect,!0),t}(c);!function(e){e.attr("width",function(e){return e.column.columnWidth}).attr("stroke-width",function(e){return e.cellBorderWidth}).each(function(e){var t=r.select(this);f.stroke(t,_(e.calcdata.cells.line.color,e.column.specIndex,e.rowNumber)),f.fill(t,_(e.calcdata.cells.fill.color,e.column.specIndex,e.rowNumber))})}(u);var d=function(e){var t=e.selectAll("."+n.cn.cellTextHolder).data(o.repeat,function(e){return e.keyWithinBlock});return t.enter().append("g").classed(n.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}(c),p=function(e){var t=e.selectAll("."+n.cn.cellText).data(o.repeat,function(e){return e.keyWithinBlock});return t.enter().append("text").classed(n.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){r.event.stopPropagation()}),t}(d);(function(e){e.each(function(e){s.font(r.select(this),e.font)})})(p),x(p,t,i,e),R(c)}function x(e,t,a,o){e.text(function(e){var t=e.column.specIndex,r=e.rowNumber,a=e.value,o="string"==typeof a,s=o&&a.match(/<br>/i),l=!o||s;e.mayHaveMarkup=o&&a.match(/[<&>]/);var c=function(e){return"string"==typeof e&&e.match(n.latexCheck)}(a);e.latex=c;var u,d,p=c?"":_(e.calcdata.cells.prefix,t,r)||"",h=c?"":_(e.calcdata.cells.suffix,t,r)||"",f=c?null:_(e.calcdata.cells.format,t,r)||null,m=p+(f?i(f)(e.value):e.value)+h;if(e.wrappingNeeded=!e.wrapped&&!l&&!c&&(u=z(m)),e.cellHeightMayIncrease=s||c||e.mayHaveMarkup||(void 0===u?z(m):u),e.needsConvertToTspans=e.mayHaveMarkup||e.wrappingNeeded||e.latex,e.wrappingNeeded){var g=(" "===n.wrapSplitCharacter?m.replace(/<a href=/gi,"<a_href="):m).split(n.wrapSplitCharacter),y=" "===n.wrapSplitCharacter?g.map(function(e){return e.replace(/<a_href=/gi,"<a href=")}):g;e.fragments=y.map(function(e){return{text:e,width:null}}),e.fragments.push({fragment:n.wrapSpacer,width:null}),d=y.join(n.lineBreaker)+n.lineBreaker+n.wrapSpacer}else delete e.fragments,d=m;return d}).attr("dy",function(e){return e.needsConvertToTspans?0:"0.75em"}).each(function(e){var i=this,s=r.select(i),c=e.wrappingNeeded?E:q;e.needsConvertToTspans?l.convertToTspans(s,o,c(a,i,t,o,e)):r.select(i.parentNode).attr("transform",function(e){return u(D(e),n.cellPad)}).attr("text-anchor",function(e){return{left:"start",center:"middle",right:"end"}[e.align]})})}function z(e){return-1!==e.indexOf(n.wrapSplitCharacter)}function _(e,t,n){if(a.isArrayOrTypedArray(e)){var r=e[Math.min(t,e.length-1)];return a.isArrayOrTypedArray(r)?r[Math.min(n,r.length-1)]:r}return e}function A(e,t,r){e.transition().ease(n.releaseTransitionEase).duration(n.releaseTransitionDuration).attr("transform",u(t.x,r))}function O(e){return"cells"===e.type}function w(e){return"header"===e.type}function k(e){return(e.rowBlocks.length?e.rowBlocks[0].auxiliaryBlocks:[]).reduce(function(e,t){return e+I(t,1/0)},0)}function T(e,t,n){var r=b(t)[0];if(void 0!==r){var a=r.rowBlocks,i=r.calcdata,o=L(a,a.length),s=r.calcdata.groupHeight-k(r),l=i.scrollY=Math.max(0,Math.min(o-s,i.scrollY)),c=function(e,t,n){for(var r=[],a=0,i=0;i<e.length;i++){for(var o=e[i],s=o.rows,l=0,c=0;c<s.length;c++)l+=s[c].rowHeight;o.allRowsHeight=l,t<a+l&&t+n>a&&r.push(i),a+=l}return r}(a,l,s);1===c.length&&(c[0]===a.length-1?c.unshift(c[0]-1):c.push(c[0]+1)),c[0]%2&&c.reverse(),t.each(function(e,t){e.page=c[t],e.scrollY=l}),t.attr("transform",function(e){var t=L(e.rowBlocks,e.page)-e.scrollY;return u(0,t)}),e&&(C(e,n,t,c,r.prevPages,r,0),C(e,n,t,c,r.prevPages,r,1),v(n,e))}}function S(e,t,a,i){return function(o){var s=o.calcdata?o.calcdata:o,l=t.filter(function(e){return s.key===e.key}),c=a||s.scrollbarState.dragMultiplier,u=s.scrollY;s.scrollY=void 0===i?s.scrollY+c*r.event.dy:i;var d=l.selectAll("."+n.cn.yColumn).selectAll("."+n.cn.columnBlock).filter(O);return T(e,d,l),s.scrollY===u}}function C(e,t,n,r,a,i,o){r[o]!==a[o]&&(clearTimeout(i.currentRepaint[o]),i.currentRepaint[o]=setTimeout(function(){var i=n.filter(function(e,t){return t===o&&r[t]!==a[t]});M(e,t,i,n),a[o]=r[o]}))}function E(e,t,a,i){return function(){var o=r.select(t.parentNode);o.each(function(e){var t=e.fragments;o.selectAll("tspan.line").each(function(e,n){t[n].width=this.getComputedTextLength()});var r,a,i=t[t.length-1].width,s=t.slice(0,-1),l=[],c=0,u=e.column.columnWidth-2*n.cellPad;for(e.value="";s.length;)c+(a=(r=s.shift()).width+i)>u&&(e.value+=l.join(n.wrapSpacer)+n.lineBreaker,l=[],c=0),l.push(r.text),c+=a;c&&(e.value+=l.join(n.wrapSpacer)),e.wrapped=!0}),o.selectAll("tspan.line").remove(),x(o.select("."+n.cn.cellText),a,e,i),r.select(t.parentNode.parentNode).call(R)}}function q(e,t,a,i,o){return function(){if(!o.settledY){var s=r.select(t.parentNode),l=N(o),c=o.key-l.firstRowIndex,d=l.rows[c].rowHeight,p=o.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*n.cellPad:d,h=Math.max(p,d);h-l.rows[c].rowHeight&&(l.rows[c].rowHeight=h,e.selectAll("."+n.cn.columnCell).call(R),T(null,e.filter(O),0),v(a,i,!0)),s.attr("transform",function(){var e=this,t=e.parentNode.getBoundingClientRect(),a=r.select(e.parentNode).select("."+n.cn.cellRect).node().getBoundingClientRect(),i=e.transform.baseVal.consolidate(),s=a.top-t.top+(i?i.matrix.f:n.cellPad);return u(D(o,r.select(e.parentNode).select("."+n.cn.cellTextHolder).node().getBoundingClientRect().width),s)}),o.settledY=!0}}}function D(e,t){switch(e.align){case"left":default:return n.cellPad;case"right":return e.column.columnWidth-(t||0)-n.cellPad;case"center":return(e.column.columnWidth-(t||0))/2}}function R(e){e.attr("transform",function(e){var t=e.rowBlocks[0].auxiliaryBlocks.reduce(function(e,t){return e+I(t,1/0)},0),n=I(N(e),e.key);return u(0,n+t)}).selectAll("."+n.cn.cellRect).attr("height",function(e){return function(e,t){return e.rows[t-e.firstRowIndex]}(N(e),e.key).rowHeight})}function L(e,t){for(var n=0,r=t-1;r>=0;r--)n+=W(e[r]);return n}function I(e,t){for(var n=0,r=0;r<e.rows.length&&e.rows[r].rowIndex<t;r++)n+=e.rows[r].rowHeight;return n}function W(e){var t=e.allRowsHeight;if(void 0!==t)return t;for(var n=0,r=0;r<e.rows.length;r++)n+=e.rows[r].rowHeight;return e.allRowsHeight=n,n}function N(e){return e.rowBlocks[e.page]}t.exports=function(e,t){var a=!e._context.staticPlot,i=e._fullLayout._paper.selectAll("."+n.cn.table).data(t.map(function(t){var n=o.unwrap(t).trace;return p(e,n)}),o.keyFun);i.exit().remove(),i.enter().append("g").classed(n.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),i.attr("width",function(e){return e.width+e.size.l+e.size.r}).attr("height",function(e){return e.height+e.size.t+e.size.b}).attr("transform",function(e){return u(e.translateX,e.translateY)});var l=i.selectAll("."+n.cn.tableControlView).data(o.repeat,o.keyFun),f=l.enter().append("g").classed(n.cn.tableControlView,!0).style("box-sizing","content-box");if(a){var x="onwheel"in document?"wheel":"mousewheel";f.on("mousemove",function(t){l.filter(function(e){return t===e}).call(v,e)}).on(x,function(t){if(!t.scrollbarState.wheeling){t.scrollbarState.wheeling=!0;var n=t.scrollY+r.event.deltaY;S(e,l,null,n)(t)||(r.event.stopPropagation(),r.event.preventDefault()),t.scrollbarState.wheeling=!1}}).call(v,e,!0)}l.attr("transform",function(e){return u(e.size.l,e.size.t)});var z=l.selectAll("."+n.cn.scrollBackground).data(o.repeat,o.keyFun);z.enter().append("rect").classed(n.cn.scrollBackground,!0).attr("fill","none"),z.attr("width",function(e){return e.width}).attr("height",function(e){return e.height}),l.each(function(t){s.setClipUrl(r.select(this),g(e,t),e)});var _=l.selectAll("."+n.cn.yColumn).data(function(e){return e.columns},o.keyFun);_.enter().append("g").classed(n.cn.yColumn,!0),_.exit().remove(),_.attr("transform",function(e){return u(e.x,0)}),a&&_.call(r.behavior.drag().origin(function(t){return A(r.select(this),t,-n.uplift),c(this),t.calcdata.columnDragInProgress=!0,v(l.filter(function(e){return t.calcdata.key===e.key}),e),t}).on("drag",function(e){var t=r.select(this),a=function(t){return(e===t?r.event.x:t.x)+t.columnWidth/2};e.x=Math.max(-n.overdrag,Math.min(e.calcdata.width+n.overdrag-e.columnWidth,r.event.x)),b(_).filter(function(t){return t.calcdata.key===e.calcdata.key}).sort(function(e,t){return a(e)-a(t)}).forEach(function(t,n){t.xIndex=n,t.x=e===t?t.x:t.xScale(t)}),_.filter(function(t){return e!==t}).transition().ease(n.transitionEase).duration(n.transitionDuration).attr("transform",function(e){return u(e.x,0)}),t.call(d).attr("transform",u(e.x,-n.uplift))}).on("dragend",function(t){var n=r.select(this),a=t.calcdata;t.x=t.xScale(t),t.calcdata.columnDragInProgress=!1,A(n,t,0),function(e,t,n){var r=t.gdColumnsOriginalOrder;t.gdColumns.sort(function(e,t){return n[r.indexOf(e)]-n[r.indexOf(t)]}),t.columnorder=n,e.emit("plotly_restyle")}(e,a,a.columns.map(function(e){return e.xIndex}))})),_.each(function(t){s.setClipUrl(r.select(this),y(e,t),e)});var k=_.selectAll("."+n.cn.columnBlock).data(h.splitToPanels,o.keyFun);k.enter().append("g").classed(n.cn.columnBlock,!0).attr("id",function(e){return e.key}),k.style("cursor",function(e){return e.dragHandle?"ew-resize":e.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var C=k.filter(w),E=k.filter(O);a&&E.call(r.behavior.drag().origin(function(e){return r.event.stopPropagation(),e}).on("drag",S(e,l,-1)).on("dragend",function(){})),M(e,l,C,k),M(e,l,E,k);var q=l.selectAll("."+n.cn.scrollAreaClip).data(o.repeat,o.keyFun);q.enter().append("clipPath").classed(n.cn.scrollAreaClip,!0).attr("id",function(t){return g(e,t)});var D=q.selectAll("."+n.cn.scrollAreaClipRect).data(o.repeat,o.keyFun);D.enter().append("rect").classed(n.cn.scrollAreaClipRect,!0).attr("x",-n.overdrag).attr("y",-n.uplift).attr("fill","none"),D.attr("width",function(e){return e.width+2*n.overdrag}).attr("height",function(e){return e.height+n.uplift}),_.selectAll("."+n.cn.columnBoundary).data(o.repeat,o.keyFun).enter().append("g").classed(n.cn.columnBoundary,!0);var R=_.selectAll("."+n.cn.columnBoundaryClippath).data(o.repeat,o.keyFun);R.enter().append("clipPath").classed(n.cn.columnBoundaryClippath,!0),R.attr("id",function(t){return y(e,t)});var L=R.selectAll("."+n.cn.columnBoundaryRect).data(o.repeat,o.keyFun);L.enter().append("rect").classed(n.cn.columnBoundaryRect,!0).attr("fill","none"),L.attr("width",function(e){return e.columnWidth+2*m(e)}).attr("height",function(e){return e.calcdata.height+2*m(e)+n.uplift}).attr("x",function(e){return-m(e)}).attr("y",function(e){return-m(e)}),T(null,E,l)}}),z_t=Ee(e=>{var t=mp().getModuleCalcData,n=Xve(),r="table";e.name=r,e.plot=function(e){var a=t(e.calcdata,r)[0];a.length&&n(e,a)},e.clean=function(e,t,n,a){var i=a._has&&a._has(r),o=t._has&&t._has(r);i&&!o&&a._paperdiv.selectAll(".table").remove()}}),w_t=Ee((e,t)=>{t.exports={attributes:Eve(),supplyDefaults:Jxt(),calc:e_t(),plot:Xve(),moduleType:"trace",name:"table",basePlotModule:z_t(),categories:["noOpacity"],meta:{description:["Table view for detailed data viewing.","The data are arranged in a grid of rows and columns.","Most styling can be specified for columns, rows or individual cells.","Table is using a column-major order, ie. the grid is represented as a vector of column vectors."].join(" ")}}}),T_t=Ee((e,t)=>{t.exports=w_t()}),q_t=Ee((e,t)=>{var n=Mu(),r=oh(),a=vp(),i=Pd().descriptionWithDates,o=Wu().overrideAll,s=pp().dash,l=ms().extendFlat;t.exports={color:{valType:"color",editType:"calc",description:["Sets default for all colors associated with this axis","all at once: line, font, tick, and grid colors.","Grid color is lightened by blending this with the plot background","Individual pieces can override this."].join(" ")},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc",description:"Sets the title of this axis."},font:n({editType:"calc",description:"Sets this axis' title font."}),offset:{valType:"number",dflt:10,editType:"calc",description:["An additional amount by which to offset the title from the tick","labels, given in pixels."].join(" ")},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc",description:["Sets the axis type.","By default, plotly attempts to determined the axis type","by looking into the data of the traces that referenced","the axis in question."].join(" ")},autotypenumbers:a.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc",description:["Determines whether or not the range of this axis is","computed in relation to the input data.","See `rangemode` for more info.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc",description:["If *normal*, the range is computed in relation to the extrema","of the input data.","If *tozero*, the range extends to 0,","regardless of the input data","If *nonnegative*, the range is non-negative,","regardless of the input data."].join(" ")},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],description:["Sets the range of this axis.","If the axis `type` is *log*, then you must take the log of your","desired range (e.g. to set the range from 1 to 100,","set the range from 0 to 2).","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},fixedrange:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not this axis is zoom-able.","If true, then zoom is disabled."].join(" ")},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc",description:["Specifies the maximum number of ticks for the particular axis.","The actual number of ticks will be chosen automatically to be","less than or equal to `nticks`.","Has an effect only if `tickmode` is set to *auto*."].join(" ")},tickvals:{valType:"data_array",editType:"calc",description:["Sets the values at which ticks on this axis appear.","Only has an effect if `tickmode` is set to *array*.","Used with `ticktext`."].join(" ")},ticktext:{valType:"data_array",editType:"calc",description:["Sets the text displayed at the ticks position via `tickvals`.","Only has an effect if `tickmode` is set to *array*.","Used with `tickvals`."].join(" ")},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc",description:["Determines whether axis labels are drawn on the low side,","the high side, both, or neither side of the axis."].join(" ")},labelalias:l({},a.labelalias,{editType:"calc"}),tickfont:n({editType:"calc",description:"Sets the tick font."}),tickangle:{valType:"angle",dflt:"auto",editType:"calc",description:["Sets the angle of the tick labels with respect to the horizontal.","For example, a `tickangle` of -90 draws the tick labels","vertically."].join(" ")},tickprefix:{valType:"string",dflt:"",editType:"calc",description:"Sets a tick label prefix."},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc",description:["If *all*, all tick labels are displayed with a prefix.","If *first*, only the first tick is displayed with a prefix.","If *last*, only the last tick is displayed with a suffix.","If *none*, tick prefixes are hidden."].join(" ")},ticksuffix:{valType:"string",dflt:"",editType:"calc",description:"Sets a tick label suffix."},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc",description:"Same as `showtickprefix` but for tick suffixes."},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc",description:["If *all*, all exponents are shown besides their significands.","If *first*, only the exponent of the first tick is shown.","If *last*, only the exponent of the last tick is shown.","If *none*, no exponents appear."].join(" ")},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"calc",description:["Determines a formatting rule for the tick exponents.","For example, consider the number 1,000,000,000.","If *none*, it appears as 1,000,000,000.","If *e*, 1e+9.","If *E*, 1E+9.","If *power*, 1x10^9 (with 9 in a super script).","If *SI*, 1G.","If *B*, 1B."].join(" ")},minexponent:{valType:"number",dflt:3,min:0,editType:"calc",description:["Hide SI prefix for 10^n if |n| is below this number"].join(" ")},separatethousands:{valType:"boolean",dflt:!1,editType:"calc",description:['If "true", even 4-digit integers are separated'].join(" ")},tickformat:{valType:"string",dflt:"",editType:"calc",description:i("tick label")},tickformatstops:o(a.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc",description:["Specifies the ordering logic for the case of categorical variables.","By default, plotly uses *trace*, which specifies the order that is present in the data supplied.","Set `categoryorder` to *category ascending* or *category descending* if order should be determined by","the alphanumerical order of the category names.","Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category","is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to","the *trace* mode. The unspecified categories will follow the categories in `categoryarray`."].join(" ")},categoryarray:{valType:"data_array",editType:"calc",description:["Sets the order in which categories on this axis appear.","Only has an effect if `categoryorder` is set to *array*.","Used with `categoryorder`."].join(" ")},labelpadding:{valType:"integer",dflt:10,editType:"calc",description:"Extra padding between label and the axis"},labelprefix:{valType:"string",editType:"calc",description:"Sets a axis label prefix."},labelsuffix:{valType:"string",dflt:"",editType:"calc",description:"Sets a axis label suffix."},showline:{valType:"boolean",dflt:!1,editType:"calc",description:["Determines whether or not a line bounding this axis is drawn."].join(" ")},linecolor:{valType:"color",dflt:r.defaultLine,editType:"calc",description:"Sets the axis line color."},linewidth:{valType:"number",min:0,dflt:1,editType:"calc",description:"Sets the width (in px) of the axis line."},gridcolor:{valType:"color",editType:"calc",description:"Sets the axis line color."},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc",description:"Sets the width (in px) of the axis line."},griddash:l({},s,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc",description:["Determines whether or not grid lines are drawn.","If *true*, the grid lines are drawn at every tick mark."].join(" ")},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc",description:"Sets the number of minor grid ticks per major grid tick"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc",description:"Sets the width (in px) of the grid lines."},minorgriddash:l({},s,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:r.lightLine,editType:"calc",description:"Sets the color of the grid lines."},startline:{valType:"boolean",editType:"calc",description:["Determines whether or not a line is drawn at along the starting value","of this axis.","If *true*, the start line is drawn on top of the grid lines."].join(" ")},startlinecolor:{valType:"color",editType:"calc",description:"Sets the line color of the start line."},startlinewidth:{valType:"number",dflt:1,editType:"calc",description:"Sets the width (in px) of the start line."},endline:{valType:"boolean",editType:"calc",description:["Determines whether or not a line is drawn at along the final value","of this axis.","If *true*, the end line is drawn on top of the grid lines."].join(" ")},endlinewidth:{valType:"number",dflt:1,editType:"calc",description:"Sets the width (in px) of the end line."},endlinecolor:{valType:"color",editType:"calc",description:"Sets the line color of the end line."},tick0:{valType:"number",min:0,dflt:0,editType:"calc",description:"The starting index of grid lines along the axis"},dtick:{valType:"number",min:0,dflt:1,editType:"calc",description:"The stride between grid lines along the axis"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc",description:"The starting index of grid lines along the axis"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc",description:"The stride between grid lines along the axis"},editType:"calc"}}),Q$=Ee((e,t)=>{var n=Mu(),r=q_t(),a=oh(),i=n({editType:"calc",description:"The default font used for axis & tick labels on this carpet"}),o=Id().zorder;i.family.dflt='"Open Sans", verdana, arial, sans-serif',i.size.dflt=12,i.color.dflt=a.defaultLine,t.exports={carpet:{valType:"string",editType:"calc",description:["An identifier for this carpet, so that `scattercarpet` and","`contourcarpet` traces can specify a carpet plot on which","they lie"].join(" ")},x:{valType:"data_array",editType:"calc+clearAxisTypes",description:["A two dimensional array of x coordinates at each carpet point.","If omitted, the plot is a cheater plot and the xaxis is hidden","by default."].join(" ")},y:{valType:"data_array",editType:"calc+clearAxisTypes",description:"A two dimensional array of y coordinates at each carpet point."},a:{valType:"data_array",editType:"calc",description:["An array containing values of the first parameter value"].join(" ")},a0:{valType:"number",dflt:0,editType:"calc",description:["Alternate to `a`.","Builds a linear space of a coordinates.","Use with `da`","where `a0` is the starting coordinate and `da` the step."].join(" ")},da:{valType:"number",dflt:1,editType:"calc",description:["Sets the a coordinate step.","See `a0` for more info."].join(" ")},b:{valType:"data_array",editType:"calc",description:"A two dimensional array of y coordinates at each carpet point."},b0:{valType:"number",dflt:0,editType:"calc",description:["Alternate to `b`.","Builds a linear space of a coordinates.","Use with `db`","where `b0` is the starting coordinate and `db` the step."].join(" ")},db:{valType:"number",dflt:1,editType:"calc",description:["Sets the b coordinate step.","See `b0` for more info."].join(" ")},cheaterslope:{valType:"number",dflt:1,editType:"calc",description:["The shift applied to each successive row of data in creating a cheater plot.","Only used if `x` is been omitted."].join(" ")},aaxis:r,baxis:r,font:i,color:{valType:"color",dflt:a.defaultLine,editType:"plot",description:["Sets default for all colors associated with this axis","all at once: line, font, tick, and grid colors.","Grid color is lightened by blending this with the plot background","Individual pieces can override this."].join(" ")},zorder:o}}),N_t=Ee((e,t)=>{var n=Fr().isArray1D;t.exports=function(e,t,r){var a=r("x"),i=a&&a.length,o=r("y"),s=o&&o.length;if(!i&&!s)return!1;if(t._cheater=!a,i&&!n(a)||s&&!n(o))t._length=null;else{var l=i?a.length:1/0;s&&(l=Math.min(l,o.length)),t.a&&t.a.length&&(l=Math.min(l,t.a.length)),t.b&&t.b.length&&(l=Math.min(l,t.b.length)),t._length=l}return!0}}),B_t=Ee((e,t)=>{var n=Q$(),r=ao().addOpacity,a=vo(),i=Fr(),o=mw(),s=Nz(),l=Wz(),c=Cj(),u=g3(),d=uS();t.exports=function(e,t,p){var h=p.letter,f=p.font||{},m=n[h+"axis"];function g(n,r){return i.coerce(e,t,m,n,r)}function y(n,r){return i.coerce2(e,t,m,n,r)}p.name&&(t._name=p.name,t._id=p.name),g("autotypenumbers",p.autotypenumbersDflt);var b=g("type");("-"===b&&(p.data&&function(e,t){if("-"===e.type){var n=e[e._id.charAt(0)+"calendar"];e.type=d(t,n,{autotypenumbers:e.autotypenumbers})}}(t,p.data),"-"===t.type?t.type="linear":b=e.type=t.type),g("smoothing"),g("cheatertype"),g("showticklabels"),g("labelprefix",h+" = "),g("labelsuffix"),g("showtickprefix"),g("showticksuffix"),g("separatethousands"),g("tickformat"),g("exponentformat"),g("minexponent"),g("showexponent"),g("categoryorder"),g("tickmode"),g("tickvals"),g("ticktext"),g("tick0"),g("dtick"),"array"===t.tickmode&&(g("arraytick0"),g("arraydtick")),g("labelpadding"),t._hovertitle=h,"date"===b)&&a.getComponentMethod("calendars","handleDefaults")(e,t,"calendar",p.calendar);u(t,p.fullLayout),t.c2p=i.identity;var v=g("color",p.dfltColor),M=v===e.color?v:f.color;g("title.text")&&(i.coerceFont(g,"title.font",f,{overrideDflt:{size:i.bigFont(f.size),color:M}}),g("title.offset")),g("tickangle"),g("autorange",!t.isValidRange(e.range))&&g("rangemode"),g("range"),t.cleanRange(),g("fixedrange"),o(e,t,g,b),l(e,t,g,b,p),s(e,t,g,b,p),c(e,t,g,{data:p.data,dataAttr:h});var x=y("gridcolor",r(v,.3)),z=y("gridwidth"),_=y("griddash"),A=g("showgrid");A||(delete t.gridcolor,delete t.gridwidth,delete t.griddash);var O=y("startlinecolor",v),w=y("startlinewidth",z);g("startline",t.showgrid||!!O||!!w)||(delete t.startlinecolor,delete t.startlinewidth);var k=y("endlinecolor",v),T=y("endlinewidth",z);return g("endline",t.showgrid||!!k||!!T)||(delete t.endlinecolor,delete t.endlinewidth),A?(g("minorgridcount"),g("minorgridwidth",z),g("minorgriddash",_),g("minorgridcolor",r(x,.06)),t.minorgridcount||(delete t.minorgridwidth,delete t.minorgriddash,delete t.minorgridcolor)):(delete t.gridcolor,delete t.gridwidth,delete t.griddash),"none"===t.showticklabels&&(delete t.tickfont,delete t.tickangle,delete t.showexponent,delete t.exponentformat,delete t.minexponent,delete t.tickformat,delete t.showticksuffix,delete t.showtickprefix),t.showticksuffix||delete t.ticksuffix,t.showtickprefix||delete t.tickprefix,g("tickmode"),t}}),H_t=Ee((e,t)=>{var n=B_t(),r=Kl();t.exports=function(e,t,a,i,o){i("a")||(i("da"),i("a0")),i("b")||(i("db"),i("b0")),function(e,t,a,i){var o=["aaxis","baxis"];o.forEach(function(o){var s=o.charAt(0),l=e[o]||{},c=r.newContainer(t,o),u={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:s+"axis",letter:s,font:t.font,name:o,data:e[s],calendar:t.calendar,dfltColor:i,bgColor:a.paper_bgcolor,autotypenumbersDflt:a.autotypenumbers,fullLayout:a};n(l,c,u),c._categories=c._categories||[],!e[o]&&"-"!==l.type&&(e[o]={type:l.type})})}(e,t,a,o)}}),G_t=Ee((e,t)=>{var n=Fr(),r=N_t(),a=H_t(),i=Q$(),o=oh();t.exports=function(e,t,s,l){function c(r,a){return n.coerce(e,t,i,r,a)}t._clipPathId="clip"+t.uid+"carpet";var u=c("color",o.defaultLine);(n.coerceFont(c,"font",l.font),c("carpet"),a(e,t,l,c,u),t.a&&t.b)?(t.a.length<3&&(t.aaxis.smoothing=0),t.b.length<3&&(t.baxis.smoothing=0),r(e,t,c)||(t.visible=!1),t._cheater&&c("cheaterslope"),c("zorder")):t.visible=!1}}),$ve=Ee((e,t)=>{var n=Fr().isArrayOrTypedArray;t.exports=function(e,t,r){var a;for(n(e)?e.length>t.length&&(e=e.slice(0,t.length)):e=[],a=0;a<t.length;a++)e[a]=r(t[a]);return e}}),Kve=Ee((e,t)=>{t.exports=function(e,t,n){if(0===e.length)return"";var r,a=[],i=n?3:1;for(r=0;r<e.length;r+=i)a.push(e[r]+","+t[r]),n&&r<e.length-i&&(a.push("C"),a.push([e[r+1]+","+t[r+1],e[r+2]+","+t[r+2]+" "].join(" ")));return a.join(n?"":"L")}}),$_t=Ee((e,t)=>{t.exports=function(e,t,n,r,a,i){var o=a[0]*e.dpdx(t),s=a[1]*e.dpdy(n),l=1,c=1;if(i){var u=Math.sqrt(a[0]*a[0]+a[1]*a[1]),d=Math.sqrt(i[0]*i[0]+i[1]*i[1]),p=(a[0]*i[0]+a[1]*i[1])/u/d;c=Math.max(0,p)}var h=180*Math.atan2(s,o)/Math.PI;return h<-90?(h+=180,l=-l):h>90&&(h-=180,l=-l),{angle:h,flip:l,p:e.c2p(r,t,n),offsetMultplier:c}}}),azt=Ee((e,t)=>{var n=mo(),r=vs(),a=$ve(),i=Kve(),o=$_t(),s=q1(),l=Fr(),c=l.strRotate,u=l.strTranslate,d=lh();function p(e,t,o,s,l,c,u){var d="const-"+l+"-lines",p=o.selectAll("."+d).data(c);p.enter().append("path").classed(d,!0).style("vector-effect",u?"none":"non-scaling-stroke"),p.each(function(o){var s=o,l=s.x,c=s.y,u=a([],l,e.c2p),d=a([],c,t.c2p),p="M"+i(u,d,s.smoothing);n.select(this).attr("d",p).style("stroke-width",s.width).style("stroke",s.color).style("stroke-dasharray",r.dashStyle(s.dash,s.width)).style("fill","none")}),p.exit().remove()}function h(e,t,a,i,l,d,p,h){var f=d.selectAll("text."+h).data(p);f.enter().append("text").classed(h,!0);var m=0,g={};return f.each(function(l,d){var p;if("auto"===l.axis.tickangle)p=o(i,t,a,l.xy,l.dxy);else{var h=(l.axis.tickangle+180)*Math.PI/180;p=o(i,t,a,l.xy,[Math.cos(h),Math.sin(h)])}d||(g={angle:p.angle,flip:p.flip});var f=(l.endAnchor?-1:1)*p.flip,y=n.select(this).attr({"text-anchor":f>0?"start":"end","data-notex":1}).call(r.font,l.font).text(l.text).call(s.convertToTspans,e),b=r.bBox(this);y.attr("transform",u(p.p[0],p.p[1])+c(p.angle)+u(l.axis.labelpadding*f,.3*b.height)),m=Math.max(m,b.width+l.axis.labelpadding)}),f.exit().remove(),g.maxExtent=m,g}t.exports=function(e,t,r,s){var c=e._context.staticPlot,u=t.xaxis,d=t.yaxis,f=e._fullLayout._clips;l.makeTraceGroups(s,r,"trace").each(function(t){var r=n.select(this),s=t[0],m=s.trace,y=m.aaxis,b=m.baxis,v=l.ensureSingle(r,"g","minorlayer"),M=l.ensureSingle(r,"g","majorlayer"),x=l.ensureSingle(r,"g","boundarylayer"),z=l.ensureSingle(r,"g","labellayer");r.style("opacity",m.opacity),p(u,d,M,y,"a",y._gridlines,!0),p(u,d,M,b,"b",b._gridlines,!0),p(u,d,v,y,"a",y._minorgridlines,!0),p(u,d,v,b,"b",b._minorgridlines,!0),p(u,d,x,y,"a-boundary",y._boundarylines,c),p(u,d,x,b,"b-boundary",b._boundarylines,c);var _=h(e,u,d,m,s,z,y._labels,"a-label"),A=h(e,u,d,m,s,z,b._labels,"b-label");(function(e,t,n,r,a,i,s,c){var u,d,p,h,f=l.aggNums(Math.min,null,n.a),m=l.aggNums(Math.max,null,n.a),y=l.aggNums(Math.min,null,n.b),b=l.aggNums(Math.max,null,n.b);u=.5*(f+m),d=y,p=n.ab2xy(u,d,!0),h=n.dxyda_rough(u,d),void 0===s.angle&&l.extendFlat(s,o(n,a,i,p,n.dxydb_rough(u,d))),g(e,t,n,r,p,h,n.aaxis,a,i,s,"a-title"),u=f,d=.5*(y+b),p=n.ab2xy(u,d,!0),h=n.dxydb_rough(u,d),void 0===c.angle&&l.extendFlat(c,o(n,a,i,p,n.dxyda_rough(u,d))),g(e,t,n,r,p,h,n.baxis,a,i,c,"b-title")})(e,z,m,s,u,d,_,A),function(e,t,n,r,o){var s,c,u,d,p=n.select("#"+e._clipPathId);p.size()||(p=n.append("clipPath").classed("carpetclip",!0));var h=l.ensureSingle(p,"path","carpetboundary"),f=t.clipsegments,m=[];for(d=0;d<f.length;d++)s=f[d],c=a([],s.x,r.c2p),u=a([],s.y,o.c2p),m.push(i(c,u,s.bicubic));var g="M"+m.join("L")+"Z";p.attr("id",e._clipPathId),h.attr("d",g)}(m,s,f,u,d)})};var f=d.LINE_SPACING,m=(1-d.MID_SHIFT)/f+1;function g(e,t,a,i,l,d,p,h,g,y,b){var v=[];p.title.text&&v.push(p.title.text);var M=t.selectAll("text."+b).data(v),x=y.maxExtent;M.enter().append("text").classed(b,!0),M.each(function(){var t=o(a,h,g,l,d);-1===["start","both"].indexOf(p.showticklabels)&&(x=0);var i=p.title.font.size;x+=i+p.title.offset;var b=(y.angle+(y.flip<0?180:0)-t.angle+450)%360,v=b>90&&b<270,M=n.select(this);M.text(p.title.text).call(s.convertToTspans,e),v&&(x=(-s.lineCount(M)+m)*f*i-x),M.attr("transform",u(t.p[0],t.p[1])+c(t.angle)+u(0,x)).attr("text-anchor","middle").call(r.font,p.title.font)}),M.exit().remove()}}),ozt=Ee((e,t)=>{var n=Fr().isArrayOrTypedArray;t.exports=function(e,t,r){var a,i,o,s,l,c=[],u=n(e)?e.length:e,d=n(t)?t.length:t,p=n(e)?e:null,h=n(t)?t:null;p&&(o=(p.length-1)/(p[p.length-1]-p[0])/(u-1)),h&&(s=(h.length-1)/(h[h.length-1]-h[0])/(d-1));var f,m=1/0,g=-1/0;for(i=0;i<d;i++)for(c[i]=[],l=h?(h[i]-h[0])*s:i/(d-1),a=0;a<u;a++)f=(p?(p[a]-p[0])*o:a/(u-1))-l*r,m=Math.min(f,m),g=Math.max(f,g),c[i][a]=f;var y=1/(g-m),b=-m*y;for(i=0;i<d;i++)for(a=0;a<u;a++)c[i][a]=y*c[i][a]+b;return c}}),uzt=Ee((e,t)=>{var n=Fr().isArrayOrTypedArray;function r(e,t){if(!n(e)||t>=10)return null;for(var a=1/0,i=-1/0,o=e.length,s=0;s<o;s++){var l=e[s];if(n(l)){var c=r(l,t+1);c&&(a=Math.min(c[0],a),i=Math.max(c[1],i))}else a=Math.min(l,a),i=Math.max(l,i)}return[a,i]}t.exports=function(e){return r(e,0)}}),fzt=Ee((e,t)=>{var n=es(),r=ms().extendFlat;t.exports=function(e,t,a){var i,o,s,l,c,u,d,p,h,f,m,g,y,b,v=e["_"+t],M=e[t+"axis"],x=M._gridlines=[],z=M._minorgridlines=[],_=M._boundarylines=[],A=e["_"+a],O=e[a+"axis"];"array"===M.tickmode&&(M.tickvals=v.slice());var w=e._xctrl,k=e._yctrl,T=w[0].length,S=w.length,C=e._a.length,E=e._b.length;n.prepTicks(M),"array"===M.tickmode&&delete M.tickvals;var q=M.smoothing?3:1;function D(n){var r,i,o,s,l,c,u,d,h,f,m,g,y=[],b=[],v={};if("b"===t)for(i=e.b2j(n),o=Math.floor(Math.max(0,Math.min(E-2,i))),s=i-o,v.length=E,v.crossLength=C,v.xy=function(t){return e.evalxy([],t,i)},v.dxy=function(t,n){return e.dxydi([],t,o,n,s)},r=0;r<C;r++)c=Math.min(C-2,r),u=r-c,d=e.evalxy([],r,i),O.smoothing&&r>0&&(h=e.dxydi([],r-1,o,0,s),y.push(l[0]+h[0]/3),b.push(l[1]+h[1]/3),f=e.dxydi([],r-1,o,1,s),y.push(d[0]-f[0]/3),b.push(d[1]-f[1]/3)),y.push(d[0]),b.push(d[1]),l=d;else for(r=e.a2i(n),c=Math.floor(Math.max(0,Math.min(C-2,r))),u=r-c,v.length=C,v.crossLength=E,v.xy=function(t){return e.evalxy([],r,t)},v.dxy=function(t,n){return e.dxydj([],c,t,u,n)},i=0;i<E;i++)o=Math.min(E-2,i),s=i-o,d=e.evalxy([],r,i),O.smoothing&&i>0&&(m=e.dxydj([],c,i-1,u,0),y.push(l[0]+m[0]/3),b.push(l[1]+m[1]/3),g=e.dxydj([],c,i-1,u,1),y.push(d[0]-g[0]/3),b.push(d[1]-g[1]/3)),y.push(d[0]),b.push(d[1]),l=d;return v.axisLetter=t,v.axis=M,v.crossAxis=O,v.value=n,v.constvar=a,v.index=p,v.x=y,v.y=b,v.smoothing=O.smoothing,v}function R(n){var r,i,o,s,l,c=[],u=[],d={};if(d.length=v.length,d.crossLength=A.length,"b"===t)for(o=Math.max(0,Math.min(E-2,n)),l=Math.min(1,Math.max(0,n-o)),d.xy=function(t){return e.evalxy([],t,n)},d.dxy=function(t,n){return e.dxydi([],t,o,n,l)},r=0;r<T;r++)c[r]=w[n*q][r],u[r]=k[n*q][r];else for(i=Math.max(0,Math.min(C-2,n)),s=Math.min(1,Math.max(0,n-i)),d.xy=function(t){return e.evalxy([],n,t)},d.dxy=function(t,n){return e.dxydj([],i,t,s,n)},r=0;r<S;r++)c[r]=w[r][n*q],u[r]=k[r][n*q];return d.axisLetter=t,d.axis=M,d.crossAxis=O,d.value=v[n],d.constvar=a,d.index=n,d.x=c,d.y=u,d.smoothing=O.smoothing,d}if("array"===M.tickmode){for(l=5e-15,u=(c=[Math.floor((v.length-1-M.arraytick0)/M.arraydtick*(1+l)),Math.ceil(-M.arraytick0/M.arraydtick/(1+l))].sort(function(e,t){return e-t}))[0]-1,d=c[1]+1,p=u;p<d;p++)!((o=M.arraytick0+M.arraydtick*p)<0||o>v.length-1)&&x.push(r(R(o),{color:M.gridcolor,width:M.gridwidth,dash:M.griddash}));for(p=u;p<d;p++)if(s=M.arraytick0+M.arraydtick*p,m=Math.min(s+M.arraydtick,v.length-1),!(s<0||s>v.length-1||m<0||m>v.length-1))for(g=v[s],y=v[m],i=0;i<M.minorgridcount;i++)!((b=m-s)<=0)&&(!((f=g+(y-g)*(i+1)/(M.minorgridcount+1)*(M.arraydtick/b))<v[0]||f>v[v.length-1])&&z.push(r(D(f),{color:M.minorgridcolor,width:M.minorgridwidth,dash:M.minorgriddash})));M.startline&&_.push(r(R(0),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&_.push(r(R(v.length-1),{color:M.endlinecolor,width:M.endlinewidth}))}else{for(l=5e-15,u=(c=[Math.floor((v[v.length-1]-M.tick0)/M.dtick*(1+l)),Math.ceil((v[0]-M.tick0)/M.dtick/(1+l))].sort(function(e,t){return e-t}))[0],d=c[1],p=u;p<=d;p++)h=M.tick0+M.dtick*p,x.push(r(D(h),{color:M.gridcolor,width:M.gridwidth,dash:M.griddash}));for(p=u-1;p<d+1;p++)for(h=M.tick0+M.dtick*p,i=0;i<M.minorgridcount;i++)!((f=h+M.dtick*(i+1)/(M.minorgridcount+1))<v[0]||f>v[v.length-1])&&z.push(r(D(f),{color:M.minorgridcolor,width:M.minorgridwidth,dash:M.minorgriddash}));M.startline&&_.push(r(D(v[0]),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&_.push(r(D(v[v.length-1]),{color:M.endlinecolor,width:M.endlinewidth}))}}}),vzt=Ee((e,t)=>{var n=es(),r=ms().extendFlat;t.exports=function(e,t){var a,i,o,s=t._labels=[],l=t._gridlines;for(a=0;a<l.length;a++)o=l[a],-1!==["start","both"].indexOf(t.showticklabels)&&(i=n.tickText(t,o.value),r(i,{prefix:void 0,suffix:void 0,endAnchor:!0,xy:o.xy(0),dxy:o.dxy(0,0),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===a,isLast:a===l.length-1}),s.push(i)),-1!==["end","both"].indexOf(t.showticklabels)&&(i=n.tickText(t,o.value),r(i,{endAnchor:!1,xy:o.xy(o.crossLength-1),dxy:o.dxy(o.crossLength-2,1),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===a,isLast:a===l.length-1}),s.push(i))}}),yzt=Ee((e,t)=>{t.exports=function(e,t,n,r){var a,i,o,s=[],l=!!n.smoothing,c=!!r.smoothing,u=e[0].length-1,d=e.length-1;for(a=0,i=[],o=[];a<=u;a++)i[a]=e[0][a],o[a]=t[0][a];for(s.push({x:i,y:o,bicubic:l}),a=0,i=[],o=[];a<=d;a++)i[a]=e[a][u],o[a]=t[a][u];for(s.push({x:i,y:o,bicubic:c}),a=u,i=[],o=[];a>=0;a--)i[u-a]=e[d][a],o[u-a]=t[d][a];for(s.push({x:i,y:o,bicubic:l}),a=d,i=[],o=[];a>=0;a--)i[d-a]=e[a][0],o[d-a]=t[a][0];return s.push({x:i,y:o,bicubic:c}),s}}),Mzt=Ee((e,t)=>{var n=Fr();t.exports=function(e,t,r){var a,i,o,s=[],l=[],c=e[0].length,u=e.length;function d(t,n){var r,a=0,i=0;return t>0&&void 0!==(r=e[n][t-1])&&(i++,a+=r),t<c-1&&void 0!==(r=e[n][t+1])&&(i++,a+=r),n>0&&void 0!==(r=e[n-1][t])&&(i++,a+=r),n<u-1&&void 0!==(r=e[n+1][t])&&(i++,a+=r),a/Math.max(1,i)}var p=0;for(a=0;a<c;a++)for(i=0;i<u;i++)void 0===e[i][a]&&(s.push(a),l.push(i),e[i][a]=d(a,i)),p=Math.max(p,Math.abs(e[i][a]));if(!s.length)return e;var h,f,m,g,y,b,v,M,x,z,_,A=0,O=0,w=s.length;do{for(A=0,o=0;o<w;o++){a=s[o],i=l[o];var k,T,S,C,E,q,D=0,R=0;0===a?(S=t[E=Math.min(c-1,2)],C=t[1],k=e[i][E],R+=(T=e[i][1])+(T-k)*(t[0]-C)/(C-S),D++):a===c-1&&(S=t[E=Math.max(0,c-3)],C=t[c-2],k=e[i][E],R+=(T=e[i][c-2])+(T-k)*(t[c-1]-C)/(C-S),D++),(0===a||a===c-1)&&i>0&&i<u-1&&(h=r[i+1]-r[i],R+=((f=r[i]-r[i-1])*e[i+1][a]+h*e[i-1][a])/(f+h),D++),0===i?(S=r[q=Math.min(u-1,2)],C=r[1],k=e[q][a],R+=(T=e[1][a])+(T-k)*(r[0]-C)/(C-S),D++):i===u-1&&(S=r[q=Math.max(0,u-3)],C=r[u-2],k=e[q][a],R+=(T=e[u-2][a])+(T-k)*(r[u-1]-C)/(C-S),D++),(0===i||i===u-1)&&a>0&&a<c-1&&(h=t[a+1]-t[a],R+=((f=t[a]-t[a-1])*e[i][a+1]+h*e[i][a-1])/(f+h),D++),D?R/=D:(m=t[a+1]-t[a],g=t[a]-t[a-1],M=(y=r[i+1]-r[i])*(b=r[i]-r[i-1])*(y+b),R=((v=m*g*(m+g))*(b*e[i+1][a]+y*e[i-1][a])+M*(g*e[i][a+1]+m*e[i][a-1]))/(M*(g+m)+v*(b+y))),A+=(z=(x=R-e[i][a])/p)*z,_=D?0:.85,e[i][a]+=x*(1+_)}A=Math.sqrt(A)}while(O++<100&&A>1e-5);return n.log("Smoother converged to",A,"after",O,"iterations"),e}}),_zt=Ee((e,t)=>{t.exports={RELATIVE_CULL_TOLERANCE:1e-6}}),wzt=Ee((e,t)=>{t.exports=function(e,t,n,r){var a=e[0]-t[0],i=e[1]-t[1],o=n[0]-t[0],s=n[1]-t[1],l=Math.pow(a*a+i*i,.25),c=Math.pow(o*o+s*s,.25),u=(c*c*a-l*l*o)*r,d=(c*c*i-l*l*s)*r,p=c*(l+c)*3,h=l*(l+c)*3;return[[t[0]+(p&&u/p),t[1]+(p&&d/p)],[t[0]-(h&&u/h),t[1]-(h&&d/h)]]}}),Tzt=Ee((e,t)=>{var n=wzt(),r=Fr().ensureArray;function a(e,t,n){var r=-.5*n[0]+1.5*t[0],a=-.5*n[1]+1.5*t[1];return[(2*r+e[0])/3,(2*a+e[1])/3]}t.exports=function(e,t,i,o,s,l){var c,u,d,p,h,f,m,g,y,b,v=i[0].length,M=i.length,x=s?3*v-2:v,z=l?3*M-2:M;for(e=r(e,z),t=r(t,z),d=0;d<z;d++)e[d]=r(e[d],x),t[d]=r(t[d],x);for(u=0,p=0;u<M;u++,p+=l?3:1)for(h=e[p],f=t[p],m=i[u],g=o[u],c=0,d=0;c<v;c++,d+=s?3:1)h[d]=m[c],f[d]=g[c];if(s)for(u=0,p=0;u<M;u++,p+=l?3:1){for(c=1,d=3;c<v-1;c++,d+=3)y=n([i[u][c-1],o[u][c-1]],[i[u][c],o[u][c]],[i[u][c+1],o[u][c+1]],s),e[p][d-1]=y[0][0],t[p][d-1]=y[0][1],e[p][d+1]=y[1][0],t[p][d+1]=y[1][1];b=a([e[p][0],t[p][0]],[e[p][2],t[p][2]],[e[p][3],t[p][3]]),e[p][1]=b[0],t[p][1]=b[1],b=a([e[p][x-1],t[p][x-1]],[e[p][x-3],t[p][x-3]],[e[p][x-4],t[p][x-4]]),e[p][x-2]=b[0],t[p][x-2]=b[1]}if(l)for(d=0;d<x;d++){for(p=3;p<z-3;p+=3)y=n([e[p-3][d],t[p-3][d]],[e[p][d],t[p][d]],[e[p+3][d],t[p+3][d]],l),e[p-1][d]=y[0][0],t[p-1][d]=y[0][1],e[p+1][d]=y[1][0],t[p+1][d]=y[1][1];b=a([e[0][d],t[0][d]],[e[2][d],t[2][d]],[e[3][d],t[3][d]]),e[1][d]=b[0],t[1][d]=b[1],b=a([e[z-1][d],t[z-1][d]],[e[z-3][d],t[z-3][d]],[e[z-4][d],t[z-4][d]]),e[z-2][d]=b[0],t[z-2][d]=b[1]}if(s&&l)for(p=1;p<z;p+=(p+1)%3==0?2:1){for(d=3;d<x-3;d+=3)y=n([e[p][d-3],t[p][d-3]],[e[p][d],t[p][d]],[e[p][d+3],t[p][d+3]],s),e[p][d-1]=.5*(e[p][d-1]+y[0][0]),t[p][d-1]=.5*(t[p][d-1]+y[0][1]),e[p][d+1]=.5*(e[p][d+1]+y[1][0]),t[p][d+1]=.5*(t[p][d+1]+y[1][1]);b=a([e[p][0],t[p][0]],[e[p][2],t[p][2]],[e[p][3],t[p][3]]),e[p][1]=.5*(e[p][1]+b[0]),t[p][1]=.5*(t[p][1]+b[1]),b=a([e[p][x-1],t[p][x-1]],[e[p][x-3],t[p][x-3]],[e[p][x-4],t[p][x-4]]),e[p][x-2]=.5*(e[p][x-2]+b[0]),t[p][x-2]=.5*(t[p][x-2]+b[1])}return[e,t]}}),kzt=Ee((e,t)=>{t.exports=function(e,t,n,r,a){var i=t-2,o=n-2;return r&&a?function(t,n,r){t||(t=[]);var a,s,l,c,u,d,p=Math.max(0,Math.min(Math.floor(n),i)),h=Math.max(0,Math.min(Math.floor(r),o)),f=Math.max(0,Math.min(1,n-p)),m=Math.max(0,Math.min(1,r-h));p*=3,h*=3;var g=f*f,y=g*f,b=1-f,v=b*b,M=v*b,x=m*m,z=x*m,_=1-m,A=_*_,O=A*_;for(d=0;d<e.length;d++)a=M*(u=e[d])[h][p]+3*(v*f*u[h][p+1]+b*g*u[h][p+2])+y*u[h][p+3],s=M*u[h+1][p]+3*(v*f*u[h+1][p+1]+b*g*u[h+1][p+2])+y*u[h+1][p+3],l=M*u[h+2][p]+3*(v*f*u[h+2][p+1]+b*g*u[h+2][p+2])+y*u[h+2][p+3],c=M*u[h+3][p]+3*(v*f*u[h+3][p+1]+b*g*u[h+3][p+2])+y*u[h+3][p+3],t[d]=O*a+3*(A*m*s+_*x*l)+z*c;return t}:r?function(t,n,r){t||(t=[]);var a,s,l,c,u,d,p=Math.max(0,Math.min(Math.floor(n),i)),h=Math.max(0,Math.min(Math.floor(r),o)),f=Math.max(0,Math.min(1,n-p)),m=Math.max(0,Math.min(1,r-h));p*=3;var g=f*f,y=g*f,b=1-f,v=b*b,M=v*b,x=1-m;for(u=0;u<e.length;u++)a=x*(d=e[u])[h][p]+m*d[h+1][p],s=x*d[h][p+1]+m*d[h+1][p+1],l=x*d[h][p+2]+m*d[h+1][p+1],c=x*d[h][p+3]+m*d[h+1][p+1],t[u]=M*a+3*(v*f*s+b*g*l)+y*c;return t}:a?function(t,n,r){t||(t=[]);var a,s,l,c,u,d,p=Math.max(0,Math.min(Math.floor(n),i)),h=Math.max(0,Math.min(Math.floor(r),o)),f=Math.max(0,Math.min(1,n-p)),m=Math.max(0,Math.min(1,r-h));h*=3;var g=m*m,y=g*m,b=1-m,v=b*b,M=v*b,x=1-f;for(u=0;u<e.length;u++)a=x*(d=e[u])[h][p]+f*d[h][p+1],s=x*d[h+1][p]+f*d[h+1][p+1],l=x*d[h+2][p]+f*d[h+2][p+1],c=x*d[h+3][p]+f*d[h+3][p+1],t[u]=M*a+3*(v*m*s+b*g*l)+y*c;return t}:function(t,n,r){t||(t=[]);var a,s,l,c,u=Math.max(0,Math.min(Math.floor(n),i)),d=Math.max(0,Math.min(Math.floor(r),o)),p=Math.max(0,Math.min(1,n-u)),h=Math.max(0,Math.min(1,r-d)),f=1-h,m=1-p;for(l=0;l<e.length;l++)a=m*(c=e[l])[d][u]+p*c[d][u+1],s=m*c[d+1][u]+p*c[d+1][u+1],t[l]=f*a+h*s;return t}}}),Ezt=Ee((e,t)=>{t.exports=function(e,t,n){return t&&n?function(t,n,r,a,i){var o,s,l,c,u,d;t||(t=[]),n*=3,r*=3;var p=a*a,h=1-a,f=h*h,m=h*a*2,g=-3*f,y=3*(f-m),b=3*(m-p),v=3*p,M=i*i,x=M*i,z=1-i,_=z*z,A=_*z;for(d=0;d<e.length;d++)o=g*(u=e[d])[r][n]+y*u[r][n+1]+b*u[r][n+2]+v*u[r][n+3],s=g*u[r+1][n]+y*u[r+1][n+1]+b*u[r+1][n+2]+v*u[r+1][n+3],l=g*u[r+2][n]+y*u[r+2][n+1]+b*u[r+2][n+2]+v*u[r+2][n+3],c=g*u[r+3][n]+y*u[r+3][n+1]+b*u[r+3][n+2]+v*u[r+3][n+3],t[d]=A*o+3*(_*i*s+z*M*l)+x*c;return t}:t?function(t,n,r,a,i){var o,s,l,c;t||(t=[]),n*=3;var u=a*a,d=1-a,p=d*d,h=d*a*2,f=-3*p,m=3*(p-h),g=3*(h-u),y=3*u,b=1-i;for(l=0;l<e.length;l++)o=f*(c=e[l])[r][n]+m*c[r][n+1]+g*c[r][n+2]+y*c[r][n+3],s=f*c[r+1][n]+m*c[r+1][n+1]+g*c[r+1][n+2]+y*c[r+1][n+3],t[l]=b*o+i*s;return t}:n?function(t,n,r,a,i){var o,s,l,c,u,d;t||(t=[]),r*=3;var p=i*i,h=p*i,f=1-i,m=f*f,g=m*f;for(u=0;u<e.length;u++)o=(d=e[u])[r][n+1]-d[r][n],s=d[r+1][n+1]-d[r+1][n],l=d[r+2][n+1]-d[r+2][n],c=d[r+3][n+1]-d[r+3][n],t[u]=g*o+3*(m*i*s+f*p*l)+h*c;return t}:function(t,n,r,a,i){t||(t=[]);var o,s,l,c,u=1-i;for(l=0;l<e.length;l++)o=(c=e[l])[r][n+1]-c[r][n],s=c[r+1][n+1]-c[r+1][n],t[l]=u*o+i*s;return t}}}),Dzt=Ee((e,t)=>{t.exports=function(e,t,n){return t&&n?function(t,n,r,a,i){var o,s,l,c,u,d;t||(t=[]),n*=3,r*=3;var p=a*a,h=p*a,f=1-a,m=f*f,g=m*f,y=i*i,b=1-i,v=b*b,M=b*i*2,x=-3*v,z=3*(v-M),_=3*(M-y),A=3*y;for(d=0;d<e.length;d++)o=x*(u=e[d])[r][n]+z*u[r+1][n]+_*u[r+2][n]+A*u[r+3][n],s=x*u[r][n+1]+z*u[r+1][n+1]+_*u[r+2][n+1]+A*u[r+3][n+1],l=x*u[r][n+2]+z*u[r+1][n+2]+_*u[r+2][n+2]+A*u[r+3][n+2],c=x*u[r][n+3]+z*u[r+1][n+3]+_*u[r+2][n+3]+A*u[r+3][n+3],t[d]=g*o+3*(m*a*s+f*p*l)+h*c;return t}:t?function(t,n,r,a,i){var o,s,l,c,u,d;t||(t=[]),n*=3;var p=i*i,h=p*i,f=1-i,m=f*f,g=m*f;for(u=0;u<e.length;u++)o=(d=e[u])[r+1][n]-d[r][n],s=d[r+1][n+1]-d[r][n+1],l=d[r+1][n+2]-d[r][n+2],c=d[r+1][n+3]-d[r][n+3],t[u]=g*o+3*(m*i*s+f*p*l)+h*c;return t}:n?function(t,n,r,a,i){var o,s,l,c;t||(t=[]),r*=3;var u=1-a,d=i*i,p=1-i,h=p*p,f=p*i*2,m=-3*h,g=3*(h-f),y=3*(f-d),b=3*d;for(l=0;l<e.length;l++)o=m*(c=e[l])[r][n]+g*c[r+1][n]+y*c[r+2][n]+b*c[r+3][n],s=m*c[r][n+1]+g*c[r+1][n+1]+y*c[r+2][n+1]+b*c[r+3][n+1],t[l]=u*o+a*s;return t}:function(t,n,r,a,i){t||(t=[]);var o,s,l,c,u=1-a;for(l=0;l<e.length;l++)o=(c=e[l])[r+1][n]-c[r][n],s=c[r+1][n+1]-c[r][n+1],t[l]=u*o+a*s;return t}}}),Izt=Ee((e,t)=>{var n=_zt(),r=lH().findBin,a=Tzt(),i=kzt(),o=Ezt(),s=Dzt();t.exports=function(e){var t=e._a,l=e._b,c=t.length,u=l.length,d=e.aaxis,p=e.baxis,h=t[0],f=t[c-1],m=l[0],g=l[u-1],y=t[t.length-1]-t[0],b=l[l.length-1]-l[0],v=y*n.RELATIVE_CULL_TOLERANCE,M=b*n.RELATIVE_CULL_TOLERANCE;h-=v,f+=v,m-=M,g+=M,e.isVisible=function(e,t){return e>h&&e<f&&t>m&&t<g},e.isOccluded=function(e,t){return e<h||e>f||t<m||t>g},e.setScale=function(){var t=e._x,n=e._y,r=a(e._xctrl,e._yctrl,t,n,d.smoothing,p.smoothing);e._xctrl=r[0],e._yctrl=r[1],e.evalxy=i([e._xctrl,e._yctrl],c,u,d.smoothing,p.smoothing),e.dxydi=o([e._xctrl,e._yctrl],d.smoothing,p.smoothing),e.dxydj=s([e._xctrl,e._yctrl],d.smoothing,p.smoothing)},e.i2a=function(e){var n=Math.max(0,Math.floor(e[0]),c-2),r=e[0]-n;return(1-r)*t[n]+r*t[n+1]},e.j2b=function(e){var t=Math.max(0,Math.floor(e[1]),c-2),n=e[1]-t;return(1-n)*l[t]+n*l[t+1]},e.ij2ab=function(t){return[e.i2a(t[0]),e.j2b(t[1])]},e.a2i=function(e){var n=Math.max(0,Math.min(r(e,t),c-2)),a=t[n],i=t[n+1];return Math.max(0,Math.min(c-1,n+(e-a)/(i-a)))},e.b2j=function(e){var t=Math.max(0,Math.min(r(e,l),u-2)),n=l[t],a=l[t+1];return Math.max(0,Math.min(u-1,t+(e-n)/(a-n)))},e.ab2ij=function(t){return[e.a2i(t[0]),e.b2j(t[1])]},e.i2c=function(t,n){return e.evalxy([],t,n)},e.ab2xy=function(n,r,a){if(!a&&(n<t[0]||n>t[c-1]|r<l[0]||r>l[u-1]))return[!1,!1];var i=e.a2i(n),o=e.b2j(r),s=e.evalxy([],i,o);if(a){var d,p,h,f,m=0,g=0,y=[];n<t[0]?(d=0,p=0,m=(n-t[0])/(t[1]-t[0])):n>t[c-1]?(d=c-2,p=1,m=(n-t[c-1])/(t[c-1]-t[c-2])):p=i-(d=Math.max(0,Math.min(c-2,Math.floor(i)))),r<l[0]?(h=0,f=0,g=(r-l[0])/(l[1]-l[0])):r>l[u-1]?(h=u-2,f=1,g=(r-l[u-1])/(l[u-1]-l[u-2])):f=o-(h=Math.max(0,Math.min(u-2,Math.floor(o)))),m&&(e.dxydi(y,d,h,p,f),s[0]+=y[0]*m,s[1]+=y[1]*m),g&&(e.dxydj(y,d,h,p,f),s[0]+=y[0]*g,s[1]+=y[1]*g)}return s},e.c2p=function(e,t,n){return[t.c2p(e[0]),n.c2p(e[1])]},e.p2x=function(e,t,n){return[t.p2c(e[0]),n.p2c(e[1])]},e.dadi=function(e){var n=Math.max(0,Math.min(t.length-2,e));return t[n+1]-t[n]},e.dbdj=function(e){var t=Math.max(0,Math.min(l.length-2,e));return l[t+1]-l[t]},e.dxyda=function(t,n,r,a){var i=e.dxydi(null,t,n,r,a),o=e.dadi(t,r);return[i[0]/o,i[1]/o]},e.dxydb=function(t,n,r,a){var i=e.dxydj(null,t,n,r,a),o=e.dbdj(n,a);return[i[0]/o,i[1]/o]},e.dxyda_rough=function(t,n,r){var a=y*(r||.1),i=e.ab2xy(t+a,n,!0),o=e.ab2xy(t-a,n,!0);return[.5*(i[0]-o[0])/a,.5*(i[1]-o[1])/a]},e.dxydb_rough=function(t,n,r){var a=b*(r||.1),i=e.ab2xy(t,n+a,!0),o=e.ab2xy(t,n-a,!0);return[.5*(i[0]-o[0])/a,.5*(i[1]-o[1])/a]},e.dpdx=function(e){return e._m},e.dpdy=function(e){return e._m}}}),jzt=Ee((e,t)=>{var n=es(),r=Fr().isArray1D,a=ozt(),i=uzt(),o=fzt(),s=vzt(),l=yzt(),c=kG(),u=Mzt(),d=TG(),p=Izt();t.exports=function(e,t){var h=n.getFromId(e,t.xaxis),f=n.getFromId(e,t.yaxis),m=t.aaxis,g=t.baxis,y=t.x,b=t.y,v=[];y&&r(y)&&v.push("x"),b&&r(b)&&v.push("y"),v.length&&d(t,m,g,"a","b",v);var M=t._a=t._a||t.a,x=t._b=t._b||t.b;y=t._x||t.x,b=t._y||t.y;var z={};if(t._cheater){var _="index"===m.cheatertype?M.length:M,A="index"===g.cheatertype?x.length:x;y=a(_,A,t.cheaterslope)}t._x=y=c(y),t._y=b=c(b),u(y,M,x),u(b,M,x),p(t),t.setScale();var O=i(y),w=i(b),k=.5*(O[1]-O[0]),T=.5*(O[1]+O[0]),S=.5*(w[1]-w[0]),C=.5*(w[1]+w[0]),E=1.3;return O=[T-k*E,T+k*E],w=[C-S*E,C+S*E],t._extremes[h._id]=n.findExtremes(h,O,{padded:!0}),t._extremes[f._id]=n.findExtremes(f,w,{padded:!0}),o(t,"a","b"),o(t,"b","a"),s(t,m),s(t,g),z.clipsegments=l(t._xctrl,t._yctrl,m,g),z.x=y,z.y=b,z.a=M,z.b=x,[z]}}),Xzt=Ee((e,t)=>{t.exports={attributes:Q$(),supplyDefaults:G_t(),plot:azt(),calc:jzt(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:Bf(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{description:["The data describing carpet axis layout is set in `y` and (optionally)","also `x`. If only `y` is present, `x` the plot is interpreted as a","cheater plot and is filled in using the `y` values.","`x` and `y` may either be 2D arrays matching with each dimension matching","that of `a` and `b`, or they may be 1D arrays with total length equal to","that of `a` and `b`."].join(" ")}}}),Zzt=Ee((e,t)=>{t.exports=Xzt()}),ege=Ee((e,t)=>{var n=tb(),r=Id(),a=S1(),{hovertemplateAttrs:i,texttemplateAttrs:o,templatefallbackAttrs:s}=p1(),l=Oc(),c=ms().extendFlat,u=r.marker,d=r.line,p=u.line;t.exports={carpet:{valType:"string",editType:"calc",description:["An identifier for this carpet, so that `scattercarpet` and","`contourcarpet` traces can specify a carpet plot on which","they lie"].join(" ")},a:{valType:"data_array",editType:"calc",description:"Sets the a-axis coordinates."},b:{valType:"data_array",editType:"calc",description:"Sets the b-axis coordinates."},mode:c({},r.mode,{dflt:"markers"}),text:c({},r.text,{description:["Sets text elements associated with each (a,b) point.","If a single string, the same string appears over","all the data points.","If an array of strings, the items are mapped in order to the","the data points in (a,b).","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")}),texttemplate:o({editType:"plot"},{keys:["a","b","text"]}),texttemplatefallback:s({editType:"plot"}),hovertext:c({},r.hovertext,{description:["Sets hover text elements associated with each (a,b) point.","If a single string, the same string appears over","all the data points.","If an array of strings, the items are mapped in order to the","the data points in (a,b).","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")}),line:{color:d.color,width:d.width,dash:d.dash,backoff:d.backoff,shape:c({},d.shape,{values:["linear","spline"]}),smoothing:d.smoothing,editType:"calc"},connectgaps:r.connectgaps,fill:c({},r.fill,{values:["none","toself","tonext"],dflt:"none",description:["Sets the area to fill with a solid color.","Use with `fillcolor` if not *none*.","scatterternary has a subset of the options available to scatter.","*toself* connects the endpoints of the trace (or each segment","of the trace if it has gaps) into a closed shape.","*tonext* fills the space between two traces if one completely","encloses the other (eg consecutive contour lines), and behaves like","*toself* if there is no trace before it. *tonext* should not be","used if one trace does not enclose the other."].join(" ")}),fillcolor:n(),marker:c({symbol:u.symbol,opacity:u.opacity,maxdisplayed:u.maxdisplayed,angle:u.angle,angleref:u.angleref,standoff:u.standoff,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,line:c({width:p.width,dash:p.dash,editType:"calc"},l("marker.line")),gradient:u.gradient,editType:"calc"},l("marker")),textfont:r.textfont,textposition:r.textposition,selected:r.selected,unselected:r.unselected,hoverinfo:c({},a.hoverinfo,{flags:["a","b","text","name"]}),hoveron:r.hoveron,hovertemplate:i(),hovertemplatefallback:s(),zorder:r.zorder}}),n4t=Ee((e,t)=>{var n=Fr(),r=S3(),a=Hc(),i=Wv(),o=Yg(),s=kS(),l=Zg(),c=ib(),u=ege();t.exports=function(e,t,d,p){function h(r,a){return n.coerce(e,t,u,r,a)}h("carpet"),t.xaxis="x",t.yaxis="y";var f=h("a"),m=h("b"),g=Math.min(f.length,m.length);if(g){t._length=g,h("text"),h("texttemplate"),h("texttemplatefallback"),h("hovertext"),h("mode",g<r.PTS_LINESONLY?"lines+markers":"lines"),a.hasMarkers(t)&&i(e,t,d,p,h,{gradient:!0}),a.hasLines(t)&&(o(e,t,d,p,h,{backoff:!0}),s(e,t,h),h("connectgaps")),a.hasText(t)&&l(e,t,p,h);var y=[];(a.hasMarkers(t)||a.hasText(t))&&(h("marker.maxdisplayed"),y.push("points")),h("fill"),"none"!==t.fill&&(c(e,t,d,h),a.hasLines(t)||s(e,t,h)),("tonext"===t.fill||"toself"===t.fill)&&y.push("fills"),"fills"!==h("hoveron",y.join("+")||"points")&&(h("hovertemplate"),h("hovertemplatefallback")),h("zorder"),n.coerceSelectionMarkerOpacity(t,h)}else t.visible=!1}}),i4t=Ee((e,t)=>{t.exports=function(e,t){var n={},r=t._carpet,a=r.ab2ij([e.a,e.b]),i=Math.floor(a[0]),o=a[0]-i,s=Math.floor(a[1]),l=a[1]-s,c=r.evalxy([],i,s,o,l);return n.yLabel=c[1].toFixed(3),n}}),sK=Ee((e,t)=>{t.exports=function(e,t){for(var n,r=e._fullData.length,a=0;a<r;a++){var i=e._fullData[a];if(i.index!==t.index&&"carpet"===i.type&&(n||(n=i),i.carpet===t.carpet))return i}return n}}),c4t=Ee((e,t)=>{var n=xs(),r=$g(),a=E3(),i=Kg(),o=Jg().calcMarkerSize,s=sK();t.exports=function(e,t){var l=t._carpetTrace=s(e,t);if(l&&l.visible&&"legendonly"!==l.visible){var c;t.xaxis=l.xaxis,t.yaxis=l.yaxis;var u,d,p=t._length,h=new Array(p),f=!1;for(c=0;c<p;c++)if(u=t.a[c],d=t.b[c],n(u)&&n(d)){var m=l.ab2xy(+u,+d,!0),g=l.isVisible(+u,+d);g||(f=!0),h[c]={x:m[0],y:m[1],a:u,b:d,vis:g}}else h[c]={x:!1,y:!1};return t._needsCull=f,h[0].carpet=l,h[0].trace=t,o(t,p),r(e,t),a(h,t),i(h,t),h}}}),f4t=Ee((e,t)=>{var n=LS(),r=es(),a=vs();t.exports=function(e,t,i,o){var s,l,c,u=i[0][0].carpet,d=r.getFromId(e,u.xaxis||"x"),p=r.getFromId(e,u.yaxis||"y"),h={xaxis:d,yaxis:p,plot:t.plot};for(s=0;s<i.length;s++)(l=i[s][0].trace)._xA=d,l._yA=p;for(n(e,h,i,o),s=0;s<i.length;s++)l=i[s][0].trace,c=o.selectAll("g.trace"+l.uid+" .js-line"),a.setClipUrl(c,i[s][0].carpet._clipPathId,e)}}),p4t=Ee((e,t)=>{var n=WS(),r=Fr().fillText;t.exports=function(e,t,a,i){var o=n(e,t,a,i);if(o&&!1!==o[0].index){var s=o[0];if(void 0===s.index){var l=1-s.y0/e.ya._length,c=e.xa._length,u=c*l/2,d=c-u;return s.x0=Math.max(Math.min(s.x0,d),u),s.x1=Math.max(Math.min(s.x1,d),u),o}var p=s.cd[s.index];s.a=p.a,s.b=p.b,s.xLabelVal=void 0,s.yLabelVal=void 0;var h=s.trace,f=h._carpet,m=h._module.formatLabels(p,h);s.yLabel=m.yLabel,delete s.text;var g=[];if(!h.hovertemplate){var y=(p.hi||h.hoverinfo).split("+");-1!==y.indexOf("all")&&(y=["a","b","text"]),-1!==y.indexOf("a")&&b(f.aaxis,p.a),-1!==y.indexOf("b")&&b(f.baxis,p.b),g.push("y: "+s.yLabel),-1!==y.indexOf("text")&&r(p,h,g),s.extraText=g.join("<br>")}return o}function b(e,t){var n;n=e.labelprefix&&e.labelprefix.length>0?e.labelprefix.replace(/ = $/,""):e._hovertitle,g.push(n+": "+t.toFixed(3)+e.labelsuffix)}}}),v4t=Ee((e,t)=>{t.exports=function(e,t,n,r,a){var i=r[a];return e.a=i.a,e.b=i.b,e.y=i.y,e}}),y4t=Ee((e,t)=>{t.exports={attributes:ege(),supplyDefaults:n4t(),colorbar:Wp(),formatLabels:i4t(),calc:c4t(),plot:f4t(),style:vm().style,styleOnSelect:vm().styleOnSelect,hoverPoints:p4t(),selectPoints:FS(),eventData:v4t(),moduleType:"trace",name:"scattercarpet",basePlotModule:Bf(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{hrName:"scatter_carpet",description:["Plots a scatter trace on either the first carpet axis or the","carpet axis with a matching `carpet` attribute."].join(" ")}}}),M4t=Ee((e,t)=>{t.exports=y4t()}),tge=Ee((e,t)=>{var n=nk(),r=QR(),a=Oc(),i=ms().extendFlat,o=r.contours;t.exports=i({carpet:{valType:"string",editType:"calc",description:["The `carpet` of the carpet axes on which this contour trace lies"].join(" ")},z:n.z,a:n.x,a0:n.x0,da:n.dx,b:n.y,b0:n.y0,db:n.dy,text:n.text,hovertext:n.hovertext,transpose:n.transpose,atype:n.xtype,btype:n.ytype,fillcolor:r.fillcolor,autocontour:r.autocontour,ncontours:r.ncontours,contours:{type:o.type,start:o.start,end:o.end,size:o.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc",description:["Determines the coloring method showing the contour values.","If *fill*, coloring is done evenly between each contour level","If *lines*, coloring is done on the contour lines.","If *none*, no coloring is applied on this trace."].join(" ")},showlines:o.showlines,showlabels:o.showlabels,labelfont:o.labelfont,labelformat:o.labelformat,operation:o.operation,value:o.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:r.line.color,width:r.line.width,dash:r.line.dash,smoothing:r.line.smoothing,editType:"plot"},zorder:r.zorder},a("",{cLetter:"z",autoColorDflt:!1}))}),rge=Ee((e,t)=>{var n=Fr(),r=AG(),a=tge(),i=Hue(),o=YG(),s=ZG();t.exports=function(e,t,l,c){function u(r,i){return n.coerce(e,t,a,r,i)}if(u("carpet"),e.a&&e.b){if(!r(e,t,u,c,"a","b"))return void(t.visible=!1);u("text"),"constraint"===u("contours.type")?i(e,t,u,c,l,{hasHover:!1}):(o(e,t,u,function(r){return n.coerce2(e,t,a,r)}),s(e,t,u,c,{hasHover:!1}))}else t._defaultColor=l,t._length=null;u("zorder")}}),S4t=Ee((e,t)=>{var n=f2(),r=Fr(),a=TG(),i=kG(),o=CG(),s=EG(),l=fue(),c=rge(),u=sK(),d=Eue();t.exports=function(e,t){var p=t._carpetTrace=u(e,t);if(p&&p.visible&&"legendonly"!==p.visible){if(!t.a||!t.b){var h=e.data[p.index],f=e.data[t.index];f.a||(f.a=h.a),f.b||(f.b=h.b),c(f,t,t._defaultColor,e._fullLayout)}var m=function(e,t){var c,u,d,p,h,f,m,g=t._carpetTrace,y=g.aaxis,b=g.baxis;y._minDtick=0,b._minDtick=0,r.isArray1D(t.z)&&a(t,y,b,"a","b",["z"]),c=t._a=t._a||t.a,p=t._b=t._b||t.b,c=c?y.makeCalcdata(t,"_a"):[],p=p?b.makeCalcdata(t,"_b"):[],u=t.a0||0,d=t.da||1,h=t.b0||0,f=t.db||1,m=t._z=i(t._z||t.z,t.transpose),t._emptypoints=s(m),o(m,t._emptypoints);var v=r.maxRowLength(m),M="scaled"===t.xtype?"":c,x=l(t,M,u,d,v,y),z="scaled"===t.ytype?"":p,_=l(t,z,h,f,m.length,b),A={a:x,b:_,z:m};return"levels"===t.contours.type&&"none"!==t.contours.coloring&&n(e,t,{vals:m,containerStr:"",cLetter:"z"}),[A]}(e,t);return d(t,t._z),m}}}),C4t=Ee((e,t)=>{var n=Fr().isArrayOrTypedArray;t.exports=function(e,t,r,a){var i,o,s,l,c,u,d,p,h,f,m,g,y,b=n(r)?"a":"b",v=("a"===b?e.aaxis:e.baxis).smoothing,M="a"===b?e.a2i:e.b2j,x="a"===b?r:a,z="a"===b?a:r,_="a"===b?t.a.length:t.b.length,A="a"===b?t.b.length:t.a.length,O=Math.floor("a"===b?e.b2j(z):e.a2i(z)),w="a"===b?function(t){return e.evalxy([],t,O)}:function(t){return e.evalxy([],O,t)};v&&(s=Math.max(0,Math.min(A-2,O)),l=O-s,o="a"===b?function(t,n){return e.dxydi([],t,s,n,l)}:function(t,n){return e.dxydj([],s,t,l,n)});var k=M(x[0]),T=M(x[1]),S=k<T?1:-1,C=1e-8*(T-k),E=S>0?Math.floor:Math.ceil,q=S>0?Math.ceil:Math.floor,D=S>0?Math.min:Math.max,R=S>0?Math.max:Math.min,L=E(k+C),I=q(T-C),W=[[d=w(k)]];for(i=L;i*S<I*S;i+=S)c=[],m=R(k,i),y=(g=D(T,i+S))-m,u=Math.max(0,Math.min(_-2,Math.floor(.5*(m+g)))),p=w(g),v&&(h=o(u,m-u),f=o(u,g-u),c.push([d[0]+h[0]/3*y,d[1]+h[1]/3*y]),c.push([p[0]-f[0]/3*y,p[1]-f[1]/3*y])),c.push(p),W.push(c),d=p;return W}}),I4t=Ee((e,t)=>{var n=mo(),r=$ve(),a=Kve(),i=vs(),o=Fr(),s=Due(),l=Rue(),c=JG(),u=tL(),d=Nue(),p=Iue(),h=Wue(),f=sK(),m=C4t();function g(e,t,n){var r=e.getPointAtLength(t),a=e.getPointAtLength(n),i=a.x-r.x,o=a.y-r.y,s=Math.sqrt(i*i+o*o);return[i/s,o/s]}function y(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function b(e,t){var n=Math.abs(e[0]*t[0]+e[1]*t[1]);return Math.sqrt(1-n*n)/n}t.exports=function(e,t,v,M){var x=t.xaxis,z=t.yaxis;o.makeTraceGroups(M,v,"contour").each(function(v){var M=n.select(this),_=v[0],A=_.trace,O=A._carpetTrace=f(e,A),w=e.calcdata[O.index][0];if(O.visible&&"legendonly"!==O.visible){var k=_.a,T=_.b,S=A.contours,C=p(S,t,_),E="constraint"===S.type,q=S._operation,D=E?"="===q?"lines":"fill":S.coloring,R=[[k[0],T[T.length-1]],[k[k.length-1],T[T.length-1]],[k[k.length-1],T[0]],[k[0],T[0]]];s(C);var L=1e-8*(k[k.length-1]-k[0]),I=1e-8*(T[T.length-1]-T[0]);l(C,L,I);var W=C;"constraint"===S.type&&(W=d(C,q)),function(e,t){var n,r,a,i,o,s,l,c,u;for(n=0;n<e.length;n++){for(o=(i=e[n]).pedgepaths=[],s=i.ppaths=[],r=0;r<i.edgepaths.length;r++){for(u=i.edgepaths[r],l=[],a=0;a<u.length;a++)l[a]=t(u[a]);o.push(l)}for(r=0;r<i.paths.length;r++){for(u=i.paths[r],c=[],a=0;a<u.length;a++)c[a]=t(u[a]);s.push(c)}}}(C,V);var N,P,B,F,j=[];for(F=w.clipsegments.length-1;F>=0;F--)N=w.clipsegments[F],P=r([],N.x,x.c2p),B=r([],N.y,z.c2p),P.reverse(),B.reverse(),j.push(a(P,B,N.bicubic));var U="M"+j.join("L")+"Z";(function(e,t,n,i,s,l){var c,u,d,p,h=o.ensureSingle(e,"g","contourbg"),f=h.selectAll("path").data("fill"!==l||s?[]:[0]);f.enter().append("path"),f.exit().remove();var m=[];for(p=0;p<t.length;p++)c=t[p],u=r([],c.x,n.c2p),d=r([],c.y,i.c2p),m.push(a(u,d,c.bicubic));f.attr("d","M"+m.join("L")+"Z").style("stroke","none")})(M,w.clipsegments,x,z,E,D),function(e,t,r,a,s,l,c,u,d,p,f){var g="fill"===p;g&&h(s,e.contours);var y=o.ensureSingle(t,"g","contourfill"),b=y.selectAll("path").data(g?s:[]);b.enter().append("path"),b.exit().remove(),b.each(function(e){var t=(e.prefixBoundary?f:"")+function(e,t,n,r,a,s,l,c){var u,d,p,h,f,g,y,b="",v=t.edgepaths.map(function(e,t){return t}),M=!0,x=1e-4*Math.abs(n[0][0]-n[2][0]),z=1e-4*Math.abs(n[0][1]-n[2][1]);function _(e){return Math.abs(e[1]-n[0][1])<z}function A(e){return Math.abs(e[1]-n[2][1])<z}function O(e){return Math.abs(e[0]-n[0][0])<x}function w(e){return Math.abs(e[0]-n[2][0])<x}function k(e,t){var n,r,i,o,u="";for(_(e)&&!w(e)||A(e)&&!O(e)?(o=a.aaxis,i=m(a,s,[e[0],t[0]],.5*(e[1]+t[1]))):(o=a.baxis,i=m(a,s,.5*(e[0]+t[0]),[e[1],t[1]])),n=1;n<i.length;n++)for(u+=o.smoothing?"C":"L",r=0;r<i[n].length;r++){var d=i[n][r];u+=[l.c2p(d[0]),c.c2p(d[1])]+" "}return u}for(u=0,d=null;v.length;){var T=t.edgepaths[u][0];for(d&&(b+=k(d,T)),y=i.smoothopen(t.edgepaths[u].map(r),t.smoothing),b+=M?y:y.replace(/^M/,"L"),v.splice(v.indexOf(u),1),d=t.edgepaths[u][t.edgepaths[u].length-1],f=-1,h=0;h<4;h++){if(!d){o.log("Missing end?",u,t);break}for(_(d)&&!w(d)?p=n[1]:O(d)?p=n[0]:A(d)?p=n[3]:w(d)&&(p=n[2]),g=0;g<t.edgepaths.length;g++){var S=t.edgepaths[g][0];Math.abs(d[0]-p[0])<x?Math.abs(d[0]-S[0])<x&&(S[1]-d[1])*(p[1]-S[1])>=0&&(p=S,f=g):Math.abs(d[1]-p[1])<z?Math.abs(d[1]-S[1])<z&&(S[0]-d[0])*(p[0]-S[0])>=0&&(p=S,f=g):o.log("endpt to newendpt is not vert. or horz.",d,p,S)}if(f>=0)break;b+=k(d,p),d=p}if(f===t.edgepaths.length){o.log("unclosed perimeter path");break}u=f,(M=-1===v.indexOf(u))&&(u=v[0],b+=k(d,p)+"Z",d=null)}for(u=0;u<t.paths.length;u++)b+=i.smoothclosed(t.paths[u].map(r),t.smoothing);return b}(0,e,l,c,u,d,r,a);t?n.select(this).attr("d",t).style("stroke","none"):n.select(this).remove()})}(A,M,x,z,W,R,V,O,w,D,U),function(e,t,r,a,s,l,d){var p=r._context.staticPlot,h=o.ensureSingle(e,"g","contourlines"),f=!1!==s.showlines,m=s.showlabels,v=f&&m,M=c.createLines(h,f||m,t,p),x=c.createLineClip(h,v,r,a.trace.uid),z=e.selectAll("g.contourlabels").data(m?[0]:[]);if(z.exit().remove(),z.enter().append("g").classed("contourlabels",!0),m){var _=l.xaxis,A=l.yaxis,O=_._length,w=A._length,k=[[[0,0],[O,0],[O,w],[0,w]]],T=[];o.clearLocationCache();var S=c.labelFormatter(r,a),C=i.tester.append("text").attr("data-notex",1).call(i.font,s.labelfont),E={left:0,right:O,center:O/2,top:0,bottom:w,middle:w/2},q=Math.sqrt(O*O+w*w),D=u.LABELDISTANCE*q/Math.max(1,t.length/u.LABELINCREASE);M.each(function(e){var t=c.calcTextOpts(e.level,S,C,r);n.select(this).selectAll("path").each(function(n){var r=this,a=o.getVisibleSegment(r,E,t.height/2);if(a&&(function(e,t,n,r,a,i){for(var o,s=0;s<n.pedgepaths.length;s++)t===n.pedgepaths[s]&&(o=n.edgepaths[s]);if(!o)return;var l=a.a[0],c=a.a[a.a.length-1],u=a.b[0],d=a.b[a.b.length-1];function p(e,t){var n,r=0,o=.1;return(Math.abs(e[0]-l)<o||Math.abs(e[0]-c)<o)&&(n=y(a.dxydb_rough(e[0],e[1],o)),r=Math.max(r,i*b(t,n)/2)),(Math.abs(e[1]-u)<o||Math.abs(e[1]-d)<o)&&(n=y(a.dxyda_rough(e[0],e[1],o)),r=Math.max(r,i*b(t,n)/2)),r}var h=g(e,0,1),f=g(e,r.total,r.total-1),m=p(o[0],h),v=r.total-p(o[o.length-1],f);r.min<m&&(r.min=m),r.max>v&&(r.max=v),r.len=r.max-r.min}(r,n,e,a,d,t.height),!(a.len<(t.width+t.height)*u.LABELMIN)))for(var i=Math.min(Math.ceil(a.len/D),u.LABELMAX),s=0;s<i;s++){var l=c.findBestTextLocation(r,a,t,T,E);if(!l)break;c.addLabelData(l,t,T,k)}})}),C.remove(),c.drawLabels(z,T,r,x,v?k:null)}m&&!f&&M.remove()}(M,C,e,_,S,t,O),i.setClipUrl(M,O._clipPathId,e)}function V(e){var t=O.ab2xy(e[0],e[1],!0);return[x.c2p(t[0]),z.c2p(t[1])]}})}}),W4t=Ee((e,t)=>{t.exports={attributes:tge(),supplyDefaults:rge(),colorbar:tX(),calc:S4t(),plot:I4t(),style:eX(),moduleType:"trace",name:"contourcarpet",basePlotModule:Bf(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{hrName:"contour_carpet",description:["Plots contours on either the first carpet axis or the","carpet axis with a matching `carpet` attribute. Data `z`","is interpreted as matching that of the corresponding carpet","axis."].join(" ")}}}),B4t=Ee((e,t)=>{t.exports=W4t()}),hK=Ee((e,t)=>{var n=Fr().extendFlat,r=Id(),a=Pd().axisHoverFormat,{hovertemplateAttrs:i,templatefallbackAttrs:o}=p1(),s=pp().dash,l=I8(),c=bk(),u=c.INCREASING.COLOR,d=c.DECREASING.COLOR,p=r.line;function h(e){return{line:{color:n({},p.color,{dflt:e}),width:p.width,dash:s,editType:"style"},editType:"style"}}t.exports={xperiod:r.xperiod,xperiod0:r.xperiod0,xperiodalignment:r.xperiodalignment,xhoverformat:a("x"),yhoverformat:a("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes",description:"Sets the x coordinates. If absent, linear coordinate will be generated."},open:{valType:"data_array",editType:"calc",description:"Sets the open values."},high:{valType:"data_array",editType:"calc",description:"Sets the high values."},low:{valType:"data_array",editType:"calc",description:"Sets the low values."},close:{valType:"data_array",editType:"calc",description:"Sets the close values."},line:{width:n({},p.width,{description:[p.width,"Note that this style setting can also be set per","direction via `increasing.line.width` and","`decreasing.line.width`."].join(" ")}),dash:n({},s,{description:[s.description,"Note that this style setting can also be set per","direction via `increasing.line.dash` and","`decreasing.line.dash`."].join(" ")}),editType:"style"},increasing:h(u),decreasing:h(d),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:["Sets hover text elements associated with each sample point.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to","this trace's sample points."].join(" ")},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc",description:"Same as `text`."},hovertemplate:i({},{keys:["open","high","low","close"]}),hovertemplatefallback:o(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc",description:"Sets the width of the open/close tick marks relative to the *x* minimal interval."},hoverlabel:n({},l.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style",description:["Show hover information (open, close, high, low) in separate labels, rather than a single unified label.","Default: *false*. When set to *true*, `hovertemplate` is ignored."].join(" ")}}),zorder:r.zorder}}),age=Ee((e,t)=>{var n=vo(),r=Fr();t.exports=function(e,t,a,i){var o=a("x"),s=a("open"),l=a("high"),c=a("low"),u=a("close");if(a("hoverlabel.split"),n.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x"],i),s&&l&&c&&u){var d=Math.min(s.length,l.length,c.length,u.length);return o&&(d=Math.min(d,r.minRowLength(o))),t._length=d,d}}}),Z4t=Ee((e,t)=>{var n=Fr(),r=age(),a=ab(),i=hK();function o(e,t,n,r){n(r+".line.color"),n(r+".line.width",t.line.width),n(r+".line.dash",t.line.dash)}t.exports=function(e,t,s,l){function c(r,a){return n.coerce(e,t,i,r,a)}r(e,t,c,l)?(a(e,t,l,c,{x:!0}),c("xhoverformat"),c("yhoverformat"),c("line.width"),c("line.dash"),o(e,t,c,"increasing"),o(e,t,c,"decreasing"),c("text"),c("hovertext"),c("hovertemplate"),c("hovertemplatefallback"),c("tickwidth"),l._requestRangeslider[t.xaxis]=!0,c("zorder")):t.visible=!1}}),ige=Ee((e,t)=>{var n=Fr(),r=n._,a=es(),i=ob(),o=T0().BADNUM;function s(e,t,n,r){return{o:e,h:t,l:n,c:r}}function l(e,t,i,s,l,c){for(var u=l.makeCalcdata(t,"open"),d=l.makeCalcdata(t,"high"),p=l.makeCalcdata(t,"low"),h=l.makeCalcdata(t,"close"),f=n.isArrayOrTypedArray(t.text),m=n.isArrayOrTypedArray(t.hovertext),g=!0,y=null,b=!!t.xperiodalignment,v=[],M=0;M<s.length;M++){var x=s[M],z=u[M],_=d[M],A=p[M],O=h[M];if(x!==o&&z!==o&&_!==o&&A!==o&&O!==o){O===z?null!==y&&O!==y&&(g=O>y):g=O>z,y=O;var w=c(z,_,A,O);w.pos=x,w.yc=(z+O)/2,w.i=M,w.dir=g?"increasing":"decreasing",w.x=w.pos,w.y=[A,_],b&&(w.orig_p=i[M]),f&&(w.tx=t.text[M]),m&&(w.htx=t.hovertext[M]),v.push(w)}else v.push({pos:x,empty:!0})}return t._extremes[l._id]=a.findExtremes(l,n.concat(p,d),{padded:!0}),v.length&&(v[0].t={labels:{open:r(e,"open:")+" ",high:r(e,"high:")+" ",low:r(e,"low:")+" ",close:r(e,"close:")+" "}}),v}t.exports={calc:function(e,t){var r=a.getFromId(e,t.xaxis),o=a.getFromId(e,t.yaxis),c=function(e,t,r){var a=r._minDiff;if(!a){var o,s=e._fullData,l=[];for(a=1/0,o=0;o<s.length;o++){var c=s[o];if("ohlc"===c.type&&!0===c.visible&&c.xaxis===t._id){l.push(c);var u=t.makeCalcdata(c,"x");c._origX=u;var d=i(r,t,"x",u).vals;c._xcalc=d;var p=n.distinctVals(d).minDiff;p&&isFinite(p)&&(a=Math.min(a,p))}}for(a===1/0&&(a=1),o=0;o<l.length;o++)l[o]._minDiff=a}return a*r.tickwidth}(e,r,t),u=t._minDiff;t._minDiff=null;var d=t._origX;t._origX=null;var p=t._xcalc;t._xcalc=null;var h=l(e,t,d,p,o,s);return t._extremes[r._id]=a.findExtremes(r,p,{vpad:u/2}),h.length?(n.extendFlat(h[0].t,{wHover:u/2,tickLen:c}),h):[{t:{empty:!0}}]},calcCommon:l}}),e5t=Ee((e,t)=>{var n=mo(),r=Fr();t.exports=function(e,t,a,i){var o=t.yaxis,s=t.xaxis,l=!!s.rangebreaks;r.makeTraceGroups(i,a,"trace ohlc").each(function(e){var t=n.select(this),a=e[0],i=a.t;if(!0!==a.trace.visible||i.empty)t.remove();else{var c=i.tickLen,u=t.selectAll("path").data(r.identity);u.enter().append("path"),u.exit().remove(),u.attr("d",function(e){if(e.empty)return"M0,0Z";var t=s.c2p(e.pos-c,!0),n=s.c2p(e.pos+c,!0),r=l?(t+n)/2:s.c2p(e.pos,!0);return"M"+t+","+o.c2p(e.o,!0)+"H"+r+"M"+r+","+o.c2p(e.h,!0)+"V"+o.c2p(e.l,!0)+"M"+n+","+o.c2p(e.c,!0)+"H"+r})}})}}),r5t=Ee((e,t)=>{var n=mo(),r=vs(),a=ao();t.exports=function(e,t,i){var o=i||n.select(e).selectAll("g.ohlclayer").selectAll("g.trace");o.style("opacity",function(e){return e[0].trace.opacity}),o.each(function(e){var t=e[0].trace;n.select(this).selectAll("path").each(function(e){if(!e.empty){var i=t[e.dir].line;n.select(this).style("fill","none").call(a.stroke,i.color).call(r.dashLine,i.dash,i.width).style("opacity",t.selectedpoints&&!e.selected?.3:1)}})})}}),lge=Ee((e,t)=>{var n=es(),r=Fr(),a=_d(),i=ao(),o=Fr().fillText,s=bk(),l={increasing:s.INCREASING.SYMBOL,decreasing:s.DECREASING.SYMBOL};function c(e,t,n,r){var o,s,l=e.cd,c=e.xa,u=l[0].trace,d=l[0].t,p=u.type,h="ohlc"===p?"l":"min",f="ohlc"===p?"h":"max",m=d.bPos||0,g=d.bdPos||d.tickLen,y=d.wHover,b=Math.min(1,g/Math.abs(c.r2c(c.range[1])-c.r2c(c.range[0])));function v(e){var n=function(e){return e.pos+m-t}(e);return a.inbox(n-y,n+y,o)}function M(e){var t=e[h],r=e[f];return t===r||a.inbox(t-n,r-n,o)}function x(e){return(v(e)+M(e))/2}o=e.maxHoverDistance-b,s=e.maxSpikeDistance-b;var z=a.getDistanceFunction(r,v,M,x);if(a.getClosest(l,z,e),!1===e.index)return null;var _=l[e.index];if(_.empty)return null;var A=u[_.dir],O=A.line.color;return i.opacity(O)&&A.line.width?e.color=O:e.color=A.fillcolor,e.x0=c.c2p(_.pos+m-g,!0),e.x1=c.c2p(_.pos+m+g,!0),e.xLabelVal=void 0!==_.orig_p?_.orig_p:_.pos,e.spikeDistance=x(_)*s/o,e.xSpike=c.c2p(_.pos,!0),e}function u(e,t,a,i){var o=e.cd,s=e.ya,l=o[0].trace,u=o[0].t,d=[],p=c(e,t,a,i);if(!p)return[];var h=o[p.index].hi||l.hoverinfo||"";if("none"===h||"skip"===h)return[];for(var f=["high","open","close","low"],m={},g=0;g<f.length;g++){var y,b=f[g],v=l[b][p.index],M=s.c2p(v,!0);v in m?(y=m[v]).yLabel+="<br>"+u.labels[b]+n.hoverLabelText(s,v,l.yhoverformat):((y=r.extendFlat({},p)).y0=y.y1=M,y.yLabelVal=v,y.yLabel=u.labels[b]+n.hoverLabelText(s,v,l.yhoverformat),y.name="",d.push(y),m[v]=y)}return d}function d(e,t,r,a){var i=e.cd,s=e.ya,u=i[0].trace,d=i[0].t,p=c(e,t,r,a);if(!p)return[];var h=i[p.index],f=p.index=h.i,m=h.dir;function g(e){return d.labels[e]+n.hoverLabelText(s,u[e][f],u.yhoverformat)}var y=h.hi||u.hoverinfo||"",b=y.split("+"),v="all"===y,M=v||-1!==b.indexOf("y"),x=v||-1!==b.indexOf("text"),z=M?[g("open"),g("high"),g("low"),g("close")+" "+l[m]]:[];return x&&o(h,u,z),p.extraText=z.join("<br>"),p.y0=p.y1=s.c2p(h.yc,!0),[p]}t.exports={hoverPoints:function(e,t,n,r){return e.cd[0].trace.hoverlabel.split?u(e,t,n,r):d(e,t,n,r)},hoverSplit:u,hoverOnPoints:d}}),cge=Ee((e,t)=>{t.exports=function(e,t){var n,r=e.cd,a=e.xaxis,i=e.yaxis,o=[],s=r[0].t.bPos||0;if(!1===t)for(n=0;n<r.length;n++)r[n].selected=0;else for(n=0;n<r.length;n++){var l=r[n];t.contains([a.c2p(l.pos+s),i.c2p(l.yc)],null,l.i,e)?(o.push({pointNumber:l.i,x:a.c2d(l.pos),y:i.c2d(l.yc)}),l.selected=1):l.selected=0}return o}}),u5t=Ee((e,t)=>{t.exports={moduleType:"trace",name:"ohlc",basePlotModule:Bf(),categories:["cartesian","svg","showLegend"],meta:{description:["The ohlc (short for Open-High-Low-Close) is a style of financial chart describing","open, high, low and close for a given `x` coordinate (most likely time).","The tip of the lines represent the `low` and `high` values and","the horizontal segments represent the `open` and `close` values.","Sample points where the close value is higher (lower) then the open","value are called increasing (decreasing).","By default, increasing items are drawn in green whereas","decreasing are drawn in red."].join(" ")},attributes:hK(),supplyDefaults:Z4t(),calc:ige().calc,plot:e5t(),style:r5t(),hoverPoints:lge().hoverPoints,selectPoints:cge()}}),f5t=Ee((e,t)=>{t.exports=u5t()}),dge=Ee((e,t)=>{var n=Fr().extendFlat,r=Pd().axisHoverFormat,a=hK(),i=VR();function o(e){return{line:{color:n({},i.line.color,{dflt:e}),width:i.line.width,editType:"style"},fillcolor:i.fillcolor,editType:"style"}}t.exports={xperiod:a.xperiod,xperiod0:a.xperiod0,xperiodalignment:a.xperiodalignment,xhoverformat:r("x"),yhoverformat:r("y"),x:a.x,open:a.open,high:a.high,low:a.low,close:a.close,line:{width:n({},i.line.width,{description:[i.line.width.description,"Note that this style setting can also be set per","direction via `increasing.line.width` and","`decreasing.line.width`."].join(" ")}),editType:"style"},increasing:o(a.increasing.line.color.dflt),decreasing:o(a.decreasing.line.color.dflt),text:a.text,hovertext:a.hovertext,hovertemplate:a.hovertemplate,hovertemplatefallback:a.hovertemplatefallback,whiskerwidth:n({},i.whiskerwidth,{dflt:0}),hoverlabel:a.hoverlabel,zorder:i.zorder}}),y5t=Ee((e,t)=>{var n=Fr(),r=ao(),a=age(),i=ab(),o=dge();function s(e,t,n,a){var i=n(a+".line.color");n(a+".line.width",t.line.width),n(a+".fillcolor",r.addOpacity(i,.5))}t.exports=function(e,t,r,l){function c(r,a){return n.coerce(e,t,o,r,a)}a(e,t,c,l)?(i(e,t,l,c,{x:!0}),c("xhoverformat"),c("yhoverformat"),c("line.width"),s(e,t,c,"increasing"),s(e,t,c,"decreasing"),c("text"),c("hovertext"),c("hovertemplate"),c("hovertemplatefallback"),c("whiskerwidth"),l._requestRangeslider[t.xaxis]=!0,c("zorder")):t.visible=!1}}),_5t=Ee((e,t)=>{var n=Fr(),r=es(),a=ob(),i=ige().calcCommon;function o(e,t,n,r){return{min:n,q1:Math.min(e,r),med:r,q3:Math.max(e,r),max:t}}t.exports=function(e,t){var s=e._fullLayout,l=r.getFromId(e,t.xaxis),c=r.getFromId(e,t.yaxis),u=l.makeCalcdata(t,"x"),d=a(t,l,"x",u).vals,p=i(e,t,u,d,c,o);return p.length?(n.extendFlat(p[0].t,{num:s._numBoxes,dPos:n.distinctVals(d).minDiff/2,posLetter:"x",valLetter:"y"}),s._numBoxes++,p):[{t:{empty:!0}}]}}),A5t=Ee((e,t)=>{t.exports={moduleType:"trace",name:"candlestick",basePlotModule:Bf(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{description:["The candlestick is a style of financial chart describing","open, high, low and close for a given `x` coordinate (most likely time).","The boxes represent the spread between the `open` and `close` values and","the lines represent the spread between the `low` and `high` values","Sample points where the close value is higher (lower) then the open","value are called increasing (decreasing).","By default, increasing candles are drawn in green whereas","decreasing are drawn in red."].join(" ")},attributes:dge(),layoutAttributes:jR(),supplyLayoutDefaults:yG().supplyLayoutDefaults,crossTraceCalc:MG().crossTraceCalc,supplyDefaults:y5t(),calc:_5t(),plot:xG().plot,layerName:"boxlayer",style:_G().style,hoverPoints:lge().hoverPoints,selectPoints:cge()}}),O5t=Ee((e,t)=>{t.exports=A5t()}),hge=Ee((e,t)=>{var n=Fr(),r=g3(),a=n.deg2rad,i=n.rad2deg;t.exports=function(e,t,o){switch(r(e,o),e._id){case"x":case"radialaxis":!function(e,t){var n=t._subplot;e.setGeometry=function(){var t=e._rl[0],r=e._rl[1],a=n.innerRadius,i=(n.radius-a)/(r-t),o=a/i,s=t>r?function(e){return e<=0}:function(e){return e>=0};e.c2g=function(n){var r=e.c2l(n)-t;return(s(r)?r:0)+o},e.g2c=function(n){return e.l2c(n+t-o)},e.g2p=function(e){return e*i},e.c2p=function(t){return e.g2p(e.c2g(t))}}}(e,t);break;case"angularaxis":!function(e,t){var r=e.type;if("linear"===r){var o=e.d2c,s=e.c2d;e.d2c=function(e,t){return function(e,t){return"degrees"===t?a(e):e}(o(e),t)},e.c2d=function(e,t){return s(function(e,t){return"degrees"===t?i(e):e}(e,t))}}e.makeCalcdata=function(t,n){var r,a,i=t[n],o=t._length,s=function(n){return e.d2c(n,t.thetaunit)};if(i)for(r=new Array(o),a=0;a<o;a++)r[a]=s(i[a]);else{var l=n+"0",c="d"+n,u=l in t?s(t[l]):0,d=t[c]?s(t[c]):(e.period||2*Math.PI)/o;for(r=new Array(o),a=0;a<o;a++)r[a]=u+a*d}return r},e.setGeometry=function(){var o,s,l,c,u=t.sector,d=u.map(a),p={clockwise:-1,counterclockwise:1}[e.direction],h=a(e.rotation),f=function(e){return p*e+h},m=function(e){return(e-h)/p};switch(r){case"linear":s=o=n.identity,c=a,l=i,e.range=n.isFullCircle(d)?[u[0],u[0]+360]:d.map(m).map(i);break;case"category":var g=e._categories.length,y=e.period?Math.max(e.period,g):g;0===y&&(y=1),s=c=function(e){return 2*e*Math.PI/y},o=l=function(e){return e*y/Math.PI/2},e.range=[0,y]}e.c2g=function(e){return f(s(e))},e.g2c=function(e){return o(m(e))},e.t2g=function(e){return f(c(e))},e.g2t=function(e){return l(m(e))}}}(e,t)}}}),bK=Ee((e,t)=>{t.exports={attr:"subplot",name:"polar",axisNames:["angularaxis","radialaxis"],axisName2dataArray:{angularaxis:"theta",radialaxis:"r"},layerNames:["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}}),xK=Ee((e,t)=>{var n=Fr(),r=KD().tester,a=n.findIndexOfMin,i=n.isAngleInsideSector,o=n.angleDelta,s=n.angleDist;function l(e,t,n,r){var a,i,o=r[0],s=r[1],l=u(Math.sin(t)-Math.sin(e)),c=u(Math.cos(t)-Math.cos(e)),d=Math.tan(n),p=u(1/d),h=l/c,f=s-h*o;return p?l&&c?i=d*(a=f/(d-h)):c?(a=s*p,i=s):(a=o,i=o*d):l&&c?(a=0,i=f):c?(a=0,i=s):a=i=NaN,[a,i]}function c(e,t,r,o){return n.isFullCircle([t,r])?function(e,t){var n,r=t.length,a=new Array(r+1);for(n=0;n<r;n++){var i=t[n];a[n]=[e*Math.cos(i),e*Math.sin(i)]}return a[n]=a[0].slice(),a}(e,o):function(e,t,r,o){var c,u,d=o.length,p=[];function h(t){return[e*Math.cos(t),e*Math.sin(t)]}function f(e,t,n){return l(e,t,n,h(e))}function m(e){return n.mod(e,d)}function g(e){return i(e,[t,r])}var y=a(o,function(e){return g(e)?s(e,t):1/0}),b=f(o[y],o[m(y-1)],t);for(p.push(b),c=y,u=0;u<d;c++,u++){var v=o[m(c)];if(!g(v))break;p.push(h(v))}var M=a(o,function(e){return g(e)?s(e,r):1/0}),x=f(o[M],o[m(M+1)],r);return p.push(x),p.push([0,0]),p.push(p[0].slice()),p}(e,t,r,o)}function u(e){return Math.abs(e)>1e-10?e:0}function d(e,t,n){t=t||0,n=n||0;for(var r=e.length,a=new Array(r),i=0;i<r;i++){var o=e[i];a[i]=[t+o[0],n-o[1]]}return a}t.exports={isPtInsidePolygon:function(e,t,n,a,o){if(!i(t,a))return!1;var s,l;n[0]<n[1]?(s=n[0],l=n[1]):(s=n[1],l=n[0]);var u=r(c(s,a[0],a[1],o)),d=r(c(l,a[0],a[1],o)),p=[e*Math.cos(t),e*Math.sin(t)];return d.contains(p)&&!u.contains(p)},findPolygonOffset:function(e,t,n,r){for(var a=1/0,i=1/0,o=c(e,t,n,r),s=0;s<o.length;s++){var l=o[s];a=Math.min(a,l[0]),i=Math.min(i,-l[1])}return[a,i]},findEnclosingVertexAngles:function(e,t){var r=a(t,function(t){var n=o(t,e);return n>0?n:1/0}),i=n.mod(r+1,t.length);return[t[r],t[i]]},findIntersectionXY:l,findXYatLength:function(e,t,n,r){var a=-t*n,i=t*t+1,o=2*(t*a-n),s=a*a+n*n-e*e,l=Math.sqrt(o*o-4*i*s),c=(-o+l)/(2*i),u=(-o-l)/(2*i);return[[c,t*c+a+r],[u,t*u+a+r]]},clampTiny:u,pathPolygon:function(e,t,n,r,a,i){return"M"+d(c(e,t,n,r),a,i).join("L")},pathPolygonAnnulus:function(e,t,n,r,a,i,o){var s,l;e<t?(s=e,l=t):(s=t,l=e);var u=d(c(s,n,r,a),i,o);return"M"+d(c(l,n,r,a),i,o).reverse().join("L")+"M"+u.join("L")}}}),vge=Ee((e,t)=>{function n(e){return e<0?-1:e>0?1:0}function r(e){var t=e[0],n=e[1];if(!isFinite(t)||!isFinite(n))return[1,0];var r=(t+1)*(t+1)+n*n;return[(t*t+n*n-1)/r,2*n/r]}function a(e,t){var n=t[0],r=t[1];return[n*e.radius+e.cx,-r*e.radius+e.cy]}function i(e,t){return t*e.radius}t.exports={smith:r,reactanceArc:function(e,t,n,o){var s=a(e,r([n,t])),l=s[0],c=s[1],u=a(e,r([o,t])),d=u[0],p=u[1];if(0===t)return["M"+l+","+c,"L"+d+","+p].join(" ");var h=i(e,1/Math.abs(t));return["M"+l+","+c,"A"+h+","+h+" 0 0,"+(t<0?1:0)+" "+d+","+p].join(" ")},resistanceArc:function(e,t,o,s){var l=i(e,1/(t+1)),c=a(e,r([t,o])),u=c[0],d=c[1],p=a(e,r([t,s])),h=p[0],f=p[1];if(n(o)!==n(s)){var m=a(e,r([t,0]));return["M"+u+","+d,"A"+l+","+l+" 0 0,"+(0<o?0:1)+" "+m[0]+","+m[1],"A"+l+","+l+" 0 0,"+(s<0?0:1)+h+","+f].join(" ")}return["M"+u+","+d,"A"+l+","+l+" 0 0,"+(s<o?0:1)+" "+h+","+f].join(" ")},smithTransform:a}}),bge=Ee((e,t)=>{var n=mo(),r=Vh(),a=vo(),i=Fr(),o=i.strRotate,s=i.strTranslate,l=ao(),c=vs(),u=td(),d=es(),p=g3(),h=hge(),f=$y().doAutoRange,m=t1e(),g=p2(),y=_d(),b=xw(),v=uf().prepSelect,M=uf().selectOnClick,x=uf().clearOutline,z=Ky(),_=ID(),A=jD().redrawReglTraces,O=lh().MID_SHIFT,w=bK(),k=xK(),T=vge(),S=T.smith,C=T.reactanceArc,E=T.resistanceArc,q=T.smithTransform,D=i._,R=i.mod,L=i.deg2rad,I=i.rad2deg;function W(e,t,n){this.isSmith=n||!1,this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var r=e._fullLayout,a="clip"+r._uid+t;this.clipIds.forTraces=a+"-for-traces",this.clipPaths.forTraces=r._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=r["_"+(n?"smith":"polar")+"layer"].append("g").attr("class",t),this.getHole=function(e){return this.isSmith?0:e.hole},this.getSector=function(e){return this.isSmith?[0,360]:e.sector},this.getRadial=function(e){return this.isSmith?e.realaxis:e.radialaxis},this.getAngular=function(e){return this.isSmith?e.imaginaryaxis:e.angularaxis},n||(this.radialTickLayout=null,this.angularTickLayout=null)}var N=W.prototype;function P(e){var t=e.ticks+String(e.ticklen)+String(e.showticklabels);return"side"in e&&(t+=e.side),t}function B(e,t){return t[i.findIndexOfMin(t,function(t){return i.angleDist(e,t)})]}function F(e,t,n){return t?(e.attr("display",null),e.attr(n)):e&&e.attr("display","none"),e}t.exports=function(e,t,n){return new W(e,t,n)},N.plot=function(e,t){for(var n=this,r=t[n.id],a=!1,i=0;i<e.length;i++){if(!1===e[i][0].trace.cliponaxis){a=!0;break}}n._hasClipOnAxisFalse=a,n.updateLayers(t,r),n.updateLayout(t,r),u.generalUpdatePerTraceModule(n.gd,n,e,r),n.updateFx(t,r),n.isSmith&&(delete r.realaxis.range,delete r.imaginaryaxis.range)},N.updateLayers=function(e,t){var r=this,a=r.isSmith,i=r.layers,o=r.getRadial(t),s=r.getAngular(t),l=w.layerNames,c=l.indexOf("frontplot"),u=l.slice(0,c),d="below traces"===s.layer,p="below traces"===o.layer;d&&u.push("angular-line"),p&&u.push("radial-line"),d&&u.push("angular-axis"),p&&u.push("radial-axis"),u.push("frontplot"),d||u.push("angular-line"),p||u.push("radial-line"),d||u.push("angular-axis"),p||u.push("radial-axis");var h=(a?"smith":"polar")+"sublayer",f=r.framework.selectAll("."+h).data(u,String);f.enter().append("g").attr("class",function(e){return h+" "+e}).each(function(e){var t=i[e]=n.select(this);switch(e){case"frontplot":a||t.append("g").classed("barlayer",!0),t.append("g").classed("scatterlayer",!0);break;case"backplot":t.append("g").classed("maplayer",!0);break;case"plotbg":i.bg=t.append("path");break;case"radial-grid":case"angular-grid":t.style("fill","none");break;case"radial-line":t.append("line").style("fill","none");break;case"angular-line":t.append("path").style("fill","none")}}),f.order()},N.updateLayout=function(e,t){var n=this,r=n.layers,a=e._size,i=n.getRadial(t),o=n.getAngular(t),u=t.domain.x,d=t.domain.y;n.xOffset=a.l+a.w*u[0],n.yOffset=a.t+a.h*(1-d[1]);var p=n.xLength=a.w*(u[1]-u[0]),h=n.yLength=a.h*(d[1]-d[0]),f=n.getSector(t);n.sectorInRad=f.map(L);var m,g,y,b,v,M=n.sectorBBox=function(e){var t,n,r,a,i=e[0],o=e[1],s=o-i,l=R(i,360),c=l+s,u=Math.cos(L(l)),d=Math.sin(L(l)),p=Math.cos(L(c)),h=Math.sin(L(c));return a=l<=90&&c>=90||l>90&&c>=450?1:d<=0&&h<=0?0:Math.max(d,h),t=l<=180&&c>=180||l>180&&c>=540?-1:u>=0&&p>=0?0:Math.min(u,p),n=l<=270&&c>=270||l>270&&c>=630?-1:d>=0&&h>=0?0:Math.min(d,h),r=c>=360?1:u<=0&&p<=0?0:Math.max(u,p),[t,n,r,a]}(f),x=M[2]-M[0],z=M[3]-M[1],_=h/p,A=Math.abs(z/x);_>A?(m=p,v=(h-(g=p*A))/a.h/2,y=[u[0],u[1]],b=[d[0]+v,d[1]-v]):(g=h,v=(p-(m=h/A))/a.w/2,y=[u[0]+v,u[1]-v],b=[d[0],d[1]]),n.xLength2=m,n.yLength2=g,n.xDomain2=y,n.yDomain2=b;var O,w=n.xOffset2=a.l+a.w*y[0],k=n.yOffset2=a.t+a.h*(1-b[1]),T=n.radius=m/x,S=n.innerRadius=n.getHole(t)*T,C=n.cx=w-T*M[0],E=n.cy=k+T*M[3],q=n.cxx=C-w,D=n.cyy=E-k,I=i.side;"counterclockwise"===I?(O=I,I="top"):"clockwise"===I&&(O=I,I="bottom"),n.radialAxis=n.mockAxis(e,t,i,{_id:"x",side:I,_trueSide:O,domain:[S/a.w,T/a.w]}),n.angularAxis=n.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),n.doAutoRange(e,t),n.updateAngularAxis(e,t),n.updateRadialAxis(e,t),n.updateRadialAxisTitle(e,t),n.xaxis=n.mockCartesianAxis(e,t,{_id:"x",domain:y}),n.yaxis=n.mockCartesianAxis(e,t,{_id:"y",domain:b});var W=n.pathSubplot();n.clipPaths.forTraces.select("path").attr("d",W).attr("transform",s(q,D)),r.frontplot.attr("transform",s(w,k)).call(c.setClipUrl,n._hasClipOnAxisFalse?null:n.clipIds.forTraces,n.gd),r.bg.attr("d",W).attr("transform",s(C,E)).call(l.fill,t.bgcolor)},N.mockAxis=function(e,t,n,r){var a=i.extendFlat({},n,r);return h(a,t,e),a},N.mockCartesianAxis=function(e,t,n){var r=this,a=r.isSmith,o=n._id,s=i.extendFlat({type:"linear"},n);p(s,e);var l={x:[0,2],y:[1,3]};return s.setRange=function(){var e=r.sectorBBox,n=l[o],a=r.radialAxis._rl,i=(a[1]-a[0])/(1-r.getHole(t));s.range=[e[n[0]]*i,e[n[1]]*i]},s.isPtWithinRange="x"!==o||a?function(){return!0}:function(e){return r.isPtInside(e)},s.setRange(),s.setScale(),s},N.doAutoRange=function(e,t){var n=this,r=n.gd,a=n.radialAxis,i=n.getRadial(t);f(r,a);var o=a.range;if(i.range=o.slice(),i._input.range=o.slice(),a._rl=[a.r2l(o[0],null,"gregorian"),a.r2l(o[1],null,"gregorian")],void 0!==a.minallowed){var s=a.r2l(a.minallowed);a._rl[0]>a._rl[1]?a._rl[1]=Math.max(a._rl[1],s):a._rl[0]=Math.max(a._rl[0],s)}if(void 0!==a.maxallowed){var l=a.r2l(a.maxallowed);a._rl[0]<a._rl[1]?a._rl[1]=Math.min(a._rl[1],l):a._rl[0]=Math.min(a._rl[0],l)}},N.updateRadialAxis=function(e,t){var n=this,r=n.gd,a=n.layers,c=n.radius,u=n.innerRadius,p=n.cx,h=n.cy,f=n.getRadial(t),m=R(n.getSector(t)[0],360),g=n.radialAxis,y=u<c,b=n.isSmith;b||(n.fillViewInitialKey("radialaxis.angle",f.angle),n.fillViewInitialKey("radialaxis.range",g.range.slice()),g.setGeometry()),"auto"===g.tickangle&&m>90&&m<=270&&(g.tickangle=180);var v=b?function(e){var t=q(n,S([e.x,0]));return s(t[0]-p,t[1]-h)}:function(e){return s(g.l2p(e.x)+u,0)},M=b?function(e){return E(n,e.x,-1/0,1/0)}:function(e){return n.pathArc(g.r2p(e.x)+u)},x=P(f);if(n.radialTickLayout!==x&&(a["radial-axis"].selectAll(".xtick").remove(),n.radialTickLayout=x),y){g.setScale();var z=0,_=b?(g.tickvals||[]).filter(function(e){return e>=0}).map(function(e){return d.tickText(g,e,!0,!1)}):d.calcTicks(g),A=b?_:d.clipEnds(g,_),O=d.getTickSigns(g)[2];b&&(("top"===g.ticks&&"bottom"===g.side||"bottom"===g.ticks&&"top"===g.side)&&(O=-O),"top"===g.ticks&&"top"===g.side&&(z=-g.ticklen),"bottom"===g.ticks&&"bottom"===g.side&&(z=g.ticklen)),d.drawTicks(r,g,{vals:_,layer:a["radial-axis"],path:d.makeTickPath(g,0,O),transFn:v,crisp:!1}),d.drawGrid(r,g,{vals:A,layer:a["radial-grid"],path:M,transFn:i.noop,crisp:!1}),d.drawLabels(r,g,{vals:_,layer:a["radial-axis"],transFn:v,labelFns:d.makeLabelFns(g,z)})}var w=n.radialAxisAngle=n.vangles?I(B(L(f.angle),n.vangles)):f.angle,k=s(p,h),T=k+o(-w);F(a["radial-axis"],y&&(f.showticklabels||f.ticks),{transform:T}),F(a["radial-grid"],y&&f.showgrid,{transform:b?"":k}),F(a["radial-line"].select("line"),y&&f.showline,{x1:b?-c:u,y1:0,x2:c,y2:0,transform:T}).attr("stroke-width",f.linewidth).call(l.stroke,f.linecolor)},N.updateRadialAxisTitle=function(e,t,n){if(!this.isSmith){var r=this,a=r.gd,i=r.radius,o=r.cx,s=r.cy,l=r.getRadial(t),u=r.id+"title",d=0;if(l.title){var p=c.bBox(r.layers["radial-axis"].node()).height,h=l.title.font.size,f=l.side;d="top"===f?h:"counterclockwise"===f?-(p+.4*h):p+.8*h}var m=void 0!==n?n:r.radialAxisAngle,g=L(m),y=Math.cos(g),v=Math.sin(g),M=o+i/2*y+d*v,x=s-i/2*v+d*y;r.layers["radial-axis-title"]=b.draw(a,u,{propContainer:l,propName:r.id+".radialaxis.title.text",placeholder:D(a,"Click to enter radial axis title"),attributes:{x:M,y:x,"text-anchor":"middle"},transform:{rotate:-m}})}},N.updateAngularAxis=function(e,t){var n=this,r=n.gd,a=n.layers,c=n.radius,u=n.innerRadius,p=n.cx,h=n.cy,f=n.getAngular(t),m=n.angularAxis,g=n.isSmith;g||(n.fillViewInitialKey("angularaxis.rotation",f.rotation),m.setGeometry(),m.setScale());var y=g?function(e){var t=q(n,S([0,e.x]));return Math.atan2(t[0]-p,t[1]-h)-Math.PI/2}:function(e){return m.t2g(e.x)};"linear"===m.type&&"radians"===m.thetaunit&&(m.tick0=I(m.tick0),m.dtick=I(m.dtick));var b=function(e){return s(p+c*Math.cos(e),h-c*Math.sin(e))},v=g?function(e){var t=q(n,S([0,e.x]));return s(t[0],t[1])}:function(e){return b(y(e))},M=g?function(e){var t=q(n,S([0,e.x])),r=Math.atan2(t[0]-p,t[1]-h)-Math.PI/2;return s(t[0],t[1])+o(-I(r))}:function(e){var t=y(e);return b(t)+o(-I(t))},x=g?function(e){return C(n,e.x,0,1/0)}:function(e){var t=y(e),n=Math.cos(t),r=Math.sin(t);return"M"+[p+u*n,h-u*r]+"L"+[p+c*n,h-c*r]},z=d.makeLabelFns(m,0).labelStandoff,_={xFn:function(e){var t=y(e);return Math.cos(t)*z},yFn:function(e){var t=y(e),n=Math.sin(t)>0?.2:1;return-Math.sin(t)*(z+e.fontSize*n)+Math.abs(Math.cos(t))*(e.fontSize*O)},anchorFn:function(e){var t=y(e),n=Math.cos(t);return Math.abs(n)<.1?"middle":n>0?"start":"end"},heightFn:function(e,t,n){var r=y(e);return-.5*(1+Math.sin(r))*n}},A=P(f);n.angularTickLayout!==A&&(a["angular-axis"].selectAll("."+m._id+"tick").remove(),n.angularTickLayout=A);var w,k=g?[1/0].concat(m.tickvals||[]).map(function(e){return d.tickText(m,e,!0,!1)}):d.calcTicks(m);if(g&&(k[0].text="∞",k[0].fontSize*=1.75),"linear"===t.gridshape?(w=k.map(y),i.angleDelta(w[0],w[1])<0&&(w=w.slice().reverse())):w=null,n.vangles=w,"category"===m.type&&(k=k.filter(function(e){return i.isAngleInsideSector(y(e),n.sectorInRad)})),m.visible){var T="inside"===m.ticks?-1:1,E=(m.linewidth||1)/2;d.drawTicks(r,m,{vals:k,layer:a["angular-axis"],path:"M"+T*E+",0h"+T*m.ticklen,transFn:M,crisp:!1}),d.drawGrid(r,m,{vals:k,layer:a["angular-grid"],path:x,transFn:i.noop,crisp:!1}),d.drawLabels(r,m,{vals:k,layer:a["angular-axis"],repositionOnUpdate:!0,transFn:v,labelFns:_})}F(a["angular-line"].select("path"),f.showline,{d:n.pathSubplot(),transform:s(p,h)}).attr("stroke-width",f.linewidth).call(l.stroke,f.linecolor)},N.updateFx=function(e,t){this.gd._context.staticPlot||(!this.isSmith&&(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1)),this.updateHoverAndMainDrag(e))},N.updateHoverAndMainDrag=function(e){var t,o,l=this,c=l.isSmith,u=l.gd,d=l.layers,p=e._zoomlayer,h=w.MINZOOM,f=w.OFFEDGE,b=l.radius,z=l.innerRadius,_=l.cx,A=l.cy,O=l.cxx,T=l.cyy,S=l.sectorInRad,C=l.vangles,E=l.radialAxis,q=k.clampTiny,D=k.findXYatLength,R=k.findEnclosingVertexAngles,L=w.cornerHalfWidth,I=w.cornerLen/2,W=m.makeDragger(d,"path","maindrag",!1===e.dragmode?"none":"crosshair");n.select(W).attr("d",l.pathSubplot()).attr("transform",s(_,A)),W.onmousemove=function(e){y.hover(u,e,l.id),u._fullLayout._lasthover=W,u._fullLayout._hoversubplot=l.id},W.onmouseout=function(e){u._dragging||g.unhover(u,e)};var N,P,B,F,j,U,V,H,X,G={element:W,gd:u,subplot:l.id,plotinfo:{id:l.id,xaxis:l.xaxis,yaxis:l.yaxis},xaxes:[l.xaxis],yaxes:[l.yaxis]};function Y(e,t){return Math.sqrt(e*e+t*t)}function Z(e,t){return Y(e-O,t-T)}function $(e,t){return Math.atan2(T-t,e-O)}function J(e,t){return[e*Math.cos(t),e*Math.sin(-t)]}function Q(e,t){if(0===e)return l.pathSector(2*L);var n=I/e,r=t-n,a=t+n,i=Math.max(0,Math.min(e,b)),o=i-L,s=i+L;return"M"+J(o,r)+"A"+[o,o]+" 0,0,0 "+J(o,a)+"L"+J(s,a)+"A"+[s,s]+" 0,0,1 "+J(s,r)+"Z"}function K(e,t,n){if(0===e)return l.pathSector(2*L);var r,a,i=J(e,t),o=J(e,n),s=q((i[0]+o[0])/2),c=q((i[1]+o[1])/2);if(s&&c){var u=c/s,d=-1/u,p=D(L,u,s,c);r=D(I,d,p[0][0],p[0][1]),a=D(I,d,p[1][0],p[1][1])}else{var h,f;c?(h=I,f=L):(h=L,f=I),r=[[s-h,c-f],[s+h,c-f]],a=[[s-h,c+f],[s+h,c+f]]}return"M"+r.join("L")+"L"+a.reverse().join("L")+"Z"}function ee(e,t){return t=Math.max(Math.min(t,b),z),e<f?e=0:b-e<f?e=b:t<f?t=0:b-t<f&&(t=b),Math.abs(t-e)>h?(e<t?(B=e,F=t):(B=t,F=e),!0):(B=null,F=null,!1)}function te(e,t){e=e||j,t=t||"M0,0Z",H.attr("d",e),X.attr("d",t),m.transitionZoombox(H,X,U,V),U=!0;var n={};oe(n),u.emit("plotly_relayouting",n)}function ne(e,n){var r,a,i=N+(e*=t),s=P+(n*=o),c=Z(N,P),u=Math.min(Z(i,s),b),d=$(N,P);ee(c,u)&&(r=j+l.pathSector(F),B&&(r+=l.pathSector(B)),a=Q(B,d)+Q(F,d)),te(r,a)}function re(e,t,n,r){var a=k.findIntersectionXY(n,r,n,[e-O,T-t]);return Y(a[0],a[1])}function ae(e,t){var n,r,a=N+e,i=P+t,o=$(N,P),s=$(a,i),c=R(o,C),u=R(s,C);ee(re(N,P,c[0],c[1]),Math.min(re(a,i,u[0],u[1]),b))&&(n=j+l.pathSector(F),B&&(n+=l.pathSector(B)),r=[K(B,c[0],c[1]),K(F,c[0],c[1])].join(" ")),te(n,r)}function ie(){if(m.removeZoombox(u),null!==B&&null!==F){var e={};oe(e),m.showDoubleClickNotifier(u),a.call("_guiRelayout",u,e)}}function oe(e){var t=E._rl,n=(t[1]-t[0])/(1-z/b)/b,r=[t[0]+(B-z)*n,t[0]+(F-z)*n];e[l.id+".radialaxis.range"]=r}function se(e,t){var n=u._fullLayout.clickmode;if(m.removeZoombox(u),2===e){var r={};for(var i in l.viewInitial)r[l.id+"."+i]=l.viewInitial[i];u.emit("plotly_doubleclick",null),a.call("_guiRelayout",u,r)}n.indexOf("select")>-1&&1===e&&M(t,u,[l.xaxis],[l.yaxis],l.id,G),n.indexOf("event")>-1&&y.click(u,t,l.id)}G.prepFn=function(e,n,a){var s=u._fullLayout.dragmode,d=W.getBoundingClientRect();u._fullLayout._calcInverseTransform(u);var h=u._fullLayout._invTransform;t=u._fullLayout._invScaleX,o=u._fullLayout._invScaleY;var f=i.apply3DTransform(h)(n-d.left,a-d.top);if(N=f[0],P=f[1],C){var g=k.findPolygonOffset(b,S[0],S[1],C);N+=O+g[0],P+=T+g[1]}switch(s){case"zoom":G.clickFn=se,c||(G.moveFn=C?ae:ne,G.doneFn=ie,function(){B=null,F=null,j=l.pathSubplot(),U=!1;var e=u._fullLayout[l.id];V=r(e.bgcolor).getLuminance(),(H=m.makeZoombox(p,V,_,A,j)).attr("fill-rule","evenodd"),X=m.makeCorners(p,_,A),x(u)}());break;case"select":case"lasso":v(e,n,a,G,s)}},g.init(G)},N.updateRadialDrag=function(e,t,r){var l=this,c=l.gd,u=l.layers,d=l.radius,p=l.innerRadius,h=l.cx,f=l.cy,y=l.radialAxis,b=w.radialDragBoxSize,v=b/2;if(y.visible){var M,z,O,k=L(l.radialAxisAngle),T=y._rl,S=T[0],C=T[1],E=T[r],q=.75*(T[1]-T[0])/(1-l.getHole(t))/d;r?(M=h+(d+v)*Math.cos(k),z=f-(d+v)*Math.sin(k),O="radialdrag"):(M=h+(p-v)*Math.cos(k),z=f-(p-v)*Math.sin(k),O="radialdrag-inner");var D,R,W,N=m.makeRectDragger(u,O,"crosshair",-v,-v,b,b),P={element:N,gd:c};!1===e.dragmode&&(P.dragmode=!1),F(n.select(N),y.visible&&p<d,{transform:s(M,z)}),P.prepFn=function(){D=null,R=null,W=null,P.moveFn=j,P.doneFn=U,x(c)},P.clampFn=function(e,t){return Math.sqrt(e*e+t*t)<w.MINDRAG&&(e=0,t=0),[e,t]},g.init(P)}function j(e,t){if(D)D(e,t);else{var n=[e,-t],a=[Math.cos(k),Math.sin(k)],o=Math.abs(i.dot(n,a)/Math.sqrt(i.dot(n,n)));isNaN(o)||(D=o<.5?V:H)}var s={};(function(e){null!==R?e[l.id+".radialaxis.angle"]=R:null!==W&&(e[l.id+".radialaxis.range["+r+"]"]=W)})(s),c.emit("plotly_relayouting",s)}function U(){null!==R?a.call("_guiRelayout",c,l.id+".radialaxis.angle",R):null!==W&&a.call("_guiRelayout",c,l.id+".radialaxis.range["+r+"]",W)}function V(e,t){if(0!==r){var n=M+e,a=z+t;R=Math.atan2(f-a,n-h),l.vangles&&(R=B(R,l.vangles)),R=I(R);var i=s(h,f)+o(-R);u["radial-axis"].attr("transform",i),u["radial-line"].select("line").attr("transform",i);var c=l.gd._fullLayout,d=c[l.id];l.updateRadialAxisTitle(c,d,R)}}function H(e,t){var n=i.dot([e,-t],[Math.cos(k),Math.sin(k)]);if(W=E-q*n,q>0==(r?W>S:W<C)){var o=c._fullLayout,s=o[l.id];y.range[r]=W,y._rl[r]=W,l.updateRadialAxis(o,s),l.xaxis.setRange(),l.xaxis.setScale(),l.yaxis.setRange(),l.yaxis.setScale();var u=!1;for(var d in l.traceHash){var p=l.traceHash[d],h=i.filterVisible(p);p[0][0].trace._module.plot(c,l,h,s),a.traceIs(d,"gl")&&h.length&&(u=!0)}u&&(_(c),A(c))}else W=null}},N.updateAngularDrag=function(e){var t=this,r=t.gd,l=t.layers,u=t.radius,d=t.angularAxis,p=t.cx,h=t.cy,f=t.cxx,y=t.cyy,b=w.angularDragBoxSize,v=m.makeDragger(l,"path","angulardrag",!1===e.dragmode?"none":"move"),M={element:v,gd:r};function O(e,t){return Math.atan2(y+b-t,e-f-b)}!1===e.dragmode?M.dragmode=!1:n.select(v).attr("d",t.pathAnnulus(u,u+b)).attr("transform",s(p,h)).call(z,"move");var k,T,S,C,E,q,D=l.frontplot.select(".scatterlayer").selectAll(".trace"),R=D.selectAll(".point"),L=D.selectAll(".textpoint");function W(u,m){var g=t.gd._fullLayout,b=g[t.id],v=O(k+u*e._invScaleX,T+m*e._invScaleY),M=I(v-q);if(C=S+M,l.frontplot.attr("transform",s(t.xOffset2,t.yOffset2)+o([-M,f,y])),t.vangles){E=t.radialAxisAngle+M;var x=s(p,h)+o(-M),z=s(p,h)+o(-E);l.bg.attr("transform",x),l["radial-grid"].attr("transform",x),l["radial-axis"].attr("transform",z),l["radial-line"].select("line").attr("transform",z),t.updateRadialAxisTitle(g,b,E)}else t.clipPaths.forTraces.select("path").attr("transform",s(f,y)+o(M));R.each(function(){var e=n.select(this),t=c.getTranslate(e);e.attr("transform",s(t.x,t.y)+o([M]))}),L.each(function(){var e=n.select(this),t=e.select("text"),r=c.getTranslate(e);e.attr("transform",o([M,t.attr("x"),t.attr("y")])+s(r.x,r.y))}),d.rotation=i.modHalf(C,360),t.updateAngularAxis(g,b),t._hasClipOnAxisFalse&&!i.isFullCircle(t.sectorInRad)&&D.call(c.hideOutsideRangePoints,t);var w=!1;for(var W in t.traceHash)if(a.traceIs(W,"gl")){var P=t.traceHash[W],B=i.filterVisible(P);P[0][0].trace._module.plot(r,t,B,b),B.length&&(w=!0)}w&&(_(r),A(r));var F={};N(F),r.emit("plotly_relayouting",F)}function N(e){e[t.id+".angularaxis.rotation"]=C,t.vangles&&(e[t.id+".radialaxis.angle"]=E)}function P(){L.select("text").attr("transform",null);var e={};N(e),a.call("_guiRelayout",r,e)}M.prepFn=function(n,a,o){var s=e[t.id];S=s.angularaxis.rotation;var l=v.getBoundingClientRect();k=a-l.left,T=o-l.top,r._fullLayout._calcInverseTransform(r);var c=i.apply3DTransform(e._invTransform)(k,T);k=c[0],T=c[1],q=O(k,T),M.moveFn=W,M.doneFn=P,x(r)},t.vangles&&!i.isFullCircle(t.sectorInRad)&&(M.prepFn=i.noop,z(n.select(v),null)),g.init(M)},N.isPtInside=function(e){if(this.isSmith)return!0;var t=this.sectorInRad,n=this.vangles,r=this.angularAxis.c2g(e.theta),a=this.radialAxis,o=a.c2l(e.r),s=a._rl;return(n?k.isPtInsidePolygon:i.isPtInsideSector)(o,r,s,t,n)},N.pathArc=function(e){var t=this.sectorInRad,n=this.vangles;return(n?k.pathPolygon:i.pathArc)(e,t[0],t[1],n)},N.pathSector=function(e){var t=this.sectorInRad,n=this.vangles;return(n?k.pathPolygon:i.pathSector)(e,t[0],t[1],n)},N.pathAnnulus=function(e,t){var n=this.sectorInRad,r=this.vangles;return(r?k.pathPolygonAnnulus:i.pathAnnulus)(e,t,n[0],n[1],r)},N.pathSubplot=function(){var e=this.innerRadius,t=this.radius;return e?this.pathAnnulus(e,t):this.pathSector(t)},N.fillViewInitialKey=function(e,t){e in this.viewInitial||(this.viewInitial[e]=t)}}),Mge=Ee((e,t)=>{var n=oh(),r=vp(),a=ad().attributes,i=Fr().extendFlat,o=Wu().overrideAll,s=o({color:r.color,showline:i({},r.showline,{dflt:!0}),linecolor:r.linecolor,linewidth:r.linewidth,showgrid:i({},r.showgrid,{dflt:!0}),gridcolor:r.gridcolor,gridwidth:r.gridwidth,griddash:r.griddash},"plot","from-root"),l=o({tickmode:r.minor.tickmode,nticks:r.nticks,tick0:r.tick0,dtick:r.dtick,tickvals:r.tickvals,ticktext:r.ticktext,ticks:r.ticks,ticklen:r.ticklen,tickwidth:r.tickwidth,tickcolor:r.tickcolor,ticklabelstep:r.ticklabelstep,showticklabels:r.showticklabels,labelalias:r.labelalias,minorloglabels:r.minorloglabels,showtickprefix:r.showtickprefix,tickprefix:r.tickprefix,showticksuffix:r.showticksuffix,ticksuffix:r.ticksuffix,showexponent:r.showexponent,exponentformat:r.exponentformat,minexponent:r.minexponent,separatethousands:r.separatethousands,tickfont:r.tickfont,tickangle:r.tickangle,tickformat:r.tickformat,tickformatstops:r.tickformatstops,layer:r.layer},"plot","from-root"),c={visible:i({},r.visible,{dflt:!0}),type:i({},r.type,{values:["-","linear","log","date","category"]}),autotypenumbers:r.autotypenumbers,autorangeoptions:{minallowed:r.autorangeoptions.minallowed,maxallowed:r.autorangeoptions.maxallowed,clipmin:r.autorangeoptions.clipmin,clipmax:r.autorangeoptions.clipmax,include:r.autorangeoptions.include,editType:"plot"},autorange:i({},r.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc",description:["If *tozero*, the range extends to 0,","regardless of the input data","If *nonnegative*, the range is non-negative,","regardless of the input data.","If *normal*, the range is computed in relation to the extrema","of the input data (same behavior as for cartesian axes)."].join(" ")},minallowed:i({},r.minallowed,{editType:"plot"}),maxallowed:i({},r.maxallowed,{editType:"plot"}),range:i({},r.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:r.categoryorder,categoryarray:r.categoryarray,angle:{valType:"angle",editType:"plot",description:["Sets the angle (in degrees) from which the radial axis is drawn.","Note that by default, radial axis line on the theta=0 line","corresponds to a line pointing right (like what mathematicians prefer).","Defaults to the first `polar.sector` angle."].join(" ")},autotickangles:r.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot",description:["Determines on which side of radial axis line","the tick and tick labels appear."].join(" ")},title:{text:i({},r.title.text,{editType:"plot",dflt:""}),font:i({},r.title.font,{editType:"plot"}),editType:"plot"},hoverformat:r.hoverformat,uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in axis `range`,","`autorange`, `angle`, and `title` if in `editable: true` configuration.","Defaults to `polar<N>.uirevision`."].join(" ")},editType:"calc"};i(c,s,l);var u={visible:i({},r.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0,description:["Sets the angular axis type.","If *linear*, set `thetaunit` to determine the unit in which axis value are shown.","If *category, use `period` to set the number of integer coordinates around polar axis."].join(" ")},autotypenumbers:r.autotypenumbers,categoryorder:r.categoryorder,categoryarray:r.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc",description:["Sets the format unit of the formatted *theta* values.","Has an effect only when `angularaxis.type` is *linear*."].join(" ")},period:{valType:"number",editType:"calc",min:0,description:["Set the angular period.","Has an effect only when `angularaxis.type` is *category*."].join(" ")},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc",description:["Sets the direction corresponding to positive angles."].join(" ")},rotation:{valType:"angle",editType:"calc",description:["Sets that start position (in degrees) of the angular axis","By default, polar subplots with `direction` set to *counterclockwise*","get a `rotation` of *0*","which corresponds to due East (like what mathematicians prefer).","In turn, polar with `direction` set to *clockwise* get a rotation of *90*","which corresponds to due North (like on a compass),"].join(" ")},hoverformat:r.hoverformat,uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in axis `rotation`.","Defaults to `polar<N>.uirevision`."].join(" ")},editType:"calc"};i(u,s,l),t.exports={domain:a({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot",description:["Sets angular span of this polar subplot with two angles (in degrees).","Sector are assumed to be spanned in the counterclockwise direction","with *0* corresponding to rightmost limit of the polar subplot."].join(" ")},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot",description:["Sets the fraction of the radius to cut out of the polar subplot."].join(" ")},bgcolor:{valType:"color",editType:"plot",dflt:n.background,description:"Set the background color of the subplot"},radialaxis:c,angularaxis:u,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot",description:["Determines if the radial axis grid lines and angular axis line are drawn","as *circular* sectors or as *linear* (polygon) sectors.","Has an effect only when the angular axis has `type` *category*.","Note that `radialaxis.angle` is snapped to the angle of the closest","vertex when `gridshape` is *circular*","(so that radial axis scale is the same as the data scale)."].join(" ")},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes in axis attributes,","if not overridden in the individual axes.","Defaults to `layout.uirevision`."].join(" ")},editType:"calc"}}),tAt=Ee((e,t)=>{var n=Fr(),r=ao(),a=Kl(),i=p4(),o=mp().getSubplotData,s=mw(),l=nS(),c=Nz(),u=Wz(),d=Cj(),p=wR(),h=D0e(),f=uS(),m=Mge(),g=hge(),y=bK(),b=y.axisNames;function v(e,t,i,f){var v=i("bgcolor");f.bgColor=r.combine(v,f.paper_bgcolor);var x=i("sector");i("hole");var z,_=o(f.fullData,y.name,f.id),A=f.layoutOut;function O(e,t){return i(z+"."+e,t)}for(var w=0;w<b.length;w++){z=b[w],n.isPlainObject(e[z])||(e[z]={});var k=e[z],T=a.newContainer(t,z);T._id=T._name=z,T._attr=f.id+"."+z,T._traceIndices=_.map(function(e){return e.index});var S=y.axisName2dataArray[z],C=M(k,T,O,_,S,f);d(k,T,O,{axData:_,dataAttr:S});var E=O("visible");switch(g(T,t,A),O("uirevision",t.uirevision),T._m=1,z){case"radialaxis":O("minallowed"),O("maxallowed");var q,D=O("range"),R=T.getAutorangeDflt(D),L=O("autorange",R);D&&(null===D[0]&&null===D[1]||(null===D[0]||null===D[1])&&("reversed"===L||!0===L)||null!==D[0]&&("min"===L||"max reversed"===L)||null!==D[1]&&("max"===L||"min reversed"===L))&&(D=void 0,delete T.range,T.autorange=!0,q=!0),q||(L=O("autorange",R=T.getAutorangeDflt(D))),k.autorange=L,L&&(h(O,L,D),("linear"===C||"-"===C)&&O("rangemode"),T.isReversed()&&(T._m=-1)),T.cleanRange("range",{dfltRange:[0,1]});break;case"angularaxis":if("date"===C){n.log("Polar plots do not support date angular axes yet.");for(var I=0;I<_.length;I++)_[I].visible=!1;C=k.type=T.type="linear"}O("linear"===C?"thetaunit":"period");var W=O("direction");O("rotation",{counterclockwise:0,clockwise:90}[W])}if(u(k,T,O,T.type,{tickSuffixDflt:"degrees"===T.thetaunit?"°":void 0}),E){var N,P,B,F,j,U,V,H,X,G,Y=f.font||{};P=(N=O("color"))===k.color?N:Y.color,B=Y.size,F=Y.family,j=Y.weight,U=Y.style,V=Y.variant,H=Y.textcase,X=Y.lineposition,G=Y.shadow,s(k,T,O,T.type),c(k,T,O,T.type,{font:{weight:j,style:U,variant:V,textcase:H,lineposition:X,shadow:G,color:P,size:B,family:F},noAutotickangles:"angularaxis"===z,noTicklabelshift:!0,noTicklabelstandoff:!0}),l(k,T,O,{outerTicks:!0}),p(k,T,O,{dfltColor:N,bgColor:f.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:m[z]}),O("layer"),"radialaxis"===z&&(O("side"),O("angle",x[0]),O("title.text"),n.coerceFont(O,"title.font",{weight:j,style:U,variant:V,textcase:H,lineposition:X,shadow:G,color:P,size:n.bigFont(B),family:F}))}"category"!==C&&O("hoverformat"),T._input=k}"category"===t.angularaxis.type&&i("gridshape")}function M(e,t,n,r,a,i){var o=n("autotypenumbers",i.autotypenumbersDflt);if("-"===n("type")){for(var s,l=0;l<r.length;l++)if(r[l].visible){s=r[l];break}s&&s[a]&&(t.type=f(s[a],"gregorian",{noMultiCategory:!0,autotypenumbers:o})),"-"===t.type?t.type="linear":e.type=t.type}return t.type}t.exports=function(e,t,n){i(e,t,n,{type:y.name,attributes:m,handleDefaults:v,font:t.font,autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,fullData:n,layoutOut:t})}}),SK=Ee((e,t)=>{var n=mp().getSubplotCalcData,r=Fr().counterRegex,a=bge(),i=bK(),o=i.attr,s=i.name,l=r(s),c={};c[o]={valType:"subplotid",dflt:s,editType:"calc",description:["Sets a reference between this trace's data coordinates and","a polar subplot.","If *polar* (the default value), the data refer to `layout.polar`.","If *polar2*, the data refer to `layout.polar2`, and so on."].join(" ")},t.exports={attr:o,name:s,idRoot:s,idRegex:l,attrRegex:l,attributes:c,layoutAttributes:Mge(),supplyLayoutDefaults:tAt(),plot:function(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[s],o=0;o<i.length;o++){var l=i[o],c=n(r,s,l),u=t[l]._subplot;u||(u=a(e,l),t[l]._subplot=u),u.plot(c,t,e._promises)}},clean:function(e,t,n,r){for(var a=r._subplots[s]||[],i=r._has&&r._has("gl"),o=t._has&&t._has("gl"),l=i&&!o,c=0;c<a.length;c++){var u=a[c],d=r[u]._subplot;if(!t[u]&&d)for(var p in d.framework.remove(),d.layers["radial-axis-title"].remove(),d.clipPaths)d.clipPaths[p].remove();l&&d._scene&&(d._scene.destroy(),d._scene=null)}},toSVG:Bf().toSVG}}),tI=Ee((e,t)=>{var{hovertemplateAttrs:n,texttemplateAttrs:r,templatefallbackAttrs:a}=p1(),i=ms().extendFlat,o=tb(),s=Id(),l=S1(),c=s.line;t.exports={mode:s.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes",description:"Sets the radial coordinates"},theta:{valType:"data_array",editType:"calc+clearAxisTypes",description:"Sets the angular coordinates"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Alternate to `r`.","Builds a linear space of r coordinates.","Use with `dr`","where `r0` is the starting coordinate and `dr` the step."].join(" ")},dr:{valType:"number",dflt:1,editType:"calc",description:"Sets the r coordinate step."},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Alternate to `theta`.","Builds a linear space of theta coordinates.","Use with `dtheta`","where `theta0` is the starting coordinate and `dtheta` the step."].join(" ")},dtheta:{valType:"number",editType:"calc",description:["Sets the theta coordinate step.","By default, the `dtheta` step equals the subplot's period divided","by the length of the `r` coordinates."].join(" ")},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes",description:["Sets the unit of input *theta* values.","Has an effect only when on *linear* angular axes."].join(" ")},text:s.text,texttemplate:r({editType:"plot"},{keys:["r","theta","text"]}),texttemplatefallback:a({editType:"plot"}),hovertext:s.hovertext,line:{color:c.color,width:c.width,dash:c.dash,backoff:c.backoff,shape:i({},c.shape,{values:["linear","spline"]}),smoothing:c.smoothing,editType:"calc"},connectgaps:s.connectgaps,marker:s.marker,cliponaxis:i({},s.cliponaxis,{dflt:!1}),textposition:s.textposition,textfont:s.textfont,fill:i({},s.fill,{values:["none","toself","tonext"],dflt:"none",description:["Sets the area to fill with a solid color.","Use with `fillcolor` if not *none*.","scatterpolar has a subset of the options available to scatter.","*toself* connects the endpoints of the trace (or each segment","of the trace if it has gaps) into a closed shape.","*tonext* fills the space between two traces if one completely","encloses the other (eg consecutive contour lines), and behaves like","*toself* if there is no trace before it. *tonext* should not be","used if one trace does not enclose the other."].join(" ")}),fillcolor:o(),hoverinfo:i({},l.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:s.hoveron,hovertemplate:n(),hovertemplatefallback:a(),selected:s.selected,unselected:s.unselected}}),EK=Ee((e,t)=>{var n=Fr(),r=Hc(),a=Wv(),i=Yg(),o=kS(),s=Zg(),l=ib(),c=S3().PTS_LINESONLY,u=tI();function d(e,t,r,a){var i,o=a("r"),s=a("theta");if(n.isTypedArray(o)&&(t.r=o=Array.from(o)),n.isTypedArray(s)&&(t.theta=s=Array.from(s)),o)s?i=Math.min(o.length,s.length):(i=o.length,a("theta0"),a("dtheta"));else{if(!s)return 0;i=t.theta.length,a("r0"),a("dr")}return t._length=i,i}t.exports={handleRThetaDefaults:d,supplyDefaults:function(e,t,p,h){function f(r,a){return n.coerce(e,t,u,r,a)}var m=d(e,t,h,f);if(m){f("thetaunit"),f("mode",m<c?"lines+markers":"lines"),f("text"),f("hovertext"),"fills"!==t.hoveron&&(f("hovertemplate"),f("hovertemplatefallback")),r.hasMarkers(t)&&a(e,t,p,h,f,{gradient:!0}),r.hasLines(t)&&(i(e,t,p,h,f,{backoff:!0}),o(e,t,f),f("connectgaps")),r.hasText(t)&&(f("texttemplate"),f("texttemplatefallback"),s(e,t,h,f));var g=[];(r.hasMarkers(t)||r.hasText(t))&&(f("cliponaxis"),f("marker.maxdisplayed"),g.push("points")),f("fill"),"none"!==t.fill&&(l(e,t,p,f),r.hasLines(t)||o(e,t,f)),("tonext"===t.fill||"toself"===t.fill)&&g.push("fills"),f("hoveron",g.join("+")||"points"),n.coerceSelectionMarkerOpacity(t,f)}else t.visible=!1}}}),qK=Ee((e,t)=>{var n=Fr(),r=es();t.exports=function(e,t,a){var i,o,s={},l=a[t.subplot]._subplot;l?(i=l.radialAxis,o=l.angularAxis):(i=(l=a[t.subplot]).radialaxis,o=l.angularaxis);var c=i.c2l(e.r);s.rLabel=r.tickText(i,c,!0).text;var u="degrees"===o.thetaunit?n.rad2deg(e.theta):e.theta;return s.thetaLabel=r.tickText(o,u,!0).text,s}}),vAt=Ee((e,t)=>{var n=xs(),r=T0().BADNUM,a=es(),i=$g(),o=E3(),s=Kg(),l=Jg().calcMarkerSize;t.exports=function(e,t){for(var c=e._fullLayout,u=t.subplot,d=c[u].radialaxis,p=c[u].angularaxis,h=d.makeCalcdata(t,"r"),f=p.makeCalcdata(t,"theta"),m=t._length,g=new Array(m),y=0;y<m;y++){var b=h[y],v=f[y],M=g[y]={};n(b)&&n(v)?(M.r=b,M.theta=v):M.r=r}var x=l(t,m);return t._extremes.x=a.findExtremes(d,h,{ppad:x}),i(e,t),o(g,t),s(g,t),g}}),bAt=Ee((e,t)=>{var n=LS(),r=T0().BADNUM;t.exports=function(e,t,a){for(var i=t.layers.frontplot.select("g.scatterlayer"),o=t.xaxis,s=t.yaxis,l={xaxis:o,yaxis:s,plot:t.framework,layerClipId:t._hasClipOnAxisFalse?t.clipIds.forTraces:null},c=t.radialAxis,u=t.angularAxis,d=0;d<a.length;d++)for(var p=a[d],h=0;h<p.length;h++){0===h&&(p[0].trace._xA=o,p[0].trace._yA=s);var f=p[h],m=f.r;if(m===r)f.x=f.y=r;else{var g=c.c2g(m),y=u.c2g(f.theta);f.x=g*Math.cos(y),f.y=g*Math.sin(y)}}n(e,l,a,i)}}),DK=Ee((e,t)=>{var n=WS();function r(e,t,n,r){var a=n.radialAxis,i=n.angularAxis;a._hovertitle="r",i._hovertitle="θ";var o={};o[t.subplot]={_subplot:n};var s=t._module.formatLabels(e,t,o);r.rLabel=s.rLabel,r.thetaLabel=s.thetaLabel;var l=e.hi||t.hoverinfo,c=[];function u(e,t){c.push(e._hovertitle+": "+t)}if(!t.hovertemplate){var d=l.split("+");-1!==d.indexOf("all")&&(d=["r","theta","text"]),-1!==d.indexOf("r")&&u(a,r.rLabel),-1!==d.indexOf("theta")&&u(i,r.thetaLabel),-1!==d.indexOf("text")&&r.text&&(c.push(r.text),delete r.text),r.extraText=c.join("<br>")}}t.exports={hoverPoints:function(e,t,a,i){var o=n(e,t,a,i);if(o&&!1!==o[0].index){var s=o[0];if(void 0===s.index)return o;var l=e.subplot,c=s.cd[s.index],u=s.trace;if(l.isPtInside(c))return s.xLabelVal=void 0,s.yLabelVal=void 0,r(c,u,l,s),s.hovertemplate=u.hovertemplate,o}},makeHoverPointText:r}}),zAt=Ee((e,t)=>{t.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:SK(),categories:["polar","symbols","showLegend","scatter-like"],attributes:tI(),supplyDefaults:EK().supplyDefaults,colorbar:Wp(),formatLabels:qK(),calc:vAt(),plot:bAt(),style:vm().style,styleOnSelect:vm().styleOnSelect,hoverPoints:DK().hoverPoints,selectPoints:FS(),meta:{hrName:"scatter_polar",description:["The scatterpolar trace type encompasses line charts, scatter charts, text charts, and bubble charts","in polar coordinates.","The data visualized as scatter point or lines is set in","`r` (radial) and `theta` (angular) coordinates","Text (appearing either on the chart or on hover only) is via `text`.","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","to numerical arrays."].join(" ")}}}),wAt=Ee((e,t)=>{t.exports=zAt()}),xge=Ee((e,t)=>{var{cliponaxis:n,hoveron:r,...a}=tI(),{connectgaps:i,line:{color:o,dash:s,width:l},fill:c,fillcolor:u,marker:d,textfont:p,textposition:h}=KL();t.exports={...a,connectgaps:i,fill:c,fillcolor:u,line:{color:o,dash:s,editType:"calc",width:l},marker:d,textfont:p,textposition:h}}),kAt=Ee((e,t)=>{var n=Fr(),r=Hc(),a=EK().handleRThetaDefaults,i=Wv(),o=Yg(),s=Zg(),l=ib(),c=S3().PTS_LINESONLY,u=xge();t.exports=function(e,t,d,p){function h(r,a){return n.coerce(e,t,u,r,a)}var f=a(e,t,p,h);f?(h("thetaunit"),h("mode",f<c?"lines+markers":"lines"),h("text"),h("hovertext"),"fills"!==t.hoveron&&(h("hovertemplate"),h("hovertemplatefallback")),r.hasMarkers(t)&&i(e,t,d,p,h,{noAngleRef:!0,noLineDash:!0,noStandOff:!0}),r.hasLines(t)&&(o(e,t,d,p,h),h("connectgaps")),r.hasText(t)&&(h("texttemplate"),h("texttemplatefallback"),s(e,t,p,h,{noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0})),h("fill"),"none"!==t.fill&&l(e,t,d,h),n.coerceSelectionMarkerOpacity(t,h)):t.visible=!1}}),EAt=Ee((e,t)=>{var n=qK();t.exports=function(e,t,r){var a=e.i;return"r"in e||(e.r=t._r[a]),"theta"in e||(e.theta=t._theta[a]),n(e,t,r)}}),DAt=Ee((e,t)=>{var n=$g(),r=Jg().calcMarkerSize,a=CO(),i=es(),o=P4().TOO_MANY_POINTS;t.exports=function(e,t){var s=e._fullLayout,l=t.subplot,c=s[l].radialaxis,u=s[l].angularaxis,d=t._r=c.makeCalcdata(t,"r"),p=t._theta=u.makeCalcdata(t,"theta"),h=t._length,f={};h<d.length&&(d=d.slice(0,h)),h<p.length&&(p=p.slice(0,h)),f.r=d,f.theta=p,n(e,t);var m,g=f.opts=a.style(e,t);return h<o?m=r(t,h):g.marker&&(m=2*(g.marker.sizeAvg||Math.max(g.marker.size,3))),t._extremes.x=i.findExtremes(c,d,{ppad:m}),[{x:!1,y:!1,t:f,trace:t}]}}),LAt=Ee((e,t)=>{var n=KY(),r=DK().makeHoverPointText;t.exports={hoverPoints:function(e,t,a,i){var o=e.cd[0].t,s=o.r,l=o.theta,c=n.hoverPoints(e,t,a,i);if(c&&!1!==c[0].index){var u=c[0];if(void 0===u.index)return c;var d=e.subplot,p=u.cd[u.index],h=u.trace;if(p.r=s[u.index],p.theta=l[u.index],d.isPtInside(p))return u.xLabelVal=void 0,u.yLabelVal=void 0,r(p,h,d,u),c}}}}),IAt=Ee((e,t)=>{t.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:SK(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:xge(),supplyDefaults:kAt(),colorbar:Wp(),formatLabels:EAt(),calc:DAt(),hoverPoints:LAt().hoverPoints,selectPoints:qpe(),meta:{hrName:"scatter_polar_gl",description:["The scatterpolargl trace type encompasses line charts, scatter charts, and bubble charts","in polar coordinates using the WebGL plotting engine.","The data visualized as scatter point or lines is set in","`r` (radial) and `theta` (angular) coordinates","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","to numerical arrays."].join(" ")}}}),NAt=Ee((e,t)=>{var n=eZ(),r=xs(),a=I2e(),i=kpe(),o=CO(),s=Fr(),l=P4().TOO_MANY_POINTS;t.exports=function(e,t,c){if(c.length){var u=t.radialAxis,d=t.angularAxis,p=i(e,t);return c.forEach(function(a){if(a&&a[0]&&a[0].trace){var i,c=a[0],h=c.trace,f=c.t,m=h._length,g=f.r,y=f.theta,b=f.opts,v=g.slice(),M=y.slice();for(i=0;i<g.length;i++)t.isPtInside({r:g[i],theta:y[i]})||(v[i]=NaN,M[i]=NaN);var x=new Array(2*m),z=Array(m),_=Array(m);for(i=0;i<m;i++){var A,O,w=v[i];if(r(w)){var k=u.c2g(w),T=d.c2g(M[i],h.thetaunit);A=k*Math.cos(T),O=k*Math.sin(T)}else A=O=NaN;z[i]=x[2*i]=A,_[i]=x[2*i+1]=O}f.tree=n(x),b.marker&&m>=l&&(b.marker.cluster=f.tree),b.marker&&(b.markerSel.positions=b.markerUnsel.positions=b.marker.positions=x),b.line&&x.length>1&&s.extendFlat(b.line,o.linePositions(e,h,x)),b.text&&(s.extendFlat(b.text,{positions:x},o.textPosition(e,h,b.text,b.marker)),s.extendFlat(b.textSel,{positions:x},o.textPosition(e,h,b.text,b.markerSel)),s.extendFlat(b.textUnsel,{positions:x},o.textPosition(e,h,b.text,b.markerUnsel))),b.fill&&!p.fill2d&&(p.fill2d=!0),b.marker&&!p.scatter2d&&(p.scatter2d=!0),b.line&&!p.line2d&&(p.line2d=!0),b.text&&!p.glText&&(p.glText=!0),p.lineOptions.push(b.line),p.fillOptions.push(b.fill),p.markerOptions.push(b.marker),p.markerSelectedOptions.push(b.markerSel),p.markerUnselectedOptions.push(b.markerUnsel),p.textOptions.push(b.text),p.textSelectedOptions.push(b.textSel),p.textUnselectedOptions.push(b.textUnsel),p.selectBatch.push([]),p.unselectBatch.push([]),f.x=z,f.y=_,f.rawx=z,f.rawy=_,f.r=g,f.theta=y,f.positions=x,f._scene=p,f.index=p.count,p.count++}}),a(e,t,c)}},t.exports.reglPrecompiled={}}),BAt=Ee((e,t)=>{var n=IAt();n.plot=NAt(),t.exports=n}),HAt=Ee((e,t)=>{t.exports=BAt()}),Age=Ee((e,t)=>{var n,{hovertemplateAttrs:r,templatefallbackAttrs:a}=p1(),i=ms().extendFlat,o=tI(),s=R3();t.exports={r:o.r,theta:o.theta,r0:o.r0,dr:o.dr,theta0:o.theta0,dtheta:o.dtheta,thetaunit:o.thetaunit,base:i({},s.base,{description:["Sets where the bar base is drawn (in radial axis units).","In *stack* barmode,","traces that set *base* will be excluded","and drawn in *overlay* mode instead."].join(" ")}),offset:i({},s.offset,{description:["Shifts the angular position where the bar is drawn","(in *thetatunit* units)."].join(" ")}),width:i({},s.width,{description:["Sets the bar angular width (in *thetaunit* units)."].join(" ")}),text:i({},s.text,{description:["Sets hover text elements associated with each bar.","If a single string, the same string appears over all bars.","If an array of string, the items are mapped in order to the","this trace's coordinates."].join(" ")}),hovertext:i({},s.hovertext,{description:"Same as `text`."}),marker:(n=i({},s.marker),delete n.cornerradius,n),hoverinfo:o.hoverinfo,hovertemplate:r(),hovertemplatefallback:a(),selected:s.selected,unselected:s.unselected}}),wge=Ee((e,t)=>{t.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc",description:["Determines how bars at the same location coordinate","are displayed on the graph.","With *stack*, the bars are stacked on top of one another","With *overlay*, the bars are plotted over one another,","you might need to reduce *opacity* to see multiple bars."].join(" ")},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc",description:["Sets the gap between bars of","adjacent location coordinates.","Values are unitless, they represent fractions of the minimum difference","in bar positions in the data."].join(" ")}}}),YAt=Ee((e,t)=>{var n=Fr(),r=EK().handleRThetaDefaults,a=fG(),i=Age();t.exports=function(e,t,o,s){function l(r,a){return n.coerce(e,t,i,r,a)}r(e,t,s,l)?(l("thetaunit"),l("base"),l("offset"),l("width"),l("text"),l("hovertext"),l("hovertemplate"),l("hovertemplatefallback"),a(e,t,l,o,s),n.coerceSelectionMarkerOpacity(t,l)):t.visible=!1}}),$At=Ee((e,t)=>{var n=Fr(),r=wge();t.exports=function(e,t,a){var i,o={};function s(a,o){return n.coerce(e[i]||{},t[i],r,a,o)}for(var l=0;l<a.length;l++){var c=a[l];"barpolar"===c.type&&!0===c.visible&&(o[i=c.subplot]||(s("barmode"),s("bargap"),o[i]=1))}}}),Oge=Ee((e,t)=>{var n=d2().hasColorscale,r=f2(),a=Fr().isArrayOrTypedArray,i=FR(),o=Bw().setGroupPositions,s=Kg(),l=vo().traceIs,c=Fr().extendFlat;t.exports={calc:function(e,t){for(var o=e._fullLayout,l=t.subplot,c=o[l].radialaxis,u=o[l].angularaxis,d=c.makeCalcdata(t,"r"),p=u.makeCalcdata(t,"theta"),h=t._length,f=new Array(h),m=d,g=p,y=0;y<h;y++)f[y]={p:g[y],s:m[y]};function b(e){var n=t[e];void 0!==n&&(t["_"+e]=a(n)?u.makeCalcdata(t,e):u.d2c(n,t.thetaunit))}return"linear"===u.type&&(b("width"),b("offset")),n(t,"marker")&&r(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),n(t,"marker.line")&&r(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),i(f,t),s(f,t),f},crossTraceCalc:function(e,t,n){for(var r=e.calcdata,a=[],i=0;i<r.length;i++){var s=r[i],u=s[0].trace;!0===u.visible&&l(u,"bar")&&u.subplot===n&&a.push(s)}var d=c({},t.radialaxis,{_id:"x"}),p=t.angularaxis;o(e,p,d,a,{mode:t.barmode,norm:t.barnorm,gap:t.bargap,groupgap:t.bargroupgap})}}}),rwt=Ee((e,t)=>{var n=mo(),r=xs(),a=Fr(),i=vs(),o=xK();t.exports=function(e,t,s){var l=e._context.staticPlot,c=t.xaxis,u=t.yaxis,d=t.radialAxis,p=t.angularAxis,h=function(e){var t=e.cxx,n=e.cyy;return e.vangles?function(r,i,s,l){var c,u;a.angleDelta(s,l)>0?(c=s,u=l):(c=l,u=s);var d=[o.findEnclosingVertexAngles(c,e.vangles)[0],(c+u)/2,o.findEnclosingVertexAngles(u,e.vangles)[1]];return o.pathPolygonAnnulus(r,i,c,u,d,t,n)}:function(e,r,i,o){return a.pathAnnulus(e,r,i,o,t,n)}}(t),f=t.layers.frontplot.select("g.barlayer");a.makeTraceGroups(f,s,"trace bars").each(function(){var o=n.select(this),s=a.ensureSingle(o,"g","points").selectAll("g.point").data(a.identity);s.enter().append("g").style("vector-effect",l?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),s.exit().remove(),s.each(function(e){var t,i=n.select(this),o=e.rp0=d.c2p(e.s0),s=e.rp1=d.c2p(e.s1),l=e.thetag0=p.c2g(e.p0),f=e.thetag1=p.c2g(e.p1);if(r(o)&&r(s)&&r(l)&&r(f)&&o!==s&&l!==f){var m=d.c2g(e.s1),g=(l+f)/2;e.ct=[c.c2p(m*Math.cos(g)),u.c2p(m*Math.sin(g))],t=h(o,s,l,f)}else t="M0,0Z";a.ensureSingle(i,"path").attr("d",t)}),i.setClipUrl(o,t._hasClipOnAxisFalse?t.clipIds.forTraces:null,e)})}}),awt=Ee((e,t)=>{var n=_d(),r=Fr(),a=QS().getTraceColor,i=r.fillText,o=DK().makeHoverPointText,s=xK().isPtInsidePolygon;t.exports=function(e,t,l){var c=e.cd,u=c[0].trace,d=e.subplot,p=d.radialAxis,h=d.angularAxis,f=d.vangles,m=f?s:r.isPtInsideSector,g=e.maxHoverDistance,y=h._period||2*Math.PI,b=Math.abs(p.g2p(Math.sqrt(t*t+l*l))),v=Math.atan2(l,t);p.range[0]>p.range[1]&&(v+=Math.PI);if(n.getClosest(c,function(e){return m(b,v,[e.rp0,e.rp1],[e.thetag0,e.thetag1],f)?g+Math.min(1,Math.abs(e.thetag1-e.thetag0)/y)-1+(e.rp1-b)/(e.rp1-e.rp0)-1:1/0},e),!1!==e.index){var M=c[e.index];e.x0=e.x1=M.ct[0],e.y0=e.y1=M.ct[1];var x=r.extendFlat({},M,{r:M.s,theta:M.p});return i(M,u,e),o(x,u,d,e),e.hovertemplate=u.hovertemplate,e.color=a(u,M),e.xLabelVal=e.yLabelVal=void 0,M.s<0&&(e.idealAlign="left"),[e]}}}),owt=Ee((e,t)=>{t.exports={moduleType:"trace",name:"barpolar",basePlotModule:SK(),categories:["polar","bar","showLegend"],attributes:Age(),layoutAttributes:wge(),supplyDefaults:YAt(),supplyLayoutDefaults:$At(),calc:Oge().calc,crossTraceCalc:Oge().crossTraceCalc,plot:rwt(),colorbar:Wp(),formatLabels:qK(),style:ry().style,styleOnSelect:ry().styleOnSelect,hoverPoints:awt(),selectPoints:ek(),meta:{hrName:"bar_polar",description:["The data visualized by the radial span of the bars is set in `r`"].join(" ")}}}),lwt=Ee((e,t)=>{t.exports=owt()}),kge=Ee((e,t)=>{t.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}}),Cge=Ee((e,t)=>{var n=oh(),r=vp(),a=ad().attributes,i=Fr().extendFlat,o=Wu().overrideAll,s=o({color:r.color,showline:i({},r.showline,{dflt:!0}),linecolor:r.linecolor,linewidth:r.linewidth,showgrid:i({},r.showgrid,{dflt:!0}),gridcolor:r.gridcolor,gridwidth:r.gridwidth,griddash:r.griddash},"plot","from-root"),l=o({ticklen:r.ticklen,tickwidth:i({},r.tickwidth,{dflt:2}),tickcolor:r.tickcolor,showticklabels:r.showticklabels,labelalias:r.labelalias,showtickprefix:r.showtickprefix,tickprefix:r.tickprefix,showticksuffix:r.showticksuffix,ticksuffix:r.ticksuffix,tickfont:r.tickfont,tickformat:r.tickformat,hoverformat:r.hoverformat,layer:r.layer},"plot","from-root"),c=i({visible:i({},r.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot",description:"Sets the values at which ticks on this axis appear."},tickangle:i({},r.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks",description:["Determines whether ticks are drawn or not.","If **, this axis' ticks are not drawn.","If *top* (*bottom*), this axis' are drawn above (below)","the axis line."].join(" ")},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot",description:["Determines on which side of real axis line","the tick and tick labels appear."].join(" ")},editType:"calc"},s,l),u=i({visible:i({},r.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot",description:["Sets the values at which ticks on this axis appear.","Defaults to `realaxis.tickvals` plus the same as negatives and zero."].join(" ")},ticks:r.ticks,editType:"calc"},s,l);t.exports={domain:a({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:n.background,description:"Set the background color of the subplot"},realaxis:c,imaginaryaxis:u,editType:"calc"}}),vwt=Ee((e,t)=>{var n,r,a,i=Fr(),o=ao(),s=Kl(),l=p4(),c=mp().getSubplotData,u=Wz(),d=Nz(),p=wR(),h=g3(),f=Cge(),m=kge(),g=m.axisNames,y=(n=function(e){return i.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(e){return-e}).concat([0]).concat(e)},r=String,a={},function(e){var t=r?r(e):e;if(t in a)return a[t];var i=n(e);return a[t]=i,i});function b(e,t,n,r){var a=n("bgcolor");r.bgColor=o.combine(a,r.paper_bgcolor);var l,b=c(r.fullData,m.name,r.id),v=r.layoutOut;function M(e,t){return n(l+"."+e,t)}for(var x=0;x<g.length;x++){l=g[x],i.isPlainObject(e[l])||(e[l]={});var z=e[l],_=s.newContainer(t,l);_._id=_._name=l,_._attr=r.id+"."+l,_._traceIndices=b.map(function(e){return e.index});var A=M("visible");if(_.type="linear",h(_,v),u(z,_,M,_.type),A){var O="realaxis"===l;if(O&&M("side"),O)M("tickvals");else M("tickvals",y(t.realaxis.tickvals||f.realaxis.tickvals.dflt));i.isTypedArray(_.tickvals)&&(_.tickvals=Array.from(_.tickvals));var w,k,T,S,C=r.font||{};A&&(k=(w=M("color"))===z.color?w:C.color,T=C.size,S=C.family),d(z,_,M,_.type,{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,noAng:!O,noExp:!0,font:{color:k,size:T,family:S}}),i.coerce2(e,t,f,l+".ticklen"),i.coerce2(e,t,f,l+".tickwidth"),i.coerce2(e,t,f,l+".tickcolor",t.color),M("ticks")||(delete t[l].ticklen,delete t[l].tickwidth,delete t[l].tickcolor),p(z,_,M,{dfltColor:w,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:f[l]}),M("layer")}M("hoverformat"),delete _.type,_._input=z}}t.exports=function(e,t,n){l(e,t,n,{noUirevision:!0,type:m.name,attributes:f,handleDefaults:b,font:t.font,paper_bgcolor:t.paper_bgcolor,fullData:n,layoutOut:t})}}),_wt=Ee((e,t)=>{var n=mp().getSubplotCalcData,r=Fr().counterRegex,a=bge(),i=kge(),o=i.attr,s=i.name,l=r(s),c={};c[o]={valType:"subplotid",dflt:s,editType:"calc",description:["Sets a reference between this trace's data coordinates and","a smith subplot.","If *smith* (the default value), the data refer to `layout.smith`.","If *smith2*, the data refer to `layout.smith2`, and so on."].join(" ")},t.exports={attr:o,name:s,idRoot:s,idRegex:l,attrRegex:l,attributes:c,layoutAttributes:Cge(),supplyLayoutDefaults:vwt(),plot:function(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[s],o=0;o<i.length;o++){var l=i[o],c=n(r,s,l),u=t[l]._subplot;u||(u=a(e,l,!0),t[l]._subplot=u),u.plot(c,t,e._promises)}},clean:function(e,t,n,r){for(var a=r._subplots[s]||[],i=0;i<a.length;i++){var o=a[i],l=r[o]._subplot;if(!t[o]&&l)for(var c in l.framework.remove(),l.clipPaths)l.clipPaths[c].remove()}},toSVG:Bf().toSVG}}),qge=Ee((e,t)=>{var{hovertemplateAttrs:n,texttemplateAttrs:r,templatefallbackAttrs:a}=p1(),i=ms().extendFlat,o=tb(),s=Id(),l=S1(),c=s.line;t.exports={mode:s.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the real component of the data, in units of normalized impedance","such that real=1, imag=0 is the center of the chart."].join(" ")},imag:{valType:"data_array",editType:"calc+clearAxisTypes",description:["Sets the imaginary component of the data, in units of normalized impedance","such that real=1, imag=0 is the center of the chart."].join(" ")},text:s.text,texttemplate:r({editType:"plot"},{keys:["real","imag","text"]}),texttemplatefallback:a({editType:"plot"}),hovertext:s.hovertext,line:{color:c.color,width:c.width,dash:c.dash,backoff:c.backoff,shape:i({},c.shape,{values:["linear","spline"]}),smoothing:c.smoothing,editType:"calc"},connectgaps:s.connectgaps,marker:s.marker,cliponaxis:i({},s.cliponaxis,{dflt:!1}),textposition:s.textposition,textfont:s.textfont,fill:i({},s.fill,{values:["none","toself","tonext"],dflt:"none",description:["Sets the area to fill with a solid color.","Use with `fillcolor` if not *none*.","scattersmith has a subset of the options available to scatter.","*toself* connects the endpoints of the trace (or each segment","of the trace if it has gaps) into a closed shape.","*tonext* fills the space between two traces if one completely","encloses the other (eg consecutive contour lines), and behaves like","*toself* if there is no trace before it. *tonext* should not be","used if one trace does not enclose the other."].join(" ")}),fillcolor:o(),hoverinfo:i({},l.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:s.hoveron,hovertemplate:n(),hovertemplatefallback:a(),selected:s.selected,unselected:s.unselected}}),Twt=Ee((e,t)=>{var n=Fr(),r=Hc(),a=Wv(),i=Yg(),o=kS(),s=Zg(),l=ib(),c=S3().PTS_LINESONLY,u=qge();t.exports=function(e,t,d,p){function h(r,a){return n.coerce(e,t,u,r,a)}var f=function(e,t,r,a){var i,o=a("real"),s=a("imag");return o&&s&&(i=Math.min(o.length,s.length)),n.isTypedArray(o)&&(t.real=o=Array.from(o)),n.isTypedArray(s)&&(t.imag=s=Array.from(s)),t._length=i,i}(0,t,0,h);if(f){h("mode",f<c?"lines+markers":"lines"),h("text"),h("hovertext"),"fills"!==t.hoveron&&(h("hovertemplate"),h("hovertemplatefallback")),r.hasMarkers(t)&&a(e,t,d,p,h,{gradient:!0}),r.hasLines(t)&&(i(e,t,d,p,h,{backoff:!0}),o(e,t,h),h("connectgaps")),r.hasText(t)&&(h("texttemplate"),h("texttemplatefallback"),s(e,t,p,h));var m=[];(r.hasMarkers(t)||r.hasText(t))&&(h("cliponaxis"),h("marker.maxdisplayed"),m.push("points")),h("fill"),"none"!==t.fill&&(l(e,t,d,h),r.hasLines(t)||o(e,t,h)),("tonext"===t.fill||"toself"===t.fill)&&m.push("fills"),h("hoveron",m.join("+")||"points"),n.coerceSelectionMarkerOpacity(t,h)}else t.visible=!1}}),Cwt=Ee((e,t)=>{var n=es();t.exports=function(e,t,r){var a={},i=r[t.subplot]._subplot;return a.realLabel=n.tickText(i.radialAxis,e.real,!0).text,a.imagLabel=n.tickText(i.angularAxis,e.imag,!0).text,a}}),Dwt=Ee((e,t)=>{var n=xs(),r=T0().BADNUM,a=$g(),i=E3(),o=Kg(),s=Jg().calcMarkerSize;t.exports=function(e,t){for(var l=e._fullLayout,c=t.subplot,u=l[c].realaxis,d=l[c].imaginaryaxis,p=u.makeCalcdata(t,"real"),h=d.makeCalcdata(t,"imag"),f=t._length,m=new Array(f),g=0;g<f;g++){var y=p[g],b=h[g],v=m[g]={};n(y)&&n(b)?(v.real=y,v.imag=b):v.real=r}return s(t,f),a(e,t),i(m,t),o(m,t),m}}),Pwt=Ee((e,t)=>{var n=LS(),r=T0().BADNUM,a=vge().smith;t.exports=function(e,t,i){for(var o=t.layers.frontplot.select("g.scatterlayer"),s=t.xaxis,l=t.yaxis,c={xaxis:s,yaxis:l,plot:t.framework,layerClipId:t._hasClipOnAxisFalse?t.clipIds.forTraces:null},u=0;u<i.length;u++)for(var d=i[u],p=0;p<d.length;p++){0===p&&(d[0].trace._xA=s,d[0].trace._yA=l);var h=d[p],f=h.real;if(f===r)h.x=h.y=r;else{var m=a([f,h.imag]);h.x=m[0],h.y=m[1]}}n(e,c,i,o)}}),Wwt=Ee((e,t)=>{var n=WS();function r(e,t,n,r){var a=n.radialAxis,i=n.angularAxis;a._hovertitle="real",i._hovertitle="imag";var o={};o[t.subplot]={_subplot:n};var s=t._module.formatLabels(e,t,o);r.realLabel=s.realLabel,r.imagLabel=s.imagLabel;var l=e.hi||t.hoverinfo,c=[];function u(e,t){c.push(e._hovertitle+": "+t)}if(!t.hovertemplate){var d=l.split("+");-1!==d.indexOf("all")&&(d=["real","imag","text"]),-1!==d.indexOf("real")&&u(a,r.realLabel),-1!==d.indexOf("imag")&&u(i,r.imagLabel),-1!==d.indexOf("text")&&r.text&&(c.push(r.text),delete r.text),r.extraText=c.join("<br>")}}t.exports={hoverPoints:function(e,t,a,i){var o=n(e,t,a,i);if(o&&!1!==o[0].index){var s=o[0];if(void 0===s.index)return o;var l=e.subplot,c=s.cd[s.index],u=s.trace;if(l.isPtInside(c))return s.xLabelVal=void 0,s.yLabelVal=void 0,r(c,u,l,s),s.hovertemplate=u.hovertemplate,o}},makeHoverPointText:r}}),Bwt=Ee((e,t)=>{t.exports={moduleType:"trace",name:"scattersmith",basePlotModule:_wt(),categories:["smith","symbols","showLegend","scatter-like"],attributes:qge(),supplyDefaults:Twt(),colorbar:Wp(),formatLabels:Cwt(),calc:Dwt(),plot:Pwt(),style:vm().style,styleOnSelect:vm().styleOnSelect,hoverPoints:Wwt().hoverPoints,selectPoints:FS(),meta:{hrName:"scatter_smith",description:["The scattersmith trace type encompasses line charts, scatter charts, text charts, and bubble charts","in smith coordinates.","The data visualized as scatter point or lines is set in","`real` and `imag` (imaginary) coordinates","Text (appearing either on the chart or on hover only) is via `text`.","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","to numerical arrays."].join(" ")}}}),Hwt=Ee((e,t)=>{t.exports=Bwt()}),A2=Ee((e,t)=>{var n=Qh();function r(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function a(e,t,n,r){if(this._calendar=e,this._year=t,this._month=n,this._day=r,0===this._calendar._validateLevel&&!this._calendar.isValid(this._year,this._month,this._day))throw(l.local.invalidDate||l.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function i(e,t){return"000000".substring(0,t-(e=""+e).length)+e}function o(){this.shortYearCutoff="+10"}function s(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}n(r.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var n=this._localCals[e+"-"+t];if(!n&&this.calendars[e]&&(n=new this.calendars[e](t),this._localCals[e+"-"+t]=n),!n)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return n},newDate:function(e,t,n,r,a){return(r=(null!=e&&e.year?e.calendar():"string"==typeof r?this.instance(r,a):r)||this.instance()).newDate(e,t,n)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,t){return function(n){for(var r="",a=0;n>0;){var i=n%10;r=(0===i?"":e[i]+t[a])+r,a++,n=Math.floor(n/10)}return 0===r.indexOf(e[1]+t[1])&&(r=r.substr(1)),r||e[0]}}}),n(a.prototype,{newDate:function(e,t,n){return this._calendar.newDate(e??this,t,n)},year:function(e){return 0===arguments.length?this._year:this.set(e,"y")},month:function(e){return 0===arguments.length?this._month:this.set(e,"m")},day:function(e){return 0===arguments.length?this._day:this.set(e,"d")},date:function(e,t,n){if(!this._calendar.isValid(e,t,n))throw(l.local.invalidDate||l.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=n,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(l.local.differentCalendars||l.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return 0===t?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+i(Math.abs(this.year()),4)+"-"+i(this.month(),2)+"-"+i(this.day(),2)}}),n(o.prototype,{_validateLevel:0,newDate:function(e,t,n){return null==e?this.today():(e.year&&(this._validate(e,t,n,l.local.invalidDate||l.regionalOptions[""].invalidDate),n=e.day(),t=e.month(),e=e.year()),new a(this,e,t,n))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){return this._validate(e,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+i(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var n=this._validate(e,t,this.minDay,l.local.invalidMonth||l.regionalOptions[""].invalidMonth);return(n.month()+this.monthsInYear(n)-this.firstMonth)%this.monthsInYear(n)+this.minMonth},fromMonthOfYear:function(e,t){var n=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,n,this.minDay,l.local.invalidMonth||l.regionalOptions[""].invalidMonth),n},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,n){var r=this._validate(e,t,n,l.local.invalidDate||l.regionalOptions[""].invalidDate);return r.toJD()-this.newDate(r.year(),this.fromMonthOfYear(r.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,n){var r=this._validate(e,t,n,l.local.invalidDate||l.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(r))+2)%this.daysInWeek()},extraInfo:function(e,t,n){return this._validate(e,t,n,l.local.invalidDate||l.regionalOptions[""].invalidDate),{}},add:function(e,t,n){return this._validate(e,this.minMonth,this.minDay,l.local.invalidDate||l.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,n),t,n)},_add:function(e,t,n){if(this._validateLevel++,"d"===n||"w"===n){var r=e.toJD()+t*("w"===n?this.daysInWeek():1),a=e.calendar().fromJD(r);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var i=e.year()+("y"===n?t:0),o=e.monthOfYear()+("m"===n?t:0);a=e.day();"y"===n?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):"m"===n&&(function(e){for(;o<e.minMonth;)i--,o+=e.monthsInYear(i);for(var t=e.monthsInYear(i);o>t-1+e.minMonth;)i++,o-=t,t=e.monthsInYear(i)}(this),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),a];return this._validateLevel--,s}catch(e){throw this._validateLevel--,e}},_correctAdd:function(e,t,n,r){if(!(this.hasYearZero||"y"!==r&&"m"!==r||0!==t[0]&&e.year()>0==t[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[r],i=n<0?-1:1;t=this._add(e,n*a[0]+i*a[1],a[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,n){this._validate(e,this.minMonth,this.minDay,l.local.invalidDate||l.regionalOptions[""].invalidDate);var r="y"===n?t:e.year(),a="m"===n?t:e.month(),i="d"===n?t:e.day();return("y"===n||"m"===n)&&(i=Math.min(i,this.daysInMonth(r,a))),e.date(r,a,i)},isValid:function(e,t,n){this._validateLevel++;var r=this.hasYearZero||0!==e;if(r){var a=this.newDate(e,t,this.minDay);r=t>=this.minMonth&&t-this.minMonth<this.monthsInYear(a)&&n>=this.minDay&&n-this.minDay<this.daysInMonth(a)}return this._validateLevel--,r},toJSDate:function(e,t,n){var r=this._validate(e,t,n,l.local.invalidDate||l.regionalOptions[""].invalidDate);return l.instance().fromJD(this.toJD(r)).toJSDate()},fromJSDate:function(e){return this.fromJD(l.instance().fromJSDate(e).toJD())},_validate:function(e,t,n,r){if(e.year){if(0===this._validateLevel&&this.name!==e.calendar().name)throw(l.local.differentCalendars||l.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,e.calendar().local.name);return e}try{if(this._validateLevel++,1===this._validateLevel&&!this.isValid(e,t,n))throw r.replace(/\{0\}/,this.local.name);var a=this.newDate(e,t,n);return this._validateLevel--,a}catch(e){throw this._validateLevel--,e}}}),s.prototype=new o,n(s.prototype,{name:"Gregorian",jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return(e=t.year()+(t.year()<0?1:0))%4==0&&(e%100!=0||e%400==0)},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(4-(r.dayOfWeek()||7),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var n=this._validate(e,t,this.minDay,l.local.invalidMonth||l.regionalOptions[""].invalidMonth);return this.daysPerMonth[n.month()-1]+(2===n.month()&&this.leapYear(n.year())?1:0)},weekDay:function(e,t,n){return(this.dayOfWeek(e,t,n)||7)<6},toJD:function(e,t,n){var r=this._validate(e,t,n,l.local.invalidDate||l.regionalOptions[""].invalidDate);e=r.year(),t=r.month(),n=r.day(),e<0&&e++,t<3&&(t+=12,e--);var a=Math.floor(e/100),i=2-a+Math.floor(a/4);return Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+n+i-1524.5},fromJD:function(e){var t=Math.floor(e+.5),n=Math.floor((t-1867216.25)/36524.25),r=(n=t+1+n-Math.floor(n/4))+1524,a=Math.floor((r-122.1)/365.25),i=Math.floor(365.25*a),o=Math.floor((r-i)/30.6001),s=r-i-Math.floor(30.6001*o),l=o-(o>13.5?13:1),c=a-(l>2.5?4716:4715);return c<=0&&c--,this.newDate(c,l,s)},toJSDate:function(e,t,n){var r=this._validate(e,t,n,l.local.invalidDate||l.regionalOptions[""].invalidDate),a=new Date(r.year(),r.month()-1,r.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var l=t.exports=new r;l.cdate=a,l.baseCalendar=o,l.calendars.gregorian=s}),Gwt=Ee(()=>{var e=Qh(),t=A2();e(t.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),t.local=t.regionalOptions[""],e(t.cdate.prototype,{formatDate:function(e,t){return"string"!=typeof e&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}}),e(t.baseCalendar.prototype,{UNIX_EPOCH:t.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:t.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,n,r){if("string"!=typeof e&&(r=n,n=e,e=""),!n)return"";if(n.calendar()!==this)throw t.local.invalidFormat||t.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat;for(var a=(r=r||{}).dayNamesShort||this.local.dayNamesShort,i=r.dayNames||this.local.dayNames,o=r.monthNumbers||this.local.monthNumbers,s=r.monthNamesShort||this.local.monthNamesShort,l=r.monthNames||this.local.monthNames,c=(r.calculateWeek||this.local.calculateWeek,function(t,n){for(var r=1;v+r<e.length&&e.charAt(v+r)===t;)r++;return v+=r-1,Math.floor(r/(n||1))>1}),u=function(e,t,n,r){var a=""+t;if(c(e,r))for(;a.length<n;)a="0"+a;return a},d=function(e,t,n,r){return c(e)?r[t]:n[t]},p=this,h=function(e){return"function"==typeof o?o.call(p,e,c("m")):g(u("m",e.month(),2))},f=function(e,t){return t?"function"==typeof l?l.call(p,e):l[e.month()-p.minMonth]:"function"==typeof s?s.call(p,e):s[e.month()-p.minMonth]},m=this.local.digits,g=function(e){return r.localNumbers&&m?m(e):e},y="",b=!1,v=0;v<e.length;v++)if(b)"'"!==e.charAt(v)||c("'")?y+=e.charAt(v):b=!1;else switch(e.charAt(v)){case"d":y+=g(u("d",n.day(),2));break;case"D":y+=d("D",n.dayOfWeek(),a,i);break;case"o":y+=u("o",n.dayOfYear(),3);break;case"w":y+=u("w",n.weekOfYear(),2);break;case"m":y+=h(n);break;case"M":y+=f(n,c("M"));break;case"y":y+=c("y",2)?n.year():(n.year()%100<10?"0":"")+n.year()%100;break;case"Y":c("Y",2),y+=n.formatYear();break;case"J":y+=n.toJD();break;case"@":y+=(n.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":y+=(n.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":c("'")?y+="'":b=!0;break;default:y+=e.charAt(v)}return y},parseDate:function(e,n,r){if(null==n)throw t.local.invalidArguments||t.regionalOptions[""].invalidArguments;if(""===(n="object"==typeof n?n.toString():n+""))return null;e=e||this.local.dateFormat;var a=(r=r||{}).shortYearCutoff||this.shortYearCutoff;a="string"!=typeof a?a:this.today().year()%100+parseInt(a,10);for(var i=r.dayNamesShort||this.local.dayNamesShort,o=r.dayNames||this.local.dayNames,s=r.parseMonth||this.local.parseMonth,l=r.monthNumbers||this.local.monthNumbers,c=r.monthNamesShort||this.local.monthNamesShort,u=r.monthNames||this.local.monthNames,d=-1,p=-1,h=-1,f=-1,m=-1,g=!1,y=!1,b=function(t,n){for(var r=1;w+r<e.length&&e.charAt(w+r)===t;)r++;return w+=r-1,Math.floor(r/(n||1))>1},v=function(e,r){var a=b(e,r),i=[2,3,a?4:2,a?4:2,10,11,20]["oyYJ@!".indexOf(e)+1],o=new RegExp("^-?\\d{1,"+i+"}"),s=n.substring(O).match(o);if(!s)throw(t.local.missingNumberAt||t.regionalOptions[""].missingNumberAt).replace(/\{0\}/,O);return O+=s[0].length,parseInt(s[0],10)},M=this,x=function(){if("function"==typeof l){b("m");var e=l.call(M,n.substring(O));return O+=e.length,e}return v("m")},z=function(e,r,a,i){for(var o=b(e,i)?a:r,s=0;s<o.length;s++)if(n.substr(O,o[s].length).toLowerCase()===o[s].toLowerCase())return O+=o[s].length,s+M.minMonth;throw(t.local.unknownNameAt||t.regionalOptions[""].unknownNameAt).replace(/\{0\}/,O)},_=function(){if("function"==typeof u){var e=b("M")?u.call(M,n.substring(O)):c.call(M,n.substring(O));return O+=e.length,e}return z("M",c,u)},A=function(){if(n.charAt(O)!==e.charAt(w))throw(t.local.unexpectedLiteralAt||t.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,O);O++},O=0,w=0;w<e.length;w++)if(y)"'"!==e.charAt(w)||b("'")?A():y=!1;else switch(e.charAt(w)){case"d":f=v("d");break;case"D":z("D",i,o);break;case"o":m=v("o");break;case"w":v("w");break;case"m":h=x();break;case"M":h=_();break;case"y":var k=w;g=!b("y",2),w=k,p=v("y",2);break;case"Y":p=v("Y",2);break;case"J":d=v("J")+.5,"."===n.charAt(O)&&(O++,v("J"));break;case"@":d=v("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":d=v("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":O=n.length;break;case"'":b("'")?A():y=!0;break;default:A()}if(O<n.length)throw t.local.unexpectedText||t.regionalOptions[""].unexpectedText;if(-1===p?p=this.today().year():p<100&&g&&(p+=-1===a?1900:this.today().year()-this.today().year()%100-(p<=a?0:100)),"string"==typeof h&&(h=s.call(this,p,h)),m>-1){h=1,f=m;for(var T=this.daysInMonth(p,h);f>T;T=this.daysInMonth(p,h))h++,f-=T}return d>-1?this.fromJD(d):this.newDate(p,h,f)},determineDate:function(e,t,n,r,a){n&&"object"!=typeof n&&(a=r,r=n,n=null),"string"!=typeof r&&(a=r,r="");var i=this;return t=t?t.newDate():null,e=null==e?t:"string"==typeof e?function(e){try{return i.parseDate(r,e,a)}catch{}for(var t=((e=e.toLowerCase()).match(/^c/)&&n?n.newDate():null)||i.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,s=o.exec(e);s;)t.add(parseInt(s[1],10),s[2]||"d"),s=o.exec(e);return t}(e):"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?t:i.today().add(e,"d"):i.newDate(e)}})}),Xwt=Ee(()=>{var e=A2(),t=Qh(),n=e.instance();function r(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}r.prototype=new e.baseCalendar,t(r.prototype,{name:"Chinese",jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if("string"==typeof e){var n=e.match(i);return n?n[0]:""}var r=this._validateYear(e),a=e.month(),o=""+this.toChineseMonth(r,a);return t&&o.length<2&&(o="0"+o),this.isIntercalaryMonth(r,a)&&(o+="i"),o},monthNames:function(e){if("string"==typeof e){var t=e.match(o);return t?t[0]:""}var n=this._validateYear(e),r=e.month(),a=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(n,r)-1];return this.isIntercalaryMonth(n,r)&&(a="闰"+a),a},monthNamesShort:function(e){if("string"==typeof e){var t=e.match(s);return t?t[0]:""}var n=this._validateYear(e),r=e.month(),a=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(n,r)-1];return this.isIntercalaryMonth(n,r)&&(a="闰"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var n,r=parseInt(t);if(isNaN(r))"闰"===t[0]&&(n=!0,t=t.substring(1)),"月"===t[t.length-1]&&(t=t.substring(0,t.length-1)),r=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(t);else{var a=t[t.length-1];n="i"===a||"I"===a}return this.toMonthIndex(e,r,n)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),"number"!=typeof e||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(t,n,r){var a=this.intercalaryMonth(t);if(r&&n!==a||n<1||n>12)throw e.local.invalidMonth.replace(/\{0\}/,this.local.name);return a?!r&&n<=a?n-1:n:n-1},toChineseMonth:function(t,n){t.year&&(n=(t=t.year()).month());var r=this.intercalaryMonth(t);if(n<0||n>(r?12:11))throw e.local.invalidMonth.replace(/\{0\}/,this.local.name);return r?n<r?n+1:n:n+1},intercalaryMonth:function(e){return e=this._validateYear(e),l[e-l[0]]>>13},isIntercalaryMonth:function(e,t){e.year&&(t=(e=e.year()).month());var n=this.intercalaryMonth(e);return!!n&&n===t},leapYear:function(e){return 0!==this.intercalaryMonth(e)},weekOfYear:function(t,r,a){var i,o=this._validateYear(t,e.local.invalidyear),s=c[o-c[0]],l=s>>9&4095,u=s>>5&15,d=31&s;(i=n.newDate(l,u,d)).add(4-(i.dayOfWeek()||7),"d");var p=this.toJD(t,r,a)-i.toJD();return 1+Math.floor(p/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(t,n){t.year&&(n=t.month(),t=t.year()),t=this._validateYear(t);var r=l[t-l[0]];if(n>(r>>13?12:11))throw e.local.invalidMonth.replace(/\{0\}/,this.local.name);return r&1<<12-n?30:29},weekDay:function(e,t,n){return(this.dayOfWeek(e,t,n)||7)<6},toJD:function(t,r,a){var i=this._validate(t,s,a,e.local.invalidDate);t=this._validateYear(i.year()),r=i.month(),a=i.day();var o=this.isIntercalaryMonth(t,r),s=this.toChineseMonth(t,r),u=function(e,t,n,r,a){var i,o,s;if("object"==typeof e)o=e,i=t||{};else{var u;if(!("number"==typeof e&&e>=1888&&e<=2111))throw new Error("Lunar year outside range 1888-2111");if(!("number"==typeof t&&t>=1&&t<=12))throw new Error("Lunar month outside range 1 - 12");if(!("number"==typeof n&&n>=1&&n<=30))throw new Error("Lunar day outside range 1 - 30");"object"==typeof r?(u=!1,i=r):(u=!!r,i=a||{}),o={year:e,month:t,day:n,isIntercalary:u}}s=o.day-1;var d,p=l[o.year-l[0]],h=p>>13;d=h&&(o.month>h||o.isIntercalary)?o.month:o.month-1;for(var f=0;f<d;f++){s+=p&1<<12-f?30:29}var m=c[o.year-c[0]],g=new Date(m>>9&4095,(m>>5&15)-1,(31&m)+s);return i.year=g.getFullYear(),i.month=1+g.getMonth(),i.day=g.getDate(),i}(t,s,a,o);return n.toJD(u.year,u.month,u.day)},fromJD:function(e){var t=n.fromJD(e),r=function(e,t,n,r){var a,i;if("object"==typeof e)a=e,i=t||{};else{if(!("number"==typeof e&&e>=1888&&e<=2111))throw new Error("Solar year outside range 1888-2111");if(!("number"==typeof t&&t>=1&&t<=12))throw new Error("Solar month outside range 1 - 12");if(!("number"==typeof n&&n>=1&&n<=31))throw new Error("Solar day outside range 1 - 31");a={year:e,month:t,day:n},i=r||{}}var o=c[a.year-c[0]],s=a.year<<9|a.month<<5|a.day;i.year=s>=o?a.year:a.year-1,o=c[i.year-c[0]];var u,d=new Date(o>>9&4095,(o>>5&15)-1,31&o),p=new Date(a.year,a.month-1,a.day);u=Math.round((p-d)/864e5);var h,f=l[i.year-l[0]];for(h=0;h<13;h++){var m=f&1<<12-h?30:29;if(u<m)break;u-=m}var g=f>>13;return!g||h<g?(i.isIntercalary=!1,i.month=1+h):h===g?(i.isIntercalary=!0,i.month=h):(i.isIntercalary=!1,i.month=h),i.day=1+u,i}(t.year(),t.month(),t.day()),a=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,a,r.day)},fromString:function(e){var t=e.match(a),n=this._validateYear(+t[1]),r=+t[2],i=!!t[3],o=this.toMonthIndex(n,r,i),s=+t[4];return this.newDate(n,o,s)},add:function(e,t,n){var a=e.year(),i=e.month(),o=this.isIntercalaryMonth(a,i),s=this.toChineseMonth(a,i),l=Object.getPrototypeOf(r.prototype).add.call(this,e,t,n);if("y"===n){var c=l.year(),u=l.month(),d=this.isIntercalaryMonth(c,s),p=o&&d?this.toMonthIndex(c,s,!0):this.toMonthIndex(c,s,!1);p!==u&&l.month(p)}return l}});var a=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,i=/^\d?\d[iI]?/m,o=/^闰?十?[一二三四五六七八九]?月/m,s=/^闰?十?[一二三四五六七八九]?/m;e.calendars.chinese=r;var l=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],c=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]}),Ywt=Ee(()=>{var e=A2(),t=Qh();function n(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}n.prototype=new e.baseCalendar,t(n.prototype,{name:"Coptic",jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var n=this._validate(t,this.minMonth,this.minDay,e.local.invalidYear);return(t=n.year()+(n.year()<0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,e.local.invalidYear||e.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInMonth:function(t,n){var r=this._validate(t,n,this.minDay,e.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,n){return(this.dayOfWeek(e,t,n)||7)<6},toJD:function(t,n,r){var a=this._validate(t,n,r,e.local.invalidDate);return(t=a.year())<0&&t++,a.day()+30*(a.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,n=Math.floor((t-Math.floor((t+366)/1461))/365)+1;n<=0&&n--,t=Math.floor(e)+.5-this.newDate(n,1,1).toJD();var r=Math.floor(t/30)+1,a=t-30*(r-1)+1;return this.newDate(n,r,a)}}),e.calendars.coptic=n}),Zwt=Ee(()=>{var e=A2(),t=Qh();function n(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}n.prototype=new e.baseCalendar,t(n.prototype,{name:"Discworld",jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,e.local.invalidYear),!1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,e.local.invalidYear),13},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,e.local.invalidYear),400},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/8)+1},daysInMonth:function(t,n){var r=this._validate(t,n,this.minDay,e.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(t,n,r){return(this._validate(t,n,r,e.local.invalidDate).day()+1)%8},weekDay:function(e,t,n){var r=this.dayOfWeek(e,t,n);return r>=2&&r<=6},extraInfo:function(t,n,a){var i=this._validate(t,n,a,e.local.invalidDate);return{century:r[Math.floor((i.year()-1)/100)+1]||""}},toJD:function(t,n,r){var a=this._validate(t,n,r,e.local.invalidDate);return t=a.year()+(a.year()<0?1:0),n=a.month(),(r=a.day())+(n>1?16:0)+(n>2?32*(n-2):0)+400*(t-1)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=400*(t-1),e+=e>15?16:0;var n=Math.floor(e/32)+1,r=e-32*(n-1)+1;return this.newDate(t<=0?t-1:t,n,r)}});var r={20:"Fruitbat",21:"Anchovy"};e.calendars.discworld=n}),$wt=Ee(()=>{var e=A2(),t=Qh();function n(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}n.prototype=new e.baseCalendar,t(n.prototype,{name:"Ethiopian",jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var n=this._validate(t,this.minMonth,this.minDay,e.local.invalidYear);return(t=n.year()+(n.year()<0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,e.local.invalidYear||e.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInMonth:function(t,n){var r=this._validate(t,n,this.minDay,e.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,n){return(this.dayOfWeek(e,t,n)||7)<6},toJD:function(t,n,r){var a=this._validate(t,n,r,e.local.invalidDate);return(t=a.year())<0&&t++,a.day()+30*(a.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,n=Math.floor((t-Math.floor((t+366)/1461))/365)+1;n<=0&&n--,t=Math.floor(e)+.5-this.newDate(n,1,1).toJD();var r=Math.floor(t/30)+1,a=t-30*(r-1)+1;return this.newDate(n,r,a)}}),e.calendars.ethiopian=n}),Kwt=Ee(()=>{var e=A2(),t=Qh();function n(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function r(e,t){return e-t*Math.floor(e/t)}n.prototype=new e.baseCalendar,t(n.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var n=this._validate(t,this.minMonth,this.minDay,e.local.invalidYear);return this._leapYear(n.year())},_leapYear:function(e){return r(7*(e=e<0?e+1:e)+1,19)<7},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,e.local.invalidYear),this._leapYear(t.year?t.year():t)?13:12},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInYear:function(t){return t=this._validate(t,this.minMonth,this.minDay,e.local.invalidYear).year(),this.toJD(-1===t?1:t+1,7,1)-this.toJD(t,7,1)},daysInMonth:function(t,n){return t.year&&(n=t.month(),t=t.year()),this._validate(t,n,this.minDay,e.local.invalidMonth),12===n&&this.leapYear(t)||8===n&&5===r(this.daysInYear(t),10)?30:9===n&&3===r(this.daysInYear(t),10)?29:this.daysPerMonth[n-1]},weekDay:function(e,t,n){return 6!==this.dayOfWeek(e,t,n)},extraInfo:function(t,n,r){var a=this._validate(t,n,r,e.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(t,n,r){var a=this._validate(t,n,r,e.local.invalidDate);t=a.year(),n=a.month(),r=a.day();var i=t<=0?t+1:t,o=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(n<7){for(var s=7;s<=this.monthsInYear(t);s++)o+=this.daysInMonth(t,s);for(s=1;s<n;s++)o+=this.daysInMonth(t,s)}else for(s=7;s<n;s++)o+=this.daysInMonth(t,s);return o},_delay1:function(e){var t=Math.floor((235*e-234)/19),n=12084+13753*t,a=29*t+Math.floor(n/25920);return r(3*(a+1),7)<3&&a++,a},_delay2:function(e){var t=this._delay1(e-1),n=this._delay1(e);return this._delay1(e+1)-n===356?2:n-t===382?1:0},fromJD:function(e){e=Math.floor(e)+.5;for(var t=Math.floor(98496*(e-this.jdEpoch)/35975351)-1;e>=this.toJD(-1===t?1:t+1,7,1);)t++;for(var n=e<this.toJD(t,1,1)?7:1;e>this.toJD(t,n,this.daysInMonth(t,n));)n++;var r=e-this.toJD(t,n,1)+1;return this.newDate(t,n,r)}}),e.calendars.hebrew=n}),Jwt=Ee(()=>{var e=A2(),t=Qh();function n(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}n.prototype=new e.baseCalendar,t(n.prototype,{name:"Islamic",jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(t){return(11*this._validate(t,this.minMonth,this.minDay,e.local.invalidYear).year()+14)%30<11},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(t,n){var r=this._validate(t,n,this.minDay,e.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,n){return 5!==this.dayOfWeek(e,t,n)},toJD:function(t,n,r){var a=this._validate(t,n,r,e.local.invalidDate);return t=a.year(),n=a.month(),t=t<=0?t+1:t,(r=a.day())+Math.ceil(29.5*(n-1))+354*(t-1)+Math.floor((3+11*t)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var n=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),r=e-this.toJD(t,n,1)+1;return this.newDate(t,n,r)}}),e.calendars.islamic=n}),Qwt=Ee(()=>{var e=A2(),t=Qh();function n(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}n.prototype=new e.baseCalendar,t(n.prototype,{name:"Julian",jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var n=this._validate(t,this.minMonth,this.minDay,e.local.invalidYear);return(t=n.year()<0?n.year()+1:n.year())%4==0},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(4-(r.dayOfWeek()||7),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInMonth:function(t,n){var r=this._validate(t,n,this.minDay,e.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,n){return(this.dayOfWeek(e,t,n)||7)<6},toJD:function(t,n,r){var a=this._validate(t,n,r,e.local.invalidDate);return t=a.year(),n=a.month(),r=a.day(),t<0&&t++,n<=2&&(t--,n+=12),Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5)+1524,n=Math.floor((t-122.1)/365.25),r=Math.floor(365.25*n),a=Math.floor((t-r)/30.6001),i=a-Math.floor(a<14?1:13),o=n-Math.floor(i>2?4716:4715),s=t-r-Math.floor(30.6001*a);return o<=0&&o--,this.newDate(o,i,s)}}),e.calendars.julian=n}),tOt=Ee(()=>{var e=A2(),t=Qh();function n(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function r(e,t){return e-t*Math.floor(e/t)}function a(e,t){return r(e-1,t)+1}n.prototype=new e.baseCalendar,t(n.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,e.local.invalidYear),!1},formatYear:function(t){t=this._validate(t,this.minMonth,this.minDay,e.local.invalidYear).year();var n=Math.floor(t/400);return t%=400,t+=t<0?400:0,n+"."+Math.floor(t/20)+"."+t%20},forYear:function(e){if((e=e.split(".")).length<3)throw"Invalid Mayan year";for(var t=0,n=0;n<e.length;n++){var r=parseInt(e[n],10);if(Math.abs(r)>19||n>0&&r<0)throw"Invalid Mayan year";t=20*t+r}return t},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,e.local.invalidYear),18},weekOfYear:function(t,n,r){return this._validate(t,n,r,e.local.invalidDate),0},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,e.local.invalidYear),360},daysInMonth:function(t,n){return this._validate(t,n,this.minDay,e.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(t,n,r){return this._validate(t,n,r,e.local.invalidDate).day()},weekDay:function(t,n,r){return this._validate(t,n,r,e.local.invalidDate),!0},extraInfo:function(t,n,r){var a=this._validate(t,n,r,e.local.invalidDate).toJD(),i=this._toHaab(a),o=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){var t=r((e-=this.jdEpoch)+8+340,365);return[Math.floor(t/20)+1,r(t,20)]},_toTzolkin:function(e){return[a((e-=this.jdEpoch)+20,20),a(e+4,13)]},toJD:function(t,n,r){var a=this._validate(t,n,r,e.local.invalidDate);return a.day()+20*a.month()+360*a.year()+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e%=360,e+=e<0?360:0;var n=Math.floor(e/20),r=e%20;return this.newDate(t,n,r)}}),e.calendars.mayan=n}),nOt=Ee(()=>{var e=A2(),t=Qh();function n(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}n.prototype=new e.baseCalendar;var r=e.instance("gregorian");t(n.prototype,{name:"Nanakshahi",jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var n=this._validate(t,this.minMonth,this.minDay,e.local.invalidYear||e.regionalOptions[""].invalidYear);return r.leapYear(n.year()+(n.year()<1?1:0)+1469)},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(1-(r.dayOfWeek()||7),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInMonth:function(t,n){var r=this._validate(t,n,this.minDay,e.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,n){return(this.dayOfWeek(e,t,n)||7)<6},toJD:function(t,n,a){var i=this._validate(t,n,a,e.local.invalidMonth);(t=i.year())<0&&t++;for(var o=i.day(),s=1;s<i.month();s++)o+=this.daysPerMonth[s-1];return o+r.toJD(t+1468,3,13)},fromJD:function(e){e=Math.floor(e+.5);for(var t=Math.floor((e-(this.jdEpoch-1))/366);e>=this.toJD(t+1,1,1);)t++;for(var n=e-Math.floor(this.toJD(t,1,1)+.5)+1,r=1;n>this.daysInMonth(t,r);)n-=this.daysInMonth(t,r),r++;return this.newDate(t,r,n)}}),e.calendars.nanakshahi=n}),aOt=Ee(()=>{var e=A2(),t=Qh();function n(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}n.prototype=new e.baseCalendar,t(n.prototype,{name:"Nepali",jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInYear:function(t){if(t=this._validate(t,this.minMonth,this.minDay,e.local.invalidYear).year(),typeof this.NEPALI_CALENDAR_DATA[t]>"u")return this.daysPerYear;for(var n=0,r=this.minMonth;r<=12;r++)n+=this.NEPALI_CALENDAR_DATA[t][r];return n},daysInMonth:function(t,n){return t.year&&(n=t.month(),t=t.year()),this._validate(t,n,this.minDay,e.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[t]>"u"?this.daysPerMonth[n-1]:this.NEPALI_CALENDAR_DATA[t][n]},weekDay:function(e,t,n){return 6!==this.dayOfWeek(e,t,n)},toJD:function(t,n,r){var a=this._validate(t,n,r,e.local.invalidDate);t=a.year(),n=a.month(),r=a.day();var i=e.instance(),o=0,s=n,l=t;this._createMissingCalendarData(t);var c=t-(s>9||9===s&&r>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(9!==n&&(o=r,s--);9!==s;)s<=0&&(s=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][s],s--;return 9===n?(o+=r-this.NEPALI_CALENDAR_DATA[l][0])<0&&(o+=i.daysInYear(c)):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],i.newDate(c,1,1).add(o,"d").toJD()},fromJD:function(t){var n=e.instance().fromJD(t),r=n.year(),a=n.dayOfYear(),i=r+56;this._createMissingCalendarData(i);for(var o=9,s=this.NEPALI_CALENDAR_DATA[i][0],l=this.NEPALI_CALENDAR_DATA[i][o]-s+1;a>l;)++o>12&&(o=1,i++),l+=this.NEPALI_CALENDAR_DATA[i][o];var c=this.NEPALI_CALENDAR_DATA[i][o]-(l-a);return this.newDate(i,o,c)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var n=e-1;n<e+2;n++)typeof this.NEPALI_CALENDAR_DATA[n]>"u"&&(this.NEPALI_CALENDAR_DATA[n]=t)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),e.calendars.nepali=n}),iOt=Ee(()=>{var e=A2(),t=Qh();function n(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function r(e){var t=e-475;e<0&&t++;var n=.242197,r=n*t,a=n*(t+1);return r-Math.floor(r)>a-Math.floor(a)}n.prototype=new e.baseCalendar,t(n.prototype,{name:"Persian",jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chahārshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(t){return r(this._validate(t,this.minMonth,this.minDay,e.local.invalidYear).year())},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(-(r.dayOfWeek()+1)%7,"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInMonth:function(t,n){var r=this._validate(t,n,this.minDay,e.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,n){return 5!==this.dayOfWeek(e,t,n)},toJD:function(t,n,a){var i=this._validate(t,n,a,e.local.invalidDate);t=i.year(),n=i.month(),a=i.day();var o=0;if(t>0)for(var s=1;s<t;s++)r(s)&&o++;else if(t<0)for(s=t;s<0;s++)r(s)&&o--;return a+(n<=7?31*(n-1):30*(n-1)+6)+365*(t>0?t-1:t)+o+this.jdEpoch-1},fromJD:function(e){var t=475+((e=Math.floor(e)+.5)-this.toJD(475,1,1))/365.242197,n=Math.floor(t);n<=0&&n--,e>this.toJD(n,12,r(n)?30:29)&&(0===++n&&n++);var a=e-this.toJD(n,1,1)+1,i=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),o=e-this.toJD(n,i,1)+1;return this.newDate(n,i,o)}}),e.calendars.persian=n,e.calendars.jalali=n}),oOt=Ee(()=>{var e=A2(),t=Qh(),n=e.instance();function r(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}r.prototype=new e.baseCalendar,t(r.prototype,{name:"Taiwan",jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,e.local.invalidYear);t=this._t2gYear(r.year());return n.leapYear(t)},weekOfYear:function(t,r,a){var i=this._validate(t,this.minMonth,this.minDay,e.local.invalidYear);t=this._t2gYear(i.year());return n.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,n){var r=this._validate(t,n,this.minDay,e.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,n){return(this.dayOfWeek(e,t,n)||7)<6},toJD:function(t,r,a){var i=this._validate(t,r,a,e.local.invalidDate);t=this._t2gYear(i.year());return n.toJD(t,i.month(),i.day())},fromJD:function(e){var t=n.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}}),e.calendars.taiwan=r}),sOt=Ee(()=>{var e=A2(),t=Qh(),n=e.instance();function r(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}r.prototype=new e.baseCalendar,t(r.prototype,{name:"Thai",jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,e.local.invalidYear);t=this._t2gYear(r.year());return n.leapYear(t)},weekOfYear:function(t,r,a){var i=this._validate(t,this.minMonth,this.minDay,e.local.invalidYear);t=this._t2gYear(i.year());return n.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,n){var r=this._validate(t,n,this.minDay,e.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,n){return(this.dayOfWeek(e,t,n)||7)<6},toJD:function(t,r,a){var i=this._validate(t,r,a,e.local.invalidDate);t=this._t2gYear(i.year());return n.toJD(t,i.month(),i.day())},fromJD:function(e){var t=n.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}}),e.calendars.thai=r}),lOt=Ee(()=>{var e=A2(),t=Qh();function n(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}n.prototype=new e.baseCalendar,t(n.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Juma","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(t){var n=this._validate(t,this.minMonth,this.minDay,e.local.invalidYear);return 355===this.daysInYear(n.year())},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,n=1;n<=12;n++)t+=this.daysInMonth(e,n);return t},daysInMonth:function(t,n){for(var a=this._validate(t,n,this.minDay,e.local.invalidMonth).toJD()-24e5+.5,i=0,o=0;o<r.length;o++){if(r[o]>a)return r[i]-r[i-1];i++}return 30},weekDay:function(e,t,n){return 5!==this.dayOfWeek(e,t,n)},toJD:function(t,n,a){var i=this._validate(t,n,a,e.local.invalidDate),o=12*(i.year()-1)+i.month()-15292;return i.day()+r[o-1]-1+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,n=0,a=0;a<r.length&&!(r[a]>t);a++)n++;var i=n+15292,o=Math.floor((i-1)/12),s=o+1,l=i-12*o,c=t-r[n-1]+1;return this.newDate(s,l,c)},isValid:function(t,n,r){var a=e.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(a=(t=null!=t.year?t.year:t)>=1276&&t<=1500),a},_validate:function(t,n,r,a){var i=e.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw a.replace(/\{0\}/,this.local.name);return i}}),e.calendars.ummalqura=n;var r=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]}),uOt=Ee((e,t)=>{t.exports=A2(),Gwt(),Xwt(),Ywt(),Zwt(),$wt(),Kwt(),Jwt(),Qwt(),tOt(),nOt(),aOt(),iOt(),oOt(),sOt(),lOt()}),gOt=Ee((e,t)=>{var n=uOt(),r=Fr(),a=T0(),i=a.EPOCHJD,o=a.ONEDAY,s={valType:"enumerated",values:r.sortObjectKeys(n.calendars),editType:"calc",dflt:"gregorian"},l=function(e,t,n,a){var i={};return i[n]=s,r.coerce(e,t,i,n,a)},c="##",u={d:{0:"dd","-":"d"},e:{0:"d","-":"d"},a:{0:"D","-":"D"},A:{0:"DD","-":"DD"},j:{0:"oo","-":"o"},W:{0:"ww","-":"w"},m:{0:"mm","-":"m"},b:{0:"M","-":"M"},B:{0:"MM","-":"MM"},y:{0:"yy","-":"yy"},Y:{0:"yyyy","-":"yyyy"},U:c,w:c,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};var d={};function p(e){var t=d[e];return t||(t=d[e]=n.instance(e))}function h(e){return r.extendFlat({},s,{description:e})}function f(e){return"Sets the calendar system to use with `"+e+"` date data."}var m={xcalendar:h(f("x"))},g=r.extendFlat({},m,{ycalendar:h(f("y"))}),y=r.extendFlat({},g,{zcalendar:h(f("z"))}),b=h(["Sets the calendar system to use for `range` and `tick0`","if this is a date axis. This does not set the calendar for","interpreting data on this axis, that's specified in the trace","or via the global `layout.calendar`"].join(" "));t.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:g,bar:g,box:g,heatmap:g,contour:g,histogram:g,histogram2d:g,histogram2dcontour:g,scatter3d:y,surface:y,mesh3d:y,scattergl:g,ohlc:m,candlestick:m},layout:{calendar:h(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:b},yaxis:{calendar:b},scene:{xaxis:{calendar:b},yaxis:{calendar:b},zaxis:{calendar:b}},polar:{radialaxis:{calendar:b}}}},layoutAttributes:s,handleDefaults:l,handleTraceDefaults:function(e,t,n,r){for(var a=0;a<n.length;a++)l(e,t,n[a]+"calendar",r.calendar)},CANONICAL_SUNDAY:{chinese:"2000-01-02",coptic:"2000-01-03",discworld:"2000-01-03",ethiopian:"2000-01-05",hebrew:"5000-01-01",islamic:"1000-01-02",julian:"2000-01-03",mayan:"5000-01-01",nanakshahi:"1000-01-05",nepali:"2000-01-05",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-04",thai:"2000-01-04",ummalqura:"1400-01-06"},CANONICAL_TICK:{chinese:"2000-01-01",coptic:"2000-01-01",discworld:"2000-01-01",ethiopian:"2000-01-01",hebrew:"5000-01-01",islamic:"1000-01-01",julian:"2000-01-01",mayan:"5000-01-01",nanakshahi:"1000-01-01",nepali:"2000-01-01",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-01",thai:"2000-01-01",ummalqura:"1400-01-01"},DFLTRANGE:{chinese:["2000-01-01","2001-01-01"],coptic:["1700-01-01","1701-01-01"],discworld:["1800-01-01","1801-01-01"],ethiopian:["2000-01-01","2001-01-01"],hebrew:["5700-01-01","5701-01-01"],islamic:["1400-01-01","1401-01-01"],julian:["2000-01-01","2001-01-01"],mayan:["5200-01-01","5201-01-01"],nanakshahi:["0500-01-01","0501-01-01"],nepali:["2000-01-01","2001-01-01"],persian:["1400-01-01","1401-01-01"],jalali:["1400-01-01","1401-01-01"],taiwan:["0100-01-01","0101-01-01"],thai:["2500-01-01","2501-01-01"],ummalqura:["1400-01-01","1401-01-01"]},getCal:p,worldCalFmt:function(e,t,n){for(var r,a,s,l,d,h=Math.floor((t+.05)/o)+i,f=p(n).fromJD(h),m=0;-1!==(m=e.indexOf("%",m));)"0"===(r=e.charAt(m+1))||"-"===r||"_"===r?(s=3,a=e.charAt(m+2),"_"===r&&(r="-")):(a=r,r="0",s=2),(l=u[a])?(d=l===c?c:f.formatDate(l[r]),e=e.slice(0,m)+d+e.slice(m+s),m+=d.length):m+=s;return e}}}),bOt=Ee((e,t)=>{t.exports=gOt()}),_Ot=Ee((e,t)=>{var n=RGe();n.register([PXe(),zYe(),IZe(),a$e(),y$e(),vKe(),kKe(),gJe(),GJe(),SQe(),vet(),Xtt(),Prt(),Tat(),mit(),Git(),vot(),Ust(),s0t(),w0t(),I0t(),K0t(),flt(),Slt(),ict(),wct(),N2t(),Nmt(),Zvt(),xgt(),qyt(),Xyt(),gbt(),S3t(),H3t(),hMt(),_xt(),Gxt(),T_t(),Zzt(),M4t(),B4t(),f5t(),O5t(),wAt(),HAt(),lwt(),Hwt(),bOt()]),t.exports=n});async function zOt(e){return s6||oI||(oI=(async()=>{try{let e=await Promise.resolve().then(()=>H7(_Ot()));if(s6=e.default||e,window.Plotly=s6,!s6)throw new Error("Plotly loaded but module is not defined.");return s6}catch(e){throw oI=null,e}})())}var s6,oI,sLr,m_,AOt,wOt,OOt,tye=kr(()=>{Mie(),s6=null,oI=null,sLr=new Proxy({},{get(e,t){let n=window.Plotly||s6;if(!n)throw new Error("Plotly charting library is not loaded yet! Please await ensurePlotlyLoaded() first.");let r=n[t];return"function"==typeof r?r.bind(n):r}}),m_=sLr}),TOt=kr(()=>{AOt={paper_bgcolor:"rgba(0,0,0,0)",plot_bgcolor:"rgba(0,0,0,0)",font:{family:"var(--font-default)",size:12},showlegend:!0},wOt={font:{color:"var(--text-normal)"},xaxis:{gridcolor:"var(--background-modifier-border)",linecolor:"var(--background-modifier-border)",zerolinecolor:"var(--background-modifier-accent-hover)"},yaxis:{gridcolor:"var(--background-modifier-border)",linecolor:"var(--background-modifier-border)",zerolinecolor:"var(--background-modifier-accent-hover)"},legend:{bordercolor:"var(--background-modifier-border)"}},OOt={font:{color:"var(--text-normal)"},xaxis:{gridcolor:"var(--background-modifier-border)",linecolor:"var(--background-modifier-border)",zerolinecolor:"var(--background-modifier-accent)"},yaxis:{gridcolor:"var(--background-modifier-border)",linecolor:"var(--background-modifier-border)",zerolinecolor:"var(--background-modifier-accent)"},legend:{bordercolor:"var(--background-modifier-border)"}}});function w2(e){return!e||isNaN(e.getTime())?null:e.toISOString().split("T")[0]}function SOt(e){if(!(e instanceof Date)||isNaN(e.getTime()))return null;let t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())),n=t.getUTCDay(),r=t.getUTCDate()-n+(0===n?-6:1);return new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),r))}function kOt(e){return!e||isNaN(e.getTime())?null:new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1))}function sI(e){if(null===e)return null;if("number"==typeof e){let t=Math.floor(e);return t>=0&&t<=23?t:null}let t=String(e),n=t.match(/^(\d{1,2}):(\d{2})/);if(n){let e=parseInt(n[1],10);return e>=0&&e<=23?e:null}try{let e=new Date(t);if(!isNaN(e.getTime())){let t=e.getUTCHours();return t>=0&&t<=23?t:null}}catch{}return null}function lLr(e){return{U:0,M:1,T:2,W:3,R:4,F:5,S:6}[String(e).trim().toUpperCase()]}function rye(e,t,n=1){let r=e=>{if(null===e)return null;if("number"==typeof e)return isNaN(e)||!isFinite(e)?null:{hours:Math.floor(e),minutes:Math.round(60*(e-Math.floor(e)))};let t=String(e),n=t.match(/^(\d{1,2}):(\d{2})/);if(n)return{hours:parseInt(n[1]),minutes:parseInt(n[2])};try{let e=new Date(t);if(!isNaN(e.getTime()))return{hours:e.getUTCHours(),minutes:e.getUTCMinutes()}}catch{}return null};try{let a=r(e),i=r(t);if(!a||!i)return 0;let o=60*a.hours+a.minutes,s=60*i.hours+i.minutes;s<o&&(s+=1440);let l=(s-o)/60,c=Number(n)||0;return l*Math.max(0,c)}catch{return 0}}function COt(e,t,n){if("recurring"!==e.type)return null;let{startRecur:r,endRecur:a,daysOfWeek:i}=e;if(!r||!i)return null;let o=null,s=new Date(r);if(isNaN(s.getTime())||(o=new Date(Date.UTC(s.getFullYear(),s.getMonth(),s.getDate()))),!o)return null;let l=new Date(Date.UTC(9999,11,31));if(a){let e=new Date(a);isNaN(e.getTime())||(l=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())))}let c=new Date(Math.max(o.getTime(),t?.getTime()||o.getTime())),u=new Date(Math.min(l.getTime(),n?.getTime()||l.getTime()));if(c>u)return null;let d=(Array.isArray(i)?i:String(i).replace(/[[\]\s]/g,"").split(",")).map(e=>lLr(e)).filter(e=>void 0!==e);return 0===d.length?null:{effectiveStart:c,effectiveEnd:u,targetDays:d}}function EOt(e,t,n){if("recurring"!==e.metadata.type)return[];let r=COt(e.metadata,t,n);if(!r)return[];let{effectiveStart:a,effectiveEnd:i,targetDays:o}=r,s=[],l=new Date(a.getTime()),c=new Set(e.metadata.skipDates||[]);for(;l.getTime()<=i.getTime();){if(o.includes(l.getUTCDay())){let e=w2(l);e&&!c.has(e)&&s.push(new Date(l.getTime()))}l.setUTCDate(l.getUTCDate()+1)}return s}function qOt(e,t,n){if("recurring"!==e.type)return 0;let r=COt(e,t,n);if(!r)return 0;let{effectiveStart:a,effectiveEnd:i,targetDays:o}=r,s=0,l=new Date(a.getTime()),c=new Set(e.skipDates||[]);for(;l.getTime()<=i.getTime();){if(o.includes(l.getUTCDay())){let e=w2(l);e&&!c.has(e)&&s++}l.setUTCDate(l.getUTCDate()+1)}return s}function DOt(e,t,n){if("rrule"!==e.metadata.type)return[];let{rrule:r,startDate:a,skipDates:i=[]}=e.metadata;if(!r||!a)return[];try{let e=new Date(a);if(isNaN(e.getTime()))return[];let o=th(r,{dtstart:e}),s=t||new Date("1900-01-01"),l=n||new Date("2100-12-31"),c=o.between(s,l,!0),u=new Set(i);return c.filter(e=>{let t=w2(e);return t&&!u.has(t)})}catch(e){return console.warn("Failed to expand rrule:",r,e),[]}}function ROt(e,t,n){if("rrule"!==e.type)return 0;let{rrule:r,startDate:a,skipDates:i=[]}=e;if(!r||!a)return 0;try{let e=new Date(a);if(isNaN(e.getTime()))return 0;let o=th(r,{dtstart:e}),s=t||new Date("1900-01-01"),l=n||new Date("2100-12-31"),c=o.between(s,l,!0),u=new Set(i);return c.filter(e=>{let t=w2(e);return t&&!u.has(t)}).length}catch(e){return console.warn("Failed to count rrule instances:",r,e),0}}var o7=kr(()=>{AM()});function c6(e){let t=e;"function"==typeof t.empty?(t.empty(),e.innerHTML=""):e.textContent=""}function l6(e,t,n){let r=e;if("function"==typeof r.createEl)return r.createEl(t,n);let a=e.ownerDocument.createElement(t);return n&&(n.cls&&(a.className=n.cls),n.text&&(a.textContent=n.text),n.attr&&Object.entries(n.attr).forEach(([e,t])=>a.setAttribute(e,t))),e.appendChild(a),a}function YK(e,t){return l6(e,"div",t)}function cLr(e,t){if(null==e||""===e)return`(No ${t})`;if("object"==typeof e)try{return JSON.stringify(e)}catch(e){return console.error("[ChronoAnalyzer] Failed to stringify category value:",e),`(No ${t})`}return String(e)}function aye(e,t,n){let r=e;r.removeAllListeners?.(t),r.on?.(t,n)}function uLr(e,t){let n=null;return(...r)=>{null!==n&&window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function fLr(e){s7&&nye.unobserve(s7),nye.observe(e),s7=e}function wb(e,t){let n=e.querySelector("#mainChart");n&&(s7&&(nye.unobserve(s7),s7=null),m_.purge(n),c6(n),l6(n,"p",{cls:"chart-message",text:t}))}function hLr(e,t){let n=t.body.classList.contains("theme-dark")?OOt:wOt;return{...AOt,...n,...e}}function ZK(e,t,n,r){let a=hLr(n,e.ownerDocument);r?m_.react(e,t,a,{responsive:!0}):m_.newPlot(e,t,a,{responsive:!0}),fLr(e)}function $K(e,t,n,r,a,i){let o=e.querySelector("#mainChart");if(!o)return;a&&(m_.purge(o),c6(o));let s=e.querySelector("#levelSelect_pie"),l=s?s.selectedOptions[0].text.split("(")[0].trim():"Category";ZK(o,[{type:"pie",labels:Array.from(t.hours.keys()),values:Array.from(t.hours.values()),textinfo:"label+percent",textposition:"outside",hoverinfo:"label+value+percent",marker:{line:{color:"white",width:2}}}],{title:{text:`${"count"===i?"Event Count":"Time"} Distribution by ${l}`},showlegend:!0,margin:{l:40,r:40,t:60,b:80}},r),aye(o,"plotly_click",e=>{let r=e?.points?.[0];if(!r||void 0===r.label)return;let a=String(r.label),i=t.recordsByCategory.get(a);i&&n(a,i,{type:"pie",value:"number"==typeof r.value?r.value:Number(r.value)||null})})}function KK(e,t,n,r,a,i){let o=e.querySelector("#mainChart");if(!o)return;if(a){m_.purge(o),c6(o);let e=YK(o,{cls:"sunburst-wrapper"});YK(e,{cls:"sunburst-chart-div"}),YK(e,{cls:"custom-legend",attr:{id:"customLegend"}})}let s=o.querySelector(".sunburst-chart-div"),l=o.querySelector(".custom-legend");s&&l&&(ZK(s,[{type:"sunburst",ids:t.ids,labels:t.labels,parents:t.parents,values:t.values,branchvalues:"total",hoverinfo:"text"}],{title:{text:"count"===i?"Event Count Breakdown":"Time Breakdown"},margin:{l:0,r:0,b:0,t:40},showlegend:!1},r),l&&c6(l),aye(s,"plotly_sunburstclick",e=>{let r=e?.points?.[0];if(!r||void 0===r.id||void 0===r.label)return;let a=t.recordsByLabel.get(String(r.id));a&&n(String(r.label),a,{type:"sunburst",value:"number"==typeof r.value?r.value:Number(r.value)||null})}))}function JK(e,t,n,r,a){let i=e.querySelector("#mainChart");if(!i)return;if(r&&(m_.purge(i),c6(i)),!t||0===t.length)return void wb(e,"No data available for Time-Series chart.");let o=e.querySelector("#timeSeriesGranularitySelect")?.value,s=e.querySelector("#timeSeriesTypeSelect")?.value,l=e.querySelector("#timeSeriesStackingLevelSelect")?.value;if(!o||!s||!l)return;let c=new Map;t.forEach(e=>{if(!e.date||isNaN(e.date.getTime()))return;let t,n="count"===a?1:e._effectiveDurationInPeriod||0;if("duration"===a&&n<=0)return;if(t=w2("daily"===o?e.date:"weekly"===o?SOt(e.date):kOt(e.date)),!t)return;c.has(t)||c.set(t,{total:0,categories:{}});let r=c.get(t);if(r&&(r.total+=n,"stackedArea"===s)){let t=cLr(e[l],l);r.categories[t]=(r.categories[t]||0)+n}});let u=Array.from(c.keys()).sort((e,t)=>new Date(e).getTime()-new Date(t).getTime()),d=[];if(0!==u.length){if("line"===s)d.push({x:u,y:u.map(e=>Number((c.get(e)?.total??0).toFixed(2))),type:"scatter",mode:"lines+markers",name:"count"===a?"Total Events":"Total Hours"});else{let e=new Set;u.forEach(t=>Object.keys(c.get(t)?.categories??{}).forEach(t=>e.add(t))),Array.from(e).sort().forEach(e=>{d.push({x:u,y:u.map(t=>Number((c.get(t)?.categories[e]||0).toFixed(2))),type:"scatter",mode:"lines",stackgroup:"one",name:e,hoverinfo:"x+y+name"})})}ZK(i,d,{title:{text:`${"count"===a?"Event Count":"Time Spent"} (${o}) - ${"line"===s?"Overall Trend":`Stacked by ${l}`}`},xaxis:{title:{text:"Period"},type:"date"},yaxis:{title:{text:"count"===a?"Count":"Hours"}},margin:{t:50,b:80,l:60,r:30},hovermode:"x unified"},n)}else wb(e,"No data points to plot for Time-Series.")}function QK(e,t,n,r,a,i){let o=e.querySelector("#mainChart");if(!o)return;if(a&&(m_.purge(o),c6(o)),!t||0===t.length)return void wb(e,"No data available for Activity Patterns.");let s=e.querySelector("#activityPatternTypeSelect");if(!s)return;let l=s.value,c=s.selectedOptions[0]?.text||"Activity Pattern",u=[],d={},p="bar",h=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],f=Array.from({length:24},(e,t)=>`${t}`),m={t:50,b:60,l:70,r:30};if("dayOfWeek"===l){let e=Array.from({length:7},()=>0);t.forEach(t=>{if(t.date&&!isNaN(t.date.getTime())){let n=t.date.getUTCDay(),r="count"===i?1:t._effectiveDurationInPeriod||0;e[n]+=r}}),u=[{x:h,y:e.map(e=>Number(e.toFixed(2))),type:"bar"}],d={title:{text:`Total ${"count"===i?"Events":"Hours"} by Day of Week`},yaxis:{title:{text:"count"===i?"Count":"Hours"}},margin:m}}else if("hourOfDay"===l){let e=Array.from({length:24},()=>0);t.forEach(t=>{let n="startTime"in t.metadata?t.metadata.startTime:null,r=n?sI(n):null;if(null!==r){let n="count"===i?1:t._effectiveDurationInPeriod||0;e[r]+=n}}),u=[{x:f,y:e.map(e=>Number(e.toFixed(2))),type:"bar"}],d={title:{text:`Total ${"count"===i?"Events":"Hours"} by Task Start Hour`},xaxis:{title:{text:"Hour of Day (0-23)"}},yaxis:{title:{text:"count"===i?"Count":"Hours"}},margin:m}}else if("heatmapDOWvsHOD"===l){p="heatmap";let e=Array.from({length:7},()=>Array.from({length:24},()=>0));t.forEach(t=>{let n="startTime"in t.metadata?t.metadata.startTime:null,r=n?sI(n):null;if(null!==r&&t.date&&!isNaN(t.date.getTime())){let n=t.date.getUTCDay(),a="count"===i?1:t._effectiveDurationInPeriod||0;e[n][r]+=a}}),u=[{z:e.map(e=>e.map(e=>e>0?Number(e.toFixed(2)):null)),x:f,y:h,type:"heatmap",colorscale:"Viridis",hoverongaps:!1}],d={title:{text:"Activity Heatmap (Day vs Task Start Hour)"},xaxis:{title:{text:"Hour of Day (0-23)"}},margin:m}}!u.length||function(e){if(!e.length)return!0;let t=e[0];return!!("bar"===p&&t&&"y"in t&&Array.isArray(t.y))&&t.y.every(e=>0===parseFloat(String(e)))}(u)||function(e){if(!e.length)return!0;let t=e[0];return!!("heatmap"===p&&t&&"z"in t&&Array.isArray(t.z))&&t.z.flat().every(e=>null===e)}(u)?wb(e,`No data to plot for ${c}.`):(ZK(o,u,d,r),aye(o,"plotly_click",e=>{let r=e?.points;if(!r||0===r.length)return;let a=r[0],i=[],o="",s=null;if("bar"===p){let e=a.x;if(null==e)return;let n=String(e);if(s="number"==typeof a.y?a.y:parseFloat(String(a.y)),"dayOfWeek"===l){let e=h.indexOf(n);if(-1===e)return;o=`${n} (Day)`,i=t.filter(t=>t.date&&t.date.getUTCDay()===e)}else if("hourOfDay"===l){let e=parseInt(n,10);if(isNaN(e))return;o=`${n}:00 (Start Hour)`,i=t.filter(t=>{let n="startTime"in t.metadata?t.metadata.startTime:null;return n&&sI(n)===e})}}else if("heatmap"===p){let e="number"==typeof a.x?a.x:parseInt(String(a.x),10),n=h.indexOf(String(a.y));if(s="number"==typeof a.z?a.z:parseFloat(String(a.z)),Number.isNaN(e)||-1===n||!s||0===s)return;let r=(e+1)%24;o=`Activity: ${a.y}, ${String(e).padStart(2,"0")}:00 - ${String(r).padStart(2,"0")}:00`,i=t.filter(t=>{let r="startTime"in t.metadata?t.metadata.startTime:null;return r&&sI(r)===e&&t.date&&t.date.getUTCDay()===n})}i.length>0&&n(o,i,{value:s})}))}function LOt(e,t,n){let r=e.querySelector("#errorLogContainer"),a=e.querySelector("#errorLogSummary"),i=e.querySelector("#errorLogEntries");if(r&&a&&i){if(c6(i),0===t.length)return a.textContent="No processing issues found; all data is sourced from the main cache.",r.addClass("is-hidden"),void r.removeClass("is-visible");a.textContent=`Found ${t.length} issue(s) during data translation:`,t.forEach(e=>{let t=l6(i,"details",{cls:"log-entry"}),n=l6(t,"summary"),r=YK(t,{cls:"log-entry-content"});n.textContent=`⚠️ ${e.file||"Unknown file"}`,l6(r,"strong",{text:"Path: "}),r.appendChild(r.ownerDocument.createTextNode(e.path||"N/A")),l6(r,"br"),l6(r,"strong",{text:"Reason: "}),r.appendChild(r.ownerDocument.createTextNode(e.reason||"No specific reason provided."))}),r.removeClass("is-hidden"),r.addClass("is-visible")}}var dLr,nye,s7,l7,iye=kr(()=>{tye(),TOt(),o7(),dLr=uLr(e=>{m_.Plots.resize(e)},100),nye=new ResizeObserver(e=>{for(let t of e){let e=t.target;null!==e.offsetParent&&dLr(e)}}),s7=null}),oye=kr(()=>{o7(),l7=class{constructor(){this.#e=new Map,this.#t=new Map,this.#n=new Map,this.#r=new Map,this.#a=new Map,this.getKnownHierarchies=()=>Array.from(this.#r.values()).sort(),this.getKnownProjects=()=>Array.from(this.#a.values()).sort(),this.getTotalRecordCount=()=>this.#e.size}#e;#t;#n;#r;#a;clear(){this.#e.clear(),this.#t.clear(),this.#n.clear(),this.#r.clear(),this.#a.clear()}addRecord(e){this.#e.has(e._id)&&this.removeRecord(e._id),this.#e.set(e._id,e);let t=e.hierarchy.toLowerCase();this.#t.has(t)||(this.#t.set(t,new Set),this.#r.set(t,e.hierarchy));let n=this.#t.get(t);n&&n.add(e._id);let r=e.project.toLowerCase();this.#n.has(r)||(this.#n.set(r,new Set),this.#a.set(r,e.project));let a=this.#n.get(r);a&&a.add(e._id)}finalize(){}removeRecord(e){let t=this.#e.get(e);if(!t)return;let n=t.hierarchy.toLowerCase(),r=t.project.toLowerCase(),a=this.#t.get(n);a&&(a.delete(e),0===a.size&&(this.#t.delete(n),this.#r.delete(n)));let i=this.#n.get(r);i&&(i.delete(e),0===i.size&&(this.#n.delete(r),this.#a.delete(r))),this.#e.delete(e)}getAllRecords(){return Array.from(this.#e.values())}getAnalyzedData(e,t,n={}){let r={records:[],totalHours:0,fileCount:0,aggregation:new Map,recordsByCategory:new Map,error:null},{expandRecurring:a=!1}=n,i=[],o=null;if(e.pattern)try{let t=e.pattern,n=[],r=/\s-(?:"[^"]+"|'[^']+'|\S+)/g,a=t.match(r);if(a){for(let e of a){let t=e.substring(2),r=t.charAt(0),a=t.charAt(t.length-1);('"'===r&&'"'===a||"'"===r&&"'"===a)&&(t=t.slice(1,-1)),t&&n.push(t)}t=t.replace(r,"").trim()}if(n.length>0&&(o=new RegExp(n.join("|"),"i")),t){let e=/"[^"]+"|'[^']+'|\S+/g,n=t.match(e);if(n)for(let e of n){let t=e.charAt(0),n=e.charAt(e.length-1);('"'===t&&'"'===n||"'"===t&&"'"===n)&&(e=e.slice(1,-1)),e&&i.push(new RegExp(e,"i"))}}}catch(e){return r.error=e instanceof Error?e.message:String(e),r}let s=null;if(e.hierarchy){let t=e.hierarchy.toLowerCase();s=this.#t.get(t)||new Set}if(e.project){let t=e.project.toLowerCase(),n=this.#n.get(t)||new Set;s=s?new Set([...s].filter(e=>n.has(e))):n}let l=s?Array.from(s).map(e=>this.#e.get(e)).filter(e=>!!e):this.#e.values(),c=new Set,u=e.filterStartDate??null,d=e.filterEndDate??null,p=!(!u&&!d);for(let e of l){let n=e.project;if((!o||!o.test(n))&&(!(i.length>0)||i.every(e=>e.test(n))))if("recurring"===e.metadata.type&&p)if(a){let n=EOt(e,u,d);for(let a of n){let n=w2(a);if(!n)continue;let i,o={title:e.metadata.title,id:e.metadata.id,category:e.metadata.category,timezone:e.metadata.timezone,type:"single",date:n,endDate:n};i=e.metadata.allDay?{...o,allDay:!0}:{...o,allDay:!1,startTime:"startTime"in e.metadata?e.metadata.startTime:"00:00",endTime:"endTime"in e.metadata?e.metadata.endTime:"00:00"};let s={...e,date:a,metadata:i,_effectiveDurationInPeriod:e.duration};this.processRecord(s,e.duration,t,r,c)}}else{let n=qOt(e.metadata,u,d);if(n>0){let a=e.duration*n,i={...e,_effectiveDurationInPeriod:a};this.processRecord(i,a,t,r,c)}}else if("rrule"===e.metadata.type&&p)if(a){let n=DOt(e,u,d);for(let a of n){let n=w2(a);if(!n)continue;let i,o={title:e.metadata.title,id:e.metadata.id,category:e.metadata.category,timezone:e.metadata.timezone,type:"single",date:n,endDate:n};i=e.metadata.allDay?{...o,allDay:!0}:{...o,allDay:!1,startTime:"startTime"in e.metadata?e.metadata.startTime:"00:00",endTime:"endTime"in e.metadata?e.metadata.endTime:"00:00"};let s={...e,date:a,metadata:i,_effectiveDurationInPeriod:e.duration};this.processRecord(s,e.duration,t,r,c)}}else{let n=ROt(e.metadata,u,d);if(n>0){let a=e.duration*n,i={...e,_effectiveDurationInPeriod:a};this.processRecord(i,a,t,r,c)}}else{let n=e.duration,a=!1;if("recurring"!==e.metadata.type&&"rrule"!==e.metadata.type||p?"recurring"!==e.metadata.type&&"rrule"!==e.metadata.type&&(p?this.isWithinDateRange(e.date,u,d)&&(a=!0):a=!0):a=!0,a){let a={...e,_effectiveDurationInPeriod:n};this.processRecord(a,n,t,r,c)}}}return r.fileCount=c.size,r}preparePieChartData(e,t,n){let r=new Map,a=new Map;for(let i of e){let e=this.formatBreakdownValue(i[t],t),o="count"===n?1:i._effectiveDurationInPeriod||0;if("duration"===n&&o<=0)continue;r.set(e,(r.get(e)||0)+o),a.has(e)||a.set(e,[]);let s=a.get(e);s&&s.push(i)}return{hours:r,recordsByCategory:a,error:!1}}prepareSunburstData(e,t,n){let r,a,i={ids:[],labels:[],parents:[],values:[],recordsByLabel:new Map};"project"===t?(r="hierarchy",a="project"):(r="project",a="subproject");let o=new Map;for(let t of e){let e="count"===n?1:t._effectiveDurationInPeriod;if("number"!=typeof e||isNaN(e)||"duration"===n&&e<=0)continue;let i=String(t[r]||`(No ${r})`).trim(),s=String(t[a]||`(No ${a})`).trim(),l=`${i} - ${s}`;o.has(l)||o.set(l,{value:0,records:[],inner:i,outer:s});let c=o.get(l);c&&(c.value+=e,c.records.push(t))}let s=new Map,l=0;for(let{value:e,inner:t}of o.values())s.set(t,(s.get(t)||0)+e);for(let e of s.values())l+=e;let c="Total";i.ids.push(c),i.labels.push(c),i.parents.push(""),i.values.push(l),i.recordsByLabel.set(c,e);for(let[t,n]of s.entries()){i.ids.push(t),i.labels.push(t),i.parents.push(c),i.values.push(n);let a=e.filter(e=>String(e[r]||`(No ${r})`).trim()===t);i.recordsByLabel.set(t,a)}for(let[e,{value:t,records:n,inner:r,outer:a}]of o.entries())i.ids.push(e),i.labels.push(a),i.parents.push(r),i.values.push(t),i.recordsByLabel.set(e,n);return i}processRecord(e,t,n,r,a){if(n){let a=this.formatBreakdownValue(e[n],n);r.aggregation.set(a,(r.aggregation.get(a)||0)+t),r.recordsByCategory.has(a)||r.recordsByCategory.set(a,[]);let i=r.recordsByCategory.get(a);i&&i.push(e)}r.records.push(e),r.totalHours+=t,a.add(e.path)}isWithinDateRange(e,t,n){if(!e||isNaN(e.getTime()))return!1;let r=new Date(e.valueOf());r.setUTCHours(0,0,0,0);let a=r.getTime();if(t){let e=new Date(t.valueOf());if(e.setUTCHours(0,0,0,0),a<e.getTime())return!1}if(n){let e=new Date(n.valueOf());if(e.setUTCHours(0,0,0,0),a>e.getTime())return!1}return!0}formatBreakdownValue(e,t){if(!e)return`(No ${t})`;if("string"==typeof e||"number"==typeof e||"boolean"==typeof e)return String(e);if(e instanceof Date)return w2(e)??`(No ${t})`;if(null==e)return`(No ${t})`;if("object"==typeof e)try{return JSON.stringify(e)}catch(e){return console.error("[ChronoAnalyzer] Failed to stringify breakdown value:",e),"(Unserializable value)"}return String(e)}}});function IOt(){return{configurationGuide:{text:Ce("chrono.ui.docs.configurationGuide"),path:v5.settings},matchingRules:{text:Ce("chrono.ui.docs.matchingRules"),path:v5.matching},faq:{text:Ce("chrono.ui.docs.faq"),path:v5.faq},personaGuide:{text:Ce("chrono.ui.docs.personaGuide"),path:v5.persona},insightsGuide:{text:Ce("chrono.ui.docs.insightsGuide"),path:v5.settings},ruleParameters:{text:Ce("chrono.ui.docs.ruleParameters"),path:v5.ruleParameters},terminology:{text:Ce("chrono.ui.docs.terminology"),path:v5.overview},filtersGuide:{text:Ce("chrono.ui.docs.filtersGuide"),path:v5.filters}}}function tJ(e,t,n){e.querySelector("input")&&new sye(e,t,n)}var fv,v5,sye,eJ,rJ,nJ,aJ,FOt,iJ,lye=kr(()=>{Fc(),fv=require("obsidian"),Zo(),qp(),v5={overview:"user/chrono_analyser/introduction",settings:"user/chrono_analyser/settings",ruleParameters:"user/chrono_analyser/settings/#rule-parameters",persona:"user/chrono_analyser/settings/#persona",matching:"user/chrono_analyser/settings/#how-matching-works",filters:"user/chrono_analyser/settings/#filter-and-chart-controls",faq:"user/chrono_analyser/faq"},sye=class{constructor(e,t,n){this.activeSuggestionIndex=-1,this.isSelectionInProgress=!1,this.onBlur=()=>{window.setTimeout(()=>{this.suggestionsEl.removeClass("is-visible"),this.suggestionsEl.addClass("is-hidden")},200)},this.onKeyDown=e=>{let t=Array.from(this.suggestionsEl.children).filter(e=>e.instanceOf(HTMLElement));if(0!==t.length||"Enter"===e.key||"Escape"===e.key)switch(e.key){case"Enter":{e.preventDefault();let n=(this.activeSuggestionIndex>-1?t[this.activeSuggestionIndex]?.textContent:null)??this.inputEl.value;this.isSelectionInProgress=!0,this.onSelectCallback(n),this.suggestionsEl.removeClass("is-visible"),this.suggestionsEl.addClass("is-hidden"),this.inputEl.blur(),this.isSelectionInProgress=!1;break}case"Escape":this.suggestionsEl.removeClass("is-visible"),this.suggestionsEl.addClass("is-hidden");break;case"ArrowDown":case"ArrowUp":e.preventDefault(),this.activeSuggestionIndex="ArrowDown"===e.key?(this.activeSuggestionIndex+1)%t.length:(this.activeSuggestionIndex-1+t.length)%t.length,this.updateActiveSuggestion(t,this.activeSuggestionIndex)}},this.updateFilteredSuggestions=()=>{if(this.isSelectionInProgress)return;let e=this.inputEl.value.toLowerCase().trim(),t=this.getDataFunc(),n=""===e?t:t.filter(t=>t.toLowerCase().includes(e));this.populateSuggestions(n)},this.populateSuggestions=e=>{this.suggestionsEl.empty(),this.activeSuggestionIndex=-1,e.length>0?(e.forEach((e,t)=>{let n=this.suggestionsEl.ownerDocument.createElement("div");n.textContent=e,n.classList.add("autocomplete-suggestion-item"),n.addEventListener("mousedown",t=>{t.preventDefault(),this.isSelectionInProgress=!0,this.onSelectCallback(e),this.suggestionsEl.removeClass("is-visible"),this.suggestionsEl.addClass("is-hidden"),this.isSelectionInProgress=!1}),this.suggestionsEl.appendChild(n)}),this.suggestionsEl.removeClass("is-hidden"),this.suggestionsEl.addClass("is-visible")):(this.suggestionsEl.removeClass("is-visible"),this.suggestionsEl.addClass("is-hidden"))},this.wrapperEl=e;let r=e.querySelector("input");if(!r)throw new Error("AutocompleteComponent requires an input element in its wrapper.");this.inputEl=r,this.onSelectCallback=t,this.getDataFunc=n,this.suggestionsEl=this.wrapperEl.createDiv({cls:"autocomplete-suggestions"}),this.bindEvents()}bindEvents(){this.inputEl.addEventListener("focus",this.updateFilteredSuggestions),this.inputEl.addEventListener("input",this.updateFilteredSuggestions),this.inputEl.addEventListener("blur",this.onBlur),this.inputEl.addEventListener("keydown",this.onKeyDown)}updateActiveSuggestion(e,t){e.forEach((e,n)=>{e.classList.toggle("is-active",n===t)})}},eJ=class extends fv.Modal{constructor(e,t,n,r,a){super(e),this.expandedGroupName=null,this.originalConfigString="",this.hasUnsavedChanges=!1,this.isSaving=!1,this.onSave=a,this.knownHierarchies=n,this.knownProjects=r;let i={version:1,lastUpdated:(new Date).toISOString(),insightGroups:{Work:{persona:"productivity",rules:{hierarchies:["Work"],projects:[],subprojectKeywords:[],mutedSubprojectKeywords:[],mutedProjects:[]}},Personal:{persona:"wellness",rules:{hierarchies:["Personal"],projects:[],subprojectKeywords:[],mutedSubprojectKeywords:[],mutedProjects:[]}}}},o=t||i;o&&o.insightGroups&&Object.entries(o.insightGroups).forEach(([e,t])=>{t&&(void 0===t.persona&&(t.persona="productivity"),void 0===t.rules.mutedProjects&&(t.rules.mutedProjects=[]),void 0===t.rules.mutedSubprojectKeywords&&(t.rules.subprojectKeywords_exclude?t.rules.mutedSubprojectKeywords=t.rules.subprojectKeywords_exclude:t.rules.mutedSubprojectKeywords=[]),void 0!==t.rules.subprojectKeywords_exclude&&delete t.rules.subprojectKeywords_exclude)}),this.config=o}rerender(){this.renderGroups(this.groupsContainerEl)}onOpen(){let{contentEl:e}=this,t=IOt();e.empty(),e.addClass("chrono-analyser-modal"),e.createEl("h2",{text:Ce("chrono.ui.title")}),e.createEl("p").append(Zl(Ce("chrono.ui.description"),[t.configurationGuide,t.matchingRules,t.faq])),this.groupsContainerEl=e.createDiv(),this.rerender(),new fv.Setting(e).addButton(e=>e.setButtonText(Ce("chrono.ui.save")).setCta().onClick(()=>{Object.keys(this.config.insightGroups).forEach(e=>{e||delete this.config.insightGroups[e]}),this.config.lastUpdated=(new Date).toISOString(),this.onSave(this.config),this.isSaving=!0,this.close()})).addButton(e=>e.setButtonText(Ce("chrono.ui.cancel")).onClick(()=>this.close())),this.originalConfigString=JSON.stringify(this.config),this.hasUnsavedChanges=!1,this.isSaving=!1}renderGroups(e){e.empty();let t=e.createDiv("insight-groups-container");for(let e in this.config.insightGroups){let n=this.config.insightGroups[e];n&&n.rules?this.renderGroupSetting(t,e,n):(console.warn(`[Chrono Analyser] Found and removed corrupt insight group: "${e}"`),delete this.config.insightGroups[e])}new fv.Setting(e).addButton(e=>e.setButtonText(Ce("chrono.ui.addGroup")).onClick(()=>{let e=`New Group ${Object.keys(this.config.insightGroups).length+1}`;this.config.insightGroups[e]={persona:"productivity",rules:{hierarchies:[],projects:[],subprojectKeywords:[],mutedSubprojectKeywords:[],mutedProjects:[]}},this.checkForUnsavedChanges(),this.expandedGroupName=e,this.rerender()}))}renderGroupSetting(e,t,n){let r=IOt(),a=t,{rules:i,persona:o}=n,s=this.expandedGroupName===a,l=e.createDiv({cls:"insight-group-setting"});l.toggleClass("is-expanded",s),l.addEventListener("click",e=>{s||(this.expandedGroupName=a,this.rerender())}),new fv.Setting(l).setName(Ce("chrono.ui.groupName")).addText(e=>{e.setValue(a).setPlaceholder(Ce("chrono.ui.groupNamePlaceholder")).setDisabled(!s).onChange(()=>{this.checkForUnsavedChanges()}),e.inputEl.addEventListener("blur",()=>{if(!this.config.insightGroups[a])return;let t=e.inputEl.value.trim();if(!t||t===a)return void(e.inputEl.value=a);if(this.config.insightGroups[t])return Na(Ce("chrono.ui.errors.groupExists",{name:t})),void(e.inputEl.value=a);let n=this.config.insightGroups[a];n&&(delete this.config.insightGroups[a],this.config.insightGroups[t]=n,this.expandedGroupName=t,this.rerender())})}).addExtraButton(e=>{e.setIcon("trash").setTooltip(Ce("chrono.ui.deleteGroup")).setDisabled(!s).onClick(()=>{delete this.config.insightGroups[a],this.checkForUnsavedChanges(),this.expandedGroupName===a&&(this.expandedGroupName=null),this.rerender()})}).settingEl.addEventListener("click",e=>{e.target.closest("input, button, .tag-remove")||s&&(this.expandedGroupName=null,this.rerender())});let c=l.createDiv("foldable-content");new fv.Setting(c).setName(Ce("chrono.ui.persona.name")).setDesc(Zl(Ce("chrono.ui.persona.desc"),[r.personaGuide,r.insightsGuide])).setDisabled(!s).addDropdown(e=>{e.addOption("productivity",Ce("chrono.ui.persona.productivity")).addOption("wellness",Ce("chrono.ui.persona.wellness")).addOption("none",Ce("chrono.ui.persona.none")).setValue(o||"productivity").onChange(e=>{("productivity"===e||"wellness"===e||"none"===e)&&(n.persona=e,this.checkForUnsavedChanges())})}),this.createTagInput(c,Ce("chrono.ui.hierarchies.name"),Zl(Ce("chrono.ui.hierarchies.desc"),[r.ruleParameters,r.terminology]),Ce("chrono.ui.hierarchies.add"),i.hierarchies||[],this.knownHierarchies,()=>this.checkForUnsavedChanges()),this.createTagInput(c,Ce("chrono.ui.projects.name"),Zl(Ce("chrono.ui.projects.desc"),[r.ruleParameters,r.matchingRules]),Ce("chrono.ui.projects.add"),i.projects||[],this.knownProjects,()=>this.checkForUnsavedChanges()),this.createTagInput(c,Ce("chrono.ui.mutedProjects.name"),Zl(Ce("chrono.ui.mutedProjects.desc"),[r.matchingRules,r.faq]),Ce("chrono.ui.mutedProjects.add"),i.mutedProjects||[],this.knownProjects,()=>this.checkForUnsavedChanges()),new fv.Setting(c).setName(Ce("chrono.ui.subprojectKeywords.name")).setDesc(Zl(Ce("chrono.ui.subprojectKeywords.desc"),[r.matchingRules,r.filtersGuide])).addTextArea(e=>{e.setValue((i.subprojectKeywords||[]).join("\n")).setPlaceholder(Ce("chrono.ui.subprojectKeywords.placeholder")).setDisabled(!s).onChange(e=>{i.subprojectKeywords=e.split("\n").map(e=>e.trim()).filter(Boolean),this.checkForUnsavedChanges()})}),new fv.Setting(c).setName(Ce("chrono.ui.mutedSubprojectKeywords.name")).setDesc(Zl(Ce("chrono.ui.mutedSubprojectKeywords.desc"),[r.matchingRules,r.faq])).addTextArea(e=>{e.setValue((i.mutedSubprojectKeywords||[]).join("\n")).setPlaceholder(Ce("chrono.ui.mutedSubprojectKeywords.placeholder")).setDisabled(!s).onChange(e=>{i.mutedSubprojectKeywords=e.split("\n").map(e=>e.trim()).filter(Boolean),this.checkForUnsavedChanges()})})}createTagInput(e,t,n,r,a,i,o){let s=new fv.Setting(e).setName(t).setDesc(n).controlEl.createDiv({cls:"autocomplete-wrapper"}),l=s.createDiv({cls:"tag-input-container"}),c=l.createDiv({cls:"tags"}),u=l.createEl("input",{cls:"tag-input"});u.setAttribute("type","text"),u.setAttribute("placeholder",r);let d=()=>{c.empty(),a.forEach((e,t)=>{let n=c.createDiv({cls:"tag"});n.setText(e);let r=n.createSpan({cls:"tag-remove"});r.setText("×"),r.onClickEvent(()=>{a.splice(t,1),d(),o&&o()})})};u.addEventListener("keydown",e=>{if("Enter"===e.key&&u.value){e.preventDefault();let t=u.value.trim();t&&!a.includes(t)&&(a.push(t),d(),o&&o()),u.value=""}}),tJ(s,e=>{let t=e.trim();t&&!a.includes(t)&&(a.push(t),d(),o&&o()),u.value="",u.focus()},()=>i),d()}checkForUnsavedChanges(){let e=JSON.stringify(this.config);this.hasUnsavedChanges=e!==this.originalConfigString}close(){this.checkForUnsavedChanges(),this.hasUnsavedChanges&&!this.isSaving?this.showConfirmationModal():super.close()}showConfirmationModal(){let e=new fv.Modal(this.app);e.contentEl.addClass("chrono-analyser-modal"),e.contentEl.createEl("h2",{text:Ce("chrono.ui.unsavedChanges.title")}),e.contentEl.createEl("p",{text:Ce("chrono.ui.unsavedChanges.message")}),new fv.Setting(e.contentEl).addButton(t=>t.setButtonText(Ce("chrono.ui.unsavedChanges.saveAndClose")).setCta().onClick(()=>{this.isSaving=!0,this.modalEl.querySelector(".mod-cta")?.click(),e.close()})).addButton(t=>t.setButtonText(Ce("chrono.ui.unsavedChanges.discard")).onClick(()=>{this.isSaving=!0,e.close(),this.close()})),e.open()}onClose(){this.contentEl.empty()}}}),NOt=kr(()=>{o7(),rJ=class{constructor(e,t){this.app=e,this.rootEl=t,this.show=(e,t,n={})=>{if(!this.popupEl||!this.overlayEl||!this.tableBodyEl)return;this.popupBodyEl.scrollTop=0,this.titleEl.textContent=`Details for: ${e}`;let r=new Set(t.map(e=>e.path)).size,a=n.value??t.reduce((e,t)=>e+(t._effectiveDurationInPeriod||0),0);"function"==typeof this.statsEl.empty?this.statsEl.empty():this.statsEl.textContent="";let i=(e,t)=>{if("function"!=typeof this.statsEl.createDiv){let n=this.statsEl.ownerDocument.createElement("div");n.className="summary-stat";let r=this.statsEl.ownerDocument.createElement("div");r.className="summary-stat-value",r.textContent=e;let a=this.statsEl.ownerDocument.createElement("div");return a.className="summary-stat-label",a.textContent=t,n.appendChild(r),n.appendChild(a),void this.statsEl.appendChild(n)}let n=this.statsEl.createDiv({cls:"summary-stat"});n.createDiv?.({cls:"summary-stat-value",text:e}),n.createDiv?.({cls:"summary-stat-label",text:t})};i(String(r),"Unique Files"),i(a.toFixed(2),"Total Hours"),"function"==typeof this.tableBodyEl.empty?this.tableBodyEl.empty():this.tableBodyEl.textContent="",t.forEach(e=>{let t=this.tableBodyEl.insertRow();t.insertCell().textContent=e.project,t.insertCell().textContent=e.subprojectFull,t.insertCell().textContent=(e._effectiveDurationInPeriod||e.duration).toFixed(2),t.insertCell().textContent=e.date?w2(e.date):"Recurring";let n=t.insertCell();"function"==typeof n.createSpan?n.createSpan({cls:"file-path-cell",text:e.path,attr:{title:e.path}}):n.textContent=e.path}),this.overlayEl.classList.add("visible"),this.popupEl.classList.add("visible"),this.app.workspace.containerEl.ownerDocument.body.classList.add("no-scroll")},this.hide=()=>{this.overlayEl.classList.remove("visible"),this.popupEl.classList.remove("visible"),this.app.workspace.containerEl.ownerDocument.body.classList.remove("no-scroll")};let n=this.rootEl.querySelector("#detailPopup"),r=this.rootEl.querySelector("#detailOverlay"),a=this.rootEl.querySelector("#popupTitle"),i=this.rootEl.querySelector("#popupSummaryStats"),o=this.rootEl.querySelector("#popupTableBody"),s=this.rootEl.querySelector("#popupCloseBtn"),l=this.rootEl.querySelector(".popup-body");if(!(n&&r&&a&&i&&o&&s&&l))throw new Error("Chrono Analyzer detail popup DOM is missing required elements.");this.popupEl=n,this.overlayEl=r,this.titleEl=a,this.statsEl=i,this.tableBodyEl=o,this.closeBtn=s,this.popupBodyEl=l,this.setupEventListeners()}setupEventListeners(){this.closeBtn.addEventListener("click",this.hide),this.overlayEl.addEventListener("click",this.hide)}}}),WOt=kr(()=>{nJ=require("obsidian"),aJ=class{constructor(e,t,n){this.containerEl=e,this.insights=t,this.onActionClick=n,this.iconMap={neutral:"info",positive:"trending-up",warning:"alert-triangle"}}render(){if(this.containerEl.replaceChildren(),0===this.insights.length)return void this.containerEl.createDiv({cls:"insights-placeholder"}).appendText("No specific insights found for the current period.");let e=this.groupInsightsByCategory();for(let t in e){let n=this.containerEl.createDiv({cls:"insight-group"});n.createEl("h3",{cls:"insight-group-title",text:t}),e[t].forEach(e=>{this.renderInsightCard(n,e)})}}groupInsightsByCategory(){return this.insights.reduce((e,t)=>{let n=t.category;return e[n]||(e[n]=[]),e[n].push(t),e},{})}renderInsightCard(e,t){let n=e.createDiv({cls:`insight-card sentiment-${t.sentiment}`}),r=n.createDiv({cls:"insight-card-header"}),a=n.createDiv({cls:"insight-card-body is-folded"}),i=this.iconMap[t.sentiment]||"info",o=r.createDiv({cls:"insight-icon"});(0,nJ.setIcon)(o,i);let s=r.createDiv({cls:"insight-text"});t.displayTextFragments.forEach(e=>{e.bold?s.createEl("strong",{text:e.text}):s.appendText(e.text)});let l=this.createGraphButton(t.action);l&&r.appendChild(l),r.addEventListener("click",()=>{a.classList.toggle("is-folded"),n.classList.toggle("is-unfolded")}),t.payload&&t.payload.length>0&&t.payload.forEach(e=>{this.renderSubItem(a,e)})}renderSubItem(e,t){let n=e.createDiv({cls:"insight-sub-item"}),r=n.createDiv({cls:"insight-sub-item-header"}),a=r.createDiv({cls:"insight-sub-item-left-group"});if(t.subItems&&t.subItems.length>0){let e=a.createDiv({cls:"insight-sub-item-expander"});(0,nJ.setIcon)(e,"chevron-right"),n.classList.add("is-expandable")}if(a.createSpan({cls:"insight-sub-item-project",text:t.project}),t.detailsFragments){let e=r.createSpan({cls:"insight-sub-item-details"});t.detailsFragments.forEach(t=>{(t.bold?e.createEl("strong"):e).appendText(t.text)})}let i=this.createGraphButton(t.action);if(i&&r.appendChild(i),t.subItems&&t.subItems.length>0){let e=n.createDiv({cls:"insight-nested-container"});t.subItems.forEach(t=>{this.renderNestedItem(e,t)}),r.addEventListener("click",()=>{n.classList.toggle("is-expanded")})}}renderNestedItem(e,t){let n=e.createDiv({cls:"insight-nested-item"});if(n.createSpan({cls:"insight-nested-item-project",text:t.project}),t.detailsFragments){let e=n.createSpan({cls:"insight-nested-item-details"});t.detailsFragments.forEach(t=>{(t.bold?e.createEl("strong"):e).appendText(t.text)})}let r=this.createGraphButton(t.action);r&&n.appendChild(r)}createGraphButton(e){if(!e)return null;let t=this.containerEl.ownerDocument.createElement("button");return t.className="insight-action-button clickable-icon",t.setAttribute("aria-label","View in chart"),(0,nJ.setIcon)(t,"bar-chart-horizontal"),t.addEventListener("click",t=>{t.stopPropagation(),this.onActionClick(e)}),t}}}),BOt=kr(()=>{Wo(),FOt=require("obsidian"),Mre(),lye(),o7(),NOt(),WOt(),iJ=class{constructor(e,t,n,r,a,i,o){this.app=e,this.rootEl=t,this.plugin=n,this.onFilterChange=r,this.onGenerateInsights=a,this.onOpenConfig=i,this.onDisableDemo=o,this.flatpickrInstance=null,this.uiStateKey="ChronoAnalyzerUIState_v5",this.insightsConfig=null,this.proTipsPanel=null,this.proTipTextEl=null,this.currentTipIndex=-1,this.proTips=['Enable "Category Coloring" in the main Full Calendar settings for the best experience. This allows ChronoAnalyser to group activities by their assigned category.','Log your activities for at least a month to unlock more powerful and accurate trend insights, like the "Lapsed Habits" detector.','Use the ⚙️ icon to create "Insight Groups" like "Work", "Learning", or "Exercise". This helps the engine understand your time on a deeper level.','Click on any item in an insight card (e.g., "Project Phoenix") to instantly filter the main chart and explore the data behind the insight.','The "Filter by Category" input is a powerful search tool. Use it to find specific tasks (e.g., "meeting") or exclude others (e.g., "-break -lunch").',"Combine filters! You can filter by Hierarchy, Project, Date Range, and Category all at once to drill down into your data."],this.showDetailPopup=(e,t,n={})=>{this.detailPopup.show(e,t,n)},this.setupEventListeners=()=>{this.rootEl.querySelector("#configureInsightsBtn")?.addEventListener("click",()=>this.onOpenConfig()),this.rootEl.querySelector("#generateInsightsBtn")?.addEventListener("click",()=>this.onGenerateInsights()),this.rootEl.querySelector("#turnOffDemoBtn")?.addEventListener("click",()=>this.onDisableDemo());let e=this.rootEl.querySelector("#dateRangePicker");e&&(this.flatpickrInstance=$W(e,{mode:"range",dateFormat:"Y-m-d",altInput:!0,altFormat:"M j, Y",onChange:this.onFilterChange})),this.rootEl.querySelector("#clearDatesBtn")?.addEventListener("click",this.clearDateFilters),this.rootEl.querySelector("#setTodayBtn")?.addEventListener("click",()=>this.setPresetDateRange("today")),this.rootEl.querySelector("#setYesterdayBtn")?.addEventListener("click",()=>this.setPresetDateRange("yesterday")),this.rootEl.querySelector("#setThisWeekBtn")?.addEventListener("click",()=>this.setPresetDateRange("thisWeek")),this.rootEl.querySelector("#setThisMonthBtn")?.addEventListener("click",()=>this.setPresetDateRange("thisMonth")),this.rootEl.querySelector("#metricSelect")?.addEventListener("change",this.onFilterChange),this.rootEl.querySelector("#analysisTypeSelect")?.addEventListener("change",()=>this.handleAnalysisTypeChange()),this.rootEl.querySelector("#levelSelect_pie")?.addEventListener("change",this.onFilterChange),this.rootEl.querySelector("#levelSelect")?.addEventListener("change",this.onFilterChange),this.rootEl.querySelector("#patternInput")?.addEventListener("input",(0,FOt.debounce)(this.onFilterChange,300)),this.rootEl.querySelector("#timeSeriesGranularitySelect")?.addEventListener("change",this.onFilterChange),this.rootEl.querySelector("#timeSeriesTypeSelect")?.addEventListener("change",()=>{this.handleTimeSeriesTypeVis(),this.onFilterChange()}),this.rootEl.querySelector("#timeSeriesStackingLevelSelect")?.addEventListener("change",this.onFilterChange),this.rootEl.querySelector("#activityPatternTypeSelect")?.addEventListener("change",this.onFilterChange)},this.saveState=e=>{let t=e=>this.rootEl.querySelector(`#${e}`)?.value,n={metric:t("metricSelect"),analysisTypeSelect:t("analysisTypeSelect"),hierarchyFilter:t("hierarchyFilterInput"),projectFilter:t("projectFilterInput"),levelSelect_pie:t("levelSelect_pie"),levelSelect:t("levelSelect"),patternInput:t("patternInput"),timeSeriesGranularity:t("timeSeriesGranularitySelect"),timeSeriesType:t("timeSeriesTypeSelect"),timeSeriesStackingLevel:t("timeSeriesStackingLevelSelect"),activityPatternType:t("activityPatternTypeSelect")};this.flatpickrInstance&&2===this.flatpickrInstance.selectedDates.length?(n.startDate=w2(this.flatpickrInstance.selectedDates[0]),n.endDate=w2(this.flatpickrInstance.selectedDates[1])):(n.startDate="",n.endDate=""),this.app.saveLocalStorage(this.uiStateKey,JSON.stringify(Object.fromEntries(Object.entries(n).filter(([e,t])=>null!==t))))},this.loadFilterState=()=>{let e=this.app.loadLocalStorage(this.uiStateKey);if("string"!=typeof e)return;let t=this.parsePersistedState(e);if(!t)return void this.app.saveLocalStorage(this.uiStateKey,"");let n=e=>"string"==typeof e?e:void 0,r=(e,t)=>{let r=this.rootEl.querySelector(`#${e}`);if(r){let e=n(t);void 0!==e&&(r.value=e)}};r("metricSelect",t.metric),r("analysisTypeSelect",t.analysisTypeSelect),r("hierarchyFilterInput",t.hierarchyFilter),r("projectFilterInput",t.projectFilter);let a=n(t.startDate),i=n(t.endDate);if(a&&i&&this.flatpickrInstance){let e=[a,i];window.setTimeout(()=>this.flatpickrInstance?.setDate(e,!1),0)}r("levelSelect_pie",t.levelSelect_pie),r("levelSelect",t.levelSelect),r("patternInput",t.patternInput),r("timeSeriesGranularitySelect",t.timeSeriesGranularity),r("timeSeriesTypeSelect",t.timeSeriesType),r("timeSeriesStackingLevelSelect",t.timeSeriesStackingLevel),r("activityPatternTypeSelect",t.activityPatternType),this.handleAnalysisTypeChange(!1)},this.handleAnalysisTypeChange=(e=!0)=>{let t=this.rootEl.querySelector("#analysisTypeSelect")?.value;["sunburstBreakdownLevelContainer","pieBreakdownLevelContainer","timeSeriesGranularityContainer","timeSeriesTypeContainer","timeSeriesStackingLevelContainer","activityPatternTypeContainer"].forEach(e=>this.rootEl.querySelector(`#${e}`)?.classList.add("hidden-controls")),"sunburst"===t?this.rootEl.querySelector("#sunburstBreakdownLevelContainer")?.classList.remove("hidden-controls"):"pie"===t?this.rootEl.querySelector("#pieBreakdownLevelContainer")?.classList.remove("hidden-controls"):"time-series"===t?(this.rootEl.querySelector("#timeSeriesGranularityContainer")?.classList.remove("hidden-controls"),this.rootEl.querySelector("#timeSeriesTypeContainer")?.classList.remove("hidden-controls"),this.handleTimeSeriesTypeVis()):"activity"===t&&this.rootEl.querySelector("#activityPatternTypeContainer")?.classList.remove("hidden-controls"),e&&this.onFilterChange()},this.handleTimeSeriesTypeVis=()=>{let e=this.rootEl.querySelector("#timeSeriesTypeSelect")?.value,t=this.rootEl.querySelector("#timeSeriesStackingLevelContainer");t&&t.classList.toggle("hidden-controls","stackedArea"!==e)},this.clearDateFilters=()=>{this.flatpickrInstance&&this.flatpickrInstance.clear(!0,!0)},this.setupProTips=()=>{if(this.proTipsPanel=this.rootEl.querySelector("#proTipsPanel"),this.proTipTextEl=this.rootEl.querySelector("#proTipText"),!this.proTipsPanel||!this.proTipTextEl)return;let e=()=>{this.proTipTextEl&&(this.proTipTextEl.removeClass("is-opaque"),this.proTipTextEl.addClass("is-transparent"),window.setTimeout(()=>{this.proTipTextEl&&(this.currentTipIndex=(this.currentTipIndex+1)%this.proTips.length,this.proTipTextEl.textContent=this.proTips[this.currentTipIndex],this.proTipTextEl.removeClass("is-transparent"),this.proTipTextEl.addClass("is-opaque"))},150))};e(),this.proTipsPanel.addEventListener("click",e)},this.detailPopup=new rJ(this.app,this.rootEl)}initialize(){return this.setupEventListeners(),this.loadFilterState(),this.loadInsightsConfig(),this.setupProTips(),Promise.resolve()}loadInsightsConfig(){this.insightsConfig=Qe.getSettings().chrono_analyser_config||null}requireElement(e){let t=this.rootEl.querySelector(e);if(!t)throw new Error(`Chrono Analyzer UI element not found: ${e}`);return t}setControlPanelState(e){this.requireElement("#hierarchyFilterInput").value="",this.requireElement("#projectFilterInput").value="",this.requireElement("#patternInput").value="",this.requireElement("#metricSelect").value="duration";for(let t in e)if("dateRangePicker"===t){let n=e[t];n&&this.flatpickrInstance&&this.flatpickrInstance.setDate(n,!1)}else{let n=this.rootEl.querySelector(`#${t}`);n&&(n.value=e[t])}this.handleAnalysisTypeChange(!1),this.handleTimeSeriesTypeVis(),this.onFilterChange(),this.rootEl.querySelector(".controls")?.scrollIntoView({behavior:"smooth"})}setInsightsLoading(e){let t=this.rootEl.querySelector("#generateInsightsBtn"),n=this.rootEl.querySelector("#insightsResultContainer");if(t&&n)if(e){t.textContent="Processing...",t.disabled=!0,t.classList.add("is-loading");let e=n;e.empty?.();let r=e.createDiv?e.createDiv({cls:"loading-container"}):(()=>{let t=e.ownerDocument.createElement("div");return t.className="loading-container",n.appendChild(t),t})(),a=r.createDiv;if(a)a.call(r,{cls:"loading-spinner"}),a.call(r,{text:"Analyzing your data..."});else{let t=e.ownerDocument.createElement("div");t.className="loading-spinner",r.appendChild(t);let n=e.ownerDocument.createElement("div");n.textContent="Analyzing your data...",r.appendChild(n)}}else t.textContent="Generate insights",t.disabled=!1,t.classList.remove("is-loading")}renderInsights(e){let t=this.rootEl.querySelector("#insightsResultContainer");t&&new aJ(t,e,e=>{this.setControlPanelState(e)}).render()}setDemoMode(e){let t=this.rootEl.querySelector("#demoModeBanner");t&&t.classList.toggle("hidden-controls",!e)}destroy(){this.flatpickrInstance?.destroy()}getFilterState(){let e=this.rootEl.querySelector("#metricSelect")?.value||"duration",t=this.rootEl.querySelector("#hierarchyFilterInput")?.value.trim().toLowerCase()||void 0,n=this.rootEl.querySelector("#projectFilterInput")?.value.trim().toLowerCase()||void 0,r=this.flatpickrInstance?.selectedDates;return{filters:{hierarchy:t,project:n,filterStartDate:r&&2===r.length?r[0]:null,filterEndDate:r&&2===r.length?r[1]:null,pattern:this.rootEl.querySelector("#patternInput")?.value??""},newChartType:this.rootEl.querySelector("#analysisTypeSelect")?.value??null,metric:e}}getChartSpecificFilter(e){switch(e){case"pie":return{chart:"pie",breakdownBy:this.rootEl.querySelector("#levelSelect_pie")?.value||"hierarchy"};case"sunburst":return{chart:"sunburst",level:this.rootEl.querySelector("#levelSelect")?.value||"project"};case"time-series":{let e=this.rootEl.querySelector("#timeSeriesGranularitySelect")?.value||"daily",t=this.rootEl.querySelector("#timeSeriesTypeSelect")?.value||"line";return{chart:"time-series",granularity:e,type:t,stackingLevel:"stackedArea"===t?this.rootEl.querySelector("#timeSeriesStackingLevelSelect")?.value||"hierarchy":void 0}}case"activity":return{chart:"activity",patternType:this.rootEl.querySelector("#activityPatternTypeSelect")?.value||"dayOfWeek"};default:return{chart:null}}}renderStats(e,t){this.rootEl.querySelector("#totalHours").textContent="number"==typeof e?e.toFixed(2):e,this.rootEl.querySelector("#totalFiles").textContent=String(t)}updateActiveAnalysisStat(e){let t=this.rootEl.querySelector("#currentAnalysisTypeStat");t&&(t.textContent=e)}showMainContainers(){this.requireElement("#statsGrid").classList.remove("hidden-controls"),this.requireElement("#mainChartContainer").classList.remove("hidden-controls")}hideMainContainers(){this.requireElement("#statsGrid").classList.add("hidden-controls"),this.requireElement("#mainChartContainer").classList.add("hidden-controls")}parsePersistedState(e){try{let t=(0,JSON.parse)(e);return t&&"object"==typeof t?t:null}catch(e){return console.error("[ChronoAnalyzer] Error loading UI state:",e),null}}setPresetDateRange(e){let t,n,r=new Date;switch(e){case"today":t=r,n=r;break;case"yesterday":t=new Date(r),t.setDate(r.getDate()-1),n=t;break;case"thisWeek":{t=new Date(r);let e=r.getDay();t.setDate(r.getDate()-(0===e?6:e-1)),n=new Date(t),n.setDate(t.getDate()+6);break}case"thisMonth":t=new Date(r.getFullYear(),r.getMonth(),1),n=new Date(r.getFullYear(),r.getMonth()+1,0);break;default:return}this.flatpickrInstance&&this.flatpickrInstance.setDate([t,n],!0)}populateFilterDataSources(e,t){let n=this.rootEl.querySelector("#hierarchyFilterInput")?.closest(".autocomplete-wrapper");n instanceof HTMLElement&&tJ(n,e=>{let t=n.querySelector("input");t&&(t.value=e),this.onFilterChange()},e);let r=this.rootEl.querySelector("#projectFilterInput")?.closest(".autocomplete-wrapper");r instanceof HTMLElement&&tJ(r,e=>{let t=r.querySelector("input");t&&(t.value=e),this.onFilterChange()},t)}}});function oJ(e,t,n){let{event:r,location:a}=e,i=a?.path||`remote-event-${e.id}`,o=`${i}::${e.id}`,s="startTime"in r?r.startTime:null,l="endTime"in r?r.endTime:null,c="days"in r&&"number"==typeof r.days?r.days:void 0,u="recurring"===r.type?rye(s,l,1):rye(s,l,c);if("number"!=typeof u||isNaN(u)||u<0)return null;let d=i.split("/").pop()||r.title,{hierarchy:p,project:h,subproject:f}=(()=>{if(t){if(!r.category)return{hierarchy:null,project:null,subproject:null};let e=r.category.split("/")[0]||r.category,t=r.subCategory;t||(t=r.title);let n="none";return r.subCategory&&(n=r.title),{hierarchy:e,project:t,subproject:n}}let e=(d.endsWith(".md")?d.slice(0,-3):d).replace(/^(?:\d{4}-\d{2}-\d{2}\s+)?(?:\([^)]+\)\s*)?/,""),{project:a,subproject:i}=(e=>{let t=e.split(" - "),n=t[0]?.trim()||"Unknown Project",r=t.length>1?t.slice(1).join(" - ").trim():"none";return""===r&&(r="none"),{project:n,subproject:r}})(e);return{hierarchy:n,project:a,subproject:i}})();if(!p||!h||!f)return null;let m=null;if("date"in r&&r.date){let e=new Date(r.date);isNaN(e.getTime())||(m=e)}let g={...r};if("recurring"===g.type){if("string"==typeof g.startRecur){let e=new Date(g.startRecur);isNaN(e.getTime())||(g.startRecur=e)}if("string"==typeof g.endRecur){let e=new Date(g.endRecur);isNaN(e.getTime())||(g.endRecur=e)}}return{_id:o,path:i,hierarchy:p,project:h,subproject:f,subprojectFull:f,duration:u,file:d,date:m,metadata:g,_effectiveDurationInPeriod:u}}var c7,cye=kr(()=>{o7()}),uye=kr(()=>{cye(),c7=class{constructor(e,t,n,r){this.eventCache=e,this.dataManager=t,this.settings=n,this.onDataReady=r,this.processingErrors=[],this.eventCacheUpdateCallback=()=>{this.repopulateDataManager(),this.onDataReady()}}initialize(){this.eventCache.on("update",this.eventCacheUpdateCallback),this.repopulateDataManager(),this.onDataReady()}repopulateDataManager(){this.dataManager.clear();let e=[],t=this.settings.enableAdvancedCategorization;for(let[n,r]of this.eventCache.calendars.entries()){if(!t&&"local"!==r.type)continue;let a="local"===r.type?n.split("::")[1]||"local":r.displayName,i=this.eventCache.store.getEventsInCalendar(n);for(let n of i){let r=oJ(n,t,a);r&&e.push(r)}}for(let t of e)this.dataManager.addRecord(t);this.dataManager.finalize()}destroy(){this.eventCache.off("update",this.eventCacheUpdateCallback)}}});function hye(e){let t=JSON.parse(e);if(1!==t.schemaVersion||"relative"!==t.dateMode||!t.calendarSource||!t.insightsConfig||!Array.isArray(t.events))throw new Error("Invalid ChronoAnalyser demo payload.");return t}async function VOt(e=fye){let t=(await(0,HOt.requestUrl)(e)).text;return hye(t),t}var HOt,dye,fye,cI,XOt,sJ,lJ,jOt=kr(()=>{HOt=require("obsidian"),dye="ChronoAnalyzerDemoData_v1",fye="https://fcr-cdn.plugin-fcr.workers.dev/demo/chronoanalyzer-demo.json"}),GOt=kr(()=>{cye(),jOt(),cI=class{constructor(e,t,n=fye){this.app=e,this.dataManager=t,this.demoDataUrl=n}static hasConfiguredInsights(e){return!!(e&&Object.keys(e.insightGroups||{}).length>0)}async loadDemoData(){let{rawPayload:e,fromCache:t}=await this.loadPayloadText(),n=hye(e);this.dataManager.clear();let r=0;for(let e of n.events){let t=oJ(this.toStoredEvent(e,n.calendarSource),!0,n.calendarSource.displayName);t&&(this.dataManager.addRecord(t),r+=1)}return this.dataManager.finalize(),{insightsConfig:n.insightsConfig,recordCount:r,fromCache:t}}async loadPayloadText(){let e=this.app.loadLocalStorage(dye);if("string"==typeof e&&e.trim())return{rawPayload:e,fromCache:!0};let t=await VOt(this.demoDataUrl);return this.app.saveLocalStorage(dye,t),{rawPayload:t,fromCache:!1}}toStoredEvent(e,t){let n={title:e.title,id:e.id,category:e.category,subCategory:e.subCategory,allDay:!1,startTime:e.startTime,endTime:e.endTime},r="recurring"===e.type?{...n,type:"recurring",daysOfWeek:e.daysOfWeek||["M"],startRecur:this.isoDateFromOffset(e.startRecurOffset??-30),endRecur:this.isoDateFromOffset(e.endRecurOffset??30),endDate:null,skipDates:[]}:{...n,type:"single",date:this.isoDateFromOffset(e.dayOffset??0),endDate:this.isoDateFromOffset(e.dayOffset??0)};return{id:e.id,calendarId:t.id,location:{path:e.path,lineNumber:void 0},event:r}}isoDateFromOffset(e){let t=new Date;return t.setHours(0,0,0,0),t.setDate(t.getDate()+e),[t.getFullYear(),String(t.getMonth()+1).padStart(2,"0"),String(t.getDate()).padStart(2,"0")].join("-")}}}),YOt=kr(()=>{XOt=500,sJ=class{constructor(){}async generateInsights(e,t){let n=await this._tagRecordsInBatches(e,t),r=[],a=this._createHierarchyExtremesInsight(e);a&&(a.category="🌐 GLOBAL SNAPSHOT",r.push(a));let i=this._calculateGroupDistribution(n);i&&r.push(i);let o=new Map;if(t&&t.insightGroups)for(let e in t.insightGroups)o.set(e,t.insightGroups[e].persona);let s=[],l=[],c=0;for(let e of n){let t=e._semanticTags||[],n=e.duration;t.some(e=>"productivity"===o.get(e))&&(s.push(e),c+=n),t.some(e=>"wellness"===o.get(e))&&l.push(e)}return s.length>0&&r.push(...this._generateProductivityInsights(s)),l.length>0&&r.push(...this._generateWellnessInsights(l,c)),0===r.length?[{displayTextFragments:[{text:"No insights found. Log more activities or configure your Insight Groups with Personas to unlock powerful analytics.",bold:!1}],category:"Getting Started",sentiment:"neutral",payload:null,action:null}]:r}_buildTextFragments(e){let t,n=[],r=/\*\*'(.+?)'\*\*/g,a=0;for(;null!==(t=r.exec(e));)t.index>a&&n.push({text:e.substring(a,t.index),bold:!1}),n.push({text:t[1],bold:!0}),a=r.lastIndex;return a<e.length&&n.push({text:e.substring(a),bold:!1}),n}async _tagRecordsInBatches(e,t){let n=[];for(let r=0;r<e.length;r+=XOt){let a=e.slice(r,r+XOt).map(e=>this._tagRecord(e,t));n=n.concat(a),await new Promise(e=>window.setTimeout(e,0))}return n}_tagRecord(e,t){let n=new Set,r=!1,a=e.subproject.toLowerCase();for(let i in t.insightGroups){let o=t.insightGroups[i];if(!o||!o.rules)continue;let s=o.rules;(s.hierarchies.some(t=>t.toLowerCase()===e.hierarchy.toLowerCase())||s.projects.some(t=>t.toLowerCase()===e.project.toLowerCase())||s.subprojectKeywords.some(e=>e&&a.includes(e.toLowerCase())))&&(n.add(i),((s.mutedProjects||[]).includes(e.project)||(s.mutedSubprojectKeywords||[]).some(e=>e&&a.includes(e.toLowerCase())))&&(r=!0))}return e._semanticTags=Array.from(n),e._isMuted=r,e}_createHierarchyExtremesInsight(e){let t=new Date;t.setHours(0,0,0,0);let n=new Date(t);n.setDate(t.getDate()-7);let r=new Date(n);r.setDate(n.getDate()-30);let a=new Map,i=new Map,o=0,s=0,l=new Map;for(let c of e){if(!c.date)continue;let e=new Date(c.date);if(e.setHours(0,0,0,0),e>=n&&e<=t){o+=c.duration,a.set(c.hierarchy,(a.get(c.hierarchy)||0)+c.duration),l.has(c.hierarchy)||l.set(c.hierarchy,new Map);let e=l.get(c.hierarchy);if(!e)continue;e.set(c.project,(e.get(c.project)||0)+c.duration)}else e>=r&&e<n&&(s+=c.duration,i.set(c.hierarchy,(i.get(c.hierarchy)||0)+c.duration))}if(a.size<2||0===o)return null;let c=Array.from(a.entries()).map(([e,t])=>({name:e,hours:t})).sort((e,t)=>e.hours-t.hours),u=c[0],d=c[c.length-1];if(u.name===d.name||0===d.hours)return null;let p=d.hours/o*100,h=u.hours/o*100,f=`Last week, your main focus was **'${d.name}'** for **'${p.toFixed(0)}%'**, while **'${u.name}'** for **'${h.toFixed(0)}%'** took a backseat.`;if(s>0){let e=i.get(d.name)||0,t=i.get(u.name)||0;if(e>0||t>0){let n=t/s*100;f+=` This compares to last month's **'${(e/s*100).toFixed(0)}%'** on **'${d.name}'** and **'${n.toFixed(0)}%'** on **'${u.name}'**.`}}let m=e=>{let t=l.get(e);return t?Array.from(t.entries()).sort((e,t)=>t[1]-e[1]).slice(0,3).map(([e,t])=>({project:`• ${e}`,detailsFragments:this._buildTextFragments(`${t.toFixed(1)} hours`),action:{analysisTypeSelect:"time-series",projectFilterInput:e,dateRangePicker:[n,new Date]}})):[]},g=[{project:d.name,detailsFragments:this._buildTextFragments(`**'${p.toFixed(0)}%'** (${d.hours.toFixed(1)} hours last week)`),action:{analysisTypeSelect:"pie",hierarchyFilterInput:d.name,dateRangePicker:[n,new Date],levelSelect_pie:"project"},subItems:m(d.name)},{project:u.name,detailsFragments:this._buildTextFragments(`**'${h.toFixed(0)}%'** (${u.hours.toFixed(1)} hours last week)`),action:{analysisTypeSelect:"pie",hierarchyFilterInput:u.name,dateRangePicker:[n,new Date],levelSelect_pie:"project"},subItems:m(u.name)}];return{displayTextFragments:this._buildTextFragments(f),category:"WEEKLY SNAPSHOT",sentiment:"neutral",payload:g,action:null}}_calculateGroupDistribution(e){let t=new Date;t.setHours(0,0,0,0),t.setDate(t.getDate()-30);let n=new Map,r=new Map,a=0;for(let i of e){let e=i.date;if(!e)continue;let o=new Date(e);if(o.setHours(0,0,0,0),o<t)continue;a+=i.duration;let s=i._semanticTags||[];for(let e of s){n.set(e,(n.get(e)||0)+i.duration),r.has(e)||r.set(e,new Map);let t=r.get(e);t&&t.set(i.project,(t.get(i.project)||0)+i.duration)}}if(0===a)return null;let i=Array.from(n.entries()).map(([e,t])=>({groupName:e,hours:t})).sort((e,t)=>t.hours-e.hours).slice(0,3);if(0===i.length)return null;let o,s=i.map(e=>`**'${e.groupName}'**`);if(1===s.length)o=s[0];else if(2===s.length)o=s.join(" and ");else{let e=s.slice(-1)[0]??"";o=`${s.slice(0,-1).join(", ")}, and ${e}`}let l=i.reduce((e,t)=>e+t.hours,0)/a*100,c=`Your top ${1===i.length?"activity was":"activities were"} ${o}, accounting for **'${l.toFixed(0)}%'** of your total logged time.`,u=i.map(e=>{let n=e.hours/a*100,i=r.get(e.groupName),o=[];return i&&Array.from(i.entries()).sort((e,t)=>t[1]-e[1]).slice(0,5).forEach(([e,n])=>{o.push({project:`• ${e}`,detailsFragments:this._buildTextFragments(`${n.toFixed(1)} hours`),action:{analysisTypeSelect:"time-series",projectFilterInput:e,dateRangePicker:[t,new Date]}})}),{project:e.groupName,detailsFragments:this._buildTextFragments(`**'${n.toFixed(0)}%'** (${e.hours.toFixed(1)} hours)`),action:{analysisTypeSelect:"pie",hierarchyFilterInput:e.groupName,dateRangePicker:[t,new Date],levelSelect_pie:"project"},subItems:o.length>0?o:void 0}});return{displayTextFragments:this._buildTextFragments(c),category:"Activity Overview",sentiment:"neutral",payload:u,action:null}}_generateProductivityInsights(e){let t=[],n=new Date;n.setHours(0,0,0,0);let r=new Date(n);r.setDate(n.getDate()-7);let a=new Date(r);a.setDate(r.getDate()-7);let i=new Map,o=new Map,s=0;for(let t of e){if(!t.date)continue;let e=new Date(t.date);e.setHours(0,0,0,0),e>=r&&e<=n?(i.set(t.project,(i.get(t.project)||0)+t.duration),s+=t.duration):e>=a&&e<r&&o.set(t.project,(o.get(t.project)||0)+t.duration)}if(s>0){let e=0;for(let t of i.values()){let n=t/s;e+=n*n}let n=e>.5?"highly focused":e>.25?"focused":e>.1?"balanced":"scattered",r=[...i.entries()].sort((e,t)=>t[1]-e[1]),a=r.length>0?`'${r[0][0]}'`:"various projects";t.push({displayTextFragments:this._buildTextFragments(`Your productive time was **'${n}'** this week, with a significant portion dedicated to **${a}**.`),category:"🎯 PRODUCTIVITY",sentiment:e>.25?"positive":"neutral",payload:null,action:null})}let l=new Map,c=new Set([...i.keys(),...o.keys()]);for(let e of c){let t=i.get(e)||0,n=o.get(e)||0;l.set(e,t-n)}let u=[...l.entries()].sort((e,t)=>Math.abs(t[1])-Math.abs(e[1])).slice(0,2).filter(e=>Math.abs(e[1])>1);if(u.length>0){let e=u.map(([e,t])=>({project:e,detailsFragments:this._buildTextFragments(`**'${t>0?"+":""}${t.toFixed(1)}'** hours vs last week`),action:{analysisTypeSelect:"time-series",projectFilterInput:e,dateRangePicker:[a,n]}}));t.push({displayTextFragments:this._buildTextFragments(`This week's biggest productivity movers were **'${u.map(e=>e[0]).join("'** and **'")}'**`),category:"🎯 PRODUCTIVITY",sentiment:"neutral",payload:e,action:null})}let d=this._consolidateLapsedHabits(e);return d&&(d.category="🎯 PRODUCTIVITY",d.sentiment="warning",d.displayTextFragments=this._buildTextFragments(`You have **'${d.payload?.length}'** at-risk initiatives that haven't been logged in over a week.`),t.push(d)),t}_generateWellnessInsights(e,t){if(e.length<5)return[];let n=[],r=new Date;r.setHours(0,0,0,0);let a=new Date(r);a.setDate(r.getDate()-7);let i=new Date(r);i.setDate(r.getDate()-30);let o=new Map,s=new Map,l=0;for(let t of e){if(!t.date)continue;let e=new Date(t.date);e.setHours(0,0,0,0);let n=t.hierarchy,r=(e,t)=>{e.has(t)||e.set(t,{duration:0,count:0});let n=e.get(t);if(!n)throw new Error(`Failed to initialize insight bucket for key "${t}".`);return n};if(e>=a){let e=r(o,n);e.duration+=t.duration,e.count+=1}if(e>=i){let e=r(s,n);e.duration+=t.duration,e.count+=1,l+=t.duration}}let c=[];for(let[e,t]of o.entries()){let n=s.get(e);if(n&&n.duration>1&&n.count>3){let r=t.duration/7,a=n.duration/30;r<.8*a&&c.push({project:e,detailsFragments:this._buildTextFragments(`Time was **${(100*(1-r/a)).toFixed(0)}% lower** than your 30-day average.`),action:null})}}if(c.length>0?n.push({displayTextFragments:this._buildTextFragments(`**Consistency Check:** Found deviations in ${c.length} of your wellness routines this week.`),category:"❤️ WELLNESS & ROUTINE",sentiment:"warning",payload:c,action:null}):o.size>0&&n.push({displayTextFragments:[{text:"Your wellness routines were consistent this week. Keep it up!",bold:!1}],category:"❤️ WELLNESS & ROUTINE",sentiment:"positive",payload:null,action:null}),l>0&&t>0){let e=l/(l+t)*100;n.push({displayTextFragments:this._buildTextFragments(`This month, wellness and routine activities made up **'${e.toFixed(0)}%'** of your tracked time.`),category:"❤️ WELLNESS & ROUTINE",sentiment:"neutral",payload:[{project:"Wellness & Routine Hours",detailsFragments:this._buildTextFragments(`${l.toFixed(1)} hours`),action:null},{project:"Productivity Hours",detailsFragments:this._buildTextFragments(`${t.toFixed(1)} hours`),action:null}],action:null})}return n}_consolidateLapsedHabits(e){let t=new Date;t.setHours(0,0,0,0);let n=new Date(t);n.setDate(t.getDate()-7);let r=new Date(n);r.setDate(n.getDate()-30);let a=new Set,i=new Map;for(let t of e){if(t._isMuted)continue;let e=t.date;if(!e)continue;let o=new Date(e);o.setHours(0,0,0,0),o>=n?a.add(t.project):o>=r&&i.set(t.project,(i.get(t.project)||0)+1)}let o=[];for(let[e,t]of i.entries())t>=2&&!a.has(e)&&o.push({project:e,detailsFragments:this._buildTextFragments(`(logged **'${t}'** times in the month prior)`),action:{analysisTypeSelect:"time-series",projectFilterInput:e,dateRangePicker:[r,new Date]}});return 0===o.length?null:(o.sort((e,t)=>{let n=parseInt(e.detailsFragments.find(e=>e.bold)?.text||"0",10);return parseInt(t.detailsFragments.find(e=>e.bold)?.text||"0",10)-n}),{displayTextFragments:this._buildTextFragments(`You have **'${o.length} activities'** that you haven't logged in over a week, but were previously consistent.`),category:"Habit Consistency",sentiment:"warning",payload:o,action:null})}}}),ZOt=kr(()=>{Fc(),Wo(),iye(),oye(),BOt(),uye(),GOt(),YOt(),lye(),Zo(),tye(),lJ=class{constructor(e,t,n){this.app=e,this.plugin=n,this.activeChartType=null,this.isChartRendered=!1,this.liveDataInitialized=!1,this.demoModeActive=!1,this.demoModeDisabledForSession=!1,this.activePieBreakdown=null,this.activeSunburstLevel=null,this.activeTimeSeriesGranularity=null,this.activeTimeSeriesType=null,this.activeActivityPattern=null,this.rootEl=t,this.dataManager=new l7,this.insightsEngine=new sJ,this.uiService=new iJ(e,t,n,()=>this.updateAnalysis(),()=>{this.handleGenerateInsights()},()=>this.openInsightsConfigModal(),()=>{this.openInsightsConfigModal()}),this.dataService=new c7(Qe.getCache(),this.dataManager,Qe.getSettings(),()=>this.handleDataReady()),this.demoDataService=new cI(e,this.dataManager)}async handleGenerateInsights(){let e=this.uiService.insightsConfig;if(!e||0===Object.keys(e.insightGroups).length)return void Na(Ce("notices.chronoAnalyserConfigureFirst"),5e3);Na(Ce("notices.chronoAnalyserGeneratingInsights")),this.uiService.setInsightsLoading(!0);let t=this.dataManager.getAllRecords();try{let n=await this.insightsEngine.generateInsights(t,e);this.uiService.renderInsights(n)}catch(e){console.error("Error generating insights:",e),Na(Ce("notices.chronoAnalyserInsightsFailed"))}finally{this.uiService.setInsightsLoading(!1)}}openInsightsConfigModal(){new eJ(this.app,this.uiService.insightsConfig,this.dataManager.getKnownHierarchies(),this.dataManager.getKnownProjects(),e=>{Qe.getSettings().chrono_analyser_config=e,Qe.saveSettings(),this.uiService.insightsConfig=e,Na(Ce("notices.chronoAnalyserInsightsSaved")),this.demoModeActive&&this.disableDemoForSession()}).open()}async initialize(){await this.uiService.initialize();try{await zOt(this.app)}catch(e){console.error("[ChronoAnalyzer] Failed to load charting library from CDN:",e),Na(Ce("notices.chronoAnalyserChartLoadFailed")||"Failed to load charting library from CDN. Please check your internet connection.")}if(this.shouldOpenDemoMode())try{return void await this.initializeDemoData()}catch(e){console.error("[ChronoAnalyzer] Failed to load demo data:",e),Na(Ce("notices.chronoAnalyserDemoLoadFailed"))}await this.initializeLiveData()}shouldOpenDemoMode(){return!cI.hasConfiguredInsights(Qe.getSettings().chrono_analyser_config)}async initializeDemoData(){this.liveDataInitialized&&(this.dataService.destroy(),this.liveDataInitialized=!1);let e=await this.demoDataService.loadDemoData();this.demoModeActive=!0,this.uiService.insightsConfig=e.insightsConfig,this.uiService.setDemoMode(!0),Na(e.fromCache?Ce("notices.chronoAnalyserDemoLoadedFromCache"):Ce("notices.chronoAnalyserDemoLoaded")),this.handleDataReady()}async initializeLiveData(){this.demoModeActive=!1,this.uiService.setDemoMode(!1),Qe.getCache().initialized||(Na(Ce("notices.chronoAnalyserInitializing"),2e3),await Qe.getCache().populate()),this.liveDataInitialized?this.handleDataReady():(this.dataService.initialize(),this.liveDataInitialized=!0)}destroy(){this.uiService.destroy(),this.liveDataInitialized&&(this.dataService.destroy(),this.liveDataInitialized=!1)}async disableDemoForSession(){this.demoModeDisabledForSession=!0,this.demoModeActive=!1,this.dataManager.clear(),this.uiService.insightsConfig=Qe.getSettings().chrono_analyser_config||null,await this.initializeLiveData()}handleDataReady(){this.activeChartType=null,this.isChartRendered=!1,this.uiService.populateFilterDataSources(()=>this.dataManager.getKnownHierarchies(),()=>this.dataManager.getKnownProjects()),this.updateAnalysis()}updateAnalysis(){this.uiService.saveState(null);let{filters:e,newChartType:t,metric:n}=this.uiService.getFilterState(),r=this.uiService.getChartSpecificFilter(t),a=this.activeChartType!==t,i=!a&&this.isChartRendered;if(!a)switch(r.chart){case"pie":this.activePieBreakdown!==r.breakdownBy&&(i=!1);break;case"sunburst":this.activeSunburstLevel!==r.level&&(i=!1);break;case"time-series":(this.activeTimeSeriesGranularity!==r.granularity||this.activeTimeSeriesType!==r.type)&&(i=!1);break;case"activity":this.activeActivityPattern!==r.patternType&&(i=!1)}let o="time-series"===r.chart||"activity"===r.chart,{records:s,totalHours:l,fileCount:c}=this.dataManager.getAnalyzedData(e,null,{expandRecurring:o});switch(this.renderUI(s,l,c,i,a,n),this.activeChartType=t,r.chart){case"pie":this.activePieBreakdown=r.breakdownBy,this.activeSunburstLevel=null,this.activeTimeSeriesGranularity=null,this.activeTimeSeriesType=null,this.activeActivityPattern=null;break;case"sunburst":this.activeSunburstLevel=r.level,this.activePieBreakdown=null,this.activeTimeSeriesGranularity=null,this.activeTimeSeriesType=null,this.activeActivityPattern=null;break;case"time-series":this.activeTimeSeriesGranularity=r.granularity,this.activeTimeSeriesType=r.type,this.activePieBreakdown=null,this.activeSunburstLevel=null,this.activeActivityPattern=null;break;case"activity":this.activeActivityPattern=r.patternType,this.activePieBreakdown=null,this.activeSunburstLevel=null,this.activeTimeSeriesGranularity=null,this.activeTimeSeriesType=null;break;default:this.activePieBreakdown=null,this.activeSunburstLevel=null,this.activeTimeSeriesGranularity=null,this.activeTimeSeriesType=null,this.activeActivityPattern=null}}renderUI(e,t,n,r,a,i){if(LOt(this.rootEl,[],this.dataManager.getTotalRecordCount()),0===this.dataManager.getTotalRecordCount())return this.uiService.hideMainContainers(),wb(this.rootEl,"No time-tracking events found in your configured Full Calendar sources."),void(this.isChartRendered=!1);if(this.uiService.showMainContainers(),0===e.length)return this.uiService.renderStats("-","-"),this.uiService.updateActiveAnalysisStat("N/A"),wb(this.rootEl,"No data matches the current filters."),void(this.isChartRendered=!1);if("count"===i){let t=e.length;this.uiService.renderStats(t,n);let r=this.rootEl.querySelector("#totalHours + .stat-label");r&&(r.textContent="Total events")}else{this.uiService.renderStats(t,n);let e=this.rootEl.querySelector("#totalHours + .stat-label");e&&(e.textContent="Total hours (filtered)")}let{newChartType:o}=this.uiService.getFilterState(),s=this.uiService.getChartSpecificFilter(o);if(this.uiService.updateActiveAnalysisStat(o?o.charAt(0).toUpperCase()+o.slice(1):"None"),o)switch(this.isChartRendered=!0,s.chart){case"pie":{let t=this.dataManager.preparePieChartData(e,s.breakdownBy,i);$K(this.rootEl,t,this.uiService.showDetailPopup,r,a,i);break}case"sunburst":{let t=this.dataManager.prepareSunburstData(e,s.level,i);KK(this.rootEl,t,this.uiService.showDetailPopup,r,a,i);break}case"time-series":JK(this.rootEl,e,r,a,i);break;case"activity":QK(this.rootEl,e,this.uiService.showDetailPopup,r,a,i);break;default:wb(this.rootEl,`Unknown chart type: ${o}`),this.isChartRendered=!1}else this.uiService.hideMainContainers()}}}),$Ot=kr(()=>{}),KOt=kr(()=>{}),cJ={};async function mLr(e){e.workspace.detachLeavesOfType(uI);let t=e.workspace.getLeavesOfType(uI);t.length>0?await e.workspace.revealLeaf(t[0]):await e.workspace.getLeaf("tab").setViewState({type:uI,active:!0})}Zs(cJ,{ANALYSIS_VIEW_TYPE:()=>uI,AnalysisView:()=>pye,activateAnalysisView:()=>mLr});var JOt,uI,pye,QOt,dJ,uJ=kr(()=>{JOt=require("obsidian"),Bke(),ZOt(),$Ot(),KOt(),uI="full-calendar-analysis-view",pye=class extends JOt.ItemView{constructor(e,t){super(e),this.plugin=t,this.controller=null}getViewType(){return uI}getDisplayText(){return"Chrono analyser"}getIcon(){return"bar-chart-horizontal"}async onOpen(){let e=this.containerEl.children[1];e.empty(),e.addClass("chrono-analyser-view"),Fke(e);let t=new lJ(this.app,e,this.plugin);this.controller=t,await Promise.resolve(t.initialize())}onClose(){return this.controller?.destroy(),this.controller=null,Promise.resolve()}}}),e6t=kr(()=>{Fc(),QOt=require("obsidian"),Wo(),Zo(),dJ=class{constructor(e){this.ctx=e,this.workspaceSwitchTimeout=null}getWorkspaceSwitcherText(){let e=this.ctx.viewEnhancer?.getActiveWorkspace();if(!e)return`${Ce("ui.view.workspace.switcherLabel")} ▾`;let t=Qe.isMobile()?8:12;return`${e.name.length>t?`${e.name.substring(0,t)}...`:e.name} ▾`}showWorkspaceSwitcher(e){let t=new QOt.Menu;if(t.addItem(e=>{e.setTitle(Ce("ui.view.buttons.defaultView")).setIcon(null===Qe.getSettings().activeWorkspace?"check":"").onClick(async()=>{await this.switchToWorkspace(null)})}),Qe.getSettings().workspaces.length>0&&(t.addSeparator(),Qe.getSettings().workspaces.forEach(e=>{t.addItem(t=>{t.setTitle(e.name).setIcon(Qe.getSettings().activeWorkspace===e.id?"check":"").onClick(async()=>{await this.switchToWorkspace(e.id)})})})),e)t.showAtMouseEvent(e);else{let e=this.ctx.containerEl.getBoundingClientRect();t.showAtPosition({x:e.left+e.width/2,y:e.top+e.height/2})}}async switchToWorkspace(e){this.workspaceSwitchTimeout&&window.clearTimeout(this.workspaceSwitchTimeout),Qe.getSettings().activeWorkspace=e,await Qe.saveSettings(),this.workspaceSwitchTimeout=window.setTimeout(()=>{this.ctx.refreshView()},100)}async activateChronoAnalyser(){if(Qe.isMobile())Na(Ce("ui.view.errors.chronoAnalyserDesktopOnly"));else try{let{activateAnalysisView:e}=await Promise.resolve().then(()=>(uJ(),cJ));await e(this.ctx.app)}catch(e){console.error("Full Calendar: Failed to activate Chrono Analyser view",e),Na(Ce("ui.view.errors.chronoAnalyserFailed"))}}}}),vye={};Zs(vye,{RescheduleRecurringModal:()=>mye});var u7,mye,gye=kr(()=>{u7=require("obsidian"),Zo(),mye=class extends u7.Modal{constructor(e,t,n,r){super(e),this.onRescheduleInstance=t,this.onRescheduleSequence=n,this.instanceDate=r}onOpen(){this.modalEl.addClass("full-calendar-confirm-modal");let{contentEl:e}=this;e.createEl("h2",{text:Ce("modals.rescheduleRecurring.title")}),e.createEl("p",{text:Ce("modals.rescheduleRecurring.description")}),new u7.Setting(e).setName(Ce("modals.rescheduleRecurring.rescheduleInstance.name")).setDesc(this.instanceDate?Ce("modals.rescheduleRecurring.rescheduleInstance.description",{date:this.instanceDate}):Ce("modals.rescheduleRecurring.rescheduleInstance.descriptionNoDate")).addButton(e=>e.setButtonText(Ce("modals.rescheduleRecurring.rescheduleInstance.button")).setCta().onClick(()=>{this.close(),this.onRescheduleInstance()})),new u7.Setting(e).setName(Ce("modals.rescheduleRecurring.rescheduleSequence.name")).setDesc(Ce("modals.rescheduleRecurring.rescheduleSequence.description")).addButton(e=>e.setButtonText(Ce("modals.rescheduleRecurring.rescheduleSequence.button")).setCta().onClick(()=>{this.close(),this.onRescheduleSequence()})),new u7.Setting(e).addButton(e=>e.setButtonText(Ce("modals.rescheduleRecurring.cancel")).onClick(()=>this.close()))}onClose(){this.contentEl.empty()}}});function r6t(e,t,n,r){if("recurring"!==e.type&&"rrule"!==e.type)return e;let a=vLr(t,n),i={...e,allDay:r.allDay,timezone:r.timezone||e.timezone};return r.allDay?(delete i.startTime,delete i.endTime):"startTime"in r&&(i.startTime=r.startTime,i.endTime=r.endTime),"recurring"===e.type?{...i,startRecur:yye(e.startRecur,a),endRecur:yye(e.endRecur,a)}:{...i,startDate:yye(e.startDate,a)||e.startDate}}var yye,t6t,vLr,d7,bye=kr(()=>{Fc(),Lu(),Wo(),Zo(),Zq(),yye=(e,t)=>e&&0!==t&&Fn.fromISO(e).plus({days:t}).toISODate()||e,t6t=e=>e.start?Fn.fromJSDate(e.start).toISODate():null,vLr=(e,t)=>{if(!e.start||!t.start)return 0;let n=Fn.fromJSDate(e.start).startOf("day"),r=Fn.fromJSDate(t.start).startOf("day");return Math.round(r.diff(n,"days").days)},d7=class{constructor(e){this.ctx=e}async getRecurringTaskInstanceState(e){let t=e.id,n=Qe.getCache().store.getEventDetails(t);if(!n)return null;let{event:r,calendarId:a}=n,i=Qe.getProviderRegistry().getInstance(a),o="recurring"===r.type||"rrule"===r.type||!!r.recurringEventId;if(!i||!o||!e.start)return null;if("getRecurringInstanceState"in i&&"function"==typeof i.getRecurringInstanceState){let t=Fn.fromJSDate(e.start).toISODate();return t?await i.getRecurringInstanceState(r,t):null}return null}async handleEventClick(e){try{let t=e.event.start&&Fn.fromJSDate(e.event.start).toISODate()||void 0;if(e.jsEvent.getModifierState("Control")||e.jsEvent.getModifierState("Meta")){let n=Qe.getCache().store.getEventDetails(e.event.id);if(n){let{calendarId:e,event:r}=n,a=Qe.getProviderRegistry().getInstance(e);if(a&&"linkedNoteIndex"in a&&a.linkedNoteIndex){let e=a.linkedNoteIndex.getFileForEvent(r.uid||"",t);if(e)return void await this.ctx.app.workspace.getLeaf(!0).openFile(e)}}let{openFileForEvent:r}=await Promise.resolve().then(()=>(pT(),Tte));return void await r(Qe.getCache(),this.ctx.app,e.event.id)}if(!Qe.getCache().isEventEditable(e.event.id)){let{launchEventDetailsModal:n}=await Promise.resolve().then(()=>(uz(),GE));return void n(this.ctx.plugin,e.event.id,t)}let n=Qe.getCache().store.getEventDetails(e.event.id);if(!n)return;let{calendarId:r}=n;if(Qe.getProviderRegistry().getCapabilities(r)?.hasCustomEditUI){let n=Qe.getProviderRegistry().getInstance(r);if(n&&"editInProviderUI"in n&&"function"==typeof n.editInProviderUI)await n.editInProviderUI(e.event.id);else{console.error(`Provider for ${r} claims hasCustomEditUI but method is not implemented.`);let{launchEditModal:n}=await Promise.resolve().then(()=>(uz(),GE));n(this.ctx.plugin,e.event.id,t)}}else{let{launchEditModal:n}=await Promise.resolve().then(()=>(uz(),GE));n(this.ctx.plugin,e.event.id,t)}}catch(e){e instanceof Error&&(console.warn(e),Na(e.message))}}async handleSelect(e,t,n,r){n&&t.setDate(t.getDate()-1);let a=this.ctx.viewEnhancer?this.ctx.viewEnhancer.getCalendarConfig():Qe.getSettings(),i=n6t(e,t,n,a.displayTimezone||Intl.DateTimeFormat().resolvedOptions().timeZone);try{if(a.clickToCreateEventFromMonthView||"dayGridMonth"!==r){let{launchCreateModal:e}=await Promise.resolve().then(()=>(uz(),GE));e(this.ctx.plugin,i)}else this.ctx.fullCalendarView?.changeView("timeGridDay"),this.ctx.fullCalendarView?.gotoDate(e)}catch(e){e instanceof Error&&(console.error(e),Na(e.message))}}async handleModifyEvent(e,t,n){try{let r=this.ctx.viewEnhancer?this.ctx.viewEnhancer.getCalendarConfig():Qe.getSettings(),a=Qe.getCache().getEventById(t.id);if(!a)throw new Error("Original event not found in cache.");if("rrule"===a.type||"recurring"===a.type){if(!t.start)throw new Error("Recurring instance is missing original start date.");let i=t6t(t);if(!i)throw new Error("Could not determine instance date from recurring event.");let o=fJ(e,r,n),{RescheduleRecurringModal:s}=await Promise.resolve().then(()=>(gye(),vye));return new s(this.ctx.app,()=>{Qe.getCache().modifyRecurringInstance(t.id,i,o)},()=>{Qe.getCache().updateEventWithId(t.id,r6t(a,t,e,o))},i).open(),!1}if("single"===a.type&&(a.recurringEventId||a.recurrenceId)){let i=t6t(t),o=fJ(e,r,n),s=Qe.getCache().store.getAllEvents().find(e=>{if("recurring"!==e.event.type&&"rrule"!==e.event.type)return!1;if(e.event.uid&&e.event.uid===a.uid||a.recurringEventId&&e.event.uid===a.recurringEventId)return!0;let t=a.recurringEventId?.split("/").pop(),n=e.location?.path.split("/").pop();return!(!t||n!==t)});if(!i||!s)return await Qe.getCache().updateEventWithId(t.id,o);let{RescheduleRecurringModal:l}=await Promise.resolve().then(()=>(gye(),vye));return new l(this.ctx.app,()=>{Qe.getCache().updateEventWithId(t.id,o)},()=>{Qe.getCache().updateEventWithId(s.id,r6t(s.event,t,e,o))},i).open(),!1}return!!await Qe.getCache().updateEventWithId(t.id,fJ(e,r,n))}catch(e){return console.error(e),e instanceof Error?Na(e.message):Na(Ce("ui.view.errors.modifyEventFailed")),!1}}async handleToggleTask(e,t){let n=e.id,r=Qe.getCache().store.getEventDetails(n);if(!r)return!1;let{event:a,calendarId:i}=r,o=Qe.getProviderRegistry().getInstance(i),s="recurring"===a.type||"rrule"===a.type||a.recurringEventId;if(o&&s&&e.start){let n=Fn.fromJSDate(e.start).toISODate();if(n&&"getRecurringInstanceState"in o&&"function"==typeof o.getRecurringInstanceState&&"setRecurringInstanceState"in o&&"function"==typeof o.setRecurringInstanceState){let e=o,r=await e.getRecurringInstanceState(a,n)??{completed:!1,skipped:!1};return await e.setRecurringInstanceState(a,n,{...r,completed:t})}}if(o&&o.toggleComplete)return await o.toggleComplete(n,t);if(!s){let{toggleTask:e}=await Promise.resolve().then(()=>(WT(),Dre));return await Qe.getCache().updateEventWithId(n,e(a,t)),!0}if(!e.start)return!1;let l=Fn.fromJSDate(e.start).toISODate();if(!l)return!1;try{return await Qe.getCache().toggleRecurringInstance(n,l,t),!0}catch(e){return e instanceof Error&&Na(e.message),!1}}async handleDrop(e,t,n){try{if(!Qe.getCache())throw new Error("Event cache not available");let r=await Qe.getCache().validateTaskSchedule(e,t);if(!r.isValid)return void Na(r.reason||"This task cannot be scheduled on this date.");await Qe.getCache().scheduleTask(e,t,n),Na(Ce("ui.view.success.taskScheduled")),Qe.getProviderRegistry().refreshBacklogViews()}catch(e){console.error("Failed to schedule task:",e);let t=e instanceof Error?e.message:"Unknown error occurred";Na(Ce("ui.view.errors.taskScheduleFailed",{message:t}))}}async handleEventDragStop(e,t){let n=t.view?.document.elementFromPoint(t.clientX,t.clientY);if(n?.instanceOf(Element)&&n.closest(".tasks-backlog-view"))try{if(!Qe.getCache())throw new Error("Event cache not available");await Qe.getCache().unscheduleTaskEvent(e.id),Na("Task returned to backlog")}catch(e){console.error("Failed to return task to backlog:",e),Na(`Failed to return task to backlog: ${e instanceof Error?e.message:"Unknown error occurred"}`)}}}});function hJ(e){let t=a6t.activeDocument?.body;if(!t)return{color:e||"var(--interactive-accent)",textColor:"var(--text-on-accent)"};let n=getComputedStyle(t),r=n.getPropertyValue("--text-on-accent").trim()||"var(--text-on-accent)";if(e){let t=e.slice(1).match(7===e.length?/(\S{2})/g:/(\S{1})/g);if(t){(299*parseInt(t[0],16)+587*parseInt(t[1],16)+114*parseInt(t[2],16))/1e3>150&&(r="black")}}return{color:e||n.getPropertyValue("--interactive-accent").trim()||"var(--interactive-accent)",textColor:r}}var a6t,o6t,g5,i6t=kr(()=>{a6t=require("obsidian")}),Mye=kr(()=>{o6t=require("obsidian"),WC(),Zo(),IC(),Wo(),g5=class extends o6t.Modal{constructor(e,t,n){super(e),this.dateStr=t,this.weatherInfo=n}onOpen(){let{contentEl:e}=this;e.empty(),this.modalEl.addClass("ofc-weather-detail-modal");let t="F"===Qe.getSettings()?.weatherUnit?"F":"C",n=this.dateStr;try{let e=new Date(`${this.dateStr}T00:00:00`);n=new Intl.DateTimeFormat(void 0,{weekday:"long",year:"numeric",month:"long",day:"numeric"}).format(e)}catch(e){console.error("Failed to format weather date",e)}this.titleEl.setText(Ce("settings.weather.detailModal.title",{date:n}));let r=e.createDiv({cls:"ofc-weather-detail-summary"});r.createDiv({cls:"ofc-weather-detail-summary-emoji-wrap"}).createSpan({cls:"ofc-weather-detail-summary-emoji"}).setText(this.weatherInfo.emoji);let a=r.createDiv({cls:"ofc-weather-detail-summary-info"});if(a.createDiv({cls:"ofc-weather-detail-summary-desc"}).setText(this.weatherInfo.desc),a.createDiv({cls:"ofc-weather-detail-summary-temp"}).setText(`${yg(this.weatherInfo.maxTemp,t)} / ${yg(this.weatherInfo.minTemp,t)}`),e.createEl("h3",{text:Ce("settings.weather.detailModal.hourlyHeader"),cls:"ofc-weather-detail-hourly-title"}),this.weatherInfo.hourly&&this.weatherInfo.hourly.length>0){let n=e.createDiv({cls:"ofc-weather-detail-hourly-timeline"});n.addEventListener("wheel",e=>{0!==e.deltaY&&(n.scrollLeft+=e.deltaY,e.preventDefault())}),this.weatherInfo.hourly.forEach(e=>{let r=n.createDiv({cls:"ofc-weather-detail-hourly-card"});r.createDiv({cls:"ofc-weather-detail-hour-time"}).setText(e.time),r.createDiv({cls:"ofc-weather-detail-hour-emoji"}).setText(e.emoji),r.createDiv({cls:"ofc-weather-detail-hour-temp"}).setText(yg(e.temp,t));let a=Math.round("F"===t?9*e.apparentTemp/5+32:e.apparentTemp),i=Ce("settings.weather.detailModal.apparentTemp",{temp:a}).replace("°C",`°${t}`);r.createDiv({cls:"ofc-weather-detail-hour-feels"}).setText(i);let o=r.createDiv({cls:"ofc-weather-detail-hour-grid"}),s=o.createDiv({cls:"ofc-weather-detail-hour-grid-item"});s.createSpan({cls:"ofc-weather-grid-icon"}).setText("💧"),s.createSpan({cls:"ofc-weather-grid-val"}).setText(`${e.precipProb}%`);let l=o.createDiv({cls:"ofc-weather-detail-hour-grid-item"});l.createSpan({cls:"ofc-weather-grid-icon"}).setText("💦"),l.createSpan({cls:"ofc-weather-grid-val"}).setText(`${e.humidity}%`);let c=o.createDiv({cls:"ofc-weather-detail-hour-grid-item"});c.createSpan({cls:"ofc-weather-grid-icon"}).setText("💨"),c.createSpan({cls:"ofc-weather-grid-val"}).setText(`${Math.round(e.windSpeed)} km/h`)})}else e.createDiv({cls:"ofc-weather-detail-no-hourly",text:Ce("settings.weather.detailModal.noHourly")});PC(e)}onClose(){this.contentEl.empty()}}});async function l6t(e,t){if(!bW())return;let n=gLr(t),r=mT(n,Z5())||await TC(n);r&&await e.workspace.getLeaf(!1).openFile(r)}var s6t,gLr,c6t=kr(()=>{s6t=require("obsidian"),$5(),gLr=s6t.moment}),y5=kr(()=>{IM(),iE()});function yLr(e){return Cr(x0,null,e.text&&Cr("a",Object.assign({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&Cr("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}function MLr(e,t){let n=n8(e,t);return Cr("a",Object.assign({},n),e.eventRange.def.title)}function xLr(e,t,n,r,a){let{options:i}=n;if(!1!==i.displayEventTime){let o,s=e.eventRange.def,l=e.eventRange.instance,c=!1;if(s.allDay?c=!0:Pne(e.eventRange.range)?e.isStart?o=sz(e,t,n,null,null,l.range.start,e.end):e.isEnd?o=sz(e,t,n,null,null,e.start,l.range.end):c=!0:o=sz(e,t,n),c){let e={text:n.options.allDayText,view:n.viewApi};return Cr(Uc,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${a}`},renderProps:e,generatorName:"allDayContent",customGenerator:i.allDayContent,defaultGenerator:_Lr,classNameGenerator:i.allDayClassNames,didMount:i.allDayDidMount,willUnmount:i.allDayWillUnmount})}return Cr("td",{className:"fc-list-event-time"},o)}return null}function _Lr(e){return e.text}function zLr(e){return e.text}function ALr(e){let t=mc(e.renderRange.start),n=e.renderRange.end,r=[],a=[];for(;t<n;)r.push(t),a.push({start:t,end:Iu(t,1)}),t=Iu(t,1);return{dayDates:r,dayRanges:a}}function wLr(e){let t,n,r=[];for(t=0;t<e.length;t+=1)n=e[t],(r[n.dayIndex]||(r[n.dayIndex]=[])).push(n);return r}var xye,bLr,_ye,pJ,OLr,u6t=kr(()=>{Hm(),y5(),xye=class extends Ps{constructor(){super(...arguments),this.state={textId:Ag()}}render(){let{theme:e,dateEnv:t,options:n,viewApi:r}=this.context,{cellId:a,dayDate:i,todayRange:o}=this.props,{textId:s}=this.state,l=lz(i,o),c=n.listDayFormat?t.format(i,n.listDayFormat):"",u=n.listDaySideFormat?t.format(i,n.listDaySideFormat):"",d=Object.assign({date:t.toDate(i),view:r,textId:s,text:c,sideText:u,navLinkAttrs:Tg(this.context,i),sideNavLinkAttrs:Tg(this.context,i,"day",!1)},l);return Cr(Uc,{elTag:"tr",elClasses:["fc-list-day",...$M(l,e)],elAttrs:{"data-date":GM(i)},renderProps:d,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:yLr,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},t=>Cr("th",{scope:"colgroup",colSpan:3,id:a,"aria-labelledby":s},Cr(t,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}},bLr=pc({hour:"numeric",minute:"2-digit",meridiem:"short"}),_ye=class extends Ps{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r,timeHeaderId:a,eventHeaderId:i,dateHeaderId:o}=e,s=n.eventTimeFormat||bLr;return Cr(UM,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",r.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>MLr(r,t),seg:r,timeText:"",disableDragging:!0,disableResizing:!0}),(e,n)=>Cr(x0,null,xLr(r,s,t,a,o),Cr("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},Cr("span",{className:"fc-list-event-dot",style:{borderColor:n.borderColor||n.backgroundColor}})),Cr(e,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${i} ${o}`}})))}},pJ=class extends ih{constructor(){super(...arguments),this.computeDateVars=ps(ALr),this.eventStoreToSegs=ps(this._eventStoreToSegs),this.state={timeHeaderId:Ag(),eventHeaderId:Ag(),dateHeaderIdRoot:Ag()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:t}=this,{dayDates:n,dayRanges:r}=this.computeDateVars(e.dateProfile),a=this.eventStoreToSegs(e.eventStore,e.eventUiBases,r);return Cr(cm,{elRef:this.setRootEl,elClasses:["fc-list",t.theme.getClass("table"),!1!==t.options.stickyHeaderDates?"fc-list-sticky":""],viewSpec:t.viewSpec},Cr(rz,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},a.length>0?this.renderSegList(a,n):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:t}=this.context,n={text:e.noEventsText,view:t};return Cr(Uc,{elTag:"div",elClasses:["fc-list-empty"],renderProps:n,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:zLr,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},e=>Cr(e,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(e,t){let{theme:n,options:r}=this.context,{timeHeaderId:a,eventHeaderId:i,dateHeaderIdRoot:o}=this.state,s=wLr(e);return Cr(Bh,{unit:"day"},(e,l)=>{let c=[];for(let n=0;n<s.length;n+=1){let u=s[n];if(u){let s=GM(t[n]),d=o+"-"+s;c.push(Cr(xye,{key:s,cellId:d,dayDate:t[n],todayRange:l})),u=ZM(u,r.eventOrder);for(let t of u)c.push(Cr(_ye,Object.assign({key:s+":"+t.eventRange.instance.instanceId,seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:a,eventHeaderId:i,dateHeaderId:d},l2(t,l,e))))}}return Cr("table",{className:"fc-list-table "+n.getClass("table")},Cr("thead",null,Cr("tr",null,Cr("th",{scope:"col",id:a},r.timeHint),Cr("th",{scope:"col","aria-hidden":!0}),Cr("th",{scope:"col",id:i},r.eventHint))),Cr("tbody",null,c))})}_eventStoreToSegs(e,t,n){return this.eventRangesToSegs(OA(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)}eventRangesToSegs(e,t){let n=[];for(let r of e)n.push(...this.eventRangeToSegs(r,t));return n}eventRangeToSegs(e,t){let n,r,a,{dateEnv:i}=this.context,{nextDayThreshold:o}=this.context.options,s=e.range,l=e.def.allDay,c=[];for(n=0;n<t.length;n+=1)if(r=um(s,t[n]),r&&(a={component:this,eventRange:e,start:r.start,end:r.end,isStart:e.isStart&&r.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&r.end.valueOf()===s.end.valueOf(),dayIndex:n},c.push(a),!a.isEnd&&!l&&n+1<t.length&&s.end<i.add(t[n+1].start,o))){a.end=s.end,a.isEnd=!0;break}return c}},zg(OLr=':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}')}),f6t={};function d6t(e){return!1===e?null:pc(e)}Zs(f6t,{default:()=>SLr});var TLr,SLr,h6t=kr(()=>{Sg(),u6t(),Hm(),SLr=Rd({name:"@fullcalendar/list",optionRefiners:TLr={listDayFormat:d6t,listDaySideFormat:d6t,noEventsClassNames:da,noEventsContent:da,noEventsDidMount:da,noEventsWillUnmount:da},views:{list:{component:pJ,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}})}),m6t={};function CLr(e,t){let n,r=!1,a=!1;if("string"==typeof e.rrule){let t=ELr(e.rrule);n=t.rruleSet,r=t.isTimeSpecified,a=t.isTimeZoneSpecified}if("object"==typeof e.rrule&&e.rrule){let i=p6t(e.rrule,t);n=new bC,n.rrule(i.rrule),r=i.isTimeSpecified,a=i.isTimeZoneSpecified}let i=[].concat(e.exdate||[]),o=[].concat(e.exrule||[]);for(let e of i){let t=KT(e);r=r||!t.isTimeUnspecified,a=a||null!==t.timeZoneOffset,n.exdate(new Date(t.marker.valueOf()-60*(t.timeZoneOffset||0)*1e3))}for(let e of o){let i=p6t(e,t);r=r||i.isTimeSpecified,a=a||i.isTimeZoneSpecified,n.exrule(i.rrule)}return{rruleSet:n,isTimeSpecified:r,isTimeZoneSpecified:a}}function p6t(e,t){let n=!1,r=!1;function a(e){if("string"==typeof e){let t=KT(e);return t?(n=n||!t.isTimeUnspecified,r=r||null!==t.timeZoneOffset,new Date(t.marker.valueOf()-60*(t.timeZoneOffset||0)*1e3)):null}return e}let i=Object.assign(Object.assign({},e),{dtstart:a(e.dtstart),until:a(e.until),freq:mJ(e.freq),wkst:null==e.wkst?(t.weekDow-1+7)%7:mJ(e.wkst),byweekday:DLr(e.byweekday)});return{rrule:new zs(i),isTimeSpecified:n,isTimeZoneSpecified:r}}function ELr(e){let t=th(e,{forceset:!0}),n=qLr(e);return Object.assign({rruleSet:t},n)}function qLr(e){let t=!1,n=!1;function r(e,r,a){let i=KT(a);t=t||!i.isTimeUnspecified,n=n||null!==i.timeZoneOffset}return e.replace(/\b(DTSTART:)([^\n]*)/,r),e.replace(/\b(EXDATE:)([^\n]*)/,r),e.replace(/\b(UNTIL=)([^;\n]*)/,r),{isTimeSpecified:t,isTimeZoneSpecified:n}}function DLr(e){return Array.isArray(e)?e.map(mJ):mJ(e)}function mJ(e){return"string"==typeof e?zs[e.toUpperCase()]:e}Zs(m6t,{default:()=>LLr});var kLr,RLr,LLr,v6t=kr(()=>{Sg(),AM(),Hm(),LLr=Rd({name:"@fullcalendar/rrule",recurringTypes:[kLr={parse(e,t){if(null!=e.rrule){let n=CLr(e,t);if(n)return{typeData:{rruleSet:n.rruleSet,dateEnv:n.isTimeZoneSpecified?void 0:t},allDayGuess:!n.isTimeSpecified,duration:e.duration}}return null},expand:(e,t,n)=>e.rruleSet.between(Iu(t.start,-1),Iu(t.end,1)).map(t=>n.createMarker(e.dateEnv?e.dateEnv.toDate(t):t))}],eventRefiners:RLr={rrule:da,exrule:da,exdate:da,duration:bl}})});function gJ(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.row].push(t);return n}function vJ(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.firstCol].push(t);return n}function g6t(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.row].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}function b6t(e){let{display:t}=e.eventRange.ui;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}function PLr(e){return Cr(x0,null,Cr("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&Cr("div",{className:"fc-event-time"},e.timeText),Cr("div",{className:"fc-event-title"},e.event.title||Cr(x0,null," ")))}function ILr(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}function WLr(e){return e.dayNumberText||Cr(x0,null," ")}function FLr(e,t,n){let{start:r,end:a}=t,i=xg(a,-1),o=n.getYear(r),s=n.getMonth(r),l=n.getYear(i),c=n.getMonth(i);return!(o===l&&s===c)&&(e.valueOf()===r.valueOf()||1===n.getDay(e)&&e.valueOf()<a.valueOf())}function M6t(e){return e.eventRange.instance.instanceId+":"+e.firstCol}function x6t(e){return M6t(e)+":"+e.lastCol}function BLr(e,t,n,r,a,i,o){let s=new Oye(t=>{let n=e[t.index].eventRange.instance.instanceId+":"+t.span.start+":"+(t.span.end-1);return a[n]||1});s.allowReslicing=!0,s.strictOrder=r,!0===t||!0===n?(s.maxCoord=i,s.hiddenConsumes=!0):"number"==typeof t?s.maxStackCnt=t:"number"==typeof n&&(s.maxStackCnt=n,s.hiddenConsumes=!0);let l=[],c=[];for(let t=0;t<e.length;t+=1){let n=e[t],r=x6t(n);null!=a[r]?l.push({index:t,span:{start:n.firstCol,end:n.lastCol+1}}):c.push(n)}let u=s.addSegs(l),d=s.toRects(),{singleColPlacements:p,multiColPlacements:h,leftoverMargins:f}=ULr(d,e,o),m=[],g=[];for(let e of c){h[e.firstCol].push({seg:e,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let t=e.firstCol;t<=e.lastCol;t+=1)p[t].push({seg:f7(e,t,t+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<o.length;e+=1)m.push(0);for(let t of u){let n=e[t.index],r=t.span;h[r.start].push({seg:f7(n,r.start,r.end,o),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let e=r.start;e<r.end;e+=1)m[e]+=1,p[e].push({seg:f7(n,e,e+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<o.length;e+=1)g.push(f[e]);return{singleColPlacements:p,multiColPlacements:h,moreCnts:m,moreMarginTops:g}}function ULr(e,t,n){let r=HLr(e,n.length),a=[],i=[],o=[];for(let e=0;e<n.length;e+=1){let s=r[e],l=[],c=0,u=0;for(let r of s){let a=t[r.index];l.push({seg:f7(a,e,e+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:r.levelCoord-c}),c=r.levelCoord+r.thickness}let d=[];c=0,u=0;for(let r of s){let a=t[r.index],i=r.span.end-r.span.start>1,o=r.span.start===e;u+=r.levelCoord-c,c=r.levelCoord+r.thickness,i?(u+=r.thickness,o&&d.push({seg:f7(a,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:r.levelCoord,marginTop:0})):o&&(d.push({seg:f7(a,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:u}),u=0)}a.push(l),i.push(d),o.push(u)}return{singleColPlacements:a,multiColPlacements:i,leftoverMargins:o}}function HLr(e,t){let n=[];for(let e=0;e<t;e+=1)n.push([]);for(let t of e)for(let e=t.span.start;e<t.span.end;e+=1)n[e].push(t);return n}function f7(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let a=e.eventRange,i=a.range,o=um(i,{start:r[t].date,end:Iu(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:a.def,ui:Object.assign(Object.assign({},a.ui),{durationEditable:!1}),instance:a.instance,range:o},isStart:e.isStart&&o.start.valueOf()===i.start.valueOf(),isEnd:e.isEnd&&o.end.valueOf()===i.end.valueOf()})}function VLr(e,t){if(!e.length)return[];let n=jLr(t);return e.map(e=>({seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0}))}function jLr(e){let t={};for(let n of e)for(let e of n)t[e.seg.eventRange.instance.instanceId]=e.absoluteTop;return t}function GLr(e,t){return gJ(e.filter(XLr),t)}function XLr(e){return e.eventRange.def.allDay}function YLr(e,t){let n;return t.currentRangeUnit.match(/year|month/)&&(n=e.querySelector(`[data-date="${One(t.currentDate)}-01"]`)),n||(n=e.querySelector(`[data-date="${GM(t.currentDate)}"]`)),n}function ZLr(e,t){let n=new CA(e.renderRange,t);return new EA(n,/year|month|week/.test(e.currentRangeUnit))}function $Lr(e){let t,{dateEnv:n,currentRange:r}=e,{start:a,end:i}=r;if(e.snapToWeek&&(a=n.startOfWeek(a),t=n.startOfWeek(i),t.valueOf()!==i.valueOf()&&(i=PF(t,1))),e.fixedWeekCount){let e=n.startOfWeek(n.startOfMonth(Iu(r.end,-1)));i=PF(i,6-Math.ceil(wne(e,i)))}return{start:a,end:i}}var zye,y6t,yJ,bJ,Aye,NLr,wye,Oye,MJ,Tye,Sye,kye,dI,xJ,_J,KLr,Cye=kr(()=>{Hm(),y5(),zye=class extends ih{constructor(){super(...arguments),this.headerElRef=Q1()}renderSimpleLayout(e,t){let{props:n,context:r}=this,a=[],i=Iy(r.options);return e&&a.push({type:"header",key:"header",isSticky:i,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),a.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),Cr(cm,{elClasses:["fc-daygrid"],viewSpec:r.viewSpec},Cr(nz,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:a}))}renderHScrollLayout(e,t,n,r){let a=this.context.pluginHooks.scrollGridImpl;if(!a)throw new Error("No ScrollGrid implementation");let{props:i,context:o}=this,s=!i.forPrint&&Iy(o.options),l=!i.forPrint&&KM(o.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:s,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),l&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Py}]}),Cr(cm,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},Cr(a,{liquid:!i.isHeightAuto&&!i.forPrint,forPrint:i.forPrint,collapsibleWidth:i.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:c}))}},y6t=pc({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}),yJ=class extends Ps{render(){let{props:e}=this;return Cr(e3,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:y6t,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}},bJ=class extends Ps{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,a=sz(r,n.eventTimeFormat||y6t,t,!0,e.defaultDisplayEventEnd);return Cr(UM,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:n8(e.seg,t),defaultGenerator:PLr,timeText:a,isResizing:!1,isDateSelecting:!1}))}},Aye=class extends Ps{constructor(){super(...arguments),this.compileSegs=ps(ILr)}render(){let{props:e}=this,{allSegs:t,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return Cr(VM,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let n=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return Cr(x0,null,t.map(t=>{let r=t.eventRange.instance.instanceId;return Cr("div",{className:"fc-daygrid-event-harness",key:r,style:{visibility:n[r]?"hidden":""}},b6t(t)?Cr(bJ,Object.assign({seg:t,isDragging:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},l2(t,e.todayRange))):Cr(yJ,Object.assign({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},l2(t,e.todayRange))))}))}})}},NLr=pc({week:"narrow"}),wye=class extends ih{constructor(){super(...arguments),this.rootElRef=Q1(),this.state={dayNumberId:Ag()},this.handleRootEl=e=>{s2(this.rootElRef,e),s2(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:r}=this,{options:a,dateEnv:i}=e,{date:o,dateProfile:s}=t,l=t.showDayNumber&&FLr(o,s.currentRange,i);return Cr(az,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:WLr,date:o,dateProfile:s,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:l,extraRenderProps:t.extraRenderProps},(i,s)=>Cr("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&Cr(BE,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Tg(e,o,"week"),date:o,defaultFormat:NLr}),!s.isDisabled&&(t.showDayNumber||i8(a)||t.forceDayTop)?Cr("div",{className:"fc-daygrid-day-top"},Cr(i,{elTag:"a",elClasses:["fc-daygrid-day-number",l&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Tg(e,o)),{id:n.dayNumberId})})):t.showDayNumber?Cr("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},Cr("a",{className:"fc-daygrid-day-number"}," ")):void 0,Cr("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,Cr("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},Cr(Aye,{allDayDate:o,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:r,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),Cr("div",{className:"fc-daygrid-day-bg"},t.bgContent)))}},Oye=class extends FM{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){let t=super.addSegs(e),{entriesByLevel:n}=this,r=e=>!this.forceHidden[Qb(e)];for(let e=0;e<n.length;e+=1)n[e]=n[e].filter(r);return t}handleInvalidInsertion(e,t,n){let{entriesByLevel:r,forceHidden:a}=this,{touchingEntry:i,touchingLevel:o,touchingLateral:s}=e;if(this.hiddenConsumes&&i){let e=Qb(i);if(!a[e])if(this.allowReslicing){let e=Object.assign(Object.assign({},i),{span:IE(i.span,t.span)});a[Qb(e)]=!0,r[o][s]=e,n.push(e),this.splitEntry(i,t,n)}else a[e]=!0,n.push(i)}super.handleInvalidInsertion(e,t,n)}},(MJ=class extends ih{constructor(){super(...arguments),this.cellElRefs=new sf,this.frameElRefs=new sf,this.fgElRefs=new sf,this.segHarnessRefs=new sf,this.rootElRef=Q1(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,a=e.cells.length,i=vJ(e.businessHourSegs,a),o=vJ(e.bgEventSegs,a),s=vJ(this.getHighlightSegs(),a),l=vJ(this.getMirrorSegs(),a),{singleColPlacements:c,multiColPlacements:u,moreCnts:d,moreMarginTops:p}=BLr(ZM(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,t.segHeights,t.maxContentHeight,e.cells),h=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return Cr("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((t,n)=>{let r=this.renderFgSegs(n,e.forPrint?c[n]:u[n],e.todayRange,h),a=this.renderFgSegs(n,VLr(l[n],u),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return Cr(wye,{key:t.key,elRef:this.cellElRefs.createRef(t.key),innerElRef:this.frameElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&0===n,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:d[n],moreMarginTop:p[n],singlePlacements:c[n],fgContentElRef:this.fgElRefs.createRef(t.key),fgContent:Cr(x0,null,Cr(x0,null,r),Cr(x0,null,a)),bgContent:Cr(x0,null,this.renderFillSegs(s[n],"highlight"),this.renderFillSegs(i[n],"non-business"),this.renderFillSegs(o[n],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!Df(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,t,n,r,a,i,o){let{context:s}=this,{eventSelection:l}=this.props,{framePositions:c}=this.state,u=1===this.props.cells.length,d=a||i||o,p=[];if(c)for(let e of t){let{seg:t}=e,{instanceId:h}=t.eventRange.instance,f=e.isVisible&&!r[h],m=e.isAbsolute,g="",y="";m&&(s.isRtl?(y=0,g=c.lefts[t.lastCol]-c.lefts[t.firstCol]):(g=0,y=c.rights[t.firstCol]-c.rights[t.lastCol])),p.push(Cr("div",{className:"fc-daygrid-event-harness"+(m?" fc-daygrid-event-harness-abs":""),key:M6t(t),ref:d?null:this.segHarnessRefs.createRef(x6t(t)),style:{visibility:f?"":"hidden",marginTop:m?"":e.marginTop,top:m?e.absoluteTop:"",left:g,right:y}},b6t(t)?Cr(bJ,Object.assign({seg:t,isDragging:a,isSelected:h===l,defaultDisplayEventEnd:u},l2(t,n))):Cr(yJ,Object.assign({seg:t,isDragging:a,isResizing:i,isDateSelecting:o,isSelected:h===l,defaultDisplayEventEnd:u},l2(t,n)))))}return p}renderFillSegs(e,t){let{isRtl:n}=this.context,{todayRange:r}=this.props,{framePositions:a}=this.state,i=[];if(a)for(let o of e){let e=n?{right:0,left:a.lefts[o.lastCol]-a.lefts[o.firstCol]}:{left:0,right:a.rights[o.firstCol]-a.rights[o.lastCol]};i.push(Cr("div",{key:RA(o.eventRange),className:"fc-daygrid-bg-harness",style:e},"bg-event"===t?Cr(HM,Object.assign({seg:o},l2(o,r))):PA(t)))}return Cr(x0,{},...i)}updateSizing(e){let{props:t,state:n,frameElRefs:r}=this;if(!t.forPrint&&null!==t.clientWidth){if(e){let e=t.cells.map(e=>r.currentMap[e.key]);if(e.length){let t=this.rootElRef.current,r=new B2(t,e,!0,!1);(!n.framePositions||!n.framePositions.similarTo(r))&&this.setState({framePositions:new B2(t,e,!0,!1)})}}let a=this.state.segHeights,i=this.querySegHeights(),o=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.safeSetState({segHeights:Object.assign(Object.assign({},a),i),maxContentHeight:o?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let n in e){let r=Math.round(e[n].getBoundingClientRect().height);t[n]=Math.max(t[n]||0,r)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(t=>e[t.key])}}).addStateEquality({segHeights:Df}),Tye=class extends ih{constructor(){super(...arguments),this.splitBusinessHourSegs=ps(gJ),this.splitBgEventSegs=ps(GLr),this.splitFgEventSegs=ps(gJ),this.splitDateSelectionSegs=ps(gJ),this.splitEventDrag=ps(g6t),this.splitEventResize=ps(g6t),this.rowRefs=new sf}render(){let{props:e,context:t}=this,n=e.cells.length,r=this.splitBusinessHourSegs(e.businessHourSegs,n),a=this.splitBgEventSegs(e.bgEventSegs,n),i=this.splitFgEventSegs(e.fgEventSegs,n),o=this.splitDateSelectionSegs(e.dateSelectionSegs,n),s=this.splitEventDrag(e.eventDrag,n),l=this.splitEventResize(e.eventResize,n),c=n>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return Cr(Bh,{unit:"day"},(t,u)=>Cr(x0,null,e.cells.map((t,d)=>Cr(MJ,{ref:this.rowRefs.createRef(d),key:t.length?t[0].date.toISOString():d,showDayNumbers:n>1,showWeekNumbers:e.showWeekNumbers,todayRange:u,dateProfile:e.dateProfile,cells:t,renderIntro:e.renderRowIntro,businessHourSegs:r[d],eventSelection:e.eventSelection,bgEventSegs:a[d],fgEventSegs:i[d],dateSelectionSegs:o[d],eventDrag:s[d],eventResize:l[d],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){let e=this.rowRefs.currentMap[0].getCellEls()[0],t=e?e.closest(".fc-daygrid-body"):null;t&&(this.rootEl=t,this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new B2(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new B2(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:n,rowPositions:r}=this,a=n.leftToIndex(e),i=r.topToIndex(t);if(null!=i&&null!=a){let e=this.props.cells[i][a];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(i,a),allDay:!0},e.extraDateSpan),dayEl:this.getCellEl(i,a),rect:{left:n.lefts[a],right:n.rights[a],top:r.tops[i],bottom:r.bottoms[i]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date;return{start:n,end:Iu(n,1)}}},Sye=class extends ih{constructor(){super(...arguments),this.elRef=Q1(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:t,dayMaxEvents:n,expandRows:r}=e,a=!0===n||!0===t;a&&!r&&(a=!1,t=null,n=null);let i=["fc-daygrid-body",a?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",r?"":"fc-daygrid-body-natural"];return Cr("div",{ref:this.elRef,className:i.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},Cr("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:r?e.clientHeight:""}},e.colGroupNode,Cr("tbody",{role:"presentation"},Cr(Tye,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:n,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){let e=YLr(this.elRef.current,this.props.dateProfile);if(e){let t=e.closest(".fc-daygrid-body"),n=t.closest(".fc-scroller"),r=e.getBoundingClientRect().top-t.getBoundingClientRect().top;n.scrollTop=r?r+1:0}this.needsScrollReset=!1}}},kye=class extends BM{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}},dI=class extends ih{constructor(){super(...arguments),this.slicer=new kye,this.tableRef=Q1()}render(){let{props:e,context:t}=this;return Cr(Sye,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}},xJ=class extends zye{constructor(){super(...arguments),this.buildDayTableModel=ps(ZLr),this.headerRef=Q1(),this.tableRef=Q1()}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:n}=this,r=this.buildDayTableModel(n.dateProfile,t),a=e.dayHeaders&&Cr(kA,{ref:this.headerRef,dateProfile:n.dateProfile,dates:r.headerDates,datesRepDistinctDays:1===r.rowCnt}),i=t=>Cr(dI,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:r,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(a,i,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(a,i)}},_J=class extends zA{buildRenderRange(e,t,n){let r=super.buildRenderRange(e,t,n),{props:a}=this;return $Lr({currentRange:r,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:a.fixedWeekCount,dateEnv:a.dateEnv})}},zg(KLr=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}')}),_6t={};Zs(_6t,{default:()=>JLr});var JLr,z6t=kr(()=>{Sg(),Cye(),JLr=Rd({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:xJ,dateProfileGeneratorClass:_J},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}})});function S6t(e){let t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return Cr(wv.Consumer,null,n=>{if(!e.isLabeled)return Cr("td",{className:t.join(" "),"data-time":e.isoTimeStr});let{dateEnv:r,options:a,viewApi:i}=n,o=null==a.slotLabelFormat?QLr:Array.isArray(a.slotLabelFormat)?pc(a.slotLabelFormat[0]):pc(a.slotLabelFormat),s={level:0,time:e.time,date:r.toDate(e.date),view:i,text:r.format(e.date,o)};return Cr(Uc,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:s,generatorName:"slotLabelContent",customGenerator:a.slotLabelContent,defaultGenerator:ePr,classNameGenerator:a.slotLabelClassNames,didMount:a.slotLabelDidMount,willUnmount:a.slotLabelWillUnmount},e=>Cr("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},Cr(e,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function ePr(e){return e.text}function nPr(e){return e.text}function aPr(e,t){return t.map(t=>e[t.key])}function fI(e,t){let n,r=[];for(n=0;n<t;n+=1)r.push([]);if(e)for(n=0;n<e.length;n+=1)r[e[n].col].push(e[n]);return r}function A6t(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.col].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}function iPr(e){return e.shortText}function oPr(e,t,n){let r=new FM;null!=t&&(r.strictOrder=t),null!=n&&(r.maxStackCnt=n);let a=PE(r.addSegs(e)),i=sPr(r);return i=dPr(i,1),{segRects:fPr(i),hiddenGroups:a}}function sPr(e){let{entriesByLevel:t}=e,n=Vye((e,t)=>e+":"+t,(r,a)=>{let i=w6t(uPr(e,r,a),n),o=t[r][a];return[Object.assign(Object.assign({},o),{nextLevelNodes:i[0]}),o.thickness+i[1]]});return w6t(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}function w6t(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:a}=e,i=r,o=[];for(;i<a;)o.push(t(n,i)),i+=1;return o.sort(lPr),[o.map(cPr),o[0][1]]}function lPr(e,t){return t[1]-e[1]}function cPr(e){return e[0]}function uPr(e,t,n){let{levelCoords:r,entriesByLevel:a}=e,i=a[t][n],o=r[t]+i.thickness,s=r.length,l=t;for(;l<s&&r[l]<o;l+=1);for(;l<s;l+=1){let e,t=a[l],n=vE(t,i.span.start,mE),r=n[0]+n[1],o=r;for(;(e=t[o])&&e.span.start<i.span.end;)o+=1;if(r<o)return{level:l,lateralStart:r,lateralEnd:o}}return null}function dPr(e,t){let n=Vye((e,t,n)=>Qb(e),(e,r,a)=>{let i,{nextLevelNodes:o,thickness:s}=e,l=s+a,c=s/l,u=[];if(o.length)for(let e of o)if(void 0===i){let t=n(e,r,l);i=t[0],u.push(t[1])}else{let t=n(e,i,0);u.push(t[1])}else i=t;let d=(i-r)*c;return[i-d,Object.assign(Object.assign({},e),{thickness:d,nextLevelNodes:u})]});return e.map(e=>n(e,0,0)[1])}function fPr(e){let t=[],n=Vye((e,t,n)=>Qb(e),(e,n,a)=>{let i=Object.assign(Object.assign({},e),{levelCoord:n,stackDepth:a,stackForward:0});return t.push(i),i.stackForward=r(e.nextLevelNodes,n+e.thickness,a+1)+1});function r(e,t,r){let a=0;for(let i of e)a=Math.max(n(i,t,r),a);return a}return r(e,0,0),t}function Vye(e,t){let n={};return(...r)=>{let a=e(...r);return a in n?n[a]:n[a]=t(...r)}}function O6t(e,t,n=null,r=0){let a=[];if(n)for(let i=0;i<e.length;i+=1){let o=e[i],s=n.computeDateTop(o.start,t),l=Math.max(s+(r||0),n.computeDateTop(o.end,t));a.push({start:Math.round(s),end:Math.round(l)})}return a}function hPr(e,t,n,r){let a=[],i=[];for(let n=0;n<e.length;n+=1){let r=t[n];r?a.push({index:n,thickness:1,span:r}):i.push(e[n])}let{segRects:o,hiddenGroups:s}=oPr(a,n,r),l=[];for(let t of o)l.push({seg:e[t.index],rect:t});for(let e of i)l.push({seg:e,rect:null});return{segPlacements:l,hiddenGroups:s}}function k6t(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:a,eventResize:i}){let o=(a?a.affectedInstances:null)||(i?i.affectedInstances:null)||{};return Cr(x0,null,e.map(e=>{let a=e.eventRange.instance.instanceId;return Cr("div",{key:a,style:{visibility:o[a]?"hidden":""}},Cr(zJ,Object.assign({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===r,isShort:!1},l2(e,t,n))))}))}function Eye(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}function mPr(e,t){return e.map(e=>t[e.index])}function vPr(e,t){return t.map(t=>e[t.key])}function gPr(e,t){let n=t||e,r=Ly(e,n);return null===r&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}function yPr(e,t,n){let r=[];for(let a of e.headerDates)r.push({start:n.add(a,t.slotMinTime),end:n.add(a,t.slotMaxTime)});return r}function bPr(e,t,n,r,a){let i=new Date(0),o=e,s=bl(0),l=n||MPr(r),c=[];for(;cp(o)<cp(t);){let e=a.add(i,o),t=null!==Ly(s,l);c.push({date:e,time:o,key:e.toISOString(),isoTimeStr:Tne(e),isLabeled:t}),o=xE(o,r),s=xE(s,r)}return c}function MPr(e){let t,n,r;for(t=T6t.length-1;t>=0;t-=1)if(n=bl(T6t[t]),r=Ly(n,e),null!==r&&r>1)return n;return e}function xPr(e,t){let n=new CA(e.renderRange,t);return new EA(n,!1)}var qye,QLr,Dye,tPr,rPr,Rye,Lye,Pye,Iye,Nye,pPr,zJ,Wye,Fye,Bye,Uye,Hye,T6t,AJ,_Pr,C6t=kr(()=>{Hm(),y5(),Cye(),qye=class extends TA{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?Une(e)?["timed","allDay"]:["allDay"]:["timed"]}},QLr=pc({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"}),Dye=class extends Ps{render(){return this.props.slatMetas.map(e=>Cr("tr",{key:e.key},Cr(S6t,Object.assign({},e))))}},tPr=pc({week:"short"}),rPr=5,Rye=class extends ih{constructor(){super(...arguments),this.allDaySplitter=new qye,this.headerElRef=Q1(),this.rootElRef=Q1(),this.scrollerElRef=Q1(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let t=this.scrollerElRef.current;t&&(t.scrollTop=e)},this.renderHeadAxis=(e,t="")=>{let{options:n}=this.context,{dateProfile:r}=this.props,a=r.renderRange,i=1===r3(a.start,a.end)?Tg(this.context,a.start,"week"):{};return n.weekNumbers&&"day"===e?Cr(BE,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:a.start,defaultFormat:tPr},e=>Cr("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:t}},Cr(e,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:i}))):Cr("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},Cr("div",{className:"fc-timegrid-axis-frame",style:{height:t}}))},this.renderTableRowAxis=e=>{let{options:t,viewApi:n}=this.context,r={text:t.allDayText,view:n};return Cr(Uc,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:r,generatorName:"allDayContent",customGenerator:t.allDayContent,defaultGenerator:nPr,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},t=>Cr("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",null==e?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},Cr(t,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,t,n){let{context:r,props:a}=this,i=[],o=Iy(r.options);return e&&i.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(i.push({type:"body",key:"all-day",chunk:{content:t}}),i.push({type:"body",key:"all-day-divider",outerContent:Cr("tr",{role:"presentation",className:"fc-scrollgrid-section"},Cr("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),i.push({type:"body",key:"body",liquid:!0,expandRows:!!r.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:n}}),Cr(cm,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:r.viewSpec},Cr(nz,{liquid:!a.isHeightAuto&&!a.forPrint,collapsibleWidth:a.forPrint,cols:[{width:"shrink"}],sections:i}))}renderHScrollLayout(e,t,n,r,a,i,o){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");let{context:l,props:c}=this,u=!c.forPrint&&Iy(l.options),d=!c.forPrint&&KM(l.options),p=[];e&&p.push({type:"header",key:"header",isSticky:u,syncRowHeights:!0,chunks:[{key:"axis",rowContent:e=>Cr("tr",{role:"presentation"},this.renderHeadAxis("day",e.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(p.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:e=>Cr("tr",{role:"presentation"},this.renderTableRowAxis(e.rowSyncHeights[0]))},{key:"cols",content:t}]}),p.push({key:"all-day-divider",type:"body",outerContent:Cr("tr",{role:"presentation",className:"fc-scrollgrid-section"},Cr("td",{colSpan:2,className:"fc-timegrid-divider "+l.theme.getClass("tableCellShaded")}))}));let h=l.options.nowIndicator;return p.push({type:"body",key:"body",liquid:!0,expandRows:!!l.options.expandRows,chunks:[{key:"axis",content:e=>Cr("div",{className:"fc-timegrid-axis-chunk"},Cr("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,Cr("tbody",null,Cr(Dye,{slatMetas:i}))),Cr("div",{className:"fc-timegrid-now-indicator-container"},Cr(Bh,{unit:h?"minute":"day"},e=>{let t=h&&o&&o.safeComputeTop(e);return"number"==typeof t?Cr(a3,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:t},isAxis:!0,date:e}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),d&&p.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Py},{key:"cols",content:Py}]}),Cr(cm,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:l.viewSpec},Cr(s,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:a}]}],sections:p}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:t}=this.context.options;return(!0===e||!0===t)&&(e=void 0,t=rPr),{dayMaxEvents:e,dayMaxEventRows:t}}},Lye=class{constructor(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}safeComputeTop(e){let{dateProfile:t}=this;if(Fm(t.currentRange,e)){let n=mc(e),r=e.valueOf()-n.valueOf();if(r>=cp(t.slotMinTime)&&r<cp(t.slotMaxTime))return this.computeTimeTop(bl(r))}return null}computeDateTop(e,t){return t||(t=mc(e)),this.computeTimeTop(bl(e.valueOf()-t.valueOf()))}computeTimeTop(e){let t,n,{positions:r,dateProfile:a}=this,i=r.els.length,o=(e.milliseconds-cp(a.slotMinTime))/cp(this.slotDuration);return o=Math.max(0,o),o=Math.min(i,o),t=Math.floor(o),t=Math.min(t,i-1),n=o-t,r.tops[t]+r.getHeight(t)*n}},Pye=class extends Ps{render(){let{props:e,context:t}=this,{options:n}=t,{slatElRefs:r}=e;return Cr("tbody",null,e.slatMetas.map((a,i)=>{let o={time:a.time,date:t.dateEnv.toDate(a.date),view:t.viewApi};return Cr("tr",{key:a.key,ref:r.createRef(a.key)},e.axis&&Cr(S6t,Object.assign({},a)),Cr(Uc,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!a.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":a.isoTimeStr},renderProps:o,generatorName:"slotLaneContent",customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount}))}))}},Iye=class extends Ps{constructor(){super(...arguments),this.rootElRef=Q1(),this.slatElRefs=new sf}render(){let{props:e,context:t}=this;return Cr("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},Cr("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,Cr(Pye,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:t}=this;t.onCoords&&null!==t.clientWidth&&this.rootElRef.current.offsetHeight&&t.onCoords(new Lye(new B2(this.rootElRef.current,aPr(this.slatElRefs.currentMap,t.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}},Nye=class extends Ps{render(){let{props:e}=this;return Cr(VM,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>k6t(e.hiddenSegs,e),defaultGenerator:iPr,forceTimed:!0},e=>Cr(e,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}},pPr=pc({hour:"numeric",minute:"2-digit",meridiem:!1}),zJ=class extends Ps{render(){return Cr(e3,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:pPr}))}},Wye=class extends Ps{constructor(){super(...arguments),this.sortEventSegs=ps(ZM)}render(){let{props:e,context:t}=this,{options:n}=t,r=n.selectMirror,a=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||r&&e.dateSelectionSegs||[],i=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},o=this.sortEventSegs(e.fgEventSegs,n.eventOrder);return Cr(az,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},t=>Cr("div",{className:"fc-timegrid-col-frame"},Cr("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),Cr("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,i,!1,!1,!1)),Cr("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(a,{},!!e.eventDrag,!!e.eventResize,!!r,"mirror")),Cr("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),i8(n)&&Cr(t,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,t,n,r,a,i){let{props:o}=this;return o.forPrint?k6t(e,o):this.renderPositionedFgSegs(e,t,n,r,a,i)}renderPositionedFgSegs(e,t,n,r,a,i){let{eventMaxStack:o,eventShortHeight:s,eventOrderStrict:l,eventMinHeight:c}=this.context.options,{date:u,slatCoords:d,eventSelection:p,todayRange:h,nowDate:f}=this.props,m=n||r||a,g=O6t(e,u,d,c),{segPlacements:y,hiddenGroups:b}=hPr(e,g,l,o);return Cr(x0,null,this.renderHiddenGroups(b,e),y.map(e=>{let{seg:o,rect:l}=e,c=o.eventRange.instance.instanceId,u=m||!(t[c]||!l),d=Eye(l&&l.span),g=!m&&l?this.computeSegHStyle(l):{left:0,right:0},y=!!l&&l.stackForward>0,b=!!l&&l.span.end-l.span.start<s;return Cr("div",{className:"fc-timegrid-event-harness"+(y?" fc-timegrid-event-harness-inset":""),key:i||c,style:Object.assign(Object.assign({visibility:u?"":"hidden"},d),g)},Cr(zJ,Object.assign({seg:o,isDragging:n,isResizing:r,isDateSelecting:a,isSelected:c===p,isShort:b},l2(o,h,f))))}))}renderHiddenGroups(e,t){let{extraDateSpan:n,dateProfile:r,todayRange:a,nowDate:i,eventSelection:o,eventDrag:s,eventResize:l}=this.props;return Cr(x0,null,e.map(e=>{let c=Eye(e.span),u=mPr(e.entries,t);return Cr(Nye,{key:DA(IA(u)),hiddenSegs:u,top:c.top,bottom:c.bottom,extraDateSpan:n,dateProfile:r,todayRange:a,nowDate:i,eventSelection:o,eventDrag:s,eventResize:l})}))}renderFillSegs(e,t){let{props:n,context:r}=this,a=O6t(e,n.date,n.slatCoords,r.options.eventMinHeight).map((r,a)=>{let i=e[a];return Cr("div",{key:RA(i.eventRange),className:"fc-timegrid-bg-harness",style:Eye(r)},"bg-event"===t?Cr(HM,Object.assign({seg:i},l2(i,n.todayRange,n.nowDate))):PA(t))});return Cr(x0,null,a)}renderNowIndicator(e){let{slatCoords:t,date:n}=this.props;return t?e.map((e,r)=>Cr(a3,{key:r,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:t.computeDateTop(e.start,n)},isAxis:!1,date:n})):null}computeSegHStyle(e){let t,n,{isRtl:r,options:a}=this.context,i=a.slotEventOverlap,o=e.levelCoord,s=e.levelCoord+e.thickness;i&&(s=Math.min(1,o+2*(s-o))),r?(t=1-s,n=o):(t=o,n=1-s);let l={zIndex:e.stackDepth+1,left:100*t+"%",right:100*n+"%"};return i&&!e.stackForward&&(l[r?"marginLeft":"marginRight"]=20),l}},Fye=class extends Ps{constructor(){super(...arguments),this.splitFgEventSegs=ps(fI),this.splitBgEventSegs=ps(fI),this.splitBusinessHourSegs=ps(fI),this.splitNowIndicatorSegs=ps(fI),this.splitDateSelectionSegs=ps(fI),this.splitEventDrag=ps(A6t),this.splitEventResize=ps(A6t),this.rootElRef=Q1(),this.cellElRefs=new sf}render(){let{props:e,context:t}=this,n=t.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),r=e.cells.length,a=this.splitFgEventSegs(e.fgEventSegs,r),i=this.splitBgEventSegs(e.bgEventSegs,r),o=this.splitBusinessHourSegs(e.businessHourSegs,r),s=this.splitNowIndicatorSegs(e.nowIndicatorSegs,r),l=this.splitDateSelectionSegs(e.dateSelectionSegs,r),c=this.splitEventDrag(e.eventDrag,r),u=this.splitEventResize(e.eventResize,r);return Cr("div",{className:"fc-timegrid-cols",ref:this.rootElRef},Cr("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,Cr("tbody",{role:"presentation"},Cr("tr",{role:"row"},e.axis&&Cr("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},Cr("div",{className:"fc-timegrid-col-frame"},Cr("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof n&&Cr(a3,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:n},isAxis:!0,date:e.nowDate})))),e.cells.map((t,n)=>Cr(Wye,{key:t.key,elRef:this.cellElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,fgEventSegs:a[n],bgEventSegs:i[n],businessHourSegs:o[n],nowIndicatorSegs:s[n],dateSelectionSegs:l[n],eventDrag:c[n],eventResize:u[n],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&null!==e.clientWidth&&e.onColCoords(new B2(this.rootElRef.current,vPr(this.cellElRefs.currentMap,e.cells),!0,!1))}},Bye=class extends ih{constructor(){super(...arguments),this.processSlotOptions=ps(gPr),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:t}=this.props,{slatCoords:n}=this.state;if(t&&n){if(e.time){let r=n.computeTimeTop(e.time);r=Math.ceil(r),r&&(r+=1),t(r)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t}=this;return Cr("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},Cr(Iye,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),Cr(Fye,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,t){let{dateEnv:n,options:r}=this.context,{colCoords:a}=this,{dateProfile:i}=this.props,{slatCoords:o}=this.state,{snapDuration:s,snapsPerSlot:l}=this.processSlotOptions(this.props.slotDuration,r.snapDuration),c=a.leftToIndex(e),u=o.positions.topToIndex(t);if(null!=c&&null!=u){let e=this.props.cells[c],r=o.positions.tops[u],d=o.positions.getHeight(u),p=(t-r)/d,h=u*l+Math.floor(p*l),f=this.props.cells[c].date,m=xE(i.slotMinTime,_E(s,h)),g=n.add(f,m),y=n.add(g,s);return{dateProfile:i,dateSpan:Object.assign({range:{start:g,end:y},allDay:!1},e.extraDateSpan),dayEl:a.els[c],rect:{left:a.lefts[c],right:a.rights[c],top:r,bottom:r+d},layer:0}}return null}},Uye=class extends BM{sliceRange(e,t){let n=[];for(let r=0;r<t.length;r+=1){let a=um(e,t[r]);a&&n.push({start:a.start,end:a.end,isStart:a.start.valueOf()===e.start.valueOf(),isEnd:a.end.valueOf()===e.end.valueOf(),col:r})}return n}},Hye=class extends ih{constructor(){super(...arguments),this.buildDayRanges=ps(yPr),this.slicer=new Uye,this.timeColsRef=Q1()}render(){let{props:e,context:t}=this,{dateProfile:n,dayTableModel:r}=e,{nowIndicator:a,nextDayThreshold:i}=t.options,o=this.buildDayRanges(r,n,t.dateEnv);return Cr(Bh,{unit:a?"minute":"day"},(s,l)=>Cr(Bye,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,n,null,t,o),{forPrint:e.forPrint,axis:e.axis,dateProfile:n,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:r.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:s,nowIndicatorSegs:a&&this.slicer.sliceNowDate(s,n,i,t,o),todayRange:l,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}},T6t=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],AJ=class extends Rye{constructor(){super(...arguments),this.buildTimeColsModel=ps(xPr),this.buildSlatMetas=ps(bPr)}render(){let{options:e,dateEnv:t,dateProfileGenerator:n}=this.context,{props:r}=this,{dateProfile:a}=r,i=this.buildTimeColsModel(a,n),o=this.allDaySplitter.splitProps(r),s=this.buildSlatMetas(a.slotMinTime,a.slotMaxTime,e.slotLabelInterval,e.slotDuration,t),{dayMinWidth:l}=e,c=!l,u=l,d=e.dayHeaders&&Cr(kA,{dates:i.headerDates,dateProfile:a,datesRepDistinctDays:!0,renderIntro:c?this.renderHeadAxis:null}),p=!1!==e.allDaySlot&&(t=>Cr(dI,Object.assign({},o.allDay,{dateProfile:a,dayTableModel:i,nextDayThreshold:e.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:r.forPrint},this.getAllDayMaxEventProps()))),h=t=>Cr(Hye,Object.assign({},o.timed,{dayTableModel:i,dateProfile:a,axis:c,slotDuration:e.slotDuration,slatMetas:s,forPrint:r.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return u?this.renderHScrollLayout(d,p,h,i.colCnt,l,s,this.state.slatCoords):this.renderSimpleLayout(d,p,h)}},zg(_Pr='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}')}),E6t={};Zs(E6t,{default:()=>APr});var zPr,APr,q6t=kr(()=>{Sg(),C6t(),zPr={allDaySlot:Boolean},APr=Rd({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:zPr,views:{timeGrid:{component:AJ,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}})}),R6t={};function wPr(e,t){if(!(t instanceof Bm))throw new Error("must supply a CalendarApi instance");let{dateEnv:n}=t.getCurrentData();return Fn.fromJSDate(e,{zone:n.timeZone,locale:n.locale.codes[0]})}function OPr(e,t){if(!(t instanceof Bm))throw new Error("must supply a CalendarApi instance");let{dateEnv:n}=t.getCurrentData();return Qf.fromObject(e,{locale:n.locale.codes[0]})}function TPr(e){return[e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond]}function wJ(e,t,n){return Fn.fromObject({year:e[0],month:e[1]+1,day:e[2],hour:e[3],minute:e[4],second:e[5],millisecond:e[6]},{locale:n,zone:t})}function SPr(e,t){let n=D6t(e);if(t.end){let e=wJ(t.start.array,t.timeZone,t.localeCodes[0]),r=wJ(t.end.array,t.timeZone,t.localeCodes[0]);return Gye(n,e.toFormat.bind(e),r.toFormat.bind(r),t.defaultSeparator)}return wJ(t.date.array,t.timeZone,t.localeCodes[0]).toFormat(n.whole)}function D6t(e){let t=e.match(/^(.*?)\{(.*)\}(.*)$/);if(t){let e=D6t(t[2]);return{head:t[1],middle:e,tail:t[3],whole:t[1]+e.whole+t[3]}}return{head:null,middle:null,tail:null,whole:e}}function Gye(e,t,n,r){if(e.middle){let a=t(e.head),i=Gye(e.middle,t,n,r),o=t(e.tail),s=n(e.head),l=Gye(e.middle,t,n,r),c=n(e.tail);if(a===s&&o===c)return a+(i===l?i:i+r+l)+o}let a=t(e.whole),i=n(e.whole);return a===i?a:a+r+i}Zs(R6t,{default:()=>kPr,toLuxonDateTime:()=>wPr,toLuxonDuration:()=>OPr});var jye,kPr,L6t=kr(()=>{Sg(),Lu(),Hm(),kPr=Rd({name:"@fullcalendar/luxon3",cmdFormatter:SPr,namedTimeZonedImpl:jye=class extends pE{offsetForArray(e){return wJ(e,this.timeZoneName).offset}timestampToArray(e){return TPr(Fn.fromMillis(e,{zone:this.timeZoneName}))}}})});function LPr(e){let t=e.options.schedulerLicenseKey;if(!IPr(typeof window<"u"?window.location.href:"")){let n=PPr(t,e.pluginHooks.premiumReleaseDate);if("valid"!==n)return Cr("div",{className:"fc-license-message",style:RPr},"outdated"===n?Cr(x0,null,"Your license key is too old to work with this version. ",Cr("a",{href:qPr},"More Info")):Cr(x0,null,"Your license key is invalid. ",Cr("a",{href:EPr},"More Info")))}return null}function PPr(e,t){if(-1!==DPr.indexOf(e))return"valid";let n=(e||"").match(/^(\d+)-fcs-(\d+)$/);if(n&&10===n[1].length){let e=new Date(1e3*parseInt(n[2],10)),r=c2.mockSchedulerReleaseDate||t;if(zE(r))return Iu(r,-CPr)<e?"valid":"outdated"}return"invalid"}function IPr(e){return/\w+:\/\/fullcalendar\.io\/|\/examples\/[\w-]+\.html$/.test(e)}var CPr,EPr,qPr,DPr,RPr,NPr,h7,OJ=kr(()=>{Sg(),Hm(),y5(),CPr=372,EPr="https://fullcalendar.io/docs/schedulerLicenseKey#invalid",qPr="https://fullcalendar.io/docs/schedulerLicenseKey#outdated",DPr=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"],RPr={position:"absolute",zIndex:99999,bottom:"1px",left:"1px",background:"#eee",borderColor:"#ddd",borderStyle:"solid",borderWidth:"1px 1px 0 0",padding:"2px 4px",fontSize:"12px",borderTopRightRadius:"3px"},h7=Rd({name:"@fullcalendar/premium-common",premiumReleaseDate:"2025-12-23",optionRefiners:NPr={schedulerLicenseKey:String},viewContainerAppends:[LPr]})});function WPr(e){let t=e.getBoundingClientRect(),n=ZF(e);return{left:t.left+n.borderLeft+n.scrollbarLeft-FPr(e),top:t.top+n.borderTop-e.scrollTop}}function FPr(e){let t=e.scrollLeft;if("rtl"===window.getComputedStyle(e).direction)switch(B6t()){case"negative":t*=-1;case"reverse":t=e.scrollWidth-t-e.clientWidth}return t}function BPr(e,t){if("rtl"===window.getComputedStyle(e).direction)switch(B6t()){case"reverse":t=e.scrollWidth-t;break;case"negative":t=-(e.scrollWidth-t)}e.scrollLeft=t}function B6t(){return P6t||(P6t=UPr())}function UPr(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-1000px",e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.direction="rtl";let t,n=document.createElement("div");return n.style.width="200px",n.style.height="200px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?t="positive":(e.scrollLeft=1,t=e.scrollLeft>0?"reverse":"negative"),qA(e),t}function VPr(e,t,n){e.forEach((e,r)=>{let a,{textAlign:i,elWidth:o,parentBound:s}=t[r],l=s.right-s.left;a="center"===i&&l>n?(n-o)/2:"",jM(e,{left:a,right:a,top:0})})}function jPr(e){let t=0;for(let n of e)t+=n;return t}function N6t(e){let t=t3(e,".fc-scrollgrid-sync-inner").map(GPr);return t.length?Math.max(...t):0}function GPr(e){return e.offsetHeight}function XPr(e,t){let n=e.map((e,n)=>{let r=e.width;return"shrink"===r&&(r=e.totalColWidth+nB(t[n])+1),Cr("col",{style:{width:r}})});return Cr("colgroup",{},...n)}function YPr(e){let t=W6t(e.cols,"width"),n=W6t(e.cols,"minWidth"),r=aB(e.cols);return{hasShrinkCol:r,totalColWidth:t,totalColMinWidth:n,allowXScrolling:"shrink"!==e.width&&!!(t||n||r),cols:e.cols,width:e.width}}function W6t(e,t){let n=0;for(let r of e){let e=r[t];"number"==typeof e&&(n+=e*(r.span||1))}return n}function $Pr(e,t){return UT(e,t,ZPr)}function F6t(e,...t){return new $ye(e,t)}function TJ(e){e.destroy()}function KPr(e,t){return new Xye(e,t)}var P6t,HPr,Xye,Yye,I6t,Zye,$ye,u6,ZPr,Kye=kr(()=>{Hm(),y5(),HPr=".fc-sticky",Xye=class{constructor(e,t){this.scrollEl=e,this.isRtl=t,this.updateSize=()=>{let{scrollEl:e}=this,t=t3(e,HPr);VPr(t,this.queryElGeoms(t),e.clientWidth)}}queryElGeoms(e){let{scrollEl:t,isRtl:n}=this,r=WPr(t),a=[];for(let t of e){let e=GF(RE(t.parentNode,!0,!0),-r.left,-r.top),i=t.getBoundingClientRect(),o=window.getComputedStyle(t),s=window.getComputedStyle(t.parentNode).textAlign,l=null;"start"===s?s=n?"right":"left":"end"===s&&(s=n?"left":"right"),"sticky"!==o.position&&(l=GF(i,-r.left-(parseFloat(o.left)||0),-r.top-(parseFloat(o.top)||0))),a.push({parentBound:e,naturalBound:l,elWidth:i.width,elHeight:i.height,textAlign:s})}return a}},Yye=class extends Ps{constructor(){super(...arguments),this.elRef=Q1(),this.state={xScrollbarWidth:0,yScrollbarWidth:0},this.handleScroller=e=>{this.scroller=e,s2(this.props.scrollerRef,e)},this.handleSizing=()=>{let{props:e}=this;"scroll-hidden"===e.overflowY&&this.setState({yScrollbarWidth:this.scroller.getYScrollbarWidth()}),"scroll-hidden"===e.overflowX&&this.setState({xScrollbarWidth:this.scroller.getXScrollbarWidth()})}}render(){let{props:e,state:t,context:n}=this,r=n.isRtl&&a8(),a=0,i=0,o=0,{overflowX:s,overflowY:l}=e;return e.forPrint&&(s="visible",l="visible"),"scroll-hidden"===s&&(o=t.xScrollbarWidth),"scroll-hidden"===l&&null!=t.yScrollbarWidth&&(r?a=t.yScrollbarWidth:i=t.yScrollbarWidth),Cr("div",{ref:this.elRef,className:"fc-scroller-harness"+(e.liquid?" fc-scroller-harness-liquid":"")},Cr(rz,{ref:this.handleScroller,elRef:this.props.scrollerElRef,overflowX:"scroll-hidden"===s?"scroll":s,overflowY:"scroll-hidden"===l?"scroll":l,overcomeLeft:a,overcomeRight:i,overcomeBottom:o,maxHeight:"number"==typeof e.maxHeight?e.maxHeight+("scroll-hidden"===s?t.xScrollbarWidth:0):"",liquid:e.liquid,liquidIsAbsolute:!0},e.children))}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}getSnapshotBeforeUpdate(e){return this.props.forPrint&&!e.forPrint?{simulateScrollLeft:this.scroller.el.scrollLeft}:{}}componentDidUpdate(e,t,n){let{props:r,scroller:{el:a}}=this;if(Df(e,r)||this.handleSizing(),void 0!==n.simulateScrollLeft)a.style.left=-n.simulateScrollLeft+"px";else if(!r.forPrint&&e.forPrint){let e=-parseInt(a.style.left);a.style.left="",a.scrollLeft=e}}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}needsXScrolling(){return this.scroller.needsXScrolling()}needsYScrolling(){return this.scroller.needsYScrolling()}},I6t="wheel mousewheel DomMouseScroll MozMousePixelScroll".split(" "),Zye=class{constructor(e){this.el=e,this.emitter=new Dy,this.isScrolling=!1,this.isTouching=!1,this.isRecentlyWheeled=!1,this.isRecentlyScrolled=!1,this.wheelWaiter=new Kb(this._handleWheelWaited.bind(this)),this.scrollWaiter=new Kb(this._handleScrollWaited.bind(this)),this.handleScroll=()=>{this.startScroll(),this.emitter.trigger("scroll",this.isRecentlyWheeled,this.isTouching),this.isRecentlyScrolled=!0,this.scrollWaiter.request(500)},this.handleWheel=()=>{this.isRecentlyWheeled=!0,this.wheelWaiter.request(500)},this.handleTouchStart=()=>{this.isTouching=!0},this.handleTouchEnd=()=>{this.isTouching=!1,this.isRecentlyScrolled||this.endScroll()},e.addEventListener("scroll",this.handleScroll),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd);for(let t of I6t)e.addEventListener(t,this.handleWheel)}destroy(){let{el:e}=this;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.removeEventListener("touchend",this.handleTouchEnd);for(let t of I6t)e.removeEventListener(t,this.handleWheel)}startScroll(){this.isScrolling||(this.isScrolling=!0,this.emitter.trigger("scrollStart",this.isRecentlyWheeled,this.isTouching))}endScroll(){this.isScrolling&&(this.emitter.trigger("scrollEnd"),this.isScrolling=!1,this.isRecentlyScrolled=!0,this.isRecentlyWheeled=!1,this.scrollWaiter.clear(),this.wheelWaiter.clear())}_handleScrollWaited(){this.isRecentlyScrolled=!1,this.isTouching||this.endScroll()}_handleWheelWaited(){this.isRecentlyWheeled=!1}},$ye=class{constructor(e,t){this.isVertical=e,this.scrollEls=t,this.isPaused=!1,this.scrollListeners=t.map(e=>this.bindScroller(e))}destroy(){for(let e of this.scrollListeners)e.destroy()}bindScroller(e){let{scrollEls:t,isVertical:n}=this,r=new Zye(e);return r.emitter.on("scroll",(r,a)=>{if(!this.isPaused&&((!this.masterEl||this.masterEl!==e&&(r||a))&&this.assignMaster(e),this.masterEl===e))for(let r of t)r!==e&&(n?r.scrollTop=e.scrollTop:r.scrollLeft=e.scrollLeft)}),r.emitter.on("scrollEnd",()=>{this.masterEl===e&&(this.masterEl=null)}),r}assignMaster(e){this.masterEl=e;for(let t of this.scrollListeners)t.el!==e&&t.endScroll()}forceScrollLeft(e){this.isPaused=!0;for(let t of this.scrollListeners)BPr(t.el,e);this.isPaused=!1}forceScrollTop(e){this.isPaused=!0;for(let t of this.scrollListeners)t.el.scrollTop=e;this.isPaused=!1}},c2.SCROLLGRID_RESIZE_INTERVAL=500,(u6=class extends Ps{constructor(){super(...arguments),this.compileColGroupStats=AE(YPr,$Pr),this.renderMicroColGroups=AE(rB),this.clippedScrollerRefs=new sf,this.scrollerElRefs=new sf(this._handleScrollerEl.bind(this)),this.chunkElRefs=new sf(this._handleChunkEl.bind(this)),this.scrollSyncersBySection={},this.scrollSyncersByColumn={},this.rowUnstableMap=new Map,this.rowInnerMaxHeightMap=new Map,this.anyRowHeightsChanged=!1,this.recentSizingCnt=0,this.state={shrinkWidths:[],forceYScrollbars:!1,forceXScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{},sectionRowMaxHeights:[]},this.handleSizing=(e,t)=>{if(!this.allowSizing())return;t||(this.anyRowHeightsChanged=!0);let n={};(e||!t&&!this.rowUnstableMap.size)&&(n.sectionRowMaxHeights=this.computeSectionRowMaxHeights()),this.setState(Object.assign(Object.assign({shrinkWidths:this.computeShrinkWidths()},this.computeScrollerDims()),n),()=>{this.rowUnstableMap.size||this.updateStickyScrolling()})},this.handleRowHeightChange=(e,t)=>{let{rowUnstableMap:n,rowInnerMaxHeightMap:r}=this;if(t){n.delete(e);let t=N6t(e);(!r.has(e)||r.get(e)!==t)&&(r.set(e,t),this.anyRowHeightsChanged=!0),!n.size&&this.anyRowHeightsChanged&&(this.anyRowHeightsChanged=!1,this.setState({sectionRowMaxHeights:this.computeSectionRowMaxHeights()}))}else n.set(e,!0)}}render(){let{props:e,state:t,context:n}=this,{shrinkWidths:r}=t,a=this.compileColGroupStats(e.colGroups.map(e=>[e])),i=this.renderMicroColGroups(a.map((e,t)=>[e.cols,r[t]])),o=iB(e.liquid,n);this.getDims();let s,l=e.sections,c=l.length,u=0,d=[],p=[],h=[];for(;u<c&&"header"===(s=l[u]).type;)d.push(this.renderSection(s,u,a,i,t.sectionRowMaxHeights,!0)),u+=1;for(;u<c&&"body"===(s=l[u]).type;)p.push(this.renderSection(s,u,a,i,t.sectionRowMaxHeights,!1)),u+=1;for(;u<c&&"footer"===(s=l[u]).type;)h.push(this.renderSection(s,u,a,i,t.sectionRowMaxHeights,!0)),u+=1;let f=!qE(),m={role:"rowgroup"};return Cr("table",{ref:e.elRef,role:"grid",className:o.join(" ")},XPr(a,r),!(f||!d.length)&&Cr("thead",m,...d),!(f||!p.length)&&Cr("tbody",m,...p),!(f||!h.length)&&Cr("tfoot",m,...h),f&&Cr("tbody",m,...d,...p,...h))}renderSection(e,t,n,r,a,i){return"outerContent"in e?Cr(x0,{key:e.key},e.outerContent):Cr("tr",{key:e.key,role:"presentation",className:oB(e,this.props.liquid).join(" ")},e.chunks.map((o,s)=>this.renderChunk(e,t,n[s],r[s],o,s,(a[t]||[])[s]||[],i)))}renderChunk(e,t,n,r,a,i,o,s){if("outerContent"in a)return Cr(x0,{key:a.key},a.outerContent);let{state:l}=this,{scrollerClientWidths:c,scrollerClientHeights:u}=l,[d,p]=this.getDims(),h=t*p+i,f=i===(!this.context.isRtl||a8()?p-1:0),m=t===d-1,g=m&&l.forceXScrollbars,y=f&&l.forceYScrollbars,b=n&&n.allowXScrolling,v=QF(this.props,e),M=FE(this.props,e),x=e.expandRows&&M,z=eB(e,a,{tableColGroupNode:r,tableMinWidth:n&&n.totalColMinWidth||"",clientWidth:void 0!==c[h]?c[h]:null,clientHeight:void 0!==u[h]?u[h]:null,expandRows:x,syncRowHeights:!!e.syncRowHeights,rowSyncHeights:o,reportRowHeightChange:this.handleRowHeightChange},s),_=g?m?"scroll":"scroll-hidden":b?m?"auto":"scroll-hidden":"hidden",A=y?f?"scroll":"scroll-hidden":v?f?"auto":"scroll-hidden":"hidden";return z=Cr(Yye,{ref:this.clippedScrollerRefs.createRef(h),scrollerElRef:this.scrollerElRefs.createRef(h),overflowX:_,overflowY:A,forPrint:this.props.forPrint,liquid:M,maxHeight:e.maxHeight},z),Cr(s?"th":"td",{key:a.key,ref:this.chunkElRefs.createRef(h),role:"presentation"},z)}componentDidMount(){this.getStickyScrolling=AE(KPr),this.getScrollSyncersBySection=IF(F6t.bind(this,!0),null,TJ),this.getScrollSyncersByColumn=IF(F6t.bind(this,!1),null,TJ),this.updateScrollSyncers(),this.handleSizing(!1),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(e,t){this.updateScrollSyncers(),this.handleSizing(!1,t.sectionRowMaxHeights!==this.state.sectionRowMaxHeights)}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing),this.destroyScrollSyncers()}allowSizing(){let e=new Date;return!this.lastSizingDate||e.valueOf()>this.lastSizingDate.valueOf()+c2.SCROLLGRID_RESIZE_INTERVAL?(this.lastSizingDate=e,this.recentSizingCnt=0,!0):(this.recentSizingCnt+=1)<=10}computeShrinkWidths(){let e=this.compileColGroupStats(this.props.colGroups.map(e=>[e])),[t,n]=this.getDims(),r=t*n,a=[];return e.forEach((e,t)=>{if(e.hasShrinkCol){let e=this.chunkElRefs.collect(t,r,n);a[t]=JF(e)}}),a}computeSectionRowMaxHeights(){let e=new Map,[t,n]=this.getDims(),r=[];for(let a=0;a<t;a+=1){let t=this.props.sections[a],i=[];if(t&&t.syncRowHeights){let r=[];for(let t=0;t<n;t+=1){let i=a*n+t,o=[],s=this.chunkElRefs.currentMap[i];o=s?t3(s,".fc-scrollgrid-sync-table tr").map(t=>{let n=N6t(t);return e.set(t,n),n}):[],r.push(o)}let o=r[0].length,s=!0;for(let e=1;e<n;e+=1)if((!t.chunks[e]||void 0===t.chunks[e].outerContent)&&r[e].length!==o){s=!1;break}if(s){for(let e=0;e<n;e+=1)i.push([]);for(let e=0;e<o;e+=1){let t=[];for(let a=0;a<n;a+=1){let n=r[a][e];null!=n&&t.push(n)}let a=Math.max(...t);for(let e=0;e<n;e+=1)i[e].push(a)}}else{let e=[];for(let t=0;t<n;t+=1)e.push(jPr(r[t])+r[t].length);let t=Math.max(...e);for(let e=0;e<n;e+=1){let n=r[e].length,a=t-n,o=Math.floor(a/n),s=a-o*(n-1),l=[],c=0;for(c<n&&(l.push(s),c+=1);c<n;)l.push(o),c+=1;i.push(l)}}}r.push(i)}return this.rowInnerMaxHeightMap=e,r}computeScrollerDims(){let e=YF(),[t,n]=this.getDims(),r=!this.context.isRtl||a8()?n-1:0,a=t-1,i=this.clippedScrollerRefs.currentMap,o=this.scrollerElRefs.currentMap,s=!1,l=!1,c={},u={};for(let e=0;e<t;e+=1){let t=i[e*n+r];if(t&&t.needsYScrolling()){s=!0;break}}for(let e=0;e<n;e+=1){let t=i[a*n+e];if(t&&t.needsXScrolling()){l=!0;break}}for(let i=0;i<t;i+=1)for(let t=0;t<n;t+=1){let d=i*n+t,p=o[d];if(p){let n=p.parentNode;c[d]=Math.floor(n.getBoundingClientRect().width-(t===r&&s?e.y:0)),u[d]=Math.floor(n.getBoundingClientRect().height-(i===a&&l?e.x:0))}}return{forceYScrollbars:s,forceXScrollbars:l,scrollerClientWidths:c,scrollerClientHeights:u}}updateStickyScrolling(){let{isRtl:e}=this.context,t=this.scrollerElRefs.getAll().map(t=>[t,e]);this.getStickyScrolling(t).forEach(e=>e.updateSize())}updateScrollSyncers(){let[e,t]=this.getDims(),n=e*t,r={},a={},i=this.scrollerElRefs.currentMap;for(let n=0;n<e;n+=1){let e=n*t,a=e+t;r[n]=BF(i,e,a,1)}for(let e=0;e<t;e+=1)a[e]=this.scrollerElRefs.collect(e,n,t);this.scrollSyncersBySection=this.getScrollSyncersBySection(r),this.scrollSyncersByColumn=this.getScrollSyncersByColumn(a)}destroyScrollSyncers(){ah(this.scrollSyncersBySection,TJ),ah(this.scrollSyncersByColumn,TJ)}getChunkConfigByIndex(e){let t=this.getDims()[1],n=Math.floor(e/t),r=e%t,a=this.props.sections[n];return a&&a.chunks[r]}forceScrollLeft(e,t){let n=this.scrollSyncersByColumn[e];n&&n.forceScrollLeft(t)}forceScrollTop(e,t){let n=this.scrollSyncersBySection[e];n&&n.forceScrollTop(t)}_handleChunkEl(e,t){let n=this.getChunkConfigByIndex(parseInt(t,10));n&&s2(n.elRef,e)}_handleScrollerEl(e,t){let n=this.getChunkConfigByIndex(parseInt(t,10));n&&s2(n.scrollerElRef,e)}getDims(){let e=this.props.sections.length;return[e,e?this.props.sections[0].chunks.length:0]}}).addStateEquality({shrinkWidths:o2,scrollerClientWidths:Df,scrollerClientHeights:Df}),ZPr={cols:tB}});function sbe(e,t,n,r){let a={labelInterval:n.slotLabelInterval,slotDuration:n.slotDuration};tIr(a,e,t),V6t(a,e,t),rIr(a,e,t);let i=n.slotLabelFormat,o=Array.isArray(i)?i:null!=i?[i]:nIr(a,e,t,n);a.headerFormats=o.map(e=>pc(e)),a.isTimeScale=!!a.slotDuration.milliseconds;let s=null;if(!a.isTimeScale){let e=Mg(a.slotDuration).unit;/year|month|week/.test(e)&&(s=e)}a.largeUnit=s,a.emphasizeWeeks=1===LF(a.slotDuration)&&p7("weeks",e,t)>=2&&!n.businessHours;let l,c,u=n.snapDuration;u&&(l=bl(u),c=Ly(a.slotDuration,l)),null==c&&(l=a.slotDuration,c=1),a.snapDuration=l,a.snapsPerSlot=c;let d=cp(e.slotMaxTime)-cp(e.slotMinTime),p=U6t(e.renderRange.start,a,t),h=U6t(e.renderRange.end,a,t);a.isTimeScale&&(p=t.add(p,e.slotMinTime),h=t.add(Iu(h,-1),e.slotMaxTime)),a.timeWindowMs=d,a.normalizedRange={start:p,end:h};let f=[],m=p;for(;m<h;)kJ(m,a,e,r)&&f.push(m),m=t.add(m,a.slotDuration);a.slotDates=f;let g=-1,y=0,b=[],v=[];for(m=p;m<h;)kJ(m,a,e,r)?(g+=1,b.push(g),v.push(y)):b.push(g+.5),m=t.add(m,a.snapDuration),y+=1;return a.snapDiffToIndex=b,a.snapIndexToDiff=v,a.snapCnt=g+1,a.slotCnt=a.snapCnt/a.snapsPerSlot,a.isWeekStarts=aIr(a,t),a.cellRows=iIr(a,t),a.slotsPerLabel=Ly(a.labelInterval,a.slotDuration),a}function U6t(e,t,n){let r=e;return t.isTimeScale||(r=mc(r),t.largeUnit&&(r=n.startOf(r,t.largeUnit))),r}function eIr(e,t,n){if(!t.isTimeScale&&(e=e8(e),t.largeUnit)){let r=e;((e={start:n.startOf(e.start,t.largeUnit),end:n.startOf(e.end,t.largeUnit)}).end.valueOf()!==r.end.valueOf()||e.end<=e.start)&&(e={start:e.start,end:n.add(e.end,t.slotDuration)})}return e}function kJ(e,t,n,r){if(r.isHiddenDay(e))return!1;if(t.isTimeScale){let r=mc(e),a=e.valueOf()-r.valueOf()-cp(n.slotMinTime);return a=(a%864e5+864e5)%864e5,a<t.timeWindowMs}return!0}function tIr(e,t,n){let{currentRange:r}=t;if(e.labelInterval&&n.countDurationsBetween(r.start,r.end,e.labelInterval)>c2.MAX_TIMELINE_SLOTS&&(console.warn("slotLabelInterval results in too many cells"),e.labelInterval=null),e.slotDuration&&n.countDurationsBetween(r.start,r.end,e.slotDuration)>c2.MAX_TIMELINE_SLOTS&&(console.warn("slotDuration results in too many cells"),e.slotDuration=null),e.labelInterval&&e.slotDuration){let t=Ly(e.labelInterval,e.slotDuration);(null===t||t<1)&&(console.warn("slotLabelInterval must be a multiple of slotDuration"),e.slotDuration=null)}}function V6t(e,t,n){let{currentRange:r}=t,{labelInterval:a}=e;if(!a){let t;if(e.slotDuration){for(t of Jye){let n=bl(t),r=Ly(n,e.slotDuration);if(null!==r&&r<=SJ){a=n;break}}a||(a=e.slotDuration)}else for(t of Jye)if(a=bl(t),n.countDurationsBetween(r.start,r.end,a)>=JPr)break;e.labelInterval=a}return a}function rIr(e,t,n){let{currentRange:r}=t,{slotDuration:a}=e;if(!a){let i=V6t(e,t,n);for(let e of Jye){let t=bl(e),n=Ly(i,t);if(null!==n&&n>1&&n<=SJ){a=t;break}}a&&n.countDurationsBetween(r.start,r.end,a)>QPr&&(a=null),a||(a=i),e.slotDuration=a}return a}function nIr(e,t,n,r){let a,i,{labelInterval:o}=e,s=Mg(o).unit,l=r.weekNumbers,c=a=i=null;switch("week"===s&&!l&&(s="day"),s){case"year":c={year:"numeric"};break;case"month":p7("years",t,n)>1&&(c={year:"numeric"}),a={month:"short"};break;case"week":p7("years",t,n)>1&&(c={year:"numeric"}),a={week:"narrow"};break;case"day":p7("years",t,n)>1?c={year:"numeric",month:"long"}:p7("months",t,n)>1&&(c={month:"long"}),l&&(a={week:"short"}),i={weekday:"narrow",day:"numeric"};break;case"hour":l&&(c={week:"short"}),p7("days",t,n)>1&&(a={weekday:"short",day:"numeric",month:"numeric",omitCommas:!0}),i={hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"};break;case"minute":zne(o)/60>=SJ?(c={hour:"numeric",meridiem:"short"},a=e=>":"+qy(e.date.minute,2)):c={hour:"numeric",minute:"numeric",meridiem:"short"};break;case"second":Ane(o)/60>=SJ?(c={hour:"numeric",minute:"2-digit",meridiem:"lowercase"},a=e=>":"+qy(e.date.second,2)):c={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"};break;case"millisecond":c={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"},a=e=>"."+qy(e.millisecond,3)}return[].concat(c||[],a||[],i||[])}function p7(e,t,n){let r=t.currentRange,a=null;return"years"===e?a=n.diffWholeYears(r.start,r.end):"months"===e||"weeks"===e?a=n.diffWholeMonths(r.start,r.end):"days"===e&&(a=tz(r.start,r.end)),a||0}function aIr(e,t){let{slotDates:n,emphasizeWeeks:r}=e,a=null,i=[];for(let e of n){let n=t.computeWeekNumber(e),o=r&&null!==a&&a!==n;a=n,i.push(o)}return i}function iIr(e,t){let n=e.slotDates,r=e.headerFormats,a=r.map(()=>[]),i=LF(e.slotDuration),o=7===i?"week":1===i?"day":null,s=r.map(e=>e.getSmallestUnit?e.getSmallestUnit():null);for(let i=0;i<n.length;i+=1){let l=n[i],c=e.isWeekStarts[i];for(let n=0;n<r.length;n+=1){let i=r[n],u=a[n],d=u[u.length-1],p=n===r.length-1,h=r.length>1&&!p,f=null,m=s[n]||(p?o:null);if(h){let e=t.format(l,i);d&&d.text===e?d.colspan+=1:f=H6t(l,e,m)}else if(!d||NM(t.countDurationsBetween(e.normalizedRange.start,l,e.labelInterval))){f=H6t(l,t.format(l,i),m)}else d.colspan+=1;f&&(f.weekStart=c,u.push(f))}}return a}function H6t(e,t,n){return{date:e,text:t,rowUnit:n,colspan:1,isWeekStart:!1}}function oIr(e,t,n){return n&&"time"!==n?Tg(e,t,n):{}}function sIr(e){return e.text}function lIr(e){return{level:e.level,date:e.dateEnv.toDate(e.dateMarker),view:e.viewApi,text:e.text}}function rbe(e,t,n){let r=n.countDurationsBetween(t.normalizedRange.start,e,t.snapDuration);if(r<0)return 0;if(r>=t.snapDiffToIndex.length)return t.snapCnt;let a=Math.floor(r),i=t.snapDiffToIndex[a];return NM(i)?i+=r-a:i=Math.ceil(i),i}function qJ(e,t){return null===e?{left:"",right:""}:t?{right:e,left:""}:{left:e,right:""}}function lbe(e,t){return e?t?{right:e.start,left:-e.end}:{left:e.start,right:-e.end}:{left:"",right:""}}function cIr(e,t){return t.map(t=>{let n=t.toISOString();return e[n]})}function j6t(e,t,n){let r=[];if(n)for(let a of e){let e=n.rangeToCoords(a),i=Math.round(e.start),o=Math.round(e.end);o-i<t&&(o=i+t),r.push({start:i,end:o})}return r}function uIr(e,t,n,r,a,i){let o=[],s=[];for(let r=0;r<e.length;r+=1){let a=e[r],i=n[a.eventRange.instance.instanceId],l=t[r];i&&l?o.push({index:r,span:l,thickness:i}):s.push({seg:a,hcoords:l,top:null})}let l=new FM;null!=a&&(l.strictOrder=a),null!=i&&(l.maxStackCnt=i);let c=l.addSegs(o),u=c.map(t=>({seg:e[t.index],hcoords:t.span,top:null})),d=PE(c),p=[],h=[],f=t=>e[t.index];for(let t=0;t<d.length;t+=1){let n=d[t],a=n.entries.map(f),i=r[DA(IA(a))];null!=i?p.push({index:e.length+t,thickness:i,span:n.span}):h.push({seg:a,hcoords:n.span,top:null})}l.maxStackCnt=-1,l.addSegs(p);let m=l.toRects(),g=[],y=0;for(let t of m){let n=t.index;g.push({seg:n<e.length?e[n]:d[n-e.length].entries.map(f),hcoords:t.span,top:t.levelCoord}),y=Math.max(y,t.levelCoord+t.thickness)}return[g.concat(s,u,h),y]}function fIr(e,t,n){if(!e.length||!t)return[];let r=hIr(n);return e.map(e=>({seg:e,hcoords:t.rangeToCoords(e),top:r[e.eventRange.instance.instanceId]}))}function hIr(e){let t={};for(let n of e){let{seg:e}=n;Array.isArray(e)||(t[e.eventRange.instance.instanceId]=n.top)}return t}function cbe(e,t){return[{span:e.slotCnt,minWidth:t||1}]}var JPr,SJ,QPr,Jye,Qye,ebe,tbe,hI,nbe,abe,pI,mI,vI,dIr,CJ,ibe,m7,obe,EJ,pIr,G6t,ube=kr(()=>{Hm(),y5(),Kye(),JPr=18,SJ=6,QPr=200,c2.MAX_TIMELINE_SLOTS=1e3,Jye=[{years:1},{months:1},{days:1},{hours:1},{minutes:30},{minutes:15},{minutes:10},{minutes:5},{minutes:1},{seconds:30},{seconds:15},{seconds:10},{seconds:5},{seconds:1},{milliseconds:500},{milliseconds:100},{milliseconds:10},{milliseconds:1}],Qye=class extends Ps{constructor(){super(...arguments),this.refineRenderProps=wg(lIr),this.buildCellNavLinkAttrs=ps(oIr)}render(){let{props:e,context:t}=this,{dateEnv:n,options:r}=t,{cell:a,dateProfile:i,tDateProfile:o}=e,s=lz(a.date,e.todayRange,e.nowDate,i),l=this.refineRenderProps({level:e.rowLevel,dateMarker:a.date,text:a.text,dateEnv:t.dateEnv,viewApi:t.viewApi});return Cr(Uc,{elTag:"th",elClasses:["fc-timeline-slot","fc-timeline-slot-label",a.isWeekStart&&"fc-timeline-slot-em",..."time"===a.rowUnit?XF(s,t.theme):$M(s,t.theme)],elAttrs:{colSpan:a.colspan,"data-date":n.formatIso(a.date,{omitTime:!o.isTimeScale,omitTimeZoneOffset:!0})},renderProps:l,generatorName:"slotLabelContent",customGenerator:r.slotLabelContent,defaultGenerator:sIr,classNameGenerator:r.slotLabelClassNames,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},n=>Cr("div",{className:"fc-timeline-slot-frame",style:{height:e.rowInnerHeight}},Cr(n,{elTag:"a",elClasses:["fc-timeline-slot-cushion","fc-scrollgrid-sync-inner",e.isSticky&&"fc-sticky"],elAttrs:this.buildCellNavLinkAttrs(t,a.date,a.rowUnit)})))}},ebe=class extends Ps{render(){let{dateProfile:e,tDateProfile:t,rowInnerHeights:n,todayRange:r,nowDate:a}=this.props,{cellRows:i}=t;return Cr(x0,null,i.map((o,s)=>{let l=s===i.length-1,c=["fc-timeline-header-row",t.isTimeScale&&l?"fc-timeline-header-row-chrono":""];return Cr("tr",{key:s,className:c.join(" ")},o.map(i=>Cr(Qye,{key:i.date.toISOString(),cell:i,rowLevel:s,dateProfile:e,tDateProfile:t,todayRange:r,nowDate:a,rowInnerHeight:n&&n[s],isSticky:!l})))}))}},tbe=class{constructor(e,t,n,r,a,i){this.slatRootEl=e,this.dateProfile=n,this.tDateProfile=r,this.dateEnv=a,this.isRtl=i,this.outerCoordCache=new B2(e,t,!0,!1),this.innerCoordCache=new B2(e,pne(t,"div"),!0,!1)}isDateInRange(e){return Fm(this.dateProfile.currentRange,e)}dateToCoord(e){let{tDateProfile:t}=this,n=this.computeDateSnapCoverage(e)/t.snapsPerSlot,r=Math.floor(n);r=Math.min(r,t.slotCnt-1);let a=n-r,{innerCoordCache:i,outerCoordCache:o}=this;return this.isRtl?o.originClientRect.width-(o.rights[r]-i.getWidth(r)*a):o.lefts[r]+i.getWidth(r)*a}rangeToCoords(e){return{start:this.dateToCoord(e.start),end:this.dateToCoord(e.end)}}durationToCoord(e){let{dateProfile:t,tDateProfile:n,dateEnv:r,isRtl:a}=this,i=0;if(t){let o=r.add(t.activeRange.start,e);n.isTimeScale||(o=mc(o)),i=this.dateToCoord(o),!a&&i&&(i+=1)}return i}coordFromLeft(e){return this.isRtl?this.outerCoordCache.originClientRect.width-e:e}computeDateSnapCoverage(e){return rbe(e,this.tDateProfile,this.dateEnv)}},hI=class extends Ps{constructor(){super(...arguments),this.rootElRef=Q1()}render(){let{props:e,context:t}=this,{unit:n,value:r}=Mg(e.tDateProfile.slotDuration),a=e.slatCoords&&e.slatCoords.dateProfile===e.dateProfile?e.slatCoords:null;return Cr(Bh,{unit:n,unitValue:r},(n,r)=>Cr("div",{className:"fc-timeline-header",ref:this.rootElRef},Cr("table",{"aria-hidden":!0,className:"fc-scrollgrid-sync-table",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,Cr("tbody",null,Cr(ebe,{dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:n,todayRange:r,rowInnerHeights:e.rowInnerHeights}))),t.options.nowIndicator&&Cr("div",{className:"fc-timeline-now-indicator-container"},a&&a.isDateInRange(n)&&Cr(a3,{elClasses:["fc-timeline-now-indicator-arrow"],elStyle:qJ(a.dateToCoord(n),t.isRtl),isAxis:!0,date:n}))))}componentDidMount(){this.updateSize()}componentDidUpdate(){this.updateSize()}updateSize(){this.props.onMaxCushionWidth&&this.props.onMaxCushionWidth(this.computeMaxCushionWidth())}computeMaxCushionWidth(){return Math.max(...t3(this.rootElRef.current,".fc-timeline-header-row:last-child .fc-timeline-slot-cushion").map(e=>e.getBoundingClientRect().width))}},nbe=class extends Ps{render(){let{props:e,context:t}=this,{dateEnv:n,options:r,theme:a}=t,{date:i,tDateProfile:o,isEm:s}=e,l=lz(e.date,e.todayRange,e.nowDate,e.dateProfile),c=Object.assign(Object.assign({date:n.toDate(e.date)},l),{view:t.viewApi});return Cr(Uc,{elTag:"td",elRef:e.elRef,elClasses:["fc-timeline-slot","fc-timeline-slot-lane",s&&"fc-timeline-slot-em",o.isTimeScale?NM(n.countDurationsBetween(o.normalizedRange.start,e.date,o.labelInterval))?"fc-timeline-slot-major":"fc-timeline-slot-minor":"",...e.isDay?$M(l,a):XF(l,a)],elAttrs:{"data-date":n.formatIso(i,{omitTimeZoneOffset:!0,omitTime:!o.isTimeScale})},renderProps:c,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount},e=>Cr(e,{elTag:"div"}))}},abe=class extends Ps{render(){let{props:e}=this,{tDateProfile:t,cellElRefs:n}=e,{slotDates:r,isWeekStarts:a}=t,i=!t.isTimeScale&&!t.largeUnit;return Cr("tbody",null,Cr("tr",null,r.map((r,o)=>{let s=r.toISOString();return Cr(nbe,{key:s,elRef:n.createRef(s),date:r,dateProfile:e.dateProfile,tDateProfile:t,nowDate:e.nowDate,todayRange:e.todayRange,isEm:a[o],isDay:i})})))}},pI=class extends Ps{constructor(){super(...arguments),this.rootElRef=Q1(),this.cellElRefs=new sf,this.handleScrollRequest=e=>{let{onScrollLeftRequest:t}=this.props,{coords:n}=this;if(t&&n){if(e.time){t(n.coordFromLeft(n.durationToCoord(e.time)))}return!0}return null}}render(){let{props:e,context:t}=this;return Cr("div",{className:"fc-timeline-slots",ref:this.rootElRef},Cr("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,Cr(abe,{cellElRefs:this.cellElRefs,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange})))}componentDidMount(){this.updateSizing(),this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.updateSizing(),this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach(),this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{props:e,context:t}=this;null!==e.clientWidth&&this.scrollResponder&&this.rootElRef.current.offsetWidth&&(this.coords=new tbe(this.rootElRef.current,cIr(this.cellElRefs.currentMap,e.tDateProfile.slotDates),e.dateProfile,e.tDateProfile,t.dateEnv,t.isRtl),e.onCoords&&e.onCoords(this.coords),this.scrollResponder.update(!1))}positionToHit(e){let{outerCoordCache:t}=this.coords,{dateEnv:n,isRtl:r}=this.context,{tDateProfile:a}=this.props,i=t.leftToIndex(e);if(null!=i){let o=t.getWidth(i),s=r?(t.rights[i]-e)/o:(e-t.lefts[i])/o,l=Math.floor(s*a.snapsPerSlot),c=n.add(a.slotDates[i],_E(a.snapDuration,l));return{dateSpan:{range:{start:c,end:n.add(c,a.snapDuration)},allDay:!this.props.tDateProfile.isTimeScale},dayEl:this.cellElRefs.currentMap[i],left:t.lefts[i],right:t.rights[i]}}return null}},mI=class extends Ps{render(){let{props:e}=this,t=[].concat(e.eventResizeSegs,e.dateSelectionSegs);return e.timelineCoords&&Cr("div",{className:"fc-timeline-bg"},this.renderSegs(e.businessHourSegs||[],e.timelineCoords,"non-business"),this.renderSegs(e.bgEventSegs||[],e.timelineCoords,"bg-event"),this.renderSegs(t,e.timelineCoords,"highlight"))}renderSegs(e,t,n){let{todayRange:r,nowDate:a}=this.props,{isRtl:i}=this.context,o=j6t(e,0,t),s=e.map((e,t)=>{let s=lbe(o[t],i);return Cr("div",{key:RA(e.eventRange),className:"fc-timeline-bg-harness",style:s},"bg-event"===n?Cr(HM,Object.assign({seg:e},l2(e,r,a))):PA(n))});return Cr(x0,null,s)}},vI=class extends BM{sliceRange(e,t,n,r,a){let i=eIr(e,r,a),o=[];if(rbe(i.start,r,a)<rbe(i.end,r,a)){let e=um(i,r.normalizedRange);e&&o.push({start:e.start,end:e.end,isStart:e.start.valueOf()===i.start.valueOf()&&kJ(e.start,r,t,n),isEnd:e.end.valueOf()===i.end.valueOf()&&kJ(xg(e.end,-1),r,t,n)})}return o}},dIr=pc({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}),CJ=class extends Ps{render(){let{props:e}=this;return Cr(e3,Object.assign({},e,{elClasses:["fc-timeline-event","fc-h-event"],defaultTimeFormat:dIr,defaultDisplayEventTime:!e.isTimeScale}))}},ibe=class extends Ps{render(){let{props:e,context:t}=this,{hiddenSegs:n,placement:r,resourceId:a}=e,{top:i,hcoords:o}=r,s=o&&null!==i,l=lbe(o,t.isRtl),c=a?{resourceId:a}:{};return Cr(VM,{elRef:e.elRef,elClasses:["fc-timeline-more-link"],elStyle:Object.assign({visibility:s?"":"hidden",top:i||0},l),allDayDate:null,moreCnt:n.length,allSegs:n,hiddenSegs:n,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:c,popoverContent:()=>Cr(x0,null,n.map(t=>{let n=t.eventRange.instance.instanceId;return Cr("div",{key:n,style:{visibility:e.isForcedInvisible[n]?"hidden":""}},Cr(CJ,Object.assign({isTimeScale:e.isTimeScale,seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:n===e.eventSelection},l2(t,e.todayRange,e.nowDate))))}))},e=>Cr(e,{elTag:"div",elClasses:["fc-timeline-more-link-inner","fc-sticky"]}))}},(m7=class extends Ps{constructor(){super(...arguments),this.slicer=new vI,this.sortEventSegs=ps(ZM),this.harnessElRefs=new sf,this.moreElRefs=new sf,this.innerElRef=Q1(),this.state={eventInstanceHeights:{},moreLinkHeights:{}},this.handleResize=e=>{e&&this.updateSize()}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,{dateProfile:a,tDateProfile:i}=e,o=this.slicer.sliceProps(e,a,i.isTimeScale?null:e.nextDayThreshold,n,a,n.dateProfileGenerator,i,n.dateEnv),s=(o.eventDrag?o.eventDrag.segs:null)||(o.eventResize?o.eventResize.segs:null)||[],l=this.sortEventSegs(o.fgEventSegs,r.eventOrder),c=j6t(l,r.eventMinWidth,e.timelineCoords),[u,d]=uIr(l,c,t.eventInstanceHeights,t.moreLinkHeights,r.eventOrderStrict,r.eventMaxStack),p=(o.eventDrag?o.eventDrag.affectedInstances:null)||(o.eventResize?o.eventResize.affectedInstances:null)||{};return Cr(x0,null,Cr(mI,{businessHourSegs:o.businessHourSegs,bgEventSegs:o.bgEventSegs,timelineCoords:e.timelineCoords,eventResizeSegs:o.eventResize?o.eventResize.segs:[],dateSelectionSegs:o.dateSelectionSegs,nowDate:e.nowDate,todayRange:e.todayRange}),Cr("div",{className:"fc-timeline-events fc-scrollgrid-sync-inner",ref:this.innerElRef,style:{height:d}},this.renderFgSegs(u,p,!1,!1,!1),this.renderFgSegs(fIr(s,e.timelineCoords,u),{},!!o.eventDrag,!!o.eventResize,!1)))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){(e.eventStore!==this.props.eventStore||e.timelineCoords!==this.props.timelineCoords||t.moreLinkHeights!==this.state.moreLinkHeights)&&this.updateSize()}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateSize(){let{props:e}=this,{timelineCoords:t}=e,n=this.innerElRef.current;e.onHeightChange&&e.onHeightChange(n,!1),t&&this.setState({eventInstanceHeights:ah(this.harnessElRefs.currentMap,e=>Math.round(e.getBoundingClientRect().height)),moreLinkHeights:ah(this.moreElRefs.currentMap,e=>Math.round(e.getBoundingClientRect().height))},()=>{e.onHeightChange&&e.onHeightChange(n,!0)}),e.syncParentMinHeight&&(n.parentElement.style.minHeight=n.style.height)}renderFgSegs(e,t,n,r,a){let{harnessElRefs:i,moreElRefs:o,props:s,context:l}=this,c=n||r||a;return Cr(x0,null,e.map(e=>{let{seg:u,hcoords:d,top:p}=e;if(Array.isArray(u)){let n=DA(IA(u));return Cr(ibe,{key:"m:"+n,elRef:o.createRef(n),hiddenSegs:u,placement:e,dateProfile:s.dateProfile,nowDate:s.nowDate,todayRange:s.todayRange,isTimeScale:s.tDateProfile.isTimeScale,eventSelection:s.eventSelection,resourceId:s.resourceId,isForcedInvisible:t})}let h=u.eventRange.instance.instanceId,f=c||!(t[h]||!d||null===p),m=lbe(d,l.isRtl);return Cr("div",{key:"e:"+h,ref:c?null:i.createRef(h),className:"fc-timeline-event-harness",style:Object.assign({visibility:f?"":"hidden",top:p||0},m)},Cr(CJ,Object.assign({isTimeScale:s.tDateProfile.isTimeScale,seg:u,isDragging:n,isResizing:r,isDateSelecting:a,isSelected:h===s.eventSelection},l2(u,s.todayRange,s.nowDate))))}))}}).addStateEquality({eventInstanceHeights:Df,moreLinkHeights:Df}),obe=class extends ih{constructor(){super(...arguments),this.slatsRef=Q1(),this.state={coords:null},this.handeEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)},this.handleCoords=e=>{this.setState({coords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,{dateProfile:a,tDateProfile:i}=e,{unit:o,value:s}=Mg(i.slotDuration);return Cr("div",{className:"fc-timeline-body",ref:this.handeEl,style:{minWidth:e.tableMinWidth,height:e.clientHeight,width:e.clientWidth}},Cr(Bh,{unit:o,unitValue:s},(o,s)=>Cr(x0,null,Cr(pI,{ref:this.slatsRef,dateProfile:a,tDateProfile:i,nowDate:o,todayRange:s,clientWidth:e.clientWidth,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,onCoords:this.handleCoords,onScrollLeftRequest:e.onScrollLeftRequest}),Cr(m7,{dateProfile:a,tDateProfile:e.tDateProfile,nowDate:o,todayRange:s,nextDayThreshold:r.nextDayThreshold,businessHours:e.businessHours,eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,timelineCoords:t.coords,syncParentMinHeight:!0}),r.nowIndicator&&t.coords&&t.coords.isDateInRange(o)&&Cr("div",{className:"fc-timeline-now-indicator-container"},Cr(a3,{elClasses:["fc-timeline-now-indicator-line"],elStyle:qJ(t.coords.dateToCoord(o),n.isRtl),isAxis:!1,date:o})))))}queryHit(e,t,n,r){let a=this.slatsRef.current.positionToHit(e);return a?{dateProfile:this.props.dateProfile,dateSpan:a.dateSpan,rect:{left:a.left,right:a.right,top:0,bottom:r},dayEl:a.dayEl,layer:0}:null}},EJ=class extends ih{constructor(){super(...arguments),this.buildTimelineDateProfile=ps(sbe),this.scrollGridRef=Q1(),this.state={slatCoords:null,slotCushionMaxWidth:null},this.handleSlatCoords=e=>{this.setState({slatCoords:e})},this.handleScrollLeftRequest=e=>{this.scrollGridRef.current.forceScrollLeft(0,e)},this.handleMaxCushionWidth=e=>{this.setState({slotCushionMaxWidth:Math.ceil(e)})}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,a=!e.forPrint&&Iy(r),i=!e.forPrint&&KM(r),o=this.buildTimelineDateProfile(e.dateProfile,n.dateEnv,r,n.dateProfileGenerator),{slotMinWidth:s}=r,l=cbe(o,s||this.computeFallbackSlotMinWidth(o)),c=[{type:"header",key:"header",isSticky:a,chunks:[{key:"timeline",content:n=>Cr(hI,{dateProfile:e.dateProfile,clientWidth:n.clientWidth,clientHeight:n.clientHeight,tableMinWidth:n.tableMinWidth,tableColGroupNode:n.tableColGroupNode,tDateProfile:o,slatCoords:t.slatCoords,onMaxCushionWidth:s?null:this.handleMaxCushionWidth})}]},{type:"body",key:"body",liquid:!0,chunks:[{key:"timeline",content:t=>Cr(obe,Object.assign({},e,{clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,tDateProfile:o,onSlatCoords:this.handleSlatCoords,onScrollLeftRequest:this.handleScrollLeftRequest}))}]}];return i&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"timeline",content:Py}]}),Cr(cm,{elClasses:["fc-timeline",!1===r.eventOverlap?"fc-timeline-overlap-disabled":""],viewSpec:n.viewSpec},Cr(u6,{ref:this.scrollGridRef,liquid:!e.isHeightAuto&&!e.forPrint,forPrint:e.forPrint,collapsibleWidth:!1,colGroups:[{cols:l}],sections:c}))}computeFallbackSlotMinWidth(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)}},zg(pIr='.fc .fc-timeline-body{min-height:100%;position:relative;z-index:1}.fc .fc-timeline-slots{bottom:0;position:absolute;top:0;z-index:1}.fc .fc-timeline-slots>table{height:100%}.fc .fc-timeline-slot-minor{border-style:dotted}.fc .fc-timeline-slot-frame{align-items:center;display:flex;justify-content:center}.fc .fc-timeline-header-row-chrono .fc-timeline-slot-frame{justify-content:flex-start}.fc .fc-timeline-header-row:last-child .fc-timeline-slot-frame{overflow:hidden}.fc .fc-timeline-slot-cushion{padding:4px 5px;white-space:nowrap}.fc-direction-ltr .fc-timeline-slot{border-right:0!important}.fc-direction-rtl .fc-timeline-slot{border-left:0!important}.fc .fc-timeline-now-indicator-container{bottom:0;left:0;position:absolute;right:0;top:0;width:0;z-index:4}.fc .fc-timeline-now-indicator-arrow,.fc .fc-timeline-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;pointer-events:none;position:absolute;top:0}.fc .fc-timeline-now-indicator-arrow{border-left-color:transparent;border-right-color:transparent;border-width:6px 5px 0;margin:0 -6px}.fc .fc-timeline-now-indicator-line{border-width:0 0 0 1px;bottom:0;margin:0 -1px}.fc .fc-timeline-events{position:relative;width:0;z-index:3}.fc .fc-timeline-event-harness,.fc .fc-timeline-more-link{position:absolute;top:0}.fc-timeline-event{z-index:1}.fc-timeline-event.fc-event-mirror{z-index:2}.fc-timeline-event{align-items:center;border-radius:0;display:flex;font-size:var(--fc-small-font-size);margin-bottom:1px;padding:2px 1px;position:relative}.fc-timeline-event .fc-event-main{flex-grow:1;flex-shrink:1;min-width:0}.fc-timeline-event .fc-event-time{font-weight:700}.fc-timeline-event .fc-event-time,.fc-timeline-event .fc-event-title{padding:0 2px;white-space:nowrap}.fc-direction-ltr .fc-timeline-event.fc-event-end,.fc-direction-ltr .fc-timeline-more-link{margin-right:1px}.fc-direction-rtl .fc-timeline-event.fc-event-end,.fc-direction-rtl .fc-timeline-more-link{margin-left:1px}.fc-timeline-overlap-disabled .fc-timeline-event{margin-bottom:0;padding-bottom:5px;padding-top:5px}.fc-timeline-event:not(.fc-event-end):after,.fc-timeline-event:not(.fc-event-start):before{border-color:transparent #000;border-style:solid;border-width:5px;content:"";flex-grow:0;flex-shrink:0;height:0;margin:0 1px;opacity:.5;width:0}.fc-direction-ltr .fc-timeline-event:not(.fc-event-start):before,.fc-direction-rtl .fc-timeline-event:not(.fc-event-end):after{border-left:0}.fc-direction-ltr .fc-timeline-event:not(.fc-event-end):after,.fc-direction-rtl .fc-timeline-event:not(.fc-event-start):before{border-right:0}.fc-timeline-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;font-size:var(--fc-small-font-size);padding:1px}.fc-timeline-more-link-inner{display:inline-block;left:0;padding:2px;right:0}.fc .fc-timeline-bg{bottom:0;left:0;position:absolute;right:0;top:0;width:0;z-index:2}.fc .fc-timeline-bg .fc-non-business{z-index:1}.fc .fc-timeline-bg .fc-bg-event{z-index:2}.fc .fc-timeline-bg .fc-highlight{z-index:3}.fc .fc-timeline-bg-harness{bottom:0;position:absolute;top:0}')}),X6t=kr(()=>{Sg(),OJ(),ube(),G6t=Rd({name:"@fullcalendar/timeline",premiumReleaseDate:"2025-12-23",deps:[h7],initialView:"timelineDay",views:{timeline:{component:EJ,usesMinMaxTime:!0,eventResizableFromStart:!0},timelineDay:{type:"timeline",duration:{days:1}},timelineWeek:{type:"timeline",duration:{weeks:1}},timelineMonth:{type:"timeline",duration:{months:1}},timelineYear:{type:"timeline",duration:{years:1}}}})});function RJ(e,t="",n,r){let{refined:a,extra:i}=XM(e,mIr),o={id:a.id||Y6t+Um(),parentId:a.parentId||t,title:a.title||"",businessHours:a.businessHours?SE(a.businessHours,r):null,ui:oz({editable:a.eventEditable,startEditable:a.eventStartEditable,durationEditable:a.eventDurationEditable,constraint:a.eventConstraint,overlap:a.eventOverlap,allow:a.eventAllow,classNames:a.eventClassNames,backgroundColor:a.eventBackgroundColor,borderColor:a.eventBorderColor,textColor:a.eventTextColor,color:a.eventColor},r),extendedProps:Object.assign(Object.assign({},i),a.extendedProps)};if(Object.freeze(o.ui.classNames),Object.freeze(o.extendedProps),!n[o.id]&&(n[o.id]=o,a.children))for(let e of a.children)RJ(e,o.id,n,r);return o}function LJ(e){return 0===e.indexOf(Y6t)?"":e}function vIr(e,t){let n=[];for(let r in e)n.push(new hv(t,e[r]));return n}function Z6t(e,t){let{emitter:n}=t;n.hasHandlers("resourcesSet")&&n.trigger("resourcesSet",vIr(e,t))}function fbe(e){return{resource:new hv(e.context,e.resource)}}function hbe(e,t,n,r,a,i){let o=[];return DJ(gIr(e,r?-1:1,t,n),o,r,[],0,a,i),o}function DJ(e,t,n,r,a,i,o){for(let s=0;s<e.length;s+=1){let l=e[s],c=l.group;if(c)if(n){let e=t.length,s=r.length;if(DJ(l.children,t,n,r.concat(0),a,i,o),e<t.length){let n=t[e];(n.rowSpans=n.rowSpans.slice())[s]=t.length-e}}else{let e=c.spec.field+":"+c.value,s=null!=i[e]?i[e]:o;t.push({id:e,group:c,isExpanded:s}),s&&DJ(l.children,t,n,r,a+1,i,o)}else if(l.resource){let e=l.resource.id,s=null!=i[e]?i[e]:o;t.push({id:e,rowSpans:r,depth:a,isExpanded:s,hasChildren:!!l.children.length,resource:l.resource,resourceFields:l.resourceFields}),s&&DJ(l.children,t,n,r,a+1,i,o)}}}function gIr(e,t,n,r){let a=yIr(e,r),i=[];for(let e in a){let o=a[e];o.resource.parentId||$6t(o,i,n,0,t,r)}return i}function yIr(e,t){let n={};for(let t in e){let r=e[t];n[t]={resource:r,resourceFields:PJ(r),children:[]}}for(let r in e){let a=e[r];if(a.parentId){let e=n[a.parentId];e&&K6t(n[r],e.children,t)}}return n}function $6t(e,t,n,r,a,i){if(n.length&&(-1===a||r<=a)){$6t(e,bIr(e,t,n[0]).children,n.slice(1),r+1,a,i)}else K6t(e,t,i)}function bIr(e,t,n){let r,a,i=e.resourceFields[n.field];if(n.order)for(a=0;a<t.length;a+=1){let e=t[a];if(e.group){let t=RF(i,e.group.value)*n.order;if(0===t){r=e;break}if(t<0)break}}else for(a=0;a<t.length;a+=1){let e=t[a];if(e.group&&i===e.group.value){r=e;break}}return r||(r={group:{value:i,spec:n},children:[]},t.splice(a,0,r)),r}function K6t(e,t,n){let r;for(r=0;r<t.length&&!(DF(t[r].resourceFields,e.resourceFields,n)>0);r+=1);t.splice(r,0,e)}function PJ(e){let t=Object.assign(Object.assign(Object.assign({},e.extendedProps),e.ui),e);return delete t.ui,delete t.extendedProps,t}function pbe(e,t){return e.spec===t.spec&&e.value===t.value}var Y6t,mIr,hv,d6,dbe,IJ=kr(()=>{Hm(),Y6t="_fc:",mIr={id:String,parentId:String,children:da,title:String,businessHours:da,extendedProps:da,eventEditable:Boolean,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventConstraint:da,eventOverlap:Boolean,eventAllow:da,eventClassNames:cE,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String},hv=class e{constructor(e,t){this._context=e,this._resource=t}setProp(e,t){let n=this._resource;this._context.dispatch({type:"SET_RESOURCE_PROP",resourceId:n.id,propName:e,propValue:t}),this.sync(n)}setExtendedProp(e,t){let n=this._resource;this._context.dispatch({type:"SET_RESOURCE_EXTENDED_PROP",resourceId:n.id,propName:e,propValue:t}),this.sync(n)}sync(t){let n=this._context,r=t.id;this._resource=n.getCurrentData().resourceStore[r],n.emitter.trigger("resourceChange",{oldResource:new e(n,t),resource:this,revert(){n.dispatch({type:"ADD_RESOURCE",resourceHash:{[r]:t}})}})}remove(){let e=this._context,t=this._resource,n=t.id;e.dispatch({type:"REMOVE_RESOURCE",resourceId:n}),e.emitter.trigger("resourceRemove",{resource:this,revert(){e.dispatch({type:"ADD_RESOURCE",resourceHash:{[n]:t}})}})}getParent(){let t=this._context,n=this._resource.parentId;return n?new e(t,t.getCurrentData().resourceStore[n]):null}getChildren(){let t=this._resource.id,n=this._context,{resourceStore:r}=n.getCurrentData(),a=[];for(let i in r)r[i].parentId===t&&a.push(new e(n,r[i]));return a}getEvents(){let e=this._resource.id,t=this._context,{defs:n,instances:r}=t.getCurrentData().eventStore,a=[];for(let i in r){let o=r[i],s=n[o.defId];-1!==s.resourceIds.indexOf(e)&&a.push(new eu(t,s,o))}return a}get id(){return LJ(this._resource.id)}get title(){return this._resource.title}get eventConstraint(){return this._resource.ui.constraints[0]||null}get eventOverlap(){return this._resource.ui.overlap}get eventAllow(){return this._resource.ui.allows[0]||null}get eventBackgroundColor(){return this._resource.ui.backgroundColor}get eventBorderColor(){return this._resource.ui.borderColor}get eventTextColor(){return this._resource.ui.textColor}get eventClassNames(){return this._resource.ui.classNames}get extendedProps(){return this._resource.extendedProps}toPlainObject(e={}){let t=this._resource,{ui:n}=t,r=this.id,a={};return r&&(a.id=r),t.title&&(a.title=t.title),e.collapseEventColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?a.eventColor=n.backgroundColor:(n.backgroundColor&&(a.eventBackgroundColor=n.backgroundColor),n.borderColor&&(a.eventBorderColor=n.borderColor)),n.textColor&&(a.eventTextColor=n.textColor),n.classNames.length&&(a.eventClassNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(a,t.extendedProps):a.extendedProps=t.extendedProps),a}toJSON(){return this.toPlainObject()}},d6=class extends TA{getKeyInfo(e){return Object.assign({"":{}},e.resourceStore)}getKeysForDateSpan(e){return[e.resourceId||""]}getKeysForEventDef(e){let t=e.resourceIds;return t.length?t:[""]}},dbe=ZT("id,title")});function MIr(e,t,n){let r=t.dateSpan.resourceId,a=n.dateSpan.resourceId;r&&a&&r!==a&&(e.resourceMutation={matchResourceId:r,setResourceId:a})}function xIr(e,t,n){let r=t.resourceMutation;if(r&&Q6t(e,n)){let t=e.resourceIds.indexOf(r.matchResourceId);if(-1!==t){let n=e.resourceIds.slice();n.splice(t,1),-1===n.indexOf(r.setResourceId)&&n.push(r.setResourceId),e.resourceIds=n}}}function Q6t(e,t){let{resourceEditable:n}=e;if(null==n){let r=e.sourceId&&t.getCurrentData().eventSources[e.sourceId];r&&(n=r.extendedProps.resourceEditable),null==n&&(n=t.options.eventResourceEditable,null==n&&(n=t.options.editable))}return n}function _Ir(e,t){let{resourceMutation:n}=e;if(n){let{calendarApi:e}=t;return{oldResource:e.getResourceById(n.matchResourceId),newResource:e.getResourceById(n.setResourceId)}}return{oldResource:null,newResource:null}}function zIr(e,t,n,r){if(t){let t=wIr(AIr(n.instances,r),n.defs);return Object.assign(t,OIr(t,e)),_g(e,(e,n)=>t[n])}return e}function AIr(e,t){return _g(e,e=>JT(e.range,t))}function wIr(e,t){let n={};for(let r in e){let a=e[r];for(let e of t[a.defId].resourceIds)n[e]=!0}return n}function OIr(e,t){let n={};for(let r in e){let e;for(;(e=t[r])&&(r=e.parentId,r);)n[r]=!0}return n}function TIr(e,t,n,r){if(!e){let e=r.getCurrentData();if(e.viewSpecs[e.currentViewType].optionDefaults.needsResourceData&&Q6t(t,r))return!0}return e}function SIr(e){return ah(e,e=>e.ui)}function kIr(e,t,n){return ah(e,(e,r)=>r?CIr(e,t[r],n):e)}function CIr(e,t,n){let r=[];for(let e of t.resourceIds)n[e]&&r.unshift(n[e]);return r.unshift(e),TE(r)}function ybe(e){gbe.push(e)}function eTt(e){return gbe[e]}function EIr(){return gbe}function DIr(e){let t;if("string"==typeof e?t={url:e}:"function"==typeof e||Array.isArray(e)?t={resources:e}:"object"==typeof e&&e&&(t=e),t){let{refined:n,extra:r}=XM(t,qIr);LIr(r);let a=RIr(n);if(a)return{_raw:e,sourceId:Um(),sourceDefId:a.sourceDefId,meta:a.meta,publicId:n.id||"",isFetching:!1,latestFetchId:"",fetchRange:null}}return null}function RIr(e){let t=EIr();for(let n=t.length-1;n>=0;n-=1){let r=t[n].parseMeta(e);if(r)return{meta:r,sourceDefId:n}}return null}function LIr(e){for(let t in e)console.warn(`Unknown resource prop '${t}'`)}function PIr(e,t,n){let{options:r,dateProfile:a}=n;if(!e||!t)return J6t(r.initialResources||r.resources,a.activeRange,r.refetchResourcesOnNavigate,n);switch(t.type){case"RESET_RESOURCE_SOURCE":return J6t(t.resourceSourceInput,a.activeRange,r.refetchResourcesOnNavigate,n);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return IIr(e,a.activeRange,r.refetchResourcesOnNavigate,n);case"RECEIVE_RESOURCES":case"RECEIVE_RESOURCE_ERROR":return WIr(e,t.fetchId,t.fetchRange);case"REFETCH_RESOURCES":return bbe(e,a.activeRange,n);default:return e}}function J6t(e,t,n,r){if(e){let a=DIr(e);return a=bbe(a,n?t:null,r),a}return null}function IIr(e,t,n,r){return!n||NIr(e)||e.fetchRange&&UF(e.fetchRange,t)?e:bbe(e,t,r)}function NIr(e){return!!eTt(e.sourceDefId).ignoreRange}function bbe(e,t,n){let r=eTt(e.sourceDefId),a=Um();return r.fetch({resourceSource:e,range:t,context:n},e=>{n.dispatch({type:"RECEIVE_RESOURCES",fetchId:a,fetchRange:t,rawResources:e.rawResources})},e=>{n.dispatch({type:"RECEIVE_RESOURCE_ERROR",fetchId:a,fetchRange:t,error:e})}),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:a})}function WIr(e,t,n){return t===e.latestFetchId?Object.assign(Object.assign({},e),{isFetching:!1,fetchRange:n}):e}function FIr(e,t,n,r){if(!e||!t)return{};switch(t.type){case"RECEIVE_RESOURCES":return BIr(e,t.rawResources,t.fetchId,n,r);case"ADD_RESOURCE":return UIr(e,t.resourceHash);case"REMOVE_RESOURCE":return HIr(e,t.resourceId);case"SET_RESOURCE_PROP":return VIr(e,t.resourceId,t.propName,t.propValue);case"SET_RESOURCE_EXTENDED_PROP":return jIr(e,t.resourceId,t.propName,t.propValue);default:return e}}function BIr(e,t,n,r,a){if(r.latestFetchId===n){let e={};for(let n of t)RJ(n,"",e,a);return e}return e}function UIr(e,t){return Object.assign(Object.assign({},e),t)}function HIr(e,t){let n=Object.assign({},e);delete n[t];for(let e in n)n[e].parentId===t&&(n[e]=Object.assign(Object.assign({},n[e]),{parentId:""}));return n}function VIr(e,t,n,r){let a=e[t];return a?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},a),{[n]:r})}):e}function jIr(e,t,n,r){let a=e[t];return a?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},a),{extendedProps:Object.assign(Object.assign({},a.extendedProps),{[n]:r})})}):e}function GIr(e,t){return e&&t?"SET_RESOURCE_ENTITY_EXPANDED"===t.type?Object.assign(Object.assign({},e),{[t.id]:t.isExpanded}):e:{}}function XIr(e,t,n){let r=PIr(e&&e.resourceSource,t,n);return{resourceSource:r,resourceStore:FIr(e&&e.resourceStore,t,r,n),resourceEntityExpansions:GIr(e&&e.resourceEntityExpansions,t)}}function ZIr(e){return{resourceIds:$Ir(e.resourceIds).concat(e.resourceId?[e.resourceId]:[]),resourceEditable:e.resourceEditable}}function $Ir(e){return(e||[]).map(e=>String(e))}function KIr(e,t){let n=e.dateSpan.resourceId,r=t.dateSpan.resourceId;return n&&r?{resourceId:n}:null}function JIr(e,t){return e.resourceId?{resource:t.calendarApi.getResourceById(e.resourceId)}:{}}function QIr(e,t){return e.resourceId?{resource:t.calendarApi.getResourceById(e.resourceId)}:{}}function eNr(e,t){let n=(new d6).splitProps(Object.assign(Object.assign({},e),{resourceStore:t.getCurrentData().resourceStore}));for(let e in n){let r=n[e];if(e&&n[""]&&(r=Object.assign(Object.assign({},r),{eventStore:r8(n[""].eventStore,r.eventStore),eventUiBases:Object.assign(Object.assign({},n[""].eventUiBases),r.eventUiBases)})),!KF(r,t,{resourceId:e},tNr.bind(null,e)))return!1}return!0}function tNr(e,t){return Object.assign(Object.assign({},t),{constraints:rNr(e,t.constraints)})}function rNr(e,t){return t.map(t=>{let n=t.defs;if(n)for(let t in n){let r=n[t].resourceIds;if(r.length&&-1===r.indexOf(e))return!1}return t})}function nNr(e){return e.resourceId?{resourceId:e.resourceId}:{}}function iNr(e,t){t.getCurrentData().resourceSource._raw!==e&&t.dispatch({type:"RESET_RESOURCE_SOURCE",resourceSourceInput:e})}function lNr(e,t,n){let r,a,i,o,{dateEnv:s,options:l}=n,c={};return t&&(r=e.startParam,null==r&&(r=l.startParam),a=e.endParam,null==a&&(a=l.endParam),i=e.timeZoneParam,null==i&&(i=l.timeZoneParam),c[r]=s.formatIso(t.start),c[a]=s.formatIso(t.end),"local"!==s.timeZone&&(c[i]=s.timeZone)),o="function"==typeof e.extraParams?e.extraParams():e.extraParams||{},Object.assign(c,o),c}var mbe,vbe,gbe,qIr,YIr,aNr,oNr,sNr,tTt,Mbe=kr(()=>{Sg(),OJ(),Hm(),IJ(),IJ(),mbe=class{constructor(){this.filterResources=ps(zIr)}transform(e,t){return t.viewSpec.optionDefaults.needsResourceData?{resourceStore:this.filterResources(t.resourceStore,t.options.filterResourcesWithEvents,t.eventStore,t.dateProfile.activeRange),resourceEntityExpansions:t.resourceEntityExpansions}:null}},vbe=class{constructor(){this.buildResourceEventUis=ps(SIr,Df),this.injectResourceEventUis=ps(kIr)}transform(e,t){return t.viewSpec.optionDefaults.needsResourceData?null:{eventUiBases:this.injectResourceEventUis(e.eventUiBases,e.eventStore.defs,this.buildResourceEventUis(t.resourceStore))}}},gbe=[],qIr={id:String,resources:da,url:String,method:String,startParam:String,endParam:String,timeZoneParam:String,extraParams:da},YIr={resourceId:String,resourceIds:da,resourceEditable:Boolean},Bm.prototype.addResource=function(e,t=!0){let n,r,a=this.getCurrentData();e instanceof hv?(r=e._resource,n={[r.id]:r}):(n={},r=RJ(e,"",n,a)),this.dispatch({type:"ADD_RESOURCE",resourceHash:n}),t&&this.trigger("_scrollRequest",{resourceId:r.id});let i=new hv(a,r);return a.emitter.trigger("resourceAdd",{resource:i,revert:()=>{this.dispatch({type:"REMOVE_RESOURCE",resourceId:r.id})}}),i},Bm.prototype.getResourceById=function(e){e=String(e);let t=this.getCurrentData();if(t.resourceStore){let n=t.resourceStore[e];if(n)return new hv(t,n)}return null},Bm.prototype.getResources=function(){let e=this.getCurrentData(),{resourceStore:t}=e,n=[];if(t)for(let r in t)n.push(new hv(e,t[r]));return n},Bm.prototype.getTopLevelResources=function(){let e=this.getCurrentData(),{resourceStore:t}=e,n=[];if(t)for(let r in t)t[r].parentId||n.push(new hv(e,t[r]));return n},Bm.prototype.refetchResources=function(){this.dispatch({type:"REFETCH_RESOURCES"})},aNr={resources:iNr},oNr={initialResources:da,resources:da,eventResourceEditable:Boolean,refetchResourcesOnNavigate:Boolean,resourceOrder:ZT,filterResourcesWithEvents:Boolean,resourceGroupField:String,resourceAreaWidth:da,resourceAreaColumns:da,resourcesInitiallyExpanded:Boolean,datesAboveResources:Boolean,needsResourceData:Boolean,resourceAreaHeaderClassNames:da,resourceAreaHeaderContent:da,resourceAreaHeaderDidMount:da,resourceAreaHeaderWillUnmount:da,resourceGroupLabelClassNames:da,resourceGroupLabelContent:da,resourceGroupLabelDidMount:da,resourceGroupLabelWillUnmount:da,resourceLabelClassNames:da,resourceLabelContent:da,resourceLabelDidMount:da,resourceLabelWillUnmount:da,resourceLaneClassNames:da,resourceLaneContent:da,resourceLaneDidMount:da,resourceLaneWillUnmount:da,resourceGroupLaneClassNames:da,resourceGroupLaneContent:da,resourceGroupLaneDidMount:da,resourceGroupLaneWillUnmount:da},sNr={resourcesSet:da,resourceAdd:da,resourceChange:da,resourceRemove:da},eu.prototype.getResources=function(){let{calendarApi:e}=this._context;return this._def.resourceIds.map(t=>e.getResourceById(t))},eu.prototype.setResources=function(e){let t=[];for(let n of e){let e=null;"string"==typeof n?e=n:"number"==typeof n?e=String(n):n instanceof hv?e=n.id:console.warn("unknown resource type: "+n),e&&t.push(e)}this.mutate({standardProps:{resourceIds:t}})},ybe({ignoreRange:!0,parseMeta:e=>Array.isArray(e.resources)?e.resources:null,fetch(e,t){t({rawResources:e.resourceSource.meta})}}),ybe({parseMeta:e=>"function"==typeof e.resources?e.resources:null,fetch(e,t,n){let r=e.context.dateEnv,a=e.resourceSource.meta,i=e.range?{start:r.toDate(e.range.start),end:r.toDate(e.range.end),startStr:r.formatIso(e.range.start),endStr:r.formatIso(e.range.end),timeZone:r.timeZone}:{};CE(a.bind(null,i),e=>t({rawResources:e}),n)}}),ybe({parseMeta:e=>e.url?{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams}:null,fetch(e,t,n){let r=e.resourceSource.meta,a=lNr(r,e.range,e.context);EE(r.method,r.url,a).then(([e,n])=>{t({rawResources:e,response:n})},n)}}),tTt=Rd({name:"@fullcalendar/resource",premiumReleaseDate:"2025-12-23",deps:[h7],reducers:[XIr],isLoadingFuncs:[e=>e.resourceSource&&e.resourceSource.isFetching],eventRefiners:YIr,eventDefMemberAdders:[ZIr],isDraggableTransformers:[TIr],eventDragMutationMassagers:[MIr],eventDefMutationAppliers:[xIr],dateSelectionTransformers:[KIr],datePointTransforms:[JIr],dateSpanTransforms:[QIr],viewPropsTransformers:[mbe,vbe],isPropsValid:eNr,externalDefTransforms:[nNr],eventDropTransformers:[_Ir],optionChangeHandlers:aNr,optionRefiners:oNr,listenerRefiners:sNr,propSetHandlers:{resourceStore:Z6t}})}),xbe=kr(()=>{IJ()});function nTt({depth:e,hasChildren:t,isExpanded:n,onExpanderClick:r}){let a=[];for(let t=0;t<e;t+=1)a.push(Cr("span",{className:"fc-icon"}));let i=["fc-icon"];return t&&(n?i.push("fc-icon-minus-square"):i.push("fc-icon-plus-square")),a.push(Cr("span",{className:"fc-datagrid-expander"+(t?"":" fc-datagrid-expander-placeholder"),onClick:r},Cr("span",{className:i.join(" ")}))),Cr(x0,{},...a)}function cNr(e){return e.fieldValue||Cr(x0,null," ")}function uNr(e){return{resource:new hv(e.context,e.resource),fieldValue:e.fieldValue,view:e.context.viewApi}}function dNr(e){return e.groupValue||Cr(x0,null," ")}function fNr(e){return e.groupValue||Cr(x0,null," ")}function pNr(e,t){return t.map(t=>e[t.id])}function mNr(e){for(let t of e){let e=t.resource;if(e&&e.businessHours)return!0}return!1}function vNr(e){let t={};for(let n=0;n<e.length;n+=1)t[e[n].id]=n;return t}function gNr(e,t,n=""){return e.map((e,r)=>({className:e.isMain?"fc-main-col":"",width:t[r]||e.width||n}))}function yNr(e){for(let t of e)if(t.group||t.resource&&t.hasChildren)return!0;return!1}function bNr(e){let t=e.resourceAreaColumns||[],n=null;t.length?e.resourceAreaHeaderContent&&(n={headerClassNames:e.resourceAreaHeaderClassNames,headerContent:e.resourceAreaHeaderContent,headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount}):t.push({headerClassNames:e.resourceAreaHeaderClassNames,headerContent:e.resourceAreaHeaderContent,headerDefault:()=>"Resources",headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount});let r=[],a=[],i=[],o=!1;for(let n of t)n.group?a.push(Object.assign(Object.assign({},n),{cellClassNames:n.cellClassNames||e.resourceGroupLabelClassNames,cellContent:n.cellContent||e.resourceGroupLabelContent,cellDidMount:n.cellDidMount||e.resourceGroupLabelDidMount,cellWillUnmount:n.cellWillUnmount||e.resourceGroupLaneWillUnmount})):r.push(n);let s=r[0];if(s.isMain=!0,s.cellClassNames=s.cellClassNames||e.resourceLabelClassNames,s.cellContent=s.cellContent||e.resourceLabelContent,s.cellDidMount=s.cellDidMount||e.resourceLabelDidMount,s.cellWillUnmount=s.cellWillUnmount||e.resourceLabelWillUnmount,a.length)i=a,o=!0;else{let t=e.resourceGroupField;t&&i.push({field:t,labelClassNames:e.resourceGroupLabelClassNames,labelContent:e.resourceGroupLabelContent,labelDidMount:e.resourceGroupLabelDidMount,labelWillUnmount:e.resourceGroupLabelWillUnmount,laneClassNames:e.resourceGroupLaneClassNames,laneContent:e.resourceGroupLaneContent,laneDidMount:e.resourceGroupLaneDidMount,laneWillUnmount:e.resourceGroupLaneWillUnmount})}let l=e.resourceOrder||dbe,c=[];for(let e of l){let t=!1;for(let n of i)if(n.field===e.field){n.order=e.order,t=!0;break}t||c.push(e)}return{superHeaderRendering:n,isVGrouping:o,groupSpecs:i,colSpecs:a.concat(r),orderSpecs:c}}var _be,zbe,NJ,WJ,hNr,Abe,wbe,Obe,Tbe,Sbe,kbe,rTt,Cbe,gI,MNr,aTt=kr(()=>{Hm(),y5(),ube(),xbe(),Mbe(),Kye(),_be=class extends Ps{constructor(){super(...arguments),this.refineRenderProps=wg(uNr),this.onExpanderClick=e=>{let{props:t}=this;t.hasChildren&&this.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:t.resource.id,isExpanded:!t.isExpanded})}}render(){let{props:e,context:t}=this,{colSpec:n}=e,r=this.refineRenderProps({resource:e.resource,fieldValue:e.fieldValue,context:t});return Cr(Uc,{elTag:"td",elClasses:["fc-datagrid-cell","fc-resource"],elAttrs:{role:"gridcell","data-resource-id":e.resource.id},renderProps:r,generatorName:n.isMain?"resourceLabelContent":void 0,customGenerator:n.cellContent,defaultGenerator:cNr,classNameGenerator:n.cellClassNames,didMount:n.cellDidMount,willUnmount:n.cellWillUnmount},t=>Cr("div",{className:"fc-datagrid-cell-frame",style:{height:e.innerHeight}},Cr("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},n.isMain&&Cr(nTt,{depth:e.depth,hasChildren:e.hasChildren,isExpanded:e.isExpanded,onExpanderClick:this.onExpanderClick}),Cr(t,{elTag:"span",elClasses:["fc-datagrid-cell-main"]}))))}},zbe=class extends Ps{render(){let{props:e,context:t}=this,{colSpec:n}=e,r={groupValue:e.fieldValue,view:t.viewApi};return Cr(Uc,{elTag:"td",elClasses:["fc-datagrid-cell","fc-resource-group"],elAttrs:{role:"gridcell",rowSpan:e.rowSpan},renderProps:r,generatorName:"resourceGroupLabelContent",customGenerator:n.cellContent,defaultGenerator:dNr,classNameGenerator:n.cellClassNames,didMount:n.cellDidMount,willUnmount:n.cellWillUnmount},e=>Cr("div",{className:"fc-datagrid-cell-frame fc-datagrid-cell-frame-liquid"},Cr(e,{elTag:"div",elClasses:["fc-datagrid-cell-cushion","fc-sticky"]})))}},(NJ=class extends Ps{render(){let{props:e}=this,{resource:t,rowSpans:n,depth:r}=e,a=PJ(t);return Cr("tr",{role:"row"},e.colSpecs.map((i,o)=>{let s=n[o];if(0===s)return null;null==s&&(s=1);let l=i.field?a[i.field]:t.title||LJ(t.id);return s>1?Cr(zbe,{key:o,colSpec:i,fieldValue:l,rowSpan:s}):Cr(_be,{key:o,colSpec:i,resource:t,fieldValue:l,depth:r,hasChildren:e.hasChildren,isExpanded:e.isExpanded,innerHeight:e.innerHeight})}))}}).addPropsEquality({rowSpans:o2}),(WJ=class extends Ps{constructor(){super(...arguments),this.innerInnerRef=Q1(),this.onExpanderClick=()=>{let{props:e}=this;this.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:e.id,isExpanded:!e.isExpanded})}}render(){let{props:e,context:t}=this,n={groupValue:e.group.value,view:t.viewApi},r=e.group.spec;return Cr("tr",{role:"row"},Cr(Uc,{elTag:"th",elClasses:["fc-datagrid-cell","fc-resource-group",t.theme.getClass("tableCellShaded")],elAttrs:{role:"columnheader",scope:"colgroup",colSpan:e.spreadsheetColCnt},renderProps:n,generatorName:"resourceGroupLabelContent",customGenerator:r.labelContent,defaultGenerator:fNr,classNameGenerator:r.labelClassNames,didMount:r.labelDidMount,willUnmount:r.labelWillUnmount},t=>Cr("div",{className:"fc-datagrid-cell-frame",style:{height:e.innerHeight}},Cr("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:this.innerInnerRef},Cr(nTt,{depth:0,hasChildren:!0,isExpanded:e.isExpanded,onExpanderClick:this.onExpanderClick}),Cr(t,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})))))}}).addPropsEquality({group:pbe}),hNr=20,Abe=class extends Ps{constructor(){super(...arguments),this.resizerElRefs=new sf(this._handleColResizerEl.bind(this)),this.colDraggings={}}render(){let{colSpecs:e,superHeaderRendering:t,rowInnerHeights:n}=this.props,r={view:this.context.viewApi},a=[];if(n=n.slice(),t){let i=n.shift();a.push(Cr("tr",{key:"row-super",role:"row"},Cr(Uc,{elTag:"th",elClasses:["fc-datagrid-cell","fc-datagrid-cell-super"],elAttrs:{role:"columnheader",scope:"colgroup",colSpan:e.length},renderProps:r,generatorName:"resourceAreaHeaderContent",customGenerator:t.headerContent,defaultGenerator:t.headerDefault,classNameGenerator:t.headerClassNames,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},e=>Cr("div",{className:"fc-datagrid-cell-frame",style:{height:i}},Cr(e,{elTag:"div",elClasses:["fc-datagrid-cell-cushion","fc-scrollgrid-sync-inner"]})))))}let i=n.shift();return a.push(Cr("tr",{key:"row",role:"row"},e.map((t,n)=>{let a=n===e.length-1;return Cr(Uc,{key:n,elTag:"th",elClasses:["fc-datagrid-cell"],elAttrs:{role:"columnheader"},renderProps:r,generatorName:"resourceAreaHeaderContent",customGenerator:t.headerContent,defaultGenerator:t.headerDefault,classNameGenerator:t.headerClassNames,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},e=>Cr("div",{className:"fc-datagrid-cell-frame",style:{height:i}},Cr("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},t.isMain&&Cr("span",{className:"fc-datagrid-expander fc-datagrid-expander-placeholder"},Cr("span",{className:"fc-icon"})),Cr(e,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})),!a&&Cr("div",{className:"fc-datagrid-cell-resizer",ref:this.resizerElRefs.createRef(n)})))}))),Cr(x0,null,a)}_handleColResizerEl(e,t){let{colDraggings:n}=this;if(e){let r=this.initColResizing(e,parseInt(t,10));r&&(n[t]=r)}else{let e=n[t];e&&(e.destroy(),delete n[t])}}initColResizing(e,t){let{pluginHooks:n,isRtl:r}=this.context,{onColWidthChange:a}=this.props,i=n.elementDraggingImpl;if(i){let n,o,s=new i(e);return s.emitter.on("dragstart",()=>{o=t3(nh(e,"tr"),"th").map(e=>e.getBoundingClientRect().width),n=o[t]}),s.emitter.on("dragmove",e=>{o[t]=Math.max(n+e.deltaX*(r?-1:1),hNr),a&&a(o.slice())}),s.setAutoScrollEnabled(!1),s}return null}},wbe=class extends Ps{constructor(){super(...arguments),this.refineRenderProps=wg(fbe),this.handleHeightChange=(e,t)=>{this.props.onHeightChange&&this.props.onHeightChange(nh(e,"tr"),t)}}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({resource:e.resource,context:t});return Cr("tr",{ref:e.elRef},Cr(Uc,{elTag:"td",elClasses:["fc-timeline-lane","fc-resource"],elAttrs:{"data-resource-id":e.resource.id},renderProps:r,generatorName:"resourceLaneContent",customGenerator:n.resourceLaneContent,classNameGenerator:n.resourceLaneClassNames,didMount:n.resourceLaneDidMount,willUnmount:n.resourceLaneWillUnmount},t=>Cr("div",{className:"fc-timeline-lane-frame",style:{height:e.innerHeight}},Cr(t,{elTag:"div",elClasses:["fc-timeline-lane-misc"]}),Cr(m7,{dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:e.nextDayThreshold,businessHours:e.businessHours,eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,timelineCoords:e.timelineCoords,onHeightChange:this.handleHeightChange,resourceId:e.resource.id}))))}},Obe=class extends Ps{render(){let{props:e,context:t}=this,{renderHooks:n}=e,r={groupValue:e.groupValue,view:t.viewApi};return Cr("tr",{ref:e.elRef},Cr(Uc,{elTag:"td",elRef:e.elRef,elClasses:["fc-timeline-lane","fc-resource-group",t.theme.getClass("tableCellShaded")],renderProps:r,generatorName:"resourceGroupLaneContent",customGenerator:n.laneContent,classNameGenerator:n.laneClassNames,didMount:n.laneDidMount,willUnmount:n.laneWillUnmount},t=>Cr(t,{elTag:"div",elStyle:{height:e.innerHeight}})))}},Tbe=class extends Ps{render(){let{props:e,context:t}=this,{rowElRefs:n,innerHeights:r}=e;return Cr("tbody",null,e.rowNodes.map((a,i)=>{if(a.group)return Cr(Obe,{key:a.id,elRef:n.createRef(a.id),groupValue:a.group.value,renderHooks:a.group.spec,innerHeight:r[i]||""});if(a.resource){let o=a.resource;return Cr(wbe,Object.assign({key:a.id,elRef:n.createRef(a.id)},e.splitProps[o.id],{resource:o,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:t.options.nextDayThreshold,businessHours:o.businessHours||e.fallbackBusinessHours,innerHeight:r[i]||"",timelineCoords:e.slatCoords,onHeightChange:e.onRowHeightChange}))}return null}))}},Sbe=class extends Ps{constructor(){super(...arguments),this.rootElRef=Q1(),this.rowElRefs=new sf}render(){let{props:e,context:t}=this;return Cr("table",{ref:this.rootElRef,"aria-hidden":!0,className:"fc-scrollgrid-sync-table "+t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},Cr(Tbe,{rowElRefs:this.rowElRefs,rowNodes:e.rowNodes,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,splitProps:e.splitProps,fallbackBusinessHours:e.fallbackBusinessHours,slatCoords:e.slatCoords,innerHeights:e.innerHeights,onRowHeightChange:e.onRowHeightChange}))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}componentWillUnmount(){this.props.onRowCoords&&this.props.onRowCoords(null)}updateCoords(){let{props:e}=this;e.onRowCoords&&null!==e.clientWidth&&this.props.onRowCoords(new B2(this.rootElRef.current,pNr(this.rowElRefs.currentMap,e.rowNodes),!1,!0))}},kbe=class extends ih{constructor(){super(...arguments),this.computeHasResourceBusinessHours=ps(mNr),this.resourceSplitter=new d6,this.bgSlicer=new vI,this.slatsRef=Q1(),this.state={slatCoords:null},this.handleEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)},this.handleRowCoords=e=>{this.rowCoords=e,this.props.onRowCoords&&this.props.onRowCoords(e)}}render(){let{props:e,state:t,context:n}=this,{dateProfile:r,tDateProfile:a}=e,{unit:i,value:o}=Mg(a.slotDuration),s=this.computeHasResourceBusinessHours(e.rowNodes),l=this.resourceSplitter.splitProps(e),c=l[""],u=this.bgSlicer.sliceProps(c,r,a.isTimeScale?null:e.nextDayThreshold,n,r,n.dateProfileGenerator,a,n.dateEnv),d=t.slatCoords&&t.slatCoords.dateProfile===e.dateProfile?t.slatCoords:null;return Cr("div",{ref:this.handleEl,className:["fc-timeline-body",e.expandRows?"fc-timeline-body-expandrows":""].join(" "),style:{minWidth:e.tableMinWidth}},Cr(Bh,{unit:i,unitValue:o},(t,i)=>Cr(x0,null,Cr(pI,{ref:this.slatsRef,dateProfile:r,tDateProfile:a,nowDate:t,todayRange:i,clientWidth:e.clientWidth,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,onCoords:this.handleSlatCoords,onScrollLeftRequest:e.onScrollLeftRequest}),Cr(mI,{businessHourSegs:s?null:u.businessHourSegs,bgEventSegs:u.bgEventSegs,timelineCoords:d,eventResizeSegs:u.eventResize?u.eventResize.segs:[],dateSelectionSegs:u.dateSelectionSegs,nowDate:t,todayRange:i}),Cr(Sbe,{rowNodes:e.rowNodes,dateProfile:r,tDateProfile:e.tDateProfile,nowDate:t,todayRange:i,splitProps:l,fallbackBusinessHours:s?e.businessHours:null,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,innerHeights:e.rowInnerHeights,slatCoords:d,onRowCoords:this.handleRowCoords,onRowHeightChange:e.onRowHeightChange}),n.options.nowIndicator&&d&&d.isDateInRange(t)&&Cr("div",{className:"fc-timeline-now-indicator-container"},Cr(a3,{elClasses:["fc-timeline-now-indicator-line"],elStyle:qJ(d.dateToCoord(t),n.isRtl),isAxis:!1,date:t})))))}queryHit(e,t){let n=this.rowCoords,r=n.topToIndex(t);if(null!=r){let t=this.props.rowNodes[r].resource;if(t){let a=this.slatsRef.current.positionToHit(e);if(a)return{dateProfile:this.props.dateProfile,dateSpan:{range:a.dateSpan.range,allDay:a.dateSpan.allDay,resourceId:t.id},rect:{left:a.left,right:a.right,top:n.tops[r],bottom:n.bottoms[r]},dayEl:a.dayEl,layer:0}}}return null}},rTt=30,Cbe=class extends Ps{constructor(){super(...arguments),this.scrollGridRef=Q1(),this.timeBodyScrollerElRef=Q1(),this.spreadsheetHeaderChunkElRef=Q1(),this.rootElRef=Q1(),this.ensureScrollGridResizeId=0,this.state={resourceAreaWidthOverride:null},this.ensureScrollGridResize=()=>{this.ensureScrollGridResizeId&&clearTimeout(this.ensureScrollGridResizeId),this.ensureScrollGridResizeId=setTimeout(()=>{this.scrollGridRef.current.handleSizing(!1)},c2.SCROLLGRID_RESIZE_INTERVAL+1)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,a=!e.forPrint&&Iy(r),i=!e.forPrint&&KM(r),o=[{type:"header",key:"header",syncRowHeights:!0,isSticky:a,chunks:[{key:"datagrid",elRef:this.spreadsheetHeaderChunkElRef,tableClassName:"fc-datagrid-header",rowContent:e.spreadsheetHeaderRows},{key:"divider",outerContent:Cr("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",content:e.timeHeaderContent}]},{type:"body",key:"body",syncRowHeights:!0,liquid:!0,expandRows:!!r.expandRows,chunks:[{key:"datagrid",tableClassName:"fc-datagrid-body",rowContent:e.spreadsheetBodyRows},{key:"divider",outerContent:Cr("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",scrollerElRef:this.timeBodyScrollerElRef,content:e.timeBodyContent}]}];i&&o.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"datagrid",content:Py},{key:"divider",outerContent:Cr("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",content:Py}]});let s=null!=t.resourceAreaWidthOverride?t.resourceAreaWidthOverride:r.resourceAreaWidth;return Cr(u6,{ref:this.scrollGridRef,elRef:this.rootElRef,liquid:!e.isHeightAuto&&!e.forPrint,forPrint:e.forPrint,collapsibleWidth:!1,colGroups:[{cols:e.spreadsheetCols,width:s},{cols:[]},{cols:e.timeCols}],sections:o})}forceTimeScroll(e){this.scrollGridRef.current.forceScrollLeft(2,e)}forceResourceScroll(e){this.scrollGridRef.current.forceScrollTop(1,e)}getResourceScroll(){return this.timeBodyScrollerElRef.current.scrollTop}componentDidMount(){this.initSpreadsheetResizing()}componentWillUnmount(){this.destroySpreadsheetResizing()}initSpreadsheetResizing(){let{isRtl:e,pluginHooks:t}=this.context,n=t.elementDraggingImpl,r=this.spreadsheetHeaderChunkElRef.current;if(n){let t,a,i=this.rootElRef.current,o=this.spreadsheetResizerDragging=new n(i,".fc-resource-timeline-divider");o.emitter.on("dragstart",()=>{t=r.getBoundingClientRect().width,a=i.getBoundingClientRect().width}),o.emitter.on("dragmove",n=>{let r=t+n.deltaX*(e?-1:1);r=Math.max(r,rTt),r=Math.min(r,a-rTt),this.setState({resourceAreaWidthOverride:r},this.ensureScrollGridResize)}),o.setAutoScrollEnabled(!1)}}destroySpreadsheetResizing(){this.spreadsheetResizerDragging&&this.spreadsheetResizerDragging.destroy()}},(gI=class extends Ps{constructor(e,t){super(e,t),this.processColOptions=ps(bNr),this.buildTimelineDateProfile=ps(sbe),this.hasNesting=ps(yNr),this.buildRowNodes=ps(hbe),this.layoutRef=Q1(),this.rowNodes=[],this.renderedRowNodes=[],this.buildRowIndex=ps(vNr),this.handleSlatCoords=e=>{this.setState({slatCoords:e})},this.handleRowCoords=e=>{this.rowCoords=e,this.scrollResponder.update(!1)},this.handleMaxCushionWidth=e=>{this.setState({slotCushionMaxWidth:Math.ceil(e)})},this.handleScrollLeftRequest=e=>{this.layoutRef.current.forceTimeScroll(e)},this.handleScrollRequest=e=>{let{rowCoords:t}=this,n=this.layoutRef.current,r=e.rowId||e.resourceId;if(t){if(r){let a=this.buildRowIndex(this.renderedRowNodes)[r];if(null!=a){let r=null!=e.fromBottom?t.bottoms[a]-e.fromBottom:t.tops[a];n.forceResourceScroll(r)}}return!0}return null},this.handleColWidthChange=e=>{this.setState({spreadsheetColWidths:e})},this.state={resourceAreaWidth:t.options.resourceAreaWidth,spreadsheetColWidths:[]}}render(){let{props:e,state:t,context:n}=this,{options:r,viewSpec:a}=n,{superHeaderRendering:i,groupSpecs:o,orderSpecs:s,isVGrouping:l,colSpecs:c}=this.processColOptions(n.options),u=this.buildTimelineDateProfile(e.dateProfile,n.dateEnv,r,n.dateProfileGenerator),d=this.rowNodes=this.buildRowNodes(e.resourceStore,o,s,l,e.resourceEntityExpansions,r.resourcesInitiallyExpanded),{slotMinWidth:p}=r,h=cbe(u,p||this.computeFallbackSlotMinWidth(u));return Cr(cm,{elClasses:["fc-resource-timeline",!this.hasNesting(d)&&"fc-resource-timeline-flat","fc-timeline",!1===r.eventOverlap?"fc-timeline-overlap-disabled":"fc-timeline-overlap-enabled"],viewSpec:a},Cr(Cbe,{ref:this.layoutRef,forPrint:e.forPrint,isHeightAuto:e.isHeightAuto,spreadsheetCols:gNr(c,t.spreadsheetColWidths,""),spreadsheetHeaderRows:e=>Cr(Abe,{superHeaderRendering:i,colSpecs:c,onColWidthChange:this.handleColWidthChange,rowInnerHeights:e.rowSyncHeights}),spreadsheetBodyRows:e=>Cr(x0,null,this.renderSpreadsheetRows(d,c,e.rowSyncHeights)),timeCols:h,timeHeaderContent:n=>Cr(hI,{clientWidth:n.clientWidth,clientHeight:n.clientHeight,tableMinWidth:n.tableMinWidth,tableColGroupNode:n.tableColGroupNode,dateProfile:e.dateProfile,tDateProfile:u,slatCoords:t.slatCoords,rowInnerHeights:n.rowSyncHeights,onMaxCushionWidth:p?null:this.handleMaxCushionWidth}),timeBodyContent:t=>Cr(kbe,{dateProfile:e.dateProfile,clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,expandRows:t.expandRows,tDateProfile:u,rowNodes:d,businessHours:e.businessHours,dateSelection:e.dateSelection,eventStore:e.eventStore,eventUiBases:e.eventUiBases,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,resourceStore:e.resourceStore,nextDayThreshold:n.options.nextDayThreshold,rowInnerHeights:t.rowSyncHeights,onSlatCoords:this.handleSlatCoords,onRowCoords:this.handleRowCoords,onScrollLeftRequest:this.handleScrollLeftRequest,onRowHeightChange:t.reportRowHeightChange})}))}renderSpreadsheetRows(e,t,n){return e.map((e,r)=>e.group?Cr(WJ,{key:e.id,id:e.id,spreadsheetColCnt:t.length,isExpanded:e.isExpanded,group:e.group,innerHeight:n[r]||""}):e.resource?Cr(NJ,{key:e.id,colSpecs:t,rowSpans:e.rowSpans,depth:e.depth,isExpanded:e.isExpanded,hasChildren:e.hasChildren,resource:e.resource,innerHeight:n[r]||""}):null)}componentDidMount(){this.renderedRowNodes=this.rowNodes,this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}getSnapshotBeforeUpdate(){return this.props.forPrint?{}:{resourceScroll:this.queryResourceScroll()}}componentDidUpdate(e,t,n){this.renderedRowNodes=this.rowNodes,this.scrollResponder.update(e.dateProfile!==this.props.dateProfile),n.resourceScroll&&this.handleScrollRequest(n.resourceScroll)}componentWillUnmount(){this.scrollResponder.detach()}computeFallbackSlotMinWidth(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)}queryResourceScroll(){let{rowCoords:e,renderedRowNodes:t}=this;if(e){let n=this.layoutRef.current,r=e.bottoms,a=n.getResourceScroll(),i={};for(let e=0;e<r.length;e+=1){let n=t[e],o=r[e]-a;if(o>0){i.rowId=n.id,i.fromBottom=o;break}}return i}return null}}).addStateEquality({spreadsheetColWidths:o2}),zg(MNr=".fc .fc-resource-timeline-divider{cursor:col-resize;width:3px}.fc .fc-resource-group{font-weight:inherit;text-align:inherit}.fc .fc-resource-timeline .fc-resource-group:not([rowspan]){background:var(--fc-neutral-bg-color)}.fc .fc-timeline-lane-frame{position:relative}.fc .fc-timeline-overlap-enabled .fc-timeline-lane-frame .fc-timeline-events{box-sizing:content-box;padding-bottom:10px}.fc-timeline-body-expandrows td.fc-timeline-lane{position:relative}.fc-timeline-body-expandrows .fc-timeline-lane-frame{position:static}.fc-datagrid-cell-frame-liquid{height:100%}.fc-liquid-hack .fc-datagrid-cell-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-datagrid-header .fc-datagrid-cell-frame{align-items:center;display:flex;justify-content:flex-start;position:relative}.fc .fc-datagrid-cell-resizer{bottom:0;cursor:col-resize;position:absolute;top:0;width:5px;z-index:1}.fc .fc-datagrid-cell-cushion{overflow:hidden;padding:8px;white-space:nowrap}.fc .fc-datagrid-expander{cursor:pointer;opacity:.65}.fc .fc-datagrid-expander .fc-icon{display:inline-block;width:1em}.fc .fc-datagrid-expander-placeholder{cursor:auto}.fc .fc-resource-timeline-flat .fc-datagrid-expander-placeholder{display:none}.fc-direction-ltr .fc-datagrid-cell-resizer{right:-3px}.fc-direction-rtl .fc-datagrid-cell-resizer{left:-3px}.fc-direction-ltr .fc-datagrid-expander{margin-right:3px}.fc-direction-rtl .fc-datagrid-expander{margin-left:3px}")}),iTt={};Zs(iTt,{default:()=>xNr});var xNr,oTt=kr(()=>{Sg(),OJ(),X6t(),Mbe(),aTt(),xbe(),xNr=Rd({name:"@fullcalendar/resource-timeline",premiumReleaseDate:"2025-12-23",deps:[h7,tTt,G6t],initialView:"resourceTimelineDay",views:{resourceTimeline:{type:"timeline",component:gI,needsResourceData:!0,resourceAreaWidth:"30%",resourcesInitiallyExpanded:!0,eventResizableFromStart:!0},resourceTimelineDay:{type:"resourceTimeline",duration:{days:1}},resourceTimelineWeek:{type:"resourceTimeline",duration:{weeks:1}},resourceTimelineMonth:{type:"resourceTimeline",duration:{months:1}},resourceTimelineYear:{type:"resourceTimeline",duration:{years:1}}}})}),sTt={};async function Ebe(e,t,n){let r=iM.activeDocument??e.ownerDocument,a=(iM.activeDocument??e.ownerDocument).body,[i,o,s,l,c,u,d]=await Promise.all([Promise.resolve().then(()=>(Sg(),Xwe)),Promise.resolve().then(()=>(h6t(),f6t)),Promise.resolve().then(()=>(v6t(),m6t)),Promise.resolve().then(()=>(z6t(),_6t)),Promise.resolve().then(()=>(q6t(),E6t)),Promise.resolve().then(()=>(zae(),$we)),Promise.resolve().then(()=>(L6t(),R6t))]),p=!!n?.enableAdvancedCategorization,h=p?await Promise.resolve().then(()=>(oTt(),iTt)):null,f=()=>{let t=e.getBoundingClientRect().width||e.clientWidth;return t>0?t:window.innerWidth},m=f()<500,g=n?.forceNarrow||m;Q5e(s.default||s,n?.timeZone);let{eventClick:y,select:b,modifyEvent:v,eventMouseEnter:M,openContextMenuForEvent:x,toggleTask:z,getRecurringInstanceState:_,dateRightClick:A,viewRightClick:O,eventDragStop:w,customButtons:k,resources:T,onViewChange:S,businessHours:C,drop:E,onSearchQueryChange:q,initialSearchQuery:D,onEventsSet:R}=n||{},L=y&&(e=>{if(!e.event.extendedProps.isShadow)return y(e)}),I=v&&(({event:e,oldEvent:t,revert:n,newResource:r})=>{(async()=>{await v(e,t,r?.id)||n()})()}),W=e=>{let t=e=>e.split(" ").map(e=>e.split(",").filter(e=>(e=>!(!["prev","next","prevYear","nextYear","today","title"].includes(e)&&!["views","search","navigate","more"].includes(e))||("timeline"===e?p:!(!k||!k[e])))(e)).join(",")).filter(e=>e.length>0).join(" ");if(!!n?.forceNarrow||e<500)return{mode:"narrow",headerToolbar:!1,footerToolbar:{left:t("prev,today,next search"),right:t("views,more")}};if(e<910)return{mode:"compact-desktop",headerToolbar:{left:t("prev,today,next search"),center:"title",right:t("analysis more")},footerToolbar:!1};let r=["views",p?"timeline":null].filter(Boolean).join(",");return{mode:"desktop",headerToolbar:{left:t("workspace prev,today,navigate,next search"),center:"title",right:t(`analysis ${r}`)},footerToolbar:!1}},N=W(f()),P=N.mode,B=e=>{let t=n?.timeGridDayHeaderFormat||"day-mmdd",r=new Intl.DateTimeFormat(void 0,{weekday:"short"}).format(e),a=e.getDate(),i=e.getMonth()+1,o=String(a).padStart(2,"0"),s=String(i).padStart(2,"0"),l=String(e.getFullYear());switch(t){case"ddmm-day":return`${a}/${i} ${r}`;case"mmdd-day":return`${i}/${a} ${r}`;case"day-ddmm":return`${r} ${a}/${i}`;case"ddmmyyyy-day":return`${o}/${s}/${l} ${r}`;case"mmddyyyy-day":return`${s}/${o}/${l} ${r}`;default:return`${r} ${i}/${a}`}},F={timeGridWeek:{type:"timeGrid",duration:{weeks:1},buttonText:"week",dayHeaderContent:e=>B(e.date)},timeGridDay:{type:"timeGrid",duration:{days:1},buttonText:g?"1":"day",dayHeaderContent:e=>B(e.date)},timeGrid3Days:{type:"timeGrid",duration:{days:3},buttonText:"3",dayHeaderContent:e=>B(e.date)}};p&&(F.resourceTimelineDay={type:"resourceTimeline",duration:{days:1},buttonText:"Timeline day"},F.resourceTimelineWeek={type:"resourceTimeline",duration:{weeks:1},buttonText:"Timeline week",slotMinWidth:100});let j={...k},U=null,V=(e,t)=>{let n="narrow"===t?{dayGridMonth:"Month",timeGrid3Days:"3 Days",timeGridDay:"Day",listWeek:"List"}:{dayGridMonth:"Month",timeGridWeek:"Week",timeGridDay:"Day",listWeek:"List"};for(let[t,r]of Object.entries(n))e.addItem(e=>e.setTitle(r).onClick(()=>{ce.changeView(t)}))};j.views={text:"View ▾",click:e=>{let t=new iM.Menu;V(t,P),t.showAtMouseEvent(e)}},j.search={text:"⌕",click:()=>{let t=e.querySelector(".ofc-toolbar-search-input"),n=e.querySelector(".ofc-toolbar-search-input-wrap");!t||!n||(n.setCssProps({width:"180px"}),t.focus(),t.select())}},j.navigate={text:"▾",click:e=>{U?.showNavigationMenu(e)}},j.more={text:"More ▾",click:e=>{let t=new iM.Menu;k?.workspace&&t.addItem(t=>{t.setTitle("Workspace").onClick(()=>{k.workspace.click(e)})}),t.addItem(t=>{t.setTitle("Go to date").onClick(()=>{U?.showNavigationMenu(e)})}),"compact-desktop"===P&&(t.addSeparator(),V(t,P)),p&&(t.addSeparator(),t.addItem(e=>e.setTitle("Timeline week").onClick(()=>{ce.changeView("resourceTimelineWeek")})),t.addItem(e=>e.setTitle("Timeline day").onClick(()=>{ce.changeView("resourceTimelineDay")}))),t.showAtMouseEvent(e)}},p&&(j.timeline={text:"Timeline ▾",click:e=>{let t=new iM.Menu;t.addItem(e=>e.setTitle("Timeline week").onClick(()=>{ce.changeView("resourceTimelineWeek")})),t.addItem(e=>e.setTitle("Timeline day").onClick(()=>{ce.changeView("resourceTimelineDay")})),t.showAtMouseEvent(e)}});let H=i.Calendar,X=l.default,G=c.default,Y=o.default,Z=s.default,$=u.default,J=d.default,Q=h?h.default:null,K=new Set,ee=e=>{let t=e instanceof Node&&e.instanceOf(Element)?e:null;return!!t&&!!t.closest('input, textarea, select, [contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"], .cm-content, .cm-editor, .markdown-source-view, .markdown-preview-view')},te=(t,n)=>{let r=CSS.escape(t);e.querySelectorAll(`[data-event-id="${r}"]`).forEach(e=>{e.toggleClass("ofc-event-current-or-next",n),e.closest(".fc-timegrid-event-harness, .fc-daygrid-event-harness, .fc-timeline-event-harness")?.toggleClass("ofc-event-current-or-next-harness",n)})},ne=()=>{let e=(e=>{let t=new Set;if(!n?.highlightCurrentOrNextEvent)return t;let r=Date.now(),a=null,i=Number.POSITIVE_INFINITY,o=null,s=Number.POSITIVE_INFINITY;for(let t of e){if(t.extendedProps?.isShadow||!t.start||t.allDay)continue;let e=t.start.getTime(),n=t.end?.getTime()??e,l=n<=e?e+1:n;e<=r&&r<l?l<i&&(a=t,i=l):e>r&&e<s&&(o=t,s=e)}let l=a??o;return l?.id&&t.add(l.id),t})(ce.getEvents());for(let t of K)e.has(t)||te(t,!1);for(let t of e)te(t,!0);K=e},re=[],ae=[],ie=null,oe=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,se=(e,t,n)=>{if(e.querySelector(".ofc-weather-panel"))return;let r="F"===Qe.getSettings()?.weatherUnit?"F":"C",a=(e.querySelector(".fc-scrollgrid-sync-inner")||e).createDiv({cls:"ofc-weather-panel"}),i=a.createDiv({cls:"ofc-weather-emoji-temp"});i.createSpan({cls:"ofc-weather-emoji"}).setText(n.emoji),i.createSpan({cls:"ofc-weather-temp"}).setText(pA(n.minTemp,n.maxTemp,r)),a.createDiv({cls:"ofc-weather-desc"}).setText(n.desc),a.setCssProps({cursor:"pointer"}),a.addEventListener("click",r=>{r.stopPropagation();let a=(e?.ownerDocument||iM.activeDocument)?.defaultView?.app||window.app;a&&new g5(a,t,n).open()})},le=(e,t,n)=>{let r=e.querySelector(".fc-daygrid-day-top");if(!r||r.querySelector(".ofc-weather-month-emoji"))return;let a=r.createSpan({cls:"ofc-weather-month-emoji"});a.setText(n.emoji),a.setCssProps({cursor:"pointer"}),a.addEventListener("click",r=>{r.stopPropagation();let a=(e?.ownerDocument||iM.activeDocument)?.defaultView?.app||window.app;a&&new g5(a,t,n).open()}),a.addEventListener("mousedown",e=>{e.stopPropagation()}),a.addEventListener("pointerdown",e=>{e.stopPropagation()})},ce=new H(e,{dayHeaderDidMount:e=>{e.view.type.startsWith("timeGrid")&&((e,t)=>{let n=e.querySelector(".fc-col-header-cell-cushion");!n||"true"===n.dataset.ofcDailyNoteBound||(n.dataset.ofcDailyNoteBound="true",n.setCssProps({cursor:"pointer"}),n.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),l6t(Qe.getPlugin().app,t)}))})(e.el,e.date);let t=Qe.getSettings();if(n?.weatherHide||t.weatherHide)return;if(null===t.weatherLatitude||null===t.weatherLongitude){let t=0===re.length;return re.push({dateStr:oe(e.date),el:e.el}),void((e,t)=>{if(e.querySelector(".ofc-weather-panel"))return;let n=(e.querySelector(".fc-scrollgrid-sync-inner")||e).createDiv({cls:"ofc-weather-panel is-unconfigured"}),r=n.createDiv({cls:"ofc-weather-emoji-temp"});r.createSpan({cls:"ofc-weather-emoji"}).setText("🌤️❓"),t?(r.createSpan({cls:"ofc-weather-temp"}).setText("Configure"),n.createDiv({cls:"ofc-weather-desc"}).setText("Set weather location")):(r.createSpan({cls:"ofc-weather-temp"}).setText("Setup"),n.createDiv({cls:"ofc-weather-desc"}).setText("Click to configure")),n.setCssProps({cursor:"pointer"}),n.addEventListener("click",t=>{t.stopPropagation();let n=(e?.ownerDocument||iM.activeDocument)?.defaultView?.app||window.app;n&&n.setting&&(n.setting.open(),n.setting.openTabById("full-calendar-remastered"))})})(e.el,t)}let r=oe(e.date);ie&&ie[r]?se(e.el,r,ie[r]):re.push({dateStr:r,el:e.el})},dayCellDidMount:e=>{let t=Qe.getSettings();if(n?.weatherHide||t.weatherHide||null===t.weatherLatitude||null===t.weatherLongitude)return;let r=oe(e.date);ie&&ie[r]?le(e.el,r,ie[r]):ae.push({dateStr:r,el:e.el})},datesSet:e=>{(async e=>{let t=Qe.getSettings();if(n?.weatherHide||t.weatherHide)return re=[],void(ae=[]);if(null===t.weatherLatitude||null===t.weatherLongitude)return re=[],void(ae=[]);let r=t.weatherLatitude??50.088,a=t.weatherLongitude??14.4208;if(!e)return;let i=e.activeStart,o=new Date(e.activeEnd.getTime()-864e5),s=new Date,l=new Date(s.getTime()-2592e5),c=new Date(s.getTime()+12096e5),u=i<l?l:i,d=o>c?c:o;if(u>d)return;let p=oe(u),h=oe(d),f=await NC(r,a,p,h);f&&(ie=f,re.forEach(({dateStr:e,el:t})=>{f[e]&&se(t,e,f[e])}),re=[],ae.forEach(({dateStr:e,el:t})=>{f[e]&&le(t,e,f[e])}),ae=[])})(e.view)},...p&&Q?{schedulerLicenseKey:"GPL-My-Project-Is-Open-Source"}:{},customButtons:j,timeZone:n?.timeZone,height:n?.height,plugins:[X,G,Y,...p&&Q?[Q]:[],$,Z,J],initialView:n?.initialView?.[g?"mobile":"desktop"]||(g?"timeGrid3Days":"timeGridWeek"),nowIndicator:!0,scrollTimeReset:!1,dayMaxEvents:void 0===n?.dayMaxEvents||n.dayMaxEvents,headerToolbar:void 0!==n?.headerToolbar?n.headerToolbar:N.headerToolbar,footerToolbar:void 0!==n?.footerToolbar?n.footerToolbar:N.footerToolbar,views:F,...p&&{resourceAreaHeaderContent:"Categories",resources:T,resourcesInitiallyExpanded:!1},...C&&{businessHours:C},eventAllow:(e,t)=>!e.resource?.extendedProps?.isParent,windowResize:()=>{let e=W(f());e.mode!==P&&(P=e.mode,!1!==n?.headerToolbar&&ce.setOption("headerToolbar",e.headerToolbar),!1!==n?.footerToolbar&&ce.setOption("footerToolbar",e.footerToolbar))},firstDay:n?.firstDay,...void 0!==n?.slotMinTime&&{slotMinTime:n.slotMinTime},...void 0!==n?.slotMaxTime&&{slotMaxTime:n.slotMaxTime},...void 0!==n?.slotDuration&&{slotDuration:n.slotDuration},...void 0!==n?.slotLabelInterval&&{slotLabelInterval:n.slotLabelInterval},...void 0!==n?.allDaySlot&&{allDaySlot:n.allDaySlot},...void 0!==n?.weekends&&{weekends:n.weekends},...void 0!==n?.hiddenDays&&{hiddenDays:n.hiddenDays},...n?.timeFormat24h&&{eventTimeFormat:{hour:"numeric",minute:"2-digit",hour12:!1},slotLabelFormat:{hour:"numeric",minute:"2-digit",hour12:!1}},eventSources:t,eventClick:L,selectable:b&&!0,selectMirror:b&&!0,select:b&&(e=>{(async()=>{await b(e.start,e.end,e.allDay,e.view.type),e.view.calendar.unselect()})()}),dateClick:e=>{2===e.jsEvent.button&&A&&(e.jsEvent.preventDefault(),A(e.date,e.jsEvent))},editable:v&&!0,fixedMirrorParent:a,eventDragStop:w&&(e=>{w(e.event,e.jsEvent)}),eventDrop:I,eventResize:I,eventMouseEnter:M,eventDidMount:({event:t,el:n,textColor:r})=>{if(t.extendedProps.isShadow)return void n.addClass("fc-event-shadow");n.setAttribute("data-event-id",t.id),n.toggleClass("ofc-event-current-or-next",K.has(t.id));let a=t.backgroundColor||t.borderColor||"";if(a&&n.style.setProperty("--event-color",a),n.addEventListener("contextmenu",e=>{e.preventDefault(),x&&x(t,e)}),z&&t.extendedProps.isTask){let a=e.ownerDocument.createElement("input");a.type="checkbox",a.checked=!!t.extendedProps.taskCompleted;let i=e=>{let t=e?.completed??a.checked,r=e?.skipped??!1;a.checked=t,n.toggleClass("ofc-task-completed",t),n.toggleClass("ofc-task-skipped",r)};a.onclick=async e=>{e.stopPropagation(),e.target&&(await z(t,e.target.checked)||(e.target.checked=!e.target.checked))},_&&(async()=>{let e=await _(t);e&&i(e)})(),"black"===r?a.addClass("ofc-checkbox-black"):a.addClass("ofc-checkbox-white"),a.checked&&n.addClass("ofc-task-completed");let o=n.querySelector(".fc-event-time")||n.querySelector(".fc-event-title")||n.querySelector(".fc-list-event-title");o?.addClass("ofc-has-checkbox"),o?.prepend(a)}},viewDidMount:()=>{S?.(),ne(),window.requestAnimationFrame(()=>me())},eventsSet:()=>{ne(),R?.()},droppable:E&&!0,drop:E&&(e=>{let t=e.draggedEl.getAttribute("data-task-id");t&&E(t,e.date,e.allDay)}),longPressDelay:250}),ue=new ResizeObserver(()=>{let e=W(f());e.mode!==P&&(P=e.mode,!1!==n?.headerToolbar&&ce.setOption("headerToolbar",e.headerToolbar),!1!==n?.footerToolbar&&ce.setOption("footerToolbar",e.footerToolbar),window.requestAnimationFrame(()=>me())),ce.updateSize()});ue.observe(e);let de=D||"",pe=!!de,he=null,fe=()=>{null!==he&&window.clearTimeout(he),he=window.setTimeout(()=>{q?.(de)},80)},me=()=>{let t=e.querySelector(".fc-search-button");if(!t)return;let n=Array.from(e.querySelectorAll(".ofc-toolbar-search-input-wrap")),r=t.nextElementSibling,a=r instanceof HTMLElement&&r.classList.contains("ofc-toolbar-search-input-wrap")?r:null;for(let e of n)a&&e===a||e.remove();if("true"===t.dataset.ofcSearchBound&&a)return a.setCssProps({width:pe||de?"180px":"0px"}),void a.toggleClass("is-active-query",!!de);t.dataset.ofcSearchBound="true",t.type="button",t.ariaLabel="Search events",t.toggleClass("clickable-icon",!0),t.parentElement?.toggleClass("ofc-toolbar-search-host",!0);let i=a||(()=>{let n=e.ownerDocument.createElement("div");n.className="ofc-toolbar-search-input-wrap",n.setCssProps({width:pe||de?"180px":"0px"});let r=e.ownerDocument.createElement("input");r.className="ofc-toolbar-search-input",r.type="text",r.placeholder="Search events...",r.value=de,r.ariaLabel="Search events";let a=e.ownerDocument.createElement("button");return a.className="clickable-icon ofc-toolbar-search-clear",a.type="button",a.ariaLabel="Clear search",a.textContent="×",a.setCssProps({display:de?"inline-flex":"none"}),n.appendChild(r),n.appendChild(a),t.insertAdjacentElement("afterend",n),n})(),o=i.querySelector(".ofc-toolbar-search-input"),s=i.querySelector(".ofc-toolbar-search-clear");if(!o||!s)return;o.value=de;let l=()=>{i.setCssProps({width:pe||de?"180px":"0px"}),s.setCssProps({display:de?"inline-flex":"none"}),t.toggleClass("is-active",pe||!!de),i.toggleClass("is-active-query",!!de)};t.addEventListener("click",()=>{pe=!0,l(),o.focus(),o.select()}),o.addEventListener("input",()=>{de=o.value,l(),fe()}),o.addEventListener("blur",()=>{de||(pe=!1,l())}),o.addEventListener("keydown",e=>{"Escape"===e.key&&(de?(de="",o.value="",fe()):pe=!1,l(),o.blur())}),s.addEventListener("mousedown",e=>{e.preventDefault(),de="",o.value="",fe(),l(),o.focus()}),l()};ce.render(),me(),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0");let ge=t=>{ee(t.target)||e.focus({preventScroll:!0})},ye=e=>{if(!(e.defaultPrevented||"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey||ee(e.target)||ee(r.activeElement))){if(e.preventDefault(),"ArrowLeft"===e.key)return void ce.prev();ce.next()}},be=null,ve=null,Me=!1,xe=e=>{if(1!==e.touches.length||ee(e.target))return void(Me=!1);let t=e.touches[0];be=t.clientX,ve=t.clientY,Me=!0},ze=e=>{if(!Me||null===be||null===ve||!e.changedTouches[0])return;let t=e.changedTouches[0],n=t.clientX-be,r=t.clientY-ve;if(be=null,ve=null,Me=!1,!(Math.abs(n)<60||Math.abs(n)<1.2*Math.abs(r))){if(n<0)return void ce.next();ce.prev()}};e.addEventListener("pointerdown",ge),e.addEventListener("keydown",ye),e.addEventListener("touchstart",xe,{passive:!0}),e.addEventListener("touchend",ze,{passive:!0}),ne();let _e=window.setInterval(ne,6e4),Ae=()=>{"visible"===r.visibilityState&&ne()};r.addEventListener("visibilitychange",Ae);let Oe=ce.destroy.bind(ce);ce.destroy=()=>{ue.disconnect(),e.removeEventListener("pointerdown",ge),e.removeEventListener("keydown",ye),e.removeEventListener("touchstart",xe),e.removeEventListener("touchend",ze),window.clearInterval(_e),r.removeEventListener("visibilitychange",Ae),Oe()},U=C8(ce,e);let we=e.querySelector(".fc-navigate-button");return we&&we.addEventListener("click",e=>{U.showNavigationMenu(e)}),O&&e.addEventListener("contextmenu",e=>{e.defaultPrevented||(e.preventDefault(),O(e,ce))}),ce}Zs(sTt,{renderCalendar:()=>Ebe});var iM,qbe=kr(()=>{iM=require("obsidian"),Toe(),rE(),Wo(),WC(),Mye(),c6t()}),FJ={};function _Nr(e,t){let n,r=!1;return function(...a){if(!r){r=!0,window.setTimeout(()=>r=!1,t);let i=e.apply(this,a);return n=i,i}return n}}Zs(FJ,{CalendarView:()=>Dbe,FULL_CALENDAR_SIDEBAR_VIEW_TYPE:()=>uTt,FULL_CALENDAR_VIEW_TYPE:()=>cTt,getCalendarColors:()=>hJ});var lTt,cTt,uTt,Dbe,yI=kr(()=>{Fc(),Wo(),lTt=require("obsidian"),qke(),Rke(),Gb(),Zo(),BJ(),Toe(),Ike(),Soe(),Nke(),koe(),e6t(),bye(),i6t(),cTt="full-calendar-view",uTt="full-calendar-sidebar-view",Dbe=class extends lTt.ItemView{constructor(e,t,n=!1){super(e),this.fullCalendarView=null,this.callback=null,this.viewEnhancer=null,this.dateNavigation=null,this.plugin=t,this.inSidebar=n,this.zoomHandler=new PU(this),this.searchHandler=new IU(this),this.timelineHandler=new q8(this),this.uiHandler=new dJ(this),this.interactionHandler=new d7(this),this.throttledZoom=_Nr(e=>this.zoomHandler.handleWheelZoom(e),100)}async refreshView(){await this.onOpen()}getIcon(){return"calendar-glyph"}getViewType(){return this.inSidebar?uTt:cTt}getDisplayText(){return this.inSidebar?"Full Calendar":"Calendar"}refreshEventSourcesFromCache(){if(!this.viewEnhancer||!this.fullCalendarView)return;let e=this.fullCalendarView;this.viewEnhancer.updateSettings(Qe.getSettings());let t=Qe.getCache().getAllEvents(),{sources:n}=this.viewEnhancer.getEnhancedData(t);e.removeAllEventSources(),n.forEach(t=>e.addEventSource(t));let r=e.view?.type;r&&r.includes("resourceTimeline")&&this.timelineHandler.addShadowEventsToView(),this.searchHandler.clearCaches(),this.searchHandler.scheduleApplyFilter()}onOpen(){return(async()=>{if(!Qe.getCache())return void Na(Ce("ui.view.errors.cacheNotLoaded"));Qe.getCache().initialized||await Qe.getCache().populate(),this.viewEnhancer=new b5(Qe.getSettings()),await this.viewEnhancer.loadBasesFilter();let e=this.contentEl;e.empty();let t=e.createDiv({cls:"ofc-calendar-shell"}).createDiv();if(this.registerDomEvent(t,"wheel",e=>{this.throttledZoom(e)},{passive:!1}),0===Qe.getSettings().calendarSources.filter(e=>"FOR_TEST_ONLY"!==e.type).length)return void Dke(this.plugin,t);let n=Qe.getCache().getAllEvents(),{sources:r,config:a}=this.viewEnhancer.getEnhancedData(n);this.fullCalendarView&&(this.fullCalendarView.destroy(),this.fullCalendarView=null),this.searchHandler.clearCaches();let{renderCalendar:i}=await Promise.resolve().then(()=>(qbe(),sTt)),o="";if(this.fullCalendarView=await i(t,r,{timeZone:a.displayTimezone||Qe.getSettings().displayTimezone||Intl.DateTimeFormat().resolvedOptions().timeZone,forceNarrow:this.inSidebar,enableAdvancedCategorization:void 0!==a.enableAdvancedCategorization?a.enableAdvancedCategorization:Qe.getSettings().enableAdvancedCategorization,onViewChange:()=>{let e=this.fullCalendarView?.view?.type||"",t=o.includes("resourceTimeline"),n=e.includes("resourceTimeline");if(t!==n)if(n){if(!this.timelineHandler.timelineResources){let e=this.timelineHandler.buildTimelineResources();this.fullCalendarView?.setOption("resources",e),this.fullCalendarView?.setOption("resourcesInitiallyExpanded",!1)}this.timelineHandler.addShadowEventsToView()}else this.timelineHandler.removeShadowEventsFromView();this.zoomHandler.applyZoomForView(e),o=e},initialView:a.initialView,businessHours:(()=>{let e=a.businessHours||Qe.getSettings().businessHours;return!!e.enabled&&{daysOfWeek:e.daysOfWeek,startTime:e.startTime,endTime:e.endTime}})(),firstDay:a.firstDay,timeFormat24h:a.timeFormat24h,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,allDaySlot:a.allDaySlot,timeGridDayHeaderFormat:a.timeGridDayHeaderFormat,weekends:a.weekends,hiddenDays:a.hiddenDays,dayMaxEvents:a.dayMaxEvents,highlightCurrentOrNextEvent:void 0!==a.highlightCurrentOrNextEvent?a.highlightCurrentOrNextEvent:Qe.getSettings().highlightCurrentOrNextEvent,slotDuration:a.slotDuration,slotLabelInterval:a.slotLabelInterval,headerToolbar:a.headerToolbar,footerToolbar:a.footerToolbar,height:a.height,weatherHide:void 0!==a.weatherHide?a.weatherHide:Qe.getSettings().weatherHide,initialSearchQuery:this.searchHandler.eventSearchQuery,onSearchQueryChange:e=>{this.searchHandler.eventSearchQuery=e,this.searchHandler.scheduleApplyFilter()},onEventsSet:()=>{this.searchHandler.clearCaches(),this.searchHandler.scheduleApplyFilter()},customButtons:{workspace:{text:this.uiHandler.getWorkspaceSwitcherText(),click:e=>{e&&this.uiHandler.showWorkspaceSwitcher(e)}},analysis:{text:Ce("ui.view.buttons.analysis"),click:()=>this.uiHandler.activateChronoAnalyser()}},eventClick:e=>{this.interactionHandler.handleEventClick(e)},select:(e,t,n,r)=>this.interactionHandler.handleSelect(e,t,n,r),modifyEvent:(e,t,n)=>this.interactionHandler.handleModifyEvent(e,t,n),eventMouseEnter:e=>{try{let n=Qe.getCache().store.getEventDetails(e.event.id)?.location;n&&this.app.workspace.trigger("hover-link",{event:e.jsEvent,source:UW,hoverParent:t,targetEl:e.jsEvent.target,linktext:n.path,sourcePath:n.path})}catch{}},openContextMenuForEvent:async(e,t)=>{await Pke(this.plugin,e,t)},toggleTask:(e,t)=>this.interactionHandler.handleToggleTask(e,t),getRecurringInstanceState:e=>this.interactionHandler.getRecurringTaskInstanceState(e),dateRightClick:(e,n)=>{!this.dateNavigation&&this.fullCalendarView&&(this.dateNavigation=C8(this.fullCalendarView,t)),this.dateNavigation?.showDateContextMenu(n,e)},viewRightClick:(e,n)=>{!this.dateNavigation&&this.fullCalendarView&&(this.dateNavigation=C8(this.fullCalendarView,t)),this.dateNavigation?.showViewContextMenu(e,n)},eventDragStop:(e,t)=>{this.interactionHandler.handleEventDragStop(e,t)},drop:(e,t,n)=>this.interactionHandler.handleDrop(e,t,n)}),o=this.fullCalendarView?.view?.type||"",o.includes("resourceTimeline")){if(!this.timelineHandler.timelineResources){let e=this.timelineHandler.buildTimelineResources();this.fullCalendarView?.setOption("resources",e),this.fullCalendarView?.setOption("resourcesInitiallyExpanded",!1)}this.timelineHandler.addShadowEventsToView()}this.searchHandler.scheduleApplyFilter(),Qe.getInternalAPI().registerView(this),this.fullCalendarView&&!this.dateNavigation&&(this.dateNavigation=C8(this.fullCalendarView,t)),this.registerDomEvent(this.containerEl,"mouseenter",()=>{Qe.getProviderRegistry().revalidateRemoteCalendars()}),this.callback&&(Qe.getCache().off("update",this.callback),this.callback=null),this.callback=Qe.getCache().on("update",e=>{if(!this.viewEnhancer||!this.fullCalendarView)return;if("resync"===e.type)return void this.onOpen();this.viewEnhancer.updateSettings(Qe.getSettings());let t=Qe.getCache().getAllEvents(),{sources:n}=this.viewEnhancer.getEnhancedData(t);this.fullCalendarView&&window.requestAnimationFrame(()=>{if(this.fullCalendarView){let t=this.fullCalendarView;"events"===e.type&&e.affectedCalendars&&e.affectedCalendars.length>0?e.affectedCalendars.forEach(e=>{let r=t.getEventSourceById(e);r&&r.remove();let a=n.find(t=>"object"==typeof t&&null!==t&&"id"in t&&t.id===e);a&&t.addEventSource(a)}):(t.removeAllEventSources(),n.forEach(e=>t.addEventSource(e))),this.searchHandler.clearCaches(),this.searchHandler.scheduleApplyFilter()}});let r=this.fullCalendarView.view?.type;r&&r.includes("resourceTimeline")&&this.timelineHandler.addShadowEventsToView()}),this.refreshEventSourcesFromCache()})()}onResize(){if(this.fullCalendarView){let e=this.fullCalendarView;window.requestAnimationFrame(()=>{e.render()})}}onunload(){Qe.getInternalAPI().unregisterView(this),this.searchHandler.onunload(),this.fullCalendarView&&(this.fullCalendarView.destroy(),this.fullCalendarView=null),this.dateNavigation&&(this.dateNavigation.destroy(),this.dateNavigation=null),this.callback&&(Qe.getCache().off("update",this.callback),this.callback=null)}}});function n6t(e,t,n,r){let a=v7(e,r),i=v7(t,r);return{type:"single",date:a,endDate:a!==i?i:void 0,allDay:n,...n?{}:{startTime:UJ(e,r),endTime:UJ(t,r)}}}function D8(e,t,n){let r={id:e,title:t.title,allDay:t.allDay,extendedProps:{uid:t.uid,recurringEventId:t.recurringEventId,category:t.category,subCategory:t.subCategory,isShadow:!1},...t.display&&{display:t.display}};if(n.enableAdvancedCategorization&&t.category){let e=(n.categorySettings||[]).find(e=>e.name===t.category);if(e){let{color:t,textColor:n}=hJ(e.color);r.color=t,r.textColor=n}let a=t.subCategory||"__NONE__";r.resourceId=`${t.category}::${a}`}if("recurring"===t.type){let e,a=t.timezone||n.displayTimezone||Fn.local().zoneName,i=t.startRecur||Fn.local().startOf("year").toISODate()||Fn.local().toISODate()||"2025-01-01";if(t.allDay)e=Fn.fromISO(i,{zone:a}).startOf("day");else{let n=h6(t.startTime);if(!n)return null;e=Fn.fromISO(i,{zone:a}).set({hour:n.hours,minute:n.minutes,second:0,millisecond:0})}let o,s={U:"SU",M:"MO",T:"TU",W:"WE",R:"TH",F:"FR",S:"SA"},l=["SU","MO","TU","WE","TH","FR","SA"];if(t.daysOfWeek?.length)o=`FREQ=WEEKLY;BYDAY=${t.daysOfWeek.map(e=>s[e]).join(",")}`;else if(t.repeatOn){o=`FREQ=MONTHLY;BYDAY=${l[t.repeatOn.weekday]};BYSETPOS=${t.repeatOn.week}`}else if(t.month&&t.dayOfMonth)o=`FREQ=YEARLY;BYMONTH=${t.month};BYMONTHDAY=${t.dayOfMonth}`;else{if(!t.dayOfMonth)return console.error("FullCalendar: invalid recurring event data.",t),null;o=`FREQ=MONTHLY;BYMONTHDAY=${t.dayOfMonth}`}if(t.repeatInterval&&t.repeatInterval>1&&(o+=`;INTERVAL=${t.repeatInterval}`),t.endRecur){let n=Fn.fromISO(t.endRecur,{zone:a}).endOf("day"),r=th(`RRULE:${o}`,{dtstart:e.toJSDate()}).after(e.toJSDate(),!0);if(r){if(n>=Fn.fromJSDate(r,{zone:a}).startOf("day")){o+=`;UNTIL=${n.toUTC().toFormat("yyyyMMdd'T'HHmmss'Z'")}`}}}let c=`DTSTART;TZID=${a}:${e.toFormat("yyyyMMdd'T'HHmmss")}`,u=(t.skipDates||[]).map(e=>{if(t.allDay){let t=Fn.fromISO(e,{zone:a}).startOf("day");return`EXDATE;TZID=${a}:${t.toFormat("yyyyMMdd'T'HHmmss")}`}let n=h6(t.startTime);if(!n)return null;let r=Fn.fromISO(e,{zone:a}).set({hour:n.hours,minute:n.minutes,second:0,millisecond:0});return`EXDATE;TZID=${a}:${r.toFormat("yyyyMMdd'T'HHmmss")}`}).filter(Boolean);if(r.rrule=[c,`RRULE:${o}`,...u].join("\n"),!t.allDay&&t.startTime&&t.endTime){let e=h6(t.startTime),n=h6(t.endTime);if(e&&n){let e=f6(t.startRecur||"2025-01-01",t.startTime),n=f6(t.endDate||t.startRecur||"2025-01-01",t.endTime);if(!e||!n)return null;let a=Fn.fromISO(e),i=Fn.fromISO(n);i<a&&(i=i.plus({days:1}));let o=i.diff(a);o.as("milliseconds")>0&&(r.duration=o.toFormat("hh:mm"))}}r.extendedProps={...r.extendedProps,isTask:!!t.isTask,...t.allDay?{}:{sourceTimezone:a}},r.allDay=!!t.allDay}else if("rrule"===t.type){let e=t,n=t.timezone||Intl.DateTimeFormat().resolvedOptions().timeZone,a=t.allDay?null:f6(e.startDate,e.startTime);if(!t.allDay&&!a)return null;let i=t.allDay?Fn.fromISO(e.startDate,{zone:n}):a?Fn.fromISO(a,{zone:n}):Fn.invalid("Missing DTSTART for timed event");if(!i.isValid)return console.error(`Invalid start date for rrule event "${t.title}": ${i.invalidReason}`,{startDate:e.startDate,startTime:e.startTime,sourceZone:n}),null;let o=(e.skipDates||[]).filter(e=>e&&""!==e.trim()).map(r=>{if(t.allDay){let e=Fn.fromISO(r,{zone:n}).startOf("day");return e.isValid?`EXDATE;TZID=${n}:${e.toFormat("yyyyMMdd'T'HHmmss")}`:(console.warn(`Invalid skip date "${r}" for all-day event: ${e.invalidReason}`),null)}if(!e.startTime)return console.warn(`Missing startTime for timed event skip date "${r}"`),null;let a=Fn.fromISO(`${r}T${e.startTime}`,{zone:n});return a.isValid?`EXDATE;TZID=${n}:${a.toFormat("yyyyMMdd'T'HHmmss")}`:(console.warn(`Invalid skip date "${r}" with start time "${e.startTime}" in timezone "${n}": ${a.invalidReason}`),null)}).filter(Boolean),s=`DTSTART;TZID=${n}:${i.toFormat("yyyyMMdd'T'HHmmss")}`,l=t.rrule;r.rrule=[s,l,...o].join("\n"),r.extendedProps={...r.extendedProps,isTask:!!t.isTask,...t.allDay?{}:{sourceTimezone:n}};try{r.timeZone=n}catch(e){console.warn("FC explicit timeZone EventInput assignment failed",e)}if(!t.allDay&&h6(t.startTime)&&t.endTime&&h6(t.endTime)){let e=f6(t.startDate,t.startTime),a=f6(t.endDate||t.startDate,t.endTime);if(!e||!a)return null;let i=Fn.fromISO(e,{zone:n}),o=Fn.fromISO(a,{zone:n});o<i&&(o=o.plus({days:1}));let s=o.diff(i);s.as("milliseconds")>0&&(r.duration=s.toISOTime({includePrefix:!1,suppressMilliseconds:!0,suppressSeconds:!0}))}}else if("single"===t.type){let e=t.timezone||n.displayTimezone||Fn.local().zoneName;if(t.allDay){let e;t.endDate&&(e=Fn.fromISO(t.endDate).plus({days:1}).toISODate()??void 0),r.start=t.date,r.end=e,r.extendedProps={...r.extendedProps,isTask:void 0!==t.completed&&null!==t.completed,taskCompleted:t.completed}}else{let n=f6(t.date,t.startTime);if(!n)return null;let a,i=Fn.fromISO(n,{zone:e});if(r.start=i.toISO()??void 0,t.endTime){let n=f6(t.endDate||t.date,t.endTime);if(!n)return null;let r=Fn.fromISO(n,{zone:e});r<i&&(r=r.plus({days:1})),a=r.toISO()??void 0}r.end=a,r.extendedProps={...r.extendedProps,isTask:void 0!==t.completed&&null!==t.completed,taskCompleted:t.completed,sourceTimezone:e}}}return r}function fJ(e,t,n){let r=e.extendedProps.category,a=e.extendedProps.subCategory,i=n||e.resource?.id;if(i){let e=i.split("::");2===e.length?(r=e[0],a="__NONE__"===e[1]?void 0:e[1]):(r=i,a=void 0)}let o=!e.allDay&&e.extendedProps.sourceTimezone||t.displayTimezone||Intl.DateTimeFormat().resolvedOptions().timeZone,s=void 0!==e.extendedProps.daysOfWeek,l=e.allDay?(e.startStr?Fn.fromISO(e.startStr).toISODate():null)||Fn.fromJSDate(e.start).toISODate()||"":v7(e.start,o),c=e.allDay?(()=>{let t=e.endStr?Fn.fromISO(e.endStr):e.end?Fn.fromJSDate(e.end):null;return t?t.minus({days:1}).toISODate()??l:l})():e.end?v7(new Date(e.end.getTime()-1),o):l,u=e.extendedProps||{},d=u.taskCompleted,p=e.start,h=e.end??new Date(p.getTime()+36e5);return{uid:u.uid,title:u.cleanTitle||e.title,category:r,subCategory:a,...e.allDay?{}:{timezone:o},recurringEventId:u.recurringEventId,...e.allDay?{allDay:!0}:{allDay:!1,startTime:UJ(p,o),endTime:UJ(h,o)},...s?{type:"recurring",endDate:null,daysOfWeek:u.daysOfWeek.map(e=>ANr[e]),startRecur:u.startRecur?v7(u.startRecur,o):void 0,endRecur:u.endRecur?v7(u.endRecur,o):void 0,skipDates:[],isTask:u.isTask}:{type:"single",date:l,...l!==c?{endDate:c}:{endDate:null},completed:u.isTask?d??!1:d}}}var h6,zNr,UJ,v7,f6,ANr,Zq=kr(()=>{AM(),Lu(),yI(),h6=e=>{let t=Fn.fromFormat(e,"h:mm a");if(t.invalidReason&&(t=Fn.fromFormat(e,"HH:mm")),t.invalidReason&&(t=Fn.fromFormat(e,"H:mm")),t.invalidReason&&(t=Fn.fromFormat(e,"HH:mm:ss")),t.invalidReason&&(t=Fn.fromFormat(e,"H:mm:ss")),t.invalidReason)return console.error(`FC: Error parsing time string '${e}': ${t.invalidReason}'`),null;let n=t.toISOTime({includeOffset:!1,includePrefix:!1});return n?Qf.fromISOTime(n):(console.error(`FC: Could not convert parsed time to ISO for '${e}'`),null)},zNr=(e,t)=>{let n=t.hours,r=t.minutes;return e.set({hour:n,minute:r})},UJ=(e,t)=>Fn.fromJSDate(e).setZone(t).toISOTime({suppressMilliseconds:!0,includeOffset:!1,suppressSeconds:!0})||(console.error("FC: Invalid time conversion from date:",e),""),v7=(e,t)=>Fn.fromJSDate(e).setZone(t).toISODate()??"",f6=(e,t)=>{let n=Fn.fromISO(e);if(n.invalidReason)return console.error(`FC: Error parsing time string '${e}': ${n.invalidReason}`),null;let r=h6(t);return r?zNr(n,r).toISO({includeOffset:!1,suppressMilliseconds:!0}):null},ANr="UMTWRFS"});function wNr(e){let t=new Set;if(e.tags)for(let n of e.tags)n.tag&&t.add(n.tag);let n=e.frontmatter;if(n){let e=e=>{"string"==typeof e?e.split(/[\s,]+/).forEach(e=>{let n=e.trim();n&&t.add(n.startsWith("#")?n:`#${n}`)}):Array.isArray(e)&&e.forEach(e=>{"string"==typeof e&&t.add(e.startsWith("#")?e:`#${e}`)})};n.tags&&e(n.tags),n.tag&&e(n.tag)}return Array.from(t)}function bI(e,t,n,r){return"string"==typeof e?ONr(e,t,n,r):e.or?e.or.some(e=>bI(e,t,n,r)):e.and?e.and.every(e=>bI(e,t,n,r)):!e.not||!e.not.some(e=>bI(e,t,n,r))}function ONr(e,t,n,r){let a=n.getFileCache(t),i=wNr(a||{});if(e.includes("file.hasTag")){let t=e.match(/file\.hasTag\("([^"]+)"\)/);if(t){let e=t[1];return i.some(t=>t===e||t===`#${e}`)}}if(e.includes("file.inFolder")){let n=e.match(/file\.inFolder\("([^"]+)"\)/);if(n){let e=n[1];return t.path.startsWith(e)}}if(e.includes("file.ext")&&e.includes('"md"'))return"md"===t.extension;if(r){if(e.includes("file.calendarId")){let t=e.match(/file\.calendarId\s*==?\s*"([^"]+)"/);if(t)return r.calendarId===t[1]}if(e.includes("file.calendarName")){let t=e.match(/file\.calendarName\s*==?\s*"([^"]+)"/);if(t)return r.calendarName===t[1]}if(e.includes("file.category")){let t=e.match(/file\.category\s*==?\s*"([^"]+)"/);if(t)return r.category===t[1]}if(e.includes("file.subCategory")){let t=e.match(/file\.subCategory\s*==?\s*"([^"]+)"/);if(t)return r.subCategory===t[1]}}let o=a?.frontmatter||{},s=e.match(/^([a-zA-Z0-9_.-]+)\s*==?\s*(?:"([^"]+)"|([a-zA-Z0-9_-]+))$/);if(s){let e=s[1],t=s[2],n=s[3],r=void 0!==t?t:n,a=o[e];return null!=a&&("true"===r?!0===a:"false"===r?!1===a:isNaN(Number(r))||"number"!=typeof a?("string"==typeof a||"number"==typeof a||"boolean"==typeof a)&&String(a)===r:a===Number(r))}let l=e.match(/^([a-zA-Z0-9_.-]+)\s*(>=|<=|>|<)\s*([0-9.-]+)$/);if(l){let e=l[1],t=l[2],n=Number(l[3]),r=Number(o[e]);if(isNaN(r)||void 0===o[e])return!1;switch(t){case">":return r>n;case"<":return r<n;case">=":return r>=n;case"<=":return r<=n}}let c=e.match(/^([a-zA-Z0-9_.-]+)$/);if(c){let e=c[1];return void 0!==o[e]&&null!==o[e]}return!0}var dTt=kr(()=>{});function TNr(e){let t=p6.activeDocument?.body;if(!t)return{color:e||"var(--interactive-accent)",textColor:"var(--text-on-accent)"};let n=getComputedStyle(t),r=n.getPropertyValue("--text-on-accent").trim()||"var(--text-on-accent)";if(e){let t=e.slice(1).match(7===e.length?/(\S{2})/g:/(\S{1})/g);if(t){(299*parseInt(t[0],16)+587*parseInt(t[1],16)+114*parseInt(t[2],16))/1e3>150&&(r="black")}}return{color:e||n.getPropertyValue("--interactive-accent").trim()||"var(--interactive-accent)",textColor:r}}var p6,HJ,b5,fTt=kr(()=>{Fc(),Zq(),p6=require("obsidian"),dTt(),Wo(),HJ=class{constructor(e){this.cachedBasesData=null,this.cachedBasesQueryPath=null,this.settings=e}async loadBasesFilter(){let e=this.getActiveWorkspace()?.basisQueryPath;if(!e)return this.cachedBasesData=null,void(this.cachedBasesQueryPath=null);if(e!==this.cachedBasesQueryPath)try{let t=Qe.getPlugin().app,n=t.vault.getAbstractFileByPath(e);if(n instanceof p6.TFile){let r=await t.vault.read(n),a=(0,p6.parseYaml)(r);this.cachedBasesData=a||null,this.cachedBasesQueryPath=e}else this.cachedBasesData=null,this.cachedBasesQueryPath=null}catch(e){console.error("Failed to load active workspace Bases filter:",e),this.cachedBasesData=null,this.cachedBasesQueryPath=null}}updateSettings(e){this.settings=e}getActiveWorkspace(){return this.settings.activeWorkspace&&this.settings.workspaces.find(e=>e.id===this.settings.activeWorkspace)||null}getCalendarConfig(){let e=this.getActiveWorkspace();if(!e)return this.settings;let t={...this.settings},n={...e};return this.cachedBasesData?.settings&&Object.assign(n,this.cachedBasesData.settings),(n.defaultView?.desktop||n.defaultView?.mobile)&&(t.initialView={desktop:n.defaultView.desktop||this.settings.initialView?.desktop,mobile:n.defaultView.mobile||this.settings.initialView?.mobile}),void 0!==n.businessHours&&(t.businessHours=n.businessHours),void 0!==n.slotMinTime&&(t.slotMinTime=n.slotMinTime),void 0!==n.slotMaxTime&&(t.slotMaxTime=n.slotMaxTime),void 0!==n.allDaySlot&&(t.allDaySlot=n.allDaySlot),void 0!==n.timeGridDayHeaderFormat&&(t.timeGridDayHeaderFormat=n.timeGridDayHeaderFormat),void 0!==n.weekends&&(t.weekends=n.weekends),void 0!==n.hiddenDays&&(t.hiddenDays=n.hiddenDays),void 0!==n.dayMaxEvents&&(t.dayMaxEvents=n.dayMaxEvents),void 0!==n.firstDay&&(t.firstDay=n.firstDay),void 0!==n.timeFormat24h&&(t.timeFormat24h=n.timeFormat24h),void 0!==n.clickToCreateEventFromMonthView&&(t.clickToCreateEventFromMonthView=n.clickToCreateEventFromMonthView),void 0!==n.displayTimezone&&(t.displayTimezone=n.displayTimezone),void 0!==n.enableAdvancedCategorization&&(t.enableAdvancedCategorization=n.enableAdvancedCategorization),void 0!==n.enableBackgroundEvents&&(t.enableBackgroundEvents=n.enableBackgroundEvents),void 0!==n.showEventInStatusBar&&(t.showEventInStatusBar=n.showEventInStatusBar),void 0!==n.highlightCurrentOrNextEvent&&(t.highlightCurrentOrNextEvent=n.highlightCurrentOrNextEvent),void 0!==n.categorySettings&&(t.categorySettings=n.categorySettings),void 0!==n.slotDuration&&(t.slotDuration=n.slotDuration),void 0!==n.slotLabelInterval&&(t.slotLabelInterval=n.slotLabelInterval),void 0!==n.headerToolbar&&(t.headerToolbar=n.headerToolbar),void 0!==n.footerToolbar&&(t.footerToolbar=n.footerToolbar),void 0!==n.height&&(t.height=n.height),void 0!==n.weatherHide&&(t.weatherHide=n.weatherHide),t}filterCalendarSources(e){let t=this.getActiveWorkspace();if(!t)return e;let n=(t.visibleCalendars??[]).map(String);if(0===n.length)return e;let r=new Set(n),a=e.filter(e=>r.has(String(e.id)));return 0===a.length&&n.length>0&&Na("The active workspace is filtering for calendars that are not available. Check workspace settings.",5e3),a}filterEventsByCategory(e,t){if(!t.enableAdvancedCategorization)return e;let n=this.getActiveWorkspace();if(!n?.categoryFilter)return e;let{mode:r,categories:a}=n.categoryFilter;if("show-only"===r&&0===a.length)return e;let i=new Set(t.categorySettings?.map(e=>e.name)??[]);return e.filter(e=>{let t=e.extendedProps,n=t?.category||t?.originalEvent?.category;if(!n&&"string"==typeof e.resourceId){let t=e.resourceId;(t.includes("::")||i.has(t))&&(n=t)}if(!n)return"hide"===r;let o=n.includes("::")?n.split("::")[0]:n;return"show-only"===r?a.includes(o):!a.includes(o)})}getFilteredEventSources(e){let t=this.filterCalendarSources(e),n=this.getCalendarConfig();return t.map(({events:e,editable:t,color:r,id:a})=>{let i=this.cachedBasesData?.filters,o=e;if(i){let t=Qe.getPlugin().app;o=e.filter(e=>{let r=Qe.getCache().store.getEventDetails(e.id),a=r?.location?.path;if(!a)return!0;let o=r?.calendarId,s=o?n.calendarSources.find(e=>e.id===o)?.name:void 0,l=t.vault.getAbstractFileByPath(a);return!(l instanceof p6.TFile)||bI(i,l,t.metadataCache,{calendarId:o,calendarName:s,category:e.event.category,subCategory:e.event.subCategory})})}let s=o.map(e=>D8(e.id,e.event,n)).filter(e=>!!e);return{id:a,events:this.filterEventsByCategory(s,n),editable:t,...TNr(r)}})}}}),BJ=kr(()=>{fTt(),b5=class{constructor(e){this.settings=e,this.workspaceManager=new HJ(e)}updateSettings(e){this.settings=e,this.workspaceManager.updateSettings(e)}async loadBasesFilter(){await this.workspaceManager.loadBasesFilter()}getEnhancedData(e){return{sources:this.workspaceManager.getFilteredEventSources(e),config:this.workspaceManager.getCalendarConfig()}}getFilteredSources(e){return this.workspaceManager.filterCalendarSources(e)}getCalendarConfig(){return this.workspaceManager.getCalendarConfig()}getActiveWorkspace(){return this.workspaceManager.getActiveWorkspace()}}});function Ibe(e){if("single"!==e.type||e.allDay||!e.startTime||!e.endTime)return null;let t=xI(`${e.date} ${e.startTime}`,"YYYY-MM-DD HH:mm",!0),n=e.endDate||e.date,r=xI(`${n} ${e.endTime}`,"YYYY-MM-DD HH:mm",!0);if(!t.isValid()||!r.isValid())return null;let a=t.valueOf(),i=r.valueOf();return i<=a&&(i+=864e5),{startMs:a,endMs:i}}function HNr(e){return 60*(e.reduce((e,t)=>Math.max(e,t.activationThresholdMins||0),0)+e.reduce((e,t)=>Math.max(e,t.softBreakLimitMins||0),0)+zTt)*1e3}function GJ(e){return 0===e.length?null:e.reduce((e,t)=>t.endMs!==e.endMs?t.endMs>e.endMs?t:e:t.startMs>e.startMs?t:e)}function xTt(e,t){return Math.max(0,Math.min(e.endMs,t.endMs)-Math.max(e.startMs,t.startMs))}function XJ(e,t){if(0===e.length)return null;let n={startMs:t.startMs,endMs:t.endMs},r=e.filter(e=>e.profileColor===t.event.category);return(r.length>0?r:e).reduce((e,r)=>{let a=xTt(n,{startMs:e.startMs,endMs:e.endMs}),i=xTt(n,{startMs:r.startMs,endMs:r.endMs});if(i!==a)return i>a?r:e;let o=Math.abs(e.startMs-t.startMs);return Math.abs(r.startMs-t.startMs)<o?r:e})}function YJ(e,t){let n=t?60*(t.activationThresholdMins+t.softBreakLimitMins+zTt)*1e3:HNr(e),r=60*BNr*1e3,a=60*UNr*1e3;return Math.min(a,Math.max(n,r))}function VNr(e,t){return e.event.category===t.profileColor}function v_(e,t){return`${t||""}`}function My(e){return(e||"").replace(/\s+/g," ").trim().toLowerCase()}function Nbe(e,t){return VNr(e,t)&&My(e.cleanTitle)===My(t.title)}function ZJ(e,t){return t.has(v_(void 0,e.event.category||""))}async function $J(e,t,n,r){if(r.getTime()<=n.getTime())return[];let a=Qe.getProviderRegistry().getInstance(t);if(!a)return[];let i=await a.getEvents({start:n,end:r}),o=[];for(let[e]of i){let a=Qe.getProviderRegistry().getGlobalIdentifier(e,t),i=a?await Qe.getProviderRegistry().getSessionId(a):null,s=(i?Qe.getCache().store.getEventById(i):null)||Qe.getCache().enhancer.enhance(e),l=Ibe(s);l&&(l.endMs<n.getTime()-gh||l.startMs>r.getTime()+gh||o.push({sessionId:i,calendarId:t,cleanTitle:Qe.getProviderRegistry().getCanonicalTitle(s,t),event:s,startMs:l.startMs,endMs:l.endMs}))}return o.sort((e,t)=>e.startMs-t.startMs||e.endMs-t.endMs)}async function Wbe(e,t,n){let r=Qe.getCache().store.getEventDetails(t);if(!r)return!1;let a=Ibe(r.event);if(!a||n<=a.endMs)return!1;let i=r.event;if("single"!==i.type||i.allDay||!i.startTime)return!1;let o=xI(n),s=o.format("YYYY-MM-DD"),l={...i,endTime:o.format("HH:mm"),endDate:s!==i.date?s:null};return Qe.getCache().updateEventWithId(t,l)}function ATt(e,t){return e.find(e=>Nbe(e,t)&&e.startMs<=t.startMs+gh&&e.endMs>=t.endMs-gh)||null}function wTt(e,t){let n=e.filter(e=>Nbe(e,t)&&e.endMs>=t.startMs-gh&&e.startMs<=t.endMs+gh&&t.endMs>e.endMs+gh);return 0===n.length?null:n.reduce((e,t)=>t.endMs>e.endMs?t:e)}function OTt(e,t,n){return e.filter(e=>ZJ(e,n)&&!Nbe(e,t)&&e.endMs>=t.startMs-gh&&e.startMs<=t.endMs+gh)}function TTt(e,t,n){let r=new Map,a=Qe.getCache().store.getAllEvents();for(let e of a){if(e.calendarId!==t)continue;let a=Ibe(e.event);if(!a)continue;let i=v_(void 0,e.event.category);if(!n.has(i))continue;let o=r.get(i);o||(o=[],r.set(i,o)),o.push({sessionId:e.id,calendarId:t,cleanTitle:Qe.getProviderRegistry().getCanonicalTitle(e.event,t),event:e.event,startMs:a.startMs,endMs:a.endMs})}for(let e of r.values())e.sort((e,t)=>t.endMs-e.endMs||t.startMs-e.startMs);return r}function KJ(e,t){let n=v_(t.profileName,t.profileColor),r=e.get(n);return r&&r.filter(e=>{let n=My(e.cleanTitle)===My(t.title),r=e.endMs>=t.startMs-gh&&e.startMs<=t.endMs+gh;return n&&r})[0]?.sessionId||null}function Fbe(e,t){let n=v_(void 0,t.event.category),r=e.get(n);return r&&r.filter(e=>{let n=My(e.cleanTitle)===My(t.cleanTitle),r=Math.abs(e.startMs-t.startMs)<=gh&&Math.abs(e.endMs-t.endMs)<=gh;return n&&r})[0]?.sessionId||null}function JJ(e){let t=xI(e.startMs),n=xI(e.endMs);return{type:"single",title:e.title,category:e.profileColor,date:t.format("YYYY-MM-DD"),endDate:null,allDay:!1,startTime:t.format("HH:mm"),endTime:n.format("HH:mm"),display:"auto"}}function QJ(e,t,n){if(0===e.length)return!1;let r=e.map(e=>({startMs:Math.max(e.startMs,t.startMs),endMs:Math.min(e.endMs,t.endMs)})).filter(e=>e.endMs>e.startMs).sort((e,t)=>e.startMs-t.startMs||e.endMs-t.endMs);if(0===r.length)return!1;let a=0,i=r[0].startMs,o=r[0].endMs;for(let e=1;e<r.length;e++){let t=r[e];t.startMs<=o?o=Math.max(o,t.endMs):(a+=o-i,i=t.startMs,o=t.endMs)}a+=o-i;let s=t.endMs-t.startMs;return!(s<=0)&&a>=Math.max(0,s-n)}var _Tt,xI,gh,zTt,BNr,UNr,Bbe=kr(()=>{Wo(),_Tt=require("obsidian"),xI=_Tt.moment,gh=6e4,zTt=5,BNr=30,UNr=360});function Ube(e,t){for(let n of t.states){if(e.bucketType&&""!==e.bucketType.trim()&&"any"!==e.bucketType&&!n.bucketType.toLowerCase().includes(e.bucketType.toLowerCase()))continue;let t,r="";if(e.matchField){let t=e.matchField.toLowerCase(),a=n.data[e.matchField];if(void 0===a){let e=Object.keys(n.data).find(e=>e.toLowerCase()===t);e&&(a=n.data[e])}void 0!==a&&(r="string"==typeof a?a:JSON.stringify(a))}if(!r){let e=n.data.app||n.data.url||n.data.title||n.data.project||n.data.file||"";r="string"==typeof e?e:JSON.stringify(e)}if(e.matchPattern&&r){if(e.useRegex)try{t=new RegExp(e.matchPattern,"i").test(r)}catch{t=!1}else t=r.toLowerCase().includes(e.matchPattern.toLowerCase());if(t)return n}}return null}function jNr(e,t,n=[]){let r=[],a=[...e].sort((e,t)=>e.startMs-t.startMs),i=new Map(n.map(e=>[`${e.profileName}::${e.profileColor}`,e]));for(let e of t){let t="idle",n=-1,o=0,s=0,l=0,c=0,u=0,d=[],p=[],h=60*e.activationThresholdMins*1e3,f=60*e.softBreakLimitMins*1e3,m=i.get(`${e.name}::${e.color}`);m&&(t=m.state,n=m.sessionStartMs,o=m.lastEvidenceEndMs,s=Math.max(m.targetTimeMs,h),l=0,c=Math.max(0,m.fitnessScoreMs),u=m.lastEvidenceEndMs,d=[],p=[]);let g=()=>{t="idle",n=-1,o=0,s=0,l=0,c=0,u=0,d=[],p=[]},y=()=>{n>=0&&u>n&&r.push({startMs:n,endMs:u,profile:e,fitness_score:c,splintersInside:[...d].filter(e=>e.startMs>=n&&e.endMs<=u),primaryEvidenceSplinters:[...p].filter(e=>e.startMs>=n&&e.endMs<=u)})};for(let r of a){let a=r.endMs-r.startMs;if(a<=0)continue;if("idle"!==t&&o>0&&r.startMs>o){let e=r.startMs-o;l+=e,l>f&&("active"===t&&y(),g())}let i="mismatch",m=null,b=!1;for(let t of e.hardBreakRules||[])if(Ube(t,r)){b=!0;break}if(b)i="hard_break";else{for(let t of e.primaryEvidenceRules||[]){let e=Ube(t,r);if(e){i="primary_match",m=e;break}}if("mismatch"===i)for(let t of e.supportingEvidenceRules||[]){let e=Ube(t,r);if(e){i="supporting_match",m=e;break}}}let v=m||(r.states.length>0?r.states[0]:{bucketType:"unknown",data:{}}),M={startMs:r.startMs,endMs:r.endMs,bucketType:v.bucketType,data:v.data};"idle"===t?"primary_match"===i&&(t="warmup",n=r.startMs,o=r.endMs,u=r.endMs,s=a,l=0,c=a,d=[M],p=[M],s>=h&&(t="active")):"warmup"===t?"hard_break"===i?g():"mismatch"===i?(l+=a,o=r.endMs,d.push(M),l>f&&g()):"supporting_match"===i?(l=0,o=r.endMs,u=r.endMs,d.push(M)):(s+=a,l=0,o=r.endMs,u=r.endMs,c+=a,d.push(M),p.push(M),s>=h&&(t="active")):"hard_break"===i?(y(),g()):"mismatch"===i?(l+=a,o=r.endMs,d.push(M),l>f&&(y(),g())):"supporting_match"===i?(l=0,o=r.endMs,u=r.endMs,d.push(M)):(l=0,o=r.endMs,u=r.endMs,c+=a,d.push(M),p.push(M))}"active"===t&&y()}return r}function GNr(e){let t=[],n=[...e].sort((e,t)=>t.fitness_score-e.fitness_score);for(let e of n){let n=[{startMs:e.startMs,endMs:e.endMs}];for(let e of t){let t=[];for(let r of n)r.endMs<=e.startMs||r.startMs>=e.endMs?t.push(r):r.startMs>=e.startMs&&r.endMs<=e.endMs||(r.startMs<e.startMs&&t.push({startMs:r.startMs,endMs:e.startMs}),r.endMs>e.endMs&&t.push({startMs:e.endMs,endMs:r.endMs}));n=t}for(let r of n)if((r.endMs-r.startMs)/6e4>=e.profile.activationThresholdMins){let n=e.splintersInside.filter(e=>e.endMs>r.startMs&&e.startMs<r.endMs);t.push({startMs:r.startMs,endMs:r.endMs,profile:e.profile,splintersInside:n,primaryEvidenceSplinters:e.primaryEvidenceSplinters.filter(e=>e.endMs>r.startMs&&e.startMs<r.endMs)})}}return t}function STt(e,t,n=[]){return GNr(jNr(e,t,n))}var kTt=kr(()=>{});function YNr(e){let t=e.profile.titleTemplate||"{app}",n=new Map,r=e.primaryEvidenceSplinters.length>0?e.primaryEvidenceSplinters:e.splintersInside;for(let t of r){let r=Math.min(t.endMs,e.endMs)-Math.max(t.startMs,e.startMs),a=JSON.stringify(t.data),i=n.get(a)||{duration:0,data:t.data};i.duration+=r,n.set(a,i)}let a={},i=-1;for(let e of n.values())e.duration>i&&(i=e.duration,a=e.data);for(let e of Object.keys(a)){let n=a[e],r="string"==typeof n?n:n?JSON.stringify(n):"";t=t.replaceAll(`{${e}}`,r)}return t=t.replace(/\{[^}]+\}/g,"").trim(),(!t||"-"===t||"|"===t)&&(t=e.profile.name),t}async function eQ(e,t,n,r,a,i,o=[]){if(i.getTime()<=a.getTime())return[];let s=a.toISOString(),l=i.toISOString(),c=async t=>(await(0,Hbe.requestUrl)(`${e}/api/0/buckets/${t}/events?start=${s}&end=${l}`)).json,u=e=>{let t=new Date(e.timestamp).getTime();return{startMs:t,endMs:t+1e3*e.duration}},d=new Map;for(let e of n){let n=t[e]||Object.values(t).find(t=>t.id===e);if(!n)continue;let r=await c(e),a={isWeb:"web.tab.current"===n.type||n.id.includes("web"),isAfk:"afk"===n.type||n.id.includes("afk"),isWindow:"currentwindow"===n.type||n.id.includes("window")},i=[];for(let e of r){if(a.isAfk&&"not-afk"===e.data?.status)continue;let t=u(e);t.endMs<=t.startMs||i.push({range:t,data:e.data||{},bucketType:n.type,kinds:a})}d.set(e,i)}let p=[];for(let e of n){let t=d.get(e)||[];for(let e of t)p.push(e)}let h=new Set;for(let e of p)h.add(e.range.startMs),h.add(e.range.endMs);let f=Array.from(h).sort((e,t)=>e-t),m=[];for(let e=0;e<f.length-1;e++){let t=f[e],n=f[e+1];if(t>=n)continue;let r=!1;for(let e of p)if(e.range.startMs<=t&&e.range.endMs>=n&&e.kinds.isWindow){let t="string"==typeof e.data?.app?e.data.app:"";if(XNr.test(t)){r=!0;break}}let a=[];for(let e of p)if(e.range.startMs<=t&&e.range.endMs>=n){if(e.kinds.isWeb&&!r)continue;a.push({bucketType:e.bucketType,data:e.data})}a.length>0&&m.push({startMs:t,endMs:n,states:a})}return STt(m,r,o).map(e=>({startMs:e.startMs,endMs:e.endMs,title:YNr(e),profileColor:e.profile.color,profileName:e.profile.name}))}async function CTt(e,t,n,r,a){let i=new Date(Math.max(0,r-a)).toISOString(),o=new Date(r+a).toISOString();for(let s of n){let n=t[s]||Object.values(t).find(e=>e.id===s);if(n&&("currentwindow"===n.type||"web.tab.current"===n.type||"afk"===n.type||n.id.includes("window")||n.id.includes("web")||n.id.includes("afk")))try{let t=(await(0,Hbe.requestUrl)(`${e}/api/0/buckets/${n.id}/events?start=${i}&end=${o}`)).json;for(let e of t){if("afk"===n.type&&"not-afk"===e.data?.status)continue;let t=new Date(e.timestamp).getTime(),i=t+1e3*e.duration;if(!(i<=t)&&i>=r-a&&t<=r+a)return!0}}catch{return!1}}return!1}var Hbe,XNr,Vbe=kr(()=>{Hbe=require("obsidian"),kTt(),XNr=/(firefox|chrome|chromium|edge|brave|opera|vivaldi|arc|safari|librewolf|waterfox|floorp|zen|whale|tor)/i});function ETt(e,t){let n=[];for(let r of e.values())for(let e of r)e.startMs<=t+gh&&e.endMs>=t-gh&&My(e.cleanTitle)&&n.push(e);return n.sort((e,t)=>t.endMs-e.endMs||t.startMs-e.startMs),n[0]||null}async function qTt(e,t,n,r,a,i){if("custom"===t.syncStrategy||t.lastSyncTime<=0)return null;let o=YJ(a),s=new Date(Math.max(0,t.lastSyncTime-o)),l=new Date(t.lastSyncTime+gh),c=GJ(await $J(e,t.targetCalendarId,s,l));if(!c||!ZJ(c,i)||!My(c.cleanTitle))return null;let u=XJ(await eQ(t.apiUrl,n,r,a,new Date(c.startMs),new Date(c.endMs)),c);return u&&My(u.title)===My(c.cleanTitle)&&await CTt(t.apiUrl,n,r,c.startMs,gh)?{priorEvent:c}:null}function DTt(e,t,n){let r=e.find(e=>v_(e.name,e.color)===v_(void 0,t.event.category||""));if(!r||0===(r.supportingEvidenceRules||[]).length||!My(t.cleanTitle))return null;let a=60*r.activationThresholdMins*1e3;return{seedState:{profileName:r.name,profileColor:r.color,state:"active",sessionStartMs:t.startMs,lastEvidenceEndMs:n,targetTimeMs:a,fitnessScoreMs:0},matchedProfile:r}}async function RTt(e,t,n,r,a,i,o,s){let l=[...r].sort((e,t)=>e.startMs-t.startMs);if(!i||!QJ(l,a,gh))return 0;let c=a.startMs-gh,u=o.filter(e=>ZJ(e,s)&&e.startMs>=c);if(0===u.length)return console.error("ActivityWatch continuity rewrite failed: detected a continuous session but found no prior ActivityWatch events to replace.",{priorEventTitle:a.event.title,priorEventStartMs:a.startMs,priorEventEndMs:a.endMs}),0;let d=[];for(let e of u){let t=e.sessionId;if(t||(t=Fbe(n,e)),!t)return console.error("ActivityWatch continuity rewrite failed: detected a continuous session but could not resolve the prior event to a deletable session id.",{title:e.event.title,category:e.event.category,startMs:e.startMs,endMs:e.endMs,priorEventTitle:a.event.title,priorEventStartMs:a.startMs,priorEventEndMs:a.endMs}),0;d.push(t)}for(let e of d)try{await Qe.getCache().deleteEvent(e,{force:!0,trackMilestone:!1})}catch(t){return console.error("ActivityWatch continuity rewrite failed: detected a continuous session but could not delete the prior event before rewriting.",{sessionId:e,priorEventTitle:a.event.title,priorEventStartMs:a.startMs,priorEventEndMs:a.endMs,error:t}),console.warn("ActivityWatch sync: failed to delete overlapping continuity event.",t),0}let p=[],h=Date.now();for(let e of l)await Qe.getCache().addEvent(t,JJ(e),{trackMilestone:!1})&&p.push(e),Date.now()-h>16&&(await new Promise(e=>window.setTimeout(e,0)),h=Date.now());return p.length}async function LTt(e,t,n,r,a,i,o,s){if(ATt(a,r))return"ignored";if(i){let t=wTt(a,r);if(t){let a=t.sessionId;if(a||(a=KJ(n,r)),a&&await Wbe(e,a,r.endMs))return t.sessionId=a,t.endMs=r.endMs,t.cleanTitle=r.title,t.event={...t.event,...JJ(r),uid:t.event.uid},"extended"}else{let t=KJ(n,r);if(t&&await Wbe(e,t,r.endMs))return"extended"}}if(o){let e=OTt(a,r,s);for(let t of e){let e=t.sessionId;if(e||(e=Fbe(n,t)),e)try{await Qe.getCache().deleteEvent(e,{force:!0,trackMilestone:!1}),t.sessionId=e;let n=a.indexOf(t);n>=0&&a.splice(n,1)}catch(e){console.warn("ActivityWatch sync: failed to replace stale continuity event.",e)}}}let l=JJ(r);if(await Qe.getCache().addEvent(t,l,{trackMilestone:!1})){let e=KJ(n,r);return a.push({sessionId:e,calendarId:t,cleanTitle:r.title,event:l,startMs:r.startMs,endMs:r.endMs}),"created"}return"ignored"}var PTt=kr(()=>{Wo(),Bbe(),Vbe()}),tQ={};function y7(e,t){return!!e.enabled&&("auto"!==t?.trigger||e.autoSyncEnabled&&"auto"===e.syncStrategy)}async function ZNr(e,t){let n=Qe.getSettings().activityWatch;if(!y7(n,t))return;if(!n.targetCalendarId)return void Na(Ce("settings.activityWatch.sync.targetNotSet"));let r=Qe.getProviderRegistry().getInstance(n.targetCalendarId);if(r&&r.getCapabilities()?.canCreate){t?.suppressNotices||Na(Ce("settings.activityWatch.sync.fetchingData"));try{let a,i=await(0,ITt.requestUrl)(`${n.apiUrl}/api/0/buckets`);if(200!==i.status)throw new Error(Ce("settings.activityWatch.sync.failedFetchBuckets",{status:i.status.toString()}));try{a=i.json}catch{a=JSON.parse(i.text)}if(!y7(Qe.getSettings().activityWatch,t))return;let o=new Set;for(let e of Object.values(a))("currentwindow"===e.type||"web.tab.current"===e.type||"afk"===e.type||e.id.includes("window")||e.id.includes("web")||e.id.includes("afk"))&&o.add(e.id);let s=new Date(n.lastSyncTime>0?n.lastSyncTime:Date.now()-864e5),l=new Date;"custom"===n.syncStrategy&&(n.customDateStart&&(s=new Date(n.customDateStart)),n.customDateEnd&&(l=new Date(n.customDateEnd))),t?.overrideStart&&(s=t.overrideStart),t?.overrideEnd&&(l=t.overrideEnd);let c,u=n.profiles||[],d=new Set(u.map(e=>v_(e.name,e.color))),p=TTt(e,n.targetCalendarId,d),h=await qTt(e,n,a,o,u,d),f="custom"===n.syncStrategy,m=n.lastSyncTime,g=[];if(!f&&n.lastSyncTime>0){let e=ETt(p,m);if(e){let t=DTt(u,e,m);t&&(g=[t.seedState],c=t.matchedProfile)}}if(!f&&n.lastSyncTime>0&&!t?.overrideStart){let e=YJ(u,c);s=new Date(Math.max(0,n.lastSyncTime-e))}h&&!t?.overrideStart&&(s=new Date(Math.max(0,h.priorEvent.startMs-gh)),g=[]);let y=await eQ(n.apiUrl,a,o,u,s,l,g);if(!y7(Qe.getSettings().activityWatch,t))return;let b=[];if(!f&&n.lastSyncTime>0){Qe.getProviderRegistry().buildMap(Qe.getCache().store);let t=l;b=await $J(e,n.targetCalendarId,s,t)}let v=r.getCapabilities(),M=v.canEdit,x=v.canDelete,z=v.canDelete,_=0;if(h&&!t?.overrideStart){if(!y7(Qe.getSettings().activityWatch,t))return;_+=await RTt(e,n.targetCalendarId,p,y,h.priorEvent,z,b,d)}else{let r=[...y].sort((e,t)=>e.startMs-t.startMs),a=Date.now();for(let i of r){if(!y7(Qe.getSettings().activityWatch,t))return;"created"===await LTt(e,n.targetCalendarId,p,i,b,M,x,d)&&_++,Date.now()-a>16&&(await new Promise(e=>window.setTimeout(e,0)),a=Date.now())}}if("custom"!==n.syncStrategy){if(!y7(Qe.getSettings().activityWatch,t))return;n.lastSyncTime=l.getTime(),await Qe.saveSettings()}t?.suppressNotices||Na(Ce("settings.activityWatch.sync.addedEvents",{count:_.toString()}))}catch(e){e instanceof Error?(t?.suppressNotices||Na(Ce("settings.activityWatch.sync.failedWithError",{message:e.message})),console.error("ActivityWatch sync error:",e)):t?.suppressNotices||Na(Ce("settings.activityWatch.sync.failed"))}}else t?.suppressNotices||Na(Ce("settings.activityWatch.sync.targetNotFoundOrReadOnly",{calendarId:n.targetCalendarId}))}Zs(tQ,{__testing:()=>$Nr,syncActivityWatch:()=>ZNr});var ITt,$Nr,O2,rQ=kr(()=>{Fc(),Wo(),ITt=require("obsidian"),Zo(),Bbe(),Vbe(),PTt(),$Nr={pickLatestEvent:GJ,pickBestReconstructedBlockForPriorEvent:XJ,coversPriorEventRange:QJ}}),zI=kr(()=>{O2=class{static{this.strategies=new Map}static register(e,t){this.strategies.set(e,t)}static get(e){return this.strategies.get(e)}static has(e){return this.strategies.has(e)}}}),jTt={};function sWr(e){O2.has("analysis")||O2.register("analysis",new sQ(e))}Zs(jTt,{AnalysisWidgetStrategy:()=>sQ,registerChronoAnalysisStrategy:()=>sWr});var sQ,GTt=kr(()=>{oye(),uye(),Wo(),iye(),zI(),sQ=class{constructor(e){this.plugin=e}async render(e,t,n){e.empty(),e.addClass("chrono-analyser-view");let r=t;e.createDiv({attr:{id:"mainChart"}}),e.createEl("select",{attr:{id:"timeSeriesTypeSelect"},cls:"hidden-controls"}).createEl("option",{attr:{value:r.type||"line"}}),e.createEl("select",{attr:{id:"timeSeriesStackingLevelSelect"},cls:"hidden-controls"}).createEl("option",{attr:{value:r.stackBy||"hierarchy"}}),e.createEl("select",{attr:{id:"timeSeriesGranularitySelect"},cls:"hidden-controls"}).createEl("option",{attr:{value:r.granularity||"weekly"}}),e.createEl("select",{attr:{id:"activityPatternTypeSelect"},cls:"hidden-controls"}).createEl("option",{attr:{value:r.patternType||"dayOfWeek"}}),e.createDiv({attr:{id:"errorLogContainer"},cls:"hidden-controls"}),e.createDiv({attr:{id:"errorLogSummary"},cls:"hidden-controls"}),e.createDiv({attr:{id:"errorLogEntries"},cls:"hidden-controls"});let a=new l7,i=()=>{let t=r.chart||"sunburst",n=r.metric||"duration",i="time-series"===t||"activity"===t,o=[];r.titleFilter&&o.push(`"${r.titleFilter}"`),r.tagFilter&&o.push(`"${r.tagFilter}"`);let s={pattern:o.join(" ")||void 0,hierarchy:r.pathFilter||void 0,filterStartDate:r.startDate?new Date(r.startDate):null,filterEndDate:r.endDate?new Date(r.endDate):null},{records:l}=a.getAnalyzedData(s,null,{expandRecurring:i});if(0!==l.length)switch(t){case"pie":{let t=r.breakdownBy||"hierarchy",i=a.preparePieChartData(l,t,n);$K(e,i,()=>{},!1,!0,n);break}case"sunburst":{let t=r.level||"subcategory",i=a.prepareSunburstData(l,t,n);KK(e,i,()=>{},!1,!0,n);break}case"time-series":JK(e,l,!1,!0,n);break;case"activity":QK(e,l,()=>{},!1,!0,n);break;default:wb(e,`Unknown chart type: ${t}`)}else wb(e,"No data matches the current filters.")},o=new c7(Qe.getCache(),a,Qe.getSettings(),()=>i());return o.initialize(),i(),n.onUpdate(()=>{o.initialize()}),{updateSize(){let t=e.querySelector(".js-plotly-plot"),n=window.Plotly;t&&n&&n.Plots.resize(t)},async refresh(){o.initialize()},destroy(){o.destroy(),a.clear(),e.empty()}}}}}),XTt={};function lWr(e){O2.has("weather")||O2.register("weather",new cQ(e))}Zs(XTt,{EmbeddedWeather:()=>lQ,WeatherWidgetStrategy:()=>cQ,registerWeatherStrategy:()=>lWr});var uQ,lQ,cQ,YTt=kr(()=>{uQ=require("obsidian"),Lu(),$5(),zI(),WC(),Mye(),Wo(),lQ=class extends uQ.Component{constructor(e,t,n,r){super(),this.callback=null,this.plugin=e,this.app=e.app,this.containerEl=t,this.config=n,this.widgetCtx=r}onload(){this.initializeWeather()}onunload(){this.containerEl.empty(),this.callback=null}async initializeWeather(){this.containerEl.empty(),this.containerEl.removeClass("ofc-embedded-calendar-container"),this.containerEl.addClass("ofc-embedded-weather-container");let e=this.config.orientation||"horizontal";if(this.containerEl.removeClass("is-horizontal"),this.containerEl.removeClass("is-vertical"),this.containerEl.addClass(`is-${e}`),this.config.styles&&"object"==typeof this.config.styles&&!Array.isArray(this.config.styles))for(let[e,t]of Object.entries(this.config.styles)){let n=e.startsWith("--")?e:e.replace(/([A-Z])/g,"-$1").toLowerCase();this.containerEl.style.setProperty(n,String(t))}let t=Qe.getSettings();if(null===t.weatherLatitude||null===t.weatherLongitude){let e=this.containerEl.createDiv({cls:"ofc-weather-unconfigured"});return e.setText("Weather is not configured. Click here to configure weather location."),e.setCssProps({cursor:"pointer"}),void e.addEventListener("click",()=>{let e=this.app;e&&e.setting&&(e.setting.open(),e.setting.openTabById("full-calendar-remastered"))})}let n=t.weatherLatitude,r=t.weatherLongitude,a="F"===t.weatherUnit?"F":"C",i=this.config.type||"day",o=null,s=this.config.defaultDate||"auto";if("today"===s)o=Fn.now().toISODate();else if(s&&"auto"!==s)o=s;else{let e=this.app.vault.getAbstractFileByPath(this.widgetCtx.sourcePath);if(e instanceof uQ.TFile){let t=ky(e,"day");t&&(o=t.format("YYYY-MM-DD"))}o||(o=Fn.now().toISODate())}if("day"===i){let e=await NC(n,r,o,o);if(!e||!e[o])return void this.containerEl.createDiv({cls:"ofc-weather-error"}).setText(`Failed to load weather forecast for ${o}.`);this.renderDayWeather(this.containerEl,o,e[o],a,this.config)}else{let e=t.firstDay,i=Fn.fromISO(o);i.isValid||(i=Fn.now());let s=0===e?7:e,l=i.weekday-s;l<0&&(l+=7);let c=i.minus({days:l}),u=c.plus({days:6}),d=c.toISODate()||"",p=u.toISODate()||"",h=await NC(n,r,d,p);if(!h)return void this.containerEl.createDiv({cls:"ofc-weather-error"}).setText("Failed to load weekly forecast.");this.renderWeekWeather(this.containerEl,c,h,a,this.config)}this.callback||(this.callback=()=>{this.initializeWeather()},this.widgetCtx.onUpdate(this.callback))}renderDayWeather(e,t,n,r,a){e.empty();let i=a.orientation||"horizontal",o="minimal"===a.variant,s=e.createDiv({cls:`ofc-weather-widget-day is-${i}${o?" is-minimal":""}`});if(!o){let e=!1!==a.stickyHeader,i=s.createDiv({cls:"ofc-weather-day-card is-clickable"+(e?" is-sticky":"")});i.addEventListener("click",()=>{new g5(this.app,t,n).open()});let o=`Condition: ${n.desc}\nTemperature Range: ${pA(n.minTemp,n.maxTemp,r)}\nMin Temp: ${yg(n.minTemp,r)}\nMax Temp: ${yg(n.maxTemp,r)}`;i.setAttribute("title",o);let l=i.createDiv({cls:"ofc-weather-day-summary"}),c=Qe.getSettings().weatherCity||"Local Weather";l.createDiv({cls:"ofc-weather-location"}).setText(c);let u=new Date(`${t}T00:00:00`).toLocaleDateString(void 0,{weekday:"long",month:"short",day:"numeric"});l.createDiv({cls:"ofc-weather-date"}).setText(u);let d=i.createDiv({cls:"ofc-weather-main-info"});d.createSpan({cls:"ofc-weather-emoji-large"}).setText(n.emoji),d.createDiv({cls:"ofc-weather-temp-range"}).createSpan({cls:"ofc-weather-temp-val"}).setText(pA(n.minTemp,n.maxTemp,r))}if(n.hourly&&n.hourly.length>0){let e=s.createDiv({cls:"ofc-weather-hourly-container"}),t=(new Date).getHours(),a=`${String(t).padStart(2,"0")}:00`;n.hourly.forEach(t=>{let n=e.createDiv({cls:"ofc-weather-hourly-item"});t.time===a&&n.addClass("is-current");let i=`Condition: ${t.desc}\nTemperature: ${yg(t.temp,r)}\nApparent Temp: ${yg(t.apparentTemp,r)}\nPrecipitation: ${t.precipProb}%\nHumidity: ${t.humidity}%\nWind Speed: ${t.windSpeed} km/h`;if(n.setAttribute("title",i),n.createDiv({cls:"ofc-weather-hour-time"}).setText(t.time),n.createDiv({cls:"ofc-weather-hour-emoji"}).setText(t.emoji),n.createDiv({cls:"ofc-weather-hour-temp"}).setText(yg(t.temp,r)),!o){let e=n.createDiv({cls:"ofc-weather-hour-precip"});t.precipProb>0?e.setText(`💧 ${t.precipProb}%`):e.setText("")}}),window.requestAnimationFrame(()=>{let t=e.querySelector(".is-current");t&&t.scrollIntoView({behavior:"auto",block:"nearest",inline:"center"})})}}renderWeekWeather(e,t,n,r,a){e.empty();let i=a.orientation||"horizontal",o="minimal"===a.variant,s=e.createDiv({cls:`ofc-weather-widget-week is-${i}${o?" is-minimal":""}`}).createDiv({cls:"ofc-weather-week-container"}),l=Fn.now().toISODate()||"";for(let e=0;e<7;e++){let a=t.plus({days:e}),i=a.toISODate()||"",o=n[i],c=s.createDiv({cls:"ofc-weather-week-item"});if(i===l&&c.addClass("is-current"),o){c.addClass("is-clickable"),c.addEventListener("click",()=>{new g5(this.app,i,o).open()});let e=`Date: ${i}\nCondition: ${o.desc}\nTemperature Range: ${pA(o.minTemp,o.maxTemp,r)}\nMin Temp: ${yg(o.minTemp,r)}\nMax Temp: ${yg(o.maxTemp,r)}`;c.setAttribute("title",e)}let u=a.toLocaleString({weekday:"short"}),d=a.toLocaleString({day:"numeric",month:"numeric"}),p=c.createDiv({cls:"ofc-weather-week-day-label"});p.createDiv({cls:"ofc-weather-week-day-name"}).setText(u),p.createDiv({cls:"ofc-weather-week-day-date"}).setText(d),o?(c.createDiv({cls:"ofc-weather-week-emoji"}).setText(o.emoji),c.createDiv({cls:"ofc-weather-week-temp"}).setText(pA(o.minTemp,o.maxTemp,r))):(c.createDiv({cls:"ofc-weather-week-emoji"}).setText("❓"),c.createDiv({cls:"ofc-weather-week-temp"}).setText("N/a"))}window.requestAnimationFrame(()=>{let e=s.querySelector(".is-current");e&&e.scrollIntoView({behavior:"auto",block:"nearest",inline:"center"})})}},cQ=class{constructor(e){this.plugin=e}async render(e,t,n){let r=new lQ(this.plugin,e,t,n);return r.load(),{updateSize(){},async refresh(){},destroy(){r.unload()}}}}}),ZTt={};function cWr(e){O2.has("backlog")||O2.register("backlog",new dQ(e))}Zs(ZTt,{BacklogWidgetStrategy:()=>dQ,registerBacklogStrategy:()=>cWr});var dQ,$Tt=kr(()=>{zI(),Aae(),dQ=class{constructor(e){this.plugin=e,this.backlogEvents=new Map}async render(e,t,n){e.addClass("ofc-embedded-backlog-container");let r=new o8(this.plugin,e,t,e=>{n.onUpdate(e);let t=this.plugin.app.workspace.on("full-calendar:backlog-changed",e);this.backlogEvents.set(r,t)});return r.load(),{updateSize(){},async refresh(){await r.refresh()},destroy:()=>{let e=this.backlogEvents.get(r);e&&(this.plugin.app.workspace.offref(e),this.backlogEvents.delete(r)),r.unload()}}}}}),QTt={};Zs(QTt,{DeprecationWarningModal:()=>Jbe});var fQ,Jbe,e8t=kr(()=>{fQ=require("obsidian"),Jbe=class extends fQ.Modal{constructor(e,t){super(e),this.deprecatedSources=t}onOpen(){this.modalEl.addClass("full-calendar-deprecation-modal");let{contentEl:e}=this;e.createEl("h2",{text:"Deprecated calendar providers in use"}),e.createEl("p",{text:"The following calendar sources in your settings use deprecated providers that will be removed in a future version of the plugin. Please update your settings to avoid losing access to these events:"});let t=e.createEl("ul");for(let e of this.deprecatedSources){let n=t.createEl("li");n.createEl("strong",{text:`${e.name} `}),n.createEl("span",{text:`(${e.typeName} provider) — ${e.message}`})}e.createEl("p",{text:"Please visit the plugin settings to migrate or remove these calendar sources."}),new fQ.Setting(e).addButton(e=>e.setButtonText("Dismiss").setCta().onClick(()=>{this.close()}))}onClose(){this.contentEl.empty()}}}),n8t={};Zs(n8t,{LocalServer:()=>Qbe});var fWr,r8t,t8t,hWr,Qbe,a8t=kr(()=>{r8t=(fWr=()=>typeof window<"u"&&window.require?window.require:require)(),t8t=r8t("http"),hWr=r8t("url"),Qbe=class{constructor(e,t){this.server=null,this.api=e,this.port=t}async start(){return this.server&&await this.stop(),new Promise((e,t)=>{t8t?(this.server=t8t.createServer((e,t)=>{this.handleRequest(e,t)}),this.server.on("error",e=>{t(e)}),this.server.listen(this.port,"127.0.0.1",()=>{e()})):t(new Error("Node.js http module is not available in this environment."))})}stop(){return new Promise(e=>{this.server?this.server.close(t=>{this.server=null,e()}):e()})}async handleRequest(e,t){if(t.setHeader("Access-Control-Allow-Origin","*"),t.setHeader("Access-Control-Allow-Methods","GET, POST, PUT, DELETE, OPTIONS"),t.setHeader("Access-Control-Allow-Headers","Content-Type, Authorization"),"OPTIONS"===e.method)return t.writeHead(204),void t.end();try{let n=hWr.parse(e.url||"",!0),r=n.pathname||"",a=e.headers.authorization,i=Array.isArray(a)?a[0]:a;if(!i||!i.startsWith("Bearer "))return void this.sendJson(t,401,{error:"Unauthorized",message:"Missing or invalid Authorization header. Must be Bearer token."});let o=i.substring(7).trim(),s=this.api.withToken(o);if(!s)return void this.sendJson(t,403,{error:"Forbidden",message:"Invalid or expired API token."});if("/api/v1/events"===r){if("GET"===e.method){let e,r,a=n.query||{},i={};if(a.calendar&&(i.calendarIds=Array.isArray(a.calendar)?a.calendar:String(a.calendar).split(",")),a.query&&(i.textSearch={query:Array.isArray(a.query)?a.query[0]:String(a.query),mode:"default"}),void 0!==a.isTask&&(i.isTask="true"===a.isTask),void 0!==a.isCompleted&&(i.isCompleted="true"===a.isCompleted),a.start){let t=Array.isArray(a.start)?a.start[0]:a.start;e=isNaN(Number(t))?new Date(String(t)).getTime():Number(t)}if(a.end){let e=Array.isArray(a.end)?a.end[0]:a.end;r=isNaN(Number(e))?new Date(String(e)).getTime():Number(e)}(void 0!==e||void 0!==r)&&(i.dateRange={...void 0!==e?{startMillis:e}:{},...void 0!==r?{endMillis:r}:{}});let o=s.getEvents(i);return void this.sendJson(t,200,{success:!0,count:o.length,events:o})}if("POST"===e.method){let n=await this.readRequestBody(e),r=n.calendarId,a=n.event,i=n.options;if(!r||!a)return void this.sendJson(t,400,{error:"Bad Request",message:"Fields calendarId and event are required."});let o=await s.createEvent(r,a,i);return void this.sendJson(t,201,{success:!0,result:o})}}let l=r.match(/^\/api\/v1\/events\/([^/]+)$/);if(l){let n=decodeURIComponent(l[1]);if("GET"===e.method){let e=s.getEventDetails(n);return e?void this.sendJson(t,200,{success:!0,details:e}):void this.sendJson(t,404,{error:"Not Found",message:`Event not found with ID: ${n}`})}if("PUT"===e.method){let r=await this.readRequestBody(e),a=r.event,i=r.options;if(!a)return void this.sendJson(t,400,{error:"Bad Request",message:"Field event is required."});let o=await s.updateEvent(n,a,i);return void this.sendJson(t,200,{success:!0,result:o})}if("DELETE"===e.method){let r=(await this.readRequestBody(e).catch(()=>({}))).options;return await s.deleteEvent(n,r),void this.sendJson(t,200,{success:!0})}}if("/api/v1/ui/open-calendar"===r&&"POST"===e.method)return await s.openCalendar(),void this.sendJson(t,200,{success:!0});if("/api/v1/ui/open-sidebar"===r&&"POST"===e.method)return await s.openSidebar(),void this.sendJson(t,200,{success:!0});if("/api/v1/ui/change-view"===r&&"POST"===e.method){let n=(await this.readRequestBody(e)).viewName;return n?(await s.changeView(n),void this.sendJson(t,200,{success:!0})):void this.sendJson(t,400,{error:"Bad Request",message:"Field viewName is required."})}if("/api/v1/calendars"===r&&"GET"===e.method){let e=s.getCalendarSources();return void this.sendJson(t,200,{success:!0,calendars:e})}if("/api/v1/providers/revalidate"===r&&"POST"===e.method){let n=(await this.readRequestBody(e).catch(()=>({}))).force;return s.revalidateRemoteCalendars(!!n),void this.sendJson(t,200,{success:!0})}if("/api/v1/settings"===r){if("GET"===e.method){let e=s.getSettings();return void this.sendJson(t,200,{success:!0,settings:e})}if("PUT"===e.method){let n=await this.readRequestBody(e),r=n.settings,a=n.options;return r?(await s.updateSettings(r,a),void this.sendJson(t,200,{success:!0})):void this.sendJson(t,400,{error:"Bad Request",message:"Field settings is required."})}}this.sendJson(t,404,{error:"Not Found",message:`No handler found for ${e.method} ${r}`})}catch(e){let n=e;this.sendJson(t,500,{error:"Internal Server Error",message:n.message||String(e)})}}sendJson(e,t,n){e.writeHead(t,{"Content-Type":"application/json; charset=utf-8"}),e.end(JSON.stringify(n))}readRequestBody(e){return new Promise((t,n)=>{let r="";e.on("data",e=>{r+=e}),e.on("end",()=>{try{t(r?JSON.parse(r):{})}catch{n(new Error("Invalid JSON body"))}}),e.on("error",e=>{n(e)})})}}}),pWr={};Zs(pWr,{default:()=>hQ}),module.exports=E_(pWr),Fc(),Wo(),Fc(),Wo(),Lu(),Zo(),Fc(),Wo(),h1(),Lu(),cC(),h1(),Lu(),Zo(),Z0();var M_e=({event:e,type:t,defaultReminderMinutes:n,onSnooze:r,onDismiss:a,onOpen:i})=>{let[o,s]=Li(10),l=e=>Fn.fromFormat(e,"HH:mm").toFormat("h:mm a"),c=[{label:Ce("modals.reminder.presets.5m"),value:5},{label:Ce("modals.reminder.presets.10m"),value:10},{label:Ce("modals.reminder.presets.15m"),value:15},{label:Ce("modals.reminder.presets.30m"),value:30},{label:Ce("modals.reminder.presets.1h"),value:60}];return Rt("div",{className:"full-calendar-reminder-modal",children:[Rt("div",{className:"modal-header",children:Rt("h2",{children:Ce("notifications.eventStarting.title")})}),Rt("div",{className:"reminder-content",children:[Rt("h3",{children:e.title}),e.allDay?Rt("p",{children:Ce("notifications.allDaySuffix")}):Rt("p",{children:[e.startTime&&l(e.startTime),e.endTime&&` - ${l(e.endTime)}`]}),"default"===t&&Rt("div",{className:"callout callout-warning u-mt-1rem",children:[Rt("div",{className:"callout-title",children:Ce("modals.reminder.snoozeWarningTitle")}),Rt("div",{className:"callout-content",children:Rt("p",{children:Ce("modals.reminder.snoozeWarningBody")})})]})]}),Rt("form",{onSubmit:e=>{e.preventDefault(),r(o)},className:"reminder-controls u-mt-1-5rem",children:[Rt("div",{className:"setting-item",children:[Rt("div",{className:"setting-item-info",children:Rt("div",{className:"setting-item-name",children:Ce("modals.reminder.snoozeFor")})}),Rt("div",{className:"setting-item-control",children:Rt("select",{value:o,onChange:e=>s(parseInt(e.target.value)),children:c.map(e=>Rt("option",{value:e.value,children:e.label},e.value))})})]}),Rt("div",{className:"modal-footer",children:[Rt("button",{type:"button",onClick:a,children:Ce("modals.reminder.dismiss")}),Rt("button",{type:"button",onClick:i,className:"mod-cta",children:Ce("modals.reminder.openNote")}),Rt("button",{type:"submit",className:"mod-primary",children:Ce("modals.reminder.snooze")})]})]})]})};function Cze(e,t,n,r){new Mv(e.app,a=>Promise.resolve(io(M_e,{event:t,type:r,defaultReminderMinutes:Qe.getSettings().defaultReminderMinutes,onDismiss:()=>{a()},onOpen:()=>{(async()=>{try{await hT(Qe.getCache(),e.app,n)}catch(e){Na("Could not open event file."),console.error(e)}a()})()},onSnooze:e=>{(async()=>{try{await Qe.getCache().processEvent(n,t=>{if("default"===r){if(t.allDay)return Na("Cannot snooze start time of all-day events."),t;let n=Fn.fromFormat(t.startTime,"HH:mm");if(!n.isValid)return t;let r=n.plus({minutes:e});if(t.endTime){let e=Fn.fromFormat(t.endTime,"HH:mm");if(e.isValid&&r>=e)throw new Error("Cannot snooze: New start time would be after end time.")}return{...t,startTime:r.toFormat("HH:mm")}}let n=t.notify?.value||0,a=Math.max(0,n-e);return{...t,notify:{value:a}}}),Na(`Snoozed for ${e} minutes.`)}catch(e){console.error("Snooze failed",e),e instanceof Error?Na(e.message):Na("Failed to snooze event.")}a()})()}}))).open()}pT();var vW=class{constructor(e){this.timeTickCallback=null,this.notifiedEvents=new Set,this.plugin=e}unload(){this.timeTickCallback&&(Qe.getCache().off("time-tick",this.timeTickCallback),this.timeTickCallback=null)}update(e){let t=e.enableReminders,n=null!==this.timeTickCallback;t&&!n?(this.notifiedEvents.clear(),this.timeTickCallback=e=>this.handleTimeTick(e),Qe.getCache().on("time-tick",this.timeTickCallback)):!t&&n&&this.timeTickCallback&&(Qe.getCache().off("time-tick",this.timeTickCallback),this.timeTickCallback=null)}handleTimeTick(e){if(!Qe.getCache().initialized)return;let t=Fn.now(),n=t.plus({hours:48}),r=[...e.current?[e.current]:[],...e.upcoming];for(let e of r)e.start>n||this.checkAndNotify(e,t)}getTriggerTime(e){let{event:t,start:n}=e,{enableDefaultReminder:r,defaultReminderMinutes:a}=Qe.getSettings();return t.notify&&"number"==typeof t.notify.value?n.minus({minutes:t.notify.value}):r?n.minus({minutes:a}):null}getUpcomingRemindersPayload(){let e=Qe.getCache().getOccurrenceCache();if(!e)return[];let t=Fn.now().plus({hours:24}),n=[];for(let r of e){let{event:e,start:a}=r,i=this.getTriggerTime(r);if(!i||i>t)continue;let o=Math.floor(i.toMillis()/1e3);if(o<=Math.floor(Date.now()/1e3))continue;let s="recurring"===e.type||"rrule"===e.type?`${r.id}-${a.toMillis()}`:r.id,l=encodeURIComponent(this.plugin.app.vault.getName()),c=r.location?encodeURIComponent(r.location.file.path):"",u=c?`obsidian://open?vault=${l}&file=${c}`:`obsidian://open?vault=${l}`;n.push({id:s,title:e.title.slice(0,64),body:(e.description||"").slice(0,256),trigger_at_epoch:o,action_url:u})}return n}checkAndNotify(e,t){let n=this.getTriggerTime(e);if(!n)return;let r=t>=n,a=n.plus({minutes:5})<t;if(r&&!a){let t=e.event.notify&&"number"==typeof e.event.notify.value?"custom":"default";this.tryTrigger(e,t,n)}}tryTrigger(e,t,n){let{id:r,event:a}=e,i=`${r}::${t}::${n.toISO()}`;if(this.notifiedEvents.has(i))return;let o=Qe.getSettings().fcrReminderCompanion;o&&o.enabled||(this.triggerNotification(a,r,t),this.notifiedEvents.add(i))}triggerNotification(e,t,n){let r=Ce("notifications.eventStarting.title"),a=!e.allDay&&e.startTime?Fn.fromFormat(e.startTime,"HH:mm").toFormat("h:mm a"):"",i=`${e.title}`;if(a&&(i+=` at ${a}`),"custom"===n){let t=e.notify?.value||0;i+=`\n${Ce("notifications.inMinutes",{mins:t.toString()})}`}else{let e=Qe.getSettings().defaultReminderMinutes;i+=`\n${Ce("notifications.inMinutes",{mins:e.toString()})}`}try{new Notification(r,{body:i}).onclick=()=>{Cze(this.plugin,e,t,n)}}catch(e){console.error(Ce("notifications.failed"),e),Na(Ce("notifications.errorBody"))}}};Wo();var Ste=require("obsidian");Fc(),Zo();var gW=class{constructor(e){this.updateCallback=null,this.debounceTimer=null,this.companionOnline=!1,this.isCheckingStatus=!1,this.statusTimeoutId=null,this.plugin=e}getSettings(){return Qe.getSettings()}getCompanionSettings(){let e=this.getSettings();return e.fcrReminderCompanion||(e.fcrReminderCompanion={enabled:!1,apiUrl:"http://127.0.0.1:45677"}),e.fcrReminderCompanion}async checkDaemonStatus(){if(this.isCheckingStatus)return this.companionOnline;this.isCheckingStatus=!0;let e=this.getCompanionSettings().apiUrl||"http://127.0.0.1:45677";try{let t=(0,Ste.requestUrl)({url:`${e}/status`,method:"GET",throw:!1}),n=new Promise((e,t)=>{this.statusTimeoutId=window.setTimeout(()=>{t(new Error("Timeout"))},2e3)}),r=await Promise.race([t,n]);if(null!==this.statusTimeoutId&&(window.clearTimeout(this.statusTimeoutId),this.statusTimeoutId=null),200===r.status){let e={};"object"==typeof r.json&&null!==r.json?e=r.json:r.text&&(e=JSON.parse(r.text)),this.companionOnline="running"===e.status}else this.companionOnline=!1}catch{null!==this.statusTimeoutId&&(window.clearTimeout(this.statusTimeoutId),this.statusTimeoutId=null),this.companionOnline=!1}finally{this.isCheckingStatus=!1}return this.companionOnline}unload(){this.updateCallback&&(Qe.getCache().off("update",this.updateCallback),this.updateCallback=null),this.debounceTimer&&(window.clearTimeout(this.debounceTimer),this.debounceTimer=null)}update(e){let t=this.getCompanionSettings(),n=e.enableReminders&&t.enabled,r=null!==this.updateCallback;n&&!r?(this.updateCallback=()=>this.handleCacheUpdate(),Qe.getCache().on("update",this.updateCallback),(async()=>{let e=!1;for(let t=0;t<5;t++){if(!this.updateCallback)return;if(e=await this.checkDaemonStatus(),e)break;t<4&&await new Promise(e=>window.setTimeout(e,3e3))}if(e&&this.updateCallback)await this.syncToCompanion();else if(!e&&this.updateCallback){let e=Na(Ce("notices.fcrReminderCompanionOfflineBold")||"WARNING: FCR Reminder Companion daemon is offline. You will NOT receive native desktop notifications.",15e3);e&&e.messageEl&&e.messageEl.setCssProps({fontWeight:"bold",borderLeft:"4px solid var(--text-error, #ff5555)"})}})()):!n&&r&&this.unload()}handleCacheUpdate(){this.debounceTimer&&window.clearTimeout(this.debounceTimer),this.debounceTimer=window.setTimeout(()=>{this.syncToCompanion()},800)}async syncToCompanion(){let e=this.getSettings(),t=this.getCompanionSettings();if(e.enableReminders&&t.enabled)if(await this.checkDaemonStatus())try{let e=this.plugin.notificationManager.getUpcomingRemindersPayload(),n=t.apiUrl||"http://127.0.0.1:45677",r=await(0,Ste.requestUrl)({url:`${n}/sync`,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),throw:!1});(r.status<200||r.status>=300)&&console.error("[FCR Reminder] Failed to synchronize reminders with daemon:",r.status)}catch(e){console.error("[FCR Reminder] Graceful exception handled during sync:",e)}else console.warn("[FCR Reminder] Companion app is offline. Skipping sync.")}};Wo();var qze=require("obsidian");function Eze(e,t){let n=Math.floor(e.as("minutes")),r=Math.floor(e.as("hours"));if(n<1)return`${t} now`;if(n<60)return`${t} in ${n}m`;if(r<24){let e=n%60;return 0===e?`${t} in ${r}h`:`${t} in ${r}h ${e}m`}return`${t} in ${Math.floor(e.as("days"))}d`}Lu(),pT();var k7t=(e,t)=>{Object.entries(t).forEach(([t,n])=>{e.style.setProperty(t,n)})},yW=class{constructor(e){this.statusBarItemEl=null,this.timeTickCallback=null,this.currentState=null,this.plugin=e}unload(){this.timeTickCallback&&(Qe.getCache().off("time-tick",this.timeTickCallback),this.timeTickCallback=null),this.statusBarItemEl&&(this.statusBarItemEl.remove(),this.statusBarItemEl=null)}update(e){let t=e.showEventInStatusBar,n=null!==this.timeTickCallback;t&&!n?(this.statusBarItemEl||(this.statusBarItemEl=this.plugin.addStatusBarItem(),this.statusBarItemEl.onClickEvent(e=>this.handleClick(e))),this.timeTickCallback=e=>this.handleTimeTick(e),Qe.getCache().on("time-tick",this.timeTickCallback)):!t&&n&&(this.timeTickCallback&&(Qe.getCache().off("time-tick",this.timeTickCallback),this.timeTickCallback=null),this.statusBarItemEl&&(this.statusBarItemEl.remove(),this.statusBarItemEl=null))}handleTimeTick(e){if(this.currentState=e,!this.statusBarItemEl)return;let t=Fn.now(),n="",r=e.current,a=e.upcoming[0];if(r){let e=Eze(r.end.diff(t),"ends"),a=r.event.title;n=`Event: ${a.length>25?`${a.substring(0,25)}...`:a} (${e})`}else if(a){let e=Eze(a.start.diff(t),"starts"),r=a.event.title;n=`Next: ${r.length>25?`${r.substring(0,25)}...`:r} (${e})`}this.statusBarItemEl.textContent!==n&&this.statusBarItemEl.setText(n),k7t(this.statusBarItemEl,{display:n?"block":"none"})}handleClick(e){if(!this.currentState)return;let t=new qze.Menu;this.currentState.current&&t.addItem(e=>{e.setTitle(`Go to note for "${this.currentState?.current?.event.title}"`).setIcon("file-text").onClick(()=>{this.currentState?.current&&hT(Qe.getCache(),this.plugin.app,this.currentState.current.id)})}),this.currentState.upcoming.length>0?(t.addSeparator(),t.addItem(e=>e.setTitle("Upcoming events").setDisabled(!0)),this.currentState.upcoming.slice(0,5).forEach(e=>{t.addItem(t=>{let n=e.start.toFormat("h:mm a");t.setTitle(`${n}: ${e.event.title}`).onClick(()=>{hT(Qe.getCache(),this.plugin.app,e.id)})})})):this.currentState.current||t.addItem(e=>e.setTitle("No upcoming events").setDisabled(!0)),t.showAtMouseEvent(e)}},G5e=require("obsidian"),rF=class extends G5e.PluginSettingTab{constructor(e,t,n){super(e,t),this.plugin=t,this.registry=n}async ensureActualTab(){if(!this.actualTab){let{FullCalendarSettingTab:e}=await Promise.resolve().then(()=>(WW(),j5e));this.actualTab=new e(this.app,this.plugin,this.registry)}return this.actualTab}runWithActualTab(e){(async()=>{let t=await this.ensureActualTab();t.containerEl=this.containerEl,e(t)})()}display(){this.renderSettings()}renderSettings(){this.runWithActualTab(e=>{e.renderSettings()})}hide(){this.actualTab?.unmountReactRoots(),this.actualTab?.hide()}showChangelog(){this.runWithActualTab(e=>{e.showChangelog()})}showMilestones(){this.runWithActualTab(e=>{e.showMilestones()})}};function Ere(e){let t=!1,n=e||{},r={calendarSources:n.calendarSources||[],defaultCalendar:n.defaultCalendar??0,firstDay:n.firstDay??0,initialView:n.initialView??{desktop:"timeGridWeek",mobile:"timeGrid3Days"},timeFormat24h:n.timeFormat24h??!1,clickToCreateEventFromMonthView:n.clickToCreateEventFromMonthView??!0,displayTimezone:n.displayTimezone??null,lastSystemTimezone:n.lastSystemTimezone??null,enableAdvancedCategorization:n.enableAdvancedCategorization??!1,chrono_analyser_config:n.chrono_analyser_config??null,categorySettings:n.categorySettings||[],useCustomGoogleClient:n.useCustomGoogleClient??!1,googleClientId:n.googleClientId??"",googleClientSecret:n.googleClientSecret??"",googleUseCopyPasteAuth:n.googleUseCopyPasteAuth??!1,googleAccounts:n.googleAccounts||[],useCustomMicrosoftClient:n.useCustomMicrosoftClient??!1,microsoftClientId:n.microsoftClientId??"",microsoftProxyBaseUrl:n.microsoftProxyBaseUrl??"",microsoftAccounts:n.microsoftAccounts||[],enableLocalServer:n.enableLocalServer??!1,localServerPort:n.localServerPort??8540,useLegacyPlaintextCredentials:n.useLegacyPlaintextCredentials??!1,businessHours:n.businessHours||{enabled:!1,daysOfWeek:[1,2,3,4,5],startTime:"09:00",endTime:"17:00"},enableBackgroundEvents:n.enableBackgroundEvents??!0,enableReminders:n.enableReminders??!0,enableDefaultReminder:n.enableDefaultReminder??!0,defaultReminderMinutes:n.defaultReminderMinutes??10,workspaces:n.workspaces||[],activeWorkspace:n.activeWorkspace??null,showEventInStatusBar:n.showEventInStatusBar??!1,highlightCurrentOrNextEvent:n.highlightCurrentOrNextEvent??!0,slotMinTime:n.slotMinTime??"00:00",slotMaxTime:n.slotMaxTime??"24:00",allDaySlot:n.allDaySlot??!0,timeGridDayHeaderFormat:n.timeGridDayHeaderFormat??"day-mmdd",weekends:n.weekends??!0,hiddenDays:n.hiddenDays??[],dayMaxEvents:n.dayMaxEvents??!1,activityWatch:{...rh.activityWatch,...n.activityWatch||{}},tasksIntegration:{...rh.tasksIntegration,...n.tasksIntegration||{}},fcrReminderCompanion:{...rh.fcrReminderCompanion,...n.fcrReminderCompanion||{}},apiTokens:n.apiTokens||{},authorizedTokens:n.authorizedTokens||{},dev:n.dev,milestones:n.milestones?{counters:n.milestones.counters||{},unlockedAt:n.milestones.unlockedAt||{},shown:n.milestones.shown||{}}:{counters:{},unlockedAt:{},shown:{}},enableMonthlyStatsReport:n.enableMonthlyStatsReport??rh.enableMonthlyStatsReport,lastMonthlyMilestonesGeneratedMonth:n.lastMonthlyMilestonesGeneratedMonth??rh.lastMonthlyMilestonesGeneratedMonth,lastMonthlyMilestonesCheckDate:n.lastMonthlyMilestonesCheckDate??rh.lastMonthlyMilestonesCheckDate,milestoneNotifierDuration:n.milestoneNotifierDuration??rh.milestoneNotifierDuration,currentVersion:n.currentVersion??null,linkedNotesDirectory:n.linkedNotesDirectory??rh.linkedNotesDirectory,linkedNoteLinkStrategy:n.linkedNoteLinkStrategy??rh.linkedNoteLinkStrategy,taskBacklogLastProviderId:n.taskBacklogLastProviderId??n.caldavTaskInboxLastCalendarId??rh.taskBacklogLastProviderId,caldavTaskInboxLastCalendarId:n.caldavTaskInboxLastCalendarId??rh.caldavTaskInboxLastCalendarId,linkedNoteTemplate:n.linkedNoteTemplate??rh.linkedNoteTemplate,weatherCity:n.weatherCity??rh.weatherCity,weatherLatitude:n.weatherLatitude??rh.weatherLatitude,weatherLongitude:n.weatherLongitude??rh.weatherLongitude,weatherHide:n.weatherHide??rh.weatherHide,weatherInputMode:n.weatherInputMode??rh.weatherInputMode,weatherUnit:n.weatherUnit??rh.weatherUnit};r.calendarSources.forEach(e=>{if(!("name"in e)||!e.name)switch(t=!0,e.type){case"local":e.name=e.directory;break;case"dailynote":e.name="Daily Note";break;case"ical":e.name=e.url;break;default:e.name="Unnamed Calendar"}});let a=n.googleAuth||null;a&&r.calendarSources.forEach(e=>{"google"===e.type&&!("googleAccountId"in e)&&!e.auth&&(e.auth=a)});let i=new Map;r.calendarSources.forEach(e=>{if("google"===e.type&&e.auth&&!e.googleAccountId){t=!0;let n=e.auth?.refreshToken;if(n)if(i.has(n)){let t=i.get(n);t&&(e.googleAccountId=t)}else{let t=e.auth;if(t){let a=`gcal_${Math.random().toString(36).slice(2,11)}`,o={id:a,email:"Migrated Account",...t};r.googleAccounts.push(o),i.set(n,a),e.googleAccountId=a}}delete e.auth}});let{updated:o,sources:s}=fqt(r.calendarSources);if(o&&(t=!0),r.calendarSources=s,typeof app<"u"&&app.secretStorage){let e=app.secretStorage,n={googleRefreshToken:e=>`fcr-gcal-ref-${e.toLowerCase().replace(/[^a-z0-9]/g,"-")}`,googleAccessToken:e=>`fcr-gcal-acc-${e.toLowerCase().replace(/[^a-z0-9]/g,"-")}`,googleClientSecret:()=>"fcr-gcal-custom-secret",microsoftRefreshToken:e=>`fcr-ms-ref-${e.toLowerCase().replace(/[^a-z0-9]/g,"-")}`,microsoftAccessToken:e=>`fcr-ms-acc-${e.toLowerCase().replace(/[^a-z0-9]/g,"-")}`,caldavPassword:e=>`fcr-caldav-pwd-${e.toLowerCase().replace(/[^a-z0-9]/g,"-")}`};if(r.useLegacyPlaintextCredentials){r.googleAccounts&&r.googleAccounts.forEach(r=>{let a=e.getSecret(n.googleRefreshToken(r.id));a&&""!==a&&(r.refreshToken=a,e.setSecret(n.googleRefreshToken(r.id),""),t=!0);let i=e.getSecret(n.googleAccessToken(r.id));i&&""!==i&&(r.accessToken=i,e.setSecret(n.googleAccessToken(r.id),""),t=!0)}),r.microsoftAccounts&&r.microsoftAccounts.forEach(r=>{let a=e.getSecret(n.microsoftRefreshToken(r.id));a&&""!==a&&(r.refreshToken=a,e.setSecret(n.microsoftRefreshToken(r.id),""),t=!0);let i=e.getSecret(n.microsoftAccessToken(r.id));i&&""!==i&&(r.accessToken=i,e.setSecret(n.microsoftAccessToken(r.id),""),t=!0)});let a=e.getSecret(n.googleClientSecret());a&&""!==a&&(r.googleClientSecret=a,e.setSecret(n.googleClientSecret(),""),t=!0),r.calendarSources&&r.calendarSources.forEach(r=>{if("caldav"===r.type){let a=e.getSecret(n.caldavPassword(r.id));a&&""!==a&&(r.password=a,e.setSecret(n.caldavPassword(r.id),""),t=!0)}})}else r.googleAccounts&&r.googleAccounts.forEach(r=>{r.refreshToken&&(e.setSecret(n.googleRefreshToken(r.id),r.refreshToken),r.refreshToken=null,t=!0),r.accessToken&&(e.setSecret(n.googleAccessToken(r.id),r.accessToken),r.accessToken=null,t=!0)}),r.microsoftAccounts&&r.microsoftAccounts.forEach(r=>{r.refreshToken&&(e.setSecret(n.microsoftRefreshToken(r.id),r.refreshToken),r.refreshToken=null,t=!0),r.accessToken&&(e.setSecret(n.microsoftAccessToken(r.id),r.accessToken),r.accessToken=null,t=!0)}),r.googleClientSecret&&(e.setSecret(n.googleClientSecret(),r.googleClientSecret),r.googleClientSecret="",t=!0),r.calendarSources&&r.calendarSources.forEach(r=>{"caldav"===r.type&&r.password&&(e.setSecret(n.caldavPassword(r.id),r.password),r.password="",t=!0)})}return r=hqt(r),{settings:r,needsSave:t}}function fqt(e){let t=!1,n=e.map(e=>e.id).filter(e=>!!e),r=e.map(e=>{if(!("id"in e)||!e.id){t=!0;let r=wT(e.type,n);return n.push(r),{...e,id:r}}return e});return{updated:t,sources:r}}function hqt(e){return!e.enableAdvancedCategorization&&e.initialView.desktop.startsWith("resourceTimeline")?(Na(Ce("settings.utils.timelineDisabled"),5e3),{...e,initialView:{...e.initialView,desktop:"timeGridWeek"}}):e}Fc(),HC(),DC(),Zo(),Gb();var qre={bases:{type:"bases",displayName:"Obsidian Bases",message:"The Obsidian Bases calendar provider is deprecated and will be removed in a future version. Please migrate your events to a Local Folder provider and use the new Workspaces Bases integration for advanced filtering."}};Wo();var RT=class{constructor(e){this.id=e.path}},Ey=class{constructor(e){this.id=e}},LT=class{constructor(e){this.id=e}},nF=class{constructor(){this.foreign=new Map,this.related=new Map}clear(){this.foreign.clear(),this.related.clear()}add(e,t){this.foreign.set(t.id,e.id);let n=this.related.get(e.id);n||(n=new Set,this.related.set(e.id,n)),n.add(t.id)}delete(e){let t=this.foreign.get(e.id);if(!t)return;this.foreign.delete(e.id);let n=this.related.get(t);if(!n)throw new Error(`Unreachable: state: relation <${t}> exists in the foreign map but not the related map.`);n.delete(e.id)}getBy(e){let t=this.related.get(e.id);return t?new Set(t):new Set}getRelated(e){return this.foreign.get(e.id)||null}renameKey(e,t){let n=this.related.get(e.id);if(!n)throw new Error(`Key does not exist in map: ${n}`);this.related.delete(e.id),this.related.set(t.id,n)}get numEntries(){return this.foreign.size}get relatedCount(){return[...this.related.values()].filter(e=>e.size>0).length}get groupByRelated(){let e=new Map;for(let[t,n]of this.related.entries())e.set(t,[...n.values()]);return e}},QC=class{constructor(){this.store=new Map,this.calendarIndex=new nF,this.pathIndex=new nF,this.lineNumbers=new Map}clear(){let e=[...this.store.keys()];return this.store.clear(),this.calendarIndex.clear(),this.pathIndex.clear(),this.lineNumbers.clear(),e}get fileCount(){return this.pathIndex.relatedCount}get calendarCount(){return this.calendarIndex.relatedCount}get eventCount(){return this.store.size}getAllEvents(){return this.fetch([...this.store.keys()])}fetch(e){let t=[];return e.forEach(e=>{let n=this.store.get(e);if(!n)return;let r,a=this.pathIndex.getRelated(new Ey(e));a&&(r=this.lineNumbers.get(e));let i=a?{path:a,lineNumber:r}:null,o=this.calendarIndex.getRelated(new Ey(e));if(!o)throw new Error(`Event with id ${e} does not have an associated calendar.`);t.push({id:e,event:n,location:i,calendarId:o})}),t}add({calendarId:e,location:t,id:n,event:r}){if(this.store.has(n))throw new Error(`Event with given ID "${n}" that was supposed to be added to calendar "${e}" already exists in the EventStore within calendar "${this.calendarIndex.getRelated(new Ey(n))}".`);if(this.store.set(n,r),this.calendarIndex.add(new LT(e),new Ey(n)),t){let{file:e,lineNumber:r}=t;this.pathIndex.add(new RT(e),new Ey(n)),null!=r&&this.lineNumbers.set(n,r)}return n}delete(e){let t=this.store.get(e);return t?(this.calendarIndex.delete(new Ey(e)),this.pathIndex.delete(new Ey(e)),this.lineNumbers.delete(e),this.store.delete(e),t):null}deleteEventsAtPath(e){let t=this.pathIndex.getBy(new RT({path:e}));return t.forEach(e=>this.delete(e)),t}deleteEventsInCalendar(e){let t=this.calendarIndex.getBy(new LT(e));return t.forEach(e=>this.delete(e)),t}getEventById(e){return this.store.get(e)||null}getEventsInFile(e){return this.fetch(this.pathIndex.getBy(new RT(e)))}getEventsInCalendar(e){return this.fetch(this.calendarIndex.getBy(new LT(e)))}getEventsInFileAndCalendar(e,t){let n=this.pathIndex.getBy(new RT(e)),r=this.calendarIndex.getBy(new LT(t));return this.fetch([...n].filter(e=>r.has(e)))}get eventsByCalendar(){let e=new Map;for(let[t,n]of this.calendarIndex.groupByRelated)e.set(t,this.fetch(n));return e}getEventDetails(e){let t=this.getEventById(e),n=this.calendarIndex.getRelated(new Ey(e));if(!t||!n)return null;let r=this.pathIndex.getRelated(new Ey(e)),a=this.lineNumbers.get(e);return{id:e,event:t,calendarId:n,location:r?{path:r,lineNumber:a}:null}}};Wb();var aF=class{constructor(e){this.settings=e}updateSettings(e){this.settings=e}enhance(e){let t=e;if(this.settings.enableAdvancedCategorization){let n=new Set(this.settings.categorySettings.map(e=>e.name)),{category:r,subCategory:a,title:i}=wM(e.title,n);t={...e,title:a?`${a} - ${i}`:i,category:r||e.category,subCategory:a||e.subCategory}}return t}prepareForStorage(e){let t=e.timezone||Intl.DateTimeFormat().resolvedOptions().timeZone,n={...e};if(n.allDay?delete n.timezone:n.timezone=t,!this.settings.enableAdvancedCategorization)return n;let r={...n},a=r.subCategory?`${r.subCategory} - `:"",i=!!a&&r.title.startsWith(a);return r.title=R2(r.category,i?void 0:r.subCategory,r.title),delete r.category,delete r.subCategory,r}};Lu(),AM(),PT();var pqt=6e4,mqt={days:7},X5e=100,Y_=(e,t,n)=>{let r=t?`${e}T${t}`:e;if(!n)return Fn.fromISO(r);let a="Z"===n||"utc"===n.toLowerCase()?"utc":n,i=Fn.fromISO(r,{zone:a});return i.isValid?i:Fn.fromISO(r)},vqt=e=>e.startDate.includes("T")?Y_(e.startDate,void 0,e.timezone):Y_(e.startDate,e.allDay?void 0:e.startTime,e.allDay?void 0:e.timezone),gqt=e=>"completed"in e&&void 0!==e.completed||"isTask"in e&&!!e.isTask,yqt=e=>e.allDay&&gqt(e),bqt=(e,t)=>{if(!t)return-1;if(e.event.allDay!==t.event.allDay)return e.event.allDay?1:-1;let n=e.end.toMillis(),r=t.end.toMillis();return n!==r?n-r:e.start.toMillis()-t.start.toMillis()},oF=class{constructor(e){this.intervalId=null,this.occurrenceCache=[],this.isBuildingCache=!1,this.rebuildTimeout=null,this.cache=e}start(){return null!==this.intervalId&&this.stop(),(async()=>{await this.rebuildOccurrenceCache(),this.tick(),this.intervalId=window.setInterval(()=>this.tick(),pqt)})()}stop(){null!==this.intervalId&&(window.clearInterval(this.intervalId),this.intervalId=null),this.rebuildTimeout&&(window.clearTimeout(this.rebuildTimeout),this.rebuildTimeout=null),this.occurrenceCache=[]}scheduleCacheRebuild(){this.rebuildTimeout&&window.clearTimeout(this.rebuildTimeout),this.rebuildTimeout=window.setTimeout(()=>{this.rebuildOccurrenceCache()},500)}tick(){let e=Fn.now(),t=this.occurrenceCache.findIndex(t=>t.end>e);t>0&&this.occurrenceCache.splice(0,t),this.occurrenceCache.length<X5e/2&&this.scheduleCacheRebuild();let n=this.calculateCurrentState(e);this.cache.broadcastTimeTick(n)}calculateCurrentState(e){let t=null,n=[];for(let r of this.occurrenceCache)yqt(r.event)||(r.start<=e&&e<r.end?bqt(r,t)<0&&(t=r):r.start>e&&n.push(r));return{current:t,upcoming:n,recentlyFinished:[]}}getOccurrenceCache(){return this.occurrenceCache}rebuildOccurrenceCache(){if(this.isBuildingCache)return Promise.resolve();this.isBuildingCache=!0;try{let e=this.cache.store.getAllEvents(),t=[],n=Fn.now(),r=n.plus(mqt);for(let a of e){let{id:e,event:i,location:o}=a,s=o?{file:{path:o.path},lineNumber:o.lineNumber}:null;if("single"===i.type)if(i.allDay){let r=Y_(i.date).startOf("day"),a=Y_(i.endDate||i.date).endOf("day");a>=n&&t.push({id:e,event:i,location:s,start:r,end:a})}else{let r=Y_(i.date,i.startTime,i.timezone);if(!r.isValid)continue;let a=i.endTime?Y_(i.endDate||i.date,i.endTime,i.timezone):r.plus({hours:1});a>=n&&t.push({id:e,event:i,location:s,start:r,end:a})}else if("recurring"===i.type||"rrule"===i.type){let a;try{let o;if("rrule"===i.type){let e=vqt(i);o=e.isValid?e.toJSDate():new Date(i.startDate)}else o=Y_(i.startRecur||"1970-01-01",i.allDay?void 0:i.startTime,i.allDay?void 0:i.timezone).toJSDate();let l={dtstart:o};if("recurring"===i.type){let e={U:zs.SU,M:zs.MO,T:zs.TU,W:zs.WE,R:zs.TH,F:zs.FR,S:zs.SA};i.daysOfWeek?(l.freq=zs.WEEKLY,l.byweekday=i.daysOfWeek.map(t=>e[t])):i.dayOfMonth&&(l.freq=zs.MONTHLY,l.bymonthday=i.dayOfMonth,i.month&&(l.freq=zs.YEARLY,l.bymonth=i.month)),i.endRecur&&(l.until=Y_(i.endRecur).endOf("day").toJSDate())}else l={...th(i.rrule).origOptions,dtstart:o};a=new zs(l);let c=a.between(n.toJSDate(),r.toJSDate());for(let n of c){let r,a=Fn.fromJSDate(n),o=a.toISODate();if(!o||!i.skipDates.includes(o)){if(!i.allDay&&i.startTime&&i.endTime){let e=Fn.fromFormat(i.startTime,"HH:mm"),t=Fn.fromFormat(i.endTime,"HH:mm");if(e.isValid&&t.isValid){let n=t.diff(e);r=a.plus(n)}else r=a.plus({hours:1})}else r=a.endOf("day");t.push({id:e,event:i,location:s,start:a,end:r})}}}catch(e){console.error(`[TimeEngine] Error parsing rrule for "${i.title}"`,e);continue}}}let a=t.map(e=>{let t=Dp.fromEnrichedEvent(e);return t.rawEvent=e,t}),i=Dp.sortEvents(a,[{field:"start",order:"asc"}]);this.occurrenceCache=i.map(e=>e.rawEvent).slice(0,X5e)}finally{this.isBuildingCache=!1}return Promise.resolve()}};PT();var sF=class{constructor(){this.updateViewCallbacks=[],this.timeTickCallbacks=[],this.updateQueue={toRemove:new Set,toAdd:new Map}}clearUpdateQueue(){this.updateQueue.toRemove.clear(),this.updateQueue.toAdd.clear()}on(e,t){switch(e){case"update":this.updateViewCallbacks.push(t);break;case"time-tick":this.timeTickCallbacks.push(t)}return t}off(e,t){switch(e){case"update":{let e=this.updateViewCallbacks.indexOf(t);e>-1&&this.updateViewCallbacks.splice(e,1);break}case"time-tick":{let e=this.timeTickCallbacks.indexOf(t);e>-1&&this.timeTickCallbacks.splice(e,1);break}}}resync(){for(let e of this.updateViewCallbacks)e({type:"resync"})}updateViews(e,t,n){let r={toRemove:e,toAdd:t,affectedCalendars:n};for(let e of this.updateViewCallbacks)e({type:"events",...r})}broadcastTimeTick(e){for(let t of this.timeTickCallbacks)try{t(e)}catch(e){console.error("Full Calendar: time-tick callback error",e)}}flushUpdateQueue(e,t,n=[],r){let a=new Set(e),i=new Map,o=new Set(n);for(let e of t)i.set(e.id,e),o.add(e.calendarId);for(let e of this.updateQueue.toRemove)a.add(e);for(let[e,t]of this.updateQueue.toAdd)i.set(e,t),o.add(t.calendarId);r&&r(),this.clearUpdateQueue(),(a.size>0||i.size>0||o.size>0)&&this.updateViews([...a],[...i.values()],Array.from(o))}updateCalendar(e){for(let t of this.updateViewCallbacks)t({type:"calendar",calendar:e})}};Wo();var lF=class{constructor(e){this.ctx=e}syncCalendar(e,t){if(this.ctx.isBulkUpdating)return;let n=this.ctx.store.getEventsInCalendar(e),r=t.map(([t,n])=>({event:this.ctx.enhancer.enhance(t),location:n,calendarId:e})),a=new Map;for(let t of n){let n=Qe.getProviderRegistry().computeSyncKeyForEvent(t.event,e);n&&a.set(n,t)}let i=new Map;for(let e of r){let t=Qe.getProviderRegistry().computeSyncKeyForEvent(e.event,e.calendarId);t&&i.set(t,e)}let o=[],s=[],l=!1;for(let[e,t]of a)i.has(e)||(o.push(t.id),Qe.getProviderRegistry().removeMapping(t.id),this.ctx.store.delete(t.id),l=!0);for(let[e,t]of i)if(!a.has(e)){let e=Qe.getProviderRegistry().generateId();Qe.getProviderRegistry().addMapping(t.event,t.calendarId,e),this.ctx.store.add({calendarId:t.calendarId,location:t.location,id:e,event:t.event}),s.push({event:t.event,location:t.location,calendarId:t.calendarId,id:e}),l=!0}for(let[e,t]of a){let n=i.get(e);n&&JSON.stringify(t.event)!==JSON.stringify(n.event)&&(this.ctx.store.delete(t.id),this.ctx.store.add({calendarId:n.calendarId,location:n.location,id:t.id,event:n.event}),Qe.getProviderRegistry().removeMapping(t.id),Qe.getProviderRegistry().addMapping(n.event,n.calendarId,t.id),o.push(t.id),s.push({event:n.event,location:n.location,calendarId:n.calendarId,id:t.id}),l=!0)}if(!l)return;let c=s.map(({event:e,id:t,calendarId:n})=>({event:e,id:t,calendarId:n}));this.ctx.flushUpdateQueue(o,c,[e]),this.ctx.timeEngine.scheduleCacheRebuild()}processProviderUpdates(e,t){let{additions:n,updates:r,deletions:a}=t;if(0===n.length&&0===r.length&&0===a.length)return Promise.resolve();this.ctx.setBulkUpdating(!0);try{for(let e of a)this.ctx.store.getEventById(e)&&(Qe.getProviderRegistry().removeMapping(e),this.ctx.store.delete(e),this.ctx.updateQueue.toRemove.add(e));for(let{event:t,location:r}of n){let n=this.ctx.enhancer.enhance(t),a=this.ctx.generateId();this.ctx.store.add({calendarId:e,location:r,id:a,event:n}),Qe.getProviderRegistry().addMapping(n,e,a),this.ctx.updateQueue.toAdd.set(a,{event:n,id:a,calendarId:e})}for(let{sessionId:t,event:n,location:a}of r){let r=this.ctx.enhancer.enhance(n);this.ctx.store.getEventById(t)&&(Qe.getProviderRegistry().removeMapping(t),this.ctx.store.delete(t),this.ctx.store.add({calendarId:e,location:a,id:t,event:r}),Qe.getProviderRegistry().addMapping(r,e,t)),this.ctx.updateQueue.toRemove.add(t),this.ctx.updateQueue.toAdd.set(t,{event:r,id:t,calendarId:e})}}finally{this.ctx.setBulkUpdating(!1),this.ctx.flushUpdateQueue([],[],[e]),this.ctx.timeEngine.scheduleCacheRebuild()}return Promise.resolve()}syncFile(e,t){if(this.ctx.isBulkUpdating)return Promise.resolve();let n=this.ctx.store.getEventsInFile(e),r=t.map(({event:e,location:t,calendarId:n})=>({event:this.ctx.enhancer.enhance(e),location:t,calendarId:n})),a=new Map;for(let e of n){let t=Qe.getProviderRegistry().computeSyncKeyForEvent(e.event,e.calendarId);t&&a.set(t,e)}let i=new Map;for(let e of r){let t=Qe.getProviderRegistry().computeSyncKeyForEvent(e.event,e.calendarId);t&&i.set(t,e)}let o=[],s=[],l=!1;for(let[e,t]of a)i.has(e)||(o.push(t.id),Qe.getProviderRegistry().removeMapping(t.id),this.ctx.store.delete(t.id),l=!0);for(let[e,t]of i)if(!a.has(e)){let e=Qe.getProviderRegistry().generateId();Qe.getProviderRegistry().addMapping(t.event,t.calendarId,e),this.ctx.store.add({calendarId:t.calendarId,location:t.location,id:e,event:t.event}),s.push({event:t.event,location:t.location,calendarId:t.calendarId,id:e}),l=!0}for(let[e,t]of a){let n=i.get(e);n&&JSON.stringify(t.event)!==JSON.stringify(n.event)&&(this.ctx.store.delete(t.id),this.ctx.store.add({calendarId:n.calendarId,location:n.location,id:t.id,event:n.event}),Qe.getProviderRegistry().removeMapping(t.id),Qe.getProviderRegistry().addMapping(n.event,n.calendarId,t.id),o.push(t.id),s.push({event:n.event,location:n.location,calendarId:n.calendarId,id:t.id}),l=!0)}if(!l)return Promise.resolve();let c=new Set;for(let e of n)c.add(e.calendarId);for(let e of t)c.add(e.calendarId);let u=s.map(({event:e,id:t,calendarId:n})=>({event:e,id:t,calendarId:n}));return this.ctx.flushUpdateQueue(o,u,Array.from(c)),this.ctx.timeEngine.scheduleCacheRebuild(),Promise.resolve()}};Fc(),Wo(),Zo(),Lu(),cF(),RC();var uF=class{constructor(e){this.ctx=e}ensureDefaultTimedDurationOnAllDayTransition(e,t){if(!e.allDay||t.allDay||"string"==typeof t.endTime&&t.endTime.trim().length>0)return t;let n=Fn.fromFormat(t.startTime,"H:mm");return n.isValid?{...t,endTime:n.plus({hours:1}).toFormat("HH:mm")}:t}async addEvent(e,t,n){if(!t.allDay&&!t.timezone){let e=Qe.getSettings().displayTimezone||Intl.DateTimeFormat().resolvedOptions().timeZone;t.timezone=e}let r=Qe.getProviderRegistry().getSource(e);if(!r)return Na(Ce("eventCache.calendarNotFound",{calendarId:e})),!1;let a=Qe.getProviderRegistry().getCapabilities(e);if(!a)return Na(Ce("eventCache.providerNotFound",{type:r.type})),!1;if(!a.canCreate)return Na(Ce("eventCache.readOnly")),!1;let i=this.ctx.generateId(),o=t;this.ctx.store.add({calendarId:e,location:null,id:i,event:o}),Qe.getProviderRegistry().addMapping(o,e,i);let s={event:o,id:i,calendarId:e};n?.silent?this.ctx.updateQueue.toAdd.set(i,s):this.ctx.flushUpdateQueue([],[s],[e]);try{let r=this.ctx.enhancer.prepareForStorage(t),[a,o]=await Qe.getProviderRegistry().createEventInProvider(e,r),s=this.ctx.enhancer.enhance(a);return this.ctx.store.delete(i),this.ctx.store.add({calendarId:e,location:o,id:i,event:s}),Qe.getProviderRegistry().removeMapping(i),Qe.getProviderRegistry().addMapping(s,e,i),this.ctx.timeEngine.scheduleCacheRebuild(),await Vb("created",e,{...n,milestoneMeta:{...n?.milestoneMeta,event:s}}),!0}catch(t){return t instanceof NT?(Qe.getProviderRegistry().removeMapping(i),this.ctx.store.delete(i),n?.silent?this.ctx.updateQueue.toAdd.delete(i):this.ctx.flushUpdateQueue([i],[],[e]),!0):(console.error("Failed to create event with provider. Rolling back cache state.",{error:t}),Qe.getProviderRegistry().removeMapping(i),this.ctx.store.delete(i),n?.silent?this.ctx.updateQueue.toAdd.delete(i):this.ctx.flushUpdateQueue([i],[],[e]),Na(Ce("eventCache.createFailed")),!1)}}async deleteEvent(e,t){let n=this.ctx.store.getEventDetails(e);if(!n)throw new Error(`Event with ID ${e} not found for deletion.`);let{event:r,calendarId:a}=n,{provider:i}=this.ctx.getProviderForEvent(e);if(!i.getCapabilities().canDelete)throw new Error(`Calendar of type "${i.type}" does not support deleting events.`);if(!t?.force&&await(await this.ctx.getRecurringEventManager()).handleDelete(e,r,t))return;let o=i.getEventHandle(r);if(Qe.getProviderRegistry().removeMapping(e),this.ctx.store.delete(e),t?.silent?this.ctx.updateQueue.toRemove.add(e):this.ctx.flushUpdateQueue([e],[],[a]),!o)return console.warn("Could not generate a persistent handle for the event being deleted. Proceeding with deletion from cache only."),void this.ctx.timeEngine.scheduleCacheRebuild();try{await Qe.getProviderRegistry().deleteEventInProvider(e,r,a),this.ctx.timeEngine.scheduleCacheRebuild(),await Vb("deleted",a,t)}catch(r){console.error("Failed to delete event with provider. Rolling back cache state.",{eventId:e,error:r});let i=n.location?{file:{path:n.location.path},lineNumber:n.location.lineNumber}:null;this.ctx.store.add({calendarId:n.calendarId,location:i,id:n.id,event:n.event}),Qe.getProviderRegistry().addMapping(n.event,n.calendarId,n.id);let o={event:n.event,id:n.id,calendarId:n.calendarId};throw t?.silent?(this.ctx.updateQueue.toRemove.delete(e),this.ctx.updateQueue.toAdd.set(e,o)):this.ctx.flushUpdateQueue([],[o],[a]),Na(Ce("eventCache.deleteFailed")),r}}async updateEventWithId(e,t,n){if(!t.allDay&&!t.timezone){let e=Qe.getSettings().displayTimezone||Intl.DateTimeFormat().resolvedOptions().timeZone;t.timezone=e}let r=this.ctx.store.getEventDetails(e);if(!r)throw new Error(`Event with ID ${e} not present in event store.`);let{provider:a,event:i}=this.ctx.getProviderForEvent(e);t=this.ensureDefaultTimedDurationOnAllDayTransition(i,t),"single"===i.type&&"single"===t.type&&(t={...t,...i.uid&&!t.uid?{uid:i.uid}:{},...i.recurringEventId&&!t.recurringEventId?{recurringEventId:i.recurringEventId}:{},...i.recurrenceId&&!t.recurrenceId?{recurrenceId:i.recurrenceId}:{}});let o=r.calendarId;if(!a.getCapabilities().canEdit)throw new Error(`Calendar of type "${a.type}" does not support editing events.`);if(await(await this.ctx.getRecurringEventManager()).handleUpdate(i,t,o))return!0;if(!a.getEventHandle(i))throw new Error("Could not generate a persistent handle for the event being modified.");this.ctx.setBulkUpdating(!0);try{Qe.getProviderRegistry().removeMapping(e),this.ctx.store.delete(e);let a=r.location?{file:{path:r.location.path},lineNumber:r.location.lineNumber}:null;this.ctx.store.add({calendarId:o,location:a,id:e,event:t}),Qe.getProviderRegistry().addMapping(t,o,e);let s={event:t,id:e,calendarId:o};n?.silent?(this.ctx.updateQueue.toRemove.add(e),this.ctx.updateQueue.toAdd.set(e,s)):this.ctx.flushUpdateQueue([e],[s],[o]);try{let r=this.ctx.enhancer.prepareForStorage(i),s=this.ctx.enhancer.prepareForStorage(t),l=await Qe.getProviderRegistry().updateEventInProvider(e,o,r,s),c=this.ctx.enhancer.enhance(s);Qe.getProviderRegistry().removeMapping(e),this.ctx.store.delete(e);let u=l||a;return this.ctx.store.add({calendarId:o,location:u,id:e,event:c}),Qe.getProviderRegistry().addMapping(c,o,e),this.ctx.timeEngine.scheduleCacheRebuild(),await Vb("updated",o,n),!0}catch(t){console.error("Failed to update event with provider. Rolling back cache state.",{eventId:e,error:t}),Qe.getProviderRegistry().removeMapping(e),this.ctx.store.delete(e);let a=r.location?{file:{path:r.location.path},lineNumber:r.location.lineNumber}:null;this.ctx.store.add({calendarId:r.calendarId,location:a,id:r.id,event:r.event}),Qe.getProviderRegistry().addMapping(r.event,r.calendarId,r.id);let i={event:r.event,id:r.id,calendarId:r.calendarId};return n?.silent?(this.ctx.updateQueue.toRemove.delete(e),this.ctx.updateQueue.toAdd.set(e,i)):this.ctx.flushUpdateQueue([e],[i],[o]),Na(Ce("eventCache.updateFailed")),!1}}finally{this.ctx.setBulkUpdating(!1)}}async moveEventToCalendar(e,t,n){let r=this.ctx.store.getEventDetails(e);if(!r)throw new Error(`Event with ID ${e} not found.`);if(await(await this.ctx.getRecurringEventManager()).moveRecurringEvent(e,t,n))return;let a=n||r.event;if(!await this.addEvent(t,a,{trackMilestone:!1}))throw new Error("Failed to move event: Could not create event in destination calendar.");try{await this.deleteEvent(e,{trackMilestone:!1}),await Vb("moved",t)}catch(e){throw console.error("Failed to delete event from old calendar after moving it.",e),Na(Ce("eventCache.movePartialSuccess")),e}}async toggleRecurringInstance(e,t,n){let r=this.ctx.store.getEventDetails(e)?.calendarId;await(await this.ctx.getRecurringEventManager()).toggleRecurringInstance(e,t,n),this.ctx.flushUpdateQueue([],[],r?[r]:[]),r&&await Vb("updated",r)}async modifyRecurringInstance(e,t,n){let r=this.ctx.store.getEventDetails(e)?.calendarId,a=this.ctx.enhancer.prepareForStorage(n);await(await this.ctx.getRecurringEventManager()).modifyRecurringInstance(e,t,a),this.ctx.flushUpdateQueue([],[],r?[r]:[]),r&&await Vb("updated",r)}async scheduleTask(e,t,n=!0){let r=Qe.getProviderRegistry().getBacklogProviderForTask(e);if(!r)throw new Error(`No task backlog provider found that owns task ID: ${e}`);await r.scheduleTask(e,t,n);let a=await r.getEvents();Qe.getCache()?.syncCalendar(r.getTaskBacklogInfo().id,a),Qe.getProviderRegistry().refreshBacklogViews(),Qe.getProviderRegistry().refreshCalDAVTaskInboxViews()}async unscheduleTaskEvent(e){let t=this.ctx.store.getEventDetails(e);if(!t?.event.uid)throw new Error(`No scheduled task found for event ID: ${e}`);let n=this.ctx.calendars.get(t.calendarId);if(!n?.unscheduleTask)throw new Error("Task provider does not support returning tasks to the backlog.");await n.unscheduleTask(t.event.uid);let r=await n.getEvents();Qe.getCache()?.syncCalendar(t.calendarId,r),Qe.getProviderRegistry().refreshBacklogViews(),Qe.getProviderRegistry().refreshCalDAVTaskInboxViews()}async validateTaskSchedule(e,t){let n=Qe.getProviderRegistry().getBacklogProviderForTask(e);return n&&"function"==typeof n.validateTaskSchedule?n.validateTaskSchedule(e,t):{isValid:!0}}},tE=class{constructor(e){this._store=new QC,this.recurringEventManager=null,this.viewConfigListener=null,this.workspaceEmitter=null,this.calendars=new Map,this.initialized=!1,this.isBulkUpdating=!1,this._plugin=e,this.enhancer=new aF(Qe.getSettings()),this.timeEngine=new oF(this),this.subscriptionManager=new sF;let t={store:this._store,enhancer:this.enhancer,timeEngine:this.timeEngine,isBulkUpdating:this.isBulkUpdating,setBulkUpdating:e=>this.isBulkUpdating=e,flushUpdateQueue:this.flushUpdateQueue.bind(this),generateId:this.generateId.bind(this),updateQueue:this.subscriptionManager.updateQueue};this.syncHandler=new lF(t);let n={...t,calendars:this.calendars,getRecurringEventManager:this.getRecurringEventManager.bind(this),getProviderForEvent:this.getProviderForEvent.bind(this)};this.mutationHandler=new uF(n)}listenForSettingsChanges(e){this.workspaceEmitter=e;let t=e;this.viewConfigListener=()=>{this.onSettingsChanged()},t.on("full-calendar:view-config-changed",this.viewConfigListener)}stopListening(){this.viewConfigListener&&this.workspaceEmitter&&(this.workspaceEmitter.off("full-calendar:view-config-changed",this.viewConfigListener),this.viewConfigListener=null,this.workspaceEmitter=null)}async onSettingsChanged(){await this.populate(),this.resync()}updateSettings(e){this.enhancer.updateSettings(e)}reset(){this.initialized=!1,this.timeEngine.stop();let e=Qe.getProviderRegistry().getAllSources();this.calendars.clear(),this._store.clear(),this.subscriptionManager.clearUpdateQueue(),e.forEach(e=>{let t=e.id;if(!t)return void console.warn("Full Calendar: Calendar source is missing an ID.",e);let n=Qe.getProviderRegistry().getInstance(t);n?this.calendars.set(t,n):console.warn(`Full Calendar: Provider instance for source ID "${t}" not found during cache reset.`)})}async populate(){await Qe.getProviderRegistry().fetchAllByPriority((e,t)=>{this.syncCalendar(e,t)},()=>{(async()=>{this.initialized=!0,Qe.getProviderRegistry().buildMap(this._store),this.resync(),await this.timeEngine.start()})()})}generateId(){return Qe.getProviderRegistry().generateId()}getGlobalIdentifier(e,t){return Qe.getProviderRegistry().getGlobalIdentifier(e,t)}async getSessionId(e){return Qe.getProviderRegistry().getSessionId(e)}getAllCategories(){let e=new Set;for(let t of this._store.getAllEvents())t.event.category&&e.add(t.event.category);return Array.from(e).sort()}getAllEvents(){let e=[],t=this._store.eventsByCalendar;for(let[n,r]of this.calendars.entries()){let a=t.get(n)||[],i=Qe.getProviderRegistry().getSource(n);if(!i)continue;let o=r.getCapabilities(),s=o.canCreate||o.canEdit||o.canDelete;e.push({editable:s,events:a.map(({event:e,id:t})=>({event:e,id:t})),color:i.color,id:n})}return e}isEventEditable(e){let t=this._store.getEventDetails(e);if(!t)return!1;let n=this.calendars.get(t.calendarId);if(!n||!Qe.getProviderRegistry().getSource(t.calendarId))return!1;let r=n.getCapabilities();return r.canCreate||r.canEdit||r.canDelete}getEventById(e){return this._store.getEventById(e)}getCalendarById(e){return this.calendars.get(e)}addEvent(e,t,n){return this.mutationHandler.addEvent(e,t,n)}deleteEvent(e,t){return this.mutationHandler.deleteEvent(e,t)}updateEventWithId(e,t,n){return this.mutationHandler.updateEventWithId(e,t,n)}processEvent(e,t,n){let r=this._store.getEventById(e);if(!r)throw new Error("Event does not exist");return this.updateEventWithId(e,t(r),n)}toggleRecurringInstance(e,t,n){return this.mutationHandler.toggleRecurringInstance(e,t,n)}modifyRecurringInstance(e,t,n){return this.mutationHandler.modifyRecurringInstance(e,t,n)}moveEventToCalendar(e,t,n){return this.mutationHandler.moveEventToCalendar(e,t,n)}scheduleTask(e,t,n=!0){return this.mutationHandler.scheduleTask(e,t,n)}unscheduleTaskEvent(e){return this.mutationHandler.unscheduleTaskEvent(e)}validateTaskSchedule(e,t){return this.mutationHandler.validateTaskSchedule(e,t)}on(e,t){return this.subscriptionManager.on(e,t)}off(e,t){this.subscriptionManager.off(e,t)}resync(){this.subscriptionManager.resync()}broadcastTimeTick(e){this.subscriptionManager.broadcastTimeTick(e)}flushUpdateQueue(e,t,n=[]){this.subscriptionManager.flushUpdateQueue(e,t,n,()=>{this.isBulkUpdating=!1})}updateCalendar(e){this.subscriptionManager.updateCalendar(e)}syncCalendar(e,t){this.syncHandler.syncCalendar(e,t)}processProviderUpdates(e,t){return this.syncHandler.processProviderUpdates(e,t)}syncFile(e,t){return this.syncHandler.syncFile(e,t)}async getRecurringEventManager(){if(!this.recurringEventManager){let{RecurringEventManager:e}=await Promise.resolve().then(()=>(K5e(),$5e));this.recurringEventManager=new e(this,this._plugin)}return this.recurringEventManager}getProviderForEvent(e){let t=this._store.getEventDetails(e);if(!t)throw new Error(`Event ID ${e} not present in event store.`);let{calendarId:n,location:r,event:a}=t,i=this.calendars.get(n);if(!i)throw new Error(`Provider for calendar ID ${n} not found in cache map.`);if(!Qe.getProviderRegistry().getSource(n))throw new Error(`CalendarInfo for calendar ID ${n} not found.`);return{provider:i,location:r,event:a}}queryEvents(e,t){let n=this._store.getAllEvents().map(e=>Dp.fromStoredEvent(e,e=>Qe.getProviderRegistry().getSource(e)?.name||"")),r=Dp.query(n,e,t),a=new Map(r.map(e=>[e.id,e]));return this._store.getAllEvents().filter(e=>a.has(e.id))}queryOccurrences(e,t){let n=this.getOccurrenceCache(),r=n.map(e=>Dp.fromEnrichedEvent(e,e=>Qe.getProviderRegistry().getSource(e)?.name||"")),a=Dp.query(r,e,t),i=new Map(a.map(e=>[e.id,e]));return n.filter(e=>i.has(e.id))}getOccurrenceCache(){return this.timeEngine.getOccurrenceCache()}get plugin(){return this._plugin}get store(){return this._store}get updateQueue(){return this.subscriptionManager.updateQueue}set updateQueue(e){this.subscriptionManager.updateQueue=e}get _storeForTest(){return this._store}};rE();var AI=require("obsidian");Zo();var Zb=require("@codemirror/view"),dF=require("@codemirror/state"),Nre=require("obsidian");Wo();var tAe=dF.StateEffect.define(),Wre=class{constructor(e){this.isDestroyed=!1,this.updateListener=null,this.updateListener=()=>{this.isDestroyed||"function"==typeof e.dispatch&&e.dispatch({effects:tAe.of()})};try{let e=Qe.getCache();e&&e.on("update",this.updateListener)}catch{}}update(e){}destroy(){this.isDestroyed=!0;try{let e=Qe.getCache();e&&this.updateListener&&e.off("update",this.updateListener)}catch{}}},Aqt=Zb.ViewPlugin.fromClass(Wre);function Ire(e){try{if(Nre.editorInfoField&&"function"==typeof e.field){let t=e.field(Nre.editorInfoField);if(t&&t.file)return t.file}}catch{}try{return Qe.getPlugin().app.workspace.getActiveFile()}catch{return null}}function eAe(e,t){if(!t)return Zb.Decoration.none;try{let n=Qe.getProviderRegistry().getActiveProviders().find(e=>e.isFileRelevant&&e.isFileRelevant(t)&&"function"==typeof e.getEditorDecorator);if(!n)return Zb.Decoration.none;if(!n.getEditorDecorator)return Zb.Decoration.none;let r=n.getEditorDecorator();return r?r.getDecorations(e,t):Zb.Decoration.none}catch(e){return console.error("Full Calendar: Error building live preview decorations",e),Zb.Decoration.none}}var wqt={create:e=>eAe(e,Ire(e)),update(e,t){let n=Ire(t.startState),r=Ire(t.state),a=n?.path!==r?.path,i=!t.startState.selection.eq(t.state.selection),o=t.effects.some(e=>e.is(tAe));return t.docChanged||i||a||o?eAe(t.state,r):e.map(t.changes)},provide:e=>Zb.EditorView.decorations.from(e)},Oqt=dF.StateField.define(wqt),rAe=[Oqt,Aqt];HC(),Fc(),Wo(),ste();var Jwe=require("obsidian");Aae();var FA="task-backlog-view",WA=class extends Jwe.ItemView{constructor(e,t){super(e),this.backlogWidget=null,this.plugin=t}getViewType(){return FA}getDisplayText(){return"Task backlog"}getIcon(){return"list-todo"}onOpen(){return(async()=>{this.contentEl.empty(),this.backlogWidget=new o8(this.plugin,this.contentEl,{},e=>{let t=this.app.workspace;this.registerEvent(t.on("full-calendar:backlog-changed",e)),this.registerEvent(t.on("full-calendar:settings-updated",e))}),this.addChild(this.backlogWidget)})()}onClose(){return this.backlogWidget&&(this.backlogWidget.unload(),this.backlogWidget=null),Promise.resolve()}async refresh(){this.backlogWidget&&await this.backlogWidget.refresh()}},mB="tasks-backlog-view",vB="caldav-task-inbox-view",gB=class{constructor(e){this.isLoaded=!1,this.plugin=e}onload(){this.isLoaded||(this.isLoaded=!0,this.plugin.registerView(FA,e=>new WA(e,this.plugin)),this.plugin.registerView(mB,e=>new WA(e,this.plugin)),this.plugin.registerView(vB,e=>new WA(e,this.plugin)),this.plugin.addCommand({id:"open-task-backlog",name:"Open task backlog",callback:()=>{this.openBacklogView()}}),this.plugin.addRibbonIcon("list-todo","Task backlog",()=>{this.openBacklogView()}))}onunload(){this.isLoaded&&(this.isLoaded=!1,this.closeAllBacklogViews())}refreshViews(){let e=this.plugin.app.workspace.getLeavesOfType(FA),t=this.plugin.app.workspace.getLeavesOfType(mB),n=this.plugin.app.workspace.getLeavesOfType(vB);for(let r of[...e,...t,...n]){let e=r.view;e instanceof WA&&e.refresh()}this.plugin.app.workspace.trigger("full-calendar:backlog-changed")}getIsLoaded(){return this.isLoaded}async openBacklogView(){let e=this.plugin.app.workspace,t=e.getLeavesOfType(FA)[0],n=e.getLeavesOfType(mB)[0],r=e.getLeavesOfType(vB)[0],a=t??n??r;if(a)return void e.revealLeaf(a);let i=e.getRightLeaf(!1);i&&(await i.setViewState({type:FA,active:!0}),e.revealLeaf(i))}closeAllBacklogViews(){let e=[...this.plugin.app.workspace.getLeavesOfType(FA),...this.plugin.app.workspace.getLeavesOfType(mB),...this.plugin.app.workspace.getLeavesOfType(vB)];for(let t of e)t.detach()}};Zo();var MBt=1e3,xBt=60*MBt,_Bt=5*xBt,RU=class{constructor(e){this.providers=new Map,this.instances=new Map,this.sources=[],this.providerRetryTimers=new Map,this.providerRetryAttempts=new Map,this.cache=null,this.pkCounter=0,this.identifierToSessionIdMap=new Map,this.sessionIdToIdentifierMap=new Map,this.identifierMapPromise=null,this.revalidating=!1,this.lastRevalidation=0,this.onSourcesChanged=()=>{(async()=>{this.cache&&(await this.initializeInstances(),this.syncBacklogManagerLifecycle(),this.cache.reset(),await this.cache.populate(),this.revalidateRemoteCalendars(),this.refreshBacklogViews())})()},this.plugin=e,this.taskBacklogManager=new gB(e)}refreshBacklogViews(){this.taskBacklogManager.getIsLoaded()&&this.taskBacklogManager.refreshViews()}refreshCalDAVTaskInboxViews(){this.refreshBacklogViews()}normalizePersistentId(e){return e.replace(/\\/g,"/")}resolveSessionIdFromStoreFallback(e,t,n){if(!this.cache)return null;let r=this.normalizePersistentId(t),a=n?.uid?this.normalizePersistentId(n.uid):null,i=this.cache.store.getEventsInCalendar(e),o=i.find(e=>{let t=e.event.uid?this.normalizePersistentId(e.event.uid):null,n=e.location?.path?this.normalizePersistentId(e.location.path):null;return t===r||n===r});if(o)return o.id;if(a){let e=i.find(e=>(e.event.uid?this.normalizePersistentId(e.event.uid):null)===a);if(e)return e.id}return null}repairMappingFromStore(e,t){if(!this.cache)return;let n=this.cache.store.getEventDetails(t);n&&this.addMapping(n.event,e,t)}teardownInstance(e,t){let n=t.teardown;if("function"==typeof n)try{n.call(t)}catch{}}teardownAllInstances(){for(let[e,t]of this.instances.entries())this.teardownInstance(e,t)}registerBuiltInProviders(){this.register("local",()=>Promise.resolve().then(()=>(mOe(),pOe))),this.register("dailynote",()=>Promise.resolve().then(()=>(AOe(),zOe))),this.register("ical",()=>Promise.resolve().then(()=>(YOe(),XOe))),this.register("caldav",()=>Promise.resolve().then(()=>(E6e(),C6e))),this.register("google",()=>Promise.resolve().then(()=>(Y6e(),X6e))),this.register("googletasks",()=>Promise.resolve().then(()=>(Q6e(),J6e))),this.register("outlook",()=>Promise.resolve().then(()=>(pTe(),hTe))),this.register("tasks",()=>Promise.resolve().then(()=>(xTe(),MTe))),this.register("tasknotes",()=>Promise.resolve().then(()=>(ATe(),zTe))),this.register("bases",()=>Promise.resolve().then(()=>(TTe(),OTe))),this.register("holidays",()=>Promise.resolve().then(()=>(Eke(),Cke)))}register(e,t){this.providers.has(e)&&console.warn(`Provider loader for type "${e}" is already registered. Overwriting.`),this.providers.set(e,t)}setCache(e){this.cache=e}updateSources(e){this.sources=[...e]}getSource(e){return this.sources.find(t=>t.id===e)}getAllSources(){return[...this.sources]}getConfig(e){let t=this.getSource(e);if(t&&"config"in t){let e=t.config;return"object"==typeof e&&null!==e?e:void 0}}async getProviderForType(e){let t=this.providers.get(e);if(t)try{let n=await t(),r=Object.values(n).find(t=>"function"==typeof t&&t.type===e);return r||void console.error(`Full Calendar: Could not find a provider class with type "${e}" in the loaded module.`)}catch(t){return void console.error(`Full Calendar: Error loading provider for type "${e}".`,t)}else console.error(`Full Calendar: No provider loader found for type "${e}".`)}async addInstance(e){let t=e.id;if(!t||this.instances.has(t))return;let n=await this.getProviderForType(e.type);if(n){let r=new U5(this.plugin.app),a=new n(e,this.plugin,r);this.instances.set(t,a),this.sources.push(e),a.initialize&&a.initialize()}}async initializeInstances(){for(let e of this.providerRetryTimers.values())window.clearTimeout(e);this.providerRetryTimers.clear(),this.providerRetryAttempts.clear();let e=Qe.getSettings().calendarSources,t=new Map;for(let n of e){let e=n.id;if(!e){console.warn("Full Calendar: Calendar source is missing an ID.",n);continue}let r=await this.getProviderForType(n.type);if(r){let a=new U5(this.plugin.app),i=new r(n,this.plugin,a);t.set(e,i)}}this.teardownAllInstances(),this.instances.clear();for(let[e,n]of t.entries())this.instances.set(e,n),n.initialize&&n.initialize();this.plugin.app.workspace.trigger("full-calendar:instances-initialized")}generateId(){return""+this.pkCounter++}async getSessionId(e){return this.identifierMapPromise&&await this.identifierMapPromise,this.identifierToSessionIdMap.get(e)||null}getGlobalIdentifier(e,t){let n=this.instances.get(t);if(!n)return console.warn(`Could not find provider instance for calendar ID ${t}`),null;let r=n.getEventHandle(e);return r?`${t}::${r.persistentId}`:null}computeSyncKeyForEvent(e,t){let n=this.instances.get(t);if(!n)return null;if("computeSyncKey"in n&&"function"==typeof n.computeSyncKey){return`${t}::${n.computeSyncKey(e)}`}return this.getGlobalIdentifier(e,t)}getCanonicalTitle(e,t){let n=this.instances.get(t);return n&&"getCanonicalTitle"in n&&"function"==typeof n.getCanonicalTitle?n.getCanonicalTitle(e):e.title}buildMap(e){this.cache&&(this.identifierMapPromise=(()=>{this.identifierToSessionIdMap.clear(),this.sessionIdToIdentifierMap.clear();for(let t of e.getAllEvents()){let e=this.getGlobalIdentifier(t.event,t.calendarId);e&&(this.identifierToSessionIdMap.set(e,t.id),this.sessionIdToIdentifierMap.set(t.id,e))}return Promise.resolve()})())}addMapping(e,t,n){let r=this.getGlobalIdentifier(e,t);if(r){let e=this.sessionIdToIdentifierMap.get(n);e&&e!==r&&this.identifierToSessionIdMap.delete(e),this.identifierToSessionIdMap.set(r,n),this.sessionIdToIdentifierMap.set(n,r)}}removeMapping(e){let t=this.sessionIdToIdentifierMap.get(e);t&&(this.identifierToSessionIdMap.delete(t),this.sessionIdToIdentifierMap.delete(e))}async fetchAllEvents(){if(!this.cache)throw new Error("Cache not set on ProviderRegistry");let e=[],t=[];for(let[n,r]of this.instances.entries()){let a=(async()=>{try{if(!this.cache)throw new Error("Cache not set on ProviderRegistry");let t=this.cache;(await r.getEvents()).forEach(([r,a])=>{let i=t.enhancer.enhance(r);e.push({calendarId:n,event:i,location:a})})}catch(e){let t=this.getSource(n);console.warn("Full Calendar: Failed to load calendar source",t,e),this.scheduleProviderReload(n,r,e)}})();t.push(a)}return await Promise.allSettled(t),e}async fetchAllByPriority(e,t){if(!this.cache)throw new Error("Cache not set on ProviderRegistry");let n=Array.from(this.instances.entries()).sort(([,e],[,t])=>e.loadPriority-t.loadPriority),r=n.filter(([,e])=>e.loadPriority<100),a=n.filter(([,e])=>e.loadPriority>=100),i=new Date,o={start:new Date(i.getFullYear(),i.getMonth()-3,1),end:new Date(i.getFullYear(),i.getMonth()+3,0)},s=(t,n)=>{e&&e(t,n)},l=r.map(async([e,t])=>{try{let n=await t.getEvents(o);s(e,n)}catch(n){let r=this.getSource(e);console.warn("Full Calendar: Failed to load local calendar source (Stage 1)",r,n),this.scheduleProviderReload(e,t,n)}});await Promise.all(l),t&&t(),(async()=>{let e=r.map(async([e,t])=>{try{let n=await t.getEvents();s(e,n)}catch{this.scheduleProviderReload(e,t)}});Promise.all(e);let t=a.map(async([e,t])=>{try{let n=await t.getEvents(o);s(e,n);let r=await t.getEvents();s(e,r),await this.refreshProviderAuxiliaryData(e,t)}catch(n){let r=this.getSource(e);console.warn("Full Calendar: Failed to load remote calendar source pipeline",r,n),this.scheduleProviderReload(e,t,n)}});await Promise.allSettled(t),this.cache?.resync()})()}getRetryPolicy(e){return e.getLoadRetryPolicy?.()??null}async refreshProviderAuxiliaryData(e,t){let n=t,r=n.refreshTaskBacklogItems??n.refreshUndatedTasks;if("function"==typeof r)try{await r.call(n),this.refreshBacklogViews()}catch(t){let n=this.getSource(e);console.warn("Full Calendar: Failed to refresh provider auxiliary data",n,t)}}scheduleProviderReload(e,t,n){let r=this.getRetryPolicy(t);if(!r||!this.cache||this.providerRetryTimers.has(e))return;let a=this.providerRetryAttempts.get(e)??0;if(void 0!==r.maxAttempts&&a>=r.maxAttempts)return void console.warn(`Full Calendar: Provider "${e}" exhausted reload attempts.`,n);let i=window.setTimeout(()=>{this.providerRetryTimers.delete(e),this.providerRetryAttempts.set(e,a+1),this.reloadProvider(e)},r.retryDelayMs);this.providerRetryTimers.set(e,i)}async reloadProvider(e){if(!this.cache)return;let t=this.instances.get(e);if(t)try{let n=await t.getEvents();this.cache.syncCalendar(e,n),await this.refreshProviderAuxiliaryData(e,t),this.providerRetryAttempts.delete(e),this.refreshBacklogViews(),this.refreshCalDAVTaskInboxViews()}catch(n){let r=this.getSource(e);console.warn("Full Calendar: Delayed provider reload failed",r,n),this.scheduleProviderReload(e,t,n)}}reloadProviderNow(e){let t=this.providerRetryTimers.get(e);t&&(window.clearTimeout(t),this.providerRetryTimers.delete(e)),this.providerRetryAttempts.delete(e),this.reloadProvider(e)}async createEventInProvider(e,t){let n=this.instances.get(e);if(!n)throw new Error(`Provider instance with ID ${e} not found.`);return n.createEvent(t)}async updateEventInProvider(e,t,n,r){let a=this.instances.get(t);if(!a)throw new Error(`Provider instance with ID ${t} not found.`);let i=a.getEventHandle(n);if(!i)throw new Error("Could not generate a persistent handle for the event being modified.");let o=this.cache?.store.getEventDetails(e);return o?.location&&!i.location&&(i.location=o.location),a.updateEvent(i,n,r)}async deleteEventInProvider(e,t,n){let r=this.instances.get(n);if(!r)throw new Error(`Provider instance with ID ${n} not found.`);let a=r.getEventHandle(t);if(a){let t=this.cache?.store.getEventDetails(e);t?.location&&!a.location&&(a.location=t.location),await r.deleteEvent(a)}else console.warn("Could not generate a persistent handle for the event being deleted. Proceeding with deletion from cache only.")}async handleFileUpdate(e){if(!this.cache)return;let t=[];for(let[n,r]of this.instances.entries())if(!r.isRemote&&r.getEventsInFile){let a=this.getSource(n);if(!a)continue;r.isFileRelevant&&r.isFileRelevant(e)&&t.push({instance:r,config:a,settingsId:n})}if(0===t.length)return;let n=[];for(let{instance:r,settingsId:a}of t){if(!r.getEventsInFile)continue;let t=await r.getEventsInFile(e);for(let[e,r]of t)n.push({event:e,location:r,calendarId:a})}await this.cache.syncFile(e,n)}async handleFileDelete(e){this.cache&&await this.cache.syncFile({path:e},[])}revalidateRemoteCalendars(e=!1){if(!this.cache||this.revalidating)return;let t=Date.now();if(!e&&t-this.lastRevalidation<_Bt)return;let n=Array.from(this.instances.entries()).filter(([e,t])=>t.isRemote);if(0===n.length)return;this.revalidating=!0,Na(Ce("notices.revalidatingRemotes"));let r=n.map(([e,t])=>Promise.all([t.getEvents().then(t=>{this.cache&&this.cache.syncCalendar(e,t)}),this.refreshProviderAuxiliaryData(e,t)]).catch(n=>{let r=this.getSource(e),a=r&&"name"in r?r.name:t.type;throw new Error(`Failed to revalidate calendar "${a}": ${n.message}`)}));Promise.allSettled(r).then(e=>{this.revalidating=!1,this.lastRevalidation=Date.now();let t=e.flatMap(e=>"rejected"===e.status?[e.reason]:[]);t.length>0?(Na(Ce("notices.revalidationFailed")),t.forEach(e=>{console.error("Full Calendar: Revalidation failed.",e)})):Na(Ce("notices.revalidationSuccess"))})}getInstance(e){return this.instances.get(e)}getCapabilities(e){let t=this.instances.get(e);return t?t.getCapabilities():null}async createInstanceOverrideInProvider(e,t,n,r){let a=this.instances.get(e);if(!a)throw new Error(`Provider instance with ID ${e} not found.`);return a.createInstanceOverride(t,n,r)}syncBacklogManagerLifecycle(){this.getTaskBacklogProviders().length>0?this.taskBacklogManager.getIsLoaded()||this.taskBacklogManager.onload():this.taskBacklogManager.getIsLoaded()&&this.taskBacklogManager.onunload()}listenForSourceChanges(){this.plugin.app.workspace.on("full-calendar:sources-changed",this.onSourcesChanged)}stopListening(){this.plugin.app.workspace.off("full-calendar:sources-changed",this.onSourcesChanged),this.teardownAllInstances();for(let e of this.providerRetryTimers.values())window.clearTimeout(e);this.providerRetryTimers.clear(),this.providerRetryAttempts.clear()}async processProviderUpdates(e,t){if(!this.cache)return;let{additions:n,updates:r,deletions:a}=t,i={additions:n,updates:[],deletions:[]};for(let t of r){let n=`${e}::${t.persistentId}`,r=await this.getSessionId(n);r||(r=this.resolveSessionIdFromStoreFallback(e,t.persistentId,t.event),r&&this.repairMappingFromStore(e,r)),r?i.updates.push({sessionId:r,event:t.event,location:t.location}):console.warn(`[ProviderRegistry] Dropping update for ${n} because no sessionId was found.`)}for(let t of a){let n=`${e}::${t}`,r=await this.getSessionId(n);r||(r=this.resolveSessionIdFromStoreFallback(e,t),r&&this.repairMappingFromStore(e,r)),r&&i.deletions.push(r)}await this.cache.processProviderUpdates(e,i)}getActiveProviders(){return Array.from(this.instances.values())}getTaskBacklogProviders(){return this.getActiveProviders().filter(e=>{let t=e;return"function"==typeof t.getTaskBacklogInfo&&"function"==typeof t.getTaskBacklogItems})}getBacklogProviderForTask(e){return this.getTaskBacklogProviders().find(t=>t.ownsTaskId(e))??null}hasProviderOfType(e){for(let t of this.instances.values())if(t.type===e)return!0;return!1}};Fc(),Wo(),PT(),Lu();var pTt=require("obsidian");function hTt(e,t){let n=e.trim().match(/^([+-]?\d+)\s*([dwmy])$/);if(!n)return t;let r=parseInt(n[1],10);switch(n[2]){case"d":return t.plus({days:r});case"w":return t.plus({weeks:r});case"m":return t.plus({months:r});case"y":return t.plus({years:r});default:return t}}function mTt(e,t,n){let r=new b5(Qe.getSettings()),a=Qe.getCache().getAllEvents(),{sources:i}=r.getEnhancedData(a),o=i,s=[];if(e.calendars&&e.calendars.length>0){let t=Qe.getSettings().calendarSources||[];o=i.filter(n=>{let r="object"==typeof n&&null!==n&&"id"in n?n.id:"",a=t.find(e=>e.id===r);return!!e.calendars?.some(e=>!!(a&&a.name===e||r===e))&&(s.push(r),!0)})}let l,c,u,d=Fn.now().startOf("day");if("today"===e.defaultDate)l=Fn.now().toISODate()||"",d=Fn.now().startOf("day");else if(e.defaultDate&&"auto"!==e.defaultDate){l=e.defaultDate;let t=Fn.fromISO(e.defaultDate);t.isValid&&(d=t.startOf("day"))}else{let e=Qe.getPlugin().app.vault.getAbstractFileByPath(t);if(e instanceof pTt.TFile){let t=ky(e,"day");if(t){l=t.format("YYYY-MM-DD");let e=Fn.fromISO(l);e.isValid&&(d=e.startOf("day"))}}}e.startOffset&&(c=hTt(e.startOffset,d).toMillis()),e.endOffset&&(u=hTt(e.endOffset,d).endOf("day").toMillis());let p={calendarIds:e.calendars&&e.calendars.length>0?s:void 0,categories:e.categories,subCategories:e.subCategories,isCompleted:e.completed,isTask:e.isTask,excludeAllDayTasks:e.excludeAllDayTasks,...e.pathFilter&&{filePathSubstring:e.pathFilter},...e.tagFilter&&{tags:[e.tagFilter]},...(void 0!==c||void 0!==u)&&{dateRange:{startMillis:c,endMillis:u}},...e.textSearch&&{textSearch:{query:e.textSearch,mode:"default"}}},h=[];e.sortBy&&h.push({field:e.sortBy,order:e.sortOrder||"asc"});let f=n.getEvents(p,h),m=e.titleFilter;m&&(f=f.filter(e=>e.title.toLowerCase().includes(m.toLowerCase())));let g=Qe.getSettings();return o=o.map(e=>{if("object"==typeof e&&null!==e&&"events"in e&&Array.isArray(e.events)){let t="object"==typeof e&&null!==e&&"id"in e?e.id:"",n=f.filter(e=>e.calendarId===t).map(e=>{let t=e.rawEvent;if(t){return D8(t.id||e.id,t.event,g)}return null}).filter(e=>null!==e);return{...e,events:n}}return e}),(e.view?.includes("resourceTimeline")||e.view?.includes("Timeline"))&&Qe.getSettings().enableAdvancedCategorization&&(o=o.map(e=>{if("object"==typeof e&&null!==e&&"events"in e&&Array.isArray(e.events)){let t=[];for(let n of e.events)if("string"==typeof n.resourceId&&n.resourceId.includes("::")){let e=n.resourceId.split("::")[0];t.push({...n,id:`${n.id}-shadow`,resourceId:e,extendedProps:{...n.extendedProps,isShadow:!0,originalEventId:n.id},className:"fc-event-shadow",editable:!1,durationEditable:!1,startEditable:!1})}return{...e,events:[...e.events,...t]}}return e})),{sources:o,initialDate:l}}$5(),Wo(),BJ(),Zq();var yTt=require("obsidian");uz(),Zo(),wre();var VJ=class{#e=new Set;registerView(e){this.#e.add(e)}unregisterView(e){this.#e.delete(e)}#t(){for(let e of this.#e)if(e.fullCalendarView)return e.fullCalendarView;return null}async openCalendar(){let e=Qe.getPlugin(),{FULL_CALENDAR_VIEW_TYPE:t}=await Promise.resolve().then(()=>(yI(),FJ)),n=e.app.workspace.getLeavesOfType(t).filter(e=>!1===e.view.inSidebar);0===n.length?await e.app.workspace.getLeaf("tab").setViewState({type:t,active:!0}):await Promise.all(n.map(e=>e.view.onOpen()))}async openSidebar(){let e=Qe.getPlugin(),{FULL_CALENDAR_SIDEBAR_VIEW_TYPE:t}=await Promise.resolve().then(()=>(yI(),FJ));if(e.app.workspace.getLeavesOfType(t).length)return;let n=e.app.workspace.getRightLeaf(!1);n?(await n.setViewState({type:t}),await e.app.workspace.revealLeaf(n)):console.warn("Right leaf not found for calendar view!")}async changeView(e){let t=this.#t();t||(await this.openCalendar(),await new Promise(e=>window.setTimeout(e,100)),t=this.#t()),t?t.changeView(e):Na("Failed to find active calendar view.")}openCreateModal(e){kae(Qe.getPlugin(),e||{})}getAllEvents(){return Qe.getCache().getAllEvents()}getEventById(e){return Qe.getCache().getEventById(e)}getEventDetails(e){return Qe.getCache().store.getEventDetails(e)}getEvents(e,t){let n=Qe.getCache().getAllEvents(),r=[];for(let e of n)for(let t of e.events){if(!t.id)continue;let n=this.getEventDetails(t.id),a=Dp.fromStoredEvent({id:t.id,event:n?n.event:t.event,calendarId:n?n.calendarId:e.id,location:n&&n.location?{path:"file"in n.location?n.location.file.path:n.location.path,lineNumber:n.location.lineNumber}:null});a.rawEvent=t,r.push(a)}return Dp.query(r,e,t)}getEventSources(e,t){return mTt(e,t,this)}};function vTt(e){return e.apiTokens||(e.apiTokens={}),e.apiTokens}function SNr(e){return JSON.parse(JSON.stringify(e))}function Qd(e,t){if(!q5e(e,t))throw new Error(`Full Calendar API: Missing required scope: ${t}`)}function gTt(e){let t=e.grantedScopes,n=Qe.getInternalAPI(),r=Qe.getCache(),a=Qe.getProviderRegistry();return{openCalendar:async()=>(Qd(t,"ui:open-calendar"),n.openCalendar()),openSidebar:async()=>(Qd(t,"ui:open-sidebar"),n.openSidebar()),changeView:async e=>(Qd(t,"ui:change-view"),n.changeView(e)),openCreateModal:e=>{Qd(t,"ui:modals"),n.openCreateModal(e)},getAllEvents:()=>(Qd(t,"events:read"),r.getAllEvents()),getEventById:e=>(Qd(t,"events:read"),r.getEventById(e)),getEventDetails:e=>(Qd(t,"events:read"),n.getEventDetails(e)),getEvents:(e,r)=>(Qd(t,"events:read"),n.getEvents(e,r)),createEvent:(e,n,a)=>(Qd(t,"events:write"),r.addEvent(e,n,a)),updateEvent:(e,n,a)=>(Qd(t,"events:write"),r.updateEventWithId(e,n,a)),deleteEvent:(e,n)=>(Qd(t,"events:write"),r.deleteEvent(e,n)),moveEvent:(e,n,a)=>(Qd(t,"events:write"),r.moveEventToCalendar(e,n,a)),processEvent:(e,n,a)=>(Qd(t,"events:write"),r.processEvent(e,n,a)),toggleRecurringInstance:(e,n,a)=>(Qd(t,"events:write"),r.toggleRecurringInstance(e,n,a)),modifyRecurringInstance:(e,n,a)=>(Qd(t,"events:write"),r.modifyRecurringInstance(e,n,a)),scheduleTask:(e,n,a=!0)=>(Qd(t,"events:write"),r.scheduleTask(e,n,a)),validateTaskSchedule:(e,n)=>(Qd(t,"events:write"),r.validateTaskSchedule(e,n)),getCalendarSources:()=>(Qd(t,"providers:read"),a.getAllSources()),getProviderCapabilities:e=>(Qd(t,"providers:read"),a.getCapabilities(e)),revalidateRemoteCalendars:e=>{Qd(t,"providers:write"),a.revalidateRemoteCalendars(e)},reloadProviderNow:e=>{Qd(t,"providers:write"),a.reloadProviderNow(e)},getSettings:()=>(Qd(t,"settings:read"),SNr(Qe.getSettings())),updateSettings:async(e,n)=>{Qd(t,"settings:write");let r={...Qe.getSettings(),...e};Qe.setSettings(r),!1!==n?.save&&await Qe.saveSettings()},saveSettings:async()=>{Qd(t,"settings:write"),await Qe.saveSettings()},loadSettings:async()=>{Qd(t,"settings:read"),await Qe.loadSettings()},getInternalState:()=>(Qd(t,Yb),{plugin:Qe.getPlugin(),settings:Qe.getSettings(),cache:Qe.getCache(),providerRegistry:Qe.getProviderRegistry(),internalAPI:Qe.getInternalAPI()})}}var jJ=class{#e;constructor(e){this.#e=e}requestAccess(e,t,n){return new Promise(r=>{let a=E5e(n);new Rbe(this.#e.app,e,t,a,n=>{if(!n.approved)return void r(null);if(0===n.grantedScopes.length)return void r(null);let i=crypto.randomUUID();vTt(Qe.getSettings())[i]={pluginId:e,reason:t,requestedScopes:a,grantedScopes:n.grantedScopes,grantedAt:Date.now()},Qe.saveSettings().then(()=>r(i)).catch(e=>{console.error("Failed to save settings:",e),r(null)})}).open()})}withToken(e){let t=Qe.getSettings(),n=vTt(t),r=n[e];if(r)return r.lastUsedAt=Date.now(),Qe.saveSettings(),gTt(r);let a=t.authorizedTokens?.[e];if(a){let t={pluginId:a.pluginId,reason:a.reason,requestedScopes:[Yb],grantedScopes:[Yb],grantedAt:a.grantedAt};return n[e]=t,Qe.saveSettings(),gTt(t)}return console.error("Full Calendar API: Invalid or unauthorized token."),null}},Rbe=class extends yTt.Modal{constructor(e,t,n,r,a){super(e),this.pluginId=t,this.reason=n,this.requestedScopes=r,this.grantedScopes=new Set(r),this.onResolve=a}onOpen(){let{contentEl:e,titleEl:t}=this;t.setText(Ce("api.authorization.title")),e.createEl("p",{text:Ce("api.authorization.requestingPluginMessage",{pluginId:this.pluginId})}),e.createEl("p",{text:Ce("api.authorization.reasonLabel",{reason:this.reason}),cls:"ofc-auth-reason"}),e.createEl("p",{text:Ce("api.authorization.permissionsLabel")});let n=e.createDiv({cls:"ofc-auth-scopes"}),r=this.requestedScopes.length>0?this.requestedScopes:["events:read"],a=null,i=()=>{a&&(a.disabled=0===this.grantedScopes.size)};r.forEach(e=>{let t=D5e(e),r=n.createDiv({cls:"ofc-auth-scope-row"}),a=t?.label||e,o=t?.description||"";t?.risky&&r.addClass("is-risky");let s=r.createEl("label",{cls:"ofc-auth-scope-label"}),l=s.createEl("input");l.setAttribute("type","checkbox"),l.checked=this.grantedScopes.has(e),l.onchange=()=>{l.checked?this.grantedScopes.add(e):this.grantedScopes.delete(e),i()},s.createSpan({text:a}),o&&r.createDiv({cls:"ofc-auth-scope-desc",text:o})});let o=e.createDiv({cls:"ofc-auth-buttons"});o.createEl("button",{text:Ce("api.authorization.deny")}).onclick=()=>{this.onResolve({approved:!1,grantedScopes:[]}),this.close()},a=o.createEl("button",{text:Ce("api.authorization.approve"),cls:"mod-cta"}),i(),a.onclick=()=>{this.onResolve({approved:!0,grantedScopes:Array.from(this.grantedScopes)}),this.close()}}onClose(){let{contentEl:e}=this;e.empty()}},HTt=require("obsidian"),kNr={sunday:0,monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6,domenica:0,lunedi:1,"lunedì":1,martedi:2,"martedì":2,mercoledi:3,"mercoledì":3,giovedi:4,"giovedì":4,venerdi:5,"venerdì":5,sabato:6},CNr={0:"SU",1:"MO",2:"TU",3:"WE",4:"TH",5:"FR",6:"SA"};function g7(e){return e.replace(/\s+/g," ").trim()}function ENr(e,t){if(!t)return g7(e);let n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return g7(e.replace(new RegExp(n,"i")," "))}function qNr(e){let t=[],n="",r=!1;for(let a=0;a<e.length;a+=1){let i=e[a];'"'!==i?","!==i||r?n+=i:(t.push(n.trim()),n=""):(r=!r,n+=i)}return n.trim().length>0&&t.push(n.trim()),t}function DNr(e,t){let n=e.trim(),r=/^\$(\d+)$/.exec(n);if(r){return t[Number(r[1])-1]??""}return n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'")?n.slice(1,-1):n}function Am(e,t){let n=Number(e);return Number.isFinite(n)?n:t}function Lbe(e){let t=e.toLowerCase(),n=kNr[t];if(void 0!==n)return n;let r=Number(t);return Number.isInteger(r)&&r>=0&&r<=6?r:0}function RNr(e,t,n,r){let a=Am(t,e.getHours()),i=Am(n,0),o=r.toLowerCase();"pm"===o&&a<12?a+=12:"am"===o&&12===a&&(a=0),e.setHours(a,i,0,0)}function bTt(e,t){let n=t.toLowerCase(),r=e;return"pm"===n&&r<12?r+=12:"am"===n&&12===r&&(r=0),r}function Pbe(e,t){let n=g7(e).toLowerCase(),r=g7(t).toLowerCase();if(!n||"am"!==r&&"pm"!==r)return null;if(/^\d{3,4}$/.test(n)){let e=Number(n),t=Math.floor(e/100),a=e%100;return t<1||t>12||a<0||a>59?null:{hours:bTt(t,r),minutes:a}}let a=/^(\d{1,2})(?::(\d{2}))?$/.exec(n);if(!a)return null;let i=Am(a[1]??"",0),o=Am(a[2]??"0",0);return i<1||i>12||o<0||o>59?null:{hours:bTt(i,r),minutes:o}}function LNr(e,t,n){let r=Pbe(t,n);r&&e.date.setHours(r.hours,r.minutes,0,0)}function PNr(e,t,n,r,a){let i=Pbe(t,n),o=Pbe(r,a);i&&e.date.setHours(i.hours,i.minutes,0,0),o&&(e.explicitEndHours=o.hours,e.explicitEndMinutes=o.minutes)}function INr(e,t,n,r){let a,i=t.toUpperCase(),o=["DAILY","WEEKLY","MONTHLY","YEARLY"].includes(i)?i:"DAILY",s=Math.max(1,Am(n,1));if(r&&r.trim().length>0){let e=Lbe(r);a=[CNr[e]]}e.recurrence={freq:o,interval:s,byDay:a}}function NNr(e,t,n){let r=/^([A-Z_]+)\((.*)\)$/.exec(e.trim());if(!r)return;let a=r[1],i=qNr(r[2]).map(e=>DNr(e,t));switch(a){case"ADD_DAYS":{let e=Am(i[0],0);return void n.date.setDate(n.date.getDate()+e)}case"SUBTRACT_DAYS":{let e=Am(i[0],0);return void n.date.setDate(n.date.getDate()-e)}case"SET_TIME":return void RNr(n.date,i[0]??"",i[1]??"",i[2]??"");case"SET_TIME_TOKEN":return void LNr(n,i[0]??"",i[1]??"");case"SET_TIME_RANGE":return void PNr(n,i[0]??"",i[1]??"",i[2]??"",i[3]??"");case"NEXT_WEEKDAY":{let e=(Lbe(i[0]??"0")-n.date.getDay()+7)%7;return 0===e&&(e=7),void n.date.setDate(n.date.getDate()+e)}case"ADD_HOURS":{let e=Am(i[0],0);return void n.date.setHours(n.date.getHours()+e)}case"SUBTRACT_HOURS":{let e=Am(i[0],0);return void n.date.setHours(n.date.getHours()-e)}case"SET_INTENT":{let e=i[0]??"CREATE_EVENT";return n.intent=e,void("CREATE_EVENT"!==e&&"GOTO_DATE"!==e&&(n.shortCircuit=!0))}case"SET_TARGET":return void(n.targetCalendar=g7(i[0]??""));case"ADD_MINUTES":{let e=Am(i[0],0);return void n.date.setMinutes(n.date.getMinutes()+e)}case"SUBTRACT_MINUTES":{let e=Am(i[0],0);return void n.date.setMinutes(n.date.getMinutes()-e)}case"ADD_WEEKS":{let e=Am(i[0],0);return void n.date.setDate(n.date.getDate()+7*e)}case"SET_DAY":{let e=Lbe(i[0]??"0")-n.date.getDay();return void n.date.setDate(n.date.getDate()+e)}case"SET_RECURRENCE":return void INr(n,i[0]??"DAILY",i[1]??"1",i[2]);case"SET_NEXT_OCCURRING_DAY":{let e=Am(i[0],1);return e<=n.date.getDate()&&n.date.setMonth(n.date.getMonth()+1),void n.date.setDate(e)}case"ADD_DURATION":return n.durationHours=Am(i[0],0),void(n.durationMinutes=Am(i[1],0));default:return}}function WNr(e,t,n){let r=e.flags??"i",a=new RegExp(e.regex,r).exec(t);if(!a)return t;let i=a.slice(1).map(e=>e??""),o=a[0]??"";n.matchedRules.push(e.name),n.strippedTitle=ENr(n.strippedTitle,o);for(let t of e.actions)if(NNr(t,i,n),n.shortCircuit)break;return n.strippedTitle}function FNr(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function MTt(e,t,n=new Date){let r={date:new Date(n.getTime()),durationHours:null,durationMinutes:null,explicitEndHours:null,explicitEndMinutes:null,intent:"CREATE_EVENT",targetCalendar:null,recurrence:null,matchedRules:[],strippedTitle:g7(e),shortCircuit:!1};for(let e of t.rules)if(WNr(e,r.strippedTitle,r),r.shortCircuit)break;let a=r.explicitEndHours,i=r.explicitEndMinutes;if(null===a&&null===i&&(null!==r.durationHours||null!==r.durationMinutes)){let e=new Date(r.date.getTime());e.setHours(e.getHours()+(r.durationHours??0)),e.setMinutes(e.getMinutes()+(r.durationMinutes??0)),a=e.getHours(),i=e.getMinutes()}let o="CREATE_EVENT"===r.intent?r.strippedTitle||e.trim():"";return{intent:r.intent,title:o,date:FNr(r.date),hours:r.date.getHours(),minutes:r.date.getMinutes(),endHours:a,endMinutes:i,targetCalendar:r.targetCalendar,recurrence:r.recurrence,matchedRules:r.matchedRules}}function MI(e,t){if(e.targetCalendar||"CREATE_EVENT"!==e.intent)return e;let n=e.title;if(!n)return e;let r,a=t.map(e=>e.toLowerCase().trim()),i=/\s+in\s+/gi,o=null;for(;null!==(r=i.exec(n));){let e=n.substring(r.index+r[0].length).trim().toLowerCase(),i=a.indexOf(e);-1!==i&&(o={index:r.index,name:t[i]})}return o?{...e,title:n.substring(0,o.index).trim(),targetCalendar:o.name,matchedRules:[...e.matchedRules,"smart_calendar"]}:e}Fc(),Wo(),Zo();var KNr={NAVIGATE_DAY:"timeGridDay",NAVIGATE_WEEK:"timeGridWeek",NAVIGATE_MONTH:"dayGridMonth"};function nQ(e){return String(e).padStart(2,"0")}function jbe(){try{return Qe.getProviderRegistry().getAllSources().filter(e=>Qe.getProviderRegistry().getInstance(e.id)?.getCapabilities().canCreate).map(e=>e.name??"").filter(Boolean)}catch{return[]}}function Gbe(e){let t=["time_exact_ampm","time_range_ampm","time_noon","time_midnight","in_hours","in_minutes","duration_last_hrs","duration_last_mins","duration_next_hrs","duration_next_mins"];return e.matchedRules.some(e=>t.includes(e))}function JNr(e){if(Gbe(e)){let t=null!==e.endHours?e.endHours:(e.hours+1)%24,n=null!==e.endMinutes?e.endMinutes:e.minutes;return{title:e.title,type:"single",date:e.date,endDate:null,allDay:!1,startTime:`${nQ(e.hours)}:${nQ(e.minutes)}`,endTime:`${nQ(t)}:${nQ(n)}`}}return{title:e.title,type:"single",date:e.date,endDate:null,allDay:!0}}function QNr(e){let t=Qe.getProviderRegistry().getAllSources().filter(e=>Qe.getProviderRegistry().getInstance(e.id)?.getCapabilities().canCreate);if(0===t.length)return null;if(e){let n=e.toLowerCase().trim(),r=t.find(e=>e.name?.toLowerCase().trim()===n);if(r)return r.id}return t[0].id}async function NTt(e){let t=Qe.getInternalAPI(),n=KNr[e.intent];if(n)return Na(Ce("nlp.navigating",{view:e.intent.split("_")[1].toLowerCase()})),void await t.changeView(n);if("OPEN_CALENDAR"===e.intent)return Na(Ce("nlp.navigating",{view:"calendar"})),void await t.openCalendar();if("OPEN_SIDEBAR"===e.intent)return Na(Ce("nlp.navigating",{view:"sidebar"})),void await t.openSidebar();if("OPEN_SETTINGS"===e.intent)return Qe.displaySettingsTab(),void Na(Ce("nlp.parseSuccess"));if("OPEN_CHRONO"===e.intent){if(Qe.isMobile())return void Na(Ce("notices.chronoAnalyserMobileDisabled"));let e=Qe.getPlugin(),{ANALYSIS_VIEW_TYPE:t}=await Promise.resolve().then(()=>(uJ(),cJ));return void await e.app.workspace.getLeaf("tab").setViewState({type:t,active:!0})}if("SHOW_CHANGELOG"===e.intent)return Qe.showChangelog(),void Na(Ce("nlp.parseSuccess"));if("SHOW_MILESTONES"===e.intent)return Qe.showMilestones(),void Na(Ce("nlp.parseSuccess"));if("RESET_CACHE"===e.intent)return Qe.getCache().reset(),void Na(Ce("nlp.notices.cacheReset"));if("REVALIDATE_REMOTE"===e.intent)return Qe.getProviderRegistry().revalidateRemoteCalendars(!0),void Na(Ce("nlp.parseSuccess"));if("SYNC_ACTIVITYWATCH"===e.intent){if(!Qe.getSettings().activityWatch.enabled)return void Na(Ce("nlp.notices.awNotEnabled"));let e=Qe.getPlugin(),{syncActivityWatch:t}=await Promise.resolve().then(()=>(rQ(),tQ));return await t(e),void Na(Ce("nlp.parseSuccess"))}if("SYNC_FCR_REMINDER"===e.intent){let e=Qe.getSettings().fcrReminderCompanion;return e&&e.enabled?(await Qe.getPlugin().fcrReminderManager.syncToCompanion(),void Na(Ce("nlp.parseSuccess"))):void Na(Ce("nlp.notices.fcrCompanionNotEnabled")||"FCR Reminder Companion is not enabled.")}if("GOTO_DATE"===e.intent){await t.changeView("timeGridDay"),await new Promise(e=>window.setTimeout(e,150));try{let t=Qe.getPlugin().app.workspace.getLeavesOfType("full-calendar-view")[0];t?.view&&"fullCalendarView"in t.view&&t.view.fullCalendarView?.gotoDate(e.date)}catch{}return}if("NEW_EVENT"===e.intent)return void t.openCreateModal();let r=MI(e,jbe()),a=QNr(r.targetCalendar);if(!a)return void Na(Ce("nlp.noCalendars"));let i=JNr(r);await Qe.getCache().addEvent(a,i,{milestoneMeta:{viaNlp:!0}})}function _I(e){return e.replace(/\s+/g," ").trim()}function aQ(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"")}function eWr(e,t){if(e===t)return 0;if(0===e.length)return t.length;if(0===t.length)return e.length;let n=Array.from({length:e.length+1},()=>[]);for(let t=0;t<=e.length;t+=1)n[t][0]=t;for(let e=0;e<=t.length;e+=1)n[0][e]=e;for(let r=1;r<=e.length;r+=1)for(let a=1;a<=t.length;a+=1){let i=e[r-1]===t[a-1]?0:1;n[r][a]=Math.min(n[r-1][a]+1,n[r][a-1]+1,n[r-1][a-1]+i)}return n[e.length][t.length]}function tWr(e,t){let n=t.categoryParsing?.spokenDelimiterRegex;if(!n)return _I(e);let r=t.categoryParsing?.spokenDelimiterFlags??"gi";return _I(e.replace(new RegExp(n,r)," - "))}function rWr(e,t,n,r){let a=t.categoryParsing?.explicitCategoryRegex;if(!a)return{strippedTitle:e,explicitCategory:null};let i=t.categoryParsing?.explicitCategoryFlags??"i",o=new RegExp(a,i).exec(e);if(!o)return{strippedTitle:e,explicitCategory:null};let s=_I(o[1]??"");if(!s)return{strippedTitle:e,explicitCategory:null};let l=s.split(/\s+/).filter(Boolean);if(0===l.length)return{strippedTitle:e,explicitCategory:null};let c=new Set(["at","from","to","in","on","for","every","next","today","tomorrow","yesterday"]),u=1,d=l[0];if(r&&n.length>0){let e=null,t=0,r=Math.min(4,l.length);for(let a=1;a<=r;a+=1){let r=l.slice(0,a);if(r.some(e=>c.has(e.toLowerCase())))break;let i=WTt(r.join(" "),n,{allowPrefixContainment:!1});i&&(e=i,t=a)}e&&t>0&&(d=e,u=t)}let p=l.slice(u).join(" ");return{strippedTitle:_I(`${e.slice(0,o.index)} ${p}`),explicitCategory:_I(d)||null}}function WTt(e,t,n){let r=aQ(e);if(!r)return null;for(let e of t)if(aQ(e)===r)return e;if(n?.allowPrefixContainment??1)for(let e of t){let t=aQ(e);if(t.startsWith(r)||r.startsWith(t))return e}let a=null,i=Number.POSITIVE_INFINITY;for(let e of t){let t=eWr(r,aQ(e));t<i&&(i=t,a=e)}return a&&i<=(r.length<=5?2:Math.max(1,Math.floor(.34*Math.max(r.length,4))))?a:null}function FTt(e,t){let n=tWr(e,t.payload),{strippedTitle:r,explicitCategory:a}=rWr(n,t.payload,t.categoryNames,t.enableAdvancedCategorization),i=r.split(" - ").map(e=>e.trim()).filter(Boolean),o=i.length>=2,s=a?i.join(" - "):o?i.slice(1).join(" - "):"";if(!s)return n;let l=a??(o?i[0]:"");return l?R2((t.enableAdvancedCategorization?WTt(l,t.categoryNames):null)??l,void 0,s):n}Qte(),Zo(),Wo(),Wb();var nWr=120;function aWr(e){switch(e){case"CREATE_EVENT":return Ce("nlp.intents.CREATE_EVENT");case"NEW_EVENT":return Ce("nlp.intents.NEW_EVENT");case"NAVIGATE_DAY":return Ce("nlp.intents.NAVIGATE_DAY");case"NAVIGATE_WEEK":return Ce("nlp.intents.NAVIGATE_WEEK");case"NAVIGATE_MONTH":return Ce("nlp.intents.NAVIGATE_MONTH");case"OPEN_CALENDAR":return Ce("nlp.intents.OPEN_CALENDAR");case"OPEN_SIDEBAR":return Ce("nlp.intents.OPEN_SIDEBAR");case"OPEN_SETTINGS":return Ce("nlp.intents.OPEN_SETTINGS");case"OPEN_CHRONO":return Ce("nlp.intents.OPEN_CHRONO");case"SHOW_CHANGELOG":return Ce("nlp.intents.SHOW_CHANGELOG");case"SHOW_MILESTONES":return Ce("nlp.intents.SHOW_MILESTONES");case"RESET_CACHE":return Ce("nlp.intents.RESET_CACHE");case"REVALIDATE_REMOTE":return Ce("nlp.intents.REVALIDATE_REMOTE");case"SYNC_ACTIVITYWATCH":return Ce("nlp.intents.SYNC_ACTIVITYWATCH");case"GOTO_DATE":return Ce("nlp.intents.GOTO_DATE");default:return e}}function iWr(e){switch(e){case"OPEN_SETTINGS":return Ce("nlp.descriptions.OPEN_SETTINGS");case"OPEN_CHRONO":return Ce("nlp.descriptions.OPEN_CHRONO");case"SHOW_CHANGELOG":return Ce("nlp.descriptions.SHOW_CHANGELOG");case"SHOW_MILESTONES":return Ce("nlp.descriptions.SHOW_MILESTONES");case"RESET_CACHE":return Ce("nlp.descriptions.RESET_CACHE");case"REVALIDATE_REMOTE":return Ce("nlp.descriptions.REVALIDATE_REMOTE");case"SYNC_ACTIVITYWATCH":return Ce("nlp.descriptions.SYNC_ACTIVITYWATCH");default:return null}}function oWr(e){return String(e).padStart(2,"0")}function BTt(e){try{let[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r).toLocaleDateString(void 0,{weekday:"long",year:"numeric",month:"long",day:"numeric"})}catch{return e}}function UTt(e,t){return`${e%12||12}:${oWr(t)} ${e>=12?"PM":"AM"}`}var oQ=class extends HTt.Modal{#e;#t=null;#n=null;#r;#a;#i;#o=null;constructor(e,t){super(e),this.#e=t}onOpen(){let{contentEl:e,titleEl:t}=this;t.setText(Ce("nlp.modalTitle")),e.addClass("ofc-nlp-modal"),(async()=>{this.#t=await C4e(this.app,this.#e)})();let n=e.createDiv({cls:"ofc-nlp-input-container"});this.#a=n.createEl("input",{attr:{type:"text",placeholder:Ce("nlp.placeholder")},cls:"ofc-nlp-input"}),this.#a.focus(),this.#r=e.createDiv({cls:"ofc-nlp-preview"}),this.#s();let r=e.createDiv({cls:"ofc-nlp-buttons"});r.createEl("button",{text:Ce("nlp.cancel"),cls:"ofc-nlp-btn-cancel"}).addEventListener("click",()=>this.close()),this.#i=r.createEl("button",{text:Ce("nlp.submit"),cls:"mod-cta ofc-nlp-btn-submit"}),this.#i.disabled=!0,this.#i.addEventListener("click",()=>this.#l()),this.#a.addEventListener("input",()=>this.#c()),this.#a.addEventListener("keydown",e=>{"Enter"===e.key&&!this.#i.disabled&&(e.preventDefault(),this.#l())})}onClose(){this.#n&&window.clearTimeout(this.#n),this.contentEl.empty()}#c(){this.#n&&window.clearTimeout(this.#n),this.#n=window.setTimeout(()=>this.#u(),nWr)}#u(){let e=this.#a.value.trim();if(!e||!this.#t)return this.#o=null,this.#i.disabled=!0,void this.#s();let t=MTt(e,this.#t);if("CREATE_EVENT"===t.intent){t=MI(t,jbe());let e=Qe.getSettings();t={...t,title:FTt(t.title,{enableAdvancedCategorization:e.enableAdvancedCategorization,categoryNames:e.categorySettings.map(e=>e.name),payload:this.#t})}}this.#o=t,this.#i.disabled=!1,this.#d(t)}#s(){this.#r.empty(),this.#r.createDiv({cls:"ofc-nlp-preview-empty",text:Ce("nlp.previewHint")})}#d(e){this.#r.empty();let t=this.#r.createDiv({cls:"ofc-nlp-preview-card"}),n=aWr(e.intent);t.createDiv({cls:"ofc-nlp-preview-intent",text:n});let r=iWr(e.intent);if(r&&t.createDiv({cls:"ofc-nlp-preview-description",text:r}),"CREATE_EVENT"===e.intent)this.#p(t,e);else if("GOTO_DATE"===e.intent){let n=t.createDiv({cls:"ofc-nlp-preview-row"});n.createSpan({cls:"ofc-nlp-preview-label",text:Ce("nlp.preview.target")}),n.createSpan({cls:"ofc-nlp-preview-value",text:BTt(e.date)})}e.matchedRules.length>0&&t.createDiv({cls:"ofc-nlp-preview-rules"}).createSpan({text:Ce("nlp.preview.patternsMatched",{count:e.matchedRules.length})})}#p(e,t){if(t.title){let n=e.createDiv({cls:"ofc-nlp-preview-row"});n.createSpan({cls:"ofc-nlp-preview-label",text:Ce("nlp.preview.title")}),n.createSpan({cls:"ofc-nlp-preview-value ofc-nlp-preview-title",text:t.title})}let n=e.createDiv({cls:"ofc-nlp-preview-row"});if(n.createSpan({cls:"ofc-nlp-preview-label",text:Ce("nlp.preview.date")}),n.createSpan({cls:"ofc-nlp-preview-value",text:BTt(t.date)}),Gbe(t)){let n=e.createDiv({cls:"ofc-nlp-preview-row"});n.createSpan({cls:"ofc-nlp-preview-label",text:Ce("nlp.preview.time")});let r=null!==t.endHours?t.endHours:(t.hours+1)%24,a=null!==t.endMinutes?t.endMinutes:t.minutes;n.createSpan({cls:"ofc-nlp-preview-value",text:`${UTt(t.hours,t.minutes)} → ${UTt(r,a)}`})}else{let t=e.createDiv({cls:"ofc-nlp-preview-row"});t.createSpan({cls:"ofc-nlp-preview-label",text:Ce("nlp.preview.time")}),t.createSpan({cls:"ofc-nlp-preview-value ofc-nlp-preview-allday",text:Ce("nlp.preview.allDay")})}if(t.targetCalendar){let n=e.createDiv({cls:"ofc-nlp-preview-row"});n.createSpan({cls:"ofc-nlp-preview-label",text:Ce("nlp.preview.calendar")}),n.createSpan({cls:"ofc-nlp-preview-value",text:t.targetCalendar})}if(t.recurrence){let n=e.createDiv({cls:"ofc-nlp-preview-row"});n.createSpan({cls:"ofc-nlp-preview-label",text:Ce("nlp.preview.recurrence")});let r=t.recurrence.freq.toLowerCase();t.recurrence.interval>1&&(r=`${Ce("nlp.preview.every")} ${t.recurrence.interval} ${r}`),t.recurrence.byDay&&(r+=` (${t.recurrence.byDay.join(", ")})`),n.createSpan({cls:"ofc-nlp-preview-value",text:r})}}#l(){if(!this.#o)return;let e=this.#o;this.close(),NTt(e)}};function Xbe(e){new oQ(e.app,e.manifest.id).open()}function VTt(e){e.addCommand({id:"full-calendar-nlp-quick-add",name:Ce("commands.nlpQuickAdd"),callback:()=>{Xbe(e)}})}Zo();var b7=require("obsidian");function Kbe(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Ybe(e){if(null!=e){if("string"==typeof e)return 0===e.trim().length?void 0:e;if(Array.isArray(e)){let t=e.map(e=>Ybe(e)).filter(e=>void 0!==e);return t.length>0?t:void 0}if(Kbe(e)){let t={};for(let[n,r]of Object.entries(e)){let e=Ybe(r);void 0!==e&&(t[n]=e)}return Object.keys(t).length>0?t:void 0}return e}}function KTt(e){let t=Ybe(e);return Kbe(t)?t:{}}Wo(),BJ(),bye(),qbe(),Soe(),koe(),zI();var Zbe=class extends b7.Component{constructor(e,t,n,r){super(),this.widgetCtx=r,this.inSidebar=!1,this.calendars=[],this.activeCalendar=null,this.callback=null,this.resizeObservers=[],this.plugin=e,this.app=e.app,this.containerEl=t,this.config=n,this.enhancerInstance=new b5(Qe.getSettings()),this.interactionHandler=new d7(this),this.timelineHandler=new q8(this);let a=t.createDiv({cls:"ofc-calendar-shell"});this.contentEl=a.createDiv({cls:"ofc-embedded-calendar-container"})}onload(){this.initializeCalendars()}onunload(){this.calendars.forEach(e=>e.destroy()),this.calendars=[],this.activeCalendar=null,this.resizeObservers.forEach(e=>e.disconnect()),this.resizeObservers=[],this.callback&&(this.callback=null)}get fullCalendarView(){return this.activeCalendar||this.calendars[0]||null}get viewEnhancer(){return this.enhancerInstance.updateSettings(Qe.getSettings()),this.enhancerInstance}updateSize(){this.calendars.forEach(e=>e.updateSize())}async initializeCalendars(){Qe.getCache()&&(Qe.getCache().initialized||await Qe.getCache().populate(),this.contentEl.empty(),this.calendars=[],this.config.height&&this.contentEl.setCssProps({height:"fit"===this.config.height?"auto":this.config.height}),await this.renderSingleCalendar(this.contentEl,this.config),this.callback=()=>{this.calendars.forEach(e=>{let{sources:t}=this.getSourcesAndConfig(this.config);window.requestAnimationFrame(()=>{e.removeAllEventSources(),t.forEach(t=>e.addEventSource(t))})})},this.widgetCtx.onUpdate(this.callback))}async renderSingleCalendar(e,t){if(t.styles&&"object"==typeof t.styles&&!Array.isArray(t.styles))for(let[n,r]of Object.entries(t.styles)){let t=n.startsWith("--")?n:n.replace(/([A-Z])/g,"-$1").toLowerCase();e.style.setProperty(t,String(r))}let{sources:n,initialDate:r}=this.getSourcesAndConfig(t),a=t.slotDuration,i=t.slotLabelInterval;if(void 0!==t.zoomLevel){let e=t.view||"dayGridMonth",n=null;for(let t in E8)e.startsWith(t)&&(!n||t.length>n.length)&&(n=t);if(n){let e=E8[n].levels,r=e[Math.max(0,Math.min(e.length-1,t.zoomLevel))];r&&(a||(a=r.slotDuration),i||(i=r.slotLabelInterval))}}let o=t.view?.includes("resourceTimeline")||t.view?.includes("Timeline")||!1,s=o?this.timelineHandler.buildTimelineResources():void 0,l=await Ebe(e,n,{timeZone:Qe.getSettings().displayTimezone||Intl.DateTimeFormat().resolvedOptions().timeZone,initialView:{desktop:t.view||"dayGridMonth",mobile:t.view||"timeGrid3Days"},height:"fit"===t.height?"auto":void 0,firstDay:Qe.getSettings().firstDay,timeFormat24h:Qe.getSettings().timeFormat24h,highlightCurrentOrNextEvent:Qe.getSettings().highlightCurrentOrNextEvent,dayMaxEvents:!0,headerToolbar:!1!==t.header&&void 0,footerToolbar:!1!==t.header&&void 0,timeGridDayHeaderFormat:Qe.getSettings().timeGridDayHeaderFormat,weatherHide:!1===t.weather,...void 0!==a&&{slotDuration:a},...void 0!==i&&{slotLabelInterval:i},...o&&{enableAdvancedCategorization:!0},...void 0!==s&&{resources:s},eventClick:e=>{this.activeCalendar=l,this.interactionHandler.handleEventClick(e)},select:async(e,t,n,r)=>{this.activeCalendar=l,await this.interactionHandler.handleSelect(e,t,n,r)},modifyEvent:async(e,t,n)=>(this.activeCalendar=l,await this.interactionHandler.handleModifyEvent(e,t,n)),toggleTask:async(e,t)=>await this.interactionHandler.handleToggleTask(e,t),getRecurringInstanceState:async e=>await this.interactionHandler.getRecurringTaskInstanceState(e)});r&&l.gotoDate(r),this.calendars.push(l);let c=new ResizeObserver(()=>{l.updateSize()});c.observe(e),this.resizeObservers.push(c)}getSourcesAndConfig(e){return Qe.getInternalAPI().getEventSources(e,this.widgetCtx.sourcePath)}async refreshView(){this.calendars.forEach(e=>{let{sources:t}=this.getSourcesAndConfig(this.config);e.removeAllEventSources(),t.forEach(t=>e.addEventSource(t))})}},$be=class{constructor(e){this.plugin=e}async render(e,t,n){let r=new Zbe(this.plugin,e,t,n);return r.load(),{updateSize(){r.updateSize()},async refresh(){await r.refreshView()},destroy(){r.unload()}}}};function uWr(e){let t=e.type||e.widget;if("string"==typeof t){let e=t.toLowerCase();if("calendar"===e)return"calendar";if("weather"===e)return"weather";if("analysis"===e||"chart"===e)return"analysis";if("backlog"===e||"task-backlog"===e)return"backlog"}return"weather"===e.view?"weather":"calendar"}async function dWr(e,t){let n=O2.get(e);if(n)return n;if("analysis"===e)try{let{registerChronoAnalysisStrategy:e}=await Promise.resolve().then(()=>(GTt(),jTt));return e(t),O2.get("analysis")||null}catch(e){return console.error("Failed to lazy load AnalysisWidgetStrategy:",e),null}if("weather"===e)try{let{registerWeatherStrategy:e}=await Promise.resolve().then(()=>(YTt(),XTt));return e(t),O2.get("weather")||null}catch(e){return console.error("Failed to lazy load WeatherWidgetStrategy:",e),null}if("backlog"===e)try{let{registerBacklogStrategy:e}=await Promise.resolve().then(()=>($Tt(),ZTt));return e(t),O2.get("backlog")||null}catch(e){return console.error("Failed to lazy load BacklogWidgetStrategy:",e),null}return null}function JTt(e){O2.register("calendar",new $be(e)),e.registerMarkdownCodeBlockProcessor("fc-calendar",async(t,n,r)=>{let a=n.createDiv({cls:"ofc-embedded-widget-container ofc-embed-fc-calendar"}),i={};try{let e=(0,b7.parseYaml)(t);i=KTt(Kbe(e)?e:{})}catch(e){return void a.createEl("pre",{text:`Full Calendar: Failed to parse configuration.\n${e instanceof Error?e.message:String(e)}`})}let o=i.layout,s=o&&o.views&&o.views.length>0,l=[],c=[],u=async()=>{let t=async(t,n)=>{let a=KTt(n);if(!a||"object"!=typeof a){let e=Array.isArray(n)?"array":typeof n;return t.empty(),void t.createEl("pre",{text:`Full Calendar: Invalid item configuration (expected object, got ${e})`})}if(a.styles&&"object"==typeof a.styles&&!Array.isArray(a.styles))for(let[e,n]of Object.entries(a.styles)){let r=e.startsWith("--")?e:e.replace(/([A-Z])/g,"-$1").toLowerCase();t.style.setProperty(r,String(n))}let i=a.width;("string"==typeof i||"number"==typeof i)&&t.setCssProps({width:String(i),flex:`0 0 ${i}`});let o=a.height;("string"==typeof o||"number"==typeof o)&&"fit"!==o&&t.setCssProps({height:String(o)});let s=uWr(a),u=await dWr(s,e);if(!u)return t.empty(),void t.createEl("pre",{text:`Unknown widget type: ${s}`});let d=await u.render(t,a,{sourcePath:r.sourcePath,onUpdate:e=>{c.push(e),Qe.getCache().on("update",e)}});l.push(d)};try{if(s&&o&&o.views){let e=o.orientation||"horizontal";a.addClass(`ofc-layout-${e}`);for(let n of o.views){let r=a.createDiv({cls:"ofc-layout-view-item"}),o=n?.width;"horizontal"!==e||void 0===o||"string"!=typeof o&&"number"!=typeof o?r.setCssProps({"--view-item-flex":"1"}):r.setCssProps({"--view-item-width":String(o),"--view-item-flex":`0 0 ${o}`});let s=n.height;if("string"==typeof s||"number"==typeof s)r.setCssProps({height:"fit"===s?"auto":String(s)});else{let e=i.height;("string"==typeof e||"number"==typeof e)&&r.setCssProps({height:"fit"===e?"auto":String(e)})}let l={...!1!==n.inheritFilters&&!1!==i.inheritFilters&&{calendars:i.calendars,categories:i.categories,subCategories:i.subCategories,completed:i.completed,isTask:i.isTask,excludeAllDayTasks:i.excludeAllDayTasks,textSearch:i.textSearch,titleFilter:i.titleFilter,tagFilter:i.tagFilter,pathFilter:i.pathFilter,sortBy:i.sortBy,sortOrder:i.sortOrder,startOffset:i.startOffset,endOffset:i.endOffset,weather:i.weather,defaultDate:i.defaultDate,zoomLevel:i.zoomLevel,slotDuration:i.slotDuration,slotLabelInterval:i.slotLabelInterval,header:i.header,searchQuery:i.searchQuery,showSearch:i.showSearch,showFooter:i.showFooter,showDateSelector:i.showDateSelector},...n};await t(r,l)}}else{let e=i;if(e.styles&&"object"==typeof e.styles&&!Array.isArray(e.styles))for(let[t,n]of Object.entries(e.styles)){let e=t.startsWith("--")?t:t.replace(/([A-Z])/g,"-$1").toLowerCase();a.style.setProperty(e,String(n))}e.width&&a.setCssProps({width:e.width}),e.height&&"fit"!==e.height&&a.setCssProps({height:e.height}),await t(a,i)}}catch(e){a.empty(),a.createEl("pre",{text:`Rendering failed: ${e instanceof Error?e.message:String(e)}`})}},d=new ResizeObserver(()=>{l.forEach(e=>e.updateSize())});d.observe(a);let p=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(u(),p?.disconnect(),p=null)},{rootMargin:"100px"});p.observe(a);let h=new b7.MarkdownRenderChild(a);h.onunload=()=>{p&&(p.disconnect(),p=null),d&&d.disconnect(),c.forEach(e=>{Qe.getCache().off("update",e)}),l.forEach(e=>e.destroy()),l.length=0},r.addChild(h)})}RC();var i8t="full-calendar-view",o8t="full-calendar-sidebar-view",hQ=class extends AI.Plugin{#e=null;#t=!1;#n;#r;#a;#i=!1;#o;get fcrReminderManager(){return this.#a}get notificationManager(){return this.#n}#c="";#u=null;loadData(){return Promise.reject(new Error("Full Calendar: direct data access is not exposed. Use the authorized API."))}saveData(e){return Promise.reject(new Error("Full Calendar: direct data writes are not exposed. Use the authorized API."))}async onload(){await Txe(this.app,this.manifest.id),this.#i=this.app.isMobile,Qe.setPlugin(this),Qe.setSettings(rh),Qe.setCache(new tE(this)),Qe.setProviderRegistry(new RU(this)),Qe.setInternalAPI(new VJ),Qe.setSaveSettings(()=>this.#d()),Qe.setPersistData(()=>this.#p()),Qe.setLoadSettings(()=>this.#s()),Qe.setNonBlockingProcess((e,t,n)=>this.#h(e,t,n));let e=()=>{let e=this.app.setting;return!!e&&(e.open(),e.openTabById(this.manifest.id),!0)},t=t=>{e(),this.#o&&t(this.#o)};Qe.setDisplaySettingsTab(()=>{e()||this.#o?.renderSettings()}),Qe.setShowChangelog(()=>t(e=>{e.showChangelog()})),Qe.setShowMilestones(()=>t(e=>{e.showMilestones()})),Qe.setIsMobile(()=>this.#i),this.api=new jJ(this),Qe.getProviderRegistry().registerBuiltInProviders(),await this.#s(),await this.#f(),await Qe.getProviderRegistry().initializeInstances(),this.#m(),Qe.getProviderRegistry().syncBacklogManagerLifecycle(),await J5e(this),Qe.getProviderRegistry().setCache(Qe.getCache()),Qe.getProviderRegistry().listenForSourceChanges(),Qe.getCache().reset(),Qe.getCache().listenForSettingsChanges(this.app.workspace),this.#n=new vW(this),this.#n.update(Qe.getSettings()),this.#r=new yW(this),this.#r.update(Qe.getSettings()),this.#a=new gW(this),this.#a.update(Qe.getSettings());let n=this.app.workspace;this.registerEvent(n.on("full-calendar:settings-updated",this.#n.update.bind(this.#n))),this.registerEvent(n.on("full-calendar:settings-updated",this.#r.update.bind(this.#r))),this.registerEvent(n.on("full-calendar:settings-updated",this.#a.update.bind(this.#a))),this.registerEvent(n.on("full-calendar:settings-updated",Qe.getCache().updateSettings.bind(Qe.getCache()))),this.registerEvent(this.app.metadataCache.on("changed",e=>{Qe.getProviderRegistry().handleFileUpdate(e);let t=Qe.getSettings().activeWorkspace;if(t){let n=Qe.getSettings().workspaces.find(e=>e.id===t);n&&n.basisQueryPath===e.path&&Qe.getCache().resync()}})),this.registerEvent(this.app.vault.on("rename",(e,t)=>{e instanceof AI.TFile&&Qe.getProviderRegistry().handleFileDelete(t)})),this.registerEvent(this.app.vault.on("delete",e=>{e instanceof AI.TFile&&Qe.getProviderRegistry().handleFileDelete(e.path)}));let{CalendarView:r}=await Promise.resolve().then(()=>(yI(),FJ));this.registerView(i8t,e=>new r(e,this,!1)),this.registerView(o8t,e=>new r(e,this,!0)),this.#i||Promise.resolve().then(()=>(uJ(),cJ)).then(({AnalysisView:e,ANALYSIS_VIEW_TYPE:t})=>{this.registerView(t,t=>new e(t,this))}).catch(e=>{console.error("Full Calendar: Failed to load Chrono Analyser view",e),Na(Ce("notices.chronoAnalyserLoadFailed"))}),this.addRibbonIcon("calendar-glyph",Ce("ribbon.openCalendar"),async e=>{await Qe.getInternalAPI().openCalendar()}),this.addRibbonIcon("file-text",Ce("commands.nlpQuickAdd"),e=>{Xbe(this)}),this.#o=new rF(this.app,this,Qe.getProviderRegistry()),this.addSettingTab(this.#o),this.addCommand({id:"full-calendar-new-event",name:Ce("commands.newEvent"),callback:()=>{Qe.getInternalAPI().openCreateModal()}}),this.addCommand({id:"full-calendar-reset",name:Ce("commands.resetCache"),callback:()=>{Qe.getCache().reset(),this.app.workspace.detachLeavesOfType(i8t),this.app.workspace.detachLeavesOfType(o8t),Na(Ce("notices.cacheReset"))}}),this.addCommand({id:"full-calendar-revalidate",name:Ce("commands.revalidateRemote"),callback:()=>{Qe.getProviderRegistry().revalidateRemoteCalendars(!0)}}),this.addCommand({id:"full-calendar-sync-activitywatch",name:Ce("commands.syncActivityWatch"),checkCallback:e=>!!Qe.getSettings().activityWatch.enabled&&(e||(async()=>{let{syncActivityWatch:e}=await Promise.resolve().then(()=>(rQ(),tQ));await e(this)})(),!0)}),this.addCommand({id:"full-calendar-sync-fcr-reminder",name:Ce("commands.syncFcrReminder"),checkCallback:e=>{let t=Qe.getSettings().fcrReminderCompanion;return!(!t||!t.enabled)&&(e||(async()=>{await this.#a.syncToCompanion(),Na(Ce("notices.fcrReminderSynced")||"FCR Reminder Companion synchronized successfully.")})(),!0)}}),this.addCommand({id:"full-calendar-open",name:Ce("commands.openCalendar"),callback:()=>{Qe.getInternalAPI().openCalendar()}}),this.#i&&this.addCommand({id:"full-calendar-open-analysis-mobile-disabled",name:Ce("commands.openChronoAnalyser"),callback:()=>{Na(Ce("notices.chronoAnalyserMobileDisabled"))}}),this.addCommand({id:"full-calendar-open-sidebar",name:Ce("commands.openSidebar"),callback:()=>{Qe.getInternalAPI().openSidebar()}}),VTt(this),n.registerHoverLinkSource?.(UW,{display:"Full Calendar",defaultMod:!0}),this.registerObsidianProtocolHandler("full-calendar-google-auth",async e=>{if(e.code&&e.state){let{exchangeCodeForToken:t}=await Promise.resolve().then(()=>(XB(),H6e));await t(e.code,e.state,this),this.#o?.renderSettings()}else Na(Ce("notices.googleAuthFailed")),console.error("Google Auth Callback Error: Missing code or state.",e)}),this.registerEditorExtension(rAe),JTt(this),this.app.workspace.onLayoutReady(()=>{u4e(),window.setTimeout(()=>{let e=Qe.getCache();e&&!e.initialized&&e.populate()},3e3)})}onunload(){this.#l(),this.#u&&this.#u.stop(),this.#n&&this.#n.unload(),this.#r&&this.#r.unload(),this.#a&&this.#a.unload(),Qe.getProviderRegistry().stopListening(),Qe.getCache().stopListening(),Qe.clear()}async#s(){let e=await super.loadData(),t={...rh,...e??{}},{settings:n,needsSave:r}=Ere(t);Qe.setSettings(n),this.#c=JSON.stringify(Qe.getSettings()),Qe.getCache().enhancer.updateSettings(Qe.getSettings()),r&&(Na(Ce("notices.settingsUpdated")),await super.saveData(Qe.getSettings()));let{checkAndShowWhatsNew:a}=await Promise.resolve().then(()=>(rre(),tre));a(this);let i=[],o=n.calendarSources||[];for(let e of o)if(e.type in qre){let t=qre[e.type];i.push({name:e.name||"Unnamed",typeName:t.displayName,message:t.message})}i.length>0&&this.app.workspace.onLayoutReady(async()=>{let{DeprecationWarningModal:e}=await Promise.resolve().then(()=>(e8t(),QTt));new e(this.app,i).open()})}async#d(){let e=JSON.parse(JSON.stringify(Qe.getSettings())),t={...Qe.getSettings()},{settings:n}=Ere(t);Qe.setSettings(n),await super.saveData(Qe.getSettings()),this.app.workspace.trigger("full-calendar:settings-updated",Qe.getSettings());let r=JSON.stringify(Qe.getSettings()),a=this.#c?JSON.parse(this.#c):e,i=Qe.getSettings();JSON.stringify(i.calendarSources)!==JSON.stringify(a.calendarSources)&&this.app.workspace.trigger("full-calendar:sources-changed"),(a.firstDay!==i.firstDay||a.timeFormat24h!==i.timeFormat24h||JSON.stringify(a.initialView)!==JSON.stringify(i.initialView)||a.activeWorkspace!==i.activeWorkspace||JSON.stringify(a.businessHours)!==JSON.stringify(i.businessHours)||a.enableAdvancedCategorization!==i.enableAdvancedCategorization||a.displayTimezone!==i.displayTimezone||JSON.stringify(a.categorySettings)!==JSON.stringify(i.categorySettings))&&this.app.workspace.trigger("full-calendar:view-config-changed"),this.#c=r,this.#m(),await this.#f()}async#p(){await super.saveData(Qe.getSettings()),this.#c=JSON.stringify(Qe.getSettings())}#l(){null!==this.#e&&(window.clearInterval(this.#e),this.#e=null)}#m(){this.#l();let e=Qe.getSettings().activityWatch;if(!e.enabled||!e.autoSyncEnabled||"auto"!==e.syncStrategy)return;let t=60*Math.max(1,e.autoSyncIntervalMins||10)*1e3;this.#e=window.setInterval(()=>{this.#g()},t),this.registerInterval(this.#e)}async#g(){if(this.#t)return;let e=Qe.getSettings().activityWatch;if(e.enabled&&e.autoSyncEnabled&&"auto"===e.syncStrategy){this.#t=!0;try{let{syncActivityWatch:e}=await Promise.resolve().then(()=>(rQ(),tQ));await e(this,{suppressNotices:!0,trigger:"auto"})}catch(e){console.error("ActivityWatch auto-sync failed:",e)}finally{this.#t=!1}}}#h(e,t,n){return new Promise((r,a)=>{let i=0,o=Na("",0),s=()=>{if(i>=e.length)return o.hide(),void r();o.setMessage(`${n}: ${i}/${e.length}`);let l=e.slice(i,i+10);Promise.all(l.map(t)).then(()=>{i+=10,window.setTimeout(s,20)}).catch(e=>{console.error("Error during bulk processing batch",e),o.hide(),Na(Ce("notices.bulkUpdateError")),a(e instanceof Error?e:new Error(String(e)))})};s()})}async#f(){if(Qe.isMobile())return;let e=Qe.getSettings();if(this.#u&&(!e.enableLocalServer||this.#u.port!==e.localServerPort)&&(await this.#u.stop(),this.#u=null),e.enableLocalServer&&!this.#u){let{LocalServer:t}=await Promise.resolve().then(()=>(a8t(),n8t));this.#u=new t(this.api,e.localServerPort);try{await this.#u.start()}catch(e){Na(`Full Calendar REST server failed to start: ${e.message||String(e)}`),this.#u=null}}}};
/* nosourcemap */